From 8a7e68ec04bac9e2f09d3f1ffea8a1394c3c3c56 Mon Sep 17 00:00:00 2001 From: Ron Snyder Date: Fri, 27 Oct 2023 09:36:34 -0400 Subject: [PATCH] Components expansion and restructuring --- _config.yml | 2 +- j2/README.md | 25 + juncture/dist/js/index.js | 1206 ----- juncture/index.js | 2 +- .../Compare.sfc.vue => sfc/Compare.vue} | 0 juncture/sfc/D3PlusNetwork.vue | 93 + juncture/sfc/D3PlusRingNetwork.vue | 91 + .../Footer.sfc.vue => sfc/Footer.vue} | 0 juncture/sfc/Graphic.vue | 126 + .../Header.sfc.vue => sfc/Header.vue} | 0 .../IFrame.sfc.vue => sfc/IFrame.vue} | 0 .../Image.sfc.vue => sfc/Image.vue} | 0 .../JunctureV1.sfc.vue => sfc/Juncture.vue} | 35 +- .../KnightlabTimeline.vue} | 0 .../components/Map.sfc.vue => sfc/Map.vue} | 0 .../PlantSpecimen.vue} | 0 juncture/sfc/Tabulator.vue | 75 + .../Video.sfc.vue => sfc/Video.vue} | 0 juncture/sfc/VisNetwork.vue | 316 ++ .../VisualEssay.vue} | 0 juncture/src/types.d.ts | 2 - juncture/{ => wc}/dist/index.html | 2 +- ...wchart-elk-definition-170a3958-bbc12650.js | 134 + juncture/wc/dist/js/index.js | 4443 +++++++++++++++++ juncture/wc/dist/js/is_dark-29bf40eb.js | 1 + .../mindmap-definition-44684416-9c505796.js | 101 + juncture/{ => wc}/dist/js/preline-7d6f83a6.js | 0 .../timeline-definition-8e5a9bc6-dfcae598.js | 62 + juncture/{ => wc}/index.html | 0 juncture/{ => wc}/package.json | 21 +- juncture/{ => wc}/postcss.config.js | 0 juncture/wc/src/annotator/annotorious.css | 645 +++ juncture/wc/src/annotator/annotorious.d.ts | 1 + juncture/wc/src/annotator/index.ts | 142 + juncture/wc/src/annotator/v1.ts | 163 + .../src/components/EntityInfobox.ce.vue | 0 .../{ => wc}/src/components/Footer.ce.vue | 0 juncture/wc/src/components/GIF.ce.vue | 214 + .../{ => wc}/src/components/Header.ce.vue | 0 juncture/{ => wc}/src/components/Hero.ce.vue | 0 juncture/wc/src/components/IFrame.ce.vue | 109 + juncture/{ => wc}/src/components/Image.ce.vue | 0 juncture/wc/src/components/Manifest.ce.vue | 377 ++ .../wc/src/components/ManifestPopup.ce.vue | 55 + juncture/wc/src/components/Map.ce.vue | 1101 ++++ juncture/wc/src/components/MediaViewer.ce.vue | 1542 ++++++ juncture/{ => wc}/src/components/Menu.ce.vue | 0 juncture/wc/src/components/Mermaid.ce.vue | 113 + juncture/{ => wc}/src/components/Meta.ce.vue | 0 juncture/{ => wc}/src/components/Modal.ce.vue | 0 .../{ => wc}/src/components/Navbar.ce.vue | 0 .../wc/src/components/PlantSpecimen.ce.vue | 241 + .../{ => wc}/src/components/SiteSearch.ce.vue | 0 juncture/wc/src/components/Spacer.ce.vue | 13 + .../{ => wc}/src/components/Trigger.ce.vue | 0 juncture/wc/src/gh-utils.ts | 211 + juncture/{ => wc}/src/input.css | 0 juncture/wc/src/lib/leaflet-opacity.js | 124 + .../preline/components/hs-accordion/index.js | 0 .../preline/components/hs-accordion/plugin.js | 0 .../preline/components/hs-collapse/index.js | 0 .../preline/components/hs-collapse/plugin.js | 0 .../preline/components/hs-dropdown/index.js | 0 .../preline/components/hs-dropdown/plugin.js | 0 .../lib/preline/components/hs-mode/plugin.js | 0 .../preline/components/hs-overlay/index.js | 0 .../preline/components/hs-overlay/plugin.js | 0 .../components/hs-remove-element/index.js | 0 .../components/hs-remove-element/plugin.js | 0 .../preline/components/hs-scrollspy/index.js | 0 .../preline/components/hs-scrollspy/plugin.js | 0 .../lib/preline/components/hs-tabs/index.js | 0 .../lib/preline/components/hs-tabs/plugin.js | 0 .../preline/components/hs-tooltip/index.js | 0 .../preline/components/hs-tooltip/plugin.js | 0 .../src/lib/preline/core/Component.js | 0 .../preline/core/utils/MenuSearchHistory.ts | 0 juncture/{ => wc}/src/lib/preline/index.js | 0 juncture/wc/src/lib/turf.min.js | 88 + juncture/{ => wc}/src/main.ts | 25 +- juncture/{ => wc}/src/tailwind.css | 57 +- juncture/wc/src/types.d.ts | 11 + juncture/{ => wc}/src/utils.ts | 143 +- juncture/{ => wc}/tailwind.config.js | 0 juncture/{ => wc}/tsconfig.app.json | 0 juncture/{ => wc}/tsconfig.json | 0 juncture/{ => wc}/vite.config.ts | 0 87 files changed, 10862 insertions(+), 1250 deletions(-) create mode 100644 j2/README.md delete mode 100644 juncture/dist/js/index.js rename juncture/{src/components/Compare.sfc.vue => sfc/Compare.vue} (100%) create mode 100644 juncture/sfc/D3PlusNetwork.vue create mode 100644 juncture/sfc/D3PlusRingNetwork.vue rename juncture/{src/components/Footer.sfc.vue => sfc/Footer.vue} (100%) create mode 100644 juncture/sfc/Graphic.vue rename juncture/{src/components/Header.sfc.vue => sfc/Header.vue} (100%) rename juncture/{src/components/IFrame.sfc.vue => sfc/IFrame.vue} (100%) rename juncture/{src/components/Image.sfc.vue => sfc/Image.vue} (100%) rename juncture/{src/components/JunctureV1.sfc.vue => sfc/Juncture.vue} (98%) rename juncture/{src/components/KnightlabTimeline.sfc.vue => sfc/KnightlabTimeline.vue} (100%) rename juncture/{src/components/Map.sfc.vue => sfc/Map.vue} (100%) rename juncture/{src/components/PlantSpecimen.sfc.vue => sfc/PlantSpecimen.vue} (100%) create mode 100644 juncture/sfc/Tabulator.vue rename juncture/{src/components/Video.sfc.vue => sfc/Video.vue} (100%) create mode 100644 juncture/sfc/VisNetwork.vue rename juncture/{src/components/VisualEssay.sfc.vue => sfc/VisualEssay.vue} (100%) delete mode 100644 juncture/src/types.d.ts rename juncture/{ => wc}/dist/index.html (77%) create mode 100644 juncture/wc/dist/js/flowchart-elk-definition-170a3958-bbc12650.js create mode 100644 juncture/wc/dist/js/index.js create mode 100644 juncture/wc/dist/js/is_dark-29bf40eb.js create mode 100644 juncture/wc/dist/js/mindmap-definition-44684416-9c505796.js rename juncture/{ => wc}/dist/js/preline-7d6f83a6.js (100%) create mode 100644 juncture/wc/dist/js/timeline-definition-8e5a9bc6-dfcae598.js rename juncture/{ => wc}/index.html (100%) rename juncture/{ => wc}/package.json (61%) rename juncture/{ => wc}/postcss.config.js (100%) create mode 100644 juncture/wc/src/annotator/annotorious.css create mode 100644 juncture/wc/src/annotator/annotorious.d.ts create mode 100644 juncture/wc/src/annotator/index.ts create mode 100644 juncture/wc/src/annotator/v1.ts rename juncture/{ => wc}/src/components/EntityInfobox.ce.vue (100%) rename juncture/{ => wc}/src/components/Footer.ce.vue (100%) create mode 100644 juncture/wc/src/components/GIF.ce.vue rename juncture/{ => wc}/src/components/Header.ce.vue (100%) rename juncture/{ => wc}/src/components/Hero.ce.vue (100%) create mode 100644 juncture/wc/src/components/IFrame.ce.vue rename juncture/{ => wc}/src/components/Image.ce.vue (100%) create mode 100644 juncture/wc/src/components/Manifest.ce.vue create mode 100644 juncture/wc/src/components/ManifestPopup.ce.vue create mode 100644 juncture/wc/src/components/Map.ce.vue create mode 100644 juncture/wc/src/components/MediaViewer.ce.vue rename juncture/{ => wc}/src/components/Menu.ce.vue (100%) create mode 100644 juncture/wc/src/components/Mermaid.ce.vue rename juncture/{ => wc}/src/components/Meta.ce.vue (100%) rename juncture/{ => wc}/src/components/Modal.ce.vue (100%) rename juncture/{ => wc}/src/components/Navbar.ce.vue (100%) create mode 100644 juncture/wc/src/components/PlantSpecimen.ce.vue rename juncture/{ => wc}/src/components/SiteSearch.ce.vue (100%) create mode 100644 juncture/wc/src/components/Spacer.ce.vue rename juncture/{ => wc}/src/components/Trigger.ce.vue (100%) create mode 100644 juncture/wc/src/gh-utils.ts rename juncture/{ => wc}/src/input.css (100%) create mode 100644 juncture/wc/src/lib/leaflet-opacity.js rename juncture/{ => wc}/src/lib/preline/components/hs-accordion/index.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-accordion/plugin.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-collapse/index.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-collapse/plugin.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-dropdown/index.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-dropdown/plugin.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-mode/plugin.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-overlay/index.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-overlay/plugin.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-remove-element/index.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-remove-element/plugin.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-scrollspy/index.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-scrollspy/plugin.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-tabs/index.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-tabs/plugin.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-tooltip/index.js (100%) rename juncture/{ => wc}/src/lib/preline/components/hs-tooltip/plugin.js (100%) rename juncture/{ => wc}/src/lib/preline/core/Component.js (100%) rename juncture/{ => wc}/src/lib/preline/core/utils/MenuSearchHistory.ts (100%) rename juncture/{ => wc}/src/lib/preline/index.js (100%) create mode 100644 juncture/wc/src/lib/turf.min.js rename juncture/{ => wc}/src/main.ts (50%) rename juncture/{ => wc}/src/tailwind.css (95%) create mode 100644 juncture/wc/src/types.d.ts rename juncture/{ => wc}/src/utils.ts (66%) rename juncture/{ => wc}/tailwind.config.js (100%) rename juncture/{ => wc}/tsconfig.app.json (100%) rename juncture/{ => wc}/tsconfig.json (100%) rename juncture/{ => wc}/vite.config.ts (100%) diff --git a/_config.yml b/_config.yml index 78bb45025..695832e2f 100644 --- a/_config.yml +++ b/_config.yml @@ -16,4 +16,4 @@ github: url: https://beta.plant-humanities.org/ baseurl: / -components: /juncture/dist/js/index.js +components: /juncture/wc/dist/js/index.js diff --git a/j2/README.md b/j2/README.md new file mode 100644 index 000000000..bf528bd56 --- /dev/null +++ b/j2/README.md @@ -0,0 +1,25 @@ +# Hello, Juncture + +This example illustrates the use of an image and a map into a Juncture essay. + +## Aulacophora indica + +.ve-media src=wc:The_Bug_Peek.jpg right + +The image depicts a leaf beetle (Aulacophora indica) (Family: Chrysomelidae; subfamily: Galerucinae) looking out from a leaf hole of Alnus nepalensis tree. Adult leaf beetles make holes in host plant leaves while feeding. They camouflage themselves with these holes. + +This image is hosted on [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:The_Bug_Peek.jpg) and was runner-up for Wikimedia Commons Picture of the Year for 2021. + +Image controls are located in the top-left corner of the image and can be seen when hovering over the image. These controls support image zoom, rotation, full-screen viewing, and repositioning to start position. Panning can be performed with keyboard arrow keys or by mouse click-and-drag. + +Image information can be seen when hovering the cursor over the info icon located in the top-right corner of the image. The Image information popover includes image title, description, attribution statement, and reuse rights. + +## Chitwan National Park, Nepal + +.ve-map center=Q1075023 zoom=10 right + +The map is centered on the Chitwan National Park in Nepal, which is the location associated with the image above. The Wikidata identifier for Chitwan National Park is `Q1075023`. When a map location is specified using a Wikidata ID (or QID) Juncture can automatically retrieve the geographic coordinates for map centering. + +An alternative to using a Wikidata identifier for map positioning is to use regular latitude and longitude coordinates. In that approach the QID would be replaced with the coordinates `27.5,84.333`, resulting in an identical map. + +Similar to the image viewer, map zooming is controlled using the buttons located in the top-left corner of the map viewer. Panning is performed with the keyboard arrow keys or by mouse click-and-drag. \ No newline at end of file diff --git a/juncture/dist/js/index.js b/juncture/dist/js/index.js deleted file mode 100644 index 67a0ef17e..000000000 --- a/juncture/dist/js/index.js +++ /dev/null @@ -1,1206 +0,0 @@ -var Rc=Object.defineProperty;var Hc=(t,e,r)=>e in t?Rc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var fn=(t,e,r)=>(Hc(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();const Zc="modulepreload",Fc=function(t){return"/ezpage-wc/"+t},$i={},Gc=function(e,r,o){if(!r||r.length===0)return e();const n=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=Fc(a),a in $i)return;$i[a]=!0;const c=a.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(!!o)for(let M=n.length-1;M>=0;M--){const A=n[M];if(A.href===a&&(!c||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Zc,c||(p.as="script",p.crossOrigin=""),p.href=a,document.head.appendChild(p),c)return new Promise((M,A)=>{p.addEventListener("load",M),p.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>e()).catch(a=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a})};function Un(t,e){const r=Object.create(null),o=t.split(",");for(let n=0;n!!r[n.toLowerCase()]:n=>!!r[n]}const Pt={},Tr=[],Ae=()=>{},Wc=()=>!1,Vc=/^on[^a-z]/,Zo=t=>Vc.test(t),Yn=t=>t.startsWith("onUpdate:"),$t=Object.assign,Qn=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},qc=Object.prototype.hasOwnProperty,At=(t,e)=>qc.call(t,e),mt=Array.isArray,Ar=t=>Fo(t)==="[object Map]",Ba=t=>Fo(t)==="[object Set]",jt=t=>typeof t=="function",Wt=t=>typeof t=="string",Bn=t=>typeof t=="symbol",Rt=t=>t!==null&&typeof t=="object",Pa=t=>Rt(t)&&jt(t.then)&&jt(t.catch),Ra=Object.prototype.toString,Fo=t=>Ra.call(t),$c=t=>Fo(t).slice(8,-1),Ha=t=>Fo(t)==="[object Object]",Pn=t=>Wt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Io=Un(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Go=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Jc=/-(\w)/g,Ve=Go(t=>t.replace(Jc,(e,r)=>r?r.toUpperCase():"")),Kc=/\B([A-Z])/g,De=Go(t=>t.replace(Kc,"-$1").toLowerCase()),Za=Go(t=>t.charAt(0).toUpperCase()+t.slice(1)),gn=Go(t=>t?`on${Za(t)}`:""),oo=(t,e)=>!Object.is(t,e),hn=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Xc=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ji=t=>{const e=Wt(t)?Number(t):NaN;return isNaN(e)?t:e};let Ki;const xn=()=>Ki||(Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yr(t){if(mt(t)){const e={};for(let r=0;r{if(r){const o=r.split(el);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function po(t){let e="";if(Wt(t))e=t;else if(mt(t))for(let r=0;rWt(t)?t:t==null?"":mt(t)||Rt(t)&&(t.toString===Ra||!jt(t.toString))?JSON.stringify(t,Ga,2):String(t),Ga=(t,e)=>e&&e.__v_isRef?Ga(t,e.value):Ar(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[o,n])=>(r[`${o} =>`]=n,r),{})}:Ba(e)?{[`Set(${e.size})`]:[...e.values()]}:Rt(e)&&!mt(e)&&!Ha(e)?String(e):e;let ve;class sl{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ve,!e&&ve&&(this.index=(ve.scopes||(ve.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=ve;try{return ve=this,e()}finally{ve=r}}}on(){ve=this}off(){ve=this.parent}stop(e){if(this._active){let r,o;for(r=0,o=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},Wa=t=>(t.w&ir)>0,Va=t=>(t.n&ir)>0,ul=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let o=0;o{(M==="length"||M>=d)&&l.push(p)})}else switch(r!==void 0&&l.push(c.get(r)),e){case"add":mt(t)?Pn(r)&&l.push(c.get("length")):(l.push(c.get(Mr)),Ar(t)&&l.push(c.get(jn)));break;case"delete":mt(t)||(l.push(c.get(Mr)),Ar(t)&&l.push(c.get(jn)));break;case"set":Ar(t)&&l.push(c.get(Mr));break}if(l.length===1)l[0]&&zn(l[0]);else{const d=[];for(const p of l)p&&d.push(...p);zn(Rn(d))}}function zn(t,e){const r=mt(t)?t:[...t];for(const o of r)o.computed&&ta(o);for(const o of r)o.computed||ta(o)}function ta(t,e){(t!==je||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const pl=Un("__proto__,__v_isRef,__isVue"),Ja=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Bn)),Ml=Zn(),fl=Zn(!1,!0),gl=Zn(!0),ea=hl();function hl(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const o=Ot(this);for(let a=0,c=this.length;a{t[e]=function(...r){Qr();const o=Ot(this)[e].apply(this,r);return Br(),o}}),t}function wl(t){const e=Ot(this);return de(e,"has",t),e.hasOwnProperty(t)}function Zn(t=!1,e=!1){return function(o,n,a){if(n==="__v_isReactive")return!t;if(n==="__v_isReadonly")return t;if(n==="__v_isShallow")return e;if(n==="__v_raw"&&a===(t?e?Ll:rs:e?es:ts).get(o))return o;const c=mt(o);if(!t){if(c&&At(ea,n))return Reflect.get(ea,n,a);if(n==="hasOwnProperty")return wl}const l=Reflect.get(o,n,a);return(Bn(n)?Ja.has(n):pl(n))||(t||de(o,"get",n),e)?l:re(l)?c&&Pn(n)?l:l.value:Rt(l)?t?os(l):Wn(l):l}}const yl=Ka(),Nl=Ka(!0);function Ka(t=!1){return function(r,o,n,a){let c=r[o];if(Or(c)&&re(c)&&!re(n))return!1;if(!t&&(!Yo(n)&&!Or(n)&&(c=Ot(c),n=Ot(n)),!mt(r)&&re(c)&&!re(n)))return c.value=n,!0;const l=mt(r)&&Pn(o)?Number(o)t,Wo=t=>Reflect.getPrototypeOf(t);function bo(t,e,r=!1,o=!1){t=t.__v_raw;const n=Ot(t),a=Ot(e);r||(e!==a&&de(n,"get",e),de(n,"get",a));const{has:c}=Wo(n),l=o?Fn:r?qn:no;if(c.call(n,e))return l(t.get(e));if(c.call(n,a))return l(t.get(a));t!==n&&t.get(e)}function xo(t,e=!1){const r=this.__v_raw,o=Ot(r),n=Ot(t);return e||(t!==n&&de(o,"has",t),de(o,"has",n)),t===n?r.has(t):r.has(t)||r.has(n)}function vo(t,e=!1){return t=t.__v_raw,!e&&de(Ot(t),"iterate",Mr),Reflect.get(t,"size",t)}function ra(t){t=Ot(t);const e=Ot(this);return Wo(e).has.call(e,t)||(e.add(t),qe(e,"add",t,t)),this}function oa(t,e){e=Ot(e);const r=Ot(this),{has:o,get:n}=Wo(r);let a=o.call(r,t);a||(t=Ot(t),a=o.call(r,t));const c=n.call(r,t);return r.set(t,e),a?oo(e,c)&&qe(r,"set",t,e):qe(r,"add",t,e),this}function na(t){const e=Ot(this),{has:r,get:o}=Wo(e);let n=r.call(e,t);n||(t=Ot(t),n=r.call(e,t)),o&&o.call(e,t);const a=e.delete(t);return n&&qe(e,"delete",t,void 0),a}function ia(){const t=Ot(this),e=t.size!==0,r=t.clear();return e&&qe(t,"clear",void 0,void 0),r}function Do(t,e){return function(o,n){const a=this,c=a.__v_raw,l=Ot(c),d=e?Fn:t?qn:no;return!t&&de(l,"iterate",Mr),c.forEach((p,M)=>o.call(n,d(p),d(M),a))}}function jo(t,e,r){return function(...o){const n=this.__v_raw,a=Ot(n),c=Ar(a),l=t==="entries"||t===Symbol.iterator&&c,d=t==="keys"&&c,p=n[t](...o),M=r?Fn:e?qn:no;return!e&&de(a,"iterate",d?jn:Mr),{next(){const{value:A,done:k}=p.next();return k?{value:A,done:k}:{value:l?[M(A[0]),M(A[1])]:M(A),done:k}},[Symbol.iterator](){return this}}}}function tr(t){return function(...e){return t==="delete"?!1:this}}function jl(){const t={get(a){return bo(this,a)},get size(){return vo(this)},has:xo,add:ra,set:oa,delete:na,clear:ia,forEach:Do(!1,!1)},e={get(a){return bo(this,a,!1,!0)},get size(){return vo(this)},has:xo,add:ra,set:oa,delete:na,clear:ia,forEach:Do(!1,!0)},r={get(a){return bo(this,a,!0)},get size(){return vo(this,!0)},has(a){return xo.call(this,a,!0)},add:tr("add"),set:tr("set"),delete:tr("delete"),clear:tr("clear"),forEach:Do(!0,!1)},o={get(a){return bo(this,a,!0,!0)},get size(){return vo(this,!0)},has(a){return xo.call(this,a,!0)},add:tr("add"),set:tr("set"),delete:tr("delete"),clear:tr("clear"),forEach:Do(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{t[a]=jo(a,!1,!1),r[a]=jo(a,!0,!1),e[a]=jo(a,!1,!0),o[a]=jo(a,!0,!0)}),[t,r,e,o]}const[zl,Tl,Al,El]=jl();function Gn(t,e){const r=e?t?El:Al:t?Tl:zl;return(o,n,a)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_raw"?o:Reflect.get(At(r,n)&&n in o?r:o,n,a)}const Il={get:Gn(!1,!1)},Ol={get:Gn(!1,!0)},kl={get:Gn(!0,!1)},ts=new WeakMap,es=new WeakMap,rs=new WeakMap,Ll=new WeakMap;function Cl(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sl(t){return t.__v_skip||!Object.isExtensible(t)?0:Cl($c(t))}function Wn(t){return Or(t)?t:Vn(t,!1,Xa,Il,ts)}function _l(t){return Vn(t,!1,Dl,Ol,es)}function os(t){return Vn(t,!0,vl,kl,rs)}function Vn(t,e,r,o,n){if(!Rt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=n.get(t);if(a)return a;const c=Sl(t);if(c===0)return t;const l=new Proxy(t,c===2?o:r);return n.set(t,l),l}function Er(t){return Or(t)?Er(t.__v_raw):!!(t&&t.__v_isReactive)}function Or(t){return!!(t&&t.__v_isReadonly)}function Yo(t){return!!(t&&t.__v_isShallow)}function ns(t){return Er(t)||Or(t)}function Ot(t){const e=t&&t.__v_raw;return e?Ot(e):t}function is(t){return _o(t,"__v_skip",!0),t}const no=t=>Rt(t)?Wn(t):t,qn=t=>Rt(t)?os(t):t;function as(t){or&&je&&(t=Ot(t),$a(t.dep||(t.dep=Rn())))}function ss(t,e){t=Ot(t);const r=t.dep;r&&zn(r)}function re(t){return!!(t&&t.__v_isRef===!0)}function Et(t){return Ul(t,!1)}function Ul(t,e){return re(t)?t:new Yl(t,e)}class Yl{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:Ot(e),this._value=r?e:no(e)}get value(){return as(this),this._value}set value(e){const r=this.__v_isShallow||Yo(e)||Or(e);e=r?e:Ot(e),oo(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:no(e),ss(this))}}function Ql(t){return re(t)?t.value:t}const Bl={get:(t,e,r)=>Ql(Reflect.get(t,e,r)),set:(t,e,r,o)=>{const n=t[e];return re(n)&&!re(r)?(n.value=r,!0):Reflect.set(t,e,r,o)}};function cs(t){return Er(t)?t:new Proxy(t,Bl)}class Pl{constructor(e,r,o,n){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Hn(e,()=>{this._dirty||(this._dirty=!0,ss(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=o}get value(){const e=Ot(this);return as(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Rl(t,e,r=!1){let o,n;const a=jt(t);return a?(o=t,n=Ae):(o=t.get,n=t.set),new Pl(o,n,a||!n,r)}function nr(t,e,r,o){let n;try{n=o?t(...o):t()}catch(a){Vo(a,e,r)}return n}function Ee(t,e,r,o){if(jt(t)){const a=nr(t,e,r,o);return a&&Pa(a)&&a.catch(c=>{Vo(c,e,r)}),a}const n=[];for(let a=0;a>>1;ao(te[o])Ye&&te.splice(e,1)}function Gl(t){mt(t)?Ir.push(...t):(!We||!We.includes(t,t.allowRecurse?dr+1:dr))&&Ir.push(t),us()}function aa(t,e=io?Ye+1:0){for(;eao(r)-ao(o)),dr=0;drt.id==null?1/0:t.id,Wl=(t,e)=>{const r=ao(t)-ao(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function ps(t){Tn=!1,io=!0,te.sort(Wl);const e=Ae;try{for(Ye=0;YeWt(O)?O.trim():O)),A&&(n=r.map(Xc))}let l,d=o[l=gn(e)]||o[l=gn(Ve(e))];!d&&a&&(d=o[l=gn(De(e))]),d&&Ee(d,t,6,n);const p=o[l+"Once"];if(p){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,Ee(p,t,6,n)}}function Ms(t,e,r=!1){const o=e.emitsCache,n=o.get(t);if(n!==void 0)return n;const a=t.emits;let c={},l=!1;if(!jt(t)){const d=p=>{const M=Ms(p,e,!0);M&&(l=!0,$t(c,M))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!a&&!l?(Rt(t)&&o.set(t,null),null):(mt(a)?a.forEach(d=>c[d]=null):$t(c,a),Rt(t)&&o.set(t,c),c)}function qo(t,e){return!t||!Zo(e)?!1:(e=e.slice(2).replace(/Once$/,""),At(t,e[0].toLowerCase()+e.slice(1))||At(t,De(e))||At(t,e))}let Qe=null,fs=null;function Qo(t){const e=Qe;return Qe=t,fs=t&&t.type.__scopeId||null,e}function ql(t,e=Qe,r){if(!e||t._n)return t;const o=(...n)=>{o._d&&ha(-1);const a=Qo(e);let c;try{c=t(...n)}finally{Qo(a),o._d&&ha(1)}return c};return o._n=!0,o._c=!0,o._d=!0,o}function wn(t){const{type:e,vnode:r,proxy:o,withProxy:n,props:a,propsOptions:[c],slots:l,attrs:d,emit:p,render:M,renderCache:A,data:k,setupState:O,ctx:x,inheritAttrs:w}=t;let h,g;const N=Qo(t);try{if(r.shapeFlag&4){const m=n||o;h=Ue(M.call(m,m,A,a,O,k,x)),g=d}else{const m=e;h=Ue(m.length>1?m(a,{attrs:d,slots:l,emit:p}):m(a,null)),g=e.props?d:$l(d)}}catch(m){to.length=0,Vo(m,t,1),h=Be(hr)}let v=h;if(g&&w!==!1){const m=Object.keys(g),{shapeFlag:I}=v;m.length&&I&7&&(c&&m.some(Yn)&&(g=Jl(g,c)),v=kr(v,g))}return r.dirs&&(v=kr(v),v.dirs=v.dirs?v.dirs.concat(r.dirs):r.dirs),r.transition&&(v.transition=r.transition),h=v,Qo(N),h}const $l=t=>{let e;for(const r in t)(r==="class"||r==="style"||Zo(r))&&((e||(e={}))[r]=t[r]);return e},Jl=(t,e)=>{const r={};for(const o in t)(!Yn(o)||!(o.slice(9)in e))&&(r[o]=t[o]);return r};function Kl(t,e,r){const{props:o,children:n,component:a}=t,{props:c,children:l,patchFlag:d}=e,p=a.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?sa(o,c,p):!!c;if(d&8){const M=e.dynamicProps;for(let A=0;At.__isSuspense;function eu(t,e){e&&e.pendingBranch?mt(t)?e.effects.push(...t):e.effects.push(t):Gl(t)}const zo={};function Ht(t,e,r){return gs(t,e,r)}function gs(t,e,{immediate:r,deep:o,flush:n,onTrack:a,onTrigger:c}=Pt){var l;const d=ll()===((l=ee)==null?void 0:l.scope)?ee:null;let p,M=!1,A=!1;if(re(t)?(p=()=>t.value,M=Yo(t)):Er(t)?(p=()=>t,o=!0):mt(t)?(A=!0,M=t.some(m=>Er(m)||Yo(m)),p=()=>t.map(m=>{if(re(m))return m.value;if(Er(m))return zr(m);if(jt(m))return nr(m,d,2)})):jt(t)?e?p=()=>nr(t,d,2):p=()=>{if(!(d&&d.isUnmounted))return k&&k(),Ee(t,d,3,[O])}:p=Ae,e&&o){const m=p;p=()=>zr(m())}let k,O=m=>{k=N.onStop=()=>{nr(m,d,4)}},x;if(co)if(O=Ae,e?r&&Ee(e,d,3,[p(),A?[]:void 0,O]):p(),n==="sync"){const m=Gu();x=m.__watcherHandles||(m.__watcherHandles=[])}else return Ae;let w=A?new Array(t.length).fill(zo):zo;const h=()=>{if(N.active)if(e){const m=N.run();(o||M||(A?m.some((I,z)=>oo(I,w[z])):oo(m,w)))&&(k&&k(),Ee(e,d,3,[m,w===zo?void 0:A&&w[0]===zo?[]:w,O]),w=m)}else N.run()};h.allowRecurse=!!e;let g;n==="sync"?g=h:n==="post"?g=()=>ce(h,d&&d.suspense):(h.pre=!0,d&&(h.id=d.uid),g=()=>Kn(h));const N=new Hn(p,g);e?r?h():w=N.run():n==="post"?ce(N.run.bind(N),d&&d.suspense):N.run();const v=()=>{N.stop(),d&&d.scope&&Qn(d.scope.effects,N)};return x&&x.push(v),v}function ru(t,e,r){const o=this.proxy,n=Wt(t)?t.includes(".")?hs(o,t):()=>o[t]:t.bind(o,o);let a;jt(e)?a=e:(a=e.handler,r=e);const c=ee;Lr(this);const l=gs(n,a.bind(o),r);return c?Lr(c):fr(),l}function hs(t,e){const r=e.split(".");return()=>{let o=t;for(let n=0;n{zr(r,e)});else if(Ha(t))for(const r in t)zr(t[r],e);return t}function cr(t,e,r,o){const n=t.dirs,a=e&&e.dirs;for(let c=0;c$t({name:t.name},e,{setup:t}))():t}const Oo=t=>!!t.type.__asyncLoader,ws=t=>t.type.__isKeepAlive;function ou(t,e){ys(t,"a",e)}function nu(t,e){ys(t,"da",e)}function ys(t,e,r=ee){const o=t.__wdc||(t.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if($o(e,o,r),r){let n=r.parent;for(;n&&n.parent;)ws(n.parent.vnode)&&iu(o,e,r,n),n=n.parent}}function iu(t,e,r,o){const n=$o(e,t,o,!0);ms(()=>{Qn(o[e],n)},r)}function $o(t,e,r=ee,o=!1){if(r){const n=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...c)=>{if(r.isUnmounted)return;Qr(),Lr(r);const l=Ee(e,r,t,c);return fr(),Br(),l});return o?n.unshift(a):n.push(a),a}}const Ke=t=>(e,r=ee)=>(!co||t==="sp")&&$o(t,(...o)=>e(...o),r),au=Ke("bm"),Pr=Ke("m"),su=Ke("bu"),Ns=Ke("u"),cu=Ke("bum"),ms=Ke("um"),lu=Ke("sp"),uu=Ke("rtg"),du=Ke("rtc");function pu(t,e=ee){$o("ec",t,e)}const Mu=Symbol.for("v-ndc");function Xn(t,e,r,o){let n;const a=r&&r[o];if(mt(t)||Wt(t)){n=new Array(t.length);for(let c=0,l=t.length;ce(c,l,void 0,a&&a[l]));else{const c=Object.keys(t);n=new Array(c.length);for(let l=0,d=c.length;lt?Ls(t)?ni(t)||t.proxy:An(t.parent):null,Xr=$t(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>An(t.parent),$root:t=>An(t.root),$emit:t=>t.emit,$options:t=>ti(t),$forceUpdate:t=>t.f||(t.f=()=>Kn(t.update)),$nextTick:t=>t.n||(t.n=Jn.bind(t.proxy)),$watch:t=>ru.bind(t)}),yn=(t,e)=>t!==Pt&&!t.__isScriptSetup&&At(t,e),fu={get({_:t},e){const{ctx:r,setupState:o,data:n,props:a,accessCache:c,type:l,appContext:d}=t;let p;if(e[0]!=="$"){const O=c[e];if(O!==void 0)switch(O){case 1:return o[e];case 2:return n[e];case 4:return r[e];case 3:return a[e]}else{if(yn(o,e))return c[e]=1,o[e];if(n!==Pt&&At(n,e))return c[e]=2,n[e];if((p=t.propsOptions[0])&&At(p,e))return c[e]=3,a[e];if(r!==Pt&&At(r,e))return c[e]=4,r[e];En&&(c[e]=0)}}const M=Xr[e];let A,k;if(M)return e==="$attrs"&&de(t,"get",e),M(t);if((A=l.__cssModules)&&(A=A[e]))return A;if(r!==Pt&&At(r,e))return c[e]=4,r[e];if(k=d.config.globalProperties,At(k,e))return k[e]},set({_:t},e,r){const{data:o,setupState:n,ctx:a}=t;return yn(n,e)?(n[e]=r,!0):o!==Pt&&At(o,e)?(o[e]=r,!0):At(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:o,appContext:n,propsOptions:a}},c){let l;return!!r[c]||t!==Pt&&At(t,c)||yn(e,c)||(l=a[0])&&At(l,c)||At(o,c)||At(Xr,c)||At(n.config.globalProperties,c)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:At(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function ca(t){return mt(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let En=!0;function gu(t){const e=ti(t),r=t.proxy,o=t.ctx;En=!1,e.beforeCreate&&la(e.beforeCreate,t,"bc");const{data:n,computed:a,methods:c,watch:l,provide:d,inject:p,created:M,beforeMount:A,mounted:k,beforeUpdate:O,updated:x,activated:w,deactivated:h,beforeDestroy:g,beforeUnmount:N,destroyed:v,unmounted:m,render:I,renderTracked:z,renderTriggered:L,errorCaptured:E,serverPrefetch:H,expose:Q,inheritAttrs:ot,components:dt,directives:pt,filters:nt}=e;if(p&&hu(p,o,null),c)for(const ft in c){const Y=c[ft];jt(Y)&&(o[ft]=Y.bind(r))}if(n){const ft=n.call(r,r);Rt(ft)&&(t.data=Wn(ft))}if(En=!0,a)for(const ft in a){const Y=a[ft],C=jt(Y)?Y.bind(r,r):jt(Y.get)?Y.get.bind(r,r):Ae,F=!jt(Y)&&jt(Y.set)?Y.set.bind(r):Ae,P=Jt({get:C,set:F});Object.defineProperty(o,ft,{enumerable:!0,configurable:!0,get:()=>P.value,set:$=>P.value=$})}if(l)for(const ft in l)bs(l[ft],o,r,ft);if(d){const ft=jt(d)?d.call(r):d;Reflect.ownKeys(ft).forEach(Y=>{xu(Y,ft[Y])})}M&&la(M,t,"c");function Mt(ft,Y){mt(Y)?Y.forEach(C=>ft(C.bind(r))):Y&&ft(Y.bind(r))}if(Mt(au,A),Mt(Pr,k),Mt(su,O),Mt(Ns,x),Mt(ou,w),Mt(nu,h),Mt(pu,E),Mt(du,z),Mt(uu,L),Mt(cu,N),Mt(ms,m),Mt(lu,H),mt(Q))if(Q.length){const ft=t.exposed||(t.exposed={});Q.forEach(Y=>{Object.defineProperty(ft,Y,{get:()=>r[Y],set:C=>r[Y]=C})})}else t.exposed||(t.exposed={});I&&t.render===Ae&&(t.render=I),ot!=null&&(t.inheritAttrs=ot),dt&&(t.components=dt),pt&&(t.directives=pt)}function hu(t,e,r=Ae){mt(t)&&(t=In(t));for(const o in t){const n=t[o];let a;Rt(n)?"default"in n?a=ko(n.from||o,n.default,!0):a=ko(n.from||o):a=ko(n),re(a)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:c=>a.value=c}):e[o]=a}}function la(t,e,r){Ee(mt(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,r)}function bs(t,e,r,o){const n=o.includes(".")?hs(r,o):()=>r[o];if(Wt(t)){const a=e[t];jt(a)&&Ht(n,a)}else if(jt(t))Ht(n,t.bind(r));else if(Rt(t))if(mt(t))t.forEach(a=>bs(a,e,r,o));else{const a=jt(t.handler)?t.handler.bind(r):e[t.handler];jt(a)&&Ht(n,a,t)}}function ti(t){const e=t.type,{mixins:r,extends:o}=e,{mixins:n,optionsCache:a,config:{optionMergeStrategies:c}}=t.appContext,l=a.get(e);let d;return l?d=l:!n.length&&!r&&!o?d=e:(d={},n.length&&n.forEach(p=>Bo(d,p,c,!0)),Bo(d,e,c)),Rt(e)&&a.set(e,d),d}function Bo(t,e,r,o=!1){const{mixins:n,extends:a}=e;a&&Bo(t,a,r,!0),n&&n.forEach(c=>Bo(t,c,r,!0));for(const c in e)if(!(o&&c==="expose")){const l=wu[c]||r&&r[c];t[c]=l?l(t[c],e[c]):e[c]}return t}const wu={data:ua,props:da,emits:da,methods:Kr,computed:Kr,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:Kr,directives:Kr,watch:Nu,provide:ua,inject:yu};function ua(t,e){return e?t?function(){return $t(jt(t)?t.call(this,this):t,jt(e)?e.call(this,this):e)}:e:t}function yu(t,e){return Kr(In(t),In(e))}function In(t){if(mt(t)){const e={};for(let r=0;r1)return r&&jt(e)?e.call(o&&o.proxy):e}}function vu(t,e,r,o=!1){const n={},a={};_o(a,Ko,1),t.propsDefaults=Object.create(null),vs(t,e,n,a);for(const c in t.propsOptions[0])c in n||(n[c]=void 0);r?t.props=o?n:_l(n):t.type.props?t.props=n:t.props=a,t.attrs=a}function Du(t,e,r,o){const{props:n,attrs:a,vnode:{patchFlag:c}}=t,l=Ot(n),[d]=t.propsOptions;let p=!1;if((o||c>0)&&!(c&16)){if(c&8){const M=t.vnode.dynamicProps;for(let A=0;A{d=!0;const[k,O]=Ds(A,e,!0);$t(c,k),O&&l.push(...O)};!r&&e.mixins.length&&e.mixins.forEach(M),t.extends&&M(t.extends),t.mixins&&t.mixins.forEach(M)}if(!a&&!d)return Rt(t)&&o.set(t,Tr),Tr;if(mt(a))for(let M=0;M-1,O[1]=w<0||x-1||At(O,"default"))&&l.push(A)}}}const p=[c,l];return Rt(t)&&o.set(t,p),p}function pa(t){return t[0]!=="$"}function Ma(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function fa(t,e){return Ma(t)===Ma(e)}function ga(t,e){return mt(e)?e.findIndex(r=>fa(r,t)):jt(e)&&fa(e,t)?0:-1}const js=t=>t[0]==="_"||t==="$stable",ei=t=>mt(t)?t.map(Ue):[Ue(t)],ju=(t,e,r)=>{if(e._n)return e;const o=ql((...n)=>ei(e(...n)),r);return o._c=!1,o},zs=(t,e,r)=>{const o=t._ctx;for(const n in t){if(js(n))continue;const a=t[n];if(jt(a))e[n]=ju(n,a,o);else if(a!=null){const c=ei(a);e[n]=()=>c}}},Ts=(t,e)=>{const r=ei(e);t.slots.default=()=>r},zu=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=Ot(e),_o(e,"_",r)):zs(e,t.slots={})}else t.slots={},e&&Ts(t,e);_o(t.slots,Ko,1)},Tu=(t,e,r)=>{const{vnode:o,slots:n}=t;let a=!0,c=Pt;if(o.shapeFlag&32){const l=e._;l?r&&l===1?a=!1:($t(n,e),!r&&l===1&&delete n._):(a=!e.$stable,zs(e,n)),c=e}else e&&(Ts(t,e),c={default:1});if(a)for(const l in n)!js(l)&&!(l in c)&&delete n[l]};function kn(t,e,r,o,n=!1){if(mt(t)){t.forEach((k,O)=>kn(k,e&&(mt(e)?e[O]:e),r,o,n));return}if(Oo(o)&&!n)return;const a=o.shapeFlag&4?ni(o.component)||o.component.proxy:o.el,c=n?null:a,{i:l,r:d}=t,p=e&&e.r,M=l.refs===Pt?l.refs={}:l.refs,A=l.setupState;if(p!=null&&p!==d&&(Wt(p)?(M[p]=null,At(A,p)&&(A[p]=null)):re(p)&&(p.value=null)),jt(d))nr(d,l,12,[c,M]);else{const k=Wt(d),O=re(d);if(k||O){const x=()=>{if(t.f){const w=k?At(A,d)?A[d]:M[d]:d.value;n?mt(w)&&Qn(w,a):mt(w)?w.includes(a)||w.push(a):k?(M[d]=[a],At(A,d)&&(A[d]=M[d])):(d.value=[a],t.k&&(M[t.k]=d.value))}else k?(M[d]=c,At(A,d)&&(A[d]=c)):O&&(d.value=c,t.k&&(M[t.k]=c))};c?(x.id=-1,ce(x,r)):x()}}}const ce=eu;function Au(t){return Eu(t)}function Eu(t,e){const r=xn();r.__VUE__=!0;const{insert:o,remove:n,patchProp:a,createElement:c,createText:l,createComment:d,setText:p,setElementText:M,parentNode:A,nextSibling:k,setScopeId:O=Ae,insertStaticContent:x}=t,w=(b,T,_,Z=null,R=null,G=null,X=!1,B=null,V=!!T.dynamicChildren)=>{if(b===T)return;b&&!qr(b,T)&&(Z=D(b),$(b,R,G,!0),b=null),T.patchFlag===-2&&(V=!1,T.dynamicChildren=null);const{type:W,ref:K,shapeFlag:tt}=T;switch(W){case Jo:h(b,T,_,Z);break;case hr:g(b,T,_,Z);break;case Nn:b==null&&N(T,_,Z,X);break;case Me:dt(b,T,_,Z,R,G,X,B,V);break;default:tt&1?I(b,T,_,Z,R,G,X,B,V):tt&6?pt(b,T,_,Z,R,G,X,B,V):(tt&64||tt&128)&&W.process(b,T,_,Z,R,G,X,B,V,at)}K!=null&&R&&kn(K,b&&b.ref,G,T||b,!T)},h=(b,T,_,Z)=>{if(b==null)o(T.el=l(T.children),_,Z);else{const R=T.el=b.el;T.children!==b.children&&p(R,T.children)}},g=(b,T,_,Z)=>{b==null?o(T.el=d(T.children||""),_,Z):T.el=b.el},N=(b,T,_,Z)=>{[b.el,b.anchor]=x(b.children,T,_,Z,b.el,b.anchor)},v=({el:b,anchor:T},_,Z)=>{let R;for(;b&&b!==T;)R=k(b),o(b,_,Z),b=R;o(T,_,Z)},m=({el:b,anchor:T})=>{let _;for(;b&&b!==T;)_=k(b),n(b),b=_;n(T)},I=(b,T,_,Z,R,G,X,B,V)=>{X=X||T.type==="svg",b==null?z(T,_,Z,R,G,X,B,V):H(b,T,R,G,X,B,V)},z=(b,T,_,Z,R,G,X,B)=>{let V,W;const{type:K,props:tt,shapeFlag:rt,transition:et,dirs:lt}=b;if(V=b.el=c(b.type,G,tt&&tt.is,tt),rt&8?M(V,b.children):rt&16&&E(b.children,V,null,Z,R,G&&K!=="foreignObject",X,B),lt&&cr(b,null,Z,"created"),L(V,b,b.scopeId,X,Z),tt){for(const ht in tt)ht!=="value"&&!Io(ht)&&a(V,ht,null,tt[ht],G,b.children,Z,R,Nt);"value"in tt&&a(V,"value",null,tt.value),(W=tt.onVnodeBeforeMount)&&_e(W,Z,b)}lt&&cr(b,null,Z,"beforeMount");const gt=(!R||R&&!R.pendingBranch)&&et&&!et.persisted;gt&&et.beforeEnter(V),o(V,T,_),((W=tt&&tt.onVnodeMounted)||gt||lt)&&ce(()=>{W&&_e(W,Z,b),gt&&et.enter(V),lt&&cr(b,null,Z,"mounted")},R)},L=(b,T,_,Z,R)=>{if(_&&O(b,_),Z)for(let G=0;G{for(let W=V;W{const B=T.el=b.el;let{patchFlag:V,dynamicChildren:W,dirs:K}=T;V|=b.patchFlag&16;const tt=b.props||Pt,rt=T.props||Pt;let et;_&&lr(_,!1),(et=rt.onVnodeBeforeUpdate)&&_e(et,_,T,b),K&&cr(T,b,_,"beforeUpdate"),_&&lr(_,!0);const lt=R&&T.type!=="foreignObject";if(W?Q(b.dynamicChildren,W,B,_,Z,lt,G):X||Y(b,T,B,null,_,Z,lt,G,!1),V>0){if(V&16)ot(B,T,tt,rt,_,Z,R);else if(V&2&&tt.class!==rt.class&&a(B,"class",null,rt.class,R),V&4&&a(B,"style",tt.style,rt.style,R),V&8){const gt=T.dynamicProps;for(let ht=0;ht{et&&_e(et,_,T,b),K&&cr(T,b,_,"updated")},Z)},Q=(b,T,_,Z,R,G,X)=>{for(let B=0;B{if(_!==Z){if(_!==Pt)for(const B in _)!Io(B)&&!(B in Z)&&a(b,B,_[B],null,X,T.children,R,G,Nt);for(const B in Z){if(Io(B))continue;const V=Z[B],W=_[B];V!==W&&B!=="value"&&a(b,B,W,V,X,T.children,R,G,Nt)}"value"in Z&&a(b,"value",_.value,Z.value)}},dt=(b,T,_,Z,R,G,X,B,V)=>{const W=T.el=b?b.el:l(""),K=T.anchor=b?b.anchor:l("");let{patchFlag:tt,dynamicChildren:rt,slotScopeIds:et}=T;et&&(B=B?B.concat(et):et),b==null?(o(W,_,Z),o(K,_,Z),E(T.children,_,K,R,G,X,B,V)):tt>0&&tt&64&&rt&&b.dynamicChildren?(Q(b.dynamicChildren,rt,_,R,G,X,B),(T.key!=null||R&&T===R.subTree)&&As(b,T,!0)):Y(b,T,_,K,R,G,X,B,V)},pt=(b,T,_,Z,R,G,X,B,V)=>{T.slotScopeIds=B,b==null?T.shapeFlag&512?R.ctx.activate(T,_,Z,X,V):nt(T,_,Z,R,G,X,V):it(b,T,V)},nt=(b,T,_,Z,R,G,X)=>{const B=b.component=Qu(b,Z,R);if(ws(b)&&(B.ctx.renderer=at),Bu(B),B.asyncDep){if(R&&R.registerDep(B,Mt),!b.el){const V=B.subTree=Be(hr);g(null,V,T,_)}return}Mt(B,b,T,_,R,G,X)},it=(b,T,_)=>{const Z=T.component=b.component;if(Kl(b,T,_))if(Z.asyncDep&&!Z.asyncResolved){ft(Z,T,_);return}else Z.next=T,Fl(Z.update),Z.update();else T.el=b.el,Z.vnode=T},Mt=(b,T,_,Z,R,G,X)=>{const B=()=>{if(b.isMounted){let{next:K,bu:tt,u:rt,parent:et,vnode:lt}=b,gt=K,ht;lr(b,!1),K?(K.el=lt.el,ft(b,K,X)):K=lt,tt&&hn(tt),(ht=K.props&&K.props.onVnodeBeforeUpdate)&&_e(ht,et,K,lt),lr(b,!0);const vt=wn(b),_t=b.subTree;b.subTree=vt,w(_t,vt,A(_t.el),D(_t),b,R,G),K.el=vt.el,gt===null&&Xl(b,vt.el),rt&&ce(rt,R),(ht=K.props&&K.props.onVnodeUpdated)&&ce(()=>_e(ht,et,K,lt),R)}else{let K;const{el:tt,props:rt}=T,{bm:et,m:lt,parent:gt}=b,ht=Oo(T);if(lr(b,!1),et&&hn(et),!ht&&(K=rt&&rt.onVnodeBeforeMount)&&_e(K,gt,T),lr(b,!0),tt&&yt){const vt=()=>{b.subTree=wn(b),yt(tt,b.subTree,b,R,null)};ht?T.type.__asyncLoader().then(()=>!b.isUnmounted&&vt()):vt()}else{const vt=b.subTree=wn(b);w(null,vt,_,Z,b,R,G),T.el=vt.el}if(lt&&ce(lt,R),!ht&&(K=rt&&rt.onVnodeMounted)){const vt=T;ce(()=>_e(K,gt,vt),R)}(T.shapeFlag&256||gt&&Oo(gt.vnode)&>.vnode.shapeFlag&256)&&b.a&&ce(b.a,R),b.isMounted=!0,T=_=Z=null}},V=b.effect=new Hn(B,()=>Kn(W),b.scope),W=b.update=()=>V.run();W.id=b.uid,lr(b,!0),W()},ft=(b,T,_)=>{T.component=b;const Z=b.vnode.props;b.vnode=T,b.next=null,Du(b,T.props,Z,_),Tu(b,T.children,_),Qr(),aa(),Br()},Y=(b,T,_,Z,R,G,X,B,V=!1)=>{const W=b&&b.children,K=b?b.shapeFlag:0,tt=T.children,{patchFlag:rt,shapeFlag:et}=T;if(rt>0){if(rt&128){F(W,tt,_,Z,R,G,X,B,V);return}else if(rt&256){C(W,tt,_,Z,R,G,X,B,V);return}}et&8?(K&16&&Nt(W,R,G),tt!==W&&M(_,tt)):K&16?et&16?F(W,tt,_,Z,R,G,X,B,V):Nt(W,R,G,!0):(K&8&&M(_,""),et&16&&E(tt,_,Z,R,G,X,B,V))},C=(b,T,_,Z,R,G,X,B,V)=>{b=b||Tr,T=T||Tr;const W=b.length,K=T.length,tt=Math.min(W,K);let rt;for(rt=0;rtK?Nt(b,R,G,!0,!1,tt):E(T,_,Z,R,G,X,B,V,tt)},F=(b,T,_,Z,R,G,X,B,V)=>{let W=0;const K=T.length;let tt=b.length-1,rt=K-1;for(;W<=tt&&W<=rt;){const et=b[W],lt=T[W]=V?rr(T[W]):Ue(T[W]);if(qr(et,lt))w(et,lt,_,null,R,G,X,B,V);else break;W++}for(;W<=tt&&W<=rt;){const et=b[tt],lt=T[rt]=V?rr(T[rt]):Ue(T[rt]);if(qr(et,lt))w(et,lt,_,null,R,G,X,B,V);else break;tt--,rt--}if(W>tt){if(W<=rt){const et=rt+1,lt=etrt)for(;W<=tt;)$(b[W],R,G,!0),W++;else{const et=W,lt=W,gt=new Map;for(W=lt;W<=rt;W++){const Bt=T[W]=V?rr(T[W]):Ue(T[W]);Bt.key!=null&>.set(Bt.key,W)}let ht,vt=0;const _t=rt-lt+1;let It=!1,Kt=0;const Ft=new Array(_t);for(W=0;W<_t;W++)Ft[W]=0;for(W=et;W<=tt;W++){const Bt=b[W];if(vt>=_t){$(Bt,R,G,!0);continue}let Vt;if(Bt.key!=null)Vt=gt.get(Bt.key);else for(ht=lt;ht<=rt;ht++)if(Ft[ht-lt]===0&&qr(Bt,T[ht])){Vt=ht;break}Vt===void 0?$(Bt,R,G,!0):(Ft[Vt-lt]=W+1,Vt>=Kt?Kt=Vt:It=!0,w(Bt,T[Vt],_,null,R,G,X,B,V),vt++)}const oe=It?Iu(Ft):Tr;for(ht=oe.length-1,W=_t-1;W>=0;W--){const Bt=lt+W,Vt=T[Bt],Ie=Bt+1{const{el:G,type:X,transition:B,children:V,shapeFlag:W}=b;if(W&6){P(b.component.subTree,T,_,Z);return}if(W&128){b.suspense.move(T,_,Z);return}if(W&64){X.move(b,T,_,at);return}if(X===Me){o(G,T,_);for(let tt=0;ttB.enter(G),R);else{const{leave:tt,delayLeave:rt,afterLeave:et}=B,lt=()=>o(G,T,_),gt=()=>{tt(G,()=>{lt(),et&&et()})};rt?rt(G,lt,gt):gt()}else o(G,T,_)},$=(b,T,_,Z=!1,R=!1)=>{const{type:G,props:X,ref:B,children:V,dynamicChildren:W,shapeFlag:K,patchFlag:tt,dirs:rt}=b;if(B!=null&&kn(B,null,_,b,!0),K&256){T.ctx.deactivate(b);return}const et=K&1&&rt,lt=!Oo(b);let gt;if(lt&&(gt=X&&X.onVnodeBeforeUnmount)&&_e(gt,T,b),K&6)zt(b.component,_,Z);else{if(K&128){b.suspense.unmount(_,Z);return}et&&cr(b,null,T,"beforeUnmount"),K&64?b.type.remove(b,T,_,R,at,Z):W&&(G!==Me||tt>0&&tt&64)?Nt(W,T,_,!1,!0):(G===Me&&tt&384||!R&&K&16)&&Nt(V,T,_),Z&&ct(b)}(lt&&(gt=X&&X.onVnodeUnmounted)||et)&&ce(()=>{gt&&_e(gt,T,b),et&&cr(b,null,T,"unmounted")},_)},ct=b=>{const{type:T,el:_,anchor:Z,transition:R}=b;if(T===Me){bt(_,Z);return}if(T===Nn){m(b);return}const G=()=>{n(_),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:X,delayLeave:B}=R,V=()=>X(_,G);B?B(b.el,G,V):V()}else G()},bt=(b,T)=>{let _;for(;b!==T;)_=k(b),n(b),b=_;n(T)},zt=(b,T,_)=>{const{bum:Z,scope:R,update:G,subTree:X,um:B}=b;Z&&hn(Z),R.stop(),G&&(G.active=!1,$(X,b,T,_)),B&&ce(B,T),ce(()=>{b.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},Nt=(b,T,_,Z=!1,R=!1,G=0)=>{for(let X=G;Xb.shapeFlag&6?D(b.component.subTree):b.shapeFlag&128?b.suspense.next():k(b.anchor||b.el),U=(b,T,_)=>{b==null?T._vnode&&$(T._vnode,null,null,!0):w(T._vnode||null,b,T,null,null,null,_),aa(),ds(),T._vnode=b},at={p:w,um:$,m:P,r:ct,mt:nt,mc:E,pc:Y,pbc:Q,n:D,o:t};let J,yt;return e&&([J,yt]=e(at)),{render:U,hydrate:J,createApp:bu(U,J)}}function lr({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function As(t,e,r=!1){const o=t.children,n=e.children;if(mt(o)&&mt(n))for(let a=0;a>1,t[r[l]]0&&(e[o]=r[a-1]),r[a]=o)}}for(a=r.length,c=r[a-1];a-- >0;)r[a]=c,c=e[c];return r}const Ou=t=>t.__isTeleport,Me=Symbol.for("v-fgt"),Jo=Symbol.for("v-txt"),hr=Symbol.for("v-cmt"),Nn=Symbol.for("v-stc"),to=[];let ze=null;function Lt(t=!1){to.push(ze=t?null:[])}function ku(){to.pop(),ze=to[to.length-1]||null}let so=1;function ha(t){so+=t}function Es(t){return t.dynamicChildren=so>0?ze||Tr:null,ku(),so>0&&ze&&ze.push(t),t}function St(t,e,r,o,n,a){return Es(wt(t,e,r,o,n,a,!0))}function Lu(t,e,r,o,n){return Es(Be(t,e,r,o,n,!0))}function Cu(t){return t?t.__v_isVNode===!0:!1}function qr(t,e){return t.type===e.type&&t.key===e.key}const Ko="__vInternal",Is=({key:t})=>t??null,Lo=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Wt(t)||re(t)||jt(t)?{i:Qe,r:t,k:e,f:!!r}:t:null);function wt(t,e=null,r=null,o=0,n=null,a=t===Me?0:1,c=!1,l=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Is(e),ref:e&&Lo(e),scopeId:fs,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:o,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Qe};return l?(ri(d,r),a&128&&t.normalize(d)):r&&(d.shapeFlag|=Wt(r)?8:16),so>0&&!c&&ze&&(d.patchFlag>0||a&6)&&d.patchFlag!==32&&ze.push(d),d}const Be=Su;function Su(t,e=null,r=null,o=0,n=null,a=!1){if((!t||t===Mu)&&(t=hr),Cu(t)){const l=kr(t,e,!0);return r&&ri(l,r),so>0&&!a&&ze&&(l.shapeFlag&6?ze[ze.indexOf(t)]=l:ze.push(l)),l.patchFlag|=-2,l}if(Zu(t)&&(t=t.__vccOpts),e){e=Os(e);let{class:l,style:d}=e;l&&!Wt(l)&&(e.class=po(l)),Rt(d)&&(ns(d)&&!mt(d)&&(d=$t({},d)),e.style=Yr(d))}const c=Wt(t)?1:tu(t)?128:Ou(t)?64:Rt(t)?4:jt(t)?2:0;return wt(t,e,r,o,n,c,a,!0)}function Os(t){return t?ns(t)||Ko in t?$t({},t):t:null}function kr(t,e,r=!1){const{props:o,ref:n,patchFlag:a,children:c}=t,l=e?_u(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Is(l),ref:e&&e.ref?r&&n?mt(n)?n.concat(Lo(e)):[n,Lo(e)]:Lo(e):n,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:c,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Me?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&kr(t.ssContent),ssFallback:t.ssFallback&&kr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function ks(t=" ",e=0){return Be(Jo,null,t,e)}function Te(t="",e=!1){return e?(Lt(),Lu(hr,null,t)):Be(hr,null,t)}function Ue(t){return t==null||typeof t=="boolean"?Be(hr):mt(t)?Be(Me,null,t.slice()):typeof t=="object"?rr(t):Be(Jo,null,String(t))}function rr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:kr(t)}function ri(t,e){let r=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(mt(e))r=16;else if(typeof e=="object")if(o&65){const n=e.default;n&&(n._c&&(n._d=!1),ri(t,n()),n._c&&(n._d=!0));return}else{r=32;const n=e._;!n&&!(Ko in e)?e._ctx=Qe:n===3&&Qe&&(Qe.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else jt(e)?(e={default:e,_ctx:Qe},r=32):(e=String(e),o&64?(r=16,e=[ks(e)]):r=8);t.children=e,t.shapeFlag|=r}function _u(...t){const e={};for(let r=0;ree=t),oi=t=>{jr.length>1?jr.forEach(e=>e(t)):jr[0](t)};const Lr=t=>{oi(t),t.scope.on()},fr=()=>{ee&&ee.scope.off(),oi(null)};function Ls(t){return t.vnode.shapeFlag&4}let co=!1;function Bu(t,e=!1){co=e;const{props:r,children:o}=t.vnode,n=Ls(t);vu(t,r,n,e),zu(t,o);const a=n?Pu(t,e):void 0;return co=!1,a}function Pu(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=is(new Proxy(t.ctx,fu));const{setup:o}=r;if(o){const n=t.setupContext=o.length>1?Hu(t):null;Lr(t),Qr();const a=nr(o,t,0,[t.props,n]);if(Br(),fr(),Pa(a)){if(a.then(fr,fr),e)return a.then(c=>{ya(t,c,e)}).catch(c=>{Vo(c,t,0)});t.asyncDep=a}else ya(t,a,e)}else Cs(t,e)}function ya(t,e,r){jt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Rt(e)&&(t.setupState=cs(e)),Cs(t,r)}let Na;function Cs(t,e,r){const o=t.type;if(!t.render){if(!e&&Na&&!o.render){const n=o.template||ti(t).template;if(n){const{isCustomElement:a,compilerOptions:c}=t.appContext.config,{delimiters:l,compilerOptions:d}=o,p=$t($t({isCustomElement:a,delimiters:l},c),d);o.render=Na(n,p)}}t.render=o.render||Ae}Lr(t),Qr(),gu(t),Br(),fr()}function Ru(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return de(t,"get","$attrs"),e[r]}}))}function Hu(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return Ru(t)},slots:t.slots,emit:t.emit,expose:e}}function ni(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(cs(is(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Xr)return Xr[r](t)},has(e,r){return r in e||r in Xr}}))}function Zu(t){return jt(t)&&"__vccOpts"in t}const Jt=(t,e)=>Rl(t,e,co),Fu=Symbol.for("v-scx"),Gu=()=>ko(Fu),Wu="3.3.4",Vu="http://www.w3.org/2000/svg",pr=typeof document<"u"?document:null,ma=pr&&pr.createElement("template"),qu={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,o)=>{const n=e?pr.createElementNS(Vu,t):pr.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&n.setAttribute("multiple",o.multiple),n},createText:t=>pr.createTextNode(t),createComment:t=>pr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>pr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,o,n,a){const c=r?r.previousSibling:e.lastChild;if(n&&(n===a||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),r),!(n===a||!(n=n.nextSibling)););else{ma.innerHTML=o?`${t}`:t;const l=ma.content;if(o){const d=l.firstChild;for(;d.firstChild;)l.appendChild(d.firstChild);l.removeChild(d)}e.insertBefore(l,r)}return[c?c.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function $u(t,e,r){const o=t._vtc;o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function Ju(t,e,r){const o=t.style,n=Wt(r);if(r&&!n){if(e&&!Wt(e))for(const a in e)r[a]==null&&Ln(o,a,"");for(const a in r)Ln(o,a,r[a])}else{const a=o.display;n?e!==r&&(o.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(o.display=a)}}const ba=/\s*!important$/;function Ln(t,e,r){if(mt(r))r.forEach(o=>Ln(t,e,o));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const o=Ku(t,e);ba.test(r)?t.setProperty(De(o),r.replace(ba,""),"important"):t[o]=r}}const xa=["Webkit","Moz","ms"],mn={};function Ku(t,e){const r=mn[e];if(r)return r;let o=Ve(e);if(o!=="filter"&&o in t)return mn[e]=o;o=Za(o);for(let n=0;nbn||(id.then(()=>bn=0),bn=Date.now());function sd(t,e){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Ee(cd(o,r.value),e,5,[o])};return r.value=t,r.attached=ad(),r}function cd(t,e){if(mt(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(o=>n=>!n._stopped&&o&&o(n))}else return e}const ja=/^on[a-z]/,ld=(t,e,r,o,n=!1,a,c,l,d)=>{e==="class"?$u(t,o,n):e==="style"?Ju(t,r,o):Zo(e)?Yn(e)||od(t,e,r,o,c):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):ud(t,e,o,n))?td(t,e,o,a,c,l,d):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),Xu(t,e,o,n))};function ud(t,e,r,o){return o?!!(e==="innerHTML"||e==="textContent"||e in t&&ja.test(e)&&jt(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||ja.test(e)&&Wt(r)?!1:e in t}function er(t,e){const r=Je(t);class o extends ii{constructor(a){super(r,a,e)}}return o.def=r,o}const dd=typeof HTMLElement<"u"?HTMLElement:class{};class ii extends dd{constructor(e,r={},o){super(),this._def=e,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Jn(()=>{this._connected||(Ta(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o{for(const n of o)this._setAttr(n.attributeName)}).observe(this,{attributes:!0});const e=(o,n=!1)=>{const{props:a,styles:c}=o;let l;if(a&&!mt(a))for(const d in a){const p=a[d];(p===Number||p&&p.type===Number)&&(d in this._props&&(this._props[d]=Ji(this._props[d])),(l||(l=Object.create(null)))[Ve(d)]=!0)}this._numberProps=l,n&&this._resolveProps(o),this._applyStyles(c),this._update()},r=this._def.__asyncLoader;r?r().then(o=>e(o,!0)):e(this._def)}_resolveProps(e){const{props:r}=e,o=mt(r)?r:Object.keys(r||{});for(const n of Object.keys(this))n[0]!=="_"&&o.includes(n)&&this._setProp(n,this[n],!0,!1);for(const n of o.map(Ve))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(a){this._setProp(n,a)}})}_setAttr(e){let r=this.getAttribute(e);const o=Ve(e);this._numberProps&&this._numberProps[o]&&(r=Ji(r)),this._setProp(o,r,!1)}_getProp(e){return this._props[e]}_setProp(e,r,o=!0,n=!0){r!==this._props[e]&&(this._props[e]=r,n&&this._instance&&this._update(),o&&(r===!0?this.setAttribute(De(e),""):typeof r=="string"||typeof r=="number"?this.setAttribute(De(e),r+""):r||this.removeAttribute(De(e))))}_update(){Ta(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Be(this._def,$t({},this._props));return this._instance||(e.ce=r=>{this._instance=r,r.isCE=!0;const o=(a,c)=>{this.dispatchEvent(new CustomEvent(a,{detail:c}))};r.emit=(a,...c)=>{o(a,c),De(a)!==a&&o(De(a),c)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof ii){r.parent=n._instance,r.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(r=>{const o=document.createElement("style");o.textContent=r,this.shadowRoot.appendChild(o)})}}const pd=$t({patchProp:ld},qu);let za;function Md(){return za||(za=Au(pd))}const Ta=(...t)=>{Md().render(...t)};class Zt{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(e,r=!1){return this.onePassHasher.start().appendStr(e).end(r)}static hashAsciiStr(e,r=!1){return this.onePassHasher.start().appendAsciiStr(e).end(r)}static _hex(e){const r=Zt.hexChars,o=Zt.hexOut;let n,a,c,l;for(l=0;l<4;l+=1)for(a=l*8,n=e[l],c=0;c<8;c+=2)o[a+1+c]=r.charAt(n&15),n>>>=4,o[a+0+c]=r.charAt(n&15),n>>>=4;return o.join("")}static _md5cycle(e,r){let o=e[0],n=e[1],a=e[2],c=e[3];o+=(n&a|~n&c)+r[0]-680876936|0,o=(o<<7|o>>>25)+n|0,c+=(o&n|~o&a)+r[1]-389564586|0,c=(c<<12|c>>>20)+o|0,a+=(c&o|~c&n)+r[2]+606105819|0,a=(a<<17|a>>>15)+c|0,n+=(a&c|~a&o)+r[3]-1044525330|0,n=(n<<22|n>>>10)+a|0,o+=(n&a|~n&c)+r[4]-176418897|0,o=(o<<7|o>>>25)+n|0,c+=(o&n|~o&a)+r[5]+1200080426|0,c=(c<<12|c>>>20)+o|0,a+=(c&o|~c&n)+r[6]-1473231341|0,a=(a<<17|a>>>15)+c|0,n+=(a&c|~a&o)+r[7]-45705983|0,n=(n<<22|n>>>10)+a|0,o+=(n&a|~n&c)+r[8]+1770035416|0,o=(o<<7|o>>>25)+n|0,c+=(o&n|~o&a)+r[9]-1958414417|0,c=(c<<12|c>>>20)+o|0,a+=(c&o|~c&n)+r[10]-42063|0,a=(a<<17|a>>>15)+c|0,n+=(a&c|~a&o)+r[11]-1990404162|0,n=(n<<22|n>>>10)+a|0,o+=(n&a|~n&c)+r[12]+1804603682|0,o=(o<<7|o>>>25)+n|0,c+=(o&n|~o&a)+r[13]-40341101|0,c=(c<<12|c>>>20)+o|0,a+=(c&o|~c&n)+r[14]-1502002290|0,a=(a<<17|a>>>15)+c|0,n+=(a&c|~a&o)+r[15]+1236535329|0,n=(n<<22|n>>>10)+a|0,o+=(n&c|a&~c)+r[1]-165796510|0,o=(o<<5|o>>>27)+n|0,c+=(o&a|n&~a)+r[6]-1069501632|0,c=(c<<9|c>>>23)+o|0,a+=(c&n|o&~n)+r[11]+643717713|0,a=(a<<14|a>>>18)+c|0,n+=(a&o|c&~o)+r[0]-373897302|0,n=(n<<20|n>>>12)+a|0,o+=(n&c|a&~c)+r[5]-701558691|0,o=(o<<5|o>>>27)+n|0,c+=(o&a|n&~a)+r[10]+38016083|0,c=(c<<9|c>>>23)+o|0,a+=(c&n|o&~n)+r[15]-660478335|0,a=(a<<14|a>>>18)+c|0,n+=(a&o|c&~o)+r[4]-405537848|0,n=(n<<20|n>>>12)+a|0,o+=(n&c|a&~c)+r[9]+568446438|0,o=(o<<5|o>>>27)+n|0,c+=(o&a|n&~a)+r[14]-1019803690|0,c=(c<<9|c>>>23)+o|0,a+=(c&n|o&~n)+r[3]-187363961|0,a=(a<<14|a>>>18)+c|0,n+=(a&o|c&~o)+r[8]+1163531501|0,n=(n<<20|n>>>12)+a|0,o+=(n&c|a&~c)+r[13]-1444681467|0,o=(o<<5|o>>>27)+n|0,c+=(o&a|n&~a)+r[2]-51403784|0,c=(c<<9|c>>>23)+o|0,a+=(c&n|o&~n)+r[7]+1735328473|0,a=(a<<14|a>>>18)+c|0,n+=(a&o|c&~o)+r[12]-1926607734|0,n=(n<<20|n>>>12)+a|0,o+=(n^a^c)+r[5]-378558|0,o=(o<<4|o>>>28)+n|0,c+=(o^n^a)+r[8]-2022574463|0,c=(c<<11|c>>>21)+o|0,a+=(c^o^n)+r[11]+1839030562|0,a=(a<<16|a>>>16)+c|0,n+=(a^c^o)+r[14]-35309556|0,n=(n<<23|n>>>9)+a|0,o+=(n^a^c)+r[1]-1530992060|0,o=(o<<4|o>>>28)+n|0,c+=(o^n^a)+r[4]+1272893353|0,c=(c<<11|c>>>21)+o|0,a+=(c^o^n)+r[7]-155497632|0,a=(a<<16|a>>>16)+c|0,n+=(a^c^o)+r[10]-1094730640|0,n=(n<<23|n>>>9)+a|0,o+=(n^a^c)+r[13]+681279174|0,o=(o<<4|o>>>28)+n|0,c+=(o^n^a)+r[0]-358537222|0,c=(c<<11|c>>>21)+o|0,a+=(c^o^n)+r[3]-722521979|0,a=(a<<16|a>>>16)+c|0,n+=(a^c^o)+r[6]+76029189|0,n=(n<<23|n>>>9)+a|0,o+=(n^a^c)+r[9]-640364487|0,o=(o<<4|o>>>28)+n|0,c+=(o^n^a)+r[12]-421815835|0,c=(c<<11|c>>>21)+o|0,a+=(c^o^n)+r[15]+530742520|0,a=(a<<16|a>>>16)+c|0,n+=(a^c^o)+r[2]-995338651|0,n=(n<<23|n>>>9)+a|0,o+=(a^(n|~c))+r[0]-198630844|0,o=(o<<6|o>>>26)+n|0,c+=(n^(o|~a))+r[7]+1126891415|0,c=(c<<10|c>>>22)+o|0,a+=(o^(c|~n))+r[14]-1416354905|0,a=(a<<15|a>>>17)+c|0,n+=(c^(a|~o))+r[5]-57434055|0,n=(n<<21|n>>>11)+a|0,o+=(a^(n|~c))+r[12]+1700485571|0,o=(o<<6|o>>>26)+n|0,c+=(n^(o|~a))+r[3]-1894986606|0,c=(c<<10|c>>>22)+o|0,a+=(o^(c|~n))+r[10]-1051523|0,a=(a<<15|a>>>17)+c|0,n+=(c^(a|~o))+r[1]-2054922799|0,n=(n<<21|n>>>11)+a|0,o+=(a^(n|~c))+r[8]+1873313359|0,o=(o<<6|o>>>26)+n|0,c+=(n^(o|~a))+r[15]-30611744|0,c=(c<<10|c>>>22)+o|0,a+=(o^(c|~n))+r[6]-1560198380|0,a=(a<<15|a>>>17)+c|0,n+=(c^(a|~o))+r[13]+1309151649|0,n=(n<<21|n>>>11)+a|0,o+=(a^(n|~c))+r[4]-145523070|0,o=(o<<6|o>>>26)+n|0,c+=(n^(o|~a))+r[11]-1120210379|0,c=(c<<10|c>>>22)+o|0,a+=(o^(c|~n))+r[2]+718787259|0,a=(a<<15|a>>>17)+c|0,n+=(c^(a|~o))+r[9]-343485551|0,n=(n<<21|n>>>11)+a|0,e[0]=o+e[0]|0,e[1]=n+e[1]|0,e[2]=a+e[2]|0,e[3]=c+e[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(Zt.stateIdentity),this}appendStr(e){const r=this._buffer8,o=this._buffer32;let n=this._bufferLength,a,c;for(c=0;c>>6)+192,r[n++]=a&63|128;else if(a<55296||a>56319)r[n++]=(a>>>12)+224,r[n++]=a>>>6&63|128,r[n++]=a&63|128;else{if(a=(a-55296)*1024+(e.charCodeAt(++c)-56320)+65536,a>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");r[n++]=(a>>>18)+240,r[n++]=a>>>12&63|128,r[n++]=a>>>6&63|128,r[n++]=a&63|128}n>=64&&(this._dataLength+=64,Zt._md5cycle(this._state,o),n-=64,o[0]=o[16])}return this._bufferLength=n,this}appendAsciiStr(e){const r=this._buffer8,o=this._buffer32;let n=this._bufferLength,a,c=0;for(;;){for(a=Math.min(e.length-c,64-n);a--;)r[n++]=e.charCodeAt(c++);if(n<64)break;this._dataLength+=64,Zt._md5cycle(this._state,o),n=0}return this._bufferLength=n,this}appendByteArray(e){const r=this._buffer8,o=this._buffer32;let n=this._bufferLength,a,c=0;for(;;){for(a=Math.min(e.length-c,64-n);a--;)r[n++]=e[c++];if(n<64)break;this._dataLength+=64,Zt._md5cycle(this._state,o),n=0}return this._bufferLength=n,this}getState(){const e=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[e[0],e[1],e[2],e[3]]}}setState(e){const r=e.buffer,o=e.state,n=this._state;let a;for(this._dataLength=e.length,this._bufferLength=e.buflen,n[0]=o[0],n[1]=o[1],n[2]=o[2],n[3]=o[3],a=0;a>2)+1;this._dataLength+=r;const c=this._dataLength*8;if(o[r]=128,o[r+1]=o[r+2]=o[r+3]=0,n.set(Zt.buffer32Identity.subarray(a),a),r>55&&(Zt._md5cycle(this._state,n),n.set(Zt.buffer32Identity)),c<=4294967295)n[14]=c;else{const l=c.toString(16).match(/(.*?)(.{0,8})$/);if(l===null)return;const d=parseInt(l[2],16),p=parseInt(l[1],16)||0;n[14]=d,n[15]=p}return Zt._md5cycle(this._state,n),e?this._state:Zt._hex(this._state)}}Zt.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);Zt.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);Zt.hexChars="0123456789abcdef";Zt.hexOut=[];Zt.onePassHasher=new Zt;if(Zt.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");/* - * Component - * @version: 1.3.0 - * @author: HtmlStream - * @license: Licensed under MIT (https://preline.co/docs/license.html) - * Copyright 2023 Htmlstream - */class Ss{constructor(e,r){this.$collection=[],this.selector=e,this.config=r,this.events={}}_fireEvent(e,r=null){this.events.hasOwnProperty(e)&&this.events[e](r)}_dispatch(e,r,o=null){const n=new CustomEvent(e,{detail:{payload:o},bubbles:!0,cancelable:!0,composed:!1});r.dispatchEvent(n)}on(e,r){this.events[e]=r}afterTransition(e,r){const o=()=>{r(),e.removeEventListener("transitionend",o,!0)};window.getComputedStyle(e,null).getPropertyValue("transition")!=="all 0s ease 0s"?e.addEventListener("transitionend",o,!0):r()}getClassProperty(e,r,o=""){return(window.getComputedStyle(e).getPropertyValue(r)||o).replace(" ","")}}var le="top",he="bottom",we="right",ue="left",ai="auto",Mo=[le,he,we,ue],Cr="start",lo="end",fd="clippingParents",_s="viewport",$r="popper",gd="reference",Aa=Mo.reduce(function(t,e){return t.concat([e+"-"+Cr,e+"-"+lo])},[]),Us=[].concat(Mo,[ai]).reduce(function(t,e){return t.concat([e,e+"-"+Cr,e+"-"+lo])},[]),hd="beforeRead",wd="read",yd="afterRead",Nd="beforeMain",md="main",bd="afterMain",xd="beforeWrite",vd="write",Dd="afterWrite",jd=[hd,wd,yd,Nd,md,bd,xd,vd,Dd];function Re(t){return t?(t.nodeName||"").toLowerCase():null}function fe(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function wr(t){var e=fe(t).Element;return t instanceof e||t instanceof Element}function ge(t){var e=fe(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function si(t){if(typeof ShadowRoot>"u")return!1;var e=fe(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function zd(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var o=e.styles[r]||{},n=e.attributes[r]||{},a=e.elements[r];!ge(a)||!Re(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var l=n[c];l===!1?a.removeAttribute(c):a.setAttribute(c,l===!0?"":l)}))})}function Td(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],a=e.attributes[o]||{},c=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:r[o]),l=c.reduce(function(d,p){return d[p]="",d},{});!ge(n)||!Re(n)||(Object.assign(n.style,l),Object.keys(a).forEach(function(d){n.removeAttribute(d)}))})}}const Ad={name:"applyStyles",enabled:!0,phase:"write",fn:zd,effect:Td,requires:["computeStyles"]};function Pe(t){return t.split("-")[0]}var gr=Math.max,Ro=Math.min,Sr=Math.round;function Cn(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ys(){return!/^((?!chrome|android).)*safari/i.test(Cn())}function _r(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var o=t.getBoundingClientRect(),n=1,a=1;e&&ge(t)&&(n=t.offsetWidth>0&&Sr(o.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Sr(o.height)/t.offsetHeight||1);var c=wr(t)?fe(t):window,l=c.visualViewport,d=!Ys()&&r,p=(o.left+(d&&l?l.offsetLeft:0))/n,M=(o.top+(d&&l?l.offsetTop:0))/a,A=o.width/n,k=o.height/a;return{width:A,height:k,top:M,right:p+A,bottom:M+k,left:p,x:p,y:M}}function ci(t){var e=_r(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function Qs(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&si(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function $e(t){return fe(t).getComputedStyle(t)}function Ed(t){return["table","td","th"].indexOf(Re(t))>=0}function ar(t){return((wr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xo(t){return Re(t)==="html"?t:t.assignedSlot||t.parentNode||(si(t)?t.host:null)||ar(t)}function Ea(t){return!ge(t)||$e(t).position==="fixed"?null:t.offsetParent}function Id(t){var e=/firefox/i.test(Cn()),r=/Trident/i.test(Cn());if(r&&ge(t)){var o=$e(t);if(o.position==="fixed")return null}var n=Xo(t);for(si(n)&&(n=n.host);ge(n)&&["html","body"].indexOf(Re(n))<0;){var a=$e(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function fo(t){for(var e=fe(t),r=Ea(t);r&&Ed(r)&&$e(r).position==="static";)r=Ea(r);return r&&(Re(r)==="html"||Re(r)==="body"&&$e(r).position==="static")?e:r||Id(t)||e}function li(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function eo(t,e,r){return gr(t,Ro(e,r))}function Od(t,e,r){var o=eo(t,e,r);return o>r?r:o}function Bs(){return{top:0,right:0,bottom:0,left:0}}function Ps(t){return Object.assign({},Bs(),t)}function Rs(t,e){return e.reduce(function(r,o){return r[o]=t,r},{})}var kd=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Ps(typeof e!="number"?e:Rs(e,Mo))};function Ld(t){var e,r=t.state,o=t.name,n=t.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,l=Pe(r.placement),d=li(l),p=[ue,we].indexOf(l)>=0,M=p?"height":"width";if(!(!a||!c)){var A=kd(n.padding,r),k=ci(a),O=d==="y"?le:ue,x=d==="y"?he:we,w=r.rects.reference[M]+r.rects.reference[d]-c[d]-r.rects.popper[M],h=c[d]-r.rects.reference[d],g=fo(a),N=g?d==="y"?g.clientHeight||0:g.clientWidth||0:0,v=w/2-h/2,m=A[O],I=N-k[M]-A[x],z=N/2-k[M]/2+v,L=eo(m,z,I),E=d;r.modifiersData[o]=(e={},e[E]=L,e.centerOffset=L-z,e)}}function Cd(t){var e=t.state,r=t.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Qs(e.elements.popper,n)&&(e.elements.arrow=n))}const Sd={name:"arrow",enabled:!0,phase:"main",fn:Ld,effect:Cd,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ur(t){return t.split("-")[1]}var _d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ud(t,e){var r=t.x,o=t.y,n=e.devicePixelRatio||1;return{x:Sr(r*n)/n||0,y:Sr(o*n)/n||0}}function Ia(t){var e,r=t.popper,o=t.popperRect,n=t.placement,a=t.variation,c=t.offsets,l=t.position,d=t.gpuAcceleration,p=t.adaptive,M=t.roundOffsets,A=t.isFixed,k=c.x,O=k===void 0?0:k,x=c.y,w=x===void 0?0:x,h=typeof M=="function"?M({x:O,y:w}):{x:O,y:w};O=h.x,w=h.y;var g=c.hasOwnProperty("x"),N=c.hasOwnProperty("y"),v=ue,m=le,I=window;if(p){var z=fo(r),L="clientHeight",E="clientWidth";if(z===fe(r)&&(z=ar(r),$e(z).position!=="static"&&l==="absolute"&&(L="scrollHeight",E="scrollWidth")),z=z,n===le||(n===ue||n===we)&&a===lo){m=he;var H=A&&z===I&&I.visualViewport?I.visualViewport.height:z[L];w-=H-o.height,w*=d?1:-1}if(n===ue||(n===le||n===he)&&a===lo){v=we;var Q=A&&z===I&&I.visualViewport?I.visualViewport.width:z[E];O-=Q-o.width,O*=d?1:-1}}var ot=Object.assign({position:l},p&&_d),dt=M===!0?Ud({x:O,y:w},fe(r)):{x:O,y:w};if(O=dt.x,w=dt.y,d){var pt;return Object.assign({},ot,(pt={},pt[m]=N?"0":"",pt[v]=g?"0":"",pt.transform=(I.devicePixelRatio||1)<=1?"translate("+O+"px, "+w+"px)":"translate3d("+O+"px, "+w+"px, 0)",pt))}return Object.assign({},ot,(e={},e[m]=N?w+"px":"",e[v]=g?O+"px":"",e.transform="",e))}function Yd(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,l=r.roundOffsets,d=l===void 0?!0:l,p={placement:Pe(e.placement),variation:Ur(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ia(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ia(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Qd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yd,data:{}};var To={passive:!0};function Bd(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,l=c===void 0?!0:c,d=fe(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&p.forEach(function(M){M.addEventListener("scroll",r.update,To)}),l&&d.addEventListener("resize",r.update,To),function(){a&&p.forEach(function(M){M.removeEventListener("scroll",r.update,To)}),l&&d.removeEventListener("resize",r.update,To)}}const Pd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bd,data:{}};var Rd={left:"right",right:"left",bottom:"top",top:"bottom"};function Co(t){return t.replace(/left|right|bottom|top/g,function(e){return Rd[e]})}var Hd={start:"end",end:"start"};function Oa(t){return t.replace(/start|end/g,function(e){return Hd[e]})}function ui(t){var e=fe(t),r=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:r,scrollTop:o}}function di(t){return _r(ar(t)).left+ui(t).scrollLeft}function Zd(t,e){var r=fe(t),o=ar(t),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,l=0,d=0;if(n){a=n.width,c=n.height;var p=Ys();(p||!p&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:c,x:l+di(t),y:d}}function Fd(t){var e,r=ar(t),o=ui(t),n=(e=t.ownerDocument)==null?void 0:e.body,a=gr(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=gr(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-o.scrollLeft+di(t),d=-o.scrollTop;return $e(n||r).direction==="rtl"&&(l+=gr(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:l,y:d}}function pi(t){var e=$e(t),r=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Hs(t){return["html","body","#document"].indexOf(Re(t))>=0?t.ownerDocument.body:ge(t)&&pi(t)?t:Hs(Xo(t))}function ro(t,e){var r;e===void 0&&(e=[]);var o=Hs(t),n=o===((r=t.ownerDocument)==null?void 0:r.body),a=fe(o),c=n?[a].concat(a.visualViewport||[],pi(o)?o:[]):o,l=e.concat(c);return n?l:l.concat(ro(Xo(c)))}function Sn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Gd(t,e){var r=_r(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function ka(t,e,r){return e===_s?Sn(Zd(t,r)):wr(e)?Gd(e,r):Sn(Fd(ar(t)))}function Wd(t){var e=ro(Xo(t)),r=["absolute","fixed"].indexOf($e(t).position)>=0,o=r&&ge(t)?fo(t):t;return wr(o)?e.filter(function(n){return wr(n)&&Qs(n,o)&&Re(n)!=="body"}):[]}function Vd(t,e,r,o){var n=e==="clippingParents"?Wd(t):[].concat(e),a=[].concat(n,[r]),c=a[0],l=a.reduce(function(d,p){var M=ka(t,p,o);return d.top=gr(M.top,d.top),d.right=Ro(M.right,d.right),d.bottom=Ro(M.bottom,d.bottom),d.left=gr(M.left,d.left),d},ka(t,c,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Zs(t){var e=t.reference,r=t.element,o=t.placement,n=o?Pe(o):null,a=o?Ur(o):null,c=e.x+e.width/2-r.width/2,l=e.y+e.height/2-r.height/2,d;switch(n){case le:d={x:c,y:e.y-r.height};break;case he:d={x:c,y:e.y+e.height};break;case we:d={x:e.x+e.width,y:l};break;case ue:d={x:e.x-r.width,y:l};break;default:d={x:e.x,y:e.y}}var p=n?li(n):null;if(p!=null){var M=p==="y"?"height":"width";switch(a){case Cr:d[p]=d[p]-(e[M]/2-r[M]/2);break;case lo:d[p]=d[p]+(e[M]/2-r[M]/2);break}}return d}function uo(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=o===void 0?t.placement:o,a=r.strategy,c=a===void 0?t.strategy:a,l=r.boundary,d=l===void 0?fd:l,p=r.rootBoundary,M=p===void 0?_s:p,A=r.elementContext,k=A===void 0?$r:A,O=r.altBoundary,x=O===void 0?!1:O,w=r.padding,h=w===void 0?0:w,g=Ps(typeof h!="number"?h:Rs(h,Mo)),N=k===$r?gd:$r,v=t.rects.popper,m=t.elements[x?N:k],I=Vd(wr(m)?m:m.contextElement||ar(t.elements.popper),d,M,c),z=_r(t.elements.reference),L=Zs({reference:z,element:v,strategy:"absolute",placement:n}),E=Sn(Object.assign({},v,L)),H=k===$r?E:z,Q={top:I.top-H.top+g.top,bottom:H.bottom-I.bottom+g.bottom,left:I.left-H.left+g.left,right:H.right-I.right+g.right},ot=t.modifiersData.offset;if(k===$r&&ot){var dt=ot[n];Object.keys(Q).forEach(function(pt){var nt=[we,he].indexOf(pt)>=0?1:-1,it=[le,he].indexOf(pt)>=0?"y":"x";Q[pt]+=dt[it]*nt})}return Q}function qd(t,e){e===void 0&&(e={});var r=e,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,l=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?Us:d,M=Ur(o),A=M?l?Aa:Aa.filter(function(x){return Ur(x)===M}):Mo,k=A.filter(function(x){return p.indexOf(x)>=0});k.length===0&&(k=A);var O=k.reduce(function(x,w){return x[w]=uo(t,{placement:w,boundary:n,rootBoundary:a,padding:c})[Pe(w)],x},{});return Object.keys(O).sort(function(x,w){return O[x]-O[w]})}function $d(t){if(Pe(t)===ai)return[];var e=Co(t);return[Oa(t),e,Oa(e)]}function Jd(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,l=c===void 0?!0:c,d=r.fallbackPlacements,p=r.padding,M=r.boundary,A=r.rootBoundary,k=r.altBoundary,O=r.flipVariations,x=O===void 0?!0:O,w=r.allowedAutoPlacements,h=e.options.placement,g=Pe(h),N=g===h,v=d||(N||!x?[Co(h)]:$d(h)),m=[h].concat(v).reduce(function(bt,zt){return bt.concat(Pe(zt)===ai?qd(e,{placement:zt,boundary:M,rootBoundary:A,padding:p,flipVariations:x,allowedAutoPlacements:w}):zt)},[]),I=e.rects.reference,z=e.rects.popper,L=new Map,E=!0,H=m[0],Q=0;Q=0,it=nt?"width":"height",Mt=uo(e,{placement:ot,boundary:M,rootBoundary:A,altBoundary:k,padding:p}),ft=nt?pt?we:ue:pt?he:le;I[it]>z[it]&&(ft=Co(ft));var Y=Co(ft),C=[];if(a&&C.push(Mt[dt]<=0),l&&C.push(Mt[ft]<=0,Mt[Y]<=0),C.every(function(bt){return bt})){H=ot,E=!1;break}L.set(ot,C)}if(E)for(var F=x?3:1,P=function(zt){var Nt=m.find(function(D){var U=L.get(D);if(U)return U.slice(0,zt).every(function(at){return at})});if(Nt)return H=Nt,"break"},$=F;$>0;$--){var ct=P($);if(ct==="break")break}e.placement!==H&&(e.modifiersData[o]._skip=!0,e.placement=H,e.reset=!0)}}const Kd={name:"flip",enabled:!0,phase:"main",fn:Jd,requiresIfExists:["offset"],data:{_skip:!1}};function La(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Ca(t){return[le,we,he,ue].some(function(e){return t[e]>=0})}function Xd(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,a=e.modifiersData.preventOverflow,c=uo(e,{elementContext:"reference"}),l=uo(e,{altBoundary:!0}),d=La(c,o),p=La(l,n,a),M=Ca(d),A=Ca(p);e.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:M,hasPopperEscaped:A},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":M,"data-popper-escaped":A})}const tp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xd};function ep(t,e,r){var o=Pe(t),n=[ue,le].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,c=a[0],l=a[1];return c=c||0,l=(l||0)*n,[ue,we].indexOf(o)>=0?{x:l,y:c}:{x:c,y:l}}function rp(t){var e=t.state,r=t.options,o=t.name,n=r.offset,a=n===void 0?[0,0]:n,c=Us.reduce(function(M,A){return M[A]=ep(A,e.rects,a),M},{}),l=c[e.placement],d=l.x,p=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=p),e.modifiersData[o]=c}const op={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rp};function np(t){var e=t.state,r=t.name;e.modifiersData[r]=Zs({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const ip={name:"popperOffsets",enabled:!0,phase:"read",fn:np,data:{}};function ap(t){return t==="x"?"y":"x"}function sp(t){var e=t.state,r=t.options,o=t.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,l=c===void 0?!1:c,d=r.boundary,p=r.rootBoundary,M=r.altBoundary,A=r.padding,k=r.tether,O=k===void 0?!0:k,x=r.tetherOffset,w=x===void 0?0:x,h=uo(e,{boundary:d,rootBoundary:p,padding:A,altBoundary:M}),g=Pe(e.placement),N=Ur(e.placement),v=!N,m=li(g),I=ap(m),z=e.modifiersData.popperOffsets,L=e.rects.reference,E=e.rects.popper,H=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,Q=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),ot=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,dt={x:0,y:0};if(z){if(a){var pt,nt=m==="y"?le:ue,it=m==="y"?he:we,Mt=m==="y"?"height":"width",ft=z[m],Y=ft+h[nt],C=ft-h[it],F=O?-E[Mt]/2:0,P=N===Cr?L[Mt]:E[Mt],$=N===Cr?-E[Mt]:-L[Mt],ct=e.elements.arrow,bt=O&&ct?ci(ct):{width:0,height:0},zt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Bs(),Nt=zt[nt],D=zt[it],U=eo(0,L[Mt],bt[Mt]),at=v?L[Mt]/2-F-U-Nt-Q.mainAxis:P-U-Nt-Q.mainAxis,J=v?-L[Mt]/2+F+U+D+Q.mainAxis:$+U+D+Q.mainAxis,yt=e.elements.arrow&&fo(e.elements.arrow),b=yt?m==="y"?yt.clientTop||0:yt.clientLeft||0:0,T=(pt=ot==null?void 0:ot[m])!=null?pt:0,_=ft+at-T-b,Z=ft+J-T,R=eo(O?Ro(Y,_):Y,ft,O?gr(C,Z):C);z[m]=R,dt[m]=R-ft}if(l){var G,X=m==="x"?le:ue,B=m==="x"?he:we,V=z[I],W=I==="y"?"height":"width",K=V+h[X],tt=V-h[B],rt=[le,ue].indexOf(g)!==-1,et=(G=ot==null?void 0:ot[I])!=null?G:0,lt=rt?K:V-L[W]-E[W]-et+Q.altAxis,gt=rt?V+L[W]+E[W]-et-Q.altAxis:tt,ht=O&&rt?Od(lt,V,gt):eo(O?lt:K,V,O?gt:tt);z[I]=ht,dt[I]=ht-V}e.modifiersData[o]=dt}}const cp={name:"preventOverflow",enabled:!0,phase:"main",fn:sp,requiresIfExists:["offset"]};function lp(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function up(t){return t===fe(t)||!ge(t)?ui(t):lp(t)}function dp(t){var e=t.getBoundingClientRect(),r=Sr(e.width)/t.offsetWidth||1,o=Sr(e.height)/t.offsetHeight||1;return r!==1||o!==1}function pp(t,e,r){r===void 0&&(r=!1);var o=ge(e),n=ge(e)&&dp(e),a=ar(e),c=_r(t,n,r),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!r)&&((Re(e)!=="body"||pi(a))&&(l=up(e)),ge(e)?(d=_r(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=di(a))),{x:c.left+l.scrollLeft-d.x,y:c.top+l.scrollTop-d.y,width:c.width,height:c.height}}function Mp(t){var e=new Map,r=new Set,o=[];t.forEach(function(a){e.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(l){if(!r.has(l)){var d=e.get(l);d&&n(d)}}),o.push(a)}return t.forEach(function(a){r.has(a.name)||n(a)}),o}function fp(t){var e=Mp(t);return jd.reduce(function(r,o){return r.concat(e.filter(function(n){return n.phase===o}))},[])}function gp(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function hp(t){var e=t.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(e).map(function(r){return e[r]})}var Sa={placement:"bottom",modifiers:[],strategy:"absolute"};function _a(){for(var t=arguments.length,e=new Array(t),r=0;r{const n=r.target.closest(this.selector);n&&this.getClassProperty(n,"--trigger")==="focus"&&this._focus(n),n&&this.getClassProperty(n,"--trigger")==="click"&&this._click(n)}),this.root.addEventListener("mousemove",r=>{const n=r.target.closest(this.selector);n&&this.getClassProperty(n,"--trigger")!=="focus"&&this.getClassProperty(n,"--trigger")!=="click"&&this._hover(n)})}_hover(r){if(r.classList.contains("show"))return;const o=r.querySelector(".hs-tooltip-toggle"),n=r.querySelector(".hs-tooltip-content"),a=this.getClassProperty(r,"--placement");So(o,n,{placement:a||"top",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.show(r);const c=l=>{l.relatedTarget.closest(this.selector)&&l.relatedTarget.closest(this.selector)==r||(this.hide(r),r.removeEventListener("mouseleave",c,!0))};r.addEventListener("mouseleave",c,!0)}_focus(r){const o=r.querySelector(".hs-tooltip-toggle"),n=r.querySelector(".hs-tooltip-content"),a=this.getClassProperty(r,"--placement"),c=this.getClassProperty(r,"--strategy");So(o,n,{placement:a||"top",strategy:c||"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.show(r);const l=()=>{this.hide(r),r.removeEventListener("blur",l,!0)};r.addEventListener("blur",l,!0)}_click(r){if(r.classList.contains("show"))return;const o=r.querySelector(".hs-tooltip-toggle"),n=r.querySelector(".hs-tooltip-content"),a=this.getClassProperty(r,"--placement"),c=this.getClassProperty(r,"--strategy");So(o,n,{placement:a||"top",strategy:c||"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.show(r);const l=d=>{setTimeout(()=>{this.hide(r),r.removeEventListener("click",l,!0),r.removeEventListener("blur",l,!0)})};r.addEventListener("blur",l,!0),r.addEventListener("click",l,!0)}show(r){r.querySelector(".hs-tooltip-content").classList.remove("hidden"),setTimeout(()=>{r.classList.add("show"),this._fireEvent("show",r),this._dispatch("show.hs.tooltip",r,r)})}hide(r){const o=r.querySelector(".hs-tooltip-content");r.classList.remove("show"),this._fireEvent("hide",r),this._dispatch("hide.hs.tooltip",r,r),this.afterTransition(o,()=>{r.classList.contains("show")||o.classList.add("hidden")})}}const mp={class:"hs-tooltip-toggle block text-center",href:"javascript:;",title:"Click for more information"},bp=["innerHTML"],xp={class:"hs-tooltip-content z-30 hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible hidden opacity-0 transition-opacity absolute invisible max-w-xs bg-white border border-gray-100 text-left rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700",role:"tooltip"},vp={class:"flex flex-col bg-white border shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]"},Dp=["src"],jp={class:"p-4 md:p-5"},zp={class:"text-lg font-bold text-gray-800 dark:text-white"},Tp={class:"mt-1 text-gray-800 dark:text-gray-400"},Ap={class:"mt-5 text-xs text-gray-500 dark:text-gray-500"},Ep=["href"],Ip=wt("img",{class:"max-w-[24px]",src:"https://upload.wikimedia.org/wikipedia/commons/7/77/Wikipedia_svg_logo.svg"},null,-1),Op=wt("span",{class:"ml-1"},"Wikipedia",-1),kp=[Ip,Op],Lp=Je({__name:"EntityInfobox.ce",props:{qid:{type:String},label:{type:String},description:{type:String},language:{type:String,default:"en"}},setup(t){const e=t;Ht(e,()=>{c.value=e.qid});const r=Et(null),o=Jt(()=>{var x,w;return(w=(x=r.value)==null?void 0:x.getRootNode())==null?void 0:w.host}),n=Jt(()=>{var x;return(x=o.value)==null?void 0:x.textContent}),a=Jt(()=>{var x;return(x=r==null?void 0:r.value)==null?void 0:x.parentNode});Ht(a,()=>{new Np(a.value).init()});const c=Et(e.qid);Ht(c,()=>{k(c.value)});const l=Et({}),d=Jt(()=>c.value&&l.value[c.value]),p=Jt(()=>{var x,w,h;return(h=(w=(x=d.value)==null?void 0:x.labels)==null?void 0:w[e.language])==null?void 0:h.value}),M=Jt(()=>{var x,w,h;return(h=(w=(x=d.value)==null?void 0:x.descriptions)==null?void 0:w[e.language])==null?void 0:h.value}),A=Jt(()=>d.value&&d.value.sitelinks[`${e.language}wiki`].url);Pr(()=>{k(c.value)});async function k(x){if(!x||l.value[x])return;let w=`https://www.wikidata.org/wiki/Special:EntityData/${x}.json`;const g=await(await fetch(w)).json();Object.values(g.entities).forEach(N=>{N.summaryText={},N.claims.P18&&(N.image=N.claims.P18[0].mainsnak.datavalue.value,N.thumbnail=O(N.image))}),l.value={...l.value,...g.entities}}function O(x,w=300){Array.isArray(x)&&(x=x[0]),x=x.split("/").pop(),x=decodeURIComponent(x).replace(/ /g,"_");const h=Zt.hashStr(x),g=x.split(".").pop();let N=`https://upload.wikimedia.org/wikipedia/commons${w?"/thumb":""}`;return N+=`/${h.slice(0,1)}/${h.slice(0,2)}/${x}`,w&&(N+=`/${w}px-${x}`,g==="svg"?N+=".png":(g==="tif"||g==="tiff")&&(N+=".jpg")),N}return(x,w)=>{var h;return Lt(),St("div",{ref_key:"root",ref:r,class:"hs-tooltip inline-block [--trigger:click] [--placement:top]"},[wt("a",mp,[wt("span",{innerHTML:n.value,class:"underline underline-offset-4 decoration-dotted"},null,8,bp),wt("div",xp,[wt("div",vp,[wt("img",{class:"w-full h-auto rounded-t-xl",src:(h=d.value)==null?void 0:h.thumbnail,alt:"Image Description"},null,8,Dp),wt("div",jp,[wt("h3",zp,Uo(p.value),1),wt("p",Tp,Uo(M.value),1),wt("div",Ap,[wt("a",{class:"inline-flex items-center gap-2 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-all text-sm",target:"_blank",href:A.value},kp,8,Ep)])])])])])],512)}}}),Cp=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-64{height:16rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}}.underline{text-decoration-color:green} -`,yr=(t,e)=>{const r=t.__vccOpts||t;for(const[o,n]of e)r[o]=n;return r},Sp=yr(Lp,[["styles",[Cp]]]),_p=["innerHTML","onClick"],Up=Je({__name:"Footer.ce",props:{sticky:{type:Boolean}},setup(t){const e=t,r=Et([]),o=Et(null),n=Jt(()=>{var O,x;return(x=(O=o.value)==null?void 0:O.getRootNode())==null?void 0:x.host});Jt(()=>{var O;return(O=o==null?void 0:o.value)==null?void 0:O.parentNode});const a=Et(!1);Ht(a,()=>c.open=a.value);let c;const l=Et();Ht(n,()=>{}),Ht(n,()=>d());function d(){var O;n.value.style.clear="both",e.sticky&&p(),r.value=Array.from((O=n.value)==null?void 0:O.querySelectorAll("li"))}function p(){n.value.classList.add("sticky");let O=n.value.offsetHeight;O+=parseInt(window.getComputedStyle(n.value).getPropertyValue("margin-top")),O+=parseInt(window.getComputedStyle(n.value).getPropertyValue("margin-bottom"));let x=document.querySelector("main");x&&(x.style.paddingBottom=`${O}px`),n.value.style.width=`${n.value.parentElement.clientWidth}px`,document.body.style.marginBottom="80px"}function M(O){return O?Object.fromEntries(O.split(";").filter(x=>x.trim()).map(x=>x.split(":").map(w=>w.trim()))):{}}function A(){let O=window.PREFIX,x=location.hostname.indexOf("github.io")!==-1,w=location.pathname.split("/").filter(h=>h).filter(h=>h!=="editor").slice(x?1:0).join("/");l.value=O&&w.indexOf(O)!==0?`${O}/${w}`:w,a.value=!0}function k(O,x){O.innerHTML==="view-code"&&(x.stopPropagation(),A())}return(O,x)=>(Lt(),St("div",{ref_key:"root",ref:o,class:"flex bg-slate-100 p-6 gap-8 mt-8 items-center w-full h-8 justify-between"},[(Lt(!0),St(Me,null,Xn(r.value,(w,h)=>(Lt(),St("div",{key:`li-${h}`,class:po(`flex items-center gap-4 whitespace-nowrap ${w.className}`),style:Yr(M(w.getAttribute("style")||"")),innerHTML:w.innerHTML,onClick:g=>k(w,g)},null,14,_p))),128))],512))}}),Yp=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-64{height:16rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}}img{height:36px}.push{margin-left:auto} -`,Qp=yr(Up,[["styles",[Yp]]]),Fs="https://iiif.juncture-digital.org";function Bp(t){return/^https*:\/\//.test(t)}async function Pp(t,e="en"){return(await Rp([t],e))[t]}let qt={};async function Rp(t=[],e="en"){let r=t.filter(o=>!qt[o]).map(o=>`()`);if(r.length>0){let o=` - SELECT ?item ?label ?description ?alias ?image ?logoImage ?coords ?pageBanner ?whosOnFirst ?wikipedia WHERE { - VALUES (?item) { ${r.join(" ")} } - ?item rdfs:label ?label . - FILTER (LANG(?label) = "${e}" || LANG(?label) = "en") - OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "${e}" || LANG(?description) = "en")} - OPTIONAL { ?item skos:altLabel ?alias . FILTER (LANG(?alias) = "${e}" || LANG(?alias) = "en")} - OPTIONAL { ?item wdt:P625 ?coords . } - OPTIONAL { ?item wdt:P18 ?image . } - OPTIONAL { ?item wdt:P154 ?logoImage . } - OPTIONAL { ?item wdt:P948 ?pageBanner . } - OPTIONAL { ?item wdt:P6766 ?whosOnFirst . } - OPTIONAL { ?wikipedia schema:about ?item; schema:isPartOf . } - }`,n=await fetch("https://query.wikidata.org/sparql",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json"},body:`query=${encodeURIComponent(o)}`});if(n.ok)return(await n.json()).results.bindings.forEach(c=>{let l=c.item.value.split("/").pop();qt[l]?c.alias&&qt[l].aliases.push(c.alias.value):(qt[l]={id:l,label:c.label.value},c.description&&(qt[l].description=c.description.value),c.alias&&(qt[l].aliases=[c.alias.value]),c.coords&&(qt[l].coords=c.coords.value.slice(6,-1).split(" ").reverse().join(",")),c.wikipedia&&(qt[l].wikipedia=c.wikipedia.value),c.pageBanner&&(qt[l].pageBanner=c.pageBanner.value),c.image&&(qt[l].image=c.image.value,qt[l].thumbnail=Ua(c.image.value,300)),c.logoImage&&(qt[l].logoImage=c.logoImage.value,qt[l].thumbnail||(qt[l].thumbnail=Ua(c.logoImage.value,300))),c.whosOnFirst&&(qt[l].geojson=Hp(c.whosOnFirst.value)))}),Object.fromEntries(t.filter(c=>qt[c]).map(c=>[c,qt[c]]))}return Object.fromEntries(t.filter(o=>qt[o]).map(o=>[o,qt[o]]))}function Ua(t,e){t=(Array.isArray(t)?t[0]:t).replace(/Special:FilePath\//,"File:").split("File:").pop(),t=decodeURIComponent(t).replace(/ /g,"_");const r=Zt.hashStr(t),o=t.split(".").pop();let n=`https://upload.wikimedia.org/wikipedia/commons${e?"/thumb":""}`;return n+=`/${r.slice(0,1)}/${r.slice(0,2)}/${t}`,e&&(n+=`/${e}px-${t}`,o==="svg"?n+=".png":(o==="tif"||o==="tiff")&&(n+=".jpg")),n}function Hp(t){let e=[];for(let r=0;rn.indexOf("http")===0?n:`${Fs}/${n}/manifest.json`),o=r.filter(n=>!Ao[n]);if(o.length>0){let n=o.map(l=>(e&&["localhost","iiif.juncture-digital.org"].includes(new URL(l).hostname)&&(l+="?refresh"),fetch(l))),a=await Promise.all(n),c=await Promise.all(a.map(l=>l.json()));if(n=c.filter(l=>!Array.isArray(l["@context"])&&parseFloat(l["@context"].split("/").slice(-2,-1).pop())<3).map(l=>fetch("https://iiif.juncture-digital.org/prezi2to3/",{method:"POST",body:JSON.stringify(l)})),n.length>0){a=await Promise.all(n);let l=await Promise.all(a.map(d=>d.json()));for(let d=0;d(A.id||A["@id"])===p);M&&(c[d]=M)}}return c.forEach((l,d)=>Ao[o[d]]=l),r.map(l=>Ao[l])}else return r.map(n=>Ao[n])}async function Gp(t,e,r){return new Promise(o=>{let{x:n,y:a,w:c,h:l}=e,{width:d,height:p}=r,M=new Image;M.crossOrigin="anonymous",n=n?n/100:0,a=a?a/100:0,c=c?c/100:0,l=l?l/100:0,M.onload=()=>{let A=M.width,k=M.height,O=c>0?A*c:A-A*n,x=l>0?k*l:k-k*a,w=O/x;w>1?p=d/w:d=p*w;const h=document.createElement("canvas"),g=h.getContext("2d");h.width=d,h.height=p,n=n*A,a=a*k,g==null||g.drawImage(M,n,a,O,x,0,0,d,p);let N=h.toDataURL();o(N)},M.src=t})}function Wp(t,e,r=1){const o=Gs(t,e);return o.length>=r?o[r-1]:null}function Gs(t,e,r=[]){if(r=r||[],e.items)for(let o=0;on[c]&&n[c]!==l)?r.push(n):Gs(t,n,r)}return r}function Vp(t,e=1){return Wp({type:"Annotation",motivation:"painting"},t,e).body}function qp(t){let e=(t==null?void 0:t.split("/"))||[],r="full",o="full",n="0",a="default",c="jpg",l=0;return{region:e.length>l&&e[l]?e[l]:r,size:e.length>l+1&&e[l+1]?e[l+1]:o,rotation:e.length>l+2&&e[l+2]?e[l+2]:n,quality:e.length>l+3&&e[l+3]?e[l+3]:a,format:e.length>l+4&&e[l+4]?e[l+4]:c}}const $p=["background","options","position","sticky","height","top"],Jp=["label","subtitle","logo","url","sticky","search-domain","search-cx","search-key","contact","height","background","alpha","offset"],Kp=["innerHTML"],Eo=100,Ya=400,Xp=Je({__name:"Header.ce",props:{label:{type:String},subtitle:{type:String},logo:{type:String},url:{type:String},contact:{type:String},searchDomain:{type:String},searchCx:{type:String},searchKey:{type:String},entities:{type:String},sticky:{type:Boolean},background:{type:String},options:{type:String},height:{type:Number},position:{type:String}},setup(t){const e=t,r=/^\w+:/,o=Et(null),n=Jt(()=>{var x,w;return(w=(x=o.value)==null?void 0:x.getRootNode())==null?void 0:w.host});Ht(n,()=>{M.value=n.value.querySelector("ul")});const a=Et(),c=Et([]),l=Et(),d=Et("#444A1E"),p=Et(),M=Et(),A=Et(e.height||Eo);Pr(()=>{console.log("mounted"),k()}),Ns(()=>k());function k(){c.value=e.entities?e.entities.split(/\s+/).filter(x=>x):[],e.background!==void 0&&(Bp(e.background)||O(e.background))?(p.value=e.background,A.value=e.height||Ya):d.value=e.background||"#444",e.label&&e.label!=="static"&&(a.value=e.label),e.sticky&&n.value.classList.add("sticky")}Ht(c,async()=>{c.value.length>0&&!l.value&&(l.value=await Pp(c.value[0]),l.value&&(a.value=l.value.label,l.value.pageBanner&&(p.value=`https://iiif.juncture-digital.org/wc:${decodeURIComponent(l.value.pageBanner.split("/Special:FilePath/").pop()).replace(/\s/,"_")}/manifest.json`,A.value=Ya)))});function O(x){return r.test(x)}return(x,w)=>(Lt(),St(Me,null,[wt("div",nl(Os(x.$attrs)),null,16),p.value?(Lt(),St("ve-hero",{key:0,background:p.value,options:e.options,position:e.position,sticky:e.sticky?"":null,height:A.value,top:e.sticky?A.value-Eo:0},null,8,$p)):Te("",!0),wt("ve-navbar",{ref_key:"navbar",ref:o,class:"sticky z-10",label:a.value,subtitle:e.subtitle,logo:e.logo,url:e.url,sticky:e.sticky?"":null,"search-domain":e.searchDomain,"search-cx":e.searchCx,"search-key":e.searchKey,contact:e.contact,height:p.value?Eo:A.value,background:d.value,alpha:p.value?.2:0,offset:p.value?Eo:0},[M.value?(Lt(),St("ul",{key:0,innerHTML:M.value.outerHTML},null,8,Kp)):Te("",!0)],8,Jp)],64))}}),tM=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-64{height:16rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}} -`,eM=yr(Xp,[["styles",[tM]]]),rM=["manifest"],oM=Je({__name:"Hero.ce",props:{background:{type:String},options:{type:String},position:{type:String,default:"center"},sticky:{type:Boolean,default:!1},height:{type:Number,default:350},top:{type:Number,default:0}},setup(t){const e=t,r=Et(null),o=Jt(()=>{var p,M;return(M=(p=r.value)==null?void 0:p.getRootNode())==null?void 0:M.host}),n=Et(),a=Et(),c=Et(),l=Et();Ht(e,()=>{e.sticky&&(o.value.style.position="sticky",o.value.style.top="-320px")}),Ht(o,()=>{a.value=qp(e.options||""),e.background&&Zp(e.background).then(p=>n.value=p),o.value.style.height=`${e.height}px`,e.sticky&&(o.value.style.position="sticky"),e.top&&(o.value.style.top=`-${e.top}px`)}),Ht(n,(p,M)=>{p!==M&&(c.value=Vp(p))}),Ht(c,async(p,M)=>{p!==M&&(l.value=p.service?d(p.service[0].id||p.service[0]["@id"],a.value):await Gp(c.value.id,a.value.region,{width:o.value.clientWidth,height:e.height}))}),Ht(l,()=>{o.value.style.backgroundImage=`url("${l.value}")`,o.value.style.backgroundPosition=e.position});function d(p,M){let A=c.value,k=Number((A.width/A.height).toFixed(4)),O=Math.min(800,o.value.clientWidth),x=Number(O/k).toFixed(0),w=`${O},${x}`;return`${p.replace(/\/info.json$/,"")}/${M.region}/${w}/${M.rotation}/${M.quality}.${M.format}`}return(p,M)=>{var A;return Lt(),St("section",{ref_key:"root",ref:r,class:"ve-hero media-item"},[wt("ve-manifest-popup",{manifest:(A=n.value)==null?void 0:A.id},null,8,rM)],512)}}}),nM=`*{box-sizing:border-box}:host{display:block;position:relative;width:100%;z-index:10}.ve-hero{background-repeat:no-repeat;background-size:cover;background-position:center;z-index:8}ve-manifest-popup{position:absolute;top:12px;right:12px;visibility:hidden;opacity:0;cursor:pointer}.media-item:hover ve-manifest-popup{visibility:visible;opacity:.8;transition:all .5s ease-in} -`,iM=yr(oM,[["styles",[nM]]]);/* - * Util - * @version: 1.3.0 - * @author: HtmlStream - * @license: Licensed under MIT (https://preline.co/docs/license.html) - * Copyright 2023 Htmlstream - */const aM={historyIndex:-1,addHistory(t){this.historyIndex=t},existsInHistory(t){return t>this.historyIndex},clearHistory(){this.historyIndex=-1}};/* - * HSDropdown - * @version: 1.3.0 - * @author: HtmlStream - * @requires: @popperjs/core ^2.11.2 - * @license: Licensed under MIT (https://preline.co/docs/license.html) - * Copyright 2023 Htmlstream - */const sM=()=>/iPad|iPhone|iPod/.test(navigator.platform)?!0:navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),cM=()=>navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform);class lM extends Ss{constructor(r){super(".hs-dropdown");fn(this,"root");this.root=r,this.positions={top:"top","top-left":"top-start","top-right":"top-end",bottom:"bottom","bottom-left":"bottom-start","bottom-right":"bottom-end",right:"right","right-top":"right-start","right-bottom":"right-end",left:"left","left-top":"left-start","left-bottom":"left-end"},this.absoluteStrategyModifiers=o=>[{name:"applyStyles",fn:n=>{const a=(window.getComputedStyle(o).getPropertyValue("--strategy")||"absolute").replace(" ",""),c=(window.getComputedStyle(o).getPropertyValue("--adaptive")||"adaptive").replace(" ","");n.state.elements.popper.style.position=a,n.state.elements.popper.style.transform=c==="adaptive"?n.state.styles.popper.transform:null,n.state.elements.popper.style.top=null,n.state.elements.popper.style.bottom=null,n.state.elements.popper.style.left=null,n.state.elements.popper.style.right=null,n.state.elements.popper.style.margin=0}},{name:"computeStyles",options:{adaptive:!1}}],this._history=aM}init(){this.root.addEventListener("click",r=>{const o=r.target,n=o.closest(this.selector),a=o.closest(".hs-dropdown-menu");if((!n||!n.classList.contains("open"))&&this._closeOthers(n),a){const c=(window.getComputedStyle(n).getPropertyValue("--auto-close")||"").replace(" ","");if((c=="false"||c=="inside")&&!n.parentElement.closest(this.selector))return}n&&(n.classList.contains("open")?this.close(n):this.open(n))}),this.root.addEventListener("mousemove",r=>{const o=r.target,n=o.closest(this.selector);if(o.closest(".hs-dropdown-menu"),n){const a=(window.getComputedStyle(n).getPropertyValue("--trigger")||"click").replace(" ","");if(a!=="hover")return;(!n||!n.classList.contains("open"))&&this._closeOthers(n),a==="hover"&&!n.classList.contains("open")&&!sM()&&!cM()&&this._hover(o)}}),this.root.addEventListener("keydown",this._keyboardSupport.bind(this)),window.addEventListener("resize",()=>{this.root.querySelectorAll(".hs-dropdown.open").forEach(o=>{this.close(o,!0)})})}_closeOthers(r=null){this.root.querySelectorAll(`${this.selector}.open`).forEach(n=>{if(r&&r.closest(".hs-dropdown.open")===n)return;const a=(window.getComputedStyle(n).getPropertyValue("--auto-close")||"").replace(" ","");a=="false"||a=="outside"||this.close(n)})}_hover(r){const o=r.closest(this.selector);this.open(o);const n=a=>{(!a.target.closest(this.selector)||a.target.closest(this.selector)===o.parentElement.closest(this.selector))&&(this.close(o),this.root.removeEventListener("mousemove",n,!0))};this.root.addEventListener("mousemove",n,!0)}close(r,o=!1){const n=r.querySelector(".hs-dropdown-menu"),a=()=>{r.classList.contains("open")||(n.classList.remove("block"),n.classList.add("hidden"),n.style.inset=null,n.style.position=null,r._popper&&r._popper.destroy())};o||this.afterTransition(r.querySelector("[data-hs-dropdown-transition]")||n,()=>{a()}),n.style.margin=null,r.classList.remove("open"),o&&a(),this._fireEvent("close",r),this._dispatch("close.hs.dropdown",r,r),n.querySelectorAll(".hs-dropdown.open").forEach(l=>{this.close(l,!0)})}open(r){const o=r.querySelector(".hs-dropdown-menu"),n=(window.getComputedStyle(r).getPropertyValue("--placement")||"").replace(" ",""),a=(window.getComputedStyle(r).getPropertyValue("--strategy")||"fixed").replace(" ","");(window.getComputedStyle(r).getPropertyValue("--adaptive")||"adaptive").replace(" ","");const c=parseInt((window.getComputedStyle(r).getPropertyValue("--offset")||"10").replace(" ",""));if(a!=="static"){r._popper&&r._popper.destroy();const l=So(r,o,{placement:this.positions[n]||"bottom-start",strategy:a,modifiers:[...a!=="fixed"?this.absoluteStrategyModifiers(r):[],{name:"offset",options:{offset:[0,c]}}]});r._popper=l}o.style.margin=null,o.classList.add("block"),o.classList.remove("hidden"),setTimeout(()=>{r.classList.add("open")}),this._fireEvent("open",r),this._dispatch("open.hs.dropdown",r,r)}_keyboardSupport(r){const o=this.root.querySelector(".hs-dropdown.open");if(o){if(r.keyCode===27)return r.preventDefault(),this._esc(o);if(r.keyCode===40)return r.preventDefault(),this._down(o);if(r.keyCode===38)return r.preventDefault(),this._up(o);if(r.keyCode===36)return r.preventDefault(),this._start(o);if(r.keyCode===35)return r.preventDefault(),this._end(o);this._byChar(o,r.key)}}_esc(r){this.close(r)}_up(r){const o=r.querySelector(".hs-dropdown-menu"),n=[...o.querySelectorAll("a")].reverse().filter(l=>!l.disabled),a=o.querySelector("a:focus");let c=n.findIndex(l=>l===a);c+1!l.disabled),a=o.querySelector("a:focus");let c=n.findIndex(l=>l===a);c+1!a.disabled);n.length&&n[0].focus()}_end(r){const n=[...r.querySelector(".hs-dropdown-menu").querySelectorAll("a")].reverse().filter(a=>!a.disabled);n.length&&n[0].focus()}_byChar(r,o){const a=[...r.querySelector(".hs-dropdown-menu").querySelectorAll("a")],c=()=>a.findIndex((d,p)=>d.innerText.toLowerCase().charAt(0)===o.toLowerCase()&&this._history.existsInHistory(p));let l=c();l===-1&&(this._history.clearHistory(),l=c()),l!==-1&&(a[l].focus(),this._history.addHistory(l))}toggle(r){r.classList.contains("open")?this.close(r):this.open(r)}}var uM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dM(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ws={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(uM,function(){return function(r){var o={};function n(a){if(o[a])return o[a].exports;var c=o[a]={i:a,l:!1,exports:{}};return r[a].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=r,n.c=o,n.d=function(a,c,l){n.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:l})},n.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},n.t=function(a,c){if(1&c&&(a=n(a)),8&c||4&c&&typeof a=="object"&&a&&a.__esModule)return a;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:a}),2&c&&typeof a!="string")for(var d in a)n.d(l,d,(function(p){return a[p]}).bind(null,d));return l},n.n=function(a){var c=a&&a.__esModule?function(){return a.default}:function(){return a};return n.d(c,"a",c),c},n.o=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)},n.p="/",n(n.s=8)}([function(r,o,n){n.r(o),n.d(o,"h",function(){return p}),n.d(o,"createElement",function(){return p}),n.d(o,"cloneElement",function(){return O}),n.d(o,"createRef",function(){return zt}),n.d(o,"Component",function(){return ct}),n.d(o,"render",function(){return bt}),n.d(o,"rerender",function(){return g}),n.d(o,"options",function(){return c});var a=function(){},c={},l=[],d=[];function p(D,U){var at,J,yt,b,T=d;for(b=arguments.length;b-- >2;)l.push(arguments[b]);for(U&&U.children!=null&&(l.length||l.push(U.children),delete U.children);l.length;)if((J=l.pop())&&J.pop!==void 0)for(b=J.length;b--;)l.push(J[b]);else typeof J=="boolean"&&(J=null),(yt=typeof D!="function")&&(J==null?J="":typeof J=="number"?J=String(J):typeof J!="string"&&(yt=!1)),yt&&at?T[T.length-1]+=J:T===d?T=[J]:T.push(J),at=yt;var _=new a;return _.nodeName=D,_.children=T,_.attributes=U??void 0,_.key=U==null?void 0:U.key,c.vnode!==void 0&&c.vnode(_),_}function M(D,U){for(var at in U)D[at]=U[at];return D}function A(D,U){D&&(typeof D=="function"?D(U):D.current=U)}var k=typeof Promise=="function"?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function O(D,U){return p(D.nodeName,M(M({},D.attributes),U),arguments.length>2?[].slice.call(arguments,2):D.children)}var x=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,w=[];function h(D){!D._dirty&&(D._dirty=!0)&&w.push(D)==1&&(c.debounceRendering||k)(g)}function g(){for(var D;D=w.pop();)D._dirty&&P(D)}function N(D,U,at){return typeof U=="string"||typeof U=="number"?D.splitText!==void 0:typeof U.nodeName=="string"?!D._componentConstructor&&v(D,U.nodeName):at||D._componentConstructor===U.nodeName}function v(D,U){return D.normalizedNodeName===U||D.nodeName.toLowerCase()===U.toLowerCase()}function m(D){var U=M({},D.attributes);U.children=D.children;var at=D.nodeName.defaultProps;if(at!==void 0)for(var J in at)U[J]===void 0&&(U[J]=at[J]);return U}function I(D){var U=D.parentNode;U&&U.removeChild(D)}function z(D,U,at,J,yt){if(U==="className"&&(U="class"),U!=="key")if(U==="ref")A(at,null),A(J,D);else if(U!=="class"||yt)if(U==="style"){if(J&&typeof J!="string"&&typeof at!="string"||(D.style.cssText=J||""),J&&typeof J=="object"){if(typeof at!="string")for(var b in at)b in J||(D.style[b]="");for(var b in J)D.style[b]=typeof J[b]=="number"&&x.test(b)===!1?J[b]+"px":J[b]}}else if(U==="dangerouslySetInnerHTML")J&&(D.innerHTML=J.__html||"");else if(U[0]=="o"&&U[1]=="n"){var T=U!==(U=U.replace(/Capture$/,""));U=U.toLowerCase().substring(2),J?at||D.addEventListener(U,L,T):D.removeEventListener(U,L,T),(D._listeners||(D._listeners={}))[U]=J}else if(U!=="list"&&U!=="type"&&!yt&&U in D){try{D[U]=J??""}catch{}J!=null&&J!==!1||U=="spellcheck"||D.removeAttribute(U)}else{var _=yt&&U!==(U=U.replace(/^xlink:?/,""));J==null||J===!1?_?D.removeAttributeNS("http://www.w3.org/1999/xlink",U.toLowerCase()):D.removeAttribute(U):typeof J!="function"&&(_?D.setAttributeNS("http://www.w3.org/1999/xlink",U.toLowerCase(),J):D.setAttribute(U,J))}else D.className=J||""}function L(D){return this._listeners[D.type](c.event&&c.event(D)||D)}var E=[],H=0,Q=!1,ot=!1;function dt(){for(var D;D=E.shift();)c.afterMount&&c.afterMount(D),D.componentDidMount&&D.componentDidMount()}function pt(D,U,at,J,yt,b){H++||(Q=yt!=null&&yt.ownerSVGElement!==void 0,ot=D!=null&&!("__preactattr_"in D));var T=nt(D,U,at,J,b);return yt&&T.parentNode!==yt&&yt.appendChild(T),--H||(ot=!1,b||dt()),T}function nt(D,U,at,J,yt){var b=D,T=Q;if(U!=null&&typeof U!="boolean"||(U=""),typeof U=="string"||typeof U=="number")return D&&D.splitText!==void 0&&D.parentNode&&(!D._component||yt)?D.nodeValue!=U&&(D.nodeValue=U):(b=document.createTextNode(U),D&&(D.parentNode&&D.parentNode.replaceChild(b,D),it(D,!0))),b.__preactattr_=!0,b;var _,Z,R=U.nodeName;if(typeof R=="function")return function(K,tt,rt,et){for(var lt=K&&K._component,gt=lt,ht=K,vt=lt&&K._componentConstructor===tt.nodeName,_t=vt,It=m(tt);lt&&!_t&&(lt=lt._parentComponent);)_t=lt.constructor===tt.nodeName;return lt&&_t&&(!et||lt._component)?(F(lt,It,3,rt,et),K=lt.base):(gt&&!vt&&($(gt),K=ht=null),lt=Y(tt.nodeName,It,rt),K&&!lt.nextBase&&(lt.nextBase=K,ht=null),F(lt,It,1,rt,et),K=lt.base,ht&&K!==ht&&(ht._component=null,it(ht,!1))),K}(D,U,at,J);if(Q=R==="svg"||R!=="foreignObject"&&Q,R=String(R),(!D||!v(D,R))&&(_=R,(Z=Q?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_)).normalizedNodeName=_,b=Z,D)){for(;D.firstChild;)b.appendChild(D.firstChild);D.parentNode&&D.parentNode.replaceChild(b,D),it(D,!0)}var G=b.firstChild,X=b.__preactattr_,B=U.children;if(X==null){X=b.__preactattr_={};for(var V=b.attributes,W=V.length;W--;)X[V[W].name]=V[W].value}return!ot&&B&&B.length===1&&typeof B[0]=="string"&&G!=null&&G.splitText!==void 0&&G.nextSibling==null?G.nodeValue!=B[0]&&(G.nodeValue=B[0]):(B&&B.length||G!=null)&&function(K,tt,rt,et,lt){var gt,ht,vt,_t,It,Kt=K.childNodes,Ft=[],oe={},Bt=0,Vt=0,Ie=Kt.length,He=0,Nr=tt?tt.length:0;if(Ie!==0)for(var Gt=0;Gt=i.length&&(i=void 0),{value:i&&i[u++],done:!i}}}}function Mt(i,s){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var f,y,j=u.call(i),S=[];try{for(;(s===void 0||s-- >0)&&!(f=j.next()).done;)S.push(f.value)}catch(q){y={error:q}}finally{try{f&&!f.done&&(u=j.return)&&u.call(j)}finally{if(y)throw y.error}}return S}function ft(){for(var i=[],s=0;s2&&X("box");var u=J(s);return new sr(i,Z(u),u.name,!0,u.equals)},array:function(i,s){arguments.length>2&&X("array");var u=J(s);return Cc(i,Z(u),u.name)},map:function(i,s){arguments.length>2&&X("map");var u=J(s);return new ln(i,Z(u),u.name)},set:function(i,s){arguments.length>2&&X("set");var u=J(s);return new un(i,Z(u),u.name)},object:function(i,s,u){typeof arguments[1]=="string"&&X("object");var f=J(u);if(f.proxy===!1)return sn({},i,s,f);var y=Di(f),j=sn({},void 0,void 0,f),S=kc(j);return ji(S,i,s,y),S},ref:T,shallow:b,deep:yt,struct:_},G=function(i,s,u){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return yt.apply(null,arguments);if(Gr(i))return i;var f=x(i)?G.object(i,s,u):Array.isArray(i)?G.array(i,s):N(i)?G.map(i,s):v(i)?G.set(i,s):i;if(f!==i)return f;p(!1)};function X(i){p("Expected one or two arguments to observable."+i+". Did you accidentally try to use observable."+i+" as decorator?")}Object.keys(R).forEach(function(i){return G[i]=R[i]});var B,V,W=bt(!1,function(i,s,u,f,y){var j=u.get,S=u.set,q=y[0]||{};dn(i).addComputedProp(i,s,nt({get:j,set:S,context:i},q))}),K=W({equals:dt.structural}),tt=function(i,s,u){if(typeof s=="string"||i!==null&&typeof i=="object"&&arguments.length===1)return W.apply(null,arguments);var f=typeof s=="object"?s:{};return f.get=i,f.set=typeof s=="function"?s:f.set,f.name=f.name||i.name||"",new br(f)};tt.struct=K,function(i){i[i.NOT_TRACKING=-1]="NOT_TRACKING",i[i.UP_TO_DATE=0]="UP_TO_DATE",i[i.POSSIBLY_STALE=1]="POSSIBLY_STALE",i[i.STALE=2]="STALE"}(B||(B={})),function(i){i[i.NONE=0]="NONE",i[i.LOG=1]="LOG",i[i.BREAK=2]="BREAK"}(V||(V={}));var rt=function(i){this.cause=i};function et(i){return i instanceof rt}function lt(i){switch(i.dependenciesState){case B.UP_TO_DATE:return!1;case B.NOT_TRACKING:case B.STALE:return!0;case B.POSSIBLY_STALE:for(var s=oe(!0),u=Kt(),f=i.observing,y=f.length,j=0;j0;st.computationDepth>0&&s&&p(!1),st.allowStateChanges||!s&&st.enforceActions!=="strict"||p(!1)}function vt(i,s,u){var f=oe(!0);Vt(i),i.newObserving=new Array(i.observing.length+100),i.unboundDepsCount=0,i.runId=++st.runId;var y,j=st.trackingDerivation;if(st.trackingDerivation=i,st.disableErrorBoundaries===!0)y=s.call(u);else try{y=s.call(u)}catch(S){y=new rt(S)}return st.trackingDerivation=j,function(S){for(var q=S.observing,ut=S.observing=S.newObserving,Dt=B.UP_TO_DATE,xt=0,Ut=S.unboundDepsCount,kt=0;ktDt&&(Dt=Tt.dependenciesState);for(ut.length=xt,S.newObserving=null,Ut=q.length;Ut--;)(Tt=q[Ut]).diffValue===0&&fi(Tt,S),Tt.diffValue=0;for(;xt--;){var Tt;(Tt=ut[xt]).diffValue===1&&(Tt.diffValue=0,tc(Tt,S))}Dt!==B.UP_TO_DATE&&(S.dependenciesState=Dt,S.onBecomeStale())}(i),Bt(f),y}function _t(i){var s=i.observing;i.observing=[];for(var u=s.length;u--;)fi(s[u],i);i.dependenciesState=B.NOT_TRACKING}function It(i){var s=Kt();try{return i()}finally{Ft(s)}}function Kt(){var i=st.trackingDerivation;return st.trackingDerivation=null,i}function Ft(i){st.trackingDerivation=i}function oe(i){var s=st.allowStateReads;return st.allowStateReads=i,s}function Bt(i){st.allowStateReads=i}function Vt(i){if(i.dependenciesState!==B.UP_TO_DATE){i.dependenciesState=B.UP_TO_DATE;for(var s=i.observing,u=s.length;u--;)s[u].lowestObserverState=B.UP_TO_DATE}}var Ie=0,He=1,Nr=Object.getOwnPropertyDescriptor(function(){},"name");Nr&&Nr.configurable;function Gt(i,s,u){var f=function(){return Oe(i,s,u||this,arguments)};return f.isMobxAction=!0,f}function Oe(i,s,u,f){var y=mr();try{return s.apply(u,f)}catch(j){throw y.error=j,j}finally{Ze(y)}}function mr(i,s,u){var f=0,y=Kt();ye();var j={prevDerivation:y,prevAllowStateChanges:Rr(!0),prevAllowStateReads:oe(!0),notifySpy:!1,startTime:f,actionId:He++,parentActionId:Ie};return Ie=j.actionId,j}function Ze(i){Ie!==i.actionId&&p("invalid action stack. did you forget to finish an action?"),Ie=i.parentActionId,i.error!==void 0&&(st.suppressReactionErrors=!0),Hr(i.prevAllowStateChanges),Bt(i.prevAllowStateReads),Ne(),Ft(i.prevDerivation),i.notifySpy,st.suppressReactionErrors=!1}function Vs(i,s){var u,f=Rr(i);try{u=s()}finally{Hr(f)}return u}function Rr(i){var s=st.allowStateChanges;return st.allowStateChanges=i,s}function Hr(i){st.allowStateChanges=i}function qs(i){var s,u=st.computationDepth;st.computationDepth=0;try{s=i()}finally{st.computationDepth=u}return s}var sr=function(i){function s(u,f,y,j,S){y===void 0&&(y="ObservableValue@"+d()),S===void 0&&(S=dt.default);var q=i.call(this,y)||this;return q.enhancer=f,q.name=y,q.equals=S,q.hasUnreportedChange=!1,q.value=f(u,void 0,y),q}return function(u,f){function y(){this.constructor=u}pt(u,f),u.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}(s,i),s.prototype.dehanceValue=function(u){return this.dehancer!==void 0?this.dehancer(u):u},s.prototype.set=function(u){this.value,(u=this.prepareNewValue(u))!==st.UNCHANGED&&this.setNewValue(u)},s.prototype.prepareNewValue=function(u){if(ht(this),Le(this)){var f=Ce(this,{object:this,type:"update",newValue:u});if(!f)return st.UNCHANGED;u=f.newValue}return u=this.enhancer(u,this.value,this.name),this.equals(this.value,u)?st.UNCHANGED:u},s.prototype.setNewValue=function(u){var f=this.value;this.value=u,this.reportChanged(),me(this)&&be(this,{type:"update",object:this,newValue:u,oldValue:f})},s.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},s.prototype.intercept=function(u){return Wr(this,u)},s.prototype.observe=function(u,f){return f&&u({object:this,type:"update",newValue:this.value,oldValue:void 0}),Vr(this,u)},s.prototype.toJSON=function(){return this.get()},s.prototype.toString=function(){return this.name+"["+this.value+"]"},s.prototype.valueOf=function(){return z(this.get())},s.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},s}(H),tn=h("ObservableValue",sr),br=function(){function i(s){this.dependenciesState=B.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=B.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+d(),this.value=new rt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=V.NONE,M(s.get,"missing option for computed: get"),this.derivation=s.get,this.name=s.name||"ComputedValue@"+d(),s.set&&(this.setter=Gt(this.name+"-setter",s.set)),this.equals=s.equals||(s.compareStructural||s.struct?dt.structural:dt.default),this.scope=s.context,this.requiresReaction=!!s.requiresReaction,this.keepAlive=!!s.keepAlive}return i.prototype.onBecomeStale=function(){(function(s){s.lowestObserverState===B.UP_TO_DATE&&(s.lowestObserverState=B.POSSIBLY_STALE,s.observers.forEach(function(u){u.dependenciesState===B.UP_TO_DATE&&(u.dependenciesState=B.POSSIBLY_STALE,u.isTracing!==V.NONE&&wi(u,s),u.onBecomeStale())}))})(this)},i.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(s){return s()})},i.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(s){return s()})},i.prototype.get=function(){this.isComputing&&p("Cycle detected in computation "+this.name+": "+this.derivation),st.inBatch!==0||this.observers.size!==0||this.keepAlive?(hi(this),lt(this)&&this.trackAndCompute()&&function(u){u.lowestObserverState!==B.STALE&&(u.lowestObserverState=B.STALE,u.observers.forEach(function(f){f.dependenciesState===B.POSSIBLY_STALE?f.dependenciesState=B.STALE:f.dependenciesState===B.UP_TO_DATE&&(u.lowestObserverState=B.UP_TO_DATE)}))}(this)):lt(this)&&(this.warnAboutUntrackedRead(),ye(),this.value=this.computeValue(!1),Ne());var s=this.value;if(et(s))throw s.cause;return s},i.prototype.peek=function(){var s=this.computeValue(!1);if(et(s))throw s.cause;return s},i.prototype.set=function(s){if(this.setter){M(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,s)}finally{this.isRunningSetter=!1}}else M(!1,!1)},i.prototype.trackAndCompute=function(){var s=this.value,u=this.dependenciesState===B.NOT_TRACKING,f=this.computeValue(!0),y=u||et(s)||et(f)||!this.equals(s,f);return y&&(this.value=f),y},i.prototype.computeValue=function(s){var u;if(this.isComputing=!0,st.computationDepth++,s)u=vt(this,this.derivation,this.scope);else if(st.disableErrorBoundaries===!0)u=this.derivation.call(this.scope);else try{u=this.derivation.call(this.scope)}catch(f){u=new rt(f)}return st.computationDepth--,this.isComputing=!1,u},i.prototype.suspend=function(){this.keepAlive||(_t(this),this.value=void 0)},i.prototype.observe=function(s,u){var f=this,y=!0,j=void 0;return nn(function(){var S=f.get();if(!y||u){var q=Kt();s({type:"update",object:f,newValue:S,oldValue:j}),Ft(q)}y=!1,j=S})},i.prototype.warnAboutUntrackedRead=function(){},i.prototype.toJSON=function(){return this.get()},i.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},i.prototype.valueOf=function(){return z(this.get())},i.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},i}(),xr=h("ComputedValue",br),$s=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Zr=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Js={};function en(){return typeof window<"u"?window:a!==void 0?a:typeof self<"u"?self:Js}var go=!0,Mi=!1,st=function(){var i=en();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(go=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==new Zr().version&&(go=!1),go?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new Zr):(setTimeout(function(){Mi||p("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Zr)}();function Ks(){return st}function Xs(){var i=new Zr;for(var s in i)$s.indexOf(s)===-1&&(st[s]=i[s]);st.allowStateChanges=!st.enforceActions}function tc(i,s){i.observers.add(s),i.lowestObserverState>s.dependenciesState&&(i.lowestObserverState=s.dependenciesState)}function fi(i,s){i.observers.delete(s),i.observers.size===0&&gi(i)}function gi(i){i.isPendingUnobservation===!1&&(i.isPendingUnobservation=!0,st.pendingUnobservations.push(i))}function ye(){st.inBatch++}function Ne(){if(--st.inBatch==0){yi();for(var i=st.pendingUnobservations,s=0;s0&&gi(i),!1)}function wi(i,s){if(console.log("[mobx.trace] '"+i.name+"' is invalidated due to a change in: '"+s.name+"'"),i.isTracing===V.BREAK){var u=[];(function f(y,j,S){if(j.length>=1e3)return void j.push("(and many more)");j.push(""+new Array(S).join(" ")+y.name),y.dependencies&&y.dependencies.forEach(function(q){return f(q,j,S+1)})})(zi(i),u,1),new Function(`debugger; -/* -Tracing '`+i.name+`' - -You are entering this break point because derivation '`+i.name+"' is being traced and '"+s.name+`' is now forcing it to update. -Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update -The stackframe you are looking for is at least ~6-8 stack-frames up. - -`+(i instanceof br?i.derivation.toString().replace(/[*]\//g,"/"):"")+` - -The dependencies for this derivation are: - -`+u.join(` -`)+` -*/ - `)()}}var Fr=function(){function i(s,u,f,y){s===void 0&&(s="Reaction@"+d()),y===void 0&&(y=!1),this.name=s,this.onInvalidate=u,this.errorHandler=f,this.requiresObservable=y,this.observing=[],this.newObserving=[],this.dependenciesState=B.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+d(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=V.NONE}return i.prototype.onBecomeStale=function(){this.schedule()},i.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,st.pendingReactions.push(this),yi())},i.prototype.isScheduled=function(){return this._isScheduled},i.prototype.runReaction=function(){if(!this.isDisposed){if(ye(),this._isScheduled=!1,lt(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(s){this.reportExceptionInDerivation(s)}}Ne()}},i.prototype.track=function(s){if(!this.isDisposed){ye(),this._isRunning=!0;var u=vt(this,s,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&_t(this),et(u)&&this.reportExceptionInDerivation(u.cause),Ne()}},i.prototype.reportExceptionInDerivation=function(s){var u=this;if(this.errorHandler)this.errorHandler(s,this);else{if(st.disableErrorBoundaries)throw s;var f="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";st.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(f,s),st.globalReactionErrorHandlers.forEach(function(y){return y(s,u)})}},i.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ye(),_t(this),Ne()))},i.prototype.getDisposer=function(){var s=this.dispose.bind(this);return s[E]=this,s},i.prototype.toString=function(){return"Reaction["+this.name+"]"},i.prototype.trace=function(s){s===void 0&&(s=!1),Li(this,s)},i}();function ec(i){return st.globalReactionErrorHandlers.push(i),function(){var s=st.globalReactionErrorHandlers.indexOf(i);s>=0&&st.globalReactionErrorHandlers.splice(s,1)}}var rn=function(i){return i()};function yi(){st.inBatch>0||st.isRunningReactions||rn(rc)}function rc(){st.isRunningReactions=!0;for(var i=st.pendingReactions,s=0;i.length>0;){++s==100&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+i[0]),i.splice(0));for(var u=i.splice(0),f=0,y=u.length;f",i):arguments.length===2&&typeof s=="function"?Gt(i,s):arguments.length===1&&typeof i=="string"?mi(i):f!==!0?mi(s).apply(null,arguments):void w(i,s,Gt(i.name||s,u.value,this))};function ac(i,s){return Oe(typeof i=="string"?i:i.name||"",typeof i=="function"?i:s,this,void 0)}function sc(i){return typeof i=="function"&&i.isMobxAction===!0}function on(i,s,u){w(i,s,Gt(s,u.bind(i)))}function nn(i,s){s===void 0&&(s=l);var u,f=s&&s.name||i.name||"Autorun@"+d();if(!s.scheduler&&!s.delay)u=new Fr(f,function(){this.track(S)},s.onError,s.requiresObservable);else{var y=bi(s),j=!1;u=new Fr(f,function(){j||(j=!0,y(function(){j=!1,u.isDisposed||u.track(S)}))},s.onError,s.requiresObservable)}function S(){i(u)}return u.schedule(),u.getDisposer()}Xe.bound=function(i,s,u,f){return f===!0?(on(i,s,u.value),null):u?{configurable:!0,enumerable:!1,get:function(){return on(this,s,u.value||u.initializer.call(this)),this[s]},set:nc}:{enumerable:!1,configurable:!0,set:function(y){on(this,s,y)},get:function(){}}};var cc=function(i){return i()};function bi(i){return i.scheduler?i.scheduler:i.delay?function(s){return setTimeout(s,i.delay)}:cc}function lc(i,s,u){u===void 0&&(u=l);var f,y,j,S=u.name||"Reaction@"+d(),q=Xe(S,u.onError?(f=u.onError,y=s,function(){try{return y.apply(this,arguments)}catch(Yt){f.call(this,Yt)}}):s),ut=!u.scheduler&&!u.delay,Dt=bi(u),xt=!0,Ut=!1,kt=u.compareStructural?dt.structural:u.equals||dt.default,Tt=new Fr(S,function(){xt||ut?Qt():Ut||(Ut=!0,Dt(Qt))},u.onError,u.requiresObservable);function Qt(){if(Ut=!1,!Tt.isDisposed){var Yt=!1;Tt.track(function(){var Ct=i(Tt);Yt=xt||!kt(j,Ct),j=Ct}),xt&&u.fireImmediately&&q(j,Tt),xt||Yt!==!0||q(j,Tt),xt&&(xt=!1)}}return Tt.schedule(),Tt.getDisposer()}function xi(i,s,u){return vi("onBecomeObserved",i,s,u)}function an(i,s,u){return vi("onBecomeUnobserved",i,s,u)}function vi(i,s,u,f){var y=typeof f=="function"?xe(s,u):xe(s),j=typeof f=="function"?f:u,S=i+"Listeners";return y[S]?y[S].add(j):y[S]=new Set([j]),typeof y[i]!="function"?p(!1):function(){var q=y[S];q&&(q.delete(j),q.size===0&&delete y[S])}}function uc(i){var s=i.enforceActions,u=i.computedRequiresReaction,f=i.computedConfigurable,y=i.disableErrorBoundaries,j=i.reactionScheduler,S=i.reactionRequiresObservable,q=i.observableRequiresReaction;if(i.isolateGlobalState===!0&&((st.pendingReactions.length||st.inBatch||st.isRunningReactions)&&p("isolateGlobalState should be called before MobX is running any reactions"),Mi=!0,go&&(--en().__mobxInstanceCount==0&&(en().__mobxGlobals=void 0),st=new Zr)),s!==void 0){var ut=void 0;switch(s){case!0:case"observed":ut=!0;break;case!1:case"never":ut=!1;break;case"strict":case"always":ut="strict";break;default:p("Invalid value for 'enforceActions': '"+s+"', expected 'never', 'always' or 'observed'")}st.enforceActions=ut,st.allowStateChanges=ut!==!0&&ut!=="strict"}u!==void 0&&(st.computedRequiresReaction=!!u),S!==void 0&&(st.reactionRequiresObservable=!!S),q!==void 0&&(st.observableRequiresReaction=!!q,st.allowStateReads=!st.observableRequiresReaction),f!==void 0&&(st.computedConfigurable=!!f),y!==void 0&&(y===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),st.disableErrorBoundaries=!!y),j&&oc(j)}function dc(i,s){var u=typeof i=="function"?i.prototype:i,f=function(j){var S=s[j];Array.isArray(S)||(S=[S]);var q=Object.getOwnPropertyDescriptor(u,j),ut=S.reduce(function(Dt,xt){return xt(u,j,Dt)},q);ut&&Object.defineProperty(u,j,ut)};for(var y in s)f(y);return i}function sn(i,s,u,f){var y=Di(f=J(f));return ct(i),dn(i,f.name,y.enhancer),s&&ji(i,s,u,y),i}function Di(i){return i.defaultDecorator||(i.deep===!1?T:yt)}function ji(i,s,u,f){var y,j;ye();try{var S=L(s);try{for(var q=it(S),ut=q.next();!ut.done;ut=q.next()){var Dt=ut.value,xt=Object.getOwnPropertyDescriptor(s,Dt),Ut=(u&&Dt in u?u[Dt]:xt.get?W:f)(i,Dt,xt,!0);Ut&&Object.defineProperty(i,Dt,Ut)}}catch(kt){y={error:kt}}finally{try{ut&&!ut.done&&(j=q.return)&&j.call(q)}finally{if(y)throw y.error}}}finally{Ne()}}function zi(i,s){return Ti(xe(i,s))}function Ti(i){var s,u,f={name:i.name};return i.observing&&i.observing.length>0&&(f.dependencies=(s=i.observing,u=[],s.forEach(function(y){u.indexOf(y)===-1&&u.push(y)}),u).map(Ti)),f}function pc(i,s){return Ai(xe(i,s))}function Ai(i){var s={name:i.name};return function(u){return u.observers&&u.observers.size>0}(i)&&(s.observers=Array.from(function(u){return u.observers}(i)).map(Ai)),s}var Mc=0;function wo(){this.message="FLOW_CANCELLED"}function fc(i){return i instanceof wo}function gc(i){arguments.length!==1&&p("Flow expects 1 argument and cannot be used as decorator");var s=i.name||"";return function(){var u,f=this,y=arguments,j=++Mc,S=Xe(s+" - runid: "+j+" - init",i).apply(f,y),q=void 0,ut=new Promise(function(Dt,xt){var Ut=0;function kt(Yt){var Ct;q=void 0;try{Ct=Xe(s+" - runid: "+j+" - yield "+Ut++,S.next).call(S,Yt)}catch(Ge){return xt(Ge)}Qt(Ct)}function Tt(Yt){var Ct;q=void 0;try{Ct=Xe(s+" - runid: "+j+" - yield "+Ut++,S.throw).call(S,Yt)}catch(Ge){return xt(Ge)}Qt(Ct)}function Qt(Yt){if(!Yt||typeof Yt.then!="function")return Yt.done?Dt(Yt.value):(q=Promise.resolve(Yt.value)).then(kt,Tt);Yt.then(Qt,xt)}u=xt,kt(void 0)});return ut.cancel=Xe(s+" - runid: "+j+" - cancel",function(){try{q&&Ei(q);var Dt=S.return(void 0),xt=Promise.resolve(Dt.value);xt.then(k,k),Ei(xt),u(new wo)}catch(Ut){u(Ut)}}),ut}}function Ei(i){typeof i.cancel=="function"&&i.cancel()}function hc(i,s,u){var f;if(Xt(i)||se(i)||tn(i))f=Se(i);else{if(!ie(i)||typeof s!="string")return p(!1);f=Se(i,s)}return f.dehancer!==void 0?p(!1):(f.dehancer=typeof s=="function"?s:u,function(){f.dehancer=void 0})}function wc(i,s,u){return typeof u=="function"?function(f,y,j){return Se(f,y).intercept(j)}(i,s,u):function(f,y){return Se(f).intercept(y)}(i,s)}function Ii(i,s){if(i==null)return!1;if(s!==void 0){if(ie(i)===!1||!i[E].values.has(s))return!1;var u=xe(i,s);return xr(u)}return xr(i)}function yc(i){return arguments.length>1?p(!1):Ii(i)}function Nc(i,s){return typeof s!="string"?p(!1):Ii(i,s)}function Oi(i,s){return i!=null&&(s!==void 0?!!ie(i)&&i[E].values.has(s):ie(i)||!!i[E]||Q(i)||ho(i)||xr(i))}function Gr(i){return arguments.length!==1&&p(!1),Oi(i)}function mc(i,s){return typeof s!="string"?p(!1):Oi(i,s)}function vr(i){return ie(i)?i[E].getKeys():Xt(i)||ne(i)?Array.from(i.keys()):se(i)?i.map(function(s,u){return u}):p(!1)}function bc(i){return ie(i)?vr(i).map(function(s){return i[s]}):Xt(i)?vr(i).map(function(s){return i.get(s)}):ne(i)?Array.from(i.values()):se(i)?i.slice():p(!1)}function xc(i){return ie(i)?vr(i).map(function(s){return[s,i[s]]}):Xt(i)?vr(i).map(function(s){return[s,i.get(s)]}):ne(i)?Array.from(i.entries()):se(i)?i.map(function(s,u){return[u,s]}):p(!1)}function cn(i,s,u){if(arguments.length!==2||ne(i))if(ie(i)){var f=i[E],y=f.values.get(s);y?f.write(s,u):f.addObservableProp(s,u,f.defaultEnhancer)}else if(Xt(i))i.set(s,u);else if(ne(i))i.add(s);else{if(!se(i))return p(!1);typeof s!="number"&&(s=parseInt(s,10)),M(s>=0,"Not a valid index: '"+s+"'"),ye(),s>=i.length&&(i.length=s+1),i[s]=u,Ne()}else{ye();var j=s;try{for(var S in j)cn(i,S,j[S])}finally{Ne()}}}function vc(i,s){if(ie(i))i[E].remove(s);else if(Xt(i))i.delete(s);else if(ne(i))i.delete(s);else{if(!se(i))return p(!1);typeof s!="number"&&(s=parseInt(s,10)),M(s>=0,"Not a valid index: '"+s+"'"),i.splice(s,1)}}function ki(i,s){return ie(i)?Se(i).has(s):Xt(i)||ne(i)?i.has(s):se(i)?s>=0&&s0}function Wr(i,s){var u=i.interceptors||(i.interceptors=[]);return u.push(s),A(function(){var f=u.indexOf(s);f!==-1&&u.splice(f,1)})}function Ce(i,s){var u=Kt();try{for(var f=ft(i.interceptors||[]),y=0,j=f.length;y0}function Vr(i,s){var u=i.changeListeners||(i.changeListeners=[]);return u.push(s),A(function(){var f=u.indexOf(s);f!==-1&&u.splice(f,1)})}function be(i,s){var u=Kt(),f=i.changeListeners;if(f){for(var y=0,j=(f=f.slice()).length;y0?s.map(this.dehancer):s},i.prototype.intercept=function(s){return Wr(this,s)},i.prototype.observe=function(s,u){return u===void 0&&(u=!1),u&&s({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Vr(this,s)},i.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},i.prototype.setArrayLength=function(s){if(typeof s!="number"||s<0)throw new Error("[mobx.array] Out of range: "+s);var u=this.values.length;if(s!==u)if(s>u){for(var f=new Array(s-u),y=0;yj?s=j:s<0&&(s=Math.max(0,j+s)),u=arguments.length===1?j-s:u==null?0:Math.max(0,Math.min(u,j-s)),f===void 0&&(f=c),Le(this)){var S=Ce(this,{object:this.proxy,type:"splice",index:s,removedCount:u,added:f});if(!S)return c;u=S.removedCount,f=S.added}f=f.length===0?f:f.map(function(ut){return y.enhancer(ut,void 0)});var q=this.spliceItemsIntoValues(s,u,f);return u===0&&f.length===0||this.notifyArraySplice(s,f,q),this.dehanceValues(q)},i.prototype.spliceItemsIntoValues=function(s,u,f){var y;if(f.length<1e4)return(y=this.values).splice.apply(y,ft([s,u],f));var j=this.values.slice(s,s+u);return this.values=this.values.slice(0,s).concat(f,this.values.slice(s+u)),j},i.prototype.notifyArrayChildUpdate=function(s,u,f){var y=!this.owned&&!1,j=me(this),S=j||y?{object:this.proxy,type:"update",index:s,newValue:u,oldValue:f}:null;this.atom.reportChanged(),j&&be(this,S)},i.prototype.notifyArraySplice=function(s,u,f){var y=!this.owned&&!1,j=me(this),S=j||y?{object:this.proxy,type:"splice",index:s,removed:f,added:u,removedCount:f.length,addedCount:u.length}:null;this.atom.reportChanged(),j&&be(this,S)},i}(),Fe={intercept:function(i){return this[E].intercept(i)},observe:function(i,s){return s===void 0&&(s=!1),this[E].observe(i,s)},clear:function(){return this.splice(0)},replace:function(i){var s=this[E];return s.spliceWithArray(0,s.values.length,i)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(i,s){for(var u=[],f=2;f-1&&(this.splice(u,1),!0)},get:function(i){var s=this[E];if(s){if(i=0&&S++}y=Zi(y),j=Zi(j);var Ut=xt==="[object Array]";if(!Ut){if(typeof y!="object"||typeof j!="object")return!1;var kt=y.constructor,Tt=j.constructor;if(kt!==Tt&&!(typeof kt=="function"&&kt instanceof kt&&typeof Tt=="function"&&Tt instanceof Tt)&&"constructor"in y&&"constructor"in j)return!1}if(S===0)return!1;S<0&&(S=-1),ut=ut||[];for(var Qt=(q=q||[]).length;Qt--;)if(q[Qt]===y)return ut[Qt]===j;if(q.push(y),ut.push(j),Ut){if((Qt=y.length)!==j.length)return!1;for(;Qt--;)if(!f(y[Qt],j[Qt],S-1,q,ut))return!1}else{var Yt=Object.keys(y),Ct=void 0;if(Qt=Yt.length,Object.keys(j).length!==Qt)return!1;for(;Qt--;)if(Ct=Yt[Qt],!Qc(j,Ct)||!f(y[Ct],j[Ct],S-1,q,ut))return!1}return q.pop(),ut.pop(),!0}(i,s,u)}function Zi(i){return se(i)?i.slice():N(i)||Xt(i)||v(i)||ne(i)?Array.from(i.entries()):i}function Qc(i,s){return Object.prototype.hasOwnProperty.call(i,s)}function mo(i){return i[Symbol.iterator]=Bc,i}function Bc(){return this}if(typeof Proxy>"u"||typeof Symbol>"u")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ni,extras:{getDebugName:Ri},$mobx:E})}).call(this,n(3))},function(r,o,n){n.r(o),(function(a){n.d(o,"observer",function(){return z}),n.d(o,"Observer",function(){return E}),n.d(o,"useStaticRendering",function(){return g}),n.d(o,"connect",function(){return nt}),n.d(o,"inject",function(){return pt}),n.d(o,"Provider",function(){return ft});var c=n(0),l=n(1);function d(Y){return!(Y.prototype&&Y.prototype.render||c.Component.isPrototypeOf(Y))}function p(Y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=C.prefix,P=F===void 0?"":F,$=C.suffix,ct=$===void 0?"":$,bt=Y.displayName||Y.name||Y.constructor&&Y.constructor.name||"";return P+bt+ct}var M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},A=function(Y,C){if(!(Y instanceof C))throw new TypeError("Cannot call a class as a function")},k=function(){function Y(C,F){for(var P=0;P2&&arguments[2]!==void 0&&arguments[2],P=Y[C],$=I[C],ct=P?F===!0?function(){$.apply(this,arguments),P.apply(this,arguments)}:function(){P.apply(this,arguments),$.apply(this,arguments)}:$;Y[C]=ct}function m(Y,C){if(Y==null||C==null||(Y===void 0?"undefined":M(Y))!=="object"||(C===void 0?"undefined":M(C))!=="object")return Y!==C;var F=Object.keys(Y);if(F.length!==Object.keys(C).length)return!0;for(var P=void 0,$=F.length-1;P=F[$];$--)if(C[P]!==Y[P])return!0;return!1}var I={componentWillMount:function(){var Y=this;if(w!==!0){var C=p(this),F=!1,P=!1;Nt.call(this,"props"),Nt.call(this,"state");var $=this.render.bind(this),ct=null,bt=!1,zt=function(D,U,at){bt=!1;var J=void 0,yt=void 0;if(ct.track(function(){try{yt=N(!1,$,D,U,at)}catch(b){J=b}}),J)throw J;return yt};this.render=function(){return(ct=new l.Reaction(C+".render()",function(){if(!bt&&(bt=!0,typeof Y.componentWillReact=="function"&&Y.componentWillReact(),Y.__$mobxIsUnmounted!==!0)){var D=!0;try{P=!0,F||c.Component.prototype.forceUpdate.call(Y),D=!1}finally{P=!1,D&&ct.dispose()}}})).reactComponent=Y,zt.$mobx=ct,Y.render=zt,zt(Y.props,Y.state,Y.context)}}function Nt(D){var U=this[D],at=Object(l.createAtom)("reactive "+D);Object.defineProperty(this,D,{configurable:!0,enumerable:!0,get:function(){return at.reportObserved(),U},set:function(J){!P&&m(U,J)?(U=J,F=!0,at.reportChanged(),F=!1):U=J}})}},componentWillUnmount:function(){w!==!0&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0)},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(Y,C){return w&&h.warn("[mobx-preact] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==C||m(this.props,Y)}};function z(Y){var C,F;if(arguments.length>1&&h.warn('Mobx observer: Using observer to inject stores is not supported. Use `@connect(["store1", "store2"]) ComponentClass instead or preferably, use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))``'),Y.isMobxInjector===!0&&h.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),d(Y))return z((F=C=function($){function ct(){return A(this,ct),x(this,(ct.__proto__||Object.getPrototypeOf(ct)).apply(this,arguments))}return O(ct,$),k(ct,[{key:"render",value:function(){return Y.call(this,this.props,this.context)}}]),ct}(c.Component),C.displayName=p(Y),F));if(!Y)throw new Error("Please pass a valid component to 'observer'");var P=Y.prototype||Y;return L(P),Y.isMobXReactObserver=!0,Y}function L(Y){v(Y,"componentWillMount",!0),v(Y,"componentDidMount"),Y.shouldComponentUpdate||(Y.shouldComponentUpdate=I.shouldComponentUpdate)}var E=z(function(Y){return Y.children[0]()});E.displayName="Observer";var H=function(Y,C){return Y(C={exports:{}},C.exports),C.exports}(function(Y,C){var F,P,$,ct,bt,zt,Nt,D;Y.exports=(F={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},P={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$=Object.defineProperty,ct=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,zt=Object.getOwnPropertyDescriptor,Nt=Object.getPrototypeOf,D=Nt&&Nt(Object),function U(at,J,yt){if(typeof J!="string"){if(D){var b=Nt(J);b&&b!==D&&U(at,b,yt)}var T=ct(J);bt&&(T=T.concat(bt(J)));for(var _=0;_1?Object(c.h)("div",null," ",P," "):P[0]}},{key:"getChildContext",value:function(){var F={},P=this.context.mobxStores;if(P)for(var $ in P)F[$]=P[$];for(var ct in this.props)it[ct]||ct==="suppressChangedStoreWarning"||(F[ct]=this.props[ct]);return{mobxStores:F}}},{key:"componentWillReceiveProps",value:function(F){if(Object.keys(F).length!==Object.keys(this.props).length&&Mt.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!F.suppressChangedStoreWarning)for(var P in F)it[P]||this.props[P]===F[P]||Mt.warn("MobX Provider: Provided store '"+P+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),C}(c.Component);if(!c.Component)throw new Error("mobx-preact requires Preact to be available")}).call(this,n(3))},function(r,o){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch{typeof window=="object"&&(n=window)}r.exports=n},function(r,o,n){Object.defineProperty(o,"__esModule",{value:!0}),o.JSONHTTPError=o.TextHTTPError=o.HTTPError=o.getPagination=void 0;var a=Object.assign||function(w){for(var h=1;h0&&arguments[0]!==void 0?arguments[0]:"",g=arguments[1];d(this,w),this.apiURL=h,this.apiURL.match(/\/[^\/]?/)&&(this._sameOrigin=!0),this.defaultHeaders=g&&g.defaultHeaders||{}}return c(w,[{key:"headers",value:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a({},this.defaultHeaders,{"Content-Type":"application/json"},h)}},{key:"parseJsonResponse",value:function(h){return h.json().then(function(g){if(!h.ok)return Promise.reject(new O(h,g));var N=(0,l.getPagination)(h);return N?{pagination:N,items:g}:g})}},{key:"request",value:function(h){var g=this,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=this.headers(N.headers||{});return this._sameOrigin&&(N.credentials=N.credentials||"same-origin"),fetch(this.apiURL+h,a({},N,{headers:v})).then(function(m){var I=m.headers.get("Content-Type");return I&&I.match(/json/)?g.parseJsonResponse(m):m.ok?m.text().then(function(z){}):m.text().then(function(z){return Promise.reject(new k(m,z))})})}}]),w}();o.default=x},function(r,o,n){function a(x){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(x)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c=n(0);function l(x,w){if(!(x instanceof w))throw new TypeError("Cannot call a class as a function")}function d(x,w){for(var h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=k(x);if(w){var N=k(this).constructor;h=Reflect.construct(g,arguments,N)}else h=g.apply(this,arguments);return A(this,h)}}function A(x,w){return!w||a(w)!=="object"&&typeof w!="function"?function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(x):w}function k(x){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(x)}var O=function(x){(function(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),m&&p(v,m)})(N,x);var w,h,g=M(N);function N(){return l(this,N),g.apply(this,arguments)}return w=N,(h=[{key:"render",value:function(){var v=this.props,m=v.saving,I=v.text,z=v.saving_text;return(0,c.h)("button",{type:"submit",className:"btn".concat(m?" saving":"")},m?z||"Saving":I||"Save")}}])&&d(w.prototype,h),N}(c.Component);o.default=O},function(r,o,n){function a(w){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(w)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c=n(0);function l(w,h){if(!(w instanceof h))throw new TypeError("Cannot call a class as a function")}function d(w,h){for(var g=0;g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var g,N=k(w);if(h){var v=k(this).constructor;g=Reflect.construct(N,arguments,v)}else g=N.apply(this,arguments);return A(this,g)}}function A(w,h){return!h||a(h)!=="object"&&typeof h!="function"?function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(w):h}function k(w){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(w)}var O={confirm:{type:"success",text:"message_confirm"},password_mail:{type:"success",text:"message_password_mail"},email_changed:{type:"sucess",text:"message_email_changed"},verfication_error:{type:"error",text:"message_verfication_error"},signup_disabled:{type:"error",text:"message_signup_disabled"}},x=function(w){(function(m,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(I&&I.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),I&&p(m,I)})(v,w);var h,g,N=M(v);function v(){return l(this,v),N.apply(this,arguments)}return h=v,(g=[{key:"render",value:function(){var m=this.props,I=m.type,z=m.t,L=O[I];return(0,c.h)("div",{className:"flashMessage ".concat(L.type)},(0,c.h)("span",null,z(L.text)))}}])&&d(h.prototype,g),v}(c.Component);o.default=x},function(r,o,n){r.exports=function(a){var c=[];return c.toString=function(){return this.map(function(l){var d=function(p,M){var A=p[1]||"",k=p[3];if(!k)return A;if(M&&typeof btoa=="function"){var O=(w=k,h=btoa(unescape(encodeURIComponent(JSON.stringify(w)))),g="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),"/*# ".concat(g," */")),x=k.sources.map(function(N){return"/*# sourceURL=".concat(k.sourceRoot||"").concat(N," */")});return[A].concat(x).concat([O]).join(` -`)}var w,h,g;return[A].join(` -`)}(l,a);return l[2]?"@media ".concat(l[2]," {").concat(d,"}"):d}).join("")},c.i=function(l,d,p){typeof l=="string"&&(l=[[null,l,""]]);var M={};if(p)for(var A=0;AC.length)&&(F=C.length);for(var P=0,$=new Array(F);P0&&arguments[0]!==void 0?arguments[0]:{},P=F.APIUrl,$=F.logo,ct=$===void 0||$,bt=F.namePlaceholder,zt=F.locale;zt&&(M.default.locale=zt);var Nt=document.querySelectorAll("[data-netlify-identity-menu],[data-netlify-identity-button]");Array.prototype.slice.call(Nt).forEach(function(U){var at=U.getAttribute("data-netlify-identity-menu")===null?"button":"menu";(0,a.render)((0,a.h)(l.Provider,{store:M.default},(0,a.h)(A.default,{mode:at,text:U.innerText.trim()})),U,null)}),M.default.init(dt(P)),M.default.modal.logo=ct,M.default.setNamePlaceholder(bt),(Q=document.createElement("iframe")).id="netlify-identity-widget",Q.title="Netlify identity widget",Q.onload=function(){var U=Q.contentDocument.createElement("style");U.innerHTML=k.default.toString(),Q.contentDocument.head.appendChild(U),H=(0,a.render)((0,a.h)(l.Provider,{store:M.default},(0,a.h)(p.default,null)),Q.contentDocument.body,H),ft()},E(Q,pt),Q.src="about:blank";var D=F.container?document.querySelector(F.container):document.body;D.appendChild(Q),L&&(Q.setAttribute("style",L),L=null)})(C)},setLocale:function(C){C&&(M.default.locale=C)},store:M.default},L=null;function E(C,F){var P="";for(var $ in F)P+="".concat($,": ").concat(F[$],"; ");C?C.setAttribute("style",P):L=P}var H,Q,ot={localhost:!0,"127.0.0.1":!0,"0.0.0.0":!0};function dt(C){var F=ot[document.location.hostname];if(C)return new d.default({APIUrl:C,setCookie:!F});if(F){M.default.setIsLocal(F);var P=localStorage.getItem("netlifySiteURL");return P&&M.default.setSiteURL(P),null}return new d.default({setCookie:!F})}var pt={position:"fixed",top:0,left:0,border:"none",width:"100%",height:"100%",overflow:"visible",background:"transparent",display:"none","z-index":99};(0,c.observe)(M.default.modal,"isOpen",function(){M.default.settings||M.default.loadSettings(),E(Q,g(g({},pt),{},{display:M.default.modal.isOpen?"block !important":"none"})),M.default.modal.isOpen?m("open",M.default.modal.page):m("close")}),(0,c.observe)(M.default,"siteURL",function(){var C;if(M.default.siteURL===null||M.default.siteURL===void 0?localStorage.removeItem("netlifySiteURL"):localStorage.setItem("netlifySiteURL",M.default.siteURL),M.default.siteURL){var F=M.default.siteURL.replace(/\/$/,"");C="".concat(F,"/.netlify/identity")}M.default.init(dt(C),!0)}),(0,c.observe)(M.default,"user",function(){M.default.user?m("login",M.default.user):m("logout")}),(0,c.observe)(M.default,"gotrue",function(){M.default.gotrue&&m("init",M.default.gotrue.currentUser())}),(0,c.observe)(M.default,"error",function(){m("error",M.default.error)});var nt=/(confirmation|invite|recovery|email_change)_token=([^&]+)/,it=/error=access_denied&error_description=403/,Mt=/access_token=/;function ft(){var C=(document.location.hash||"").replace(/^#\/?/,"");if(C){var F=C.match(nt);if(F&&(M.default.verifyToken(F[1],F[2]),document.location.hash=""),C.match(it)&&(M.default.openModal("signup"),document.location.hash=""),C.match(Mt)){var P={};if(C.split("&").forEach(function(ct){var bt=x(ct.split("="),2),zt=bt[0],Nt=bt[1];P[zt]=Nt}),document&&P.access_token&&(document.cookie="nf_jwt=".concat(P.access_token)),P.state)try{var $=decodeURIComponent(P.state);if(JSON.parse($).auth_type==="implicit")return}catch{}document.location.hash="",M.default.openModal("login"),M.default.completeExternalLogin(P)}}}var Y=z;o.default=Y},function(r,o,n){function a(x){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(x)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c,l=function(x){if(x&&x.__esModule)return x;if(x===null||a(x)!=="object"&&typeof x!="function")return{default:x};var w=p();if(w&&w.has(x))return w.get(x);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in x)if(Object.prototype.hasOwnProperty.call(x,N)){var v=g?Object.getOwnPropertyDescriptor(x,N):null;v&&(v.get||v.set)?Object.defineProperty(h,N,v):h[N]=x[N]}return h.default=x,w&&w.set(x,h),h}(n(4)),d=(c=n(11))&&c.__esModule?c:{default:c};function p(){if(typeof WeakMap!="function")return null;var x=new WeakMap;return p=function(){return x},x}function M(x,w){if(!(x instanceof w))throw new TypeError("Cannot call a class as a function")}function A(x,w){for(var h=0;h0&&arguments[0]!==void 0?arguments[0]:{},N=g.APIUrl,v=N===void 0?"/.netlify/identity":N,m=g.audience,I=m===void 0?"":m,z=g.setCookie,L=z!==void 0&&z;M(this,x),v.match(k)&&console.warn(`Warning: - -DO NOT USE HTTP IN PRODUCTION FOR GOTRUE EVER! -GoTrue REQUIRES HTTPS to work securely.`),I&&(this.audience=I),this.setCookie=L,this.api=new l.default(v)}var w,h;return w=x,(h=[{key:"_request",value:function(g){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};N.headers=N.headers||{};var v=N.audience||this.audience;return v&&(N.headers["X-JWT-AUD"]=v),this.api.request(g,N).catch(function(m){return m instanceof l.JSONHTTPError&&m.json&&(m.json.msg?m.message=m.json.msg:m.json.error&&(m.message="".concat(m.json.error,": ").concat(m.json.error_description))),Promise.reject(m)})}},{key:"settings",value:function(){return this._request("/settings")}},{key:"signup",value:function(g,N,v){return this._request("/signup",{method:"POST",body:JSON.stringify({email:g,password:N,data:v})})}},{key:"login",value:function(g,N,v){var m=this;return this._setRememberHeaders(v),this._request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=password&username=".concat(encodeURIComponent(g),"&password=").concat(encodeURIComponent(N))}).then(function(I){return d.default.removeSavedSession(),m.createUser(I,v)})}},{key:"loginExternalUrl",value:function(g){return"".concat(this.api.apiURL,"/authorize?provider=").concat(g)}},{key:"confirm",value:function(g,N){return this._setRememberHeaders(N),this.verify("signup",g,N)}},{key:"requestPasswordRecovery",value:function(g){return this._request("/recover",{method:"POST",body:JSON.stringify({email:g})})}},{key:"recover",value:function(g,N){return this._setRememberHeaders(N),this.verify("recovery",g,N)}},{key:"acceptInvite",value:function(g,N,v){var m=this;return this._setRememberHeaders(v),this._request("/verify",{method:"POST",body:JSON.stringify({token:g,password:N,type:"signup"})}).then(function(I){return m.createUser(I,v)})}},{key:"acceptInviteExternalUrl",value:function(g,N){return"".concat(this.api.apiURL,"/authorize?provider=").concat(g,"&invite_token=").concat(N)}},{key:"createUser",value:function(g){var N=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this._setRememberHeaders(N);var v=new d.default(this.api,g,this.audience);return v.getUserData().then(function(m){return N&&m._saveSession(),m})}},{key:"currentUser",value:function(){var g=d.default.recoverSession(this.api);return g&&this._setRememberHeaders(g._fromStorage),g}},{key:"verify",value:function(g,N,v){var m=this;return this._setRememberHeaders(v),this._request("/verify",{method:"POST",body:JSON.stringify({token:N,type:g})}).then(function(I){return m.createUser(I,v)})}},{key:"_setRememberHeaders",value:function(g){this.setCookie&&(this.api.defaultHeaders=this.api.defaultHeaders||{},this.api.defaultHeaders["X-Use-Cookie"]=g?"1":"session")}}])&&A(w.prototype,h),x}();o.default=O,typeof window<"u"&&(window.GoTrue=O)},function(r,o,n){Object.defineProperty(o,"__esModule",{value:!0});var a=function(c,l){if(Array.isArray(c))return c;if(Symbol.iterator in Object(c))return function(d,p){var M=[],A=!0,k=!1,O=void 0;try{for(var x,w=d[Symbol.iterator]();!(A=(x=w.next()).done)&&(M.push(x.value),!p||M.length!==p);A=!0);}catch(h){k=!0,O=h}finally{try{!A&&w.return&&w.return()}finally{if(k)throw O}}return M}(c,l);throw new TypeError("Invalid attempt to destructure non-iterable instance")};o.getPagination=function(c){var l=c.headers.get("Link"),d={};if(l==null)return null;l=l.split(",");for(var p=c.headers.get("X-Total-Count"),M=0,A=l.length;M1&&arguments[1]!==void 0?arguments[1]:{};Q.headers=Q.headers||{};var ot=Q.audience||this.audience;return ot&&(Q.headers["X-JWT-AUD"]=ot),this.jwt().then(function(dt){return H.api.request(E,A({headers:Object.assign(Q.headers,{Authorization:"Bearer ".concat(dt)})},Q)).catch(function(pt){return pt instanceof l.JSONHTTPError&&pt.json&&(pt.json.msg?pt.message=pt.json.msg:pt.json.error&&(pt.message="".concat(pt.json.error,": ").concat(pt.json.error_description))),Promise.reject(pt)})})}},{key:"getUserData",value:function(){return this._request("/user").then(this._saveUserData.bind(this)).then(this._refreshSavedSession.bind(this))}},{key:"_saveUserData",value:function(E,H){for(var Q in E)Q in m.prototype||Q in h||(this[Q]=E[Q]);return H&&(this._fromStorage=!0),this}},{key:"_processTokenResponse",value:function(E){this.token=E;try{var H=JSON.parse(function(Q){var ot=Q.replace(/-/g,"+").replace(/_/g,"/");switch(ot.length%4){case 0:break;case 2:ot+="==";break;case 3:ot+="=";break;default:throw"Illegal base64url string!"}var dt=window.atob(ot);try{return decodeURIComponent(escape(dt))}catch{return dt}}(E.access_token.split(".")[1]));this.token.expires_at=1e3*H.exp}catch(Q){console.error(new Error("Gotrue-js: Failed to parse tokenResponse claims: ".concat(Q)))}}},{key:"_refreshSavedSession",value:function(){return N()&&localStorage.getItem("gotrue.user")&&this._saveSession(),this}},{key:"_saveSession",value:function(){return N()&&localStorage.setItem("gotrue.user",JSON.stringify(this._details)),this}},{key:"tokenDetails",value:function(){return this.token}},{key:"clearSession",value:function(){m.removeSavedSession(),this.token=null,w=null}},{key:"admin",get:function(){return new d.default(this)}},{key:"_details",get:function(){var E={};for(var H in this)H in m.prototype||H in g||(E[H]=this[H]);return E}}])&&O(I.prototype,z),L&&O(I,L),m}();o.default=v},function(r,o,n){function a(l,d){for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:{};return this.user._request("/admin/users/".concat(M.id),{method:"PUT",body:JSON.stringify(A)})}},{key:"createUser",value:function(M,A){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return k.email=M,k.password=A,this.user._request("/admin/users",{method:"POST",body:JSON.stringify(k)})}},{key:"deleteUser",value:function(M){return this.user._request("/admin/users/".concat(M.id),{method:"DELETE"})}}])&&a(d.prototype,p),l}();o.default=c},function(r,o,n){function a(H){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q})(H)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c,l=n(0),d=n(2),p=w(n(14)),M=w(n(15)),A=w(n(16)),k=w(n(17)),O=w(n(18)),x=w(n(6));function w(H){return H&&H.__esModule?H:{default:H}}function h(H,Q){if(!(H instanceof Q))throw new TypeError("Cannot call a class as a function")}function g(H,Q){for(var ot=0;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ot,dt=I(H);if(Q){var pt=I(this).constructor;ot=Reflect.construct(dt,arguments,pt)}else ot=dt.apply(this,arguments);return m(this,ot)}}function m(H,Q){return!Q||a(Q)!=="object"&&typeof Q!="function"?function(ot){if(ot===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ot}(H):Q}function I(H){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(Q){return Q.__proto__||Object.getPrototypeOf(Q)})(H)}var z={login:!0,signup:!0},L={login:{login:!0,button:"log_in",button_saving:"logging_in",email:!0,password:"current-password",link:"amnesia",link_text:"forgot_password",providers:!0},signup:{signup:!0,button:"sign_up",button_saving:"signing_up",name:!0,email:!0,password:"new-password",providers:!0},amnesia:{title:"recover_password",button:"send_recovery_email",button_saving:"sending_recovery_email",email:!0,link:"login",link_text:"never_mind"},recovery:{title:"recover_password",button:"update_password",button_saving:"updating_password",password:"new-password",link:"login",link_text:"never_mind"},invite:{title:"complete_your_signup",button:"sign_up",button_saving:"signing_up",password:"new-password",providers:!0},user:{title:"logged_in"}},E=(0,d.connect)(["store"])(c=function(H){(function(nt,it){if(typeof it!="function"&&it!==null)throw new TypeError("Super expression must either be null or a function");nt.prototype=Object.create(it&&it.prototype,{constructor:{value:nt,writable:!0,configurable:!0}}),it&&N(nt,it)})(pt,H);var Q,ot,dt=v(pt);function pt(){var nt;h(this,pt);for(var it=arguments.length,Mt=new Array(it),ft=0;ft"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,g=k(x);if(w){var N=k(this).constructor;h=Reflect.construct(g,arguments,N)}else h=g.apply(this,arguments);return A(this,h)}}function A(x,w){return!w||a(w)!=="object"&&typeof w!="function"?function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(x):w}function k(x){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(x)}var O=function(x){(function(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),m&&p(v,m)})(N,x);var w,h,g=M(N);function N(){var v;l(this,N);for(var m=arguments.length,I=new Array(m),z=0;z"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,h=A(O);if(x){var g=A(this).constructor;w=Reflect.construct(h,arguments,g)}else w=h.apply(this,arguments);return M(this,w)}}function M(O,x){return!x||a(x)!=="object"&&typeof x!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(O):x}function A(O){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)})(O)}var k=function(O){(function(N,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(v&&v.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),v&&d(N,v)})(g,O);var x,w,h=p(g);function g(N){var v;return function(m,I){if(!(m instanceof I))throw new TypeError("Cannot call a class as a function")}(this,g),(v=h.call(this,N)).handleInput=function(m){var I,z,L;v.setState((I={},z=m.target.name,L=m.target.value,z in I?Object.defineProperty(I,z,{value:L,enumerable:!0,configurable:!0,writable:!0}):I[z]=L,I))},v.addSiteURL=function(m){m.preventDefault();var I,z,L=(I=v.state.url,z="/.netlify/identity",I.indexOf(z)===-1?I:I.substring(0,I.length-z.length));v.props.onSiteURL(L)},v.clearSiteURL=function(m){m.preventDefault,v.props.onSiteURL()},v.state={url:"",development:N.devMode||!1},v}return x=g,(w=[{key:"render",value:function(){var N=this,v=this.state,m=v.url,I=v.development,z=this.props.t;return(0,c.h)("div",null,I?(0,c.h)("div",{class:"subheader"},(0,c.h)("h3",null,z("site_url_title")),(0,c.h)("button",{onclick:function(L){return N.clearSiteURL(L)},className:"btnLink forgotPasswordLink"},z("site_url_link_text"))):(0,c.h)("form",{onsubmit:this.addSiteURL,className:"form"},(0,c.h)("div",{className:"flashMessage"},z("site_url_message")),(0,c.h)("div",{className:"formGroup"},(0,c.h)("label",null,(0,c.h)("span",{className:"visuallyHidden"},z("site_url_label")),(0,c.h)("input",{className:"formControl",type:"url",name:"url",value:m,placeholder:z("site_url_placeholder"),autocapitalize:"off",required:!0,oninput:this.handleInput}),(0,c.h)("div",{className:"inputFieldIcon inputFieldUrl"}))),(0,c.h)("button",{type:"submit",className:"btn"},z("site_url_submit"))))}}])&&l(x.prototype,w),g}(c.Component);o.default=k},function(r,o,n){function a(h){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(h)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c,l=n(0),d=(c=n(5))&&c.__esModule?c:{default:c};function p(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function M(h,g){for(var N=0;N"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var N,v=x(h);if(g){var m=x(this).constructor;N=Reflect.construct(v,arguments,m)}else N=v.apply(this,arguments);return O(this,N)}}function O(h,g){return!g||a(g)!=="object"&&typeof g!="function"?function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(h):g}function x(h){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)})(h)}var w=function(h){(function(I,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(z&&z.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),z&&A(I,z)})(m,h);var g,N,v=k(m);function m(){var I;p(this,m);for(var z=arguments.length,L=new Array(z),E=0;E"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var N,v=x(h);if(g){var m=x(this).constructor;N=Reflect.construct(v,arguments,m)}else N=v.apply(this,arguments);return O(this,N)}}function O(h,g){return!g||a(g)!=="object"&&typeof g!="function"?function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(h):g}function x(h){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)})(h)}var w=function(h){(function(I,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(z&&z.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),z&&A(I,z)})(m,h);var g,N,v=k(m);function m(I){var z;return function(L,E){if(!(L instanceof E))throw new TypeError("Cannot call a class as a function")}(this,m),(z=v.call(this,I)).handleInput=function(L){var E,H,Q;z.setState((E={},H=L.target.name,Q=L.target.value,H in E?Object.defineProperty(E,H,{value:Q,enumerable:!0,configurable:!0,writable:!0}):E[H]=Q,E))},z.handleLogin=function(L){L.preventDefault(),z.props.onSubmit(z.state)},z.state={name:"",email:"",password:""},z}return g=m,(N=[{key:"render",value:function(){var I=this.props,z=I.page,L=I.message,E=I.saving,H=I.namePlaceholder,Q=I.t,ot=this.state,dt=ot.name,pt=ot.email,nt=ot.password;return(0,c.h)("form",{onsubmit:this.handleLogin,className:"form ".concat(E?"disabled":"")},L&&(0,c.h)(l.default,{type:L,t:Q}),z.name&&(0,c.h)("div",{className:"formGroup"},(0,c.h)("label",null,(0,c.h)("span",{className:"visuallyHidden"},Q("form_name_placeholder")),(0,c.h)("input",{className:"formControl",type:"name",name:"name",value:dt,placeholder:H||Q("form_name_label"),autocapitalize:"off",required:!0,oninput:this.handleInput}),(0,c.h)("div",{className:"inputFieldIcon inputFieldName"}))),z.email&&(0,c.h)("div",{className:"formGroup"},(0,c.h)("label",null,(0,c.h)("span",{className:"visuallyHidden"},Q("form_name_label")),(0,c.h)("input",{className:"formControl",type:"email",name:"email",value:pt,placeholder:Q("form_email_placeholder"),autocapitalize:"off",required:!0,oninput:this.handleInput}),(0,c.h)("div",{className:"inputFieldIcon inputFieldEmail"}))),z.password&&(0,c.h)("div",{className:"formGroup"},(0,c.h)("label",null,(0,c.h)("span",{className:"visuallyHidden"},Q("form_password_label")),(0,c.h)("input",{className:"formControl",type:"password",name:"password",value:nt,placeholder:Q("form_password_placeholder"),autocomplete:z.password,required:!0,oninput:this.handleInput}),(0,c.h)("div",{className:"inputFieldIcon inputFieldPassword"}))),(0,c.h)(d.default,{saving:E,text:Q(z.button),saving_text:Q(z.button_saving)}))}}])&&M(g.prototype,N),m}(c.Component);o.default=w},function(r,o,n){function a(g){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(g)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c=n(0);function l(g,N){if(!(g instanceof N))throw new TypeError("Cannot call a class as a function")}function d(g,N){for(var v=0;v"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var v,m=x(g);if(N){var I=x(this).constructor;v=Reflect.construct(m,arguments,I)}else v=m.apply(this,arguments);return O(this,v)}}function O(g,N){return!N||a(N)!=="object"&&typeof N!="function"?function(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}(g):N}function x(g){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)})(g)}var w=function(g){M(v,g);var N=k(v);function v(){var m;l(this,v);for(var I=arguments.length,z=new Array(I),L=0;L1&&arguments[1]!==void 0?arguments[1]:"en",v=h[N]&&h[N][g];return v||h.en[g]||g}},function(r){r.exports=JSON.parse(`{"log_in":"Log in","log_out":"Log out","logged_in_as":"Logged in as","logged_in":"Logged in","logging_in":"Logging in","logging_out":"Logging out","sign_up":"Sign up","signing_up":"Signing up","forgot_password":"Forgot password?","recover_password":"Recover password","send_recovery_email":"Send recovery email","sending_recovery_email":"Sending recovery email","never_mind":"Never mind","update_password":"Update password","updating_password":"Updating password","complete_your_signup":"Complete your signup","site_url_title":"Development Settings","site_url_link_text":"Clear localhost URL","site_url_message":"Looks like you're running a local server. Please let us know the URL of your Netlify site.","site_url_label":"Enter your Netlify Site URL","site_url_placeholder":"URL of your Netlify site","site_url_submit":"Set site's URL","message_confirm":"A confirmation message was sent to your email, click the link there to continue.","message_password_mail":"We've sent a recovery email to your account, follow the link there to reset your password.","message_email_changed":"Your email address has been updated!","message_verfication_error":"There was an error verifying your account. Please try again or contact an administrator.","message_signup_disabled":"Public signups are disabled. Contact an administrator and ask for an invite.","form_name_placeholder":"Name","form_email_label":"Enter your email","form_name_label":"Enter your name","form_email_placeholder":"Email","form_password_label":"Enter your password","form_password_placeholder":"Password","coded_by":"Coded by Netlify","continue_with":"Continue with","No user found with this email":"No user found with this email","Invalid Password":"Invalid Password","Email not confirmed":"Email not confirmed","User not found":"User not found"}`)},function(r){r.exports=JSON.parse(`{"log_in":"Connexion","log_out":"Déconnexion","logged_in_as":"Connecté en tant que","logged_in":"Connecté","logging_in":"Connexion","logging_out":"Déconnexion","sign_up":"Inscription","signing_up":"Inscription","forgot_password":"Mot de passe oublié ?","recover_password":"Récupérer le mot de passe","send_recovery_email":"Envoyer l'e-mail de récupération","sending_recovery_email":"Envoi de l'e-mail de récupération","never_mind":"Annuler","update_password":"Mettre à jour le mot de passe","updating_password":"Mise à jour du mot de passe","complete_your_signup":"Compléter l'inscription","site_url_title":"Paramètres de développement","site_url_link_text":"Effacer l'URL localhost","site_url_message":"On dirait que vous faites tourner un serveur local. Veuillez nous indiquer l'URL de votre site Netlify.","site_url_label":"Entrez l'URL de votre site Netlify","site_url_placeholder":"URL de votre site Netlify","site_url_submit":"Définir l'URL du site","message_confirm":"Un message de confirmation a été envoyé à votre adresse électronique, cliquez sur le lien pour continuer.","message_password_mail":"Nous avons envoyé un e-mail de récupération à votre compte, suivez le lien qui s'y trouve pour réinitialiser votre mot de passe.","message_email_changed":"Votre adresse e-mail a été mise à jour !","message_verfication_error":"Il y a eu une erreur lors de la vérification de votre compte. Veuillez réessayer ou contacter un administrateur.","message_signup_disabled":"Les inscriptions publiques sont désactivées. Contactez un administrateur et demandez une invitation.","form_name_placeholder":"Nom","form_email_label":"Entrez votre adresse e-mail","form_name_label":"Saisissez votre nom","form_email_placeholder":"E-mail","form_password_label":"Saisissez votre mot de passe","form_password_placeholder":"Mot de passe","coded_by":"Codé par Netlify","continue_with":"Continuer avec","No user found with this email":"Aucun utilisateur trouvé avec cet e-mail","Invalid Password":"Mot de passe incorrect","Email not confirmed":"Adresse e-mail non confirmée","User not found":"Aucun utilisateur trouvé"}`)},function(r){r.exports=JSON.parse('{"log_in":"Iniciar sesión","log_out":"Cerrar sesión","logged_in_as":"Conectado como","logged_in":"Conectado","logging_in":"Iniciando sesión","logging_out":"Cerrando sesión","sign_up":"Registrate","signing_up":"Registrandose","forgot_password":"¿Olvidaste tu contraseña?","recover_password":"Recuperar contraseña","send_recovery_email":"Enviar correo electrónico de recuperación","sending_recovery_email":"Enviando correo electrónico de recuperación","never_mind":"Regresar","update_password":"Actualizar contraseña","updating_password":"Actualizando contraseña","complete_your_signup":"Completa tu registro","site_url_title":"Configuración de desarrollo","site_url_link_text":"Borrar URL del localhost","site_url_message":"Parece que estas corriendo un servidor local. Por favor haznos saber la URL de tu sitio en Netlify.","site_url_label":"Ingresa la URL de tu sitio en Netlify","site_url_placeholder":"URL de tu sitio en Netlify","site_url_submit":"Establecer la URL del sitio","message_confirm":"Se envió un mensaje de confirmación a tu correo electrónico, haz clic en el enlace allí para continuar.","message_password_mail":"Hemos enviado un correo electrónico de recuperación a tu correo electrónico, sigue el enlace allí para restablecer tu contraseña.","message_email_changed":"¡Tu dirección de correo electrónico ha sido actualizada!","message_verfication_error":"Se produjo un error al verificar tu cuenta. Por favor intenta nuevamente o contacta a un administrador.","message_signup_disabled":"Los registros públicos están deshabilitados. Contacta a un administrador y solicita una invitación.","form_name_placeholder":"Nombre","form_email_label":"Ingresa tu correo electrónico","form_name_label":"Ingresa tu nombre","form_email_placeholder":"Correo electrónico","form_password_label":"Ingresa tu contraseña","form_password_placeholder":"Contraseña","coded_by":"Codificado por Netlify","continue_with":"Continúa con","No user found with this email":"No existe ningún usuario con este correo electrónico","Invalid Password":"La contraseña es invalida","Email not confirmed":"Correo electrónico no confirmado","User not found":"Usuario no encontrado"}')},function(r){r.exports=JSON.parse('{"log_in":"Bejelentkezés","log_out":"Kijelentkezés","logged_in_as":"Bejelentkezve mint","logged_in":"Bejelentkezve","logging_in":"Bejelentkezés","logging_out":"Kijelentkezés","sign_up":"Regisztráció","signing_up":"Regisztrálás","forgot_password":"Elfelejtette a jelszavát?","recover_password":"Jelszó visszaállítása","send_recovery_email":"Jelszópótló levél küldése","sending_recovery_email":"Jelszópótló levél küldése","never_mind":"Mégsem","update_password":"Új jelszó beállítása","updating_password":"Új jelszó beállítása","complete_your_signup":"Regisztráció befejezése","site_url_title":"Fejlesztői Beállítások","site_url_link_text":"Localhost URL törlése","site_url_message":"Úgy néz ki egy helyi szervert futtat. Kérjük adja meg a Netlify oldala URL-jét.","site_url_label":"Adja meg a Netlify oldala URL-jét","site_url_placeholder":"a Netlify oldala URL-je","site_url_submit":"URL beállítása","message_confirm":"Elküldtünk egy megerősítő levelet e-mailben, kérjük kattintson a linkre a levélben a folytatáshoz.","message_password_mail":"Elküldtünk egy jelszópótló levelet e-mailben, kérjük kövesse a linket a levélben a jelszava visszaállításához.","message_email_changed":"Az e-mail címét frissítettük!","message_verfication_error":"Probléma történt a fiókja megerősítése közben. Kérjük próbálja újra, vagy vegye fel a kapcsolatot egy adminisztrátorral.","message_signup_disabled":"A nyilvános regisztráció nincs engedélyezve. Vegye fel a kapcsolatot egy adminisztrátorral és kérjen meghívót.","form_name_placeholder":"Név","form_email_label":"Adja meg az e-mail címét","form_name_label":"Adja meg a nevét","form_email_placeholder":"E-mail","form_password_label":"Adja meg a jelszavát","form_password_placeholder":"Jelszó","coded_by":"Fejlesztette a Netlify","continue_with":"Bejelentkezés ezzel:","No user found with this email":"Nem található fiók ezzel az e-mail címmel","Invalid Password":"Helytelen Jelszó","Email not confirmed":"Az e-mail nem erősült meg","User not found":"Felhasználó nem található"}')},function(r){r.exports=JSON.parse('{"log_in":"Entrar","log_out":"Sair","logged_in_as":"Logado como","logged_in":"Logado em","logging_in":"Logando em","logging_out":"Saindo","sign_up":"Registrar","signing_up":"Registrando","forgot_password":"Esqueceu a senha?","recover_password":"Recuperar senha","send_recovery_email":"Enviar email de recuperação de senha","sending_recovery_email":"Enviando email de recuperação de senha","never_mind":"Deixa pra lá","update_password":"Atualizar senha","updating_password":"Atualizando senha","complete_your_signup":"Complete seu registro","site_url_title":"Configurações de desenvolvimento","site_url_link_text":"Limpar URL do localhost","site_url_message":"Parece que você está executando um servidor local. Informe-nos o URL do seu site Netlify.","site_url_label":"Insira o URL do seu site Netlify","site_url_placeholder":"URL do seu site Netlify","site_url_submit":"Configure a URL do seu site","message_confirm":"Uma mensagem de confirmação foi enviada para o seu email, clique no link para continuar.","message_password_mail":"Enviamos um e-mail de recuperação para sua conta, siga o link para redefinir sua senha.","message_email_changed":"Seu email foi atualizado!","message_verfication_error":"Ocorreu um erro ao verificar sua conta. Tente novamente ou entre em contato com um administrador.","message_signup_disabled":"Registros públicos estão desabilitados. Contate um administrador e peça por um convite.","form_name_placeholder":"Nome","form_email_label":"Insira seu email","form_name_label":"Insira seu nome","form_email_placeholder":"Email","form_password_label":"Insira sua senha","form_password_placeholder":"Senha","coded_by":"Desenvolvido por Netlify","continue_with":"Continue com","No user found with this email":"Nenhum usuário encontrado com esse email","Invalid Password":"Senha inválida","Email not confirmed":"Email não confirmado","User not found":"Usuário não encontrado"}')},function(r){r.exports=JSON.parse('{"log_in":"Zaloguj się","log_out":"Wyloguj się","logged_in_as":"Zaloguj jako","logged_in":"Zalogowany","logging_in":"Logowanie","logging_out":"Wylogowywanie","sign_up":"Zarejestruj się","signing_up":"Rejestracja","forgot_password":"Nie pamiętasz hasła?","recover_password":"Resetuj hasło","send_recovery_email":"Wyślij link do resetowania hasła","sending_recovery_email":"Wysyłanie linku do resetowania hasła","never_mind":"Nieistotne","update_password":"Zaktualizuj hasło","updating_password":"Aktualizowanie hasło","complete_your_signup":"Dokończ rejestrację","site_url_title":"Ustawienia strony","site_url_link_text":"Usuń adres localhost","site_url_message":"Wygląda na to że został uruchomiony lokalny serwer. Wprowadź adres Twojej strony na Netlify.","site_url_label":"Wprowadz adres strony na Netlify","site_url_placeholder":"Adres Twojej strony na Netlify","site_url_submit":"Ustaw adres strony","message_confirm":"Potwierdzenie zostało wysłane na Twój adres email. Kliknij w link w wiadomości aby kontunuować.","message_password_mail":"Wysłaliśmy link resetujący hasło na Twój adres email. Klknij w link w wiadomości aby zresetować hasło.","message_email_changed":"Twój adres email został zaktualizowany!","message_verfication_error":"Wystąpił błąd podczas weryfikcacji Twoje konta. Spróbuj ponownie lub skontaktuj się z administratorem,","message_signup_disabled":"Publiczna rejestracja jest wyłączona. Skontaktuj się z administratorem by uzyskać zaproszenie.","form_name_placeholder":"Imię","form_email_label":"Wprowadź Twój adres email","form_name_label":"Wprowadź Twoje imię","form_email_placeholder":"Email","form_password_label":"Wprowadź twoje hasło","form_password_placeholder":"Hasło","coded_by":"Coded by Netlify","continue_with":"Kontynuuj z","No user found with this email":"Nie znaleziono użytkownika o tym adresie","Invalid Password":"Hasło nieprawidłowe","Email not confirmed":"Email nie został potwierdzony","User not found":"Nie znaleziono użytkownika"}')},function(r){r.exports=JSON.parse('{"log_in":"Přihlásit se","log_out":"Odhlásit se","logged_in_as":"Přihlášen jako","logged_in":"Přihlášený uživatel","logging_in":"Probíhá přihlášení","logging_out":"Probíhá odhlášení","sign_up":"Zaregistrovat se","signing_up":"Registrace","forgot_password":"Zapomněli jste heslo?","recover_password":"Obnovit heslo","send_recovery_email":"Odeslat e-mail pro obnovení","sending_recovery_email":"Odesílání e-mailu pro obnovení","never_mind":"Zpět","update_password":"Aktualizovat heslo","updated_password":"Aktualizace hesla","complete_your_signup":"Dokončete registraci","site_url_title":"Nastavení vývoje","site_url_link_text":"Vymazat URL localhost","site_url_message":"Zdá se, že používáte lokální server. Sdělte nám prosím adresu URL svého Netlify serveru.","site_url_label":"Zadejte adresu URL svého serveru Netlify","site_url_placeholder":"URL vašeho Netlify serveru","site_url_submit":"Nastavit adresu URL","message_confirm":"Na váš e-mail byl odeslán odkaz k potvrzení registrace, pokračujte kliknutím na tento odkaz.","message_password_mail":"Zaslali jsme vám e-mail pro obnovení hesla, heslo obnovíte kliknutím na odkaz v e-mailu.","message_email_changed":"Vaše e-mailová adresa byla aktualizována!","message_verfication_error":"Při ověřování vašeho účtu došlo k chybě. Zkuste to prosím znovu nebo kontaktujte správce.","message_signup_disabled":"Registrace pro veřejnost jsou zakázány. Kontaktujte správce a požádejte o pozvánku.","form_name_placeholder":"Jméno","form_email_label":"Zadejte svůj e-mail","form_name_label":"Zadejte své jméno","form_email_placeholder":"E-mail","form_password_label":"Zadejte své heslo","form_password_placeholder":"Heslo","coded_by":"Vytvořeno Netlify","continue_with":"Pokračovat přes","No user found with this email":"Nebyl nalezen žádný uživatel s tímto e-mailem","Invalid Password":"Neplatné heslo","Email not confirmed":"E-mail nebyl potvrzen","User not found":"Uživatel nebyl nalezen"}')},function(r){r.exports=JSON.parse('{"log_in":"Prihlásiť sa","log_out":"Odhlásiť sa","logged_in_as":"Prihlásený ako","logged_in":"Prihlásený užívateľ","logging_in":"Prebieha prihlásenie","logging_out":"Prebieha odhlásenie","sign_up":"Zaregistrovať sa","signing_up":"Registrácia","forgot_password":"Zabudli ste heslo?","recover_password":"Obnoviť heslo","send_recovery_email":"Odoslať e-mail pre obnovenie","sending_recovery_email":"Odosielanie e-mailu pre obnovenie","never_mind":"Naspäť","update_password":"Aktualizovať heslo","updated_password":"Aktualizácia hesla","complete_your_signup":"Dokončite registráciu","site_url_title":"Nastavenie vývoja","site_url_link_text":"Vymazať URL localhost","site_url_message":"Zdá sa, že používate lokálny server. Prosím, nastavte URL adresu svojho Netlify servera.","site_url_label":"Zadajte URL svojho Netlify servera","site_url_placeholder":"URL vášho Netlify servera","site_url_submit":"Nastaviť URL adresu","message_confirm":"Potvrďte registráciu kliknutím na odkaz v správe, ktorú sme Vám práve zaslali na váš email.","message_password_mail":"Poslali sme vám e-mail pre obnovenie hesla, heslo obnovíte kliknutím na odkaz v e-maile.","message_email_changed":"Vaša e-mailová adresa bola aktualizovaná!","message_verfication_error":"Pri overovaní vášho účtu došlo k chybe. Prosím, skúste to znova alebo kontaktujte správcu.","message_signup_disabled":"Registrácia pre verejnosť sú zakázané. Kontaktujte správcu a požiadajte o pozvánku.","form_name_placeholder":"Meno","form_email_label":"Zadajte svoj e-mail","form_name_label":"Zadajte svoje meno","form_email_placeholder":"E-mail","form_password_label":"Zadajte svoje heslo","form_password_placeholder":"Heslo","coded_by":"Vytvorené Netlify","continue_with":"Pokračovať cez","No user found with this email":"Nebol nájdený žiadny užívateľ s týmto e-mailom","Invalid Password":"Neplatné heslo","Email not confirmed":"E-mail nebol potvrdený","User not found":"Používateľ nebol nájdený"}')},function(r,o,n){function a(w){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(w)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c,l=n(0);function d(w,h){if(!(w instanceof h))throw new TypeError("Cannot call a class as a function")}function p(w,h){for(var g=0;g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var g,N=O(w);if(h){var v=O(this).constructor;g=Reflect.construct(N,arguments,v)}else g=N.apply(this,arguments);return k(this,g)}}function k(w,h){return!h||a(h)!=="object"&&typeof h!="function"?function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(w):h}function O(w){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(w)}var x=(0,n(2).connect)(["store"])(c=function(w){(function(m,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(I&&I.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),I&&M(m,I)})(v,w);var h,g,N=A(v);function v(){var m;d(this,v);for(var I=arguments.length,z=new Array(I),L=0;L>(-2*n&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function MM(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(Qa(r).replace(/(.)/g,function(o,n){var a=n.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a}))}(e)}catch{return Qa(e)}}function Ho(t){this.message=t}function fM(t,e){if(typeof t!="string")throw new Ho("Invalid token specified");var r=(e=e||{}).header===!0?0:1;try{return JSON.parse(MM(t.split(".")[r]))}catch(o){throw new Ho("Invalid token specified: "+o.message)}}Ho.prototype=new Error,Ho.prototype.name="InvalidTokenError";const gM=wt("button",{id:"hs-dropdown-custom-icon-trigger",type:"button","aria-label":"Site navigation menu",class:"hs-dropdown-toggle p-3 inline-flex justify-center items-center gap-2 rounded-md border font-medium bg-white text-gray-700 shadow-lg align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-lg dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"},[wt("svg",{class:"w-4 h-4",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},[wt("path",{"fill-rule":"evenodd",d:"M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"})])],-1),hM={class:"hs-dropdown-menu font-sans text-base transition-[opacity,margin] duration hs-dropdown-open:opacity-100 opacity-0 hidden min-w-[15rem] bg-white shadow-md rounded-lg p-2 mt-2 dark:bg-gray-800 dark:border dark:border-gray-700","aria-labelledby":"hs-dropdown-custom-icon-trigger"},wM=["href","onClick"],yM=["innerHTML"],NM={key:1,class:"w-4"},mM=["innerHTML"],bM=wt("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512"},[wt("path",{d:"M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"})],-1),xM={class:"font-medium"},vM=wt("span",{class:"font-medium"},"Logout",-1),DM=wt("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512"},[wt("path",{d:"M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"})],-1),jM={class:"font-medium"},zM=["href"],TM=wt("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},[wt("path",{d:"M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"})],-1),AM=wt("span",{class:"font-medium"},"Contact Us",-1),EM=[TM,AM],IM=Je({__name:"Menu.ce",props:{logo:{type:String},title:{type:String},auth:{type:String},contact:{type:String}},setup(t){const e=t,r=Et(null),o=Jt(()=>{var z,L;return(L=(z=r.value)==null?void 0:z.getRootNode())==null?void 0:L.host}),n=Jt(()=>{var z;return(z=r==null?void 0:r.value)==null?void 0:z.parentNode});Ht(n,z=>new lM(z).init()),Ht(o,()=>{p()});const a=Et([]),c=Et(null),l=Jt(()=>{var z,L,E;return((z=c.value)==null?void 0:z.token)&&(((L=c.value)==null?void 0:L.provider)==="github"||d((E=c.value)==null?void 0:E.tokenExpiration))||!1});function d(z){return!(z<=Date.now())}function p(){function z(){a.value=Array.from(o.value.querySelectorAll("li")).map(L=>{const E=L.querySelector("a");let H=E.innerText.trim(),Q=L.querySelector("svg");return{label:H,icon:Q,href:E.href}})}z(),new MutationObserver(L=>{for(let E of L)E.type==="childList"&&z()}).observe(o.value,{childList:!0,subtree:!0})}Pr(async()=>{e.auth==="netlify"?w():e.auth==="github"&&N()}),Ht(c,()=>{c.value?localStorage.setItem("auth-user",JSON.stringify(c.value)):localStorage.getItem("auth-user")&&localStorage.removeItem("auth-user")});function M(z,L){L.preventDefault();let E=z.href.split("/").filter(H=>H).pop().toLowerCase();E=location.host===E?"home":E,E==="search"?window.open(z.href,"_blank"):location.href=z.href}function A(z){return z[0].toUpperCase()+z.slice(1).toLowerCase()}function k(z){z.preventDefault(),e.auth==="netlify"?ur.open("login"):e.auth==="github"&&v()}function O(z){z.preventDefault(),c.value=null,e.auth==="netlify"?ur.logout():e.auth==="github"&&m()}let x="https://juncture-search.netlify.app/.netlify/identity";function w(){location.hostname==="search.plant-humanities.org"&&(x="https://search.plant-humanities.org/.netlify/identity");let z=localStorage.getItem("auth-user")&&JSON.parse(localStorage.getItem("auth-user")||"{}");(z==null?void 0:z.provider)==="netlify"?c.value=z:c.value=null,ur.on("init",L=>{L&&(c.value={provider:"netlify",name:L.user_metadata.full_name,email:L.email,token:L.token})}),ur.on("error",L=>console.error("Error",L)),ur.on("login",L=>{c.value={provider:"netlify",name:L.user_metadata.full_name,email:L.email,token:L.token},ur.close()}),ur.init({APIUrl:x}),h()}function h(){let z=localStorage.getItem("auth-user")&&JSON.parse(localStorage.getItem("auth-user")||"{}");if(z&&!l.value){const L=new FormData;return L.append("grant_type","refresh_token"),L.append("refresh_token",z.token.refresh_token),fetch(`${x}/token`,{method:"POST",body:L}).then(E=>E.json()).then(E=>{console.log("validateNetlifyUser: newToken",E),z.token.access_token=E.access_token,z.token.refresh_token=E.refresh_token,z.token.expires_at=fM(E.access_token).exp*1e3,c.value={provider:"netlify",name:z.user_metadata.full_name,email:z.email,token:z.token}}),null}return null}const g={"www.juncture-digital.org":"f7247e1e4769ba7c61e4","dev.juncture-digital.org":"bb290b5a738cb6fe31c7","search.juncture-digital.org":"ce9f2d2fb0a3498569fd","lab.plant-humanities.org":"2883735f052415de88ce","beta.plant-humanities.org":"4304885bd2882ecd28cc","search.plant-humanities.org":"e75df39d883077c1013f"};async function N(){let z=localStorage.getItem("auth-user")&&JSON.parse(localStorage.getItem("auth-user")||"{}");(z==null?void 0:z.provider)==="github"?c.value=z:c.value=null;let L=new URL(window.location.href).searchParams.get("code");if(L){let E=`${location.pathname}${location.hash}`;window.history.replaceState({},"",E);let H=`https://www.juncture-digital.org/gh-token?code=${L}&hostname=${window.location.hostname}`,Q=await fetch(H);if(Q.ok){let ot=await Q.text(),dt=await I(ot);c.value=dt}}}function v(){let z=new URL(window.location.href).hostname,L=z==="localhost"||z.indexOf("192.168.")===0,E=`${window.location.href}`,H=L?`${window.location.pathname}?code=testing&redirect_uri=${location.pathname}${location.hash}`:g[location.hostname]!==void 0?`https://github.com/login/oauth/authorize?client_id=${g[location.hostname]}&scope=repo&state=juncture&redirect_uri=${E}`:null;H&&(window.location.href=H)}function m(){Object.keys(localStorage).forEach(z=>localStorage.removeItem(z)),c.value=null}async function I(z){let L=await fetch("https://api.github.com/user",{headers:{Accept:"application/vnd.github+json",Authorization:`token ${z}`}});if(L.ok){let E=await L.json();return{provider:"github",username:E.login,name:E.name,email:E.email,token:z}}}return(z,L)=>{var E,H;return Lt(),St("nav",{class:"hs-dropdown relative inline-flex",ref_key:"root",ref:r},[gM,wt("div",hM,[(Lt(!0),St(Me,null,Xn(a.value,Q=>(Lt(),St("a",{key:Q.href,class:"flex items-center gap-x-2 py-2 rounded-md font-sans text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300",href:Q.href,onClick:ot=>M(Q,ot)},[Q.icon?(Lt(),St("svg",{key:0,innerHTML:Q.icon.outerHTML,class:"w-4 h-4 text-gray-500"},null,8,yM)):(Lt(),St("span",NM)),wt("span",{innerHTML:Q.label,class:"font-medium"},null,8,mM)],8,wM))),128)),e.auth&&l.value?(Lt(),St("a",{key:0,class:"flex items-center gap-x-2 py-2 rounded-md text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300",href:"javascript;;",onClick:O},[bM,wt("span",xM,"("+Uo(((E=c.value)==null?void 0:E.name)||((H=c.value)==null?void 0:H.email))+")",1),ks(),vM])):Te("",!0),e.auth&&!l.value?(Lt(),St("a",{key:1,class:"flex items-center gap-x-2 py-2 rounded-md text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300",href:"javascript;;",onClick:k},[DM,wt("span",jM,"Login with "+Uo(A(e.auth)),1)])):Te("",!0),e.contact?(Lt(),St("a",{key:2,class:"flex items-center gap-x-2 py-2 rounded-md font-sans text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300",href:`mailto:${z.$props.contact}`},EM,8,zM)):Te("",!0)])],512)}}}),OM=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-64{height:16rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}} -`,kM=yr(IM,[["styles",[OM]]]),LM=Je({__name:"Meta.ce",props:{title:{type:String},description:{type:String},author:{type:String},viewport:{type:String},robots:{type:String}},setup(t){return(e,r)=>null}}),CM={key:0},SM=["href"],_M=["src"],UM=["src"],YM={class:"flex flex-col ml-4"},QM=["innerHTML"],BM=["innerHTML"],PM={class:"flex items-center gap-4 ml-auto mr-4"},RM=["search-domain","search-cx","search-key"],HM=["auth","contact","innerHTML"],ZM=Je({__name:"Navbar.ce",props:{label:{type:String},subtitle:{type:String},background:{type:String},logo:{type:String},url:{type:String},auth:{type:String},alpha:{type:Number},contact:{type:String},sticky:{type:Boolean,default:!1},height:{type:Number,default:80},offset:{type:Number,default:0},searchDomain:{type:String},searchCx:{type:String},searchKey:{type:String}},setup(t){const e=t,r=Et(null),o=Jt(()=>{var l,d;return(d=(l=r.value)==null?void 0:l.getRootNode())==null?void 0:d.host}),n=Jt(()=>{var l,d;return(d=(l=r==null?void 0:r.value)==null?void 0:l.parentNode)==null?void 0:d.querySelector("section")});Ht(n,()=>c());const a=Et();Pr(()=>{Jn(()=>{var d,p;let l=o.value.querySelector("ul");!l&&((d=window.config)!=null&&d.nav)&&(l=document.createElement("ul"),(p=window.config)==null||p.nav.forEach(M=>{const A=document.createElement("li"),k=document.createElement("a");k.href=M.href,k.innerHTML=`${M.icon}${M.label}`,A.appendChild(k),l.appendChild(A)})),a.value=l.innerHTML})}),Ht(e,()=>c());function c(){if(n.value.style.height=`${e.height}px`,e.offset&&(n.value.style.marginTop=`-${e.offset}px`),e.sticky&&(o.value.classList.add("sticky"),o.value.style.position="sticky",o.value.style.background="#444A1E",o.value.style.opacity="100",o.value.style.marginTop=`-${e.offset}px`),e.label){let l=document.querySelector("title");l||(l=document.createElement("title"),document.head.appendChild(l)),l.innerText=e.label}}return(l,d)=>(Lt(),St("section",{ref_key:"root",ref:r,class:"flex sticky top-0 items-center w-full pl-4 z-10 bg-[#000]/30",style:Yr({height:`${e.height}px`})},[e.logo?(Lt(),St("div",CM,[e.url?(Lt(),St("a",{key:0,href:e.url},[wt("img",{class:"h-[80px] w-[80px]",src:e.logo,alt:"logo"},null,8,_M)],8,SM)):(Lt(),St("img",{key:1,src:e.logo,alt:"logo",class:"logo"},null,8,UM))])):Te("",!0),wt("div",YM,[wt("div",{class:"text-4xl text-white",innerHTML:e.label},null,8,QM),e.subtitle?(Lt(),St("div",{key:0,class:"text-xl text-white",innerHTML:e.subtitle},null,8,BM)):Te("",!0)]),wt("div",PM,[e.searchDomain?(Lt(),St("ve-site-search",{key:0,"search-domain":e.searchDomain,"search-cx":e.searchCx,"search-key":e.searchKey},null,8,RM)):Te("",!0),a.value!==void 0?(Lt(),St("ve-menu",{key:1,auth:t.auth,contact:t.contact,innerHTML:a.value},null,8,HM)):Te("",!0)])],4))}}),FM=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-64{height:16rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}} -`,GM=yr(ZM,[["styles",[FM]]]),WM=wt("input",{class:"search-btn",type:"checkbox",id:"search-btn"},null,-1),VM={class:"wrapper"},qM={class:"search-form"},$M={class:"input-wrapper relative"},JM=wt("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1),KM=[JM],XM={key:0,class:"search-results"},tf=["href"],ef=["innerHTML"],rf=["innerHTML"],of={key:0},nf=wt("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",fill:"#fff"},[wt("path",{d:"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"})],-1),af=[nf],sf="https://www.googleapis.com/customsearch/v1",cf=Je({__name:"SiteSearch.ce",props:{searchDomain:{type:String},searchKey:{type:String},searchCx:{type:String}},setup(t){const e=t,r=Et(g(e.searchDomain||"",e.searchKey||"")),o=Et(null),n=Jt(()=>{var N;return(N=o==null?void 0:o.value)==null?void 0:N.parentNode}),a=Et(),c=Et(),l=Et(""),d=Et([]),p=Et(0),M=Et(!1);Pr(()=>k());function A(N){N.preventDefault(),M.value=!0}function k(){var N,v;a.value=(N=n.value)==null?void 0:N.querySelector("#search-input"),a.value.value="",c.value=(v=n.value)==null?void 0:v.querySelector("#search-btn"),d.value=[]}Ht(M,()=>{var N;c.value&&(c.value.checked=M.value),M&&((N=a.value)==null||N.focus())});function O(){var z;let N=(z=a.value)==null?void 0:z.value.replace(/ /,"%20"),v={q:N,start:N===l.value?d.value.length+1:1,key:r.value,cx:e.searchCx},m=Object.keys(v).map(L=>`${L}=${v[L]}`).join("&"),I=`${sf}?${m}`;fetch(I).then(L=>L.json()).then(L=>{p.value=parseInt(L.searchInformation.totalResults);let E=L.items.map(H=>{let Q=new URL(H.link);return H.link=`${location.origin}${Q.pathname}`,H});d.value=N!==l.value?E:[...d.value,...E],l.value=N||""})}function x(N){N.key==="Enter"&&O()}function w(N){N.preventDefault(),N.stopPropagation(),M.value=!1,a.value&&(a.value.value=""),l.value="",p.value=0,d.value=[]}function h(){M.value=!M.value}function g(N,v){const m=E=>E.split("").map(H=>H.charCodeAt(0)),I=E=>m(N).reduce((H,Q)=>H^Q,E);let z=v.match(/.{1,2}/g);return z?z.map(E=>parseInt(E,16)).map(I).map(E=>String.fromCharCode(E)).join(""):""}return(N,v)=>(Lt(),St("div",{ref_key:"root",ref:o,class:"search",onClick:A},[WM,wt("div",VM,[wt("div",qM,[wt("div",$M,[wt("input",{type:"text",id:"search-input",class:"search-input",onKeyup:x,autocomplete:"off",role:"textbox",placeholder:"Search site"},null,32)]),(Lt(),St("svg",{onClick:w,class:"absolute top-[12px] right-[10px] z-10 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512",fill:"#000"},KM))]),d.value.length>0?(Lt(),St("ul",XM,[(Lt(!0),St(Me,null,Xn(d.value,(m,I)=>(Lt(),St("li",{key:`sr=${I}`},[wt("a",{href:m.link},[wt("h3",{innerHTML:m.htmlTitle},null,8,ef),wt("p",{innerHTML:m.htmlSnippet},null,8,rf)],8,tf)]))),128)),p.value>d.value.length?(Lt(),St("li",of,[wt("div",{class:"more",onClick:O},"More")])):Te("",!0)])):Te("",!0)]),wt("label",{class:"search-icon",htmlFor:"search-btn"},[wt("span",{onClick:h},af)])],512))}}),lf=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-64{height:16rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}}*{box-sizing:border-box}.search-icon{color:#fff;font-size:28px}.search-icon:hover{cursor:pointer}.search{position:relative;display:flex;align-items:center;gap:10px}.search-btn,.search-form,.wrapper{display:none}.wrapper{flex-direction:column;position:absolute;right:-4px}.search-form{display:flex;align-items:center}.search-input{height:42px;width:250px;border-radius:6px;padding:3px 10px;font-size:1rem}.search-submit{background-color:#fff;border-radius:6px;padding:8px 8px 4px;height:24px;z-index:4}.search-submit:hover{background-color:#ddd;cursor:pointer}.search-results{position:absolute;top:42px;left:0;width:326px;max-height:50vh;overflow-y:scroll;z-index:2;background-color:#fff;margin:0 0 0 2px;list-style:none;padding:6px;border-radius:6px;font-size:.9rem;box-shadow:0 6px 20px #00000030}.search-results li:nth-of-type(2n){background-color:#e6e6df}.search-results li{padding:6px;margin:3px;border:1px solid #E6E6DF}.search-results li h3,.search-results li p{margin:8px 0}.search-results li a{text-decoration:none;color:#444}.search-results li a h3{font-weight:700}.search-results li a p{font-weight:300}.search-results li:hover{cursor:pointer;box-shadow:0 4px 8px #0003}.search-btn:checked~.wrapper .search-form{display:flex;width:100%}.search-btn:checked~.wrapper{display:flex}.input-wrapper{display:inline-block;position:relative} -`,uf=yr(cf,[["styles",[lf]]]);Gc(()=>import("./preline-7d6f83a6.js").then(t=>t.p),[]);function df(){customElements.define("ve-entity-infobox",er(Sp)),customElements.define("ve-footer",er(Qp)),customElements.define("ve-header",er(eM)),customElements.define("ve-hero",er(iM)),customElements.define("ve-menu",er(kM)),customElements.define("ve-meta",er(LM)),customElements.define("ve-navbar",er(GM)),customElements.define("ve-site-search",er(uf))}console.log("phl-webcomponents: version=0.4.0");df();export{dM as g}; diff --git a/juncture/index.js b/juncture/index.js index 394a77cd7..8c4f77876 100644 --- a/juncture/index.js +++ b/juncture/index.js @@ -86,7 +86,7 @@ function createJunctureV1App() { new window.Vue({ el: '#vue', components: { - 'juncture-v1': window.httpVueLoader(`${window.config.baseurl}/juncture/src/components/JunctureV1.sfc.vue`) + 'juncture-v1': window.httpVueLoader(`${window.config.baseurl}/juncture/sfc/Juncture.vue`) }, data: () => ({ html }) }) diff --git a/juncture/src/components/Compare.sfc.vue b/juncture/sfc/Compare.vue similarity index 100% rename from juncture/src/components/Compare.sfc.vue rename to juncture/sfc/Compare.vue diff --git a/juncture/sfc/D3PlusNetwork.vue b/juncture/sfc/D3PlusNetwork.vue new file mode 100644 index 000000000..d121ec885 --- /dev/null +++ b/juncture/sfc/D3PlusNetwork.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/juncture/sfc/D3PlusRingNetwork.vue b/juncture/sfc/D3PlusRingNetwork.vue new file mode 100644 index 000000000..8f0ac1ad3 --- /dev/null +++ b/juncture/sfc/D3PlusRingNetwork.vue @@ -0,0 +1,91 @@ + + + diff --git a/juncture/src/components/Footer.sfc.vue b/juncture/sfc/Footer.vue similarity index 100% rename from juncture/src/components/Footer.sfc.vue rename to juncture/sfc/Footer.vue diff --git a/juncture/sfc/Graphic.vue b/juncture/sfc/Graphic.vue new file mode 100644 index 000000000..930bea391 --- /dev/null +++ b/juncture/sfc/Graphic.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/juncture/src/components/Header.sfc.vue b/juncture/sfc/Header.vue similarity index 100% rename from juncture/src/components/Header.sfc.vue rename to juncture/sfc/Header.vue diff --git a/juncture/src/components/IFrame.sfc.vue b/juncture/sfc/IFrame.vue similarity index 100% rename from juncture/src/components/IFrame.sfc.vue rename to juncture/sfc/IFrame.vue diff --git a/juncture/src/components/Image.sfc.vue b/juncture/sfc/Image.vue similarity index 100% rename from juncture/src/components/Image.sfc.vue rename to juncture/sfc/Image.vue diff --git a/juncture/src/components/JunctureV1.sfc.vue b/juncture/sfc/Juncture.vue similarity index 98% rename from juncture/src/components/JunctureV1.sfc.vue rename to juncture/sfc/Juncture.vue index c050b0df9..105bd70b8 100644 --- a/juncture/src/components/JunctureV1.sfc.vue +++ b/juncture/sfc/Juncture.vue @@ -31,6 +31,7 @@ +
>` const ENV = 'PROD' const availableViewers = [ 've1-compare', + 've1-d3plus-network', + 've1-d3plus-ring-network', + 've1-graphic', 've1-iframe', 've1-image', 've1-knightlab-timeline', - 've1-plant-specimen', 've1-map', - 've1-video' + 've1-plant-specimen', + 've1-tabulator', + 've1-video', + 've1-vis-network' ] -const componentsPath = `${window.config.baseurl}/juncture/src/components` +const componentsPath = `${window.config.baseurl}/juncture/sfc` const componentPrefix = 've1-' const contentSource = { @@ -129,16 +135,21 @@ const qargs = {} module.exports = { components: { - 've1-compare': window.httpVueLoader(`${componentsPath}/Compare.sfc.vue`), - 've1-footer': window.httpVueLoader(`${componentsPath}/Footer.sfc.vue`), - 've1-header': window.httpVueLoader(`${componentsPath}/Header.sfc.vue`), - 've1-iframe': window.httpVueLoader(`${componentsPath}/IFrame.sfc.vue`), - 've1-image': window.httpVueLoader(`${componentsPath}/Image.sfc.vue`), - 've1-map': window.httpVueLoader(`${componentsPath}/Map.sfc.vue`), - 've1-knightlab-timeline': window.httpVueLoader(`${componentsPath}/KnightlabTimeline.sfc.vue`), - 've1-plant-specimen': window.httpVueLoader(`${componentsPath}/PlantSpecimen.sfc.vue`), + 've1-compare': window.httpVueLoader(`${componentsPath}/Compare.vue`), + 've1-d3plus-network': window.httpVueLoader(`${componentsPath}/D3PlusNetwork.vue`), + 've1-d3plus-ring-network': window.httpVueLoader(`${componentsPath}/D3PlusRingNetwork.vue`), + 've1-footer': window.httpVueLoader(`${componentsPath}/Footer.vue`), + 've1-graphic': window.httpVueLoader(`${componentsPath}/Graphic.vue`), + 've1-header': window.httpVueLoader(`${componentsPath}/Header.vue`), + 've1-iframe': window.httpVueLoader(`${componentsPath}/IFrame.vue`), + 've1-image': window.httpVueLoader(`${componentsPath}/Image.vue`), + 've1-knightlab-timeline': window.httpVueLoader(`${componentsPath}/KnightlabTimeline.vue`), + 've1-map': window.httpVueLoader(`${componentsPath}/Map.vue`), + 've1-plant-specimen': window.httpVueLoader(`${componentsPath}/PlantSpecimen.vue`), + 've1-tabulator': window.httpVueLoader(`${componentsPath}/Tabulator.vue`), 've1-video': window.httpVueLoader(`${componentsPath}/Video.sfc.vue`), - 've1-visual-essay': window.httpVueLoader(`${componentsPath}/VisualEssay.sfc.vue`), + 've1-vis-network': window.httpVueLoader(`${componentsPath}/VisNetwork.vue`), + 've1-visual-essay': window.httpVueLoader(`${componentsPath}/VisualEssay.vue`), }, props: { inputHtml: String diff --git a/juncture/src/components/KnightlabTimeline.sfc.vue b/juncture/sfc/KnightlabTimeline.vue similarity index 100% rename from juncture/src/components/KnightlabTimeline.sfc.vue rename to juncture/sfc/KnightlabTimeline.vue diff --git a/juncture/src/components/Map.sfc.vue b/juncture/sfc/Map.vue similarity index 100% rename from juncture/src/components/Map.sfc.vue rename to juncture/sfc/Map.vue diff --git a/juncture/src/components/PlantSpecimen.sfc.vue b/juncture/sfc/PlantSpecimen.vue similarity index 100% rename from juncture/src/components/PlantSpecimen.sfc.vue rename to juncture/sfc/PlantSpecimen.vue diff --git a/juncture/sfc/Tabulator.vue b/juncture/sfc/Tabulator.vue new file mode 100644 index 000000000..a076dbf92 --- /dev/null +++ b/juncture/sfc/Tabulator.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/juncture/src/components/Video.sfc.vue b/juncture/sfc/Video.vue similarity index 100% rename from juncture/src/components/Video.sfc.vue rename to juncture/sfc/Video.vue diff --git a/juncture/sfc/VisNetwork.vue b/juncture/sfc/VisNetwork.vue new file mode 100644 index 000000000..190205cf0 --- /dev/null +++ b/juncture/sfc/VisNetwork.vue @@ -0,0 +1,316 @@ + + + + + diff --git a/juncture/src/components/VisualEssay.sfc.vue b/juncture/sfc/VisualEssay.vue similarity index 100% rename from juncture/src/components/VisualEssay.sfc.vue rename to juncture/sfc/VisualEssay.vue diff --git a/juncture/src/types.d.ts b/juncture/src/types.d.ts deleted file mode 100644 index 569d6ff14..000000000 --- a/juncture/src/types.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare module 'preline' -declare module 'ts-md5' diff --git a/juncture/dist/index.html b/juncture/wc/dist/index.html similarity index 77% rename from juncture/dist/index.html rename to juncture/wc/dist/index.html index 3b2483316..b4ed644de 100644 --- a/juncture/dist/index.html +++ b/juncture/wc/dist/index.html @@ -5,7 +5,7 @@ Juncture Components - + diff --git a/juncture/wc/dist/js/flowchart-elk-definition-170a3958-bbc12650.js b/juncture/wc/dist/js/flowchart-elk-definition-170a3958-bbc12650.js new file mode 100644 index 000000000..eb0e6fbec --- /dev/null +++ b/juncture/wc/dist/js/flowchart-elk-definition-170a3958-bbc12650.js @@ -0,0 +1,134 @@ +import{c as Hee,g as wMe,d as gMe,p as pMe,l as K1,s as bI,a as J1n,i as vMe,b as mMe,e as Y1n,f as kMe,h as yMe,j as Uee,k as jMe,m as Q1n,n as $H,o as EMe,q as CMe}from"./index.js";function DH(Ee){throw new Error('Could not dynamically require "'+Ee+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wee={exports:{}};(function(Ee,It){(function(ft){Ee.exports=ft()})(function(){return function(){function ft(dt,Ot,Ei){function j(_t,Gt){if(!Ot[_t]){if(!dt[_t]){var Ue=typeof DH=="function"&&DH;if(!Gt&&Ue)return Ue(_t,!0);if(qt)return qt(_t,!0);var Wi=new Error("Cannot find module '"+_t+"'");throw Wi.code="MODULE_NOT_FOUND",Wi}var Ci=Ot[_t]={exports:{}};dt[_t][0].call(Ci.exports,function(Mn){var vc=dt[_t][1][Mn];return j(vc||Mn)},Ci,Ci.exports,ft,dt,Ot,Ei)}return Ot[_t].exports}for(var qt=typeof DH=="function"&&DH,yu=0;yu0&&arguments[0]!==void 0?arguments[0]:{},Wi=Ue.defaultLayoutOptions,Ci=Wi===void 0?{}:Wi,Mn=Ue.algorithms,vc=Mn===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:Mn,tc=Ue.workerFactory,oo=Ue.workerUrl;if(j(this,_t),this.defaultLayoutOptions=Ci,this.initialized=!1,typeof oo>"u"&&typeof tc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var fo=tc;typeof oo<"u"&&typeof tc>"u"&&(fo=function(bw){return new Worker(bw)});var bc=fo(oo);if(typeof bc.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new yu(bc),this.worker.postMessage({cmd:"register",algorithms:vc}).then(function(id){return Gt.initialized=!0}).catch(console.err)}return Ei(_t,[{key:"layout",value:function(Ue){var Wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ci=Wi.layoutOptions,Mn=Ci===void 0?this.defaultLayoutOptions:Ci,vc=Wi.logging,tc=vc===void 0?!1:vc,oo=Wi.measureExecutionTime,fo=oo===void 0?!1:oo;return Ue?this.worker.postMessage({cmd:"layout",graph:Ue,layoutOptions:Mn,options:{logging:tc,measureExecutionTime:fo}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),_t}();Ot.default=qt;var yu=function(){function _t(Gt){var Ue=this;if(j(this,_t),Gt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Gt,this.worker.onmessage=function(Wi){setTimeout(function(){Ue.receive(Ue,Wi)},0)}}return Ei(_t,[{key:"postMessage",value:function(Ue){var Wi=this.id||0;this.id=Wi+1,Ue.id=Wi;var Ci=this;return new Promise(function(Mn,vc){Ci.resolvers[Wi]=function(tc,oo){tc?(Ci.convertGwtStyleError(tc),vc(tc)):Mn(oo)},Ci.worker.postMessage(Ue)})}},{key:"receive",value:function(Ue,Wi){var Ci=Wi.data,Mn=Ue.resolvers[Ci.id];Mn&&(delete Ue.resolvers[Ci.id],Ci.error?Mn(Ci.error):Mn(null,Ci.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Ue){if(Ue){var Wi=Ue.__java$exception;Wi&&(Wi.cause&&Wi.cause.backingJsObject&&(Ue.cause=Wi.cause.backingJsObject,this.convertGwtStyleError(Ue.cause)),delete Ue.__java$exception)}}}]),_t}()},{}],2:[function(ft,dt,Ot){(function(Ei){(function(){var j;typeof window<"u"?j=window:typeof Ei<"u"?j=Ei:typeof self<"u"&&(j=self);var qt;function yu(){}function _t(){}function Gt(){}function Ue(){}function Wi(){}function Ci(){}function Mn(){}function vc(){}function tc(){}function oo(){}function fo(){}function bc(){}function id(){}function bw(){}function Xg(){}function ww(){}function H1(){}function Yo(){}function xv(){}function Fv(){}function Lv(){}function Bp(){}function Z1n(){}function nln(){}function eln(){}function Vg(){}function N(){}function tln(){}function wI(){}function iln(){}function rln(){}function cln(){}function uln(){}function xH(){}function sln(){}function oln(){}function fln(){}function q1(){}function G1(){}function gI(){}function hln(){}function lln(){}function aln(){}function FH(){}function dln(){}function bln(){}function Qg(){}function Jg(){}function wln(){}function gln(){}function pln(){}function vln(){}function LH(){}function z1(){}function Yg(){}function Zg(){}function mln(){}function Qee(){}function pI(){}function kln(){}function yln(){}function jln(){}function Eln(){}function Cln(){}function Tln(){}function Mln(){}function Aln(){}function Sln(){}function Pln(){}function Iln(){}function Oln(){}function Dln(){}function $ln(){}function xln(){}function Fln(){}function Lln(){}function Nln(){}function Bln(){}function Rln(){}function _ln(){}function Kln(){}function Hln(){}function qln(){}function Gln(){}function zln(){}function Uln(){}function Wln(){}function Xln(){}function Vln(){}function Qln(){}function Jln(){}function Yln(){}function NH(){}function Zln(){}function nan(){}function ean(){}function tan(){}function vI(){}function mI(){}function Vy(){}function ian(){}function ran(){}function kI(){}function can(){}function uan(){}function san(){}function Qy(){}function oan(){}function fan(){}function han(){}function lan(){}function aan(){}function dan(){}function ban(){}function wan(){}function gan(){}function BH(){}function pan(){}function van(){}function man(){}function kan(){}function yan(){}function RH(){}function jan(){}function Ean(){}function Can(){}function Tan(){}function Man(){}function Aan(){}function San(){}function Pan(){}function Ian(){}function Oan(){}function Dan(){}function $an(){}function xan(){}function Fan(){}function yI(){}function Lan(){}function Nan(){}function Ban(){}function Ran(){}function _an(){}function _H(){}function Kan(){}function Han(){}function qan(){}function Gan(){}function zan(){}function Uan(){}function Wan(){}function Xan(){}function Van(){}function Qan(){}function Jan(){}function Yan(){}function Zan(){}function ndn(){}function edn(){}function tdn(){}function idn(){}function rdn(){}function cdn(){}function udn(){}function sdn(){}function odn(){}function fdn(){}function hdn(){}function ldn(){}function adn(){}function ddn(){}function bdn(){}function wdn(){}function gdn(){}function pdn(){}function vdn(){}function mdn(){}function kdn(){}function ydn(){}function jdn(){}function Edn(){}function Cdn(){}function Tdn(){}function Mdn(){}function Adn(){}function Sdn(){}function Pdn(){}function Idn(){}function Odn(){}function Ddn(){}function $dn(){}function xdn(){}function Fdn(){}function Ldn(){}function Ndn(){}function Bdn(){}function Rdn(){}function _dn(){}function Kdn(){}function Hdn(){}function qdn(){}function Gdn(){}function zdn(){}function Udn(){}function Wdn(){}function Xdn(){}function Vdn(){}function Qdn(){}function Jdn(){}function Ydn(){}function Zdn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function s0n(){}function o0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function v0n(){}function m0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function C0n(){}function T0n(){}function M0n(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function D0n(){}function KH(){}function $0n(){}function x0n(){}function F0n(){}function L0n(){}function N0n(){}function B0n(){}function R0n(){}function _0n(){}function K0n(){}function H0n(){}function q0n(){}function G0n(){}function z0n(){}function U0n(){}function W0n(){}function X0n(){}function V0n(){}function Q0n(){}function J0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function sbn(){}function obn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function vbn(){}function mbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Tbn(){}function Mbn(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Dbn(){}function $bn(){}function xbn(){}function Fbn(){}function Lbn(){}function Nbn(){}function Bbn(){}function Rbn(){}function _bn(){}function Kbn(){}function Hbn(){}function qbn(){}function Gbn(){}function zbn(){}function HH(){}function Ubn(){}function Wbn(){}function Xbn(){}function Vbn(){}function Qbn(){}function Jbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function uwn(){}function swn(){}function own(){}function fwn(){}function hwn(){}function lwn(){}function qH(){}function awn(){}function dwn(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function GH(){}function zH(){}function vwn(){}function UH(){}function WH(){}function mwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Twn(){}function Mwn(){}function Awn(){}function XH(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function $wn(){}function xwn(){}function Fwn(){}function Lwn(){}function Nwn(){}function Bwn(){}function Rwn(){}function _wn(){}function Kwn(){}function Hwn(){}function qwn(){}function Gwn(){}function zwn(){}function Uwn(){}function Wwn(){}function Xwn(){}function Vwn(){}function Qwn(){}function Jwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function sgn(){}function ogn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function vgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Tgn(){}function Mgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function $gn(){}function xgn(){}function Fgn(){}function Lgn(){}function Ngn(){}function Bgn(){}function Rgn(){}function _gn(){}function Kgn(){}function jI(){}function EI(){}function CI(){}function Hgn(){}function qgn(){}function Ggn(){}function zgn(){}function Ugn(){}function VH(){}function Wgn(){}function Xgn(){}function Jee(){}function Vgn(){}function Qgn(){}function Jgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function Jl(){}function t2n(){}function n2(){}function QH(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function s2n(){}function o2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function v2n(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function dn(){}function C2n(){}function T2n(){}function M2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function $2n(){}function TI(){}function x2n(){}function F2n(){}function L2n(){}function N2n(){}function B2n(){}function JH(){}function Jy(){}function Yy(){}function R2n(){}function YH(){}function Zy(){}function _2n(){}function K2n(){}function H2n(){}function q2n(){}function G2n(){}function z2n(){}function nj(){}function U2n(){}function W2n(){}function X2n(){}function ej(){}function V2n(){}function ZH(){}function Q2n(){}function MI(){}function nq(){}function J2n(){}function Y2n(){}function Z2n(){}function npn(){}function Yee(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function spn(){}function opn(){}function fpn(){}function hpn(){}function Rp(){}function AI(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function vpn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Tpn(){}function Mpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function $pn(){}function xpn(){}function Fpn(){}function Lpn(){}function Npn(){}function Bpn(){}function Rpn(){}function _pn(){}function Kpn(){}function Hpn(){}function qpn(){}function Gpn(){}function zpn(){}function Upn(){}function Wpn(){}function Xpn(){}function Vpn(){}function Qpn(){}function Jpn(){}function Ypn(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function s3n(){}function o3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function v3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function T3n(){}function M3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function $3n(){}function x3n(){}function F3n(){}function L3n(){}function N3n(){}function B3n(){}function R3n(){}function _3n(){}function K3n(){}function H3n(){}function q3n(){}function G3n(){}function z3n(){}function U3n(){}function W3n(){}function X3n(){}function V3n(){}function Q3n(){}function J3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function eq(){}function r4n(){}function c4n(){}function SI(){qv()}function u4n(){kx()}function s4n(){g6()}function o4n(){QT()}function f4n(){nY()}function h4n(){zo()}function l4n(){lJ()}function a4n(){S7()}function d4n(){W9()}function b4n(){U9()}function w4n(){m8()}function g4n(){v7n()}function p4n(){L2()}function v4n(){Oj()}function m4n(){PSn()}function k4n(){HIn()}function y4n(){sPn()}function j4n(){CMn()}function E4n(){Q3()}function C4n(){ml()}function T4n(){qIn()}function M4n(){pAn()}function A4n(){WZ()}function S4n(){Ixn()}function P4n(){TMn()}function I4n(){nn()}function O4n(){EMn()}function D4n(){GIn()}function $4n(){WOn()}function x4n(){AMn()}function F4n(){aPn()}function L4n(){m7n()}function N4n(){FY()}function B4n(){bb()}function R4n(){pOn()}function _4n(){D7()}function K4n(){VF()}function H4n(){tF()}function q4n(){Yd()}function G4n(){OV()}function z4n(){MMn()}function U4n(){BBn()}function W4n(){DY()}function X4n(){KF()}function V4n(){FC()}function Q4n(){iM()}function tq(){Xe()}function J4n(){vT()}function Y4n(){RQ()}function iq(){jM()}function Fo(){dEn()}function rq(){rx()}function Z4n(){mZ()}function cq(n){_n(n)}function nvn(n){this.a=n}function tj(n){this.a=n}function evn(n){this.a=n}function tvn(n){this.a=n}function ivn(n){this.a=n}function rvn(n){this.a=n}function cvn(n){this.a=n}function uvn(n){this.a=n}function uq(n){this.a=n}function sq(n){this.a=n}function svn(n){this.a=n}function PI(n){this.a=n}function ovn(n){this.a=n}function II(n){this.a=n}function fvn(n){this.a=n}function OI(n){this.a=n}function hvn(n){this.a=n}function DI(n){this.a=n}function lvn(n){this.a=n}function avn(n){this.a=n}function dvn(n){this.a=n}function oq(n){this.b=n}function bvn(n){this.c=n}function wvn(n){this.a=n}function gvn(n){this.a=n}function pvn(n){this.a=n}function vvn(n){this.a=n}function mvn(n){this.a=n}function kvn(n){this.a=n}function yvn(n){this.a=n}function jvn(n){this.a=n}function Evn(n){this.a=n}function Cvn(n){this.a=n}function Tvn(n){this.a=n}function Mvn(n){this.a=n}function Avn(n){this.a=n}function fq(n){this.a=n}function hq(n){this.a=n}function ij(n){this.a=n}function I9(n){this.a=n}function Yl(){this.a=[]}function Svn(n,e){n.a=e}function Zee(n,e){n.a=e}function nte(n,e){n.b=e}function ete(n,e){n.b=e}function tte(n,e){n.b=e}function lq(n,e){n.j=e}function ite(n,e){n.g=e}function rte(n,e){n.i=e}function cte(n,e){n.c=e}function ute(n,e){n.d=e}function ste(n,e){n.d=e}function ote(n,e){n.c=e}function Zl(n,e){n.k=e}function fte(n,e){n.c=e}function aq(n,e){n.c=e}function dq(n,e){n.a=e}function hte(n,e){n.a=e}function lte(n,e){n.f=e}function ate(n,e){n.a=e}function dte(n,e){n.b=e}function $I(n,e){n.d=e}function rj(n,e){n.i=e}function bq(n,e){n.o=e}function bte(n,e){n.r=e}function wte(n,e){n.a=e}function gte(n,e){n.b=e}function Pvn(n,e){n.e=e}function pte(n,e){n.f=e}function wq(n,e){n.g=e}function vte(n,e){n.e=e}function mte(n,e){n.f=e}function kte(n,e){n.f=e}function yte(n,e){n.n=e}function jte(n,e){n.a=e}function Ete(n,e){n.a=e}function Cte(n,e){n.c=e}function Tte(n,e){n.c=e}function Mte(n,e){n.d=e}function Ate(n,e){n.e=e}function Ste(n,e){n.g=e}function Pte(n,e){n.a=e}function Ite(n,e){n.c=e}function Ote(n,e){n.d=e}function Dte(n,e){n.e=e}function $te(n,e){n.f=e}function xte(n,e){n.j=e}function Fte(n,e){n.a=e}function Lte(n,e){n.b=e}function Nte(n,e){n.a=e}function Ivn(n){n.b=n.a}function Ovn(n){n.c=n.d.d}function Nv(n){this.d=n}function na(n){this.a=n}function _p(n){this.a=n}function gq(n){this.a=n}function Mh(n){this.a=n}function O9(n){this.a=n}function Dvn(n){this.a=n}function pq(n){this.a=n}function D9(n){this.a=n}function vq(n){this.a=n}function mq(n){this.a=n}function kq(n){this.a=n}function x0(n){this.a=n}function $9(n){this.a=n}function x9(n){this.a=n}function yq(n){this.b=n}function Kp(n){this.b=n}function Hp(n){this.b=n}function xI(n){this.a=n}function $vn(n){this.a=n}function jq(n){this.a=n}function FI(n){this.c=n}function E(n){this.c=n}function xvn(n){this.c=n}function Eq(n){this.a=n}function Cq(n){this.a=n}function Tq(n){this.a=n}function Mq(n){this.a=n}function ut(n){this.a=n}function Fvn(n){this.a=n}function Aq(n){this.a=n}function Sq(n){this.a=n}function Lvn(n){this.a=n}function Nvn(n){this.a=n}function Bv(n){this.a=n}function Bvn(n){this.a=n}function Rvn(n){this.a=n}function _vn(n){this.a=n}function Kvn(n){this.a=n}function Hvn(n){this.a=n}function qvn(n){this.a=n}function Gvn(n){this.a=n}function zvn(n){this.a=n}function Uvn(n){this.a=n}function Wvn(n){this.a=n}function Xvn(n){this.a=n}function Vvn(n){this.a=n}function Qvn(n){this.a=n}function Jvn(n){this.a=n}function Yvn(n){this.a=n}function Zvn(n){this.a=n}function n5n(n){this.a=n}function F9(n){this.a=n}function e5n(n){this.a=n}function t5n(n){this.a=n}function cj(n){this.a=n}function i5n(n){this.a=n}function r5n(n){this.a=n}function qp(n){this.a=n}function Pq(n){this.a=n}function c5n(n){this.a=n}function u5n(n){this.a=n}function s5n(n){this.a=n}function o5n(n){this.a=n}function f5n(n){this.a=n}function Iq(n){this.a=n}function Oq(n){this.a=n}function Dq(n){this.a=n}function uj(n){this.a=n}function sj(n){this.e=n}function Gp(n){this.a=n}function h5n(n){this.a=n}function e2(n){this.a=n}function $q(n){this.a=n}function l5n(n){this.a=n}function a5n(n){this.a=n}function d5n(n){this.a=n}function b5n(n){this.a=n}function w5n(n){this.a=n}function g5n(n){this.a=n}function p5n(n){this.a=n}function v5n(n){this.a=n}function m5n(n){this.a=n}function k5n(n){this.a=n}function y5n(n){this.a=n}function xq(n){this.a=n}function j5n(n){this.a=n}function E5n(n){this.a=n}function C5n(n){this.a=n}function T5n(n){this.a=n}function M5n(n){this.a=n}function A5n(n){this.a=n}function S5n(n){this.a=n}function P5n(n){this.a=n}function I5n(n){this.a=n}function O5n(n){this.a=n}function D5n(n){this.a=n}function $5n(n){this.a=n}function x5n(n){this.a=n}function F5n(n){this.a=n}function L5n(n){this.a=n}function N5n(n){this.a=n}function B5n(n){this.a=n}function R5n(n){this.a=n}function _5n(n){this.a=n}function K5n(n){this.a=n}function H5n(n){this.a=n}function q5n(n){this.a=n}function G5n(n){this.a=n}function z5n(n){this.a=n}function U5n(n){this.a=n}function W5n(n){this.a=n}function X5n(n){this.a=n}function V5n(n){this.a=n}function Q5n(n){this.a=n}function J5n(n){this.a=n}function Y5n(n){this.a=n}function Z5n(n){this.a=n}function n6n(n){this.a=n}function e6n(n){this.a=n}function t6n(n){this.a=n}function i6n(n){this.a=n}function r6n(n){this.a=n}function c6n(n){this.c=n}function u6n(n){this.b=n}function s6n(n){this.a=n}function o6n(n){this.a=n}function f6n(n){this.a=n}function h6n(n){this.a=n}function l6n(n){this.a=n}function a6n(n){this.a=n}function d6n(n){this.a=n}function b6n(n){this.a=n}function w6n(n){this.a=n}function g6n(n){this.a=n}function p6n(n){this.a=n}function v6n(n){this.a=n}function m6n(n){this.a=n}function k6n(n){this.a=n}function y6n(n){this.a=n}function j6n(n){this.a=n}function E6n(n){this.a=n}function C6n(n){this.a=n}function T6n(n){this.a=n}function M6n(n){this.a=n}function A6n(n){this.a=n}function S6n(n){this.a=n}function P6n(n){this.a=n}function I6n(n){this.a=n}function U1(n){this.a=n}function t2(n){this.a=n}function O6n(n){this.a=n}function D6n(n){this.a=n}function $6n(n){this.a=n}function x6n(n){this.a=n}function F6n(n){this.a=n}function L6n(n){this.a=n}function N6n(n){this.a=n}function B6n(n){this.a=n}function R6n(n){this.a=n}function _6n(n){this.a=n}function K6n(n){this.a=n}function H6n(n){this.a=n}function q6n(n){this.a=n}function G6n(n){this.a=n}function z6n(n){this.a=n}function U6n(n){this.a=n}function oj(n){this.a=n}function W6n(n){this.a=n}function X6n(n){this.a=n}function V6n(n){this.a=n}function Q6n(n){this.a=n}function J6n(n){this.a=n}function Y6n(n){this.a=n}function Z6n(n){this.a=n}function nmn(n){this.a=n}function emn(n){this.a=n}function tmn(n){this.a=n}function imn(n){this.a=n}function rmn(n){this.a=n}function cmn(n){this.a=n}function umn(n){this.a=n}function smn(n){this.a=n}function omn(n){this.a=n}function fmn(n){this.a=n}function hmn(n){this.a=n}function lmn(n){this.a=n}function amn(n){this.a=n}function dmn(n){this.a=n}function bmn(n){this.a=n}function wmn(n){this.a=n}function gmn(n){this.a=n}function pmn(n){this.a=n}function vmn(n){this.a=n}function mmn(n){this.a=n}function kmn(n){this.a=n}function Fq(n){this.a=n}function kt(n){this.b=n}function ymn(n){this.f=n}function Lq(n){this.a=n}function jmn(n){this.a=n}function Emn(n){this.a=n}function Cmn(n){this.a=n}function Tmn(n){this.a=n}function Mmn(n){this.a=n}function Amn(n){this.a=n}function Smn(n){this.a=n}function Pmn(n){this.a=n}function L9(n){this.a=n}function Imn(n){this.a=n}function Omn(n){this.b=n}function Nq(n){this.c=n}function fj(n){this.e=n}function Dmn(n){this.a=n}function hj(n){this.a=n}function lj(n){this.a=n}function LI(n){this.a=n}function $mn(n){this.a=n}function xmn(n){this.d=n}function Bq(n){this.a=n}function Rq(n){this.a=n}function rd(n){this.e=n}function Bte(){this.a=0}function gw(){dyn(this)}function X(){HO(this)}function we(){Eu(this)}function NI(){pTn(this)}function Fmn(){}function cd(){this.c=m1n}function Rte(n,e){e.Wb(n)}function Lmn(n,e){n.b+=e}function Nmn(n){n.b=new nO}function T(n){return n.e}function _te(n){return n.a}function Kte(n){return n.a}function Hte(n){return n.a}function qte(n){return n.a}function Gte(n){return n.a}function zte(){return null}function Ute(){return null}function Wte(){TG(),rTe()}function Xte(n){n.b.tf(n.e)}function Rv(n,e){n.b=e-n.b}function _v(n,e){n.a=e-n.a}function Bmn(n,e){e.ad(n.a)}function Vte(n,e){ui(e,n)}function Qte(n,e,t){n.Od(t,e)}function N9(n,e){n.e=e,e.b=n}function _q(n){xf(),this.a=n}function Rmn(n){xf(),this.a=n}function _mn(n){xf(),this.a=n}function Kq(n){Y0(),this.a=n}function Kmn(n){y3(),wR.be(n)}function ea(){Qyn.call(this)}function Hq(){Qyn.call(this)}function qq(){ea.call(this)}function BI(){ea.call(this)}function Hmn(){ea.call(this)}function B9(){ea.call(this)}function ou(){ea.call(this)}function Kv(){ea.call(this)}function ye(){ea.call(this)}function ps(){ea.call(this)}function qmn(){ea.call(this)}function ic(){ea.call(this)}function Gmn(){ea.call(this)}function zmn(){this.a=this}function aj(){this.Bb|=256}function Umn(){this.b=new Xkn}function Gq(){Gq=N,new we}function zq(){qq.call(this)}function Wmn(n,e){n.length=e}function dj(n,e){W(n.a,e)}function Jte(n,e){tY(n.c,e)}function Yte(n,e){ri(n.b,e)}function Zte(n,e){GT(n.a,e)}function nie(n,e){Px(n.a,e)}function zp(n,e){et(n.e,e)}function i2(n){uM(n.c,n.b)}function eie(n,e){n.kc().Nb(e)}function Uq(n){this.a=Zge(n)}function fi(){this.a=new we}function Xmn(){this.a=new we}function bj(){this.a=new X}function RI(){this.a=new X}function Wq(){this.a=new X}function Ls(){this.a=new Oln}function ta(){this.a=new TSn}function Xq(){this.a=new BH}function Vq(){this.a=new h7n}function Vmn(){this.a=new YMn}function Qq(){this.a=new bMn}function Jq(){this.a=new Bjn}function Qmn(){this.a=new X}function Yq(){this.a=new X}function Jmn(){this.a=new X}function Ymn(){this.a=new X}function Zmn(){this.d=new X}function n9n(){this.a=new fi}function e9n(){this.a=new we}function t9n(){this.b=new we}function i9n(){this.b=new X}function Zq(){this.e=new X}function r9n(){this.d=new X}function c9n(){this.a=new C4n}function u9n(){X.call(this)}function nG(){bj.call(this)}function s9n(){EE.call(this)}function o9n(){Yq.call(this)}function _I(){Hv.call(this)}function Hv(){Fmn.call(this)}function r2(){Fmn.call(this)}function eG(){r2.call(this)}function f9n(){zTn.call(this)}function h9n(){zTn.call(this)}function l9n(){oG.call(this)}function a9n(){oG.call(this)}function d9n(){oG.call(this)}function b9n(){fG.call(this)}function fu(){Ct.call(this)}function tG(){B2n.call(this)}function iG(){B2n.call(this)}function w9n(){O9n.call(this)}function g9n(){O9n.call(this)}function p9n(){we.call(this)}function v9n(){we.call(this)}function m9n(){we.call(this)}function k9n(){fi.call(this)}function KI(){RIn.call(this)}function y9n(){aj.call(this)}function HI(){$z.call(this)}function qI(){$z.call(this)}function rG(){we.call(this)}function GI(){we.call(this)}function j9n(){we.call(this)}function cG(){ej.call(this)}function E9n(){ej.call(this)}function C9n(){cG.call(this)}function T9n(){eq.call(this)}function M9n(n){hIn.call(this,n)}function A9n(n){hIn.call(this,n)}function uG(n){uq.call(this,n)}function sG(n){n7n.call(this,n)}function tie(n){sG.call(this,n)}function iie(n){n7n.call(this,n)}function Up(){this.a=new Ct}function oG(){this.a=new fi}function fG(){this.a=new we}function S9n(){this.a=new X}function P9n(){this.j=new X}function hG(){this.a=new Rgn}function I9n(){this.a=new T8n}function O9n(){this.a=new X2n}function zI(){zI=N,fR=new V9n}function UI(){UI=N,oR=new X9n}function qv(){qv=N,sR=new _t}function wj(){wj=N,aR=new Xyn}function rie(n){sG.call(this,n)}function cie(n){sG.call(this,n)}function D9n(n){j$.call(this,n)}function $9n(n){j$.call(this,n)}function x9n(n){uEn.call(this,n)}function WI(n){T5e.call(this,n)}function ud(n){B0.call(this,n)}function Gv(n){Aj.call(this,n)}function lG(n){Aj.call(this,n)}function F9n(n){Aj.call(this,n)}function Rr(n){kCn.call(this,n)}function L9n(n){Rr.call(this,n)}function c2(){I9.call(this,{})}function gj(n){u3(),this.a=n}function zv(n){n.b=null,n.c=0}function uie(n,e){n.e=e,NNn(n,e)}function sie(n,e){n.a=e,l6e(n)}function XI(n,e,t){n.a[e.g]=t}function oie(n,e,t){A4e(t,n,e)}function fie(n,e){xue(e.i,n.n)}function N9n(n,e){Fwe(n).td(e)}function hie(n,e){return n*n/e}function B9n(n,e){return n.g-e.g}function lie(n){return new ij(n)}function aie(n){return new J0(n)}function pj(n){Rr.call(this,n)}function vr(n){Rr.call(this,n)}function R9n(n){Rr.call(this,n)}function VI(n){kCn.call(this,n)}function QI(n){PV(),this.a=n}function _9n(n){aEn(),this.a=n}function F0(n){MD(),this.f=n}function JI(n){MD(),this.f=n}function Wp(n){Rr.call(this,n)}function Hn(n){Rr.call(this,n)}function Dr(n){Rr.call(this,n)}function K9n(n){Rr.call(this,n)}function u2(n){Rr.call(this,n)}function on(n){return _n(n),n}function K(n){return _n(n),n}function R9(n){return _n(n),n}function aG(n){return _n(n),n}function die(n){return _n(n),n}function Uv(n){return n.b==n.c}function L0(n){return!!n&&n.b}function bie(n){return!!n&&n.k}function wie(n){return!!n&&n.j}function Ku(n){_n(n),this.a=n}function dG(n){return ka(n),n}function Wv(n){TW(n,n.length)}function t1(n){Rr.call(this,n)}function Pf(n){Rr.call(this,n)}function YI(n){Rr.call(this,n)}function pw(n){Rr.call(this,n)}function Xv(n){Rr.call(this,n)}function Ce(n){Rr.call(this,n)}function ZI(n){Jz.call(this,n,0)}function nO(){cX.call(this,12,3)}function bG(){bG=N,win=new xv}function H9n(){H9n=N,bin=new yu}function vj(){vj=N,pm=new id}function q9n(){q9n=N,vzn=new Xg}function G9n(){throw T(new ye)}function wG(){throw T(new ye)}function z9n(){throw T(new ye)}function gie(){throw T(new ye)}function pie(){throw T(new ye)}function vie(){throw T(new ye)}function eO(){this.a=Te(pe(Ji))}function s2(n){xf(),this.a=pe(n)}function U9n(n,e){n.Td(e),e.Sd(n)}function mie(n,e){n.a.ec().Mc(e)}function kie(n,e,t){n.c.lf(e,t)}function gG(n){vr.call(this,n)}function If(n){Hn.call(this,n)}function i1(){O9.call(this,"")}function Vv(){O9.call(this,"")}function W1(){O9.call(this,"")}function N0(){O9.call(this,"")}function pG(n){vr.call(this,n)}function Xp(n){Kp.call(this,n)}function tO(n){bE.call(this,n)}function W9n(n){Xp.call(this,n)}function X9n(){II.call(this,null)}function V9n(){II.call(this,null)}function mj(){mj=N,y3()}function Q9n(){Q9n=N,Szn=nve()}function J9n(n){return n.a?n.b:0}function yie(n){return n.a?n.b:0}function jie(n,e){return n.a-e.a}function Eie(n,e){return n.a-e.a}function Cie(n,e){return n.a-e.a}function kj(n,e){return VX(n,e)}function M(n,e){return pMn(n,e)}function Tie(n,e){return e in n.a}function Y9n(n,e){return n.f=e,n}function Mie(n,e){return n.b=e,n}function Z9n(n,e){return n.c=e,n}function Aie(n,e){return n.g=e,n}function vG(n,e){return n.a=e,n}function mG(n,e){return n.f=e,n}function Sie(n,e){return n.k=e,n}function kG(n,e){return n.a=e,n}function Pie(n,e){return n.e=e,n}function yG(n,e){return n.e=e,n}function Iie(n,e){return n.f=e,n}function Oie(n,e){n.b=!0,n.d=e}function Die(n,e){n.b=new mr(e)}function $ie(n,e,t){e.td(n.a[t])}function xie(n,e,t){e.we(n.a[t])}function Fie(n,e){return n.b-e.b}function Lie(n,e){return n.g-e.g}function Nie(n,e){return n.s-e.s}function Bie(n,e){return n?0:e-1}function n8n(n,e){return n?0:e-1}function Rie(n,e){return n?e-1:0}function _ie(n,e){return e.Yf(n)}function sd(n,e){return n.b=e,n}function yj(n,e){return n.a=e,n}function od(n,e){return n.c=e,n}function fd(n,e){return n.d=e,n}function hd(n,e){return n.e=e,n}function jG(n,e){return n.f=e,n}function Qv(n,e){return n.a=e,n}function Vp(n,e){return n.b=e,n}function Qp(n,e){return n.c=e,n}function gn(n,e){return n.c=e,n}function Dn(n,e){return n.b=e,n}function pn(n,e){return n.d=e,n}function vn(n,e){return n.e=e,n}function Kie(n,e){return n.f=e,n}function mn(n,e){return n.g=e,n}function kn(n,e){return n.a=e,n}function yn(n,e){return n.i=e,n}function jn(n,e){return n.j=e,n}function e8n(n,e){return n.k=e,n}function Hie(n,e){return n.j=e,n}function qie(n,e){ml(),Kr(e,n)}function Gie(n,e,t){Bfe(n.a,e,t)}function t8n(n){mTn.call(this,n)}function EG(n){mTn.call(this,n)}function jj(n){fD.call(this,n)}function i8n(n){s2e.call(this,n)}function X1(n){Fd.call(this,n)}function r8n(n){JD.call(this,n)}function c8n(n){JD.call(this,n)}function u8n(){Sz.call(this,"")}function Li(){this.a=0,this.b=0}function s8n(){this.b=0,this.a=0}function o8n(n,e){n.b=0,ob(n,e)}function zie(n,e){n.c=e,n.b=!0}function f8n(n,e){return n.c._b(e)}function Lo(n){return n.e&&n.e()}function iO(n){return n?n.d:null}function h8n(n,e){return LDn(n.b,e)}function Uie(n){return n?n.g:null}function Wie(n){return n?n.i:null}function V1(n){return Ph(n),n.o}function ld(){ld=N,Mne=l4e()}function l8n(){l8n=N,vi=Eve()}function Jp(){Jp=N,v1n=d4e()}function a8n(){a8n=N,hee=a4e()}function CG(){CG=N,oc=o6e()}function TG(){TG=N,zl=B3()}function d8n(){throw T(new ye)}function b8n(){throw T(new ye)}function w8n(){throw T(new ye)}function g8n(){throw T(new ye)}function p8n(){throw T(new ye)}function v8n(){throw T(new ye)}function Ej(n){this.a=new o2(n)}function MG(n){d_n(),pTe(this,n)}function Q1(n){this.a=new ID(n)}function vw(n,e){for(;n.ye(e););}function AG(n,e){for(;n.sd(e););}function mw(n,e){return n.a+=e,n}function rO(n,e){return n.a+=e,n}function r1(n,e){return n.a+=e,n}function ad(n,e){return n.a+=e,n}function Jv(n){return sl(n),n.a}function Cj(n){return n.b!=n.d.c}function m8n(n){return n.l|n.m<<22}function SG(n,e){return n.d[e.p]}function k8n(n,e){return J8e(n,e)}function PG(n,e,t){n.splice(e,t)}function y8n(n){n.c?rBn(n):cBn(n)}function Tj(n){this.a=0,this.b=n}function j8n(){this.a=new H7(Oon)}function E8n(){this.b=new H7(pon)}function C8n(){this.b=new H7(xK)}function T8n(){this.b=new H7(xK)}function M8n(){throw T(new ye)}function A8n(){throw T(new ye)}function S8n(){throw T(new ye)}function P8n(){throw T(new ye)}function I8n(){throw T(new ye)}function O8n(){throw T(new ye)}function D8n(){throw T(new ye)}function $8n(){throw T(new ye)}function x8n(){throw T(new ye)}function F8n(){throw T(new ye)}function Xie(){throw T(new ic)}function Vie(){throw T(new ic)}function _9(n){this.a=new L8n(n)}function L8n(n){ube(this,n,uve())}function K9(n){return!n||iTn(n)}function H9(n){return Af[n]!=-1}function Qie(){qA!=0&&(qA=0),GA=-1}function N8n(){uR==null&&(uR=[])}function Jie(n,e){LF(R(n.a),e)}function Yie(n,e){LF(R(n.a),e)}function q9(n,e){Sw.call(this,n,e)}function Yp(n,e){q9.call(this,n,e)}function IG(n,e){this.b=n,this.c=e}function B8n(n,e){this.b=n,this.a=e}function R8n(n,e){this.a=n,this.b=e}function _8n(n,e){this.a=n,this.b=e}function K8n(n,e){this.a=n,this.b=e}function H8n(n,e){this.a=n,this.b=e}function q8n(n,e){this.a=n,this.b=e}function G8n(n,e){this.a=n,this.b=e}function z8n(n,e){this.a=n,this.b=e}function U8n(n,e){this.a=n,this.b=e}function W8n(n,e){this.b=n,this.a=e}function X8n(n,e){this.b=n,this.a=e}function V8n(n,e){this.b=n,this.a=e}function Q8n(n,e){this.b=n,this.a=e}function Oe(n,e){this.f=n,this.g=e}function Zp(n,e){this.e=n,this.d=e}function dd(n,e){this.g=n,this.i=e}function cO(n,e){this.a=n,this.b=e}function J8n(n,e){this.a=n,this.f=e}function Y8n(n,e){this.b=n,this.c=e}function Zie(n,e){this.a=n,this.b=e}function Z8n(n,e){this.a=n,this.b=e}function uO(n,e){this.a=n,this.b=e}function n7n(n){_z(n.dc()),this.c=n}function Mj(n){this.b=u(pe(n),83)}function e7n(n){this.a=u(pe(n),83)}function B0(n){this.a=u(pe(n),15)}function t7n(n){this.a=u(pe(n),15)}function Aj(n){this.b=u(pe(n),47)}function Sj(){this.q=new j.Date}function eh(){eh=N,Iin=new tln}function n3(){n3=N,V4=new nln}function Yv(n){return n.f.c+n.g.c}function G9(n,e){return n.b.Hc(e)}function i7n(n,e){return n.b.Ic(e)}function r7n(n,e){return n.b.Qc(e)}function c7n(n,e){return n.b.Hc(e)}function u7n(n,e){return n.c.uc(e)}function Ah(n,e){return n.a._b(e)}function s7n(n,e){return tt(n.c,e)}function o7n(n,e){return zu(n.b,e)}function f7n(n,e){return n>e&&e<_6}function nre(n,e){return n.Gc(e),n}function ere(n,e){return Vi(n,e),n}function tre(n){return YCn(),n?pzn:gzn}function o2(n){XOn.call(this,n,0)}function h7n(){ID.call(this,null)}function OG(){D$.call(this,null)}function f2(n){this.c=n,qPn(this)}function Ct(){yyn(this),Rs(this)}function Bt(n,e){sl(n),n.a.Nb(e)}function l7n(n,e){return n.Gc(e),n}function ire(n,e){return n.a.f=e,n}function a7n(n,e){return n.a.d=e,n}function d7n(n,e){return n.a.g=e,n}function b7n(n,e){return n.a.j=e,n}function ho(n,e){return n.a.a=e,n}function lo(n,e){return n.a.d=e,n}function ao(n,e){return n.a.e=e,n}function bo(n,e){return n.a.g=e,n}function z9(n,e){return n.a.f=e,n}function rre(n){return n.b=!1,n}function e3(){e3=N,Hin=new Vkn}function Pj(){Pj=N,Izn=new Qkn}function t3(){t3=N,Xin=new aln}function w7n(){w7n=N,IWn=new Ran}function Ij(){Ij=N,OR=new sjn}function ia(){ia=N,Q4=new kln}function Zv(){Zv=N,DWn=new _an}function g7n(){g7n=N,_zn=new Tln}function DG(){DG=N,mWn=new jan}function U9(){U9=N,FWn=new Li}function p7n(){p7n=N,kWn=new Pan}function $G(){$G=N,yWn=new aCn}function xG(){xG=N,zrn=new Aan}function W9(){W9=N,LWn=new ddn}function v7n(){v7n=N,_Wn=new Jdn}function n5(){n5=N,UWn=new Dbn}function Oj(){Oj=N,jg=new twn}function m7n(){m7n=N,bYn=new hi}function Dj(){Dj=N,FK=new y7n}function $j(){$j=N,LK=new yjn}function e5(){e5=N,by=new lTn}function xj(){xj=N,LQn=new O2n}function k7n(){KIn(),this.c=new nO}function y7n(){Oe.call(this,fHn,0)}function bd(n,e){Ta(n.c.b,e.c,e)}function t5(n,e){Ta(n.c.c,e.b,e)}function cre(n,e,t){kr(n.d,e.f,t)}function ure(n,e,t,i){Lpe(n,i,e,t)}function sre(n,e,t,i){r8e(i,n,e,t)}function ore(n,e,t,i){yCe(i,n,e,t)}function Fj(n,e){return n.a=e.g,n}function j7n(n,e){return z3e(n.a,e)}function fre(n){return n.b?n.b:n.a}function hre(n){return(n.c+n.a)/2}function R0(){R0=N,Cne=new N2n}function E7n(){E7n=N,Dne=new K2n}function C7n(){C7n=N,zne=new v9n}function T7n(){T7n=N,Une=new m9n}function J1(){J1=N,co=new rG}function FG(){FG=N,p1n=new j9n}function i5(){i5=N,kH=new Ayn}function c1(){c1=N,_y=new Syn}function sO(){sO=N,uee=new t3n}function er(){er=N,oee=new i3n}function Lj(){Lj=N,rI=new we}function LG(){LG=N,S1n=new X}function Y1(){Y1=N,Vl=new c4n}function lre(n){j.clearTimeout(n)}function NG(n){this.a=u(pe(n),224)}function Nj(n){return u(n,42).cd()}function X9(n){return n.b0}function oO(n,e){return fc(n,e)<0}function r5(n,e){return n.a.get(e)}function are(n,e){return e.split(n)}function S7n(n,e){return zu(n.e,e)}function BG(n){return _n(n),!1}function Bj(n){Fn.call(this,n,21)}function dre(n,e){cMn.call(this,n,e)}function Rj(n,e){Oe.call(this,n,e)}function fO(n,e){Oe.call(this,n,e)}function RG(n){qD(),uEn.call(this,n)}function _G(n,e){fCn(n,n.length,e)}function V9(n,e){BCn(n,n.length,e)}function bre(n,e,t){e.ud(n.a.Ge(t))}function wre(n,e,t){e.we(n.a.Fe(t))}function gre(n,e,t){e.td(n.a.Kb(t))}function pre(n,e,t){n.Mb(t)&&e.td(t)}function c5(n,e,t){n.splice(e,0,t)}function vre(n,e){return lu(n.e,e)}function _j(n,e){this.d=n,this.e=e}function P7n(n,e){this.b=n,this.a=e}function I7n(n,e){this.b=n,this.a=e}function KG(n,e){this.b=n,this.a=e}function O7n(n,e){this.a=n,this.b=e}function D7n(n,e){this.a=n,this.b=e}function $7n(n,e){this.a=n,this.b=e}function x7n(n,e){this.a=n,this.b=e}function h2(n,e){this.a=n,this.b=e}function HG(n,e){this.b=n,this.a=e}function qG(n,e){this.b=n,this.a=e}function Kj(n,e){Oe.call(this,n,e)}function Hj(n,e){Oe.call(this,n,e)}function GG(n,e){Oe.call(this,n,e)}function zG(n,e){Oe.call(this,n,e)}function kw(n,e){Oe.call(this,n,e)}function hO(n,e){Oe.call(this,n,e)}function lO(n,e){Oe.call(this,n,e)}function aO(n,e){Oe.call(this,n,e)}function qj(n,e){Oe.call(this,n,e)}function UG(n,e){Oe.call(this,n,e)}function dO(n,e){Oe.call(this,n,e)}function Q9(n,e){Oe.call(this,n,e)}function Gj(n,e){Oe.call(this,n,e)}function bO(n,e){Oe.call(this,n,e)}function u5(n,e){Oe.call(this,n,e)}function WG(n,e){Oe.call(this,n,e)}function zt(n,e){Oe.call(this,n,e)}function zj(n,e){Oe.call(this,n,e)}function F7n(n,e){this.a=n,this.b=e}function L7n(n,e){this.a=n,this.b=e}function N7n(n,e){this.a=n,this.b=e}function B7n(n,e){this.a=n,this.b=e}function R7n(n,e){this.a=n,this.b=e}function _7n(n,e){this.a=n,this.b=e}function K7n(n,e){this.a=n,this.b=e}function H7n(n,e){this.a=n,this.b=e}function q7n(n,e){this.a=n,this.b=e}function XG(n,e){this.b=n,this.a=e}function G7n(n,e){this.b=n,this.a=e}function z7n(n,e){this.b=n,this.a=e}function U7n(n,e){this.b=n,this.a=e}function i3(n,e){this.c=n,this.d=e}function W7n(n,e){this.e=n,this.d=e}function X7n(n,e){this.a=n,this.b=e}function V7n(n,e){this.b=e,this.c=n}function Uj(n,e){Oe.call(this,n,e)}function J9(n,e){Oe.call(this,n,e)}function wO(n,e){Oe.call(this,n,e)}function s5(n,e){Oe.call(this,n,e)}function VG(n,e){Oe.call(this,n,e)}function gO(n,e){Oe.call(this,n,e)}function pO(n,e){Oe.call(this,n,e)}function Y9(n,e){Oe.call(this,n,e)}function QG(n,e){Oe.call(this,n,e)}function vO(n,e){Oe.call(this,n,e)}function o5(n,e){Oe.call(this,n,e)}function JG(n,e){Oe.call(this,n,e)}function f5(n,e){Oe.call(this,n,e)}function h5(n,e){Oe.call(this,n,e)}function _0(n,e){Oe.call(this,n,e)}function mO(n,e){Oe.call(this,n,e)}function kO(n,e){Oe.call(this,n,e)}function YG(n,e){Oe.call(this,n,e)}function l5(n,e){Oe.call(this,n,e)}function yO(n,e){Oe.call(this,n,e)}function Wj(n,e){Oe.call(this,n,e)}function Z9(n,e){Oe.call(this,n,e)}function n8(n,e){Oe.call(this,n,e)}function l2(n,e){Oe.call(this,n,e)}function jO(n,e){Oe.call(this,n,e)}function ZG(n,e){Oe.call(this,n,e)}function EO(n,e){Oe.call(this,n,e)}function CO(n,e){Oe.call(this,n,e)}function nz(n,e){Oe.call(this,n,e)}function TO(n,e){Oe.call(this,n,e)}function MO(n,e){Oe.call(this,n,e)}function AO(n,e){Oe.call(this,n,e)}function SO(n,e){Oe.call(this,n,e)}function ez(n,e){Oe.call(this,n,e)}function Q7n(n,e){this.b=n,this.a=e}function J7n(n,e){this.a=n,this.b=e}function Y7n(n,e){this.a=n,this.b=e}function Z7n(n,e){this.a=n,this.b=e}function nkn(n,e){this.a=n,this.b=e}function tz(n,e){Oe.call(this,n,e)}function iz(n,e){Oe.call(this,n,e)}function ekn(n,e){this.b=n,this.d=e}function rz(n,e){Oe.call(this,n,e)}function cz(n,e){Oe.call(this,n,e)}function tkn(n,e){this.a=n,this.b=e}function ikn(n,e){this.a=n,this.b=e}function Xj(n,e){Oe.call(this,n,e)}function a5(n,e){Oe.call(this,n,e)}function uz(n,e){Oe.call(this,n,e)}function sz(n,e){Oe.call(this,n,e)}function oz(n,e){Oe.call(this,n,e)}function PO(n,e){Oe.call(this,n,e)}function fz(n,e){Oe.call(this,n,e)}function IO(n,e){Oe.call(this,n,e)}function Vj(n,e){Oe.call(this,n,e)}function OO(n,e){Oe.call(this,n,e)}function DO(n,e){Oe.call(this,n,e)}function e8(n,e){Oe.call(this,n,e)}function $O(n,e){Oe.call(this,n,e)}function hz(n,e){Oe.call(this,n,e)}function t8(n,e){Oe.call(this,n,e)}function lz(n,e){Oe.call(this,n,e)}function mre(n,e){return lu(n.c,e)}function kre(n,e){return lu(e.b,n)}function yre(n,e){return-n.b.Je(e)}function az(n,e){return lu(n.g,e)}function i8(n,e){Oe.call(this,n,e)}function a2(n,e){Oe.call(this,n,e)}function rkn(n,e){this.a=n,this.b=e}function ckn(n,e){this.a=n,this.b=e}function fn(n,e){this.a=n,this.b=e}function d5(n,e){Oe.call(this,n,e)}function b5(n,e){Oe.call(this,n,e)}function r8(n,e){Oe.call(this,n,e)}function xO(n,e){Oe.call(this,n,e)}function Qj(n,e){Oe.call(this,n,e)}function w5(n,e){Oe.call(this,n,e)}function FO(n,e){Oe.call(this,n,e)}function Jj(n,e){Oe.call(this,n,e)}function yw(n,e){Oe.call(this,n,e)}function c8(n,e){Oe.call(this,n,e)}function g5(n,e){Oe.call(this,n,e)}function p5(n,e){Oe.call(this,n,e)}function u8(n,e){Oe.call(this,n,e)}function Yj(n,e){Oe.call(this,n,e)}function jw(n,e){Oe.call(this,n,e)}function Zj(n,e){Oe.call(this,n,e)}function ukn(n,e){this.a=n,this.b=e}function skn(n,e){this.a=n,this.b=e}function okn(n,e){this.a=n,this.b=e}function fkn(n,e){this.a=n,this.b=e}function hkn(n,e){this.a=n,this.b=e}function lkn(n,e){this.a=n,this.b=e}function Pi(n,e){this.a=n,this.b=e}function nE(n,e){Oe.call(this,n,e)}function akn(n,e){this.a=n,this.b=e}function dkn(n,e){this.a=n,this.b=e}function bkn(n,e){this.a=n,this.b=e}function wkn(n,e){this.a=n,this.b=e}function gkn(n,e){this.a=n,this.b=e}function pkn(n,e){this.a=n,this.b=e}function vkn(n,e){this.b=n,this.a=e}function mkn(n,e){this.b=n,this.a=e}function kkn(n,e){this.b=n,this.a=e}function ykn(n,e){this.b=n,this.a=e}function jkn(n,e){this.a=n,this.b=e}function Ekn(n,e){this.a=n,this.b=e}function jre(n,e){Y9e(n.a,u(e,56))}function Ckn(n,e){h0e(n.a,u(e,11))}function Ere(n,e){return l3(),e!=n}function Tkn(){return Q9n(),new Szn}function Mkn(){o$(),this.b=new fi}function Akn(){dM(),this.a=new fi}function Skn(){rX(),dW.call(this)}function d2(n,e){Oe.call(this,n,e)}function Pkn(n,e){this.a=n,this.b=e}function Ikn(n,e){this.a=n,this.b=e}function eE(n,e){this.a=n,this.b=e}function Okn(n,e){this.a=n,this.b=e}function Dkn(n,e){this.a=n,this.b=e}function $kn(n,e){this.a=n,this.b=e}function xkn(n,e){this.d=n,this.b=e}function dz(n,e){this.d=n,this.e=e}function Fkn(n,e){this.f=n,this.c=e}function s8(n,e){this.b=n,this.c=e}function bz(n,e){this.i=n,this.g=e}function Lkn(n,e){this.e=n,this.a=e}function Nkn(n,e){this.a=n,this.b=e}function wz(n,e){n.i=null,iT(n,e)}function Cre(n,e){n&&it(Ny,n,e)}function Bkn(n,e){return _x(n.a,e)}function tE(n){return k7(n.c,n.b)}function Xr(n){return n?n.dd():null}function B(n){return n??null}function K0(n){return typeof n===V2}function H0(n){return typeof n===XZ}function mi(n){return typeof n===ML}function Z1(n,e){return n.Hd().Xb(e)}function iE(n,e){return _be(n.Kc(),e)}function wd(n,e){return fc(n,e)==0}function Tre(n,e){return fc(n,e)>=0}function v5(n,e){return fc(n,e)!=0}function Mre(n){return""+(_n(n),n)}function o8(n,e){return n.substr(e)}function Rkn(n){return $u(n),n.d.gc()}function LO(n){return jme(n,n.c),n}function rE(n){return O5(n==null),n}function m5(n,e){return n.a+=""+e,n}function dr(n,e){return n.a+=""+e,n}function k5(n,e){return n.a+=""+e,n}function rc(n,e){return n.a+=""+e,n}function De(n,e){return n.a+=""+e,n}function gz(n,e){return n.a+=""+e,n}function _kn(n,e){Kt(n,e,n.a,n.a.a)}function ra(n,e){Kt(n,e,n.c.b,n.c)}function Are(n,e,t){Vxn(e,PF(n,t))}function Sre(n,e,t){Vxn(e,PF(n,t))}function Pre(n,e){y0e(new ie(n),e)}function Kkn(n,e){n.q.setTime(Dd(e))}function Hkn(n,e){jW.call(this,n,e)}function qkn(n,e){jW.call(this,n,e)}function NO(n,e){jW.call(this,n,e)}function Gkn(n){Eu(this),i6(this,n)}function pz(n){return Ln(n,0),null}function No(n){return n.a=0,n.b=0,n}function zkn(n,e){return n.a=e.g+1,n}function Ire(n,e){return n.j[e.p]==2}function vz(n){return ahe(u(n,79))}function Ukn(){Ukn=N,jUn=xe(Ux())}function Wkn(){Wkn=N,RWn=xe(PNn())}function Xkn(){this.b=new o2(cb(12))}function Vkn(){this.b=0,this.a=!1}function Qkn(){this.b=0,this.a=!1}function y5(n){this.a=n,SI.call(this)}function Jkn(n){this.a=n,SI.call(this)}function In(n,e){ii.call(this,n,e)}function BO(n,e){W0.call(this,n,e)}function Ew(n,e){bz.call(this,n,e)}function RO(n,e){q3.call(this,n,e)}function Ykn(n,e){f8.call(this,n,e)}function He(n,e){Lj(),it(rI,n,e)}function _O(n,e){return Yu(n.a,0,e)}function Zkn(n,e){return n.a.a.a.cc(e)}function nyn(n,e){return B(n)===B(e)}function Ore(n,e){return Zt(n.a,e.a)}function Dre(n,e){return Uc(n.a,e.a)}function $re(n,e){return FCn(n.a,e.a)}function Of(n,e){return n.indexOf(e)}function gd(n,e){return n==e?0:n?1:-1}function cE(n){return n<10?"0"+n:""+n}function xre(n){return pe(n),new y5(n)}function eyn(n){return Bc(n.l,n.m,n.h)}function r3(n){return Ht((_n(n),n))}function Fre(n){return Ht((_n(n),n))}function tyn(n,e){return Uc(n.g,e.g)}function $r(n){return typeof n===XZ}function Lre(n){return n==d0||n==_b}function Nre(n){return n==d0||n==Rb}function mz(n){return xr(n.b.b,n,0)}function iyn(n){this.a=Tkn(),this.b=n}function ryn(n){this.a=Tkn(),this.b=n}function Bre(n,e){return W(n.a,e),e}function Rre(n,e){return W(n.c,e),n}function cyn(n,e){return rs(n.a,e),n}function _re(n,e){return go(),e.a+=n}function Kre(n,e){return go(),e.a+=n}function Hre(n,e){return go(),e.c+=n}function kz(n,e){P3(n,0,n.length,e)}function Sh(){Aq.call(this,new aa)}function uyn(){BE.call(this,0,0,0,0)}function b2(){ks.call(this,0,0,0,0)}function mr(n){this.a=n.a,this.b=n.b}function nl(n){return n==Ys||n==So}function c3(n){return n==Yh||n==Jh}function syn(n){return n==Fg||n==xg}function Cw(n){return n!=Cf&&n!=Kl}function Hu(n){return n.Lg()&&n.Mg()}function oyn(n){return nC(u(n,118))}function uE(n){return rs(new hi,n)}function fyn(n,e){return new q3(e,n)}function qre(n,e){return new q3(e,n)}function yz(n,e,t){VC(n,e),QC(n,t)}function sE(n,e,t){Bd(n,e),Nd(n,t)}function Zo(n,e,t){Zc(n,e),nu(n,t)}function oE(n,e,t){$3(n,e),F3(n,t)}function fE(n,e,t){x3(n,e),L3(n,t)}function KO(n,e){V3(n,e),N3(n,n.D)}function jz(n){Fkn.call(this,n,!0)}function hyn(n,e,t){lU.call(this,n,e,t)}function el(n){kl(),Gbe.call(this,n)}function lyn(){Rj.call(this,"Head",1)}function ayn(){Rj.call(this,"Tail",3)}function HO(n){n.c=x(Zn,rn,1,0,5,1)}function dyn(n){n.a=x(Zn,rn,1,8,5,1)}function byn(n){Yc(n.xf(),new t5n(n))}function Tw(n){return n!=null?mt(n):0}function Gre(n,e){return ub(e,tf(n))}function zre(n,e){return ub(e,tf(n))}function Ure(n,e){return n[n.length]=e}function Wre(n,e){return n[n.length]=e}function Ez(n){return Uoe(n.b.Kc(),n.a)}function Xre(n,e){return tT(KD(n.d),e)}function Vre(n,e){return tT(KD(n.g),e)}function Qre(n,e){return tT(KD(n.j),e)}function tr(n,e){ii.call(this,n.b,e)}function pd(n){BE.call(this,n,n,n,n)}function Cz(n){return n.b&&fL(n),n.a}function Tz(n){return n.b&&fL(n),n.c}function Jre(n,e){mf||(n.b=e)}function qO(n,e,t){return Mt(n,e,t),t}function wyn(n,e,t){Mt(n.c[e.g],e.g,t)}function Yre(n,e,t){u(n.c,69).Xh(e,t)}function Zre(n,e,t){Zo(t,t.i+n,t.j+e)}function nce(n,e){me(wc(n.a),PMn(e))}function ece(n,e){me(Ou(n.a),IMn(e))}function j5(n){Je(),rd.call(this,n)}function tce(n){return n==null?0:mt(n)}function gyn(){gyn=N,dK=new d6(oH)}function je(){je=N,new pyn,new X}function pyn(){new we,new we,new we}function Mz(){Mz=N,Gq(),gin=new we}function nf(){nf=N,j.Math.log(2)}function vs(){vs=N,Th=(E7n(),Dne)}function ice(){throw T(new t1(izn))}function rce(){throw T(new t1(izn))}function cce(){throw T(new t1(rzn))}function uce(){throw T(new t1(rzn))}function vyn(n){this.a=n,GU.call(this,n)}function GO(n){this.a=n,Mj.call(this,n)}function zO(n){this.a=n,Mj.call(this,n)}function bi(n,e){jD(n.c,n.c.length,e)}function _r(n){return n.ae?1:0}function kyn(n,e){return fc(n,e)>0?n:e}function Bc(n,e,t){return{l:n,m:e,h:t}}function sce(n,e){n.a!=null&&Ckn(e,n.a)}function yyn(n){n.a=new wI,n.c=new wI}function hE(n){this.b=n,this.a=new X}function jyn(n){this.b=new san,this.a=n}function Sz(n){kU.call(this),this.a=n}function Eyn(){Rj.call(this,"Range",2)}function Cyn(){jJ(),this.a=new H7(Grn)}function oce(n,e){pe(e),Iw(n).Jc(new oo)}function fce(n,e){return Zu(),e.n.b+=n}function hce(n,e,t){return it(n.g,t,e)}function lce(n,e,t){return it(n.k,t,e)}function ace(n,e){return it(n.a,e.a,e)}function Mw(n,e,t){return HQ(e,t,n.c)}function Pz(n){return new fn(n.c,n.d)}function dce(n){return new fn(n.c,n.d)}function Vr(n){return new fn(n.a,n.b)}function Tyn(n,e){return LEe(n.a,e,null)}function bce(n){Ki(n,null),Ti(n,null)}function Myn(n){h$(n,null),l$(n,null)}function Ayn(){f8.call(this,null,null)}function Syn(){vE.call(this,null,null)}function Iz(n){this.a=n,we.call(this)}function wce(n){this.b=(Pn(),new FI(n))}function lE(n){n.j=x(Pin,q,310,0,0,1)}function gce(n,e,t){n.c.Vc(e,u(t,133))}function pce(n,e,t){n.c.ji(e,u(t,133))}function Pyn(n,e){de(n),n.Gc(u(e,15))}function E5(n,e){return Yje(n.c,n.b,e)}function vce(n,e){return new Jyn(n.Kc(),e)}function UO(n,e){return pwe(n.Kc(),e)!=-1}function Oz(n,e){return n.a.Bc(e)!=null}function aE(n){return n.Ob()?n.Pb():null}function Iyn(n){return Ks(n,0,n.length)}function I(n,e){return n!=null&&Qx(n,e)}function mce(n,e){n.q.setHours(e),D6(n,e)}function Oyn(n,e){n.c&&(eW(e),iMn(e))}function kce(n,e,t){u(n.Kb(t),164).Nb(e)}function yce(n,e,t){return PEe(n,e,t),t}function Dyn(n,e,t){n.a=e^1502,n.b=t^cN}function WO(n,e,t){return n.a[e.g][t.g]}function ef(n,e){return n.a[e.c.p][e.p]}function jce(n,e){return n.e[e.c.p][e.p]}function Ece(n,e){return n.c[e.c.p][e.p]}function Cce(n,e){return n.j[e.p]=$9e(e)}function Tce(n,e){return xX(n.f,e.tg())}function Mce(n,e){return xX(n.b,e.tg())}function Ace(n,e){return n.a0?e*e/n:e*e*100}function Yce(n,e){return n>0?e/(n*n):e*100}function Zce(n,e,t){return W(e,e$n(n,t))}function nue(n,e,t){FC(),n.Xe(e)&&t.td(n)}function o3(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function G0(n,e,t){return n.a+=e,n.b+=t,n}function eue(n,e,t){return n.a*=e,n.b*=t,n}function a8(n,e,t){return n.a-=e,n.b-=t,n}function eU(n,e){return n.a=e.a,n.b=e.b,n}function yE(n){return n.a=-n.a,n.b=-n.b,n}function fjn(n){this.c=n,this.a=1,this.b=1}function hjn(n){this.c=n,Zc(n,0),nu(n,0)}function ljn(n){Ct.call(this),Z5(this,n)}function ajn(n){CL(),Nmn(this),this.mf(n)}function djn(n,e){i5(),f8.call(this,n,e)}function tU(n,e){c1(),vE.call(this,n,e)}function bjn(n,e){c1(),vE.call(this,n,e)}function wjn(n,e){c1(),tU.call(this,n,e)}function qu(n,e,t){Wu.call(this,n,e,t,2)}function nD(n,e){vs(),NE.call(this,n,e)}function gjn(n,e){vs(),nD.call(this,n,e)}function iU(n,e){vs(),nD.call(this,n,e)}function pjn(n,e){vs(),iU.call(this,n,e)}function rU(n,e){vs(),NE.call(this,n,e)}function vjn(n,e){vs(),rU.call(this,n,e)}function mjn(n,e){vs(),NE.call(this,n,e)}function tue(n,e){return n.c.Fc(u(e,133))}function cU(n,e,t){return TM(X8(n,e),t)}function iue(n,e,t){return e.Qk(n.e,n.c,t)}function rue(n,e,t){return e.Rk(n.e,n.c,t)}function eD(n,e){return wl(n.e,u(e,49))}function cue(n,e,t){l6(Ou(n.a),e,IMn(t))}function uue(n,e,t){l6(wc(n.a),e,PMn(t))}function uU(n,e){e.$modCount=n.$modCount}function S5(){S5=N,Ym=new kt("root")}function f3(){f3=N,Ry=new w9n,new g9n}function kjn(){this.a=new Id,this.b=new Id}function sU(){RIn.call(this),this.Bb|=Yi}function yjn(){Oe.call(this,"GROW_TREE",0)}function sue(n){return n==null?null:TCe(n)}function oue(n){return n==null?null:$5e(n)}function fue(n){return n==null?null:Lr(n)}function hue(n){return n==null?null:Lr(n)}function Ph(n){n.o==null&&s9e(n)}function sn(n){return O5(n==null||K0(n)),n}function Y(n){return O5(n==null||H0(n)),n}function Te(n){return O5(n==null||mi(n)),n}function oU(n){this.q=new j.Date(Dd(n))}function d8(n,e){this.c=n,Zp.call(this,n,e)}function jE(n,e){this.a=n,d8.call(this,n,e)}function lue(n,e){this.d=n,Ovn(this),this.b=e}function fU(n,e){D$.call(this,n),this.a=e}function hU(n,e){D$.call(this,n),this.a=e}function aue(n){NQ.call(this,0,0),this.f=n}function lU(n,e,t){$C.call(this,n,e,t,null)}function jjn(n,e,t){$C.call(this,n,e,t,null)}function due(n,e,t){return n.ue(e,t)<=0?t:e}function bue(n,e,t){return n.ue(e,t)<=0?e:t}function wue(n,e){return u(xd(n.b,e),149)}function gue(n,e){return u(xd(n.c,e),229)}function tD(n){return u(un(n.a,n.b),287)}function Ejn(n){return new fn(n.c,n.d+n.a)}function Cjn(n){return Zu(),syn(u(n,197))}function z0(){z0=N,mrn=Cn((Vu(),ed))}function pue(n,e){e.a?t7e(n,e):XO(n.a,e.b)}function Tjn(n,e){mf||W(n.a,e)}function vue(n,e){return U9(),H3(e.d.i,n)}function mue(n,e){return L2(),new ABn(e,n)}function $f(n,e){return P8(e,bnn),n.f=e,n}function aU(n,e,t){return t=ss(n,e,3,t),t}function dU(n,e,t){return t=ss(n,e,6,t),t}function bU(n,e,t){return t=ss(n,e,9,t),t}function b8(n,e,t){++n.j,n.Ki(),I$(n,e,t)}function Mjn(n,e,t){++n.j,n.Hi(e,n.oi(e,t))}function Ajn(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function Sjn(n,e,t){return SZ(n.c,n.b,e,t)}function wU(n,e){return(e&nt)%n.d.length}function ii(n,e){kt.call(this,n),this.a=e}function gU(n,e){Nq.call(this,n),this.a=e}function iD(n,e){Nq.call(this,n),this.a=e}function Pjn(n,e){this.c=n,Fd.call(this,e)}function Ijn(n,e){this.a=n,Omn.call(this,e)}function w8(n,e){this.a=n,Omn.call(this,e)}function Ojn(n){this.a=(is(n,Ab),new Oc(n))}function Djn(n){this.a=(is(n,Ab),new Oc(n))}function g8(n){return!n.a&&(n.a=new fo),n.a}function $jn(n){return n>8?0:n+1}function kue(n,e){return qn(),n==e?0:n?1:-1}function pU(n,e,t){return k2(n,u(e,22),t)}function yue(n,e,t){return n.apply(e,t)}function xjn(n,e,t){return n.a+=Ks(e,0,t),n}function vU(n,e){var t;return t=n.e,n.e=e,t}function jue(n,e){var t;t=n[rN],t.call(n,e)}function Eue(n,e){var t;t=n[rN],t.call(n,e)}function U0(n,e){n.a.Vc(n.b,e),++n.b,n.c=-1}function Fjn(n){Eu(n.e),n.d.b=n.d,n.d.a=n.d}function p8(n){n.b?p8(n.b):n.f.c.zc(n.e,n.d)}function Cue(n,e,t){ia(),Svn(n,e.Ce(n.a,t))}function Tue(n,e){return iO(p$n(n.a,e,!0))}function Mue(n,e){return iO(v$n(n.a,e,!0))}function wo(n,e){return kj(new Array(e),n)}function rD(n){return String.fromCharCode(n)}function Aue(n){return n==null?null:n.message}function Ljn(){this.a=new X,this.b=new X}function Njn(){this.a=new BH,this.b=new Umn}function Bjn(){this.b=new Li,this.c=new X}function mU(){this.d=new Li,this.e=new Li}function kU(){this.n=new Li,this.o=new Li}function EE(){this.n=new r2,this.i=new b2}function Rjn(){this.a=new v4n,this.b=new cwn}function _jn(){this.a=new X,this.d=new X}function Kjn(){this.b=new fi,this.a=new fi}function Hjn(){this.b=new we,this.a=new we}function qjn(){this.b=new E8n,this.a=new sgn}function Gjn(){EE.call(this),this.a=new Li}function P5(n){Ybe.call(this,n,(NC(),yR))}function yU(n,e,t,i){BE.call(this,n,e,t,i)}function Sue(n,e,t){t!=null&&nT(e,sF(n,t))}function Pue(n,e,t){t!=null&&eT(e,sF(n,t))}function jU(n,e,t){return t=ss(n,e,11,t),t}function st(n,e){return n.a+=e.a,n.b+=e.b,n}function ki(n,e){return n.a-=e.a,n.b-=e.b,n}function Iue(n,e){return n.n.a=(_n(e),e+10)}function Oue(n,e){return n.n.a=(_n(e),e+10)}function Due(n,e){return e==n||f4(hM(e),n)}function zjn(n,e){return it(n.a,e,"")==null}function $ue(n,e){return U9(),!H3(e.d.i,n)}function xue(n,e){nl(n.f)?Jme(n,e):Fve(n,e)}function Fue(n,e){var t;return t=e.Hh(n.a),t}function W0(n,e){vr.call(this,om+n+Na+e)}function p2(n,e,t,i){V.call(this,n,e,t,i)}function EU(n,e,t,i){V.call(this,n,e,t,i)}function Ujn(n,e,t,i){EU.call(this,n,e,t,i)}function Wjn(n,e,t,i){XE.call(this,n,e,t,i)}function cD(n,e,t,i){XE.call(this,n,e,t,i)}function CU(n,e,t,i){XE.call(this,n,e,t,i)}function Xjn(n,e,t,i){cD.call(this,n,e,t,i)}function TU(n,e,t,i){cD.call(this,n,e,t,i)}function xn(n,e,t,i){CU.call(this,n,e,t,i)}function Vjn(n,e,t,i){TU.call(this,n,e,t,i)}function Qjn(n,e,t,i){EW.call(this,n,e,t,i)}function Jjn(n,e,t){this.a=n,Jz.call(this,e,t)}function Yjn(n,e,t){this.c=e,this.b=t,this.a=n}function Lue(n,e,t){return n.d=u(e.Kb(t),164)}function MU(n,e){return n.Aj().Nh().Kh(n,e)}function AU(n,e){return n.Aj().Nh().Ih(n,e)}function Zjn(n,e){return _n(n),B(n)===B(e)}function An(n,e){return _n(n),B(n)===B(e)}function uD(n,e){return iO(p$n(n.a,e,!1))}function sD(n,e){return iO(v$n(n.a,e,!1))}function Nue(n,e){return n.b.sd(new D7n(n,e))}function Bue(n,e){return n.b.sd(new $7n(n,e))}function nEn(n,e){return n.b.sd(new x7n(n,e))}function SU(n,e,t){return n.lastIndexOf(e,t)}function Rue(n,e,t){return Zt(n[e.b],n[t.b])}function _ue(n,e){return H(e,(nn(),ey),n)}function Kue(n,e){return Uc(e.a.d.p,n.a.d.p)}function Hue(n,e){return Uc(n.a.d.p,e.a.d.p)}function que(n,e){return Zt(n.c-n.s,e.c-e.s)}function eEn(n){return n.c?xr(n.c.a,n,0):-1}function Gue(n){return n<100?null:new X1(n)}function v2(n){return n==nd||n==Ch||n==Pc}function tEn(n,e){return I(e,15)&&oBn(n.c,e)}function zue(n,e){mf||e&&(n.d=e)}function oD(n,e){var t;return t=e,!!JV(n,t)}function PU(n,e){this.c=n,FD.call(this,n,e)}function iEn(n){this.c=n,NO.call(this,$M,0)}function rEn(n,e){Qoe.call(this,n,n.length,e)}function Uue(n,e,t){return u(n.c,69).lk(e,t)}function CE(n,e,t){return u(n.c,69).mk(e,t)}function Wue(n,e,t){return iue(n,u(e,332),t)}function IU(n,e,t){return rue(n,u(e,332),t)}function Xue(n,e,t){return tFn(n,u(e,332),t)}function cEn(n,e,t){return Uve(n,u(e,332),t)}function I5(n,e){return e==null?null:hb(n.b,e)}function OU(n){return H0(n)?(_n(n),n):n.ke()}function TE(n){return!isNaN(n)&&!isFinite(n)}function uEn(n){xf(),this.a=(Pn(),new Xp(n))}function v8(n){l3(),this.d=n,this.a=new gw}function ms(n,e,t){this.a=n,this.b=e,this.c=t}function sEn(n,e,t){this.a=n,this.b=e,this.c=t}function oEn(n,e,t){this.d=n,this.b=t,this.a=e}function fD(n){yyn(this),Rs(this),Vi(this,n)}function au(n){HO(this),UU(this.c,0,n.Pc())}function fEn(n){Uu(n.a),uPn(n.c,n.b),n.b=null}function hEn(n){this.a=n,eh(),eu(Date.now())}function lEn(){lEn=N,Qin=new yu,JA=new yu}function hD(){hD=N,Kin=new iln,Pzn=new rln}function aEn(){aEn=N,Nne=x(Zn,rn,1,0,5,1)}function dEn(){dEn=N,eee=x(Zn,rn,1,0,5,1)}function DU(){DU=N,tee=x(Zn,rn,1,0,5,1)}function xf(){xf=N,new _q((Pn(),Pn(),cr))}function Vue(n){return NC(),$e((pPn(),Dzn),n)}function Que(n){return af(),$e((LSn(),Bzn),n)}function Jue(n){return LT(),$e((qAn(),Gzn),n)}function Yue(n){return HC(),$e((GAn(),zzn),n)}function Zue(n){return gM(),$e((IOn(),Uzn),n)}function nse(n){return Ko(),$e(($Sn(),Vzn),n)}function ese(n){return Cu(),$e((xSn(),Jzn),n)}function tse(n){return Jc(),$e((FSn(),Zzn),n)}function ise(n){return OM(),$e((Ukn(),jUn),n)}function rse(n){return Kd(),$e((mPn(),CUn),n)}function cse(n){return H2(),$e((kPn(),MUn),n)}function use(n){return p6(),$e((yPn(),PUn),n)}function sse(n){return Ij(),$e((yAn(),IUn),n)}function ose(n){return qC(),$e((zAn(),WUn),n)}function fse(n){return J5(),$e((NSn(),bWn),n)}function hse(n){return Qi(),$e((JPn(),vWn),n)}function lse(n){return z3(),$e((vPn(),EWn),n)}function ase(n){return Hd(),$e((BSn(),PWn),n)}function $U(n,e){if(!n)throw T(new Hn(e))}function dse(n){return Qn(),$e((vIn(),$Wn),n)}function xU(n){BE.call(this,n.d,n.c,n.a,n.b)}function lD(n){BE.call(this,n.d,n.c,n.a,n.b)}function FU(n,e,t){this.b=n,this.c=e,this.a=t}function ME(n,e,t){this.b=n,this.a=e,this.c=t}function bEn(n,e,t){this.a=n,this.b=e,this.c=t}function LU(n,e,t){this.a=n,this.b=e,this.c=t}function wEn(n,e,t){this.a=n,this.b=e,this.c=t}function NU(n,e,t){this.a=n,this.b=e,this.c=t}function gEn(n,e,t){this.b=n,this.a=e,this.c=t}function AE(n,e,t){this.e=e,this.b=n,this.d=t}function bse(n,e,t){return ia(),n.a.Od(e,t),e}function aD(n){var e;return e=new Dln,e.e=n,e}function BU(n){var e;return e=new Zmn,e.b=n,e}function m8(){m8=N,hS=new xdn,lS=new Fdn}function go(){go=N,WWn=new pbn,XWn=new vbn}function wse(n){return wT(),$e((EPn(),HWn),n)}function gse(n){return lf(),$e((TPn(),JWn),n)}function pse(n){return bM(),$e((mOn(),cXn),n)}function vse(n){return G2(),$e((yIn(),uXn),n)}function mse(n){return xC(),$e((JAn(),sXn),n)}function kse(n){return F2(),$e((RSn(),oXn),n)}function yse(n){return Vw(),$e((UPn(),ZWn),n)}function jse(n){return _d(),$e((HSn(),rXn),n)}function Ese(n){return YC(),$e((_Sn(),fXn),n)}function Cse(n){return Aa(),$e((GPn(),hXn),n)}function Tse(n){return Z8(),$e((WAn(),lXn),n)}function Mse(n){return ma(),$e((KSn(),dXn),n)}function Ase(n){return rM(),$e((TIn(),bXn),n)}function Sse(n){return z8(),$e((XAn(),wXn),n)}function Pse(n){return O7(),$e((EIn(),gXn),n)}function Ise(n){return l4(),$e((jIn(),pXn),n)}function Ose(n){return or(),$e((zOn(),vXn),n)}function Dse(n){return G3(),$e((GSn(),mXn),n)}function $se(n){return Nh(),$e((qSn(),yXn),n)}function xse(n){return EC(),$e((YAn(),jXn),n)}function Fse(n){return As(),$e((WPn(),EXn),n)}function Lse(n){return nM(),$e((CIn(),BQn),n)}function Nse(n){return s6(),$e((zSn(),RQn),n)}function Bse(n){return db(),$e((MPn(),_Qn),n)}function Rse(n){return ur(),$e((XSn(),UQn),n)}function _se(n){return Zw(),$e((vOn(),HQn),n)}function Kse(n){return Rh(),$e((WSn(),qQn),n)}function Hse(n){return V8(),$e((QAn(),GQn),n)}function qse(n){return lT(),$e((USn(),WQn),n)}function Gse(n){return v6(),$e((zPn(),KQn),n)}function zse(n){return R8(),$e((VAn(),XQn),n)}function Use(n){return J3(),$e((QSn(),VQn),n)}function Wse(n){return fT(),$e((JSn(),QQn),n)}function Xse(n){return gT(),$e((VSn(),JQn),n)}function Vse(n){return Rd(),$e((YSn(),hJn),n)}function Qse(n){return V5(),$e((nSn(),wJn),n)}function Jse(n){return Lf(),$e((eSn(),jJn),n)}function Yse(n){return rf(),$e((tSn(),CJn),n)}function Zse(n){return Bo(),$e((ZAn(),RJn),n)}function noe(n){return Pd(),$e((iSn(),UJn),n)}function eoe(n){return u4(),$e((jPn(),WJn),n)}function toe(n){return C6(),$e((MIn(),VJn),n)}function ioe(n){return wC(),$e((uSn(),fYn),n)}function roe(n){return uT(),$e((cSn(),wYn),n)}function coe(n){return mC(),$e((rSn(),hYn),n)}function uoe(n){return AT(),$e((ZSn(),pYn),n)}function soe(n){return LC(),$e((sSn(),vYn),n)}function ooe(n){return d7(),$e((nPn(),mYn),n)}function foe(n){return UT(),$e((CPn(),xYn),n)}function hoe(n){return hT(),$e((tPn(),FYn),n)}function loe(n){return MT(),$e((ePn(),LYn),n)}function aoe(n){return p4(),$e((QPn(),tZn),n)}function doe(n){return m7(),$e((iPn(),iZn),n)}function boe(n){return Dj(),$e((mAn(),rZn),n)}function woe(n){return $j(),$e((vAn(),uZn),n)}function goe(n){return _8(),$e((fSn(),sZn),n)}function poe(n){return $7(),$e((XPn(),oZn),n)}function voe(n){return e5(),$e((kAn(),CZn),n)}function moe(n){return f7(),$e((oSn(),TZn),n)}function koe(n){return qo(),$e((VPn(),OZn),n)}function yoe(n){return y1(),$e((kOn(),$Zn),n)}function joe(n){return hh(),$e((kIn(),xZn),n)}function Eoe(n){return gb(),$e((mIn(),_Zn),n)}function Coe(n){return rr(),$e((Wkn(),RWn),n)}function Toe(n){return R3(),$e((UAn(),BWn),n)}function Moe(n){return sr(),$e((YPn(),ene),n)}function Aoe(n){return ff(),$e((cPn(),tne),n)}function Soe(n){return Hh(),$e((PPn(),ine),n)}function Poe(n){return tM(),$e((SIn(),rne),n)}function Ioe(n){return _h(),$e((rPn(),une),n)}function Ooe(n){return cs(),$e((SPn(),one),n)}function Doe(n){return kb(),$e((POn(),fne),n)}function $oe(n){return qw(),$e((ZPn(),hne),n)}function xoe(n){return Ai(),$e((bIn(),lne),n)}function Foe(n){return Tu(),$e((AIn(),ane),n)}function Loe(n){return Vu(),$e((OPn(),vne),n)}function Noe(n){return Fu(),$e((UOn(),mne),n)}function Boe(n){return J(),$e((nIn(),dne),n)}function Roe(n){return IT(),$e((IPn(),kne),n)}function _oe(n){return Xu(),$e((APn(),Ene),n)}function Koe(n){return b4(),$e((yOn(),Lne),n)}function Hoe(n,e){return _n(n),n+(_n(e),e)}function qoe(n,e){return eh(),me(R(n.a),e)}function Goe(n,e){return eh(),me(R(n.a),e)}function dD(n,e){this.c=n,this.a=e,this.b=e-n}function pEn(n,e,t){this.a=n,this.b=e,this.c=t}function RU(n,e,t){this.a=n,this.b=e,this.c=t}function _U(n,e,t){this.a=n,this.b=e,this.c=t}function vEn(n,e,t){this.a=n,this.b=e,this.c=t}function mEn(n,e,t){this.a=n,this.b=e,this.c=t}function s1(n,e,t){this.e=n,this.a=e,this.c=t}function kEn(n,e,t){vs(),YW.call(this,n,e,t)}function bD(n,e,t){vs(),LW.call(this,n,e,t)}function KU(n,e,t){vs(),LW.call(this,n,e,t)}function HU(n,e,t){vs(),LW.call(this,n,e,t)}function yEn(n,e,t){vs(),bD.call(this,n,e,t)}function qU(n,e,t){vs(),bD.call(this,n,e,t)}function jEn(n,e,t){vs(),qU.call(this,n,e,t)}function EEn(n,e,t){vs(),KU.call(this,n,e,t)}function CEn(n,e,t){vs(),HU.call(this,n,e,t)}function k8(n,e){return pe(n),pe(e),new z8n(n,e)}function m2(n,e){return pe(n),pe(e),new NEn(n,e)}function zoe(n,e){return pe(n),pe(e),new BEn(n,e)}function Uoe(n,e){return pe(n),pe(e),new W8n(n,e)}function u(n,e){return O5(n==null||Qx(n,e)),n}function h3(n){var e;return e=new X,q$(e,n),e}function Woe(n){var e;return e=new fi,q$(e,n),e}function TEn(n){var e;return e=new Vq,ix(e,n),e}function y8(n){var e;return e=new Ct,ix(e,n),e}function Xoe(n){return!n.e&&(n.e=new X),n.e}function Voe(n){return!n.c&&(n.c=new Rp),n.c}function W(n,e){return n.c[n.c.length]=e,!0}function MEn(n,e){this.c=n,this.b=e,this.a=!1}function GU(n){this.d=n,Ovn(this),this.b=Kfe(n.d)}function AEn(){this.a=";,;",this.b="",this.c=""}function Qoe(n,e,t){SCn.call(this,e,t),this.a=n}function SEn(n,e,t){this.b=n,Hkn.call(this,e,t)}function zU(n,e,t){this.c=n,_j.call(this,e,t)}function UU(n,e,t){bY(t,0,n,e,t.length,!1)}function ih(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function Joe(n,e){e&&(n.b=e,n.a=(sl(e),e.a))}function WU(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function XU(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function VU(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function QU(n){return al(ihe($r(n)?_s(n):n))}function Yoe(n,e){return Uc(GEn(n.d),GEn(e.d))}function Zoe(n,e){return e==(J(),Gn)?n.c:n.d}function l3(){l3=N,won=(J(),Gn),gP=Vn}function PEn(){this.b=K(Y(cn((zo(),BR))))}function IEn(n){return ia(),x(Zn,rn,1,n,5,1)}function nfe(n){return new fn(n.c+n.b,n.d+n.a)}function efe(n,e){return Oj(),Uc(n.d.p,e.d.p)}function wD(n){return ne(n.b!=0),Cs(n,n.a.a)}function tfe(n){return ne(n.b!=0),Cs(n,n.c.b)}function JU(n,e){if(!n)throw T(new R9n(e))}function SE(n,e){if(!n)throw T(new Hn(e))}function YU(n,e,t){i3.call(this,n,e),this.b=t}function j8(n,e,t){dz.call(this,n,e),this.c=t}function OEn(n,e,t){oIn.call(this,e,t),this.d=n}function ZU(n){DU(),ej.call(this),this.th(n)}function DEn(n,e,t){this.a=n,Ew.call(this,e,t)}function $En(n,e,t){this.a=n,Ew.call(this,e,t)}function PE(n,e,t){dz.call(this,n,e),this.c=t}function xEn(){M3(),yhe.call(this,(J1(),co))}function FEn(n){return n!=null&&!Lx(n,g9,p9)}function ife(n,e){return(GDn(n)<<4|GDn(e))&Ut}function rfe(n,e){return ZE(),rF(n,e),new oTn(n,e)}function ca(n,e){var t;n.n&&(t=e,W(n.f,t))}function a3(n,e,t){var i;i=new J0(t),_o(n,e,i)}function cfe(n,e){var t;return t=n.c,pV(n,e),t}function nW(n,e){return e<0?n.g=-1:n.g=e,n}function IE(n,e){return q0e(n),n.a*=e,n.b*=e,n}function LEn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function Ke(n,e){return Kt(n,e,n.c.b,n.c),!0}function eW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function gD(n){this.b=n,this.a=jd(this.b.a).Ed()}function NEn(n,e){this.b=n,this.a=e,SI.call(this)}function BEn(n,e){this.a=n,this.b=e,SI.call(this)}function REn(n,e){SCn.call(this,e,1040),this.a=n}function E8(n){return n==0||isNaN(n)?n:n<0?-1:1}function ufe(n){return T2(),lh(n)==At(pl(n))}function sfe(n){return T2(),pl(n)==At(lh(n))}function yd(n,e){return j6(n,new i3(e.a,e.b))}function ofe(n){return!Xi(n)&&n.c.i.c==n.d.i.c}function OE(n){var e;return e=n.n,n.a.b+e.d+e.a}function _En(n){var e;return e=n.n,n.e.b+e.d+e.a}function tW(n){var e;return e=n.n,n.e.a+e.b+e.c}function KEn(n){return Je(),new rh(0,n)}function ffe(n){return n.a?n.a:QD(n)}function O5(n){if(!n)throw T(new Wp(null))}function HEn(){HEn=N,jH=(Pn(),new xI(JB))}function DE(){DE=N,new ZQ((zI(),fR),(UI(),oR))}function qEn(){qEn=N,Cin=x(Ui,q,19,256,0,1)}function pD(n,e,t,i){SQ.call(this,n,e,t,i,0,0)}function hfe(n,e,t){return it(n.b,u(t.b,17),e)}function lfe(n,e,t){return it(n.b,u(t.b,17),e)}function afe(n,e){return W(n,new fn(e.a,e.b))}function dfe(n,e){return n.c=e)throw T(new zq)}function Vfe(n,e,t){return Mt(e,0,uW(e[0],t[0])),e}function Qfe(n,e,t){e.Ye(t,K(Y(te(n.b,t)))*n.a)}function ACn(n,e,t){return eg(),_3(n,e)&&_3(n,t)}function L5(n){return Tu(),!n.Hc(n1)&&!n.Hc(Hl)}function UE(n){return new fn(n.c+n.b/2,n.d+n.a/2)}function PD(n,e){return e.kh()?wl(n.b,u(e,49)):e}function jW(n,e){this.e=n,this.d=e&64?e|Rf:e}function SCn(n,e){this.c=0,this.d=n,this.b=e|64|Rf}function WE(n){this.b=new Oc(11),this.a=(Ow(),n)}function ID(n){this.b=null,this.a=(Ow(),n||Bin)}function PCn(n){this.a=Y$n(n.a),this.b=new au(n.b)}function ICn(n){this.b=n,w2.call(this,n),$yn(this)}function OCn(n){this.b=n,h8.call(this,n),xyn(this)}function Q0(n,e,t){this.a=n,p2.call(this,e,t,5,6)}function EW(n,e,t,i){this.b=n,Jt.call(this,e,t,i)}function wi(n,e,t,i,r){F$.call(this,n,e,t,i,r,-1)}function N5(n,e,t,i,r){q8.call(this,n,e,t,i,r,-1)}function V(n,e,t,i){Jt.call(this,n,e,t),this.b=i}function XE(n,e,t,i){j8.call(this,n,e,t),this.b=i}function DCn(n){Fkn.call(this,n,!1),this.a=!1}function $Cn(n,e){this.b=n,bvn.call(this,n.b),this.a=e}function xCn(n,e){Y0(),Zie.call(this,n,jT(new Ku(e)))}function VE(n,e){return Je(),new NW(n,e,0)}function OD(n,e){return Je(),new NW(6,n,e)}function Jfe(n,e){return An(n.substr(0,e.length),e)}function zu(n,e){return mi(e)?ZD(n,e):!!Ar(n.f,e)}function Oi(n,e){for(_n(e);n.Ob();)e.td(n.Pb())}function Pw(n,e,t){kl(),this.e=n,this.d=e,this.a=t}function o1(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function CW(n){var e;for(e=n;e.f;)e=e.f;return e}function j2(n){var e;return e=u6(n),ne(e!=null),e}function Yfe(n){var e;return e=Nge(n),ne(e!=null),e}function b3(n,e){var t;return t=n.a.gc(),FX(e,t),t-e}function TW(n,e){var t;for(t=0;t0?j.Math.log(n/e):-100}function FCn(n,e){return fc(n,e)<0?-1:fc(n,e)>0?1:0}function IW(n,e,t){return MRn(n,u(e,46),u(t,167))}function LCn(n,e){return u(kW(jd(n.a)).Xb(e),42).cd()}function she(n,e){return I0e(e,n.length),new REn(n,e)}function FD(n,e){this.d=n,ie.call(this,n),this.e=e}function Ed(n){this.d=(_n(n),n),this.a=0,this.c=$M}function OW(n,e){rd.call(this,1),this.a=n,this.b=e}function NCn(n,e){return n.c?NCn(n.c,e):W(n.b,e),n}function ohe(n,e,t){var i;return i=rb(n,e),m$(n,e,t),i}function DW(n,e){var t;return t=n.slice(0,e),VX(t,n)}function BCn(n,e,t){var i;for(i=0;i=n.g}function GD(n,e,t){var i;return i=ex(n,e,t),uZ(n,i)}function E2(n,e){var t;t=n.a.length,rb(n,t),m$(n,t,e)}function ZCn(n,e){var t;t=console[n],t.call(console,e)}function nTn(n,e){var t;++n.j,t=n.Vi(),n.Ii(n.oi(t,e))}function khe(n,e,t){u(e.b,65),Yc(e.a,new RU(n,t,e))}function LW(n,e,t){fj.call(this,e),this.a=n,this.b=t}function NW(n,e,t){rd.call(this,n),this.a=e,this.b=t}function BW(n,e,t){this.a=n,Nq.call(this,e),this.b=t}function eTn(n,e,t){this.a=n,bX.call(this,8,e,null,t)}function yhe(n){this.a=(_n(Fe),Fe),this.b=n,new rG}function tTn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function RW(n){this.c=n,this.b=n.a.d.a,uU(n.a.e,this)}function Uu(n){q0(n.c!=-1),n.d.$c(n.c),n.b=n.c,n.c=-1}function _5(n){return j.Math.sqrt(n.a*n.a+n.b*n.b)}function Td(n,e){return d3(e,n.a.c.length),un(n.a,e)}function Ff(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function jhe(n){return 0>=n?new OG:obe(n-1)}function Ehe(n){return hw?ZD(hw,n):!1}function iTn(n){return n?n.dc():!n.Kc().Ob()}function qi(n){return!n.a&&n.c?n.c.b:n.a}function Che(n){return!n.a&&(n.a=new Jt(ql,n,4)),n.a}function Md(n){return!n.d&&(n.d=new Jt(ar,n,1)),n.d}function _n(n){if(n==null)throw T(new Kv);return n}function K5(n){n.c?n.c.He():(n.d=!0,P8e(n))}function sl(n){n.c?sl(n.c):(Ea(n),n.d=!0)}function rTn(n){qW(n.a),n.b=x(Zn,rn,1,n.b.length,5,1)}function The(n,e){return Uc(e.j.c.length,n.j.c.length)}function Mhe(n,e){n.c<0||n.b.b=0?n.Bh(t):gY(n,e)}function cTn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function She(n){if(n.p!=4)throw T(new ou);return n.e}function Phe(n){if(n.p!=3)throw T(new ou);return n.e}function Ihe(n){if(n.p!=6)throw T(new ou);return n.f}function Ohe(n){if(n.p!=6)throw T(new ou);return n.k}function Dhe(n){if(n.p!=3)throw T(new ou);return n.j}function $he(n){if(n.p!=4)throw T(new ou);return n.j}function _W(n){return!n.b&&(n.b=new hj(new GI)),n.b}function Ad(n){return n.c==-2&&Ite(n,Jve(n.g,n.b)),n.c}function p3(n,e){var t;return t=RD("",n),t.n=e,t.i=1,t}function xhe(n,e){CD(u(e.b,65),n),Yc(e.a,new Pq(n))}function Fhe(n,e){me((!n.a&&(n.a=new w8(n,n)),n.a),e)}function uTn(n,e){this.b=n,FD.call(this,n,e),$yn(this)}function sTn(n,e){this.b=n,PU.call(this,n,e),xyn(this)}function KW(n,e,t,i){dd.call(this,n,e),this.d=t,this.a=i}function YE(n,e,t,i){dd.call(this,n,t),this.a=e,this.f=i}function oTn(n,e){wce.call(this,fbe(pe(n),pe(e))),this.a=e}function fTn(){XJ.call(this,Ra,(a8n(),hee)),iEe(this)}function hTn(){XJ.call(this,Xs,(Jp(),v1n)),aje(this)}function lTn(){Oe.call(this,"DELAUNAY_TRIANGULATION",0)}function Lhe(n){return String.fromCharCode.apply(null,n)}function it(n,e,t){return mi(e)?kr(n,e,t):_c(n.f,e,t)}function HW(n){return Pn(),n?n.ve():(Ow(),Ow(),_in)}function Nhe(n,e,t){return N2(),t.pg(n,u(e.cd(),146))}function aTn(n,e){return DE(),new ZQ(new Wyn(n),new Uyn(e))}function Bhe(n){return is(n,IL),GC(Hi(Hi(5,n),n/10|0))}function ZE(){ZE=N,fzn=new WI(A(M(_a,1),xM,42,0,[]))}function dTn(n){return!n.d&&(n.d=new Kp(n.c.Cc())),n.d}function v3(n){return!n.a&&(n.a=new W9n(n.c.vc())),n.a}function bTn(n){return!n.b&&(n.b=new Xp(n.c.ec())),n.b}function uh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function mc(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function Rhe(n,e){return qn(),u(e.b,19).ai&&++i,i}function Oh(n){var e,t;return t=(e=new cd,e),D3(t,n),t}function VD(n){var e,t;return t=(e=new cd,e),JJ(t,n),t}function n1e(n,e){var t;return t=te(n.f,e),SV(e,t),null}function QD(n){var e;return e=lbe(n),e||null}function CTn(n){return!n.b&&(n.b=new V(di,n,12,3)),n.b}function e1e(n){return n!=null&&G9(cI,n.toLowerCase())}function t1e(n,e){return Zt(du(n)*Gu(n),du(e)*Gu(e))}function i1e(n,e){return Zt(du(n)*Gu(n),du(e)*Gu(e))}function r1e(n,e){return Zt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function c1e(n,e){return Zt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function TTn(n,e,t){t.a?nu(n,e.b-n.f/2):Zc(n,e.a-n.g/2)}function MTn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ATn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function oa(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function STn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function PTn(n,e,t,i){vs(),ySn.call(this,e,t,i),this.a=n}function ITn(n,e,t,i){vs(),ySn.call(this,e,t,i),this.a=n}function OTn(n,e){this.a=n,lue.call(this,n,u(n.d,15).Zc(e))}function JD(n){this.f=n,this.c=this.f.e,n.f>0&&qxn(this)}function DTn(n,e,t,i){this.b=n,this.c=i,NO.call(this,e,t)}function $Tn(n){return ne(n.b=0&&An(n.substr(t,e.length),e)}function ol(n,e,t,i,r,c,o){return new y$(n.e,e,t,i,r,c,o)}function QTn(n,e,t,i,r,c){this.a=n,X$.call(this,e,t,i,r,c)}function JTn(n,e,t,i,r,c){this.a=n,X$.call(this,e,t,i,r,c)}function YTn(n,e){this.g=n,this.d=A(M(kh,1),E1,10,0,[e])}function f1(n,e){this.e=n,this.a=Zn,this.b=yBn(e),this.c=e}function ZTn(n,e){EE.call(this),iV(this),this.a=n,this.c=e}function I8(n,e,t,i){Mt(n.c[e.g],t.g,i),Mt(n.c[t.g],e.g,i)}function t$(n,e,t,i){Mt(n.c[e.g],e.g,t),Mt(n.b[e.g],e.g,i)}function A1e(){return R8(),A(M(uon,1),z,376,0,[fK,sy])}function S1e(){return z8(),A(M(Ycn,1),z,479,0,[Jcn,BS])}function P1e(){return Z8(),A(M(Vcn,1),z,419,0,[LS,Xcn])}function I1e(){return xC(),A(M(Kcn,1),z,422,0,[_cn,h_])}function O1e(){return EC(),A(M(lun,1),z,420,0,[T_,hun])}function D1e(){return V8(),A(M(ton,1),z,421,0,[uK,sK])}function $1e(){return V5(),A(M(bJn,1),z,523,0,[Um,zm])}function x1e(){return Bo(),A(M(BJn,1),z,520,0,[nw,Ll])}function F1e(){return Lf(),A(M(yJn,1),z,516,0,[T0,I1])}function L1e(){return rf(),A(M(EJn,1),z,515,0,[Va,jf])}function N1e(){return Pd(),A(M(zJn,1),z,455,0,[Nl,Lg])}function B1e(){return mC(),A(M(Ion,1),z,425,0,[CK,Pon])}function R1e(){return wC(),A(M(Son,1),z,480,0,[EK,Aon])}function _1e(){return uT(),A(M(Oon,1),z,495,0,[MP,kv])}function K1e(){return LC(),A(M($on,1),z,426,0,[Don,SK])}function H1e(){return f7(),A(M(Lfn,1),z,429,0,[FP,Ffn])}function q1e(){return _8(),A(M(bfn,1),z,430,0,[NK,$P])}function G1e(){return LT(),A(M(Zin,1),z,428,0,[CR,Yin])}function z1e(){return HC(),A(M(ern,1),z,427,0,[nrn,TR])}function U1e(){return qC(),A(M(Prn,1),z,424,0,[LR,cS])}function W1e(){return R3(),A(M(NWn,1),z,511,0,[Gk,VR])}function hC(n,e,t,i){return t>=0?n.jh(e,t,i):n.Sg(null,t,i)}function i$(n){return n.b.b==0?n.a.$e():wD(n.b)}function X1e(n){if(n.p!=5)throw T(new ou);return ge(n.f)}function V1e(n){if(n.p!=5)throw T(new ou);return ge(n.k)}function JW(n){return B(n.a)===B((rx(),mH))&&Qje(n),n.a}function nMn(n){this.a=u(pe(n),271),this.b=(Pn(),new Gz(n))}function eMn(n,e){wte(this,new fn(n.a,n.b)),gte(this,y8(e))}function Pd(){Pd=N,Nl=new cz(Z2,0),Lg=new cz(np,1)}function Lf(){Lf=N,T0=new iz(np,0),I1=new iz(Z2,1)}function Id(){cie.call(this,new o2(cb(12))),_z(!0),this.a=2}function r$(n,e,t){Je(),rd.call(this,n),this.b=e,this.a=t}function YW(n,e,t){vs(),fj.call(this,e),this.a=n,this.b=t}function tMn(n){EE.call(this),iV(this),this.a=n,this.c=!0}function iMn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function lC(n){var e;tbe(n.a),byn(n.a),e=new cj(n.a),AQ(e)}function Q1e(n,e){aBn(n,!0),Yc(n.e.wf(),new FU(n,!0,e))}function aC(n,e){return LAn(e),Z0e(n,x(be,Le,25,e,15,1),e)}function J1e(n,e){return T2(),n==At(lh(e))||n==At(pl(e))}function kc(n,e){return e==null?Xr(Ar(n.f,null)):r5(n.g,e)}function Y1e(n){return n.b==0?null:(ne(n.b!=0),Cs(n,n.a.a))}function Ht(n){return Math.max(Math.min(n,nt),-2147483648)|0}function Z1e(n,e){var t=bR[n.charCodeAt(0)];return t??n}function dC(n,e){return cC(n,"set1"),cC(e,"set2"),new Z8n(n,e)}function nle(n,e){var t;return t=X0e(n.f,e),st(yE(t),n.f.d)}function q5(n,e){var t,i;return t=e,i=new gI,n_n(n,t,i),i.d}function c$(n,e,t,i){var r;r=new Gjn,e.a[t.g]=r,k2(n.b,i,r)}function ZW(n,e,t){var i;i=n.Yg(e),i>=0?n.sh(i,t):HY(n,e,t)}function Dw(n,e,t){gC(),n&&it(gH,n,e),n&&it(Ny,n,t)}function rMn(n,e,t){this.i=new X,this.b=n,this.g=e,this.a=t}function bC(n,e,t){this.c=new X,this.e=n,this.f=e,this.b=t}function nX(n,e,t){this.a=new X,this.e=n,this.f=e,this.c=t}function cMn(n,e){lE(this),this.f=e,this.g=n,rC(this),this._d()}function O8(n,e){var t;t=n.q.getHours(),n.q.setDate(e),D6(n,t)}function uMn(n,e){var t;for(pe(e),t=n.a;t;t=t.c)e.Od(t.g,t.i)}function sMn(n){var e;return e=new Ej(cb(n.length)),zV(e,n),e}function ele(n){function e(){}return e.prototype=n||{},new e}function tle(n,e){return LOn(n,e)?(xIn(n),!0):!1}function Dh(n,e){if(e==null)throw T(new Kv);return Z2e(n,e)}function ile(n){if(n.qe())return null;var e=n.n;return HA[e]}function D8(n){return n.Db>>16!=3?null:u(n.Cb,33)}function tf(n){return n.Db>>16!=9?null:u(n.Cb,33)}function oMn(n){return n.Db>>16!=6?null:u(n.Cb,79)}function fMn(n){return n.Db>>16!=7?null:u(n.Cb,235)}function hMn(n){return n.Db>>16!=7?null:u(n.Cb,160)}function At(n){return n.Db>>16!=11?null:u(n.Cb,33)}function lMn(n,e){var t;return t=n.Yg(e),t>=0?n.lh(t):xF(n,e)}function aMn(n,e){var t;return t=new cW(e),dFn(t,n),new au(t)}function eX(n){var e;return e=n.d,e=n.si(n.f),me(n,e),e.Ob()}function dMn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function u$(n,e){return j.Math.abs(n)0}function bMn(){this.a=new Sh,this.e=new fi,this.g=0,this.i=0}function wMn(n){this.a=n,this.b=x(lJn,q,1944,n.e.length,0,2)}function s$(n,e,t){var i;i=tDn(n,e,t),n.b=new cT(i.c.length)}function rf(){rf=N,Va=new tz(dN,0),jf=new tz("UP",1)}function wC(){wC=N,EK=new uz(PHn,0),Aon=new uz("FAN",1)}function gC(){gC=N,gH=new we,Ny=new we,Cre(Azn,new z2n)}function cle(n){if(n.p!=0)throw T(new ou);return v5(n.f,0)}function ule(n){if(n.p!=0)throw T(new ou);return v5(n.k,0)}function gMn(n){return n.Db>>16!=3?null:u(n.Cb,147)}function j3(n){return n.Db>>16!=6?null:u(n.Cb,235)}function Z0(n){return n.Db>>16!=17?null:u(n.Cb,26)}function pMn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.le(e))}function sle(n,e){var t;return t=n.a.get(e),t??new Array}function ole(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),D6(n,t)}function kr(n,e,t){return e==null?_c(n.f,null,t):qd(n.g,e,t)}function G5(n,e,t,i,r,c){return new Lh(n.e,e,n.aj(),t,i,r,c)}function $8(n,e,t){return n.a=Yu(n.a,0,e)+(""+t)+o8(n.a,e),n}function fle(n,e,t){return W(n.a,(ZE(),rF(e,t),new dd(e,t))),n}function tX(n){return Hz(n.c),n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function vMn(n){return Hz(n.e),n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function Ti(n,e){n.d&&Qc(n.d.e,n),n.d=e,n.d&&W(n.d.e,n)}function Ki(n,e){n.c&&Qc(n.c.g,n),n.c=e,n.c&&W(n.c.g,n)}function yr(n,e){n.c&&Qc(n.c.a,n),n.c=e,n.c&&W(n.c.a,n)}function Kr(n,e){n.i&&Qc(n.i.j,n),n.i=e,n.i&&W(n.i.j,n)}function mMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new au(t))}function kMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new au(t))}function yMn(n,e){this.a=n,this.c=Vr(this.a),this.b=new fC(e)}function hle(n){var e;return Ea(n),e=new fi,gt(n,new Vvn(e))}function nb(n,e){if(n<0||n>e)throw T(new vr(snn+n+onn+e))}function iX(n,e){return lCn(n.a,e)?AW(n,u(e,22).g,null):null}function lle(n){return Cx(),qn(),u(n.a,81).d.e!=0}function jMn(){jMn=N,azn=xe((wj(),A(M(lzn,1),z,538,0,[aR])))}function EMn(){EMn=N,YQn=ju(new hi,(Qi(),Ir),(rr(),zk))}function rX(){rX=N,ZQn=ju(new hi,(Qi(),Ir),(rr(),zk))}function CMn(){CMn=N,eJn=ju(new hi,(Qi(),Ir),(rr(),zk))}function TMn(){TMn=N,gJn=Ze(new hi,(Qi(),Ir),(rr(),Cm))}function Zu(){Zu=N,mJn=Ze(new hi,(Qi(),Ir),(rr(),Cm))}function MMn(){MMn=N,kJn=Ze(new hi,(Qi(),Ir),(rr(),Cm))}function o$(){o$=N,TJn=Ze(new hi,(Qi(),Ir),(rr(),Cm))}function AMn(){AMn=N,lYn=ju(new hi,(u4(),Xm),(C6(),bK))}function ha(n,e,t,i){this.c=n,this.d=i,h$(this,e),l$(this,t)}function A2(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function f$(n){this.a=j.Math.cos(n),this.b=j.Math.sin(n)}function h$(n,e){n.a&&Qc(n.a.k,n),n.a=e,n.a&&W(n.a.k,n)}function l$(n,e){n.b&&Qc(n.b.f,n),n.b=e,n.b&&W(n.b.f,n)}function SMn(n,e){khe(n,n.b,n.c),u(n.b.b,65),e&&u(e.b,65).b}function ale(n,e){kQ(n,e),I(n.Cb,88)&&mb(Iu(u(n.Cb,88)),2)}function a$(n,e){I(n.Cb,88)&&mb(Iu(u(n.Cb,88)),4),Dc(n,e)}function pC(n,e){I(n.Cb,179)&&(u(n.Cb,179).tb=null),Dc(n,e)}function yc(n,e){return er(),H$(e)?new $E(e,n):new s8(e,n)}function dle(n,e){var t,i;t=e.c,i=t!=null,i&&E2(n,new J0(e.c))}function PMn(n){var e,t;return t=(Jp(),e=new cd,e),D3(t,n),t}function IMn(n){var e,t;return t=(Jp(),e=new cd,e),D3(t,n),t}function OMn(n,e){var t;return t=new Bs(n),e.c[e.c.length]=t,t}function DMn(n,e){var t;return t=u(hb(M2(n.a),e),14),t?t.gc():0}function $Mn(n){var e;return Ea(n),e=(Ow(),Ow(),Rin),UC(n,e)}function xMn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function cX(n,e){iie.call(this,new o2(cb(n))),is(e,W_n),this.a=e}function sh(n,e,t){KDn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function FMn(n,e,t){var i;KDn(e,t,n.c.length),i=t-e,PG(n.c,e,i)}function ble(n,e){Dyn(n,ge(ci(il(e,24),NM)),ge(ci(e,NM)))}function Ln(n,e){if(n<0||n>=e)throw T(new vr(snn+n+onn+e))}function Me(n,e){if(n<0||n>=e)throw T(new pG(snn+n+onn+e))}function Fn(n,e){this.b=(_n(n),n),this.a=e&Sb?e:e|64|Rf}function LMn(n){dyn(this),Wmn(this.a,qV(j.Math.max(8,n))<<1)}function cf(n){return qr(A(M(ai,1),q,8,0,[n.i.n,n.n,n.a]))}function wle(){return af(),A(M(Nu,1),z,132,0,[Vin,hs,Nb])}function gle(){return Ko(),A(M(Bb,1),z,232,0,[Yr,Lc,Zr])}function ple(){return Cu(),A(M(Qzn,1),z,461,0,[Qf,Pl,To])}function vle(){return Jc(),A(M(Yzn,1),z,462,0,[Xo,Il,Mo])}function mle(){return Hd(),A(M(Wrn,1),z,423,0,[yg,Urn,UR])}function kle(){return J5(),A(M(qrn,1),z,379,0,[_R,RR,KR])}function yle(){return s6(),A(M(Usn,1),z,378,0,[nK,zsn,lP])}function jle(){return F2(),A(M(qcn,1),z,314,0,[dp,Wk,Hcn])}function Ele(){return YC(),A(M(zcn,1),z,337,0,[Gcn,FS,l_])}function Cle(){return ma(),A(M(aXn,1),z,450,0,[b_,uv,Tg])}function Tle(){return _d(),A(M(e_,1),z,361,0,[w0,Dl,b0])}function Mle(){return Nh(),A(M(kXn,1),z,303,0,[Vk,Ag,bp])}function Ale(){return G3(),A(M(C_,1),z,292,0,[j_,E_,Xk])}function Sle(){return ur(),A(M(zQn,1),z,452,0,[Hm,Au,Nc])}function Ple(){return Rh(),A(M(eon,1),z,339,0,[Fl,non,cK])}function Ile(){return lT(),A(M(con,1),z,375,0,[ion,oK,ron])}function Ole(){return gT(),A(M(aon,1),z,377,0,[aK,vv,Zb])}function Dle(){return J3(),A(M(oon,1),z,336,0,[hK,son,qm])}function $le(){return fT(),A(M(lon,1),z,338,0,[hon,lK,fon])}function xle(){return Rd(),A(M(fJn,1),z,454,0,[oy,Gm,wP])}function Fle(){return AT(),A(M(gYn,1),z,442,0,[AK,TK,MK])}function Lle(){return d7(),A(M(Lon,1),z,380,0,[AP,xon,Fon])}function Nle(){return MT(),A(M(nfn,1),z,381,0,[Zon,$K,Yon])}function Ble(){return hT(),A(M(Qon,1),z,293,0,[DK,Von,Xon])}function Rle(){return m7(),A(M(xK,1),z,437,0,[IP,OP,DP])}function _le(){return _h(),A(M(qhn,1),z,334,0,[zP,x1,s9])}function Kle(){return ff(),A(M(Ohn,1),z,272,0,[Ev,iw,Cv])}function Hle(n,e){return f9e(n,e,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function qle(n,e,t){var i;return i=F6(n,e,!1),i.b<=e&&i.a<=t}function NMn(n,e,t){var i;i=new Jwn,i.b=e,i.a=t,++e.b,W(n.d,i)}function Gle(n,e){var t;return t=(_n(n),n).g,nU(!!t),_n(e),t(e)}function uX(n,e){var t,i;return i=b3(n,e),t=n.a.Zc(i),new Y8n(n,t)}function zle(n){return n.Db>>16!=6?null:u(NF(n),235)}function Ule(n){if(n.p!=2)throw T(new ou);return ge(n.f)&Ut}function Wle(n){if(n.p!=2)throw T(new ou);return ge(n.k)&Ut}function Xle(n){return n.a==(M3(),fI)&&Pte(n,T9e(n.g,n.b)),n.a}function S2(n){return n.d==(M3(),fI)&&Ote(n,vke(n.g,n.b)),n.d}function y(n){return ne(n.ai?1:0}function BMn(n,e){var t,i;return t=N$(e),i=t,u(te(n.c,i),19).a}function RMn(n,e){var t;for(t=n+"";t.length0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function rAn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function cae(n){return!!n.a&&Ou(n.a.a).i!=0&&!(n.b&&eF(n.b))}function uae(n){return!!n.u&&wc(n.u.a).i!=0&&!(n.n&&nF(n.n))}function cAn(n){return mD(n.e.Hd().gc()*n.c.Hd().gc(),16,new tvn(n))}function sae(n,e){return FCn(eu(n.q.getTime()),eu(e.q.getTime()))}function Nf(n){return u(df(n,x(WR,PN,17,n.c.length,0,1)),474)}function x8(n){return u(df(n,x(kh,E1,10,n.c.length,0,1)),193)}function oae(n){return Zu(),!Xi(n)&&!(!Xi(n)&&n.c.i.c==n.d.i.c)}function uAn(n,e,t){var i;i=(pe(n),new au(n)),B3e(new mMn(i,e,t))}function F8(n,e,t){var i;i=(pe(n),new au(n)),R3e(new kMn(i,e,t))}function sAn(n,e){var t;return t=1-e,n.a[t]=rT(n.a[t],t),rT(n,e)}function oAn(n,e){var t;n.e=new hG,t=jb(e),bi(t,n.c),eBn(n,t,0)}function Mi(n,e,t,i){var r;r=new QH,r.a=e,r.b=t,r.c=i,Ke(n.a,r)}function Z(n,e,t,i){var r;r=new QH,r.a=e,r.b=t,r.c=i,Ke(n.b,r)}function vo(n){var e,t,i;return e=new HCn,t=tL(e,n),WEe(e),i=t,i}function aX(){var n,e,t;return e=(t=(n=new cd,n),t),W(S1n,e),e}function kC(n){return n.j.c=x(Zn,rn,1,0,5,1),qW(n.c),Hhe(n.a),n}function $w(n){return n5(),I(n.g,10)?u(n.g,10):null}function fae(n){return Iw(n).dc()?!1:(oce(n,new ww),!0)}function hae(n){if(!("stack"in n))try{throw n}catch{}return n}function L8(n,e){if(n<0||n>=e)throw T(new vr(E6e(n,e)));return n}function fAn(n,e,t){if(n<0||et)throw T(new vr(X5e(n,e,t)))}function g$(n,e){if(ri(n.a,e),e.d)throw T(new Rr(wKn));e.d=n}function p$(n,e){if(e.$modCount!=n.$modCount)throw T(new ps)}function hAn(n,e){return I(e,42)?uF(n.a,u(e,42)):!1}function lAn(n,e){return I(e,42)?uF(n.a,u(e,42)):!1}function aAn(n,e){return I(e,42)?uF(n.a,u(e,42)):!1}function lae(n,e){return n.a<=n.b?(e.ud(n.a++),!0):!1}function Dd(n){var e;return $r(n)?(e=n,e==-0?0:e):k0e(n)}function yC(n){var e;return sl(n),e=new fln,vw(n.a,new Wvn(e)),e}function dAn(n){var e;return sl(n),e=new oln,vw(n.a,new Uvn(e)),e}function Ii(n,e){this.a=n,Nv.call(this,n),nb(e,n.gc()),this.b=e}function dX(n){this.e=n,this.b=this.e.a.entries(),this.a=new Array}function aae(n){return mD(n.e.Hd().gc()*n.c.Hd().gc(),273,new evn(n))}function jC(n){return new Oc((is(n,IL),GC(Hi(Hi(5,n),n/10|0))))}function bAn(n){return u(df(n,x(xWn,UKn,11,n.c.length,0,1)),1943)}function dae(n,e,t){return t.f.c.length>0?IW(n.a,e,t):IW(n.b,e,t)}function bae(n,e,t){n.d&&Qc(n.d.e,n),n.d=e,n.d&&X0(n.d.e,t,n)}function v$(n,e){sTe(e,n),VU(n.d),VU(u(k(n,(nn(),rP)),207))}function U5(n,e){uTe(e,n),XU(n.d),XU(u(k(n,(nn(),rP)),207))}function $d(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.fe()),i}function E3(n,e){var t,i;return t=rb(n,e),i=null,t&&(i=t.ie()),i}function W5(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.ie()),i}function $h(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=rY(t)),i}function wae(n,e,t){var i;return i=r4(t),mM(n.g,i,e),mM(n.i,e,t),e}function gae(n,e,t){var i;i=G2e();try{return yue(n,e,t)}finally{Aae(i)}}function wAn(n){var e;e=n.Wg(),this.a=I(e,69)?u(e,69).Zh():e.Kc()}function hi(){P9n.call(this),this.j.c=x(Zn,rn,1,0,5,1),this.a=-1}function bX(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function gAn(n,e,t,i){this.e=i,this.d=null,this.c=n,this.a=e,this.b=t}function wX(n,e,t){this.d=new r6n(this),this.e=n,this.i=e,this.f=t}function EC(){EC=N,T_=new YG(O4,0),hun=new YG("TOP_LEFT",1)}function pAn(){pAn=N,bon=aTn(Q(1),Q(4)),don=aTn(Q(1),Q(2))}function vAn(){vAn=N,uZn=xe(($j(),A(M(cZn,1),z,551,0,[LK])))}function mAn(){mAn=N,rZn=xe((Dj(),A(M(dfn,1),z,482,0,[FK])))}function kAn(){kAn=N,CZn=xe((e5(),A(M(xfn,1),z,530,0,[by])))}function yAn(){yAn=N,IUn=xe((Ij(),A(M(jrn,1),z,481,0,[OR])))}function pae(){return Kd(),A(M(EUn,1),z,406,0,[Fk,xk,PR,IR])}function vae(){return NC(),A(M(QA,1),z,297,0,[yR,zin,Uin,Win])}function mae(){return p6(),A(M(SUn,1),z,394,0,[_k,eS,tS,Kk])}function kae(){return H2(),A(M(TUn,1),z,323,0,[Nk,Lk,Bk,Rk])}function yae(){return z3(),A(M(jWn,1),z,405,0,[d0,_b,Rb,kg])}function jae(){return wT(),A(M(KWn,1),z,360,0,[ZR,SS,PS,Uk])}function jAn(n,e,t,i){return I(t,54)?new ojn(n,e,t,i):new mW(n,e,t,i)}function Eae(){return lf(),A(M(QWn,1),z,411,0,[ap,ev,tv,n_])}function Cae(n){var e;return n.j==(J(),ae)&&(e=GLn(n),lu(e,Vn))}function Tae(n,e){var t;t=e.a,Ki(t,e.c.d),Ti(t,e.d.d),sb(t.a,n.n)}function EAn(n,e){return u(kd(GE(u(ct(n.k,e),15).Oc(),jg)),113)}function CAn(n,e){return u(kd(zE(u(ct(n.k,e),15).Oc(),jg)),113)}function Mae(n){return new Fn(Ebe(u(n.a.dd(),14).gc(),n.a.cd()),16)}function C3(n){return I(n,14)?u(n,14).dc():!n.Kc().Ob()}function P2(n){return n5(),I(n.g,145)?u(n.g,145):null}function TAn(n){if(n.e.g!=n.b)throw T(new ps);return!!n.c&&n.d>0}function Re(n){return ne(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function gX(n,e){_n(e),Mt(n.a,n.c,e),n.c=n.c+1&n.a.length-1,Mxn(n)}function fl(n,e){_n(e),n.b=n.b-1&n.a.length-1,Mt(n.a,n.b,e),Mxn(n)}function MAn(n,e){var t;for(t=n.j.c.length;t0&&pc(n.g,0,e,0,n.i),e}function IAn(n,e){Lj();var t;return t=u(te(rI,n),55),!t||t.wj(e)}function Rae(n){if(n.p!=1)throw T(new ou);return ge(n.f)<<24>>24}function _ae(n){if(n.p!=1)throw T(new ou);return ge(n.k)<<24>>24}function Kae(n){if(n.p!=7)throw T(new ou);return ge(n.k)<<16>>16}function Hae(n){if(n.p!=7)throw T(new ou);return ge(n.f)<<16>>16}function xh(n){var e;for(e=0;n.Ob();)n.Pb(),e=Hi(e,1);return GC(e)}function OAn(n,e){var t;return t=new N0,n.xd(t),t.a+="..",e.yd(t),t.a}function qae(n,e,t){var i;i=u(te(n.g,t),57),W(n.a.c,new Pi(e,i))}function Gae(n,e,t){return SD(Y(Xr(Ar(n.f,e))),Y(Xr(Ar(n.f,t))))}function CC(n,e,t){return yM(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function zae(n,e,t){return k4(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Uae(n,e,t){return w9e(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function mX(n,e){return n==(Qn(),ti)&&e==ti?4:n==ti||e==ti?8:32}function DAn(n,e){return B(e)===B(n)?"(this Map)":e==null?iu:Lr(e)}function Wae(n,e){return u(e==null?Xr(Ar(n.f,null)):r5(n.g,e),281)}function $An(n,e,t){var i;return i=r4(t),it(n.b,i,e),it(n.c,e,t),e}function xAn(n,e){var t;for(t=e;t;)G0(n,t.i,t.j),t=At(t);return n}function kX(n,e){var t;return t=S8(h3(new B$(n,e))),FE(new B$(n,e)),t}function oh(n,e){er();var t;return t=u(n,66).Mj(),A5e(t,e),t.Ok(e)}function Xae(n,e,t,i,r){var c;c=k9e(r,t,i),W(e,v6e(r,c)),f5e(n,r,e)}function FAn(n,e,t){n.i=0,n.e=0,e!=t&&(uDn(n,e,t),cDn(n,e,t))}function yX(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+El),D6(n,t)}function Vae(n,e,t){if(t){var i=t.ee();n.a[e]=i(t)}else delete n.a[e]}function m$(n,e,t){if(t){var i=t.ee();t=i(t)}else t=void 0;n.a[e]=t}function LAn(n){if(n<0)throw T(new K9n("Negative array size: "+n))}function wc(n){return n.n||(Iu(n),n.n=new wCn(n,ar,n),Mr(n)),n.n}function X5(n){return ne(n.a=0&&n.a[t]===e[t];t--);return t<0}function KAn(n,e){Q3();var t;return t=n.j.g-e.j.g,t!=0?t:0}function HAn(n,e){return _n(e),n.a!=null?xfe(e.Kb(n.a)):VA}function TC(n){var e;return n?new cW(n):(e=new Sh,ix(e,n),e)}function es(n,e){var t;return e.b.Kb(xPn(n,e.c.Ee(),(t=new Jvn(e),t)))}function MC(n){HJ(),Dyn(this,ge(ci(il(n,24),NM)),ge(ci(n,NM)))}function qAn(){qAn=N,Gzn=xe((LT(),A(M(Zin,1),z,428,0,[CR,Yin])))}function GAn(){GAn=N,zzn=xe((HC(),A(M(ern,1),z,427,0,[nrn,TR])))}function zAn(){zAn=N,WUn=xe((qC(),A(M(Prn,1),z,424,0,[LR,cS])))}function UAn(){UAn=N,BWn=xe((R3(),A(M(NWn,1),z,511,0,[Gk,VR])))}function WAn(){WAn=N,lXn=xe((Z8(),A(M(Vcn,1),z,419,0,[LS,Xcn])))}function XAn(){XAn=N,wXn=xe((z8(),A(M(Ycn,1),z,479,0,[Jcn,BS])))}function VAn(){VAn=N,XQn=xe((R8(),A(M(uon,1),z,376,0,[fK,sy])))}function QAn(){QAn=N,GQn=xe((V8(),A(M(ton,1),z,421,0,[uK,sK])))}function JAn(){JAn=N,sXn=xe((xC(),A(M(Kcn,1),z,422,0,[_cn,h_])))}function YAn(){YAn=N,jXn=xe((EC(),A(M(lun,1),z,420,0,[T_,hun])))}function ZAn(){ZAn=N,RJn=xe((Bo(),A(M(BJn,1),z,520,0,[nw,Ll])))}function nSn(){nSn=N,wJn=xe((V5(),A(M(bJn,1),z,523,0,[Um,zm])))}function eSn(){eSn=N,jJn=xe((Lf(),A(M(yJn,1),z,516,0,[T0,I1])))}function tSn(){tSn=N,CJn=xe((rf(),A(M(EJn,1),z,515,0,[Va,jf])))}function iSn(){iSn=N,UJn=xe((Pd(),A(M(zJn,1),z,455,0,[Nl,Lg])))}function rSn(){rSn=N,hYn=xe((mC(),A(M(Ion,1),z,425,0,[CK,Pon])))}function cSn(){cSn=N,wYn=xe((uT(),A(M(Oon,1),z,495,0,[MP,kv])))}function uSn(){uSn=N,fYn=xe((wC(),A(M(Son,1),z,480,0,[EK,Aon])))}function sSn(){sSn=N,vYn=xe((LC(),A(M($on,1),z,426,0,[Don,SK])))}function oSn(){oSn=N,TZn=xe((f7(),A(M(Lfn,1),z,429,0,[FP,Ffn])))}function fSn(){fSn=N,sZn=xe((_8(),A(M(bfn,1),z,430,0,[NK,$P])))}function V5(){V5=N,Um=new ez("UPPER",0),zm=new ez("LOWER",1)}function Zae(n,e){var t;t=new c2,fa(t,"x",e.a),fa(t,"y",e.b),E2(n,t)}function nde(n,e){var t;t=new c2,fa(t,"x",e.a),fa(t,"y",e.b),E2(n,t)}function ede(n,e){var t,i;i=!1;do t=JOn(n,e),i=i|t;while(t);return i}function CX(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function hSn(n,e){var t;for(t=e;t;)G0(n,-t.i,-t.j),t=At(t);return n}function $i(n,e){var t,i;for(_n(e),i=n.Kc();i.Ob();)t=i.Pb(),e.td(t)}function lSn(n,e){var t;return t=e.cd(),new dd(t,n.e.pc(t,u(e.dd(),14)))}function Kt(n,e,t,i){var r;r=new wI,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function js(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function tde(n,e,t){return u(e==null?_c(n.f,null,t):qd(n.g,e,t),281)}function E$(n){return n.c&&n.d?sX(n.c)+"->"+sX(n.d):"e_"+vd(n)}function T3(n,e){return(Ea(n),Jv(new $n(n,new XX(e,n.a)))).sd(Q4)}function ide(){return Qi(),A(M(Grn,1),z,356,0,[Jf,Ol,Hc,Mc,Ir])}function rde(){return J(),A(M(Zi,1),hc,61,0,[Wr,Kn,Vn,ae,Gn])}function cde(n){return mj(),function(){return gae(n,this,arguments)}}function ude(){return Date.now?Date.now():new Date().getTime()}function Xi(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function aSn(n){if(!n.c.Sb())throw T(new ic);return n.a=!0,n.c.Ub()}function N8(n){n.i=0,V9(n.b,null),V9(n.c,null),n.a=null,n.e=null,++n.g}function TX(n){dre.call(this,n==null?iu:Lr(n),I(n,78)?u(n,78):null)}function dSn(n){B_n(),Nmn(this),this.a=new Ct,YV(this,n),Ke(this.a,n)}function bSn(){HO(this),this.b=new fn(xt,xt),this.a=new fn(Vt,Vt)}function wSn(n,e){this.c=0,this.b=e,qkn.call(this,n,17493),this.a=this.c}function C$(n){AC(),!mf&&(this.c=n,this.e=!0,this.a=new X)}function AC(){AC=N,mf=!0,xzn=!1,Fzn=!1,Nzn=!1,Lzn=!1}function MX(n,e){return I(e,149)?An(n.c,u(e,149).c):!1}function AX(n,e){var t;return t=0,n&&(t+=n.f.a/2),e&&(t+=e.f.a/2),t}function T$(n,e){var t;return t=u(xd(n.d,e),23),t||u(xd(n.e,e),23)}function gSn(n){this.b=n,ie.call(this,n),this.a=u(Rn(this.b.a,4),126)}function pSn(n){this.b=n,g2.call(this,n),this.a=u(Rn(this.b.a,4),126)}function Iu(n){return n.t||(n.t=new Amn(n),l6(new _9n(n),0,n.t)),n.t}function sde(){return sr(),A(M(c9,1),z,103,0,[yh,So,Ys,Jh,Yh])}function ode(){return qw(),A(M(f9,1),z,249,0,[_l,Sy,Ghn,o9,zhn])}function fde(){return qo(),A(M($1,1),z,175,0,[Xn,pi,nh,Qa,D1])}function hde(){return $7(),A(M(vfn,1),z,316,0,[wfn,BK,pfn,RK,gfn])}function lde(){return v6(),A(M(Xsn,1),z,315,0,[Wsn,iK,rK,_m,Km])}function ade(){return Aa(),A(M(Wcn,1),z,335,0,[a_,Ucn,d_,Am,Mm])}function dde(){return p4(),A(M(eZn,1),z,355,0,[Ng,Cp,n9,Zm,e9])}function bde(){return Vw(),A(M(YWn,1),z,363,0,[OS,$S,xS,DS,IS])}function wde(){return As(),A(M(Cun,1),z,163,0,[ny,Dm,$l,$m,Gb])}function M3(){M3=N;var n,e;oI=(Jp(),e=new aj,e),fI=(n=new KI,n)}function vSn(n){var e;return n.c||(e=n.r,I(e,88)&&(n.c=u(e,26))),n.c}function gde(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function M$(n){var e,t,i;return e=n&Lu,t=n>>22&Lu,i=n<0?Wh:0,Bc(e,t,i)}function pde(n){var e,t,i,r;for(t=n,i=0,r=t.length;i0?g$n(n,e):BNn(n,-e)}function SX(n,e){return e==0||n.e==0?n:e>0?BNn(n,e):g$n(n,-e)}function ve(n){if(Se(n))return n.c=n.a,n.a.Pb();throw T(new ic)}function kSn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Qn(),Xt)&&t.k==Xt}function A$(n){var e;return e=new Sd,Sr(e,n),H(e,(nn(),Tr),null),e}function S$(n,e,t){var i;return i=n.Yg(e),i>=0?n._g(i,t,!0):Jd(n,e,t)}function PX(n,e,t,i){var r;for(r=0;re)throw T(new vr(lY(n,e,"index")));return n}function P$(n,e,t,i){var r;return r=x(be,Le,25,e,15,1),Ive(r,n,e,t,i),r}function mde(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),D6(n,t)}function kde(n,e){return j.Math.min(hl(e.a,n.d.d.c),hl(e.b,n.d.d.c))}function D2(n,e){return mi(e)?e==null?SY(n.f,null):$On(n.g,e):SY(n.f,e)}function of(n){this.c=n,this.a=new E(this.c.a),this.b=new E(this.c.b)}function SC(){this.e=new X,this.c=new X,this.d=new X,this.b=new X}function TSn(){this.g=new Wq,this.b=new Wq,this.a=new X,this.k=new X}function MSn(n,e,t){this.a=n,this.c=e,this.d=t,W(e.e,this),W(t.b,this)}function ASn(n,e){Hkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function SSn(n,e){qkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function LX(n,e){NO.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function PC(n,e,t){this.a=n,this.b=e,this.c=t,W(n.t,this),W(e.i,this)}function IC(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function OC(){OC=N,t9=new kt("org.eclipse.elk.labels.labelManager")}function PSn(){PSn=N,Fcn=new ii("separateLayerConnections",(wT(),ZR))}function Bo(){Bo=N,nw=new rz("REGULAR",0),Ll=new rz("CRITICAL",1)}function R8(){R8=N,fK=new nz("STACKED",0),sy=new nz("SEQUENCED",1)}function _8(){_8=N,NK=new hz("FIXED",0),$P=new hz("CENTER_NODE",1)}function yde(n,e){var t;return t=TEe(n,e),n.b=new cT(t.c.length),Nje(n,t)}function jde(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].$c(t),133),i.dd()}function ISn(n){var e;return n.a||(e=n.r,I(e,148)&&(n.a=u(e,148))),n.a}function NX(n){if(n.a){if(n.e)return NX(n.e)}else return n;return null}function Ede(n,e){return n.pe.p?-1:0}function DC(n,e){return _n(e),n.c=0,"Initial capacity must not be negative")}function $Sn(){$Sn=N,Vzn=xe((Ko(),A(M(Bb,1),z,232,0,[Yr,Lc,Zr])))}function xSn(){xSn=N,Jzn=xe((Cu(),A(M(Qzn,1),z,461,0,[Qf,Pl,To])))}function FSn(){FSn=N,Zzn=xe((Jc(),A(M(Yzn,1),z,462,0,[Xo,Il,Mo])))}function LSn(){LSn=N,Bzn=xe((af(),A(M(Nu,1),z,132,0,[Vin,hs,Nb])))}function NSn(){NSn=N,bWn=xe((J5(),A(M(qrn,1),z,379,0,[_R,RR,KR])))}function BSn(){BSn=N,PWn=xe((Hd(),A(M(Wrn,1),z,423,0,[yg,Urn,UR])))}function RSn(){RSn=N,oXn=xe((F2(),A(M(qcn,1),z,314,0,[dp,Wk,Hcn])))}function _Sn(){_Sn=N,fXn=xe((YC(),A(M(zcn,1),z,337,0,[Gcn,FS,l_])))}function KSn(){KSn=N,dXn=xe((ma(),A(M(aXn,1),z,450,0,[b_,uv,Tg])))}function HSn(){HSn=N,rXn=xe((_d(),A(M(e_,1),z,361,0,[w0,Dl,b0])))}function qSn(){qSn=N,yXn=xe((Nh(),A(M(kXn,1),z,303,0,[Vk,Ag,bp])))}function GSn(){GSn=N,mXn=xe((G3(),A(M(C_,1),z,292,0,[j_,E_,Xk])))}function zSn(){zSn=N,RQn=xe((s6(),A(M(Usn,1),z,378,0,[nK,zsn,lP])))}function USn(){USn=N,WQn=xe((lT(),A(M(con,1),z,375,0,[ion,oK,ron])))}function WSn(){WSn=N,qQn=xe((Rh(),A(M(eon,1),z,339,0,[Fl,non,cK])))}function XSn(){XSn=N,UQn=xe((ur(),A(M(zQn,1),z,452,0,[Hm,Au,Nc])))}function VSn(){VSn=N,JQn=xe((gT(),A(M(aon,1),z,377,0,[aK,vv,Zb])))}function QSn(){QSn=N,VQn=xe((J3(),A(M(oon,1),z,336,0,[hK,son,qm])))}function JSn(){JSn=N,QQn=xe((fT(),A(M(lon,1),z,338,0,[hon,lK,fon])))}function YSn(){YSn=N,hJn=xe((Rd(),A(M(fJn,1),z,454,0,[oy,Gm,wP])))}function ZSn(){ZSn=N,pYn=xe((AT(),A(M(gYn,1),z,442,0,[AK,TK,MK])))}function nPn(){nPn=N,mYn=xe((d7(),A(M(Lon,1),z,380,0,[AP,xon,Fon])))}function ePn(){ePn=N,LYn=xe((MT(),A(M(nfn,1),z,381,0,[Zon,$K,Yon])))}function tPn(){tPn=N,FYn=xe((hT(),A(M(Qon,1),z,293,0,[DK,Von,Xon])))}function iPn(){iPn=N,iZn=xe((m7(),A(M(xK,1),z,437,0,[IP,OP,DP])))}function rPn(){rPn=N,une=xe((_h(),A(M(qhn,1),z,334,0,[zP,x1,s9])))}function cPn(){cPn=N,tne=xe((ff(),A(M(Ohn,1),z,272,0,[Ev,iw,Cv])))}function Ide(){return Ai(),A(M(Uhn,1),z,98,0,[Kl,Cf,Mv,nd,Ch,Pc])}function da(n,e){return!n.o&&(n.o=new Wu((xc(),Gl),A0,n,0)),_x(n.o,e)}function Ode(n){return!n.g&&(n.g=new Zy),!n.g.d&&(n.g.d=new Cmn(n)),n.g.d}function Dde(n){return!n.g&&(n.g=new Zy),!n.g.a&&(n.g.a=new Tmn(n)),n.g.a}function $de(n){return!n.g&&(n.g=new Zy),!n.g.b&&(n.g.b=new Emn(n)),n.g.b}function K8(n){return!n.g&&(n.g=new Zy),!n.g.c&&(n.g.c=new Mmn(n)),n.g.c}function xde(n,e,t){var i,r;for(r=new q3(e,n),i=0;it||e=0?n._g(t,!0,!0):Jd(n,e,!0)}function Jde(n,e){return Zt(K(Y(k(n,(G(),m0)))),K(Y(k(e,m0))))}function aPn(){aPn=N,aYn=Wd(Wd(Fj(new hi,(u4(),Wm)),(C6(),kP)),wK)}function Yde(n,e,t){var i;return i=tDn(n,e,t),n.b=new cT(i.c.length),ZY(n,i)}function Zde(n){if(n.b<=0)throw T(new ic);return--n.b,n.a-=n.c.c,Q(n.a)}function n0e(n){var e;if(!n.a)throw T(new gTn);return e=n.a,n.a=At(n.a),e}function e0e(n){for(;!n.a;)if(!nEn(n.c,new Xvn(n)))return!1;return!0}function x2(n){var e;return pe(n),I(n,198)?(e=u(n,198),e):new dvn(n)}function t0e(n){FC(),u(n.We((Xe(),tw)),174).Fc((Tu(),Py)),n.Ye(rH,null)}function FC(){FC=N,SZn=new n2n,IZn=new e2n,PZn=_we((Xe(),rH),SZn,Bl,IZn)}function LC(){LC=N,Don=new fz("LEAF_NUMBER",0),SK=new fz("NODE_SIZE",1)}function i0e(n,e,t){n.a=e,n.c=t,n.b.a.$b(),Rs(n.d),n.e.a.c=x(Zn,rn,1,0,5,1)}function L$(n){n.a=x(be,Le,25,n.b+1,15,1),n.c=x(be,Le,25,n.b,15,1),n.d=0}function r0e(n,e){n.a.ue(e.d,n.b)>0&&(W(n.c,new YU(e.c,e.d,n.d)),n.b=e.d)}function WX(n,e){if(n.g==null||e>=n.i)throw T(new BO(e,n.i));return n.g[e]}function dPn(n,e,t){if(X3(n,t),t!=null&&!n.wj(t))throw T(new BI);return t}function bPn(n){var e;if(n.Ek())for(e=n.i-1;e>=0;--e)D(n,e);return vX(n)}function c0e(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function u0e(n,e){var t,i;return LAn(e),t=(i=n.slice(0,e),VX(i,n)),t.length=e,t}function P3(n,e,t,i){var r;i=(Ow(),i||Bin),r=n.slice(e,t),aY(r,n,e,t,-e,i)}function Es(n,e,t,i,r){return e<0?Jd(n,t,i):u(t,66).Nj().Pj(n,n.yh(),e,i,r)}function s0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Lr(n)}function o0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Lr(n)}function wPn(n,e){if(e.a)throw T(new Rr(wKn));ri(n.a,e),e.a=n,!n.j&&(n.j=e)}function XX(n,e){NO.call(this,e.rd(),e.qd()&-16449),_n(n),this.a=n,this.c=e}function gPn(n,e){var t,i;return i=e/n.c.Hd().gc()|0,t=e%n.c.Hd().gc(),$2(n,i,t)}function Cu(){Cu=N,Qf=new lO(Z2,0),Pl=new lO(O4,1),To=new lO(np,2)}function NC(){NC=N,yR=new Rj("All",0),zin=new lyn,Uin=new Eyn,Win=new ayn}function pPn(){pPn=N,Dzn=xe((NC(),A(M(QA,1),z,297,0,[yR,zin,Uin,Win])))}function vPn(){vPn=N,EWn=xe((z3(),A(M(jWn,1),z,405,0,[d0,_b,Rb,kg])))}function mPn(){mPn=N,CUn=xe((Kd(),A(M(EUn,1),z,406,0,[Fk,xk,PR,IR])))}function kPn(){kPn=N,MUn=xe((H2(),A(M(TUn,1),z,323,0,[Nk,Lk,Bk,Rk])))}function yPn(){yPn=N,PUn=xe((p6(),A(M(SUn,1),z,394,0,[_k,eS,tS,Kk])))}function jPn(){jPn=N,WJn=xe((u4(),A(M(pon,1),z,393,0,[mP,Wm,hy,Xm])))}function EPn(){EPn=N,HWn=xe((wT(),A(M(KWn,1),z,360,0,[ZR,SS,PS,Uk])))}function CPn(){CPn=N,xYn=xe((UT(),A(M(Won,1),z,340,0,[OK,zon,Uon,Gon])))}function TPn(){TPn=N,JWn=xe((lf(),A(M(QWn,1),z,411,0,[ap,ev,tv,n_])))}function MPn(){MPn=N,_Qn=xe((db(),A(M(tK,1),z,197,0,[aP,eK,Fg,xg])))}function APn(){APn=N,Ene=xe((Xu(),A(M(jne,1),z,396,0,[ws,n1n,Zhn,e1n])))}function SPn(){SPn=N,one=xe((cs(),A(M(sne,1),z,285,0,[Ay,jh,Rl,My])))}function PPn(){PPn=N,ine=xe((Hh(),A(M(oH,1),z,218,0,[sH,Ty,Tv,Pp])))}function IPn(){IPn=N,kne=xe((IT(),A(M(Yhn,1),z,311,0,[lH,Vhn,Jhn,Qhn])))}function OPn(){OPn=N,vne=xe((Vu(),A(M(a9,1),z,374,0,[Oy,ed,Iy,rw])))}function DPn(){DPn=N,jM(),L1n=xt,Tee=Vt,N1n=new D9(xt),Mee=new D9(Vt)}function z8(){z8=N,Jcn=new JG(Xh,0),BS=new JG("IMPROVE_STRAIGHTNESS",1)}function f0e(n,e){return l3(),W(n,new Pi(e,Q(e.e.c.length+e.g.c.length)))}function h0e(n,e){return l3(),W(n,new Pi(e,Q(e.e.c.length+e.g.c.length)))}function VX(n,e){return Q8(e)!=10&&A(Du(e),e.hm,e.__elementTypeId$,Q8(e),n),n}function Qc(n,e){var t;return t=xr(n,e,0),t==-1?!1:(h1(n,t),!0)}function $Pn(n,e){var t;return t=u(D2(n.e,e),387),t?(eW(t),t.e):null}function I3(n){var e;return $r(n)&&(e=0-n,!isNaN(e))?e:al(U3(n))}function xr(n,e,t){for(;t=0?KT(n,t,!0,!0):Jd(n,e,!0)}function nV(n,e){n5();var t,i;return t=P2(n),i=P2(e),!!t&&!!i&&!V$n(t.k,i.k)}function d0e(n,e){Zc(n,e==null||TE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function b0e(n,e){nu(n,e==null||TE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function w0e(n,e){Bd(n,e==null||TE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function g0e(n,e){Nd(n,e==null||TE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function BPn(n){(this.q?this.q:(Pn(),Pn(),mh)).Ac(n.q?n.q:(Pn(),Pn(),mh))}function p0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new RO(e,n):new q3(e,n)}function v0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new RO(e,n):new q3(e,n)}function RPn(n,e){krn=new Qy,AUn=e,km=n,u(km.b,65),_X(km,krn,null),DRn(km)}function K$(n,e,t){var i;return i=n.g[e],C5(n,e,n.oi(e,t)),n.gi(e,t,i),n.ci(),i}function KC(n,e){var t;return t=n.Xc(e),t>=0?(n.$c(t),!0):!1}function H$(n){var e;return n.d!=n.r&&(e=Hs(n),n.e=!!e&&e.Cj()==kGn,n.d=e),n.e}function q$(n,e){var t;for(pe(n),pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function xd(n,e){var t;return t=u(te(n.e,e),387),t?(Oyn(n,t),t.e):null}function _Pn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Hr(n,e){var t,i;return Ea(n),i=new LX(e,n.a),t=new iEn(i),new $n(n,t)}function rb(n,e){var t=n.a[e],i=(ox(),gR)[typeof t];return i?i(t):rQ(typeof t)}function m0e(n){switch(n.g){case 0:return nt;case 1:return-1;default:return 0}}function k0e(n){return yJ(n,(O3(),min))<0?-Lce(U3(n)):n.l+n.m*Y2+n.h*Oa}function Q8(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function G$(n){var e;return e=n.b.c.length==0?null:un(n.b,0),e!=null&&nx(n,0),e}function KPn(n,e){for(;e[0]=0;)++e[0]}function J8(n,e){this.e=e,this.a=xOn(n),this.a<54?this.f=Dd(n):this.c=E7(n)}function HPn(n,e,t,i){Je(),rd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function fh(n,e,t){var i,r;for(i=10,r=0;rn.a[i]&&(i=t);return i}function M0e(n,e){var t;return t=Gd(n.e.c,e.e.c),t==0?Zt(n.e.d,e.e.d):t}function xw(n,e){return e.e==0||n.e==0?X4:(d4(),zF(n,e))}function A0e(n,e){if(!n)throw T(new Hn(I8e("Enum constant undefined: %s",e)))}function Y5(){Y5=N,MWn=new San,AWn=new Man,CWn=new $an,TWn=new xan,SWn=new Fan}function HC(){HC=N,nrn=new zG("BY_SIZE",0),TR=new zG("BY_SIZE_AND_SHAPE",1)}function qC(){qC=N,LR=new UG("EADES",0),cS=new UG("FRUCHTERMAN_REINGOLD",1)}function Z8(){Z8=N,LS=new QG("READING_DIRECTION",0),Xcn=new QG("ROTATION",1)}function GPn(){GPn=N,hXn=xe((Aa(),A(M(Wcn,1),z,335,0,[a_,Ucn,d_,Am,Mm])))}function zPn(){zPn=N,KQn=xe((v6(),A(M(Xsn,1),z,315,0,[Wsn,iK,rK,_m,Km])))}function UPn(){UPn=N,ZWn=xe((Vw(),A(M(YWn,1),z,363,0,[OS,$S,xS,DS,IS])))}function WPn(){WPn=N,EXn=xe((As(),A(M(Cun,1),z,163,0,[ny,Dm,$l,$m,Gb])))}function XPn(){XPn=N,oZn=xe(($7(),A(M(vfn,1),z,316,0,[wfn,BK,pfn,RK,gfn])))}function VPn(){VPn=N,OZn=xe((qo(),A(M($1,1),z,175,0,[Xn,pi,nh,Qa,D1])))}function QPn(){QPn=N,tZn=xe((p4(),A(M(eZn,1),z,355,0,[Ng,Cp,n9,Zm,e9])))}function JPn(){JPn=N,vWn=xe((Qi(),A(M(Grn,1),z,356,0,[Jf,Ol,Hc,Mc,Ir])))}function YPn(){YPn=N,ene=xe((sr(),A(M(c9,1),z,103,0,[yh,So,Ys,Jh,Yh])))}function ZPn(){ZPn=N,hne=xe((qw(),A(M(f9,1),z,249,0,[_l,Sy,Ghn,o9,zhn])))}function nIn(){nIn=N,dne=xe((J(),A(M(Zi,1),hc,61,0,[Wr,Kn,Vn,ae,Gn])))}function z$(n,e){var t;return t=u(te(n.a,e),134),t||(t=new kI,it(n.a,e,t)),t}function eIn(n){var e;return e=u(k(n,(G(),g0)),305),e?e.a==n:!1}function tIn(n){var e;return e=u(k(n,(G(),g0)),305),e?e.i==n:!1}function iIn(n,e){return _n(e),yW(n),n.d.Ob()?(e.td(n.d.Pb()),!0):!1}function GC(n){return fc(n,nt)>0?nt:fc(n,Bi)<0?Bi:ge(n)}function cb(n){return n<3?(is(n,J_n),n+1):n<_6?Ht(n/.75+1):nt}function On(n,e){var t;return t=(n.i==null&&Bf(n),n.i),e>=0&&e=-.01&&n.a<=gf&&(n.a=0),n.b>=-.01&&n.b<=gf&&(n.b=0),n}function cIn(n,e){return e==(hD(),hD(),Pzn)?n.toLocaleLowerCase():n.toLowerCase()}function tV(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(Ph(n),n.o)}function Er(n){var e,t;t=(e=new HI,e),me((!n.q&&(n.q=new V(ro,n,11,10)),n.q),t)}function S0e(n,e){var t;return t=e>0?e-1:e,e8n(Hie(IIn(nW(new Up,t),n.n),n.j),n.k)}function P0e(n,e,t,i){var r;n.j=-1,TY(n,cY(n,e,t),(er(),r=u(e,66).Mj(),r.Ok(i)))}function uIn(n){this.g=n,this.f=new X,this.a=j.Math.min(this.g.c.c,this.g.d.c)}function sIn(n){this.b=new X,this.a=new X,this.c=new X,this.d=new X,this.e=n}function oIn(n,e){this.a=new we,this.e=new we,this.b=(s6(),lP),this.c=n,this.b=e}function fIn(n,e,t){EE.call(this),iV(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function hIn(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(wj(),aR)}function Fd(n){if(n<0)throw T(new Hn("Illegal Capacity: "+n));this.g=this.ri(n)}function I0e(n,e){if(0>n||n>e)throw T(new gG("fromIndex: 0, toIndex: "+n+rnn+e))}function O0e(n){var e;if(n.a==n.b.a)throw T(new ic);return e=n.a,n.c=e,n.a=n.a.e,e}function zC(n){var e;q0(!!n.c),e=n.c.a,Cs(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function UC(n,e){var t;return Ea(n),t=new DTn(n,n.a.rd(),n.a.qd()|4,e),new $n(n,t)}function D0e(n,e){var t,i;return t=u(hb(n.d,e),14),t?(i=e,n.e.pc(i,t)):null}function WC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),70),H(t,(G(),vp),e)}function $0e(n){var e;return e=K(Y(k(n,(nn(),S1)))),e<0&&(e=0,H(n,S1,e)),e}function x0e(n,e,t){var i;i=j.Math.max(0,n.b/2-.5),k6(t,i,1),W(e,new L7n(t,i))}function F0e(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],Ht(E8(i))}function lIn(n,e,t,i,r,c){var o;o=A$(i),Ki(o,r),Ti(o,c),Tn(n.a,i,new ME(o,e,t.f))}function aIn(n,e){var t;if(t=q7(n.Tg(),e),!t)throw T(new Hn(Al+e+PB));return t}function ub(n,e){var t;for(t=n;At(t);)if(t=At(t),t==e)return!0;return!1}function L0e(n,e){var t,i,r;for(i=e.a.cd(),t=u(e.a.dd(),14).gc(),r=0;r0&&(n.a/=e,n.b/=e),n}function ts(n){var e;return n.w?n.w:(e=zle(n),e&&!e.kh()&&(n.w=e),e)}function G0e(n){var e;return n==null?null:(e=u(n,190),zve(e,e.length))}function D(n,e){if(n.g==null||e>=n.i)throw T(new BO(e,n.i));return n.li(e,n.g[e])}function z0e(n){var e,t;for(e=n.a.d.j,t=n.c.d.j;e!=t;)yo(n.b,e),e=CT(e);yo(n.b,e)}function U0e(n){var e;for(e=0;e=14&&e<=16))),n}function gIn(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function pIn(n,e,t){var i,r;i=e;do r=K(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function D3(n,e){var t,i;i=n.a,t=Mge(n,e,null),i!=e&&!n.e&&(t=E4(n,e,t)),t&&t.Fi()}function rV(n,e){return nf(),ko(jl),j.Math.abs(n-e)<=jl||n==e||isNaN(n)&&isNaN(e)}function cV(n,e){return nf(),ko(jl),j.Math.abs(n-e)<=jl||n==e||isNaN(n)&&isNaN(e)}function V0e(n,e){return ml(),Uc(n.b.c.length-n.e.c.length,e.b.c.length-e.e.c.length)}function Fw(n,e){return Wie(e6(n,e,ge(Ni(bh,uh(ge(Ni(e==null?0:mt(e),wh)),15)))))}function vIn(){vIn=N,$Wn=xe((Qn(),A(M(XR,1),z,267,0,[ti,gi,Xt,Ac,Qu,kf])))}function mIn(){mIn=N,_Zn=xe((gb(),A(M(VK,1),z,291,0,[XK,ky,my,WK,py,vy])))}function kIn(){kIn=N,xZn=xe((hh(),A(M(Kfn,1),z,248,0,[zK,wy,gy,BP,LP,NP])))}function yIn(){yIn=N,uXn=xe((G2(),A(M(cv,1),z,227,0,[rv,Tm,iv,Kb,Cg,Eg])))}function jIn(){jIn=N,pXn=xe((l4(),A(M(fun,1),z,275,0,[Sm,cun,oun,sun,uun,run])))}function EIn(){EIn=N,gXn=xe((O7(),A(M(iun,1),z,274,0,[RS,nun,tun,Zcn,eun,k_])))}function CIn(){CIn=N,BQn=xe((nM(),A(M(Gsn,1),z,313,0,[Z_,Hsn,Y_,Ksn,qsn,hP])))}function TIn(){TIn=N,bXn=xe((rM(),A(M(Qcn,1),z,276,0,[g_,w_,v_,p_,m_,NS])))}function MIn(){MIn=N,VJn=xe((C6(),A(M(XJn,1),z,327,0,[kP,wK,pK,gK,vK,bK])))}function AIn(){AIn=N,ane=xe((Tu(),A(M(UP,1),z,273,0,[Hl,n1,Py,l9,h9,Ip])))}function SIn(){SIn=N,rne=xe((tM(),A(M(Nhn,1),z,312,0,[fH,xhn,Lhn,Dhn,Fhn,$hn])))}function Q0e(){return kb(),A(M(lr,1),z,93,0,[Po,Zh,Io,Do,Eh,no,as,Oo,Zs])}function VC(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,0,t,n.a))}function QC(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,1,t,n.b))}function $3(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,3,t,n.b))}function Nd(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,3,t,n.f))}function Bd(n,e){var t;t=n.g,n.g=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,4,t,n.g))}function Zc(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,5,t,n.i))}function nu(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,6,t,n.j))}function x3(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,1,t,n.j))}function F3(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,4,t,n.c))}function L3(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&et(n,new tb(n,2,t,n.k))}function W$(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new k$(n,2,t,n.d))}function d1(n,e){var t;t=n.s,n.s=e,n.Db&4&&!(n.Db&1)&&et(n,new k$(n,4,t,n.s))}function ob(n,e){var t;t=n.t,n.t=e,n.Db&4&&!(n.Db&1)&&et(n,new k$(n,5,t,n.t))}function N3(n,e){var t;t=n.F,n.F=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,5,t,e))}function n7(n,e){var t;return t=u(te((Lj(),rI),n),55),t?t.xj(e):x(Zn,rn,1,e,5,1)}function Bh(n,e){var t,i;return t=e in n.a,t&&(i=Dh(n,e).he(),i)?i.a:null}function J0e(n,e){var t,i,r;return t=(i=(ld(),r=new YH,r),e&&WY(i,e),i),bV(t,n),t}function PIn(n,e,t){if(X3(n,t),!n.Bk()&&t!=null&&!n.wj(t))throw T(new BI);return t}function IIn(n,e){return n.n=e,n.n?(n.f=new X,n.e=new X):(n.f=null,n.e=null),n}function Ae(n,e,t,i,r,c){var o;return o=RD(n,e),DIn(t,o),o.i=r?8:0,o.f=i,o.e=r,o.g=c,o}function uV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function sV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function oV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function fV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function hV(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function OIn(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0),J2e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function lV(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=b7(n.f)),n.c).e}function ko(n){if(!(n>=0))throw T(new Hn("tolerance ("+n+") must be >= 0"));return n}function B3(){return qK||(qK=new kBn,_w(qK,A(M(mg,1),rn,130,0,[new tq]))),qK}function ur(){ur=N,Hm=new EO(z6,0),Au=new EO("INPUT",1),Nc=new EO("OUTPUT",2)}function YC(){YC=N,Gcn=new pO("ARD",0),FS=new pO("MSD",1),l_=new pO("MANUAL",2)}function Rd(){Rd=N,oy=new SO("BARYCENTER",0),Gm=new SO(rHn,1),wP=new SO(cHn,2)}function e7(n,e){var t;if(t=n.gc(),e<0||e>t)throw T(new W0(e,t));return new PU(n,e)}function FIn(n,e){var t;return I(e,42)?n.c.Mc(e):(t=_x(n,e),$T(n,e),t)}function wr(n,e,t){return ja(n,e),Dc(n,t),d1(n,0),ob(n,1),p1(n,!0),g1(n,!0),n}function is(n,e){if(n<0)throw T(new Hn(e+" cannot be negative but was: "+n));return n}function LIn(n,e){var t,i;for(t=0,i=n.gc();t0?u(un(t.a,i-1),10):null}function n6(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,2,t,n.k))}function nT(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,8,t,n.f))}function eT(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,7,t,n.i))}function bV(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,8,t,n.a))}function wV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,0,t,n.b))}function gV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,0,t,n.b))}function pV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,1,t,n.c))}function vV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,1,t,n.c))}function V$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,4,t,n.c))}function mV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,1,t,n.d))}function Q$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,2,t,n.D))}function J$(n,e){n.r>0&&n.c0&&n.g!=0&&J$(n.i,e/n.r*n.i.d))}function ube(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new T9n:new eq,n.c=j7e(i,n.b,n.a)}function zIn(n,e){return zh(n.e,e)?(er(),H$(e)?new $E(e,n):new s8(e,n)):new Nkn(e,n)}function tT(n,e){return Uie(t6(n.a,e,ge(Ni(bh,uh(ge(Ni(e==null?0:mt(e),wh)),15)))))}function sbe(n,e,t){return ib(n,new Hvn(e),new mln,new qvn(t),A(M(Nu,1),z,132,0,[]))}function obe(n){var e,t;return 0>n?new OG:(e=n+1,t=new wSn(e,n),new hU(null,t))}function fbe(n,e){Pn();var t;return t=new o2(1),mi(n)?kr(t,n,e):_c(t.f,n,e),new FI(t)}function hbe(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:_6):e}function Y$(n){switch(Kz(n.e!=3),n.e){case 2:return!1;case 0:return!0}return gde(n)}function WIn(n,e){var t;return I(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Z$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=ci(V0(n.n[t][c],ge(Ih(r,1))),3),i}function abe(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),JT(n,t.cd(),t.dd())}function dbe(n,e){var t;t=new Qy,u(e.b,65),u(e.b,65),u(e.b,65),Yc(e.a,new _U(n,t,e))}function kV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,21,t,n.b))}function yV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,11,t,n.d))}function iT(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,13,t,n.j))}function XIn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i>>31;i!=0&&(n[t]=i)}function Ebe(n,e){Pn();var t,i;for(i=new X,t=0;t0&&(this.g=this.ri(this.i+(this.i/8|0)+1),n.Qc(this.g))}function $t(n,e){PE.call(this,ree,n,e),this.b=this,this.a=Kc(n.Tg(),On(this.e.Tg(),this.c))}function i6(n,e){var t,i;for(_n(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),n.zc(t.cd(),t.dd())}function $be(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!CC(n,e,i.Pb()))return!1;return!0}function xbe(n,e,t,i,r){var c;return t&&(c=yt(e.Tg(),n.c),r=t.gh(e,-1-(c==-1?i:c),null,r)),r}function Fbe(n,e,t,i,r){var c;return t&&(c=yt(e.Tg(),n.c),r=t.ih(e,-1-(c==-1?i:c),null,r)),r}function dOn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function bOn(n){switch(n.g){case 2:return J(),Gn;case 4:return J(),Vn;default:return n}}function wOn(n){switch(n.g){case 1:return J(),ae;case 3:return J(),Kn;default:return n}}function Lbe(n){var e,t,i;return n.j==(J(),Kn)&&(e=GLn(n),t=lu(e,Vn),i=lu(e,Gn),i||i&&t)}function Nbe(n){var e,t;return e=u(n.e&&n.e(),9),t=u(DW(e,e.length),9),new ms(e,t,e.length)}function Bbe(n,e){le(e,iHn,1),AQ(rre(new cj((Zv(),new WD(n,!1,!1,new _H))))),ce(e)}function t7(n,e){return qn(),mi(n)?xX(n,Te(e)):H0(n)?SD(n,Y(e)):K0(n)?Hfe(n,sn(e)):n.wd(e)}function AV(n,e){e.q=n,n.d=j.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),W(n.a,e)}function _3(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.ac&&e.b1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw T(new ic)}function Qbe(n){gyn();var e;return M7n(dK,n)||(e=new Zwn,e.a=n,pU(dK,n,e)),u(br(dK,n),635)}function _s(n){var e,t,i,r;return r=n,i=0,r<0&&(r+=Oa,i=Wh),t=Ht(r/Y2),e=Ht(r-t*Y2),Bc(e,t,i)}function i7(n){var e,t,i;for(i=0,t=new f2(n.a);t.a>22),r=n.h+e.h+(i>>22),Bc(t&Lu,i&Lu,r&Wh)}function FOn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Bc(t&Lu,i&Lu,r&Wh)}function s7(n){var e;return n<128?(e=(QEn(),Ein)[n],!e&&(e=Ein[n]=new pq(n)),e):new pq(n)}function jt(n){var e;return I(n,78)?n:(e=n&&n.__java$exception,e||(e=new CDn(n),Kmn(e)),e)}function o7(n){if(I(n,186))return u(n,118);if(n)return null;throw T(new u2(Iqn))}function LOn(n,e){if(e==null)return!1;for(;n.a!=n.b;)if(tt(e,yT(n)))return!0;return!1}function $V(n){return n.a.Ob()?!0:n.a!=n.d?!1:(n.a=new dX(n.e.f),n.a.Ob())}function Yt(n,e){var t,i;return t=e.Pc(),i=t.length,i==0?!1:(UU(n.c,n.c.length,t),!0)}function lwe(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),42),n.yc(i.cd(),i.dd(),t);return n}function NOn(n,e){var t,i;for(i=new E(n.b);i.a=0,"Negative initial capacity"),SE(e>=0,"Non-positive load factor"),Eu(this)}function fx(n,e,t){return n>=128?!1:n<64?v5(ci(Ih(1,n),t),0):v5(ci(Ih(1,n-64),e),0)}function kwe(n,e){return!n||!e||n==e?!1:Gd(n.b.c,e.b.c+e.b.b)<0&&Gd(e.b.c,n.b.c+n.b.b)<0}function VOn(n){var e,t,i;return t=n.n,i=n.o,e=n.d,new ks(t.a-e.b,t.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function ywe(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;ii)throw T(new W0(e,i));return n.hi()&&(t=aMn(n,t)),n.Vh(e,t)}function l7(n,e,t){return t==null?(!n.q&&(n.q=new we),D2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t)),n}function H(n,e,t){return t==null?(!n.q&&(n.q=new we),D2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t)),n}function QOn(n){var e,t;return t=new SC,Sr(t,n),H(t,(ll(),lp),n),e=new we,Tye(n,t,e),JEe(n,t,e),t}function Cwe(n){eg();var e,t,i;for(t=x(ai,q,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=c3e(i,n);return t}function JOn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c>=1);return e}function ZOn(n){var e,t;return t=R7(n.h),t==32?(e=R7(n.m),e==32?R7(n.l)+32:e+20-10):t-12}function u6(n){var e;return e=n.a[n.b],e==null?null:(Mt(n.a,n.b,null),n.b=n.b+1&n.a.length-1,e)}function nDn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function pT(n,e,t){var i,r;return i=new $$(e,t),r=new gI,n.b=zNn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function eDn(n,e,t){var i,r,c,o;for(o=f6(e,t),c=0,r=o.Kc();r.Ob();)i=u(r.Pb(),11),it(n.c,i,Q(c++))}function dl(n){var e,t;for(t=new E(n.a.b);t.at&&(t=n[e]);return t}function tDn(n,e,t){var i;return i=new X,QY(n,e,i,(J(),Vn),!0,!1),QY(n,t,i,Gn,!1,!1),i}function lx(n,e,t){var i,r,c,o;return c=null,o=e,r=$d(o,"labels"),i=new jkn(n,t),c=(qme(i.a,i.b,r),r),c}function Mwe(n,e,t,i){var r;return r=NY(n,e,t,i),!r&&(r=Age(n,t,i),r&&!rg(n,e,r))?null:r}function Awe(n,e,t,i){var r;return r=BY(n,e,t,i),!r&&(r=Sx(n,t,i),r&&!rg(n,e,r))?null:r}function iDn(n,e){var t;for(t=0;t1||e>=0&&n.b<3)}function a7(n){var e,t,i;for(e=new fu,i=_e(n,0);i.b!=i.d.c;)t=u(Re(i),8),o3(e,0,new mr(t));return e}function ka(n){var e,t;for(t=new E(n.a.b);t.ai?1:0}function YV(n,e){return ANn(n,e)?(Tn(n.b,u(k(e,(G(),Hb)),21),e),Ke(n.a,e),!0):!1}function Rwe(n){var e,t;e=u(k(n,(G(),Mu)),10),e&&(t=e.c,Qc(t.a,e),t.a.c.length==0&&Qc(qi(e).b,t))}function fDn(n){return mf?x($zn,lKn,572,0,0,1):u(df(n.a,x($zn,lKn,572,n.a.c.length,0,1)),842)}function _we(n,e,t,i){return ZE(),new WI(A(M(_a,1),xM,42,0,[(rF(n,e),new dd(n,e)),(rF(t,i),new dd(t,i))]))}function Rw(n,e,t){var i,r;return r=(i=new HI,i),wr(r,e,t),me((!n.q&&(n.q=new V(ro,n,11,10)),n.q),r),r}function wx(n){var e,t,i,r;for(r=are($ne,n),t=r.length,i=x(tn,q,2,t,6,1),e=0;e=n.b.c.length||(ZV(n,2*e+1),t=2*e+2,t=0&&n[i]===e[i];i--);return i<0?0:oO(ci(n[i],fr),ci(e[i],fr))?-1:1}function Kwe(n,e){var t,i;for(i=_e(n,0);i.b!=i.d.c;)t=u(Re(i),214),t.e.length>0&&(e.td(t),t.i&&Fge(t))}function px(n,e){var t,i;return i=u(Rn(n.a,4),126),t=x(pH,UB,415,e,0,1),i!=null&&pc(i,0,t,0,i.length),t}function lDn(n,e){var t;return t=new XF((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function Hwe(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),14),t.Hc(e))return!0;return!1}function vx(n,e,t,i,r){var c,o;for(o=t;o<=r;o++)for(c=e;c<=i;c++)if(zw(n,c,o))return!0;return!1}function aDn(n,e,t){var i,r,c,o;for(_n(t),o=!1,c=n.Zc(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),o=!0;return o}function qwe(n,e){var t;return n===e?!0:I(e,83)?(t=u(e,83),eY(jd(n),t.vc())):!1}function dDn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),42),n.re(e,i.dd()))return!0;return!1}function bDn(n,e,t){return n.d[e.p][t.p]||(Rpe(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function X3(n,e){if(!n.ai()&&e==null)throw T(new Hn("The 'no null' constraint is violated"));return e}function V3(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),Q$(n,e==null?null:(_n(e),e)),n.C&&n.yk(null)}function Gwe(n,e){var t;return!n||n==e||!li(e,(G(),v0))?!1:(t=u(k(e,(G(),v0)),10),t!=n)}function mx(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.pl()}}function wDn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n.ql()}}function gDn(n){cMn.call(this,"The given string does not match the expected format for individual spacings.",n)}function Xu(){Xu=N,ws=new nE("ELK",0),n1n=new nE("JSON",1),Zhn=new nE("DOT",2),e1n=new nE("SVG",3)}function d7(){d7=N,AP=new IO(Xh,0),xon=new IO("RADIAL_COMPACTION",1),Fon=new IO("WEDGE_COMPACTION",2)}function af(){af=N,Vin=new fO("CONCURRENT",0),hs=new fO("IDENTITY_FINISH",1),Nb=new fO("UNORDERED",2)}function kx(){kx=N,Crn=(Ij(),OR),Ern=new In(mnn,Crn),OUn=new kt(knn),DUn=new kt(ynn),$Un=new kt(jnn)}function Q3(){Q3=N,Ncn=new j0n,Bcn=new E0n,zWn=new C0n,GWn=new T0n,qWn=new M0n,Lcn=(_n(qWn),new uln)}function J3(){J3=N,hK=new TO("CONSERVATIVE",0),son=new TO("CONSERVATIVE_SOFT",1),qm=new TO("SLOPPY",2)}function vT(){vT=N,Hhn=new pd(15),cne=new tr((Xe(),Ya),Hhn),u9=Ap,Bhn=HZn,Rhn=Ja,Khn=Kg,_hn=KP}function yx(n,e,t){var i,r,c;for(i=new Ct,c=_e(t,0);c.b!=c.d.c;)r=u(Re(c),8),Ke(i,new mr(r));aDn(n,e,i)}function zwe(n){var e,t,i;for(e=0,i=x(ai,q,8,n.b,0,1),t=_e(n,0);t.b!=t.d.c;)i[e++]=u(Re(t),8);return i}function eQ(n){var e;return e=(!n.a&&(n.a=new V(e1,n,9,5)),n.a),e.i!=0?fre(u(D(e,0),678)):null}function Uwe(n,e){var t;return t=Hi(n,e),oO(d$(n,e),0)|Tre(d$(n,t),0)?t:Hi($M,d$(V0(t,63),1))}function Wwe(n,e){var t;t=cn((Bx(),fP))!=null&&e.wg()!=null?K(Y(e.wg()))/K(Y(cn(fP))):1,it(n.b,e,t)}function Xwe(n,e){var t,i;return t=u(n.d.Bc(e),14),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function tQ(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;t0)return d3(e-1,n.a.c.length),h1(n.a,e-1);throw T(new qmn)}function Vwe(n,e,t){if(e<0)throw T(new vr(_Hn+e));ee)throw T(new Hn(BM+n+aKn+e));if(n<0||e>t)throw T(new gG(BM+n+unn+e+rnn+t))}function mDn(n){if(!n.a||!(n.a.i&8))throw T(new Dr("Enumeration class expected for layout option "+n.f))}function fb(n){var e;++n.j,n.i==0?n.g=null:n.idA?n-t>dA:t-n>dA}function Ex(n,e){return!n||e&&!n.j||I(n,124)&&u(n,124).a.b==0?0:n.Re()}function kT(n,e){return!n||e&&!n.k||I(n,124)&&u(n,124).a.a==0?0:n.Se()}function b7(n){return kl(),n<0?n!=-1?new JQ(-1,-n):mR:n<=10?Nin[Ht(n)]:new JQ(1,n)}function rQ(n){throw ox(),T(new L9n("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function CDn(n){H9n(),lE(this),rC(this),this.e=n,NNn(this,n),this.g=n==null?iu:Lr(n),this.a="",this.b=n,this.a=""}function cQ(){this.a=new qgn,this.f=new O6n(this),this.b=new D6n(this),this.i=new $6n(this),this.e=new x6n(this)}function TDn(){rie.call(this,new HX(cb(16))),is(2,W_n),this.b=2,this.a=new KW(null,null,0,null),N9(this.a,this.a)}function s6(){s6=N,nK=new yO("DUMMY_NODE_OVER",0),zsn=new yO("DUMMY_NODE_UNDER",1),lP=new yO("EQUAL",2)}function Cx(){Cx=N,qR=sMn(A(M(c9,1),z,103,0,[(sr(),Ys),So])),GR=sMn(A(M(c9,1),z,103,0,[Yh,Jh]))}function Tx(n){return(J(),cu).Hc(n.j)?K(Y(k(n,(G(),lv)))):qr(A(M(ai,1),q,8,0,[n.i.n,n.n,n.a])).b}function nge(n){var e,t,i,r;for(i=n.b.a,t=i.a.ec().Kc();t.Ob();)e=u(t.Pb(),561),r=new pNn(e,n.e,n.f),W(n.g,r)}function ja(n,e){var t,i,r;i=n.nk(e,null),r=null,e&&(r=(Jp(),t=new cd,t),D3(r,n.r)),i=bf(n,r,i),i&&i.Fi()}function ege(n,e){var t,i;for(i=xu(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.Tf(e.e,i),t=t|G7(n,e,i,!1),i=!i;EV(n)}function uQ(n,e){var t,i,r;return i=!1,t=e.q.d,e.dr&&(Jxn(e.q,r),i=t!=e.q.d)),i}function MDn(n,e){var t,i,r,c,o,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,o=h-r,f=l-c,t=j.Math.sqrt(o*o+f*f),t}function sQ(n,e){var t,i;return i=xT(n),i||(t=(pL(),YFn(e)),i=new xmn(t),me(i.Vk(),n)),i}function w7(n,e){var t,i;return t=u(n.c.Bc(e),14),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function ADn(n,e){var t;for(t=0;t=n.c.b:n.a<=n.c.b))throw T(new ic);return e=n.a,n.a+=n.c.c,++n.b,Q(e)}function rge(n){var e;return e=new uIn(n),F8(n.a,SWn,new Ku(A(M(qk,1),rn,369,0,[e]))),e.d&&W(e.f,e.d),e.f}function Mx(n){var e;return e=new Sz(n.a),Sr(e,n),H(e,(G(),rt),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function cge(n,e,t,i){var r,c;for(c=n.Kc();c.Ob();)r=u(c.Pb(),70),r.n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+t}function uge(n,e,t){var i,r;for(r=e.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),57),_Tn(n,i,t))return!0;return!1}function sge(n){var e,t;for(t=new E(n.r);t.a=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function lge(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function xDn(n){var e,t;if(n!=null)for(t=0;t0&&(t=u(un(n.a,n.a.c.length-1),570),YV(t,e))||W(n.a,new dSn(e))}function gge(n){go();var e,t;e=n.d.c-n.e.c,t=u(n.g,145),Yc(t.b,new _5n(e)),Yc(t.c,new K5n(e)),$i(t.i,new H5n(e))}function BDn(n){var e;return e=new W1,e.a+="VerticalSegment ",rc(e,n.e),e.a+=" ",De(e,Bz(new eO,new E(n.k))),e.a}function pge(n){var e;return e=u(xd(n.c.c,""),229),e||(e=new A2(Qp(Vp(new n2,""),"Other")),Ta(n.c.c,"",e)),e}function o6(n){var e;return n.Db&64?jo(n):(e=new Ns(jo(n)),e.a+=" (name: ",dr(e,n.zb),e.a+=")",e.a)}function aQ(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new wi(n,1,4,r,e),t?t.Ei(i):t=i),t}function Ax(n,e){var t,i,r;for(t=0,r=Gr(n,e).Kc();r.Ob();)i=u(r.Pb(),11),t+=k(i,(G(),Mu))!=null?1:0;return t}function Kw(n,e,t){var i,r,c;for(i=0,c=_e(n,0);c.b!=c.d.c&&(r=K(Y(Re(c))),!(r>t));)r>=e&&++i;return i}function vge(n,e,t){var i,r;return i=new Lh(n.e,3,13,null,(r=e.c,r||(Sn(),Mf)),v1(n,e),!1),t?t.Ei(i):t=i,t}function mge(n,e,t){var i,r;return i=new Lh(n.e,4,13,(r=e.c,r||(Sn(),Mf)),null,v1(n,e),!1),t?t.Ei(i):t=i,t}function dQ(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new wi(n,1,8,r,n.r),t?t.Ei(i):t=i),t}function w1(n,e){var t,i;return t=u(e,676),i=t.vk(),!i&&t.wk(i=I(e,88)?new xkn(n,u(e,26)):new eAn(n,u(e,148))),i}function g7(n,e,t){var i;n.qi(n.i+1),i=n.oi(e,t),e!=n.i&&pc(n.g,e,n.g,e+1,n.i-e),Mt(n.g,e,i),++n.i,n.bi(e,t),n.ci()}function kge(n,e){var t;return e.a&&(t=e.a.a.length,n.a?De(n.a,n.b):n.a=new Ju(n.d),iAn(n.a,e.a,e.d.length,t)),n}function yge(n,e){var t,i,r,c;if(e.vi(n.a),c=u(Rn(n.a,8),1936),c!=null)for(t=c,i=0,r=t.length;it)throw T(new vr(BM+n+unn+e+", size: "+t));if(n>e)throw T(new Hn(BM+n+aKn+e))}function Ms(n,e,t){if(e<0)gY(n,t);else{if(!t.Ij())throw T(new Hn(Al+t.ne()+cm));u(t,66).Nj().Vj(n,n.yh(),e)}}function Cge(n,e,t,i,r,c,o,f){var h;for(h=t;c=i||e=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function zDn(n){var e;return n.Db&64?jo(n):(e=new Ns(jo(n)),e.a+=" (source: ",dr(e,n.d),e.a+=")",e.a)}function Mge(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new wi(n,1,5,r,n.a),t?LJ(t,i):t=i),t}function g1(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new mo(n,1,2,t,e))}function wQ(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new mo(n,1,8,t,e))}function ET(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new mo(n,1,8,t,e))}function p1(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&et(n,new mo(n,1,3,t,e))}function gQ(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&et(n,new mo(n,1,9,t,e))}function h6(n,e){var t;return n.b==-1&&n.a&&(t=n.a.Gj(),n.b=t?n.c.Xg(n.a.aj(),t):yt(n.c.Tg(),n.a)),n.c.Og(n.b,e)}function Q(n){var e,t;return n>-129&&n<128?(e=n+128,t=(qEn(),Cin)[e],!t&&(t=Cin[e]=new vq(n)),t):new vq(n)}function Y3(n){var e,t;return n>-129&&n<128?(e=n+128,t=(VEn(),Sin)[e],!t&&(t=Sin[e]=new kq(n)),t):new kq(n)}function pQ(n){var e,t;return e=n.k,e==(Qn(),Xt)?(t=u(k(n,(G(),nc)),61),t==(J(),Kn)||t==ae):!1}function Age(n,e,t){var i,r,c;return c=(r=w4(n.b,e),r),c&&(i=u(TM(X8(n,c),""),26),i)?NY(n,i,e,t):null}function Sx(n,e,t){var i,r,c;return c=(r=w4(n.b,e),r),c&&(i=u(TM(X8(n,c),""),26),i)?BY(n,i,e,t):null}function UDn(n,e){var t,i;for(i=new ie(n);i.e!=i.i.gc();)if(t=u(oe(i),138),B(e)===B(t))return!0;return!1}function l6(n,e,t){var i;if(i=n.gc(),e>i)throw T(new W0(e,i));if(n.hi()&&n.Hc(t))throw T(new Hn(Tk));n.Xh(e,t)}function Sge(n,e){var t;if(t=Fw(n.i,e),t==null)throw T(new Pf("Node did not exist in input."));return SV(e,t),null}function Pge(n,e){var t;if(t=q7(n,e),I(t,322))return u(t,34);throw T(new Hn(Al+e+"' is not a valid attribute"))}function Ige(n,e,t){var i,r;for(r=I(e,99)&&u(e,18).Bb&Yi?new RO(e,n):new q3(e,n),i=0;ie?1:n==e?n==0?Zt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function Rge(n,e){le(e,"Sort end labels",1),Bt(gt(Hr(new $n(null,new Fn(n.b,16)),new bdn),new wdn),new gdn),ce(e)}function a6(n,e,t){var i,r;return n.ej()?(r=n.fj(),i=FF(n,e,t),n.$i(n.Zi(7,Q(t),i,e,r)),i):FF(n,e,t)}function Px(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.cd(),t=e.Sh(),i=(t&nt)%n.d.length,jde(n,i,hNn(n,i,t,r)))}function Z3(n,e){var t;t=(n.Bb&Co)!=0,e?n.Bb|=Co:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&et(n,new mo(n,1,10,t,e))}function n4(n,e){var t;t=(n.Bb&Sb)!=0,e?n.Bb|=Sb:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&et(n,new mo(n,1,12,t,e))}function e4(n,e){var t;t=(n.Bb&vu)!=0,e?n.Bb|=vu:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&et(n,new mo(n,1,15,t,e))}function t4(n,e){var t;t=(n.Bb&Lb)!=0,e?n.Bb|=Lb:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&et(n,new mo(n,1,11,t,e))}function _ge(n,e){var t;return t=Zt(n.b.c,e.b.c),t!=0||(t=Zt(n.a.a,e.a.a),t!=0)?t:Zt(n.a.b,e.a.b)}function Kge(n,e){var t;if(t=te(n.k,e),t==null)throw T(new Pf("Port did not exist in input."));return SV(e,t),null}function Hge(n){var e,t;for(t=wNn(ts(n)).Kc();t.Ob();)if(e=Te(t.Pb()),O6(n,e))return Qae((C7n(),zne),e);return null}function qge(n,e){var t,i,r,c,o;for(o=Kc(n.e.Tg(),e),c=0,t=u(n.g,119),r=0;r>10)+ok&Ut,e[1]=(n&1023)+56320&Ut,Ks(e,0,e.length)}function TT(n){var e,t;return t=u(k(n,(nn(),ls)),103),t==(sr(),yh)?(e=K(Y(k(n,XS))),e>=1?So:Jh):t}function Uge(n){switch(u(k(n,(nn(),Qh)),218).g){case 1:return new ewn;case 3:return new uwn;default:return new nwn}}function Ea(n){if(n.c)Ea(n.c);else if(n.d)throw T(new Dr("Stream already terminated, can't be modified or used"))}function Dx(n){var e;return n.Db&64?jo(n):(e=new Ns(jo(n)),e.a+=" (identifier: ",dr(e,n.k),e.a+=")",e.a)}function QDn(n,e,t){var i,r;return i=(ld(),r=new Jy,r),VC(i,e),QC(i,t),n&&me((!n.a&&(n.a=new Jt(to,n,5)),n.a),i),i}function $x(n,e,t,i){var r,c;return _n(i),_n(t),r=n.xc(e),c=r==null?t:l7n(u(r,15),u(t,14)),c==null?n.Bc(e):n.zc(e,c),c}function Cn(n){var e,t,i,r;return t=(e=u(Lo((i=n.gm,r=i.f,r==Ie?i:r)),9),new ms(e,u(wo(e,e.length),9),0)),yo(t,n),t}function Wge(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),u7(t,u(un(e,i.p),14)))return i;return null}function Xge(n,e,t){var i;try{Swe(n,e,t)}catch(r){throw r=jt(r),I(r,597)?(i=r,T(new TX(i))):T(r)}return e}function gl(n,e){var t;return $r(n)&&$r(e)&&(t=n-e,sk>1,n.k=t-1>>1}function xx(){HJ();var n,e,t;t=GTe+++Date.now(),n=Ht(j.Math.floor(t*hk))&NM,e=Ht(t-n*inn),this.a=n^1502,this.b=e^cN}function Kh(n){var e,t,i;for(e=new X,i=new E(n.j);i.a34028234663852886e22?xt:e<-34028234663852886e22?Vt:e}function JDn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function YDn(n){var e,t,i,r;for(e=new Djn(n.Hd().gc()),r=0,i=x2(n.Hd().Kc());i.Ob();)t=i.Pb(),fle(e,t,Q(r++));return x5e(e.a)}function n2e(n,e){var t,i,r;for(r=new we,i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),it(r,t.cd(),zbe(n,u(t.dd(),15)));return r}function EQ(n,e){n.n.c.length==0&&W(n.n,new bC(n.s,n.t,n.i)),W(n.b,e),cJ(u(un(n.n,n.n.c.length-1),211),e),oRn(n,e)}function Hw(n){return(n.c!=n.b.b||n.i!=n.g.b)&&(n.a.c=x(Zn,rn,1,0,5,1),Yt(n.a,n.b),Yt(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function Fx(n,e){var t,i,r;for(r=0,i=u(e.Kb(n),20).Kc();i.Ob();)t=u(i.Pb(),17),on(sn(k(t,(G(),yf))))||++r;return r}function e2e(n,e){var t,i,r;i=$w(e),r=K(Y(ab(i,(nn(),Ao)))),t=j.Math.max(0,r/2-.5),k6(e,t,1),W(n,new G7n(e,t))}function As(){As=N,ny=new n8(Xh,0),Dm=new n8("FIRST",1),$l=new n8(uHn,2),$m=new n8("LAST",3),Gb=new n8(sHn,4)}function Hh(){Hh=N,sH=new Qj(z6,0),Ty=new Qj("POLYLINE",1),Tv=new Qj("ORTHOGONAL",2),Pp=new Qj("SPLINES",3)}function MT(){MT=N,Zon=new DO("ASPECT_RATIO_DRIVEN",0),$K=new DO("MAX_SCALE_DRIVEN",1),Yon=new DO("AREA_DRIVEN",2)}function m7(){m7=N,IP=new $O("P1_STRUCTURE",0),OP=new $O("P2_PROCESSING_ORDER",1),DP=new $O("P3_EXECUTION",2)}function AT(){AT=N,AK=new PO("OVERLAP_REMOVAL",0),TK=new PO("COMPACTION",1),MK=new PO("GRAPH_SIZE_CALCULATION",2)}function Gd(n,e){return nf(),ko(jl),j.Math.abs(n-e)<=jl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:gd(isNaN(n),isNaN(e))}function ZDn(n,e){var t,i;for(t=_e(n,0);t.b!=t.d.c;){if(i=R9(Y(Re(t))),i==e)return;if(i>e){w$(t);break}}T8(t,e)}function En(n,e){var t,i,r,c,o;if(t=e.f,Ta(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,o=r.length;ce&&i.ue(n[c-1],n[c])>0;--c)o=n[c],Mt(n,c,n[c-1]),Mt(n,c-1,o)}function Ss(n,e,t,i){if(e<0)HY(n,t,i);else{if(!t.Ij())throw T(new Hn(Al+t.ne()+cm));u(t,66).Nj().Tj(n,n.yh(),e,i)}}function ST(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw T(new Hn("Node "+e+" not part of edge "+n))}function i2e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function n$n(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function CQ(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return bQ(n,e,t,i)}function r2e(n){return n.k!=(Qn(),ti)?!1:T3(new $n(null,new Ed(new re(ue(ni(n).a.Kc(),new Mn)))),new Hbn)}function c2e(n){return n.e==null?n:(!n.c&&(n.c=new XF((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function u2e(n,e){return n.h==uk&&n.m==0&&n.l==0?(e&&(Sl=Bc(0,0,0)),eyn((O3(),vin))):(e&&(Sl=Bc(n.l,n.m,n.h)),Bc(0,0,0))}function Lr(n){var e;return Array.isArray(n)&&n.im===Vg?V1(Du(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function d6(n){var e;this.a=(e=u(n.e&&n.e(),9),new ms(e,u(wo(e,e.length),9),0)),this.b=x(Zn,rn,1,this.a.a.length,5,1)}function s2e(n){var e,t,i;for(this.a=new Sh,i=new E(n);i.a0&&(Me(e-1,n.length),n.charCodeAt(e-1)==58)&&!Lx(n,g9,p9))}function Lx(n,e,t){var i,r;for(i=0,r=n.length;i=r)return e.c+t;return e.c+e.b.gc()}function a2e(n,e){f3();var t,i,r,c;for(i=bPn(n),r=e,P3(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function MQ(n){var e,t,i;for(i=new i1,i.a+="[",e=0,t=n.gc();e0&&this.b>0&&sW(this.c,this.b,this.a)}function PQ(n){Bx(),this.c=sf(A(M(oMe,1),rn,831,0,[LQn])),this.b=new we,this.a=n,it(this.b,fP,1),Yc(NQn,new q6n(this))}function e$n(n,e){var t;return n.d?zu(n.b,e)?u(te(n.b,e),51):(t=e.Kf(),it(n.b,e,t),t):e.Kf()}function IQ(n,e){var t;return B(n)===B(e)?!0:I(e,91)?(t=u(e,91),n.e==t.e&&n.d==t.d&&Yae(n,t.a)):!1}function R2(n){switch(J(),n.g){case 4:return Kn;case 1:return Vn;case 3:return ae;case 2:return Gn;default:return Wr}}function OQ(n,e){switch(e){case 3:return n.f!=0;case 4:return n.g!=0;case 5:return n.i!=0;case 6:return n.j!=0}return IV(n,e)}function v2e(n){switch(n.g){case 0:return new Lgn;case 1:return new Ngn;default:throw T(new Hn(bB+(n.f!=null?n.f:""+n.g)))}}function t$n(n){switch(n.g){case 0:return new Fgn;case 1:return new Bgn;default:throw T(new Hn(IN+(n.f!=null?n.f:""+n.g)))}}function i$n(n){switch(n.g){case 0:return new fG;case 1:return new b9n;default:throw T(new Hn(pA+(n.f!=null?n.f:""+n.g)))}}function m2e(n){switch(n.g){case 1:return new Pgn;case 2:return new kjn;default:throw T(new Hn(bB+(n.f!=null?n.f:""+n.g)))}}function k2e(n){var e,t;if(n.b)return n.b;for(t=mf?null:n.d;t;){if(e=mf?null:t.b,e)return e;t=mf?null:t.d}return t3(),Xin}function y2e(n){var e,t,i;return n.e==0?0:(e=n.d<<5,t=n.a[n.d-1],n.e<0&&(i=dOn(n),i==n.d-1&&(--t,t=t|0)),e-=R7(t),e)}function j2e(n){var e,t,i;return n>5,e=n&31,i=x(be,Le,25,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function C2e(n){return Cx(),qn(),!!(n$n(u(n.a,81).j,u(n.b,103))||u(n.a,81).d.e!=0&&n$n(u(n.a,81).j,u(n.b,103)))}function T2e(n){FC(),u(n.We((Xe(),Bl)),174).Hc((Fu(),VP))&&(u(n.We(tw),174).Fc((Tu(),Ip)),u(n.We(Bl),174).Mc(VP))}function c$n(n,e){var t,i;if(e){for(t=0;t=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function O2e(n,e){le(e,"End label post-processing",1),Bt(gt(Hr(new $n(null,new Fn(n.b,16)),new udn),new sdn),new odn),ce(e)}function D2e(n,e,t){var i,r;return i=K(n.p[e.i.p])+K(n.d[e.i.p])+e.n.b+e.a.b,r=K(n.p[t.i.p])+K(n.d[t.i.p])+t.n.b+t.a.b,r-i}function $2e(n,e,t){var i,r;for(i=ci(t,fr),r=0;fc(i,0)!=0&&r0&&(Me(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function F2e(n){var e;return n==null?null:new el((e=Cc(n,!0),e.length>0&&(Me(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function BQ(n,e){var t;return n.i>0&&(e.lengthn.i&&Mt(e,n.i,null),e}function $c(n,e,t){var i,r,c;return n.ej()?(i=n.i,c=n.fj(),g7(n,i,e),r=n.Zi(3,null,e,i,c),t?t.Ei(r):t=r):g7(n,n.i,e),t}function L2e(n,e,t){var i,r;return i=new Lh(n.e,4,10,(r=e.c,I(r,88)?u(r,26):(Sn(),uo)),null,v1(n,e),!1),t?t.Ei(i):t=i,t}function N2e(n,e,t){var i,r;return i=new Lh(n.e,3,10,null,(r=e.c,I(r,88)?u(r,26):(Sn(),uo)),v1(n,e),!1),t?t.Ei(i):t=i,t}function o$n(n){z0();var e;return e=new mr(u(n.e.We((Xe(),Kg)),8)),n.B.Hc((Fu(),Av))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function f$n(n){db();var e;return(n.q?n.q:(Pn(),Pn(),mh))._b((nn(),y0))?e=u(k(n,y0),197):e=u(k(qi(n),Nm),197),e}function ab(n,e){var t,i;return i=null,li(n,(nn(),sP))&&(t=u(k(n,sP),94),t.Xe(e)&&(i=t.We(e))),i==null&&(i=k(qi(n),e)),i}function h$n(n,e){var t,i,r;return I(e,42)?(t=u(e,42),i=t.cd(),r=hb(n.Rc(),i),Ff(r,t.dd())&&(r!=null||n.Rc()._b(i))):!1}function _x(n,e){var t,i,r;return n.f>0?(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=hNn(n,r,i,e),t!=-1):!1}function Ho(n,e){var t,i,r;return n.f>0&&(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=jY(n,r,i,e),t)?t.dd():null}function k7(n,e){var t,i,r,c;for(c=Kc(n.e.Tg(),e),t=u(n.g,119),r=0;r1?uf(Ih(e.a[1],32),ci(e.a[0],fr)):ci(e.a[0],fr),Dd(Ni(e.e,t))))}function y7(n,e){var t;return $r(n)&&$r(e)&&(t=n%e,sk>5,e&=31,r=n.d+t+(e==0?0:1),i=x(be,Le,25,r,15,1),Bve(i,n.a,t,e),c=new Pw(n.e,r,i),z5(c),c}function _Q(n,e,t){var i,r;i=u(kc(Iv,e),117),r=u(kc(E9,e),117),t?(kr(Iv,n,i),kr(E9,n,r)):(kr(E9,n,i),kr(Iv,n,r))}function p$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function v$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function H2e(n,e,t,i){var r,c,o;return r=!1,EEe(n.f,t,i)&&(dpe(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],o=c[i],c[i]=c[t],c[t]=o,r=!0),r}function KQ(n,e,t,i,r){var c,o,f;for(o=r;e.b!=e.c;)c=u(j2(e),10),f=u(Gr(c,i).Xb(0),11),n.d[f.p]=o++,t.c[t.c.length]=f;return o}function HQ(n,e,t){var i,r,c,o,f;return o=n.k,f=e.k,i=t[o.g][f.g],r=Y(ab(n,i)),c=Y(ab(e,i)),j.Math.max((_n(r),r),(_n(c),c))}function q2e(n,e,t){var i,r,c,o;for(i=t/n.c.length,r=0,o=new E(n);o.a2e3&&(wzn=n,GA=j.setTimeout(Qie,10))),qA++==0?(C0e((bG(),win)),!0):!1}function z2e(n,e){var t,i,r;for(i=new re(ue(ni(n).a.Kc(),new Mn));Se(i);)if(t=u(ve(i),17),r=t.d.i,r.c==e)return!1;return!0}function qQ(n,e){var t,i;if(I(e,245)){i=u(e,245);try{return t=n.vd(i),t==0}catch(r){if(r=jt(r),!I(r,205))throw T(r)}}return!1}function U2e(){return Error.stackTraceLimit>0?(j.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function W2e(n,e){return nf(),nf(),ko(jl),(j.Math.abs(n-e)<=jl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:gd(isNaN(n),isNaN(e)))>0}function GQ(n,e){return nf(),nf(),ko(jl),(j.Math.abs(n-e)<=jl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:gd(isNaN(n),isNaN(e)))<0}function y$n(n,e){return nf(),nf(),ko(jl),(j.Math.abs(n-e)<=jl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:gd(isNaN(n),isNaN(e)))<=0}function Hx(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];tnN)return t.fh();if(i=t.Zg(),i||t==n)break}return i}function zQ(n){return gC(),I(n,156)?u(te(Ny,Azn),288).vg(n):zu(Ny,Du(n))?u(te(Ny,Du(n)),288).vg(n):null}function V2e(n){if(FT(R4,n))return qn(),U4;if(FT(MB,n))return qn(),Ka;throw T(new Hn("Expecting true or false"))}function Q2e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw T(new Hn("Input edge is not connected to the input port."))}function A$n(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+j.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function P$n(n,e){var t;return B(e)===B(n)?!0:!I(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function J2e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,cjn(t=c?(Qwe(n,e),-1):(Jwe(n,e),1)}function Y2e(n,e){var t,i;for(t=(Me(e,n.length),n.charCodeAt(e)),i=e+1;ie.e?1:n.fe.f?1:mt(n)-mt(e)}function FT(n,e){return _n(n),e==null?!1:An(n,e)?!0:n.length==e.length&&An(n.toLowerCase(),e.toLowerCase())}function spe(n,e){var t,i,r,c;for(i=0,r=e.gc();i0&&fc(n,128)<0?(e=ge(n)+128,t=(XEn(),Tin)[e],!t&&(t=Tin[e]=new mq(n)),t):new mq(n)}function O$n(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Te(Ho((!t.b&&(t.b=new qu((Sn(),nr),ec,t)),t.b),We)),i!=null)?i:e.ne()}function ope(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Te(Ho((!t.b&&(t.b=new qu((Sn(),nr),ec,t)),t.b),We)),i!=null)?i:e.ne()}function fpe(n,e){o$();var t,i;for(i=new re(ue(Kh(n).a.Kc(),new Mn));Se(i);)if(t=u(ve(i),17),t.d.i==e||t.c.i==e)return t;return null}function XQ(n,e,t){this.c=n,this.f=new X,this.e=new Li,this.j=new iW,this.n=new iW,this.b=e,this.g=new ks(e.c,e.d,e.b,e.a),this.a=t}function qx(n){var e,t,i,r;for(this.a=new Sh,this.d=new fi,this.e=0,t=n,i=0,r=t.length;i0):!1}function x$n(n){var e;B(hn(n,(Xe(),Bg)))===B((_h(),zP))&&(At(n)?(e=u(hn(At(n),Bg),334),gr(n,Bg,e)):gr(n,Bg,s9))}function dpe(n,e,t){var i,r;CF(n.e,e,t,(J(),Gn)),CF(n.i,e,t,Vn),n.a&&(r=u(k(e,(G(),rt)),11),i=u(k(t,rt),11),b$(n.g,r,i))}function F$n(n,e,t){var i,r,c;i=e.c.p,c=e.p,n.b[i][c]=new YTn(n,e),t&&(n.a[i][c]=new c6n(e),r=u(k(e,(G(),v0)),10),r&&Tn(n.d,r,e))}function L$n(n,e){var t,i,r;if(W(rS,n),e.Fc(n),t=u(te(FR,n),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),33),xr(rS,i,0)!=-1||L$n(i,e)}function bpe(n,e,t){var i;(xzn?(k2e(n),!0):Fzn||Nzn?(t3(),!0):Lzn&&(t3(),!1))&&(i=new hEn(e),i.b=t,p5e(n,i))}function Gx(n,e){var t;t=!n.A.Hc((Vu(),ed))||n.q==(Ai(),Pc),n.u.Hc((Tu(),n1))?t?LCe(n,e):a_n(n,e):n.u.Hc(Hl)&&(t?eCe(n,e):M_n(n,e))}function c4(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,I(i,97)?u(i,97).Jg():null),fme(e,t))){_2(n.a,4,t);return}_2(n.a,4,u(e,126))}function N$n(n,e,t){return new ks(j.Math.min(n.a,e.a)-t/2,j.Math.min(n.b,e.b)-t/2,j.Math.abs(n.a-e.a)+t,j.Math.abs(n.b-e.b)+t)}function wpe(n,e){var t,i;return t=Uc(n.a.c.p,e.a.c.p),t!=0?t:(i=Uc(n.a.d.i.p,e.a.d.i.p),i!=0?i:Uc(e.a.d.p,n.a.d.p))}function gpe(n,e,t){var i,r,c,o;return c=e.j,o=t.j,c!=o?c.g-o.g:(i=n.f[e.p],r=n.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:Zt(i,r))}function B$n(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new E(Hw(e));r.a=r)return r;for(e=e>0?e:0;ei&&Mt(e,i,null),e}function _$n(n,e){var t,i;for(i=n.a.length,e.lengthi&&Mt(e,i,null),e}function Ta(n,e,t){var i,r,c;return r=u(te(n.e,e),387),r?(c=vU(r,t),Oyn(n,r),c):(i=new zU(n,e,t),it(n.e,e,i),iMn(i),null)}function mpe(n){var e;if(n==null)return null;if(e=d9e(Cc(n,!0)),e==null)throw T(new YI("Invalid hexBinary value: '"+n+"'"));return e}function E7(n){return kl(),fc(n,0)<0?fc(n,-1)!=0?new $J(-1,I3(n)):mR:fc(n,10)<=0?Nin[ge(n)]:new $J(1,n)}function Ux(){return OM(),A(M(yUn,1),z,159,0,[mUn,vUn,kUn,hUn,fUn,lUn,bUn,dUn,aUn,pUn,gUn,wUn,sUn,uUn,oUn,rUn,iUn,cUn,eUn,nUn,tUn,SR])}function K$n(n){var e;this.d=new X,this.j=new Li,this.g=new Li,e=n.g.b,this.f=u(k(qi(e),(nn(),ls)),103),this.e=K(Y(BT(e,Yb)))}function H$n(n){this.b=new X,this.e=new X,this.d=n,this.a=!Jv(gt(new $n(null,new Ed(new of(n.b))),new Bv(new qbn))).sd((ia(),Q4))}function qo(){qo=N,Xn=new i8("PARENTS",0),pi=new i8("NODES",1),nh=new i8("EDGES",2),Qa=new i8("PORTS",3),D1=new i8("LABELS",4)}function qw(){qw=N,_l=new c8("DISTRIBUTED",0),Sy=new c8("JUSTIFIED",1),Ghn=new c8("BEGIN",2),o9=new c8(O4,3),zhn=new c8("END",4)}function kpe(n){var e;switch(e=n.yi(null),e){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function Wx(n){switch(n.g){case 1:return sr(),Yh;case 4:return sr(),Ys;case 2:return sr(),So;case 3:return sr(),Jh}return sr(),yh}function ype(n,e,t){var i;switch(i=t.q.getFullYear()-El+El,i<0&&(i=-i),e){case 1:n.a+=i;break;case 2:fh(n,i%100,2);break;default:fh(n,i,e)}}function _e(n,e){var t,i;if(nb(e,n.b),e>=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=64&&e<128&&(r=uf(r,Ih(1,e-64)));return r}function BT(n,e){var t,i;return i=null,li(n,(Xe(),Sp))&&(t=u(k(n,Sp),94),t.Xe(e)&&(i=t.We(e))),i==null&&qi(n)&&(i=k(qi(n),e)),i}function z$n(n,e){var t,i,r;r=e.d.i,i=r.k,!(i==(Qn(),ti)||i==kf)&&(t=new re(ue(ni(r).a.Kc(),new Mn)),Se(t)&&it(n.k,e,u(ve(t),17)))}function Xx(n,e){var t,i,r;return i=On(n.Tg(),e),t=e-n.Ah(),t<0?(r=n.Yg(i),r>=0?n.lh(r):xF(n,i)):t<0?xF(n,i):u(i,66).Nj().Sj(n,n.yh(),t)}function cn(n){var e;if(I(n.a,4)){if(e=zQ(n.a),e==null)throw T(new Dr(HHn+n.b+"'. "+KHn+(Ph(By),By.k)+Ttn));return e}else return n.a}function Cpe(n){var e;if(n==null)return null;if(e=GCe(Cc(n,!0)),e==null)throw T(new YI("Invalid base64Binary value: '"+n+"'"));return e}function oe(n){var e;try{return e=n.i.Xb(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=jt(t),I(t,73)?(n.mj(),T(new ic)):T(t)}}function Vx(n){var e;try{return e=n.c.ki(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=jt(t),I(t,73)?(n.mj(),T(new ic)):T(t)}}function g6(){g6=N,Arn=(Xe(),Ehn),$R=ehn,xUn=Mp,Mrn=Ya,BUn=(QT(),crn),NUn=irn,RUn=srn,LUn=trn,FUn=(kx(),Ern),DR=OUn,Trn=DUn,iS=$Un}function RT(n){switch(xG(),this.c=new X,this.d=n,n.g){case 0:case 2:this.a=HW(zrn),this.b=xt;break;case 3:case 1:this.a=zrn,this.b=Vt}}function U$n(n,e,t){var i,r;if(n.c)Zc(n.c,n.c.i+e),nu(n.c,n.c.j+t);else for(r=new E(n.b);r.a0&&(W(n.b,new MEn(e.a,t)),i=e.a.length,0i&&(e.a+=Iyn(x(Fs,_f,25,-i,15,1))))}function W$n(n,e){var t,i,r;for(t=n.o,r=u(u(ct(n.r,e),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.e.a=A3e(i,t.a),i.e.b=t.b*K(Y(i.b.We(nS)))}function Mpe(n,e){var t,i,r,c;return r=n.k,t=K(Y(k(n,(G(),m0)))),c=e.k,i=K(Y(k(e,m0))),c!=(Qn(),Xt)?-1:r!=Xt?1:t==i?0:t=0?n.hh(e,t,i):(n.eh()&&(i=(r=n.Vg(),r>=0?n.Qg(i):n.eh().ih(n,-1-r,null,i))),n.Sg(e,t,i))}function QQ(n,e){switch(e){case 7:!n.e&&(n.e=new xn(di,n,7,4)),de(n.e);return;case 8:!n.d&&(n.d=new xn(di,n,8,5)),de(n.d);return}LQ(n,e)}function Go(n,e){var t;t=n.Zc(e);try{return t.Pb()}catch(i){throw i=jt(i),I(i,109)?T(new vr("Can't get element "+e)):T(i)}}function JQ(n,e){this.e=n,e=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function H2(){H2=N,Nk=new Hj(_M,0),Lk=new Hj(bN,1),Bk=new Hj(wN,2),Rk=new Hj(gN,3),Nk.a=!1,Lk.a=!0,Bk.a=!1,Rk.a=!0}function p6(){p6=N,_k=new Kj(_M,0),eS=new Kj(bN,1),tS=new Kj(wN,2),Kk=new Kj(gN,3),_k.a=!1,eS.a=!0,tS.a=!1,Kk.a=!0}function Ope(n){var e;e=n.a;do e=u(ve(new re(ue(Fr(e).a.Kc(),new Mn))),17).c.i,e.k==(Qn(),gi)&&n.b.Fc(e);while(e.k==(Qn(),gi));n.b=ga(n.b)}function Dpe(n){var e,t,i;for(i=n.c.a,n.p=(pe(i),new au(i)),t=new E(i);t.at.b)return!0}return!1}function Qx(n,e){return mi(n)?!!ozn[e]:n.hm?!!n.hm[e]:H0(n)?!!szn[e]:K0(n)?!!uzn[e]:!1}function gr(n,e,t){return t==null?(!n.o&&(n.o=new Wu((xc(),Gl),A0,n,0)),$T(n.o,e)):(!n.o&&(n.o=new Wu((xc(),Gl),A0,n,0)),JT(n.o,e,t)),n}function Lpe(n,e,t,i){var r,c;c=e.Xe((Xe(),_g))?u(e.We(_g),21):n.j,r=Tge(c),r!=(OM(),SR)&&(t&&!UQ(r)||tY(b9e(n,r,i),e))}function KT(n,e,t,i){var r,c,o;return c=On(n.Tg(),e),r=e-n.Ah(),r<0?(o=n.Yg(c),o>=0?n._g(o,t,!0):Jd(n,c,t)):u(c,66).Nj().Pj(n,n.yh(),r,t,i)}function Npe(n,e,t,i){var r,c,o;t.mh(e)&&(er(),H$(e)?(r=u(t.ah(e),153),spe(n,r)):(c=(o=e,o?u(i,49).xh(o):null),c&&Rte(t.ah(e),c)))}function Bpe(n){switch(n.g){case 1:return Kd(),Fk;case 3:return Kd(),xk;case 2:return Kd(),IR;case 4:return Kd(),PR;default:return null}}function YQ(n){switch(typeof n){case ML:return m1(n);case XZ:return Ht(n);case V2:return qn(),n?1231:1237;default:return n==null?0:vd(n)}}function Rpe(n,e,t){if(n.e)switch(n.b){case 1:b1e(n.c,e,t);break;case 0:w1e(n.c,e,t)}else FAn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function Y$n(n){var e,t;if(n==null)return null;for(t=x(kh,q,193,n.length,0,2),e=0;e=0)return r;if(n.Fk()){for(i=0;i=r)throw T(new W0(e,r));if(n.hi()&&(i=n.Xc(t),i>=0&&i!=e))throw T(new Hn(Tk));return n.mi(e,t)}function ZQ(n,e){if(this.a=u(pe(n),245),this.b=u(pe(e),245),n.vd(e)>0||n==(UI(),oR)||e==(zI(),fR))throw T(new Hn("Invalid range: "+OAn(n,e)))}function Z$n(n){var e,t;for(this.b=new X,this.c=n,this.a=!1,t=new E(n.a);t.a0),(e&-e)==e)return Ht(e*xu(n,31)*4656612873077393e-25);do t=xu(n,31),i=t%e;while(t-i+(e-1)<0);return Ht(i)}function m1(n){lEn();var e,t,i;return t=":"+n,i=JA[t],i!=null?Ht((_n(i),i)):(i=Qin[t],e=i==null?O8e(n):Ht((_n(i),i)),u1e(),JA[t]=e,e)}function exn(n,e,t){le(t,"Compound graph preprocessor",1),n.a=new Id,s_n(n,e,null),vje(n,e),n8e(n),H(e,(G(),wun),n.a),n.a=null,Eu(n.b),ce(t)}function Hpe(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function qpe(n){var e,t,i;for(i=u(ct(n.a,(Vw(),$S)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=aJ(t),w3(n,t,e[0],(_d(),b0),0),w3(n,t,e[1],w0,1)}function Gpe(n){var e,t,i;for(i=u(ct(n.a,(Vw(),xS)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=aJ(t),w3(n,t,e[0],(_d(),b0),0),w3(n,t,e[1],w0,1)}function Jx(n){switch(n.g){case 0:return null;case 1:return new eOn;case 2:return new hG;default:throw T(new Hn(bB+(n.f!=null?n.f:""+n.g)))}}function C7(n,e,t){var i,r;for(awe(n,e-n.s,t-n.t),r=new E(n.n);r.a1&&(c=Kpe(n,e)),c}function Yx(n){var e;return n.f&&n.f.kh()&&(e=u(n.f,49),n.f=u(wl(n,e),82),n.f!=e&&n.Db&4&&!(n.Db&1)&&et(n,new wi(n,9,8,e,n.f))),n.f}function Zx(n){var e;return n.i&&n.i.kh()&&(e=u(n.i,49),n.i=u(wl(n,e),82),n.i!=e&&n.Db&4&&!(n.Db&1)&&et(n,new wi(n,9,7,e,n.i))),n.i}function ir(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(wl(n,e),18),n.b!=e&&n.Db&4&&!(n.Db&1)&&et(n,new wi(n,9,21,e,n.b))),n.b}function GT(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Sh(),s8e(n,n.f+1),r=(i&nt)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.uj()),t.Fc(e),++n.f)}function tJ(n,e,t){var i;return e.Kj()?!1:e.Zj()!=-2?(i=e.zj(),i==null?t==null:tt(i,t)):e.Hj()==n.e.Tg()&&t==null}function zT(){var n;is(16,J_n),n=UIn(16),this.b=x(lR,rk,317,n,0,1),this.c=x(lR,rk,317,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function qh(n){kU.call(this),this.k=(Qn(),ti),this.j=(is(6,Ab),new Oc(6)),this.b=(is(2,Ab),new Oc(2)),this.d=new _I,this.f=new eG,this.a=n}function Upe(n){var e,t;n.c.length<=1||(e=ZNn(n,(J(),ae)),KFn(n,u(e.a,19).a,u(e.b,19).a),t=ZNn(n,Gn),KFn(n,u(t.a,19).a,u(t.b,19).a))}function v6(){v6=N,Wsn=new Z9("SIMPLE",0),iK=new Z9(DN,1),rK=new Z9("LINEAR_SEGMENTS",2),_m=new Z9("BRANDES_KOEPF",3),Km=new Z9(EHn,4)}function iJ(n,e,t){v2(u(k(e,(nn(),Lt)),98))||(JX(n,e,k1(e,t)),JX(n,e,k1(e,(J(),ae))),JX(n,e,k1(e,Kn)),Pn(),bi(e.j,new i6n(n)))}function txn(n,e,t,i){var r,c,o;for(r=u(ct(i?n.a:n.b,e),21),o=r.Kc();o.Ob();)if(c=u(o.Pb(),33),wM(n,t,c))return!0;return!1}function nF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(oe(t),87),e.e||(!e.d&&(e.d=new Jt(ar,e,1)),e.d).i!=0)return!0;return!1}function eF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(oe(t),87),e.e||(!e.d&&(e.d=new Jt(ar,e,1)),e.d).i!=0)return!0;return!1}function Wpe(n){var e,t,i;for(e=0,i=new E(n.c.a);i.a102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function rF(n,e){if(n==null)throw T(new u2("null key in entry: null="+e));if(e==null)throw T(new u2("null value in entry: "+n+"=null"))}function Xpe(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(B(t)===B(i)||t!=null&&tt(t,i))))return!1;return!e.Ob()}function rxn(n,e){var t;return t=A(M(ji,1),pr,25,15,[Ex(n.a[0],e),Ex(n.a[1],e),Ex(n.a[2],e)]),n.d&&(t[0]=j.Math.max(t[0],t[2]),t[2]=t[0]),t}function cxn(n,e){var t;return t=A(M(ji,1),pr,25,15,[kT(n.a[0],e),kT(n.a[1],e),kT(n.a[2],e)]),n.d&&(t[0]=j.Math.max(t[0],t[2]),t[2]=t[0]),t}function Aa(){Aa=N,a_=new Y9("GREEDY",0),Ucn=new Y9(fHn,1),d_=new Y9(DN,2),Am=new Y9("MODEL_ORDER",3),Mm=new Y9("GREEDY_MODEL_ORDER",4)}function uxn(n,e){var t,i,r;for(n.b[e.g]=1,i=_e(e.d,0);i.b!=i.d.c;)t=u(Re(i),188),r=t.c,n.b[r.g]==1?Ke(n.a,t):n.b[r.g]==2?n.b[r.g]=1:uxn(n,r)}function Vpe(n,e){var t,i,r;for(r=new Oc(e.gc()),i=e.Kc();i.Ob();)t=u(i.Pb(),286),t.c==t.f?a4(n,t,t.c):W5e(n,t)||(r.c[r.c.length]=t);return r}function Qpe(n,e,t){var i,r,c,o,f;for(f=n.r+e,n.r+=e,n.d+=t,i=t/n.n.c.length,r=0,o=new E(n.n);o.ac&&Mt(e,c,null),e}function h3e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=o,o+=f*(h+i)}function bxn(n){var e,t,i;for(i=n.f,n.n=x(ji,pr,25,i,15,1),n.d=x(ji,pr,25,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function p3e(n,e){var t,i,r,c,o;for(i=0,r=0,t=0,o=new E(e);o.a0?n.g:0),++t;n.c=r,n.d=i}function mxn(n,e){var t;return t=A(M(ji,1),pr,25,15,[eJ(n,(Ko(),Yr),e),eJ(n,Lc,e),eJ(n,Zr,e)]),n.f&&(t[0]=j.Math.max(t[0],t[2]),t[2]=t[0]),t}function v3e(n,e,t){var i;try{vM(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=jt(r),I(r,73)?(i=r,T(new vr(i.g+HM+e+Ji+t+")."))):T(r)}}function m3e(n,e,t){var i;try{vM(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=jt(r),I(r,73)?(i=r,T(new vr(i.g+HM+e+Ji+t+")."))):T(r)}}function kxn(n){var e;li(n,(nn(),k0))&&(e=u(k(n,k0),21),e.Hc((kb(),Po))?(e.Mc(Po),e.Fc(Io)):e.Hc(Io)&&(e.Mc(Io),e.Fc(Po)))}function yxn(n){var e;li(n,(nn(),k0))&&(e=u(k(n,k0),21),e.Hc((kb(),Do))?(e.Mc(Do),e.Fc(no)):e.Hc(no)&&(e.Mc(no),e.Fc(Do)))}function k3e(n,e,t){le(t,"Self-Loop ordering",1),Bt(Xc(gt(gt(Hr(new $n(null,new Fn(e.b,16)),new P0n),new I0n),new O0n),new D0n),new O5n(n)),ce(t)}function M7(n,e,t,i){var r,c;for(r=e;r0&&(r.b+=e),r}function XT(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),37),I6(t,0,r.b),r.b+=t.f.b+e,r.a=j.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function Exn(n){var e,t,i;for(i=nt,t=new E(n.a);t.a>16==6?n.Cb.ih(n,5,Qo,e):(i=ir(u(On((t=u(Rn(n,16),26),t||n.zh()),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function T3e(n){y3();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+` +`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` +`)}return[]}function M3e(n){var e;return e=(_In(),kzn),e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function Mxn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=qV(j.Math.max(8,i))<<1,n.b!=0?(e=wo(n.a,t),XIn(n,e,i),n.a=e,n.b=0):Wmn(n.a,t),n.c=i)}function A3e(n,e){var t;return t=n.b,t.Xe((Xe(),Bu))?t.Hf()==(J(),Gn)?-t.rf().a-K(Y(t.We(Bu))):e+K(Y(t.We(Bu))):t.Hf()==(J(),Gn)?-t.rf().a:e}function A7(n){var e;return n.b.c.length!=0&&u(un(n.b,0),70).a?u(un(n.b,0),70).a:(e=QD(n),e??""+(n.c?xr(n.c.a,n,0):-1))}function VT(n){var e;return n.f.c.length!=0&&u(un(n.f,0),70).a?u(un(n.f,0),70).a:(e=QD(n),e??""+(n.i?xr(n.i.j,n,0):-1))}function S3e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t0?n.c:0),r=j.Math.max(r,e.d),++i;n.e=c,n.b=r}function I3e(n){var e,t;if(!n.b)for(n.b=jC(u(n.f,118).Ag().i),t=new ie(u(n.f,118).Ag());t.e!=t.i.gc();)e=u(oe(t),137),W(n.b,new JI(e));return n.b}function O3e(n,e){var t,i,r;if(e.dc())return f3(),f3(),Ry;for(t=new Pjn(n,e.gc()),r=new ie(n);r.e!=r.i.gc();)i=oe(r),e.Hc(i)&&me(t,i);return t}function hJ(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Wu((xc(),Gl),A0,n,0)),n.o):(!n.o&&(n.o=new Wu((xc(),Gl),A0,n,0)),K8(n.o)):KT(n,e,t,i)}function aF(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e>22),r+=i>>22,r<0)?!1:(n.l=t&Lu,n.m=i&Lu,n.h=r&Wh,!0)}function F3e(n,e,t,i,r,c,o){var f,h;return!(e.Ae()&&(h=n.a.ue(t,i),h<0||!r&&h==0)||e.Be()&&(f=n.a.ue(t,c),f>0||!o&&f==0))}function L3e(n,e){Q3();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return Fx(e,Bcn)-Fx(n,Bcn);case 4:return Fx(n,Ncn)-Fx(e,Ncn)}return 0}function N3e(n){switch(n.g){case 0:return w_;case 1:return g_;case 2:return p_;case 3:return v_;case 4:return NS;case 5:return m_;default:return null}}function Cr(n,e,t){var i,r;return i=(r=new qI,ja(r,e),Dc(r,t),me((!n.c&&(n.c=new V(S0,n,12,10)),n.c),r),r),d1(i,0),ob(i,1),p1(i,!0),g1(i,!0),i}function q2(n,e){var t,i;if(e>=n.i)throw T(new BO(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&pc(n.g,e+1,n.g,e,i),Mt(n.g,--n.i,null),n.fi(e,t),n.ci(),t}function Axn(n,e){var t,i;return n.Db>>16==17?n.Cb.ih(n,21,io,e):(i=ir(u(On((t=u(Rn(n,16),26),t||n.zh()),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function B3e(n){var e,t,i,r;for(Pn(),bi(n.c,n.a),r=new E(n.c);r.at.a.c.length))throw T(new Hn("index must be >= 0 and <= layer node count"));n.c&&Qc(n.c.a,n),n.c=t,t&&X0(t.a,e,n)}function Dxn(n,e){var t,i,r;for(i=new re(ue(Kh(n).a.Kc(),new Mn));Se(i);)return t=u(ve(i),17),r=u(e.Kb(t),10),new tj(pe(r.n.b+r.o.b/2));return qv(),qv(),sR}function $xn(n,e){this.c=new we,this.a=n,this.b=e,this.d=u(k(n,(G(),Ig)),304),B(k(n,(nn(),Esn)))===B((z8(),BS))?this.e=new h9n:this.e=new f9n}function G3e(n,e){var t,i,r,c;for(c=0,i=new E(n);i.a>16==6?n.Cb.ih(n,6,di,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(xc(),JP)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function gJ(n,e){var t,i;return n.Db>>16==7?n.Cb.ih(n,1,xy,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(xc(),i1n)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function pJ(n,e){var t,i;return n.Db>>16==9?n.Cb.ih(n,9,Pt,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(xc(),c1n)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function Fxn(n,e){var t,i;return n.Db>>16==5?n.Cb.ih(n,9,uI,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),L1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function vJ(n,e){var t,i;return n.Db>>16==3?n.Cb.ih(n,0,Ly,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),F1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function Lxn(n,e){var t,i;return n.Db>>16==7?n.Cb.ih(n,6,Qo,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),B1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function Nxn(){this.a=new q2n,this.g=new zT,this.j=new zT,this.b=new we,this.d=new zT,this.i=new zT,this.k=new we,this.c=new we,this.e=new we,this.f=new we}function X3e(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;rnN)return s4(n,i);if(i==n)return!0}}return!1}function Q3e(n){switch(gE(),n.q.g){case 5:yLn(n,(J(),Kn)),yLn(n,ae);break;case 4:gNn(n,(J(),Kn)),gNn(n,ae);break;default:g_n(n,(J(),Kn)),g_n(n,ae)}}function J3e(n){switch(gE(),n.q.g){case 5:LLn(n,(J(),Vn)),LLn(n,Gn);break;case 4:W$n(n,(J(),Vn)),W$n(n,Gn);break;default:p_n(n,(J(),Vn)),p_n(n,Gn)}}function Y3e(n){var e,t;e=u(k(n,(zo(),eWn)),19),e?(t=e.a,t==0?H(n,(ll(),oS),new xx):H(n,(ll(),oS),new MC(t))):H(n,(ll(),oS),new MC(1))}function Z3e(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function n4e(n,e){switch(n.g){case 0:return e==(As(),$l)?SS:PS;case 1:return e==(As(),$l)?SS:Uk;case 2:return e==(As(),$l)?Uk:PS;default:return Uk}}function P7(n,e){var t,i,r;for(Qc(n.a,e),n.e-=e.r+(n.a.c.length==0?0:n.c),r=rtn,i=new E(n.a);i.a>16==3?n.Cb.ih(n,12,Pt,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(xc(),t1n)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function kJ(n,e){var t,i;return n.Db>>16==11?n.Cb.ih(n,10,Pt,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(xc(),r1n)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function Bxn(n,e){var t,i;return n.Db>>16==10?n.Cb.ih(n,11,io,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),N1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function Rxn(n,e){var t,i;return n.Db>>16==10?n.Cb.ih(n,12,ro,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),fw)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function Hs(n){var e;return!(n.Bb&1)&&n.r&&n.r.kh()&&(e=u(n.r,49),n.r=u(wl(n,e),138),n.r!=e&&n.Db&4&&!(n.Db&1)&&et(n,new wi(n,9,8,e,n.r))),n.r}function bF(n,e,t){var i;return i=A(M(ji,1),pr,25,15,[zJ(n,(Ko(),Yr),e,t),zJ(n,Lc,e,t),zJ(n,Zr,e,t)]),n.f&&(i[0]=j.Math.max(i[0],i[2]),i[2]=i[0]),i}function e4e(n,e){var t,i,r;if(r=Vpe(n,e),r.c.length!=0)for(bi(r,new e0n),t=r.c.length,i=0;i>19,l=e.h>>19,h!=l?l-h:(r=n.h,f=e.h,r!=f?r-f:(i=n.m,o=e.m,i!=o?i-o:(t=n.l,c=e.l,t-c)))}function QT(){QT=N,orn=(gM(),MR),srn=new In(fnn,orn),urn=(HC(),TR),crn=new In(hnn,urn),rrn=(LT(),CR),irn=new In(lnn,rrn),trn=new In(ann,(qn(),!0))}function k6(n,e,t){var i,r;i=e*t,I(n.g,145)?(r=P2(n),r.f.d?r.f.a||(n.d.a+=i+gf):(n.d.d-=i+gf,n.d.a+=i+gf)):I(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function _xn(n,e,t){var i,r,c,o,f;for(r=n[t.g],f=new E(e.d);f.a0?n.g:0),++t;e.b=i,e.e=r}function Kxn(n){var e,t,i;if(i=n.b,f7n(n.i,i.length)){for(t=i.length*2,n.b=x(lR,rk,317,t,0,1),n.c=x(lR,rk,317,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)L7(n,e,e);++n.g}}function f4e(n,e,t,i){var r,c,o,f;for(r=0;ro&&(f=o/i),r>c&&(h=c/r),Df(n,j.Math.min(f,h)),n}function l4e(){jM();var n,e;try{if(e=u(OJ((J1(),co),K4),2014),e)return e}catch(t){if(t=jt(t),I(t,102))n=t,vW((je(),n));else throw T(t)}return new R2n}function a4e(){DPn();var n,e;try{if(e=u(OJ((J1(),co),Ra),2024),e)return e}catch(t){if(t=jt(t),I(t,102))n=t,vW((je(),n));else throw T(t)}return new r3n}function d4e(){jM();var n,e;try{if(e=u(OJ((J1(),co),Xs),1941),e)return e}catch(t){if(t=jt(t),I(t,102))n=t,vW((je(),n));else throw T(t)}return new lpn}function b4e(n,e,t){var i,r;return r=n.e,n.e=e,n.Db&4&&!(n.Db&1)&&(i=new wi(n,1,4,r,e),t?t.Ei(i):t=i),r!=e&&(e?t=E4(n,fM(n,e),t):t=E4(n,n.a,t)),t}function Hxn(){Sj.call(this),this.e=-1,this.a=!1,this.p=Bi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Bi}function w4e(n,e){var t,i,r;if(i=n.b.d.d,n.a||(i+=n.b.d.a),r=e.b.d.d,e.a||(r+=e.b.d.a),t=Zt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function g4e(n,e){var t,i,r;if(i=n.b.b.d,n.a||(i+=n.b.b.a),r=e.b.b.d,e.a||(r+=e.b.b.a),t=Zt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function p4e(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),t=Zt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function jJ(){jJ=N,wWn=ju(Ze(Ze(Ze(new hi,(Qi(),Mc),(rr(),Ecn)),Mc,Ccn),Ir,Tcn),Ir,acn),pWn=Ze(Ze(new hi,Mc,ccn),Mc,dcn),gWn=ju(new hi,Ir,wcn)}function v4e(n){var e,t,i,r,c;for(e=u(k(n,(G(),Om)),83),c=n.n,i=e.Cc().Kc();i.Ob();)t=u(i.Pb(),306),r=t.i,r.c+=c.a,r.d+=c.b,t.c?rBn(t):cBn(t);H(n,Om,null)}function m4e(n,e,t){var i,r;switch(r=n.b,i=r.d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function k4e(n){var e,t,i,r,c;if(i=0,r=$4,n.b)for(e=0;e<360;e++)t=e*.017453292519943295,aZ(n,n.d,0,0,ag,t),c=n.b.ig(n.d),c0&&(o=(c&nt)%n.d.length,r=jY(n,o,c,e),r)?(f=r.ed(t),f):(i=n.tj(c,e,t),n.c.Fc(i),null)}function TJ(n,e){var t,i,r,c;switch(w1(n,e)._k()){case 3:case 2:{for(t=ig(e),r=0,c=t.i;r=0;i--)if(An(n[i].d,e)||An(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}function I7(n,e){var t;return $r(n)&&$r(e)&&(t=n/e,sk0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=j.Math.min(i,r))}function Vxn(n,e){var t,i;if(i=!1,mi(e)&&(i=!0,E2(n,new J0(Te(e)))),i||I(e,236)&&(i=!0,E2(n,(t=OU(u(e,236)),new ij(t)))),!i)throw T(new VI(_tn))}function B4e(n,e,t,i){var r,c,o;return r=new Lh(n.e,1,10,(o=e.c,I(o,88)?u(o,26):(Sn(),uo)),(c=t.c,I(c,88)?u(c,26):(Sn(),uo)),v1(n,e),!1),i?i.Ei(r):i=r,i}function SJ(n){var e,t;switch(u(k(qi(n),(nn(),wsn)),420).g){case 0:return e=n.n,t=n.o,new fn(e.a+t.a/2,e.b+t.b/2);case 1:return new mr(n.n);default:return null}}function O7(){O7=N,RS=new f5(Xh,0),nun=new f5("LEFTUP",1),tun=new f5("RIGHTUP",2),Zcn=new f5("LEFTDOWN",3),eun=new f5("RIGHTDOWN",4),k_=new f5("BALANCED",5)}function R4e(n,e,t){var i,r,c;if(i=Zt(n.a[e.p],n.a[t.p]),i==0){if(r=u(k(e,(G(),pp)),15),c=u(k(t,pp),15),r.Hc(t))return-1;if(c.Hc(e))return 1}return i}function _4e(n){switch(n.g){case 1:return new Ogn;case 2:return new Dgn;case 3:return new Ign;case 0:return null;default:throw T(new Hn(bB+(n.f!=null?n.f:""+n.g)))}}function PJ(n,e,t){switch(e){case 1:!n.n&&(n.n=new V(Br,n,1,7)),de(n.n),!n.n&&(n.n=new V(Br,n,1,7)),Dt(n.n,u(t,14));return;case 2:n6(n,Te(t));return}VV(n,e,t)}function IJ(n,e,t){switch(e){case 3:Nd(n,K(Y(t)));return;case 4:Bd(n,K(Y(t)));return;case 5:Zc(n,K(Y(t)));return;case 6:nu(n,K(Y(t)));return}PJ(n,e,t)}function YT(n,e,t){var i,r,c;c=(i=new qI,i),r=bf(c,e,null),r&&r.Fi(),Dc(c,t),me((!n.c&&(n.c=new V(S0,n,12,10)),n.c),c),d1(c,0),ob(c,1),p1(c,!0),g1(c,!0)}function OJ(n,e){var t,i,r;return t=r5(n.g,e),I(t,235)?(r=u(t,235),r.Qh()==null,r.Nh()):I(t,498)?(i=u(t,1938),r=i.b,r):null}function K4e(n,e,t,i){var r,c;return pe(e),pe(t),c=u(I5(n.d,e),19),NPn(!!c,"Row %s not in %s",e,n.e),r=u(I5(n.b,t),19),NPn(!!r,"Column %s not in %s",t,n.c),HOn(n,c.a,r.a,i)}function Qxn(n,e,t,i,r,c,o){var f,h,l,a,d;if(a=r[c],l=c==o-1,f=l?i:0,d=pxn(f,a),i!=10&&A(M(n,o-c),e[c],t[c],f,d),!l)for(++c,h=0;h1||f==-1?(c=u(h,15),r.Wb(X2e(n,c))):r.Wb(tL(n,u(h,56)))))}function X4e(n,e,t,i){N8n();var r=uR;function c(){for(var o=0;olB)return t;r>-1e-6&&++t}return t}function xJ(n,e){var t;e!=n.b?(t=null,n.b&&(t=hC(n.b,n,-4,t)),e&&(t=K2(e,n,-4,t)),t=DDn(n,e,t),t&&t.Fi()):n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,3,e,e))}function Zxn(n,e){var t;e!=n.f?(t=null,n.f&&(t=hC(n.f,n,-1,t)),e&&(t=K2(e,n,-1,t)),t=$Dn(n,e,t),t&&t.Fi()):n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,0,e,e))}function nFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new i1,e=t.Kc();e.Ob();)dr(i,(ht(),Te(e.Pb()))),i.a+=" ";return _O(i,i.a.length-1)}function eFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new i1,e=t.Kc();e.Ob();)dr(i,(ht(),Te(e.Pb()))),i.a+=" ";return _O(i,i.a.length-1)}function tve(n,e,t){var i,r;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?SD(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function ive(n,e){var t,i,r,c,o,f;if(e)for(c=e.a.length,t=new sa(c),f=(t.b-t.a)*t.c<0?(Y1(),Vl):new tl(t);f.Ob();)o=u(f.Pb(),19),r=E3(e,o.a),i=new tmn(n),Uhe(i.a,r)}function rve(n,e){var t,i,r,c,o,f;if(e)for(c=e.a.length,t=new sa(c),f=(t.b-t.a)*t.c<0?(Y1(),Vl):new tl(t);f.Ob();)o=u(f.Pb(),19),r=E3(e,o.a),i=new W6n(n),zhe(i.a,r)}function cve(n){var e;if(n!=null&&n.length>0&&Di(n,n.length-1)==33)try{return e=YFn(Yu(n,0,n.length-1)),e.e==null}catch(t){if(t=jt(t),!I(t,32))throw T(t)}return!1}function tFn(n,e,t){var i,r,c;return i=e.ak(),c=e.dd(),r=i.$j()?ol(n,3,i,null,c,k4(n,i,c,I(i,99)&&(u(i,18).Bb&Yi)!=0),!0):ol(n,1,i,i.zj(),c,-1,!0),t?t.Ei(r):t=r,t}function uve(){var n,e,t;for(e=0,n=0;n<1;n++){if(t=MY((Me(n,1),"X".charCodeAt(n))),t==0)throw T(new Ce("Unknown Option: "+"X".substr(n)));e|=t}return e}function sve(n,e,t){var i,r,c;switch(i=qi(e),r=TT(i),c=new gc,Kr(c,e),t.g){case 1:ui(c,v7(R2(r)));break;case 2:ui(c,R2(r))}return H(c,(nn(),Vb),Y(k(n,Vb))),c}function FJ(n){var e,t;return e=u(ve(new re(ue(Fr(n.a).a.Kc(),new Mn))),17),t=u(ve(new re(ue(ni(n.a).a.Kc(),new Mn))),17),on(sn(k(e,(G(),yf))))||on(sn(k(t,yf)))}function Vw(){Vw=N,OS=new J9("ONE_SIDE",0),$S=new J9("TWO_SIDES_CORNER",1),xS=new J9("TWO_SIDES_OPPOSING",2),DS=new J9("THREE_SIDES",3),IS=new J9("FOUR_SIDES",4)}function vF(n,e,t,i,r){var c,o;c=u(es(gt(e.Oc(),new Jbn),ba(new G1,new q1,new z1,A(M(Nu,1),z,132,0,[(af(),hs)]))),15),o=u(pa(n.b,t,i),15),r==0?o.Wc(0,c):o.Gc(c)}function ove(n,e){var t,i,r,c,o;for(c=new E(e.a);c.a0&&Sxn(this,this.c-1,(J(),Vn)),this.c0&&n[0].length>0&&(this.c=on(sn(k(qi(n[0][0]),(G(),pun))))),this.a=x(cJn,q,2018,n.length,0,2),this.b=x(uJn,q,2019,n.length,0,2),this.d=new TDn}function dve(n){return n.c.length==0?!1:(Ln(0,n.c.length),u(n.c[0],17)).c.i.k==(Qn(),gi)?!0:T3(Xc(new $n(null,new Fn(n,16)),new Iwn),new Own)}function bve(n,e,t){return le(t,"Tree layout",1),kC(n.b),ch(n.b,(u4(),mP),mP),ch(n.b,Wm,Wm),ch(n.b,hy,hy),ch(n.b,Xm,Xm),n.a=MM(n.b,e),q8e(n,e,jc(t,1)),ce(t),e}function rFn(n,e){var t,i,r,c,o,f,h;for(f=jb(e),c=e.f,h=e.g,o=j.Math.sqrt(c*c+h*h),r=0,i=new E(f);i.a=0?(t=I7(n,LM),i=y7(n,LM)):(e=V0(n,1),t=I7(e,5e8),i=y7(e,5e8),i=Hi(Ih(i,1),ci(n,1))),uf(Ih(i,32),ci(t,fr))}function sFn(n,e,t){var i,r;switch(i=(ne(e.b!=0),u(Cs(e,e.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return r=_e(e,0),T8(r,i),e}function oFn(n,e,t,i){var r,c,o,f,h;switch(h=n.b,c=e.d,o=c.j,f=VQ(o,h.d[o.g],t),r=st(Vr(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}Kt(i,f,i.c.b,i.c)}function Mve(n,e,t){var i,r,c,o;for(o=xr(n.e,e,0),c=new Zq,c.b=t,i=new Ii(n.e,o);i.b1;e>>=1)e&1&&(i=xw(i,t)),t.d==1?t=xw(t,t):t=new D$n(KBn(t.a,t.d,x(be,Le,25,t.d<<1,15,1)));return i=xw(i,t),i}function HJ(){HJ=N;var n,e,t,i;for(qin=x(ji,pr,25,25,15,1),Gin=x(ji,pr,25,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Gin[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)qin[n]=t,t*=.5}function Dve(n){var e,t;if(on(sn(hn(n,(nn(),Xb))))){for(t=new re(ue(Gh(n).a.Kc(),new Mn));Se(t);)if(e=u(ve(t),79),Qd(e)&&on(sn(hn(e,za))))return!0}return!1}function fFn(n,e){var t,i,r;ri(n.f,e)&&(e.b=n,i=e.c,xr(n.j,i,0)!=-1||W(n.j,i),r=e.d,xr(n.j,r,0)!=-1||W(n.j,r),t=e.a.b,t.c.length!=0&&(!n.i&&(n.i=new K$n(n)),Xbe(n.i,t)))}function $ve(n){var e,t,i,r,c;return t=n.c.d,i=t.j,r=n.d.d,c=r.j,i==c?t.p=0&&An(n.substr(e,3),"GMT")||e>=0&&An(n.substr(e,3),"UTC"))&&(t[0]=e+3),wZ(n,t,i)}function Fve(n,e){var t,i,r,c,o;for(c=n.g.a,o=n.g.b,i=new E(n.d);i.at;c--)n[c]|=e[c-t-1]>>>o,n[c-1]=e[c-t-1]<=n.f)break;c.c[c.c.length]=t}return c}function GJ(n){var e,t,i,r;for(e=null,r=new E(n.wf());r.a0&&pc(n.g,e,n.g,e+i,f),o=t.Kc(),n.i+=i,r=0;rc&&Jfe(l,cIn(t[f],Kin))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function Hve(n,e){var t;if(t=tyn(n.b.Hf(),e.b.Hf()),t!=0)return t;switch(n.b.Hf().g){case 1:case 2:return Uc(n.b.sf(),e.b.sf());case 3:case 4:return Uc(e.b.sf(),n.b.sf())}return 0}function qve(n){var e,t,i;for(i=n.e.c.length,n.a=ua(be,[q,Le],[48,25],15,[i,i],2),t=new E(n.c);t.a>4&15,c=n[i]&15,o[r++]=u1n[t],o[r++]=u1n[c];return Ks(o,0,o.length)}function Uve(n,e,t){var i,r,c;return i=e.ak(),c=e.dd(),r=i.$j()?ol(n,4,i,c,null,k4(n,i,c,I(i,99)&&(u(i,18).Bb&Yi)!=0),!0):ol(n,i.Kj()?2:1,i,c,i.zj(),-1,!0),t?t.Ei(r):t=r,t}function tu(n){var e,t;return n>=Yi?(e=ok+(n-Yi>>10&1023)&Ut,t=56320+(n-Yi&1023)&Ut,String.fromCharCode(e)+(""+String.fromCharCode(t))):String.fromCharCode(n&Ut)}function Wve(n,e){z0();var t,i,r,c;return r=u(u(ct(n.r,e),21),84),r.gc()>=2?(i=u(r.Kc().Pb(),111),t=n.u.Hc((Tu(),l9)),c=n.u.Hc(Ip),!i.a&&!t&&(r.gc()==2||c)):!1}function aFn(n,e,t,i,r){var c,o,f;for(c=VNn(n,e,t,i,r),f=!1;!c;)sM(n,r,!0),f=!0,c=VNn(n,e,t,i,r);f&&sM(n,r,!1),o=sx(r),o.c.length!=0&&(n.d&&n.d.lg(o),aFn(n,r,t,i,o))}function tM(){tM=N,fH=new w5(Xh,0),xhn=new w5("DIRECTED",1),Lhn=new w5("UNDIRECTED",2),Dhn=new w5("ASSOCIATION",3),Fhn=new w5("GENERALIZATION",4),$hn=new w5("DEPENDENCY",5)}function Xve(n,e){var t;if(!tf(n))throw T(new Dr(sqn));switch(t=tf(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function h4(n,e){var t,i;for(_n(e),i=n.b.c.length,W(n.b,e);i>0;){if(t=i,i=(i-1)/2|0,n.a.ue(un(n.b,i),e)<=0)return js(n.b,t,e),!0;js(n.b,t,un(n.b,i))}return js(n.b,i,e),!0}function zJ(n,e,t,i){var r,c;if(r=0,t)r=kT(n.a[t.g][e.g],i);else for(c=0;c=f)}function UJ(n,e,t,i){var r;if(r=!1,mi(i)&&(r=!0,a3(e,t,Te(i))),r||K0(i)&&(r=!0,UJ(n,e,t,i)),r||I(i,236)&&(r=!0,fa(e,t,u(i,236))),!r)throw T(new VI(_tn))}function Qve(n,e){var t,i,r;if(t=e.Hh(n.a),t&&(r=Ho((!t.b&&(t.b=new qu((Sn(),nr),ec,t)),t.b),Ws),r!=null)){for(i=1;i<(wu(),I1n).length;++i)if(An(I1n[i],r))return i}return 0}function Jve(n,e){var t,i,r;if(t=e.Hh(n.a),t&&(r=Ho((!t.b&&(t.b=new qu((Sn(),nr),ec,t)),t.b),Ws),r!=null)){for(i=1;i<(wu(),O1n).length;++i)if(An(O1n[i],r))return i}return 0}function dFn(n,e){var t,i,r,c;if(_n(e),c=n.a.gc(),c0?1:0;c.a[r]!=t;)c=c.a[r],r=n.a.ue(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function n5e(n){Tu();var e,t;return e=pt(n1,A(M(UP,1),z,273,0,[Hl])),!(i7(dC(e,n))>1||(t=pt(l9,A(M(UP,1),z,273,0,[h9,Ip])),i7(dC(t,n))>1))}function XJ(n,e){var t;t=kc((J1(),co),n),I(t,498)?kr(co,n,new Dkn(this,e)):kr(co,n,this),TF(this,e),e==(Jp(),v1n)?(this.wb=u(this,1939),u(e,1941)):this.wb=(ul(),Nn)}function e5e(n){var e,t,i;if(n==null)return null;for(e=null,t=0;t=j1?"error":i>=900?"warn":i>=800?"info":"log"),ZCn(t,n.a),n.b&&XY(e,t,n.b,"Exception: ",!0))}function k(n,e){var t,i;return i=(!n.q&&(n.q=new we),te(n.q,e)),i??(t=e.wg(),I(t,4)&&(t==null?(!n.q&&(n.q=new we),D2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t))),t)}function Qi(){Qi=N,Jf=new Q9("P1_CYCLE_BREAKING",0),Ol=new Q9("P2_LAYERING",1),Hc=new Q9("P3_NODE_ORDERING",2),Mc=new Q9("P4_NODE_PLACEMENT",3),Ir=new Q9("P5_EDGE_ROUTING",4)}function pFn(n,e){var t,i,r,c,o;for(r=e==1?GR:qR,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),103),o=u(ct(n.f.c,t),21).Kc();o.Ob();)c=u(o.Pb(),46),Qc(n.b.b,c.b),Qc(n.b.a,u(c.b,81).d)}function t5e(n,e){Y5();var t;if(n.c==e.c){if(n.b==e.b||Abe(n.b,e.b)){if(t=Lre(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return Uc(n.b.g,e.b.g)}else return Zt(n.c,e.c)}function i5e(n,e){var t;le(e,"Hierarchical port position processing",1),t=n.b,t.c.length>0&&LBn((Ln(0,t.c.length),u(t.c[0],29)),n),t.c.length>1&&LBn(u(un(t,t.c.length-1),29),n),ce(e)}function vFn(n,e){var t,i,r;if(QJ(n,e))return!0;for(i=new E(e);i.a=r||e<0)throw T(new vr(_B+e+Na+r));if(t>=r||t<0)throw T(new vr(KB+t+Na+r));return e!=t?i=(c=n.Ti(t),n.Hi(e,c),c):i=n.Oi(t),i}function yFn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Ug();t;t=t.Ug()){if(++e>nN)return yFn(t);if(i=t,t==n)throw T(new Dr("There is a cycle in the containment hierarchy of "+n))}return i}function vl(n){var e,t,i;for(i=new va(Ji,"[","]"),t=n.Kc();t.Ob();)e=t.Pb(),Fh(i,B(e)===B(n)?"(this Collection)":e==null?iu:Lr(e));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function QJ(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;ti&&(Me(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||e1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=j.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function ml(){ml=N,eXn=A(M(Zi,1),hc,61,0,[(J(),Kn),Vn,ae]),nXn=A(M(Zi,1),hc,61,0,[Vn,ae,Gn]),tXn=A(M(Zi,1),hc,61,0,[ae,Gn,Kn]),iXn=A(M(Zi,1),hc,61,0,[Gn,Kn,Vn])}function c5e(n,e,t,i){var r,c,o,f,h,l,a;if(o=n.c.d,f=n.d.d,o.j!=f.j)for(a=n.b,r=o.j,h=null;r!=f.j;)h=e==0?CT(r):mQ(r),c=VQ(r,a.d[r.g],t),l=VQ(h,a.d[h.g],t),Ke(i,st(c,l)),r=h}function u5e(n,e,t,i){var r,c,o,f,h;return o=Pxn(n.a,e,t),f=u(o.a,19).a,c=u(o.b,19).a,i&&(h=u(k(e,(G(),Mu)),10),r=u(k(t,Mu),10),h&&r&&(FAn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function EFn(n){var e,t,i,r,c,o,f,h,l;for(this.a=Y$n(n),this.b=new X,t=n,i=0,r=t.length;itD(n.d).c?(n.i+=n.g.c,Kx(n.d)):tD(n.d).c>tD(n.g).c?(n.e+=n.d.c,Kx(n.g)):(n.i+=nCn(n.g),n.e+=nCn(n.d),Kx(n.g),Kx(n.d))}function f5e(n,e,t){var i,r,c,o;for(c=e.q,o=e.r,new ha((Bo(),Ll),e,c,1),new ha(Ll,c,o,1),r=new E(t);r.af&&(h=f/i),r>c&&(l=c/r),o=j.Math.min(h,l),n.a+=o*(e.a-n.a),n.b+=o*(e.b-n.b)}function d5e(n,e,t,i,r){var c,o;for(o=!1,c=u(un(t.b,0),33);Sye(n,e,c,i,r)&&(o=!0,U4e(t,c),t.b.c.length!=0);)c=u(un(t.b,0),33);return t.b.c.length==0&&P7(t.j,t),o&&WT(e.q),o}function b5e(n,e){eg();var t,i,r,c;if(e.b<2)return!1;for(c=_e(e,0),t=u(Re(c),8),i=t;c.b!=c.d.c;){if(r=u(Re(c),8),GF(n,i,r))return!0;i=r}return!!GF(n,i,t)}function YJ(n,e,t,i){var r,c;return t==0?(!n.o&&(n.o=new Wu((xc(),Gl),A0,n,0)),CE(n.o,e,i)):(c=u(On((r=u(Rn(n,16),26),r||n.zh()),t),66),c.Nj().Rj(n,Rc(n),t-ee(n.zh()),e,i))}function TF(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,49).ih(n,1,b9,t)),e&&(t=u(e,49).gh(n,1,b9,t)),t=aQ(n,e,t),t&&t.Fi()):n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,4,e,e))}function w5e(n,e){var t,i,r,c;if(e)r=Bh(e,"x"),t=new Z6n(n),$3(t.a,(_n(r),r)),c=Bh(e,"y"),i=new nmn(n),F3(i.a,(_n(c),c));else throw T(new Pf("All edge sections need an end point."))}function g5e(n,e){var t,i,r,c;if(e)r=Bh(e,"x"),t=new Q6n(n),x3(t.a,(_n(r),r)),c=Bh(e,"y"),i=new J6n(n),L3(i.a,(_n(c),c));else throw T(new Pf("All edge sections need a start point."))}function p5e(n,e){var t,i,r,c,o,f,h;for(i=fDn(n),c=0,f=i.length;c>22-e,r=n.h<>22-e):e<44?(t=0,i=n.l<>44-e):(t=0,i=0,r=n.l<n)throw T(new Hn("k must be smaller than n"));return e==0||e==n?1:n==0?0:MJ(n)/(MJ(e)*MJ(n-e))}function ZJ(n,e){var t,i,r,c;for(t=new jz(n);t.g==null&&!t.c?eX(t):t.g==null||t.i!=0&&u(t.g[t.i-1],47).Ob();)if(c=u(oM(t),56),I(c,160))for(i=u(c,160),r=0;r>4],e[t*2+1]=lI[c&15];return Ks(e,0,e.length)}function x5e(n){ZE();var e,t,i;switch(i=n.c.length,i){case 0:return fzn;case 1:return e=u(dLn(new E(n)),42),rfe(e.cd(),e.dd());default:return t=u(df(n,x(_a,xM,42,n.c.length,0,1)),165),new WI(t)}}function F5e(n){var e,t,i,r,c,o;for(e=new gw,t=new gw,fl(e,n),fl(t,n);t.b!=t.c;)for(r=u(j2(t),37),o=new E(r.a);o.a0&&U7(n,t,e),r):pme(n,e,t)}function OFn(n,e,t){var i,r,c,o;if(e.b!=0){for(i=new Ct,o=_e(e,0);o.b!=o.d.c;)c=u(Re(o),86),Vi(i,FV(c)),r=c.e,r.a=u(k(c,(cc(),jK)),19).a,r.b=u(k(c,mon),19).a;OFn(n,i,jc(t,i.b/n.a|0))}}function DFn(n,e){var t,i,r,c,o;if(n.e<=e||qle(n,n.g,e))return n.g;for(c=n.r,i=n.g,o=n.r,r=(c-i)/2+i;i+11&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=j.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function _5e(n){var e,t,i,r;switch(r=n.i,e=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function $Fn(n,e,t,i,r){if(ii&&(n.a=i),n.br&&(n.b=r),n}function K5e(n){if(I(n,149))return g8e(u(n,149));if(I(n,229))return d2e(u(n,229));if(I(n,23))return k5e(u(n,23));throw T(new Hn(Ktn+vl(new Ku(A(M(Zn,1),rn,1,5,[n])))))}function H5e(n,e,t,i,r){var c,o,f;for(c=!0,o=0;o>>r|t[o+i+1]<>>r,++o}return c}function iY(n,e,t,i){var r,c,o;if(e.k==(Qn(),gi)){for(c=new re(ue(Fr(e).a.Kc(),new Mn));Se(c);)if(r=u(ve(c),17),o=r.c.i.k,o==gi&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0}return!1}function q5e(n,e){var t,i,r,c;return e&=63,t=n.h&Wh,e<22?(c=t>>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),Bc(i&Lu,r&Lu,c&Wh)}function xFn(n,e,t,i){var r;this.b=i,this.e=n==(Rd(),Gm),r=e[t],this.d=ua(_u,[q,ph],[177,25],16,[r.length,r.length],2),this.a=ua(be,[q,Le],[48,25],15,[r.length,r.length],2),this.c=new RJ(e,t)}function G5e(n){var e,t,i;for(n.k=new cX((J(),A(M(Zi,1),hc,61,0,[Wr,Kn,Vn,ae,Gn])).length,n.j.c.length),i=new E(n.j);i.a=t)return a4(n,e,i.p),!0;return!1}function LFn(n){var e;return n.Db&64?MF(n):(e=new Ju(Itn),!n.a||De(De((e.a+=' "',e),n.a),'"'),De(ad(De(ad(De(ad(De(ad((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function NFn(n,e,t){var i,r,c,o,f;for(f=Kc(n.e.Tg(),e),r=u(n.g,119),i=0,o=0;ot?lY(n,t,"start index"):e<0||e>t?lY(e,t,"end index"):P6("end index (%s) must not be less than start index (%s)",A(M(Zn,1),rn,1,5,[Q(e),Q(n)]))}function RFn(n,e){var t,i,r,c;for(i=0,r=n.length;i0&&_Fn(n,c,t));e.p=0}function bn(n){var e;this.c=new Ct,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(e=u(Lo($1),9),new ms(e,u(wo(e,e.length),9),0)),this.g=n.f}function Q5e(n){var e,t,i,r;for(e=cl(De(new Ju("Predicates."),"and"),40),t=!0,r=new Nv(n);r.b0?f[o-1]:x(kh,E1,10,0,0,1),r=f[o],l=o=0?n.Bh(r):gY(n,i);else throw T(new Hn(Al+i.ne()+cm));else throw T(new Hn(vqn+e+mqn));else Ms(n,t,i)}function rY(n){var e,t;if(t=null,e=!1,I(n,204)&&(e=!0,t=u(n,204).a),e||I(n,258)&&(e=!0,t=""+u(n,258).a),e||I(n,483)&&(e=!0,t=""+u(n,483).a),!e)throw T(new VI(_tn));return t}function GFn(n,e){var t,i;if(n.f){for(;e.Ob();)if(t=u(e.Pb(),72),i=t.ak(),I(i,99)&&u(i,18).Bb&uc&&(!n.e||i.Gj()!=Sv||i.aj()!=0)&&t.dd()!=null)return e.Ub(),!0;return!1}else return e.Ob()}function zFn(n,e){var t,i;if(n.f){for(;e.Sb();)if(t=u(e.Ub(),72),i=t.ak(),I(i,99)&&u(i,18).Bb&uc&&(!n.e||i.Gj()!=Sv||i.aj()!=0)&&t.dd()!=null)return e.Pb(),!0;return!1}else return e.Sb()}function cY(n,e,t){var i,r,c,o,f,h;for(h=Kc(n.e.Tg(),e),i=0,f=n.i,r=u(n.g,119),o=0;o1&&(e.c[e.c.length]=c))}function n6e(n){var e,t,i,r;for(t=new Ct,Vi(t,n.o),i=new nG;t.b!=0;)e=u(t.b==0?null:(ne(t.b!=0),Cs(t,t.a.a)),508),r=C_n(n,e,!0),r&&W(i.a,e);for(;i.a.c.length!=0;)e=u(pDn(i),508),C_n(n,e,!1)}function y1(){y1=N,Bfn=new a2(z6,0),_i=new a2("BOOLEAN",1),sc=new a2("INT",2),yv=new a2("STRING",3),Or=new a2("DOUBLE",4),Nt=new a2("ENUM",5),Tp=new a2("ENUMSET",6),Ef=new a2("OBJECT",7)}function E6(n,e){var t,i,r,c,o;i=j.Math.min(n.c,e.c),c=j.Math.min(n.d,e.d),r=j.Math.max(n.c+n.b,e.c+e.b),o=j.Math.max(n.d+n.a,e.d+e.a),r=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++0;)tX(this);this.b=e,this.a=null}function i6e(n,e){var t,i;e.a?M8e(n,e):(t=u(sD(n.b,e.b),57),t&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),i=u(uD(n.b,e.b),57),i&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),XO(n.b,e.b))}function WFn(n,e){var t,i;if(t=u(br(n.b,e),124),u(u(ct(n.r,e),21),84).dc()){t.n.b=0,t.n.c=0;return}t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((Vu(),ed))&&pBn(n,e),i=$pe(n,e),UF(n,e)==(qw(),_l)&&(i+=2*n.w),t.a.a=i}function XFn(n,e){var t,i;if(t=u(br(n.b,e),124),u(u(ct(n.r,e),21),84).dc()){t.n.d=0,t.n.a=0;return}t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((Vu(),ed))&&vBn(n,e),i=xpe(n,e),UF(n,e)==(qw(),_l)&&(i+=2*n.w),t.a.b=i}function r6e(n,e){var t,i,r,c;for(c=new X,i=new E(e);i.at.a&&(i.Hc((gb(),py))?r=(e.a-t.a)/2:i.Hc(vy)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((gb(),ky))?c=(e.b-t.b)/2:i.Hc(my)&&(c=e.b-t.b)),WJ(n,r,c)}function tLn(n,e,t,i,r,c,o,f,h,l,a,d,g){I(n.Cb,88)&&mb(Iu(u(n.Cb,88)),4),Dc(n,t),n.f=o,n4(n,f),t4(n,h),Z3(n,l),e4(n,a),p1(n,d),i4(n,g),g1(n,!0),d1(n,r),n.ok(c),ja(n,e),i!=null&&(n.i=null,iT(n,i))}function iLn(n){var e,t;if(n.f){for(;n.n>0;){if(e=u(n.k.Xb(n.n-1),72),t=e.ak(),I(t,99)&&u(t,18).Bb&uc&&(!n.e||t.Gj()!=Sv||t.aj()!=0)&&e.dd()!=null)return!0;--n.n}return!1}else return n.n>0}function lY(n,e,t){if(n<0)return P6(K_n,A(M(Zn,1),rn,1,5,[t,Q(n)]));if(e<0)throw T(new Hn(H_n+e));return P6("%s (%s) must not be greater than size (%s)",A(M(Zn,1),rn,1,5,[t,Q(n),Q(e)]))}function aY(n,e,t,i,r,c){var o,f,h,l;if(o=i-t,o<7){t2e(e,t,i,c);return}if(h=t+r,f=i+r,l=h+(f-h>>1),aY(e,n,h,l,-r,c),aY(e,n,l,f,-r,c),c.ue(n[l-1],n[l])<=0){for(;t=0?n.sh(c,t):HY(n,r,t);else throw T(new Hn(Al+r.ne()+cm));else throw T(new Hn(vqn+e+mqn));else Ss(n,i,r,t)}function rLn(n){var e,t,i,r;if(t=u(n,49).qh(),t)try{if(i=null,e=w4((J1(),co),_Bn(c2e(t))),e&&(r=e.rh(),r&&(i=r.Wk(die(t.e)))),i&&i!=n)return rLn(i)}catch(c){if(c=jt(c),!I(c,60))throw T(c)}return n}function _c(n,e,t){var i,r,c,o;if(o=e==null?0:n.b.se(e),r=(i=n.a.get(o),i??new Array),r.length==0)n.a.set(o,r);else if(c=kDn(n,e,r),c)return c.ed(t);return Mt(r,r.length,new _j(e,t)),++n.c,oC(n.b),null}function cLn(n,e){var t,i;return kC(n.a),ch(n.a,(uT(),MP),MP),ch(n.a,kv,kv),i=new hi,Ze(i,kv,(AT(),AK)),B(hn(e,(bb(),IK)))!==B((d7(),AP))&&Ze(i,kv,TK),Ze(i,kv,MK),cyn(n.a,i),t=MM(n.a,e),t}function uLn(n){if(!n)return q9n(),vzn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=gR[typeof e];return t?t(e):rQ(typeof e)}else return n instanceof Array||n instanceof j.Array?new fq(n):new I9(n)}function sLn(n,e,t){var i,r,c;switch(c=n.o,i=u(br(n.p,t),244),r=i.i,r.b=B7(i),r.a=N7(i),r.b=j.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}cL(i),uL(i)}function oLn(n,e,t){var i,r,c;switch(c=n.o,i=u(br(n.p,t),244),r=i.i,r.b=B7(i),r.a=N7(i),r.a=j.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}cL(i),uL(i)}function m6e(n,e){var t,i,r,c,o;if(!e.dc()){if(r=u(e.Xb(0),128),e.gc()==1){FNn(n,r,r,1,0,e);return}for(t=1;t0)try{r=us(e,Bi,nt)}catch(c){throw c=jt(c),I(c,127)?(i=c,T(new BC(i))):T(c)}return t=(!n.a&&(n.a=new LI(n)),n.a),r=0?u(D(t,r),56):null}function E6e(n,e){if(n<0)return P6(K_n,A(M(Zn,1),rn,1,5,["index",Q(n)]));if(e<0)throw T(new Hn(H_n+e));return P6("%s (%s) must be less than size (%s)",A(M(Zn,1),rn,1,5,["index",Q(n),Q(e)]))}function C6e(n){var e,t,i,r,c;if(n==null)return iu;for(c=new va(Ji,"[","]"),t=n,i=0,r=t.length;i0)for(o=n.c.d,f=n.d.d,r=Df(ki(new fn(f.a,f.b),o),1/(i+1)),c=new fn(o.a,o.b),t=new E(n.a);t.a=0?n._g(t,!0,!0):Jd(n,r,!0),153)),u(i,215).ol(e);else throw T(new Hn(Al+e.ne()+cm))}function pY(n){var e,t;return n>-0x800000000000&&n<0x800000000000?n==0?0:(e=n<0,e&&(n=-n),t=Ht(j.Math.floor(j.Math.log(n)/.6931471805599453)),(!e||n!=j.Math.pow(2,t))&&++t,t):xOn(eu(n))}function N6e(n){var e,t,i,r,c,o,f;for(c=new Sh,t=new E(n);t.a2&&f.e.b+f.j.b<=2&&(r=f,i=o),c.a.zc(r,c),r.q=i);return c}function gLn(n,e){var t,i,r;return i=new qh(n),Sr(i,e),H(i,(G(),US),e),H(i,(nn(),Lt),(Ai(),Pc)),H(i,Yf,(hh(),NP)),Zl(i,(Qn(),Xt)),t=new gc,Kr(t,i),ui(t,(J(),Gn)),r=new gc,Kr(r,i),ui(r,Vn),i}function pLn(n){switch(n.g){case 0:return new QI((Rd(),oy));case 1:return new D4n;case 2:return new R4n;default:throw T(new Hn("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function vLn(n,e){var t,i,r,c,o;for(n.c[e.p]=!0,W(n.a,e),o=new E(e.j);o.a=c)o.$b();else for(r=o.Kc(),i=0;i0?wG():o<0&&jLn(n,e,-o),!0):!1}function N7(n){var e,t,i,r,c,o,f;if(f=0,n.b==0){for(o=rxn(n,!0),e=0,i=o,r=0,c=i.length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=J9n(oOn(eC(gt($D(n.a),new Fln),new Lln)));return f>0?f+n.n.d+n.n.a:0}function B7(n){var e,t,i,r,c,o,f;if(f=0,n.b==0)f=J9n(oOn(eC(gt($D(n.a),new $ln),new xln)));else{for(o=cxn(n,!0),e=0,i=o,r=0,c=i.length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function z6e(n,e){var t,i,r,c;for(c=u(br(n.b,e),124),t=c.a,r=u(u(ct(n.r,e),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.c&&(t.a=j.Math.max(t.a,tW(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}function U6e(n,e){var t,i,r;return t=u(k(e,(zo(),J4)),19).a-u(k(n,J4),19).a,t==0?(i=ki(Vr(u(k(n,(ll(),Hk)),8)),u(k(n,jm),8)),r=ki(Vr(u(k(e,Hk),8)),u(k(e,jm),8)),Zt(i.a*i.b,r.a*r.b)):t}function W6e(n,e){var t,i,r;return t=u(k(e,(Yd(),TP)),19).a-u(k(n,TP),19).a,t==0?(i=ki(Vr(u(k(n,(cc(),ly)),8)),u(k(n,Vm),8)),r=ki(Vr(u(k(e,ly),8)),u(k(e,Vm),8)),Zt(i.a*i.b,r.a*r.b)):t}function ELn(n){var e,t;return t=new W1,t.a+="e_",e=twe(n),e!=null&&(t.a+=""+e),n.c&&n.d&&(De((t.a+=" ",t),VT(n.c)),De(rc((t.a+="[",t),n.c.i),"]"),De((t.a+=SN,t),VT(n.d)),De(rc((t.a+="[",t),n.d.i),"]")),t.a}function CLn(n){switch(n.g){case 0:return new x4n;case 1:return new F4n;case 2:return new $4n;case 3:return new L4n;default:throw T(new Hn("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function mY(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=j.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=j.Math.max(0,-n.b-i);break;case 2:c=j.Math.max(0,-n.a-i);break;case 4:c=j.Math.max(0,e.a+n.a-(t.a+i))}return c}function X6e(n,e,t){var i,r,c,o,f;if(t)for(r=t.a.length,i=new sa(r),f=(i.b-i.a)*i.c<0?(Y1(),Vl):new tl(i);f.Ob();)o=u(f.Pb(),19),c=E3(t,o.a),xtn in c.a||BB in c.a?cke(n,c,e):lTe(n,c,e),Dce(u(te(n.b,r4(c)),79))}function kY(n){var e,t;switch(n.b){case-1:return!0;case 0:return t=n.t,t>1||t==-1?(n.b=-1,!0):(e=Hs(n),e&&(er(),e.Cj()==kGn)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function V6e(n,e){var t,i,r,c,o;for(i=(!e.s&&(e.s=new V(su,e,21,17)),e.s),c=null,r=0,o=i.i;r=0&&i=0?n._g(t,!0,!0):Jd(n,r,!0),153)),u(i,215).ll(e);throw T(new Hn(Al+e.ne()+PB))}function nme(){LG();var n;return cee?u(w4((J1(),co),Xs),1939):(He(_a,new Qpn),FEe(),n=u(I(kc((J1(),co),Xs),547)?kc(co,Xs):new hTn,547),cee=!0,OTe(n),LTe(n),it((FG(),p1n),n,new apn),kr(co,Xs,n),n)}function eme(n,e){var t,i,r,c;n.j=-1,Hu(n.e)?(t=n.i,c=n.i!=0,B8(n,e),i=new Lh(n.e,3,n.c,null,e,t,c),r=e.Qk(n.e,n.c,null),r=tFn(n,e,r),r?(r.Ei(i),r.Fi()):et(n.e,i)):(B8(n,e),r=e.Qk(n.e,n.c,null),r&&r.Fi())}function cM(n,e){var t,i,r;if(r=0,i=e[0],i>=n.length)return-1;for(t=(Me(i,n.length),n.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=n.length));)t=(Me(i,n.length),n.charCodeAt(i));return i>e[0]?e[0]=i:r=-1,r}function tme(n){var e,t,i,r,c;return r=u(n.a,19).a,c=u(n.b,19).a,t=r,i=c,e=j.Math.max(j.Math.abs(r),j.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new Pi(Q(t),Q(i))}function ime(n,e,t,i){var r,c,o,f,h,l;for(r=0;r=0&&l>=0&&h=n.i)throw T(new vr(_B+e+Na+n.i));if(t>=n.i)throw T(new vr(KB+t+Na+n.i));return i=n.g[t],e!=t&&(e>16),e=i>>16&16,t=16-e,n=n>>e,i=n-256,e=i>>16&8,t+=e,n<<=e,i=n-Sb,e=i>>16&4,t+=e,n<<=e,i=n-Rf,e=i>>16&2,t+=e,n<<=e,i=n>>14,e=i&~(i>>1),t+2-e)}function cme(n){T2();var e,t,i,r;for(rS=new X,FR=new we,xR=new X,e=(!n.a&&(n.a=new V(Pt,n,10,11)),n.a),NCe(e),r=new ie(e);r.e!=r.i.gc();)i=u(oe(r),33),xr(rS,i,0)==-1&&(t=new X,W(xR,t),L$n(i,t));return xR}function ume(n,e,t){var i,r,c,o;n.a=t.b.d,I(e,352)?(r=ng(u(e,79),!1,!1),c=x7(r),i=new s5n(n),$i(c,i),V7(c,r),e.We((Xe(),Rg))!=null&&$i(u(e.We(Rg),74),i)):(o=u(e,470),o.Hg(o.Dg()+n.a.a),o.Ig(o.Eg()+n.a.b))}function MLn(n,e){var t,i,r,c,o,f,h,l;for(l=K(Y(k(e,(nn(),Bm)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f=0?t:(f=_5(ki(new fn(o.c+o.b/2,o.d+o.a/2),new fn(c.c+c.b/2,c.d+c.a/2))),-(XBn(c,o)-1)*f)}function ome(n,e,t){var i;Bt(new $n(null,(!t.a&&(t.a=new V(Tt,t,6,6)),new Fn(t.a,16))),new hkn(n,e)),Bt(new $n(null,(!t.n&&(t.n=new V(Br,t,1,7)),new Fn(t.n,16))),new lkn(n,e)),i=u(hn(t,(Xe(),Rg)),74),i&&TV(i,n,e)}function Jd(n,e,t){var i,r,c;if(c=rg((wu(),Fi),n.Tg(),e),c)return er(),u(c,66).Oj()||(c=S2(jr(Fi,c))),r=(i=n.Yg(c),u(i>=0?n._g(i,!0,!0):Jd(n,c,!0),153)),u(r,215).hl(e,t);throw T(new Hn(Al+e.ne()+PB))}function jY(n,e,t,i){var r,c,o,f,h;if(r=n.d[e],r){if(c=r.g,h=r.i,i!=null){for(f=0;f=t&&(i=e,l=(h.c+h.a)/2,o=l-t,h.c<=l-t&&(r=new dD(h.c,o),X0(n,i++,r)),f=l+t,f<=h.a&&(c=new dD(f,h.a),nb(i,n.c.length),c5(n.c,i,c)))}function EY(n){var e;if(!n.c&&n.g==null)n.d=n.si(n.f),me(n,n.d),e=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;e=u(n.g[n.i-1],47)}return e==n.b&&null.km>=null.jm()?(oM(n),EY(n)):e.Ob()}function ame(n,e,t){var i,r,c,o,f;if(f=t,!f&&(f=nW(new Up,0)),le(f,qKn,1),XRn(n.c,e),o=MEe(n.a,e),o.gc()==1)IRn(u(o.Xb(0),37),f);else for(c=1/o.gc(),r=o.Kc();r.Ob();)i=u(r.Pb(),37),IRn(i,jc(f,c));kie(n.a,o,e),M7e(e),ce(f)}function PLn(n){if(this.a=n,n.c.i.k==(Qn(),Xt))this.c=n.c,this.d=u(k(n.c.i,(G(),nc)),61);else if(n.d.i.k==Xt)this.c=n.d,this.d=u(k(n.d.i,(G(),nc)),61);else throw T(new Hn("Edge "+n+" is not an external edge."))}function ILn(n,e){var t,i,r;r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,3,r,n.b)),e?e!=n&&(Dc(n,e.zb),W$(n,e.d),t=(i=e.c,i??e.zb),V$(n,t==null||An(t,e.zb)?null:t)):(Dc(n,null),W$(n,0),V$(n,null))}function OLn(n){var e,t;if(n.f){for(;n.n=o)throw T(new W0(e,o));return r=t[e],o==1?i=null:(i=x(pH,UB,415,o-1,0,1),pc(t,0,i,0,e),c=o-e-1,c>0&&pc(t,e+1,i,e,c)),c4(n,i),nLn(n,e,r),r}function U2(){U2=N,$p=u(D(R((CG(),oc).qb),6),34),Dp=u(D(R(oc.qb),3),34),EH=u(D(R(oc.qb),4),34),CH=u(D(R(oc.qb),5),18),ZT($p),ZT(Dp),ZT(EH),ZT(CH),fee=new Ku(A(M(su,1),gg,170,0,[$p,Dp]))}function FLn(n,e){var t;this.d=new Hv,this.b=e,this.e=new mr(e.qf()),t=n.u.Hc((Tu(),Py)),n.u.Hc(n1)?n.D?this.a=t&&!e.If():this.a=!0:n.u.Hc(Hl)?t?this.a=!(e.zf().Kc().Ob()||e.Bf().Kc().Ob()):this.a=!1:this.a=!1}function LLn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ct(n.r,e),21),84).Kc();c.Ob();)r=u(c.Pb(),111),r.e.a=(i=r.b,i.Xe((Xe(),Bu))?i.Hf()==(J(),Gn)?-i.rf().a-K(Y(i.We(Bu))):t+K(Y(i.We(Bu))):i.Hf()==(J(),Gn)?-i.rf().a:t)}function NLn(n,e){var t,i,r,c;t=u(k(n,(nn(),ls)),103),c=u(hn(e,bv),61),r=u(k(n,Lt),98),r!=(Ai(),Cf)&&r!=Kl?c==(J(),Wr)&&(c=yZ(e,t),c==Wr&&(c=R2(t))):(i=PRn(e),i>0?c=R2(t):c=v7(R2(t))),gr(e,bv,c)}function gme(n,e){var t,i,r,c,o;for(o=n.j,e.a!=e.b&&bi(o,new zbn),r=o.c.length/2|0,i=0;i0&&U7(n,t,e),c):i.a!=null?(U7(n,e,t),-1):r.a!=null?(U7(n,t,e),1):0}function BLn(n,e){var t,i,r,c;n.ej()?(t=n.Vi(),c=n.fj(),++n.j,n.Hi(t,n.oi(t,e)),i=n.Zi(3,null,e,t,c),n.bj()?(r=n.cj(e,null),r?(r.Ei(i),r.Fi()):n.$i(i)):n.$i(i)):(nTn(n,e),n.bj()&&(r=n.cj(e,null),r&&r.Fi()))}function uM(n,e){var t,i,r,c,o;for(o=Kc(n.e.Tg(),e),r=new nj,t=u(n.g,119),c=n.i;--c>=0;)i=t[c],o.rl(i.ak())&&me(r,i);!A_n(n,r)&&Hu(n.e)&&zp(n,e.$j()?ol(n,6,e,(Pn(),cr),null,-1,!1):ol(n,e.Kj()?2:1,e,null,null,-1,!1))}function d4(){d4=N;var n,e;for(hp=x(vg,q,91,32,0,1),mm=x(vg,q,91,32,0,1),n=1,e=0;e<=18;e++)hp[e]=E7(n),mm[e]=E7(Ih(n,e)),n=Ni(n,5);for(;eo)||e.q&&(i=e.C,o=i.c.c.a-i.o.a/2,r=i.n.a-t,r>o)))}function mme(n,e){var t;le(e,"Partition preprocessing",1),t=u(es(gt(Hr(gt(new $n(null,new Fn(n.a,16)),new v0n),new m0n),new k0n),ba(new G1,new q1,new z1,A(M(Nu,1),z,132,0,[(af(),hs)]))),15),Bt(t.Oc(),new y0n),ce(e)}function RLn(n){o$();var e,t,i,r,c,o,f;for(t=new aa,r=new E(n.e.b);r.a1?n.e*=K(n.a):n.f/=K(n.a),nge(n),cpe(n),K7e(n),H(n.b,(g6(),iS),n.g)}function qLn(n,e,t){var i,r,c,o,f,h;for(i=0,h=t,e||(i=t*(n.c.length-1),h*=-1),c=new E(n);c.a=0?(e||(e=new Vv,i>0&&dr(e,n.substr(0,i))),e.a+="\\",g3(e,t&Ut)):e&&g3(e,t&Ut);return e?e.a:n}function Sme(n){var e;if(!n.a)throw T(new Dr("IDataType class expected for layout option "+n.f));if(e=Lae(n.a),e==null)throw T(new Dr("Couldn't create new instance of property '"+n.f+"'. "+KHn+(Ph(By),By.k)+Ttn));return u(e,414)}function NF(n){var e,t,i,r,c;return c=n.eh(),c&&c.kh()&&(r=wl(n,c),r!=c)?(t=n.Vg(),i=(e=n.Vg(),e>=0?n.Qg(null):n.eh().ih(n,-1-e,null,null)),n.Rg(u(r,49),t),i&&i.Fi(),n.Lg()&&n.Mg()&&t>-1&&et(n,new wi(n,9,t,c,r)),r):c}function XLn(n){var e,t,i,r,c,o,f,h;for(o=0,c=n.f.e,i=0;i>5,r>=n.d)return n.e<0;if(t=n.a[r],e=1<<(e&31),n.e<0){if(i=dOn(n),r>16)),15).Xc(c),f0&&(!(nl(n.a.c)&&e.n.d)&&!(c3(n.a.c)&&e.n.b)&&(e.g.d+=j.Math.max(0,i/2-.5)),!(nl(n.a.c)&&e.n.a)&&!(c3(n.a.c)&&e.n.c)&&(e.g.a-=i-1))}function JLn(n){var e,t,i,r,c;if(r=new X,c=GBn(n,r),e=u(k(n,(G(),Mu)),10),e)for(i=new E(e.j);i.a>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(o=i?Wh:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(o=i?Wh:0,c=i?Lu:0,r=t>>e-44),Bc(r&Lu,c&Lu,o&Wh)}function BF(n){var e,t,i,r,c,o;for(this.c=new X,this.d=n,i=xt,r=xt,e=Vt,t=Vt,o=_e(n,0);o.b!=o.d.c;)c=u(Re(o),8),i=j.Math.min(i,c.a),r=j.Math.min(r,c.b),e=j.Math.max(e,c.a),t=j.Math.max(t,c.b);this.a=new ks(i,r,e-i,t-r)}function nNn(n,e){var t,i,r,c,o,f;for(c=new E(n.b);c.a0&&I(e,42)&&(n.a.qj(),l=u(e,42),h=l.cd(),c=h==null?0:mt(h),o=wU(n.a,c),t=n.a.d[o],t)){for(i=u(t.g,367),a=t.i,f=0;f=2)for(t=r.Kc(),e=Y(t.Pb());t.Ob();)c=e,e=Y(t.Pb()),i=j.Math.min(i,(_n(e),e-(_n(c),c)));return i}function Rme(n,e){var t,i,r,c,o;i=new Ct,Kt(i,e,i.c.b,i.c);do for(t=(ne(i.b!=0),u(Cs(i,i.a.a),86)),n.b[t.g]=1,c=_e(t.d,0);c.b!=c.d.c;)r=u(Re(c),188),o=r.c,n.b[o.g]==1?Ke(n.a,r):n.b[o.g]==2?n.b[o.g]=1:Kt(i,o,i.c.b,i.c);while(i.b!=0)}function _me(n,e){var t,i,r;if(B(e)===B(pe(n)))return!0;if(!I(e,15)||(i=u(e,15),r=n.gc(),r!=i.gc()))return!1;if(I(i,54)){for(t=0;t0&&(r=t),o=new E(n.f.e);o.a0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new Pi(Q(e),Q(t))}function r9e(n,e){return n.ce.c?1:n.be.b?1:n.a!=e.a?mt(n.a)-mt(e.a):n.d==(V5(),Um)&&e.d==zm?-1:n.d==zm&&e.d==Um?1:0}function sNn(n,e){var t,i,r,c,o;return c=e.a,c.c.i==e.b?o=c.d:o=c.c,c.c.i==e.b?i=c.c:i=c.d,r=D2e(n.a,o,i),r>0&&r<$4?(t=zme(n.a,i.i,r,n.c),pIn(n.a,i.i,-t),t>0):r<0&&-r<$4?(t=Ume(n.a,i.i,-r,n.c),pIn(n.a,i.i,t),t>0):!1}function c9e(n,e,t,i){var r,c,o,f,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new E(n.c);d.a>24;return o}function s9e(n){if(n.pe()){var e=n.c;e.qe()?n.o="["+e.n:e.pe()?n.o="["+e.ne():n.o="[L"+e.ne()+";",n.b=e.me()+"[]",n.k=e.oe()+"[]";return}var t=n.j,i=n.d;i=i.split("/"),n.o=Hx(".",[t,Hx("$",i)]),n.b=Hx(".",[t,Hx(".",i)]),n.k=i[i.length-1]}function o9e(n,e){var t,i,r,c,o;for(o=null,c=new E(n.e.a);c.a=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function oNn(n,e){var t,i,r,c,o,f,h,l;for(o=e==1?GR:qR,c=o.a.ec().Kc();c.Ob();)for(r=u(c.Pb(),103),h=u(ct(n.f.c,r),21).Kc();h.Ob();)switch(f=u(h.Pb(),46),i=u(f.b,81),l=u(f.a,189),t=l.c,r.g){case 2:case 1:i.g.d+=t;break;case 4:case 3:i.g.c+=t}}function l9e(n,e){var t,i,r,c,o,f,h,l,a;for(l=-1,a=0,o=n,f=0,h=o.length;f0&&++a;++l}return a}function jo(n){var e,t;return t=new Ju(V1(n.gm)),t.a+="@",De(t,(e=mt(n)>>>0,e.toString(16))),n.kh()?(t.a+=" (eProxyURI: ",rc(t,n.qh()),n.$g()&&(t.a+=" eClass: ",rc(t,n.$g())),t.a+=")"):n.$g()&&(t.a+=" (eClass: ",rc(t,n.$g()),t.a+=")"),t.a}function A6(n){var e,t,i,r;if(n.e)throw T(new Dr((Ph(ER),fN+ER.k+hN)));for(n.d==(sr(),yh)&&SM(n,Ys),t=new E(n.a.a);t.a>24}return t}function b9e(n,e,t){var i,r,c;if(r=u(br(n.i,e),306),!r)if(r=new fIn(n.d,e,t),k2(n.i,e,r),UQ(e))Ice(n.a,e.c,e.b,r);else switch(c=e6e(e),i=u(br(n.p,c),244),c.g){case 1:case 3:r.j=!0,XI(i,e.b,r);break;case 4:case 2:r.k=!0,XI(i,e.c,r)}return r}function w9e(n,e,t,i){var r,c,o,f,h,l;if(f=new nj,h=Kc(n.e.Tg(),e),r=u(n.g,119),er(),u(e,66).Oj())for(o=0;o=0)return r;for(c=1,f=new E(e.j);f.a0&&e.ue((Ln(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)js(n,r,(Ln(r-1,n.c.length),u(n.c[r-1],10))),--r;Ln(r,n.c.length),n.c[r]=c}t.a=new we,t.b=new we}function g9e(n,e,t){var i,r,c,o,f,h,l,a;for(a=(i=u(e.e&&e.e(),9),new ms(i,u(wo(i,i.length),9),0)),h=Eb(t,"[\\[\\]\\s,]+"),c=h,o=0,f=c.length;o0&&(!(nl(n.a.c)&&e.n.d)&&!(c3(n.a.c)&&e.n.b)&&(e.g.d-=j.Math.max(0,i/2-.5)),!(nl(n.a.c)&&e.n.a)&&!(c3(n.a.c)&&e.n.c)&&(e.g.a+=j.Math.max(0,i-1)))}function dNn(n,e,t){var i,r;if((n.c-n.b&n.a.length-1)==2)e==(J(),Kn)||e==Vn?(WC(u(u6(n),15),(cs(),jh)),WC(u(u6(n),15),Rl)):(WC(u(u6(n),15),(cs(),Rl)),WC(u(u6(n),15),jh));else for(r=new H5(n);r.a!=r.b;)i=u(yT(r),15),WC(i,t)}function v9e(n,e){var t,i,r,c,o,f,h;for(r=h3(new Lq(n)),f=new Ii(r,r.c.length),c=h3(new Lq(e)),h=new Ii(c,c.c.length),o=null;f.b>0&&h.b>0&&(t=(ne(f.b>0),u(f.a.Xb(f.c=--f.b),33)),i=(ne(h.b>0),u(h.a.Xb(h.c=--h.b),33)),t==i);)o=t;return o}function xu(n,e){var t,i,r,c,o,f;return c=n.a*cN+n.b*1502,f=n.b*cN+11,t=j.Math.floor(f*hk),c+=t,f-=t*inn,c%=inn,n.a=c,n.b=f,e<=24?j.Math.floor(n.a*qin[e]):(r=n.a*(1<=2147483648&&(i-=eN),i)}function bNn(n,e,t){var i,r,c,o;BMn(n,e)>BMn(n,t)?(i=Gr(t,(J(),Vn)),n.d=i.dc()?0:vD(u(i.Xb(0),11)),o=Gr(e,Gn),n.b=o.dc()?0:vD(u(o.Xb(0),11))):(r=Gr(t,(J(),Gn)),n.d=r.dc()?0:vD(u(r.Xb(0),11)),c=Gr(e,Vn),n.b=c.dc()?0:vD(u(c.Xb(0),11)))}function wNn(n){var e,t,i,r,c,o,f;if(n&&(e=n.Hh(Xs),e&&(o=Te(Ho((!e.b&&(e.b=new qu((Sn(),nr),ec,e)),e.b),"conversionDelegates")),o!=null))){for(f=new X,i=Eb(o,"\\w+"),r=0,c=i.length;rn.c));o++)r.a>=n.s&&(c<0&&(c=o),f=o);return h=(n.s+n.c)/2,c>=0&&(i=eke(n,e,c,f),h=hre((Ln(i,e.c.length),u(e.c[i],329))),lme(e,i,t)),h}function KF(){KF=N,zYn=new tr((Xe(),Mp),1.3),ifn=ihn,hfn=new pd(15),YYn=new tr(Ya,hfn),nZn=new tr(Za,15),UYn=RP,VYn=Ja,QYn=Kg,JYn=Bl,XYn=_g,sfn=Cy,ZYn=tw,ffn=(DY(),HYn),ufn=_Yn,ofn=KYn,lfn=qYn,rfn=RYn,cfn=_P,WYn=chn,dy=BYn,tfn=NYn,afn=GYn}function ke(n,e,t){var i,r,c,o,f,h,l;for(o=(c=new ZH,c),mV(o,(_n(e),e)),l=(!o.b&&(o.b=new qu((Sn(),nr),ec,o)),o.b),h=1;h0&&Xje(this,r)}function RY(n,e,t,i,r,c){var o,f,h;if(!r[e.b]){for(r[e.b]=!0,o=i,!o&&(o=new SC),W(o.e,e),h=c[e.b].Kc();h.Ob();)f=u(h.Pb(),282),!(f.d==t||f.c==t)&&(f.c!=e&&RY(n,f.c,e,o,r,c),f.d!=e&&RY(n,f.d,e,o,r,c),W(o.c,f),Yt(o.d,f.b));return o}return null}function y9e(n){var e,t,i,r,c,o,f;for(e=0,r=new E(n.e);r.a=2}function j9e(n,e){var t,i,r,c;for(le(e,"Self-Loop pre-processing",1),i=new E(n.a);i.a1||(e=pt(Po,A(M(lr,1),z,93,0,[Zh,Io])),i7(dC(e,n))>1)||(i=pt(Do,A(M(lr,1),z,93,0,[Eh,no])),i7(dC(i,n))>1))}function T9e(n,e){var t,i,r;return t=e.Hh(n.a),t&&(r=Te(Ho((!t.b&&(t.b=new qu((Sn(),nr),ec,t)),t.b),"affiliation")),r!=null)?(i=wE(r,tu(35)),i==-1?Sx(n,x5(n,ts(e.Hj())),r):i==0?Sx(n,null,r.substr(1)):Sx(n,r.substr(0,i),r.substr(i+1))):null}function M9e(n){var e,t,i;try{return n==null?iu:Lr(n)}catch(r){if(r=jt(r),I(r,102))return e=r,i=V1(Du(n))+"@"+(t=(eh(),YQ(n)>>>0),t.toString(16)),bpe(dwe(),(t3(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+V1(e.gm)+">";throw T(r)}}function vNn(n){switch(n.g){case 0:return new T4n;case 1:return new k4n;case 2:return new k7n;case 3:return new jwn;case 4:return new Kjn;case 5:return new M4n;default:throw T(new Hn("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function _Y(n,e,t){var i,r,c;for(c=new E(n.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&Ke(e,i.b));for(r=new E(n.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&Ke(t,i.a))}function oM(n){var e,t,i,r,c;if(n.g==null&&(n.d=n.si(n.f),me(n,n.d),n.c))return c=n.f,c;if(e=u(n.g[n.i-1],47),r=e.Pb(),n.e=e,t=n.si(r),t.Ob())n.d=t,me(n,t);else for(n.d=null;!e.Ob()&&(Mt(n.g,--n.i,null),n.i!=0);)i=u(n.g[n.i-1],47),e=i;return r}function A9e(n,e){var t,i,r,c,o,f;if(i=e,r=i.ak(),zh(n.e,r)){if(r.hi()&&CC(n,r,i.dd()))return!1}else for(f=Kc(n.e.Tg(),r),t=u(n.g,119),c=0;c1||t>1)return 2;return e+t==1?2:0}function kNn(n,e,t){var i,r,c,o,f;for(le(t,"ELK Force",1),on(sn(hn(e,(zo(),Drn))))||lC((i=new F9((R0(),new F0(e))),i)),f=QOn(e),Y3e(f),Owe(n,u(k(f,Orn),424)),o=fRn(n.a,f),c=o.Kc();c.Ob();)r=u(c.Pb(),231),dke(n.b,r,jc(t,1/o.gc()));f=j_n(o),m_n(f),ce(t)}function x9e(n,e){var t,i,r,c,o;if(le(e,"Breaking Point Processor",1),nCe(n),on(sn(k(n,(nn(),Rsn))))){for(r=new E(n.b);r.a=0?n._g(i,!0,!0):Jd(n,c,!0),153)),u(r,215).ml(e,t)}else throw T(new Hn(Al+e.ne()+cm))}function B9e(n,e){var t,i,r,c,o;for(t=new X,r=Hr(new $n(null,new Fn(n,16)),new wgn),c=Hr(new $n(null,new Fn(n,16)),new ggn),o=l0e(Mde(eC(p8e(A(M(WTe,1),rn,833,0,[r,c])),new pgn))),i=1;i=2*e&&W(t,new dD(o[i-1]+e,o[i]-e));return t}function R9e(n,e,t){le(t,"Eades radial",1),t.n&&e&&po(t,vo(e),(Xu(),ws)),n.d=u(hn(e,(S5(),Ym)),33),n.c=K(Y(hn(e,(bb(),PP)))),n.e=Jx(u(hn(e,ay),293)),n.a=v2e(u(hn(e,qon),426)),n.b=_4e(u(hn(e,Hon),340)),k4e(n),t.n&&e&&po(t,vo(e),(Xu(),ws))}function _9e(n,e,t){var i,r,c,o,f,h,l,a;if(t)for(c=t.a.length,i=new sa(c),f=(i.b-i.a)*i.c<0?(Y1(),Vl):new tl(i);f.Ob();)o=u(f.Pb(),19),r=E3(t,o.a),r&&(h=Bae(n,(l=(ld(),a=new iG,a),e&&qY(l,e),l),r),n6(h,$h(r,Xf)),eM(r,h),dY(r,h),lx(n,r,h))}function hM(n){var e,t,i,r,c,o;if(!n.j){if(o=new npn,e=v9,c=e.a.zc(n,e),c==null){for(i=new ie(Mr(n));i.e!=i.i.gc();)t=u(oe(i),26),r=hM(t),Dt(o,r),me(o,t);e.a.Bc(n)!=null}fb(o),n.j=new Ew((u(D(R((ul(),Nn).o),11),18),o.i),o.g),Iu(n).b&=-33}return n.j}function K9e(n){var e,t,i,r;if(n==null)return null;if(i=Cc(n,!0),r=Ok.length,An(i.substr(i.length-r,r),Ok)){if(t=i.length,t==4){if(e=(Me(0,i.length),i.charCodeAt(0)),e==43)return N1n;if(e==45)return Mee}else if(t==3)return N1n}return new Uq(i)}function H9e(n){var e,t,i;return t=n.l,t&t-1||(i=n.m,i&i-1)||(e=n.h,e&e-1)||e==0&&i==0&&t==0?-1:e==0&&i==0&&t!=0?aV(t):e==0&&i!=0&&t==0?aV(i)+22:e!=0&&i==0&&t==0?aV(e)+44:-1}function q9e(n,e){var t,i,r,c,o;for(le(e,"Edge joining",1),t=on(sn(k(n,(nn(),V_)))),r=new E(n.b);r.a1)for(r=new E(n.a);r.a0),c.a.Xb(c.c=--c.b),U0(c,r),ne(c.b3&&fh(n,0,e-3))}function W9e(n){var e,t,i,r;return B(k(n,(nn(),Wb)))===B((_h(),x1))?!n.e&&B(k(n,ey))!==B((G3(),Xk)):(i=u(k(n,N_),292),r=on(sn(k(n,B_)))||B(k(n,Fm))===B((F2(),Wk)),e=u(k(n,tsn),19).a,t=n.a.c.length,!r&&i!=(G3(),Xk)&&(e==0||e>t))}function X9e(n){var e,t;for(t=0;t0);t++);if(t>0&&t0);e++);return e>0&&t>16!=6&&e){if(s4(n,e))throw T(new Hn(um+_Ln(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?wJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=K2(e,n,6,i)),i=dU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,6,e,e))}function qY(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(s4(n,e))throw T(new Hn(um+jBn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?pJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=K2(e,n,9,i)),i=bU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,9,e,e))}function qF(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(s4(n,e))throw T(new Hn(um+yRn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?mJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=K2(e,n,12,i)),i=aU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,3,e,e))}function g4(n){var e,t,i,r,c;if(i=Hs(n),c=n.j,c==null&&i)return n.$j()?null:i.zj();if(I(i,148)){if(t=i.Aj(),t&&(r=t.Nh(),r!=n.i)){if(e=u(i,148),e.Ej())try{n.g=r.Kh(e,c)}catch(o){if(o=jt(o),I(o,78))n.g=null;else throw T(o)}n.i=r}return n.g}return null}function ENn(n){var e;return e=new X,W(e,new h2(new fn(n.c,n.d),new fn(n.c+n.b,n.d))),W(e,new h2(new fn(n.c,n.d),new fn(n.c,n.d+n.a))),W(e,new h2(new fn(n.c+n.b,n.d+n.a),new fn(n.c+n.b,n.d))),W(e,new h2(new fn(n.c+n.b,n.d+n.a),new fn(n.c,n.d+n.a))),e}function CNn(n,e,t,i){var r,c,o;if(o=AJ(e,t),i.c[i.c.length]=e,n.j[o.p]==-1||n.j[o.p]==2||n.a[e.p])return i;for(n.j[o.p]=-1,c=new re(ue(Kh(o).a.Kc(),new Mn));Se(c);)if(r=u(ve(c),17),!(!(!Xi(r)&&!(!Xi(r)&&r.c.i.c==r.d.i.c))||r==e))return CNn(n,r,o,i);return i}function V9e(n,e,t){var i,r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),79),i=u(te(n.b,r),266),!i&&(At(lh(r))==At(pl(r))?h7e(n,r,t):lh(r)==At(pl(r))?te(n.c,r)==null&&te(n.b,pl(r))!=null&&i_n(n,r,t,!1):te(n.d,r)==null&&te(n.b,lh(r))!=null&&i_n(n,r,t,!0))}function Q9e(n,e){var t,i,r,c,o,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),f=new gc,Kr(f,i),ui(f,(J(),Vn)),H(f,(G(),WS),(qn(),!0)),o=e.Kc();o.Ob();)c=u(o.Pb(),10),h=new gc,Kr(h,c),ui(h,Gn),H(h,WS,!0),t=new Sd,H(t,WS,!0),Ki(t,f),Ti(t,h)}function J9e(n,e,t,i){var r,c,o,f;r=m$n(n,e,t),c=m$n(n,t,e),o=u(te(n.c,e),112),f=u(te(n.c,t),112),ri.b.g&&(c.c[c.c.length]=i);return c}function p4(){p4=N,Ng=new e8("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),Cp=new e8("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),n9=new e8("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),Zm=new e8("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),e9=new e8("WHOLE_DRAWING",4)}function Y9e(n,e){if(I(e,239))return Sge(n,u(e,33));if(I(e,186))return Kge(n,u(e,118));if(I(e,354))return n1e(n,u(e,137));if(I(e,352))return Cye(n,u(e,79));if(e)return null;throw T(new Hn(Ktn+vl(new Ku(A(M(Zn,1),rn,1,5,[e])))))}function Z9e(n){var e,t,i,r,c,o,f;for(c=new Ct,r=new E(n.d.a);r.a1)for(e=md((t=new ta,++n.b,t),n.d),f=_e(c,0);f.b!=f.d.c;)o=u(Re(f),121),Eo(ao(lo(bo(ho(new Ls,1),0),e),o))}function GY(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=11&&e){if(s4(n,e))throw T(new Hn(um+oZ(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?kJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=K2(e,n,10,i)),i=jU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,11,e,e))}function n8e(n){var e,t,i,r;for(i=new ya(new na(n.b).a);i.b;)t=Ld(i),r=u(t.cd(),11),e=u(t.dd(),10),H(e,(G(),rt),r),H(r,Mu,e),H(r,Jk,(qn(),!0)),ui(r,u(k(e,nc),61)),k(e,nc),H(r.i,(nn(),Lt),(Ai(),Mv)),u(k(qi(r.i),Sc),21).Fc((or(),fv))}function e8e(n,e,t){var i,r,c,o,f,h;if(c=0,o=0,n.c)for(h=new E(n.d.i.j);h.ac.a?-1:r.ah){for(a=n.d,n.d=x(o1n,Qtn,63,2*h+4,0,1),c=0;c=9223372036854776e3?(O3(),pin):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=Oa&&(i=Ht(n/Oa),n-=i*Oa),t=0,n>=Y2&&(t=Ht(n/Y2),n-=t*Y2),e=Ht(n),c=Bc(e,t,i),r&&hx(c),c)}function l8e(n,e){var t,i,r,c;for(t=!e||!n.u.Hc((Tu(),n1)),c=0,r=new E(n.e.Cf());r.a=-e&&i==e?new Pi(Q(t-1),Q(i)):new Pi(Q(t),Q(i-1))}function PNn(){return rr(),A(M(eMe,1),z,77,0,[lcn,ocn,Em,QR,Icn,gS,MS,nv,Scn,mcn,Mcn,Z4,Pcn,gcn,Ocn,tcn,kS,JR,bS,ES,$cn,jS,icn,Acn,xcn,CS,Dcn,wS,dcn,Ccn,Ecn,AS,ucn,dS,vS,ccn,Y4,ycn,pcn,Tcn,Cm,fcn,scn,jcn,vcn,mS,TS,rcn,yS,kcn,pS,bcn,acn,zk,aS,wcn,hcn])}function w8e(n,e,t){n.d=0,n.b=0,e.k==(Qn(),Ac)&&t.k==Ac&&u(k(e,(G(),rt)),10)==u(k(t,rt),10)&&(N$(e).j==(J(),Kn)?bNn(n,e,t):bNn(n,t,e)),e.k==Ac&&t.k==gi?N$(e).j==(J(),Kn)?n.d=1:n.b=1:t.k==Ac&&e.k==gi&&(N$(t).j==(J(),Kn)?n.b=1:n.d=1),t3e(n,e,t)}function g8e(n){var e,t,i,r,c,o,f,h,l,a,d;return d=qJ(n),e=n.a,h=e!=null,h&&a3(d,"category",n.a),r=K9(new _p(n.d)),o=!r,o&&(l=new Yl,_o(d,"knownOptions",l),t=new pmn(l),$i(new _p(n.d),t)),c=K9(n.g),f=!c,f&&(a=new Yl,_o(d,"supportedFeatures",a),i=new vmn(a),$i(n.g,i)),d}function p8e(n){var e,t,i,r,c,o,f,h,l;for(i=!1,e=336,t=0,c=new Ojn(n.length),f=n,h=0,l=f.length;h>16!=7&&e){if(s4(n,e))throw T(new Hn(um+LFn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?gJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=u(e,49).gh(n,1,xy,i)),i=bW(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,7,e,e))}function INn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(s4(n,e))throw T(new Hn(um+zDn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?vJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=u(e,49).gh(n,0,Ly,i)),i=wW(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,3,e,e))}function zF(n,e){d4();var t,i,r,c,o,f,h,l,a;return e.d>n.d&&(f=n,n=e,e=f),e.d<63?s7e(n,e):(o=(n.d&-2)<<4,l=SX(n,o),a=SX(e,o),i=sL(n,I2(l,o)),r=sL(e,I2(a,o)),h=zF(l,a),t=zF(i,r),c=zF(sL(l,i),sL(r,a)),c=wL(wL(c,h),t),c=I2(c,o),h=I2(h,o<<1),wL(wL(h,c),t))}function m8e(n,e,t){var i,r,c,o,f;for(o=f6(n,t),f=x(kh,E1,10,e.length,0,1),i=0,c=o.Kc();c.Ob();)r=u(c.Pb(),11),on(sn(k(r,(G(),Jk))))&&(f[i++]=u(k(r,Mu),10));if(i=0;c+=t?1:-1)o=o|e.c.Sf(h,c,t,i&&!on(sn(k(e.j,(G(),p0))))&&!on(sn(k(e.j,(G(),Pg))))),o=o|e.q._f(h,c,t),o=o|wBn(n,h[c],t,i);return ri(n.c,e),o}function aM(n,e,t){var i,r,c,o,f,h,l,a,d,g;for(a=bAn(n.j),d=0,g=a.length;d1&&(n.a=!0),Ffe(u(t.b,65),st(Vr(u(e.b,65).c),Df(ki(Vr(u(t.b,65).a),u(e.b,65).a),r))),SMn(n,e),ONn(n,t)}function DNn(n){var e,t,i,r,c,o,f;for(c=new E(n.a.a);c.a0&&c>0?o.p=e++:i>0?o.p=t++:c>0?o.p=r++:o.p=t++}Pn(),bi(n.j,new d0n)}function C8e(n){var e,t;t=null,e=u(un(n.g,0),17);do{if(t=e.d.i,li(t,(G(),Js)))return u(k(t,Js),11).i;if(t.k!=(Qn(),ti)&&Se(new re(ue(ni(t).a.Kc(),new Mn))))e=u(ve(new re(ue(ni(t).a.Kc(),new Mn))),17);else if(t.k!=ti)return null}while(t&&t.k!=(Qn(),ti));return t}function T8e(n,e){var t,i,r,c,o,f,h,l,a;for(f=e.j,o=e.g,h=u(un(f,f.c.length-1),113),a=(Ln(0,f.c.length),u(f.c[0],113)),l=hF(n,o,h,a),c=1;cl&&(h=t,a=r,l=i);e.a=a,e.c=h}function M8e(n,e){var t,i;if(i=C8(n.b,e.b),!i)throw T(new Dr("Invalid hitboxes for scanline constraint calculation."));(ROn(e.b,u(Mue(n.b,e.b),57))||ROn(e.b,u(Tue(n.b,e.b),57)))&&(eh(),e.b+""),n.a[e.b.f]=u(sD(n.b,e.b),57),t=u(uD(n.b,e.b),57),t&&(n.a[t.f]=e.b)}function Eo(n){if(!n.a.d||!n.a.e)throw T(new Dr((Ph(Wzn),Wzn.k+" must have a source and target "+(Ph(vrn),vrn.k)+" specified.")));if(n.a.d==n.a.e)throw T(new Dr("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return pE(n.a.d.g,n.a),pE(n.a.e.b,n.a),n.a}function A8e(n,e,t){var i,r,c,o,f,h,l;for(l=new Q1(new g6n(n)),o=A(M(xWn,1),UKn,11,0,[e,t]),f=0,h=o.length;fh-n.b&&fh-n.a&&f0&&++p;++g}return p}function N8e(n,e){var t,i,r,c,o;for(o=u(k(e,(Yd(),Ton)),425),c=_e(e.b,0);c.b!=c.d.c;)if(r=u(Re(c),86),n.b[r.g]==0){switch(o.g){case 0:uxn(n,r);break;case 1:Rme(n,r)}n.b[r.g]=2}for(i=_e(n.a,0);i.b!=i.d.c;)t=u(Re(i),188),lb(t.b.d,t,!0),lb(t.c.b,t,!0);H(e,(cc(),von),n.a)}function Kc(n,e){er();var t,i,r,c;return e?e==(ht(),Cee)||(e==aee||e==td||e==lee)&&n!=F1n?new _Z(n,e):(i=u(e,677),t=i.pk(),t||(m3(jr((wu(),Fi),e)),t=i.pk()),c=(!t.i&&(t.i=new we),t.i),r=u(Xr(Ar(c.f,n)),1942),!r&&it(c,n,r=new _Z(n,e)),r):oee}function B8e(n,e){var t,i,r,c,o,f,h,l,a;for(h=u(k(n,(G(),rt)),11),l=qr(A(M(ai,1),q,8,0,[h.i.n,h.n,h.a])).a,a=n.i.n.b,t=Nf(n.e),r=t,c=0,o=r.length;c0?c.a?(f=c.b.rf().a,t>f&&(r=(t-f)/2,c.d.b=r,c.d.c=r)):c.d.c=n.s+t:L5(n.u)&&(i=GJ(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.rf().a&&(c.d.c=i.c+i.b-c.b.rf().a))}function H8e(n,e){var t,i,r,c;for(le(e,"Semi-Interactive Crossing Minimization Processor",1),t=!1,r=new E(n.b);r.a=0){if(e==t)return new Pi(Q(-e-1),Q(-e-1));if(e==-t)return new Pi(Q(-e),Q(t+1))}return j.Math.abs(e)>j.Math.abs(t)?e<0?new Pi(Q(-e),Q(t)):new Pi(Q(-e),Q(t+1)):new Pi(Q(e+1),Q(t))}function z8e(n){var e,t;t=u(k(n,(nn(),qc)),163),e=u(k(n,(G(),qa)),303),t==(As(),$l)?(H(n,qc,ny),H(n,qa,(Nh(),Ag))):t==Gb?(H(n,qc,ny),H(n,qa,(Nh(),bp))):e==(Nh(),Ag)?(H(n,qc,$l),H(n,qa,Vk)):e==bp&&(H(n,qc,Gb),H(n,qa,Vk))}function dM(){dM=N,fy=new ngn,$Jn=Ze(new hi,(Qi(),Hc),(rr(),bS)),LJn=ju(Ze(new hi,Hc,jS),Ir,yS),NJn=Wd(Wd(Fj(ju(Ze(new hi,Jf,MS),Ir,TS),Mc),CS),AS),xJn=ju(Ze(Ze(Ze(new hi,Ol,gS),Mc,vS),Mc,Y4),Ir,pS),FJn=ju(Ze(Ze(new hi,Mc,Y4),Mc,dS),Ir,aS)}function S6(){S6=N,_Jn=Ze(ju(new hi,(Qi(),Ir),(rr(),bcn)),Hc,bS),GJn=Wd(Wd(Fj(ju(Ze(new hi,Jf,MS),Ir,TS),Mc),CS),AS),KJn=ju(Ze(Ze(Ze(new hi,Ol,gS),Mc,vS),Mc,Y4),Ir,pS),qJn=Ze(Ze(new hi,Hc,jS),Ir,yS),HJn=ju(Ze(Ze(new hi,Mc,Y4),Mc,dS),Ir,aS)}function U8e(n,e,t,i,r){var c,o;(!Xi(e)&&e.c.i.c==e.d.i.c||!WIn(qr(A(M(ai,1),q,8,0,[r.i.n,r.n,r.a])),t))&&!Xi(e)&&(e.c==r?o3(e.a,0,new mr(t)):Ke(e.a,new mr(t)),i&&!Ah(n.a,t)&&(o=u(k(e,(nn(),Tr)),74),o||(o=new fu,H(e,Tr,o)),c=new mr(t),Kt(o,c,o.c.b,o.c),ri(n.a,c)))}function W8e(n){var e,t;for(t=new re(ue(Fr(n).a.Kc(),new Mn));Se(t);)if(e=u(ve(t),17),e.c.i.k!=(Qn(),Qu))throw T(new pw(ON+A7(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function X8e(n,e,t){var i,r,c,o,f,h,l;if(r=JDn(n.Db&254),r==0)n.Eb=t;else{if(r==1)f=x(Zn,rn,1,2,5,1),c=fF(n,e),c==0?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=x(Zn,rn,1,r+1,5,1),o=wa(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:n.Db&i&&(f[l++]=o[h++]);n.Eb=f}n.Db|=e}function xNn(n,e,t){var i,r,c,o;for(this.b=new X,r=0,i=0,o=new E(n);o.a0&&(c=u(un(this.b,0),167),r+=c.o,i+=c.p),r*=2,i*=2,e>1?r=Ht(j.Math.ceil(r*e)):i=Ht(j.Math.ceil(i/e)),this.a=new NQ(r,i)}function FNn(n,e,t,i,r,c){var o,f,h,l,a,d,g,p,v,m,C,S;for(a=i,e.j&&e.o?(p=u(te(n.f,e.A),57),m=p.d.c+p.d.b,--a):m=e.a.c+e.a.b,d=r,t.q&&t.o?(p=u(te(n.f,t.C),57),l=p.d.c,++d):l=t.a.c,C=l-m,h=j.Math.max(2,d-a),f=C/h,v=m+f,g=a;g=0;o+=r?1:-1){for(f=e[o],h=i==(J(),Vn)?r?Gr(f,i):ga(Gr(f,i)):r?ga(Gr(f,i)):Gr(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),11),n.d[a.p]=l++;Yt(t,h)}}function LNn(n,e,t){var i,r,c,o,f,h,l,a;for(c=K(Y(n.b.Kc().Pb())),l=K(Y(iwe(e.b))),i=Df(Vr(n.a),l-t),r=Df(Vr(e.a),t-c),a=st(i,r),Df(a,1/(l-c)),this.a=a,this.b=new X,f=!0,o=n.b.Kc(),o.Pb();o.Ob();)h=K(Y(o.Pb())),f&&h-t>lB&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function V8e(n){var e,t,i,r;if(uke(n,n.n),n.d.c.length>0){for(Wv(n.c);PY(n,u(y(new E(n.e.a)),121))>5,e&=31,i>=n.d)return n.e<0?(kl(),mR):(kl(),X4);if(c=n.d-i,r=x(be,Le,25,c+1,15,1),H5e(r,c,n.a,i,e),n.e<0){for(t=0;t0&&n.a[t]<<32-e){for(t=0;t=0?!1:(t=rg((wu(),Fi),r,e),t?(i=t.Zj(),(i>1||i==-1)&&Ad(jr(Fi,t))!=3):!0)):!1}function Z8e(n,e,t,i){var r,c,o,f,h;return f=Pr(u(D((!e.b&&(e.b=new xn(he,e,4,7)),e.b),0),82)),h=Pr(u(D((!e.c&&(e.c=new xn(he,e,5,8)),e.c),0),82)),At(f)==At(h)||ub(h,f)?null:(o=D8(e),o==t?i:(c=u(te(n.a,o),10),c&&(r=c.e,r)?r:null))}function n7e(n,e){var t;switch(t=u(k(n,(nn(),nP)),276),le(e,"Label side selection ("+t+")",1),t.g){case 0:nNn(n,(cs(),jh));break;case 1:nNn(n,(cs(),Rl));break;case 2:wRn(n,(cs(),jh));break;case 3:wRn(n,(cs(),Rl));break;case 4:QNn(n,(cs(),jh));break;case 5:QNn(n,(cs(),Rl))}ce(e)}function JY(n,e,t){var i,r,c,o,f,h;if(i=Rie(t,n.length),o=n[i],o[0].k==(Qn(),Xt))for(c=n8n(t,o.length),h=e.j,r=0;r0&&(t[0]+=n.d,o-=t[0]),t[2]>0&&(t[2]+=n.d,o-=t[2]),c=j.Math.max(0,o),t[1]=j.Math.max(t[1],o),IX(n,Lc,r.c+i.b+t[0]-(t[1]-o)/2,t),e==Lc&&(n.c.b=c,n.c.c=r.c+i.b+(c-o)/2)}function WNn(){this.c=x(ji,pr,25,(J(),A(M(Zi,1),hc,61,0,[Wr,Kn,Vn,ae,Gn])).length,15,1),this.b=x(ji,pr,25,A(M(Zi,1),hc,61,0,[Wr,Kn,Vn,ae,Gn]).length,15,1),this.a=x(ji,pr,25,A(M(Zi,1),hc,61,0,[Wr,Kn,Vn,ae,Gn]).length,15,1),_G(this.c,xt),_G(this.b,Vt),_G(this.a,Vt)}function Ec(n,e,t){var i,r,c,o;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,n.b==null)n.b=x(be,Le,25,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(i=n.b.length,n.b[i-1]+1==r){n.b[i-1]=c;return}o=x(be,Le,25,i+2,15,1),pc(n.b,0,o,0,i),n.b=o,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||Jw(n)}}function o7e(n,e,t){var i,r,c,o,f,h,l;for(l=e.d,n.a=new Oc(l.c.length),n.c=new we,f=new E(l);f.a=0?n._g(l,!1,!0):Jd(n,t,!1),58));n:for(c=d.Kc();c.Ob();){for(r=u(c.Pb(),56),a=0;a1;)yb(r,r.i-1);return i}function d7e(n,e){var t,i,r,c,o,f,h;for(le(e,"Comment post-processing",1),c=new E(n.b);c.an.d[o.p]&&(t+=CX(n.b,c),fl(n.a,Q(c)));for(;!Uv(n.a);)eV(n.b,u(j2(n.a),19).a)}return t}function JNn(n,e,t){var i,r,c,o;for(c=(!e.a&&(e.a=new V(Pt,e,10,11)),e.a).i,r=new ie((!e.a&&(e.a=new V(Pt,e,10,11)),e.a));r.e!=r.i.gc();)i=u(oe(r),33),(!i.a&&(i.a=new V(Pt,i,10,11)),i.a).i==0||(c+=JNn(n,i,!1));if(t)for(o=At(e);o;)c+=(!o.a&&(o.a=new V(Pt,o,10,11)),o.a).i,o=At(o);return c}function yb(n,e){var t,i,r,c;return n.ej()?(i=null,r=n.fj(),n.ij()&&(i=n.kj(n.pi(e),null)),t=n.Zi(4,c=q2(n,e),null,e,r),n.bj()&&c!=null&&(i=n.dj(c,i)),i?(i.Ei(t),i.Fi()):n.$i(t),c):(c=q2(n,e),n.bj()&&c!=null&&(i=n.dj(c,null),i&&i.Fi()),c)}function w7e(n){var e,t,i,r,c,o,f,h,l,a;for(l=n.a,e=new fi,h=0,i=new E(n.d);i.af.d&&(a=f.d+f.a+l));t.c.d=a,e.a.zc(t,e),h=j.Math.max(h,t.c.d+t.c.a)}return h}function or(){or=N,_S=new _0("COMMENTS",0),Ds=new _0("EXTERNAL_PORTS",1),Pm=new _0("HYPEREDGES",2),KS=new _0("HYPERNODES",3),fv=new _0("NON_FREE_PORTS",4),Mg=new _0("NORTH_SOUTH_PORTS",5),Im=new _0(lHn,6),sv=new _0("CENTER_LABELS",7),ov=new _0("END_LABELS",8),HS=new _0("PARTITIONS",9)}function jb(n){var e,t,i,r,c;for(r=new X,e=new D5((!n.a&&(n.a=new V(Pt,n,10,11)),n.a)),i=new re(ue(Gh(n).a.Kc(),new Mn));Se(i);)t=u(ve(i),79),I(D((!t.b&&(t.b=new xn(he,t,4,7)),t.b),0),186)||(c=Pr(u(D((!t.c&&(t.c=new xn(he,t,5,8)),t.c),0),82)),e.a._b(c)||(r.c[r.c.length]=c));return r}function g7e(n){var e,t,i,r,c,o;for(c=new fi,e=new D5((!n.a&&(n.a=new V(Pt,n,10,11)),n.a)),r=new re(ue(Gh(n).a.Kc(),new Mn));Se(r);)i=u(ve(r),79),I(D((!i.b&&(i.b=new xn(he,i,4,7)),i.b),0),186)||(o=Pr(u(D((!i.c&&(i.c=new xn(he,i,5,8)),i.c),0),82)),e.a._b(o)||(t=c.a.zc(o,c),t==null));return c}function p7e(n,e,t,i,r){return i<0?(i=Qw(n,r,A(M(tn,1),q,2,6,[$L,xL,FL,LL,Q2,NL,BL,RL,_L,KL,HL,qL]),e),i<0&&(i=Qw(n,r,A(M(tn,1),q,2,6,["Jan","Feb","Mar","Apr",Q2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function v7e(n,e,t,i,r){return i<0?(i=Qw(n,r,A(M(tn,1),q,2,6,[$L,xL,FL,LL,Q2,NL,BL,RL,_L,KL,HL,qL]),e),i<0&&(i=Qw(n,r,A(M(tn,1),q,2,6,["Jan","Feb","Mar","Apr",Q2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function m7e(n,e,t,i,r,c){var o,f,h,l;if(f=32,i<0){if(e[0]>=n.length||(f=Di(n,e[0]),f!=43&&f!=45)||(++e[0],i=cM(n,e),i<0))return!1;f==45&&(i=-i)}return f==32&&e[0]-t==2&&r.b==2&&(h=new Sj,l=h.q.getFullYear()-El+El-80,o=l%100,c.a=i==o,i+=(l/100|0)*100+(i=l&&(h=i);h&&(a=j.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function j7e(n,e,t){var i,r,c;if(n.e=t,n.d=0,n.b=0,n.f=1,n.i=e,(n.e&16)==16&&(n.i=oke(n.i)),n.j=n.i.length,Qe(n),c=Ud(n),n.d!=n.j)throw T(new Ce(Pe((je(),$qn))));if(n.g){for(i=0;ixHn?bi(h,n.b):i<=xHn&&i>FHn?bi(h,n.d):i<=FHn&&i>LHn?bi(h,n.c):i<=LHn&&bi(h,n.a),c=eBn(n,h,c);return r}function kl(){kl=N;var n;for(UA=new l1(1,1),kR=new l1(1,10),X4=new l1(0,0),mR=new l1(-1,1),Nin=A(M(vg,1),q,91,0,[X4,UA,new l1(1,2),new l1(1,3),new l1(1,4),new l1(1,5),new l1(1,6),new l1(1,7),new l1(1,8),new l1(1,9),kR]),WA=x(vg,q,91,32,0,1),n=0;n1,f&&(i=new fn(r,t.b),Ke(e.a,i)),Z5(e.a,A(M(ai,1),q,8,0,[g,d]))}function uBn(n){bd(n,new Sa(hd(sd(fd(od(new Jl,mA),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new $2n))),Z(n,mA,c0,Whn),Z(n,mA,Ib,15),Z(n,mA,zM,Q(0)),Z(n,mA,tp,x4)}function nZ(){nZ=N;var n,e,t,i,r,c;for(j9=x(ku,wg,25,255,15,1),lI=x(Fs,_f,25,16,15,1),e=0;e<255;e++)j9[e]=-1;for(t=57;t>=48;t--)j9[t]=t-48<<24>>24;for(i=70;i>=65;i--)j9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)j9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)lI[c]=48+c&Ut;for(n=10;n<=15;n++)lI[n]=65+n-10&Ut}function wM(n,e,t){var i,r,c,o,f,h,l,a;return f=e.i-n.g/2,h=t.i-n.g/2,l=e.j-n.g/2,a=t.j-n.g/2,c=e.g+n.g/2,o=t.g+n.g/2,i=e.f+n.g/2,r=t.f+n.g/2,f>19)return"-"+sBn(U3(n));for(t=n,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=M$(LM),t=DZ(t,r,!0),e=""+m8n(Sl),!(t.l==0&&t.m==0&&t.h==0))for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function S7e(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",e=Object.create(null);if(e[n]!==void 0)return!1;var t=Object.getOwnPropertyNames(e);return!(t.length!=0||(e[n]=42,e[n]!==42)||Object.getOwnPropertyNames(e).length==0)}function P7e(n){var e,t,i,r,c,o,f;for(e=!1,t=0,r=new E(n.d.b);r.a=n.a||!KJ(e,t))return-1;if(C3(u(i.Kb(e),20)))return 1;for(r=0,o=u(i.Kb(e),20).Kc();o.Ob();)if(c=u(o.Pb(),17),h=c.c.i==e?c.d.i:c.c.i,f=tZ(n,h,t,i),f==-1||(r=j.Math.max(r,f),r>n.c-1))return-1;return r+1}function oBn(n,e){var t,i,r,c,o,f;if(B(e)===B(n))return!0;if(!I(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(o=i.Kc(),n.ni()){for(t=0;t0){if(n.qj(),e!=null){for(c=0;c>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw T(new If("Invalid hexadecimal"))}}function $7e(n,e,t){var i,r,c,o;for(le(t,"Processor order nodes",2),n.a=K(Y(k(e,(Yd(),Mon)))),r=new Ct,o=_e(e.b,0);o.b!=o.d.c;)c=u(Re(o),86),on(sn(k(c,(cc(),ew))))&&Kt(r,c,r.c.b,r.c);i=(ne(r.b!=0),u(r.a.a.c,86)),SRn(n,i),!t.b&&J$(t,1),sZ(n,i,0-K(Y(k(i,(cc(),EP))))/2,0),!t.b&&J$(t,1),ce(t)}function gM(){gM=N,grn=new kw("SPIRAL",0),arn=new kw("LINE_BY_LINE",1),drn=new kw("MANHATTAN",2),lrn=new kw("JITTER",3),MR=new kw("QUADRANTS_LINE_BY_LINE",4),wrn=new kw("QUADRANTS_MANHATTAN",5),brn=new kw("QUADRANTS_JITTER",6),hrn=new kw("COMBINE_LINE_BY_LINE_MANHATTAN",7),frn=new kw("COMBINE_JITTER_MANHATTAN",8)}function hBn(n,e,t,i){var r,c,o,f,h,l;for(h=wF(n,t),l=wF(e,t),r=!1;h&&l&&(i||P3e(h,l,t));)o=wF(h,t),f=wF(l,t),U8(e),U8(n),c=h.c,mL(h,!1),mL(l,!1),t?(wb(e,l.p,c),e.p=l.p,wb(n,h.p+1,c),n.p=h.p):(wb(n,h.p,c),n.p=h.p,wb(e,l.p+1,c),e.p=l.p),yr(h,null),yr(l,null),h=o,l=f,r=!0;return r}function x7e(n,e,t,i){var r,c,o,f,h;for(r=!1,c=!1,f=new E(i.j);f.a=e.length)throw T(new vr("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new v8(i),ex(this.e,this.c,(J(),Gn)),this.i=new v8(i),ex(this.i,this.c,Vn),this.f=new oCn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Qn(),Xt),this.a&&J5e(this,n,e.length)}function aBn(n,e){var t,i,r,c,o,f;c=!n.B.Hc((Fu(),Dy)),o=n.B.Hc(hH),n.a=new s$n(o,c,n.c),n.n&&UW(n.a.n,n.n),XI(n.g,(Ko(),Lc),n.a),e||(i=new w6(1,c,n.c),i.n.a=n.k,k2(n.p,(J(),Kn),i),r=new w6(1,c,n.c),r.n.d=n.k,k2(n.p,ae,r),f=new w6(0,c,n.c),f.n.c=n.k,k2(n.p,Gn,f),t=new w6(0,c,n.c),t.n.b=n.k,k2(n.p,Vn,t))}function L7e(n){var e,t,i;switch(e=u(k(n.d,(nn(),Qh)),218),e.g){case 2:t=aTe(n);break;case 3:t=(i=new X,Bt(gt(Xc(Hr(Hr(new $n(null,new Fn(n.d.b,16)),new Pbn),new Ibn),new Obn),new gbn),new U5n(i)),i);break;default:throw T(new Dr("Compaction not supported for "+e+" edges."))}xje(n,t),$i(new _p(n.g),new G5n(n))}function N7e(n,e){var t;return t=new kI,e&&Sr(t,u(te(n.a,xy),94)),I(e,470)&&Sr(t,u(te(n.a,Fy),94)),I(e,354)?(Sr(t,u(te(n.a,Br),94)),t):(I(e,82)&&Sr(t,u(te(n.a,he),94)),I(e,239)?(Sr(t,u(te(n.a,Pt),94)),t):I(e,186)?(Sr(t,u(te(n.a,Ru),94)),t):(I(e,352)&&Sr(t,u(te(n.a,di),94)),t))}function zo(){zo=N,J4=new tr((Xe(),qP),Q(1)),sS=new tr(Za,80),iWn=new tr(Chn,5),XUn=new tr(Mp,x4),eWn=new tr(cH,Q(1)),tWn=new tr(uH,(qn(),!0)),$rn=new pd(50),ZUn=new tr(Ya,$rn),Irn=_P,xrn=r9,VUn=new tr(QK,!1),Drn=Cy,YUn=Bl,JUn=Ja,QUn=_g,nWn=tw,Orn=(nY(),KUn),BR=zUn,uS=_Un,NR=HUn,Frn=GUn}function B7e(n){var e,t,i,r,c,o,f,h;for(h=new bSn,f=new E(n.a);f.a0&&e=0)return!1;if(e.p=t.b,W(t.e,e),r==(Qn(),gi)||r==Ac){for(o=new E(e.j);o.a1||o==-1)&&(c|=16),r.Bb&uc&&(c|=64)),t.Bb&Yi&&(c|=Lb),c|=Co):I(e,457)?c|=512:(i=e.Bj(),i&&i.i&1&&(c|=256)),n.Bb&512&&(c|=128),c}function P6(n,e){var t,i,r,c,o;for(n=n==null?iu:(_n(n),n),r=0;rn.d[f.p]&&(t+=CX(n.b,c),fl(n.a,Q(c)))):++o;for(t+=n.b.d*o;!Uv(n.a);)eV(n.b,u(j2(n.a),19).a)}return t}function W7e(n,e){var t;return n.f==jH?(t=Ad(jr((wu(),Fi),e)),n.e?t==4&&e!=(U2(),$p)&&e!=(U2(),Dp)&&e!=(U2(),EH)&&e!=(U2(),CH):t==2):n.d&&(n.d.Hc(e)||n.d.Hc(S2(jr((wu(),Fi),e)))||n.d.Hc(rg((wu(),Fi),n.b,e)))?!0:n.f&&zY((wu(),n.f),A8(jr(Fi,e)))?(t=Ad(jr(Fi,e)),n.e?t==4:t==2):!1}function X7e(n,e,t,i){var r,c,o,f,h,l,a,d;return o=u(hn(t,(Xe(),Ap)),8),h=o.a,a=o.b+n,r=j.Math.atan2(a,h),r<0&&(r+=ag),r+=e,r>ag&&(r-=ag),f=u(hn(i,Ap),8),l=f.a,d=f.b+n,c=j.Math.atan2(d,l),c<0&&(c+=ag),c+=e,c>ag&&(c-=ag),nf(),ko(1e-10),j.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:rc?1:gd(isNaN(r),isNaN(c))}function QF(n){var e,t,i,r,c,o,f;for(f=new we,i=new E(n.a.b);i.a=n.o)throw T(new zq);f=e>>5,o=e&31,c=Ih(1,ge(Ih(o,1))),r?n.n[t][f]=uf(n.n[t][f],c):n.n[t][f]=ci(n.n[t][f],QU(c)),c=Ih(c,1),i?n.n[t][f]=uf(n.n[t][f],c):n.n[t][f]=ci(n.n[t][f],QU(c))}catch(h){throw h=jt(h),I(h,320)?T(new vr(pN+n.o+"*"+n.p+vN+e+Ji+t+mN)):T(h)}}function sZ(n,e,t,i){var r,c,o;e&&(c=K(Y(k(e,(cc(),O1))))+i,o=t+K(Y(k(e,EP)))/2,H(e,jK,Q(ge(eu(j.Math.round(c))))),H(e,mon,Q(ge(eu(j.Math.round(o))))),e.d.b==0||sZ(n,u(aE((r=_e(new U1(e).a.d,0),new t2(r))),86),t+K(Y(k(e,EP)))+n.a,i+K(Y(k(e,mv)))),k(e,yK)!=null&&sZ(n,u(k(e,yK),86),t,i))}function Q7e(n,e){var t,i,r,c,o,f,h,l,a,d,g;for(h=qi(e.a),r=K(Y(k(h,(nn(),Xa))))*2,a=K(Y(k(h,$g))),l=j.Math.max(r,a),c=x(ji,pr,25,e.f-e.c+1,15,1),i=-l,t=0,f=e.b.Kc();f.Ob();)o=u(f.Pb(),10),i+=n.a[o.c.p]+l,c[t++]=i;for(i+=n.a[e.a.c.p]+l,c[t++]=i,g=new E(e.e);g.a0&&(i=(!n.n&&(n.n=new V(Br,n,1,7)),u(D(n.n,0),137)).a,!i||De(De((e.a+=' "',e),i),'"'))),De(ad(De(ad(De(ad(De(ad((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function jBn(n){var e,t,i;return n.Db&64?MF(n):(e=new Ju(Dtn),t=n.k,t?De(De((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new V(Br,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new V(Br,n,1,7)),u(D(n.n,0),137)).a,!i||De(De((e.a+=' "',e),i),'"'))),De(ad(De(ad(De(ad(De(ad((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function YF(n,e){var t,i,r,c,o,f,h;if(e==null||e.length==0)return null;if(r=u(kc(n.a,e),149),!r){for(i=(f=new Mh(n.b).a.vc().Kc(),new x0(f));i.a.Ob();)if(t=(c=u(i.a.Pb(),42),u(c.dd(),149)),o=t.c,h=e.length,An(o.substr(o.length-h,h),e)&&(e.length==o.length||Di(o,o.length-e.length-1)==46)){if(r)return null;r=t}r&&kr(n.a,e,r)}return r}function Z7e(n,e){var t,i,r,c;return t=new zln,i=u(es(Xc(new $n(null,new Fn(n.f,16)),t),ib(new Qg,new Jg,new Yg,new Zg,A(M(Nu,1),z,132,0,[(af(),Nb),hs]))),21),r=i.gc(),i=u(es(Xc(new $n(null,new Fn(e.f,16)),t),ib(new Qg,new Jg,new Yg,new Zg,A(M(Nu,1),z,132,0,[Nb,hs]))),21),c=i.gc(),rr.p?(ui(c,ae),c.d&&(f=c.o.b,e=c.a.b,c.a.b=f-e)):c.j==ae&&r.p>n.p&&(ui(c,Kn),c.d&&(f=c.o.b,e=c.a.b,c.a.b=-(f-e)));break}return r}function eke(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v;if(c=t,t1,f&&(i=new fn(r,t.b),Ke(e.a,i)),Z5(e.a,A(M(ai,1),q,8,0,[g,d]))}function ZF(n,e,t){var i,r,c,o,f,h;if(e)if(t<=-1){if(i=On(e.Tg(),-1-t),I(i,99))return u(i,18);for(o=u(e.ah(i),153),f=0,h=o.gc();f0){for(r=h.length;r>0&&h[r-1]=="";)--r;r=40,o&&aye(n),gje(n),V8e(n),t=WDn(n),i=0;t&&i0&&Ke(n.f,c)):(n.c[o]-=l+1,n.c[o]<=0&&n.a[o]>0&&Ke(n.e,c))))}function Ake(n){var e,t,i,r,c,o,f,h,l;for(f=new Q1(u(pe(new Wln),62)),l=Vt,t=new E(n.d);t.a=0&&ht?e:t;l<=d;++l)l==t?f=i++:(c=r[l],a=v.rl(c.ak()),l==e&&(h=l==d&&!a?i-1:i),a&&++i);return g=u(a6(n,e,t),72),f!=h&&zp(n,new q8(n.e,7,o,Q(f),p.dd(),h)),g}}else return u(FF(n,e,t),72);return u(a6(n,e,t),72)}function Oke(n,e){var t,i,r,c,o,f,h;for(le(e,"Port order processing",1),h=u(k(n,(nn(),Isn)),421),i=new E(n.b);i.a=0&&(f=x3e(n,o),!(f&&(l<22?h.l|=1<>>1,o.m=a>>>1|(d&1)<<21,o.l=g>>>1|(a&1)<<21,--l;return t&&hx(h),c&&(i?(Sl=U3(n),r&&(Sl=FOn(Sl,(O3(),vin)))):Sl=Bc(n.l,n.m,n.h)),h}function xke(n,e){var t,i,r,c,o,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new E(n.a);f.a0&&(Me(0,n.length),n.charCodeAt(0)==45||(Me(0,n.length),n.charCodeAt(0)==43))?1:0,i=o;it)throw T(new If(r0+n+'"'));return f}function Fke(n){var e,t,i,r,c,o,f;for(o=new Ct,c=new E(n.a);c.a1)&&e==1&&u(n.a[n.b],10).k==(Qn(),Qu)?X2(u(n.a[n.b],10),(cs(),jh)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.c-1&n.a.length-1],10).k==(Qn(),Qu)?X2(u(n.a[n.c-1&n.a.length-1],10),(cs(),Rl)):(n.c-n.b&n.a.length-1)==2?(X2(u(u6(n),10),(cs(),jh)),X2(u(u6(n),10),Rl)):P9e(n,r),jX(n)}function Bke(n,e,t){var i,r,c,o,f;for(c=0,r=new ie((!n.a&&(n.a=new V(Pt,n,10,11)),n.a));r.e!=r.i.gc();)i=u(oe(r),33),o="",(!i.n&&(i.n=new V(Br,i,1,7)),i.n).i==0||(o=u(D((!i.n&&(i.n=new V(Br,i,1,7)),i.n),0),137).a),f=new dx(c++,e,o),Sr(f,i),H(f,(cc(),Jm),i),f.e.b=i.j+i.f/2,f.f.a=j.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=j.Math.max(i.f,1),Ke(e.b,f),_c(t.f,i,f)}function Rke(n){var e,t,i,r,c;i=u(k(n,(G(),rt)),33),c=u(hn(i,(nn(),Ua)),174).Hc((Vu(),ed)),n.e||(r=u(k(n,Sc),21),e=new fn(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),r.Hc((or(),Ds))?(gr(i,Lt,(Ai(),Pc)),e0(i,e.a,e.b,!1,!0)):on(sn(hn(i,z_)))||e0(i,e.a,e.b,!0,!0)),c?gr(i,Ua,Cn(ed)):gr(i,Ua,(t=u(Lo(a9),9),new ms(t,u(wo(t,t.length),9),0)))}function wZ(n,e,t){var i,r,c,o;if(e[0]>=n.length)return t.o=0,!0;switch(Di(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],o=cM(n,e),o==0&&e[0]==c)return!1;if(e[0]=0&&f!=t&&(c=new wi(n,1,f,o,null),i?i.Ei(c):i=c),t>=0&&(c=new wi(n,1,t,f==t?o:null,e),i?i.Ei(c):i=c)),i}function _Bn(n){var e,t,i;if(n.b==null){if(i=new i1,n.i!=null&&(dr(i,n.i),i.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(e1e(n.i)||(i.a+="//"),dr(i,n.a)),n.d!=null&&(i.a+="/",dr(i,n.d)),n.f&16&&(i.a+="/"),e=0,t=n.j.length;eg?!1:(d=(h=F6(i,g,!1),h.a),a+f+d<=e.b&&(H8(t,c-t.s),t.c=!0,H8(i,c-t.s),C7(i,t.s,t.t+t.d+f),i.k=!0,AV(t.q,i),p=!0,r&&(JC(e,i),i.j=e,n.c.length>o&&(P7((Ln(o,n.c.length),u(n.c[o],200)),i),(Ln(o,n.c.length),u(n.c[o],200)).a.c.length==0&&h1(n,o)))),p)}function Wke(n,e){var t,i,r,c,o,f;if(le(e,"Partition midprocessing",1),r=new Id,Bt(gt(new $n(null,new Fn(n.a,16)),new w0n),new I5n(r)),r.d!=0){for(f=u(es($Mn((c=r.i,new $n(null,(c||(r.i=new Sw(r,r.c))).Nc()))),ba(new G1,new q1,new z1,A(M(Nu,1),z,132,0,[(af(),hs)]))),15),i=f.Kc(),t=u(i.Pb(),19);i.Ob();)o=u(i.Pb(),19),Q9e(u(ct(r,t),21),u(ct(r,o),21)),t=o;ce(e)}}function qBn(n,e,t){var i,r,c,o,f,h,l,a;if(e.p==0){for(e.p=1,o=t,o||(r=new X,c=(i=u(Lo(Zi),9),new ms(i,u(wo(i,i.length),9),0)),o=new Pi(r,c)),u(o.a,15).Fc(e),e.k==(Qn(),Xt)&&u(o.b,21).Fc(u(k(e,(G(),nc)),61)),h=new E(e.j);h.a0){if(r=u(n.Ab.g,1934),e==null){for(c=0;c1)for(i=new E(r);i.at.s&&ff&&(f=r,a.c=x(Zn,rn,1,0,5,1)),r==f&&W(a,new Pi(t.c.i,t)));Pn(),bi(a,n.c),X0(n.b,h.p,a)}}function Zke(n,e){var t,i,r,c,o,f,h,l,a;for(o=new E(e.b);o.af&&(f=r,a.c=x(Zn,rn,1,0,5,1)),r==f&&W(a,new Pi(t.d.i,t)));Pn(),bi(a,n.c),X0(n.f,h.p,a)}}function zBn(n){bd(n,new Sa(hd(sd(fd(od(new Jl,o0),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new m2n))),Z(n,o0,c0,Ufn),Z(n,o0,Ib,15),Z(n,o0,bk,Q(0)),Z(n,o0,gA,cn(qfn)),Z(n,o0,hg,cn(LZn)),Z(n,o0,ip,cn(NZn)),Z(n,o0,tp,qHn),Z(n,o0,wk,cn(Gfn)),Z(n,o0,rp,cn(zfn)),Z(n,o0,Mtn,cn(UK)),Z(n,o0,hA,cn(FZn))}function UBn(n,e){var t,i,r,c,o,f,h,l,a;if(r=n.i,o=r.o.a,c=r.o.b,o<=0&&c<=0)return J(),Wr;switch(l=n.n.a,a=n.n.b,f=n.o.a,t=n.o.b,e.g){case 2:case 1:if(l<0)return J(),Gn;if(l+f>o)return J(),Vn;break;case 4:case 3:if(a<0)return J(),Kn;if(a+t>c)return J(),ae}return h=(l+f/2)/o,i=(a+t/2)/c,h+i<=1&&h-i<=0?(J(),Gn):h+i>=1&&h-i>=0?(J(),Vn):i<.5?(J(),Kn):(J(),ae)}function nye(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m;for(t=!1,a=K(Y(k(e,(nn(),C0)))),v=jl*a,r=new E(e.b);r.ah+v&&(m=d.g+g.g,g.a=(g.g*g.a+d.g*d.a)/m,g.g=m,d.f=g,t=!0)),c=f,d=g;return t}function WBn(n,e,t,i,r,c,o){var f,h,l,a,d,g;for(g=new b2,l=e.Kc();l.Ob();)for(f=u(l.Pb(),839),d=new E(f.wf());d.a0?f.a?(l=f.b.rf().b,r>l&&(n.v||f.c.d.c.length==1?(o=(r-l)/2,f.d.d=o,f.d.a=o):(t=u(un(f.c.d,0),181).rf().b,i=(t-l)/2,f.d.d=j.Math.max(0,i),f.d.a=r-i-l))):f.d.a=n.t+r:L5(n.u)&&(c=GJ(f.b),c.d<0&&(f.d.d=-c.d),c.d+c.a>f.b.rf().b&&(f.d.a=c.d+c.a-f.b.rf().b))}function iye(n,e){var t;switch(Q8(n)){case 6:return mi(e);case 7:return H0(e);case 8:return K0(e);case 3:return Array.isArray(e)&&(t=Q8(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===AL;case 12:return e!=null&&(typeof e===nk||typeof e==AL);case 0:return Qx(e,n.__elementTypeId$);case 2:return xD(e)&&e.im!==Vg;case 1:return xD(e)&&e.im!==Vg||Qx(e,n.__elementTypeId$);default:return!0}}function XBn(n,e){var t,i,r,c;return i=j.Math.min(j.Math.abs(n.c-(e.c+e.b)),j.Math.abs(n.c+n.b-e.c)),c=j.Math.min(j.Math.abs(n.d-(e.d+e.a)),j.Math.abs(n.d+n.a-e.d)),t=j.Math.abs(n.c+n.b/2-(e.c+e.b/2)),t>n.b/2+e.b/2||(r=j.Math.abs(n.d+n.a/2-(e.d+e.a/2)),r>n.a/2+e.a/2)?1:t==0&&r==0?0:t==0?c/r+1:r==0?i/t+1:j.Math.min(i/t,c/r)+1}function VBn(n,e){var t,i,r,c,o,f;return r=lV(n),f=lV(e),r==f?n.e==e.e&&n.a<54&&e.a<54?n.fe.f?1:0:(i=n.e-e.e,t=(n.d>0?n.d:j.Math.floor((n.a-1)*uKn)+1)-(e.d>0?e.d:j.Math.floor((e.a-1)*uKn)+1),t>i+1?r:t0&&(o=xw(o,pRn(i))),A$n(c,o))):r0&&n.d!=(J5(),KR)&&(f+=o*(i.d.a+n.a[e.b][i.b]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(J5(),RR)&&(h+=o*(i.d.b+n.a[e.b][i.b]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new fn(f/c,e.d.b);case 2:return new fn(e.d.a,h/c);default:return new fn(f/c,h/c)}}function QBn(n,e){Q3();var t,i,r,c,o;if(o=u(k(n.i,(nn(),Lt)),98),c=n.j.g-e.j.g,c!=0||!(o==(Ai(),nd)||o==Ch||o==Pc))return 0;if(o==(Ai(),nd)&&(t=u(k(n,P1),19),i=u(k(e,P1),19),t&&i&&(r=t.a-i.a,r!=0)))return r;switch(n.j.g){case 1:return Zt(n.n.a,e.n.a);case 2:return Zt(n.n.b,e.n.b);case 3:return Zt(e.n.a,n.n.a);case 4:return Zt(e.n.b,n.n.b);default:throw T(new Dr(Fnn))}}function JBn(n){var e,t,i,r,c,o;for(t=(!n.a&&(n.a=new Jt(to,n,5)),n.a).i+2,o=new Oc(t),W(o,new fn(n.j,n.k)),Bt(new $n(null,(!n.a&&(n.a=new Jt(to,n,5)),new Fn(n.a,16))),new z6n(o)),W(o,new fn(n.b,n.c)),e=1;e0&&(h7(h,!1,(sr(),Ys)),h7(h,!0,So)),Yc(e.g,new H7n(n,t)),it(n.g,e,t)}function ZBn(){ZBn=N;var n;for(Min=A(M(be,1),Le,25,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),pR=x(be,Le,25,37,15,1),yzn=A(M(be,1),Le,25,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),Ain=x(Ql,ZL,25,37,14,1),n=2;n<=36;n++)pR[n]=Ht(j.Math.pow(n,Min[n])),Ain[n]=I7($M,pR[n])}function cye(n){var e;if((!n.a&&(n.a=new V(Tt,n,6,6)),n.a).i!=1)throw T(new Hn(oqn+(!n.a&&(n.a=new V(Tt,n,6,6)),n.a).i));return e=new fu,o7(u(D((!n.b&&(n.b=new xn(he,n,4,7)),n.b),0),82))&&Vi(e,F_n(n,o7(u(D((!n.b&&(n.b=new xn(he,n,4,7)),n.b),0),82)),!1)),o7(u(D((!n.c&&(n.c=new xn(he,n,5,8)),n.c),0),82))&&Vi(e,F_n(n,o7(u(D((!n.c&&(n.c=new xn(he,n,5,8)),n.c),0),82)),!0)),e}function nRn(n,e){var t,i,r,c,o;for(e.d?r=n.a.c==(Lf(),T0)?Fr(e.b):ni(e.b):r=n.a.c==(Lf(),I1)?Fr(e.b):ni(e.b),c=!1,i=new re(ue(r.a.Kc(),new Mn));Se(i);)if(t=u(ve(i),17),o=on(n.a.f[n.a.g[e.b.p].p]),!(!o&&!Xi(t)&&t.c.i.c==t.d.i.c)&&!(on(n.a.n[n.a.g[e.b.p].p])||on(n.a.n[n.a.g[e.b.p].p]))&&(c=!0,Ah(n.b,n.a.g[w3e(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function uye(n,e,t,i,r){var c,o,f,h,l,a,d;for(Pn(),bi(n,new I2n),f=new Ii(n,0),d=new X,c=0;f.bc*2?(a=new XC(d),l=du(o)/Gu(o),h=EL(a,e,new r2,t,i,r,l),st(No(a.e),h),d.c=x(Zn,rn,1,0,5,1),c=0,d.c[d.c.length]=a,d.c[d.c.length]=o,c=du(a)*Gu(a)+du(o)*Gu(o)):(d.c[d.c.length]=o,c+=du(o)*Gu(o));return d}function pZ(n,e,t){var i,r,c,o,f,h,l;if(i=t.gc(),i==0)return!1;if(n.ej())if(h=n.fj(),DQ(n,e,t),o=i==1?n.Zi(3,null,t.Kc().Pb(),e,h):n.Zi(5,null,t,e,h),n.bj()){for(f=i<100?null:new X1(i),c=e+i,r=e;r0){for(o=0;o>16==-15&&n.Cb.nh()&&R$(new F$(n.Cb,9,13,t,n.c,v1(Ou(u(n.Cb,59)),n))):I(n.Cb,88)&&n.Db>>16==-23&&n.Cb.nh()&&(e=n.c,I(e,88)||(e=(Sn(),uo)),I(t,88)||(t=(Sn(),uo)),R$(new F$(n.Cb,9,10,t,e,v1(wc(u(n.Cb,26)),n)))))),n.c}function sye(n,e){var t,i,r,c,o,f,h,l,a,d;for(le(e,"Hypernodes processing",1),r=new E(n.b);r.at);return r}function tRn(n,e){var t,i,r;i=xu(n.d,1)!=0,!on(sn(k(e.j,(G(),p0))))&&!on(sn(k(e.j,Pg)))||B(k(e.j,(nn(),xl)))===B((Rh(),Fl))?e.c.Tf(e.e,i):i=on(sn(k(e.j,p0))),G7(n,e,i,!0),on(sn(k(e.j,Pg)))&&H(e.j,Pg,(qn(),!1)),on(sn(k(e.j,p0)))&&(H(e.j,p0,(qn(),!1)),H(e.j,Pg,!0)),t=OF(n,e);do{if(EV(n),t==0)return 0;i=!i,r=t,G7(n,e,i,!1),t=OF(n,e)}while(r>t);return r}function iRn(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v;if(e==t)return!0;if(e=AY(n,e),t=AY(n,t),i=iF(e),i){if(a=iF(t),a!=i)return a?(h=i.Dj(),v=a.Dj(),h==v&&h!=null):!1;if(o=(!e.d&&(e.d=new Jt(ar,e,1)),e.d),c=o.i,g=(!t.d&&(t.d=new Jt(ar,t,1)),t.d),c==g.i){for(l=0;l0,f=ST(e,c),Xz(t?f.b:f.g,e),Hw(f).c.length==1&&Kt(i,f,i.c.b,i.c),r=new Pi(c,e),fl(n.o,r),Qc(n.e.a,c))}function sRn(n,e){var t,i,r,c,o,f,h;return i=j.Math.abs(UE(n.b).a-UE(e.b).a),f=j.Math.abs(UE(n.b).b-UE(e.b).b),r=0,h=0,t=1,o=1,i>n.b.b/2+e.b.b/2&&(r=j.Math.min(j.Math.abs(n.b.c-(e.b.c+e.b.b)),j.Math.abs(n.b.c+n.b.b-e.b.c)),t=1-r/i),f>n.b.a/2+e.b.a/2&&(h=j.Math.min(j.Math.abs(n.b.d-(e.b.d+e.b.a)),j.Math.abs(n.b.d+n.b.a-e.b.d)),o=1-h/f),c=j.Math.min(t,o),(1-c)*j.Math.sqrt(i*i+f*f)}function dye(n){var e,t,i,r;for(jL(n,n.e,n.f,(Pd(),Nl),!0,n.c,n.i),jL(n,n.e,n.f,Nl,!1,n.c,n.i),jL(n,n.e,n.f,Lg,!0,n.c,n.i),jL(n,n.e,n.f,Lg,!1,n.c,n.i),wye(n,n.c,n.e,n.f,n.i),i=new Ii(n.i,0);i.b=65;t--)Af[t]=t-65<<24>>24;for(i=122;i>=97;i--)Af[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)Af[r]=r-48+52<<24>>24;for(Af[43]=62,Af[47]=63,c=0;c<=25;c++)R1[c]=65+c&Ut;for(o=26,h=0;o<=51;++o,h++)R1[o]=97+h&Ut;for(n=52,f=0;n<=61;++n,f++)R1[n]=48+f&Ut;R1[62]=43,R1[63]=47}function bye(n,e){var t,i,r,c,o,f,h,l,a,d,g,p;if(n.dc())return new Li;for(l=0,d=0,r=n.Kc();r.Ob();)i=u(r.Pb(),37),c=i.f,l=j.Math.max(l,c.a),d+=c.a*c.b;for(l=j.Math.max(l,j.Math.sqrt(d)*K(Y(k(u(n.Kc().Pb(),37),(nn(),XS))))),g=0,p=0,h=0,t=e,f=n.Kc();f.Ob();)o=u(f.Pb(),37),a=o.f,g+a.a>l&&(g=0,p+=h+e,h=0),I6(o,g,p),t=j.Math.max(t,g+a.a),h=j.Math.max(h,a.b),g+=a.a+e;return new fn(t+e,p+h+e)}function wye(n,e,t,i,r){var c,o,f,h,l,a,d;for(o=new E(e);o.ac)return J(),Vn;break;case 4:case 3:if(h<0)return J(),Kn;if(h+n.f>r)return J(),ae}return o=(f+n.g/2)/c,t=(h+n.f/2)/r,o+t<=1&&o-t<=0?(J(),Gn):o+t>=1&&o-t>=0?(J(),Vn):t<.5?(J(),Kn):(J(),ae)}function gye(n,e,t,i,r){var c,o;if(c=Hi(ci(e[0],fr),ci(i[0],fr)),n[0]=ge(c),c=il(c,32),t>=r){for(o=1;o0&&(r.b[o++]=0,r.b[o++]=c.b[0]-1),e=1;e0&&($I(h,h.d-r.d),r.c==(Bo(),Ll)&&ate(h,h.a-r.d),h.d<=0&&h.i>0&&Kt(e,h,e.c.b,e.c)));for(c=new E(n.f);c.a0&&(rj(f,f.i-r.d),r.c==(Bo(),Ll)&&dte(f,f.b-r.d),f.i<=0&&f.d>0&&Kt(t,f,t.c.b,t.c)))}function pye(n,e,t){var i,r,c,o,f,h,l,a;for(le(t,"Processor compute fanout",1),Eu(n.b),Eu(n.a),f=null,c=_e(e.b,0);!f&&c.b!=c.d.c;)l=u(Re(c),86),on(sn(k(l,(cc(),ew))))&&(f=l);for(h=new Ct,Kt(h,f,h.c.b,h.c),v_n(n,h),a=_e(e.b,0);a.b!=a.d.c;)l=u(Re(a),86),o=Te(k(l,(cc(),Qm))),r=kc(n.b,o)!=null?u(kc(n.b,o),19).a:0,H(l,yP,Q(r)),i=1+(kc(n.a,o)!=null?u(kc(n.a,o),19).a:0),H(l,QJn,Q(i));ce(t)}function vye(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v;for(g=eve(n,t),h=0;h0),i.a.Xb(i.c=--i.b),d>g+h&&Uu(i);for(o=new E(p);o.a0),i.a.Xb(i.c=--i.b)}}function mye(){Je();var n,e,t,i,r,c;if(MH)return MH;for(n=new ns(4),Tb(n,yl(rR,!0)),B6(n,yl("M",!0)),B6(n,yl("C",!0)),c=new ns(4),i=0;i<11;i++)Ec(c,i,i);return e=new ns(4),Tb(e,yl("M",!0)),Ec(e,4448,4607),Ec(e,65438,65439),r=new j5(2),Pa(r,n),Pa(r,C9),t=new j5(2),t.$l(RE(c,yl("L",!0))),t.$l(e),t=new eb(3,t),t=new OW(r,t),MH=t,MH}function kye(n){var e,t;if(e=Te(hn(n,(Xe(),i9))),!EOn(e,n)&&!da(n,jv)&&((!n.a&&(n.a=new V(Pt,n,10,11)),n.a).i!=0||on(sn(hn(n,jy)))))if(e==null||pb(e).length==0){if(!EOn(Jn,n))throw t=De(De(new Ju("Unable to load default layout algorithm "),Jn)," for unconfigured node "),AM(n,t),T(new pw(t.a))}else throw t=De(De(new Ju("Layout algorithm '"),e),"' not found for "),AM(n,t),T(new pw(t.a))}function cL(n){var e,t,i,r,c,o,f,h,l,a,d,g,p;if(t=n.i,e=n.n,n.b==0)for(p=t.c+e.b,g=t.b-e.b-e.c,o=n.a,h=0,a=o.length;h0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=j.Math.max(i[1],d),KE(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(c=n.a,f=0,l=c.length;f0?(n.n.c.length-1)*n.i:0,i=new E(n.n);i.a1)for(i=_e(r,0);i.b!=i.d.c;)for(t=u(Re(i),231),c=0,h=new E(t.e);h.a0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=j.Math.max(e[1],d),HE(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(v=i.d+t.d,p=i.a-t.d-t.a,o=n.a,h=0,a=o.length;h=0&&c!=t))throw T(new Hn(Tk));for(r=0,h=0;h0||Gd(r.b.d,n.b.d+n.b.a)==0&&i.b<0||Gd(r.b.d+r.b.a,n.b.d)==0&&i.b>0){f=0;break}}else f=j.Math.min(f,lLn(n,r,i));f=j.Math.min(f,lRn(n,c,f,i))}return f}function V7(n,e){var t,i,r,c,o,f,h;if(n.b<2)throw T(new Hn("The vector chain must contain at least a source and a target point."));for(r=(ne(n.b!=0),u(n.a.a.c,8)),fE(e,r.a,r.b),h=new w2((!e.a&&(e.a=new Jt(to,e,5)),e.a)),o=_e(n,1);o.aK(ef(o.g,o.d[0]).a)?(ne(h.b>0),h.a.Xb(h.c=--h.b),U0(h,o),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new X),f.e).Mc(e),l=(!f.e&&(f.e=new X),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new X),f.e).Fc(o),++o.c));r||(i.c[i.c.length]=o)}function bRn(n){var e,t,i;if(Cw(u(k(n,(nn(),Lt)),98)))for(t=new E(n.j);t.a>>0,"0"+e.toString(16)),i="\\x"+Yu(t,t.length-2,t.length)):n>=Yi?(t=(e=n>>>0,"0"+e.toString(16)),i="\\v"+Yu(t,t.length-6,t.length)):i=""+String.fromCharCode(n&Ut)}return i}function sL(n,e){var t,i,r,c,o,f,h,l,a,d;if(o=n.e,h=e.e,h==0)return n;if(o==0)return e.e==0?e:new Pw(-e.e,e.d,e.a);if(c=n.d,f=e.d,c+f==2)return t=ci(n.a[0],fr),i=ci(e.a[0],fr),o<0&&(t=I3(t)),h<0&&(i=I3(i)),E7(gl(t,i));if(r=c!=f?c>f?1:-1:nQ(n.a,e.a,c),r==-1)d=-h,a=o==h?P$(e.a,f,n.a,c):O$(e.a,f,n.a,c);else if(d=o,o==h){if(r==0)return kl(),X4;a=P$(n.a,c,e.a,f)}else a=O$(n.a,c,e.a,f);return l=new Pw(d,a.length,a),z5(l),l}function CZ(n){var e,t,i,r,c,o;for(this.e=new X,this.a=new X,t=n.b-1;t<3;t++)o3(n,0,u(Go(n,0),8));if(n.b<4)throw T(new Hn("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,a9e(this,n.b+this.b-1),o=new X,c=new E(this.e),e=0;e=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){if(o=u(un(e.n,e.n.c.length-1),211),o.e+o.d+t.g+r<=i&&(c=u(un(e.n,e.n.c.length-1),211),c.f-n.f+t.f<=n.b||n.a.c.length==1))return EQ(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||n.a.c.length==1))return W(e.b,t),f=u(un(e.n,e.n.c.length-1),211),W(e.n,new bC(e.s,f.f+f.a+e.i,e.i)),cJ(u(un(e.n,e.n.c.length-1),211),t),oRn(e,t),!0}return!1}function gRn(n,e,t){var i,r,c,o;return n.ej()?(r=null,c=n.fj(),i=n.Zi(1,o=K$(n,e,t),t,e,c),n.bj()&&!(n.ni()&&o!=null?tt(o,t):B(o)===B(t))?(o!=null&&(r=n.dj(o,r)),r=n.cj(t,r),n.ij()&&(r=n.lj(o,t,r)),r?(r.Ei(i),r.Fi()):n.$i(i)):(n.ij()&&(r=n.lj(o,t,r)),r?(r.Ei(i),r.Fi()):n.$i(i)),o):(o=K$(n,e,t),n.bj()&&!(n.ni()&&o!=null?tt(o,t):B(o)===B(t))&&(r=null,o!=null&&(r=n.dj(o,null)),r=n.cj(t,r),r&&r.Fi()),o)}function D6(n,e){var t,i,r,c,o,f,h,l;e%=24,n.q.getHours()!=e&&(i=new j.Date(n.q.getTime()),i.setDate(i.getDate()+1),f=n.q.getTimezoneOffset()-i.getTimezoneOffset(),f>0&&(h=f/60|0,l=f%60,r=n.q.getDate(),t=n.q.getHours(),t+h>=24&&++r,c=new j.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),o=n.q.getTime(),n.q.setTime(o+36e5),n.q.getHours()!=e&&n.q.setTime(o)}function Pye(n,e){var t,i,r,c,o;if(le(e,"Path-Like Graph Wrapping",1),n.b.c.length==0){ce(e);return}if(r=new OY(n),o=(r.i==null&&(r.i=CV(r,new GH)),K(r.i)*r.f),t=o/(r.i==null&&(r.i=CV(r,new GH)),K(r.i)),r.b>t){ce(e);return}switch(u(k(n,(nn(),Q_)),337).g){case 2:c=new UH;break;case 0:c=new qH;break;default:c=new WH}if(i=c.Vf(n,r),!c.Wf())switch(u(k(n,oP),338).g){case 2:i=aLn(r,i);break;case 1:i=lFn(r,i)}Mje(n,r,i),ce(e)}function Iye(n,e){var t,i,r,c;if(ble(n.d,n.e),n.c.a.$b(),K(Y(k(e.j,(nn(),JS))))!=0||K(Y(k(e.j,JS)))!=0)for(t=$4,B(k(e.j,xl))!==B((Rh(),Fl))&&H(e.j,(G(),p0),(qn(),!0)),c=u(k(e.j,Rm),19).a,r=0;rr&&++l,W(o,(Ln(f+l,e.c.length),u(e.c[f+l],19))),h+=(Ln(f+l,e.c.length),u(e.c[f+l],19)).a-i,++t;t1&&(h>du(f)*Gu(f)/2||o.b==0)&&(d=new XC(g),a=du(f)/Gu(f),l=EL(d,e,new r2,t,i,r,a),st(No(d.e),l),f=d,p.c[p.c.length]=d,h=0,g.c=x(Zn,rn,1,0,5,1)));return Yt(p,g),p}function $ye(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m;if(t.mh(e)&&(a=(p=e,p?u(i,49).xh(p):null),a))if(m=t.bh(e,n.a),v=e.t,v>1||v==-1)if(d=u(m,69),g=u(a,69),d.dc())g.$b();else for(o=!!ir(e),c=0,f=n.a?d.Kc():d.Zh();f.Ob();)l=u(f.Pb(),56),r=u(xd(n,l),56),r?(o?(h=g.Xc(r),h==-1?g.Xh(c,r):c!=h&&g.ji(c,r)):g.Xh(c,r),++c):n.b&&!o&&(g.Xh(c,l),++c);else m==null?a.Wb(null):(r=xd(n,m),r==null?n.b&&!ir(e)&&a.Wb(m):a.Wb(r))}function xye(n,e){var t,i,r,c,o,f,h,l;for(t=new $dn,r=new re(ue(Fr(e).a.Kc(),new Mn));Se(r);)if(i=u(ve(r),17),!Xi(i)&&(f=i.c.i,KJ(f,lS))){if(l=tZ(n,f,lS,hS),l==-1)continue;t.b=j.Math.max(t.b,l),!t.a&&(t.a=new X),W(t.a,f)}for(o=new re(ue(ni(e).a.Kc(),new Mn));Se(o);)if(c=u(ve(o),17),!Xi(c)&&(h=c.d.i,KJ(h,hS))){if(l=tZ(n,h,hS,lS),l==-1)continue;t.d=j.Math.max(t.d,l),!t.c&&(t.c=new X),W(t.c,h)}return t}function pRn(n){d4();var e,t,i,r;if(e=Ht(n),n1e6)throw T(new pj("power of ten too big"));if(n<=nt)return I2(_7(hp[1],e),e);for(i=_7(hp[1],nt),r=i,t=eu(n-nt),e=Ht(n%nt);fc(t,nt)>0;)r=xw(r,i),t=gl(t,nt);for(r=xw(r,_7(hp[1],e)),r=I2(r,nt),t=eu(n-nt);fc(t,nt)>0;)r=I2(r,nt),t=gl(t,nt);return r=I2(r,e),r}function Fye(n,e){var t,i,r,c,o,f,h,l,a;for(le(e,"Hierarchical port dummy size processing",1),h=new X,a=new X,i=K(Y(k(n,(nn(),Dg)))),t=i*2,c=new E(n.b);c.al&&i>l)a=f,l=K(e.p[f.p])+K(e.d[f.p])+f.o.b+f.d.a;else{r=!1,t.n&&ca(t,"bk node placement breaks on "+f+" which should have been after "+a);break}if(!r)break}return t.n&&ca(t,e+" is feasible: "+r),r}function _ye(n,e,t,i){var r,c,o,f,h,l,a;for(f=-1,a=new E(n);a.a=C&&n.e[h.p]>v*n.b||O>=t*C)&&(g.c[g.c.length]=f,f=new X,Vi(o,c),c.a.$b(),l-=a,p=j.Math.max(p,l*n.b+m),l+=O,$=O,O=0,a=0,m=0);return new Pi(p,g)}function Gye(n){var e,t,i,r,c,o,f,h,l,a,d,g,p;for(t=(l=new Mh(n.c.b).a.vc().Kc(),new x0(l));t.a.Ob();)e=(f=u(t.a.Pb(),42),u(f.dd(),149)),r=e.a,r==null&&(r=""),i=gue(n.c,r),!i&&r.length==0&&(i=pge(n)),i&&!lb(i.c,e,!1)&&Ke(i.c,e);for(o=_e(n.a,0);o.b!=o.d.c;)c=u(Re(o),478),a=T$(n.c,c.a),p=T$(n.c,c.b),a&&p&&Ke(a.c,new Pi(p,c.c));for(Rs(n.a),g=_e(n.b,0);g.b!=g.d.c;)d=u(Re(g),478),e=wue(n.c,d.a),h=T$(n.c,d.b),e&&h&&cre(e,h,d.c);Rs(n.b)}function zye(n,e,t){var i,r,c,o,f,h,l,a,d,g,p;c=new I9(n),o=new Nxn,r=(N8(o.g),N8(o.j),Eu(o.b),N8(o.d),N8(o.i),Eu(o.k),Eu(o.c),Eu(o.e),p=kLn(o,c,null),fNn(o,c),p),e&&(l=new I9(e),f=eje(l),ZJ(r,A(M(Nfn,1),rn,527,0,[f]))),g=!1,d=!1,t&&(l=new I9(t),EA in l.a&&(g=Dh(l,EA).ge().a),Dqn in l.a&&(d=Dh(l,Dqn).ge().a)),a=e8n(IIn(new Up,g),d),B5e(new Qgn,r,a),EA in c.a&&_o(c,EA,null),(g||d)&&(h=new c2,dRn(a,h,g,d),_o(c,EA,h)),i=new omn(o),Dwe(new jz(r),i)}function Uye(n,e,t){var i,r,c,o,f,h,l,a,d;for(o=new Hxn,l=A(M(be,1),Le,25,15,[0]),r=-1,c=0,i=0,h=0;h0){if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(f=a.b,h==r&&(f-=i++,f==0))return 0;if(!k_n(e,l,a,f,o)){h=r-1,l[0]=c;continue}}else if(r=-1,!k_n(e,l,a,0,o))return 0}else{if(r=-1,Di(a.c,0)==32){if(d=l[0],KPn(e,l),l[0]>d)continue}else if(M1e(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}return MCe(o,t)?l[0]:0}function x6(n){var e,t,i,r,c,o,f,h;if(!n.f){if(h=new nq,f=new nq,e=v9,o=e.a.zc(n,e),o==null){for(c=new ie(Mr(n));c.e!=c.i.gc();)r=u(oe(c),26),Dt(h,x6(r));e.a.Bc(n)!=null,e.a.gc()==0}for(i=(!n.s&&(n.s=new V(su,n,21,17)),new ie(n.s));i.e!=i.i.gc();)t=u(oe(i),170),I(t,99)&&me(f,u(t,18));fb(f),n.r=new $En(n,(u(D(R((ul(),Nn).o),6),18),f.i),f.g),Dt(h,n.r),fb(h),n.f=new Ew((u(D(R(Nn.o),5),18),h.i),h.g),Iu(n).b&=-3}return n.f}function Wye(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v;for(o=n.o,i=x(be,Le,25,o,15,1),r=x(be,Le,25,o,15,1),t=n.p,e=x(be,Le,25,t,15,1),c=x(be,Le,25,t,15,1),l=0;l=0&&!zw(n,a,d);)--d;r[a]=d}for(p=0;p=0&&!zw(n,f,v);)--f;c[v]=f}for(h=0;he[g]&&gi[h]&&vM(n,h,g,!1,!0)}function TZ(n){var e,t,i,r,c,o,f,h;t=on(sn(k(n,(zo(),VUn)))),c=n.a.c.d,f=n.a.d.d,t?(o=Df(ki(new fn(f.a,f.b),c),.5),h=Df(Vr(n.e),.5),e=ki(st(new fn(c.a,c.b),o),h),eU(n.d,e)):(r=K(Y(k(n.a,iWn))),i=n.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-n.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-n.e.b))}function Cc(n,e){var t,i,r,c,o,f,h;if(n==null)return null;if(c=n.length,c==0)return"";for(h=x(Fs,_f,25,c,15,1),KX(0,c,n.length),KX(0,c,h.length),RCn(n,0,c,h,0),t=null,f=e,r=0,o=0;r0?Yu(t.a,0,c-1):""):n.substr(0,c-1):t?t.a:n}function kRn(n){bd(n,new Sa(hd(sd(fd(od(new Jl,xa),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new han))),Z(n,xa,yN,cn(Arn)),Z(n,xa,jN,cn($R)),Z(n,xa,tp,cn(xUn)),Z(n,xa,c0,cn(Mrn)),Z(n,xa,hnn,cn(BUn)),Z(n,xa,lnn,cn(NUn)),Z(n,xa,fnn,cn(RUn)),Z(n,xa,ann,cn(LUn)),Z(n,xa,mnn,cn(FUn)),Z(n,xa,knn,cn(DR)),Z(n,xa,ynn,cn(Trn)),Z(n,xa,jnn,cn(iS))}function MZ(n,e,t,i){var r,c,o,f,h,l,a,d,g;if(c=new qh(n),Zl(c,(Qn(),Ac)),H(c,(nn(),Lt),(Ai(),Pc)),r=0,e){for(o=new gc,H(o,(G(),rt),e),H(c,rt,e.i),ui(o,(J(),Gn)),Kr(o,c),g=Nf(e.e),l=g,a=0,d=l.length;a0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>Ha.length;t-=Ha.length)YEn(r,Ha);xjn(r,Ha,Ht(t)),De(r,i.substr(e))}else t=e-t,De(r,Yu(i,e,Ht(t))),r.a+=".",De(r,o8(i,Ht(t)));else{for(De(r,i.substr(e));t<-Ha.length;t+=Ha.length)YEn(r,Ha);xjn(r,Ha,Ht(-t))}return r.a}function AZ(n,e,t,i){var r,c,o,f,h,l,a,d,g;return h=ki(new fn(t.a,t.b),n),l=h.a*e.b-h.b*e.a,a=e.a*i.b-e.b*i.a,d=(h.a*i.b-h.b*i.a)/a,g=l/a,a==0?l==0?(r=st(new fn(t.a,t.b),Df(new fn(i.a,i.b),.5)),c=hl(n,r),o=hl(st(new fn(n.a,n.b),e),r),f=j.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c=0&&d<=1&&g>=0&&g<=1?st(new fn(n.a,n.b),Df(new fn(e.a,e.b),d)):null}function Vye(n,e,t){var i,r,c,o,f;if(i=u(k(n,(nn(),L_)),21),t.a>e.a&&(i.Hc((gb(),py))?n.c.a+=(t.a-e.a)/2:i.Hc(vy)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((gb(),ky))?n.c.b+=(t.b-e.b)/2:i.Hc(my)&&(n.c.b+=t.b-e.b)),u(k(n,(G(),Sc)),21).Hc((or(),Ds))&&(t.a>e.a||t.b>e.b))for(f=new E(n.a);f.ae.a&&(i.Hc((gb(),py))?n.c.a+=(t.a-e.a)/2:i.Hc(vy)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((gb(),ky))?n.c.b+=(t.b-e.b)/2:i.Hc(my)&&(n.c.b+=t.b-e.b)),u(k(n,(G(),Sc)),21).Hc((or(),Ds))&&(t.a>e.a||t.b>e.b))for(o=new E(n.a);o.ae&&(r=0,c+=a.b+t,d.c[d.c.length]=a,a=new hX(c,t),i=new bx(0,a.f,a,t),JC(a,i),r=0),i.b.c.length==0||h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f?EQ(i,h):(o=new bx(i.s+i.r+t,a.f,a,t),JC(a,o),EQ(o,h)),r=h.i+h.g;return d.c[d.c.length]=a,d}function ig(n){var e,t,i,r,c,o,f,h;if(!n.a){if(n.o=null,h=new Smn(n),e=new J2n,t=v9,f=t.a.zc(n,t),f==null){for(o=new ie(Mr(n));o.e!=o.i.gc();)c=u(oe(o),26),Dt(h,ig(c));t.a.Bc(n)!=null,t.a.gc()==0}for(r=(!n.s&&(n.s=new V(su,n,21,17)),new ie(n.s));r.e!=r.i.gc();)i=u(oe(r),170),I(i,322)&&me(e,u(i,34));fb(e),n.k=new DEn(n,(u(D(R((ul(),Nn).o),7),18),e.i),e.g),Dt(h,n.k),fb(h),n.a=new Ew((u(D(R(Nn.o),4),18),h.i),h.g),Iu(n).b&=-2}return n.a}function Zye(n,e,t,i,r,c,o){var f,h,l,a,d,g;return d=!1,h=SNn(t.q,e.f+e.b-t.q.f),g=r-(t.q.e+h-o),g=(Ln(c,n.c.length),u(n.c[c],200)).e,a=(f=F6(i,g,!1),f.a),a>e.b&&!l)?!1:((l||a<=e.b)&&(l&&a>e.b?(t.d=a,H8(t,DFn(t,a))):(Jxn(t.q,h),t.c=!0),H8(i,r-(t.s+t.r)),C7(i,t.q.e+t.q.d,e.f),JC(e,i),n.c.length>c&&(P7((Ln(c,n.c.length),u(n.c[c],200)),i),(Ln(c,n.c.length),u(n.c[c],200)).a.c.length==0&&h1(n,c)),d=!0),d)}function SZ(n,e,t,i){var r,c,o,f,h,l,a;if(a=Kc(n.e.Tg(),e),r=0,c=u(n.g,119),h=null,er(),u(e,66).Oj()){for(f=0;fn.o.a&&(a=(h-n.o.a)/2,f.b=j.Math.max(f.b,a),f.c=j.Math.max(f.c,a))}}function eje(n){var e,t,i,r,c,o,f,h;for(c=new ZMn,Rre(c,(N2(),MZn)),i=(r=tx(n,x(tn,q,2,0,6,1)),new Nv(new Ku(new uO(n,r).b)));i.b0?n.i:0)>e&&h>0&&(c=0,o+=h+n.i,r=j.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,W(n.n,new bC(n.s,o,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=j.Math.max(h,l.f),t&&cJ(u(un(n.n,d),211),l),c+=l.g+(f>0?n.i:0),++f;return r=j.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,fJ(n.j)),new ks(n.s,n.t,r,i)}function pc(n,e,t,i,r){eh();var c,o,f,h,l,a,d,g,p;if(SW(n,"src"),SW(t,"dest"),g=Du(n),h=Du(t),JU((g.i&4)!=0,"srcType is not an array"),JU((h.i&4)!=0,"destType is not an array"),d=g.c,o=h.c,JU(d.i&1?d==o:(o.i&1)==0,"Array types don't match"),p=n.length,l=t.length,e<0||i<0||r<0||e+r>p||i+r>l)throw T(new qq);if(!(d.i&1)&&g!=h)if(a=wa(n),c=wa(t),B(n)===B(t)&&ei;)Mt(c,f,a[--e]);else for(f=i+r;i0&&bY(n,e,t,i,r,!0)}function lL(){lL=N,Ezn=A(M(be,1),Le,25,15,[Bi,1162261467,_6,1220703125,362797056,1977326743,_6,387420489,LM,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,_6,1291467969,1544804416,1838265625,60466176]),Czn=A(M(be,1),Le,25,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function tje(n){var e,t,i,r,c,o,f,h;for(r=new E(n.b);r.a=n.b.length?(c[r++]=o.b[i++],c[r++]=o.b[i++]):i>=o.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):o.b[i]0?n.i:0)),++e;for(b2e(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=xt,n.p=xt,c=new E(n.b);c.a0&&(r=(!n.n&&(n.n=new V(Br,n,1,7)),u(D(n.n,0),137)).a,!r||De(De((e.a+=' "',e),r),'"'))),t=(!n.b&&(n.b=new xn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new xn(he,n,5,8)),n.c.i<=1))),t?e.a+=" [":e.a+=" ",De(e,Bz(new eO,new ie(n.b))),t&&(e.a+="]"),e.a+=SN,t&&(e.a+="["),De(e,Bz(new eO,new ie(n.c))),t&&(e.a+="]"),e.a)}function aL(n,e){var t,i,r,c,o,f,h;if(n.a){if(f=n.a.ne(),h=null,f!=null?e.a+=""+f:(o=n.a.Dj(),o!=null&&(c=Of(o,tu(91)),c!=-1?(h=o.substr(c),e.a+=""+Yu(o==null?iu:(_n(o),o),0,c)):e.a+=""+o)),n.d&&n.d.i!=0){for(r=!0,e.a+="<",i=new ie(n.d);i.e!=i.i.gc();)t=u(oe(i),87),r?r=!1:e.a+=Ji,aL(t,e);e.a+=">"}h!=null&&(e.a+=""+h)}else n.e?(f=n.e.zb,f!=null&&(e.a+=""+f)):(e.a+="?",n.b?(e.a+=" super ",aL(n.b,e)):n.f&&(e.a+=" extends ",aL(n.f,e)))}function cje(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn;for(_=n.c,U=e.c,t=xr(_.a,n,0),i=xr(U.a,e,0),O=u(zd(n,(ur(),Au)).Kc().Pb(),11),wn=u(zd(n,Nc).Kc().Pb(),11),F=u(zd(e,Au).Kc().Pb(),11),zn=u(zd(e,Nc).Kc().Pb(),11),S=Nf(O.e),en=Nf(wn.g),$=Nf(F.e),ln=Nf(zn.g),wb(n,i,U),o=$,a=0,v=o.length;aa?new ha((Bo(),nw),t,e,l-a):l>0&&a>0&&(new ha((Bo(),nw),e,t,0),new ha(nw,t,e,0))),o)}function ERn(n,e){var t,i,r,c,o,f;for(o=new ya(new na(n.f.b).a);o.b;){if(c=Ld(o),r=u(c.cd(),594),e==1){if(r.gf()!=(sr(),Yh)&&r.gf()!=Jh)continue}else if(r.gf()!=(sr(),Ys)&&r.gf()!=So)continue;switch(i=u(u(c.dd(),46).b,81),f=u(u(c.dd(),46).a,189),t=f.c,r.gf().g){case 2:i.g.c=n.e.a,i.g.b=j.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=j.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=j.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=j.Math.max(1,i.g.a-t)}}}function uje(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m;for(f=x(be,Le,25,e.b.c.length,15,1),l=x(XR,z,267,e.b.c.length,0,1),h=x(kh,E1,10,e.b.c.length,0,1),d=n.a,g=0,p=d.length;g0&&h[i]&&(v=Mw(n.b,h[i],r)),m=j.Math.max(m,r.c.c.b+v);for(c=new E(a.e);c.a1)throw T(new Hn(Ik));h||(c=oh(e,i.Kc().Pb()),o.Fc(c))}return RV(n,cY(n,e,t),o)}function fje(n,e){var t,i,r,c;for(U0e(e.b.j),Bt(Xc(new $n(null,new Fn(e.d,16)),new iwn),new rwn),c=new E(e.d);c.an.o.b||(t=Gr(n,Vn),f=e.d+e.a+(t.gc()-1)*o,f>n.o.b)))}function wL(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v;if(o=n.e,h=e.e,o==0)return e;if(h==0)return n;if(c=n.d,f=e.d,c+f==2)return t=ci(n.a[0],fr),i=ci(e.a[0],fr),o==h?(a=Hi(t,i),v=ge(a),p=ge(V0(a,32)),p==0?new l1(o,v):new Pw(o,2,A(M(be,1),Le,25,15,[v,p]))):E7(o<0?gl(i,t):gl(t,i));if(o==h)g=o,d=c>=f?O$(n.a,c,e.a,f):O$(e.a,f,n.a,c);else{if(r=c!=f?c>f?1:-1:nQ(n.a,e.a,c),r==0)return kl(),X4;r==1?(g=o,d=P$(n.a,c,e.a,f)):(g=h,d=P$(e.a,f,n.a,c))}return l=new Pw(g,d.length,d),z5(l),l}function gL(n,e,t,i,r,c,o){var f,h,l,a,d,g,p;return d=on(sn(k(e,(nn(),jsn)))),g=null,c==(ur(),Au)&&i.c.i==t?g=i.c:c==Nc&&i.d.i==t&&(g=i.d),l=o,!l||!d||g?(a=(J(),Wr),g?a=g.j:Cw(u(k(t,Lt),98))&&(a=c==Au?Gn:Vn),h=dje(n,e,t,c,a,i),f=A$((qi(t),i)),c==Au?(Ki(f,u(un(h.j,0),11)),Ti(f,r)):(Ki(f,r),Ti(f,u(un(h.j,0),11))),l=new HDn(i,f,h,u(k(h,(G(),rt)),11),c,!g)):(W(l.e,i),p=j.Math.max(K(Y(k(l.d,S1))),K(Y(k(i,S1)))),H(l.d,S1,p)),Tn(n.a,i,new ME(l.d,e,c)),l}function TM(n,e){var t,i,r,c,o,f,h,l,a,d;if(a=null,n.d&&(a=u(kc(n.d,e),138)),!a){if(c=n.a.Mh(),d=c.i,!n.d||Yv(n.d)!=d){for(h=new we,n.d&&i6(h,n.d),l=h.f.c+h.g.c,f=l;f0?(p=(v-1)*t,f&&(p+=i),a&&(p+=i),p=n.b[r+1])r+=2;else if(t0)for(i=new au(u(ct(n.a,c),21)),Pn(),bi(i,new Dq(e)),r=new Ii(c.b,0);r.b_)?(h=2,o=nt):h==0?(h=1,o=en):(h=0,o=en)):(p=en>=o||o-en0?1:gd(isNaN(i),isNaN(0)))>=0^(ko(Uf),(j.Math.abs(f)<=Uf||f==0||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:gd(isNaN(f),isNaN(0)))>=0)?j.Math.max(f,i):(ko(Uf),(j.Math.abs(i)<=Uf||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:gd(isNaN(i),isNaN(0)))>0?j.Math.sqrt(f*f+i*i):-j.Math.sqrt(f*f+i*i))}function Pa(n,e){var t,i,r,c,o,f;if(e){if(!n.a&&(n.a=new bj),n.e==2){dj(n.a,e);return}if(e.e==1){for(r=0;r=Yi?dr(t,jQ(i)):g3(t,i&Ut),o=new r$(10,null,0),nhe(n.a,o,f-1)):(t=(o.bm().length+c,new Vv),dr(t,o.bm())),e.e==0?(i=e._l(),i>=Yi?dr(t,jQ(i)):g3(t,i&Ut)):dr(t,e.bm()),u(o,521).b=t.a}}function ORn(n){var e,t,i,r,c;return n.g!=null?n.g:n.a<32?(n.g=BCe(eu(n.f),Ht(n.e)),n.g):(r=TL((!n.c&&(n.c=b7(n.f)),n.c),0),n.e==0?r:(e=(!n.c&&(n.c=b7(n.f)),n.c).e<0?2:1,t=r.length,i=-n.e+t-e,c=new W1,c.a+=""+r,n.e>0&&i>=-6?i>=0?$8(c,t-Ht(n.e),String.fromCharCode(46)):(c.a=Yu(c.a,0,e-1)+"0."+o8(c.a,e-1),$8(c,e+1,Ks(Ha,0,-Ht(i)-1))):(t-e>=1&&($8(c,e,String.fromCharCode(46)),++t),$8(c,t,String.fromCharCode(69)),i>0&&$8(c,++t,String.fromCharCode(43)),$8(c,++t,""+F5(eu(i)))),n.g=c.a,n.g))}function Mje(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C;if(!t.dc()){for(f=0,g=0,i=t.Kc(),v=u(i.Pb(),19).a;f1&&(h=l.mg(h,n.a,f));return h.c.length==1?u(un(h,h.c.length-1),220):h.c.length==2?wje((Ln(0,h.c.length),u(h.c[0],220)),(Ln(1,h.c.length),u(h.c[1],220)),o,c):null}function DRn(n){var e,t,i,r,c,o;for(Yc(n.a,new can),t=new E(n.a);t.a=j.Math.abs(i.b)?(i.b=0,c.d+c.a>o.d&&c.do.c&&c.c0){if(e=new bz(n.i,n.g),t=n.i,c=t<100?null:new X1(t),n.ij())for(i=0;i0){for(f=n.g,l=n.i,Q5(n),c=l<100?null:new X1(l),i=0;i>13|(n.m&15)<<9,r=n.m>>4&8191,c=n.m>>17|(n.h&255)<<5,o=(n.h&1048320)>>8,f=e.l&8191,h=e.l>>13|(e.m&15)<<9,l=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,d=(e.h&1048320)>>8,ln=t*f,wn=i*f,zn=r*f,Wn=c*f,se=o*f,h!=0&&(wn+=t*h,zn+=i*h,Wn+=r*h,se+=c*h),l!=0&&(zn+=t*l,Wn+=i*l,se+=r*l),a!=0&&(Wn+=t*a,se+=i*a),d!=0&&(se+=t*d),p=ln&Lu,v=(wn&511)<<13,g=p+v,C=ln>>22,S=wn>>9,$=(zn&262143)<<4,O=(Wn&31)<<17,m=C+S+$+O,_=zn>>18,U=Wn>>5,en=(se&4095)<<8,F=_+U+en,m+=g>>22,g&=Lu,F+=m>>22,m&=Lu,F&=Wh,Bc(g,m,F)}function $Rn(n){var e,t,i,r,c,o,f;if(f=u(un(n.j,0),11),f.g.c.length!=0&&f.e.c.length!=0)throw T(new Dr("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(f.g.c.length!=0){for(c=xt,t=new E(f.g);t.a4)if(n.wj(e)){if(n.rk()){if(r=u(e,49),i=r.Ug(),h=i==n.e&&(n.Dk()?r.Og(r.Vg(),n.zk())==n.Ak():-1-r.Vg()==n.aj()),n.Ek()&&!h&&!i&&r.Zg()){for(c=0;c0&&(l=n.n.a/c);break;case 2:case 4:r=n.i.o.b,r>0&&(l=n.n.b/r)}H(n,(G(),m0),l)}if(h=n.o,o=n.a,i)o.a=i.a,o.b=i.b,n.d=!0;else if(e!=Cf&&e!=Kl&&f!=Wr)switch(f.g){case 1:o.a=h.a/2;break;case 2:o.a=h.a,o.b=h.b/2;break;case 3:o.a=h.a/2,o.b=h.b;break;case 4:o.b=h.b/2}else o.a=h.a/2,o.b=h.b/2}function N6(n){var e,t,i,r,c,o,f,h,l,a;if(n.ej())if(a=n.Vi(),h=n.fj(),a>0)if(e=new MV(n.Gi()),t=a,c=t<100?null:new X1(t),b8(n,t,e.g),r=t==1?n.Zi(4,D(e,0),null,0,h):n.Zi(6,e,null,-1,h),n.bj()){for(i=new ie(e);i.e!=i.i.gc();)c=n.dj(oe(i),c);c?(c.Ei(r),c.Fi()):n.$i(r)}else c?(c.Ei(r),c.Fi()):n.$i(r);else b8(n,n.Vi(),n.Wi()),n.$i(n.Zi(6,(Pn(),cr),null,-1,h));else if(n.bj())if(a=n.Vi(),a>0){for(f=n.Wi(),l=a,b8(n,a,f),c=l<100?null:new X1(l),i=0;in.d[o.p]&&(t+=CX(n.b,c)*u(h.b,19).a,fl(n.a,Q(c)));for(;!Uv(n.a);)eV(n.b,u(j2(n.a),19).a)}return t}function Bje(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C;for(d=new mr(u(hn(n,(iM(),zfn)),8)),d.a=j.Math.max(d.a-t.b-t.c,0),d.b=j.Math.max(d.b-t.d-t.a,0),r=Y(hn(n,Hfn)),(r==null||(_n(r),r<=0))&&(r=1.3),f=new X,v=new ie((!n.a&&(n.a=new V(Pt,n,10,11)),n.a));v.e!=v.i.gc();)p=u(oe(v),33),o=new hjn(p),f.c[f.c.length]=o;switch(g=u(hn(n,UK),311),g.g){case 3:C=uye(f,e,d.a,d.b,(l=i,_n(r),l));break;case 1:C=Dye(f,e,d.a,d.b,(a=i,_n(r),a));break;default:C=Kje(f,e,d.a,d.b,(h=i,_n(r),h))}c=new XC(C),m=EL(c,e,t,d.a,d.b,i,(_n(r),r)),e0(n,m.a,m.b,!1,!0)}function Rje(n,e){var t,i,r,c;t=e.b,c=new au(t.j),r=0,i=t.j,i.c=x(Zn,rn,1,0,5,1),Cd(u(pa(n.b,(J(),Kn),(_d(),w0)),15),t),r=M7(c,r,new xbn,i),Cd(u(pa(n.b,Kn,Dl),15),t),r=M7(c,r,new $bn,i),Cd(u(pa(n.b,Kn,b0),15),t),Cd(u(pa(n.b,Vn,w0),15),t),Cd(u(pa(n.b,Vn,Dl),15),t),r=M7(c,r,new Fbn,i),Cd(u(pa(n.b,Vn,b0),15),t),Cd(u(pa(n.b,ae,w0),15),t),r=M7(c,r,new Lbn,i),Cd(u(pa(n.b,ae,Dl),15),t),r=M7(c,r,new Nbn,i),Cd(u(pa(n.b,ae,b0),15),t),Cd(u(pa(n.b,Gn,w0),15),t),r=M7(c,r,new Xbn,i),Cd(u(pa(n.b,Gn,Dl),15),t),Cd(u(pa(n.b,Gn,b0),15),t)}function _je(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m;for(le(e,"Layer size calculation",1),a=xt,l=Vt,r=!1,f=new E(n.b);f.a.5?S-=o*2*(v-.5):v<.5&&(S+=c*2*(.5-v)),r=f.d.b,SC.a-m-a&&(S=C.a-m-a),f.n.a=e+S}}function Kje(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C;for(f=x(ji,pr,25,n.c.length,15,1),g=new WE(new P2n),dJ(g,n),l=0,m=new X;g.b.c.length!=0;)if(o=u(g.b.c.length==0?null:un(g.b,0),157),l>1&&du(o)*Gu(o)/2>f[0]){for(c=0;cf[c];)++c;v=new sh(m,0,c+1),d=new XC(v),a=du(o)/Gu(o),h=EL(d,e,new r2,t,i,r,a),st(No(d.e),h),A3(h4(g,d)),p=new sh(m,c+1,m.c.length),dJ(g,p),m.c=x(Zn,rn,1,0,5,1),l=0,fCn(f,f.length,0)}else C=g.b.c.length==0?null:un(g.b,0),C!=null&&nx(g,0),l>0&&(f[l]=f[l-1]),f[l]+=du(o)*Gu(o),++l,m.c[m.c.length]=o;return m}function Hje(n){var e,t,i,r,c;if(i=u(k(n,(nn(),qc)),163),i==(As(),$l)){for(t=new re(ue(Fr(n).a.Kc(),new Mn));Se(t);)if(e=u(ve(t),17),!kSn(e))throw T(new pw(ON+A7(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(i==Gb){for(c=new re(ue(ni(n).a.Kc(),new Mn));Se(c);)if(r=u(ve(c),17),!kSn(r))throw T(new pw(ON+A7(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function qje(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v;for(le(e,"Label dummy removal",1),i=K(Y(k(n,(nn(),Ep)))),r=K(Y(k(n,Yb))),l=u(k(n,ls),103),h=new E(n.b);h.a0&&_Fn(n,f,d);for(r=new E(d);r.a>19&&(e=U3(e),h=!h),o=H9e(e),c=!1,r=!1,i=!1,n.h==uk&&n.m==0&&n.l==0)if(r=!0,c=!0,o==-1)n=eyn((O3(),pin)),i=!0,h=!h;else return f=IY(n,o),h&&hx(f),t&&(Sl=Bc(0,0,0)),f;else n.h>>19&&(c=!0,n=U3(n),i=!0,h=!h);return o!=-1?Pwe(n,o,h,c,t):yJ(n,e)<0?(t&&(c?Sl=U3(n):Sl=Bc(n.l,n.m,n.h)),Bc(0,0,0)):$ke(i?n:Bc(n.l,n.m,n.h),e,h,c,r,t)}function MM(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v;if(n.e&&n.c.ce.f||e.g>n.f)){for(t=0,i=0,o=n.w.a.ec().Kc();o.Ob();)r=u(o.Pb(),11),jx(qr(A(M(ai,1),q,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(f=n.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),11),jx(qr(A(M(ai,1),q,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),11),jx(qr(A(M(ai,1),q,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),11),jx(qr(A(M(ai,1),q,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t=0)return r=Yge(n,e.substr(1,o-1)),a=e.substr(o+1,h-(o+1)),WCe(n,a,r)}else{if(t=-1,jin==null&&(jin=new RegExp("\\d")),jin.test(String.fromCharCode(f))&&(t=SU(e,tu(46),h-1),t>=0)){i=u(S$(n,aIn(n,e.substr(1,t-1)),!1),58),l=0;try{l=us(e.substr(t+1),Bi,nt)}catch(g){throw g=jt(g),I(g,127)?(c=g,T(new BC(c))):T(g)}if(l=0)return t;switch(Ad(jr(n,t))){case 2:{if(An("",w1(n,t.Hj()).ne())){if(h=A8(jr(n,t)),f=m3(jr(n,t)),a=NY(n,e,h,f),a)return a;for(r=hZ(n,e),o=0,d=r.gc();o1)throw T(new Hn(Ik));for(a=Kc(n.e.Tg(),e),i=u(n.g,119),o=0;o1,l=new of(g.b);_r(l.a)||_r(l.b);)h=u(_r(l.a)?y(l.a):y(l.b),17),d=h.c==g?h.d:h.c,j.Math.abs(qr(A(M(ai,1),q,8,0,[d.i.n,d.n,d.a])).b-o.b)>1&&U8e(n,h,o,c,g)}}function eEe(n){var e,t,i,r,c,o;if(r=new Ii(n.e,0),i=new Ii(n.a,0),n.d)for(t=0;tlB;){for(c=e,o=0;j.Math.abs(e-c)0),r.a.Xb(r.c=--r.b),vye(n,n.b-o,c,i,r),ne(r.b0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t0?(n.f[a.p]=p/(a.e.c.length+a.g.c.length),n.c=j.Math.min(n.c,n.f[a.p]),n.b=j.Math.max(n.b,n.f[a.p])):f&&(n.f[a.p]=p)}}function iEe(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function rEe(n,e,t){var i,r,c,o;for(le(t,"Graph transformation ("+n.a+")",1),o=Od(e.a),c=new E(e.b);c.a0&&(n.a=h+(p-1)*c,e.c.b+=n.a,e.f.b+=n.a)),v.a.gc()!=0&&(g=new ND(1,c),p=LZ(g,e,v,m,e.f.b+h-e.c.b),p>0&&(e.f.b+=h+(p-1)*c))}function j4(n,e){var t,i,r,c;c=n.F,e==null?(n.F=null,V3(n,null)):(n.F=(_n(e),e),i=Of(e,tu(60)),i!=-1?(r=e.substr(0,i),Of(e,tu(46))==-1&&!An(r,V2)&&!An(r,fm)&&!An(r,MA)&&!An(r,hm)&&!An(r,lm)&&!An(r,am)&&!An(r,dm)&&!An(r,bm)&&(r=yGn),t=wE(e,tu(62)),t!=-1&&(r+=""+e.substr(t+1)),V3(n,r)):(r=e,Of(e,tu(46))==-1&&(i=Of(e,tu(91)),i!=-1&&(r=e.substr(0,i)),!An(r,V2)&&!An(r,fm)&&!An(r,MA)&&!An(r,hm)&&!An(r,lm)&&!An(r,am)&&!An(r,dm)&&!An(r,bm)?(r=yGn,i!=-1&&(r+=""+e.substr(i))):r=e),V3(n,r),r==e&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,5,c,e))}function uEe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;if(m=e.b.c.length,!(m<3)){for(p=x(be,Le,25,m,15,1),d=0,a=new E(e.b);a.ao)&&ri(n.b,u(C.b,17));++f}c=o}}}function $Z(n,e){var t;if(e==null||An(e,iu)||e.length==0&&n.k!=(y1(),Tp))return null;switch(n.k.g){case 1:return FT(e,R4)?(qn(),U4):FT(e,MB)?(qn(),Ka):null;case 2:try{return Q(us(e,Bi,nt))}catch(i){if(i=jt(i),I(i,127))return null;throw T(i)}case 4:try{return vb(e)}catch(i){if(i=jt(i),I(i,127))return null;throw T(i)}case 3:return e;case 5:return mDn(n),TLn(n,e);case 6:return mDn(n),g9e(n,n.a,e);case 7:try{return t=Sme(n),t.Jf(e),t}catch(i){if(i=jt(i),I(i,32))return null;throw T(i)}default:throw T(new Dr("Invalid type set for this layout option."))}}function sEe(n){Y5();var e,t,i,r,c,o,f;for(f=new Qmn,t=new E(n);t.a=f.b.c)&&(f.b=e),(!f.c||e.c<=f.c.c)&&(f.d=f.c,f.c=e),(!f.e||e.d>=f.e.d)&&(f.e=e),(!f.f||e.d<=f.f.d)&&(f.f=e);return i=new RT((z3(),d0)),F8(n,AWn,new Ku(A(M(qk,1),rn,369,0,[i]))),o=new RT(_b),F8(n,MWn,new Ku(A(M(qk,1),rn,369,0,[o]))),r=new RT(Rb),F8(n,TWn,new Ku(A(M(qk,1),rn,369,0,[r]))),c=new RT(kg),F8(n,CWn,new Ku(A(M(qk,1),rn,369,0,[c]))),HF(i.c,d0),HF(r.c,Rb),HF(c.c,kg),HF(o.c,_b),f.a.c=x(Zn,rn,1,0,5,1),Yt(f.a,i.c),Yt(f.a,ga(r.c)),Yt(f.a,c.c),Yt(f.a,ga(o.c)),f}function xZ(n){var e;switch(n.d){case 1:{if(n.hj())return n.o!=-2;break}case 2:{if(n.hj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(e=n.gj(),n.p){case 0:return e!=null&&on(sn(e))!=v5(n.k,0);case 1:return e!=null&&u(e,217).a!=ge(n.k)<<24>>24;case 2:return e!=null&&u(e,172).a!=(ge(n.k)&Ut);case 6:return e!=null&&v5(u(e,162).a,n.k);case 5:return e!=null&&u(e,19).a!=ge(n.k);case 7:return e!=null&&u(e,184).a!=ge(n.k)<<16>>16;case 3:return e!=null&&K(Y(e))!=n.j;case 4:return e!=null&&u(e,155).a!=n.j;default:return e==null?n.n!=null:!tt(e,n.n)}}function Y7(n,e,t){var i,r,c,o;return n.Fk()&&n.Ek()&&(o=PD(n,u(t,56)),B(o)!==B(t))?(n.Oi(e),n.Ui(e,dPn(n,e,o)),n.rk()&&(c=(r=u(t,49),n.Dk()?n.Bk()?r.ih(n.b,ir(u(On(Vc(n.b),n.aj()),18)).n,u(On(Vc(n.b),n.aj()).Yj(),26).Bj(),null):r.ih(n.b,yt(r.Tg(),ir(u(On(Vc(n.b),n.aj()),18))),null,null):r.ih(n.b,-1-n.aj(),null,null)),!u(o,49).eh()&&(c=(i=u(o,49),n.Dk()?n.Bk()?i.gh(n.b,ir(u(On(Vc(n.b),n.aj()),18)).n,u(On(Vc(n.b),n.aj()).Yj(),26).Bj(),c):i.gh(n.b,yt(i.Tg(),ir(u(On(Vc(n.b),n.aj()),18))),null,c):i.gh(n.b,-1-n.aj(),null,c))),c&&c.Fi()),Hu(n.b)&&n.$i(n.Zi(9,t,o,e,!1)),o):t}function NRn(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F;for(a=K(Y(k(n,(nn(),E0)))),i=K(Y(k(n,$sn))),g=new TI,H(g,E0,a+i),l=e,S=l.d,m=l.c.i,$=l.d.i,C=mz(m.c),O=mz($.c),r=new X,d=C;d<=O;d++)f=new qh(n),Zl(f,(Qn(),gi)),H(f,(G(),rt),l),H(f,Lt,(Ai(),Pc)),H(f,sP,g),p=u(un(n.b,d),29),d==C?wb(f,p.a.c.length-t,p):yr(f,p),F=K(Y(k(l,S1))),F<0&&(F=0,H(l,S1,F)),f.o.b=F,v=j.Math.floor(F/2),o=new gc,ui(o,(J(),Gn)),Kr(o,f),o.n.b=v,h=new gc,ui(h,Vn),Kr(h,f),h.n.b=v,Ti(l,o),c=new Sd,Sr(c,l),H(c,Tr,null),Ki(c,h),Ti(c,S),h4e(f,l,c),r.c[r.c.length]=c,l=c;return r}function mL(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;for(h=u(k1(n,(J(),Gn)).Kc().Pb(),11).e,p=u(k1(n,Vn).Kc().Pb(),11).g,f=h.c.length,O=cf(u(un(n.j,0),11));f-- >0;){for(m=(Ln(0,h.c.length),u(h.c[0],17)),r=(Ln(0,p.c.length),u(p.c[0],17)),$=r.d.e,c=xr($,r,0),bae(m,r.d,c),Ki(r,null),Ti(r,null),v=m.a,e&&Ke(v,new mr(O)),i=_e(r.a,0);i.b!=i.d.c;)t=u(Re(i),8),Ke(v,new mr(t));for(S=m.b,g=new E(r.b);g.a0&&(o=j.Math.max(o,lOn(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(p=g+n.C.c,l&&(p+=a.d.c),o=j.Math.max(o,(nf(),ko(gf),j.Math.abs(d-1)<=gf||d==1||isNaN(d)&&isNaN(1)?0:p/(1-d)))),t.n.b=0,t.a.a=o}function RRn(n,e){var t,i,r,c,o,f,h,l,a,d,g,p;if(t=u(br(n.b,e),124),h=u(u(ct(n.r,e),21),84),h.dc()){t.n.d=0,t.n.a=0;return}for(l=n.u.Hc((Tu(),n1)),o=0,n.A.Hc((Vu(),ed))&&vBn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)i=u(f.Pb(),111),c=K(Y(i.b.We((gE(),nS)))),r=i.b.rf().b,a?(p=d+a.d.a+n.w+i.d.d,o=j.Math.max(o,(nf(),ko(gf),j.Math.abs(g-c)<=gf||g==c||isNaN(g)&&isNaN(c)?0:p/(c-g)))):n.C&&n.C.d>0&&(o=j.Math.max(o,lOn(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(p=d+n.C.a,l&&(p+=a.d.a),o=j.Math.max(o,(nf(),ko(gf),j.Math.abs(g-1)<=gf||g==1||isNaN(g)&&isNaN(1)?0:p/(1-g)))),t.n.d=0,t.a.b=o}function _Rn(n,e,t){var i,r,c,o,f,h;for(this.g=n,f=e.d.length,h=t.d.length,this.d=x(kh,E1,10,f+h,0,1),o=0;o0?U$(this,this.f/this.a):ef(e.g,e.d[0]).a!=null&&ef(t.g,t.d[0]).a!=null?U$(this,(K(ef(e.g,e.d[0]).a)+K(ef(t.g,t.d[0]).a))/2):ef(e.g,e.d[0]).a!=null?U$(this,ef(e.g,e.d[0]).a):ef(t.g,t.d[0]).a!=null&&U$(this,ef(t.g,t.d[0]).a)}function oEe(n,e){var t,i,r,c,o,f,h,l,a,d;for(n.a=new XCn(Nbe(c9)),i=new E(e.a);i.a=1&&(C-o>0&&d>=0?(h.n.a+=m,h.n.b+=c*o):C-o<0&&a>=0&&(h.n.a+=m*C,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,H(n,(nn(),Ua),(Vu(),i=u(Lo(a9),9),new ms(i,u(wo(i,i.length),9),0)))}function aEe(n,e,t,i,r,c){var o;if(!(e==null||!Lx(e,b1n,w1n)))throw T(new Hn("invalid scheme: "+e));if(!n&&!(t!=null&&Of(t,tu(35))==-1&&t.length>0&&(Me(0,t.length),t.charCodeAt(0)!=47)))throw T(new Hn("invalid opaquePart: "+t));if(n&&!(e!=null&&G9(cI,e.toLowerCase()))&&!(t==null||!Lx(t,g9,p9)))throw T(new Hn(oGn+t));if(n&&e!=null&&G9(cI,e.toLowerCase())&&!cve(t))throw T(new Hn(oGn+t));if(!f2e(i))throw T(new Hn("invalid device: "+i));if(!tge(r))throw o=r==null?"invalid segments: null":"invalid segment: "+Ywe(r),T(new Hn(o));if(!(c==null||Of(c,tu(35))==-1))throw T(new Hn("invalid query: "+c))}function dEe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S;for(le(e,"Calculate Graph Size",1),e.n&&n&&po(e,vo(n),(Xu(),ws)),f=$4,h=$4,c=rtn,o=rtn,d=new ie((!n.a&&(n.a=new V(Pt,n,10,11)),n.a));d.e!=d.i.gc();)l=u(oe(d),33),v=l.i,m=l.j,S=l.g,i=l.f,r=u(hn(l,(Xe(),Ey)),142),f=j.Math.min(f,v-r.b),h=j.Math.min(h,m-r.d),c=j.Math.max(c,v+S+r.c),o=j.Math.max(o,m+i+r.a);for(p=u(hn(n,(Xe(),Ya)),116),g=new fn(f-p.b,h-p.d),a=new ie((!n.a&&(n.a=new V(Pt,n,10,11)),n.a));a.e!=a.i.gc();)l=u(oe(a),33),Zc(l,l.i-g.a),nu(l,l.j-g.b);C=c-f+(p.b+p.c),t=o-h+(p.d+p.a),Bd(n,C),Nd(n,t),e.n&&n&&po(e,vo(n),(Xu(),ws))}function qRn(n){var e,t,i,r,c,o,f,h,l,a;for(i=new X,o=new E(n.e.a);o.a0){_T(n,t,0),t.a+=String.fromCharCode(i),r=Y2e(e,c),_T(n,t,r),c+=r-1;continue}i==39?c+11)for(m=x(be,Le,25,n.b.b.c.length,15,1),d=0,l=new E(n.b.b);l.a=f&&r<=h)f<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):f<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,o+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else if(hjl)&&f<10);yG(n.c,new Tan),GRn(n),the(n.c),hEe(n.f)}function pEe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C;if(on(sn(k(t,(nn(),Xb)))))for(f=new E(t.j);f.a=2){for(h=_e(t,0),o=u(Re(h),8),f=u(Re(h),8);f.a0&&h7(l,!0,(sr(),So)),f.k==(Qn(),Xt)&&pTn(l),it(n.f,f,e)}}function yEe(n,e,t){var i,r,c,o,f,h,l,a,d,g;switch(le(t,"Node promotion heuristic",1),n.g=e,ACe(n),n.q=u(k(e,(nn(),q_)),260),a=u(k(n.g,msn),19).a,c=new h0n,n.q.g){case 2:case 1:y4(n,c);break;case 3:for(n.q=(Zw(),bP),y4(n,c),h=0,f=new E(n.a);f.an.j&&(n.q=cy,y4(n,c));break;case 4:for(n.q=(Zw(),bP),y4(n,c),l=0,r=new E(n.b);r.an.k&&(n.q=uy,y4(n,c));break;case 6:g=Ht(j.Math.ceil(n.f.length*a/100)),y4(n,new M5n(g));break;case 5:d=Ht(j.Math.ceil(n.d*a/100)),y4(n,new A5n(d));break;default:y4(n,c)}b7e(n,e),ce(t)}function URn(n,e,t){var i,r,c,o;this.j=n,this.e=BJ(n),this.o=this.j.e,this.i=!!this.o,this.p=this.i?u(un(t,qi(this.o).p),214):null,r=u(k(n,(G(),Sc)),21),this.g=r.Hc((or(),Ds)),this.b=new X,this.d=new b$n(this.e),o=u(k(this.j,mp),230),this.q=Zbe(e,o,this.e),this.k=new wMn(this),c=sf(A(M(VWn,1),rn,225,0,[this,this.d,this.k,this.q])),e==(Rd(),oy)&&!on(sn(k(n,(nn(),zb))))?(i=new _J(this.e),c.c[c.c.length]=i,this.c=new wX(i,o,u(this.q,402))):e==oy&&on(sn(k(n,(nn(),zb))))?(i=new _J(this.e),c.c[c.c.length]=i,this.c=new JIn(i,o,u(this.q,402))):this.c=new V7n(e,this),W(c,this.c),ARn(c,this.e),this.s=iTe(this.k)}function jEe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F;for(d=u(aE((o=_e(new U1(e).a.d,0),new t2(o))),86),v=d?u(k(d,(cc(),kK)),86):null,r=1;d&&v;){for(h=0,F=0,t=d,i=v,f=0;f=n.i?(++n.i,W(n.a,Q(1)),W(n.b,a)):(i=n.c[e.p][1],js(n.a,l,Q(u(un(n.a,l),19).a+1-i)),js(n.b,l,K(Y(un(n.b,l)))+a-i*n.e)),(n.q==(Zw(),cy)&&(u(un(n.a,l),19).a>n.j||u(un(n.a,l-1),19).a>n.j)||n.q==uy&&(K(Y(un(n.b,l)))>n.k||K(Y(un(n.b,l-1)))>n.k))&&(h=!1),o=new re(ue(Fr(e).a.Kc(),new Mn));Se(o);)c=u(ve(o),17),f=c.c.i,n.f[f.p]==l&&(d=WRn(n,f),r=r+u(d.a,19).a,h=h&&on(sn(d.b)));return n.f[e.p]=l,r=r+n.c[e.p][0],new Pi(Q(r),(qn(),!!h))}function LZ(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S;for(d=new we,o=new X,wLn(n,t,n.d.fg(),o,d),wLn(n,i,n.d.gg(),o,d),n.b=.2*(m=rNn(Hr(new $n(null,new Fn(o,16)),new vgn)),C=rNn(Hr(new $n(null,new Fn(o,16)),new mgn)),j.Math.min(m,C)),c=0,f=0;f=2&&(S=MNn(o,!0,g),!n.e&&(n.e=new I6n(n)),npe(n.e,S,o,n.b)),uFn(o,g),BEe(o),p=-1,a=new E(o);a.af)}function CEe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m;for(t=u(k(n,(nn(),Lt)),98),o=n.f,c=n.d,f=o.a+c.b+c.c,h=0-c.d-n.c.b,a=o.b+c.d+c.a-n.c.b,l=new X,d=new X,r=new E(e);r.a0),u(a.a.Xb(a.c=--a.b),17));c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,c=(ne(a.b>0),u(a.a.Xb(a.c=--a.b),17));a.b>0&&Uu(a)}}function JRn(n,e,t){var i,r,c,o,f,h,l,a,d;if(n.a!=e.Aj())throw T(new Hn(_4+e.ne()+f0));if(i=w1((wu(),Fi),e).$k(),i)return i.Aj().Nh().Ih(i,t);if(o=w1(Fi,e).al(),o){if(t==null)return null;if(f=u(t,15),f.dc())return"";for(d=new i1,c=f.Kc();c.Ob();)r=c.Pb(),dr(d,o.Aj().Nh().Ih(o,r)),d.a+=" ";return _O(d,d.a.length-1)}if(a=w1(Fi,e).bl(),!a.dc()){for(l=a.Kc();l.Ob();)if(h=u(l.Pb(),148),h.wj(t))try{if(d=h.Aj().Nh().Ih(h,t),d!=null)return d}catch(g){if(g=jt(g),!I(g,102))throw T(g)}throw T(new Hn("Invalid value: '"+t+"' for datatype :"+e.ne()))}return u(e,834).Fj(),t==null?null:I(t,172)?""+u(t,172).a:Du(t)==zA?Tyn(w9[0],u(t,199)):Lr(t)}function IEe(n){var e,t,i,r,c,o,f,h,l,a;for(l=new Ct,f=new Ct,c=new E(n);c.a-1){for(r=_e(f,0);r.b!=r.d.c;)i=u(Re(r),128),i.v=o;for(;f.b!=0;)for(i=u(dF(f,0),128),t=new E(i.i);t.a0&&(t+=h.n.a+h.o.a/2,++d),v=new E(h.j);v.a0&&(t/=d),S=x(ji,pr,25,i.a.c.length,15,1),f=0,l=new E(i.a);l.a=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,o+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,o+=2);else if(h0?r-=864e5:r+=864e5,h=new oU(Hi(eu(e.q.getTime()),r))),a=new N0,l=n.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(o=c+1;o=l)throw T(new Hn("Missing trailing '"));o+10&&t.c==0&&(!e&&(e=new X),e.c[e.c.length]=t);if(e)for(;e.c.length!=0;){if(t=u(h1(e,0),233),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new X),new E(t.b));c.axr(n,t,0))return new Pi(r,t)}else if(K(ef(r.g,r.d[0]).a)>K(ef(t.g,t.d[0]).a))return new Pi(r,t)}for(f=(!t.e&&(t.e=new X),t.e).Kc();f.Ob();)o=u(f.Pb(),233),h=(!o.b&&(o.b=new X),o.b),nb(0,h.c.length),c5(h.c,0,t),o.c==h.c.length&&(e.c[e.c.length]=o)}return null}function t_n(n,e){var t,i,r,c,o,f,h,l,a;if(n==null)return iu;if(h=e.a.zc(n,e),h!=null)return"[...]";for(t=new va(Ji,"[","]"),r=n,c=0,o=r.length;c=14&&a<=16))?e.a._b(i)?(t.a?De(t.a,t.b):t.a=new Ju(t.d),k5(t.a,"[...]")):(f=wa(i),l=new D5(e),Fh(t,t_n(f,l))):I(i,177)?Fh(t,A6e(u(i,177))):I(i,190)?Fh(t,gve(u(i,190))):I(i,195)?Fh(t,M5e(u(i,195))):I(i,2012)?Fh(t,pve(u(i,2012))):I(i,48)?Fh(t,M6e(u(i,48))):I(i,364)?Fh(t,_6e(u(i,364))):I(i,832)?Fh(t,T6e(u(i,832))):I(i,104)&&Fh(t,C6e(u(i,104))):Fh(t,i==null?iu:Lr(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function i_n(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;for(f=ng(e,!1,!1),S=x7(f),i&&(S=a7(S)),O=K(Y(hn(e,(g6(),$R)))),C=(ne(S.b!=0),u(S.a.a.c,8)),d=u(Go(S,1),8),S.b>2?(a=new X,Yt(a,new sh(S,1,S.b)),c=L_n(a,O+n.a),$=new BF(c),Sr($,e),t.c[t.c.length]=$):i?$=u(te(n.b,lh(e)),266):$=u(te(n.b,pl(e)),266),h=lh(e),i&&(h=pl(e)),o=U5e(C,h),l=O+n.a,o.a?(l+=j.Math.abs(C.b-d.b),m=new fn(d.a,(d.b+C.b)/2)):(l+=j.Math.abs(C.a-d.a),m=new fn((d.a+C.a)/2,d.b)),i?it(n.d,e,new sJ($,o,m,l)):it(n.c,e,new sJ($,o,m,l)),it(n.b,e,$),v=(!e.n&&(e.n=new V(Br,e,1,7)),e.n),p=new ie(v);p.e!=p.i.gc();)g=u(oe(p),137),r=z7(n,g,!0,0,0),t.c[t.c.length]=r}function BEe(n){var e,t,i,r,c,o,f,h,l,a;for(l=new X,f=new X,o=new E(n);o.a-1){for(c=new E(f);c.a0)&&(bq(h,j.Math.min(h.o,r.o-1)),rj(h,h.i-1),h.i==0&&(f.c[f.c.length]=h))}}function E4(n,e,t){var i,r,c,o,f,h,l;if(l=n.c,!e&&(e=m1n),n.c=e,n.Db&4&&!(n.Db&1)&&(h=new wi(n,1,2,l,n.c),t?t.Ei(h):t=h),l!=e){if(I(n.Cb,284))n.Db>>16==-10?t=u(n.Cb,284).nk(e,t):n.Db>>16==-15&&(!e&&(e=(Sn(),Mf)),!l&&(l=(Sn(),Mf)),n.Cb.nh()&&(h=new Lh(n.Cb,1,13,l,e,v1(Ou(u(n.Cb,59)),n),!1),t?t.Ei(h):t=h));else if(I(n.Cb,88))n.Db>>16==-23&&(I(e,88)||(e=(Sn(),uo)),I(l,88)||(l=(Sn(),uo)),n.Cb.nh()&&(h=new Lh(n.Cb,1,10,l,e,v1(wc(u(n.Cb,26)),n),!1),t?t.Ei(h):t=h));else if(I(n.Cb,444))for(f=u(n.Cb,836),o=(!f.b&&(f.b=new hj(new GI)),f.b),c=(i=new ya(new na(o.a).a),new lj(i));c.a.b;)r=u(Ld(c.a).cd(),87),t=E4(r,fM(r,f),t)}return t}function REe(n,e){var t,i,r,c,o,f,h,l,a,d,g;for(o=on(sn(hn(n,(nn(),Xb)))),g=u(hn(n,Qb),21),h=!1,l=!1,d=new ie((!n.c&&(n.c=new V(Ru,n,9,9)),n.c));d.e!=d.i.gc()&&(!h||!l);){for(c=u(oe(d),118),f=0,r=rl(hf(A(M(vf,1),rn,20,0,[(!c.d&&(c.d=new xn(di,c,8,5)),c.d),(!c.e&&(c.e=new xn(di,c,7,4)),c.e)])));Se(r)&&(i=u(ve(r),79),a=o&&Qd(i)&&on(sn(hn(i,za))),t=xRn((!i.b&&(i.b=new xn(he,i,4,7)),i.b),c)?n==At(Pr(u(D((!i.c&&(i.c=new xn(he,i,5,8)),i.c),0),82))):n==At(Pr(u(D((!i.b&&(i.b=new xn(he,i,4,7)),i.b),0),82))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((Tu(),n1))&&(!c.n&&(c.n=new V(Br,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((or(),Ds)),l&&e.Fc((or(),Pm))}function r_n(n){var e,t,i,r,c,o,f,h,l,a,d,g;if(g=u(hn(n,(Xe(),Ja)),21),g.dc())return null;if(f=0,o=0,g.Hc((Vu(),Oy))){for(a=u(hn(n,r9),98),i=2,t=2,r=2,c=2,e=At(n)?u(hn(At(n),M0),103):u(hn(n,M0),103),l=new ie((!n.c&&(n.c=new V(Ru,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(oe(l),118),d=u(hn(h,Hg),61),d==(J(),Wr)&&(d=yZ(h,e),gr(h,Hg,d)),a==(Ai(),Pc))switch(d.g){case 1:i=j.Math.max(i,h.i+h.g);break;case 2:t=j.Math.max(t,h.j+h.f);break;case 3:r=j.Math.max(r,h.i+h.g);break;case 4:c=j.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}f=j.Math.max(i,r),o=j.Math.max(t,c)}return e0(n,f,o,!0,!0)}function kL(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F;for($=u(es(UC(gt(new $n(null,new Fn(e.d,16)),new Q5n(t)),new J5n(t)),ba(new G1,new q1,new z1,A(M(Nu,1),z,132,0,[(af(),hs)]))),15),d=nt,a=Bi,h=new E(e.b.j);h.a0,l?l&&(g=S.p,o?++g:--g,d=u(un(S.c.a,g),10),i=VOn(d),p=!(GF(i,U,t[0])||ACn(i,U,t[0]))):p=!0),v=!1,_=e.D.i,_&&_.c&&f.e&&(a=o&&_.p>0||!o&&_.p<_.c.a.c.length-1,a?(g=_.p,o?--g:++g,d=u(un(_.c.a,g),10),i=VOn(d),v=!(GF(i,t[0],ln)||ACn(i,t[0],ln))):v=!0),p&&v&&Ke(n.a,en),p||Z5(n.a,A(M(ai,1),q,8,0,[m,C])),v||Z5(n.a,A(M(ai,1),q,8,0,[F,O]))}function AM(n,e){var t,i,r,c,o,f,h,l;if(I(n.Ug(),160)?(AM(u(n.Ug(),160),e),e.a+=" > "):e.a+="Root ",t=n.Tg().zb,An(t.substr(0,3),"Elk")?De(e,t.substr(3)):e.a+=""+t,r=n.zg(),r){De((e.a+=" ",e),r);return}if(I(n,354)&&(l=u(n,137).a,l)){De((e.a+=" ",e),l);return}for(o=new ie(n.Ag());o.e!=o.i.gc();)if(c=u(oe(o),137),l=c.a,l){De((e.a+=" ",e),l);return}if(I(n,352)&&(i=u(n,79),!i.b&&(i.b=new xn(he,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new xn(he,i,5,8)),i.c.i!=0))){for(e.a+=" (",f=new w2((!i.b&&(i.b=new xn(he,i,4,7)),i.b));f.e!=f.i.gc();)f.e>0&&(e.a+=Ji),AM(u(oe(f),160),e);for(e.a+=SN,h=new w2((!i.c&&(i.c=new xn(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=Ji),AM(u(oe(h),160),e);e.a+=")"}}function zEe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p;if(c=u(k(n,(G(),rt)),79),!!c){for(i=n.a,r=new mr(t),st(r,F4e(n)),H3(n.d.i,n.c.i)?(g=n.c,d=qr(A(M(ai,1),q,8,0,[g.n,g.a])),ki(d,t)):d=cf(n.c),Kt(i,d,i.a,i.a.a),p=cf(n.d),k(n,$_)!=null&&st(p,u(k(n,$_),8)),Kt(i,p,i.c.b,i.c),sb(i,r),o=ng(c,!0,!0),nT(o,u(D((!c.b&&(c.b=new xn(he,c,4,7)),c.b),0),82)),eT(o,u(D((!c.c&&(c.c=new xn(he,c,5,8)),c.c),0),82)),V7(i,o),a=new E(n.b);a.a=0){for(h=null,f=new Ii(a.a,l+1);f.bo?1:gd(isNaN(0),isNaN(o)))<0&&(ko(Uf),(j.Math.abs(o-1)<=Uf||o==1||isNaN(o)&&isNaN(1)?0:o<1?-1:o>1?1:gd(isNaN(o),isNaN(1)))<0)&&(ko(Uf),(j.Math.abs(0-f)<=Uf||f==0||isNaN(0)&&isNaN(f)?0:0f?1:gd(isNaN(0),isNaN(f)))<0)&&(ko(Uf),(j.Math.abs(f-1)<=Uf||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:gd(isNaN(f),isNaN(1)))<0)),c)}function WEe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U;for(d=new RW(new Sq(n));d.b!=d.c.a.d;)for(a=fPn(d),f=u(a.d,56),e=u(a.e,56),o=f.Tg(),m=0,F=(o.i==null&&Bf(o),o.i).length;m=0&&m=l.c.c.length?a=mX((Qn(),ti),gi):a=mX((Qn(),gi),gi),a*=2,c=t.a.g,t.a.g=j.Math.max(c,c+(a-c)),o=t.b.g,t.b.g=j.Math.max(o,o+(a-o)),r=e}}function QEe(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_;for(_=TEn(n),a=new X,f=n.c.length,d=f-1,g=f+1;_.a.c!=0;){for(;t.b!=0;)O=(ne(t.b!=0),u(Cs(t,t.a.a),112)),q5(_.a,O)!=null,O.g=d--,jZ(O,e,t,i);for(;e.b!=0;)F=(ne(e.b!=0),u(Cs(e,e.a.a),112)),q5(_.a,F)!=null,F.g=g++,jZ(F,e,t,i);for(l=Bi,S=(o=new P5(new M5(new $9(_.a).a).b),new x9(o));X9(S.a.a);){if(C=(c=kE(S.a),u(c.cd(),112)),!i&&C.b>0&&C.a<=0){a.c=x(Zn,rn,1,0,5,1),a.c[a.c.length]=C;break}m=C.i-C.d,m>=l&&(m>l&&(a.c=x(Zn,rn,1,0,5,1),l=m),a.c[a.c.length]=C)}a.c.length!=0&&(h=u(un(a,qT(r,a.c.length)),112),q5(_.a,h)!=null,h.g=g++,jZ(h,e,t,i),a.c=x(Zn,rn,1,0,5,1))}for($=n.c.length+1,v=new E(n);v.a0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}function u_n(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v;for(g=t.d,d=t.c,c=new fn(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),o=c.b,l=new E(n.a);l.a0&&(n.c[e.c.p][e.p].d+=xu(n.i,24)*hk*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function rCe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;for(v=new E(n);v.ai.d,i.d=j.Math.max(i.d,e),f&&t&&(i.d=j.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=j.Math.max(i.a,e),f&&t&&(i.a=j.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=j.Math.max(i.c,e),f&&t&&(i.c=j.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=j.Math.max(i.b,e),f&&t&&(i.b=j.Math.max(i.b,i.c),i.c=i.b+r)}}}function oCe(n){var e,t,i,r,c,o,f,h,l,a,d;for(l=new E(n);l.a0||a.j==Gn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new E(a.g);r.a=l&&_>=C&&(g+=v.n.b+m.n.b+m.a.b-F,++f));if(t)for(o=new E($.e);o.a=l&&_>=C&&(g+=v.n.b+m.n.b+m.a.b-F,++f))}f>0&&(U+=g/f,++p)}p>0?(e.a=r*U/p,e.g=p):(e.a=0,e.g=0)}function hCe(n,e){var t,i,r,c,o,f,h,l,a,d,g;for(r=new E(n.a.b);r.aVt||e.o==Va&&a0&&Zc(S,F*U),_>0&&nu(S,_*en);for(r6(n.b,new gan),e=new X,f=new ya(new na(n.c).a);f.b;)o=Ld(f),i=u(o.cd(),79),t=u(o.dd(),395).a,r=ng(i,!1,!1),d=sFn(lh(i),x7(r),t),V7(d,r),O=mFn(i),O&&xr(e,O,0)==-1&&(e.c[e.c.length]=O,TTn(O,(ne(d.b!=0),u(d.a.a.c,8)),t));for(C=new ya(new na(n.d).a);C.b;)m=Ld(C),i=u(m.cd(),79),t=u(m.dd(),395).a,r=ng(i,!1,!1),d=sFn(pl(i),a7(x7(r)),t),d=a7(d),V7(d,r),O=kFn(i),O&&xr(e,O,0)==-1&&(e.c[e.c.length]=O,TTn(O,(ne(d.b!=0),u(d.c.b.c,8)),t))}function f_n(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en;if(t.c.length!=0){for(p=new X,g=new E(t);g.a1)for(p=new IZ(v,O,i),$i(O,new tkn(n,p)),o.c[o.c.length]=p,d=O.a.ec().Kc();d.Ob();)a=u(d.Pb(),46),Qc(c,a.b);if(f.a.gc()>1)for(p=new IZ(v,f,i),$i(f,new ikn(n,p)),o.c[o.c.length]=p,d=f.a.ec().Kc();d.Ob();)a=u(d.Pb(),46),Qc(c,a.b)}}function l_n(n){bd(n,new Sa(yj(hd(sd(fd(od(new Jl,Wf),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new xgn),Wf))),Z(n,Wf,lA,cn(DYn)),Z(n,Wf,Ib,cn($Yn)),Z(n,Wf,hg,cn(SYn)),Z(n,Wf,rp,cn(PYn)),Z(n,Wf,ip,cn(IYn)),Z(n,Wf,F4,cn(AYn)),Z(n,Wf,X6,cn(Kon)),Z(n,Wf,L4,cn(OYn)),Z(n,Wf,gB,cn(PK)),Z(n,Wf,wB,cn(IK)),Z(n,Wf,htn,cn(Hon)),Z(n,Wf,utn,cn(SP)),Z(n,Wf,stn,cn(PP)),Z(n,Wf,otn,cn(ay)),Z(n,Wf,ftn,cn(qon))}function RZ(n){var e;if(this.r=Whe(new Nln,new Bln),this.b=new d6(u(pe(Zi),290)),this.p=new d6(u(pe(Zi),290)),this.i=new d6(u(pe(yUn),290)),this.e=n,this.o=new mr(n.rf()),this.D=n.Df()||on(sn(n.We((Xe(),jy)))),this.A=u(n.We((Xe(),Ja)),21),this.B=u(n.We(Bl),21),this.q=u(n.We(r9),98),this.u=u(n.We(tw),21),!n5e(this.u))throw T(new pw("Invalid port label placement: "+this.u));if(this.v=on(sn(n.We(yhn))),this.j=u(n.We(_g),21),!C9e(this.j))throw T(new pw("Invalid node label placement: "+this.j));this.n=u(m6(n,ohn),116),this.k=K(Y(m6(n,GP))),this.d=K(Y(m6(n,Thn))),this.w=K(Y(m6(n,Ihn))),this.s=K(Y(m6(n,Mhn))),this.t=K(Y(m6(n,Ahn))),this.C=u(m6(n,Shn),142),this.c=2*this.d,e=!this.B.Hc((Fu(),Dy)),this.f=new w6(0,e,0),this.g=new w6(1,e,0),XI(this.f,(Ko(),Lc),this.g)}function mCe(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn;for(O=0,v=0,p=0,g=1,$=new ie((!n.a&&(n.a=new V(Pt,n,10,11)),n.a));$.e!=$.i.gc();)C=u(oe($),33),g+=xh(new re(ue(Gh(C).a.Kc(),new Mn))),ln=C.g,v=j.Math.max(v,ln),d=C.f,p=j.Math.max(p,d),O+=ln*d;for(m=(!n.a&&(n.a=new V(Pt,n,10,11)),n.a).i,o=O+2*i*i*g*m,c=j.Math.sqrt(o),h=j.Math.max(c*t,v),f=j.Math.max(c/t,p),S=new ie((!n.a&&(n.a=new V(Pt,n,10,11)),n.a));S.e!=S.i.gc();)C=u(oe(S),33),wn=r.b+(xu(e,26)*K6+xu(e,27)*H6)*(h-C.g),zn=r.b+(xu(e,26)*K6+xu(e,27)*H6)*(f-C.f),Zc(C,wn),nu(C,zn);for(en=h+(r.b+r.c),U=f+(r.d+r.a),_=new ie((!n.a&&(n.a=new V(Pt,n,10,11)),n.a));_.e!=_.i.gc();)for(F=u(oe(_),33),a=new re(ue(Gh(F).a.Kc(),new Mn));Se(a);)l=u(ve(a),79),M6(l)||kTe(l,e,en,U);en+=r.b+r.c,U+=r.d+r.a,e0(n,en,U,!1,!0)}function PM(n){var e,t,i,r,c,o,f,h,l,a,d;if(n==null)throw T(new If(iu));if(l=n,c=n.length,h=!1,c>0&&(e=(Me(0,n.length),n.charCodeAt(0)),(e==45||e==43)&&(n=n.substr(1),--c,h=e==45)),c==0)throw T(new If(r0+l+'"'));for(;n.length>0&&(Me(0,n.length),n.charCodeAt(0)==48);)n=n.substr(1),--c;if(c>(ZBn(),yzn)[10])throw T(new If(r0+l+'"'));for(r=0;r0&&(d=-parseInt(n.substr(0,i),10),n=n.substr(i),c-=i,t=!1);c>=o;){if(i=parseInt(n.substr(0,o),10),n=n.substr(o),c-=o,t)t=!1;else{if(fc(d,f)<0)throw T(new If(r0+l+'"'));d=Ni(d,a)}d=gl(d,i)}if(fc(d,0)>0)throw T(new If(r0+l+'"'));if(!h&&(d=I3(d),fc(d,0)<0))throw T(new If(r0+l+'"'));return d}function _Z(n,e){HEn();var t,i,r,c,o,f,h;if(this.a=new Iz(this),this.b=n,this.c=e,this.f=DD(jr((wu(),Fi),e)),this.f.dc())if((f=TJ(Fi,n))==e)for(this.e=!0,this.d=new X,this.f=new H2n,this.f.Fc(Ra),u(TM(X8(Fi,ts(n)),""),26)==n&&this.f.Fc(x5(Fi,ts(n))),r=nL(Fi,n).Kc();r.Ob();)switch(i=u(r.Pb(),170),Ad(jr(Fi,i))){case 4:{this.d.Fc(i);break}case 5:{this.f.Gc(DD(jr(Fi,i)));break}}else if(er(),u(e,66).Oj())for(this.e=!0,this.f=null,this.d=new X,o=0,h=(n.i==null&&Bf(n),n.i).length;o=0&&o0&&(u(br(n.b,e),124).a.b=t)}function kCe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S;for(le(e,"Comment pre-processing",1),t=0,h=new E(n.a);h.a0&&(h=(Me(0,e.length),e.charCodeAt(0)),h!=64)){if(h==37&&(d=e.lastIndexOf("%"),l=!1,d!=0&&(d==g-1||(l=(Me(d+1,e.length),e.charCodeAt(d+1)==46))))){if(o=e.substr(1,d-1),O=An("%",o)?null:HZ(o),i=0,l)try{i=us(e.substr(d+2),Bi,nt)}catch(F){throw F=jt(F),I(F,127)?(f=F,T(new BC(f))):T(F)}for(C=jV(n.Wg());C.Ob();)if(v=dT(C),I(v,510)&&(r=u(v,590),$=r.d,(O==null?$==null:An(O,$))&&i--==0))return r;return null}if(a=e.lastIndexOf("."),p=a==-1?e:e.substr(0,a),t=0,a!=-1)try{t=us(e.substr(a+1),Bi,nt)}catch(F){if(F=jt(F),I(F,127))p=e;else throw T(F)}for(p=An("%",p)?null:HZ(p),m=jV(n.Wg());m.Ob();)if(v=dT(m),I(v,191)&&(c=u(v,191),S=c.ne(),(p==null?S==null:An(p,S))&&t--==0))return c;return null}return LRn(n,e)}function ECe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn;for(U=new X,v=new E(n.b);v.a=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},S7e()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[rN]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),n}function TCe(n){kZ();var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;if(n==null)return null;if(d=n.length*8,d==0)return"";for(f=d%24,p=d/24|0,g=f!=0?p+1:p,c=null,c=x(Fs,_f,25,g*4,15,1),l=0,a=0,e=0,t=0,i=0,o=0,r=0,h=0;h>24,l=(e&3)<<24>>24,v=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,m=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,C=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[o++]=R1[v],c[o++]=R1[m|l<<4],c[o++]=R1[a<<2|C],c[o++]=R1[i&63];return f==8?(e=n[r],l=(e&3)<<24>>24,v=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,c[o++]=R1[v],c[o++]=R1[l<<4],c[o++]=61,c[o++]=61):f==16&&(e=n[r],t=n[r+1],a=(t&15)<<24>>24,l=(e&3)<<24>>24,v=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,m=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,c[o++]=R1[v],c[o++]=R1[m|l<<4],c[o++]=R1[a<<2],c[o++]=61),Ks(c,0,c.length)}function MCe(n,e){var t,i,r,c,o,f,h;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Bi&&yX(e,n.p-El),o=e.q.getDate(),O8(e,1),n.k>=0&&ole(e,n.k),n.c>=0?O8(e,n.c):n.k>=0?(h=new HV(e.q.getFullYear()-El,e.q.getMonth(),35),i=35-h.q.getDate(),O8(e,j.Math.min(i,o))):O8(e,o),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),mce(e,n.f==24&&n.g?0:n.f),n.j>=0&&mde(e,n.j),n.n>=0&&Nde(e,n.n),n.i>=0&&Kkn(e,Hi(Ni(I7(eu(e.q.getTime()),j1),j1),n.i)),n.a&&(r=new Sj,yX(r,r.q.getFullYear()-El-80),oO(eu(e.q.getTime()),eu(r.q.getTime()))&&yX(e,r.q.getFullYear()-El+100)),n.d>=0){if(n.c==-1)t=(7+n.d-e.q.getDay())%7,t>3&&(t-=7),f=e.q.getMonth(),O8(e,e.q.getDate()+t),e.q.getMonth()!=f&&O8(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1}return n.o>Bi&&(c=e.q.getTimezoneOffset(),Kkn(e,Hi(eu(e.q.getTime()),(n.o-c)*60*j1))),!0}function b_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F;if(r=k(e,(G(),rt)),!!I(r,239)){for(v=u(r,33),m=e.e,g=new mr(e.c),c=e.d,g.a+=c.b,g.b+=c.d,F=u(hn(v,(nn(),uP)),174),lu(F,(Fu(),WP))&&(p=u(hn(v,Tsn),116),Zee(p,c.a),ste(p,c.d),nte(p,c.b),ote(p,c.c)),t=new X,a=new E(e.a);a.a0&&W(n.p,a),W(n.o,a);e-=i,p=h+e,l+=e*n.e,js(n.a,f,Q(p)),js(n.b,f,l),n.j=j.Math.max(n.j,p),n.k=j.Math.max(n.k,l),n.d+=e,e+=m}}function J(){J=N;var n;Wr=new u8(z6,0),Kn=new u8(_M,1),Vn=new u8(bN,2),ae=new u8(wN,3),Gn=new u8(gN,4),Tf=(Pn(),new Xp((n=u(Lo(Zi),9),new ms(n,u(wo(n,n.length),9),0)))),$o=b1(pt(Kn,A(M(Zi,1),hc,61,0,[]))),$s=b1(pt(Vn,A(M(Zi,1),hc,61,0,[]))),ds=b1(pt(ae,A(M(Zi,1),hc,61,0,[]))),eo=b1(pt(Gn,A(M(Zi,1),hc,61,0,[]))),cu=b1(pt(Kn,A(M(Zi,1),hc,61,0,[ae]))),Gc=b1(pt(Vn,A(M(Zi,1),hc,61,0,[Gn]))),xo=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Gn]))),Su=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Vn]))),bs=b1(pt(ae,A(M(Zi,1),hc,61,0,[Gn]))),xs=b1(pt(Vn,A(M(Zi,1),hc,61,0,[ae]))),Pu=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Vn,Gn]))),ru=b1(pt(Vn,A(M(Zi,1),hc,61,0,[ae,Gn]))),uu=b1(pt(Kn,A(M(Zi,1),hc,61,0,[ae,Gn]))),mu=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Vn,ae]))),Ic=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Vn,ae,Gn])))}function v_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;if(e.b!=0){for(p=new Ct,f=null,v=null,i=Ht(j.Math.floor(j.Math.log(e.b)*j.Math.LOG10E)+1),h=0,O=_e(e,0);O.b!=O.d.c;)for(S=u(Re(O),86),B(v)!==B(k(S,(cc(),Qm)))&&(v=Te(k(S,Qm)),h=0),v!=null?f=v+RMn(h++,i):f=RMn(h++,i),H(S,Qm,f),C=(r=_e(new U1(S).a.d,0),new t2(r));Cj(C.a);)m=u(Re(C.a),188).c,Kt(p,m,p.c.b,p.c),H(m,Qm,f);for(g=new we,o=0;o=h){ne(S.b>0),S.a.Xb(S.c=--S.b);break}else m.a>l&&(r?(Yt(r.b,m.b),r.a=j.Math.max(r.a,m.a),Uu(S)):(W(m.b,d),m.c=j.Math.min(m.c,l),m.a=j.Math.max(m.a,h),r=m));r||(r=new i9n,r.c=l,r.a=h,U0(S,r),W(r.b,d))}for(f=e.b,a=0,C=new E(i);C.af?1:0:(n.b&&(n.b._b(c)&&(r=u(n.b.xc(c),19).a),n.b._b(h)&&(f=u(n.b.xc(h),19).a)),rf?1:0)):e.e.c.length!=0&&t.g.c.length!=0?1:-1}function ICe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en;for(le(e,oHn,1),m=new X,U=new X,l=new E(n.b);l.a0&&(O-=p),OZ(o,O),a=0,g=new E(o.a);g.a0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.be.d.c){if(p=n.c[e.a.d],C=n.c[d.a.d],p==C)continue;Eo(ao(lo(bo(ho(new Ls,1),100),p),C))}}}}}function HZ(n){pL();var e,t,i,r,c,o,f,h;if(n==null)return null;if(r=Of(n,tu(37)),r<0)return n;for(h=new Ju(n.substr(0,r)),e=x(ku,wg,25,4,15,1),f=0,i=0,o=n.length;rr+2&&fx((Me(r+1,n.length),n.charCodeAt(r+1)),a1n,d1n)&&fx((Me(r+2,n.length),n.charCodeAt(r+2)),a1n,d1n))if(t=ife((Me(r+1,n.length),n.charCodeAt(r+1)),(Me(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?(t&192)==128?e[f++]=t<<24>>24:i=0:t>=128&&((t&224)==192?(e[f++]=t<<24>>24,i=2):(t&240)==224?(e[f++]=t<<24>>24,i=3):(t&248)==240&&(e[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:{cl(h,((e[0]&31)<<6|e[1]&63)&Ut);break}case 3:{cl(h,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&Ut);break}}f=0,i=0}}else{for(c=0;c0){if(o+i>n.length)return!1;f=cM(n.substr(0,o+i),e)}else f=cM(n,e);switch(c){case 71:return f=Qw(n,o,A(M(tn,1),q,2,6,[nKn,eKn]),e),r.e=f,!0;case 77:return p7e(n,e,r,f,o);case 76:return v7e(n,e,r,f,o);case 69:return f6e(n,e,o,r);case 99:return h6e(n,e,o,r);case 97:return f=Qw(n,o,A(M(tn,1),q,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return m7e(n,e,o,f,t,r);case 100:return f<=0?!1:(r.c=f,!0);case 83:return f<0?!1:E2e(f,o,e[0],r);case 104:f==12&&(f=0);case 75:case 72:return f<0?!1:(r.f=f,r.g=!1,!0);case 107:return f<0?!1:(r.f=f,r.g=!0,!0);case 109:return f<0?!1:(r.j=f,!0);case 115:return f<0?!1:(r.n=f,!0);case 90:if(oU&&(v.c=U-v.b),W(o.d,new TD(v,vQ(o,v))),$=e==Kn?j.Math.max($,m.b+l.b.rf().b):j.Math.min($,m.b));for($+=e==Kn?n.t:-n.t,O=xQ((o.e=$,o)),O>0&&(u(br(n.b,e),124).a.b=O),a=g.Kc();a.Ob();)l=u(a.Pb(),111),!(!l.c||l.c.d.c.length<=0)&&(v=l.c.i,v.c-=l.e.a,v.d-=l.e.b)}function NCe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p;for(e=new we,h=new ie(n);h.e!=h.i.gc();){for(f=u(oe(h),33),t=new fi,it(FR,f,t),p=new lan,r=u(es(new $n(null,new Ed(new re(ue(K7(f).a.Kc(),new Mn)))),hCn(p,ba(new G1,new q1,new z1,A(M(Nu,1),z,132,0,[(af(),hs)])))),83),$In(t,u(r.xc((qn(),!0)),14),new aan),i=u(es(gt(u(r.xc(!1),15).Lc(),new dan),ba(new G1,new q1,new z1,A(M(Nu,1),z,132,0,[hs]))),15),o=i.Kc();o.Ob();)c=u(o.Pb(),79),g=mFn(c),g&&(l=u(Xr(Ar(e.f,g)),21),l||(l=RNn(g),_c(e.f,g,l)),Vi(t,l));for(r=u(es(new $n(null,new Ed(new re(ue(Gh(f).a.Kc(),new Mn)))),hCn(p,ba(new G1,new q1,new z1,A(M(Nu,1),z,132,0,[hs])))),83),$In(t,u(r.xc(!0),14),new ban),i=u(es(gt(u(r.xc(!1),15).Lc(),new wan),ba(new G1,new q1,new z1,A(M(Nu,1),z,132,0,[hs]))),15),d=i.Kc();d.Ob();)a=u(d.Pb(),79),g=kFn(a),g&&(l=u(Xr(Ar(e.f,g)),21),l||(l=RNn(g),_c(e.f,g,l)),Vi(t,l))}}function BCe(n,e){lL();var t,i,r,c,o,f,h,l,a,d,g,p,v,m;if(h=fc(n,0)<0,h&&(n=I3(n)),fc(n,0)==0)switch(e){case 0:return"0";case 1:return P4;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return p=new W1,e<0?p.a+="0E+":p.a+="0E",p.a+=e==Bi?"2147483648":""+-e,p.a}a=18,d=x(Fs,_f,25,a+1,15,1),t=a,m=n;do l=m,m=I7(m,10),d[--t]=ge(Hi(48,gl(l,Ni(m,10))))&Ut;while(fc(m,0)!=0);if(r=gl(gl(gl(a,t),e),1),e==0)return h&&(d[--t]=45),Ks(d,t,a-t);if(e>0&&fc(r,-6)>=0){if(fc(r,0)>=0){for(c=t+ge(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),Ks(d,t,a-t+1)}for(o=2;oO(o,Hi(I3(r),1));o++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),Ks(d,t,a-t)}return v=t+1,i=a,g=new N0,h&&(g.a+="-"),i-v>=1?(cl(g,d[t]),g.a+=".",g.a+=Ks(d,t+1,a-t-1)):g.a+=Ks(d,t,a-t),g.a+="E",fc(r,0)>0&&(g.a+="+"),g.a+=""+F5(r),g.a}function RCe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p;if(n.e.a.$b(),n.f.a.$b(),n.c.c=x(Zn,rn,1,0,5,1),n.i.c=x(Zn,rn,1,0,5,1),n.g.a.$b(),e)for(o=new E(e.a);o.a=1&&(_-l>0&&v>=0?(Zc(d,d.i+F),nu(d,d.j+h*l)):_-l<0&&p>=0&&(Zc(d,d.i+F*_),nu(d,d.j+h)));return gr(n,(Xe(),Ja),(Vu(),c=u(Lo(a9),9),new ms(c,u(wo(c,c.length),9),0))),new fn(U,a)}function y_n(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v;if(p=At(Pr(u(D((!n.b&&(n.b=new xn(he,n,4,7)),n.b),0),82))),v=At(Pr(u(D((!n.c&&(n.c=new xn(he,n,5,8)),n.c),0),82))),d=p==v,f=new Li,e=u(hn(n,(vT(),Bhn)),74),e&&e.b>=2){if((!n.a&&(n.a=new V(Tt,n,6,6)),n.a).i==0)t=(ld(),r=new Yy,r),me((!n.a&&(n.a=new V(Tt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new V(Tt,n,6,6)),n.a).i>1)for(g=new w2((!n.a&&(n.a=new V(Tt,n,6,6)),n.a));g.e!=g.i.gc();)y6(g);V7(e,u(D((!n.a&&(n.a=new V(Tt,n,6,6)),n.a),0),202))}if(d)for(i=new ie((!n.a&&(n.a=new V(Tt,n,6,6)),n.a));i.e!=i.i.gc();)for(t=u(oe(i),202),l=new ie((!t.a&&(t.a=new Jt(to,t,5)),t.a));l.e!=l.i.gc();)h=u(oe(l),469),f.a=j.Math.max(f.a,h.a),f.b=j.Math.max(f.b,h.b);for(o=new ie((!n.n&&(n.n=new V(Br,n,1,7)),n.n));o.e!=o.i.gc();)c=u(oe(o),137),a=u(hn(c,u9),8),a&&Zo(c,a.a,a.b),d&&(f.a=j.Math.max(f.a,c.i+c.g),f.b=j.Math.max(f.b,c.j+c.f));return f}function _Ce(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln;for(O=e.c.length,r=new tg(n.a,t,null,null),ln=x(ji,pr,25,O,15,1),m=x(ji,pr,25,O,15,1),v=x(ji,pr,25,O,15,1),C=0,f=0;fln[h]&&(C=h),d=new E(n.a.b);d.ap&&(c&&(ra(U,g),ra(ln,Q(l.b-1))),Ye=t.b,oi+=g+e,g=0,a=j.Math.max(a,t.b+t.c+se)),Zc(f,Ye),nu(f,oi),a=j.Math.max(a,Ye+se+t.c),g=j.Math.max(g,d),Ye+=se+e;if(a=j.Math.max(a,i),Wn=oi+g+t.a,Wnqf,wn=j.Math.abs(g.b-v.b)>qf,(!t&&ln&&wn||t&&(ln||wn))&&Ke(C.a,F)),Vi(C.a,i),i.b==0?g=F:g=(ne(i.b!=0),u(i.c.b.c,8)),rwe(p,d,m),hOn(r)==en&&(qi(en.i)!=r.a&&(m=new Li,uY(m,qi(en.i),$)),H(C,$_,m)),S5e(p,C,$),a.a.zc(p,a);Ki(C,_),Ti(C,en)}for(l=a.a.ec().Kc();l.Ob();)h=u(l.Pb(),17),Ki(h,null),Ti(h,null);ce(e)}function j_n(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F;if(n.gc()==1)return u(n.Xb(0),231);if(n.gc()<=0)return new SC;for(r=n.Kc();r.Ob();){for(t=u(r.Pb(),231),v=0,a=nt,d=nt,h=Bi,l=Bi,p=new E(t.e);p.af&&(O=0,F+=o+S,o=0),Mke(m,t,O,F),e=j.Math.max(e,O+C.a),o=j.Math.max(o,C.b),O+=C.a+S;return m}function E_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v;switch(a=new fu,n.a.g){case 3:g=u(k(e.e,(G(),Ga)),15),p=u(k(e.j,Ga),15),v=u(k(e.f,Ga),15),t=u(k(e.e,Og),15),i=u(k(e.j,Og),15),r=u(k(e.f,Og),15),o=new X,Yt(o,g),p.Jc(new pwn),Yt(o,I(p,152)?O2(u(p,152)):I(p,131)?u(p,131).a:I(p,54)?new ud(p):new B0(p)),Yt(o,v),c=new X,Yt(c,t),Yt(c,I(i,152)?O2(u(i,152)):I(i,131)?u(i,131).a:I(i,54)?new ud(i):new B0(i)),Yt(c,r),H(e.f,Ga,o),H(e.f,Og,c),H(e.f,Eun,e.f),H(e.e,Ga,null),H(e.e,Og,null),H(e.j,Ga,null),H(e.j,Og,null);break;case 1:Vi(a,e.e.a),Ke(a,e.i.n),Vi(a,ga(e.j.a)),Ke(a,e.a.n),Vi(a,e.f.a);break;default:Vi(a,e.e.a),Vi(a,ga(e.j.a)),Vi(a,e.f.a)}Rs(e.f.a),Vi(e.f.a,a),Ki(e.f,e.e.c),f=u(k(e.e,(nn(),Tr)),74),l=u(k(e.j,Tr),74),h=u(k(e.f,Tr),74),(f||l||h)&&(d=new fu,PW(d,h),PW(d,l),PW(d,f),H(e.f,Tr,d)),Ki(e.j,null),Ti(e.j,null),Ki(e.e,null),Ti(e.e,null),yr(e.a,null),yr(e.i,null),e.g&&E_n(n,e.g)}function GCe(n){kZ();var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;if(n==null||(c=_C(n),v=Oge(c),v%4!=0))return null;if(m=v/4|0,m==0)return x(ku,wg,25,0,15,1);for(d=null,e=0,t=0,i=0,r=0,o=0,f=0,h=0,l=0,p=0,g=0,a=0,d=x(ku,wg,25,m*3,15,1);p>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return!H9(o=c[a++])||!H9(f=c[a++])?null:(e=Af[o],t=Af[f],h=c[a++],l=c[a++],Af[h]==-1||Af[l]==-1?h==61&&l==61?t&15?null:(C=x(ku,wg,25,p*3+1,15,1),pc(d,0,C,0,p*3),C[g]=(e<<2|t>>4)<<24>>24,C):h!=61&&l==61?(i=Af[h],i&3?null:(C=x(ku,wg,25,p*3+2,15,1),pc(d,0,C,0,p*3),C[g++]=(e<<2|t>>4)<<24>>24,C[g]=((t&15)<<4|i>>2&15)<<24>>24,C)):null:(i=Af[h],r=Af[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d))}function zCe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_;for(le(e,oHn,1),v=u(k(n,(nn(),Qh)),218),r=new E(n.b);r.a=2){for(m=!0,g=new E(c.j),t=u(y(g),11),p=null;g.a0&&(r=u(un(C.c.a,U-1),10),o=n.i[r.p],ln=j.Math.ceil(Mw(n.n,r,C)),c=_.a.e-C.d.d-(o.a.e+r.o.b+r.d.a)-ln),l=xt,U0&&en.a.e.e-en.a.a-(en.b.e.e-en.b.a)<0,v=O.a.e.e-O.a.a-(O.b.e.e-O.b.a)<0&&en.a.e.e-en.a.a-(en.b.e.e-en.b.a)>0,p=O.a.e.e+O.b.aen.b.e.e+en.a.a,F=0,!m&&!v&&(g?c+d>0?F=d:l-i>0&&(F=i):p&&(c+f>0?F=f:l-$>0&&(F=$))),_.a.e+=F,_.b&&(_.d.e+=F),!1))}function T_n(n,e,t){var i,r,c,o,f,h,l,a,d,g;if(i=new ks(e.qf().a,e.qf().b,e.rf().a,e.rf().b),r=new b2,n.c)for(o=new E(e.wf());o.al&&(i.a+=Iyn(x(Fs,_f,25,-l,15,1))),i.a+="Is",Of(h,tu(32))>=0)for(r=0;r=i.o.b/2}else $=!d;$?(S=u(k(i,(G(),kp)),15),S?g?c=S:(r=u(k(i,wp),15),r?S.gc()<=r.gc()?c=S:c=r:(c=new X,H(i,wp,c))):(c=new X,H(i,kp,c))):(r=u(k(i,(G(),wp)),15),r?d?c=r:(S=u(k(i,kp),15),S?r.gc()<=S.gc()?c=r:c=S:(c=new X,H(i,kp,c))):(c=new X,H(i,wp,c))),c.Fc(n),H(n,(G(),qS),t),e.d==t?(Ti(e,null),t.e.c.length+t.g.c.length==0&&Kr(t,null),Rwe(t)):(Ki(e,null),t.e.c.length+t.g.c.length==0&&Kr(t,null)),Rs(e.a)}function VCe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn,se,Ye;for($=new Ii(n.b,0),a=e.Kc(),v=0,l=u(a.Pb(),19).a,_=0,t=new fi,en=new Sh;$.b<$.d.gc();){for(S=(ne($.b<$.d.gc()),u($.d.Xb($.c=$.b++),29)),F=new E(S.a);F.a=n.a&&(i=xye(n,$),a=j.Math.max(a,i.b),F=j.Math.max(F,i.d),W(f,new Pi($,i)));for(ln=new X,l=0;l0),C.a.Xb(C.c=--C.b),wn=new Bs(n.b),U0(C,wn),ne(C.b0?(l=0,C&&(l+=f),l+=(wn-1)*o,O&&(l+=f),ln&&O&&(l=j.Math.max(l,$8e(O,o,$,en))),l<$&&!g&&!p&&(Wn=($-l)/2,l=$),F+=l):!g&&!p&&(F+=$),O&&OZ(O,F),U=new E(n.i);U.a0){for(g=a<100?null:new X1(a),l=new MV(e),v=l.g,S=x(be,Le,25,a,15,1),i=0,F=new Fd(a),r=0;r=0;)if(p!=null?tt(p,v[h]):B(p)===B(v[h])){S.length<=i&&(C=S,S=x(be,Le,25,2*S.length,15,1),pc(C,0,S,0,i)),S[i++]=r,me(F,v[h]);break n}if(p=p,B(p)===B(f))break}}if(l=F,v=F.g,a=i,i>S.length&&(C=S,S=x(be,Le,25,i,15,1),pc(C,0,S,0,i)),i>0){for(O=!0,c=0;c=0;)q2(n,S[o]);if(i!=a){for(r=a;--r>=i;)q2(l,r);C=S,S=x(be,Le,25,i,15,1),pc(C,0,S,0,i)}e=l}}}else for(e=O3e(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(q2(n,r),O=!0);if(O){if(S!=null){for(t=e.gc(),d=t==1?G5(n,4,e.Kc().Pb(),null,S[0],m):G5(n,6,e,S,S[0],m),g=t<100?null:new X1(t),r=e.Kc();r.Ob();)p=r.Pb(),g=IU(n,u(p,72),g);g?(g.Ei(d),g.Fi()):et(n.e,d)}else{for(g=Gue(e.gc()),r=e.Kc();r.Ob();)p=r.Pb(),g=IU(n,u(p,72),g);g&&g.Fi()}return!0}else return!1}function nTe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;for(t=new Z$n(e),t.a||Nke(e),l=B7e(e),h=new Id,C=new WNn,m=new E(e.a);m.a0||t.o==jf&&r0?(d=u(un(g.c.a,o-1),10),ln=Mw(n.b,g,d),C=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+ln)):C=g.n.b-g.d.d,l=j.Math.min(C,l),oo?v4(n,e,t):v4(n,t,e),ro?1:0}return i=u(k(e,(G(),dc)),19).a,c=u(k(t,dc),19).a,i>c?v4(n,e,t):v4(n,t,e),ic?1:0}function qZ(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C,S,$;if(on(sn(hn(e,(Xe(),HP)))))return Pn(),Pn(),cr;if(l=(!e.a&&(e.a=new V(Pt,e,10,11)),e.a).i!=0,d=H6e(e),a=!d.dc(),l||a){if(r=u(hn(e,jv),149),!r)throw T(new pw("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if($=az(r,(b4(),eI)),x$n(e),!l&&a&&!$)return Pn(),Pn(),cr;if(h=new X,B(hn(e,Bg))===B((_h(),x1))&&(az(r,ZP)||az(r,YP)))for(p=gBn(n,e),v=new Ct,Vi(v,(!e.a&&(e.a=new V(Pt,e,10,11)),e.a));v.b!=0;)g=u(v.b==0?null:(ne(v.b!=0),Cs(v,v.a.a)),33),x$n(g),S=B(hn(g,Bg))===B(s9),S||da(g,i9)&&!MX(r,hn(g,jv))?(f=qZ(n,g,t,i),Yt(h,f),gr(g,Bg,s9),$Bn(g)):Vi(v,(!g.a&&(g.a=new V(Pt,g,10,11)),g.a));else for(p=(!e.a&&(e.a=new V(Pt,e,10,11)),e.a).i,o=new ie((!e.a&&(e.a=new V(Pt,e,10,11)),e.a));o.e!=o.i.gc();)c=u(oe(o),33),f=qZ(n,c,t,i),Yt(h,f),$Bn(c);for(C=new E(h);C.a=0?p=R2(f):p=v7(R2(f)),n.Ye(bv,p)),l=new Li,g=!1,n.Xe(j0)?(eU(l,u(n.We(j0),8)),g=!0):Pce(l,o.a/2,o.b/2),p.g){case 4:H(a,qc,(As(),$l)),H(a,zS,(ma(),Tg)),a.o.b=o.b,m<0&&(a.o.a=-m),ui(d,(J(),Vn)),g||(l.a=o.a),l.a-=o.a;break;case 2:H(a,qc,(As(),Gb)),H(a,zS,(ma(),uv)),a.o.b=o.b,m<0&&(a.o.a=-m),ui(d,(J(),Gn)),g||(l.a=0);break;case 1:H(a,qa,(Nh(),Ag)),a.o.a=o.a,m<0&&(a.o.b=-m),ui(d,(J(),ae)),g||(l.b=o.b),l.b-=o.b;break;case 3:H(a,qa,(Nh(),bp)),a.o.a=o.a,m<0&&(a.o.b=-m),ui(d,(J(),Kn)),g||(l.b=0)}if(eU(d.n,l),H(a,j0,l),e==nd||e==Ch||e==Pc){if(v=0,e==nd&&n.Xe(P1))switch(p.g){case 1:case 2:v=u(n.We(P1),19).a;break;case 3:case 4:v=-u(n.We(P1),19).a}else switch(p.g){case 4:case 2:v=c.b,e==Ch&&(v/=r.b);break;case 1:case 3:v=c.a,e==Ch&&(v/=r.a)}H(a,m0,v)}return H(a,nc,p),a}function iTe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn;if(t=K(Y(k(n.a.j,(nn(),isn)))),t<-1||!n.a.i||v2(u(k(n.a.o,Lt),98))||Gr(n.a.o,(J(),Vn)).gc()<2&&Gr(n.a.o,Gn).gc()<2)return!0;if(n.a.c.Rf())return!1;for(_=0,F=0,O=new X,h=n.a.e,l=0,a=h.length;l=t}function rTe(){TG();function n(i){var r=this;this.dispatch=function(c){var o=c.data;switch(o.cmd){case"algorithms":var f=$Q((Pn(),new Kp(new Mh(zl.b))));i.postMessage({id:o.id,data:f});break;case"categories":var h=$Q((Pn(),new Kp(new Mh(zl.c))));i.postMessage({id:o.id,data:h});break;case"options":var l=$Q((Pn(),new Kp(new Mh(zl.d))));i.postMessage({id:o.id,data:l});break;case"register":lEe(o.algorithms),i.postMessage({id:o.id});break;case"layout":zye(o.graph,o.layoutOptions||{},o.options||{}),i.postMessage({id:o.id,data:o.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(o){i.postMessage({id:c.data.id,error:o})}}}function e(i){var r=this;this.dispatcher=new n({postMessage:function(c){r.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){r.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===oN&&typeof self!==oN){var t=new n(self);self.onmessage=t.saveDispatch}else typeof dt!==oN&&dt.exports&&(Object.defineProperty(Ot,"__esModule",{value:!0}),dt.exports={default:e,Worker:e})}function cTe(n){n.N||(n.N=!0,n.b=Jr(n,0),St(n.b,0),St(n.b,1),St(n.b,2),n.bb=Jr(n,1),St(n.bb,0),St(n.bb,1),n.fb=Jr(n,2),St(n.fb,3),St(n.fb,4),bt(n.fb,5),n.qb=Jr(n,3),St(n.qb,0),bt(n.qb,1),bt(n.qb,2),St(n.qb,3),St(n.qb,4),bt(n.qb,5),St(n.qb,6),n.a=ze(n,4),n.c=ze(n,5),n.d=ze(n,6),n.e=ze(n,7),n.f=ze(n,8),n.g=ze(n,9),n.i=ze(n,10),n.j=ze(n,11),n.k=ze(n,12),n.n=ze(n,13),n.o=ze(n,14),n.p=ze(n,15),n.q=ze(n,16),n.s=ze(n,17),n.r=ze(n,18),n.t=ze(n,19),n.u=ze(n,20),n.v=ze(n,21),n.w=ze(n,22),n.B=ze(n,23),n.A=ze(n,24),n.C=ze(n,25),n.D=ze(n,26),n.F=ze(n,27),n.G=ze(n,28),n.H=ze(n,29),n.J=ze(n,30),n.I=ze(n,31),n.K=ze(n,32),n.M=ze(n,33),n.L=ze(n,34),n.P=ze(n,35),n.Q=ze(n,36),n.R=ze(n,37),n.S=ze(n,38),n.T=ze(n,39),n.U=ze(n,40),n.V=ze(n,41),n.X=ze(n,42),n.W=ze(n,43),n.Y=ze(n,44),n.Z=ze(n,45),n.$=ze(n,46),n._=ze(n,47),n.ab=ze(n,48),n.cb=ze(n,49),n.db=ze(n,50),n.eb=ze(n,51),n.gb=ze(n,52),n.hb=ze(n,53),n.ib=ze(n,54),n.jb=ze(n,55),n.kb=ze(n,56),n.lb=ze(n,57),n.mb=ze(n,58),n.nb=ze(n,59),n.ob=ze(n,60),n.pb=ze(n,61))}function uTe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F;if($=0,e.f.a==0)for(C=new E(n);C.al&&(Ln(l,e.c.length),u(e.c[l],200)).a.c.length==0;)Qc(e,(Ln(l,e.c.length),e.c[l]));if(!h){--c;continue}if(Uke(e,a,r,h,g,t,l,i)){d=!0;continue}if(g){if(Zye(e,a,r,h,t,l,i)){d=!0;continue}else if(uQ(a,r)){r.c=!0,d=!0;continue}}else if(uQ(a,r)){r.c=!0,d=!0;continue}if(d)continue}if(uQ(a,r)){r.c=!0,d=!0,h&&(h.k=!1);continue}else WT(r.q)}return d}function EL(n,e,t,i,r,c,o){var f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn,se,Ye,oi;for(m=0,zn=0,l=new E(n.b);l.am&&(c&&(ra(U,p),ra(ln,Q(a.b-1)),W(n.d,v),f.c=x(Zn,rn,1,0,5,1)),Ye=t.b,oi+=p+e,p=0,d=j.Math.max(d,t.b+t.c+se)),f.c[f.c.length]=h,U$n(h,Ye,oi),d=j.Math.max(d,Ye+se+t.c),p=j.Math.max(p,g),Ye+=se+e,v=h;if(Yt(n.a,f),W(n.d,u(un(f,f.c.length-1),157)),d=j.Math.max(d,i),Wn=oi+p+t.a,Wn1&&(o=j.Math.min(o,j.Math.abs(u(Go(f.a,1),8).b-a.b)))));else for(m=new E(e.j);m.ar&&(c=g.a-r,o=nt,i.c=x(Zn,rn,1,0,5,1),r=g.a),g.a>=r&&(i.c[i.c.length]=f,f.a.b>1&&(o=j.Math.min(o,j.Math.abs(u(Go(f.a,f.a.b-2),8).b-g.b)))));if(i.c.length!=0&&c>e.o.a/2&&o>e.o.b/2){for(p=new gc,Kr(p,e),ui(p,(J(),Kn)),p.n.a=e.o.a/2,S=new gc,Kr(S,e),ui(S,ae),S.n.a=e.o.a/2,S.n.b=e.o.b,h=new E(i);h.a=l.b?Ki(f,S):Ki(f,p)):(l=u(tfe(f.a),8),C=f.a.b==0?cf(f.c):u(mE(f.a),8),C.b>=l.b?Ti(f,S):Ti(f,p)),d=u(k(f,(nn(),Tr)),74),d&&lb(d,l,!0);e.n.a=r-e.o.a/2}}function lTe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn,se,Ye,oi,gs,so;if(zn=null,se=e,Wn=$An(n,PAn(t),se),n6(Wn,$h(se,Xf)),Ye=u(Fw(n.g,z2(Dh(se,DB))),33),g=Dh(se,"sourcePort"),i=null,g&&(i=z2(g)),oi=u(Fw(n.j,i),118),!Ye)throw f=r4(se),v="An edge must have a source node (edge id: '"+f,m=v+H4,T(new Pf(m));if(oi&&!Ff(tf(oi),Ye))throw h=$h(se,Xf),C="The source port of an edge must be a port of the edge's source node (edge id: '"+h,S=C+H4,T(new Pf(S));if(ln=(!Wn.b&&(Wn.b=new xn(he,Wn,4,7)),Wn.b),c=null,oi?c=oi:c=Ye,me(ln,c),gs=u(Fw(n.g,z2(Dh(se,Htn))),33),p=Dh(se,"targetPort"),r=null,p&&(r=z2(p)),so=u(Fw(n.j,r),118),!gs)throw d=r4(se),$="An edge must have a target node (edge id: '"+d,O=$+H4,T(new Pf(O));if(so&&!Ff(tf(so),gs))throw l=$h(se,Xf),F="The target port of an edge must be a port of the edge's target node (edge id: '"+l,_=F+H4,T(new Pf(_));if(wn=(!Wn.c&&(Wn.c=new xn(he,Wn,5,8)),Wn.c),o=null,so?o=so:o=gs,me(wn,o),(!Wn.b&&(Wn.b=new xn(he,Wn,4,7)),Wn.b).i==0||(!Wn.c&&(Wn.c=new xn(he,Wn,5,8)),Wn.c).i==0)throw a=$h(se,Xf),U=Tqn+a,en=U+H4,T(new Pf(en));return eM(se,Wn),e9e(se,Wn),zn=lx(n,se,Wn),zn}function I_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn;return d=bye(Wc(n,(J(),Tf)),e),v=Uw(Wc(n,$o),e),F=Uw(Wc(n,ds),e),ln=XT(Wc(n,eo),e),g=XT(Wc(n,$s),e),$=Uw(Wc(n,xo),e),m=Uw(Wc(n,Su),e),U=Uw(Wc(n,bs),e),_=Uw(Wc(n,xs),e),wn=XT(Wc(n,Gc),e),S=Uw(Wc(n,cu),e),O=Uw(Wc(n,Pu),e),en=Uw(Wc(n,ru),e),zn=XT(Wc(n,uu),e),p=XT(Wc(n,mu),e),C=Uw(Wc(n,Ic),e),t=Bw(A(M(ji,1),pr,25,15,[$.a,ln.a,U.a,zn.a])),i=Bw(A(M(ji,1),pr,25,15,[v.a,d.a,F.a,C.a])),r=S.a,c=Bw(A(M(ji,1),pr,25,15,[m.a,g.a,_.a,p.a])),l=Bw(A(M(ji,1),pr,25,15,[$.b,v.b,m.b,O.b])),h=Bw(A(M(ji,1),pr,25,15,[ln.b,d.b,g.b,C.b])),a=wn.b,f=Bw(A(M(ji,1),pr,25,15,[U.b,F.b,_.b,en.b])),a1(Wc(n,Tf),t+r,l+a),a1(Wc(n,Ic),t+r,l+a),a1(Wc(n,$o),t+r,0),a1(Wc(n,ds),t+r,l+a+h),a1(Wc(n,eo),0,l+a),a1(Wc(n,$s),t+r+i,l+a),a1(Wc(n,Su),t+r+i,0),a1(Wc(n,bs),0,l+a+h),a1(Wc(n,xs),t+r+i,l+a+h),a1(Wc(n,Gc),0,l),a1(Wc(n,cu),t,0),a1(Wc(n,ru),0,l+a+h),a1(Wc(n,mu),t+r+i,0),o=new Li,o.a=Bw(A(M(ji,1),pr,25,15,[t+i+r+c,wn.a,O.a,en.a])),o.b=Bw(A(M(ji,1),pr,25,15,[l+h+a+f,S.b,zn.b,p.b])),o}function aTe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;for(m=new X,g=new E(n.d.b);g.ar.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(te(n.f,o.d.i),57),e.bc.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new re(ue(Fr(p).a.Kc(),new Mn));Se(f);)o=u(ve(f),17),o.a.b!=0&&(e=u(mE(o.a),8),o.d.j==(J(),Kn)&&(C=new $6(e,new fn(e.a,r.d.d),r,o),C.f.a=!0,C.a=o.d,m.c[m.c.length]=C),o.d.j==ae&&(C=new $6(e,new fn(e.a,r.d.d+r.d.a),r,o),C.f.d=!0,C.a=o.d,m.c[m.c.length]=C))}return m}function dTe(n,e,t){var i,r,c,o,f,h,l,a,d;if(le(t,"Network simplex node placement",1),n.e=e,n.n=u(k(e,(G(),Ig)),304),Ije(n),hve(n),Bt(Hr(new $n(null,new Fn(n.e.b,16)),new xwn),new E6n(n)),Bt(gt(Hr(gt(Hr(new $n(null,new Fn(n.e.b,16)),new Wwn),new Xwn),new Vwn),new Qwn),new j6n(n)),on(sn(k(n.e,(nn(),Lm))))&&(o=jc(t,1),le(o,"Straight Edges Pre-Processing",1),VEe(n),ce(o)),zpe(n.f),c=u(k(e,Rm),19).a*n.f.a.c.length,eL(vG(mG(aD(n.f),c),!1),jc(t,1)),n.d.a.gc()!=0){for(o=jc(t,1),le(o,"Flexible Where Space Processing",1),f=u(kd(zE(Xc(new $n(null,new Fn(n.f.a,16)),new Fwn),new Swn)),19).a,h=u(kd(GE(Xc(new $n(null,new Fn(n.f.a,16)),new Lwn),new Pwn)),19).a,l=h-f,a=md(new ta,n.f),d=md(new ta,n.f),Eo(ao(lo(ho(bo(new Ls,2e4),l),a),d)),Bt(gt(gt($D(n.i),new Nwn),new Bwn),new kTn(f,a,l,d)),r=n.d.a.ec().Kc();r.Ob();)i=u(r.Pb(),213),i.g=1;eL(vG(mG(aD(n.f),c),!1),jc(o,1)),ce(o)}on(sn(k(e,Lm)))&&(o=jc(t,1),le(o,"Straight Edges Post-Processing",1),n6e(n),ce(o)),$Ee(n),n.e=null,n.f=null,n.i=null,n.c=null,Eu(n.k),n.j=null,n.a=null,n.o=null,n.d.a.$b(),ce(t)}function bTe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_;for(f=new E(n.a.b);f.a0)if(i=d.gc(),l=Ht(j.Math.floor((i+1)/2))-1,r=Ht(j.Math.ceil((i+1)/2))-1,e.o==jf)for(a=r;a>=l;a--)e.a[F.p]==F&&(m=u(d.Xb(a),46),v=u(m.a,10),!Ah(t,m.b)&&p>n.b.e[v.p]&&(e.a[v.p]=F,e.g[F.p]=e.g[v.p],e.a[F.p]=e.g[F.p],e.f[e.g[F.p].p]=(qn(),!!(on(e.f[e.g[F.p].p])&F.k==(Qn(),gi))),p=n.b.e[v.p]));else for(a=l;a<=r;a++)e.a[F.p]==F&&(S=u(d.Xb(a),46),C=u(S.a,10),!Ah(t,S.b)&&p=v&&($>v&&(p.c=x(Zn,rn,1,0,5,1),v=$),p.c[p.c.length]=o);p.c.length!=0&&(g=u(un(p,qT(e,p.c.length)),128),Wn.a.Bc(g)!=null,g.s=m++,_Y(g,wn,U),p.c=x(Zn,rn,1,0,5,1))}for(F=n.c.length+1,f=new E(n);f.azn.s&&(Uu(t),Qc(zn.i,i),i.c>0&&(i.a=zn,W(zn.t,i),i.b=en,W(en.i,i)))}function GZ(n){var e,t,i,r,c;switch(e=n.c,e){case 11:return n.Ml();case 12:return n.Ol();case 14:return n.Ql();case 15:return n.Tl();case 16:return n.Rl();case 17:return n.Ul();case 21:return Qe(n),Je(),Je(),C9;case 10:switch(n.a){case 65:return n.yl();case 90:return n.Dl();case 122:return n.Kl();case 98:return n.El();case 66:return n.zl();case 60:return n.Jl();case 62:return n.Hl()}}switch(c=fTe(n),e=n.c,e){case 3:return n.Zl(c);case 4:return n.Xl(c);case 5:return n.Yl(c);case 0:if(n.a==123&&n.d=48&&e<=57){for(i=e-48;r=48&&e<=57;)if(i=i*10+e-48,i<0)throw T(new Ce(Pe((je(),Xtn))))}else throw T(new Ce(Pe((je(),Zqn))));if(t=i,e==44){if(r>=n.j)throw T(new Ce(Pe((je(),eGn))));if((e=Di(n.i,r++))>=48&&e<=57){for(t=e-48;r=48&&e<=57;)if(t=t*10+e-48,t<0)throw T(new Ce(Pe((je(),Xtn))));if(i>t)throw T(new Ce(Pe((je(),tGn))))}else t=-1}if(e!=125)throw T(new Ce(Pe((je(),nGn))));n.sl(r)?(c=(Je(),Je(),new eb(9,c)),n.d=r+1):(c=(Je(),Je(),new eb(3,c)),n.d=r),c.dm(i),c.cm(t),Qe(n)}}return c}function O_n(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn;for(m=new Oc(e.b),F=new Oc(e.b),g=new Oc(e.b),ln=new Oc(e.b),C=new Oc(e.b),en=_e(e,0);en.b!=en.d.c;)for(_=u(Re(en),11),f=new E(_.g);f.a0,S=_.g.c.length>0,l&&S?g.c[g.c.length]=_:l?m.c[m.c.length]=_:S&&(F.c[F.c.length]=_);for(v=new E(m);v.a1)for(v=new w2((!n.a&&(n.a=new V(Tt,n,6,6)),n.a));v.e!=v.i.gc();)y6(v);for(o=u(D((!n.a&&(n.a=new V(Tt,n,6,6)),n.a),0),202),C=Ye,Ye>_+F?C=_+F:Ye<_-F&&(C=_-F),S=oi,oi>U+m?S=U+m:oi_-F&&C<_+F&&S>U-m&&SYe+se?ln=Ye+se:_oi+en?wn=oi+en:UYe-se&&lnoi-en&&wnt&&(g=t-1),p=zy+xu(e,24)*hk*d-d/2,p<0?p=1:p>i&&(p=i-1),r=(ld(),h=new Jy,h),VC(r,g),QC(r,p),me((!o.a&&(o.a=new Jt(to,o,5)),o.a),r)}function nn(){nn=N,U_=(Xe(),QZn),Dsn=JZn,iy=Ehn,Ao=YZn,Ep=Chn,E0=ZZn,Yb=Thn,gv=Mhn,pv=Ahn,W_=GP,C0=Za,X_=nne,Bm=Ihn,sP=Sp,ty=(WZ(),WVn),Dg=XVn,Xa=VVn,$g=QVn,$Qn=new tr(qP,Q(0)),wv=GVn,Osn=zVn,jp=UVn,_sn=vQn,$sn=ZVn,xsn=tQn,Q_=fQn,Fsn=cQn,Lsn=sQn,oP=jQn,J_=mQn,Bsn=bQn,Nsn=aQn,Rsn=gQn,y0=BVn,Nm=RVn,K_=tVn,fsn=rVn,Msn=new pd(12),Tsn=new tr(Ya,Msn),usn=(Hh(),Tv),Qh=new tr(Zfn,usn),Vb=new tr(Bu,0),xQn=new tr(cH,Q(1)),XS=new tr(Mp,x4),Wa=HP,Lt=r9,bv=Hg,MQn=yy,Yf=KZn,Wb=Bg,FQn=new tr(uH,(qn(),!0)),Xb=jy,za=YK,Ua=Ja,uP=Bl,z_=KP,csn=(sr(),yh),ls=new tr(M0,csn),k0=_g,rP=ohn,Qb=tw,DQn=rH,Psn=yhn,Ssn=(qw(),Sy),new tr(ghn,Ssn),PQn=nH,IQn=eH,OQn=tH,SQn=ZK,V_=YVn,ksn=MVn,q_=TVn,Rm=JVn,qc=vVn,Ub=XXn,Fm=WXn,zb=xXn,tsn=FXn,N_=RXn,ey=LXn,B_=zXn,ysn=AVn,jsn=SVn,wsn=aVn,cP=HVn,G_=OVn,H_=sVn,Csn=LVn,osn=nVn,__=eVn,L_=RP,Esn=PVn,QS=AXn,Zun=MXn,VS=TXn,asn=hVn,lsn=fVn,dsn=lVn,av=Kg,Tr=Rg,S1=ehn,Zf=JK,R_=QK,isn=KXn,P1=iH,xm=GZn,eP=zZn,j0=vhn,Asn=UZn,dv=WZn,psn=kVn,vsn=jVn,Jb=Ap,x_=CXn,msn=CVn,nP=JXn,ZS=QXn,iP=Ey,gsn=wVn,Lm=$Vn,ry=Shn,rsn=VXn,Isn=qVn,ssn=YXn,AQn=pVn,TQn=qXn,bsn=chn,tP=mVn,YS=GXn,xl=$Xn,esn=OXn,JS=PXn,nsn=IXn,F_=DXn,yp=SXn,hsn=oVn}function TL(n,e){lL();var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn,se,Ye;if(ln=n.e,v=n.d,r=n.a,ln==0)switch(e){case 0:return"0";case 1:return P4;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return U=new W1,e<0?U.a+="0E+":U.a+="0E",U.a+=-e,U.a}if(O=v*10+1+7,F=x(Fs,_f,25,O+1,15,1),t=O,v==1)if(f=r[0],f<0){Ye=ci(f,fr);do m=Ye,Ye=I7(Ye,10),F[--t]=48+ge(gl(m,Ni(Ye,10)))&Ut;while(fc(Ye,0)!=0)}else{Ye=f;do m=Ye,Ye=Ye/10|0,F[--t]=48+(m-Ye*10)&Ut;while(Ye!=0)}else{zn=x(be,Le,25,v,15,1),se=v,pc(r,0,zn,0,se);n:for(;;){for(en=0,l=se-1;l>=0;l--)Wn=Hi(Ih(en,32),ci(zn[l],fr)),S=Tve(Wn),zn[l]=ge(S),en=ge(il(S,32));$=ge(en),C=t;do F[--t]=48+$%10&Ut;while(($=$/10|0)!=0&&t!=0);for(i=9-C+t,h=0;h0;h++)F[--t]=48;for(d=se-1;zn[d]==0;d--)if(d==0)break n;se=d+1}for(;F[t]==48;)++t}if(p=ln<0,o=O-t-e-1,e==0)return p&&(F[--t]=45),Ks(F,t,O-t);if(e>0&&o>=-6){if(o>=0){for(a=t+o,g=O-1;g>=a;g--)F[g+1]=F[g];return F[++a]=46,p&&(F[--t]=45),Ks(F,t,O-t+1)}for(d=2;d<-o+1;d++)F[--t]=48;return F[--t]=46,F[--t]=48,p&&(F[--t]=45),Ks(F,t,O-t)}return wn=t+1,c=O,_=new N0,p&&(_.a+="-"),c-wn>=1?(cl(_,F[t]),_.a+=".",_.a+=Ks(F,t+1,O-t-1)):_.a+=Ks(F,t,O-t),_.a+="E",o>0&&(_.a+="+"),_.a+=""+o,_.a}function x_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U;switch(n.c=e,n.g=new we,t=(R0(),new F0(n.c)),i=new cj(t),AQ(i),O=Te(hn(n.c,(D7(),jfn))),h=u(hn(n.c,KK),316),_=u(hn(n.c,HK),429),o=u(hn(n.c,mfn),482),F=u(hn(n.c,_K),430),n.j=K(Y(hn(n.c,lZn))),f=n.a,h.g){case 0:f=n.a;break;case 1:f=n.b;break;case 2:f=n.i;break;case 3:f=n.e;break;case 4:f=n.f;break;default:throw T(new Hn(pA+(h.f!=null?h.f:""+h.g)))}if(n.d=new rMn(f,_,o),H(n.d,(K3(),ym),sn(hn(n.c,fZn))),n.d.c=on(sn(hn(n.c,kfn))),uC(n.c).i==0)return n.d;for(d=new ie(uC(n.c));d.e!=d.i.gc();){for(a=u(oe(d),33),p=a.g/2,g=a.f/2,U=new fn(a.i+p,a.j+g);zu(n.g,U);)G0(U,(j.Math.random()-.5)*qf,(j.Math.random()-.5)*qf);m=u(hn(a,(Xe(),Ey)),142),C=new yMn(U,new ks(U.a-p-n.j/2-m.b,U.b-g-n.j/2-m.d,a.g+n.j+(m.b+m.c),a.f+n.j+(m.d+m.a))),W(n.d.i,C),it(n.g,U,new Pi(C,a))}switch(F.g){case 0:if(O==null)n.d.d=u(un(n.d.i,0),65);else for($=new E(n.d.i);$.a<$.c.c.length;)C=u(y($),65),v=u(u(te(n.g,C.a),46).b,33).zg(),v!=null&&An(v,O)&&(n.d.d=C);break;case 1:for(r=new fn(n.c.g,n.c.f),r.a*=.5,r.b*=.5,G0(r,n.c.i,n.c.j),c=xt,S=new E(n.d.i);S.a1&&Kt(a,S,a.c.b,a.c),zC(r)));S=$}return a}function yTe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn,se,Ye,oi,gs,so,Sf;for(le(t,"Greedy cycle removal",1),O=e.a,Sf=O.c.length,n.a=x(be,Le,25,Sf,15,1),n.c=x(be,Le,25,Sf,15,1),n.b=x(be,Le,25,Sf,15,1),l=0,S=new E(O);S.a0?se+1:1);for(o=new E(U.g);o.a0?se+1:1)}n.c[l]==0?Ke(n.e,m):n.a[l]==0&&Ke(n.f,m),++l}for(v=-1,p=1,d=new X,n.d=u(k(e,(G(),mp)),230);Sf>0;){for(;n.e.b!=0;)oi=u(wD(n.e),10),n.b[oi.p]=v--,dZ(n,oi),--Sf;for(;n.f.b!=0;)gs=u(wD(n.f),10),n.b[gs.p]=p++,dZ(n,gs),--Sf;if(Sf>0){for(g=Bi,$=new E(O);$.a<$.c.c.length;)m=u(y($),10),n.b[m.p]==0&&(F=n.c[m.p]-n.a[m.p],F>=g&&(F>g&&(d.c=x(Zn,rn,1,0,5,1),g=F),d.c[d.c.length]=m));a=n.Zf(d),n.b[a.p]=p++,dZ(n,a),--Sf}}for(Ye=O.c.length+1,l=0;ln.b[so]&&(n0(i,!0),H(e,Qk,(qn(),!0)));n.a=null,n.c=null,n.b=null,Rs(n.f),Rs(n.e),ce(t)}function L_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S;for(i=new X,f=new X,C=e/2,p=n.gc(),r=u(n.Xb(0),8),S=u(n.Xb(1),8),v=RF(r.a,r.b,S.a,S.b,C),W(i,(Ln(0,v.c.length),u(v.c[0],8))),W(f,(Ln(1,v.c.length),u(v.c[1],8))),l=2;l=0;h--)Ke(t,(Ln(h,o.c.length),u(o.c[h],8)));return t}function jTe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p;if(o=!0,d=null,i=null,r=null,e=!1,p=Hne,l=null,c=null,f=0,h=zx(n,f,b1n,w1n),h=0&&An(n.substr(f,2),"//")?(f+=2,h=zx(n,f,g9,p9),i=n.substr(f,h-f),f=h):d!=null&&(f==n.length||(Me(f,n.length),n.charCodeAt(f)!=47))&&(o=!1,h=zz(n,tu(35),f),h==-1&&(h=n.length),i=n.substr(f,h-f),f=h);if(!t&&f0&&Di(a,a.length-1)==58&&(r=a,f=h)),f=n.j){n.a=-1,n.c=1;return}if(e=Di(n.i,n.d++),n.a=e,n.b==1){switch(e){case 92:if(i=10,n.d>=n.j)throw T(new Ce(Pe((je(),CA))));n.a=Di(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d=n.j||Di(n.i,n.d)!=63)break;if(++n.d>=n.j)throw T(new Ce(Pe((je(),qB))));switch(e=Di(n.i,n.d++),e){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw T(new Ce(Pe((je(),qB))));if(e=Di(n.i,n.d++),e==61)i=16;else if(e==33)i=17;else throw T(new Ce(Pe((je(),Fqn))));break;case 35:for(;n.d=n.j)throw T(new Ce(Pe((je(),CA))));n.a=Di(n.i,n.d++);break;default:i=0}n.c=i}function CTe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn,se;if(en=u(k(n,(nn(),Lt)),98),en!=(Ai(),Cf)&&en!=Kl){for(v=n.b,p=v.c.length,a=new Oc((is(p+2,IL),GC(Hi(Hi(5,p+2),(p+2)/10|0)))),m=new Oc((is(p+2,IL),GC(Hi(Hi(5,p+2),(p+2)/10|0)))),W(a,new we),W(a,new we),W(m,new X),W(m,new X),U=new X,e=0;e=_||!z2e(S,i))&&(i=OMn(e,a)),yr(S,i),c=new re(ue(Fr(S).a.Kc(),new Mn));Se(c);)r=u(ve(c),17),!n.a[r.p]&&(m=r.c.i,--n.e[m.p],n.e[m.p]==0&&A3(h4(p,m)));for(l=a.c.length-1;l>=0;--l)W(e.b,(Ln(l,a.c.length),u(a.c[l],29)));e.a.c=x(Zn,rn,1,0,5,1),ce(t)}function N_n(n){var e,t,i,r,c,o,f,h,l;for(n.b=1,Qe(n),e=null,n.c==0&&n.a==94?(Qe(n),e=(Je(),Je(),new ns(4)),Ec(e,0,G4),f=new ns(4)):f=(Je(),Je(),new ns(4)),r=!0;(l=n.c)!=1;){if(l==0&&n.a==93&&!r){e&&(B6(e,f),f=e);break}if(t=n.a,i=!1,l==10)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:Tb(f,m4(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(Tb(f,m4(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(h=yY(n,t),!h)throw T(new Ce(Pe((je(),GB))));Tb(f,h),i=!0;break;default:t=eZ(n)}else if(l==24&&!r){if(e&&(B6(e,f),f=e),c=N_n(n),B6(f,c),n.c!=0||n.a!=93)throw T(new Ce(Pe((je(),zqn))));break}if(Qe(n),!i){if(l==0){if(t==91)throw T(new Ce(Pe((je(),Utn))));if(t==93)throw T(new Ce(Pe((je(),Wtn))));if(t==45&&!r&&n.a!=93)throw T(new Ce(Pe((je(),zB))))}if(n.c!=0||n.a!=45||t==45&&r)Ec(f,t,t);else{if(Qe(n),(l=n.c)==1)throw T(new Ce(Pe((je(),TA))));if(l==0&&n.a==93)Ec(f,t,t),Ec(f,45,45);else{if(l==0&&n.a==93||l==24)throw T(new Ce(Pe((je(),zB))));if(o=n.a,l==0){if(o==91)throw T(new Ce(Pe((je(),Utn))));if(o==93)throw T(new Ce(Pe((je(),Wtn))));if(o==45)throw T(new Ce(Pe((je(),zB))))}else l==10&&(o=eZ(n));if(Qe(n),t>o)throw T(new Ce(Pe((je(),Xqn))));Ec(f,t,o)}}}r=!1}if(n.c==1)throw T(new Ce(Pe((je(),TA))));return Jw(f),L6(f),n.b=0,Qe(n),f}function MTe(n){ke(n.c,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#decimal"])),ke(n.d,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#integer"])),ke(n.e,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#boolean"])),ke(n.f,Fe,A(M(tn,1),q,2,6,[Ri,"EBoolean",We,"EBoolean:Object"])),ke(n.i,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#byte"])),ke(n.g,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#hexBinary"])),ke(n.j,Fe,A(M(tn,1),q,2,6,[Ri,"EByte",We,"EByte:Object"])),ke(n.n,Fe,A(M(tn,1),q,2,6,[Ri,"EChar",We,"EChar:Object"])),ke(n.t,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#double"])),ke(n.u,Fe,A(M(tn,1),q,2,6,[Ri,"EDouble",We,"EDouble:Object"])),ke(n.F,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#float"])),ke(n.G,Fe,A(M(tn,1),q,2,6,[Ri,"EFloat",We,"EFloat:Object"])),ke(n.I,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#int"])),ke(n.J,Fe,A(M(tn,1),q,2,6,[Ri,"EInt",We,"EInt:Object"])),ke(n.N,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#long"])),ke(n.O,Fe,A(M(tn,1),q,2,6,[Ri,"ELong",We,"ELong:Object"])),ke(n.Z,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#short"])),ke(n.$,Fe,A(M(tn,1),q,2,6,[Ri,"EShort",We,"EShort:Object"])),ke(n._,Fe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#string"]))}function ATe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn,se;if(n.c.length==1)return Ln(0,n.c.length),u(n.c[0],135);if(n.c.length<=0)return new IC;for(h=new E(n);h.ad&&(Wn=0,se+=a+en,a=0),N9e(_,o,Wn,se),e=j.Math.max(e,Wn+U.a),a=j.Math.max(a,U.b),Wn+=U.a+en;for(F=new we,t=new we,wn=new E(n);wn.a_F(c))&&(d=c);for(!d&&(d=(Ln(0,C.c.length),u(C.c[0],180))),m=new E(e.b);m.a=-1900?1:0,t>=4?De(n,A(M(tn,1),q,2,6,[nKn,eKn])[f]):De(n,A(M(tn,1),q,2,6,["BC","AD"])[f]);break;case 121:ype(n,t,i);break;case 77:Tke(n,t,i);break;case 107:h=r.q.getHours(),h==0?fh(n,24,t):fh(n,h,t);break;case 83:U9e(n,t,r);break;case 69:a=i.q.getDay(),t==5?De(n,A(M(tn,1),q,2,6,["S","M","T","W","T","F","S"])[a]):t==4?De(n,A(M(tn,1),q,2,6,[GL,zL,UL,WL,XL,VL,QL])[a]):De(n,A(M(tn,1),q,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?De(n,A(M(tn,1),q,2,6,["AM","PM"])[1]):De(n,A(M(tn,1),q,2,6,["AM","PM"])[0]);break;case 104:d=r.q.getHours()%12,d==0?fh(n,12,t):fh(n,d,t);break;case 75:g=r.q.getHours()%12,fh(n,g,t);break;case 72:p=r.q.getHours(),fh(n,p,t);break;case 99:v=i.q.getDay(),t==5?De(n,A(M(tn,1),q,2,6,["S","M","T","W","T","F","S"])[v]):t==4?De(n,A(M(tn,1),q,2,6,[GL,zL,UL,WL,XL,VL,QL])[v]):t==3?De(n,A(M(tn,1),q,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[v]):fh(n,v,1);break;case 76:m=i.q.getMonth(),t==5?De(n,A(M(tn,1),q,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[m]):t==4?De(n,A(M(tn,1),q,2,6,[$L,xL,FL,LL,Q2,NL,BL,RL,_L,KL,HL,qL])[m]):t==3?De(n,A(M(tn,1),q,2,6,["Jan","Feb","Mar","Apr",Q2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[m]):fh(n,m+1,t);break;case 81:C=i.q.getMonth()/3|0,t<4?De(n,A(M(tn,1),q,2,6,["Q1","Q2","Q3","Q4"])[C]):De(n,A(M(tn,1),q,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[C]);break;case 100:S=i.q.getDate(),fh(n,S,t);break;case 109:l=r.q.getMinutes(),fh(n,l,t);break;case 115:o=r.q.getSeconds(),fh(n,o,t);break;case 122:t<4?De(n,c.c[0]):De(n,c.c[1]);break;case 118:De(n,c.b);break;case 90:t<3?De(n,F6e(c)):t==3?De(n,B6e(c)):De(n,R6e(c.a));break;default:return!1}return!0}function UZ(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn,se,Ye;if(CBn(e),h=u(D((!e.b&&(e.b=new xn(he,e,4,7)),e.b),0),82),a=u(D((!e.c&&(e.c=new xn(he,e,5,8)),e.c),0),82),f=Pr(h),l=Pr(a),o=(!e.a&&(e.a=new V(Tt,e,6,6)),e.a).i==0?null:u(D((!e.a&&(e.a=new V(Tt,e,6,6)),e.a),0),202),en=u(te(n.a,f),10),Wn=u(te(n.a,l),10),ln=null,se=null,I(h,186)&&(U=u(te(n.a,h),299),I(U,11)?ln=u(U,11):I(U,10)&&(en=u(U,10),ln=u(un(en.j,0),11))),I(a,186)&&(zn=u(te(n.a,a),299),I(zn,11)?se=u(zn,11):I(zn,10)&&(Wn=u(zn,10),se=u(un(Wn.j,0),11))),!en||!Wn)throw T(new Xv("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(m=new Sd,Sr(m,e),H(m,(G(),rt),e),H(m,(nn(),Tr),null),p=u(k(i,Sc),21),en==Wn&&p.Fc((or(),Im)),ln||(_=(ur(),Nc),wn=null,o&&Cw(u(k(en,Lt),98))&&(wn=new fn(o.j,o.k),xAn(wn,D8(e)),hSn(wn,t),ub(l,f)&&(_=Au,st(wn,en.n))),ln=jRn(en,wn,_,i)),se||(_=(ur(),Au),Ye=null,o&&Cw(u(k(Wn,Lt),98))&&(Ye=new fn(o.b,o.c),xAn(Ye,D8(e)),hSn(Ye,t)),se=jRn(Wn,Ye,_,qi(Wn))),Ki(m,ln),Ti(m,se),(ln.e.c.length>1||ln.g.c.length>1||se.e.c.length>1||se.g.c.length>1)&&p.Fc((or(),Pm)),g=new ie((!e.n&&(e.n=new V(Br,e,1,7)),e.n));g.e!=g.i.gc();)if(d=u(oe(g),137),!on(sn(hn(d,Wa)))&&d.a)switch(C=Mx(d),W(m.b,C),u(k(C,Zf),272).g){case 1:case 2:p.Fc((or(),ov));break;case 0:p.Fc((or(),sv)),H(C,Zf,(ff(),Ev))}if(c=u(k(i,Fm),314),S=u(k(i,cP),315),r=c==(F2(),Wk)||S==(v6(),iK),o&&(!o.a&&(o.a=new Jt(to,o,5)),o.a).i!=0&&r){for($=x7(o),v=new fu,F=_e($,0);F.b!=F.d.c;)O=u(Re(F),8),Ke(v,new mr(O));H(m,vun,v)}return m}function OTe(n){n.gb||(n.gb=!0,n.b=Jr(n,0),St(n.b,18),bt(n.b,19),n.a=Jr(n,1),St(n.a,1),bt(n.a,2),bt(n.a,3),bt(n.a,4),bt(n.a,5),n.o=Jr(n,2),St(n.o,8),St(n.o,9),bt(n.o,10),bt(n.o,11),bt(n.o,12),bt(n.o,13),bt(n.o,14),bt(n.o,15),bt(n.o,16),bt(n.o,17),bt(n.o,18),bt(n.o,19),bt(n.o,20),bt(n.o,21),bt(n.o,22),bt(n.o,23),Er(n.o),Er(n.o),Er(n.o),Er(n.o),Er(n.o),Er(n.o),Er(n.o),Er(n.o),Er(n.o),Er(n.o),n.p=Jr(n,3),St(n.p,2),St(n.p,3),St(n.p,4),St(n.p,5),bt(n.p,6),bt(n.p,7),Er(n.p),Er(n.p),n.q=Jr(n,4),St(n.q,8),n.v=Jr(n,5),bt(n.v,9),Er(n.v),Er(n.v),Er(n.v),n.w=Jr(n,6),St(n.w,2),St(n.w,3),St(n.w,4),bt(n.w,5),n.B=Jr(n,7),bt(n.B,1),Er(n.B),Er(n.B),Er(n.B),n.Q=Jr(n,8),bt(n.Q,0),Er(n.Q),n.R=Jr(n,9),St(n.R,1),n.S=Jr(n,10),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),Er(n.S),n.T=Jr(n,11),bt(n.T,10),bt(n.T,11),bt(n.T,12),bt(n.T,13),bt(n.T,14),Er(n.T),Er(n.T),n.U=Jr(n,12),St(n.U,2),St(n.U,3),bt(n.U,4),bt(n.U,5),bt(n.U,6),bt(n.U,7),Er(n.U),n.V=Jr(n,13),bt(n.V,10),n.W=Jr(n,14),St(n.W,18),St(n.W,19),St(n.W,20),bt(n.W,21),bt(n.W,22),bt(n.W,23),n.bb=Jr(n,15),St(n.bb,10),St(n.bb,11),St(n.bb,12),St(n.bb,13),St(n.bb,14),St(n.bb,15),St(n.bb,16),bt(n.bb,17),Er(n.bb),Er(n.bb),n.eb=Jr(n,16),St(n.eb,2),St(n.eb,3),St(n.eb,4),St(n.eb,5),St(n.eb,6),St(n.eb,7),bt(n.eb,8),bt(n.eb,9),n.ab=Jr(n,17),St(n.ab,0),St(n.ab,1),n.H=Jr(n,18),bt(n.H,0),bt(n.H,1),bt(n.H,2),bt(n.H,3),bt(n.H,4),bt(n.H,5),Er(n.H),n.db=Jr(n,19),bt(n.db,2),n.c=ze(n,20),n.d=ze(n,21),n.e=ze(n,22),n.f=ze(n,23),n.i=ze(n,24),n.g=ze(n,25),n.j=ze(n,26),n.k=ze(n,27),n.n=ze(n,28),n.r=ze(n,29),n.s=ze(n,30),n.t=ze(n,31),n.u=ze(n,32),n.fb=ze(n,33),n.A=ze(n,34),n.C=ze(n,35),n.D=ze(n,36),n.F=ze(n,37),n.G=ze(n,38),n.I=ze(n,39),n.J=ze(n,40),n.L=ze(n,41),n.M=ze(n,42),n.N=ze(n,43),n.O=ze(n,44),n.P=ze(n,45),n.X=ze(n,46),n.Y=ze(n,47),n.Z=ze(n,48),n.$=ze(n,49),n._=ze(n,50),n.cb=ze(n,51),n.K=ze(n,52))}function Xe(){Xe=N;var n,e;i9=new kt(GHn),jv=new kt(zHn),Xfn=(hh(),zK),KZn=new In($en,Xfn),Mp=new In(tp,null),HZn=new kt(Atn),Qfn=(gb(),pt(XK,A(M(VK,1),z,291,0,[WK]))),RP=new In(hA,Qfn),yy=new In(Ek,(qn(),!1)),Jfn=(sr(),yh),M0=new In(Len,Jfn),nhn=(Hh(),sH),Zfn=new In(yk,nhn),ihn=new In(gA,!1),rhn=(_h(),zP),Bg=new In(fA,rhn),bhn=new pd(12),Ya=new In(c0,bhn),_P=new In(wk,!1),chn=new In(oB,!1),Cy=new In(X6,!1),mhn=(Ai(),Kl),r9=new In(AN,mhn),Ap=new kt(lA),qP=new kt(bk),cH=new kt(zM),uH=new kt(W6),uhn=new fu,Rg=new In(zen,uhn),GZn=new In(Xen,!1),zZn=new In(Ven,!1),shn=new Hv,Ey=new In(Jen,shn),HP=new In(Oen,!1),VZn=new In(UHn,1),new In(WHn,!0),Q(0),new In(XHn,Q(100)),new In(VHn,!1),Q(0),new In(QHn,Q(4e3)),Q(0),new In(JHn,Q(400)),new In(YHn,!1),new In(ZHn,!1),new In(nqn,!0),new In(eqn,!1),Vfn=(IT(),lH),qZn=new In(Mtn,Vfn),QZn=new In(men,10),JZn=new In(ken,10),Ehn=new In(yN,20),YZn=new In(yen,10),Chn=new In(MN,2),ZZn=new In(jen,10),Thn=new In(Een,0),GP=new In(Men,5),Mhn=new In(Cen,1),Ahn=new In(Ten,1),Za=new In(Ib,20),nne=new In(Aen,10),Ihn=new In(Sen,10),Sp=new kt(Pen),Phn=new uyn,Shn=new In(Yen,Phn),WZn=new kt(sB),whn=!1,UZn=new In(uB,whn),fhn=new pd(5),ohn=new In(Nen,fhn),hhn=(kb(),e=u(Lo(lr),9),new ms(e,u(wo(e,e.length),9),0)),_g=new In(F4,hhn),phn=(qw(),_l),ghn=new In(_en,phn),nH=new kt(Ken),eH=new kt(Hen),tH=new kt(qen),ZK=new kt(Gen),lhn=(n=u(Lo(a9),9),new ms(n,u(wo(n,n.length),9),0)),Ja=new In(hg,lhn),dhn=Cn((Fu(),Av)),Bl=new In(ip,dhn),ahn=new fn(0,0),Kg=new In(rp,ahn),KP=new In(cB,!1),Yfn=(ff(),Ev),JK=new In(Uen,Yfn),QK=new In(UM,!1),Q(1),new In(tqn,null),vhn=new kt(Qen),iH=new kt(Wen),jhn=(J(),Wr),Hg=new In(Den,jhn),Bu=new kt(Ien),khn=(Tu(),Cn(Hl)),tw=new In(L4,khn),rH=new In(Ben,!1),yhn=new In(Ren,!0),jy=new In(xen,!1),YK=new In(Fen,!1),ehn=new In(jN,1),thn=(tM(),fH),new In(iqn,thn),XZn=!0}function G(){G=N;var n,e;rt=new kt(Pnn),bun=new kt("coordinateOrigin"),O_=new kt("processors"),dun=new ii("compoundNode",(qn(),!1)),Jk=new ii("insideConnections",!1),vun=new kt("originalBendpoints"),mun=new kt("originalDummyNodePosition"),kun=new kt("originalLabelEdge"),Zk=new kt("representedLabels"),Om=new kt("endLabels"),gp=new kt("endLabel.origin"),vp=new ii("labelSide",(cs(),Ay)),Sg=new ii("maxEdgeThickness",0),yf=new ii("reversed",!1),mp=new kt(RKn),Vo=new ii("longEdgeSource",null),Js=new ii("longEdgeTarget",null),qb=new ii("longEdgeHasLabelDummies",!1),Yk=new ii("longEdgeBeforeLabelDummy",!1),zS=new ii("edgeConstraint",(ma(),b_)),v0=new kt("inLayerLayoutUnit"),qa=new ii("inLayerConstraint",(Nh(),Vk)),pp=new ii("inLayerSuccessorConstraint",new X),pun=new ii("inLayerSuccessorConstraintBetweenNonDummies",!1),Mu=new kt("portDummy"),GS=new ii("crossingHint",Q(0)),Sc=new ii("graphProperties",(e=u(Lo(y_),9),new ms(e,u(wo(e,e.length),9),0))),nc=new ii("externalPortSide",(J(),Wr)),gun=new ii("externalPortSize",new Li),M_=new kt("externalPortReplacedDummies"),US=new kt("externalPortReplacedDummy"),Hb=new ii("externalPortConnections",(n=u(Lo(Zi),9),new ms(n,u(wo(n,n.length),9),0))),m0=new ii(OKn,0),aun=new kt("barycenterAssociates"),kp=new kt("TopSideComments"),wp=new kt("BottomSideComments"),qS=new kt("CommentConnectionPort"),S_=new ii("inputCollect",!1),I_=new ii("outputCollect",!1),Qk=new ii("cyclic",!1),wun=new kt("crossHierarchyMap"),$_=new kt("targetOffset"),new ii("splineLabelSize",new Li),Ig=new kt("spacings"),WS=new ii("partitionConstraint",!1),g0=new kt("breakingPoint.info"),Eun=new kt("splines.survivingEdge"),Ga=new kt("splines.route.start"),Og=new kt("splines.edgeChain"),jun=new kt("originalPortConstraints"),hv=new kt("selfLoopHolder"),lv=new kt("splines.nsPortY"),dc=new kt("modelOrder"),P_=new kt("longEdgeTargetNode"),p0=new ii(aHn,!1),Pg=new ii(aHn,!1),A_=new kt("layerConstraints.hiddenNodes"),yun=new kt("layerConstraints.opposidePort"),D_=new kt("targetNode.modelOrder")}function WZ(){WZ=N,xun=(Z8(),LS),VXn=new In(Nnn,xun),sVn=new In(Bnn,(qn(),!1)),_un=(EC(),T_),aVn=new In(QM,_un),AVn=new In(Rnn,!1),SVn=new In(_nn,!0),CXn=new In(Knn,!1),Xun=(V8(),uK),qVn=new In(Hnn,Xun),Q(1),JVn=new In(qnn,Q(7)),YVn=new In(Gnn,!1),oVn=new In(znn,!1),$un=(Aa(),a_),XXn=new In($N,$un),qun=(nM(),Z_),MVn=new In(mk,qun),Kun=(As(),ny),vVn=new In(Unn,Kun),Q(-1),pVn=new In(Wnn,Q(-1)),Q(-1),mVn=new In(Xnn,Q(-1)),Q(-1),kVn=new In(xN,Q(4)),Q(-1),jVn=new In(FN,Q(2)),Hun=(Zw(),dP),TVn=new In(LN,Hun),Q(0),CVn=new In(NN,Q(0)),wVn=new In(BN,Q(nt)),Dun=(F2(),dp),WXn=new In(Y6,Dun),xXn=new In(Vnn,!1),KXn=new In(RN,.1),zXn=new In(_N,!1),Q(-1),qXn=new In(Qnn,Q(-1)),Q(-1),GXn=new In(Jnn,Q(-1)),Q(0),FXn=new In(Ynn,Q(40)),Oun=(G3(),E_),RXn=new In(KN,Oun),Iun=Xk,LXn=new In(JM,Iun),Wun=(v6(),_m),HVn=new In(lg,Wun),$Vn=new kt(YM),Gun=(z8(),BS),PVn=new In(HN,Gun),zun=(O7(),RS),OVn=new In(qN,zun),LVn=new In(GN,.3),BVn=new kt(zN),Uun=(db(),aP),RVn=new In(UN,Uun),Nun=(lT(),oK),nVn=new In(Znn,Nun),Bun=(R8(),fK),eVn=new In(nen,Bun),Run=(J3(),qm),tVn=new In(ZM,Run),rVn=new In(nA,.2),YXn=new In(WN,2),WVn=new In(een,null),VVn=new In(ten,10),XVn=new In(ien,10),QVn=new In(ren,20),Q(0),GVn=new In(cen,Q(0)),Q(0),zVn=new In(uen,Q(0)),Q(0),UVn=new In(sen,Q(0)),TXn=new In(XN,!1),Mun=(l4(),Sm),AXn=new In(oen,Mun),Tun=(xC(),h_),MXn=new In(fen,Tun),hVn=new In(eA,!1),Q(0),fVn=new In(VN,Q(16)),Q(0),lVn=new In(QN,Q(5)),Jun=(gT(),aK),vQn=new In(Vh,Jun),ZVn=new In(tA,10),tQn=new In(iA,1),Qun=(YC(),FS),fQn=new In(Z6,Qun),cQn=new kt(JN),Vun=Q(1),Q(0),sQn=new In(YN,Vun),Yun=(fT(),lK),jQn=new In(rA,Yun),mQn=new kt(cA),bQn=new In(uA,!0),aQn=new In(sA,2),gQn=new In(ZN,!0),Lun=(rM(),NS),JXn=new In(hen,Lun),Fun=(G2(),rv),QXn=new In(len,Fun),Pun=(Rh(),Fl),$Xn=new In(oA,Pun),DXn=new In(aen,!1),Aun=(Hd(),yg),SXn=new In(nB,Aun),Sun=(s6(),nK),OXn=new In(den,Sun),PXn=new In(eB,0),IXn=new In(tB,0),bVn=d_,dVn=Wk,yVn=hP,EVn=hP,gVn=Y_,HXn=(_h(),x1),UXn=dp,_Xn=dp,NXn=dp,BXn=x1,xVn=Km,FVn=_m,IVn=_m,DVn=_m,NVn=rK,KVn=Km,_Vn=Km,iVn=(Hh(),Pp),cVn=Pp,uVn=qm,ZXn=Ty,nQn=vv,eQn=Zb,iQn=vv,rQn=Zb,hQn=vv,lQn=Zb,uQn=l_,oQn=FS,EQn=vv,CQn=Zb,kQn=vv,yQn=Zb,wQn=Zb,dQn=Zb,pQn=Zb}function rr(){rr=N,lcn=new zt("DIRECTION_PREPROCESSOR",0),ocn=new zt("COMMENT_PREPROCESSOR",1),Em=new zt("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),QR=new zt("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),Icn=new zt("PARTITION_PREPROCESSOR",4),gS=new zt("LABEL_DUMMY_INSERTER",5),MS=new zt("SELF_LOOP_PREPROCESSOR",6),nv=new zt("LAYER_CONSTRAINT_PREPROCESSOR",7),Scn=new zt("PARTITION_MIDPROCESSOR",8),mcn=new zt("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),Mcn=new zt("NODE_PROMOTION",10),Z4=new zt("LAYER_CONSTRAINT_POSTPROCESSOR",11),Pcn=new zt("PARTITION_POSTPROCESSOR",12),gcn=new zt("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),Ocn=new zt("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),tcn=new zt("BREAKING_POINT_INSERTER",15),kS=new zt("LONG_EDGE_SPLITTER",16),JR=new zt("PORT_SIDE_PROCESSOR",17),bS=new zt("INVERTED_PORT_PROCESSOR",18),ES=new zt("PORT_LIST_SORTER",19),$cn=new zt("SORT_BY_INPUT_ORDER_OF_MODEL",20),jS=new zt("NORTH_SOUTH_PORT_PREPROCESSOR",21),icn=new zt("BREAKING_POINT_PROCESSOR",22),Acn=new zt(rHn,23),xcn=new zt(cHn,24),CS=new zt("SELF_LOOP_PORT_RESTORER",25),Dcn=new zt("SINGLE_EDGE_GRAPH_WRAPPER",26),wS=new zt("IN_LAYER_CONSTRAINT_PROCESSOR",27),dcn=new zt("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),Ccn=new zt("LABEL_AND_NODE_SIZE_PROCESSOR",29),Ecn=new zt("INNERMOST_NODE_MARGIN_CALCULATOR",30),AS=new zt("SELF_LOOP_ROUTER",31),ucn=new zt("COMMENT_NODE_MARGIN_CALCULATOR",32),dS=new zt("END_LABEL_PREPROCESSOR",33),vS=new zt("LABEL_DUMMY_SWITCHER",34),ccn=new zt("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),Y4=new zt("LABEL_SIDE_SELECTOR",36),ycn=new zt("HYPEREDGE_DUMMY_MERGER",37),pcn=new zt("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),Tcn=new zt("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),Cm=new zt("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),fcn=new zt("CONSTRAINTS_POSTPROCESSOR",41),scn=new zt("COMMENT_POSTPROCESSOR",42),jcn=new zt("HYPERNODE_PROCESSOR",43),vcn=new zt("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),mS=new zt("LONG_EDGE_JOINER",45),TS=new zt("SELF_LOOP_POSTPROCESSOR",46),rcn=new zt("BREAKING_POINT_REMOVER",47),yS=new zt("NORTH_SOUTH_PORT_POSTPROCESSOR",48),kcn=new zt("HORIZONTAL_COMPACTOR",49),pS=new zt("LABEL_DUMMY_REMOVER",50),bcn=new zt("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),acn=new zt("END_LABEL_SORTER",52),zk=new zt("REVERSED_EDGE_RESTORER",53),aS=new zt("END_LABEL_POSTPROCESSOR",54),wcn=new zt("HIERARCHICAL_NODE_RESIZER",55),hcn=new zt("DIRECTION_POSTPROCESSOR",56)}function DTe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn,zn,Wn,se,Ye,oi,gs,so,Sf,dI,zy,T9,Uy,Dv,AH,Ree,SH,_1,D0,$v,Wy,Xy,Fp,PH,M9,_ee,V1n,$0,A9,IH,Lp,S9,aw,P9,OH,Kee;for(V1n=0,Ye=e,so=0,zy=Ye.length;so0&&(n.a[_1.p]=V1n++)}for(S9=0,oi=t,Sf=0,T9=oi.length;Sf0;){for(_1=(ne(Xy.b>0),u(Xy.a.Xb(Xy.c=--Xy.b),11)),Wy=0,f=new E(_1.e);f.a0&&(_1.j==(J(),Kn)?(n.a[_1.p]=S9,++S9):(n.a[_1.p]=S9+Uy+AH,++AH))}S9+=AH}for($v=new we,v=new Sh,se=e,gs=0,dI=se.length;gsl.b&&(l.b=Fp)):_1.i.c==_ee&&(Fpl.c&&(l.c=Fp));for(P3(m,0,m.length,null),Lp=x(be,Le,25,m.length,15,1),i=x(be,Le,25,S9+1,15,1),S=0;S0;)en%2>0&&(r+=OH[en+1]),en=(en-1)/2|0,++OH[en];for(wn=x(dJn,rn,362,m.length*2,0,1),F=0;F'?":An(Fqn,n)?"'(?<' or '(? toIndex: ",unn=", toIndex: ",snn="Index: ",onn=", Size: ",I4="org.eclipse.elk.alg.common",lt={62:1},dKn="org.eclipse.elk.alg.common.compaction",bKn="Scanline/EventHandler",gh="org.eclipse.elk.alg.common.compaction.oned",wKn="CNode belongs to another CGroup.",gKn="ISpacingsHandler/1",fN="The ",hN=" instance has been finished already.",pKn="The direction ",vKn=" is not supported by the CGraph instance.",mKn="OneDimensionalCompactor",kKn="OneDimensionalCompactor/lambda$0$Type",yKn="Quadruplet",jKn="ScanlineConstraintCalculator",EKn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",CKn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",TKn="ScanlineConstraintCalculator/Timestamp",MKn="ScanlineConstraintCalculator/lambda$0$Type",Kf={169:1,45:1},lN="org.eclipse.elk.alg.common.compaction.options",Ur="org.eclipse.elk.core.data",fnn="org.eclipse.elk.polyomino.traversalStrategy",hnn="org.eclipse.elk.polyomino.lowLevelSort",lnn="org.eclipse.elk.polyomino.highLevelSort",ann="org.eclipse.elk.polyomino.fill",Gs={130:1},aN="polyomino",G6="org.eclipse.elk.alg.common.networksimplex",ph={177:1,3:1,4:1},AKn="org.eclipse.elk.alg.common.nodespacing",Da="org.eclipse.elk.alg.common.nodespacing.cellsystem",O4="CENTER",SKn={212:1,326:1},dnn={3:1,4:1,5:1,595:1},Z2="LEFT",np="RIGHT",bnn="Vertical alignment cannot be null",wnn="BOTTOM",RM="org.eclipse.elk.alg.common.nodespacing.internal",z6="UNDEFINED",gf=.01,lk="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",PKn="LabelPlacer/lambda$0$Type",IKn="LabelPlacer/lambda$1$Type",OKn="portRatioOrPosition",D4="org.eclipse.elk.alg.common.overlaps",dN="DOWN",Hf="org.eclipse.elk.alg.common.polyomino",_M="NORTH",bN="EAST",wN="SOUTH",gN="WEST",KM="org.eclipse.elk.alg.common.polyomino.structures",gnn="Direction",pN="Grid is only of size ",vN=". Requested point (",mN=") is out of bounds.",HM=" Given center based coordinates were (",ak="org.eclipse.elk.graph.properties",DKn="IPropertyHolder",pnn={3:1,94:1,134:1},ep="org.eclipse.elk.alg.common.spore",$Kn="org.eclipse.elk.alg.common.utils",$a={209:1},og="org.eclipse.elk.core",xKn="Connected Components Compaction",FKn="org.eclipse.elk.alg.disco",qM="org.eclipse.elk.alg.disco.graph",kN="org.eclipse.elk.alg.disco.options",vnn="CompactionStrategy",mnn="org.eclipse.elk.disco.componentCompaction.strategy",knn="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",ynn="org.eclipse.elk.disco.debug.discoGraph",jnn="org.eclipse.elk.disco.debug.discoPolys",LKn="componentCompaction",xa="org.eclipse.elk.disco",yN="org.eclipse.elk.spacing.componentComponent",jN="org.eclipse.elk.edge.thickness",tp="org.eclipse.elk.aspectRatio",c0="org.eclipse.elk.padding",fg="org.eclipse.elk.alg.disco.transform",EN=1.5707963267948966,$4=17976931348623157e292,Pb={3:1,4:1,5:1,192:1},Enn={3:1,6:1,4:1,5:1,106:1,120:1},Cnn="org.eclipse.elk.alg.force",Tnn="ComponentsProcessor",NKn="ComponentsProcessor/1",dk="org.eclipse.elk.alg.force.graph",BKn="Component Layout",Mnn="org.eclipse.elk.alg.force.model",GM="org.eclipse.elk.force.model",Ann="org.eclipse.elk.force.iterations",Snn="org.eclipse.elk.force.repulsivePower",CN="org.eclipse.elk.force.temperature",qf=.001,TN="org.eclipse.elk.force.repulsion",U6="org.eclipse.elk.alg.force.options",x4=1.600000023841858,os="org.eclipse.elk.force",bk="org.eclipse.elk.priority",Ib="org.eclipse.elk.spacing.nodeNode",MN="org.eclipse.elk.spacing.edgeLabel",zM="org.eclipse.elk.randomSeed",W6="org.eclipse.elk.separateConnectedComponents",wk="org.eclipse.elk.interactive",AN="org.eclipse.elk.portConstraints",UM="org.eclipse.elk.edgeLabels.inline",X6="org.eclipse.elk.omitNodeMicroLayout",ip="org.eclipse.elk.nodeSize.options",hg="org.eclipse.elk.nodeSize.constraints",F4="org.eclipse.elk.nodeLabels.placement",L4="org.eclipse.elk.portLabels.placement",Pnn="origin",RKn="random",_Kn="boundingBox.upLeft",KKn="boundingBox.lowRight",Inn="org.eclipse.elk.stress.fixed",Onn="org.eclipse.elk.stress.desiredEdgeLength",Dnn="org.eclipse.elk.stress.dimension",$nn="org.eclipse.elk.stress.epsilon",xnn="org.eclipse.elk.stress.iterationLimit",Cl="org.eclipse.elk.stress",HKn="ELK Stress",rp="org.eclipse.elk.nodeSize.minimum",WM="org.eclipse.elk.alg.force.stress",qKn="Layered layout",cp="org.eclipse.elk.alg.layered",gk="org.eclipse.elk.alg.layered.compaction.components",V6="org.eclipse.elk.alg.layered.compaction.oned",XM="org.eclipse.elk.alg.layered.compaction.oned.algs",Fa="org.eclipse.elk.alg.layered.compaction.recthull",Gf="org.eclipse.elk.alg.layered.components",Xh="NONE",hc={3:1,6:1,4:1,9:1,5:1,122:1},GKn={3:1,6:1,4:1,5:1,141:1,106:1,120:1},VM="org.eclipse.elk.alg.layered.compound",Ft={51:1},Fc="org.eclipse.elk.alg.layered.graph",SN=" -> ",zKn="Not supported by LGraph",Fnn="Port side is undefined",PN={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},E1={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},UKn={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},WKn=`([{"' \r +`,XKn=`)]}"' \r +`,VKn="The given string contains parts that cannot be parsed as numbers.",pk="org.eclipse.elk.core.math",QKn={3:1,4:1,142:1,207:1,414:1},JKn={3:1,4:1,116:1,207:1,414:1},Jn="org.eclipse.elk.layered",C1="org.eclipse.elk.alg.layered.graph.transform",YKn="ElkGraphImporter",ZKn="ElkGraphImporter/lambda$0$Type",nHn="ElkGraphImporter/lambda$1$Type",eHn="ElkGraphImporter/lambda$2$Type",tHn="ElkGraphImporter/lambda$4$Type",iHn="Node margin calculation",Un="org.eclipse.elk.alg.layered.intermediate",rHn="ONE_SIDED_GREEDY_SWITCH",cHn="TWO_SIDED_GREEDY_SWITCH",IN="No implementation is available for the layout processor ",Lnn="IntermediateProcessorStrategy",ON="Node '",uHn="FIRST_SEPARATE",sHn="LAST_SEPARATE",oHn="Odd port side processing",Qt="org.eclipse.elk.alg.layered.intermediate.compaction",Q6="org.eclipse.elk.alg.layered.intermediate.greedyswitch",vh="org.eclipse.elk.alg.layered.p3order.counting",vk={225:1},up="org.eclipse.elk.alg.layered.intermediate.loops",fs="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Tl="org.eclipse.elk.alg.layered.intermediate.loops.routing",J6="org.eclipse.elk.alg.layered.intermediate.preserveorder",zf="org.eclipse.elk.alg.layered.intermediate.wrapping",lc="org.eclipse.elk.alg.layered.options",DN="INTERACTIVE",fHn="DEPTH_FIRST",hHn="EDGE_LENGTH",lHn="SELF_LOOPS",aHn="firstTryWithInitialOrder",Nnn="org.eclipse.elk.layered.directionCongruency",Bnn="org.eclipse.elk.layered.feedbackEdges",QM="org.eclipse.elk.layered.interactiveReferencePoint",Rnn="org.eclipse.elk.layered.mergeEdges",_nn="org.eclipse.elk.layered.mergeHierarchyEdges",Knn="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Hnn="org.eclipse.elk.layered.portSortingStrategy",qnn="org.eclipse.elk.layered.thoroughness",Gnn="org.eclipse.elk.layered.unnecessaryBendpoints",znn="org.eclipse.elk.layered.generatePositionAndLayerIds",$N="org.eclipse.elk.layered.cycleBreaking.strategy",mk="org.eclipse.elk.layered.layering.strategy",Unn="org.eclipse.elk.layered.layering.layerConstraint",Wnn="org.eclipse.elk.layered.layering.layerChoiceConstraint",Xnn="org.eclipse.elk.layered.layering.layerId",xN="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",FN="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",LN="org.eclipse.elk.layered.layering.nodePromotion.strategy",NN="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",BN="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",Y6="org.eclipse.elk.layered.crossingMinimization.strategy",Vnn="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",RN="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",_N="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Qnn="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Jnn="org.eclipse.elk.layered.crossingMinimization.positionId",Ynn="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",KN="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",JM="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",lg="org.eclipse.elk.layered.nodePlacement.strategy",YM="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",HN="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",qN="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",GN="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",zN="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",UN="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Znn="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",nen="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",ZM="org.eclipse.elk.layered.edgeRouting.splines.mode",nA="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",WN="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",een="org.eclipse.elk.layered.spacing.baseValue",ten="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",ien="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",ren="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",cen="org.eclipse.elk.layered.priority.direction",uen="org.eclipse.elk.layered.priority.shortness",sen="org.eclipse.elk.layered.priority.straightness",XN="org.eclipse.elk.layered.compaction.connectedComponents",oen="org.eclipse.elk.layered.compaction.postCompaction.strategy",fen="org.eclipse.elk.layered.compaction.postCompaction.constraints",eA="org.eclipse.elk.layered.highDegreeNodes.treatment",VN="org.eclipse.elk.layered.highDegreeNodes.threshold",QN="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Vh="org.eclipse.elk.layered.wrapping.strategy",tA="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",iA="org.eclipse.elk.layered.wrapping.correctionFactor",Z6="org.eclipse.elk.layered.wrapping.cutting.strategy",JN="org.eclipse.elk.layered.wrapping.cutting.cuts",YN="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",rA="org.eclipse.elk.layered.wrapping.validify.strategy",cA="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",uA="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",sA="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",ZN="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",hen="org.eclipse.elk.layered.edgeLabels.sideSelection",len="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",oA="org.eclipse.elk.layered.considerModelOrder.strategy",aen="org.eclipse.elk.layered.considerModelOrder.noModelOrder",nB="org.eclipse.elk.layered.considerModelOrder.components",den="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",eB="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",tB="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",iB="layering",dHn="layering.minWidth",bHn="layering.nodePromotion",kk="crossingMinimization",fA="org.eclipse.elk.hierarchyHandling",wHn="crossingMinimization.greedySwitch",gHn="nodePlacement",pHn="nodePlacement.bk",vHn="edgeRouting",yk="org.eclipse.elk.edgeRouting",pf="spacing",ben="priority",wen="compaction",mHn="compaction.postCompaction",kHn="Specifies whether and how post-process compaction is applied.",gen="highDegreeNodes",pen="wrapping",yHn="wrapping.cutting",jHn="wrapping.validify",ven="wrapping.multiEdge",rB="edgeLabels",jk="considerModelOrder",men="org.eclipse.elk.spacing.commentComment",ken="org.eclipse.elk.spacing.commentNode",yen="org.eclipse.elk.spacing.edgeEdge",jen="org.eclipse.elk.spacing.edgeNode",Een="org.eclipse.elk.spacing.labelLabel",Cen="org.eclipse.elk.spacing.labelPortHorizontal",Ten="org.eclipse.elk.spacing.labelPortVertical",Men="org.eclipse.elk.spacing.labelNode",Aen="org.eclipse.elk.spacing.nodeSelfLoop",Sen="org.eclipse.elk.spacing.portPort",Pen="org.eclipse.elk.spacing.individual",Ien="org.eclipse.elk.port.borderOffset",Oen="org.eclipse.elk.noLayout",Den="org.eclipse.elk.port.side",Ek="org.eclipse.elk.debugMode",$en="org.eclipse.elk.alignment",xen="org.eclipse.elk.insideSelfLoops.activate",Fen="org.eclipse.elk.insideSelfLoops.yo",cB="org.eclipse.elk.nodeSize.fixedGraphSize",Len="org.eclipse.elk.direction",Nen="org.eclipse.elk.nodeLabels.padding",Ben="org.eclipse.elk.portLabels.nextToPortIfPossible",Ren="org.eclipse.elk.portLabels.treatAsGroup",_en="org.eclipse.elk.portAlignment.default",Ken="org.eclipse.elk.portAlignment.north",Hen="org.eclipse.elk.portAlignment.south",qen="org.eclipse.elk.portAlignment.west",Gen="org.eclipse.elk.portAlignment.east",hA="org.eclipse.elk.contentAlignment",zen="org.eclipse.elk.junctionPoints",Uen="org.eclipse.elk.edgeLabels.placement",Wen="org.eclipse.elk.port.index",Xen="org.eclipse.elk.commentBox",Ven="org.eclipse.elk.hypernode",Qen="org.eclipse.elk.port.anchor",uB="org.eclipse.elk.partitioning.activate",sB="org.eclipse.elk.partitioning.partition",lA="org.eclipse.elk.position",Jen="org.eclipse.elk.margins",Yen="org.eclipse.elk.spacing.portsSurrounding",oB="org.eclipse.elk.interactiveLayout",ac="org.eclipse.elk.core.util",Zen={3:1,4:1,5:1,593:1},EHn="NETWORK_SIMPLEX",Tc={123:1,51:1},aA="org.eclipse.elk.alg.layered.p1cycles",Ob="org.eclipse.elk.alg.layered.p2layers",ntn={402:1,225:1},CHn={832:1,3:1,4:1},pu="org.eclipse.elk.alg.layered.p3order",hr="org.eclipse.elk.alg.layered.p4nodes",THn={3:1,4:1,5:1,840:1},Uf=1e-5,Ml="org.eclipse.elk.alg.layered.p4nodes.bk",fB="org.eclipse.elk.alg.layered.p5edges",Uo="org.eclipse.elk.alg.layered.p5edges.orthogonal",hB="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",lB=1e-6,Db="org.eclipse.elk.alg.layered.p5edges.splines",aB=.09999999999999998,dA=1e-8,MHn=4.71238898038469,AHn=3.141592653589793,nm="org.eclipse.elk.alg.mrtree",em="org.eclipse.elk.alg.mrtree.graph",sp="org.eclipse.elk.alg.mrtree.intermediate",SHn="Set neighbors in level",PHn="DESCENDANTS",etn="org.eclipse.elk.mrtree.weighting",ttn="org.eclipse.elk.mrtree.searchOrder",bA="org.eclipse.elk.alg.mrtree.options",T1="org.eclipse.elk.mrtree",IHn="org.eclipse.elk.tree",itn="org.eclipse.elk.alg.radial",ag=6.283185307179586,rtn=5e-324,OHn="org.eclipse.elk.alg.radial.intermediate",dB="org.eclipse.elk.alg.radial.intermediate.compaction",DHn={3:1,4:1,5:1,106:1},ctn="org.eclipse.elk.alg.radial.intermediate.optimization",bB="No implementation is available for the layout option ",tm="org.eclipse.elk.alg.radial.options",utn="org.eclipse.elk.radial.orderId",stn="org.eclipse.elk.radial.radius",wB="org.eclipse.elk.radial.compactor",gB="org.eclipse.elk.radial.compactionStepSize",otn="org.eclipse.elk.radial.sorter",ftn="org.eclipse.elk.radial.wedgeCriteria",htn="org.eclipse.elk.radial.optimizationCriteria",Wf="org.eclipse.elk.radial",$Hn="org.eclipse.elk.alg.radial.p1position.wedge",ltn="org.eclipse.elk.alg.radial.sorting",xHn=5.497787143782138,FHn=3.9269908169872414,LHn=2.356194490192345,NHn="org.eclipse.elk.alg.rectpacking",wA="org.eclipse.elk.alg.rectpacking.firstiteration",pB="org.eclipse.elk.alg.rectpacking.options",atn="org.eclipse.elk.rectpacking.optimizationGoal",dtn="org.eclipse.elk.rectpacking.lastPlaceShift",btn="org.eclipse.elk.rectpacking.currentPosition",wtn="org.eclipse.elk.rectpacking.desiredPosition",gtn="org.eclipse.elk.rectpacking.onlyFirstIteration",ptn="org.eclipse.elk.rectpacking.rowCompaction",vB="org.eclipse.elk.rectpacking.expandToAspectRatio",vtn="org.eclipse.elk.rectpacking.targetWidth",gA="org.eclipse.elk.expandNodes",zs="org.eclipse.elk.rectpacking",Ck="org.eclipse.elk.alg.rectpacking.util",pA="No implementation available for ",$b="org.eclipse.elk.alg.spore",xb="org.eclipse.elk.alg.spore.options",u0="org.eclipse.elk.sporeCompaction",mB="org.eclipse.elk.underlyingLayoutAlgorithm",mtn="org.eclipse.elk.processingOrder.treeConstruction",ktn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",kB="org.eclipse.elk.processingOrder.preferredRoot",yB="org.eclipse.elk.processingOrder.rootSelection",jB="org.eclipse.elk.structure.structureExtractionStrategy",ytn="org.eclipse.elk.compaction.compactionStrategy",jtn="org.eclipse.elk.compaction.orthogonal",Etn="org.eclipse.elk.overlapRemoval.maxIterations",Ctn="org.eclipse.elk.overlapRemoval.runScanline",EB="processingOrder",BHn="overlapRemoval",N4="org.eclipse.elk.sporeOverlap",RHn="org.eclipse.elk.alg.spore.p1structure",CB="org.eclipse.elk.alg.spore.p2processingorder",TB="org.eclipse.elk.alg.spore.p3execution",_Hn="Invalid index: ",B4="org.eclipse.elk.core.alg",dg={331:1},Fb={288:1},KHn="Make sure its type is registered with the ",Ttn=" utility class.",R4="true",MB="false",HHn="Couldn't clone property '",s0=.05,Us="org.eclipse.elk.core.options",qHn=1.2999999523162842,o0="org.eclipse.elk.box",Mtn="org.eclipse.elk.box.packingMode",GHn="org.eclipse.elk.algorithm",zHn="org.eclipse.elk.resolvedAlgorithm",Atn="org.eclipse.elk.bendPoints",NTe="org.eclipse.elk.labelManager",UHn="org.eclipse.elk.scaleFactor",WHn="org.eclipse.elk.animate",XHn="org.eclipse.elk.animTimeFactor",VHn="org.eclipse.elk.layoutAncestors",QHn="org.eclipse.elk.maxAnimTime",JHn="org.eclipse.elk.minAnimTime",YHn="org.eclipse.elk.progressBar",ZHn="org.eclipse.elk.validateGraph",nqn="org.eclipse.elk.validateOptions",eqn="org.eclipse.elk.zoomToFit",BTe="org.eclipse.elk.font.name",tqn="org.eclipse.elk.font.size",iqn="org.eclipse.elk.edge.type",rqn="partitioning",cqn="nodeLabels",vA="portAlignment",AB="nodeSize",SB="port",Stn="portLabels",uqn="insideSelfLoops",im="org.eclipse.elk.fixed",mA="org.eclipse.elk.random",sqn="port must have a parent node to calculate the port side",oqn="The edge needs to have exactly one edge section. Found: ",rm="org.eclipse.elk.core.util.adapters",Ps="org.eclipse.emf.ecore",bg="org.eclipse.elk.graph",fqn="EMapPropertyHolder",hqn="ElkBendPoint",lqn="ElkGraphElement",aqn="ElkConnectableShape",Ptn="ElkEdge",dqn="ElkEdgeSection",bqn="EModelElement",wqn="ENamedElement",Itn="ElkLabel",Otn="ElkNode",Dtn="ElkPort",gqn={92:1,90:1},op="org.eclipse.emf.common.notify.impl",Al="The feature '",cm="' is not a valid changeable feature",pqn="Expecting null",PB="' is not a valid feature",vqn="The feature ID",mqn=" is not a valid feature ID",uc=32768,kqn={105:1,92:1,90:1,56:1,49:1,97:1},Bn="org.eclipse.emf.ecore.impl",La="org.eclipse.elk.graph.impl",um="Recursive containment not allowed for ",_4="The datatype '",f0="' is not a valid classifier",IB="The value '",wg={190:1,3:1,4:1},OB="The class '",K4="http://www.eclipse.org/elk/ElkGraph",Co=1024,$tn="property",sm="value",DB="source",yqn="properties",jqn="identifier",$B="height",xB="width",FB="parent",LB="text",NB="children",Eqn="hierarchical",xtn="sources",BB="targets",Ftn="sections",kA="bendPoints",Ltn="outgoingShape",Ntn="incomingShape",Btn="outgoingSections",Rtn="incomingSections",zi="org.eclipse.emf.common.util",_tn="Severe implementation error in the Json to ElkGraph importer.",Xf="id",xi="org.eclipse.elk.graph.json",Ktn="Unhandled parameter types: ",Cqn="startPoint",Tqn="An edge must have at least one source and one target (edge id: '",H4="').",Mqn="Referenced edge section does not exist: ",Aqn=" (edge id: '",Htn="target",Sqn="sourcePoint",Pqn="targetPoint",yA="group",We="name",Iqn="connectableShape cannot be null",Oqn="edge cannot be null",RB="Passed edge is not 'simple'.",jA="org.eclipse.elk.graph.util",Tk="The 'no duplicates' constraint is violated",_B="targetIndex=",Na=", size=",KB="sourceIndex=",Vf={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},HB={3:1,4:1,20:1,28:1,52:1,14:1,47:1,15:1,54:1,67:1,63:1,58:1,588:1},EA="logging",Dqn="measureExecutionTime",$qn="parser.parse.1",xqn="parser.parse.2",CA="parser.next.1",qB="parser.next.2",Fqn="parser.next.3",Lqn="parser.next.4",Ba="parser.factor.1",qtn="parser.factor.2",Nqn="parser.factor.3",Bqn="parser.factor.4",Rqn="parser.factor.5",_qn="parser.factor.6",Kqn="parser.atom.1",Hqn="parser.atom.2",qqn="parser.atom.3",Gtn="parser.atom.4",GB="parser.atom.5",ztn="parser.cc.1",TA="parser.cc.2",Gqn="parser.cc.3",zqn="parser.cc.5",Utn="parser.cc.6",Wtn="parser.cc.7",zB="parser.cc.8",Uqn="parser.ope.1",Wqn="parser.ope.2",Xqn="parser.ope.3",M1="parser.descape.1",Vqn="parser.descape.2",Qqn="parser.descape.3",Jqn="parser.descape.4",Yqn="parser.descape.5",Is="parser.process.1",Zqn="parser.quantifier.1",nGn="parser.quantifier.2",eGn="parser.quantifier.3",tGn="parser.quantifier.4",Xtn="parser.quantifier.5",iGn="org.eclipse.emf.common.notify",Vtn={415:1,672:1},rGn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},Mk={366:1,143:1},om="index=",UB={3:1,4:1,5:1,126:1},cGn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},Qtn={3:1,6:1,4:1,5:1,192:1},uGn={3:1,4:1,5:1,165:1,367:1},sGn=";/?:@&=+$,",oGn="invalid authority: ",fGn="EAnnotation",hGn="ETypedElement",lGn="EStructuralFeature",aGn="EAttribute",dGn="EClassifier",bGn="EEnumLiteral",wGn="EGenericType",gGn="EOperation",pGn="EParameter",vGn="EReference",mGn="ETypeParameter",vt="org.eclipse.emf.ecore.util",WB={76:1},Jtn={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},kGn="org.eclipse.emf.ecore.util.FeatureMap$Entry",vu=8192,Lb=2048,fm="byte",MA="char",hm="double",lm="float",am="int",dm="long",bm="short",yGn="java.lang.Object",gg={3:1,4:1,5:1,247:1},Ytn={3:1,4:1,5:1,673:1},jGn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},Nr={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,69:1,95:1},Ak="mixed",Fe="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Ws="kind",EGn={3:1,4:1,5:1,674:1},Ztn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},AA={20:1,28:1,52:1,14:1,15:1,58:1,69:1},SA={47:1,125:1,279:1},PA={72:1,332:1},IA="The value of type '",OA="' must be of type '",pg=1316,Xs="http://www.eclipse.org/emf/2002/Ecore",DA=-32768,h0="constraints",Ri="baseType",CGn="getEStructuralFeature",TGn="getFeatureID",wm="feature",MGn="getOperationID",nin="operation",AGn="defaultValue",SGn="eTypeParameters",PGn="isInstance",IGn="getEEnumLiteral",OGn="eContainingClass",qe={55:1},DGn={3:1,4:1,5:1,119:1},$Gn="org.eclipse.emf.ecore.resource",xGn={92:1,90:1,591:1,1935:1},XB="org.eclipse.emf.ecore.resource.impl",ein="unspecified",Sk="simple",$A="attribute",FGn="attributeWildcard",xA="element",VB="elementWildcard",Wo="collapse",QB="itemType",FA="namespace",Pk="##targetNamespace",Vs="whiteSpace",tin="wildcards",Ra="http://www.eclipse.org/emf/2003/XMLType",JB="##any",q4="uninitialized",Ik="The multiplicity constraint is violated",LA="org.eclipse.emf.ecore.xml.type",LGn="ProcessingInstruction",NGn="SimpleAnyType",BGn="XMLTypeDocumentRoot",Wt="org.eclipse.emf.ecore.xml.type.impl",Ok="INF",RGn="processing",_Gn="ENTITIES_._base",iin="minLength",rin="ENTITY",NA="NCName",KGn="IDREFS_._base",cin="integer",YB="token",ZB="pattern",HGn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",uin="\\i\\c*",qGn="[\\i-[:]][\\c-[:]]*",GGn="nonPositiveInteger",Dk="maxInclusive",sin="NMTOKEN",zGn="NMTOKENS_._base",oin="nonNegativeInteger",$k="minInclusive",UGn="normalizedString",WGn="unsignedByte",XGn="unsignedInt",VGn="18446744073709551615",QGn="unsignedShort",JGn="processingInstruction",A1="org.eclipse.emf.ecore.xml.type.internal",G4=1114111,YGn="Internal Error: shorthands: \\u",gm="xml:isDigit",nR="xml:isWord",eR="xml:isSpace",tR="xml:isNameChar",iR="xml:isInitialNameChar",ZGn="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",nzn="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",ezn="Private Use",rR="ASSIGNED",cR="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",fin="UNASSIGNED",z4={3:1,117:1},tzn="org.eclipse.emf.ecore.xml.type.util",BA={3:1,4:1,5:1,368:1},hin="org.eclipse.xtext.xbase.lib",izn="Cannot add elements to a Range",rzn="Cannot set elements in a Range",czn="Cannot remove elements from a Range",RA="locale",_A="default",KA="user.agent",s,HA,uR;j.goog=j.goog||{},j.goog.global=j.goog.global||j,h5e(),b(1,null,{},yu),s.Fb=function(e){return nyn(this,e)},s.Gb=function(){return this.gm},s.Hb=function(){return vd(this)},s.Ib=function(){var e;return V1(Du(this))+"@"+(e=mt(this)>>>0,e.toString(16))},s.equals=function(n){return this.Fb(n)},s.hashCode=function(){return this.Hb()},s.toString=function(){return this.Ib()};var uzn,szn,ozn;b(290,1,{290:1,2026:1},KV),s.le=function(e){var t;return t=new KV,t.i=4,e>1?t.c=pMn(this,e-1):t.c=this,t},s.me=function(){return Ph(this),this.b},s.ne=function(){return V1(this)},s.oe=function(){return Ph(this),this.k},s.pe=function(){return(this.i&4)!=0},s.qe=function(){return(this.i&1)!=0},s.Ib=function(){return tV(this)},s.i=0;var Zn=w(zr,"Object",1),lin=w(zr,"Class",290);b(1998,1,ek),w(tk,"Optional",1998),b(1170,1998,ek,_t),s.Fb=function(e){return e===this},s.Hb=function(){return 2040732332},s.Ib=function(){return"Optional.absent()"},s.Jb=function(e){return pe(e),qv(),sR};var sR;w(tk,"Absent",1170),b(628,1,{},eO),w(tk,"Joiner",628);var RTe=Et(tk,"Predicate");b(582,1,{169:1,582:1,3:1,45:1},nvn),s.Mb=function(e){return iDn(this,e)},s.Lb=function(e){return iDn(this,e)},s.Fb=function(e){var t;return I(e,582)?(t=u(e,582),xY(this.a,t.a)):!1},s.Hb=function(){return UV(this.a)+306654252},s.Ib=function(){return Q5e(this.a)},w(tk,"Predicates/AndPredicate",582),b(408,1998,{408:1,3:1},tj),s.Fb=function(e){var t;return I(e,408)?(t=u(e,408),tt(this.a,t.a)):!1},s.Hb=function(){return 1502476572+mt(this.a)},s.Ib=function(){return q_n+this.a+")"},s.Jb=function(e){return new tj(cC(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},w(tk,"Present",408),b(198,1,C4),s.Nb=function(e){Oi(this,e)},s.Qb=function(){G9n()},w(an,"UnmodifiableIterator",198),b(1978,198,T4),s.Qb=function(){G9n()},s.Rb=function(e){throw T(new ye)},s.Wb=function(e){throw T(new ye)},w(an,"UnmodifiableListIterator",1978),b(386,1978,T4),s.Ob=function(){return this.c0},s.Pb=function(){if(this.c>=this.d)throw T(new ic);return this.Xb(this.c++)},s.Tb=function(){return this.c},s.Ub=function(){if(this.c<=0)throw T(new ic);return this.Xb(--this.c)},s.Vb=function(){return this.c-1},s.c=0,s.d=0,w(an,"AbstractIndexedListIterator",386),b(699,198,C4),s.Ob=function(){return Y$(this)},s.Pb=function(){return QX(this)},s.e=1,w(an,"AbstractIterator",699),b(1986,1,{224:1}),s.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},s.Fb=function(e){return gx(this,e)},s.Hb=function(){return mt(this.Zb())},s.dc=function(){return this.gc()==0},s.ec=function(){return y2(this)},s.Ib=function(){return Lr(this.Zb())},w(an,"AbstractMultimap",1986),b(726,1986,Ia),s.$b=function(){ZC(this)},s._b=function(e){return f8n(this,e)},s.ac=function(){return new Zp(this,this.c)},s.ic=function(e){return this.hc()},s.bc=function(){return new Sw(this,this.c)},s.jc=function(){return this.mc(this.hc())},s.kc=function(){return new A9n(this)},s.lc=function(){return EF(this.c.vc().Nc(),new Ue,64,this.d)},s.cc=function(e){return ct(this,e)},s.fc=function(e){return w7(this,e)},s.gc=function(){return this.d},s.mc=function(e){return Pn(),new Kp(e)},s.nc=function(){return new M9n(this)},s.oc=function(){return EF(this.c.Cc().Nc(),new Gt,64,this.d)},s.pc=function(e,t){return new $C(this,e,t,null)},s.d=0,w(an,"AbstractMapBasedMultimap",726),b(1631,726,Ia),s.hc=function(){return new Oc(this.a)},s.jc=function(){return Pn(),Pn(),cr},s.cc=function(e){return u(ct(this,e),15)},s.fc=function(e){return u(w7(this,e),15)},s.Zb=function(){return M2(this)},s.Fb=function(e){return gx(this,e)},s.qc=function(e){return u(ct(this,e),15)},s.rc=function(e){return u(w7(this,e),15)},s.mc=function(e){return S8(u(e,15))},s.pc=function(e,t){return jAn(this,e,u(t,15),null)},w(an,"AbstractListMultimap",1631),b(732,1,yi),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.c.Ob()||this.e.Ob()},s.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),42),this.b=e.cd(),this.a=u(e.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},s.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},w(an,"AbstractMapBasedMultimap/Itr",732),b(1099,732,yi,M9n),s.sc=function(e,t){return t},w(an,"AbstractMapBasedMultimap/1",1099),b(1100,1,{},Gt),s.Kb=function(e){return u(e,14).Nc()},w(an,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),b(1101,732,yi,A9n),s.sc=function(e,t){return new dd(e,t)},w(an,"AbstractMapBasedMultimap/2",1101);var ain=Et(fe,"Map");b(1967,1,i0),s.wc=function(e){r6(this,e)},s.yc=function(e,t,i){return $x(this,e,t,i)},s.$b=function(){this.vc().$b()},s.tc=function(e){return uF(this,e)},s._b=function(e){return!!NJ(this,e,!1)},s.uc=function(e){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),42),r=t.dd(),B(e)===B(r)||e!=null&&tt(e,r))return!0;return!1},s.Fb=function(e){var t,i,r;if(e===this)return!0;if(!I(e,83)||(r=u(e,83),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),42),!this.tc(t))return!1;return!0},s.xc=function(e){return Xr(NJ(this,e,!1))},s.Hb=function(){return LV(this.vc())},s.dc=function(){return this.gc()==0},s.ec=function(){return new _p(this)},s.zc=function(e,t){throw T(new t1("Put not supported on this map"))},s.Ac=function(e){i6(this,e)},s.Bc=function(e){return Xr(NJ(this,e,!0))},s.gc=function(){return this.vc().gc()},s.Ib=function(){return cFn(this)},s.Cc=function(){return new Mh(this)},w(fe,"AbstractMap",1967),b(1987,1967,i0),s.bc=function(){return new Mj(this)},s.vc=function(){return yCn(this)},s.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},s.Cc=function(){var e;return e=this.i,e||(this.i=new e7n(this))},w(an,"Maps/ViewCachingAbstractMap",1987),b(389,1987,i0,Zp),s.xc=function(e){return D0e(this,e)},s.Bc=function(e){return Xwe(this,e)},s.$b=function(){this.d==this.e.c?this.e.$b():FE(new rW(this))},s._b=function(e){return LDn(this.d,e)},s.Ec=function(){return new rvn(this)},s.Dc=function(){return this.Ec()},s.Fb=function(e){return this===e||tt(this.d,e)},s.Hb=function(){return mt(this.d)},s.ec=function(){return this.e.ec()},s.gc=function(){return this.d.gc()},s.Ib=function(){return Lr(this.d)},w(an,"AbstractMapBasedMultimap/AsMap",389);var vf=Et(zr,"Iterable");b(28,1,Mb),s.Jc=function(e){$i(this,e)},s.Lc=function(){return this.Oc()},s.Nc=function(){return new Fn(this,0)},s.Oc=function(){return new $n(null,this.Nc())},s.Fc=function(e){throw T(new t1("Add not supported on this collection"))},s.Gc=function(e){return Vi(this,e)},s.$b=function(){qW(this)},s.Hc=function(e){return lb(this,e,!1)},s.Ic=function(e){return u7(this,e)},s.dc=function(){return this.gc()==0},s.Mc=function(e){return lb(this,e,!0)},s.Pc=function(){return pW(this)},s.Qc=function(e){return T7(this,e)},s.Ib=function(){return vl(this)},w(fe,"AbstractCollection",28);var Qs=Et(fe,"Set");b(wf,28,gu),s.Nc=function(){return new Fn(this,1)},s.Fb=function(e){return P$n(this,e)},s.Hb=function(){return LV(this)},w(fe,"AbstractSet",wf),b(1970,wf,gu),w(an,"Sets/ImprovedAbstractSet",1970),b(1971,1970,gu),s.$b=function(){this.Rc().$b()},s.Hc=function(e){return h$n(this,e)},s.dc=function(){return this.Rc().dc()},s.Mc=function(e){var t;return this.Hc(e)?(t=u(e,42),this.Rc().ec().Mc(t.cd())):!1},s.gc=function(){return this.Rc().gc()},w(an,"Maps/EntrySet",1971),b(1097,1971,gu,rvn),s.Hc=function(e){return lQ(this.a.d.vc(),e)},s.Kc=function(){return new rW(this.a)},s.Rc=function(){return this.a},s.Mc=function(e){var t;return lQ(this.a.d.vc(),e)?(t=u(e,42),vde(this.a.e,t.cd()),!0):!1},s.Nc=function(){return k8(this.a.d.vc().Nc(),new cvn(this.a))},w(an,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),b(1098,1,{},cvn),s.Kb=function(e){return lSn(this.a,u(e,42))},w(an,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),b(730,1,yi,rW),s.Nb=function(e){Oi(this,e)},s.Pb=function(){var e;return e=u(this.b.Pb(),42),this.a=u(e.dd(),14),lSn(this.c,e)},s.Ob=function(){return this.b.Ob()},s.Qb=function(){Nw(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(an,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),b(532,1970,gu,Mj),s.$b=function(){this.b.$b()},s.Hc=function(e){return this.b._b(e)},s.Jc=function(e){pe(e),this.b.wc(new jvn(e))},s.dc=function(){return this.b.dc()},s.Kc=function(){return new Gv(this.b.vc().Kc())},s.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},s.gc=function(){return this.b.gc()},w(an,"Maps/KeySet",532),b(318,532,gu,Sw),s.$b=function(){var e;FE((e=this.b.vc().Kc(),new IG(this,e)))},s.Ic=function(e){return this.b.ec().Ic(e)},s.Fb=function(e){return this===e||tt(this.b.ec(),e)},s.Hb=function(){return mt(this.b.ec())},s.Kc=function(){var e;return e=this.b.vc().Kc(),new IG(this,e)},s.Mc=function(e){var t,i;return i=0,t=u(this.b.Bc(e),14),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},s.Nc=function(){return this.b.ec().Nc()},w(an,"AbstractMapBasedMultimap/KeySet",318),b(731,1,yi,IG),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.c.Ob()},s.Pb=function(){return this.a=u(this.c.Pb(),42),this.a.cd()},s.Qb=function(){var e;Nw(!!this.a),e=u(this.a.dd(),14),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(an,"AbstractMapBasedMultimap/KeySet/1",731),b(491,389,{83:1,161:1},d8),s.bc=function(){return this.Sc()},s.ec=function(){return this.Tc()},s.Sc=function(){return new q9(this.c,this.Uc())},s.Tc=function(){var e;return e=this.b,e||(this.b=this.Sc())},s.Uc=function(){return u(this.d,161)},w(an,"AbstractMapBasedMultimap/SortedAsMap",491),b(542,491,G_n,jE),s.bc=function(){return new Yp(this.a,u(u(this.d,161),171))},s.Sc=function(){return new Yp(this.a,u(u(this.d,161),171))},s.ec=function(){var e;return e=this.b,u(e||(this.b=new Yp(this.a,u(u(this.d,161),171))),271)},s.Tc=function(){var e;return e=this.b,u(e||(this.b=new Yp(this.a,u(u(this.d,161),171))),271)},s.Uc=function(){return u(u(this.d,161),171)},w(an,"AbstractMapBasedMultimap/NavigableAsMap",542),b(490,318,z_n,q9),s.Nc=function(){return this.b.ec().Nc()},w(an,"AbstractMapBasedMultimap/SortedKeySet",490),b(388,490,VZ,Yp),w(an,"AbstractMapBasedMultimap/NavigableKeySet",388),b(541,28,Mb,$C),s.Fc=function(e){var t,i;return $u(this),i=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,i&&p8(this)),t},s.Gc=function(e){var t,i,r;return e.dc()?!1:(r=($u(this),this.d.gc()),t=this.d.Gc(e),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&p8(this)),t)},s.$b=function(){var e;e=($u(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,_E(this))},s.Hc=function(e){return $u(this),this.d.Hc(e)},s.Ic=function(e){return $u(this),this.d.Ic(e)},s.Fb=function(e){return e===this?!0:($u(this),tt(this.d,e))},s.Hb=function(){return $u(this),mt(this.d)},s.Kc=function(){return $u(this),new GU(this)},s.Mc=function(e){var t;return $u(this),t=this.d.Mc(e),t&&(--this.f.d,_E(this)),t},s.gc=function(){return Rkn(this)},s.Nc=function(){return $u(this),this.d.Nc()},s.Ib=function(){return $u(this),Lr(this.d)},w(an,"AbstractMapBasedMultimap/WrappedCollection",541);var Os=Et(fe,"List");b(728,541,{20:1,28:1,14:1,15:1},mW),s.ad=function(e){Lw(this,e)},s.Nc=function(){return $u(this),this.d.Nc()},s.Vc=function(e,t){var i;$u(this),i=this.d.dc(),u(this.d,15).Vc(e,t),++this.a.d,i&&p8(this)},s.Wc=function(e,t){var i,r,c;return t.dc()?!1:(c=($u(this),this.d.gc()),i=u(this.d,15).Wc(e,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&p8(this)),i)},s.Xb=function(e){return $u(this),u(this.d,15).Xb(e)},s.Xc=function(e){return $u(this),u(this.d,15).Xc(e)},s.Yc=function(){return $u(this),new vyn(this)},s.Zc=function(e){return $u(this),new OTn(this,e)},s.$c=function(e){var t;return $u(this),t=u(this.d,15).$c(e),--this.a.d,_E(this),t},s._c=function(e,t){return $u(this),u(this.d,15)._c(e,t)},s.bd=function(e,t){return $u(this),jAn(this.a,this.e,u(this.d,15).bd(e,t),this.b?this.b:this)},w(an,"AbstractMapBasedMultimap/WrappedList",728),b(1096,728,{20:1,28:1,14:1,15:1,54:1},ojn),w(an,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),b(620,1,yi,GU),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return k3(this),this.b.Ob()},s.Pb=function(){return k3(this),this.b.Pb()},s.Qb=function(){zyn(this)},w(an,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),b(729,620,ah,vyn,OTn),s.Qb=function(){zyn(this)},s.Rb=function(e){var t;t=Rkn(this.a)==0,(k3(this),u(this.b,125)).Rb(e),++this.a.a.d,t&&p8(this.a)},s.Sb=function(){return(k3(this),u(this.b,125)).Sb()},s.Tb=function(){return(k3(this),u(this.b,125)).Tb()},s.Ub=function(){return(k3(this),u(this.b,125)).Ub()},s.Vb=function(){return(k3(this),u(this.b,125)).Vb()},s.Wb=function(e){(k3(this),u(this.b,125)).Wb(e)},w(an,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),b(727,541,z_n,lU),s.Nc=function(){return $u(this),this.d.Nc()},w(an,"AbstractMapBasedMultimap/WrappedSortedSet",727),b(1095,727,VZ,hyn),w(an,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),b(1094,541,gu,jjn),s.Nc=function(){return $u(this),this.d.Nc()},w(an,"AbstractMapBasedMultimap/WrappedSet",1094),b(1103,1,{},Ue),s.Kb=function(e){return Cde(u(e,42))},w(an,"AbstractMapBasedMultimap/lambda$1$Type",1103),b(1102,1,{},uvn),s.Kb=function(e){return new dd(this.a,e)},w(an,"AbstractMapBasedMultimap/lambda$2$Type",1102);var _a=Et(fe,"Map/Entry");b(345,1,DM),s.Fb=function(e){var t;return I(e,42)?(t=u(e,42),Ff(this.cd(),t.cd())&&Ff(this.dd(),t.dd())):!1},s.Hb=function(){var e,t;return e=this.cd(),t=this.dd(),(e==null?0:mt(e))^(t==null?0:mt(t))},s.ed=function(e){throw T(new ye)},s.Ib=function(){return this.cd()+"="+this.dd()},w(an,U_n,345),b(1988,28,Mb),s.$b=function(){this.fd().$b()},s.Hc=function(e){var t;return I(e,42)?(t=u(e,42),rae(this.fd(),t.cd(),t.dd())):!1},s.Mc=function(e){var t;return I(e,42)?(t=u(e,42),tAn(this.fd(),t.cd(),t.dd())):!1},s.gc=function(){return this.fd().d},w(an,"Multimaps/Entries",1988),b(733,1988,Mb,uq),s.Kc=function(){return this.a.kc()},s.fd=function(){return this.a},s.Nc=function(){return this.a.lc()},w(an,"AbstractMultimap/Entries",733),b(734,733,gu,uG),s.Nc=function(){return this.a.lc()},s.Fb=function(e){return eY(this,e)},s.Hb=function(){return iOn(this)},w(an,"AbstractMultimap/EntrySet",734),b(735,28,Mb,sq),s.$b=function(){this.a.$b()},s.Hc=function(e){return Hwe(this.a,e)},s.Kc=function(){return this.a.nc()},s.gc=function(){return this.a.d},s.Nc=function(){return this.a.oc()},w(an,"AbstractMultimap/Values",735),b(1989,28,{835:1,20:1,28:1,14:1}),s.Jc=function(e){pe(e),Iw(this).Jc(new yvn(e))},s.Nc=function(){var e;return e=Iw(this).Nc(),EF(e,new H1,64|e.qd()&1296,this.a.d)},s.Fc=function(e){return wG(),!0},s.Gc=function(e){return pe(this),pe(e),I(e,543)?fae(u(e,835)):!e.dc()&&q$(this,e.Kc())},s.Hc=function(e){var t;return t=u(hb(M2(this.a),e),14),(t?t.gc():0)>0},s.Fb=function(e){return t9e(this,e)},s.Hb=function(){return mt(Iw(this))},s.dc=function(){return Iw(this).dc()},s.Mc=function(e){return jLn(this,e,1)>0},s.Ib=function(){return Lr(Iw(this))},w(an,"AbstractMultiset",1989),b(1991,1970,gu),s.$b=function(){ZC(this.a.a)},s.Hc=function(e){var t,i;return I(e,492)?(i=u(e,416),u(i.a.dd(),14).gc()<=0?!1:(t=DMn(this.a,i.a.cd()),t==u(i.a.dd(),14).gc())):!1},s.Mc=function(e){var t,i,r,c;return I(e,492)&&(i=u(e,416),t=i.a.cd(),r=u(i.a.dd(),14).gc(),r!=0)?(c=this.a,G6e(c,t,r)):!1},w(an,"Multisets/EntrySet",1991),b(1109,1991,gu,svn),s.Kc=function(){return new F9n(yCn(M2(this.a.a)).Kc())},s.gc=function(){return M2(this.a.a).gc()},w(an,"AbstractMultiset/EntrySet",1109),b(619,726,Ia),s.hc=function(){return this.gd()},s.jc=function(){return this.hd()},s.cc=function(e){return this.jd(e)},s.fc=function(e){return this.kd(e)},s.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},s.hd=function(){return Pn(),Pn(),XA},s.Fb=function(e){return gx(this,e)},s.jd=function(e){return u(ct(this,e),21)},s.kd=function(e){return u(w7(this,e),21)},s.mc=function(e){return Pn(),new Xp(u(e,21))},s.pc=function(e,t){return new jjn(this,e,u(t,21))},w(an,"AbstractSetMultimap",619),b(1657,619,Ia),s.hc=function(){return new Q1(this.b)},s.gd=function(){return new Q1(this.b)},s.jc=function(){return xW(new Q1(this.b))},s.hd=function(){return xW(new Q1(this.b))},s.cc=function(e){return u(u(ct(this,e),21),84)},s.jd=function(e){return u(u(ct(this,e),21),84)},s.fc=function(e){return u(u(w7(this,e),21),84)},s.kd=function(e){return u(u(w7(this,e),21),84)},s.mc=function(e){return I(e,271)?xW(u(e,271)):(Pn(),new Gz(u(e,84)))},s.Zb=function(){var e;return e=this.f,e||(this.f=I(this.c,171)?new jE(this,u(this.c,171)):I(this.c,161)?new d8(this,u(this.c,161)):new Zp(this,this.c))},s.pc=function(e,t){return I(t,271)?new hyn(this,e,u(t,271)):new lU(this,e,u(t,84))},w(an,"AbstractSortedSetMultimap",1657),b(1658,1657,Ia),s.Zb=function(){var e;return e=this.f,u(u(e||(this.f=I(this.c,171)?new jE(this,u(this.c,171)):I(this.c,161)?new d8(this,u(this.c,161)):new Zp(this,this.c)),161),171)},s.ec=function(){var e;return e=this.i,u(u(e||(this.i=I(this.c,171)?new Yp(this,u(this.c,171)):I(this.c,161)?new q9(this,u(this.c,161)):new Sw(this,this.c)),84),271)},s.bc=function(){return I(this.c,171)?new Yp(this,u(this.c,171)):I(this.c,161)?new q9(this,u(this.c,161)):new Sw(this,this.c)},w(an,"AbstractSortedKeySortedSetMultimap",1658),b(2010,1,{1947:1}),s.Fb=function(e){return $4e(this,e)},s.Hb=function(){var e;return LV((e=this.g,e||(this.g=new PI(this))))},s.Ib=function(){var e;return cFn((e=this.f,e||(this.f=new Lz(this))))},w(an,"AbstractTable",2010),b(665,wf,gu,PI),s.$b=function(){z9n()},s.Hc=function(e){var t,i;return I(e,468)?(t=u(e,682),i=u(hb(GCn(this.a),Z1(t.c.e,t.b)),83),!!i&&lQ(i.vc(),new dd(Z1(t.c.c,t.a),$2(t.c,t.b,t.a)))):!1},s.Kc=function(){return p1e(this.a)},s.Mc=function(e){var t,i;return I(e,468)?(t=u(e,682),i=u(hb(GCn(this.a),Z1(t.c.e,t.b)),83),!!i&&wge(i.vc(),new dd(Z1(t.c.c,t.a),$2(t.c,t.b,t.a)))):!1},s.gc=function(){return tCn(this.a)},s.Nc=function(){return aae(this.a)},w(an,"AbstractTable/CellSet",665),b(1928,28,Mb,ovn),s.$b=function(){z9n()},s.Hc=function(e){return Cve(this.a,e)},s.Kc=function(){return v1e(this.a)},s.gc=function(){return tCn(this.a)},s.Nc=function(){return cAn(this.a)},w(an,"AbstractTable/Values",1928),b(1632,1631,Ia),w(an,"ArrayListMultimapGwtSerializationDependencies",1632),b(513,1632,Ia,nO,cX),s.hc=function(){return new Oc(this.a)},s.a=0,w(an,"ArrayListMultimap",513),b(664,2010,{664:1,1947:1,3:1},DLn),w(an,"ArrayTable",664),b(1924,386,T4,Ryn),s.Xb=function(e){return new _V(this.a,e)},w(an,"ArrayTable/1",1924),b(1925,1,{},evn),s.ld=function(e){return new _V(this.a,e)},w(an,"ArrayTable/1methodref$getCell$Type",1925),b(2011,1,{682:1}),s.Fb=function(e){var t;return e===this?!0:I(e,468)?(t=u(e,682),Ff(Z1(this.c.e,this.b),Z1(t.c.e,t.b))&&Ff(Z1(this.c.c,this.a),Z1(t.c.c,t.a))&&Ff($2(this.c,this.b,this.a),$2(t.c,t.b,t.a))):!1},s.Hb=function(){return mT(A(M(Zn,1),rn,1,5,[Z1(this.c.e,this.b),Z1(this.c.c,this.a),$2(this.c,this.b,this.a)]))},s.Ib=function(){return"("+Z1(this.c.e,this.b)+","+Z1(this.c.c,this.a)+")="+$2(this.c,this.b,this.a)},w(an,"Tables/AbstractCell",2011),b(468,2011,{468:1,682:1},_V),s.a=0,s.b=0,s.d=0,w(an,"ArrayTable/2",468),b(1927,1,{},tvn),s.ld=function(e){return gPn(this.a,e)},w(an,"ArrayTable/2methodref$getValue$Type",1927),b(1926,386,T4,_yn),s.Xb=function(e){return gPn(this.a,e)},w(an,"ArrayTable/3",1926),b(1979,1967,i0),s.$b=function(){FE(this.kc())},s.vc=function(){return new Evn(this)},s.lc=function(){return new vTn(this.kc(),this.gc())},w(an,"Maps/IteratorBasedAbstractMap",1979),b(828,1979,i0),s.$b=function(){throw T(new ye)},s._b=function(e){return h8n(this.c,e)},s.kc=function(){return new Kyn(this,this.c.b.c.gc())},s.lc=function(){return mD(this.c.b.c.gc(),16,new ivn(this))},s.xc=function(e){var t;return t=u(I5(this.c,e),19),t?this.nd(t.a):null},s.dc=function(){return this.c.b.c.dc()},s.ec=function(){return AD(this.c)},s.zc=function(e,t){var i;if(i=u(I5(this.c,e),19),!i)throw T(new Hn(this.md()+" "+e+" not in "+AD(this.c)));return this.od(i.a,t)},s.Bc=function(e){throw T(new ye)},s.gc=function(){return this.c.b.c.gc()},w(an,"ArrayTable/ArrayMap",828),b(1923,1,{},ivn),s.ld=function(e){return UCn(this.a,e)},w(an,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1923),b(1921,345,DM,G8n),s.cd=function(){return $ce(this.a,this.b)},s.dd=function(){return this.a.nd(this.b)},s.ed=function(e){return this.a.od(this.b,e)},s.b=0,w(an,"ArrayTable/ArrayMap/1",1921),b(1922,386,T4,Kyn),s.Xb=function(e){return UCn(this.a,e)},w(an,"ArrayTable/ArrayMap/2",1922),b(1920,828,i0,$Cn),s.md=function(){return"Column"},s.nd=function(e){return $2(this.b,this.a,e)},s.od=function(e,t){return HOn(this.b,this.a,e,t)},s.a=0,w(an,"ArrayTable/Row",1920),b(829,828,i0,Lz),s.nd=function(e){return new $Cn(this.a,e)},s.zc=function(e,t){return u(t,83),gie()},s.od=function(e,t){return u(t,83),pie()},s.md=function(){return"Row"},w(an,"ArrayTable/RowMap",829),b(1120,1,qs,z8n),s.qd=function(){return this.a.qd()&-262},s.rd=function(){return this.a.rd()},s.Nb=function(e){this.a.Nb(new _8n(e,this.b))},s.sd=function(e){return this.a.sd(new R8n(e,this.b))},w(an,"CollectSpliterators/1",1120),b(1121,1,Yn,R8n),s.td=function(e){this.a.td(this.b.Kb(e))},w(an,"CollectSpliterators/1/lambda$0$Type",1121),b(1122,1,Yn,_8n),s.td=function(e){this.a.td(this.b.Kb(e))},w(an,"CollectSpliterators/1/lambda$1$Type",1122),b(1123,1,qs,gAn),s.qd=function(){return this.a},s.rd=function(){return this.d&&(this.b=kyn(this.b,this.d.rd())),kyn(this.b,0)},s.Nb=function(e){this.d&&(this.d.Nb(e),this.d=null),this.c.Nb(new B8n(this.e,e)),this.b=0},s.sd=function(e){for(;;){if(this.d&&this.d.sd(e))return v5(this.b,$M)&&(this.b=gl(this.b,1)),!0;if(this.d=null,!this.c.sd(new K8n(this,this.e)))return!1}},s.a=0,s.b=0,w(an,"CollectSpliterators/1FlatMapSpliterator",1123),b(1124,1,Yn,K8n),s.td=function(e){Lue(this.a,this.b,e)},w(an,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1124),b(1125,1,Yn,B8n),s.td=function(e){kce(this.b,this.a,e)},w(an,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1125),b(1117,1,qs,Yjn),s.qd=function(){return 16464|this.b},s.rd=function(){return this.a.rd()},s.Nb=function(e){this.a.xe(new q8n(e,this.c))},s.sd=function(e){return this.a.ye(new H8n(e,this.c))},s.b=0,w(an,"CollectSpliterators/1WithCharacteristics",1117),b(1118,1,ik,H8n),s.ud=function(e){this.a.td(this.b.ld(e))},w(an,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1118),b(1119,1,ik,q8n),s.ud=function(e){this.a.td(this.b.ld(e))},w(an,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1119),b(245,1,SL),s.wd=function(e){return this.vd(u(e,245))},s.vd=function(e){var t;return e==(zI(),fR)?1:e==(UI(),oR)?-1:(t=(DE(),t7(this.a,e.a)),t!=0?t:I(this,519)==I(e,519)?0:I(this,519)?1:-1)},s.zd=function(){return this.a},s.Fb=function(e){return qQ(this,e)},w(an,"Cut",245),b(1761,245,SL,X9n),s.vd=function(e){return e==this?0:1},s.xd=function(e){throw T(new Hq)},s.yd=function(e){e.a+="+∞)"},s.zd=function(){throw T(new Dr(X_n))},s.Hb=function(){return eh(),YQ(this)},s.Ad=function(e){return!1},s.Ib=function(){return"+∞"};var oR;w(an,"Cut/AboveAll",1761),b(519,245,{245:1,519:1,3:1,35:1},Uyn),s.xd=function(e){rc((e.a+="(",e),this.a)},s.yd=function(e){cl(rc(e,this.a),93)},s.Hb=function(){return~mt(this.a)},s.Ad=function(e){return DE(),t7(this.a,e)<0},s.Ib=function(){return"/"+this.a+"\\"},w(an,"Cut/AboveValue",519),b(1760,245,SL,V9n),s.vd=function(e){return e==this?0:-1},s.xd=function(e){e.a+="(-∞"},s.yd=function(e){throw T(new Hq)},s.zd=function(){throw T(new Dr(X_n))},s.Hb=function(){return eh(),YQ(this)},s.Ad=function(e){return!0},s.Ib=function(){return"-∞"};var fR;w(an,"Cut/BelowAll",1760),b(1762,245,SL,Wyn),s.xd=function(e){rc((e.a+="[",e),this.a)},s.yd=function(e){cl(rc(e,this.a),41)},s.Hb=function(){return mt(this.a)},s.Ad=function(e){return DE(),t7(this.a,e)<=0},s.Ib=function(){return"\\"+this.a+"/"},w(an,"Cut/BelowValue",1762),b(537,1,dh),s.Jc=function(e){$i(this,e)},s.Ib=function(){return zge(u(cC(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},w(an,"FluentIterable",537),b(433,537,dh,y5),s.Kc=function(){return new re(ue(this.a.Kc(),new Mn))},w(an,"FluentIterable/2",433),b(1046,537,dh,Jkn),s.Kc=function(){return rl(this)},w(an,"FluentIterable/3",1046),b(708,386,T4,Nz),s.Xb=function(e){return this.a[e].Kc()},w(an,"FluentIterable/3/1",708),b(1972,1,{}),s.Ib=function(){return Lr(this.Bd().b)},w(an,"ForwardingObject",1972),b(1973,1972,V_n),s.Bd=function(){return this.Cd()},s.Jc=function(e){$i(this,e)},s.Lc=function(){return this.Oc()},s.Nc=function(){return new Fn(this,0)},s.Oc=function(){return new $n(null,this.Nc())},s.Fc=function(e){return this.Cd(),b8n()},s.Gc=function(e){return this.Cd(),w8n()},s.$b=function(){this.Cd(),g8n()},s.Hc=function(e){return this.Cd().Hc(e)},s.Ic=function(e){return this.Cd().Ic(e)},s.dc=function(){return this.Cd().b.dc()},s.Kc=function(){return this.Cd().Kc()},s.Mc=function(e){return this.Cd(),p8n()},s.gc=function(){return this.Cd().b.gc()},s.Pc=function(){return this.Cd().Pc()},s.Qc=function(e){return this.Cd().Qc(e)},w(an,"ForwardingCollection",1973),b(1980,28,QZ),s.Kc=function(){return this.Ed()},s.Fc=function(e){throw T(new ye)},s.Gc=function(e){throw T(new ye)},s.$b=function(){throw T(new ye)},s.Hc=function(e){return e!=null&&lb(this,e,!1)},s.Dd=function(){switch(this.gc()){case 0:return Y0(),Y0(),hR;case 1:return Y0(),new kD(pe(this.Ed().Pb()));default:return new xCn(this,this.Pc())}},s.Mc=function(e){throw T(new ye)},w(an,"ImmutableCollection",1980),b(712,1980,QZ,_q),s.Kc=function(){return x2(this.a.Kc())},s.Hc=function(e){return e!=null&&this.a.Hc(e)},s.Ic=function(e){return this.a.Ic(e)},s.dc=function(){return this.a.dc()},s.Ed=function(){return x2(this.a.Kc())},s.gc=function(){return this.a.gc()},s.Pc=function(){return this.a.Pc()},s.Qc=function(e){return this.a.Qc(e)},s.Ib=function(){return Lr(this.a)},w(an,"ForwardingImmutableCollection",712),b(152,1980,R6),s.Kc=function(){return this.Ed()},s.Yc=function(){return this.Fd(0)},s.Zc=function(e){return this.Fd(e)},s.ad=function(e){Lw(this,e)},s.Nc=function(){return new Fn(this,16)},s.bd=function(e,t){return this.Gd(e,t)},s.Vc=function(e,t){throw T(new ye)},s.Wc=function(e,t){throw T(new ye)},s.Fb=function(e){return _me(this,e)},s.Hb=function(){return Jbe(this)},s.Xc=function(e){return e==null?-1:h3e(this,e)},s.Ed=function(){return this.Fd(0)},s.Fd=function(e){return Yz(this,e)},s.$c=function(e){throw T(new ye)},s._c=function(e,t){throw T(new ye)},s.Gd=function(e,t){var i;return jT((i=new t7n(this),new sh(i,e,t)))};var hR;w(an,"ImmutableList",152),b(2006,152,R6),s.Kc=function(){return x2(this.Hd().Kc())},s.bd=function(e,t){return jT(this.Hd().bd(e,t))},s.Hc=function(e){return e!=null&&this.Hd().Hc(e)},s.Ic=function(e){return this.Hd().Ic(e)},s.Fb=function(e){return tt(this.Hd(),e)},s.Xb=function(e){return Z1(this,e)},s.Hb=function(){return mt(this.Hd())},s.Xc=function(e){return this.Hd().Xc(e)},s.dc=function(){return this.Hd().dc()},s.Ed=function(){return x2(this.Hd().Kc())},s.gc=function(){return this.Hd().gc()},s.Gd=function(e,t){return jT(this.Hd().bd(e,t))},s.Pc=function(){return this.Hd().Qc(x(Zn,rn,1,this.Hd().gc(),5,1))},s.Qc=function(e){return this.Hd().Qc(e)},s.Ib=function(){return Lr(this.Hd())},w(an,"ForwardingImmutableList",2006),b(714,1,M4),s.vc=function(){return jd(this)},s.wc=function(e){r6(this,e)},s.ec=function(){return AD(this)},s.yc=function(e,t,i){return $x(this,e,t,i)},s.Cc=function(){return this.Ld()},s.$b=function(){throw T(new ye)},s._b=function(e){return this.xc(e)!=null},s.uc=function(e){return this.Ld().Hc(e)},s.Jd=function(){return new Rmn(this)},s.Kd=function(){return new _mn(this)},s.Fb=function(e){return qwe(this,e)},s.Hb=function(){return jd(this).Hb()},s.dc=function(){return this.gc()==0},s.zc=function(e,t){return vie()},s.Bc=function(e){throw T(new ye)},s.Ib=function(){return y5e(this)},s.Ld=function(){return this.e?this.e:this.e=this.Kd()},s.c=null,s.d=null,s.e=null;var fzn;w(an,"ImmutableMap",714),b(715,714,M4),s._b=function(e){return h8n(this,e)},s.uc=function(e){return u7n(this.b,e)},s.Id=function(){return FDn(new fvn(this))},s.Jd=function(){return FDn(bTn(this.b))},s.Kd=function(){return xf(),new _q(dTn(this.b))},s.Fb=function(e){return s7n(this.b,e)},s.xc=function(e){return I5(this,e)},s.Hb=function(){return mt(this.b.c)},s.dc=function(){return this.b.c.dc()},s.gc=function(){return this.b.c.gc()},s.Ib=function(){return Lr(this.b.c)},w(an,"ForwardingImmutableMap",715),b(1974,1973,PL),s.Bd=function(){return this.Md()},s.Cd=function(){return this.Md()},s.Nc=function(){return new Fn(this,1)},s.Fb=function(e){return e===this||this.Md().Fb(e)},s.Hb=function(){return this.Md().Hb()},w(an,"ForwardingSet",1974),b(1069,1974,PL,fvn),s.Bd=function(){return v3(this.a.b)},s.Cd=function(){return v3(this.a.b)},s.Hc=function(e){if(I(e,42)&&u(e,42).cd()==null)return!1;try{return c7n(v3(this.a.b),e)}catch(t){if(t=jt(t),I(t,205))return!1;throw T(t)}},s.Md=function(){return v3(this.a.b)},s.Qc=function(e){var t;return t=VTn(v3(this.a.b),e),v3(this.a.b).b.gc()=0?"+":"")+(i/60|0),t=cE(j.Math.abs(i)%60),(wFn(),Tzn)[this.q.getDay()]+" "+Mzn[this.q.getMonth()]+" "+cE(this.q.getDate())+" "+cE(this.q.getHours())+":"+cE(this.q.getMinutes())+":"+cE(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var zA=w(fe,"Date",199);b(1915,199,rKn,Hxn),s.a=!1,s.b=0,s.c=0,s.d=0,s.e=0,s.f=0,s.g=!1,s.i=0,s.j=0,s.k=0,s.n=0,s.o=0,s.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",1915),b(1966,1,{}),s.fe=function(){return null},s.ge=function(){return null},s.he=function(){return null},s.ie=function(){return null},s.je=function(){return null},w(J2,"JSONValue",1966),b(216,1966,{216:1},Yl,fq),s.Fb=function(e){return I(e,216)?oX(this.a,u(e,216).a):!1},s.ee=function(){return _te},s.Hb=function(){return VW(this.a)},s.fe=function(){return this},s.Ib=function(){var e,t,i;for(i=new Ju("["),t=0,e=this.a.length;t0&&(i.a+=","),rc(i,rb(this,t));return i.a+="]",i.a},w(J2,"JSONArray",216),b(483,1966,{483:1},hq),s.ee=function(){return Kte},s.ge=function(){return this},s.Ib=function(){return qn(),""+this.a},s.a=!1;var gzn,pzn;w(J2,"JSONBoolean",483),b(985,60,Uh,L9n),w(J2,"JSONException",985),b(1023,1966,{},Xg),s.ee=function(){return Ute},s.Ib=function(){return iu};var vzn;w(J2,"JSONNull",1023),b(258,1966,{258:1},ij),s.Fb=function(e){return I(e,258)?this.a==u(e,258).a:!1},s.ee=function(){return Hte},s.Hb=function(){return r3(this.a)},s.he=function(){return this},s.Ib=function(){return this.a+""},s.a=0,w(J2,"JSONNumber",258),b(183,1966,{183:1},c2,I9),s.Fb=function(e){return I(e,183)?oX(this.a,u(e,183).a):!1},s.ee=function(){return qte},s.Hb=function(){return VW(this.a)},s.ie=function(){return this},s.Ib=function(){var e,t,i,r,c,o,f;for(f=new Ju("{"),e=!0,o=tx(this,x(tn,q,2,0,6,1)),i=o,r=0,c=i.length;r=0?":"+this.c:"")+")"},s.c=0;var Pin=w(zr,"StackTraceElement",310);ozn={3:1,475:1,35:1,2:1};var tn=w(zr,JZ,2);b(107,418,{475:1},i1,Vv,Ns),w(zr,"StringBuffer",107),b(100,418,{475:1},W1,N0,Ju),w(zr,"StringBuilder",100),b(687,73,YL,pG),w(zr,"StringIndexOutOfBoundsException",687),b(2043,1,{});var Iin;b(844,1,{},cln),s.Kb=function(e){return u(e,78).e},w(zr,"Throwable/lambda$0$Type",844),b(41,60,{3:1,102:1,60:1,78:1,41:1},ye,t1),w(zr,"UnsupportedOperationException",41),b(240,236,{3:1,35:1,236:1,240:1},J8,MG),s.wd=function(e){return VBn(this,u(e,240))},s.ke=function(){return vb(ORn(this))},s.Fb=function(e){var t;return this===e?!0:I(e,240)?(t=u(e,240),this.e==t.e&&VBn(this,t)==0):!1},s.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=eu(this.f),this.b=ge(ci(e,-1)),this.b=33*this.b+ge(ci(il(e,32),-1)),this.b=17*this.b+Ht(this.e),this.b):(this.b=17*PDn(this.c)+Ht(this.e),this.b)},s.Ib=function(){return ORn(this)},s.a=0,s.b=0,s.d=0,s.e=0,s.f=0;var jzn,Ha,Oin,Din,$in,xin,Fin,Lin,vR=w("java.math","BigDecimal",240);b(91,236,{3:1,35:1,236:1,91:1},JQ,l1,Pw,$J,D$n,el),s.wd=function(e){return A$n(this,u(e,91))},s.ke=function(){return vb(TL(this,0))},s.Fb=function(e){return IQ(this,e)},s.Hb=function(){return PDn(this)},s.Ib=function(){return TL(this,0)},s.b=-2,s.c=0,s.d=0,s.e=0;var mR,UA,Nin,kR,WA,X4,vg=w("java.math","BigInteger",91),Ezn,Czn,hp,mm;b(488,1967,i0),s.$b=function(){Eu(this)},s._b=function(e){return zu(this,e)},s.uc=function(e){return dDn(this,e,this.g)||dDn(this,e,this.f)},s.vc=function(){return new na(this)},s.xc=function(e){return te(this,e)},s.zc=function(e,t){return it(this,e,t)},s.Bc=function(e){return D2(this,e)},s.gc=function(){return Yv(this)},w(fe,"AbstractHashMap",488),b(261,wf,gu,na),s.$b=function(){this.a.$b()},s.Hc=function(e){return lAn(this,e)},s.Kc=function(){return new ya(this.a)},s.Mc=function(e){var t;return lAn(this,e)?(t=u(e,42).cd(),this.a.Bc(t),!0):!1},s.gc=function(){return this.a.gc()},w(fe,"AbstractHashMap/EntrySet",261),b(262,1,yi,ya),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return Ld(this)},s.Ob=function(){return this.b},s.Qb=function(){oPn(this)},s.b=!1,w(fe,"AbstractHashMap/EntrySetIterator",262),b(417,1,yi,Nv),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return X9(this)},s.Pb=function(){return $Tn(this)},s.Qb=function(){Uu(this)},s.b=0,s.c=-1,w(fe,"AbstractList/IteratorImpl",417),b(96,417,ah,Ii),s.Qb=function(){Uu(this)},s.Rb=function(e){U0(this,e)},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Ub=function(){return ne(this.b>0),this.a.Xb(this.c=--this.b)},s.Vb=function(){return this.b-1},s.Wb=function(e){q0(this.c!=-1),this.a._c(this.c,e)},w(fe,"AbstractList/ListIteratorImpl",96),b(219,52,S4,sh),s.Vc=function(e,t){nb(e,this.b),this.c.Vc(this.a+e,t),++this.b},s.Xb=function(e){return Ln(e,this.b),this.c.Xb(this.a+e)},s.$c=function(e){var t;return Ln(e,this.b),t=this.c.$c(this.a+e),--this.b,t},s._c=function(e,t){return Ln(e,this.b),this.c._c(this.a+e,t)},s.gc=function(){return this.b},s.a=0,s.b=0,w(fe,"AbstractList/SubList",219),b(384,wf,gu,_p),s.$b=function(){this.a.$b()},s.Hc=function(e){return this.a._b(e)},s.Kc=function(){var e;return e=this.a.vc().Kc(),new gq(e)},s.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},s.gc=function(){return this.a.gc()},w(fe,"AbstractMap/1",384),b(691,1,yi,gq),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.a.Ob()},s.Pb=function(){var e;return e=u(this.a.Pb(),42),e.cd()},s.Qb=function(){this.a.Qb()},w(fe,"AbstractMap/1/1",691),b(226,28,Mb,Mh),s.$b=function(){this.a.$b()},s.Hc=function(e){return this.a.uc(e)},s.Kc=function(){var e;return e=this.a.vc().Kc(),new x0(e)},s.gc=function(){return this.a.gc()},w(fe,"AbstractMap/2",226),b(294,1,yi,x0),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.a.Ob()},s.Pb=function(){var e;return e=u(this.a.Pb(),42),e.dd()},s.Qb=function(){this.a.Qb()},w(fe,"AbstractMap/2/1",294),b(484,1,{484:1,42:1}),s.Fb=function(e){var t;return I(e,42)?(t=u(e,42),mc(this.d,t.cd())&&mc(this.e,t.dd())):!1},s.cd=function(){return this.d},s.dd=function(){return this.e},s.Hb=function(){return Tw(this.d)^Tw(this.e)},s.ed=function(e){return vU(this,e)},s.Ib=function(){return this.d+"="+this.e},w(fe,"AbstractMap/AbstractEntry",484),b(383,484,{484:1,383:1,42:1},_j),w(fe,"AbstractMap/SimpleEntry",383),b(1984,1,tN),s.Fb=function(e){var t;return I(e,42)?(t=u(e,42),mc(this.cd(),t.cd())&&mc(this.dd(),t.dd())):!1},s.Hb=function(){return Tw(this.cd())^Tw(this.dd())},s.Ib=function(){return this.cd()+"="+this.dd()},w(fe,U_n,1984),b(1992,1967,G_n),s.tc=function(e){return mSn(this,e)},s._b=function(e){return oD(this,e)},s.vc=function(){return new yq(this)},s.xc=function(e){var t;return t=e,Xr(JV(this,t))},s.ec=function(){return new $9(this)},w(fe,"AbstractNavigableMap",1992),b(739,wf,gu,yq),s.Hc=function(e){return I(e,42)&&mSn(this.b,u(e,42))},s.Kc=function(){return new P5(this.b)},s.Mc=function(e){var t;return I(e,42)?(t=u(e,42),uPn(this.b,t)):!1},s.gc=function(){return this.b.c},w(fe,"AbstractNavigableMap/EntrySet",739),b(493,wf,VZ,$9),s.Nc=function(){return new Bj(this)},s.$b=function(){zv(this.a)},s.Hc=function(e){return oD(this.a,e)},s.Kc=function(){var e;return e=new P5(new M5(this.a).b),new x9(e)},s.Mc=function(e){return oD(this.a,e)?(q5(this.a,e),!0):!1},s.gc=function(){return this.a.c},w(fe,"AbstractNavigableMap/NavigableKeySet",493),b(494,1,yi,x9),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return X9(this.a.a)},s.Pb=function(){var e;return e=kE(this.a),e.cd()},s.Qb=function(){fEn(this.a)},w(fe,"AbstractNavigableMap/NavigableKeySet/1",494),b(2004,28,Mb),s.Fc=function(e){return A3(h4(this,e)),!0},s.Gc=function(e){return _n(e),SE(e!=this,"Can't add a queue to itself"),Vi(this,e)},s.$b=function(){for(;G$(this)!=null;);},w(fe,"AbstractQueue",2004),b(302,28,{4:1,20:1,28:1,14:1},gw,LMn),s.Fc=function(e){return gX(this,e),!0},s.$b=function(){jX(this)},s.Hc=function(e){return LOn(new H5(this),e)},s.dc=function(){return Uv(this)},s.Kc=function(){return new H5(this)},s.Mc=function(e){return tle(new H5(this),e)},s.gc=function(){return this.c-this.b&this.a.length-1},s.Nc=function(){return new Fn(this,272)},s.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.lengtht&&Mt(e,t,null),e},s.b=0,s.c=0,w(fe,"ArrayDeque",302),b(446,1,yi,H5),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.a!=this.b},s.Pb=function(){return yT(this)},s.Qb=function(){xIn(this)},s.a=0,s.b=0,s.c=-1,w(fe,"ArrayDeque/IteratorImpl",446),b(12,52,sKn,X,Oc,au),s.Vc=function(e,t){X0(this,e,t)},s.Fc=function(e){return W(this,e)},s.Wc=function(e,t){return iQ(this,e,t)},s.Gc=function(e){return Yt(this,e)},s.$b=function(){this.c=x(Zn,rn,1,0,5,1)},s.Hc=function(e){return xr(this,e,0)!=-1},s.Jc=function(e){Yc(this,e)},s.Xb=function(e){return un(this,e)},s.Xc=function(e){return xr(this,e,0)},s.dc=function(){return this.c.length==0},s.Kc=function(){return new E(this)},s.$c=function(e){return h1(this,e)},s.Mc=function(e){return Qc(this,e)},s.Ud=function(e,t){FMn(this,e,t)},s._c=function(e,t){return js(this,e,t)},s.gc=function(){return this.c.length},s.ad=function(e){bi(this,e)},s.Pc=function(){return JO(this)},s.Qc=function(e){return df(this,e)};var _Te=w(fe,"ArrayList",12);b(7,1,yi,E),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return _r(this)},s.Pb=function(){return y(this)},s.Qb=function(){B5(this)},s.a=0,s.b=-1,w(fe,"ArrayList/1",7),b(2013,j.Function,{},Lv),s.te=function(e,t){return Zt(e,t)},b(154,52,oKn,Ku),s.Hc=function(e){return LIn(this,e)!=-1},s.Jc=function(e){var t,i,r,c;for(_n(e),i=this.a,r=0,c=i.length;r>>0,e.toString(16)))},s.f=0,s.i=Vt;var YA=w(gh,"CNode",57);b(814,1,{},Jq),w(gh,"CNode/CNodeBuilder",814);var _zn;b(1525,1,{},Tln),s.Oe=function(e,t){return 0},s.Pe=function(e,t){return 0},w(gh,gKn,1525),b(1790,1,{},Mln),s.Le=function(e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;for(a=xt,r=new E(e.a.b);r.ar.d.c||r.d.c==o.d.c&&r.d.b0?e+this.n.d+this.n.a:0},s.Se=function(){var e,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].Se());else if(this.g)c=TQ(this,bF(this,null,!0));else for(t=(Ko(),A(M(Bb,1),z,232,0,[Yr,Lc,Zr])),i=0,r=t.length;i0?c+this.n.b+this.n.c:0},s.Te=function(){var e,t,i,r,c;if(this.g)for(e=bF(this,null,!1),i=(Ko(),A(M(Bb,1),z,232,0,[Yr,Lc,Zr])),r=0,c=i.length;r0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=j.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=j.Math.max(r[1],i),PX(this,Lc,t.d+e.d+r[0]-(r[1]-i)/2,r)},s.b=null,s.d=0,s.e=!1,s.f=!1,s.g=!1;var AR=0,ZA=0;w(Da,"GridContainerCell",1473),b(461,22,{3:1,35:1,22:1,461:1},lO);var Pl,Qf,To,Qzn=Ae(Da,"HorizontalLabelAlignment",461,Ie,ple,ese),Jzn;b(306,212,{212:1,306:1},tMn,fIn,ZTn),s.Re=function(){return _En(this)},s.Se=function(){return tW(this)},s.a=0,s.c=!1;var QTe=w(Da,"LabelCell",306);b(244,326,{212:1,326:1,244:1},w6),s.Re=function(){return N7(this)},s.Se=function(){return B7(this)},s.Te=function(){cL(this)},s.Ue=function(){uL(this)},s.b=0,s.c=0,s.d=!1,w(Da,"StripContainerCell",244),b(1626,1,Ve,$ln),s.Mb=function(e){return bie(u(e,212))},w(Da,"StripContainerCell/lambda$0$Type",1626),b(1627,1,{},xln),s.Fe=function(e){return u(e,212).Se()},w(Da,"StripContainerCell/lambda$1$Type",1627),b(1628,1,Ve,Fln),s.Mb=function(e){return wie(u(e,212))},w(Da,"StripContainerCell/lambda$2$Type",1628),b(1629,1,{},Lln),s.Fe=function(e){return u(e,212).Re()},w(Da,"StripContainerCell/lambda$3$Type",1629),b(462,22,{3:1,35:1,22:1,462:1},aO);var Mo,Il,Xo,Yzn=Ae(Da,"VerticalLabelAlignment",462,Ie,vle,tse),Zzn;b(789,1,{},RZ),s.c=0,s.d=0,s.k=0,s.s=0,s.t=0,s.v=!1,s.w=0,s.D=!1,w(RM,"NodeContext",789),b(1471,1,lt,Nln),s.ue=function(e,t){return tyn(u(e,61),u(t,61))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(RM,"NodeContext/0methodref$comparePortSides$Type",1471),b(1472,1,lt,Bln),s.ue=function(e,t){return Hve(u(e,111),u(t,111))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(RM,"NodeContext/1methodref$comparePortContexts$Type",1472),b(159,22,{3:1,35:1,22:1,159:1},Ts);var nUn,eUn,tUn,iUn,rUn,cUn,uUn,sUn,oUn,fUn,hUn,lUn,aUn,dUn,bUn,wUn,gUn,pUn,vUn,mUn,kUn,SR,yUn=Ae(RM,"NodeLabelLocation",159,Ie,Ux,ise),jUn;b(111,1,{111:1},FLn),s.a=!1,w(RM,"PortContext",111),b(1476,1,Yn,Rln),s.td=function(e){y8n(u(e,306))},w(lk,PKn,1476),b(1477,1,Ve,_ln),s.Mb=function(e){return!!u(e,111).c},w(lk,IKn,1477),b(1478,1,Yn,Kln),s.td=function(e){y8n(u(e,111).c)},w(lk,"LabelPlacer/lambda$2$Type",1478);var mrn;b(1475,1,Yn,qln),s.td=function(e){z0(),Xte(u(e,111))},w(lk,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),b(790,1,Yn,FU),s.td=function(e){ure(this.b,this.c,this.a,u(e,181))},s.a=!1,s.c=!1,w(lk,"NodeLabelCellCreator/lambda$0$Type",790),b(1474,1,Yn,i5n),s.td=function(e){Jte(this.a,u(e,181))},w(lk,"PortContextCreator/lambda$0$Type",1474);var nS;b(1829,1,{},Gln),w(D4,"GreedyRectangleStripOverlapRemover",1829),b(1830,1,lt,Hln),s.ue=function(e,t){return Bce(u(e,222),u(t,222))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(D4,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),b(1786,1,{},Zmn),s.a=5,s.e=0,w(D4,"RectangleStripOverlapRemover",1786),b(1787,1,lt,Uln),s.ue=function(e,t){return Rce(u(e,222),u(t,222))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(D4,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),b(1789,1,lt,Wln),s.ue=function(e,t){return fhe(u(e,222),u(t,222))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(D4,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),b(406,22,{3:1,35:1,22:1,406:1},qj);var xk,PR,IR,Fk,EUn=Ae(D4,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,Ie,pae,rse),CUn;b(222,1,{222:1},TD),w(D4,"RectangleStripOverlapRemover/RectangleNode",222),b(1788,1,Yn,r5n),s.td=function(e){d3e(this.a,u(e,222))},w(D4,"RectangleStripOverlapRemover/lambda$1$Type",1788),b(1304,1,lt,Xln),s.ue=function(e,t){return mje(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Hf,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1304),b(1307,1,{},Vln),s.Kb=function(e){return u(e,324).a},w(Hf,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1307),b(1308,1,Ve,Qln),s.Mb=function(e){return u(e,323).a},w(Hf,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1308),b(1309,1,Ve,Jln),s.Mb=function(e){return u(e,323).a},w(Hf,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1309),b(1302,1,lt,Yln),s.ue=function(e,t){return Z7e(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Hf,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1302),b(1305,1,{},zln),s.Kb=function(e){return u(e,324).a},w(Hf,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1305),b(767,1,lt,NH),s.ue=function(e,t){return ewe(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Hf,"PolyominoCompactor/MinNumOfExtensionsComparator",767),b(1300,1,lt,Zln),s.ue=function(e,t){return hbe(u(e,321),u(t,321))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Hf,"PolyominoCompactor/MinPerimeterComparator",1300),b(1301,1,lt,nan),s.ue=function(e,t){return _pe(u(e,321),u(t,321))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Hf,"PolyominoCompactor/MinPerimeterComparatorWithShape",1301),b(1303,1,lt,ean),s.ue=function(e,t){return jke(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Hf,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1303),b(1306,1,{},tan),s.Kb=function(e){return u(e,324).a},w(Hf,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1306),b(777,1,{},HG),s.Ce=function(e,t){return dae(this,u(e,46),u(t,167))},w(Hf,"SuccessorCombination",777),b(644,1,{},vI),s.Ce=function(e,t){var i;return tme((i=u(e,46),u(t,167),i))},w(Hf,"SuccessorJitter",644),b(643,1,{},mI),s.Ce=function(e,t){var i;return G8e((i=u(e,46),u(t,167),i))},w(Hf,"SuccessorLineByLine",643),b(568,1,{},Vy),s.Ce=function(e,t){var i;return i9e((i=u(e,46),u(t,167),i))},w(Hf,"SuccessorManhattan",568),b(1356,1,{},ian),s.Ce=function(e,t){var i;return b8e((i=u(e,46),u(t,167),i))},w(Hf,"SuccessorMaxNormWindingInMathPosSense",1356),b(400,1,{},qp),s.Ce=function(e,t){return IW(this,e,t)},s.c=!1,s.d=!1,s.e=!1,s.f=!1,w(Hf,"SuccessorQuadrantsGeneric",400),b(1357,1,{},ran),s.Kb=function(e){return u(e,324).a},w(Hf,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),b(323,22,{3:1,35:1,22:1,323:1},Hj),s.a=!1;var Lk,Nk,Bk,Rk,TUn=Ae(KM,gnn,323,Ie,kae,cse),MUn;b(1298,1,{}),s.Ib=function(){var e,t,i,r,c,o;for(i=" ",e=Q(0),c=0;c=0?"b"+e+"["+E$(this.a)+"]":"b["+E$(this.a)+"]"):"b_"+vd(this)},w(dk,"FBendpoint",559),b(282,134,{3:1,282:1,94:1,134:1},Ljn),s.Ib=function(){return E$(this)},w(dk,"FEdge",282),b(231,134,{3:1,231:1,94:1,134:1},SC);var YTe=w(dk,"FGraph",231);b(447,357,{3:1,447:1,357:1,94:1,134:1},RAn),s.Ib=function(){return this.b==null||this.b.length==0?"l["+E$(this.a)+"]":"l_"+this.b},w(dk,"FLabel",447),b(144,357,{3:1,144:1,357:1,94:1,134:1},VCn),s.Ib=function(){return sX(this)},s.b=0,w(dk,"FNode",144),b(2003,1,{}),s.bf=function(e){vZ(this,e)},s.cf=function(){vxn(this)},s.d=0,w(Mnn,"AbstractForceModel",2003),b(631,2003,{631:1},SOn),s.af=function(e,t){var i,r,c,o,f;return bLn(this.f,e,t),c=ki(Vr(t.d),e.d),f=j.Math.sqrt(c.a*c.a+c.b*c.b),r=j.Math.max(0,f-_5(e.e)/2-_5(t.e)/2),i=rDn(this.e,e,t),i>0?o=-uhe(r,this.c)*i:o=Yce(r,this.b)*u(k(e,(zo(),J4)),19).a,Df(c,o/f),c},s.bf=function(e){vZ(this,e),this.a=u(k(e,(zo(),uS)),19).a,this.c=K(Y(k(e,sS))),this.b=K(Y(k(e,NR)))},s.df=function(e){return e0&&(o-=hie(r,this.a)*i),Df(c,o*this.b/f),c},s.bf=function(e){var t,i,r,c,o,f,h;for(vZ(this,e),this.b=K(Y(k(e,(zo(),BR)))),this.c=this.b/u(k(e,uS),19).a,r=e.e.c.length,o=0,c=0,h=new E(e.e);h.a0},s.a=0,s.b=0,s.c=0,w(Mnn,"FruchtermanReingoldModel",632),b(849,1,Gs,f4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,GM),""),"Force Model"),"Determines the model for force calculation."),Srn),(y1(),Nt)),Prn),Cn((qo(),Xn))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ann),""),"Iterations"),"The number of iterations on the force model."),Q(300)),sc),Ui),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Snn),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Q(0)),sc),Ui),Cn(nh)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,CN),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),qf),Or),Si),Cn(Xn)))),Mi(e,CN,GM,UUn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,TN),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Or),Si),Cn(Xn)))),Mi(e,TN,GM,qUn),w_n((new h4n,e))};var _Un,KUn,Srn,HUn,qUn,GUn,zUn,UUn;w(U6,"ForceMetaDataProvider",849),b(424,22,{3:1,35:1,22:1,424:1},UG);var LR,cS,Prn=Ae(U6,"ForceModelStrategy",424,Ie,U1e,ose),WUn;b(988,1,Gs,h4n),s.Qe=function(e){w_n(e)};var XUn,VUn,Irn,uS,Orn,QUn,JUn,YUn,Drn,ZUn,$rn,xrn,nWn,J4,eWn,NR,Frn,tWn,iWn,sS,BR;w(U6,"ForceOptions",988),b(989,1,{},van),s.$e=function(){var e;return e=new Xq,e},s._e=function(e){},w(U6,"ForceOptions/ForceFactory",989);var Hk,jm,lp,oS;b(850,1,Gs,l4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Inn),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(qn(),!1)),(y1(),_i)),si),Cn((qo(),pi))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Onn),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Or),Si),pt(Xn,A(M($1,1),z,175,0,[nh]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Dnn),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Lrn),Nt),qrn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,$nn),""),"Stress Epsilon"),"Termination criterion for the iterative process."),qf),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,xnn),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Q(nt)),sc),Ui),Cn(Xn)))),ZRn((new a4n,e))};var rWn,cWn,Lrn,uWn,sWn,oWn;w(U6,"StressMetaDataProvider",850),b(992,1,Gs,a4n),s.Qe=function(e){ZRn(e)};var fS,Nrn,Brn,Rrn,_rn,Krn,fWn,hWn,lWn,aWn,Hrn,dWn;w(U6,"StressOptions",992),b(993,1,{},man),s.$e=function(){var e;return e=new Njn,e},s._e=function(e){},w(U6,"StressOptions/StressFactory",993),b(1128,209,$a,Njn),s.Ze=function(e,t){var i,r,c,o,f;for(le(t,HKn,1),on(sn(hn(e,(S7(),_rn))))?on(sn(hn(e,Hrn)))||lC((i=new F9((R0(),new F0(e))),i)):kNn(new Xq,e,jc(t,1)),c=QOn(e),r=fRn(this.a,c),f=r.Kc();f.Ob();)o=u(f.Pb(),231),!(o.e.c.length<=1)&&(pje(this.b,o),Vme(this.b),Yc(o.d,new kan));c=j_n(r),m_n(c),ce(t)},w(WM,"StressLayoutProvider",1128),b(1129,1,Yn,kan),s.td=function(e){TZ(u(e,447))},w(WM,"StressLayoutProvider/lambda$0$Type",1129),b(990,1,{},Umn),s.c=0,s.e=0,s.g=0,w(WM,"StressMajorization",990),b(379,22,{3:1,35:1,22:1,379:1},dO);var RR,_R,KR,qrn=Ae(WM,"StressMajorization/Dimension",379,Ie,kle,fse),bWn;b(991,1,lt,o5n),s.ue=function(e,t){return Rue(this.a,u(e,144),u(t,144))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(WM,"StressMajorization/lambda$0$Type",991),b(1229,1,{},YMn),w(cp,"ElkLayered",1229),b(1230,1,Yn,yan),s.td=function(e){Q6e(u(e,37))},w(cp,"ElkLayered/lambda$0$Type",1230),b(1231,1,Yn,f5n),s.td=function(e){_ue(this.a,u(e,37))},w(cp,"ElkLayered/lambda$1$Type",1231),b(1263,1,{},Cyn);var wWn,gWn,pWn;w(cp,"GraphConfigurator",1263),b(759,1,Yn,Iq),s.td=function(e){MFn(this.a,u(e,10))},w(cp,"GraphConfigurator/lambda$0$Type",759),b(760,1,{},RH),s.Kb=function(e){return jJ(),new $n(null,new Fn(u(e,29).a,16))},w(cp,"GraphConfigurator/lambda$1$Type",760),b(761,1,Yn,Oq),s.td=function(e){MFn(this.a,u(e,10))},w(cp,"GraphConfigurator/lambda$2$Type",761),b(1127,209,$a,Vmn),s.Ze=function(e,t){var i;i=Bye(new e9n,e),B(hn(e,(nn(),Wb)))===B((_h(),x1))?g2e(this.a,i,t):ame(this.a,i,t),b_n(new b4n,i)},w(cp,"LayeredLayoutProvider",1127),b(356,22,{3:1,35:1,22:1,356:1},Q9);var Jf,Ol,Hc,Mc,Ir,Grn=Ae(cp,"LayeredPhases",356,Ie,ide,hse),vWn;b(1651,1,{},NIn),s.i=0;var mWn;w(gk,"ComponentsToCGraphTransformer",1651);var kWn;b(1652,1,{},jan),s.ef=function(e,t){return j.Math.min(e.a!=null?K(e.a):e.c.i,t.a!=null?K(t.a):t.c.i)},s.ff=function(e,t){return j.Math.min(e.a!=null?K(e.a):e.c.i,t.a!=null?K(t.a):t.c.i)},w(gk,"ComponentsToCGraphTransformer/1",1652),b(81,1,{81:1}),s.i=0,s.k=!0,s.o=Vt;var HR=w(V6,"CNode",81);b(460,81,{460:1,81:1},Wz,XQ),s.Ib=function(){return""},w(gk,"ComponentsToCGraphTransformer/CRectNode",460),b(1623,1,{},Ean);var qR,GR;w(gk,"OneDimensionalComponentsCompaction",1623),b(1624,1,{},Can),s.Kb=function(e){return lle(u(e,46))},s.Fb=function(e){return this===e},w(gk,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),b(1625,1,{},Tan),s.Kb=function(e){return C2e(u(e,46))},s.Fb=function(e){return this===e},w(gk,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),b(1654,1,{},XCn),w(V6,"CGraph",1654),b(189,1,{189:1},qx),s.b=0,s.c=0,s.e=0,s.g=!0,s.i=Vt,w(V6,"CGroup",189),b(1653,1,{},Pan),s.ef=function(e,t){return j.Math.max(e.a!=null?K(e.a):e.c.i,t.a!=null?K(t.a):t.c.i)},s.ff=function(e,t){return j.Math.max(e.a!=null?K(e.a):e.c.i,t.a!=null?K(t.a):t.c.i)},w(V6,gKn,1653),b(1655,1,{},ALn),s.d=!1;var yWn,zR=w(V6,mKn,1655);b(1656,1,{},Ian),s.Kb=function(e){return $G(),qn(),u(u(e,46).a,81).d.e!=0},s.Fb=function(e){return this===e},w(V6,kKn,1656),b(823,1,{},iW),s.a=!1,s.b=!1,s.c=!1,s.d=!1,w(V6,yKn,823),b(1825,1,{},aCn),w(XM,jKn,1825);var qk=Et(Fa,bKn);b(1826,1,{369:1},qTn),s.Ke=function(e){c7e(this,u(e,466))},w(XM,EKn,1826),b(1827,1,lt,Oan),s.ue=function(e,t){return c1e(u(e,81),u(t,81))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(XM,CKn,1827),b(466,1,{466:1},XG),s.a=!1,w(XM,TKn,466),b(1828,1,lt,Dan),s.ue=function(e,t){return p4e(u(e,466),u(t,466))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(XM,MKn,1828),b(140,1,{140:1},i3,YU),s.Fb=function(e){var t;return e==null||ZTe!=Du(e)?!1:(t=u(e,140),mc(this.c,t.c)&&mc(this.d,t.d))},s.Hb=function(){return mT(A(M(Zn,1),rn,1,5,[this.c,this.d]))},s.Ib=function(){return"("+this.c+Ji+this.d+(this.a?"cx":"")+this.b+")"},s.a=!0,s.c=0,s.d=0;var ZTe=w(Fa,"Point",140);b(405,22,{3:1,35:1,22:1,405:1},Gj);var d0,Rb,kg,_b,jWn=Ae(Fa,"Point/Quadrant",405,Ie,yae,lse),EWn;b(1642,1,{},Qmn),s.b=null,s.c=null,s.d=null,s.e=null,s.f=null;var CWn,TWn,MWn,AWn,SWn;w(Fa,"RectilinearConvexHull",1642),b(574,1,{369:1},RT),s.Ke=function(e){r0e(this,u(e,140))},s.b=0;var zrn;w(Fa,"RectilinearConvexHull/MaximalElementsEventHandler",574),b(1644,1,lt,Aan),s.ue=function(e,t){return Xhe(Y(e),Y(t))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Fa,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),b(1643,1,{369:1},uIn),s.Ke=function(e){v8e(this,u(e,140))},s.a=0,s.b=null,s.c=null,s.d=null,s.e=null,w(Fa,"RectilinearConvexHull/RectangleEventHandler",1643),b(1645,1,lt,San),s.ue=function(e,t){return Jle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Fa,"RectilinearConvexHull/lambda$0$Type",1645),b(1646,1,lt,Man),s.ue=function(e,t){return Yle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Fa,"RectilinearConvexHull/lambda$1$Type",1646),b(1647,1,lt,$an),s.ue=function(e,t){return nae(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Fa,"RectilinearConvexHull/lambda$2$Type",1647),b(1648,1,lt,xan),s.ue=function(e,t){return Zle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Fa,"RectilinearConvexHull/lambda$3$Type",1648),b(1649,1,lt,Fan),s.ue=function(e,t){return t5e(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Fa,"RectilinearConvexHull/lambda$4$Type",1649),b(1650,1,{},kMn),w(Fa,"Scanline",1650),b(2005,1,{}),w(Gf,"AbstractGraphPlacer",2005),b(325,1,{325:1},ajn),s.mf=function(e){return this.nf(e)?(Tn(this.b,u(k(e,(G(),Hb)),21),e),!0):!1},s.nf=function(e){var t,i,r,c;for(t=u(k(e,(G(),Hb)),21),c=u(ct(at,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ct(this.b,i),15).dc())return!1;return!0};var at;w(Gf,"ComponentGroup",325),b(765,2005,{},Yq),s.of=function(e){var t,i;for(i=new E(this.a);i.av&&(U=0,en+=p+c,p=0),S=f.c,I6(f,U+S.a,en+S.b),No(S),i=j.Math.max(i,U+O.a),p=j.Math.max(p,O.b),U+=O.a+c;if(t.f.a=i,t.f.b=en+p,on(sn(k(o,VS)))){for(r=new yI,zZ(r,e,c),g=e.Kc();g.Ob();)d=u(g.Pb(),37),st(No(d.c),r.e);st(No(t.f),r.a)}zX(t,e)},w(Gf,"SimpleRowGraphPlacer",1291),b(1292,1,lt,Ban),s.ue=function(e,t){return nwe(u(e,37),u(t,37))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Gf,"SimpleRowGraphPlacer/1",1292);var IWn;b(1262,1,Kf,Ran),s.Lb=function(e){var t;return t=u(k(u(e,243).b,(nn(),Tr)),74),!!t&&t.b!=0},s.Fb=function(e){return this===e},s.Mb=function(e){var t;return t=u(k(u(e,243).b,(nn(),Tr)),74),!!t&&t.b!=0},w(VM,"CompoundGraphPostprocessor/1",1262),b(1261,1,Ft,t9n),s.pf=function(e,t){exn(this,u(e,37),t)},w(VM,"CompoundGraphPreprocessor",1261),b(441,1,{441:1},HDn),s.c=!1,w(VM,"CompoundGraphPreprocessor/ExternalPort",441),b(243,1,{243:1},ME),s.Ib=function(){return YO(this.c)+":"+ELn(this.b)},w(VM,"CrossHierarchyEdge",243),b(763,1,lt,Dq),s.ue=function(e,t){return q3e(this,u(e,243),u(t,243))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(VM,"CrossHierarchyEdgeComparator",763),b(299,134,{3:1,299:1,94:1,134:1}),s.p=0,w(Fc,"LGraphElement",299),b(17,299,{3:1,17:1,299:1,94:1,134:1},Sd),s.Ib=function(){return ELn(this)};var WR=w(Fc,"LEdge",17);b(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},dV),s.Jc=function(e){$i(this,e)},s.Kc=function(){return new E(this.b)},s.Ib=function(){return this.b.c.length==0?"G-unlayered"+vl(this.a):this.a.c.length==0?"G-layered"+vl(this.b):"G[layerless"+vl(this.a)+", layers"+vl(this.b)+"]"};var OWn=w(Fc,"LGraph",37),DWn;b(657,1,{}),s.qf=function(){return this.e.n},s.We=function(e){return k(this.e,e)},s.rf=function(){return this.e.o},s.sf=function(){return this.e.p},s.Xe=function(e){return li(this.e,e)},s.tf=function(e){this.e.n.a=e.a,this.e.n.b=e.b},s.uf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},s.vf=function(e){this.e.p=e},w(Fc,"LGraphAdapters/AbstractLShapeAdapter",657),b(577,1,{839:1},uj),s.wf=function(){var e,t;if(!this.b)for(this.b=th(this.a.b.c.length),t=new E(this.a.b);t.a0&&SDn((Me(t-1,e.length),e.charCodeAt(t-1)),XKn);)--t;if(o> ",e),VT(i)),De(rc((e.a+="[",e),i.i),"]")),e.a},s.c=!0,s.d=!1;var Qrn,Jrn,Yrn,Zrn,ncn,ecn,xWn=w(Fc,"LPort",11);b(397,1,dh,Gp),s.Jc=function(e){$i(this,e)},s.Kc=function(){var e;return e=new E(this.a.e),new h5n(e)},w(Fc,"LPort/1",397),b(1290,1,yi,h5n),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return u(y(this.a),17).c},s.Ob=function(){return _r(this.a)},s.Qb=function(){B5(this.a)},w(Fc,"LPort/1/1",1290),b(359,1,dh,e2),s.Jc=function(e){$i(this,e)},s.Kc=function(){var e;return e=new E(this.a.g),new $q(e)},w(Fc,"LPort/2",359),b(762,1,yi,$q),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return u(y(this.a),17).d},s.Ob=function(){return _r(this.a)},s.Qb=function(){B5(this.a)},w(Fc,"LPort/2/1",762),b(1283,1,dh,q7n),s.Jc=function(e){$i(this,e)},s.Kc=function(){return new of(this)},w(Fc,"LPort/CombineIter",1283),b(201,1,yi,of),s.Nb=function(e){Oi(this,e)},s.Qb=function(){d8n()},s.Ob=function(){return A5(this)},s.Pb=function(){return _r(this.a)?y(this.a):y(this.b)},w(Fc,"LPort/CombineIter/1",201),b(1285,1,Kf,Kan),s.Lb=function(e){return CCn(e)},s.Fb=function(e){return this===e},s.Mb=function(e){return bu(),u(e,11).e.c.length!=0},w(Fc,"LPort/lambda$0$Type",1285),b(1284,1,Kf,Han),s.Lb=function(e){return TCn(e)},s.Fb=function(e){return this===e},s.Mb=function(e){return bu(),u(e,11).g.c.length!=0},w(Fc,"LPort/lambda$1$Type",1284),b(1286,1,Kf,qan),s.Lb=function(e){return bu(),u(e,11).j==(J(),Kn)},s.Fb=function(e){return this===e},s.Mb=function(e){return bu(),u(e,11).j==(J(),Kn)},w(Fc,"LPort/lambda$2$Type",1286),b(1287,1,Kf,Gan),s.Lb=function(e){return bu(),u(e,11).j==(J(),Vn)},s.Fb=function(e){return this===e},s.Mb=function(e){return bu(),u(e,11).j==(J(),Vn)},w(Fc,"LPort/lambda$3$Type",1287),b(1288,1,Kf,zan),s.Lb=function(e){return bu(),u(e,11).j==(J(),ae)},s.Fb=function(e){return this===e},s.Mb=function(e){return bu(),u(e,11).j==(J(),ae)},w(Fc,"LPort/lambda$4$Type",1288),b(1289,1,Kf,Uan),s.Lb=function(e){return bu(),u(e,11).j==(J(),Gn)},s.Fb=function(e){return this===e},s.Mb=function(e){return bu(),u(e,11).j==(J(),Gn)},w(Fc,"LPort/lambda$5$Type",1289),b(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},Bs),s.Jc=function(e){$i(this,e)},s.Kc=function(){return new E(this.a)},s.Ib=function(){return"L_"+xr(this.b.b,this,0)+vl(this.a)},w(Fc,"Layer",29),b(1342,1,{},e9n),w(C1,YKn,1342),b(1346,1,{},Wan),s.Kb=function(e){return Pr(u(e,82))},w(C1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),b(1349,1,{},Xan),s.Kb=function(e){return Pr(u(e,82))},w(C1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),b(1343,1,Yn,l5n),s.td=function(e){NLn(this.a,u(e,118))},w(C1,ZKn,1343),b(1344,1,Yn,a5n),s.td=function(e){NLn(this.a,u(e,118))},w(C1,nHn,1344),b(1345,1,{},Van),s.Kb=function(e){return new $n(null,new Fn(qhe(u(e,79)),16))},w(C1,eHn,1345),b(1347,1,Ve,d5n),s.Mb=function(e){return Gre(this.a,u(e,33))},w(C1,tHn,1347),b(1348,1,{},Qan),s.Kb=function(e){return new $n(null,new Fn(Ghe(u(e,79)),16))},w(C1,"ElkGraphImporter/lambda$5$Type",1348),b(1350,1,Ve,b5n),s.Mb=function(e){return zre(this.a,u(e,33))},w(C1,"ElkGraphImporter/lambda$7$Type",1350),b(1351,1,Ve,Jan),s.Mb=function(e){return s1e(u(e,79))},w(C1,"ElkGraphImporter/lambda$8$Type",1351),b(1278,1,{},b4n);var FWn;w(C1,"ElkGraphLayoutTransferrer",1278),b(1279,1,Ve,w5n),s.Mb=function(e){return $ue(this.a,u(e,17))},w(C1,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),b(1280,1,Yn,g5n),s.td=function(e){U9(),W(this.a,u(e,17))},w(C1,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),b(1281,1,Ve,p5n),s.Mb=function(e){return vue(this.a,u(e,17))},w(C1,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),b(1282,1,Yn,v5n),s.td=function(e){U9(),W(this.a,u(e,17))},w(C1,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),b(1485,1,Ft,Yan),s.pf=function(e,t){kbe(u(e,37),t)},w(Un,"CommentNodeMarginCalculator",1485),b(1486,1,{},Zan),s.Kb=function(e){return new $n(null,new Fn(u(e,29).a,16))},w(Un,"CommentNodeMarginCalculator/lambda$0$Type",1486),b(1487,1,Yn,ndn),s.td=function(e){nje(u(e,10))},w(Un,"CommentNodeMarginCalculator/lambda$1$Type",1487),b(1488,1,Ft,edn),s.pf=function(e,t){d7e(u(e,37),t)},w(Un,"CommentPostprocessor",1488),b(1489,1,Ft,tdn),s.pf=function(e,t){kCe(u(e,37),t)},w(Un,"CommentPreprocessor",1489),b(1490,1,Ft,idn),s.pf=function(e,t){L9e(u(e,37),t)},w(Un,"ConstraintsPostprocessor",1490),b(1491,1,Ft,rdn),s.pf=function(e,t){qbe(u(e,37),t)},w(Un,"EdgeAndLayerConstraintEdgeReverser",1491),b(1492,1,Ft,cdn),s.pf=function(e,t){O2e(u(e,37),t)},w(Un,"EndLabelPostprocessor",1492),b(1493,1,{},udn),s.Kb=function(e){return new $n(null,new Fn(u(e,29).a,16))},w(Un,"EndLabelPostprocessor/lambda$0$Type",1493),b(1494,1,Ve,sdn),s.Mb=function(e){return T1e(u(e,10))},w(Un,"EndLabelPostprocessor/lambda$1$Type",1494),b(1495,1,Yn,odn),s.td=function(e){v4e(u(e,10))},w(Un,"EndLabelPostprocessor/lambda$2$Type",1495),b(1496,1,Ft,fdn),s.pf=function(e,t){s6e(u(e,37),t)},w(Un,"EndLabelPreprocessor",1496),b(1497,1,{},hdn),s.Kb=function(e){return new $n(null,new Fn(u(e,29).a,16))},w(Un,"EndLabelPreprocessor/lambda$0$Type",1497),b(1498,1,Yn,wEn),s.td=function(e){sre(this.a,this.b,this.c,u(e,10))},s.a=0,s.b=0,s.c=!1,w(Un,"EndLabelPreprocessor/lambda$1$Type",1498),b(1499,1,Ve,ldn),s.Mb=function(e){return B(k(u(e,70),(nn(),Zf)))===B((ff(),Cv))},w(Un,"EndLabelPreprocessor/lambda$2$Type",1499),b(1500,1,Yn,m5n),s.td=function(e){Ke(this.a,u(e,70))},w(Un,"EndLabelPreprocessor/lambda$3$Type",1500),b(1501,1,Ve,adn),s.Mb=function(e){return B(k(u(e,70),(nn(),Zf)))===B((ff(),iw))},w(Un,"EndLabelPreprocessor/lambda$4$Type",1501),b(1502,1,Yn,k5n),s.td=function(e){Ke(this.a,u(e,70))},w(Un,"EndLabelPreprocessor/lambda$5$Type",1502),b(1551,1,Ft,d4n),s.pf=function(e,t){Rge(u(e,37),t)};var LWn;w(Un,"EndLabelSorter",1551),b(1552,1,lt,ddn),s.ue=function(e,t){return wpe(u(e,456),u(t,456))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"EndLabelSorter/1",1552),b(456,1,{456:1},FTn),w(Un,"EndLabelSorter/LabelGroup",456),b(1553,1,{},bdn),s.Kb=function(e){return W9(),new $n(null,new Fn(u(e,29).a,16))},w(Un,"EndLabelSorter/lambda$0$Type",1553),b(1554,1,Ve,wdn),s.Mb=function(e){return W9(),u(e,10).k==(Qn(),ti)},w(Un,"EndLabelSorter/lambda$1$Type",1554),b(1555,1,Yn,gdn),s.td=function(e){v5e(u(e,10))},w(Un,"EndLabelSorter/lambda$2$Type",1555),b(1556,1,Ve,pdn),s.Mb=function(e){return W9(),B(k(u(e,70),(nn(),Zf)))===B((ff(),iw))},w(Un,"EndLabelSorter/lambda$3$Type",1556),b(1557,1,Ve,vdn),s.Mb=function(e){return W9(),B(k(u(e,70),(nn(),Zf)))===B((ff(),Cv))},w(Un,"EndLabelSorter/lambda$4$Type",1557),b(1503,1,Ft,mdn),s.pf=function(e,t){lje(this,u(e,37))},s.b=0,s.c=0,w(Un,"FinalSplineBendpointsCalculator",1503),b(1504,1,{},kdn),s.Kb=function(e){return new $n(null,new Fn(u(e,29).a,16))},w(Un,"FinalSplineBendpointsCalculator/lambda$0$Type",1504),b(1505,1,{},ydn),s.Kb=function(e){return new $n(null,new Ed(new re(ue(ni(u(e,10)).a.Kc(),new Mn))))},w(Un,"FinalSplineBendpointsCalculator/lambda$1$Type",1505),b(1506,1,Ve,jdn),s.Mb=function(e){return!Xi(u(e,17))},w(Un,"FinalSplineBendpointsCalculator/lambda$2$Type",1506),b(1507,1,Ve,Edn),s.Mb=function(e){return li(u(e,17),(G(),Ga))},w(Un,"FinalSplineBendpointsCalculator/lambda$3$Type",1507),b(1508,1,Yn,y5n),s.td=function(e){Cke(this.a,u(e,128))},w(Un,"FinalSplineBendpointsCalculator/lambda$4$Type",1508),b(1509,1,Yn,Cdn),s.td=function(e){IF(u(e,17).a)},w(Un,"FinalSplineBendpointsCalculator/lambda$5$Type",1509),b(792,1,Ft,xq),s.pf=function(e,t){rEe(this,u(e,37),t)},w(Un,"GraphTransformer",792),b(511,22,{3:1,35:1,22:1,511:1},WG);var VR,Gk,NWn=Ae(Un,"GraphTransformer/Mode",511,Ie,W1e,Toe),BWn;b(1510,1,Ft,Tdn),s.pf=function(e,t){x8e(u(e,37),t)},w(Un,"HierarchicalNodeResizingProcessor",1510),b(1511,1,Ft,Mdn),s.pf=function(e,t){wbe(u(e,37),t)},w(Un,"HierarchicalPortConstraintProcessor",1511),b(1512,1,lt,Adn),s.ue=function(e,t){return Mpe(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"HierarchicalPortConstraintProcessor/NodeComparator",1512),b(1513,1,Ft,Sdn),s.pf=function(e,t){Fye(u(e,37),t)},w(Un,"HierarchicalPortDummySizeProcessor",1513),b(1514,1,Ft,Pdn),s.pf=function(e,t){D7e(this,u(e,37),t)},s.a=0,w(Un,"HierarchicalPortOrthogonalEdgeRouter",1514),b(1515,1,lt,Idn),s.ue=function(e,t){return Nce(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"HierarchicalPortOrthogonalEdgeRouter/1",1515),b(1516,1,lt,Odn),s.ue=function(e,t){return Jde(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"HierarchicalPortOrthogonalEdgeRouter/2",1516),b(1517,1,Ft,Ddn),s.pf=function(e,t){i5e(u(e,37),t)},w(Un,"HierarchicalPortPositionProcessor",1517),b(1518,1,Ft,w4n),s.pf=function(e,t){YCe(this,u(e,37))},s.a=0,s.c=0;var hS,lS;w(Un,"HighDegreeNodeLayeringProcessor",1518),b(571,1,{571:1},$dn),s.b=-1,s.d=-1,w(Un,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",571),b(1519,1,{},xdn),s.Kb=function(e){return m8(),Fr(u(e,10))},s.Fb=function(e){return this===e},w(Un,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1519),b(1520,1,{},Fdn),s.Kb=function(e){return m8(),ni(u(e,10))},s.Fb=function(e){return this===e},w(Un,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1520),b(1526,1,Ft,Ldn),s.pf=function(e,t){fye(this,u(e,37),t)},w(Un,"HyperedgeDummyMerger",1526),b(793,1,{},NU),s.a=!1,s.b=!1,s.c=!1,w(Un,"HyperedgeDummyMerger/MergeState",793),b(1527,1,{},Ndn),s.Kb=function(e){return new $n(null,new Fn(u(e,29).a,16))},w(Un,"HyperedgeDummyMerger/lambda$0$Type",1527),b(1528,1,{},Bdn),s.Kb=function(e){return new $n(null,new Fn(u(e,10).j,16))},w(Un,"HyperedgeDummyMerger/lambda$1$Type",1528),b(1529,1,Yn,Rdn),s.td=function(e){u(e,11).p=-1},w(Un,"HyperedgeDummyMerger/lambda$2$Type",1529),b(1530,1,Ft,_dn),s.pf=function(e,t){sye(u(e,37),t)},w(Un,"HypernodesProcessor",1530),b(1531,1,Ft,Kdn),s.pf=function(e,t){oye(u(e,37),t)},w(Un,"InLayerConstraintProcessor",1531),b(1532,1,Ft,Hdn),s.pf=function(e,t){Bbe(u(e,37),t)},w(Un,"InnermostNodeMarginCalculator",1532),b(1533,1,Ft,qdn),s.pf=function(e,t){wCe(this,u(e,37))},s.a=Vt,s.b=Vt,s.c=xt,s.d=xt;var nMe=w(Un,"InteractiveExternalPortPositioner",1533);b(1534,1,{},Gdn),s.Kb=function(e){return u(e,17).d.i},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$0$Type",1534),b(1535,1,{},j5n),s.Kb=function(e){return _ce(this.a,Y(e))},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$1$Type",1535),b(1536,1,{},zdn),s.Kb=function(e){return u(e,17).c.i},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$2$Type",1536),b(1537,1,{},E5n),s.Kb=function(e){return Kce(this.a,Y(e))},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$3$Type",1537),b(1538,1,{},C5n),s.Kb=function(e){return Iue(this.a,Y(e))},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$4$Type",1538),b(1539,1,{},T5n),s.Kb=function(e){return Oue(this.a,Y(e))},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$5$Type",1539),b(77,22,{3:1,35:1,22:1,77:1,234:1},zt),s.Kf=function(){switch(this.g){case 15:return new awn;case 22:return new dwn;case 47:return new gwn;case 28:case 35:return new t0n;case 32:return new Yan;case 42:return new edn;case 1:return new tdn;case 41:return new idn;case 56:return new xq((R3(),Gk));case 0:return new xq((R3(),VR));case 2:return new rdn;case 54:return new cdn;case 33:return new fdn;case 51:return new mdn;case 55:return new Tdn;case 13:return new Mdn;case 38:return new Sdn;case 44:return new Pdn;case 40:return new Ddn;case 9:return new w4n;case 49:return new ejn;case 37:return new Ldn;case 43:return new _dn;case 27:return new Kdn;case 30:return new Hdn;case 3:return new qdn;case 18:return new Wdn;case 29:return new Xdn;case 5:return new g4n;case 50:return new Udn;case 34:return new p4n;case 36:return new i0n;case 52:return new d4n;case 11:return new c0n;case 7:return new m4n;case 39:return new u0n;case 45:return new s0n;case 16:return new o0n;case 10:return new f0n;case 48:return new l0n;case 21:return new a0n;case 23:return new QI((Rd(),Gm));case 8:return new b0n;case 12:return new g0n;case 4:return new p0n;case 19:return new E4n;case 17:return new A0n;case 53:return new S0n;case 6:return new _0n;case 25:return new c9n;case 46:return new $0n;case 31:return new Rjn;case 14:return new X0n;case 26:return new mwn;case 20:return new Z0n;case 24:return new QI((Rd(),wP));default:throw T(new Hn(IN+(this.f!=null?this.f:""+this.g)))}};var tcn,icn,rcn,ccn,ucn,scn,ocn,fcn,hcn,lcn,Em,aS,dS,acn,dcn,bcn,wcn,gcn,pcn,vcn,Cm,mcn,kcn,ycn,jcn,Ecn,QR,bS,wS,Ccn,gS,pS,vS,Y4,Z4,nv,Tcn,mS,kS,Mcn,yS,jS,Acn,Scn,Pcn,Icn,ES,JR,zk,CS,TS,MS,AS,Ocn,Dcn,$cn,xcn,eMe=Ae(Un,Lnn,77,Ie,PNn,Coe),RWn;b(1540,1,Ft,Wdn),s.pf=function(e,t){pCe(u(e,37),t)},w(Un,"InvertedPortProcessor",1540),b(1541,1,Ft,Xdn),s.pf=function(e,t){pke(u(e,37),t)},w(Un,"LabelAndNodeSizeProcessor",1541),b(1542,1,Ve,Vdn),s.Mb=function(e){return u(e,10).k==(Qn(),ti)},w(Un,"LabelAndNodeSizeProcessor/lambda$0$Type",1542),b(1543,1,Ve,Qdn),s.Mb=function(e){return u(e,10).k==(Qn(),Xt)},w(Un,"LabelAndNodeSizeProcessor/lambda$1$Type",1543),b(1544,1,Yn,gEn),s.td=function(e){ore(this.b,this.a,this.c,u(e,10))},s.a=!1,s.c=!1,w(Un,"LabelAndNodeSizeProcessor/lambda$2$Type",1544),b(1545,1,Ft,g4n),s.pf=function(e,t){KEe(u(e,37),t)};var _Wn;w(Un,"LabelDummyInserter",1545),b(1546,1,Kf,Jdn),s.Lb=function(e){return B(k(u(e,70),(nn(),Zf)))===B((ff(),Ev))},s.Fb=function(e){return this===e},s.Mb=function(e){return B(k(u(e,70),(nn(),Zf)))===B((ff(),Ev))},w(Un,"LabelDummyInserter/1",1546),b(1547,1,Ft,Udn),s.pf=function(e,t){qje(u(e,37),t)},w(Un,"LabelDummyRemover",1547),b(1548,1,Ve,Ydn),s.Mb=function(e){return on(sn(k(u(e,70),(nn(),R_))))},w(Un,"LabelDummyRemover/lambda$0$Type",1548),b(1359,1,Ft,p4n),s.pf=function(e,t){vEe(this,u(e,37),t)},s.a=null;var YR;w(Un,"LabelDummySwitcher",1359),b(286,1,{286:1},ABn),s.c=0,s.d=null,s.f=0,w(Un,"LabelDummySwitcher/LabelDummyInfo",286),b(1360,1,{},Zdn),s.Kb=function(e){return L2(),new $n(null,new Fn(u(e,29).a,16))},w(Un,"LabelDummySwitcher/lambda$0$Type",1360),b(1361,1,Ve,n0n),s.Mb=function(e){return L2(),u(e,10).k==(Qn(),Qu)},w(Un,"LabelDummySwitcher/lambda$1$Type",1361),b(1362,1,{},S5n),s.Kb=function(e){return mue(this.a,u(e,10))},w(Un,"LabelDummySwitcher/lambda$2$Type",1362),b(1363,1,Yn,P5n),s.td=function(e){vhe(this.a,u(e,286))},w(Un,"LabelDummySwitcher/lambda$3$Type",1363),b(1364,1,lt,e0n),s.ue=function(e,t){return Ufe(u(e,286),u(t,286))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"LabelDummySwitcher/lambda$4$Type",1364),b(791,1,Ft,t0n),s.pf=function(e,t){Pde(u(e,37),t)},w(Un,"LabelManagementProcessor",791),b(1549,1,Ft,i0n),s.pf=function(e,t){n7e(u(e,37),t)},w(Un,"LabelSideSelector",1549),b(1550,1,Ve,r0n),s.Mb=function(e){return on(sn(k(u(e,70),(nn(),R_))))},w(Un,"LabelSideSelector/lambda$0$Type",1550),b(1558,1,Ft,c0n),s.pf=function(e,t){Lye(u(e,37),t)},w(Un,"LayerConstraintPostprocessor",1558),b(1559,1,Ft,m4n),s.pf=function(e,t){Qme(u(e,37),t)};var Fcn;w(Un,"LayerConstraintPreprocessor",1559),b(360,22,{3:1,35:1,22:1,360:1},zj);var Uk,SS,PS,ZR,KWn=Ae(Un,"LayerConstraintPreprocessor/HiddenNodeConnections",360,Ie,jae,wse),HWn;b(1560,1,Ft,u0n),s.pf=function(e,t){_je(u(e,37),t)},w(Un,"LayerSizeAndGraphHeightCalculator",1560),b(1561,1,Ft,s0n),s.pf=function(e,t){q9e(u(e,37),t)},w(Un,"LongEdgeJoiner",1561),b(1562,1,Ft,o0n),s.pf=function(e,t){yje(u(e,37),t)},w(Un,"LongEdgeSplitter",1562),b(1563,1,Ft,f0n),s.pf=function(e,t){yEe(this,u(e,37),t)},s.d=0,s.e=0,s.i=0,s.j=0,s.k=0,s.n=0,w(Un,"NodePromotion",1563),b(1564,1,{},h0n),s.Kb=function(e){return u(e,46),qn(),!0},s.Fb=function(e){return this===e},w(Un,"NodePromotion/lambda$0$Type",1564),b(1565,1,{},M5n),s.Kb=function(e){return Rhe(this.a,u(e,46))},s.Fb=function(e){return this===e},s.a=0,w(Un,"NodePromotion/lambda$1$Type",1565),b(1566,1,{},A5n),s.Kb=function(e){return _he(this.a,u(e,46))},s.Fb=function(e){return this===e},s.a=0,w(Un,"NodePromotion/lambda$2$Type",1566),b(1567,1,Ft,l0n),s.pf=function(e,t){zCe(u(e,37),t)},w(Un,"NorthSouthPortPostprocessor",1567),b(1568,1,Ft,a0n),s.pf=function(e,t){ICe(u(e,37),t)},w(Un,"NorthSouthPortPreprocessor",1568),b(1569,1,lt,d0n),s.ue=function(e,t){return cwe(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"NorthSouthPortPreprocessor/lambda$0$Type",1569),b(1570,1,Ft,b0n),s.pf=function(e,t){Wke(u(e,37),t)},w(Un,"PartitionMidprocessor",1570),b(1571,1,Ve,w0n),s.Mb=function(e){return li(u(e,10),(nn(),dv))},w(Un,"PartitionMidprocessor/lambda$0$Type",1571),b(1572,1,Yn,I5n),s.td=function(e){o1e(this.a,u(e,10))},w(Un,"PartitionMidprocessor/lambda$1$Type",1572),b(1573,1,Ft,g0n),s.pf=function(e,t){f8e(u(e,37),t)},w(Un,"PartitionPostprocessor",1573),b(1574,1,Ft,p0n),s.pf=function(e,t){mme(u(e,37),t)},w(Un,"PartitionPreprocessor",1574),b(1575,1,Ve,v0n),s.Mb=function(e){return li(u(e,10),(nn(),dv))},w(Un,"PartitionPreprocessor/lambda$0$Type",1575),b(1576,1,{},m0n),s.Kb=function(e){return new $n(null,new Ed(new re(ue(ni(u(e,10)).a.Kc(),new Mn))))},w(Un,"PartitionPreprocessor/lambda$1$Type",1576),b(1577,1,Ve,k0n),s.Mb=function(e){return ape(u(e,17))},w(Un,"PartitionPreprocessor/lambda$2$Type",1577),b(1578,1,Yn,y0n),s.td=function(e){wwe(u(e,17))},w(Un,"PartitionPreprocessor/lambda$3$Type",1578),b(1579,1,Ft,E4n),s.pf=function(e,t){Oke(u(e,37),t)};var Lcn,qWn,GWn,zWn,Ncn,Bcn;w(Un,"PortListSorter",1579),b(1580,1,{},j0n),s.Kb=function(e){return Q3(),u(e,11).e},w(Un,"PortListSorter/lambda$0$Type",1580),b(1581,1,{},E0n),s.Kb=function(e){return Q3(),u(e,11).g},w(Un,"PortListSorter/lambda$1$Type",1581),b(1582,1,lt,C0n),s.ue=function(e,t){return KAn(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"PortListSorter/lambda$2$Type",1582),b(1583,1,lt,T0n),s.ue=function(e,t){return L3e(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"PortListSorter/lambda$3$Type",1583),b(1584,1,lt,M0n),s.ue=function(e,t){return QBn(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"PortListSorter/lambda$4$Type",1584),b(1585,1,Ft,A0n),s.pf=function(e,t){Gme(u(e,37),t)},w(Un,"PortSideProcessor",1585),b(1586,1,Ft,S0n),s.pf=function(e,t){z7e(u(e,37),t)},w(Un,"ReversedEdgeRestorer",1586),b(1591,1,Ft,c9n),s.pf=function(e,t){k3e(this,u(e,37),t)},w(Un,"SelfLoopPortRestorer",1591),b(1592,1,{},P0n),s.Kb=function(e){return new $n(null,new Fn(u(e,29).a,16))},w(Un,"SelfLoopPortRestorer/lambda$0$Type",1592),b(1593,1,Ve,I0n),s.Mb=function(e){return u(e,10).k==(Qn(),ti)},w(Un,"SelfLoopPortRestorer/lambda$1$Type",1593),b(1594,1,Ve,O0n),s.Mb=function(e){return li(u(e,10),(G(),hv))},w(Un,"SelfLoopPortRestorer/lambda$2$Type",1594),b(1595,1,{},D0n),s.Kb=function(e){return u(k(u(e,10),(G(),hv)),403)},w(Un,"SelfLoopPortRestorer/lambda$3$Type",1595),b(1596,1,Yn,O5n),s.td=function(e){P5e(this.a,u(e,403))},w(Un,"SelfLoopPortRestorer/lambda$4$Type",1596),b(794,1,Yn,KH),s.td=function(e){G5e(u(e,101))},w(Un,"SelfLoopPortRestorer/lambda$5$Type",794),b(1597,1,Ft,$0n),s.pf=function(e,t){Ppe(u(e,37),t)},w(Un,"SelfLoopPostProcessor",1597),b(1598,1,{},x0n),s.Kb=function(e){return new $n(null,new Fn(u(e,29).a,16))},w(Un,"SelfLoopPostProcessor/lambda$0$Type",1598),b(1599,1,Ve,F0n),s.Mb=function(e){return u(e,10).k==(Qn(),ti)},w(Un,"SelfLoopPostProcessor/lambda$1$Type",1599),b(1600,1,Ve,L0n),s.Mb=function(e){return li(u(e,10),(G(),hv))},w(Un,"SelfLoopPostProcessor/lambda$2$Type",1600),b(1601,1,Yn,N0n),s.td=function(e){L4e(u(e,10))},w(Un,"SelfLoopPostProcessor/lambda$3$Type",1601),b(1602,1,{},B0n),s.Kb=function(e){return new $n(null,new Fn(u(e,101).f,1))},w(Un,"SelfLoopPostProcessor/lambda$4$Type",1602),b(1603,1,Yn,D5n),s.td=function(e){Tae(this.a,u(e,409))},w(Un,"SelfLoopPostProcessor/lambda$5$Type",1603),b(1604,1,Ve,R0n),s.Mb=function(e){return!!u(e,101).i},w(Un,"SelfLoopPostProcessor/lambda$6$Type",1604),b(1605,1,Yn,$5n),s.td=function(e){fie(this.a,u(e,101))},w(Un,"SelfLoopPostProcessor/lambda$7$Type",1605),b(1587,1,Ft,_0n),s.pf=function(e,t){j9e(u(e,37),t)},w(Un,"SelfLoopPreProcessor",1587),b(1588,1,{},K0n),s.Kb=function(e){return new $n(null,new Fn(u(e,101).f,1))},w(Un,"SelfLoopPreProcessor/lambda$0$Type",1588),b(1589,1,{},H0n),s.Kb=function(e){return u(e,409).a},w(Un,"SelfLoopPreProcessor/lambda$1$Type",1589),b(1590,1,Yn,q0n),s.td=function(e){bce(u(e,17))},w(Un,"SelfLoopPreProcessor/lambda$2$Type",1590),b(1606,1,Ft,Rjn),s.pf=function(e,t){m5e(this,u(e,37),t)},w(Un,"SelfLoopRouter",1606),b(1607,1,{},G0n),s.Kb=function(e){return new $n(null,new Fn(u(e,29).a,16))},w(Un,"SelfLoopRouter/lambda$0$Type",1607),b(1608,1,Ve,z0n),s.Mb=function(e){return u(e,10).k==(Qn(),ti)},w(Un,"SelfLoopRouter/lambda$1$Type",1608),b(1609,1,Ve,U0n),s.Mb=function(e){return li(u(e,10),(G(),hv))},w(Un,"SelfLoopRouter/lambda$2$Type",1609),b(1610,1,{},W0n),s.Kb=function(e){return u(k(u(e,10),(G(),hv)),403)},w(Un,"SelfLoopRouter/lambda$3$Type",1610),b(1611,1,Yn,F7n),s.td=function(e){Zhe(this.a,this.b,u(e,403))},w(Un,"SelfLoopRouter/lambda$4$Type",1611),b(1612,1,Ft,X0n),s.pf=function(e,t){H8e(u(e,37),t)},w(Un,"SemiInteractiveCrossMinProcessor",1612),b(1613,1,Ve,V0n),s.Mb=function(e){return u(e,10).k==(Qn(),ti)},w(Un,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1613),b(1614,1,Ve,Q0n),s.Mb=function(e){return eCn(u(e,10))._b((nn(),Jb))},w(Un,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1614),b(1615,1,lt,J0n),s.ue=function(e,t){return pbe(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1615),b(1616,1,{},Y0n),s.Ce=function(e,t){return g1e(u(e,10),u(t,10))},w(Un,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1616),b(1618,1,Ft,Z0n),s.pf=function(e,t){Nye(u(e,37),t)},w(Un,"SortByInputModelProcessor",1618),b(1619,1,Ve,nbn),s.Mb=function(e){return u(e,11).g.c.length!=0},w(Un,"SortByInputModelProcessor/lambda$0$Type",1619),b(1620,1,Yn,x5n),s.td=function(e){V5e(this.a,u(e,11))},w(Un,"SortByInputModelProcessor/lambda$1$Type",1620),b(1693,803,{},QIn),s.Me=function(e){var t,i,r,c;switch(this.c=e,this.a.g){case 2:t=new X,Bt(gt(new $n(null,new Fn(this.c.a.b,16)),new bbn),new _7n(this,t)),F7(this,new ibn),Yc(t,new rbn),t.c=x(Zn,rn,1,0,5,1),Bt(gt(new $n(null,new Fn(this.c.a.b,16)),new cbn),new L5n(t)),F7(this,new ubn),Yc(t,new sbn),t.c=x(Zn,rn,1,0,5,1),i=myn(fOn(eC(new $n(null,new Fn(this.c.a.b,16)),new N5n(this))),new obn),Bt(new $n(null,new Fn(this.c.a.a,16)),new N7n(i,t)),F7(this,new hbn),Yc(t,new ebn),t.c=x(Zn,rn,1,0,5,1);break;case 3:r=new X,F7(this,new tbn),c=myn(fOn(eC(new $n(null,new Fn(this.c.a.b,16)),new F5n(this))),new fbn),Bt(gt(new $n(null,new Fn(this.c.a.b,16)),new lbn),new R7n(c,r)),F7(this,new abn),Yc(r,new dbn),r.c=x(Zn,rn,1,0,5,1);break;default:throw T(new Gmn)}},s.b=0,w(Qt,"EdgeAwareScanlineConstraintCalculation",1693),b(1694,1,Kf,tbn),s.Lb=function(e){return I(u(e,57).g,145)},s.Fb=function(e){return this===e},s.Mb=function(e){return I(u(e,57).g,145)},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1694),b(1695,1,{},F5n),s.Fe=function(e){return S6e(this.a,u(e,57))},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1695),b(1703,1,FM,L7n),s.Vd=function(){k6(this.a,this.b,-1)},s.b=0,w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1703),b(1705,1,Kf,ibn),s.Lb=function(e){return I(u(e,57).g,145)},s.Fb=function(e){return this===e},s.Mb=function(e){return I(u(e,57).g,145)},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1705),b(1706,1,Yn,rbn),s.td=function(e){u(e,365).Vd()},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1706),b(1707,1,Ve,cbn),s.Mb=function(e){return I(u(e,57).g,10)},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1707),b(1709,1,Yn,L5n),s.td=function(e){e2e(this.a,u(e,57))},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1709),b(1708,1,FM,G7n),s.Vd=function(){k6(this.b,this.a,-1)},s.a=0,w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1708),b(1710,1,Kf,ubn),s.Lb=function(e){return I(u(e,57).g,10)},s.Fb=function(e){return this===e},s.Mb=function(e){return I(u(e,57).g,10)},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1710),b(1711,1,Yn,sbn),s.td=function(e){u(e,365).Vd()},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1711),b(1712,1,{},N5n),s.Fe=function(e){return P6e(this.a,u(e,57))},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1712),b(1713,1,{},obn),s.De=function(){return 0},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1713),b(1696,1,{},fbn),s.De=function(){return 0},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1696),b(1715,1,Yn,N7n),s.td=function(e){Lfe(this.a,this.b,u(e,307))},s.a=0,w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1715),b(1714,1,FM,B7n),s.Vd=function(){uNn(this.a,this.b,-1)},s.b=0,w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1714),b(1716,1,Kf,hbn),s.Lb=function(e){return u(e,57),!0},s.Fb=function(e){return this===e},s.Mb=function(e){return u(e,57),!0},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1716),b(1717,1,Yn,ebn),s.td=function(e){u(e,365).Vd()},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1717),b(1697,1,Ve,lbn),s.Mb=function(e){return I(u(e,57).g,10)},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1697),b(1699,1,Yn,R7n),s.td=function(e){Nfe(this.a,this.b,u(e,57))},s.a=0,w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1699),b(1698,1,FM,z7n),s.Vd=function(){k6(this.b,this.a,-1)},s.a=0,w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1698),b(1700,1,Kf,abn),s.Lb=function(e){return u(e,57),!0},s.Fb=function(e){return this===e},s.Mb=function(e){return u(e,57),!0},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1700),b(1701,1,Yn,dbn),s.td=function(e){u(e,365).Vd()},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1701),b(1702,1,Ve,bbn),s.Mb=function(e){return I(u(e,57).g,145)},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1702),b(1704,1,Yn,_7n),s.td=function(e){x0e(this.a,this.b,u(e,57))},w(Qt,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1704),b(1521,1,Ft,ejn),s.pf=function(e,t){Sje(this,u(e,37),t)};var UWn;w(Qt,"HorizontalGraphCompactor",1521),b(1522,1,{},B5n),s.Oe=function(e,t){var i,r,c;return nV(e,t)||(i=$w(e),r=$w(t),i&&i.k==(Qn(),Xt)||r&&r.k==(Qn(),Xt))?0:(c=u(k(this.a.a,(G(),Ig)),304),Hce(c,i?i.k:(Qn(),gi),r?r.k:(Qn(),gi)))},s.Pe=function(e,t){var i,r,c;return nV(e,t)?1:(i=$w(e),r=$w(t),c=u(k(this.a.a,(G(),Ig)),304),Vz(c,i?i.k:(Qn(),gi),r?r.k:(Qn(),gi)))},w(Qt,"HorizontalGraphCompactor/1",1522),b(1523,1,{},wbn),s.Ne=function(e,t){return n5(),e.a.i==0},w(Qt,"HorizontalGraphCompactor/lambda$0$Type",1523),b(1524,1,{},R5n),s.Ne=function(e,t){return a1e(this.a,e,t)},w(Qt,"HorizontalGraphCompactor/lambda$1$Type",1524),b(1664,1,{},FPn);var WWn,XWn;w(Qt,"LGraphToCGraphTransformer",1664),b(1672,1,Ve,gbn),s.Mb=function(e){return e!=null},w(Qt,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1672),b(1665,1,{},pbn),s.Kb=function(e){return go(),Lr(k(u(u(e,57).g,10),(G(),rt)))},w(Qt,"LGraphToCGraphTransformer/lambda$0$Type",1665),b(1666,1,{},vbn),s.Kb=function(e){return go(),BDn(u(u(e,57).g,145))},w(Qt,"LGraphToCGraphTransformer/lambda$1$Type",1666),b(1675,1,Ve,mbn),s.Mb=function(e){return go(),I(u(e,57).g,10)},w(Qt,"LGraphToCGraphTransformer/lambda$10$Type",1675),b(1676,1,Yn,kbn),s.td=function(e){l1e(u(e,57))},w(Qt,"LGraphToCGraphTransformer/lambda$11$Type",1676),b(1677,1,Ve,ybn),s.Mb=function(e){return go(),I(u(e,57).g,145)},w(Qt,"LGraphToCGraphTransformer/lambda$12$Type",1677),b(1681,1,Yn,jbn),s.td=function(e){gge(u(e,57))},w(Qt,"LGraphToCGraphTransformer/lambda$13$Type",1681),b(1678,1,Yn,_5n),s.td=function(e){_re(this.a,u(e,8))},s.a=0,w(Qt,"LGraphToCGraphTransformer/lambda$14$Type",1678),b(1679,1,Yn,K5n),s.td=function(e){Hre(this.a,u(e,110))},s.a=0,w(Qt,"LGraphToCGraphTransformer/lambda$15$Type",1679),b(1680,1,Yn,H5n),s.td=function(e){Kre(this.a,u(e,8))},s.a=0,w(Qt,"LGraphToCGraphTransformer/lambda$16$Type",1680),b(1682,1,{},Ebn),s.Kb=function(e){return go(),new $n(null,new Ed(new re(ue(ni(u(e,10)).a.Kc(),new Mn))))},w(Qt,"LGraphToCGraphTransformer/lambda$17$Type",1682),b(1683,1,Ve,Cbn),s.Mb=function(e){return go(),Xi(u(e,17))},w(Qt,"LGraphToCGraphTransformer/lambda$18$Type",1683),b(1684,1,Yn,q5n),s.td=function(e){j0e(this.a,u(e,17))},w(Qt,"LGraphToCGraphTransformer/lambda$19$Type",1684),b(1668,1,Yn,G5n),s.td=function(e){tae(this.a,u(e,145))},w(Qt,"LGraphToCGraphTransformer/lambda$2$Type",1668),b(1685,1,{},Tbn),s.Kb=function(e){return go(),new $n(null,new Fn(u(e,29).a,16))},w(Qt,"LGraphToCGraphTransformer/lambda$20$Type",1685),b(1686,1,{},Mbn),s.Kb=function(e){return go(),new $n(null,new Ed(new re(ue(ni(u(e,10)).a.Kc(),new Mn))))},w(Qt,"LGraphToCGraphTransformer/lambda$21$Type",1686),b(1687,1,{},Abn),s.Kb=function(e){return go(),u(k(u(e,17),(G(),Ga)),15)},w(Qt,"LGraphToCGraphTransformer/lambda$22$Type",1687),b(1688,1,Ve,Sbn),s.Mb=function(e){return Gce(u(e,15))},w(Qt,"LGraphToCGraphTransformer/lambda$23$Type",1688),b(1689,1,Yn,z5n),s.td=function(e){m6e(this.a,u(e,15))},w(Qt,"LGraphToCGraphTransformer/lambda$24$Type",1689),b(1667,1,Yn,K7n),s.td=function(e){qae(this.a,this.b,u(e,145))},w(Qt,"LGraphToCGraphTransformer/lambda$3$Type",1667),b(1669,1,{},Pbn),s.Kb=function(e){return go(),new $n(null,new Fn(u(e,29).a,16))},w(Qt,"LGraphToCGraphTransformer/lambda$4$Type",1669),b(1670,1,{},Ibn),s.Kb=function(e){return go(),new $n(null,new Ed(new re(ue(ni(u(e,10)).a.Kc(),new Mn))))},w(Qt,"LGraphToCGraphTransformer/lambda$5$Type",1670),b(1671,1,{},Obn),s.Kb=function(e){return go(),u(k(u(e,17),(G(),Ga)),15)},w(Qt,"LGraphToCGraphTransformer/lambda$6$Type",1671),b(1673,1,Yn,U5n),s.td=function(e){J6e(this.a,u(e,15))},w(Qt,"LGraphToCGraphTransformer/lambda$8$Type",1673),b(1674,1,Yn,H7n),s.td=function(e){hce(this.a,this.b,u(e,145))},w(Qt,"LGraphToCGraphTransformer/lambda$9$Type",1674),b(1663,1,{},Dbn),s.Le=function(e){var t,i,r,c,o;for(this.a=e,this.d=new RI,this.c=x(vrn,rn,121,this.a.a.a.c.length,0,1),this.b=0,i=new E(this.a.a.a);i.a=C&&(W(o,Q(d)),O=j.Math.max(O,F[d-1]-g),h+=m,S+=F[d-1]-S,g=F[d-1],m=l[d]),m=j.Math.max(m,l[d]),++d;h+=m}v=j.Math.min(1/O,1/t.b/h),v>r&&(r=v,i=o)}return i},s.Wf=function(){return!1},w(zf,"MSDCutIndexHeuristic",802),b(1617,1,Ft,mwn),s.pf=function(e,t){Pye(u(e,37),t)},w(zf,"SingleEdgeGraphWrapper",1617),b(227,22,{3:1,35:1,22:1,227:1},s5);var Eg,iv,rv,Kb,Tm,Cg,cv=Ae(lc,"CenterEdgeLabelPlacementStrategy",227,Ie,_de,vse),uXn;b(422,22,{3:1,35:1,22:1,422:1},VG);var _cn,h_,Kcn=Ae(lc,"ConstraintCalculationStrategy",422,Ie,I1e,mse),sXn;b(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},gO),s.Kf=function(){return pLn(this)},s.Xf=function(){return pLn(this)};var Wk,dp,Hcn,qcn=Ae(lc,"CrossingMinimizationStrategy",314,Ie,jle,kse),oXn;b(337,22,{3:1,35:1,22:1,337:1},pO);var Gcn,l_,FS,zcn=Ae(lc,"CuttingStrategy",337,Ie,Ele,Ese),fXn;b(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},Y9),s.Kf=function(){return iNn(this)},s.Xf=function(){return iNn(this)};var Ucn,a_,Mm,d_,Am,Wcn=Ae(lc,"CycleBreakingStrategy",335,Ie,ade,Cse),hXn;b(419,22,{3:1,35:1,22:1,419:1},QG);var LS,Xcn,Vcn=Ae(lc,"DirectionCongruency",419,Ie,P1e,Tse),lXn;b(450,22,{3:1,35:1,22:1,450:1},vO);var uv,b_,Tg,aXn=Ae(lc,"EdgeConstraint",450,Ie,Cle,Mse),dXn;b(276,22,{3:1,35:1,22:1,276:1},o5);var w_,g_,p_,v_,NS,m_,Qcn=Ae(lc,"EdgeLabelSideSelection",276,Ie,Gde,Ase),bXn;b(479,22,{3:1,35:1,22:1,479:1},JG);var BS,Jcn,Ycn=Ae(lc,"EdgeStraighteningStrategy",479,Ie,S1e,Sse),wXn;b(274,22,{3:1,35:1,22:1,274:1},f5);var k_,Zcn,nun,RS,eun,tun,iun=Ae(lc,"FixedAlignment",274,Ie,Hde,Pse),gXn;b(275,22,{3:1,35:1,22:1,275:1},h5);var run,cun,uun,sun,Sm,oun,fun=Ae(lc,"GraphCompactionStrategy",275,Ie,Kde,Ise),pXn;b(256,22,{3:1,35:1,22:1,256:1},_0);var sv,_S,ov,Ds,Pm,KS,fv,Mg,HS,Im,y_=Ae(lc,"GraphProperties",256,Ie,Pbe,Ose),vXn;b(292,22,{3:1,35:1,22:1,292:1},mO);var Xk,j_,E_,C_=Ae(lc,"GreedySwitchType",292,Ie,Ale,Dse),mXn;b(303,22,{3:1,35:1,22:1,303:1},kO);var bp,Vk,Ag,kXn=Ae(lc,"InLayerConstraint",303,Ie,Mle,$se),yXn;b(420,22,{3:1,35:1,22:1,420:1},YG);var T_,hun,lun=Ae(lc,"InteractiveReferencePoint",420,Ie,O1e,xse),jXn,aun,wp,g0,qS,dun,bun,GS,wun,Qk,zS,Om,gp,Hb,M_,US,nc,gun,p0,Sc,A_,S_,Jk,qa,v0,pp,pun,vp,Yk,qb,Vo,Js,P_,Sg,dc,rt,vun,mun,kun,yun,jun,I_,WS,Mu,m0,O_,mp,Zk,yf,Pg,hv,Ig,Og,lv,Ga,Eun,D_,$_,kp;b(163,22,{3:1,35:1,22:1,163:1},n8);var Dm,$l,$m,Gb,ny,Cun=Ae(lc,"LayerConstraint",163,Ie,wde,Fse),EXn;b(848,1,Gs,A4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Nnn),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),xun),(y1(),Nt)),Vcn),Cn((qo(),Xn))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Bnn),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(qn(),!1)),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,QM),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),_un),Nt),lun),Cn(Xn)))),Mi(e,QM,$N,bVn),Mi(e,QM,Y6,dVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Rnn),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,_nn),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),_i),si),Cn(Xn)))),En(e,new bn(Kie(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Knn),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),_i),si),Cn(Qa)),A(M(tn,1),q,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Hnn),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),Xun),Nt),ton),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,qnn),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Q(7)),sc),Ui),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Gnn),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,znn),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,$N),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),$un),Nt),Wcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,mk),iB),"Node Layering Strategy"),"Strategy for node layering."),qun),Nt),Gsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Unn),iB),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Kun),Nt),Cun),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Wnn),iB),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),Q(-1)),sc),Ui),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Xnn),iB),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Q(-1)),sc),Ui),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,xN),dHn),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Q(4)),sc),Ui),Cn(Xn)))),Mi(e,xN,mk,yVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,FN),dHn),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Q(2)),sc),Ui),Cn(Xn)))),Mi(e,FN,mk,EVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,LN),bHn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Hun),Nt),Zsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,NN),bHn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Q(0)),sc),Ui),Cn(Xn)))),Mi(e,NN,LN,null),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,BN),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Q(nt)),sc),Ui),Cn(Xn)))),Mi(e,BN,mk,gVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Y6),kk),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),Dun),Nt),qcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Vnn),kk),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,RN),kk),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Or),Si),Cn(Xn)))),Mi(e,RN,fA,HXn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,_N),kk),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),_i),si),Cn(Xn)))),Mi(e,_N,Y6,UXn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Qnn),kk),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),Q(-1)),sc),Ui),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Jnn),kk),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Q(-1)),sc),Ui),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ynn),wHn),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Q(40)),sc),Ui),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,KN),wHn),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),Oun),Nt),C_),Cn(Xn)))),Mi(e,KN,Y6,_Xn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,JM),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),Iun),Nt),C_),Cn(Xn)))),Mi(e,JM,Y6,NXn),Mi(e,JM,fA,BXn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,lg),gHn),"Node Placement Strategy"),"Strategy for node placement."),Wun),Nt),Xsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,YM),gHn),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),_i),si),Cn(Xn)))),Mi(e,YM,lg,xVn),Mi(e,YM,lg,FVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,HN),pHn),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),Gun),Nt),Ycn),Cn(Xn)))),Mi(e,HN,lg,IVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,qN),pHn),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),zun),Nt),iun),Cn(Xn)))),Mi(e,qN,lg,DVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,GN),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Or),Si),Cn(Xn)))),Mi(e,GN,lg,NVn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,zN),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),Nt),tK),Cn(pi)))),Mi(e,zN,lg,KVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,UN),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Uun),Nt),tK),Cn(Xn)))),Mi(e,UN,lg,_Vn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Znn),vHn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Nun),Nt),con),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,nen),vHn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Bun),Nt),uon),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ZM),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Run),Nt),oon),Cn(Xn)))),Mi(e,ZM,yk,iVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,nA),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Or),Si),Cn(Xn)))),Mi(e,nA,yk,cVn),Mi(e,nA,ZM,uVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,WN),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Or),Si),Cn(Xn)))),Mi(e,WN,yk,ZXn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,een),pf),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ten),pf),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ien),pf),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ren),pf),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,cen),ben),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Q(0)),sc),Ui),Cn(nh)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,uen),ben),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Q(0)),sc),Ui),Cn(nh)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,sen),ben),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Q(0)),sc),Ui),Cn(nh)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,XN),wen),xKn),"Tries to further compact components (disconnected sub-graphs)."),!1),_i),si),Cn(Xn)))),Mi(e,XN,W6,!0),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,oen),mHn),"Post Compaction Strategy"),kHn),Mun),Nt),fun),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,fen),mHn),"Post Compaction Constraint Calculation"),kHn),Tun),Nt),Kcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,eA),gen),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,VN),gen),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Q(16)),sc),Ui),Cn(Xn)))),Mi(e,VN,eA,!0),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,QN),gen),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Q(5)),sc),Ui),Cn(Xn)))),Mi(e,QN,eA,!0),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Vh),pen),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),Jun),Nt),aon),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,tA),pen),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Or),Si),Cn(Xn)))),Mi(e,tA,Vh,nQn),Mi(e,tA,Vh,eQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,iA),pen),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Or),Si),Cn(Xn)))),Mi(e,iA,Vh,iQn),Mi(e,iA,Vh,rQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Z6),yHn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),Qun),Nt),zcn),Cn(Xn)))),Mi(e,Z6,Vh,hQn),Mi(e,Z6,Vh,lQn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,JN),yHn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Ef),Os),Cn(Xn)))),Mi(e,JN,Z6,uQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,YN),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),Vun),sc),Ui),Cn(Xn)))),Mi(e,YN,Z6,oQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,rA),jHn),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),Yun),Nt),lon),Cn(Xn)))),Mi(e,rA,Vh,EQn),Mi(e,rA,Vh,CQn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,cA),jHn),"Valid Indices for Wrapping"),null),Ef),Os),Cn(Xn)))),Mi(e,cA,Vh,kQn),Mi(e,cA,Vh,yQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,uA),ven),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),_i),si),Cn(Xn)))),Mi(e,uA,Vh,wQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,sA),ven),"Distance Penalty When Improving Cuts"),null),2),Or),Si),Cn(Xn)))),Mi(e,sA,Vh,dQn),Mi(e,sA,uA,!0),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ZN),ven),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),_i),si),Cn(Xn)))),Mi(e,ZN,Vh,pQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,hen),rB),"Edge Label Side Selection"),"Method to decide on edge label sides."),Lun),Nt),Qcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,len),rB),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Fun),Nt),cv),pt(Xn,A(M($1,1),z,175,0,[D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,oA),jk),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),Pun),Nt),eon),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,aen),jk),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),_i),si),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,nB),jk),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),Aun),Nt),Wrn),Cn(Xn)))),Mi(e,nB,W6,null),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,den),jk),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),Sun),Nt),Usn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,eB),jk),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Or),Si),Cn(Xn)))),Mi(e,eB,oA,null),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,tB),jk),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Or),Si),Cn(Xn)))),Mi(e,tB,oA,null),R_n((new I4n,e))};var CXn,TXn,MXn,Tun,AXn,Mun,SXn,Aun,PXn,IXn,OXn,Sun,DXn,$Xn,Pun,xXn,FXn,LXn,Iun,NXn,BXn,RXn,Oun,_Xn,KXn,HXn,qXn,GXn,zXn,UXn,WXn,Dun,XXn,$un,VXn,xun,QXn,Fun,JXn,Lun,YXn,ZXn,nVn,Nun,eVn,Bun,tVn,Run,iVn,rVn,cVn,uVn,sVn,oVn,fVn,hVn,lVn,aVn,_un,dVn,bVn,wVn,gVn,pVn,vVn,Kun,mVn,kVn,yVn,jVn,EVn,CVn,TVn,Hun,MVn,qun,AVn,SVn,PVn,Gun,IVn,OVn,zun,DVn,$Vn,xVn,FVn,LVn,NVn,BVn,RVn,Uun,_Vn,KVn,HVn,Wun,qVn,Xun,GVn,zVn,UVn,WVn,XVn,VVn,QVn,JVn,YVn,ZVn,nQn,eQn,tQn,iQn,rQn,cQn,uQn,sQn,Vun,oQn,fQn,Qun,hQn,lQn,aQn,dQn,bQn,wQn,gQn,pQn,vQn,Jun,mQn,kQn,yQn,jQn,Yun,EQn,CQn;w(lc,"LayeredMetaDataProvider",848),b(986,1,Gs,I4n),s.Qe=function(e){R_n(e)};var Yf,x_,XS,xm,VS,Zun,QS,yp,JS,nsn,esn,F_,xl,L_,zb,tsn,ey,N_,isn,TQn,YS,B_,Fm,Ub,MQn,ls,rsn,csn,ZS,R_,Zf,nP,Qh,usn,ssn,osn,__,K_,fsn,S1,H_,hsn,Wb,lsn,asn,dsn,eP,Xb,za,bsn,wsn,Tr,gsn,AQn,qc,tP,psn,vsn,msn,q_,ksn,iP,ysn,jsn,rP,k0,Esn,G_,Lm,Csn,y0,Nm,cP,Ua,z_,av,uP,Wa,Tsn,Msn,Asn,dv,Ssn,SQn,PQn,IQn,OQn,j0,Vb,Lt,P1,DQn,Qb,Psn,bv,Isn,Jb,$Qn,wv,Osn,jp,xQn,FQn,ty,U_,Dsn,iy,Ao,Dg,Ep,E0,Xa,sP,Yb,W_,gv,pv,C0,$g,X_,ry,Bm,Rm,V_,$sn,xsn,Fsn,Lsn,Q_,Nsn,Bsn,Rsn,_sn,J_,oP;w(lc,"LayeredOptions",986),b(987,1,{},ywn),s.$e=function(){var e;return e=new Vmn,e},s._e=function(e){},w(lc,"LayeredOptions/LayeredFactory",987),b(1372,1,{}),s.a=0;var LQn;w(ac,"ElkSpacings/AbstractSpacingsBuilder",1372),b(779,1372,{},PQ);var fP,NQn;w(lc,"LayeredSpacings/LayeredSpacingsBuilder",779),b(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},l5),s.Kf=function(){return vNn(this)},s.Xf=function(){return vNn(this)};var Y_,Ksn,Hsn,hP,Z_,qsn,Gsn=Ae(lc,"LayeringStrategy",313,Ie,qde,Lse),BQn;b(378,22,{3:1,35:1,22:1,378:1},yO);var nK,zsn,lP,Usn=Ae(lc,"LongEdgeOrderingStrategy",378,Ie,yle,Nse),RQn;b(197,22,{3:1,35:1,22:1,197:1},Wj);var xg,Fg,aP,eK,tK=Ae(lc,"NodeFlexibility",197,Ie,Sae,Bse),_Qn;b(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},Z9),s.Kf=function(){return tNn(this)},s.Xf=function(){return tNn(this)};var _m,iK,rK,Km,Wsn,Xsn=Ae(lc,"NodePlacementStrategy",315,Ie,lde,Gse),KQn;b(260,22,{3:1,35:1,22:1,260:1},l2);var Vsn,cy,Qsn,Jsn,uy,Ysn,dP,bP,Zsn=Ae(lc,"NodePromotionStrategy",260,Ie,H0e,_se),HQn;b(339,22,{3:1,35:1,22:1,339:1},jO);var non,Fl,cK,eon=Ae(lc,"OrderingStrategy",339,Ie,Ple,Kse),qQn;b(421,22,{3:1,35:1,22:1,421:1},ZG);var uK,sK,ton=Ae(lc,"PortSortingStrategy",421,Ie,D1e,Hse),GQn;b(452,22,{3:1,35:1,22:1,452:1},EO);var Au,Nc,Hm,zQn=Ae(lc,"PortType",452,Ie,Sle,Rse),UQn;b(375,22,{3:1,35:1,22:1,375:1},CO);var ion,oK,ron,con=Ae(lc,"SelfLoopDistributionStrategy",375,Ie,Ile,qse),WQn;b(376,22,{3:1,35:1,22:1,376:1},nz);var sy,fK,uon=Ae(lc,"SelfLoopOrderingStrategy",376,Ie,A1e,zse),XQn;b(304,1,{304:1},KRn),w(lc,"Spacings",304),b(336,22,{3:1,35:1,22:1,336:1},TO);var hK,son,qm,oon=Ae(lc,"SplineRoutingMode",336,Ie,Dle,Use),VQn;b(338,22,{3:1,35:1,22:1,338:1},MO);var lK,fon,hon,lon=Ae(lc,"ValidifyStrategy",338,Ie,$le,Wse),QQn;b(377,22,{3:1,35:1,22:1,377:1},AO);var Zb,aK,vv,aon=Ae(lc,"WrappingStrategy",377,Ie,Ole,Xse),JQn;b(1383,1,Tc,O4n),s.Yf=function(e){return u(e,37),YQn},s.pf=function(e,t){Eje(this,u(e,37),t)};var YQn;w(aA,"DepthFirstCycleBreaker",1383),b(782,1,Tc,dW),s.Yf=function(e){return u(e,37),ZQn},s.pf=function(e,t){yTe(this,u(e,37),t)},s.Zf=function(e){return u(un(e,qT(this.d,e.c.length)),10)};var ZQn;w(aA,"GreedyCycleBreaker",782),b(1386,782,Tc,Skn),s.Zf=function(e){var t,i,r,c;for(c=null,t=nt,r=new E(e);r.a1&&(on(sn(k(qi((Ln(0,e.c.length),u(e.c[0],10))),(nn(),zb))))?aNn(e,this.d,u(this,660)):(Pn(),bi(e,this.d)),DOn(this.e,e))},s.Sf=function(e,t,i,r){var c,o,f,h,l,a,d;for(t!=iCn(i,e.length)&&(o=e[t-(i?1:-1)],BX(this.f,o,i?(ur(),Nc):(ur(),Au))),c=e[t][0],d=!r||c.k==(Qn(),Xt),a=sf(e[t]),this.ag(a,d,!1,i),f=0,l=new E(a);l.a"),e0?s$(this.a,e[t-1],e[t]):!i&&t1&&(on(sn(k(qi((Ln(0,e.c.length),u(e.c[0],10))),(nn(),zb))))?aNn(e,this.d,this):(Pn(),bi(e,this.d)),on(sn(k(qi((Ln(0,e.c.length),u(e.c[0],10))),zb)))||DOn(this.e,e))},w(pu,"ModelOrderBarycenterHeuristic",660),b(1803,1,lt,a6n),s.ue=function(e,t){return N5e(this.a,u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(pu,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),b(1403,1,Tc,R4n),s.Yf=function(e){var t;return u(e,37),t=uE(aJn),Ze(t,(Qi(),Hc),(rr(),ES)),t},s.pf=function(e,t){j1e((u(e,37),t))};var aJn;w(pu,"NoCrossingMinimizer",1403),b(796,402,ntn,EG),s.$f=function(e,t,i){var r,c,o,f,h,l,a,d,g,p,v;switch(g=this.g,i.g){case 1:{for(c=0,o=0,d=new E(e.j);d.a1&&(c.j==(J(),Vn)?this.b[e]=!0:c.j==Gn&&e>0&&(this.b[e-1]=!0))},s.f=0,w(vh,"AllCrossingsCounter",1798),b(587,1,{},cT),s.b=0,s.d=0,w(vh,"BinaryIndexedTree",587),b(524,1,{},v8);var won,gP;w(vh,"CrossingsCounter",524),b(1906,1,lt,d6n),s.ue=function(e,t){return Tfe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(vh,"CrossingsCounter/lambda$0$Type",1906),b(1907,1,lt,b6n),s.ue=function(e,t){return Mfe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(vh,"CrossingsCounter/lambda$1$Type",1907),b(1908,1,lt,w6n),s.ue=function(e,t){return Afe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(vh,"CrossingsCounter/lambda$2$Type",1908),b(1909,1,lt,g6n),s.ue=function(e,t){return Sfe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(vh,"CrossingsCounter/lambda$3$Type",1909),b(1910,1,Yn,p6n),s.td=function(e){f0e(this.a,u(e,11))},w(vh,"CrossingsCounter/lambda$4$Type",1910),b(1911,1,Ve,v6n),s.Mb=function(e){return Ere(this.a,u(e,11))},w(vh,"CrossingsCounter/lambda$5$Type",1911),b(1912,1,Yn,m6n),s.td=function(e){Ckn(this,e)},w(vh,"CrossingsCounter/lambda$6$Type",1912),b(1913,1,Yn,Q7n),s.td=function(e){var t;l3(),fl(this.b,(t=this.a,u(e,11),t))},w(vh,"CrossingsCounter/lambda$7$Type",1913),b(826,1,Kf,XH),s.Lb=function(e){return l3(),li(u(e,11),(G(),Mu))},s.Fb=function(e){return this===e},s.Mb=function(e){return l3(),li(u(e,11),(G(),Mu))},w(vh,"CrossingsCounter/lambda$8$Type",826),b(1905,1,{},k6n),w(vh,"HyperedgeCrossingsCounter",1905),b(467,1,{35:1,467:1},_jn),s.wd=function(e){return upe(this,u(e,467))},s.b=0,s.c=0,s.e=0,s.f=0;var tMe=w(vh,"HyperedgeCrossingsCounter/Hyperedge",467);b(362,1,{35:1,362:1},iC),s.wd=function(e){return r9e(this,u(e,362))},s.b=0,s.c=0;var dJn=w(vh,"HyperedgeCrossingsCounter/HyperedgeCorner",362);b(523,22,{3:1,35:1,22:1,523:1},ez);var zm,Um,bJn=Ae(vh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,Ie,$1e,Qse),wJn;b(1405,1,Tc,P4n),s.Yf=function(e){return u(k(u(e,37),(G(),Sc)),21).Hc((or(),Ds))?gJn:null},s.pf=function(e,t){T4e(this,u(e,37),t)};var gJn;w(hr,"InteractiveNodePlacer",1405),b(1406,1,Tc,S4n),s.Yf=function(e){return u(k(u(e,37),(G(),Sc)),21).Hc((or(),Ds))?pJn:null},s.pf=function(e,t){f3e(this,u(e,37),t)};var pJn,pP,vP;w(hr,"LinearSegmentsNodePlacer",1406),b(257,1,{35:1,257:1},Zq),s.wd=function(e){return Fie(this,u(e,257))},s.Fb=function(e){var t;return I(e,257)?(t=u(e,257),this.b==t.b):!1},s.Hb=function(){return this.b},s.Ib=function(){return"ls"+vl(this.e)},s.a=0,s.b=0,s.c=-1,s.d=-1,s.g=0;var vJn=w(hr,"LinearSegmentsNodePlacer/LinearSegment",257);b(1408,1,Tc,dCn),s.Yf=function(e){return u(k(u(e,37),(G(),Sc)),21).Hc((or(),Ds))?mJn:null},s.pf=function(e,t){dTe(this,u(e,37),t)},s.b=0,s.g=0;var mJn;w(hr,"NetworkSimplexPlacer",1408),b(1427,1,lt,Swn),s.ue=function(e,t){return Uc(u(e,19).a,u(t,19).a)},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(hr,"NetworkSimplexPlacer/0methodref$compare$Type",1427),b(1429,1,lt,Pwn),s.ue=function(e,t){return Uc(u(e,19).a,u(t,19).a)},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(hr,"NetworkSimplexPlacer/1methodref$compare$Type",1429),b(649,1,{649:1},J7n);var iMe=w(hr,"NetworkSimplexPlacer/EdgeRep",649);b(401,1,{401:1},zW),s.b=!1;var rMe=w(hr,"NetworkSimplexPlacer/NodeRep",401);b(508,12,{3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1,508:1},u9n),w(hr,"NetworkSimplexPlacer/Path",508),b(1409,1,{},Iwn),s.Kb=function(e){return u(e,17).d.i.k},w(hr,"NetworkSimplexPlacer/Path/lambda$0$Type",1409),b(1410,1,Ve,Own),s.Mb=function(e){return u(e,267)==(Qn(),gi)},w(hr,"NetworkSimplexPlacer/Path/lambda$1$Type",1410),b(1411,1,{},Dwn),s.Kb=function(e){return u(e,17).d.i},w(hr,"NetworkSimplexPlacer/Path/lambda$2$Type",1411),b(1412,1,Ve,y6n),s.Mb=function(e){return Cjn(f$n(u(e,10)))},w(hr,"NetworkSimplexPlacer/Path/lambda$3$Type",1412),b(1413,1,Ve,$wn),s.Mb=function(e){return bfe(u(e,11))},w(hr,"NetworkSimplexPlacer/lambda$0$Type",1413),b(1414,1,Yn,Y7n),s.td=function(e){lce(this.a,this.b,u(e,11))},w(hr,"NetworkSimplexPlacer/lambda$1$Type",1414),b(1423,1,Yn,j6n),s.td=function(e){O6e(this.a,u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$10$Type",1423),b(1424,1,{},xwn),s.Kb=function(e){return Zu(),new $n(null,new Fn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$11$Type",1424),b(1425,1,Yn,E6n),s.td=function(e){A7e(this.a,u(e,10))},w(hr,"NetworkSimplexPlacer/lambda$12$Type",1425),b(1426,1,{},Fwn),s.Kb=function(e){return Zu(),Q(u(e,121).e)},w(hr,"NetworkSimplexPlacer/lambda$13$Type",1426),b(1428,1,{},Lwn),s.Kb=function(e){return Zu(),Q(u(e,121).e)},w(hr,"NetworkSimplexPlacer/lambda$15$Type",1428),b(1430,1,Ve,Nwn),s.Mb=function(e){return Zu(),u(e,401).c.k==(Qn(),ti)},w(hr,"NetworkSimplexPlacer/lambda$17$Type",1430),b(1431,1,Ve,Bwn),s.Mb=function(e){return Zu(),u(e,401).c.j.c.length>1},w(hr,"NetworkSimplexPlacer/lambda$18$Type",1431),b(1432,1,Yn,kTn),s.td=function(e){p2e(this.c,this.b,this.d,this.a,u(e,401))},s.c=0,s.d=0,w(hr,"NetworkSimplexPlacer/lambda$19$Type",1432),b(1415,1,{},Rwn),s.Kb=function(e){return Zu(),new $n(null,new Fn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$2$Type",1415),b(1433,1,Yn,C6n),s.td=function(e){fce(this.a,u(e,11))},s.a=0,w(hr,"NetworkSimplexPlacer/lambda$20$Type",1433),b(1434,1,{},_wn),s.Kb=function(e){return Zu(),new $n(null,new Fn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$21$Type",1434),b(1435,1,Yn,T6n),s.td=function(e){Cce(this.a,u(e,10))},w(hr,"NetworkSimplexPlacer/lambda$22$Type",1435),b(1436,1,Ve,Kwn),s.Mb=function(e){return Cjn(e)},w(hr,"NetworkSimplexPlacer/lambda$23$Type",1436),b(1437,1,{},Hwn),s.Kb=function(e){return Zu(),new $n(null,new Fn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$24$Type",1437),b(1438,1,Ve,M6n),s.Mb=function(e){return Ire(this.a,u(e,10))},w(hr,"NetworkSimplexPlacer/lambda$25$Type",1438),b(1439,1,Yn,Z7n),s.td=function(e){Z5e(this.a,this.b,u(e,10))},w(hr,"NetworkSimplexPlacer/lambda$26$Type",1439),b(1440,1,Ve,qwn),s.Mb=function(e){return Zu(),!Xi(u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$27$Type",1440),b(1441,1,Ve,Gwn),s.Mb=function(e){return Zu(),!Xi(u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$28$Type",1441),b(1442,1,{},A6n),s.Ce=function(e,t){return yce(this.a,u(e,29),u(t,29))},w(hr,"NetworkSimplexPlacer/lambda$29$Type",1442),b(1416,1,{},zwn),s.Kb=function(e){return Zu(),new $n(null,new Ed(new re(ue(ni(u(e,10)).a.Kc(),new Mn))))},w(hr,"NetworkSimplexPlacer/lambda$3$Type",1416),b(1417,1,Ve,Uwn),s.Mb=function(e){return Zu(),oae(u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$4$Type",1417),b(1418,1,Yn,S6n),s.td=function(e){Mye(this.a,u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$5$Type",1418),b(1419,1,{},Wwn),s.Kb=function(e){return Zu(),new $n(null,new Fn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$6$Type",1419),b(1420,1,Ve,Xwn),s.Mb=function(e){return Zu(),u(e,10).k==(Qn(),ti)},w(hr,"NetworkSimplexPlacer/lambda$7$Type",1420),b(1421,1,{},Vwn),s.Kb=function(e){return Zu(),new $n(null,new Ed(new re(ue(Kh(u(e,10)).a.Kc(),new Mn))))},w(hr,"NetworkSimplexPlacer/lambda$8$Type",1421),b(1422,1,Ve,Qwn),s.Mb=function(e){return Zu(),ofe(u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$9$Type",1422),b(1404,1,Tc,z4n),s.Yf=function(e){return u(k(u(e,37),(G(),Sc)),21).Hc((or(),Ds))?kJn:null},s.pf=function(e,t){sje(u(e,37),t)};var kJn;w(hr,"SimpleNodePlacer",1404),b(180,1,{180:1},tg),s.Ib=function(){var e;return e="",this.c==(Lf(),T0)?e+=np:this.c==I1&&(e+=Z2),this.o==(rf(),Va)?e+=dN:this.o==jf?e+="UP":e+="BALANCED",e},w(Ml,"BKAlignedLayout",180),b(516,22,{3:1,35:1,22:1,516:1},iz);var I1,T0,yJn=Ae(Ml,"BKAlignedLayout/HDirection",516,Ie,F1e,Jse),jJn;b(515,22,{3:1,35:1,22:1,515:1},tz);var Va,jf,EJn=Ae(Ml,"BKAlignedLayout/VDirection",515,Ie,L1e,Yse),CJn;b(1634,1,{},nkn),w(Ml,"BKAligner",1634),b(1637,1,{},$xn),w(Ml,"BKCompactor",1637),b(654,1,{654:1},Jwn),s.a=0,w(Ml,"BKCompactor/ClassEdge",654),b(458,1,{458:1},r9n),s.a=null,s.b=0,w(Ml,"BKCompactor/ClassNode",458),b(1407,1,Tc,Mkn),s.Yf=function(e){return u(k(u(e,37),(G(),Sc)),21).Hc((or(),Ds))?TJn:null},s.pf=function(e,t){STe(this,u(e,37),t)},s.d=!1;var TJn;w(Ml,"BKNodePlacer",1407),b(1635,1,{},Ywn),s.d=0,w(Ml,"NeighborhoodInformation",1635),b(1636,1,lt,P6n),s.ue=function(e,t){return F0e(this,u(e,46),u(t,46))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Ml,"NeighborhoodInformation/NeighborComparator",1636),b(808,1,{}),w(Ml,"ThresholdStrategy",808),b(1763,808,{},f9n),s.bg=function(e,t,i){return this.a.o==(rf(),jf)?xt:Vt},s.cg=function(){},w(Ml,"ThresholdStrategy/NullThresholdStrategy",1763),b(579,1,{579:1},ekn),s.c=!1,s.d=!1,w(Ml,"ThresholdStrategy/Postprocessable",579),b(1764,808,{},h9n),s.bg=function(e,t,i){var r,c,o;return c=t==i,r=this.a.a[i.p]==t,c||r?(o=e,this.a.c==(Lf(),T0)?(c&&(o=dL(this,t,!0)),!isNaN(o)&&!isFinite(o)&&r&&(o=dL(this,i,!1))):(c&&(o=dL(this,t,!0)),!isNaN(o)&&!isFinite(o)&&r&&(o=dL(this,i,!1))),o):e},s.cg=function(){for(var e,t,i,r,c;this.d.b!=0;)c=u(Y1e(this.d),579),r=nRn(this,c),r.a&&(e=r.a,i=on(this.a.f[this.a.g[c.b.p].p]),!(!i&&!Xi(e)&&e.c.i.c==e.d.i.c)&&(t=sNn(this,c),t||Bre(this.e,c)));for(;this.e.a.c.length!=0;)sNn(this,u(pDn(this.e),579))},w(Ml,"ThresholdStrategy/SimpleThresholdStrategy",1764),b(635,1,{635:1,246:1,234:1},Zwn),s.Kf=function(){return AOn(this)},s.Xf=function(){return AOn(this)};var dK;w(fB,"EdgeRouterFactory",635),b(1458,1,Tc,U4n),s.Yf=function(e){return u7e(u(e,37))},s.pf=function(e,t){bje(u(e,37),t)};var MJn,AJn,SJn,PJn,IJn,gon,OJn,DJn;w(fB,"OrthogonalEdgeRouter",1458),b(1451,1,Tc,Akn),s.Yf=function(e){return I4e(u(e,37))},s.pf=function(e,t){xCe(this,u(e,37),t)};var $Jn,xJn,FJn,LJn,fy,NJn;w(fB,"PolylineEdgeRouter",1451),b(1452,1,Kf,ngn),s.Lb=function(e){return DV(u(e,10))},s.Fb=function(e){return this===e},s.Mb=function(e){return DV(u(e,10))},w(fB,"PolylineEdgeRouter/1",1452),b(1809,1,Ve,egn),s.Mb=function(e){return u(e,129).c==(Bo(),Ll)},w(Uo,"HyperEdgeCycleDetector/lambda$0$Type",1809),b(1810,1,{},tgn),s.Ge=function(e){return u(e,129).d},w(Uo,"HyperEdgeCycleDetector/lambda$1$Type",1810),b(1811,1,Ve,ign),s.Mb=function(e){return u(e,129).c==(Bo(),Ll)},w(Uo,"HyperEdgeCycleDetector/lambda$2$Type",1811),b(1812,1,{},rgn),s.Ge=function(e){return u(e,129).d},w(Uo,"HyperEdgeCycleDetector/lambda$3$Type",1812),b(1813,1,{},cgn),s.Ge=function(e){return u(e,129).d},w(Uo,"HyperEdgeCycleDetector/lambda$4$Type",1813),b(1814,1,{},ugn),s.Ge=function(e){return u(e,129).d},w(Uo,"HyperEdgeCycleDetector/lambda$5$Type",1814),b(112,1,{35:1,112:1},r7),s.wd=function(e){return Lie(this,u(e,112))},s.Fb=function(e){var t;return I(e,112)?(t=u(e,112),this.g==t.g):!1},s.Hb=function(){return this.g},s.Ib=function(){var e,t,i,r;for(e=new Ju("{"),r=new E(this.n);r.a"+this.b+" ("+Wce(this.c)+")"},s.d=0,w(Uo,"HyperEdgeSegmentDependency",129),b(520,22,{3:1,35:1,22:1,520:1},rz);var Ll,nw,BJn=Ae(Uo,"HyperEdgeSegmentDependency/DependencyType",520,Ie,x1e,Zse),RJn;b(1815,1,{},I6n),w(Uo,"HyperEdgeSegmentSplitter",1815),b(1816,1,{},s8n),s.a=0,s.b=0,w(Uo,"HyperEdgeSegmentSplitter/AreaRating",1816),b(329,1,{329:1},dD),s.a=0,s.b=0,s.c=0,w(Uo,"HyperEdgeSegmentSplitter/FreeArea",329),b(1817,1,lt,bgn),s.ue=function(e,t){return que(u(e,112),u(t,112))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Uo,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),b(1818,1,Yn,yTn),s.td=function(e){Xae(this.a,this.d,this.c,this.b,u(e,112))},s.b=0,w(Uo,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),b(1819,1,{},wgn),s.Kb=function(e){return new $n(null,new Fn(u(e,112).e,16))},w(Uo,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),b(1820,1,{},ggn),s.Kb=function(e){return new $n(null,new Fn(u(e,112).j,16))},w(Uo,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),b(1821,1,{},pgn),s.Fe=function(e){return K(Y(e))},w(Uo,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),b(655,1,{},ND),s.a=0,s.b=0,s.c=0,w(Uo,"OrthogonalRoutingGenerator",655),b(1638,1,{},vgn),s.Kb=function(e){return new $n(null,new Fn(u(e,112).e,16))},w(Uo,"OrthogonalRoutingGenerator/lambda$0$Type",1638),b(1639,1,{},mgn),s.Kb=function(e){return new $n(null,new Fn(u(e,112).j,16))},w(Uo,"OrthogonalRoutingGenerator/lambda$1$Type",1639),b(661,1,{}),w(hB,"BaseRoutingDirectionStrategy",661),b(1807,661,{},l9n),s.dg=function(e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new E(e.n);a.aqf&&(o=d,c=e,r=new fn(g,o),Ke(f.a,r),Zd(this,f,c,r,!1),p=e.r,p&&(v=K(Y(Go(p.e,0))),r=new fn(v,o),Ke(f.a,r),Zd(this,f,c,r,!1),o=t+p.o*i,c=p,r=new fn(v,o),Ke(f.a,r),Zd(this,f,c,r,!1)),r=new fn(C,o),Ke(f.a,r),Zd(this,f,c,r,!1)))},s.eg=function(e){return e.i.n.a+e.n.a+e.a.a},s.fg=function(){return J(),ae},s.gg=function(){return J(),Kn},w(hB,"NorthToSouthRoutingStrategy",1807),b(1808,661,{},a9n),s.dg=function(e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C;if(!(e.r&&!e.q))for(d=t-e.o*i,a=new E(e.n);a.aqf&&(o=d,c=e,r=new fn(g,o),Ke(f.a,r),Zd(this,f,c,r,!1),p=e.r,p&&(v=K(Y(Go(p.e,0))),r=new fn(v,o),Ke(f.a,r),Zd(this,f,c,r,!1),o=t-p.o*i,c=p,r=new fn(v,o),Ke(f.a,r),Zd(this,f,c,r,!1)),r=new fn(C,o),Ke(f.a,r),Zd(this,f,c,r,!1)))},s.eg=function(e){return e.i.n.a+e.n.a+e.a.a},s.fg=function(){return J(),Kn},s.gg=function(){return J(),ae},w(hB,"SouthToNorthRoutingStrategy",1808),b(1806,661,{},d9n),s.dg=function(e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new E(e.n);a.aqf&&(o=d,c=e,r=new fn(o,g),Ke(f.a,r),Zd(this,f,c,r,!0),p=e.r,p&&(v=K(Y(Go(p.e,0))),r=new fn(o,v),Ke(f.a,r),Zd(this,f,c,r,!0),o=t+p.o*i,c=p,r=new fn(o,v),Ke(f.a,r),Zd(this,f,c,r,!0)),r=new fn(o,C),Ke(f.a,r),Zd(this,f,c,r,!0)))},s.eg=function(e){return e.i.n.b+e.n.b+e.a.b},s.fg=function(){return J(),Vn},s.gg=function(){return J(),Gn},w(hB,"WestToEastRoutingStrategy",1806),b(813,1,{},CZ),s.Ib=function(){return vl(this.a)},s.b=0,s.c=!1,s.d=!1,s.f=0,w(Db,"NubSpline",813),b(407,1,{407:1},LNn,eMn),w(Db,"NubSpline/PolarCP",407),b(1453,1,Tc,Txn),s.Yf=function(e){return mve(u(e,37))},s.pf=function(e,t){ZCe(this,u(e,37),t)};var _Jn,KJn,HJn,qJn,GJn;w(Db,"SplineEdgeRouter",1453),b(268,1,{268:1},PC),s.Ib=function(){return this.a+" ->("+this.c+") "+this.b},s.c=0,w(Db,"SplineEdgeRouter/Dependency",268),b(455,22,{3:1,35:1,22:1,455:1},cz);var Nl,Lg,zJn=Ae(Db,"SplineEdgeRouter/SideToProcess",455,Ie,N1e,noe),UJn;b(1454,1,Ve,agn),s.Mb=function(e){return S6(),!u(e,128).o},w(Db,"SplineEdgeRouter/lambda$0$Type",1454),b(1455,1,{},lgn),s.Ge=function(e){return S6(),u(e,128).v+1},w(Db,"SplineEdgeRouter/lambda$1$Type",1455),b(1456,1,Yn,tkn),s.td=function(e){hfe(this.a,this.b,u(e,46))},w(Db,"SplineEdgeRouter/lambda$2$Type",1456),b(1457,1,Yn,ikn),s.td=function(e){lfe(this.a,this.b,u(e,46))},w(Db,"SplineEdgeRouter/lambda$3$Type",1457),b(128,1,{35:1,128:1},ZFn,IZ),s.wd=function(e){return Nie(this,u(e,128))},s.b=0,s.e=!1,s.f=0,s.g=0,s.j=!1,s.k=!1,s.n=0,s.o=!1,s.p=!1,s.q=!1,s.s=0,s.u=0,s.v=0,s.F=0,w(Db,"SplineSegment",128),b(459,1,{459:1},dgn),s.a=0,s.b=!1,s.c=!1,s.d=!1,s.e=!1,s.f=0,w(Db,"SplineSegment/EdgeInformation",459),b(1234,1,{},sgn),w(nm,Tnn,1234),b(1235,1,lt,ogn),s.ue=function(e,t){return W6e(u(e,135),u(t,135))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(nm,NKn,1235),b(1233,1,{},E8n),w(nm,"MrTree",1233),b(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},Xj),s.Kf=function(){return CLn(this)},s.Xf=function(){return CLn(this)};var mP,Wm,hy,Xm,pon=Ae(nm,"TreeLayoutPhases",393,Ie,Pae,eoe),WJn;b(1130,209,$a,qjn),s.Ze=function(e,t){var i,r,c,o,f,h,l;for(on(sn(hn(e,(Yd(),Eon))))||lC((i=new F9((R0(),new F0(e))),i)),f=(h=new IC,Sr(h,e),H(h,(cc(),Jm),e),l=new we,Bke(e,h,l),eye(e,h,l),h),o=Xke(this.a,f),c=new E(o);c.a"+vC(this.c):"e_"+mt(this)},w(em,"TEdge",188),b(135,134,{3:1,135:1,94:1,134:1},IC),s.Ib=function(){var e,t,i,r,c;for(c=null,r=_e(this.b,0);r.b!=r.d.c;)i=u(Re(r),86),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+` +`;for(t=_e(this.a,0);t.b!=t.d.c;)e=u(Re(t),188),c+=(e.b&&e.c?vC(e.b)+"->"+vC(e.c):"e_"+mt(e))+` +`;return c};var cMe=w(em,"TGraph",135);b(633,502,{3:1,502:1,633:1,94:1,134:1}),w(em,"TShape",633),b(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},dx),s.Ib=function(){return vC(this)};var uMe=w(em,"TNode",86);b(255,1,dh,U1),s.Jc=function(e){$i(this,e)},s.Kc=function(){var e;return e=_e(this.a.d,0),new t2(e)},w(em,"TNode/2",255),b(358,1,yi,t2),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return u(Re(this.a),188).c},s.Ob=function(){return Cj(this.a)},s.Qb=function(){zC(this.a)},w(em,"TNode/2/1",358),b(1840,1,Ft,Hjn),s.pf=function(e,t){pye(this,u(e,135),t)},w(sp,"FanProcessor",1840),b(327,22,{3:1,35:1,22:1,327:1,234:1},a5),s.Kf=function(){switch(this.g){case 0:return new S9n;case 1:return new Hjn;case 2:return new jgn;case 3:return new kgn;case 4:return new Cgn;case 5:return new Tgn;default:throw T(new Hn(IN+(this.f!=null?this.f:""+this.g)))}};var bK,wK,gK,pK,vK,kP,XJn=Ae(sp,Lnn,327,Ie,zde,toe),VJn;b(1843,1,Ft,kgn),s.pf=function(e,t){Zme(this,u(e,135),t)},s.a=0,w(sp,"LevelHeightProcessor",1843),b(1844,1,dh,ygn),s.Jc=function(e){$i(this,e)},s.Kc=function(){return Pn(),n3(),V4},w(sp,"LevelHeightProcessor/1",1844),b(1841,1,Ft,jgn),s.pf=function(e,t){u6e(this,u(e,135),t)},s.a=0,w(sp,"NeighborsProcessor",1841),b(1842,1,dh,Egn),s.Jc=function(e){$i(this,e)},s.Kc=function(){return Pn(),n3(),V4},w(sp,"NeighborsProcessor/1",1842),b(1845,1,Ft,Cgn),s.pf=function(e,t){Yme(this,u(e,135),t)},s.a=0,w(sp,"NodePositionProcessor",1845),b(1839,1,Ft,S9n),s.pf=function(e,t){Cje(this,u(e,135))},w(sp,"RootProcessor",1839),b(1846,1,Ft,Tgn),s.pf=function(e,t){$ge(u(e,135))},w(sp,"Untreeifyer",1846);var ly,Vm,QJn,mK,yP,Qm,kK,jP,EP,mv,Jm,CP,O1,von,JJn,yK,ew,jK,mon;b(851,1,Gs,G4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,etn),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),yon),(y1(),Nt)),Son),Cn((qo(),Xn))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ttn),""),"Search Order"),"Which search order to use when computing a spanning tree."),kon),Nt),Ion),Cn(Xn)))),QRn((new q4n,e))};var YJn,kon,ZJn,yon;w(bA,"MrTreeMetaDataProvider",851),b(994,1,Gs,q4n),s.Qe=function(e){QRn(e)};var nYn,jon,eYn,tYn,iYn,rYn,Eon,cYn,Con,uYn,TP,Ton,sYn,Mon,oYn;w(bA,"MrTreeOptions",994),b(995,1,{},Mgn),s.$e=function(){var e;return e=new qjn,e},s._e=function(e){},w(bA,"MrTreeOptions/MrtreeFactory",995),b(480,22,{3:1,35:1,22:1,480:1},uz);var EK,Aon,Son=Ae(bA,"OrderWeighting",480,Ie,R1e,ioe),fYn;b(425,22,{3:1,35:1,22:1,425:1},sz);var Pon,CK,Ion=Ae(bA,"TreeifyingOrder",425,Ie,B1e,coe),hYn;b(1459,1,Tc,x4n),s.Yf=function(e){return u(e,135),lYn},s.pf=function(e,t){Dbe(this,u(e,135),t)};var lYn;w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),b(1460,1,Tc,F4n),s.Yf=function(e){return u(e,135),aYn},s.pf=function(e,t){g6e(this,u(e,135),t)};var aYn;w("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),b(1461,1,Tc,$4n),s.Yf=function(e){return u(e,135),dYn},s.pf=function(e,t){$7e(this,u(e,135),t)},s.a=0;var dYn;w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),b(1462,1,Tc,L4n),s.Yf=function(e){return u(e,135),bYn},s.pf=function(e,t){c4e(u(e,135),t)};var bYn;w("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var Ym;b(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},oz),s.Kf=function(){return t$n(this)},s.Xf=function(){return t$n(this)};var MP,kv,Oon=Ae(itn,"RadialLayoutPhases",495,Ie,_1e,roe),wYn;b(1131,209,$a,j8n),s.Ze=function(e,t){var i,r,c,o,f,h;if(i=cLn(this,e),le(t,"Radial layout",i.c.length),on(sn(hn(e,(bb(),Kon))))||lC((r=new F9((R0(),new F0(e))),r)),h=jve(e),gr(e,(S5(),Ym),h),!h)throw T(new Hn("The given graph is not a tree!"));for(c=K(Y(hn(e,PP))),c==0&&(c=mLn(e)),gr(e,PP,c),f=new E(cLn(this,e));f.a0&&ADn((Me(t-1,e.length),e.charCodeAt(t-1)),XKn);)--t;if(r>=t)throw T(new Hn("The given string does not contain any numbers."));if(c=Eb(e.substr(r,t-r),`,|;|\r| +`),c.length!=2)throw T(new Hn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=vb(pb(c[0])),this.b=vb(pb(c[1]))}catch(o){throw o=jt(o),I(o,127)?(i=o,T(new Hn(VKn+i))):T(o)}},s.Ib=function(){return"("+this.a+","+this.b+")"},s.a=0,s.b=0;var ai=w(pk,"KVector",8);b(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},fu,jj,ljn),s.Pc=function(){return zwe(this)},s.Jf=function(e){var t,i,r,c,o,f;r=Eb(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),Rs(this);try{for(i=0,o=0,c=0,f=0;i0&&(o%2==0?c=vb(r[i]):f=vb(r[i]),o>0&&o%2!=0&&Ke(this,new fn(c,f)),++o),++i}catch(h){throw h=jt(h),I(h,127)?(t=h,T(new Hn("The given string does not match the expected format for vectors."+t))):T(h)}},s.Ib=function(){var e,t,i;for(e=new Ju("("),t=_e(this,0);t.b!=t.d.c;)i=u(Re(t),8),De(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var _fn=w(pk,"KVectorChain",74);b(248,22,{3:1,35:1,22:1,248:1},d5);var zK,LP,NP,wy,gy,BP,Kfn=Ae(Us,"Alignment",248,Ie,Rde,joe),xZn;b(979,1,Gs,Q4n),s.Qe=function(e){zBn(e)};var Hfn,UK,FZn,qfn,Gfn,LZn,zfn,NZn,BZn,Ufn,Wfn,RZn;w(Us,"BoxLayouterOptions",979),b(980,1,{},m2n),s.$e=function(){var e;return e=new A2n,e},s._e=function(e){},w(Us,"BoxLayouterOptions/BoxFactory",980),b(291,22,{3:1,35:1,22:1,291:1},b5);var py,WK,vy,my,ky,XK,VK=Ae(Us,"ContentAlignment",291,Ie,Bde,Eoe),_Zn;b(684,1,Gs,tq),s.Qe=function(e){En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,GHn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(y1(),yv)),tn),Cn((qo(),Xn))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,zHn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Ef),fMe),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,$en),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Xfn),Nt),Kfn),Cn(pi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,tp),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Atn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Ef),_fn),Cn(nh)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,hA),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Qfn),Tp),VK),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ek),""),"Debug Mode"),"Whether additional debug information shall be generated."),(qn(),!1)),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Len),""),gnn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Jfn),Nt),c9),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,yk),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),nhn),Nt),oH),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,gA),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,fA),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),rhn),Nt),qhn),pt(Xn,A(M($1,1),z,175,0,[pi]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,c0),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),bhn),Ef),Vrn),pt(Xn,A(M($1,1),z,175,0,[pi]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,wk),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,oB),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,X6),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,AN),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),mhn),Nt),Uhn),Cn(pi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,lA),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Ef),ai),pt(pi,A(M($1,1),z,175,0,[Qa,D1]))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,bk),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),sc),Ui),pt(pi,A(M($1,1),z,175,0,[nh]))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,zM),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),sc),Ui),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,W6),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,zen),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),uhn),Ef),_fn),Cn(nh)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Xen),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),_i),si),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ven),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),_i),si),Cn(pi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,NTe),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Ef),bMe),pt(Xn,A(M($1,1),z,175,0,[D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Jen),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),shn),Ef),Xrn),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Oen),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),_i),si),pt(pi,A(M($1,1),z,175,0,[nh,Qa,D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,UHn),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Or),Si),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,WHn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,XHn),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Q(100)),sc),Ui),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,VHn),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,QHn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Q(4e3)),sc),Ui),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,JHn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Q(400)),sc),Ui),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,YHn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ZHn),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,nqn),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,eqn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Mtn),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Vfn),Nt),Yhn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,men),pf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ken),pf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,yN),pf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,yen),pf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,MN),pf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,jen),pf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Een),pf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Men),pf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Cen),pf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ten),pf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ib),pf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Aen),pf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Or),Si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Sen),pf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Or),Si),pt(Xn,A(M($1,1),z,175,0,[pi]))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Pen),pf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Ef),yne),pt(pi,A(M($1,1),z,175,0,[nh,Qa,D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Yen),pf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Phn),Ef),Xrn),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,sB),rqn),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),sc),Ui),pt(Xn,A(M($1,1),z,175,0,[pi]))))),Mi(e,sB,uB,XZn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,uB),rqn),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),whn),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Nen),cqn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),fhn),Ef),Vrn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,F4),cqn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),hhn),Tp),lr),pt(pi,A(M($1,1),z,175,0,[D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,_en),vA),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),phn),Nt),f9),Cn(pi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Ken),vA),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Nt),f9),Cn(pi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Hen),vA),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Nt),f9),Cn(pi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,qen),vA),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Nt),f9),Cn(pi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Gen),vA),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Nt),f9),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,hg),AB),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),lhn),Tp),a9),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ip),AB),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),dhn),Tp),Xhn),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,rp),AB),"Node Size Minimum"),"The minimal size to which a node can be reduced."),ahn),Ef),ai),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,cB),AB),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Uen),rB),"Edge Label Placement"),"Gives a hint on where to put edge labels."),Yfn),Nt),Ohn),Cn(D1)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,UM),rB),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),_i),si),Cn(D1)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,BTe),"font"),"Font Name"),"Font name used for a label."),yv),tn),Cn(D1)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,tqn),"font"),"Font Size"),"Font size used for a label."),sc),Ui),Cn(D1)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Qen),SB),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Ef),ai),Cn(Qa)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Wen),SB),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),sc),Ui),Cn(Qa)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Den),SB),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),jhn),Nt),Zi),Cn(Qa)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Ien),SB),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Or),Si),Cn(Qa)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,L4),Stn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),khn),Tp),UP),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ben),Stn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),_i),si),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ren),Stn),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),_i),si),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,xen),uqn),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),_i),si),Cn(pi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Fen),uqn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),_i),si),Cn(nh)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,jN),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Or),Si),Cn(nh)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,iqn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),thn),Nt),Nhn),Cn(nh)))),t5(e,new A2(Qv(Qp(Vp(new n2,Jn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),t5(e,new A2(Qv(Qp(Vp(new n2,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),t5(e,new A2(Qv(Qp(Vp(new n2,os),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),t5(e,new A2(Qv(Qp(Vp(new n2,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),t5(e,new A2(Qv(Qp(Vp(new n2,IHn),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),t5(e,new A2(Qv(Qp(Vp(new n2,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),t5(e,new A2(Qv(Qp(Vp(new n2,Wf),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),IBn((new J4n,e)),zBn((new Q4n,e)),uBn((new Y4n,e))};var i9,KZn,Xfn,Mp,HZn,qZn,Vfn,GZn,RP,Qfn,yy,M0,Jfn,QK,JK,Yfn,Zfn,nhn,ehn,thn,ihn,Bg,rhn,zZn,jy,YK,_P,chn,Rg,uhn,Ey,shn,ohn,fhn,_g,hhn,Ja,lhn,KP,Kg,ahn,Bl,dhn,HP,Cy,Ya,bhn,UZn,whn,WZn,XZn,ghn,phn,ZK,nH,eH,tH,vhn,Bu,r9,mhn,iH,rH,tw,khn,yhn,Hg,jhn,Ap,qP,cH,jv,VZn,uH,QZn,JZn,Ehn,YZn,Chn,ZZn,Sp,Thn,GP,Mhn,Ahn,Za,nne,Shn,Phn,Ihn;w(Us,"CoreOptions",684),b(103,22,{3:1,35:1,22:1,103:1},r8);var Jh,Ys,So,yh,Yh,c9=Ae(Us,gnn,103,Ie,sde,Moe),ene;b(272,22,{3:1,35:1,22:1,272:1},xO);var Ev,iw,Cv,Ohn=Ae(Us,"EdgeLabelPlacement",272,Ie,Kle,Aoe),tne;b(218,22,{3:1,35:1,22:1,218:1},Qj);var Tv,Ty,Pp,sH,oH=Ae(Us,"EdgeRouting",218,Ie,$ae,Soe),ine;b(312,22,{3:1,35:1,22:1,312:1},w5);var Dhn,$hn,xhn,Fhn,fH,Lhn,Nhn=Ae(Us,"EdgeType",312,Ie,Wde,Poe),rne;b(977,1,Gs,J4n),s.Qe=function(e){IBn(e)};var Bhn,Rhn,_hn,Khn,cne,Hhn,u9;w(Us,"FixedLayouterOptions",977),b(978,1,{},D2n),s.$e=function(){var e;return e=new T2n,e},s._e=function(e){},w(Us,"FixedLayouterOptions/FixedFactory",978),b(334,22,{3:1,35:1,22:1,334:1},FO);var x1,zP,s9,qhn=Ae(Us,"HierarchyHandling",334,Ie,_le,Ioe),une;b(285,22,{3:1,35:1,22:1,285:1},Jj);var jh,Rl,My,Ay,sne=Ae(Us,"LabelSide",285,Ie,Dae,Ooe),one;b(93,22,{3:1,35:1,22:1,93:1},yw);var Zh,Po,Zs,Io,as,Oo,no,Eh,Do,lr=Ae(Us,"NodeLabelPlacement",93,Ie,Q0e,Doe),fne;b(249,22,{3:1,35:1,22:1,249:1},c8);var Ghn,o9,_l,zhn,Sy,f9=Ae(Us,"PortAlignment",249,Ie,ode,$oe),hne;b(98,22,{3:1,35:1,22:1,98:1},g5);var nd,Pc,Ch,Mv,Cf,Kl,Uhn=Ae(Us,"PortConstraints",98,Ie,Ide,xoe),lne;b(273,22,{3:1,35:1,22:1,273:1},p5);var h9,l9,n1,Py,Hl,Ip,UP=Ae(Us,"PortLabelPlacement",273,Ie,Ude,Foe),ane;b(61,22,{3:1,35:1,22:1,61:1},u8);var Vn,Kn,$s,xs,ru,Gc,Tf,$o,Su,mu,Ic,Pu,cu,uu,xo,ds,bs,eo,ae,Wr,Gn,Zi=Ae(Us,"PortSide",61,Ie,rde,Boe),dne;b(981,1,Gs,Y4n),s.Qe=function(e){uBn(e)};var bne,wne,Whn,gne,pne;w(Us,"RandomLayouterOptions",981),b(982,1,{},$2n),s.$e=function(){var e;return e=new L2n,e},s._e=function(e){},w(Us,"RandomLayouterOptions/RandomFactory",982),b(374,22,{3:1,35:1,22:1,374:1},Yj);var rw,Iy,Oy,ed,a9=Ae(Us,"SizeConstraint",374,Ie,Oae,Loe),vne;b(259,22,{3:1,35:1,22:1,259:1},jw);var Dy,WP,Av,hH,$y,d9,XP,VP,QP,Xhn=Ae(Us,"SizeOptions",259,Ie,ibe,Noe),mne;b(370,1,{1949:1},Up),s.b=!1,s.c=0,s.d=-1,s.e=null,s.f=null,s.g=-1,s.j=!1,s.k=!1,s.n=!1,s.o=0,s.q=0,s.r=0,w(ac,"BasicProgressMonitor",370),b(972,209,$a,A2n),s.Ze=function(e,t){var i,r,c,o,f,h,l,a,d;switch(le(t,"Box layout",2),c=R9(Y(hn(e,(iM(),RZn)))),o=u(hn(e,BZn),116),i=on(sn(hn(e,qfn))),r=on(sn(hn(e,Gfn))),u(hn(e,UK),311).g){case 0:f=(h=new au((!e.a&&(e.a=new V(Pt,e,10,11)),e.a)),Pn(),bi(h,new H6n(r)),h),l=fY(e),a=Y(hn(e,Hfn)),(a==null||(_n(a),a<=0))&&(a=1.3),d=HCe(f,c,o,l.a,l.b,i,(_n(a),a)),e0(e,d.a,d.b,!1,!0);break;default:Bje(e,c,o,i)}ce(t)},w(ac,"BoxLayoutProvider",972),b(973,1,lt,H6n),s.ue=function(e,t){return u8e(this,u(e,33),u(t,33))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},s.a=!1,w(ac,"BoxLayoutProvider/1",973),b(157,1,{157:1},XC,hjn),s.Ib=function(){return this.c?oZ(this.c):vl(this.b)},w(ac,"BoxLayoutProvider/Group",157),b(311,22,{3:1,35:1,22:1,311:1},Zj);var Vhn,Qhn,Jhn,lH,Yhn=Ae(ac,"BoxLayoutProvider/PackingMode",311,Ie,xae,Roe),kne;b(974,1,lt,S2n),s.ue=function(e,t){return f1e(u(e,157),u(t,157))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ac,"BoxLayoutProvider/lambda$0$Type",974),b(975,1,lt,P2n),s.ue=function(e,t){return t1e(u(e,157),u(t,157))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ac,"BoxLayoutProvider/lambda$1$Type",975),b(976,1,lt,I2n),s.ue=function(e,t){return i1e(u(e,157),u(t,157))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ac,"BoxLayoutProvider/lambda$2$Type",976),b(1365,1,{831:1},O2n),s.qg=function(e,t){return xj(),!I(t,160)||k8n((N2(),u(e,160)),t)},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1365),b(1366,1,Yn,q6n),s.td=function(e){Wwe(this.a,u(e,146))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1366),b(1367,1,Yn,M2n),s.td=function(e){u(e,94),xj()},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1367),b(1371,1,Yn,G6n),s.td=function(e){vbe(this.a,u(e,94))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1371),b(1369,1,Ve,ukn),s.Mb=function(e){return $we(this.a,this.b,u(e,146))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1369),b(1368,1,Ve,skn),s.Mb=function(e){return Qce(this.a,this.b,u(e,831))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1368),b(1370,1,Yn,okn),s.td=function(e){Qfe(this.a,this.b,u(e,146))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1370),b(935,1,{},C2n),s.Kb=function(e){return oyn(e)},s.Fb=function(e){return this===e},w(ac,"ElkUtil/lambda$0$Type",935),b(936,1,Yn,fkn),s.td=function(e){ome(this.a,this.b,u(e,79))},s.a=0,s.b=0,w(ac,"ElkUtil/lambda$1$Type",936),b(937,1,Yn,hkn),s.td=function(e){oie(this.a,this.b,u(e,202))},s.a=0,s.b=0,w(ac,"ElkUtil/lambda$2$Type",937),b(938,1,Yn,lkn),s.td=function(e){Zre(this.a,this.b,u(e,137))},s.a=0,s.b=0,w(ac,"ElkUtil/lambda$3$Type",938),b(939,1,Yn,z6n),s.td=function(e){afe(this.a,u(e,469))},w(ac,"ElkUtil/lambda$4$Type",939),b(342,1,{35:1,342:1},Bte),s.wd=function(e){return Ace(this,u(e,236))},s.Fb=function(e){var t;return I(e,342)?(t=u(e,342),this.a==t.a):!1},s.Hb=function(){return Ht(this.a)},s.Ib=function(){return this.a+" (exclusive)"},s.a=0,w(ac,"ExclusiveBounds/ExclusiveLowerBound",342),b(1138,209,$a,T2n),s.Ze=function(e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,F,_,U,en,ln,wn;for(le(t,"Fixed Layout",1),o=u(hn(e,(Xe(),Zfn)),218),g=0,p=0,O=new ie((!e.a&&(e.a=new V(Pt,e,10,11)),e.a));O.e!=O.i.gc();){for(S=u(oe(O),33),wn=u(hn(S,(vT(),u9)),8),wn&&(Zo(S,wn.a,wn.b),u(hn(S,Rhn),174).Hc((Vu(),rw))&&(v=u(hn(S,Khn),8),v.a>0&&v.b>0&&e0(S,v.a,v.b,!0,!0))),g=j.Math.max(g,S.i+S.g),p=j.Math.max(p,S.j+S.f),a=new ie((!S.n&&(S.n=new V(Br,S,1,7)),S.n));a.e!=a.i.gc();)h=u(oe(a),137),wn=u(hn(h,u9),8),wn&&Zo(h,wn.a,wn.b),g=j.Math.max(g,S.i+h.i+h.g),p=j.Math.max(p,S.j+h.j+h.f);for(U=new ie((!S.c&&(S.c=new V(Ru,S,9,9)),S.c));U.e!=U.i.gc();)for(_=u(oe(U),118),wn=u(hn(_,u9),8),wn&&Zo(_,wn.a,wn.b),en=S.i+_.i,ln=S.j+_.j,g=j.Math.max(g,en+_.g),p=j.Math.max(p,ln+_.f),l=new ie((!_.n&&(_.n=new V(Br,_,1,7)),_.n));l.e!=l.i.gc();)h=u(oe(l),137),wn=u(hn(h,u9),8),wn&&Zo(h,wn.a,wn.b),g=j.Math.max(g,en+h.i+h.g),p=j.Math.max(p,ln+h.j+h.f);for(c=new re(ue(Gh(S).a.Kc(),new Mn));Se(c);)i=u(ve(c),79),d=y_n(i),g=j.Math.max(g,d.a),p=j.Math.max(p,d.b);for(r=new re(ue(K7(S).a.Kc(),new Mn));Se(r);)i=u(ve(r),79),At(lh(i))!=e&&(d=y_n(i),g=j.Math.max(g,d.a),p=j.Math.max(p,d.b))}if(o==(Hh(),Tv))for($=new ie((!e.a&&(e.a=new V(Pt,e,10,11)),e.a));$.e!=$.i.gc();)for(S=u(oe($),33),r=new re(ue(Gh(S).a.Kc(),new Mn));Se(r);)i=u(ve(r),79),f=cye(i),f.b==0?gr(i,Rg,null):gr(i,Rg,f);on(sn(hn(e,(vT(),_hn))))||(F=u(hn(e,cne),116),C=g+F.b+F.c,m=p+F.d+F.a,e0(e,C,m,!0,!0)),ce(t)},w(ac,"FixedLayoutProvider",1138),b(373,134,{3:1,414:1,373:1,94:1,134:1},TI,BPn),s.Jf=function(e){var t,i,r,c,o,f,h,l,a;if(e)try{for(l=Eb(e,";,;"),o=l,f=0,h=o.length;f>16&Ut|t^r<<16},s.Kc=function(){return new U6n(this)},s.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Lr(this.b)+")":this.b==null?"pair("+Lr(this.a)+",null)":"pair("+Lr(this.a)+","+Lr(this.b)+")"},w(ac,"Pair",46),b(983,1,yi,U6n),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},s.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw T(new ic)},s.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),T(new ou)},s.b=!1,s.c=!1,w(ac,"Pair/1",983),b(448,1,{448:1},jTn),s.Fb=function(e){return mc(this.a,u(e,448).a)&&mc(this.c,u(e,448).c)&&mc(this.d,u(e,448).d)&&mc(this.b,u(e,448).b)},s.Hb=function(){return mT(A(M(Zn,1),rn,1,5,[this.a,this.c,this.d,this.b]))},s.Ib=function(){return"("+this.a+Ji+this.c+Ji+this.d+Ji+this.b+")"},w(ac,"Quadruple",448),b(1126,209,$a,L2n),s.Ze=function(e,t){var i,r,c,o,f;if(le(t,"Random Layout",1),(!e.a&&(e.a=new V(Pt,e,10,11)),e.a).i==0){ce(t);return}o=u(hn(e,(RQ(),gne)),19),o&&o.a!=0?c=new MC(o.a):c=new xx,i=R9(Y(hn(e,bne))),f=R9(Y(hn(e,pne))),r=u(hn(e,wne),116),mCe(e,c,i,f,r),ce(t)},w(ac,"RandomLayoutProvider",1126);var Cne;b(553,1,{}),s.qf=function(){return new fn(this.f.i,this.f.j)},s.We=function(e){return XTn(e,(Xe(),Bu))?hn(this.f,Tne):hn(this.f,e)},s.rf=function(){return new fn(this.f.g,this.f.f)},s.sf=function(){return this.g},s.Xe=function(e){return da(this.f,e)},s.tf=function(e){Zc(this.f,e.a),nu(this.f,e.b)},s.uf=function(e){Bd(this.f,e.a),Nd(this.f,e.b)},s.vf=function(e){this.g=e},s.g=0;var Tne;w(rm,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),b(554,1,{839:1},oj),s.wf=function(){var e,t;if(!this.b)for(this.b=jC(nC(this.a).i),t=new ie(nC(this.a));t.e!=t.i.gc();)e=u(oe(t),137),W(this.b,new JI(e));return this.b},s.b=null,w(rm,"ElkGraphAdapters/ElkEdgeAdapter",554),b(301,553,{},F0),s.xf=function(){return jxn(this)},s.a=null,w(rm,"ElkGraphAdapters/ElkGraphAdapter",301),b(630,553,{181:1},JI),w(rm,"ElkGraphAdapters/ElkLabelAdapter",630),b(629,553,{680:1},QO),s.wf=function(){return y3e(this)},s.Af=function(){var e;return e=u(hn(this.f,(Xe(),Ey)),142),!e&&(e=new Hv),e},s.Cf=function(){return j3e(this)},s.Ef=function(e){var t;t=new lD(e),gr(this.f,(Xe(),Ey),t)},s.Ff=function(e){gr(this.f,(Xe(),Ya),new xU(e))},s.yf=function(){return this.d},s.zf=function(){var e,t;if(!this.a)for(this.a=new X,t=new re(ue(K7(u(this.f,33)).a.Kc(),new Mn));Se(t);)e=u(ve(t),79),W(this.a,new oj(e));return this.a},s.Bf=function(){var e,t;if(!this.c)for(this.c=new X,t=new re(ue(Gh(u(this.f,33)).a.Kc(),new Mn));Se(t);)e=u(ve(t),79),W(this.c,new oj(e));return this.c},s.Df=function(){return uC(u(this.f,33)).i!=0||on(sn(u(this.f,33).We((Xe(),jy))))},s.Gf=function(){a0e(this,(R0(),Cne))},s.a=null,s.b=null,s.c=null,s.d=null,s.e=null,w(rm,"ElkGraphAdapters/ElkNodeAdapter",629),b(1266,553,{838:1},ymn),s.wf=function(){return I3e(this)},s.zf=function(){var e,t;if(!this.a)for(this.a=th(u(this.f,118).xg().i),t=new ie(u(this.f,118).xg());t.e!=t.i.gc();)e=u(oe(t),79),W(this.a,new oj(e));return this.a},s.Bf=function(){var e,t;if(!this.c)for(this.c=th(u(this.f,118).yg().i),t=new ie(u(this.f,118).yg());t.e!=t.i.gc();)e=u(oe(t),79),W(this.c,new oj(e));return this.c},s.Hf=function(){return u(u(this.f,118).We((Xe(),Hg)),61)},s.If=function(){var e,t,i,r,c,o,f,h;for(r=tf(u(this.f,118)),i=new ie(u(this.f,118).yg());i.e!=i.i.gc();)for(e=u(oe(i),79),h=new ie((!e.c&&(e.c=new xn(he,e,5,8)),e.c));h.e!=h.i.gc();){if(f=u(oe(h),82),ub(Pr(f),r))return!0;if(Pr(f)==r&&on(sn(hn(e,(Xe(),YK)))))return!0}for(t=new ie(u(this.f,118).xg());t.e!=t.i.gc();)for(e=u(oe(t),79),o=new ie((!e.b&&(e.b=new xn(he,e,4,7)),e.b));o.e!=o.i.gc();)if(c=u(oe(o),82),ub(Pr(c),r))return!0;return!1},s.a=null,s.b=null,s.c=null,w(rm,"ElkGraphAdapters/ElkPortAdapter",1266),b(1267,1,lt,N2n),s.ue=function(e,t){return Y7e(u(e,118),u(t,118))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(rm,"ElkGraphAdapters/PortComparator",1267);var ql=Et(Ps,"EObject"),Sv=Et(bg,fqn),to=Et(bg,hqn),xy=Et(bg,lqn),Fy=Et(bg,"ElkShape"),he=Et(bg,aqn),di=Et(bg,Ptn),Tt=Et(bg,dqn),Ly=Et(Ps,bqn),b9=Et(Ps,"EFactory"),Mne,aH=Et(Ps,wqn),Qo=Et(Ps,"EPackage"),vi,Ane,Sne,t1n,JP,Pne,i1n,r1n,c1n,Gl,Ine,One,Br=Et(bg,Itn),Pt=Et(bg,Otn),Ru=Et(bg,Dtn);b(90,1,gqn),s.Jg=function(){return this.Kg(),null},s.Kg=function(){return null},s.Lg=function(){return this.Kg(),!1},s.Mg=function(){return!1},s.Ng=function(e){et(this,e)},w(op,"BasicNotifierImpl",90),b(97,90,kqn),s.nh=function(){return Hu(this)},s.Og=function(e,t){return e},s.Pg=function(){throw T(new ye)},s.Qg=function(e){var t;return t=ir(u(On(this.Tg(),this.Vg()),18)),this.eh().ih(this,t.n,t.f,e)},s.Rg=function(e,t){throw T(new ye)},s.Sg=function(e,t,i){return ss(this,e,t,i)},s.Tg=function(){var e;return this.Pg()&&(e=this.Pg().ck(),e)?e:this.zh()},s.Ug=function(){return NF(this)},s.Vg=function(){throw T(new ye)},s.Wg=function(){var e,t;return t=this.ph().dk(),!t&&this.Pg().ik(t=(i5(),e=JW(Bf(this.Tg())),e==null?kH:new f8(this,e))),t},s.Xg=function(e,t){return e},s.Yg=function(e){var t;return t=e.Gj(),t?e.aj():yt(this.Tg(),e)},s.Zg=function(){var e;return e=this.Pg(),e?e.fk():null},s.$g=function(){return this.Pg()?this.Pg().ck():null},s._g=function(e,t,i){return KT(this,e,t,i)},s.ah=function(e){return S3(this,e)},s.bh=function(e,t){return S$(this,e,t)},s.dh=function(){var e;return e=this.Pg(),!!e&&e.gk()},s.eh=function(){throw T(new ye)},s.fh=function(){return xT(this)},s.gh=function(e,t,i,r){return K2(this,e,t,r)},s.hh=function(e,t,i){var r;return r=u(On(this.Tg(),t),66),r.Nj().Qj(this,this.yh(),t-this.Ah(),e,i)},s.ih=function(e,t,i,r){return hC(this,e,t,r)},s.jh=function(e,t,i){var r;return r=u(On(this.Tg(),t),66),r.Nj().Rj(this,this.yh(),t-this.Ah(),e,i)},s.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},s.lh=function(e){return Xx(this,e)},s.mh=function(e){return lMn(this,e)},s.oh=function(e){return LRn(this,e)},s.ph=function(){throw T(new ye)},s.qh=function(){return this.Pg()?this.Pg().ek():null},s.rh=function(){return xT(this)},s.sh=function(e,t){DF(this,e,t)},s.th=function(e){this.ph().hk(e)},s.uh=function(e){this.ph().kk(e)},s.vh=function(e){this.ph().jk(e)},s.wh=function(e,t){var i,r,c,o;return o=this.Zg(),o&&e&&(t=Gi(o.Vk(),this,t),o.Zk(this)),r=this.eh(),r&&(ZF(this,this.eh(),this.Vg()).Bb&Yi?(c=r.fh(),c&&(e?!o&&c.Zk(this):c.Yk(this))):(t=(i=this.Vg(),i>=0?this.Qg(t):this.eh().ih(this,-1-i,null,t)),t=this.Sg(null,-1,t))),this.uh(e),t},s.xh=function(e){var t,i,r,c,o,f,h,l;if(i=this.Tg(),o=yt(i,e),t=this.Ah(),o>=t)return u(e,66).Nj().Uj(this,this.yh(),o-t);if(o<=-1)if(f=rg((wu(),Fi),i,e),f){if(er(),u(f,66).Oj()||(f=S2(jr(Fi,f))),c=(r=this.Yg(f),u(r>=0?this._g(r,!0,!0):Jd(this,f,!0),153)),l=f.Zj(),l>1||l==-1)return u(u(c,215).hl(e,!1),76)}else throw T(new Hn(Al+e.ne()+PB));else if(e.$j())return r=this.Yg(e),u(r>=0?this._g(r,!1,!0):Jd(this,e,!1),76);return h=new Okn(this,e),h},s.yh=function(){return YX(this)},s.zh=function(){return(ul(),Nn).S},s.Ah=function(){return ee(this.zh())},s.Bh=function(e){AF(this,e)},s.Ib=function(){return jo(this)},w(Bn,"BasicEObjectImpl",97);var Dne;b(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),s.Ch=function(e){var t;return t=ZX(this),t[e]},s.Dh=function(e,t){var i;i=ZX(this),Mt(i,e,t)},s.Eh=function(e){var t;t=ZX(this),Mt(t,e,null)},s.Jg=function(){return u(Rn(this,4),126)},s.Kg=function(){throw T(new ye)},s.Lg=function(){return(this.Db&4)!=0},s.Pg=function(){throw T(new ye)},s.Fh=function(e){_2(this,2,e)},s.Rg=function(e,t){this.Db=t<<16|this.Db&255,this.Fh(e)},s.Tg=function(){return Vc(this)},s.Vg=function(){return this.Db>>16},s.Wg=function(){var e,t;return i5(),t=JW(Bf((e=u(Rn(this,16),26),e||this.zh()))),t==null?kH:new f8(this,t)},s.Mg=function(){return(this.Db&1)==0},s.Zg=function(){return u(Rn(this,128),1935)},s.$g=function(){return u(Rn(this,16),26)},s.dh=function(){return(this.Db&32)!=0},s.eh=function(){return u(Rn(this,2),49)},s.kh=function(){return(this.Db&64)!=0},s.ph=function(){throw T(new ye)},s.qh=function(){return u(Rn(this,64),281)},s.th=function(e){_2(this,16,e)},s.uh=function(e){_2(this,128,e)},s.vh=function(e){_2(this,64,e)},s.yh=function(){return Rc(this)},s.Db=0,w(Bn,"MinimalEObjectImpl",114),b(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s.Fh=function(e){this.Cb=e},s.eh=function(){return this.Cb},w(Bn,"MinimalEObjectImpl/Container",115),b(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return hJ(this,e,t,i)},s.jh=function(e,t,i){return YJ(this,e,t,i)},s.lh=function(e){return fX(this,e)},s.sh=function(e,t){VV(this,e,t)},s.zh=function(){return xc(),One},s.Bh=function(e){BV(this,e)},s.Ve=function(){return q$n(this)},s.We=function(e){return hn(this,e)},s.Xe=function(e){return da(this,e)},s.Ye=function(e,t){return gr(this,e,t)},w(La,"EMapPropertyHolderImpl",1985),b(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Jy),s._g=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return KT(this,e,t,i)},s.lh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return Xx(this,e)},s.sh=function(e,t){switch(e){case 0:VC(this,K(Y(t)));return;case 1:QC(this,K(Y(t)));return}DF(this,e,t)},s.zh=function(){return xc(),Ane},s.Bh=function(e){switch(e){case 0:VC(this,0);return;case 1:QC(this,0);return}AF(this,e)},s.Ib=function(){var e;return this.Db&64?jo(this):(e=new Ns(jo(this)),e.a+=" (x: ",mw(e,this.a),e.a+=", y: ",mw(e,this.b),e.a+=")",e.a)},s.a=0,s.b=0,w(La,"ElkBendPointImpl",567),b(723,1985,{105:1,413:1,160:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return bQ(this,e,t,i)},s.hh=function(e,t,i){return yF(this,e,t,i)},s.jh=function(e,t,i){return cx(this,e,t,i)},s.lh=function(e){return IV(this,e)},s.sh=function(e,t){PJ(this,e,t)},s.zh=function(){return xc(),Pne},s.Bh=function(e){hQ(this,e)},s.zg=function(){return this.k},s.Ag=function(){return nC(this)},s.Ib=function(){return Dx(this)},s.k=null,w(La,"ElkGraphElementImpl",723),b(724,723,{105:1,413:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return CQ(this,e,t,i)},s.lh=function(e){return OQ(this,e)},s.sh=function(e,t){IJ(this,e,t)},s.zh=function(){return xc(),Ine},s.Bh=function(e){LQ(this,e)},s.Bg=function(){return this.f},s.Cg=function(){return this.g},s.Dg=function(){return this.i},s.Eg=function(){return this.j},s.Fg=function(e,t){sE(this,e,t)},s.Gg=function(e,t){Zo(this,e,t)},s.Hg=function(e){Zc(this,e)},s.Ig=function(e){nu(this,e)},s.Ib=function(){return MF(this)},s.f=0,s.g=0,s.i=0,s.j=0,w(La,"ElkShapeImpl",724),b(725,724,{105:1,413:1,82:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return rJ(this,e,t,i)},s.hh=function(e,t,i){return EJ(this,e,t,i)},s.jh=function(e,t,i){return CJ(this,e,t,i)},s.lh=function(e){return WV(this,e)},s.sh=function(e,t){$Y(this,e,t)},s.zh=function(){return xc(),Sne},s.Bh=function(e){QQ(this,e)},s.xg=function(){return!this.d&&(this.d=new xn(di,this,8,5)),this.d},s.yg=function(){return!this.e&&(this.e=new xn(di,this,7,4)),this.e},w(La,"ElkConnectableShapeImpl",725),b(352,723,{105:1,413:1,79:1,160:1,352:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},JH),s.Qg=function(e){return mJ(this,e)},s._g=function(e,t,i){switch(e){case 3:return D8(this);case 4:return!this.b&&(this.b=new xn(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new xn(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new V(Tt,this,6,6)),this.a;case 7:return qn(),!this.b&&(this.b=new xn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new xn(he,this,5,8)),this.c.i<=1));case 8:return qn(),!!M6(this);case 9:return qn(),!!Qd(this);case 10:return qn(),!this.b&&(this.b=new xn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new xn(he,this,5,8)),this.c.i!=0)}return bQ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?mJ(this,i):this.Cb.ih(this,-1-r,null,i))),aU(this,u(e,33),i);case 4:return!this.b&&(this.b=new xn(he,this,4,7)),$c(this.b,e,i);case 5:return!this.c&&(this.c=new xn(he,this,5,8)),$c(this.c,e,i);case 6:return!this.a&&(this.a=new V(Tt,this,6,6)),$c(this.a,e,i)}return yF(this,e,t,i)},s.jh=function(e,t,i){switch(t){case 3:return aU(this,null,i);case 4:return!this.b&&(this.b=new xn(he,this,4,7)),Gi(this.b,e,i);case 5:return!this.c&&(this.c=new xn(he,this,5,8)),Gi(this.c,e,i);case 6:return!this.a&&(this.a=new V(Tt,this,6,6)),Gi(this.a,e,i)}return cx(this,e,t,i)},s.lh=function(e){switch(e){case 3:return!!D8(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new xn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new xn(he,this,5,8)),this.c.i<=1));case 8:return M6(this);case 9:return Qd(this);case 10:return!this.b&&(this.b=new xn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new xn(he,this,5,8)),this.c.i!=0)}return IV(this,e)},s.sh=function(e,t){switch(e){case 3:qF(this,u(t,33));return;case 4:!this.b&&(this.b=new xn(he,this,4,7)),de(this.b),!this.b&&(this.b=new xn(he,this,4,7)),Dt(this.b,u(t,14));return;case 5:!this.c&&(this.c=new xn(he,this,5,8)),de(this.c),!this.c&&(this.c=new xn(he,this,5,8)),Dt(this.c,u(t,14));return;case 6:!this.a&&(this.a=new V(Tt,this,6,6)),de(this.a),!this.a&&(this.a=new V(Tt,this,6,6)),Dt(this.a,u(t,14));return}PJ(this,e,t)},s.zh=function(){return xc(),t1n},s.Bh=function(e){switch(e){case 3:qF(this,null);return;case 4:!this.b&&(this.b=new xn(he,this,4,7)),de(this.b);return;case 5:!this.c&&(this.c=new xn(he,this,5,8)),de(this.c);return;case 6:!this.a&&(this.a=new V(Tt,this,6,6)),de(this.a);return}hQ(this,e)},s.Ib=function(){return yRn(this)},w(La,"ElkEdgeImpl",352),b(439,1985,{105:1,413:1,202:1,439:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Yy),s.Qg=function(e){return wJ(this,e)},s._g=function(e,t,i){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Jt(to,this,5)),this.a;case 6:return oMn(this);case 7:return t?Zx(this):this.i;case 8:return t?Yx(this):this.f;case 9:return!this.g&&(this.g=new xn(Tt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new xn(Tt,this,10,9)),this.e;case 11:return this.d}return hJ(this,e,t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?wJ(this,i):this.Cb.ih(this,-1-c,null,i))),dU(this,u(e,79),i);case 9:return!this.g&&(this.g=new xn(Tt,this,9,10)),$c(this.g,e,i);case 10:return!this.e&&(this.e=new xn(Tt,this,10,9)),$c(this.e,e,i)}return o=u(On((r=u(Rn(this,16),26),r||(xc(),JP)),t),66),o.Nj().Qj(this,Rc(this),t-ee((xc(),JP)),e,i)},s.jh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new Jt(to,this,5)),Gi(this.a,e,i);case 6:return dU(this,null,i);case 9:return!this.g&&(this.g=new xn(Tt,this,9,10)),Gi(this.g,e,i);case 10:return!this.e&&(this.e=new xn(Tt,this,10,9)),Gi(this.e,e,i)}return YJ(this,e,t,i)},s.lh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!oMn(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return fX(this,e)},s.sh=function(e,t){switch(e){case 1:x3(this,K(Y(t)));return;case 2:L3(this,K(Y(t)));return;case 3:$3(this,K(Y(t)));return;case 4:F3(this,K(Y(t)));return;case 5:!this.a&&(this.a=new Jt(to,this,5)),de(this.a),!this.a&&(this.a=new Jt(to,this,5)),Dt(this.a,u(t,14));return;case 6:jNn(this,u(t,79));return;case 7:eT(this,u(t,82));return;case 8:nT(this,u(t,82));return;case 9:!this.g&&(this.g=new xn(Tt,this,9,10)),de(this.g),!this.g&&(this.g=new xn(Tt,this,9,10)),Dt(this.g,u(t,14));return;case 10:!this.e&&(this.e=new xn(Tt,this,10,9)),de(this.e),!this.e&&(this.e=new xn(Tt,this,10,9)),Dt(this.e,u(t,14));return;case 11:yV(this,Te(t));return}VV(this,e,t)},s.zh=function(){return xc(),JP},s.Bh=function(e){switch(e){case 1:x3(this,0);return;case 2:L3(this,0);return;case 3:$3(this,0);return;case 4:F3(this,0);return;case 5:!this.a&&(this.a=new Jt(to,this,5)),de(this.a);return;case 6:jNn(this,null);return;case 7:eT(this,null);return;case 8:nT(this,null);return;case 9:!this.g&&(this.g=new xn(Tt,this,9,10)),de(this.g);return;case 10:!this.e&&(this.e=new xn(Tt,this,10,9)),de(this.e);return;case 11:yV(this,null);return}BV(this,e)},s.Ib=function(){return _Ln(this)},s.b=0,s.c=0,s.d=null,s.j=0,s.k=0,w(La,"ElkEdgeSectionImpl",439),b(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),s._g=function(e,t,i){var r;return e==0?(!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab):Es(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.hh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i)):(c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Qj(this,Rc(this),t-ee(this.zh()),e,i))},s.jh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i)):(c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Rc(this),t-ee(this.zh()),e,i))},s.lh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:ys(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.oh=function(e){return KZ(this,e)},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return}Ss(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.uh=function(e){_2(this,128,e)},s.zh=function(){return Sn(),Qne},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return}Ms(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.Gh=function(){this.Bb|=1},s.Hh=function(e){return O6(this,e)},s.Bb=0,w(Bn,"EModelElementImpl",150),b(704,150,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},iq),s.Ih=function(e,t){return JRn(this,e,t)},s.Jh=function(e){var t,i,r,c,o;if(this.a!=ts(e)||e.Bb&256)throw T(new Hn(OB+e.zb+f0));for(r=Mr(e);wc(r.a).i!=0;){if(i=u(Y7(r,0,(t=u(D(wc(r.a),0),87),o=t.c,I(o,88)?u(o,26):(Sn(),uo))),26),Vd(i))return c=ts(i).Nh().Jh(i),u(c,49).th(e),c;r=Mr(i)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new UEn(e):new ZU(e)},s.Kh=function(e,t){return t0(this,e,t)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.a}return Es(this,e-ee((Sn(),Xl)),On((r=u(Rn(this,16),26),r||Xl),e),t,i)},s.hh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,49).ih(this,4,Qo,i)),oQ(this,u(e,235),i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),Xl)),t),66),c.Nj().Qj(this,Rc(this),t-ee((Sn(),Xl)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 1:return oQ(this,null,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),Xl)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),Xl)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return ys(this,e-ee((Sn(),Xl)),On((t=u(Rn(this,16),26),t||Xl),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:jFn(this,u(t,235));return}Ss(this,e-ee((Sn(),Xl)),On((i=u(Rn(this,16),26),i||Xl),e),t)},s.zh=function(){return Sn(),Xl},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:jFn(this,null);return}Ms(this,e-ee((Sn(),Xl)),On((t=u(Rn(this,16),26),t||Xl),e))};var w9,u1n,$ne;w(Bn,"EFactoryImpl",704),b(Co,704,{105:1,2014:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},R2n),s.Ih=function(e,t){switch(e.yj()){case 12:return u(t,146).tg();case 13:return Lr(t);default:throw T(new Hn(_4+e.ne()+f0))}},s.Jh=function(e){var t,i,r,c,o,f,h,l;switch(e.G==-1&&(e.G=(t=ts(e),t?v1(t.Mh(),e):-1)),e.G){case 4:return o=new YH,o;case 6:return f=new tG,f;case 7:return h=new iG,h;case 8:return r=new JH,r;case 9:return i=new Jy,i;case 10:return c=new Yy,c;case 11:return l=new _2n,l;default:throw T(new Hn(OB+e.zb+f0))}},s.Kh=function(e,t){switch(e.yj()){case 13:case 12:return null;default:throw T(new Hn(_4+e.ne()+f0))}},w(La,"ElkGraphFactoryImpl",Co),b(438,150,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),s.Wg=function(){var e,t;return t=(e=u(Rn(this,16),26),JW(Bf(e||this.zh()))),t==null?(i5(),i5(),kH):new djn(this,t)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.ne()}return Es(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return ys(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:this.Lh(Te(t));return}Ss(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return Sn(),Jne},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:this.Lh(null);return}Ms(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.ne=function(){return this.zb},s.Lh=function(e){Dc(this,e)},s.Ib=function(){return o6(this)},s.zb=null,w(Bn,"ENamedElementImpl",438),b(179,438,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},WTn),s.Qg=function(e){return Lxn(this,e)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Q0(this,Jo,this)),this.rb;case 6:return!this.vb&&(this.vb=new p2(Qo,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,235):null:fMn(this)}return Es(this,e-ee((Sn(),B1)),On((r=u(Rn(this,16),26),r||B1),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,49).ih(this,1,b9,i)),aQ(this,u(e,471),i);case 5:return!this.rb&&(this.rb=new Q0(this,Jo,this)),$c(this.rb,e,i);case 6:return!this.vb&&(this.vb=new p2(Qo,this,6,7)),$c(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?Lxn(this,i):this.Cb.ih(this,-1-c,null,i))),ss(this,e,7,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),B1)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),B1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 4:return aQ(this,null,i);case 5:return!this.rb&&(this.rb=new Q0(this,Jo,this)),Gi(this.rb,e,i);case 6:return!this.vb&&(this.vb=new p2(Qo,this,6,7)),Gi(this.vb,e,i);case 7:return ss(this,null,7,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),B1)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),B1)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!fMn(this)}return ys(this,e-ee((Sn(),B1)),On((t=u(Rn(this,16),26),t||B1),e))},s.oh=function(e){var t;return t=k8e(this,e),t||KZ(this,e)},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:Dc(this,Te(t));return;case 2:oT(this,Te(t));return;case 3:sT(this,Te(t));return;case 4:TF(this,u(t,471));return;case 5:!this.rb&&(this.rb=new Q0(this,Jo,this)),de(this.rb),!this.rb&&(this.rb=new Q0(this,Jo,this)),Dt(this.rb,u(t,14));return;case 6:!this.vb&&(this.vb=new p2(Qo,this,6,7)),de(this.vb),!this.vb&&(this.vb=new p2(Qo,this,6,7)),Dt(this.vb,u(t,14));return}Ss(this,e-ee((Sn(),B1)),On((i=u(Rn(this,16),26),i||B1),e),t)},s.vh=function(e){var t,i;if(e&&this.rb)for(i=new ie(this.rb);i.e!=i.i.gc();)t=oe(i),I(t,351)&&(u(t,351).w=null);_2(this,64,e)},s.zh=function(){return Sn(),B1},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:Dc(this,null);return;case 2:oT(this,null);return;case 3:sT(this,null);return;case 4:TF(this,null);return;case 5:!this.rb&&(this.rb=new Q0(this,Jo,this)),de(this.rb);return;case 6:!this.vb&&(this.vb=new p2(Qo,this,6,7)),de(this.vb);return}Ms(this,e-ee((Sn(),B1)),On((t=u(Rn(this,16),26),t||B1),e))},s.Gh=function(){aF(this)},s.Mh=function(){return!this.rb&&(this.rb=new Q0(this,Jo,this)),this.rb},s.Nh=function(){return this.sb},s.Oh=function(){return this.ub},s.Ph=function(){return this.xb},s.Qh=function(){return this.yb},s.Rh=function(e){this.ub=e},s.Ib=function(){var e;return this.Db&64?o6(this):(e=new Ns(o6(this)),e.a+=" (nsURI: ",dr(e,this.yb),e.a+=", nsPrefix: ",dr(e,this.xb),e.a+=")",e.a)},s.xb=null,s.yb=null,w(Bn,"EPackageImpl",179),b(555,179,{105:1,2016:1,555:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},VLn),s.q=!1,s.r=!1;var xne=!1;w(La,"ElkGraphPackageImpl",555),b(354,724,{105:1,413:1,160:1,137:1,470:1,354:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},YH),s.Qg=function(e){return gJ(this,e)},s._g=function(e,t,i){switch(e){case 7:return hMn(this);case 8:return this.a}return CQ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?gJ(this,i):this.Cb.ih(this,-1-r,null,i))),bW(this,u(e,160),i)}return yF(this,e,t,i)},s.jh=function(e,t,i){return t==7?bW(this,null,i):cx(this,e,t,i)},s.lh=function(e){switch(e){case 7:return!!hMn(this);case 8:return!An("",this.a)}return OQ(this,e)},s.sh=function(e,t){switch(e){case 7:WY(this,u(t,160));return;case 8:bV(this,Te(t));return}IJ(this,e,t)},s.zh=function(){return xc(),i1n},s.Bh=function(e){switch(e){case 7:WY(this,null);return;case 8:bV(this,"");return}LQ(this,e)},s.Ib=function(){return LFn(this)},s.a="",w(La,"ElkLabelImpl",354),b(239,725,{105:1,413:1,82:1,160:1,33:1,470:1,239:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},tG),s.Qg=function(e){return kJ(this,e)},s._g=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new V(Ru,this,9,9)),this.c;case 10:return!this.a&&(this.a=new V(Pt,this,10,11)),this.a;case 11:return At(this);case 12:return!this.b&&(this.b=new V(di,this,12,3)),this.b;case 13:return qn(),!this.a&&(this.a=new V(Pt,this,10,11)),this.a.i>0}return rJ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new V(Ru,this,9,9)),$c(this.c,e,i);case 10:return!this.a&&(this.a=new V(Pt,this,10,11)),$c(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?kJ(this,i):this.Cb.ih(this,-1-r,null,i))),jU(this,u(e,33),i);case 12:return!this.b&&(this.b=new V(di,this,12,3)),$c(this.b,e,i)}return EJ(this,e,t,i)},s.jh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new V(Ru,this,9,9)),Gi(this.c,e,i);case 10:return!this.a&&(this.a=new V(Pt,this,10,11)),Gi(this.a,e,i);case 11:return jU(this,null,i);case 12:return!this.b&&(this.b=new V(di,this,12,3)),Gi(this.b,e,i)}return CJ(this,e,t,i)},s.lh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!At(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new V(Pt,this,10,11)),this.a.i>0}return WV(this,e)},s.sh=function(e,t){switch(e){case 9:!this.c&&(this.c=new V(Ru,this,9,9)),de(this.c),!this.c&&(this.c=new V(Ru,this,9,9)),Dt(this.c,u(t,14));return;case 10:!this.a&&(this.a=new V(Pt,this,10,11)),de(this.a),!this.a&&(this.a=new V(Pt,this,10,11)),Dt(this.a,u(t,14));return;case 11:GY(this,u(t,33));return;case 12:!this.b&&(this.b=new V(di,this,12,3)),de(this.b),!this.b&&(this.b=new V(di,this,12,3)),Dt(this.b,u(t,14));return}$Y(this,e,t)},s.zh=function(){return xc(),r1n},s.Bh=function(e){switch(e){case 9:!this.c&&(this.c=new V(Ru,this,9,9)),de(this.c);return;case 10:!this.a&&(this.a=new V(Pt,this,10,11)),de(this.a);return;case 11:GY(this,null);return;case 12:!this.b&&(this.b=new V(di,this,12,3)),de(this.b);return}QQ(this,e)},s.Ib=function(){return oZ(this)},w(La,"ElkNodeImpl",239),b(186,725,{105:1,413:1,82:1,160:1,118:1,470:1,186:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},iG),s.Qg=function(e){return pJ(this,e)},s._g=function(e,t,i){return e==9?tf(this):rJ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?pJ(this,i):this.Cb.ih(this,-1-r,null,i))),bU(this,u(e,33),i)}return EJ(this,e,t,i)},s.jh=function(e,t,i){return t==9?bU(this,null,i):CJ(this,e,t,i)},s.lh=function(e){return e==9?!!tf(this):WV(this,e)},s.sh=function(e,t){switch(e){case 9:qY(this,u(t,33));return}$Y(this,e,t)},s.zh=function(){return xc(),c1n},s.Bh=function(e){switch(e){case 9:qY(this,null);return}QQ(this,e)},s.Ib=function(){return jBn(this)},w(La,"ElkPortImpl",186);var Fne=Et(zi,"BasicEMap/Entry");b(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},_2n),s.Fb=function(e){return this===e},s.cd=function(){return this.b},s.Hb=function(){return vd(this)},s.Uh=function(e){wV(this,u(e,146))},s._g=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return KT(this,e,t,i)},s.lh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return Xx(this,e)},s.sh=function(e,t){switch(e){case 0:wV(this,u(t,146));return;case 1:vV(this,t);return}DF(this,e,t)},s.zh=function(){return xc(),Gl},s.Bh=function(e){switch(e){case 0:wV(this,null);return;case 1:vV(this,null);return}AF(this,e)},s.Sh=function(){var e;return this.a==-1&&(e=this.b,this.a=e?mt(e):0),this.a},s.dd=function(){return this.c},s.Th=function(e){this.a=e},s.ed=function(e){var t;return t=this.c,vV(this,e),t},s.Ib=function(){var e;return this.Db&64?jo(this):(e=new W1,De(De(De(e,this.b?this.b.tg():iu),SN),T5(this.c)),e.a)},s.a=-1,s.c=null;var A0=w(La,"ElkPropertyToValueMapEntryImpl",1092);b(984,1,{},q2n),w(xi,"JsonAdapter",984),b(210,60,Uh,Pf),w(xi,"JsonImportException",210),b(857,1,{},Nxn),w(xi,"JsonImporter",857),b(891,1,{},akn),w(xi,"JsonImporter/lambda$0$Type",891),b(892,1,{},dkn),w(xi,"JsonImporter/lambda$1$Type",892),b(900,1,{},W6n),w(xi,"JsonImporter/lambda$10$Type",900),b(902,1,{},bkn),w(xi,"JsonImporter/lambda$11$Type",902),b(903,1,{},wkn),w(xi,"JsonImporter/lambda$12$Type",903),b(909,1,{},ATn),w(xi,"JsonImporter/lambda$13$Type",909),b(908,1,{},MTn),w(xi,"JsonImporter/lambda$14$Type",908),b(904,1,{},gkn),w(xi,"JsonImporter/lambda$15$Type",904),b(905,1,{},pkn),w(xi,"JsonImporter/lambda$16$Type",905),b(906,1,{},vkn),w(xi,"JsonImporter/lambda$17$Type",906),b(907,1,{},mkn),w(xi,"JsonImporter/lambda$18$Type",907),b(912,1,{},X6n),w(xi,"JsonImporter/lambda$19$Type",912),b(893,1,{},V6n),w(xi,"JsonImporter/lambda$2$Type",893),b(910,1,{},Q6n),w(xi,"JsonImporter/lambda$20$Type",910),b(911,1,{},J6n),w(xi,"JsonImporter/lambda$21$Type",911),b(915,1,{},Y6n),w(xi,"JsonImporter/lambda$22$Type",915),b(913,1,{},Z6n),w(xi,"JsonImporter/lambda$23$Type",913),b(914,1,{},nmn),w(xi,"JsonImporter/lambda$24$Type",914),b(917,1,{},emn),w(xi,"JsonImporter/lambda$25$Type",917),b(916,1,{},tmn),w(xi,"JsonImporter/lambda$26$Type",916),b(918,1,Yn,kkn),s.td=function(e){Vde(this.b,this.a,Te(e))},w(xi,"JsonImporter/lambda$27$Type",918),b(919,1,Yn,ykn),s.td=function(e){Qde(this.b,this.a,Te(e))},w(xi,"JsonImporter/lambda$28$Type",919),b(920,1,{},jkn),w(xi,"JsonImporter/lambda$29$Type",920),b(896,1,{},imn),w(xi,"JsonImporter/lambda$3$Type",896),b(921,1,{},Ekn),w(xi,"JsonImporter/lambda$30$Type",921),b(922,1,{},rmn),w(xi,"JsonImporter/lambda$31$Type",922),b(923,1,{},cmn),w(xi,"JsonImporter/lambda$32$Type",923),b(924,1,{},umn),w(xi,"JsonImporter/lambda$33$Type",924),b(925,1,{},smn),w(xi,"JsonImporter/lambda$34$Type",925),b(859,1,{},omn),w(xi,"JsonImporter/lambda$35$Type",859),b(929,1,{},vEn),w(xi,"JsonImporter/lambda$36$Type",929),b(926,1,Yn,fmn),s.td=function(e){Zae(this.a,u(e,469))},w(xi,"JsonImporter/lambda$37$Type",926),b(927,1,Yn,Pkn),s.td=function(e){Are(this.a,this.b,u(e,202))},w(xi,"JsonImporter/lambda$38$Type",927),b(928,1,Yn,Ikn),s.td=function(e){Sre(this.a,this.b,u(e,202))},w(xi,"JsonImporter/lambda$39$Type",928),b(894,1,{},hmn),w(xi,"JsonImporter/lambda$4$Type",894),b(930,1,Yn,lmn),s.td=function(e){nde(this.a,u(e,8))},w(xi,"JsonImporter/lambda$40$Type",930),b(895,1,{},amn),w(xi,"JsonImporter/lambda$5$Type",895),b(899,1,{},dmn),w(xi,"JsonImporter/lambda$6$Type",899),b(897,1,{},bmn),w(xi,"JsonImporter/lambda$7$Type",897),b(898,1,{},wmn),w(xi,"JsonImporter/lambda$8$Type",898),b(901,1,{},gmn),w(xi,"JsonImporter/lambda$9$Type",901),b(948,1,Yn,pmn),s.td=function(e){E2(this.a,new J0(Te(e)))},w(xi,"JsonMetaDataConverter/lambda$0$Type",948),b(949,1,Yn,vmn),s.td=function(e){ghe(this.a,u(e,237))},w(xi,"JsonMetaDataConverter/lambda$1$Type",949),b(950,1,Yn,mmn),s.td=function(e){dle(this.a,u(e,149))},w(xi,"JsonMetaDataConverter/lambda$2$Type",950),b(951,1,Yn,kmn),s.td=function(e){phe(this.a,u(e,175))},w(xi,"JsonMetaDataConverter/lambda$3$Type",951),b(237,22,{3:1,35:1,22:1,237:1},d2);var YP,ZP,dH,nI,eI,tI,bH,wH,iI=Ae(ak,"GraphFeature",237,Ie,R0e,Koe),Lne;b(13,1,{35:1,146:1},kt,ii,In,tr),s.wd=function(e){return Mce(this,u(e,146))},s.Fb=function(e){return XTn(this,e)},s.wg=function(){return cn(this)},s.tg=function(){return this.b},s.Hb=function(){return m1(this.b)},s.Ib=function(){return this.b},w(ak,"Property",13),b(818,1,lt,Fq),s.ue=function(e,t){return Gge(this,u(e,94),u(t,94))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ak,"PropertyHolderComparator",818),b(695,1,yi,Lq),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return n0e(this)},s.Qb=function(){d8n()},s.Ob=function(){return!!this.a},w(jA,"ElkGraphUtil/AncestorIterator",695);var s1n=Et(zi,"EList");b(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),s.Vc=function(e,t){l6(this,e,t)},s.Fc=function(e){return me(this,e)},s.Wc=function(e,t){return RV(this,e,t)},s.Gc=function(e){return Dt(this,e)},s.Zh=function(){return new g2(this)},s.$h=function(){return new h8(this)},s._h=function(e){return e7(this,e)},s.ai=function(){return!0},s.bi=function(e,t){},s.ci=function(){},s.di=function(e,t){I$(this,e,t)},s.ei=function(e,t,i){},s.fi=function(e,t){},s.gi=function(e,t,i){},s.Fb=function(e){return oBn(this,e)},s.Hb=function(){return xV(this)},s.hi=function(){return!1},s.Kc=function(){return new ie(this)},s.Yc=function(){return new w2(this)},s.Zc=function(e){var t;if(t=this.gc(),e<0||e>t)throw T(new W0(e,t));return new FD(this,e)},s.ji=function(e,t){this.ii(e,this.Xc(t))},s.Mc=function(e){return KC(this,e)},s.li=function(e,t){return t},s._c=function(e,t){return Gw(this,e,t)},s.Ib=function(){return MQ(this)},s.ni=function(){return!0},s.oi=function(e,t){return X3(this,t)},w(zi,"AbstractEList",67),b(63,67,Vf,nj,Fd,MV),s.Vh=function(e,t){return jF(this,e,t)},s.Wh=function(e){return hxn(this,e)},s.Xh=function(e,t){g7(this,e,t)},s.Yh=function(e){B8(this,e)},s.pi=function(e){return WX(this,e)},s.$b=function(){Q5(this)},s.Hc=function(e){return f4(this,e)},s.Xb=function(e){return D(this,e)},s.qi=function(e){var t,i,r;++this.j,i=this.g==null?0:this.g.length,e>i&&(r=this.g,t=i+(i/2|0)+4,t=0?(this.$c(t),!0):!1},s.mi=function(e,t){return this.Ui(e,this.oi(e,t))},s.gc=function(){return this.Vi()},s.Pc=function(){return this.Wi()},s.Qc=function(e){return this.Xi(e)},s.Ib=function(){return this.Yi()},w(zi,"DelegatingEList",1995),b(1996,1995,rGn),s.Vh=function(e,t){return pZ(this,e,t)},s.Wh=function(e){return this.Vh(this.Vi(),e)},s.Xh=function(e,t){WLn(this,e,t)},s.Yh=function(e){BLn(this,e)},s.ai=function(){return!this.bj()},s.$b=function(){N6(this)},s.Zi=function(e,t,i,r,c){return new QTn(this,e,t,i,r,c)},s.$i=function(e){et(this.Ai(),e)},s._i=function(){return null},s.aj=function(){return-1},s.Ai=function(){return null},s.bj=function(){return!1},s.cj=function(e,t){return t},s.dj=function(e,t){return t},s.ej=function(){return!1},s.fj=function(){return!this.Ri()},s.ii=function(e,t){var i,r;return this.ej()?(r=this.fj(),i=VJ(this,e,t),this.$i(this.Zi(7,Q(t),i,e,r)),i):VJ(this,e,t)},s.$c=function(e){var t,i,r,c;return this.ej()?(i=null,r=this.fj(),t=this.Zi(4,c=xE(this,e),null,e,r),this.bj()&&c?(i=this.dj(c,i),i?(i.Ei(t),i.Fi()):this.$i(t)):i?(i.Ei(t),i.Fi()):this.$i(t),c):(c=xE(this,e),this.bj()&&c&&(i=this.dj(c,null),i&&i.Fi()),c)},s.mi=function(e,t){return eRn(this,e,t)},w(op,"DelegatingNotifyingListImpl",1996),b(143,1,Mk),s.Ei=function(e){return LJ(this,e)},s.Fi=function(){R$(this)},s.xi=function(){return this.d},s._i=function(){return null},s.gj=function(){return null},s.yi=function(e){return-1},s.zi=function(){return KNn(this)},s.Ai=function(){return null},s.Bi=function(){return YY(this)},s.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},s.hj=function(){return!1},s.Di=function(e){var t,i,r,c,o,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(c=e.xi(),c){case 1:case 2:if(o=e.Ai(),B(o)===B(this.Ai())&&this.yi(null)==e.yi(null))return this.g=e.zi(),e.xi()==1&&(this.d=1),!0}case 4:{switch(c=e.xi(),c){case 4:{if(o=e.Ai(),B(o)===B(this.Ai())&&this.yi(null)==e.yi(null))return a=xZ(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.Ci(),this.d=6,g=new Fd(2),l<=f?(me(g,this.n),me(g,e.Bi()),this.g=A(M(be,1),Le,25,15,[this.o=l,f+1])):(me(g,e.Bi()),me(g,this.n),this.g=A(M(be,1),Le,25,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=e.xi(),c){case 4:{if(o=e.Ai(),B(o)===B(this.Ai())&&this.yi(null)==e.yi(null)){for(a=xZ(this),f=e.Ci(),d=u(this.g,48),r=x(be,Le,25,d.length+1,15,1),t=0;t>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{rO(r,this.d);break}}if(PBn(this)&&(r.a+=", touch: true"),r.a+=", position: ",rO(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",m5(r,this.Ai()),r.a+=", feature: ",m5(r,this._i()),r.a+=", oldValue: ",m5(r,YY(this)),r.a+=", newValue: ",this.d==6&&I(this.g,48)){for(i=u(this.g,48),r.a+="[",e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new D5(this),this.a=this.j),Ah(this.b,e)):f4(this,e)},s.ni=function(){return!0},s.a=0,w(zi,"AbstractEList/1",953),b(295,73,YL,W0),w(zi,"AbstractEList/BasicIndexOutOfBoundsException",295),b(40,1,yi,ie),s.Nb=function(e){Oi(this,e)},s.mj=function(){if(this.i.j!=this.f)throw T(new ps)},s.nj=function(){return oe(this)},s.Ob=function(){return this.e!=this.i.gc()},s.Pb=function(){return this.nj()},s.Qb=function(){y6(this)},s.e=0,s.f=0,s.g=-1,w(zi,"AbstractEList/EIterator",40),b(278,40,ah,w2,FD),s.Qb=function(){y6(this)},s.Rb=function(e){a$n(this,e)},s.oj=function(){var e;try{return e=this.d.Xb(--this.e),this.mj(),this.g=this.e,e}catch(t){throw t=jt(t),I(t,73)?(this.mj(),T(new ic)):T(t)}},s.pj=function(e){dxn(this,e)},s.Sb=function(){return this.e!=0},s.Tb=function(){return this.e},s.Ub=function(){return this.oj()},s.Vb=function(){return this.e-1},s.Wb=function(e){this.pj(e)},w(zi,"AbstractEList/EListIterator",278),b(341,40,yi,g2),s.nj=function(){return Vx(this)},s.Qb=function(){throw T(new ye)},w(zi,"AbstractEList/NonResolvingEIterator",341),b(385,278,ah,h8,PU),s.Rb=function(e){throw T(new ye)},s.nj=function(){var e;try{return e=this.c.ki(this.e),this.mj(),this.g=this.e++,e}catch(t){throw t=jt(t),I(t,73)?(this.mj(),T(new ic)):T(t)}},s.oj=function(){var e;try{return e=this.c.ki(--this.e),this.mj(),this.g=this.e,e}catch(t){throw t=jt(t),I(t,73)?(this.mj(),T(new ic)):T(t)}},s.Qb=function(){throw T(new ye)},s.Wb=function(e){throw T(new ye)},w(zi,"AbstractEList/NonResolvingEListIterator",385),b(1982,67,cGn),s.Vh=function(e,t){var i,r,c,o,f,h,l,a,d,g,p;if(c=t.gc(),c!=0){for(a=u(Rn(this.a,4),126),d=a==null?0:a.length,p=d+c,r=px(this,p),g=d-e,g>0&&pc(a,e,r,e+c,g),l=t.Kc(),f=0;fi)throw T(new W0(e,i));return new sTn(this,e)},s.$b=function(){var e,t;++this.j,e=u(Rn(this.a,4),126),t=e==null?0:e.length,c4(this,null),I$(this,t,e)},s.Hc=function(e){var t,i,r,c,o;if(t=u(Rn(this.a,4),126),t!=null){if(e!=null){for(r=t,c=0,o=r.length;c=i)throw T(new W0(e,i));return t[e]},s.Xc=function(e){var t,i,r;if(t=u(Rn(this.a,4),126),t!=null){if(e!=null){for(i=0,r=t.length;ii)throw T(new W0(e,i));return new uTn(this,e)},s.ii=function(e,t){var i,r,c;if(i=k$n(this),c=i==null?0:i.length,e>=c)throw T(new vr(_B+e+Na+c));if(t>=c)throw T(new vr(KB+t+Na+c));return r=i[t],e!=t&&(e0&&pc(e,0,t,0,i),t},s.Qc=function(e){var t,i,r;return t=u(Rn(this.a,4),126),r=t==null?0:t.length,r>0&&(e.lengthr&&Mt(e,r,null),e};var Nne;w(zi,"ArrayDelegatingEList",1982),b(1038,40,yi,gSn),s.mj=function(){if(this.b.j!=this.f||B(u(Rn(this.b.a,4),126))!==B(this.a))throw T(new ps)},s.Qb=function(){y6(this),this.a=u(Rn(this.b.a,4),126)},w(zi,"ArrayDelegatingEList/EIterator",1038),b(706,278,ah,ICn,uTn),s.mj=function(){if(this.b.j!=this.f||B(u(Rn(this.b.a,4),126))!==B(this.a))throw T(new ps)},s.pj=function(e){dxn(this,e),this.a=u(Rn(this.b.a,4),126)},s.Qb=function(){y6(this),this.a=u(Rn(this.b.a,4),126)},w(zi,"ArrayDelegatingEList/EListIterator",706),b(1039,341,yi,pSn),s.mj=function(){if(this.b.j!=this.f||B(u(Rn(this.b.a,4),126))!==B(this.a))throw T(new ps)},w(zi,"ArrayDelegatingEList/NonResolvingEIterator",1039),b(707,385,ah,OCn,sTn),s.mj=function(){if(this.b.j!=this.f||B(u(Rn(this.b.a,4),126))!==B(this.a))throw T(new ps)},w(zi,"ArrayDelegatingEList/NonResolvingEListIterator",707),b(606,295,YL,BO),w(zi,"BasicEList/BasicIndexOutOfBoundsException",606),b(696,63,Vf,bz),s.Vc=function(e,t){throw T(new ye)},s.Fc=function(e){throw T(new ye)},s.Wc=function(e,t){throw T(new ye)},s.Gc=function(e){throw T(new ye)},s.$b=function(){throw T(new ye)},s.qi=function(e){throw T(new ye)},s.Kc=function(){return this.Zh()},s.Yc=function(){return this.$h()},s.Zc=function(e){return this._h(e)},s.ii=function(e,t){throw T(new ye)},s.ji=function(e,t){throw T(new ye)},s.$c=function(e){throw T(new ye)},s.Mc=function(e){throw T(new ye)},s._c=function(e,t){throw T(new ye)},w(zi,"BasicEList/UnmodifiableEList",696),b(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),s.Vc=function(e,t){gce(this,e,u(t,42))},s.Fc=function(e){return tue(this,u(e,42))},s.Jc=function(e){$i(this,e)},s.Xb=function(e){return u(D(this.c,e),133)},s.ii=function(e,t){return u(this.c.ii(e,t),42)},s.ji=function(e,t){pce(this,e,u(t,42))},s.Lc=function(){return new $n(null,new Fn(this,16))},s.$c=function(e){return u(this.c.$c(e),42)},s._c=function(e,t){return hhe(this,e,u(t,42))},s.ad=function(e){Lw(this,e)},s.Nc=function(){return new Fn(this,16)},s.Oc=function(){return new $n(null,new Fn(this,16))},s.Wc=function(e,t){return this.c.Wc(e,t)},s.Gc=function(e){return this.c.Gc(e)},s.$b=function(){this.c.$b()},s.Hc=function(e){return this.c.Hc(e)},s.Ic=function(e){return u7(this.c,e)},s.qj=function(){var e,t,i;if(this.d==null){for(this.d=x(o1n,Qtn,63,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=u(t.nj(),133),GT(this,e);this.e=i}},s.Fb=function(e){return tEn(this,e)},s.Hb=function(){return xV(this.c)},s.Xc=function(e){return this.c.Xc(e)},s.rj=function(){this.c=new jmn(this)},s.dc=function(){return this.f==0},s.Kc=function(){return this.c.Kc()},s.Yc=function(){return this.c.Yc()},s.Zc=function(e){return this.c.Zc(e)},s.sj=function(){return K8(this)},s.tj=function(e,t,i){return new mEn(e,t,i)},s.uj=function(){return new W2n},s.Mc=function(e){return FIn(this,e)},s.gc=function(){return this.f},s.bd=function(e,t){return new sh(this.c,e,t)},s.Pc=function(){return this.c.Pc()},s.Qc=function(e){return this.c.Qc(e)},s.Ib=function(){return MQ(this.c)},s.e=0,s.f=0,w(zi,"BasicEMap",705),b(1033,63,Vf,jmn),s.bi=function(e,t){Zte(this,u(t,133))},s.ei=function(e,t,i){var r;++(r=this,u(t,133),r).a.e},s.fi=function(e,t){nie(this,u(t,133))},s.gi=function(e,t,i){qce(this,u(t,133),u(i,133))},s.di=function(e,t){TOn(this.a)},w(zi,"BasicEMap/1",1033),b(1034,63,Vf,W2n),s.ri=function(e){return x(lMe,uGn,612,e,0,1)},w(zi,"BasicEMap/2",1034),b(1035,wf,gu,Emn),s.$b=function(){this.a.c.$b()},s.Hc=function(e){return _x(this.a,e)},s.Kc=function(){return this.a.f==0?(f3(),Ry.a):new r8n(this.a)},s.Mc=function(e){var t;return t=this.a.f,$T(this.a,e),this.a.f!=t},s.gc=function(){return this.a.f},w(zi,"BasicEMap/3",1035),b(1036,28,Mb,Cmn),s.$b=function(){this.a.c.$b()},s.Hc=function(e){return fBn(this.a,e)},s.Kc=function(){return this.a.f==0?(f3(),Ry.a):new c8n(this.a)},s.gc=function(){return this.a.f},w(zi,"BasicEMap/4",1036),b(1037,wf,gu,Tmn),s.$b=function(){this.a.c.$b()},s.Hc=function(e){var t,i,r,c,o,f,h,l,a;if(this.a.f>0&&I(e,42)&&(this.a.qj(),l=u(e,42),h=l.cd(),c=h==null?0:mt(h),o=wU(this.a,c),t=this.a.d[o],t)){for(i=u(t.g,367),a=t.i,f=0;f"+this.c},s.a=0;var lMe=w(zi,"BasicEMap/EntryImpl",612);b(536,1,{},Zy),w(zi,"BasicEMap/View",536);var Ry;b(768,1,{}),s.Fb=function(e){return xY((Pn(),cr),e)},s.Hb=function(){return UV((Pn(),cr))},s.Ib=function(){return vl((Pn(),cr))},w(zi,"ECollections/BasicEmptyUnmodifiableEList",768),b(1312,1,ah,X2n),s.Nb=function(e){Oi(this,e)},s.Rb=function(e){throw T(new ye)},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Pb=function(){throw T(new ic)},s.Tb=function(){return 0},s.Ub=function(){throw T(new ic)},s.Vb=function(){return-1},s.Qb=function(){throw T(new ye)},s.Wb=function(e){throw T(new ye)},w(zi,"ECollections/BasicEmptyUnmodifiableEList/1",1312),b(1310,768,{20:1,14:1,15:1,58:1},w9n),s.Vc=function(e,t){M8n()},s.Fc=function(e){return A8n()},s.Wc=function(e,t){return S8n()},s.Gc=function(e){return P8n()},s.$b=function(){I8n()},s.Hc=function(e){return!1},s.Ic=function(e){return!1},s.Jc=function(e){$i(this,e)},s.Xb=function(e){return pz((Pn(),e)),null},s.Xc=function(e){return-1},s.dc=function(){return!0},s.Kc=function(){return this.a},s.Yc=function(){return this.a},s.Zc=function(e){return this.a},s.ii=function(e,t){return O8n()},s.ji=function(e,t){D8n()},s.Lc=function(){return new $n(null,new Fn(this,16))},s.$c=function(e){return $8n()},s.Mc=function(e){return x8n()},s._c=function(e,t){return F8n()},s.gc=function(){return 0},s.ad=function(e){Lw(this,e)},s.Nc=function(){return new Fn(this,16)},s.Oc=function(){return new $n(null,new Fn(this,16))},s.bd=function(e,t){return Pn(),new sh(cr,e,t)},s.Pc=function(){return pW((Pn(),cr))},s.Qc=function(e){return Pn(),T7(cr,e)},w(zi,"ECollections/EmptyUnmodifiableEList",1310),b(1311,768,{20:1,14:1,15:1,58:1,589:1},g9n),s.Vc=function(e,t){M8n()},s.Fc=function(e){return A8n()},s.Wc=function(e,t){return S8n()},s.Gc=function(e){return P8n()},s.$b=function(){I8n()},s.Hc=function(e){return!1},s.Ic=function(e){return!1},s.Jc=function(e){$i(this,e)},s.Xb=function(e){return pz((Pn(),e)),null},s.Xc=function(e){return-1},s.dc=function(){return!0},s.Kc=function(){return this.a},s.Yc=function(){return this.a},s.Zc=function(e){return this.a},s.ii=function(e,t){return O8n()},s.ji=function(e,t){D8n()},s.Lc=function(){return new $n(null,new Fn(this,16))},s.$c=function(e){return $8n()},s.Mc=function(e){return x8n()},s._c=function(e,t){return F8n()},s.gc=function(){return 0},s.ad=function(e){Lw(this,e)},s.Nc=function(){return new Fn(this,16)},s.Oc=function(){return new $n(null,new Fn(this,16))},s.bd=function(e,t){return Pn(),new sh(cr,e,t)},s.Pc=function(){return pW((Pn(),cr))},s.Qc=function(e){return Pn(),T7(cr,e)},s.sj=function(){return Pn(),Pn(),mh},w(zi,"ECollections/EmptyUnmodifiableEMap",1311);var h1n=Et(zi,"Enumerator"),rI;b(281,1,{281:1},XF),s.Fb=function(e){var t;return this===e?!0:I(e,281)?(t=u(e,281),this.f==t.f&&Ofe(this.i,t.i)&&yD(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&yD(this.d,t.d)&&yD(this.g,t.g)&&yD(this.e,t.e)&&Tpe(this,t)):!1},s.Hb=function(){return this.f},s.Ib=function(){return _Bn(this)},s.f=0;var Bne=0,Rne=0,_ne=0,Kne=0,l1n=0,a1n=0,d1n=0,b1n=0,w1n=0,Hne,g9=0,p9=0,qne=0,Gne=0,cI,g1n;w(zi,"URI",281),b(1091,43,sg,p9n),s.zc=function(e,t){return u(kr(this,Te(e),u(t,281)),281)},w(zi,"URI/URICache",1091),b(497,63,Vf,H2n,LE),s.hi=function(){return!0},w(zi,"UniqueEList",497),b(581,60,Uh,BC),w(zi,"WrappedException",581);var Be=Et(Ps,fGn),cw=Et(Ps,hGn),su=Et(Ps,lGn),uw=Et(Ps,aGn),Jo=Et(Ps,dGn),io=Et(Ps,"EClass"),vH=Et(Ps,"EDataType"),zne;b(1183,43,sg,v9n),s.xc=function(e){return mi(e)?kc(this,e):Xr(Ar(this.f,e))},w(Ps,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1183);var uI=Et(Ps,"EEnum"),e1=Et(Ps,bGn),ar=Et(Ps,wGn),ro=Et(Ps,gGn),co,S0=Et(Ps,pGn),sw=Et(Ps,vGn);b(1029,1,{},K2n),s.Ib=function(){return"NIL"},w(Ps,"EStructuralFeature/Internal/DynamicValueHolder/1",1029);var Une;b(1028,43,sg,m9n),s.xc=function(e){return mi(e)?kc(this,e):Xr(Ar(this.f,e))},w(Ps,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1028);var zc=Et(Ps,mGn),Op=Et(Ps,"EValidator/PatternMatcher"),p1n,v1n,Nn,F1,ow,Ul,Wne,Xne,Vne,Wl,L1,Xl,P0,Mf,Qne,Jne,uo,N1,Yne,B1,fw,qg,nr,Zne,nee,I0,sI=Et(vt,"FeatureMap/Entry");b(535,1,{72:1},eE),s.ak=function(){return this.a},s.dd=function(){return this.b},w(Bn,"BasicEObjectImpl/1",535),b(1027,1,WB,Okn),s.Wj=function(e){return S$(this.a,this.b,e)},s.fj=function(){return lMn(this.a,this.b)},s.Wb=function(e){ZW(this.a,this.b,e)},s.Xj=function(){Ahe(this.a,this.b)},w(Bn,"BasicEObjectImpl/4",1027),b(1983,1,{108:1}),s.bk=function(e){this.e=e==0?eee:x(Zn,rn,1,e,5,1)},s.Ch=function(e){return this.e[e]},s.Dh=function(e,t){this.e[e]=t},s.Eh=function(e){this.e[e]=null},s.ck=function(){return this.c},s.dk=function(){throw T(new ye)},s.ek=function(){throw T(new ye)},s.fk=function(){return this.d},s.gk=function(){return this.e!=null},s.hk=function(e){this.c=e},s.ik=function(e){throw T(new ye)},s.jk=function(e){throw T(new ye)},s.kk=function(e){this.d=e};var eee;w(Bn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),b(185,1983,{108:1},Fo),s.dk=function(){return this.a},s.ek=function(){return this.b},s.ik=function(e){this.a=e},s.jk=function(e){this.b=e},w(Bn,"BasicEObjectImpl/EPropertiesHolderImpl",185),b(506,97,kqn,ej),s.Kg=function(){return this.f},s.Pg=function(){return this.k},s.Rg=function(e,t){this.g=e,this.i=t},s.Tg=function(){return this.j&2?this.ph().ck():this.zh()},s.Vg=function(){return this.i},s.Mg=function(){return(this.j&1)!=0},s.eh=function(){return this.g},s.kh=function(){return(this.j&4)!=0},s.ph=function(){return!this.k&&(this.k=new Fo),this.k},s.th=function(e){this.ph().hk(e),e?this.j|=2:this.j&=-3},s.vh=function(e){this.ph().jk(e),e?this.j|=4:this.j&=-5},s.zh=function(){return(ul(),Nn).S},s.i=0,s.j=1,w(Bn,"EObjectImpl",506),b(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},ZU),s.Ch=function(e){return this.e[e]},s.Dh=function(e,t){this.e[e]=t},s.Eh=function(e){this.e[e]=null},s.Tg=function(){return this.d},s.Yg=function(e){return yt(this.d,e)},s.$g=function(){return this.d},s.dh=function(){return this.e!=null},s.ph=function(){return!this.k&&(this.k=new V2n),this.k},s.th=function(e){this.d=e},s.yh=function(){var e;return this.e==null&&(e=ee(this.d),this.e=e==0?tee:x(Zn,rn,1,e,5,1)),this},s.Ah=function(){return 0};var tee;w(Bn,"DynamicEObjectImpl",780),b(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},UEn),s.Fb=function(e){return this===e},s.Hb=function(){return vd(this)},s.th=function(e){this.d=e,this.b=q7(e,"key"),this.c=q7(e,sm)},s.Sh=function(){var e;return this.a==-1&&(e=_$(this,this.b),this.a=e==null?0:mt(e)),this.a},s.cd=function(){return _$(this,this.b)},s.dd=function(){return _$(this,this.c)},s.Th=function(e){this.a=e},s.Uh=function(e){ZW(this,this.b,e)},s.ed=function(e){var t;return t=_$(this,this.c),ZW(this,this.c,e),t},s.a=0,w(Bn,"DynamicEObjectImpl/BasicEMapEntry",1376),b(1377,1,{108:1},V2n),s.bk=function(e){throw T(new ye)},s.Ch=function(e){throw T(new ye)},s.Dh=function(e,t){throw T(new ye)},s.Eh=function(e){throw T(new ye)},s.ck=function(){throw T(new ye)},s.dk=function(){return this.a},s.ek=function(){return this.b},s.fk=function(){return this.c},s.gk=function(){throw T(new ye)},s.hk=function(e){throw T(new ye)},s.ik=function(e){this.a=e},s.jk=function(e){this.b=e},s.kk=function(e){this.c=e},w(Bn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),b(510,150,{105:1,92:1,90:1,590:1,147:1,56:1,108:1,49:1,97:1,510:1,150:1,114:1,115:1},ZH),s.Qg=function(e){return vJ(this,e)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new qu((Sn(),nr),ec,this)),this.b):(!this.b&&(this.b=new qu((Sn(),nr),ec,this)),K8(this.b));case 3:return gMn(this);case 4:return!this.a&&(this.a=new Jt(ql,this,4)),this.a;case 5:return!this.c&&(this.c=new Aw(ql,this,5)),this.c}return Es(this,e-ee((Sn(),F1)),On((r=u(Rn(this,16),26),r||F1),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?vJ(this,i):this.Cb.ih(this,-1-c,null,i))),wW(this,u(e,147),i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),F1)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),F1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 2:return!this.b&&(this.b=new qu((Sn(),nr),ec,this)),CE(this.b,e,i);case 3:return wW(this,null,i);case 4:return!this.a&&(this.a=new Jt(ql,this,4)),Gi(this.a,e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),F1)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),F1)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!gMn(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return ys(this,e-ee((Sn(),F1)),On((t=u(Rn(this,16),26),t||F1),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:gfe(this,Te(t));return;case 2:!this.b&&(this.b=new qu((Sn(),nr),ec,this)),aT(this.b,t);return;case 3:INn(this,u(t,147));return;case 4:!this.a&&(this.a=new Jt(ql,this,4)),de(this.a),!this.a&&(this.a=new Jt(ql,this,4)),Dt(this.a,u(t,14));return;case 5:!this.c&&(this.c=new Aw(ql,this,5)),de(this.c),!this.c&&(this.c=new Aw(ql,this,5)),Dt(this.c,u(t,14));return}Ss(this,e-ee((Sn(),F1)),On((i=u(Rn(this,16),26),i||F1),e),t)},s.zh=function(){return Sn(),F1},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:mV(this,null);return;case 2:!this.b&&(this.b=new qu((Sn(),nr),ec,this)),this.b.c.$b();return;case 3:INn(this,null);return;case 4:!this.a&&(this.a=new Jt(ql,this,4)),de(this.a);return;case 5:!this.c&&(this.c=new Aw(ql,this,5)),de(this.c);return}Ms(this,e-ee((Sn(),F1)),On((t=u(Rn(this,16),26),t||F1),e))},s.Ib=function(){return zDn(this)},s.d=null,w(Bn,"EAnnotationImpl",510),b(151,705,Jtn,Wu),s.Xh=function(e,t){Yre(this,e,u(t,42))},s.lk=function(e,t){return Uue(this,u(e,42),t)},s.pi=function(e){return u(u(this.c,69).pi(e),133)},s.Zh=function(){return u(this.c,69).Zh()},s.$h=function(){return u(this.c,69).$h()},s._h=function(e){return u(this.c,69)._h(e)},s.mk=function(e,t){return CE(this,e,t)},s.Wj=function(e){return u(this.c,76).Wj(e)},s.rj=function(){},s.fj=function(){return u(this.c,76).fj()},s.tj=function(e,t,i){var r;return r=u(ts(this.b).Nh().Jh(this.b),133),r.Th(e),r.Uh(t),r.ed(i),r},s.uj=function(){return new Bq(this)},s.Wb=function(e){aT(this,e)},s.Xj=function(){u(this.c,76).Xj()},w(vt,"EcoreEMap",151),b(158,151,Jtn,qu),s.qj=function(){var e,t,i,r,c,o;if(this.d==null){for(o=x(o1n,Qtn,63,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.nj(),133),r=t.Sh(),c=(r&nt)%o.length,e=o[c],!e&&(e=o[c]=new Bq(this)),e.Fc(t);this.d=o}},w(Bn,"EAnnotationImpl/1",158),b(284,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,472:1,49:1,97:1,150:1,284:1,114:1,115:1}),s._g=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),!!this.$j();case 7:return qn(),c=this.s,c>=1;case 8:return t?Hs(this):this.r;case 9:return this.q}return Es(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 9:return BD(this,i)}return c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Rc(this),t-ee(this.zh()),e,i)},s.lh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.$j();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Md(this.q).i==0)}return ys(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:this.Lh(Te(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:this.ok(u(t,19).a);return;case 8:ja(this,u(t,138));return;case 9:r=bf(this,u(t,87),null),r&&r.Fi();return}Ss(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return Sn(),nee},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:this.Lh(null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:this.ok(1);return;case 8:ja(this,null);return;case 9:i=bf(this,null,null),i&&i.Fi();return}Ms(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.Gh=function(){Hs(this),this.Bb|=1},s.Yj=function(){return Hs(this)},s.Zj=function(){return this.t},s.$j=function(){var e;return e=this.t,e>1||e==-1},s.hi=function(){return(this.Bb&512)!=0},s.nk=function(e,t){return dQ(this,e,t)},s.ok=function(e){ob(this,e)},s.Ib=function(){return CY(this)},s.s=0,s.t=1,w(Bn,"ETypedElementImpl",284),b(449,284,{105:1,92:1,90:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,449:1,284:1,114:1,115:1,677:1}),s.Qg=function(e){return Axn(this,e)},s._g=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),!!this.$j();case 7:return qn(),c=this.s,c>=1;case 8:return t?Hs(this):this.r;case 9:return this.q;case 10:return qn(),!!(this.Bb&Co);case 11:return qn(),!!(this.Bb&Lb);case 12:return qn(),!!(this.Bb&Sb);case 13:return this.j;case 14:return g4(this);case 15:return qn(),!!(this.Bb&vu);case 16:return qn(),!!(this.Bb&Rf);case 17:return Z0(this)}return Es(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?Axn(this,i):this.Cb.ih(this,-1-c,null,i))),ss(this,e,17,i)}return o=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),o.Nj().Qj(this,Rc(this),t-ee(this.zh()),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 9:return BD(this,i);case 17:return ss(this,null,17,i)}return c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Rc(this),t-ee(this.zh()),e,i)},s.lh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.$j();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Md(this.q).i==0);case 10:return(this.Bb&Co)==0;case 11:return(this.Bb&Lb)!=0;case 12:return(this.Bb&Sb)!=0;case 13:return this.j!=null;case 14:return g4(this)!=null;case 15:return(this.Bb&vu)!=0;case 16:return(this.Bb&Rf)!=0;case 17:return!!Z0(this)}return ys(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:a$(this,Te(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:this.ok(u(t,19).a);return;case 8:ja(this,u(t,138));return;case 9:r=bf(this,u(t,87),null),r&&r.Fi();return;case 10:Z3(this,on(sn(t)));return;case 11:t4(this,on(sn(t)));return;case 12:n4(this,on(sn(t)));return;case 13:wz(this,Te(t));return;case 15:e4(this,on(sn(t)));return;case 16:i4(this,on(sn(t)));return}Ss(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return Sn(),Zne},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,88)&&mb(Iu(u(this.Cb,88)),4),Dc(this,null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:this.ok(1);return;case 8:ja(this,null);return;case 9:i=bf(this,null,null),i&&i.Fi();return;case 10:Z3(this,!0);return;case 11:t4(this,!1);return;case 12:n4(this,!1);return;case 13:this.i=null,iT(this,null);return;case 15:e4(this,!1);return;case 16:i4(this,!1);return}Ms(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.Gh=function(){m3(jr((wu(),Fi),this)),Hs(this),this.Bb|=1},s.Gj=function(){return this.f},s.zj=function(){return g4(this)},s.Hj=function(){return Z0(this)},s.Lj=function(){return null},s.pk=function(){return this.k},s.aj=function(){return this.n},s.Mj=function(){return ZT(this)},s.Nj=function(){var e,t,i,r,c,o,f,h,l;return this.p||(i=Z0(this),(i.i==null&&Bf(i),i.i).length,r=this.Lj(),r&&ee(Z0(r)),c=Hs(this),f=c.Bj(),e=f?f.i&1?f==_u?si:f==be?Ui:f==lw?W4:f==ji?Si:f==Ql?l0:f==Wg?a0:f==ku?fp:vm:f:null,t=g4(this),h=c.zj(),Qge(this),this.Bb&Rf&&((o=TJ((wu(),Fi),i))&&o!=this||(o=S2(jr(Fi,this))))?this.p=new $kn(this,o):this.$j()?this.rk()?r?this.Bb&vu?e?this.sk()?this.p=new oa(47,e,this,r):this.p=new oa(5,e,this,r):this.sk()?this.p=new la(46,this,r):this.p=new la(4,this,r):e?this.sk()?this.p=new oa(49,e,this,r):this.p=new oa(7,e,this,r):this.sk()?this.p=new la(48,this,r):this.p=new la(6,this,r):this.Bb&vu?e?e==_a?this.p=new s1(50,Fne,this):this.sk()?this.p=new s1(43,e,this):this.p=new s1(1,e,this):this.sk()?this.p=new f1(42,this):this.p=new f1(0,this):e?e==_a?this.p=new s1(41,Fne,this):this.sk()?this.p=new s1(45,e,this):this.p=new s1(3,e,this):this.sk()?this.p=new f1(44,this):this.p=new f1(2,this):I(c,148)?e==sI?this.p=new f1(40,this):this.Bb&512?this.Bb&vu?e?this.p=new s1(9,e,this):this.p=new f1(8,this):e?this.p=new s1(11,e,this):this.p=new f1(10,this):this.Bb&vu?e?this.p=new s1(13,e,this):this.p=new f1(12,this):e?this.p=new s1(15,e,this):this.p=new f1(14,this):r?(l=r.t,l>1||l==-1?this.sk()?this.Bb&vu?e?this.p=new oa(25,e,this,r):this.p=new la(24,this,r):e?this.p=new oa(27,e,this,r):this.p=new la(26,this,r):this.Bb&vu?e?this.p=new oa(29,e,this,r):this.p=new la(28,this,r):e?this.p=new oa(31,e,this,r):this.p=new la(30,this,r):this.sk()?this.Bb&vu?e?this.p=new oa(33,e,this,r):this.p=new la(32,this,r):e?this.p=new oa(35,e,this,r):this.p=new la(34,this,r):this.Bb&vu?e?this.p=new oa(37,e,this,r):this.p=new la(36,this,r):e?this.p=new oa(39,e,this,r):this.p=new la(38,this,r)):this.sk()?this.Bb&vu?e?this.p=new s1(17,e,this):this.p=new f1(16,this):e?this.p=new s1(19,e,this):this.p=new f1(18,this):this.Bb&vu?e?this.p=new s1(21,e,this):this.p=new f1(20,this):e?this.p=new s1(23,e,this):this.p=new f1(22,this):this.qk()?this.sk()?this.p=new kEn(u(c,26),this,r):this.p=new YW(u(c,26),this,r):I(c,148)?e==sI?this.p=new f1(40,this):this.Bb&vu?e?this.p=new vCn(t,h,this,(Rx(),f==be?T1n:f==_u?k1n:f==Ql?M1n:f==lw?C1n:f==ji?E1n:f==Wg?A1n:f==ku?y1n:f==Fs?j1n:yH)):this.p=new ITn(u(c,148),t,h,this):e?this.p=new pCn(t,h,this,(Rx(),f==be?T1n:f==_u?k1n:f==Ql?M1n:f==lw?C1n:f==ji?E1n:f==Wg?A1n:f==ku?y1n:f==Fs?j1n:yH)):this.p=new PTn(u(c,148),t,h,this):this.rk()?r?this.Bb&vu?this.sk()?this.p=new jEn(u(c,26),this,r):this.p=new qU(u(c,26),this,r):this.sk()?this.p=new yEn(u(c,26),this,r):this.p=new bD(u(c,26),this,r):this.Bb&vu?this.sk()?this.p=new pjn(u(c,26),this):this.p=new iU(u(c,26),this):this.sk()?this.p=new gjn(u(c,26),this):this.p=new nD(u(c,26),this):this.sk()?r?this.Bb&vu?this.p=new EEn(u(c,26),this,r):this.p=new KU(u(c,26),this,r):this.Bb&vu?this.p=new vjn(u(c,26),this):this.p=new rU(u(c,26),this):r?this.Bb&vu?this.p=new CEn(u(c,26),this,r):this.p=new HU(u(c,26),this,r):this.Bb&vu?this.p=new mjn(u(c,26),this):this.p=new NE(u(c,26),this)),this.p},s.Ij=function(){return(this.Bb&Co)!=0},s.qk=function(){return!1},s.rk=function(){return!1},s.Jj=function(){return(this.Bb&Rf)!=0},s.Oj=function(){return H$(this)},s.sk=function(){return!1},s.Kj=function(){return(this.Bb&vu)!=0},s.tk=function(e){this.k=e},s.Lh=function(e){a$(this,e)},s.Ib=function(){return pM(this)},s.e=!1,s.n=0,w(Bn,"EStructuralFeatureImpl",449),b(322,449,{105:1,92:1,90:1,34:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,322:1,150:1,449:1,284:1,114:1,115:1,677:1},KI),s._g=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),!!kY(this);case 7:return qn(),c=this.s,c>=1;case 8:return t?Hs(this):this.r;case 9:return this.q;case 10:return qn(),!!(this.Bb&Co);case 11:return qn(),!!(this.Bb&Lb);case 12:return qn(),!!(this.Bb&Sb);case 13:return this.j;case 14:return g4(this);case 15:return qn(),!!(this.Bb&vu);case 16:return qn(),!!(this.Bb&Rf);case 17:return Z0(this);case 18:return qn(),!!(this.Bb&uc);case 19:return t?ux(this):ISn(this)}return Es(this,e-ee((Sn(),ow)),On((r=u(Rn(this,16),26),r||ow),e),t,i)},s.lh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return kY(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Md(this.q).i==0);case 10:return(this.Bb&Co)==0;case 11:return(this.Bb&Lb)!=0;case 12:return(this.Bb&Sb)!=0;case 13:return this.j!=null;case 14:return g4(this)!=null;case 15:return(this.Bb&vu)!=0;case 16:return(this.Bb&Rf)!=0;case 17:return!!Z0(this);case 18:return(this.Bb&uc)!=0;case 19:return!!ISn(this)}return ys(this,e-ee((Sn(),ow)),On((t=u(Rn(this,16),26),t||ow),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:a$(this,Te(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:o8n(this,u(t,19).a);return;case 8:ja(this,u(t,138));return;case 9:r=bf(this,u(t,87),null),r&&r.Fi();return;case 10:Z3(this,on(sn(t)));return;case 11:t4(this,on(sn(t)));return;case 12:n4(this,on(sn(t)));return;case 13:wz(this,Te(t));return;case 15:e4(this,on(sn(t)));return;case 16:i4(this,on(sn(t)));return;case 18:Ox(this,on(sn(t)));return}Ss(this,e-ee((Sn(),ow)),On((i=u(Rn(this,16),26),i||ow),e),t)},s.zh=function(){return Sn(),ow},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,88)&&mb(Iu(u(this.Cb,88)),4),Dc(this,null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:this.b=0,ob(this,1);return;case 8:ja(this,null);return;case 9:i=bf(this,null,null),i&&i.Fi();return;case 10:Z3(this,!0);return;case 11:t4(this,!1);return;case 12:n4(this,!1);return;case 13:this.i=null,iT(this,null);return;case 15:e4(this,!1);return;case 16:i4(this,!1);return;case 18:Ox(this,!1);return}Ms(this,e-ee((Sn(),ow)),On((t=u(Rn(this,16),26),t||ow),e))},s.Gh=function(){ux(this),m3(jr((wu(),Fi),this)),Hs(this),this.Bb|=1},s.$j=function(){return kY(this)},s.nk=function(e,t){return this.b=0,this.a=null,dQ(this,e,t)},s.ok=function(e){o8n(this,e)},s.Ib=function(){var e;return this.Db&64?pM(this):(e=new Ns(pM(this)),e.a+=" (iD: ",r1(e,(this.Bb&uc)!=0),e.a+=")",e.a)},s.b=0,w(Bn,"EAttributeImpl",322),b(351,438,{105:1,92:1,90:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1}),s.uk=function(e){return e.Tg()==this},s.Qg=function(e){return lF(this,e)},s.Rg=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Vd(this);case 4:return this.zj();case 5:return this.F;case 6:return t?ts(this):j3(this);case 7:return!this.A&&(this.A=new hu(zc,this,7)),this.A}return Es(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?lF(this,i):this.Cb.ih(this,-1-c,null,i))),ss(this,e,6,i)}return o=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),o.Nj().Qj(this,Rc(this),t-ee(this.zh()),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 6:return ss(this,null,6,i);case 7:return!this.A&&(this.A=new hu(zc,this,7)),Gi(this.A,e,i)}return c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Rc(this),t-ee(this.zh()),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Vd(this);case 4:return this.zj()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!j3(this);case 7:return!!this.A&&this.A.i!=0}return ys(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:pC(this,Te(t));return;case 2:KO(this,Te(t));return;case 5:j4(this,Te(t));return;case 7:!this.A&&(this.A=new hu(zc,this,7)),de(this.A),!this.A&&(this.A=new hu(zc,this,7)),Dt(this.A,u(t,14));return}Ss(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return Sn(),Wne},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,179)&&(u(this.Cb,179).tb=null),Dc(this,null);return;case 2:V3(this,null),N3(this,this.D);return;case 5:j4(this,null);return;case 7:!this.A&&(this.A=new hu(zc,this,7)),de(this.A);return}Ms(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.yj=function(){var e;return this.G==-1&&(this.G=(e=ts(this),e?v1(e.Mh(),this):-1)),this.G},s.zj=function(){return null},s.Aj=function(){return ts(this)},s.vk=function(){return this.v},s.Bj=function(){return Vd(this)},s.Cj=function(){return this.D!=null?this.D:this.B},s.Dj=function(){return this.F},s.wj=function(e){return iL(this,e)},s.wk=function(e){this.v=e},s.xk=function(e){uOn(this,e)},s.yk=function(e){this.C=e},s.Lh=function(e){pC(this,e)},s.Ib=function(){return PT(this)},s.C=null,s.D=null,s.G=-1,w(Bn,"EClassifierImpl",351),b(88,351,{105:1,92:1,90:1,26:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,88:1,351:1,150:1,473:1,114:1,115:1,676:1},rq),s.uk=function(e){return Due(this,e.Tg())},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Vd(this);case 4:return null;case 5:return this.F;case 6:return t?ts(this):j3(this);case 7:return!this.A&&(this.A=new hu(zc,this,7)),this.A;case 8:return qn(),!!(this.Bb&256);case 9:return qn(),!!(this.Bb&512);case 10:return Mr(this);case 11:return!this.q&&(this.q=new V(ro,this,11,10)),this.q;case 12:return ig(this);case 13:return x6(this);case 14:return x6(this),this.r;case 15:return ig(this),this.k;case 16:return hY(this);case 17:return oL(this);case 18:return Bf(this);case 19:return hM(this);case 20:return ig(this),this.o;case 21:return!this.s&&(this.s=new V(su,this,21,17)),this.s;case 22:return wc(this);case 23:return WF(this)}return Es(this,e-ee((Sn(),Ul)),On((r=u(Rn(this,16),26),r||Ul),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?lF(this,i):this.Cb.ih(this,-1-c,null,i))),ss(this,e,6,i);case 11:return!this.q&&(this.q=new V(ro,this,11,10)),$c(this.q,e,i);case 21:return!this.s&&(this.s=new V(su,this,21,17)),$c(this.s,e,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),Ul)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),Ul)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 6:return ss(this,null,6,i);case 7:return!this.A&&(this.A=new hu(zc,this,7)),Gi(this.A,e,i);case 11:return!this.q&&(this.q=new V(ro,this,11,10)),Gi(this.q,e,i);case 21:return!this.s&&(this.s=new V(su,this,21,17)),Gi(this.s,e,i);case 22:return Gi(wc(this),e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),Ul)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),Ul)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Vd(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!j3(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&wc(this.u.a).i!=0&&!(this.n&&nF(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return ig(this).i!=0;case 13:return x6(this).i!=0;case 14:return x6(this),this.r.i!=0;case 15:return ig(this),this.k.i!=0;case 16:return hY(this).i!=0;case 17:return oL(this).i!=0;case 18:return Bf(this).i!=0;case 19:return hM(this).i!=0;case 20:return ig(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&nF(this.n);case 23:return WF(this).i!=0}return ys(this,e-ee((Sn(),Ul)),On((t=u(Rn(this,16),26),t||Ul),e))},s.oh=function(e){var t;return t=this.i==null||this.q&&this.q.i!=0?null:q7(this,e),t||KZ(this,e)},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:pC(this,Te(t));return;case 2:KO(this,Te(t));return;case 5:j4(this,Te(t));return;case 7:!this.A&&(this.A=new hu(zc,this,7)),de(this.A),!this.A&&(this.A=new hu(zc,this,7)),Dt(this.A,u(t,14));return;case 8:wQ(this,on(sn(t)));return;case 9:gQ(this,on(sn(t)));return;case 10:N6(Mr(this)),Dt(Mr(this),u(t,14));return;case 11:!this.q&&(this.q=new V(ro,this,11,10)),de(this.q),!this.q&&(this.q=new V(ro,this,11,10)),Dt(this.q,u(t,14));return;case 21:!this.s&&(this.s=new V(su,this,21,17)),de(this.s),!this.s&&(this.s=new V(su,this,21,17)),Dt(this.s,u(t,14));return;case 22:de(wc(this)),Dt(wc(this),u(t,14));return}Ss(this,e-ee((Sn(),Ul)),On((i=u(Rn(this,16),26),i||Ul),e),t)},s.zh=function(){return Sn(),Ul},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,179)&&(u(this.Cb,179).tb=null),Dc(this,null);return;case 2:V3(this,null),N3(this,this.D);return;case 5:j4(this,null);return;case 7:!this.A&&(this.A=new hu(zc,this,7)),de(this.A);return;case 8:wQ(this,!1);return;case 9:gQ(this,!1);return;case 10:this.u&&N6(this.u);return;case 11:!this.q&&(this.q=new V(ro,this,11,10)),de(this.q);return;case 21:!this.s&&(this.s=new V(su,this,21,17)),de(this.s);return;case 22:this.n&&de(this.n);return}Ms(this,e-ee((Sn(),Ul)),On((t=u(Rn(this,16),26),t||Ul),e))},s.Gh=function(){var e,t;if(ig(this),x6(this),hY(this),oL(this),Bf(this),hM(this),WF(this),Q5(Voe(Iu(this))),this.s)for(e=0,t=this.s.i;e=0;--t)D(this,t);return BQ(this,e)},s.Xj=function(){de(this)},s.oi=function(e,t){return PIn(this,e,t)},w(vt,"EcoreEList",622),b(496,622,Nr,j8),s.ai=function(){return!1},s.aj=function(){return this.c},s.bj=function(){return!1},s.Fk=function(){return!0},s.hi=function(){return!0},s.li=function(e,t){return t},s.ni=function(){return!1},s.c=0,w(vt,"EObjectEList",496),b(85,496,Nr,Jt),s.bj=function(){return!0},s.Dk=function(){return!1},s.rk=function(){return!0},w(vt,"EObjectContainmentEList",85),b(545,85,Nr,dE),s.ci=function(){this.b=!0},s.fj=function(){return this.b},s.Xj=function(){var e;de(this),Hu(this.e)?(e=this.b,this.b=!1,et(this.e,new mo(this.e,2,this.c,e,!1))):this.b=!1},s.b=!1,w(vt,"EObjectContainmentEList/Unsettable",545),b(1140,545,Nr,wCn),s.ii=function(e,t){var i,r;return i=u(a6(this,e,t),87),Hu(this.e)&&zp(this,new q8(this.a,7,(Sn(),Xne),Q(t),(r=i.c,I(r,88)?u(r,26):uo),e)),i},s.jj=function(e,t){return N2e(this,u(e,87),t)},s.kj=function(e,t){return L2e(this,u(e,87),t)},s.lj=function(e,t,i){return B4e(this,u(e,87),u(t,87),i)},s.Zi=function(e,t,i,r,c){switch(e){case 3:return G5(this,e,t,i,r,this.i>1);case 5:return G5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Lh(this.e,e,this.c,t,i,r,!0)}},s.ij=function(){return!0},s.fj=function(){return nF(this)},s.Xj=function(){de(this)},w(Bn,"EClassImpl/1",1140),b(1154,1153,Vtn),s.ui=function(e){var t,i,r,c,o,f,h;if(i=e.xi(),i!=8){if(r=kpe(e),r==0)switch(i){case 1:case 9:{h=e.Bi(),h!=null&&(t=Iu(u(h,473)),!t.c&&(t.c=new Rp),KC(t.c,e.Ai())),f=e.zi(),f!=null&&(c=u(f,473),c.Bb&1||(t=Iu(c),!t.c&&(t.c=new Rp),me(t.c,u(e.Ai(),26))));break}case 3:{f=e.zi(),f!=null&&(c=u(f,473),c.Bb&1||(t=Iu(c),!t.c&&(t.c=new Rp),me(t.c,u(e.Ai(),26))));break}case 5:{if(f=e.zi(),f!=null)for(o=u(f,14).Kc();o.Ob();)c=u(o.Pb(),473),c.Bb&1||(t=Iu(c),!t.c&&(t.c=new Rp),me(t.c,u(e.Ai(),26)));break}case 4:{h=e.Bi(),h!=null&&(c=u(h,473),c.Bb&1||(t=Iu(c),!t.c&&(t.c=new Rp),KC(t.c,e.Ai())));break}case 6:{if(h=e.Bi(),h!=null)for(o=u(h,14).Kc();o.Ob();)c=u(o.Pb(),473),c.Bb&1||(t=Iu(c),!t.c&&(t.c=new Rp),KC(t.c,e.Ai()));break}}this.Hk(r)}},s.Hk=function(e){bBn(this,e)},s.b=63,w(Bn,"ESuperAdapter",1154),b(1155,1154,Vtn,Amn),s.Hk=function(e){mb(this,e)},w(Bn,"EClassImpl/10",1155),b(1144,696,Nr),s.Vh=function(e,t){return jF(this,e,t)},s.Wh=function(e){return hxn(this,e)},s.Xh=function(e,t){g7(this,e,t)},s.Yh=function(e){B8(this,e)},s.pi=function(e){return WX(this,e)},s.mi=function(e,t){return K$(this,e,t)},s.lk=function(e,t){throw T(new ye)},s.Zh=function(){return new g2(this)},s.$h=function(){return new h8(this)},s._h=function(e){return e7(this,e)},s.mk=function(e,t){throw T(new ye)},s.Wj=function(e){return this},s.fj=function(){return this.i!=0},s.Wb=function(e){throw T(new ye)},s.Xj=function(){throw T(new ye)},w(vt,"EcoreEList/UnmodifiableEList",1144),b(319,1144,Nr,Ew),s.ni=function(){return!1},w(vt,"EcoreEList/UnmodifiableEList/FastCompare",319),b(1147,319,Nr,YOn),s.Xc=function(e){var t,i,r;if(I(e,170)&&(t=u(e,170),i=t.aj(),i!=-1)){for(r=this.i;i4)if(this.wj(e)){if(this.rk()){if(r=u(e,49),i=r.Ug(),h=i==this.b&&(this.Dk()?r.Og(r.Vg(),u(On(Vc(this.b),this.aj()).Yj(),26).Bj())==ir(u(On(Vc(this.b),this.aj()),18)).n:-1-r.Vg()==this.aj()),this.Ek()&&!h&&!i&&r.Zg()){for(c=0;c1||r==-1)):!1},s.Dk=function(){var e,t,i;return t=On(Vc(this.b),this.aj()),I(t,99)?(e=u(t,18),i=ir(e),!!i):!1},s.Ek=function(){var e,t;return t=On(Vc(this.b),this.aj()),I(t,99)?(e=u(t,18),(e.Bb&Yi)!=0):!1},s.Xc=function(e){var t,i,r,c;if(r=this.Qi(e),r>=0)return r;if(this.Fk()){for(i=0,c=this.Vi();i=0;--e)Y7(this,e,this.Oi(e));return this.Wi()},s.Qc=function(e){var t;if(this.Ek())for(t=this.Vi()-1;t>=0;--t)Y7(this,t,this.Oi(t));return this.Xi(e)},s.Xj=function(){N6(this)},s.oi=function(e,t){return dPn(this,e,t)},w(vt,"DelegatingEcoreEList",742),b(1150,742,Ztn,Ijn),s.Hi=function(e,t){uue(this,e,u(t,26))},s.Ii=function(e){nce(this,u(e,26))},s.Oi=function(e){var t,i;return t=u(D(wc(this.a),e),87),i=t.c,I(i,88)?u(i,26):(Sn(),uo)},s.Ti=function(e){var t,i;return t=u(yb(wc(this.a),e),87),i=t.c,I(i,88)?u(i,26):(Sn(),uo)},s.Ui=function(e,t){return s3e(this,e,u(t,26))},s.ai=function(){return!1},s.Zi=function(e,t,i,r,c){return null},s.Ji=function(){return new Pmn(this)},s.Ki=function(){de(wc(this.a))},s.Li=function(e){return qDn(this,e)},s.Mi=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!qDn(this,t))return!1;return!0},s.Ni=function(e){var t,i,r;if(I(e,15)&&(r=u(e,15),r.gc()==wc(this.a).i)){for(t=r.Kc(),i=new ie(this);t.Ob();)if(B(t.Pb())!==B(oe(i)))return!1;return!0}return!1},s.Pi=function(){var e,t,i,r,c;for(i=1,t=new ie(wc(this.a));t.e!=t.i.gc();)e=u(oe(t),87),r=(c=e.c,I(c,88)?u(c,26):(Sn(),uo)),i=31*i+(r?vd(r):0);return i},s.Qi=function(e){var t,i,r,c;for(r=0,i=new ie(wc(this.a));i.e!=i.i.gc();){if(t=u(oe(i),87),B(e)===B((c=t.c,I(c,88)?u(c,26):(Sn(),uo))))return r;++r}return-1},s.Ri=function(){return wc(this.a).i==0},s.Si=function(){return null},s.Vi=function(){return wc(this.a).i},s.Wi=function(){var e,t,i,r,c,o;for(o=wc(this.a).i,c=x(Zn,rn,1,o,5,1),i=0,t=new ie(wc(this.a));t.e!=t.i.gc();)e=u(oe(t),87),c[i++]=(r=e.c,I(r,88)?u(r,26):(Sn(),uo));return c},s.Xi=function(e){var t,i,r,c,o,f,h;for(h=wc(this.a).i,e.lengthh&&Mt(e,h,null),r=0,i=new ie(wc(this.a));i.e!=i.i.gc();)t=u(oe(i),87),o=(f=t.c,I(f,88)?u(f,26):(Sn(),uo)),Mt(e,r++,o);return e},s.Yi=function(){var e,t,i,r,c;for(c=new i1,c.a+="[",e=wc(this.a),t=0,r=wc(this.a).i;t>16,c>=0?lF(this,i):this.Cb.ih(this,-1-c,null,i))),ss(this,e,6,i);case 9:return!this.a&&(this.a=new V(e1,this,9,5)),$c(this.a,e,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),Wl)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),Wl)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 6:return ss(this,null,6,i);case 7:return!this.A&&(this.A=new hu(zc,this,7)),Gi(this.A,e,i);case 9:return!this.a&&(this.a=new V(e1,this,9,5)),Gi(this.a,e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),Wl)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),Wl)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Vd(this);case 4:return!!eQ(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!j3(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return ys(this,e-ee((Sn(),Wl)),On((t=u(Rn(this,16),26),t||Wl),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:pC(this,Te(t));return;case 2:KO(this,Te(t));return;case 5:j4(this,Te(t));return;case 7:!this.A&&(this.A=new hu(zc,this,7)),de(this.A),!this.A&&(this.A=new hu(zc,this,7)),Dt(this.A,u(t,14));return;case 8:ET(this,on(sn(t)));return;case 9:!this.a&&(this.a=new V(e1,this,9,5)),de(this.a),!this.a&&(this.a=new V(e1,this,9,5)),Dt(this.a,u(t,14));return}Ss(this,e-ee((Sn(),Wl)),On((i=u(Rn(this,16),26),i||Wl),e),t)},s.zh=function(){return Sn(),Wl},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,179)&&(u(this.Cb,179).tb=null),Dc(this,null);return;case 2:V3(this,null),N3(this,this.D);return;case 5:j4(this,null);return;case 7:!this.A&&(this.A=new hu(zc,this,7)),de(this.A);return;case 8:ET(this,!0);return;case 9:!this.a&&(this.a=new V(e1,this,9,5)),de(this.a);return}Ms(this,e-ee((Sn(),Wl)),On((t=u(Rn(this,16),26),t||Wl),e))},s.Gh=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?u(this.Cb,671):null}return Es(this,e-ee((Sn(),L1)),On((r=u(Rn(this,16),26),r||L1),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?Fxn(this,i):this.Cb.ih(this,-1-c,null,i))),ss(this,e,5,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),L1)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),L1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 5:return ss(this,null,5,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),L1)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),L1)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,671))}return ys(this,e-ee((Sn(),L1)),On((t=u(Rn(this,16),26),t||L1),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:Dc(this,Te(t));return;case 2:W$(this,u(t,19).a);return;case 3:ILn(this,u(t,1940));return;case 4:V$(this,Te(t));return}Ss(this,e-ee((Sn(),L1)),On((i=u(Rn(this,16),26),i||L1),e),t)},s.zh=function(){return Sn(),L1},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:Dc(this,null);return;case 2:W$(this,0);return;case 3:ILn(this,null);return;case 4:V$(this,null);return}Ms(this,e-ee((Sn(),L1)),On((t=u(Rn(this,16),26),t||L1),e))},s.Ib=function(){var e;return e=this.c,e??this.zb},s.b=null,s.c=null,s.d=0,w(Bn,"EEnumLiteralImpl",573);var aMe=Et(Bn,"EFactoryImpl/InternalEDateTimeFormat");b(489,1,{2015:1},L9),w(Bn,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),b(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},cd),s.Sg=function(e,t,i){var r;return i=ss(this,e,t,i),this.e&&I(e,170)&&(r=fM(this,this.e),r!=this.c&&(i=E4(this,r,i))),i},s._g=function(e,t,i){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new Jt(ar,this,1)),this.d;case 2:return t?kM(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?iF(this):this.a}return Es(this,e-ee((Sn(),P0)),On((r=u(Rn(this,16),26),r||P0),e),t,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return $Dn(this,null,i);case 1:return!this.d&&(this.d=new Jt(ar,this,1)),Gi(this.d,e,i);case 3:return DDn(this,null,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),P0)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),P0)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return ys(this,e-ee((Sn(),P0)),On((t=u(Rn(this,16),26),t||P0),e))},s.sh=function(e,t){var i;switch(e){case 0:Zxn(this,u(t,87));return;case 1:!this.d&&(this.d=new Jt(ar,this,1)),de(this.d),!this.d&&(this.d=new Jt(ar,this,1)),Dt(this.d,u(t,14));return;case 3:xJ(this,u(t,87));return;case 4:JJ(this,u(t,836));return;case 5:D3(this,u(t,138));return}Ss(this,e-ee((Sn(),P0)),On((i=u(Rn(this,16),26),i||P0),e),t)},s.zh=function(){return Sn(),P0},s.Bh=function(e){var t;switch(e){case 0:Zxn(this,null);return;case 1:!this.d&&(this.d=new Jt(ar,this,1)),de(this.d);return;case 3:xJ(this,null);return;case 4:JJ(this,null);return;case 5:D3(this,null);return}Ms(this,e-ee((Sn(),P0)),On((t=u(Rn(this,16),26),t||P0),e))},s.Ib=function(){var e;return e=new Ju(jo(this)),e.a+=" (expression: ",aL(this,e),e.a+=")",e.a};var m1n;w(Bn,"EGenericTypeImpl",241),b(1969,1964,AA),s.Xh=function(e,t){Ajn(this,e,t)},s.lk=function(e,t){return Ajn(this,this.gc(),e),t},s.pi=function(e){return Go(this.Gi(),e)},s.Zh=function(){return this.$h()},s.Gi=function(){return new $mn(this)},s.$h=function(){return this._h(0)},s._h=function(e){return this.Gi().Zc(e)},s.mk=function(e,t){return lb(this,e,!0),t},s.ii=function(e,t){var i,r;return r=dF(this,t),i=this.Zc(e),i.Rb(r),r},s.ji=function(e,t){var i;lb(this,t,!0),i=this.Zc(e),i.Rb(t)},w(vt,"AbstractSequentialInternalEList",1969),b(486,1969,AA,f8),s.pi=function(e){return Go(this.Gi(),e)},s.Zh=function(){return this.b==null?(c1(),c1(),_y):this.Jk()},s.Gi=function(){return new Ykn(this.a,this.b)},s.$h=function(){return this.b==null?(c1(),c1(),_y):this.Jk()},s._h=function(e){var t,i;if(this.b==null){if(e<0||e>1)throw T(new vr(om+e+", size=0"));return c1(),c1(),_y}for(i=this.Jk(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.Gj()!=Sv||t.aj()!=0)&&(!this.Mk()||this.b.mh(t))){if(o=this.b.bh(t,this.Lk()),this.f=(er(),u(t,66).Oj()),this.f||t.$j()){if(this.Lk()?(r=u(o,15),this.k=r):(r=u(o,69),this.k=this.j=r),I(this.k,54)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j._h(this.k.gc()):this.k.Zc(this.k.gc()),this.p?zFn(this,this.p):iLn(this))return c=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,72),e.ak(),i=e.dd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(o!=null)return this.k=null,this.p=null,i=o,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,72),e.ak(),i=e.dd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},s.Pb=function(){return dT(this)},s.Tb=function(){return this.a},s.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw T(new ic)},s.Vb=function(){return this.a-1},s.Qb=function(){throw T(new ye)},s.Lk=function(){return!1},s.Wb=function(e){throw T(new ye)},s.Mk=function(){return!0},s.a=0,s.d=0,s.f=!1,s.g=0,s.n=0,s.o=0;var _y;w(vt,"EContentsEList/FeatureIteratorImpl",279),b(697,279,SA,tU),s.Lk=function(){return!0},w(vt,"EContentsEList/ResolvingFeatureIteratorImpl",697),b(1157,697,SA,wjn),s.Mk=function(){return!1},w(Bn,"ENamedElementImpl/1/1",1157),b(1158,279,SA,bjn),s.Mk=function(){return!1},w(Bn,"ENamedElementImpl/1/2",1158),b(36,143,Mk,tb,k$,wi,F$,Lh,mo,uV,qMn,sV,GMn,OX,zMn,hV,UMn,DX,WMn,oV,XMn,N5,q8,YD,fV,VMn,$X,QMn),s._i=function(){return GX(this)},s.gj=function(){var e;return e=GX(this),e?e.zj():null},s.yi=function(e){return this.b==-1&&this.a&&(this.b=this.c.Xg(this.a.aj(),this.a.Gj())),this.c.Og(this.b,e)},s.Ai=function(){return this.c},s.hj=function(){var e;return e=GX(this),e?e.Kj():!1},s.b=-1,w(Bn,"ENotificationImpl",36),b(399,284,{105:1,92:1,90:1,147:1,191:1,56:1,59:1,108:1,472:1,49:1,97:1,150:1,399:1,284:1,114:1,115:1},HI),s.Qg=function(e){return Bxn(this,e)},s._g=function(e,t,i){var r,c,o;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),o=this.t,o>1||o==-1;case 7:return qn(),c=this.s,c>=1;case 8:return t?Hs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,26):null;case 11:return!this.d&&(this.d=new hu(zc,this,11)),this.d;case 12:return!this.c&&(this.c=new V(S0,this,12,10)),this.c;case 13:return!this.a&&(this.a=new w8(this,this)),this.a;case 14:return Ou(this)}return Es(this,e-ee((Sn(),N1)),On((r=u(Rn(this,16),26),r||N1),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?Bxn(this,i):this.Cb.ih(this,-1-c,null,i))),ss(this,e,10,i);case 12:return!this.c&&(this.c=new V(S0,this,12,10)),$c(this.c,e,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),N1)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),N1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 9:return BD(this,i);case 10:return ss(this,null,10,i);case 11:return!this.d&&(this.d=new hu(zc,this,11)),Gi(this.d,e,i);case 12:return!this.c&&(this.c=new V(S0,this,12,10)),Gi(this.c,e,i);case 14:return Gi(Ou(this),e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),N1)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),N1)),e,i)},s.lh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Md(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,26));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Ou(this.a.a).i!=0&&!(this.b&&eF(this.b));case 14:return!!this.b&&eF(this.b)}return ys(this,e-ee((Sn(),N1)),On((t=u(Rn(this,16),26),t||N1),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:Dc(this,Te(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:ob(this,u(t,19).a);return;case 8:ja(this,u(t,138));return;case 9:r=bf(this,u(t,87),null),r&&r.Fi();return;case 11:!this.d&&(this.d=new hu(zc,this,11)),de(this.d),!this.d&&(this.d=new hu(zc,this,11)),Dt(this.d,u(t,14));return;case 12:!this.c&&(this.c=new V(S0,this,12,10)),de(this.c),!this.c&&(this.c=new V(S0,this,12,10)),Dt(this.c,u(t,14));return;case 13:!this.a&&(this.a=new w8(this,this)),N6(this.a),!this.a&&(this.a=new w8(this,this)),Dt(this.a,u(t,14));return;case 14:de(Ou(this)),Dt(Ou(this),u(t,14));return}Ss(this,e-ee((Sn(),N1)),On((i=u(Rn(this,16),26),i||N1),e),t)},s.zh=function(){return Sn(),N1},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:Dc(this,null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:ob(this,1);return;case 8:ja(this,null);return;case 9:i=bf(this,null,null),i&&i.Fi();return;case 11:!this.d&&(this.d=new hu(zc,this,11)),de(this.d);return;case 12:!this.c&&(this.c=new V(S0,this,12,10)),de(this.c);return;case 13:this.a&&N6(this.a);return;case 14:this.b&&de(this.b);return}Ms(this,e-ee((Sn(),N1)),On((t=u(Rn(this,16),26),t||N1),e))},s.Gh=function(){var e,t;if(this.c)for(e=0,t=this.c.i;eh&&Mt(e,h,null),r=0,i=new ie(Ou(this.a));i.e!=i.i.gc();)t=u(oe(i),87),o=(f=t.c,f||(Sn(),Mf)),Mt(e,r++,o);return e},s.Yi=function(){var e,t,i,r,c;for(c=new i1,c.a+="[",e=Ou(this.a),t=0,r=Ou(this.a).i;t1);case 5:return G5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Lh(this.e,e,this.c,t,i,r,!0)}},s.ij=function(){return!0},s.fj=function(){return eF(this)},s.Xj=function(){de(this)},w(Bn,"EOperationImpl/2",1341),b(498,1,{1938:1,498:1},Dkn),w(Bn,"EPackageImpl/1",498),b(16,85,Nr,V),s.zk=function(){return this.d},s.Ak=function(){return this.b},s.Dk=function(){return!0},s.b=0,w(vt,"EObjectContainmentWithInverseEList",16),b(353,16,Nr,p2),s.Ek=function(){return!0},s.li=function(e,t){return W2(this,e,u(t,56))},w(vt,"EObjectContainmentWithInverseEList/Resolving",353),b(298,353,Nr,Q0),s.ci=function(){this.a.tb=null},w(Bn,"EPackageImpl/2",298),b(1228,1,{},Yee),w(Bn,"EPackageImpl/3",1228),b(718,43,sg,rG),s._b=function(e){return mi(e)?ZD(this,e):!!Ar(this.f,e)},w(Bn,"EPackageRegistryImpl",718),b(509,284,{105:1,92:1,90:1,147:1,191:1,56:1,2017:1,108:1,472:1,49:1,97:1,150:1,509:1,284:1,114:1,115:1},qI),s.Qg=function(e){return Rxn(this,e)},s._g=function(e,t,i){var r,c,o;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),o=this.t,o>1||o==-1;case 7:return qn(),c=this.s,c>=1;case 8:return t?Hs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,59):null}return Es(this,e-ee((Sn(),fw)),On((r=u(Rn(this,16),26),r||fw),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),$c(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?Rxn(this,i):this.Cb.ih(this,-1-c,null,i))),ss(this,e,10,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),fw)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),fw)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 9:return BD(this,i);case 10:return ss(this,null,10,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),fw)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),fw)),e,i)},s.lh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Md(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,59))}return ys(this,e-ee((Sn(),fw)),On((t=u(Rn(this,16),26),t||fw),e))},s.zh=function(){return Sn(),fw},w(Bn,"EParameterImpl",509),b(99,449,{105:1,92:1,90:1,147:1,191:1,56:1,18:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,99:1,449:1,284:1,114:1,115:1,677:1},sU),s._g=function(e,t,i){var r,c,o,f;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),f=this.t,f>1||f==-1;case 7:return qn(),c=this.s,c>=1;case 8:return t?Hs(this):this.r;case 9:return this.q;case 10:return qn(),!!(this.Bb&Co);case 11:return qn(),!!(this.Bb&Lb);case 12:return qn(),!!(this.Bb&Sb);case 13:return this.j;case 14:return g4(this);case 15:return qn(),!!(this.Bb&vu);case 16:return qn(),!!(this.Bb&Rf);case 17:return Z0(this);case 18:return qn(),!!(this.Bb&uc);case 19:return qn(),o=ir(this),!!(o&&o.Bb&uc);case 20:return qn(),!!(this.Bb&Yi);case 21:return t?ir(this):this.b;case 22:return t?GV(this):vSn(this);case 23:return!this.a&&(this.a=new Aw(uw,this,23)),this.a}return Es(this,e-ee((Sn(),qg)),On((r=u(Rn(this,16),26),r||qg),e),t,i)},s.lh=function(e){var t,i,r,c;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Md(this.q).i==0);case 10:return(this.Bb&Co)==0;case 11:return(this.Bb&Lb)!=0;case 12:return(this.Bb&Sb)!=0;case 13:return this.j!=null;case 14:return g4(this)!=null;case 15:return(this.Bb&vu)!=0;case 16:return(this.Bb&Rf)!=0;case 17:return!!Z0(this);case 18:return(this.Bb&uc)!=0;case 19:return r=ir(this),!!r&&(r.Bb&uc)!=0;case 20:return(this.Bb&Yi)==0;case 21:return!!this.b;case 22:return!!vSn(this);case 23:return!!this.a&&this.a.i!=0}return ys(this,e-ee((Sn(),qg)),On((t=u(Rn(this,16),26),t||qg),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:a$(this,Te(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:ob(this,u(t,19).a);return;case 8:ja(this,u(t,138));return;case 9:r=bf(this,u(t,87),null),r&&r.Fi();return;case 10:Z3(this,on(sn(t)));return;case 11:t4(this,on(sn(t)));return;case 12:n4(this,on(sn(t)));return;case 13:wz(this,Te(t));return;case 15:e4(this,on(sn(t)));return;case 16:i4(this,on(sn(t)));return;case 18:ale(this,on(sn(t)));return;case 20:yQ(this,on(sn(t)));return;case 21:kV(this,u(t,18));return;case 23:!this.a&&(this.a=new Aw(uw,this,23)),de(this.a),!this.a&&(this.a=new Aw(uw,this,23)),Dt(this.a,u(t,14));return}Ss(this,e-ee((Sn(),qg)),On((i=u(Rn(this,16),26),i||qg),e),t)},s.zh=function(){return Sn(),qg},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,88)&&mb(Iu(u(this.Cb,88)),4),Dc(this,null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:ob(this,1);return;case 8:ja(this,null);return;case 9:i=bf(this,null,null),i&&i.Fi();return;case 10:Z3(this,!0);return;case 11:t4(this,!1);return;case 12:n4(this,!1);return;case 13:this.i=null,iT(this,null);return;case 15:e4(this,!1);return;case 16:i4(this,!1);return;case 18:kQ(this,!1),I(this.Cb,88)&&mb(Iu(u(this.Cb,88)),2);return;case 20:yQ(this,!0);return;case 21:kV(this,null);return;case 23:!this.a&&(this.a=new Aw(uw,this,23)),de(this.a);return}Ms(this,e-ee((Sn(),qg)),On((t=u(Rn(this,16),26),t||qg),e))},s.Gh=function(){GV(this),m3(jr((wu(),Fi),this)),Hs(this),this.Bb|=1},s.Lj=function(){return ir(this)},s.qk=function(){var e;return e=ir(this),!!e&&(e.Bb&uc)!=0},s.rk=function(){return(this.Bb&uc)!=0},s.sk=function(){return(this.Bb&Yi)!=0},s.nk=function(e,t){return this.c=null,dQ(this,e,t)},s.Ib=function(){var e;return this.Db&64?pM(this):(e=new Ns(pM(this)),e.a+=" (containment: ",r1(e,(this.Bb&uc)!=0),e.a+=", resolveProxies: ",r1(e,(this.Bb&Yi)!=0),e.a+=")",e.a)},w(Bn,"EReferenceImpl",99),b(548,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,548:1,114:1,115:1},epn),s.Fb=function(e){return this===e},s.cd=function(){return this.b},s.dd=function(){return this.c},s.Hb=function(){return vd(this)},s.Uh=function(e){pfe(this,Te(e))},s.ed=function(e){return cfe(this,Te(e))},s._g=function(e,t,i){var r;switch(e){case 0:return this.b;case 1:return this.c}return Es(this,e-ee((Sn(),nr)),On((r=u(Rn(this,16),26),r||nr),e),t,i)},s.lh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return ys(this,e-ee((Sn(),nr)),On((t=u(Rn(this,16),26),t||nr),e))},s.sh=function(e,t){var i;switch(e){case 0:vfe(this,Te(t));return;case 1:pV(this,Te(t));return}Ss(this,e-ee((Sn(),nr)),On((i=u(Rn(this,16),26),i||nr),e),t)},s.zh=function(){return Sn(),nr},s.Bh=function(e){var t;switch(e){case 0:gV(this,null);return;case 1:pV(this,null);return}Ms(this,e-ee((Sn(),nr)),On((t=u(Rn(this,16),26),t||nr),e))},s.Sh=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:m1(e)),this.a},s.Th=function(e){this.a=e},s.Ib=function(){var e;return this.Db&64?jo(this):(e=new Ns(jo(this)),e.a+=" (key: ",dr(e,this.b),e.a+=", value: ",dr(e,this.c),e.a+=")",e.a)},s.a=-1,s.b=null,s.c=null;var ec=w(Bn,"EStringToStringMapEntryImpl",548),ree=Et(vt,"FeatureMap/Entry/Internal");b(565,1,PA),s.Ok=function(e){return this.Pk(u(e,49))},s.Pk=function(e){return this.Ok(e)},s.Fb=function(e){var t,i;return this===e?!0:I(e,72)?(t=u(e,72),t.ak()==this.c?(i=this.dd(),i==null?t.dd()==null:tt(i,t.dd())):!1):!1},s.ak=function(){return this.c},s.Hb=function(){var e;return e=this.dd(),mt(this.c)^(e==null?0:mt(e))},s.Ib=function(){var e,t;return e=this.c,t=ts(e.Hj()).Ph(),e.ne(),(t!=null&&t.length!=0?t+":"+e.ne():e.ne())+"="+this.dd()},w(Bn,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),b(776,565,PA,gU),s.Pk=function(e){return new gU(this.c,e)},s.dd=function(){return this.a},s.Qk=function(e,t,i){return xbe(this,e,this.a,t,i)},s.Rk=function(e,t,i){return Fbe(this,e,this.a,t,i)},w(Bn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),b(1314,1,{},$kn),s.Pj=function(e,t,i,r,c){var o;return o=u(S3(e,this.b),215),o.nl(this.a).Wj(r)},s.Qj=function(e,t,i,r,c){var o;return o=u(S3(e,this.b),215),o.el(this.a,r,c)},s.Rj=function(e,t,i,r,c){var o;return o=u(S3(e,this.b),215),o.fl(this.a,r,c)},s.Sj=function(e,t,i){var r;return r=u(S3(e,this.b),215),r.nl(this.a).fj()},s.Tj=function(e,t,i,r){var c;c=u(S3(e,this.b),215),c.nl(this.a).Wb(r)},s.Uj=function(e,t,i){return u(S3(e,this.b),215).nl(this.a)},s.Vj=function(e,t,i){var r;r=u(S3(e,this.b),215),r.nl(this.a).Xj()},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),b(89,1,{},s1,oa,f1,la),s.Pj=function(e,t,i,r,c){var o;if(o=t.Ch(i),o==null&&t.Dh(i,o=IM(this,e)),!c)switch(this.e){case 50:case 41:return u(o,589).sj();case 40:return u(o,215).kl()}return o},s.Qj=function(e,t,i,r,c){var o,f;return f=t.Ch(i),f==null&&t.Dh(i,f=IM(this,e)),o=u(f,69).lk(r,c),o},s.Rj=function(e,t,i,r,c){var o;return o=t.Ch(i),o!=null&&(c=u(o,69).mk(r,c)),c},s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null&&u(r,76).fj()},s.Tj=function(e,t,i,r){var c;c=u(t.Ch(i),76),!c&&t.Dh(i,c=IM(this,e)),c.Wb(r)},s.Uj=function(e,t,i){var r,c;return c=t.Ch(i),c==null&&t.Dh(i,c=IM(this,e)),I(c,76)?u(c,76):(r=u(t.Ch(i),15),new Dmn(r))},s.Vj=function(e,t,i){var r;r=u(t.Ch(i),76),!r&&t.Dh(i,r=IM(this,e)),r.Xj()},s.b=0,s.e=0,w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),b(504,1,{}),s.Qj=function(e,t,i,r,c){throw T(new ye)},s.Rj=function(e,t,i,r,c){throw T(new ye)},s.Uj=function(e,t,i){return new STn(this,e,t,i)};var Th;w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),b(1331,1,WB,STn),s.Wj=function(e){return this.a.Pj(this.c,this.d,this.b,e,!0)},s.fj=function(){return this.a.Sj(this.c,this.d,this.b)},s.Wb=function(e){this.a.Tj(this.c,this.d,this.b,e)},s.Xj=function(){this.a.Vj(this.c,this.d,this.b)},s.b=0,w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),b(769,504,{},YW),s.Pj=function(e,t,i,r,c){return ZF(e,e.eh(),e.Vg())==this.b?this.sk()&&r?NF(e):e.eh():null},s.Qj=function(e,t,i,r,c){var o,f;return e.eh()&&(c=(o=e.Vg(),o>=0?e.Qg(c):e.eh().ih(e,-1-o,null,c))),f=yt(e.Tg(),this.e),e.Sg(r,f,c)},s.Rj=function(e,t,i,r,c){var o;return o=yt(e.Tg(),this.e),e.Sg(null,o,c)},s.Sj=function(e,t,i){var r;return r=yt(e.Tg(),this.e),!!e.eh()&&e.Vg()==r},s.Tj=function(e,t,i,r){var c,o,f,h,l;if(r!=null&&!iL(this.a,r))throw T(new Wp(IA+(I(r,56)?DJ(u(r,56).Tg()):tV(Du(r)))+OA+this.a+"'"));if(c=e.eh(),f=yt(e.Tg(),this.e),B(r)!==B(c)||e.Vg()!=f&&r!=null){if(s4(e,u(r,56)))throw T(new Hn(um+e.Ib()));l=null,c&&(l=(o=e.Vg(),o>=0?e.Qg(l):e.eh().ih(e,-1-o,null,l))),h=u(r,49),h&&(l=h.gh(e,yt(h.Tg(),this.b),null,l)),l=e.Sg(h,f,l),l&&l.Fi()}else e.Lg()&&e.Mg()&&et(e,new wi(e,1,f,r,r))},s.Vj=function(e,t,i){var r,c,o,f;r=e.eh(),r?(f=(c=e.Vg(),c>=0?e.Qg(null):e.eh().ih(e,-1-c,null,null)),o=yt(e.Tg(),this.e),f=e.Sg(null,o,f),f&&f.Fi()):e.Lg()&&e.Mg()&&et(e,new N5(e,1,this.e,null,null))},s.sk=function(){return!1},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),b(1315,769,{},kEn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),b(563,504,{}),s.Pj=function(e,t,i,r,c){var o;return o=t.Ch(i),o==null?this.b:B(o)===B(Th)?null:o},s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null&&(B(r)===B(Th)||!tt(r,this.b))},s.Tj=function(e,t,i,r){var c,o;e.Lg()&&e.Mg()?(c=(o=t.Ch(i),o==null?this.b:B(o)===B(Th)?null:o),r==null?this.c!=null?(t.Dh(i,null),r=this.b):this.b!=null?t.Dh(i,Th):t.Dh(i,null):(this.Sk(r),t.Dh(i,r)),et(e,this.d.Tk(e,1,this.e,c,r))):r==null?this.c!=null?t.Dh(i,null):this.b!=null?t.Dh(i,Th):t.Dh(i,null):(this.Sk(r),t.Dh(i,r))},s.Vj=function(e,t,i){var r,c;e.Lg()&&e.Mg()?(r=(c=t.Ch(i),c==null?this.b:B(c)===B(Th)?null:c),t.Eh(i),et(e,this.d.Tk(e,1,this.e,r,this.b))):t.Eh(i)},s.Sk=function(e){throw T(new Hmn)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),b(pg,1,{},tpn),s.Tk=function(e,t,i,r,c){return new N5(e,t,i,r,c)},s.Uk=function(e,t,i,r,c,o){return new YD(e,t,i,r,c,o)};var k1n,y1n,j1n,E1n,C1n,T1n,M1n,yH,A1n;w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",pg),b(1332,pg,{},ipn),s.Tk=function(e,t,i,r,c){return new $X(e,t,i,on(sn(r)),on(sn(c)))},s.Uk=function(e,t,i,r,c,o){return new QMn(e,t,i,on(sn(r)),on(sn(c)),o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),b(1333,pg,{},rpn),s.Tk=function(e,t,i,r,c){return new uV(e,t,i,u(r,217).a,u(c,217).a)},s.Uk=function(e,t,i,r,c,o){return new qMn(e,t,i,u(r,217).a,u(c,217).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),b(1334,pg,{},cpn),s.Tk=function(e,t,i,r,c){return new sV(e,t,i,u(r,172).a,u(c,172).a)},s.Uk=function(e,t,i,r,c,o){return new GMn(e,t,i,u(r,172).a,u(c,172).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),b(1335,pg,{},upn),s.Tk=function(e,t,i,r,c){return new OX(e,t,i,K(Y(r)),K(Y(c)))},s.Uk=function(e,t,i,r,c,o){return new zMn(e,t,i,K(Y(r)),K(Y(c)),o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),b(1336,pg,{},spn),s.Tk=function(e,t,i,r,c){return new hV(e,t,i,u(r,155).a,u(c,155).a)},s.Uk=function(e,t,i,r,c,o){return new UMn(e,t,i,u(r,155).a,u(c,155).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),b(1337,pg,{},opn),s.Tk=function(e,t,i,r,c){return new DX(e,t,i,u(r,19).a,u(c,19).a)},s.Uk=function(e,t,i,r,c,o){return new WMn(e,t,i,u(r,19).a,u(c,19).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),b(1338,pg,{},fpn),s.Tk=function(e,t,i,r,c){return new oV(e,t,i,u(r,162).a,u(c,162).a)},s.Uk=function(e,t,i,r,c,o){return new XMn(e,t,i,u(r,162).a,u(c,162).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),b(1339,pg,{},hpn),s.Tk=function(e,t,i,r,c){return new fV(e,t,i,u(r,184).a,u(c,184).a)},s.Uk=function(e,t,i,r,c,o){return new VMn(e,t,i,u(r,184).a,u(c,184).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),b(1317,563,{},PTn),s.Sk=function(e){if(!this.a.wj(e))throw T(new Wp(IA+Du(e)+OA+this.a+"'"))},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),b(1318,563,{},pCn),s.Sk=function(e){},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),b(770,563,{}),s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null},s.Tj=function(e,t,i,r){var c,o;e.Lg()&&e.Mg()?(c=!0,o=t.Ch(i),o==null?(c=!1,o=this.b):B(o)===B(Th)&&(o=null),r==null?this.c!=null?(t.Dh(i,null),r=this.b):t.Dh(i,Th):(this.Sk(r),t.Dh(i,r)),et(e,this.d.Uk(e,1,this.e,o,r,!c))):r==null?this.c!=null?t.Dh(i,null):t.Dh(i,Th):(this.Sk(r),t.Dh(i,r))},s.Vj=function(e,t,i){var r,c;e.Lg()&&e.Mg()?(r=!0,c=t.Ch(i),c==null?(r=!1,c=this.b):B(c)===B(Th)&&(c=null),t.Eh(i),et(e,this.d.Uk(e,2,this.e,c,this.b,r))):t.Eh(i)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),b(1319,770,{},ITn),s.Sk=function(e){if(!this.a.wj(e))throw T(new Wp(IA+Du(e)+OA+this.a+"'"))},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),b(1320,770,{},vCn),s.Sk=function(e){},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),b(398,504,{},NE),s.Pj=function(e,t,i,r,c){var o,f,h,l,a;if(a=t.Ch(i),this.Kj()&&B(a)===B(Th))return null;if(this.sk()&&r&&a!=null){if(h=u(a,49),h.kh()&&(l=wl(e,h),h!=l)){if(!iL(this.a,l))throw T(new Wp(IA+Du(l)+OA+this.a+"'"));t.Dh(i,a=l),this.rk()&&(o=u(l,49),f=h.ih(e,this.b?yt(h.Tg(),this.b):-1-yt(e.Tg(),this.e),null,null),!o.eh()&&(f=o.gh(e,this.b?yt(o.Tg(),this.b):-1-yt(e.Tg(),this.e),null,f)),f&&f.Fi()),e.Lg()&&e.Mg()&&et(e,new N5(e,9,this.e,h,l))}return a}else return a},s.Qj=function(e,t,i,r,c){var o,f;return f=t.Ch(i),B(f)===B(Th)&&(f=null),t.Dh(i,r),this.bj()?B(f)!==B(r)&&f!=null&&(o=u(f,49),c=o.ih(e,yt(o.Tg(),this.b),null,c)):this.rk()&&f!=null&&(c=u(f,49).ih(e,-1-yt(e.Tg(),this.e),null,c)),e.Lg()&&e.Mg()&&(!c&&(c=new X1(4)),c.Ei(new N5(e,1,this.e,f,r))),c},s.Rj=function(e,t,i,r,c){var o;return o=t.Ch(i),B(o)===B(Th)&&(o=null),t.Eh(i),e.Lg()&&e.Mg()&&(!c&&(c=new X1(4)),this.Kj()?c.Ei(new N5(e,2,this.e,o,null)):c.Ei(new N5(e,1,this.e,o,null))),c},s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null},s.Tj=function(e,t,i,r){var c,o,f,h,l;if(r!=null&&!iL(this.a,r))throw T(new Wp(IA+(I(r,56)?DJ(u(r,56).Tg()):tV(Du(r)))+OA+this.a+"'"));l=t.Ch(i),h=l!=null,this.Kj()&&B(l)===B(Th)&&(l=null),f=null,this.bj()?B(l)!==B(r)&&(l!=null&&(c=u(l,49),f=c.ih(e,yt(c.Tg(),this.b),null,f)),r!=null&&(c=u(r,49),f=c.gh(e,yt(c.Tg(),this.b),null,f))):this.rk()&&B(l)!==B(r)&&(l!=null&&(f=u(l,49).ih(e,-1-yt(e.Tg(),this.e),null,f)),r!=null&&(f=u(r,49).gh(e,-1-yt(e.Tg(),this.e),null,f))),r==null&&this.Kj()?t.Dh(i,Th):t.Dh(i,r),e.Lg()&&e.Mg()?(o=new YD(e,1,this.e,l,r,this.Kj()&&!h),f?(f.Ei(o),f.Fi()):et(e,o)):f&&f.Fi()},s.Vj=function(e,t,i){var r,c,o,f,h;h=t.Ch(i),f=h!=null,this.Kj()&&B(h)===B(Th)&&(h=null),o=null,h!=null&&(this.bj()?(r=u(h,49),o=r.ih(e,yt(r.Tg(),this.b),null,o)):this.rk()&&(o=u(h,49).ih(e,-1-yt(e.Tg(),this.e),null,o))),t.Eh(i),e.Lg()&&e.Mg()?(c=new YD(e,this.Kj()?2:1,this.e,h,null,f),o?(o.Ei(c),o.Fi()):et(e,c)):o&&o.Fi()},s.bj=function(){return!1},s.rk=function(){return!1},s.sk=function(){return!1},s.Kj=function(){return!1},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),b(564,398,{},nD),s.rk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),b(1323,564,{},gjn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),b(772,564,{},iU),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),b(1325,772,{},pjn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),b(640,564,{},bD),s.bj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),b(1324,640,{},yEn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),b(773,640,{},qU),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),b(1326,773,{},jEn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),b(641,398,{},rU),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),b(1327,641,{},vjn),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),b(774,641,{},KU),s.bj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),b(1328,774,{},EEn),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),b(1321,398,{},mjn),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),b(771,398,{},HU),s.bj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),b(1322,771,{},CEn),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),b(775,565,PA,BW),s.Pk=function(e){return new BW(this.a,this.c,e)},s.dd=function(){return this.b},s.Qk=function(e,t,i){return Fde(this,e,this.b,i)},s.Rk=function(e,t,i){return Lde(this,e,this.b,i)},w(Bn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),b(1329,1,WB,Dmn),s.Wj=function(e){return this.a},s.fj=function(){return I(this.a,95)?u(this.a,95).fj():!this.a.dc()},s.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},s.Xj=function(){I(this.a,95)?u(this.a,95).Xj():this.a.$b()},w(Bn,"EStructuralFeatureImpl/SettingMany",1329),b(1330,565,PA,BAn),s.Ok=function(e){return new iD((ht(),y9),this.b.Ih(this.a,e))},s.dd=function(){return null},s.Qk=function(e,t,i){return i},s.Rk=function(e,t,i){return i},w(Bn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),b(642,565,PA,iD),s.Ok=function(e){return new iD(this.c,e)},s.dd=function(){return this.a},s.Qk=function(e,t,i){return i},s.Rk=function(e,t,i){return i},w(Bn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),b(391,497,Vf,Rp),s.ri=function(e){return x(io,rn,26,e,0,1)},s.ni=function(){return!1},w(Bn,"ESuperAdapter/1",391),b(444,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,836:1,49:1,97:1,150:1,444:1,114:1,115:1},AI),s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new $5(this,ar,this)),this.a}return Es(this,e-ee((Sn(),I0)),On((r=u(Rn(this,16),26),r||I0),e),t,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Gi(this.Ab,e,i);case 2:return!this.a&&(this.a=new $5(this,ar,this)),Gi(this.a,e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),I0)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),I0)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return ys(this,e-ee((Sn(),I0)),On((t=u(Rn(this,16),26),t||I0),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:Dc(this,Te(t));return;case 2:!this.a&&(this.a=new $5(this,ar,this)),de(this.a),!this.a&&(this.a=new $5(this,ar,this)),Dt(this.a,u(t,14));return}Ss(this,e-ee((Sn(),I0)),On((i=u(Rn(this,16),26),i||I0),e),t)},s.zh=function(){return Sn(),I0},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:Dc(this,null);return;case 2:!this.a&&(this.a=new $5(this,ar,this)),de(this.a);return}Ms(this,e-ee((Sn(),I0)),On((t=u(Rn(this,16),26),t||I0),e))},w(Bn,"ETypeParameterImpl",444),b(445,85,Nr,$5),s.cj=function(e,t){return Lve(this,u(e,87),t)},s.dj=function(e,t){return Nve(this,u(e,87),t)},w(Bn,"ETypeParameterImpl/1",445),b(634,43,sg,GI),s.ec=function(){return new hj(this)},w(Bn,"ETypeParameterImpl/2",634),b(556,wf,gu,hj),s.Fc=function(e){return zjn(this,u(e,87))},s.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),87),it(this.a,t,"")==null&&(r=!0);return r},s.$b=function(){Eu(this.a)},s.Hc=function(e){return zu(this.a,e)},s.Kc=function(){var e;return e=new ya(new na(this.a).a),new lj(e)},s.Mc=function(e){return OSn(this,e)},s.gc=function(){return Yv(this.a)},w(Bn,"ETypeParameterImpl/2/1",556),b(557,1,yi,lj),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return u(Ld(this.a).cd(),87)},s.Ob=function(){return this.a.b},s.Qb=function(){oPn(this.a)},w(Bn,"ETypeParameterImpl/2/1/1",557),b(1276,43,sg,j9n),s._b=function(e){return mi(e)?ZD(this,e):!!Ar(this.f,e)},s.xc=function(e){var t,i;return t=mi(e)?kc(this,e):Xr(Ar(this.f,e)),I(t,837)?(i=u(t,837),t=i._j(),it(this,u(e,235),t),t):t??(e==null?(sO(),uee):null)},w(Bn,"EValidatorRegistryImpl",1276),b(1313,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,1941:1,49:1,97:1,150:1,114:1,115:1},lpn),s.Ih=function(e,t){switch(e.yj()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:Lr(t);case 25:return G0e(t);case 27:return s0e(t);case 28:return o0e(t);case 29:return t==null?null:Tyn(w9[0],u(t,199));case 41:return t==null?"":V1(u(t,290));case 42:return Lr(t);case 50:return Te(t);default:throw T(new Hn(_4+e.ne()+f0))}},s.Jh=function(e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S;switch(e.G==-1&&(e.G=(p=ts(e),p?v1(p.Mh(),e):-1)),e.G){case 0:return i=new KI,i;case 1:return t=new ZH,t;case 2:return r=new rq,r;case 4:return c=new aj,c;case 5:return o=new y9n,o;case 6:return f=new zmn,f;case 7:return h=new iq,h;case 10:return a=new ej,a;case 11:return d=new HI,d;case 12:return g=new WTn,g;case 13:return v=new qI,v;case 14:return m=new sU,m;case 17:return C=new epn,C;case 18:return l=new cd,l;case 19:return S=new AI,S;default:throw T(new Hn(OB+e.zb+f0))}},s.Kh=function(e,t){switch(e.yj()){case 20:return t==null?null:new MG(t);case 21:return t==null?null:new el(t);case 23:case 22:return t==null?null:V2e(t);case 26:case 24:return t==null?null:Y8(us(t,-128,127)<<24>>24);case 25:return u9e(t);case 27:return D3e(t);case 28:return $3e(t);case 29:return e5e(t);case 32:case 31:return t==null?null:vb(t);case 38:case 37:return t==null?null:new Uq(t);case 40:case 39:return t==null?null:Q(us(t,Bi,nt));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:Ca(PM(t));case 49:case 48:return t==null?null:Y3(us(t,DA,32767)<<16>>16);case 50:return t;default:throw T(new Hn(_4+e.ne()+f0))}},w(Bn,"EcoreFactoryImpl",1313),b(547,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,1939:1,49:1,97:1,150:1,179:1,547:1,114:1,115:1,675:1},hTn),s.gb=!1,s.hb=!1;var S1n,cee=!1;w(Bn,"EcorePackageImpl",547),b(1184,1,{837:1},apn),s._j=function(){return Vyn(),see},w(Bn,"EcorePackageImpl/1",1184),b(1193,1,qe,dpn),s.wj=function(e){return I(e,147)},s.xj=function(e){return x(Ly,rn,147,e,0,1)},w(Bn,"EcorePackageImpl/10",1193),b(1194,1,qe,bpn),s.wj=function(e){return I(e,191)},s.xj=function(e){return x(aH,rn,191,e,0,1)},w(Bn,"EcorePackageImpl/11",1194),b(1195,1,qe,wpn),s.wj=function(e){return I(e,56)},s.xj=function(e){return x(ql,rn,56,e,0,1)},w(Bn,"EcorePackageImpl/12",1195),b(1196,1,qe,gpn),s.wj=function(e){return I(e,399)},s.xj=function(e){return x(ro,Ytn,59,e,0,1)},w(Bn,"EcorePackageImpl/13",1196),b(1197,1,qe,ppn),s.wj=function(e){return I(e,235)},s.xj=function(e){return x(Qo,rn,235,e,0,1)},w(Bn,"EcorePackageImpl/14",1197),b(1198,1,qe,vpn),s.wj=function(e){return I(e,509)},s.xj=function(e){return x(S0,rn,2017,e,0,1)},w(Bn,"EcorePackageImpl/15",1198),b(1199,1,qe,mpn),s.wj=function(e){return I(e,99)},s.xj=function(e){return x(sw,gg,18,e,0,1)},w(Bn,"EcorePackageImpl/16",1199),b(1200,1,qe,kpn),s.wj=function(e){return I(e,170)},s.xj=function(e){return x(su,gg,170,e,0,1)},w(Bn,"EcorePackageImpl/17",1200),b(1201,1,qe,ypn),s.wj=function(e){return I(e,472)},s.xj=function(e){return x(cw,rn,472,e,0,1)},w(Bn,"EcorePackageImpl/18",1201),b(1202,1,qe,jpn),s.wj=function(e){return I(e,548)},s.xj=function(e){return x(ec,uGn,548,e,0,1)},w(Bn,"EcorePackageImpl/19",1202),b(1185,1,qe,Epn),s.wj=function(e){return I(e,322)},s.xj=function(e){return x(uw,gg,34,e,0,1)},w(Bn,"EcorePackageImpl/2",1185),b(1203,1,qe,Cpn),s.wj=function(e){return I(e,241)},s.xj=function(e){return x(ar,EGn,87,e,0,1)},w(Bn,"EcorePackageImpl/20",1203),b(1204,1,qe,Tpn),s.wj=function(e){return I(e,444)},s.xj=function(e){return x(zc,rn,836,e,0,1)},w(Bn,"EcorePackageImpl/21",1204),b(1205,1,qe,Mpn),s.wj=function(e){return K0(e)},s.xj=function(e){return x(si,q,476,e,8,1)},w(Bn,"EcorePackageImpl/22",1205),b(1206,1,qe,Apn),s.wj=function(e){return I(e,190)},s.xj=function(e){return x(ku,q,190,e,0,2)},w(Bn,"EcorePackageImpl/23",1206),b(1207,1,qe,Spn),s.wj=function(e){return I(e,217)},s.xj=function(e){return x(fp,q,217,e,0,1)},w(Bn,"EcorePackageImpl/24",1207),b(1208,1,qe,Ppn),s.wj=function(e){return I(e,172)},s.xj=function(e){return x(vm,q,172,e,0,1)},w(Bn,"EcorePackageImpl/25",1208),b(1209,1,qe,Ipn),s.wj=function(e){return I(e,199)},s.xj=function(e){return x(zA,q,199,e,0,1)},w(Bn,"EcorePackageImpl/26",1209),b(1210,1,qe,Opn),s.wj=function(e){return!1},s.xj=function(e){return x(U1n,rn,2110,e,0,1)},w(Bn,"EcorePackageImpl/27",1210),b(1211,1,qe,Dpn),s.wj=function(e){return H0(e)},s.xj=function(e){return x(Si,q,333,e,7,1)},w(Bn,"EcorePackageImpl/28",1211),b(1212,1,qe,$pn),s.wj=function(e){return I(e,58)},s.xj=function(e){return x(s1n,Pb,58,e,0,1)},w(Bn,"EcorePackageImpl/29",1212),b(1186,1,qe,xpn),s.wj=function(e){return I(e,510)},s.xj=function(e){return x(Be,{3:1,4:1,5:1,1934:1},590,e,0,1)},w(Bn,"EcorePackageImpl/3",1186),b(1213,1,qe,Fpn),s.wj=function(e){return I(e,573)},s.xj=function(e){return x(h1n,rn,1940,e,0,1)},w(Bn,"EcorePackageImpl/30",1213),b(1214,1,qe,Lpn),s.wj=function(e){return I(e,153)},s.xj=function(e){return x($1n,Pb,153,e,0,1)},w(Bn,"EcorePackageImpl/31",1214),b(1215,1,qe,Npn),s.wj=function(e){return I(e,72)},s.xj=function(e){return x(sI,DGn,72,e,0,1)},w(Bn,"EcorePackageImpl/32",1215),b(1216,1,qe,Bpn),s.wj=function(e){return I(e,155)},s.xj=function(e){return x(W4,q,155,e,0,1)},w(Bn,"EcorePackageImpl/33",1216),b(1217,1,qe,Rpn),s.wj=function(e){return I(e,19)},s.xj=function(e){return x(Ui,q,19,e,0,1)},w(Bn,"EcorePackageImpl/34",1217),b(1218,1,qe,_pn),s.wj=function(e){return I(e,290)},s.xj=function(e){return x(lin,rn,290,e,0,1)},w(Bn,"EcorePackageImpl/35",1218),b(1219,1,qe,Kpn),s.wj=function(e){return I(e,162)},s.xj=function(e){return x(l0,q,162,e,0,1)},w(Bn,"EcorePackageImpl/36",1219),b(1220,1,qe,Hpn),s.wj=function(e){return I(e,83)},s.xj=function(e){return x(ain,rn,83,e,0,1)},w(Bn,"EcorePackageImpl/37",1220),b(1221,1,qe,qpn),s.wj=function(e){return I(e,591)},s.xj=function(e){return x(P1n,rn,591,e,0,1)},w(Bn,"EcorePackageImpl/38",1221),b(1222,1,qe,Gpn),s.wj=function(e){return!1},s.xj=function(e){return x(W1n,rn,2111,e,0,1)},w(Bn,"EcorePackageImpl/39",1222),b(1187,1,qe,zpn),s.wj=function(e){return I(e,88)},s.xj=function(e){return x(io,rn,26,e,0,1)},w(Bn,"EcorePackageImpl/4",1187),b(1223,1,qe,Upn),s.wj=function(e){return I(e,184)},s.xj=function(e){return x(a0,q,184,e,0,1)},w(Bn,"EcorePackageImpl/40",1223),b(1224,1,qe,Wpn),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Bn,"EcorePackageImpl/41",1224),b(1225,1,qe,Xpn),s.wj=function(e){return I(e,588)},s.xj=function(e){return x(f1n,rn,588,e,0,1)},w(Bn,"EcorePackageImpl/42",1225),b(1226,1,qe,Vpn),s.wj=function(e){return!1},s.xj=function(e){return x(X1n,q,2112,e,0,1)},w(Bn,"EcorePackageImpl/43",1226),b(1227,1,qe,Qpn),s.wj=function(e){return I(e,42)},s.xj=function(e){return x(_a,xM,42,e,0,1)},w(Bn,"EcorePackageImpl/44",1227),b(1188,1,qe,Jpn),s.wj=function(e){return I(e,138)},s.xj=function(e){return x(Jo,rn,138,e,0,1)},w(Bn,"EcorePackageImpl/5",1188),b(1189,1,qe,Ypn),s.wj=function(e){return I(e,148)},s.xj=function(e){return x(vH,rn,148,e,0,1)},w(Bn,"EcorePackageImpl/6",1189),b(1190,1,qe,Zpn),s.wj=function(e){return I(e,457)},s.xj=function(e){return x(uI,rn,671,e,0,1)},w(Bn,"EcorePackageImpl/7",1190),b(1191,1,qe,n3n),s.wj=function(e){return I(e,573)},s.xj=function(e){return x(e1,rn,678,e,0,1)},w(Bn,"EcorePackageImpl/8",1191),b(1192,1,qe,e3n),s.wj=function(e){return I(e,471)},s.xj=function(e){return x(b9,rn,471,e,0,1)},w(Bn,"EcorePackageImpl/9",1192),b(1025,1982,cGn,_9n),s.bi=function(e,t){yge(this,u(t,415))},s.fi=function(e,t){nLn(this,e,u(t,415))},w(Bn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1025),b(1026,143,Mk,eTn),s.Ai=function(){return this.a.a},w(Bn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1026),b(1053,1052,{},pyn),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1053);var P1n=Et($Gn,"Resource");b(781,1378,xGn),s.Yk=function(e){},s.Zk=function(e){},s.Vk=function(){return!this.a&&(this.a=new LI(this)),this.a},s.Wk=function(e){var t,i,r,c,o;if(r=e.length,r>0)if(Me(0,e.length),e.charCodeAt(0)==47){for(o=new Oc(4),c=1,t=1;t0&&(e=e.substr(0,i)));return q6e(this,e)},s.Xk=function(){return this.c},s.Ib=function(){var e;return V1(this.gm)+"@"+(e=mt(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},s.b=!1,w(XB,"ResourceImpl",781),b(1379,781,xGn,xmn),w(XB,"BinaryResourceImpl",1379),b(1169,694,HB),s.si=function(e){return I(e,56)?C1e(this,u(e,56)):I(e,591)?new ie(u(e,591).Vk()):B(e)===B(this.f)?u(e,14).Kc():(f3(),Ry.a)},s.Ob=function(){return EY(this)},s.a=!1,w(vt,"EcoreUtil/ContentTreeIterator",1169),b(1380,1169,HB,DCn),s.si=function(e){return B(e)===B(this.f)?u(e,15).Kc():new wAn(u(e,56))},w(XB,"ResourceImpl/5",1380),b(648,1994,jGn,LI),s.Hc=function(e){return this.i<=4?f4(this,e):I(e,49)&&u(e,49).Zg()==this.a},s.bi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},s.di=function(e,t){e==0?this.a.b||(this.a.b=!0):I$(this,e,t)},s.fi=function(e,t){},s.gi=function(e,t,i){},s.aj=function(){return 2},s.Ai=function(){return this.a},s.bj=function(){return!0},s.cj=function(e,t){var i;return i=u(e,49),t=i.wh(this.a,t),t},s.dj=function(e,t){var i;return i=u(e,49),i.wh(null,t)},s.ej=function(){return!1},s.hi=function(){return!0},s.ri=function(e){return x(ql,rn,56,e,0,1)},s.ni=function(){return!1},w(XB,"ResourceImpl/ContentsEList",648),b(957,1964,S4,$mn),s.Zc=function(e){return this.a._h(e)},s.gc=function(){return this.a.gc()},w(vt,"AbstractSequentialInternalEList/1",957);var I1n,O1n,Fi,D1n;b(624,1,{},xEn);var oI,fI;w(vt,"BasicExtendedMetaData",624),b(1160,1,{},xkn),s.$k=function(){return null},s._k=function(){return this.a==-2&&jte(this,Qve(this.d,this.b)),this.a},s.al=function(){return null},s.bl=function(){return Pn(),Pn(),cr},s.ne=function(){return this.c==q4&&Cte(this,O$n(this.d,this.b)),this.c},s.cl=function(){return 0},s.a=-2,s.c=q4,w(vt,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),b(1161,1,{},eAn),s.$k=function(){return this.a==(M3(),oI)&&Ete(this,a8e(this.f,this.b)),this.a},s._k=function(){return 0},s.al=function(){return this.c==(M3(),oI)&&Tte(this,d8e(this.f,this.b)),this.c},s.bl=function(){return!this.d&&Mte(this,ake(this.f,this.b)),this.d},s.ne=function(){return this.e==q4&&Ate(this,O$n(this.f,this.b)),this.e},s.cl=function(){return this.g==-2&&Ste(this,wve(this.f,this.b)),this.g},s.e=q4,s.g=-2,w(vt,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1161),b(1159,1,{},Lkn),s.b=!1,s.c=!1,w(vt,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1159),b(1162,1,{},nAn),s.c=-2,s.e=q4,s.f=q4,w(vt,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1162),b(585,622,Nr,PE),s.aj=function(){return this.c},s.Fk=function(){return!1},s.li=function(e,t){return t},s.c=0,w(vt,"EDataTypeEList",585);var $1n=Et(vt,"FeatureMap");b(75,585,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},$t),s.Vc=function(e,t){o8e(this,e,u(t,72))},s.Fc=function(e){return A9e(this,u(e,72))},s.Yh=function(e){dhe(this,u(e,72))},s.cj=function(e,t){return Wue(this,u(e,72),t)},s.dj=function(e,t){return IU(this,u(e,72),t)},s.ii=function(e,t){return Ike(this,e,t)},s.li=function(e,t){return fEe(this,e,u(t,72))},s._c=function(e,t){return Y8e(this,e,u(t,72))},s.jj=function(e,t){return Xue(this,u(e,72),t)},s.kj=function(e,t){return cEn(this,u(e,72),t)},s.lj=function(e,t,i){return Y4e(this,u(e,72),u(t,72),i)},s.oi=function(e,t){return kF(this,e,u(t,72))},s.dl=function(e,t){return lZ(this,e,t)},s.Wc=function(e,t){var i,r,c,o,f,h,l,a,d;for(a=new Fd(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),72),o=r.ak(),zh(this.e,o))(!o.hi()||!CC(this,o,r.dd())&&!f4(a,r))&&me(a,r);else{for(d=Kc(this.e.Tg(),o),i=u(this.g,119),f=!0,h=0;h=0;)if(t=e[this.c],this.k.rl(t.ak()))return this.j=this.f?t:t.dd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(vt,"BasicFeatureMap/FeatureEIterator",410),b(662,410,ah,RO),s.Lk=function(){return!0},w(vt,"BasicFeatureMap/ResolvingFeatureEIterator",662),b(955,486,AA,Ayn),s.Gi=function(){return this},w(vt,"EContentsEList/1",955),b(956,486,AA,Ykn),s.Lk=function(){return!1},w(vt,"EContentsEList/2",956),b(954,279,SA,Syn),s.Nk=function(e){},s.Ob=function(){return!1},s.Sb=function(){return!1},w(vt,"EContentsEList/FeatureIteratorImpl/1",954),b(825,585,Nr,Fz),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Hu(this.e)?(e=this.a,this.a=!1,et(this.e,new mo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EDataTypeEList/Unsettable",825),b(1849,585,Nr,Lyn),s.hi=function(){return!0},w(vt,"EDataTypeUniqueEList",1849),b(1850,825,Nr,Nyn),s.hi=function(){return!0},w(vt,"EDataTypeUniqueEList/Unsettable",1850),b(139,85,Nr,hu),s.Ek=function(){return!0},s.li=function(e,t){return W2(this,e,u(t,56))},w(vt,"EObjectContainmentEList/Resolving",139),b(1163,545,Nr,Fyn),s.Ek=function(){return!0},s.li=function(e,t){return W2(this,e,u(t,56))},w(vt,"EObjectContainmentEList/Unsettable/Resolving",1163),b(748,16,Nr,EU),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Hu(this.e)?(e=this.a,this.a=!1,et(this.e,new mo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EObjectContainmentWithInverseEList/Unsettable",748),b(1173,748,Nr,Ujn),s.Ek=function(){return!0},s.li=function(e,t){return W2(this,e,u(t,56))},w(vt,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),b(743,496,Nr,xz),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Hu(this.e)?(e=this.a,this.a=!1,et(this.e,new mo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EObjectEList/Unsettable",743),b(328,496,Nr,Aw),s.Ek=function(){return!0},s.li=function(e,t){return W2(this,e,u(t,56))},w(vt,"EObjectResolvingEList",328),b(1641,743,Nr,Byn),s.Ek=function(){return!0},s.li=function(e,t){return W2(this,e,u(t,56))},w(vt,"EObjectResolvingEList/Unsettable",1641),b(1381,1,{},t3n);var uee;w(vt,"EObjectValidator",1381),b(546,496,Nr,XE),s.zk=function(){return this.d},s.Ak=function(){return this.b},s.bj=function(){return!0},s.Dk=function(){return!0},s.b=0,w(vt,"EObjectWithInverseEList",546),b(1176,546,Nr,Wjn),s.Ck=function(){return!0},w(vt,"EObjectWithInverseEList/ManyInverse",1176),b(625,546,Nr,cD),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Hu(this.e)?(e=this.a,this.a=!1,et(this.e,new mo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EObjectWithInverseEList/Unsettable",625),b(1175,625,Nr,Xjn),s.Ck=function(){return!0},w(vt,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),b(749,546,Nr,CU),s.Ek=function(){return!0},s.li=function(e,t){return W2(this,e,u(t,56))},w(vt,"EObjectWithInverseResolvingEList",749),b(31,749,Nr,xn),s.Ck=function(){return!0},w(vt,"EObjectWithInverseResolvingEList/ManyInverse",31),b(750,625,Nr,TU),s.Ek=function(){return!0},s.li=function(e,t){return W2(this,e,u(t,56))},w(vt,"EObjectWithInverseResolvingEList/Unsettable",750),b(1174,750,Nr,Vjn),s.Ck=function(){return!0},w(vt,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),b(1164,622,Nr),s.ai=function(){return(this.b&1792)==0},s.ci=function(){this.b|=1},s.Bk=function(){return(this.b&4)!=0},s.bj=function(){return(this.b&40)!=0},s.Ck=function(){return(this.b&16)!=0},s.Dk=function(){return(this.b&8)!=0},s.Ek=function(){return(this.b&Lb)!=0},s.rk=function(){return(this.b&32)!=0},s.Fk=function(){return(this.b&Co)!=0},s.wj=function(e){return this.d?IAn(this.d,e):this.ak().Yj().wj(e)},s.fj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},s.hi=function(){return(this.b&128)!=0},s.Xj=function(){var e;de(this),this.b&2&&(Hu(this.e)?(e=(this.b&1)!=0,this.b&=-2,zp(this,new mo(this.e,2,yt(this.e.Tg(),this.ak()),e,!1))):this.b&=-2)},s.ni=function(){return(this.b&1536)==0},s.b=0,w(vt,"EcoreEList/Generic",1164),b(1165,1164,Nr,RTn),s.ak=function(){return this.a},w(vt,"EcoreEList/Dynamic",1165),b(747,63,Vf,Bq),s.ri=function(e){return n7(this.a.a,e)},w(vt,"EcoreEMap/1",747),b(746,85,Nr,EW),s.bi=function(e,t){GT(this.b,u(t,133))},s.di=function(e,t){TOn(this.b)},s.ei=function(e,t,i){var r;++(r=this.b,u(t,133),r).e},s.fi=function(e,t){Px(this.b,u(t,133))},s.gi=function(e,t,i){Px(this.b,u(i,133)),B(i)===B(t)&&u(i,133).Th(tce(u(t,133).cd())),GT(this.b,u(t,133))},w(vt,"EcoreEMap/DelegateEObjectContainmentEList",746),b(1171,151,Jtn,BIn),w(vt,"EcoreEMap/Unsettable",1171),b(1172,746,Nr,Qjn),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Hu(this.e)?(e=this.a,this.a=!1,et(this.e,new mo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),b(1168,228,sg,HCn),s.a=!1,s.b=!1,w(vt,"EcoreUtil/Copier",1168),b(745,1,yi,wAn),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return l$n(this)},s.Pb=function(){var e;return l$n(this),e=this.b,this.b=null,e},s.Qb=function(){this.a.Qb()},w(vt,"EcoreUtil/ProperContentIterator",745),b(1382,1381,{},Z4n);var see;w(vt,"EcoreValidator",1382);var oee;Et(vt,"FeatureMapUtil/Validator"),b(1260,1,{1942:1},i3n),s.rl=function(e){return!0},w(vt,"FeatureMapUtil/1",1260),b(757,1,{1942:1},_Z),s.rl=function(e){var t;return this.c==e?!0:(t=sn(te(this.a,e)),t==null?W7e(this,e)?(ESn(this.a,e,(qn(),U4)),!0):(ESn(this.a,e,(qn(),Ka)),!1):t==(qn(),U4))},s.e=!1;var jH;w(vt,"FeatureMapUtil/BasicValidator",757),b(758,43,sg,Iz),w(vt,"FeatureMapUtil/BasicValidator/Cache",758),b(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},s8),s.Vc=function(e,t){_Nn(this.c,this.b,e,t)},s.Fc=function(e){return lZ(this.c,this.b,e)},s.Wc=function(e,t){return oje(this.c,this.b,e,t)},s.Gc=function(e){return E5(this,e)},s.Xh=function(e,t){P0e(this.c,this.b,e,t)},s.lk=function(e,t){return cZ(this.c,this.b,e,t)},s.pi=function(e){return EM(this.c,this.b,e,!1)},s.Zh=function(){return fyn(this.c,this.b)},s.$h=function(){return qre(this.c,this.b)},s._h=function(e){return xde(this.c,this.b,e)},s.mk=function(e,t){return Sjn(this,e,t)},s.$b=function(){i2(this)},s.Hc=function(e){return CC(this.c,this.b,e)},s.Ic=function(e){return $be(this.c,this.b,e)},s.Xb=function(e){return EM(this.c,this.b,e,!0)},s.Wj=function(e){return this},s.Xc=function(e){return zae(this.c,this.b,e)},s.dc=function(){return tE(this)},s.fj=function(){return!k7(this.c,this.b)},s.Kc=function(){return p0e(this.c,this.b)},s.Yc=function(){return v0e(this.c,this.b)},s.Zc=function(e){return Ige(this.c,this.b,e)},s.ii=function(e,t){return rRn(this.c,this.b,e,t)},s.ji=function(e,t){Sde(this.c,this.b,e,t)},s.$c=function(e){return NFn(this.c,this.b,e)},s.Mc=function(e){return bke(this.c,this.b,e)},s._c=function(e,t){return hRn(this.c,this.b,e,t)},s.Wb=function(e){uM(this.c,this.b),E5(this,u(e,15))},s.gc=function(){return qge(this.c,this.b)},s.Pc=function(){return Hle(this.c,this.b)},s.Qc=function(e){return Uae(this.c,this.b,e)},s.Ib=function(){var e,t;for(t=new i1,t.a+="[",e=fyn(this.c,this.b);mx(e);)dr(t,T5(HT(e))),mx(e)&&(t.a+=Ji);return t.a+="]",t.a},s.Xj=function(){uM(this.c,this.b)},w(vt,"FeatureMapUtil/FeatureEList",501),b(627,36,Mk,y$),s.yi=function(e){return h6(this,e)},s.Di=function(e){var t,i,r,c,o,f,h;switch(this.d){case 1:case 2:{if(o=e.Ai(),B(o)===B(this.c)&&h6(this,null)==e.yi(null))return this.g=e.zi(),e.xi()==1&&(this.d=1),!0;break}case 3:{switch(c=e.xi(),c){case 3:{if(o=e.Ai(),B(o)===B(this.c)&&h6(this,null)==e.yi(null))return this.d=5,t=new Fd(2),me(t,this.g),me(t,e.zi()),this.g=t,!0;break}}break}case 5:{switch(c=e.xi(),c){case 3:{if(o=e.Ai(),B(o)===B(this.c)&&h6(this,null)==e.yi(null))return i=u(this.g,14),i.Fc(e.zi()),!0;break}}break}case 4:{switch(c=e.xi(),c){case 3:{if(o=e.Ai(),B(o)===B(this.c)&&h6(this,null)==e.yi(null))return this.d=1,this.g=e.zi(),!0;break}case 4:{if(o=e.Ai(),B(o)===B(this.c)&&h6(this,null)==e.yi(null))return this.d=6,h=new Fd(2),me(h,this.n),me(h,e.Bi()),this.n=h,f=A(M(be,1),Le,25,15,[this.o,e.Ci()]),this.g=f,!0;break}}break}case 6:{switch(c=e.xi(),c){case 4:{if(o=e.Ai(),B(o)===B(this.c)&&h6(this,null)==e.yi(null))return i=u(this.n,14),i.Fc(e.Bi()),f=u(this.g,48),r=x(be,Le,25,f.length+1,15,1),pc(f,0,r,0,f.length),r[f.length]=e.Ci(),this.g=r,!0;break}}break}}return!1},w(vt,"FeatureMapUtil/FeatureENotificationImpl",627),b(552,501,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},$E),s.dl=function(e,t){return lZ(this.c,e,t)},s.el=function(e,t,i){return cZ(this.c,e,t,i)},s.fl=function(e,t,i){return SZ(this.c,e,t,i)},s.gl=function(){return this},s.hl=function(e,t){return J7(this.c,e,t)},s.il=function(e){return u(EM(this.c,this.b,e,!1),72).ak()},s.jl=function(e){return u(EM(this.c,this.b,e,!1),72).dd()},s.kl=function(){return this.a},s.ll=function(e){return!k7(this.c,e)},s.ml=function(e,t){CM(this.c,e,t)},s.nl=function(e){return zIn(this.c,e)},s.ol=function(e){wxn(this.c,e)},w(vt,"FeatureMapUtil/FeatureFeatureMap",552),b(1259,1,WB,Nkn),s.Wj=function(e){return EM(this.b,this.a,-1,e)},s.fj=function(){return!k7(this.b,this.a)},s.Wb=function(e){CM(this.b,this.a,e)},s.Xj=function(){uM(this.b,this.a)},w(vt,"FeatureMapUtil/FeatureValue",1259);var Dp,EH,CH,$p,fee,Ky=Et(LA,"AnyType");b(666,60,Uh,YI),w(LA,"InvalidDatatypeValueException",666);var hI=Et(LA,LGn),Hy=Et(LA,NGn),x1n=Et(LA,BGn),hee,oc,F1n,td,lee,aee,dee,bee,wee,gee,pee,vee,mee,kee,yee,Gg,jee,zg,m9,Eee,O0,qy,Gy,Cee,k9,y9;b(830,506,{105:1,92:1,90:1,56:1,49:1,97:1,843:1},cG),s._g=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new $t(this,0)),this.c):(!this.c&&(this.c=new $t(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new $t(this,0)),u(yc(this.c,(ht(),td)),153)):(!this.c&&(this.c=new $t(this,0)),u(u(yc(this.c,(ht(),td)),153),215)).kl();case 2:return i?(!this.b&&(this.b=new $t(this,2)),this.b):(!this.b&&(this.b=new $t(this,2)),this.b.b)}return Es(this,e-ee(this.zh()),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),e),t,i)},s.jh=function(e,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new $t(this,0)),W7(this.c,e,i);case 1:return(!this.c&&(this.c=new $t(this,0)),u(u(yc(this.c,(ht(),td)),153),69)).mk(e,i);case 2:return!this.b&&(this.b=new $t(this,2)),W7(this.b,e,i)}return r=u(On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),t),66),r.Nj().Rj(this,YX(this),t-ee(this.zh()),e,i)},s.lh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new $t(this,0)),u(yc(this.c,(ht(),td)),153)).dc();case 2:return!!this.b&&this.b.i!=0}return ys(this,e-ee(this.zh()),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),e))},s.sh=function(e,t){switch(e){case 0:!this.c&&(this.c=new $t(this,0)),M8(this.c,t);return;case 1:(!this.c&&(this.c=new $t(this,0)),u(u(yc(this.c,(ht(),td)),153),215)).Wb(t);return;case 2:!this.b&&(this.b=new $t(this,2)),M8(this.b,t);return}Ss(this,e-ee(this.zh()),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),e),t)},s.zh=function(){return ht(),F1n},s.Bh=function(e){switch(e){case 0:!this.c&&(this.c=new $t(this,0)),de(this.c);return;case 1:(!this.c&&(this.c=new $t(this,0)),u(yc(this.c,(ht(),td)),153)).$b();return;case 2:!this.b&&(this.b=new $t(this,2)),de(this.b);return}Ms(this,e-ee(this.zh()),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),e))},s.Ib=function(){var e;return this.j&4?jo(this):(e=new Ns(jo(this)),e.a+=" (mixed: ",m5(e,this.c),e.a+=", anyAttribute: ",m5(e,this.b),e.a+=")",e.a)},w(Wt,"AnyTypeImpl",830),b(667,506,{105:1,92:1,90:1,56:1,49:1,97:1,2021:1,667:1},c3n),s._g=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return Es(this,e-ee((ht(),Gg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():Gg,e),t,i)},s.lh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return ys(this,e-ee((ht(),Gg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():Gg,e))},s.sh=function(e,t){switch(e){case 0:Fte(this,Te(t));return;case 1:Lte(this,Te(t));return}Ss(this,e-ee((ht(),Gg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():Gg,e),t)},s.zh=function(){return ht(),Gg},s.Bh=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}Ms(this,e-ee((ht(),Gg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():Gg,e))},s.Ib=function(){var e;return this.j&4?jo(this):(e=new Ns(jo(this)),e.a+=" (data: ",dr(e,this.a),e.a+=", target: ",dr(e,this.b),e.a+=")",e.a)},s.a=null,s.b=null,w(Wt,"ProcessingInstructionImpl",667),b(668,830,{105:1,92:1,90:1,56:1,49:1,97:1,843:1,2022:1,668:1},C9n),s._g=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new $t(this,0)),this.c):(!this.c&&(this.c=new $t(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new $t(this,0)),u(yc(this.c,(ht(),td)),153)):(!this.c&&(this.c=new $t(this,0)),u(u(yc(this.c,(ht(),td)),153),215)).kl();case 2:return i?(!this.b&&(this.b=new $t(this,2)),this.b):(!this.b&&(this.b=new $t(this,2)),this.b.b);case 3:return!this.c&&(this.c=new $t(this,0)),Te(J7(this.c,(ht(),m9),!0));case 4:return MU(this.a,(!this.c&&(this.c=new $t(this,0)),Te(J7(this.c,(ht(),m9),!0))));case 5:return this.a}return Es(this,e-ee((ht(),zg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():zg,e),t,i)},s.lh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new $t(this,0)),u(yc(this.c,(ht(),td)),153)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new $t(this,0)),Te(J7(this.c,(ht(),m9),!0))!=null;case 4:return MU(this.a,(!this.c&&(this.c=new $t(this,0)),Te(J7(this.c,(ht(),m9),!0))))!=null;case 5:return!!this.a}return ys(this,e-ee((ht(),zg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():zg,e))},s.sh=function(e,t){switch(e){case 0:!this.c&&(this.c=new $t(this,0)),M8(this.c,t);return;case 1:(!this.c&&(this.c=new $t(this,0)),u(u(yc(this.c,(ht(),td)),153),215)).Wb(t);return;case 2:!this.b&&(this.b=new $t(this,2)),M8(this.b,t);return;case 3:lX(this,Te(t));return;case 4:lX(this,AU(this.a,t));return;case 5:Nte(this,u(t,148));return}Ss(this,e-ee((ht(),zg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():zg,e),t)},s.zh=function(){return ht(),zg},s.Bh=function(e){switch(e){case 0:!this.c&&(this.c=new $t(this,0)),de(this.c);return;case 1:(!this.c&&(this.c=new $t(this,0)),u(yc(this.c,(ht(),td)),153)).$b();return;case 2:!this.b&&(this.b=new $t(this,2)),de(this.b);return;case 3:!this.c&&(this.c=new $t(this,0)),CM(this.c,(ht(),m9),null);return;case 4:lX(this,AU(this.a,null));return;case 5:this.a=null;return}Ms(this,e-ee((ht(),zg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():zg,e))},w(Wt,"SimpleAnyTypeImpl",668),b(669,506,{105:1,92:1,90:1,56:1,49:1,97:1,2023:1,669:1},E9n),s._g=function(e,t,i){switch(e){case 0:return i?(!this.a&&(this.a=new $t(this,0)),this.a):(!this.a&&(this.a=new $t(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Wu((Sn(),nr),ec,this,1)),this.b):(!this.b&&(this.b=new Wu((Sn(),nr),ec,this,1)),K8(this.b));case 2:return i?(!this.c&&(this.c=new Wu((Sn(),nr),ec,this,2)),this.c):(!this.c&&(this.c=new Wu((Sn(),nr),ec,this,2)),K8(this.c));case 3:return!this.a&&(this.a=new $t(this,0)),yc(this.a,(ht(),qy));case 4:return!this.a&&(this.a=new $t(this,0)),yc(this.a,(ht(),Gy));case 5:return!this.a&&(this.a=new $t(this,0)),yc(this.a,(ht(),k9));case 6:return!this.a&&(this.a=new $t(this,0)),yc(this.a,(ht(),y9))}return Es(this,e-ee((ht(),O0)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():O0,e),t,i)},s.jh=function(e,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new $t(this,0)),W7(this.a,e,i);case 1:return!this.b&&(this.b=new Wu((Sn(),nr),ec,this,1)),CE(this.b,e,i);case 2:return!this.c&&(this.c=new Wu((Sn(),nr),ec,this,2)),CE(this.c,e,i);case 5:return!this.a&&(this.a=new $t(this,0)),Sjn(yc(this.a,(ht(),k9)),e,i)}return r=u(On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():(ht(),O0),t),66),r.Nj().Rj(this,YX(this),t-ee((ht(),O0)),e,i)},s.lh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new $t(this,0)),!tE(yc(this.a,(ht(),qy)));case 4:return!this.a&&(this.a=new $t(this,0)),!tE(yc(this.a,(ht(),Gy)));case 5:return!this.a&&(this.a=new $t(this,0)),!tE(yc(this.a,(ht(),k9)));case 6:return!this.a&&(this.a=new $t(this,0)),!tE(yc(this.a,(ht(),y9)))}return ys(this,e-ee((ht(),O0)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():O0,e))},s.sh=function(e,t){switch(e){case 0:!this.a&&(this.a=new $t(this,0)),M8(this.a,t);return;case 1:!this.b&&(this.b=new Wu((Sn(),nr),ec,this,1)),aT(this.b,t);return;case 2:!this.c&&(this.c=new Wu((Sn(),nr),ec,this,2)),aT(this.c,t);return;case 3:!this.a&&(this.a=new $t(this,0)),i2(yc(this.a,(ht(),qy))),!this.a&&(this.a=new $t(this,0)),E5(yc(this.a,qy),u(t,14));return;case 4:!this.a&&(this.a=new $t(this,0)),i2(yc(this.a,(ht(),Gy))),!this.a&&(this.a=new $t(this,0)),E5(yc(this.a,Gy),u(t,14));return;case 5:!this.a&&(this.a=new $t(this,0)),i2(yc(this.a,(ht(),k9))),!this.a&&(this.a=new $t(this,0)),E5(yc(this.a,k9),u(t,14));return;case 6:!this.a&&(this.a=new $t(this,0)),i2(yc(this.a,(ht(),y9))),!this.a&&(this.a=new $t(this,0)),E5(yc(this.a,y9),u(t,14));return}Ss(this,e-ee((ht(),O0)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():O0,e),t)},s.zh=function(){return ht(),O0},s.Bh=function(e){switch(e){case 0:!this.a&&(this.a=new $t(this,0)),de(this.a);return;case 1:!this.b&&(this.b=new Wu((Sn(),nr),ec,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Wu((Sn(),nr),ec,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new $t(this,0)),i2(yc(this.a,(ht(),qy)));return;case 4:!this.a&&(this.a=new $t(this,0)),i2(yc(this.a,(ht(),Gy)));return;case 5:!this.a&&(this.a=new $t(this,0)),i2(yc(this.a,(ht(),k9)));return;case 6:!this.a&&(this.a=new $t(this,0)),i2(yc(this.a,(ht(),y9)));return}Ms(this,e-ee((ht(),O0)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():O0,e))},s.Ib=function(){var e;return this.j&4?jo(this):(e=new Ns(jo(this)),e.a+=" (mixed: ",m5(e,this.a),e.a+=")",e.a)},w(Wt,"XMLTypeDocumentRootImpl",669),b(1919,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1,2024:1},r3n),s.Ih=function(e,t){switch(e.yj()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:Lr(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Te(t);case 6:return sue(u(t,190));case 12:case 47:case 49:case 11:return JRn(this,e,t);case 13:return t==null?null:Xye(u(t,240));case 15:case 14:return t==null?null:rhe(K(Y(t)));case 17:return nFn((ht(),t));case 18:return nFn(t);case 21:case 20:return t==null?null:che(u(t,155).a);case 27:return oue(u(t,190));case 30:return gxn((ht(),u(t,15)));case 31:return gxn(u(t,15));case 40:return hue((ht(),t));case 42:return eFn((ht(),t));case 43:return eFn(t);case 59:case 48:return fue((ht(),t));default:throw T(new Hn(_4+e.ne()+f0))}},s.Jh=function(e){var t,i,r,c,o;switch(e.G==-1&&(e.G=(i=ts(e),i?v1(i.Mh(),e):-1)),e.G){case 0:return t=new cG,t;case 1:return r=new c3n,r;case 2:return c=new C9n,c;case 3:return o=new E9n,o;default:throw T(new Hn(OB+e.zb+f0))}},s.Kh=function(e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$;switch(e.yj()){case 5:case 52:case 4:return t;case 6:return Cpe(t);case 8:case 7:return t==null?null:lve(t);case 9:return t==null?null:Y8(us((r=Cc(t,!0),r.length>0&&(Me(0,r.length),r.charCodeAt(0)==43)?r.substr(1):r),-128,127)<<24>>24);case 10:return t==null?null:Y8(us((c=Cc(t,!0),c.length>0&&(Me(0,c.length),c.charCodeAt(0)==43)?c.substr(1):c),-128,127)<<24>>24);case 11:return Te(t0(this,(ht(),dee),t));case 12:return Te(t0(this,(ht(),bee),t));case 13:return t==null?null:new MG(Cc(t,!0));case 15:case 14:return D9e(t);case 16:return Te(t0(this,(ht(),wee),t));case 17:return j$n((ht(),t));case 18:return j$n(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Cc(t,!0);case 21:case 20:return K9e(t);case 22:return Te(t0(this,(ht(),gee),t));case 23:return Te(t0(this,(ht(),pee),t));case 24:return Te(t0(this,(ht(),vee),t));case 25:return Te(t0(this,(ht(),mee),t));case 26:return Te(t0(this,(ht(),kee),t));case 27:return mpe(t);case 30:return E$n((ht(),t));case 31:return E$n(t);case 32:return t==null?null:Q(us((d=Cc(t,!0),d.length>0&&(Me(0,d.length),d.charCodeAt(0)==43)?d.substr(1):d),Bi,nt));case 33:return t==null?null:new el((g=Cc(t,!0),g.length>0&&(Me(0,g.length),g.charCodeAt(0)==43)?g.substr(1):g));case 34:return t==null?null:Q(us((p=Cc(t,!0),p.length>0&&(Me(0,p.length),p.charCodeAt(0)==43)?p.substr(1):p),Bi,nt));case 36:return t==null?null:Ca(PM((v=Cc(t,!0),v.length>0&&(Me(0,v.length),v.charCodeAt(0)==43)?v.substr(1):v)));case 37:return t==null?null:Ca(PM((m=Cc(t,!0),m.length>0&&(Me(0,m.length),m.charCodeAt(0)==43)?m.substr(1):m)));case 40:return F2e((ht(),t));case 42:return C$n((ht(),t));case 43:return C$n(t);case 44:return t==null?null:new el((C=Cc(t,!0),C.length>0&&(Me(0,C.length),C.charCodeAt(0)==43)?C.substr(1):C));case 45:return t==null?null:new el((S=Cc(t,!0),S.length>0&&(Me(0,S.length),S.charCodeAt(0)==43)?S.substr(1):S));case 46:return Cc(t,!1);case 47:return Te(t0(this,(ht(),yee),t));case 59:case 48:return x2e((ht(),t));case 49:return Te(t0(this,(ht(),jee),t));case 50:return t==null?null:Y3(us(($=Cc(t,!0),$.length>0&&(Me(0,$.length),$.charCodeAt(0)==43)?$.substr(1):$),DA,32767)<<16>>16);case 51:return t==null?null:Y3(us((o=Cc(t,!0),o.length>0&&(Me(0,o.length),o.charCodeAt(0)==43)?o.substr(1):o),DA,32767)<<16>>16);case 53:return Te(t0(this,(ht(),Eee),t));case 55:return t==null?null:Y3(us((f=Cc(t,!0),f.length>0&&(Me(0,f.length),f.charCodeAt(0)==43)?f.substr(1):f),DA,32767)<<16>>16);case 56:return t==null?null:Y3(us((h=Cc(t,!0),h.length>0&&(Me(0,h.length),h.charCodeAt(0)==43)?h.substr(1):h),DA,32767)<<16>>16);case 57:return t==null?null:Ca(PM((l=Cc(t,!0),l.length>0&&(Me(0,l.length),l.charCodeAt(0)==43)?l.substr(1):l)));case 58:return t==null?null:Ca(PM((a=Cc(t,!0),a.length>0&&(Me(0,a.length),a.charCodeAt(0)==43)?a.substr(1):a)));case 60:return t==null?null:Q(us((i=Cc(t,!0),i.length>0&&(Me(0,i.length),i.charCodeAt(0)==43)?i.substr(1):i),Bi,nt));case 61:return t==null?null:Q(us(Cc(t,!0),Bi,nt));default:throw T(new Hn(_4+e.ne()+f0))}};var Tee,L1n,Mee,N1n;w(Wt,"XMLTypeFactoryImpl",1919),b(586,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1,1945:1,586:1},fTn),s.N=!1,s.O=!1;var Aee=!1;w(Wt,"XMLTypePackageImpl",586),b(1852,1,{837:1},u3n),s._j=function(){return mZ(),Lee},w(Wt,"XMLTypePackageImpl/1",1852),b(1861,1,qe,s3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/10",1861),b(1862,1,qe,o3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/11",1862),b(1863,1,qe,f3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/12",1863),b(1864,1,qe,h3n),s.wj=function(e){return H0(e)},s.xj=function(e){return x(Si,q,333,e,7,1)},w(Wt,"XMLTypePackageImpl/13",1864),b(1865,1,qe,l3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/14",1865),b(1866,1,qe,a3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return x(Os,Pb,15,e,0,1)},w(Wt,"XMLTypePackageImpl/15",1866),b(1867,1,qe,d3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return x(Os,Pb,15,e,0,1)},w(Wt,"XMLTypePackageImpl/16",1867),b(1868,1,qe,b3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/17",1868),b(1869,1,qe,w3n),s.wj=function(e){return I(e,155)},s.xj=function(e){return x(W4,q,155,e,0,1)},w(Wt,"XMLTypePackageImpl/18",1869),b(1870,1,qe,g3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/19",1870),b(1853,1,qe,p3n),s.wj=function(e){return I(e,843)},s.xj=function(e){return x(Ky,rn,843,e,0,1)},w(Wt,"XMLTypePackageImpl/2",1853),b(1871,1,qe,v3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/20",1871),b(1872,1,qe,m3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/21",1872),b(1873,1,qe,k3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/22",1873),b(1874,1,qe,y3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/23",1874),b(1875,1,qe,j3n),s.wj=function(e){return I(e,190)},s.xj=function(e){return x(ku,q,190,e,0,2)},w(Wt,"XMLTypePackageImpl/24",1875),b(1876,1,qe,E3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/25",1876),b(1877,1,qe,C3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/26",1877),b(1878,1,qe,T3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return x(Os,Pb,15,e,0,1)},w(Wt,"XMLTypePackageImpl/27",1878),b(1879,1,qe,M3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return x(Os,Pb,15,e,0,1)},w(Wt,"XMLTypePackageImpl/28",1879),b(1880,1,qe,A3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/29",1880),b(1854,1,qe,S3n),s.wj=function(e){return I(e,667)},s.xj=function(e){return x(hI,rn,2021,e,0,1)},w(Wt,"XMLTypePackageImpl/3",1854),b(1881,1,qe,P3n),s.wj=function(e){return I(e,19)},s.xj=function(e){return x(Ui,q,19,e,0,1)},w(Wt,"XMLTypePackageImpl/30",1881),b(1882,1,qe,I3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/31",1882),b(1883,1,qe,O3n),s.wj=function(e){return I(e,162)},s.xj=function(e){return x(l0,q,162,e,0,1)},w(Wt,"XMLTypePackageImpl/32",1883),b(1884,1,qe,D3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/33",1884),b(1885,1,qe,$3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/34",1885),b(1886,1,qe,x3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/35",1886),b(1887,1,qe,F3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/36",1887),b(1888,1,qe,L3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return x(Os,Pb,15,e,0,1)},w(Wt,"XMLTypePackageImpl/37",1888),b(1889,1,qe,N3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return x(Os,Pb,15,e,0,1)},w(Wt,"XMLTypePackageImpl/38",1889),b(1890,1,qe,B3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/39",1890),b(1855,1,qe,R3n),s.wj=function(e){return I(e,668)},s.xj=function(e){return x(Hy,rn,2022,e,0,1)},w(Wt,"XMLTypePackageImpl/4",1855),b(1891,1,qe,_3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/40",1891),b(1892,1,qe,K3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/41",1892),b(1893,1,qe,H3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/42",1893),b(1894,1,qe,q3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/43",1894),b(1895,1,qe,G3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/44",1895),b(1896,1,qe,z3n),s.wj=function(e){return I(e,184)},s.xj=function(e){return x(a0,q,184,e,0,1)},w(Wt,"XMLTypePackageImpl/45",1896),b(1897,1,qe,U3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/46",1897),b(1898,1,qe,W3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/47",1898),b(1899,1,qe,X3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/48",1899),b(El,1,qe,V3n),s.wj=function(e){return I(e,184)},s.xj=function(e){return x(a0,q,184,e,0,1)},w(Wt,"XMLTypePackageImpl/49",El),b(1856,1,qe,Q3n),s.wj=function(e){return I(e,669)},s.xj=function(e){return x(x1n,rn,2023,e,0,1)},w(Wt,"XMLTypePackageImpl/5",1856),b(1901,1,qe,J3n),s.wj=function(e){return I(e,162)},s.xj=function(e){return x(l0,q,162,e,0,1)},w(Wt,"XMLTypePackageImpl/50",1901),b(1902,1,qe,Y3n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/51",1902),b(1903,1,qe,Z3n),s.wj=function(e){return I(e,19)},s.xj=function(e){return x(Ui,q,19,e,0,1)},w(Wt,"XMLTypePackageImpl/52",1903),b(1857,1,qe,n4n),s.wj=function(e){return mi(e)},s.xj=function(e){return x(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/6",1857),b(1858,1,qe,e4n),s.wj=function(e){return I(e,190)},s.xj=function(e){return x(ku,q,190,e,0,2)},w(Wt,"XMLTypePackageImpl/7",1858),b(1859,1,qe,t4n),s.wj=function(e){return K0(e)},s.xj=function(e){return x(si,q,476,e,8,1)},w(Wt,"XMLTypePackageImpl/8",1859),b(1860,1,qe,i4n),s.wj=function(e){return I(e,217)},s.xj=function(e){return x(fp,q,217,e,0,1)},w(Wt,"XMLTypePackageImpl/9",1860);var Af,R1,j9,lI,P;b(50,60,Uh,Ce),w(A1,"RegEx/ParseException",50),b(820,1,{},eq),s.sl=function(e){return ei*16)throw T(new Ce(Pe((je(),Vqn))));i=i*16+c}while(!0);if(this.a!=125)throw T(new Ce(Pe((je(),Qqn))));if(i>G4)throw T(new Ce(Pe((je(),Jqn))));e=i}else{if(c=0,this.c!=0||(c=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(i=c,Qe(this),this.c!=0||(c=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));i=i*16+c,e=i}break;case 117:if(r=0,Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(t=r,Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));t=t*16+r,e=t;break;case 118:if(Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(t=r,Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Ma(this.a))<0)throw T(new Ce(Pe((je(),M1))));if(t=t*16+r,t>G4)throw T(new Ce(Pe((je(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw T(new Ce(Pe((je(),Yqn))))}return e},s.ul=function(e){var t,i;switch(e){case 100:i=(this.e&32)==32?yl("Nd",!0):(Je(),aI);break;case 68:i=(this.e&32)==32?yl("Nd",!1):(Je(),q1n);break;case 119:i=(this.e&32)==32?yl("IsWord",!0):(Je(),Ov);break;case 87:i=(this.e&32)==32?yl("IsWord",!1):(Je(),z1n);break;case 115:i=(this.e&32)==32?yl("IsSpace",!0):(Je(),xp);break;case 83:i=(this.e&32)==32?yl("IsSpace",!1):(Je(),G1n);break;default:throw T(new Rr((t=e,YGn+t.toString(16))))}return i},s.vl=function(e){var t,i,r,c,o,f,h,l,a,d,g,p;for(this.b=1,Qe(this),t=null,this.c==0&&this.a==94?(Qe(this),e?d=(Je(),Je(),new ns(5)):(t=(Je(),Je(),new ns(4)),Ec(t,0,G4),d=new ns(4))):d=(Je(),Je(),new ns(4)),c=!0;(p=this.c)!=1&&!(p==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,p==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:Tb(d,this.ul(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.Ll(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=yY(this,i),!g)throw T(new Ce(Pe((je(),GB))));Tb(d,g),r=!0;break;default:i=this.tl()}else if(p==20){if(f=s3(this.i,58,this.d),f<0)throw T(new Ce(Pe((je(),ztn))));if(h=!0,Di(this.i,this.d)==94&&(++this.d,h=!1),o=Yu(this.i,this.d,f),l=hPn(o,h,(this.e&512)==512),!l)throw T(new Ce(Pe((je(),Gqn))));if(Tb(d,l),r=!0,f+1>=this.j||Di(this.i,f+1)!=93)throw T(new Ce(Pe((je(),ztn))));this.d=f+2}if(Qe(this),!r)if(this.c!=0||this.a!=45)Ec(d,i,i);else{if(Qe(this),(p=this.c)==1)throw T(new Ce(Pe((je(),TA))));p==0&&this.a==93?(Ec(d,i,i),Ec(d,45,45)):(a=this.a,p==10&&(a=this.tl()),Qe(this),Ec(d,i,a))}(this.e&Co)==Co&&this.c==0&&this.a==44&&Qe(this)}if(this.c==1)throw T(new Ce(Pe((je(),TA))));return t&&(B6(t,d),d=t),Jw(d),L6(d),this.b=0,Qe(this),d},s.wl=function(){var e,t,i,r;for(i=this.vl(!1);(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(Qe(this),this.c!=9)throw T(new Ce(Pe((je(),Uqn))));if(t=this.vl(!1),r==4)Tb(i,t);else if(e==45)B6(i,t);else if(e==38)zRn(i,t);else throw T(new Rr("ASSERT"))}else throw T(new Ce(Pe((je(),Wqn))));return Qe(this),i},s.xl=function(){var e,t;return e=this.a-48,t=(Je(),Je(),new r$(12,null,e)),!this.g&&(this.g=new bj),dj(this.g,new Rq(e)),Qe(this),t},s.yl=function(){return Qe(this),Je(),Iee},s.zl=function(){return Qe(this),Je(),Pee},s.Al=function(){throw T(new Ce(Pe((je(),Is))))},s.Bl=function(){throw T(new Ce(Pe((je(),Is))))},s.Cl=function(){return Qe(this),Lwe()},s.Dl=function(){return Qe(this),Je(),Dee},s.El=function(){return Qe(this),Je(),xee},s.Fl=function(){var e;if(this.d>=this.j||((e=Di(this.i,this.d++))&65504)!=64)throw T(new Ce(Pe((je(),Kqn))));return Qe(this),Je(),Je(),new rh(0,e-64)},s.Gl=function(){return Qe(this),mye()},s.Hl=function(){return Qe(this),Je(),Fee},s.Il=function(){var e;return e=(Je(),Je(),new rh(0,105)),Qe(this),e},s.Jl=function(){return Qe(this),Je(),$ee},s.Kl=function(){return Qe(this),Je(),Oee},s.Ll=function(e,t){return this.tl()},s.Ml=function(){return Qe(this),Je(),K1n},s.Nl=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw T(new Ce(Pe((je(),Bqn))));if(r=-1,t=null,e=Di(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new bj),dj(this.g,new Rq(r)),++this.d,Di(this.i,this.d)!=41)throw T(new Ce(Pe((je(),Ba))));++this.d}else switch(e==63&&--this.d,Qe(this),t=GZ(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw T(new Ce(Pe((je(),Ba))));break;default:throw T(new Ce(Pe((je(),Rqn))))}if(Qe(this),c=Ud(this),i=null,c.e==2){if(c.em()!=2)throw T(new Ce(Pe((je(),_qn))));i=c.am(1),c=c.am(0)}if(this.c!=7)throw T(new Ce(Pe((je(),Ba))));return Qe(this),Je(),Je(),new HPn(r,t,c,i)},s.Ol=function(){return Qe(this),Je(),H1n},s.Pl=function(){var e;if(Qe(this),e=VE(24,Ud(this)),this.c!=7)throw T(new Ce(Pe((je(),Ba))));return Qe(this),e},s.Ql=function(){var e;if(Qe(this),e=VE(20,Ud(this)),this.c!=7)throw T(new Ce(Pe((je(),Ba))));return Qe(this),e},s.Rl=function(){var e;if(Qe(this),e=VE(22,Ud(this)),this.c!=7)throw T(new Ce(Pe((je(),Ba))));return Qe(this),e},s.Sl=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d=this.j)throw T(new Ce(Pe((je(),qtn))));if(t==45){for(++this.d;this.d=this.j)throw T(new Ce(Pe((je(),qtn))))}if(t==58){if(++this.d,Qe(this),r=WCn(Ud(this),e,i),this.c!=7)throw T(new Ce(Pe((je(),Ba))));Qe(this)}else if(t==41)++this.d,Qe(this),r=WCn(Ud(this),e,i);else throw T(new Ce(Pe((je(),Nqn))));return r},s.Tl=function(){var e;if(Qe(this),e=VE(21,Ud(this)),this.c!=7)throw T(new Ce(Pe((je(),Ba))));return Qe(this),e},s.Ul=function(){var e;if(Qe(this),e=VE(23,Ud(this)),this.c!=7)throw T(new Ce(Pe((je(),Ba))));return Qe(this),e},s.Vl=function(){var e,t;if(Qe(this),e=this.f++,t=OD(Ud(this),e),this.c!=7)throw T(new Ce(Pe((je(),Ba))));return Qe(this),t},s.Wl=function(){var e;if(Qe(this),e=OD(Ud(this),0),this.c!=7)throw T(new Ce(Pe((je(),Ba))));return Qe(this),e},s.Xl=function(e){return Qe(this),this.c==5?(Qe(this),RE(e,(Je(),Je(),new eb(9,e)))):RE(e,(Je(),Je(),new eb(3,e)))},s.Yl=function(e){var t;return Qe(this),t=(Je(),Je(),new j5(2)),this.c==5?(Qe(this),Pa(t,C9),Pa(t,e)):(Pa(t,e),Pa(t,C9)),t},s.Zl=function(e){return Qe(this),this.c==5?(Qe(this),Je(),Je(),new eb(9,e)):(Je(),Je(),new eb(3,e))},s.a=0,s.b=0,s.c=0,s.d=0,s.e=0,s.f=1,s.g=null,s.j=0,w(A1,"RegEx/RegexParser",820),b(1824,820,{},T9n),s.sl=function(e){return!1},s.tl=function(){return eZ(this)},s.ul=function(e){return m4(e)},s.vl=function(e){return N_n(this)},s.wl=function(){throw T(new Ce(Pe((je(),Is))))},s.xl=function(){throw T(new Ce(Pe((je(),Is))))},s.yl=function(){throw T(new Ce(Pe((je(),Is))))},s.zl=function(){throw T(new Ce(Pe((je(),Is))))},s.Al=function(){return Qe(this),m4(67)},s.Bl=function(){return Qe(this),m4(73)},s.Cl=function(){throw T(new Ce(Pe((je(),Is))))},s.Dl=function(){throw T(new Ce(Pe((je(),Is))))},s.El=function(){throw T(new Ce(Pe((je(),Is))))},s.Fl=function(){return Qe(this),m4(99)},s.Gl=function(){throw T(new Ce(Pe((je(),Is))))},s.Hl=function(){throw T(new Ce(Pe((je(),Is))))},s.Il=function(){return Qe(this),m4(105)},s.Jl=function(){throw T(new Ce(Pe((je(),Is))))},s.Kl=function(){throw T(new Ce(Pe((je(),Is))))},s.Ll=function(e,t){return Tb(e,m4(t)),-1},s.Ml=function(){return Qe(this),Je(),Je(),new rh(0,94)},s.Nl=function(){throw T(new Ce(Pe((je(),Is))))},s.Ol=function(){return Qe(this),Je(),Je(),new rh(0,36)},s.Pl=function(){throw T(new Ce(Pe((je(),Is))))},s.Ql=function(){throw T(new Ce(Pe((je(),Is))))},s.Rl=function(){throw T(new Ce(Pe((je(),Is))))},s.Sl=function(){throw T(new Ce(Pe((je(),Is))))},s.Tl=function(){throw T(new Ce(Pe((je(),Is))))},s.Ul=function(){throw T(new Ce(Pe((je(),Is))))},s.Vl=function(){var e;if(Qe(this),e=OD(Ud(this),0),this.c!=7)throw T(new Ce(Pe((je(),Ba))));return Qe(this),e},s.Wl=function(){throw T(new Ce(Pe((je(),Is))))},s.Xl=function(e){return Qe(this),RE(e,(Je(),Je(),new eb(3,e)))},s.Yl=function(e){var t;return Qe(this),t=(Je(),Je(),new j5(2)),Pa(t,e),Pa(t,C9),t},s.Zl=function(e){return Qe(this),Je(),Je(),new eb(3,e)};var Ug=null,Pv=null;w(A1,"RegEx/ParserForXMLSchema",1824),b(117,1,z4,rd),s.$l=function(e){throw T(new Rr("Not supported."))},s._l=function(){return-1},s.am=function(e){return null},s.bm=function(){return null},s.cm=function(e){},s.dm=function(e){},s.em=function(){return 0},s.Ib=function(){return this.fm(0)},s.fm=function(e){return this.e==11?".":""},s.e=0;var B1n,Iv,E9,See,R1n,hw=null,aI,TH=null,_1n,C9,MH=null,K1n,H1n,q1n,G1n,z1n,Pee,xp,Iee,Oee,Dee,$ee,Ov,xee,Fee,dMe=w(A1,"RegEx/Token",117);b(136,117,{3:1,136:1,117:1},ns),s.fm=function(e){var t,i,r;if(this.e==4)if(this==_1n)i=".";else if(this==aI)i="\\d";else if(this==Ov)i="\\w";else if(this==xp)i="\\s";else{for(r=new i1,r.a+="[",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?dr(r,Q7(this.b[t])):(dr(r,Q7(this.b[t])),r.a+="-",dr(r,Q7(this.b[t+1])));r.a+="]",i=r.a}else if(this==q1n)i="\\D";else if(this==z1n)i="\\W";else if(this==G1n)i="\\S";else{for(r=new i1,r.a+="[^",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?dr(r,Q7(this.b[t])):(dr(r,Q7(this.b[t])),r.a+="-",dr(r,Q7(this.b[t+1])));r.a+="]",i=r.a}return i},s.a=!1,s.c=!1,w(A1,"RegEx/RangeToken",136),b(584,1,{584:1},Rq),s.a=0,w(A1,"RegEx/RegexParser/ReferencePosition",584),b(583,1,{3:1,583:1},L8n),s.Fb=function(e){var t;return e==null||!I(e,583)?!1:(t=u(e,583),An(this.b,t.b)&&this.a==t.a)},s.Hb=function(){return m1(this.b+"/"+VY(this.a))},s.Ib=function(){return this.c.fm(this.a)},s.a=0,w(A1,"RegEx/RegularExpression",583),b(223,117,z4,rh),s._l=function(){return this.a},s.fm=function(e){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+rD(this.a&Ut);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=Yi?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+Yu(i,i.length-6,i.length)):r=""+rD(this.a&Ut)}break;case 8:this==K1n||this==H1n?r=""+rD(this.a&Ut):r="\\"+rD(this.a&Ut);break;default:r=null}return r},s.a=0,w(A1,"RegEx/Token/CharToken",223),b(309,117,z4,eb),s.am=function(e){return this.a},s.cm=function(e){this.b=e},s.dm=function(e){this.c=e},s.em=function(){return 1},s.fm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.fm(e)+"*";else if(this.c==this.b)t=this.a.fm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.fm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.fm(e)+"{"+this.c+",}";else throw T(new Rr("Token#toString(): CLOSURE "+this.c+Ji+this.b));else if(this.c<0&&this.b<0)t=this.a.fm(e)+"*?";else if(this.c==this.b)t=this.a.fm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.fm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.fm(e)+"{"+this.c+",}?";else throw T(new Rr("Token#toString(): NONGREEDYCLOSURE "+this.c+Ji+this.b));return t},s.b=0,s.c=0,w(A1,"RegEx/Token/ClosureToken",309),b(821,117,z4,OW),s.am=function(e){return e==0?this.a:this.b},s.em=function(){return 2},s.fm=function(e){var t;return this.b.e==3&&this.b.am(0)==this.a?t=this.a.fm(e)+"+":this.b.e==9&&this.b.am(0)==this.a?t=this.a.fm(e)+"+?":t=this.a.fm(e)+(""+this.b.fm(e)),t},w(A1,"RegEx/Token/ConcatToken",821),b(1822,117,z4,HPn),s.am=function(e){if(e==0)return this.d;if(e==1)return this.b;throw T(new Rr("Internal Error: "+e))},s.em=function(){return this.b?2:1},s.fm=function(e){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},s.c=0,w(A1,"RegEx/Token/ConditionToken",1822),b(1823,117,z4,HMn),s.am=function(e){return this.b},s.em=function(){return 1},s.fm=function(e){return"(?"+(this.a==0?"":VY(this.a))+(this.c==0?"":VY(this.c))+":"+this.b.fm(e)+")"},s.a=0,s.c=0,w(A1,"RegEx/Token/ModifierToken",1823),b(822,117,z4,NW),s.am=function(e){return this.a},s.em=function(){return 1},s.fm=function(e){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.fm(e)+")":t="("+this.a.fm(e)+")";break;case 20:t="(?="+this.a.fm(e)+")";break;case 21:t="(?!"+this.a.fm(e)+")";break;case 22:t="(?<="+this.a.fm(e)+")";break;case 23:t="(?"+this.a.fm(e)+")"}return t},s.b=0,w(A1,"RegEx/Token/ParenToken",822),b(521,117,{3:1,117:1,521:1},r$),s.bm=function(){return this.b},s.fm=function(e){return this.e==12?"\\"+this.a:Ame(this.b)},s.a=0,w(A1,"RegEx/Token/StringToken",521),b(465,117,z4,j5),s.$l=function(e){Pa(this,e)},s.am=function(e){return u(Td(this.a,e),117)},s.em=function(){return this.a?this.a.a.c.length:0},s.fm=function(e){var t,i,r,c,o;if(this.e==1){if(this.a.a.c.length==2)t=u(Td(this.a,0),117),i=u(Td(this.a,1),117),i.e==3&&i.am(0)==t?c=t.fm(e)+"+":i.e==9&&i.am(0)==t?c=t.fm(e)+"+?":c=t.fm(e)+(""+i.fm(e));else{for(o=new i1,r=0;r=this.c.b:this.a<=this.c.b},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Vb=function(){return this.b-1},s.Qb=function(){throw T(new t1(czn))},s.a=0,s.b=0,w(hin,"ExclusiveRange/RangeIterator",254);var Fs=p3(MA,"C"),be=p3(am,"I"),_u=p3(V2,"Z"),Ql=p3(dm,"J"),ku=p3(fm,"B"),ji=p3(hm,"D"),lw=p3(lm,"F"),Wg=p3(bm,"S"),bMe=Et("org.eclipse.elk.core.labels","ILabelManager"),U1n=Et(zi,"DiagnosticChain"),W1n=Et($Gn,"ResourceSet"),X1n=w(zi,"InvocationTargetException",null),Nee=(mj(),cde),Bee=Bee=X4e;nbe(Wte),Mbe("permProps",[[[RA,_A],[KA,"gecko1_8"]],[[RA,_A],[KA,"ie10"]],[[RA,_A],[KA,"ie8"]],[[RA,_A],[KA,"ie9"]],[[RA,_A],[KA,"safari"]]]),Bee(null,"elk",null)}).call(this)}).call(this,typeof Hee<"u"?Hee:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(ft,dt,Ot){function Ei(Gt,Ue){if(!(Gt instanceof Ue))throw new TypeError("Cannot call a class as a function")}function j(Gt,Ue){if(!Gt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ue&&(typeof Ue=="object"||typeof Ue=="function")?Ue:Gt}function qt(Gt,Ue){if(typeof Ue!="function"&&Ue!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ue);Gt.prototype=Object.create(Ue&&Ue.prototype,{constructor:{value:Gt,enumerable:!1,writable:!0,configurable:!0}}),Ue&&(Object.setPrototypeOf?Object.setPrototypeOf(Gt,Ue):Gt.__proto__=Ue)}var yu=ft("./elk-api.js").default,_t=function(Gt){qt(Ue,Gt);function Ue(){var Wi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ei(this,Ue);var Ci=Object.assign({},Wi),Mn=!1;try{ft.resolve("web-worker"),Mn=!0}catch{}if(Wi.workerUrl)if(Mn){var vc=ft("web-worker");Ci.workerFactory=function(fo){return new vc(fo)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +Consider installing the package or pass your own 'workerFactory' to ELK's constructor. +... Falling back to non-web worker version.`);if(!Ci.workerFactory){var tc=ft("./elk-worker.min.js"),oo=tc.Worker;Ci.workerFactory=function(fo){return new oo(fo)}}return j(this,(Ue.__proto__||Object.getPrototypeOf(Ue)).call(this,Ci))}return Ue}(yu);Object.defineProperty(dt.exports,"__esModule",{value:!0}),dt.exports=_t,_t.default=_t},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(ft,dt,Ot){dt.exports=Worker},{}]},{},[3])(3)})})(Wee);var TMe=Wee.exports;const MMe=wMe(TMe),AMe=(Ee,It,ft)=>{const{parentById:dt}=ft,Ot=new Set;let Ei=Ee;for(;Ei;){if(Ot.add(Ei),Ei===It)return Ei;Ei=dt[Ei]}for(Ei=It;Ei;){if(Ot.has(Ei))return Ei;Ei=dt[Ei]}return"root"},qee=new MMe,dw={},SMe={};let Np={};const PMe=function(Ee,It,ft,dt,Ot,Ei,j){const qt=ft.select(`[id="${It}"]`),yu=qt.insert("g").attr("class","nodes");return Object.keys(Ee).forEach(function(Gt){const Ue=Ee[Gt];let Wi="default";Ue.classes.length>0&&(Wi=Ue.classes.join(" "));const Ci=Y1n(Ue.styles);let Mn=Ue.text!==void 0?Ue.text:Ue.id,vc;const tc={width:0,height:0};if(kMe(J1n().flowchart.htmlLabels)){const Yo={label:Mn.replace(/fa[blrs]?:fa-[\w-]+/g,Fv=>``)};vc=yMe(qt,Yo).node();const xv=vc.getBBox();tc.width=xv.width,tc.height=xv.height,tc.labelNode=vc,vc.parentNode.removeChild(vc)}else{const Yo=dt.createElementNS("http://www.w3.org/2000/svg","text");Yo.setAttribute("style",Ci.labelStyle.replace("color:","fill:"));const xv=Mn.split(Uee.lineBreakRegex);for(const Lv of xv){const Bp=dt.createElementNS("http://www.w3.org/2000/svg","tspan");Bp.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Bp.setAttribute("dy","1em"),Bp.setAttribute("x","1"),Bp.textContent=Lv,Yo.appendChild(Bp)}vc=Yo;const Fv=vc.getBBox();tc.width=Fv.width,tc.height=Fv.height,tc.labelNode=vc}const oo=[{id:Ue.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:Ue.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:Ue.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:Ue.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let fo=0,bc="",id={};switch(Ue.type){case"round":fo=5,bc="rect";break;case"square":bc="rect";break;case"diamond":bc="question",id={portConstraints:"FIXED_SIDE"};break;case"hexagon":bc="hexagon";break;case"odd":bc="rect_left_inv_arrow";break;case"lean_right":bc="lean_right";break;case"lean_left":bc="lean_left";break;case"trapezoid":bc="trapezoid";break;case"inv_trapezoid":bc="inv_trapezoid";break;case"odd_right":bc="rect_left_inv_arrow";break;case"circle":bc="circle";break;case"ellipse":bc="ellipse";break;case"stadium":bc="stadium";break;case"subroutine":bc="subroutine";break;case"cylinder":bc="cylinder";break;case"group":bc="rect";break;case"doublecircle":bc="doublecircle";break;default:bc="rect"}const bw={labelStyle:Ci.labelStyle,shape:bc,labelText:Mn,rx:fo,ry:fo,class:Wi,style:Ci.style,id:Ue.id,link:Ue.link,linkTarget:Ue.linkTarget,tooltip:Ot.db.getTooltip(Ue.id)||"",domId:Ot.db.lookUpDomId(Ue.id),haveCallback:Ue.haveCallback,width:Ue.type==="group"?500:void 0,dir:Ue.dir,type:Ue.type,props:Ue.props,padding:J1n().flowchart.padding};let Xg,ww;bw.type!=="group"&&(ww=jMe(yu,bw,Ue.dir),Xg=ww.node().getBBox());const H1={id:Ue.id,ports:Ue.type==="diamond"?oo:[],layoutOptions:id,labelText:Mn,labelData:tc,domId:Ot.db.lookUpDomId(Ue.id),width:Xg==null?void 0:Xg.width,height:Xg==null?void 0:Xg.height,type:Ue.type,el:ww,parent:Ei.parentById[Ue.id]};Np[bw.id]=H1}),j},Gee=(Ee,It,ft)=>{const dt={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return dt.TD=dt.TB,K1.info("abc88",ft,It,Ee),dt[ft][It][Ee]},zee=(Ee,It,ft)=>{if(K1.info("getNextPort abc88",{node:Ee,edgeDirection:It,graphDirection:ft}),!dw[Ee])switch(ft){case"TB":case"TD":dw[Ee]={inPosition:"north",outPosition:"south"};break;case"BT":dw[Ee]={inPosition:"south",outPosition:"north"};break;case"RL":dw[Ee]={inPosition:"east",outPosition:"west"};break;case"LR":dw[Ee]={inPosition:"west",outPosition:"east"};break}const dt=It==="in"?dw[Ee].inPosition:dw[Ee].outPosition;return It==="in"?dw[Ee].inPosition=Gee(dw[Ee].inPosition,It,ft):dw[Ee].outPosition=Gee(dw[Ee].outPosition,It,ft),dt},IMe=(Ee,It)=>{let ft=Ee.start,dt=Ee.end;const Ot=Np[ft],Ei=Np[dt];return!Ot||!Ei?{source:ft,target:dt}:(Ot.type==="diamond"&&(ft=`${ft}-${zee(ft,"out",It)}`),Ei.type==="diamond"&&(dt=`${dt}-${zee(dt,"in",It)}`),{source:ft,target:dt})},OMe=function(Ee,It,ft,dt){K1.info("abc78 edges = ",Ee);const Ot=dt.insert("g").attr("class","edgeLabels");let Ei={},j=It.db.getDirection(),qt,yu;if(Ee.defaultStyle!==void 0){const _t=Y1n(Ee.defaultStyle);qt=_t.style,yu=_t.labelStyle}return Ee.forEach(function(_t){var Gt="L-"+_t.start+"-"+_t.end;Ei[Gt]===void 0?(Ei[Gt]=0,K1.info("abc78 new entry",Gt,Ei[Gt])):(Ei[Gt]++,K1.info("abc78 new entry",Gt,Ei[Gt]));let Ue=Gt+"-"+Ei[Gt];K1.info("abc78 new link id to be used is",Gt,Ue,Ei[Gt]);var Wi="LS-"+_t.start,Ci="LE-"+_t.end;const Mn={style:"",labelStyle:""};switch(Mn.minlen=_t.length||1,_t.type==="arrow_open"?Mn.arrowhead="none":Mn.arrowhead="normal",Mn.arrowTypeStart="arrow_open",Mn.arrowTypeEnd="arrow_open",_t.type){case"double_arrow_cross":Mn.arrowTypeStart="arrow_cross";case"arrow_cross":Mn.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":Mn.arrowTypeStart="arrow_point";case"arrow_point":Mn.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":Mn.arrowTypeStart="arrow_circle";case"arrow_circle":Mn.arrowTypeEnd="arrow_circle";break}let vc="",tc="";switch(_t.stroke){case"normal":vc="fill:none;",qt!==void 0&&(vc=qt),yu!==void 0&&(tc=yu),Mn.thickness="normal",Mn.pattern="solid";break;case"dotted":Mn.thickness="normal",Mn.pattern="dotted",Mn.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Mn.thickness="thick",Mn.pattern="solid",Mn.style="stroke-width: 3.5px;fill:none;";break}if(_t.style!==void 0){const id=Y1n(_t.style);vc=id.style,tc=id.labelStyle}Mn.style=Mn.style+=vc,Mn.labelStyle=Mn.labelStyle+=tc,_t.interpolate!==void 0?Mn.curve=Q1n(_t.interpolate,$H):Ee.defaultInterpolate!==void 0?Mn.curve=Q1n(Ee.defaultInterpolate,$H):Mn.curve=Q1n(SMe.curve,$H),_t.text===void 0?_t.style!==void 0&&(Mn.arrowheadStyle="fill: #333"):(Mn.arrowheadStyle="fill: #333",Mn.labelpos="c"),Mn.labelType="text",Mn.label=_t.text.replace(Uee.lineBreakRegex,` +`),_t.style===void 0&&(Mn.style=Mn.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),Mn.labelStyle=Mn.labelStyle.replace("color:","fill:"),Mn.id=Ue,Mn.classes="flowchart-link "+Wi+" "+Ci;const oo=EMe(Ot,Mn),{source:fo,target:bc}=IMe(_t,j);K1.debug("abc78 source and target",fo,bc),ft.edges.push({id:"e"+_t.start+_t.end,sources:[fo],targets:[bc],labelEl:oo,labels:[{width:Mn.width,height:Mn.height,orgWidth:Mn.width,orgHeight:Mn.height,text:Mn.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:Mn})}),ft},DMe=function(Ee,It,ft,dt){let Ot="";switch(dt&&(Ot=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Ot=Ot.replace(/\(/g,"\\("),Ot=Ot.replace(/\)/g,"\\)")),It.arrowTypeStart){case"arrow_cross":Ee.attr("marker-start","url("+Ot+"#"+ft+"-crossStart)");break;case"arrow_point":Ee.attr("marker-start","url("+Ot+"#"+ft+"-pointStart)");break;case"arrow_barb":Ee.attr("marker-start","url("+Ot+"#"+ft+"-barbStart)");break;case"arrow_circle":Ee.attr("marker-start","url("+Ot+"#"+ft+"-circleStart)");break;case"aggregation":Ee.attr("marker-start","url("+Ot+"#"+ft+"-aggregationStart)");break;case"extension":Ee.attr("marker-start","url("+Ot+"#"+ft+"-extensionStart)");break;case"composition":Ee.attr("marker-start","url("+Ot+"#"+ft+"-compositionStart)");break;case"dependency":Ee.attr("marker-start","url("+Ot+"#"+ft+"-dependencyStart)");break;case"lollipop":Ee.attr("marker-start","url("+Ot+"#"+ft+"-lollipopStart)");break}switch(It.arrowTypeEnd){case"arrow_cross":Ee.attr("marker-end","url("+Ot+"#"+ft+"-crossEnd)");break;case"arrow_point":Ee.attr("marker-end","url("+Ot+"#"+ft+"-pointEnd)");break;case"arrow_barb":Ee.attr("marker-end","url("+Ot+"#"+ft+"-barbEnd)");break;case"arrow_circle":Ee.attr("marker-end","url("+Ot+"#"+ft+"-circleEnd)");break;case"aggregation":Ee.attr("marker-end","url("+Ot+"#"+ft+"-aggregationEnd)");break;case"extension":Ee.attr("marker-end","url("+Ot+"#"+ft+"-extensionEnd)");break;case"composition":Ee.attr("marker-end","url("+Ot+"#"+ft+"-compositionEnd)");break;case"dependency":Ee.attr("marker-end","url("+Ot+"#"+ft+"-dependencyEnd)");break;case"lollipop":Ee.attr("marker-end","url("+Ot+"#"+ft+"-lollipopEnd)");break}},$Me=function(Ee,It){K1.info("Extracting classes"),It.db.clear("ver-2");try{return It.parse(Ee),It.db.getClasses()}catch{return{}}},xMe=function(Ee){const It={parentById:{},childrenById:{}},ft=Ee.getSubGraphs();return K1.info("Subgraphs - ",ft),ft.forEach(function(dt){dt.nodes.forEach(function(Ot){It.parentById[Ot]=dt.id,It.childrenById[dt.id]===void 0&&(It.childrenById[dt.id]=[]),It.childrenById[dt.id].push(Ot)})}),ft.forEach(function(dt){dt.id,It.parentById[dt.id]!==void 0&&It.parentById[dt.id]}),It},FMe=function(Ee,It,ft){const dt=AMe(Ee,It,ft);if(dt===void 0||dt==="root")return{x:0,y:0};const Ot=Np[dt].offset;return{x:Ot.posX,y:Ot.posY}},LMe=function(Ee,It,ft,dt,Ot){const Ei=FMe(It.sources[0],It.targets[0],Ot),j=It.sections[0].startPoint,qt=It.sections[0].endPoint,_t=(It.sections[0].bendPoints?It.sections[0].bendPoints:[]).map(tc=>[tc.x+Ei.x,tc.y+Ei.y]),Gt=[[j.x+Ei.x,j.y+Ei.y],..._t,[qt.x+Ei.x,qt.y+Ei.y]],Ue=CMe().curve($H),Wi=Ee.insert("path").attr("d",Ue(Gt)).attr("class","path").attr("fill","none"),Ci=Ee.insert("g").attr("class","edgeLabel"),Mn=bI(Ci.node().appendChild(It.labelEl)),vc=Mn.node().firstChild.getBoundingClientRect();Mn.attr("width",vc.width),Mn.attr("height",vc.height),Ci.attr("transform",`translate(${It.labels[0].x+Ei.x}, ${It.labels[0].y+Ei.y})`),DMe(Wi,ft,dt.type,dt.arrowMarkerAbsolute)},Xee=(Ee,It)=>{Ee.forEach(ft=>{ft.children||(ft.children=[]);const dt=It.childrenById[ft.id];dt&&dt.forEach(Ot=>{ft.children.push(Np[Ot])}),Xee(ft.children,It)})},NMe=async function(Ee,It,ft,dt){var Ot;dt.db.clear(),Np={},dt.db.setGen("gen-2"),dt.parser.parse(Ee);const Ei=bI("body").append("div").attr("style","height:400px").attr("id","cy");let j={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(K1.info("Drawing flowchart using v3 renderer",qee),dt.db.getDirection()){case"BT":j.layoutOptions["elk.direction"]="UP";break;case"TB":j.layoutOptions["elk.direction"]="DOWN";break;case"LR":j.layoutOptions["elk.direction"]="RIGHT";break;case"RL":j.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:yu,flowchart:_t}=J1n();let Gt;yu==="sandbox"&&(Gt=bI("#i"+It));const Ue=yu==="sandbox"?bI(Gt.nodes()[0].contentDocument.body):bI("body"),Wi=yu==="sandbox"?Gt.nodes()[0].contentDocument:document,Ci=Ue.select(`[id="${It}"]`);vMe(Ci,["point","circle","cross"],dt.type,dt.arrowMarkerAbsolute);const vc=dt.db.getVertices();let tc;const oo=dt.db.getSubGraphs();K1.info("Subgraphs - ",oo);for(let H1=oo.length-1;H1>=0;H1--)tc=oo[H1],dt.db.addVertex(tc.id,tc.title,"group",void 0,tc.classes,tc.dir);const fo=Ci.insert("g").attr("class","subgraphs"),bc=xMe(dt.db);j=PMe(vc,It,Ue,Wi,dt,bc,j);const id=Ci.insert("g").attr("class","edges edgePath"),bw=dt.db.getEdges();j=OMe(bw,dt,j,Ci),Object.keys(Np).forEach(H1=>{const Yo=Np[H1];Yo.parent||j.children.push(Yo),bc.childrenById[H1]!==void 0&&(Yo.labels=[{text:Yo.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:Yo.labelData.width,height:Yo.labelData.height}],delete Yo.x,delete Yo.y,delete Yo.width,delete Yo.height)}),Xee(j.children,bc),K1.info("after layout",JSON.stringify(j,null,2));const ww=await qee.layout(j);Vee(0,0,ww.children,Ci,fo,dt,0),K1.info("after layout",ww),(Ot=ww.edges)==null||Ot.map(H1=>{LMe(id,H1,H1.edgeData,dt,bc)}),mMe({},Ci,_t.diagramPadding,_t.useMaxWidth),Ei.remove()},Vee=(Ee,It,ft,dt,Ot,Ei,j)=>{ft.forEach(function(qt){if(qt)if(Np[qt.id].offset={posX:qt.x+Ee,posY:qt.y+It,x:Ee,y:It,depth:j,width:qt.width,height:qt.height},qt.type==="group"){const yu=Ot.insert("g").attr("class","subgraph");yu.insert("rect").attr("class","subgraph subgraph-lvl-"+j%5+" node").attr("x",qt.x+Ee).attr("y",qt.y+It).attr("width",qt.width).attr("height",qt.height);const _t=yu.insert("g").attr("class","label");_t.attr("transform",`translate(${qt.labels[0].x+Ee+qt.x}, ${qt.labels[0].y+It+qt.y})`),_t.node().appendChild(qt.labelData.labelNode),K1.info("Id (UGH)= ",qt.type,qt.labels)}else K1.info("Id (UGH)= ",qt.id),qt.el.attr("transform",`translate(${qt.x+Ee+qt.width/2}, ${qt.y+It+qt.height/2})`)}),ft.forEach(function(qt){qt&&qt.type==="group"&&Vee(Ee+qt.x,It+qt.y,qt.children,dt,Ot,Ei,j+1)})},BMe={getClasses:$Me,draw:NMe},RMe=Ee=>{let It="";for(let ft=0;ft<5;ft++)It+=` + .subgraph-lvl-${ft} { + fill: ${Ee[`surface${ft}`]}; + stroke: ${Ee[`surfacePeer${ft}`]}; + } + `;return It},_Me=Ee=>`.label { + font-family: ${Ee.fontFamily}; + color: ${Ee.nodeTextColor||Ee.textColor}; + } + .cluster-label text { + fill: ${Ee.titleColor}; + } + .cluster-label span { + color: ${Ee.titleColor}; + } + + .label text,span { + fill: ${Ee.nodeTextColor||Ee.textColor}; + color: ${Ee.nodeTextColor||Ee.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${Ee.mainBkg}; + stroke: ${Ee.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${Ee.arrowheadColor}; + } + + .edgePath .path { + stroke: ${Ee.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${Ee.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${Ee.edgeLabelBackground}; + rect { + opacity: 0.5; + background-color: ${Ee.edgeLabelBackground}; + fill: ${Ee.edgeLabelBackground}; + } + text-align: center; + } + + .cluster rect { + fill: ${Ee.clusterBkg}; + stroke: ${Ee.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${Ee.titleColor}; + } + + .cluster span { + color: ${Ee.titleColor}; + } + /* .cluster div { + color: ${Ee.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${Ee.fontFamily}; + font-size: 12px; + background: ${Ee.tertiaryColor}; + border: 1px solid ${Ee.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${Ee.textColor}; + } + .subgraph { + stroke-width:2; + rx:3; + } + // .subgraph-lvl-1 { + // fill:#ccc; + // // stroke:black; + // } + ${RMe(Ee)} +`,KMe=_Me,qMe={db:gMe,renderer:BMe,parser:pMe,styles:KMe};export{qMe as diagram}; diff --git a/juncture/wc/dist/js/index.js b/juncture/wc/dist/js/index.js new file mode 100644 index 000000000..879dc2b44 --- /dev/null +++ b/juncture/wc/dist/js/index.js @@ -0,0 +1,4443 @@ +var Yw=Object.defineProperty;var Hw=(D,O,z)=>O in D?Yw(D,O,{enumerable:!0,configurable:!0,writable:!0,value:z}):D[O]=z;var F1=(D,O,z)=>(Hw(D,typeof O!="symbol"?O+"":O,z),z);(function(){const O=document.createElement("link").relList;if(O&&O.supports&&O.supports("modulepreload"))return;for(const Y of document.querySelectorAll('link[rel="modulepreload"]'))F(Y);new MutationObserver(Y=>{for(const W of Y)if(W.type==="childList")for(const q of W.addedNodes)q.tagName==="LINK"&&q.rel==="modulepreload"&&F(q)}).observe(document,{childList:!0,subtree:!0});function z(Y){const W={};return Y.integrity&&(W.integrity=Y.integrity),Y.referrerPolicy&&(W.referrerPolicy=Y.referrerPolicy),Y.crossOrigin==="use-credentials"?W.credentials="include":Y.crossOrigin==="anonymous"?W.credentials="omit":W.credentials="same-origin",W}function F(Y){if(Y.ep)return;Y.ep=!0;const W=z(Y);fetch(Y.href,W)}})();const scriptRel="modulepreload",assetsURL=function(D){return"/juncture-wc/"+D},seen={},__vitePreload=function(O,z,F){if(!z||z.length===0)return O();const Y=document.getElementsByTagName("link");return Promise.all(z.map(W=>{if(W=assetsURL(W),W in seen)return;seen[W]=!0;const q=W.endsWith(".css"),X=q?'[rel="stylesheet"]':"";if(!!F)for(let st=Y.length-1;st>=0;st--){const ct=Y[st];if(ct.href===W&&(!q||ct.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${W}"]${X}`))return;const nt=document.createElement("link");if(nt.rel=q?"stylesheet":scriptRel,q||(nt.as="script",nt.crossOrigin=""),nt.href=W,document.head.appendChild(nt),q)return new Promise((st,ct)=>{nt.addEventListener("load",st),nt.addEventListener("error",()=>ct(new Error(`Unable to preload CSS for ${W}`)))})})).then(()=>O()).catch(W=>{const q=new Event("vite:preloadError",{cancelable:!0});if(q.payload=W,window.dispatchEvent(q),!q.defaultPrevented)throw W})};function makeMap(D,O){const z=Object.create(null),F=D.split(",");for(let Y=0;Y!!z[Y.toLowerCase()]:Y=>!!z[Y]}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=D=>onRE.test(D),isModelListener=D=>D.startsWith("onUpdate:"),extend$2=Object.assign,remove$1=(D,O)=>{const z=D.indexOf(O);z>-1&&D.splice(z,1)},hasOwnProperty$i=Object.prototype.hasOwnProperty,hasOwn=(D,O)=>hasOwnProperty$i.call(D,O),isArray$2=Array.isArray,isMap$2=D=>toTypeString(D)==="[object Map]",isSet$2=D=>toTypeString(D)==="[object Set]",isFunction$1=D=>typeof D=="function",isString=D=>typeof D=="string",isSymbol$1=D=>typeof D=="symbol",isObject$2=D=>D!==null&&typeof D=="object",isPromise=D=>(isObject$2(D)||isFunction$1(D))&&isFunction$1(D.then)&&isFunction$1(D.catch),objectToString$1=Object.prototype.toString,toTypeString=D=>objectToString$1.call(D),toRawType=D=>toTypeString(D).slice(8,-1),isPlainObject$1=D=>toTypeString(D)==="[object Object]",isIntegerKey=D=>isString(D)&&D!=="NaN"&&D[0]!=="-"&&""+parseInt(D,10)===D,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=D=>{const O=Object.create(null);return z=>O[z]||(O[z]=D(z))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(D=>D.replace(camelizeRE,(O,z)=>z?z.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(D=>D.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(D=>D.charAt(0).toUpperCase()+D.slice(1)),toHandlerKey=cacheStringFunction(D=>D?`on${capitalize(D)}`:""),hasChanged=(D,O)=>!Object.is(D,O),invokeArrayFns=(D,O)=>{for(let z=0;z{Object.defineProperty(D,O,{configurable:!0,enumerable:!1,value:z})},looseToNumber=D=>{const O=parseFloat(D);return isNaN(O)?D:O},toNumber$1=D=>{const O=isString(D)?Number(D):NaN;return isNaN(O)?D:O};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(D){if(isArray$2(D)){const O={};for(let z=0;z{if(z){const F=z.split(propertyDelimiterRE);F.length>1&&(O[F[0].trim()]=F[1].trim())}}),O}function normalizeClass(D){let O="";if(isString(D))O=D;else if(isArray$2(D))for(let z=0;zisString(D)?D:D==null?"":isArray$2(D)||isObject$2(D)&&(D.toString===objectToString$1||!isFunction$1(D.toString))?JSON.stringify(D,replacer,2):String(D),replacer=(D,O)=>O&&O.__v_isRef?replacer(D,O.value):isMap$2(O)?{[`Map(${O.size})`]:[...O.entries()].reduce((z,[F,Y])=>(z[`${F} =>`]=Y,z),{})}:isSet$2(O)?{[`Set(${O.size})`]:[...O.values()]}:isObject$2(O)&&!isArray$2(O)&&!isPlainObject$1(O)?String(O):O;let activeEffectScope;class EffectScope{constructor(O=!1){this.detached=O,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!O&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(O){if(this._active){const z=activeEffectScope;try{return activeEffectScope=this,O()}finally{activeEffectScope=z}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(O){if(this._active){let z,F;for(z=0,F=this.effects.length;z{const O=new Set(D);return O.w=0,O.n=0,O},wasTracked=D=>(D.w&trackOpBit)>0,newTracked=D=>(D.n&trackOpBit)>0,initDepMarkers=({deps:D})=>{if(D.length)for(let O=0;O{const{deps:O}=D;if(O.length){let z=0;for(let F=0;F{(st==="length"||!isSymbol$1(st)&&st>=tt)&&X.push(nt)})}else switch(z!==void 0&&X.push(q.get(z)),O){case"add":isArray$2(D)?isIntegerKey(z)&&X.push(q.get("length")):(X.push(q.get(ITERATE_KEY)),isMap$2(D)&&X.push(q.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$2(D)||(X.push(q.get(ITERATE_KEY)),isMap$2(D)&&X.push(q.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$2(D)&&X.push(q.get(ITERATE_KEY));break}if(X.length===1)X[0]&&triggerEffects(X[0]);else{const tt=[];for(const nt of X)nt&&tt.push(...nt);triggerEffects(createDep(tt))}}function triggerEffects(D,O){const z=isArray$2(D)?D:[...D];for(const F of z)F.computed&&triggerEffect(F);for(const F of z)F.computed||triggerEffect(F)}function triggerEffect(D,O){(D!==activeEffect||D.allowRecurse)&&(D.scheduler?D.scheduler():D.run())}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(D=>D!=="arguments"&&D!=="caller").map(D=>Symbol[D]).filter(isSymbol$1)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const D={};return["includes","indexOf","lastIndexOf"].forEach(O=>{D[O]=function(...z){const F=toRaw(this);for(let W=0,q=this.length;W{D[O]=function(...z){pauseTracking();const F=toRaw(this)[O].apply(this,z);return resetTracking(),F}}),D}function hasOwnProperty$h(D){const O=toRaw(this);return track(O,"has",D),O.hasOwnProperty(D)}class BaseReactiveHandler{constructor(O=!1,z=!1){this._isReadonly=O,this._shallow=z}get(O,z,F){const Y=this._isReadonly,W=this._shallow;if(z==="__v_isReactive")return!Y;if(z==="__v_isReadonly")return Y;if(z==="__v_isShallow")return W;if(z==="__v_raw"&&F===(Y?W?shallowReadonlyMap:readonlyMap:W?shallowReactiveMap:reactiveMap).get(O))return O;const q=isArray$2(O);if(!Y){if(q&&hasOwn(arrayInstrumentations,z))return Reflect.get(arrayInstrumentations,z,F);if(z==="hasOwnProperty")return hasOwnProperty$h}const X=Reflect.get(O,z,F);return(isSymbol$1(z)?builtInSymbols.has(z):isNonTrackableKeys(z))||(Y||track(O,"get",z),W)?X:isRef(X)?q&&isIntegerKey(z)?X:X.value:isObject$2(X)?Y?readonly(X):reactive(X):X}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(O=!1){super(!1,O)}set(O,z,F,Y){let W=O[z];if(isReadonly(W)&&isRef(W)&&!isRef(F))return!1;if(!this._shallow&&(!isShallow(F)&&!isReadonly(F)&&(W=toRaw(W),F=toRaw(F)),!isArray$2(O)&&isRef(W)&&!isRef(F)))return W.value=F,!0;const q=isArray$2(O)&&isIntegerKey(z)?Number(z)D,getProto=D=>Reflect.getPrototypeOf(D);function get$4(D,O,z=!1,F=!1){D=D.__v_raw;const Y=toRaw(D),W=toRaw(O);z||(hasChanged(O,W)&&track(Y,"get",O),track(Y,"get",W));const{has:q}=getProto(Y),X=F?toShallow:z?toReadonly:toReactive;if(q.call(Y,O))return X(D.get(O));if(q.call(Y,W))return X(D.get(W));D!==Y&&D.get(O)}function has$1(D,O=!1){const z=this.__v_raw,F=toRaw(z),Y=toRaw(D);return O||(hasChanged(D,Y)&&track(F,"has",D),track(F,"has",Y)),D===Y?z.has(D):z.has(D)||z.has(Y)}function size$1(D,O=!1){return D=D.__v_raw,!O&&track(toRaw(D),"iterate",ITERATE_KEY),Reflect.get(D,"size",D)}function add(D){D=toRaw(D);const O=toRaw(this);return getProto(O).has.call(O,D)||(O.add(D),trigger(O,"add",D,D)),this}function set$3(D,O){O=toRaw(O);const z=toRaw(this),{has:F,get:Y}=getProto(z);let W=F.call(z,D);W||(D=toRaw(D),W=F.call(z,D));const q=Y.call(z,D);return z.set(D,O),W?hasChanged(O,q)&&trigger(z,"set",D,O):trigger(z,"add",D,O),this}function deleteEntry(D){const O=toRaw(this),{has:z,get:F}=getProto(O);let Y=z.call(O,D);Y||(D=toRaw(D),Y=z.call(O,D)),F&&F.call(O,D);const W=O.delete(D);return Y&&trigger(O,"delete",D,void 0),W}function clear$h(){const D=toRaw(this),O=D.size!==0,z=D.clear();return O&&trigger(D,"clear",void 0,void 0),z}function createForEach(D,O){return function(F,Y){const W=this,q=W.__v_raw,X=toRaw(q),tt=O?toShallow:D?toReadonly:toReactive;return!D&&track(X,"iterate",ITERATE_KEY),q.forEach((nt,st)=>F.call(Y,tt(nt),tt(st),W))}}function createIterableMethod(D,O,z){return function(...F){const Y=this.__v_raw,W=toRaw(Y),q=isMap$2(W),X=D==="entries"||D===Symbol.iterator&&q,tt=D==="keys"&&q,nt=Y[D](...F),st=z?toShallow:O?toReadonly:toReactive;return!O&&track(W,"iterate",tt?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:ct,done:lt}=nt.next();return lt?{value:ct,done:lt}:{value:X?[st(ct[0]),st(ct[1])]:st(ct),done:lt}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(D){return function(...O){return D==="delete"?!1:this}}function createInstrumentations(){const D={get(W){return get$4(this,W)},get size(){return size$1(this)},has:has$1,add,set:set$3,delete:deleteEntry,clear:clear$h,forEach:createForEach(!1,!1)},O={get(W){return get$4(this,W,!1,!0)},get size(){return size$1(this)},has:has$1,add,set:set$3,delete:deleteEntry,clear:clear$h,forEach:createForEach(!1,!0)},z={get(W){return get$4(this,W,!0)},get size(){return size$1(this,!0)},has(W){return has$1.call(this,W,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},F={get(W){return get$4(this,W,!0,!0)},get size(){return size$1(this,!0)},has(W){return has$1.call(this,W,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(W=>{D[W]=createIterableMethod(W,!1,!1),z[W]=createIterableMethod(W,!0,!1),O[W]=createIterableMethod(W,!1,!0),F[W]=createIterableMethod(W,!0,!0)}),[D,z,O,F]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(D,O){const z=O?D?shallowReadonlyInstrumentations:shallowInstrumentations:D?readonlyInstrumentations:mutableInstrumentations;return(F,Y,W)=>Y==="__v_isReactive"?!D:Y==="__v_isReadonly"?D:Y==="__v_raw"?F:Reflect.get(hasOwn(z,Y)&&Y in F?z:F,Y,W)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(D){switch(D){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(D){return D.__v_skip||!Object.isExtensible(D)?0:targetTypeMap(toRawType(D))}function reactive(D){return isReadonly(D)?D:createReactiveObject(D,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(D){return createReactiveObject(D,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(D){return createReactiveObject(D,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(D,O,z,F,Y){if(!isObject$2(D)||D.__v_raw&&!(O&&D.__v_isReactive))return D;const W=Y.get(D);if(W)return W;const q=getTargetType(D);if(q===0)return D;const X=new Proxy(D,q===2?F:z);return Y.set(D,X),X}function isReactive(D){return isReadonly(D)?isReactive(D.__v_raw):!!(D&&D.__v_isReactive)}function isReadonly(D){return!!(D&&D.__v_isReadonly)}function isShallow(D){return!!(D&&D.__v_isShallow)}function isProxy(D){return isReactive(D)||isReadonly(D)}function toRaw(D){const O=D&&D.__v_raw;return O?toRaw(O):D}function markRaw(D){return def(D,"__v_skip",!0),D}const toReactive=D=>isObject$2(D)?reactive(D):D,toReadonly=D=>isObject$2(D)?readonly(D):D;function trackRefValue(D){shouldTrack&&activeEffect&&(D=toRaw(D),trackEffects(D.dep||(D.dep=createDep())))}function triggerRefValue(D,O){D=toRaw(D);const z=D.dep;z&&triggerEffects(z)}function isRef(D){return!!(D&&D.__v_isRef===!0)}function ref(D){return createRef(D,!1)}function createRef(D,O){return isRef(D)?D:new RefImpl(D,O)}class RefImpl{constructor(O,z){this.__v_isShallow=z,this.dep=void 0,this.__v_isRef=!0,this._rawValue=z?O:toRaw(O),this._value=z?O:toReactive(O)}get value(){return trackRefValue(this),this._value}set value(O){const z=this.__v_isShallow||isShallow(O)||isReadonly(O);O=z?O:toRaw(O),hasChanged(O,this._rawValue)&&(this._rawValue=O,this._value=z?O:toReactive(O),triggerRefValue(this))}}function unref(D){return isRef(D)?D.value:D}const shallowUnwrapHandlers={get:(D,O,z)=>unref(Reflect.get(D,O,z)),set:(D,O,z,F)=>{const Y=D[O];return isRef(Y)&&!isRef(z)?(Y.value=z,!0):Reflect.set(D,O,z,F)}};function proxyRefs(D){return isReactive(D)?D:new Proxy(D,shallowUnwrapHandlers)}class ComputedRefImpl{constructor(O,z,F,Y){this._setter=z,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(O,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!Y,this.__v_isReadonly=F}get value(){const O=toRaw(this);return trackRefValue(O),(O._dirty||!O._cacheable)&&(O._dirty=!1,O._value=O.effect.run()),O._value}set value(O){this._setter(O)}}function computed$1(D,O,z=!1){let F,Y;const W=isFunction$1(D);return W?(F=D,Y=NOOP):(F=D.get,Y=D.set),new ComputedRefImpl(F,Y,W||!Y,z)}function warn(D,...O){}function callWithErrorHandling(D,O,z,F){let Y;try{Y=F?D(...F):D()}catch(W){handleError$1(W,O,z)}return Y}function callWithAsyncErrorHandling(D,O,z,F){if(isFunction$1(D)){const W=callWithErrorHandling(D,O,z,F);return W&&isPromise(W)&&W.catch(q=>{handleError$1(q,O,z)}),W}const Y=[];for(let W=0;W>>1,Y=queue[F],W=getId$1(Y);WflushIndex&&queue.splice(O,1)}function queuePostFlushCb(D){isArray$2(D)?pendingPostFlushCbs.push(...D):(!activePostFlushCbs||!activePostFlushCbs.includes(D,D.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(D),queueFlush()}function flushPreFlushCbs(D,O=isFlushing?flushIndex+1:0){for(;OgetId$1(z)-getId$1(F)),postFlushIndex=0;postFlushIndexD.id==null?1/0:D.id,comparator=(D,O)=>{const z=getId$1(D)-getId$1(O);if(z===0){if(D.pre&&!O.pre)return-1;if(O.pre&&!D.pre)return 1}return z};function flushJobs(D){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const O=NOOP;try{for(flushIndex=0;flushIndexisString(ht)?ht.trim():ht)),ct&&(Y=z.map(looseToNumber))}let X,tt=F[X=toHandlerKey(O)]||F[X=toHandlerKey(camelize(O))];!tt&&W&&(tt=F[X=toHandlerKey(hyphenate(O))]),tt&&callWithAsyncErrorHandling(tt,D,6,Y);const nt=F[X+"Once"];if(nt){if(!D.emitted)D.emitted={};else if(D.emitted[X])return;D.emitted[X]=!0,callWithAsyncErrorHandling(nt,D,6,Y)}}function normalizeEmitsOptions(D,O,z=!1){const F=O.emitsCache,Y=F.get(D);if(Y!==void 0)return Y;const W=D.emits;let q={},X=!1;if(!isFunction$1(D)){const tt=nt=>{const st=normalizeEmitsOptions(nt,O,!0);st&&(X=!0,extend$2(q,st))};!z&&O.mixins.length&&O.mixins.forEach(tt),D.extends&&tt(D.extends),D.mixins&&D.mixins.forEach(tt)}return!W&&!X?(isObject$2(D)&&F.set(D,null),null):(isArray$2(W)?W.forEach(tt=>q[tt]=null):extend$2(q,W),isObject$2(D)&&F.set(D,q),q)}function isEmitListener(D,O){return!D||!isOn(O)?!1:(O=O.slice(2).replace(/Once$/,""),hasOwn(D,O[0].toLowerCase()+O.slice(1))||hasOwn(D,hyphenate(O))||hasOwn(D,O))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(D){const O=currentRenderingInstance;return currentRenderingInstance=D,currentScopeId=D&&D.type.__scopeId||null,O}function pushScopeId(D){currentScopeId=D}function popScopeId(){currentScopeId=null}function withCtx(D,O=currentRenderingInstance,z){if(!O||D._n)return D;const F=(...Y)=>{F._d&&setBlockTracking(-1);const W=setCurrentRenderingInstance(O);let q;try{q=D(...Y)}finally{setCurrentRenderingInstance(W),F._d&&setBlockTracking(1)}return q};return F._n=!0,F._c=!0,F._d=!0,F}function markAttrsAccessed(){}function renderComponentRoot(D){const{type:O,vnode:z,proxy:F,withProxy:Y,props:W,propsOptions:[q],slots:X,attrs:tt,emit:nt,render:st,renderCache:ct,data:lt,setupState:ht,ctx:bt,inheritAttrs:wt}=D;let mt,_t;const Et=setCurrentRenderingInstance(D);try{if(z.shapeFlag&4){const Ct=Y||F;mt=normalizeVNode(st.call(Ct,Ct,ct,W,ht,lt,bt)),_t=tt}else{const Ct=O;mt=normalizeVNode(Ct.length>1?Ct(W,{attrs:tt,slots:X,emit:nt}):Ct(W,null)),_t=O.props?tt:getFunctionalFallthrough(tt)}}catch(Ct){blockStack.length=0,handleError$1(Ct,D,1),mt=createVNode(Comment)}let At=mt;if(_t&&wt!==!1){const Ct=Object.keys(_t),{shapeFlag:Ft}=At;Ct.length&&Ft&7&&(q&&Ct.some(isModelListener)&&(_t=filterModelListeners(_t,q)),At=cloneVNode(At,_t))}return z.dirs&&(At=cloneVNode(At),At.dirs=At.dirs?At.dirs.concat(z.dirs):z.dirs),z.transition&&(At.transition=z.transition),mt=At,setCurrentRenderingInstance(Et),mt}const getFunctionalFallthrough=D=>{let O;for(const z in D)(z==="class"||z==="style"||isOn(z))&&((O||(O={}))[z]=D[z]);return O},filterModelListeners=(D,O)=>{const z={};for(const F in D)(!isModelListener(F)||!(F.slice(9)in O))&&(z[F]=D[F]);return z};function shouldUpdateComponent(D,O,z){const{props:F,children:Y,component:W}=D,{props:q,children:X,patchFlag:tt}=O,nt=W.emitsOptions;if(O.dirs||O.transition)return!0;if(z&&tt>=0){if(tt&1024)return!0;if(tt&16)return F?hasPropsChanged(F,q,nt):!!q;if(tt&8){const st=O.dynamicProps;for(let ct=0;ctD.__isSuspense;function queueEffectWithSuspense(D,O){O&&O.pendingBranch?isArray$2(D)?O.effects.push(...D):O.effects.push(D):queuePostFlushCb(D)}const INITIAL_WATCHER_VALUE={};function watch$1(D,O,z){return doWatch(D,O,z)}function doWatch(D,O,{immediate:z,deep:F,flush:Y,onTrack:W,onTrigger:q}=EMPTY_OBJ){var X;const tt=getCurrentScope()===((X=currentInstance)==null?void 0:X.scope)?currentInstance:null;let nt,st=!1,ct=!1;if(isRef(D)?(nt=()=>D.value,st=isShallow(D)):isReactive(D)?(nt=()=>D,F=!0):isArray$2(D)?(ct=!0,st=D.some(Ct=>isReactive(Ct)||isShallow(Ct)),nt=()=>D.map(Ct=>{if(isRef(Ct))return Ct.value;if(isReactive(Ct))return traverse(Ct);if(isFunction$1(Ct))return callWithErrorHandling(Ct,tt,2)})):isFunction$1(D)?O?nt=()=>callWithErrorHandling(D,tt,2):nt=()=>{if(!(tt&&tt.isUnmounted))return lt&<(),callWithAsyncErrorHandling(D,tt,3,[ht])}:nt=NOOP,O&&F){const Ct=nt;nt=()=>traverse(Ct())}let lt,ht=Ct=>{lt=Et.onStop=()=>{callWithErrorHandling(Ct,tt,4)}},bt;if(isInSSRComponentSetup)if(ht=NOOP,O?z&&callWithAsyncErrorHandling(O,tt,3,[nt(),ct?[]:void 0,ht]):nt(),Y==="sync"){const Ct=useSSRContext();bt=Ct.__watcherHandles||(Ct.__watcherHandles=[])}else return NOOP;let wt=ct?new Array(D.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const mt=()=>{if(Et.active)if(O){const Ct=Et.run();(F||st||(ct?Ct.some((Ft,Lt)=>hasChanged(Ft,wt[Lt])):hasChanged(Ct,wt)))&&(lt&<(),callWithAsyncErrorHandling(O,tt,3,[Ct,wt===INITIAL_WATCHER_VALUE?void 0:ct&&wt[0]===INITIAL_WATCHER_VALUE?[]:wt,ht]),wt=Ct)}else Et.run()};mt.allowRecurse=!!O;let _t;Y==="sync"?_t=mt:Y==="post"?_t=()=>queuePostRenderEffect(mt,tt&&tt.suspense):(mt.pre=!0,tt&&(mt.id=tt.uid),_t=()=>queueJob(mt));const Et=new ReactiveEffect(nt,_t);O?z?mt():wt=Et.run():Y==="post"?queuePostRenderEffect(Et.run.bind(Et),tt&&tt.suspense):Et.run();const At=()=>{Et.stop(),tt&&tt.scope&&remove$1(tt.scope.effects,Et)};return bt&&bt.push(At),At}function instanceWatch(D,O,z){const F=this.proxy,Y=isString(D)?D.includes(".")?createPathGetter(F,D):()=>F[D]:D.bind(F,F);let W;isFunction$1(O)?W=O:(W=O.handler,z=O);const q=currentInstance;setCurrentInstance(this);const X=doWatch(Y,W.bind(F),z);return q?setCurrentInstance(q):unsetCurrentInstance(),X}function createPathGetter(D,O){const z=O.split(".");return()=>{let F=D;for(let Y=0;Y{traverse(z,O)});else if(isPlainObject$1(D))for(const z in D)traverse(D[z],O);return D}function invokeDirectiveHook(D,O,z,F){const Y=D.dirs,W=O&&O.dirs;for(let q=0;qextend$2({name:D.name},O,{setup:D}))():D}const isAsyncWrapper=D=>!!D.type.__asyncLoader,isKeepAlive=D=>D.type.__isKeepAlive;function onActivated(D,O){registerKeepAliveHook(D,"a",O)}function onDeactivated(D,O){registerKeepAliveHook(D,"da",O)}function registerKeepAliveHook(D,O,z=currentInstance){const F=D.__wdc||(D.__wdc=()=>{let Y=z;for(;Y;){if(Y.isDeactivated)return;Y=Y.parent}return D()});if(injectHook(O,F,z),z){let Y=z.parent;for(;Y&&Y.parent;)isKeepAlive(Y.parent.vnode)&&injectToKeepAliveRoot(F,O,z,Y),Y=Y.parent}}function injectToKeepAliveRoot(D,O,z,F){const Y=injectHook(O,D,F,!0);onUnmounted(()=>{remove$1(F[O],Y)},z)}function injectHook(D,O,z=currentInstance,F=!1){if(z){const Y=z[D]||(z[D]=[]),W=O.__weh||(O.__weh=(...q)=>{if(z.isUnmounted)return;pauseTracking(),setCurrentInstance(z);const X=callWithAsyncErrorHandling(O,z,D,q);return unsetCurrentInstance(),resetTracking(),X});return F?Y.unshift(W):Y.push(W),W}}const createHook=D=>(O,z=currentInstance)=>(!isInSSRComponentSetup||D==="sp")&&injectHook(D,(...F)=>O(...F),z),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(D,O=currentInstance){injectHook("ec",D,O)}const COMPONENTS="components";function resolveComponent(D,O){return resolveAsset(COMPONENTS,D,!0,O)||D}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveAsset(D,O,z=!0,F=!1){const Y=currentRenderingInstance||currentInstance;if(Y){const W=Y.type;if(D===COMPONENTS){const X=getComponentName(W,!1);if(X&&(X===O||X===camelize(O)||X===capitalize(camelize(O))))return W}const q=resolve(Y[D]||W[D],O)||resolve(Y.appContext[D],O);return!q&&F?W:q}}function resolve(D,O){return D&&(D[O]||D[camelize(O)]||D[capitalize(camelize(O))])}function renderList(D,O,z,F){let Y;const W=z&&z[F];if(isArray$2(D)||isString(D)){Y=new Array(D.length);for(let q=0,X=D.length;qO(q,X,void 0,W&&W[X]));else{const q=Object.keys(D);Y=new Array(q.length);for(let X=0,tt=q.length;XD?isStatefulComponent(D)?getExposeProxy(D)||D.proxy:getPublicInstance(D.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:D=>D,$el:D=>D.vnode.el,$data:D=>D.data,$props:D=>D.props,$attrs:D=>D.attrs,$slots:D=>D.slots,$refs:D=>D.refs,$parent:D=>getPublicInstance(D.parent),$root:D=>getPublicInstance(D.root),$emit:D=>D.emit,$options:D=>resolveMergedOptions(D),$forceUpdate:D=>D.f||(D.f=()=>queueJob(D.update)),$nextTick:D=>D.n||(D.n=nextTick.bind(D.proxy)),$watch:D=>instanceWatch.bind(D)}),hasSetupBinding=(D,O)=>D!==EMPTY_OBJ&&!D.__isScriptSetup&&hasOwn(D,O),PublicInstanceProxyHandlers={get({_:D},O){const{ctx:z,setupState:F,data:Y,props:W,accessCache:q,type:X,appContext:tt}=D;let nt;if(O[0]!=="$"){const ht=q[O];if(ht!==void 0)switch(ht){case 1:return F[O];case 2:return Y[O];case 4:return z[O];case 3:return W[O]}else{if(hasSetupBinding(F,O))return q[O]=1,F[O];if(Y!==EMPTY_OBJ&&hasOwn(Y,O))return q[O]=2,Y[O];if((nt=D.propsOptions[0])&&hasOwn(nt,O))return q[O]=3,W[O];if(z!==EMPTY_OBJ&&hasOwn(z,O))return q[O]=4,z[O];shouldCacheAccess&&(q[O]=0)}}const st=publicPropertiesMap[O];let ct,lt;if(st)return O==="$attrs"&&track(D,"get",O),st(D);if((ct=X.__cssModules)&&(ct=ct[O]))return ct;if(z!==EMPTY_OBJ&&hasOwn(z,O))return q[O]=4,z[O];if(lt=tt.config.globalProperties,hasOwn(lt,O))return lt[O]},set({_:D},O,z){const{data:F,setupState:Y,ctx:W}=D;return hasSetupBinding(Y,O)?(Y[O]=z,!0):F!==EMPTY_OBJ&&hasOwn(F,O)?(F[O]=z,!0):hasOwn(D.props,O)||O[0]==="$"&&O.slice(1)in D?!1:(W[O]=z,!0)},has({_:{data:D,setupState:O,accessCache:z,ctx:F,appContext:Y,propsOptions:W}},q){let X;return!!z[q]||D!==EMPTY_OBJ&&hasOwn(D,q)||hasSetupBinding(O,q)||(X=W[0])&&hasOwn(X,q)||hasOwn(F,q)||hasOwn(publicPropertiesMap,q)||hasOwn(Y.config.globalProperties,q)},defineProperty(D,O,z){return z.get!=null?D._.accessCache[O]=0:hasOwn(z,"value")&&this.set(D,O,z.value,null),Reflect.defineProperty(D,O,z)}};function normalizePropsOrEmits(D){return isArray$2(D)?D.reduce((O,z)=>(O[z]=null,O),{}):D}let shouldCacheAccess=!0;function applyOptions(D){const O=resolveMergedOptions(D),z=D.proxy,F=D.ctx;shouldCacheAccess=!1,O.beforeCreate&&callHook(O.beforeCreate,D,"bc");const{data:Y,computed:W,methods:q,watch:X,provide:tt,inject:nt,created:st,beforeMount:ct,mounted:lt,beforeUpdate:ht,updated:bt,activated:wt,deactivated:mt,beforeDestroy:_t,beforeUnmount:Et,destroyed:At,unmounted:Ct,render:Ft,renderTracked:Lt,renderTriggered:Yt,errorCaptured:Ht,serverPrefetch:qt,expose:te,inheritAttrs:Xt,components:Dt,directives:Qt,filters:Nt}=O;if(nt&&resolveInjections(nt,F,null),q)for(const de in q){const ye=q[de];isFunction$1(ye)&&(F[de]=ye.bind(z))}if(Y){const de=Y.call(z,z);isObject$2(de)&&(D.data=reactive(de))}if(shouldCacheAccess=!0,W)for(const de in W){const ye=W[de],pe=isFunction$1(ye)?ye.bind(z,z):isFunction$1(ye.get)?ye.get.bind(z,z):NOOP,ve=!isFunction$1(ye)&&isFunction$1(ye.set)?ye.set.bind(z):NOOP,Ce=computed({get:pe,set:ve});Object.defineProperty(F,de,{enumerable:!0,configurable:!0,get:()=>Ce.value,set:De=>Ce.value=De})}if(X)for(const de in X)createWatcher(X[de],F,z,de);if(tt){const de=isFunction$1(tt)?tt.call(z):tt;Reflect.ownKeys(de).forEach(ye=>{provide(ye,de[ye])})}st&&callHook(st,D,"c");function Pt(de,ye){isArray$2(ye)?ye.forEach(pe=>de(pe.bind(z))):ye&&de(ye.bind(z))}if(Pt(onBeforeMount,ct),Pt(onMounted,lt),Pt(onBeforeUpdate,ht),Pt(onUpdated,bt),Pt(onActivated,wt),Pt(onDeactivated,mt),Pt(onErrorCaptured,Ht),Pt(onRenderTracked,Lt),Pt(onRenderTriggered,Yt),Pt(onBeforeUnmount,Et),Pt(onUnmounted,Ct),Pt(onServerPrefetch,qt),isArray$2(te))if(te.length){const de=D.exposed||(D.exposed={});te.forEach(ye=>{Object.defineProperty(de,ye,{get:()=>z[ye],set:pe=>z[ye]=pe})})}else D.exposed||(D.exposed={});Ft&&D.render===NOOP&&(D.render=Ft),Xt!=null&&(D.inheritAttrs=Xt),Dt&&(D.components=Dt),Qt&&(D.directives=Qt)}function resolveInjections(D,O,z=NOOP){isArray$2(D)&&(D=normalizeInject(D));for(const F in D){const Y=D[F];let W;isObject$2(Y)?"default"in Y?W=inject(Y.from||F,Y.default,!0):W=inject(Y.from||F):W=inject(Y),isRef(W)?Object.defineProperty(O,F,{enumerable:!0,configurable:!0,get:()=>W.value,set:q=>W.value=q}):O[F]=W}}function callHook(D,O,z){callWithAsyncErrorHandling(isArray$2(D)?D.map(F=>F.bind(O.proxy)):D.bind(O.proxy),O,z)}function createWatcher(D,O,z,F){const Y=F.includes(".")?createPathGetter(z,F):()=>z[F];if(isString(D)){const W=O[D];isFunction$1(W)&&watch$1(Y,W)}else if(isFunction$1(D))watch$1(Y,D.bind(z));else if(isObject$2(D))if(isArray$2(D))D.forEach(W=>createWatcher(W,O,z,F));else{const W=isFunction$1(D.handler)?D.handler.bind(z):O[D.handler];isFunction$1(W)&&watch$1(Y,W,D)}}function resolveMergedOptions(D){const O=D.type,{mixins:z,extends:F}=O,{mixins:Y,optionsCache:W,config:{optionMergeStrategies:q}}=D.appContext,X=W.get(O);let tt;return X?tt=X:!Y.length&&!z&&!F?tt=O:(tt={},Y.length&&Y.forEach(nt=>mergeOptions(tt,nt,q,!0)),mergeOptions(tt,O,q)),isObject$2(O)&&W.set(O,tt),tt}function mergeOptions(D,O,z,F=!1){const{mixins:Y,extends:W}=O;W&&mergeOptions(D,W,z,!0),Y&&Y.forEach(q=>mergeOptions(D,q,z,!0));for(const q in O)if(!(F&&q==="expose")){const X=internalOptionMergeStrats[q]||z&&z[q];D[q]=X?X(D[q],O[q]):O[q]}return D}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(D,O){return O?D?function(){return extend$2(isFunction$1(D)?D.call(this,this):D,isFunction$1(O)?O.call(this,this):O)}:O:D}function mergeInject(D,O){return mergeObjectOptions(normalizeInject(D),normalizeInject(O))}function normalizeInject(D){if(isArray$2(D)){const O={};for(let z=0;z1)return z&&isFunction$1(O)?O.call(F&&F.proxy):O}}function initProps(D,O,z,F=!1){const Y={},W={};def(W,InternalObjectKey,1),D.propsDefaults=Object.create(null),setFullProps(D,O,Y,W);for(const q in D.propsOptions[0])q in Y||(Y[q]=void 0);z?D.props=F?Y:shallowReactive(Y):D.type.props?D.props=Y:D.props=W,D.attrs=W}function updateProps(D,O,z,F){const{props:Y,attrs:W,vnode:{patchFlag:q}}=D,X=toRaw(Y),[tt]=D.propsOptions;let nt=!1;if((F||q>0)&&!(q&16)){if(q&8){const st=D.vnode.dynamicProps;for(let ct=0;ct{tt=!0;const[lt,ht]=normalizePropsOptions(ct,O,!0);extend$2(q,lt),ht&&X.push(...ht)};!z&&O.mixins.length&&O.mixins.forEach(st),D.extends&&st(D.extends),D.mixins&&D.mixins.forEach(st)}if(!W&&!tt)return isObject$2(D)&&F.set(D,EMPTY_ARR),EMPTY_ARR;if(isArray$2(W))for(let st=0;st-1,ht[1]=wt<0||bt-1||hasOwn(ht,"default"))&&X.push(ct)}}}const nt=[q,X];return isObject$2(D)&&F.set(D,nt),nt}function validatePropName(D){return D[0]!=="$"}function getType(D){const O=D&&D.toString().match(/^\s*(function|class) (\w+)/);return O?O[2]:D===null?"null":""}function isSameType(D,O){return getType(D)===getType(O)}function getTypeIndex(D,O){return isArray$2(O)?O.findIndex(z=>isSameType(z,D)):isFunction$1(O)&&isSameType(O,D)?0:-1}const isInternalKey=D=>D[0]==="_"||D==="$stable",normalizeSlotValue=D=>isArray$2(D)?D.map(normalizeVNode):[normalizeVNode(D)],normalizeSlot=(D,O,z)=>{if(O._n)return O;const F=withCtx((...Y)=>normalizeSlotValue(O(...Y)),z);return F._c=!1,F},normalizeObjectSlots=(D,O,z)=>{const F=D._ctx;for(const Y in D){if(isInternalKey(Y))continue;const W=D[Y];if(isFunction$1(W))O[Y]=normalizeSlot(Y,W,F);else if(W!=null){const q=normalizeSlotValue(W);O[Y]=()=>q}}},normalizeVNodeSlots=(D,O)=>{const z=normalizeSlotValue(O);D.slots.default=()=>z},initSlots=(D,O)=>{if(D.vnode.shapeFlag&32){const z=O._;z?(D.slots=toRaw(O),def(O,"_",z)):normalizeObjectSlots(O,D.slots={})}else D.slots={},O&&normalizeVNodeSlots(D,O);def(D.slots,InternalObjectKey,1)},updateSlots=(D,O,z)=>{const{vnode:F,slots:Y}=D;let W=!0,q=EMPTY_OBJ;if(F.shapeFlag&32){const X=O._;X?z&&X===1?W=!1:(extend$2(Y,O),!z&&X===1&&delete Y._):(W=!O.$stable,normalizeObjectSlots(O,Y)),q=O}else O&&(normalizeVNodeSlots(D,O),q={default:1});if(W)for(const X in Y)!isInternalKey(X)&&q[X]==null&&delete Y[X]};function setRef(D,O,z,F,Y=!1){if(isArray$2(D)){D.forEach((lt,ht)=>setRef(lt,O&&(isArray$2(O)?O[ht]:O),z,F,Y));return}if(isAsyncWrapper(F)&&!Y)return;const W=F.shapeFlag&4?getExposeProxy(F.component)||F.component.proxy:F.el,q=Y?null:W,{i:X,r:tt}=D,nt=O&&O.r,st=X.refs===EMPTY_OBJ?X.refs={}:X.refs,ct=X.setupState;if(nt!=null&&nt!==tt&&(isString(nt)?(st[nt]=null,hasOwn(ct,nt)&&(ct[nt]=null)):isRef(nt)&&(nt.value=null)),isFunction$1(tt))callWithErrorHandling(tt,X,12,[q,st]);else{const lt=isString(tt),ht=isRef(tt);if(lt||ht){const bt=()=>{if(D.f){const wt=lt?hasOwn(ct,tt)?ct[tt]:st[tt]:tt.value;Y?isArray$2(wt)&&remove$1(wt,W):isArray$2(wt)?wt.includes(W)||wt.push(W):lt?(st[tt]=[W],hasOwn(ct,tt)&&(ct[tt]=st[tt])):(tt.value=[W],D.k&&(st[D.k]=tt.value))}else lt?(st[tt]=q,hasOwn(ct,tt)&&(ct[tt]=q)):ht&&(tt.value=q,D.k&&(st[D.k]=q))};q?(bt.id=-1,queuePostRenderEffect(bt,z)):bt()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(D){return baseCreateRenderer(D)}function baseCreateRenderer(D,O){const z=getGlobalThis();z.__VUE__=!0;const{insert:F,remove:Y,patchProp:W,createElement:q,createText:X,createComment:tt,setText:nt,setElementText:st,parentNode:ct,nextSibling:lt,setScopeId:ht=NOOP,insertStaticContent:bt}=D,wt=(Kt,kt,jt,$t=null,oe=null,Vt=null,Be=!1,ge=null,Pe=!!kt.dynamicChildren)=>{if(Kt===kt)return;Kt&&!isSameVNodeType(Kt,kt)&&($t=we(Kt),De(Kt,oe,Vt,!0),Kt=null),kt.patchFlag===-2&&(Pe=!1,kt.dynamicChildren=null);const{type:ke,ref:$e,shapeFlag:Fe}=kt;switch(ke){case Text:mt(Kt,kt,jt,$t);break;case Comment:_t(Kt,kt,jt,$t);break;case Static:Kt==null&&Et(kt,jt,$t,Be);break;case Fragment:Dt(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe);break;default:Fe&1?Ft(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe):Fe&6?Qt(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe):(Fe&64||Fe&128)&&ke.process(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe,He)}$e!=null&&oe&&setRef($e,Kt&&Kt.ref,Vt,kt||Kt,!kt)},mt=(Kt,kt,jt,$t)=>{if(Kt==null)F(kt.el=X(kt.children),jt,$t);else{const oe=kt.el=Kt.el;kt.children!==Kt.children&&nt(oe,kt.children)}},_t=(Kt,kt,jt,$t)=>{Kt==null?F(kt.el=tt(kt.children||""),jt,$t):kt.el=Kt.el},Et=(Kt,kt,jt,$t)=>{[Kt.el,Kt.anchor]=bt(Kt.children,kt,jt,$t,Kt.el,Kt.anchor)},At=({el:Kt,anchor:kt},jt,$t)=>{let oe;for(;Kt&&Kt!==kt;)oe=lt(Kt),F(Kt,jt,$t),Kt=oe;F(kt,jt,$t)},Ct=({el:Kt,anchor:kt})=>{let jt;for(;Kt&&Kt!==kt;)jt=lt(Kt),Y(Kt),Kt=jt;Y(kt)},Ft=(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe)=>{Be=Be||kt.type==="svg",Kt==null?Lt(kt,jt,$t,oe,Vt,Be,ge,Pe):qt(Kt,kt,oe,Vt,Be,ge,Pe)},Lt=(Kt,kt,jt,$t,oe,Vt,Be,ge)=>{let Pe,ke;const{type:$e,props:Fe,shapeFlag:Qe,transition:We,dirs:rn}=Kt;if(Pe=Kt.el=q(Kt.type,Vt,Fe&&Fe.is,Fe),Qe&8?st(Pe,Kt.children):Qe&16&&Ht(Kt.children,Pe,null,$t,oe,Vt&&$e!=="foreignObject",Be,ge),rn&&invokeDirectiveHook(Kt,null,$t,"created"),Yt(Pe,Kt,Kt.scopeId,Be,$t),Fe){for(const Bn in Fe)Bn!=="value"&&!isReservedProp(Bn)&&W(Pe,Bn,null,Fe[Bn],Vt,Kt.children,$t,oe,ze);"value"in Fe&&W(Pe,"value",null,Fe.value),(ke=Fe.onVnodeBeforeMount)&&invokeVNodeHook(ke,$t,Kt)}rn&&invokeDirectiveHook(Kt,null,$t,"beforeMount");const zn=needTransition(oe,We);zn&&We.beforeEnter(Pe),F(Pe,kt,jt),((ke=Fe&&Fe.onVnodeMounted)||zn||rn)&&queuePostRenderEffect(()=>{ke&&invokeVNodeHook(ke,$t,Kt),zn&&We.enter(Pe),rn&&invokeDirectiveHook(Kt,null,$t,"mounted")},oe)},Yt=(Kt,kt,jt,$t,oe)=>{if(jt&&ht(Kt,jt),$t)for(let Vt=0;Vt<$t.length;Vt++)ht(Kt,$t[Vt]);if(oe){let Vt=oe.subTree;if(kt===Vt){const Be=oe.vnode;Yt(Kt,Be,Be.scopeId,Be.slotScopeIds,oe.parent)}}},Ht=(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe=0)=>{for(let ke=Pe;ke{const ge=kt.el=Kt.el;let{patchFlag:Pe,dynamicChildren:ke,dirs:$e}=kt;Pe|=Kt.patchFlag&16;const Fe=Kt.props||EMPTY_OBJ,Qe=kt.props||EMPTY_OBJ;let We;jt&&toggleRecurse(jt,!1),(We=Qe.onVnodeBeforeUpdate)&&invokeVNodeHook(We,jt,kt,Kt),$e&&invokeDirectiveHook(kt,Kt,jt,"beforeUpdate"),jt&&toggleRecurse(jt,!0);const rn=oe&&kt.type!=="foreignObject";if(ke?te(Kt.dynamicChildren,ke,ge,jt,$t,rn,Vt):Be||ye(Kt,kt,ge,null,jt,$t,rn,Vt,!1),Pe>0){if(Pe&16)Xt(ge,kt,Fe,Qe,jt,$t,oe);else if(Pe&2&&Fe.class!==Qe.class&&W(ge,"class",null,Qe.class,oe),Pe&4&&W(ge,"style",Fe.style,Qe.style,oe),Pe&8){const zn=kt.dynamicProps;for(let Bn=0;Bn{We&&invokeVNodeHook(We,jt,kt,Kt),$e&&invokeDirectiveHook(kt,Kt,jt,"updated")},$t)},te=(Kt,kt,jt,$t,oe,Vt,Be)=>{for(let ge=0;ge{if(jt!==$t){if(jt!==EMPTY_OBJ)for(const ge in jt)!isReservedProp(ge)&&!(ge in $t)&&W(Kt,ge,jt[ge],null,Be,kt.children,oe,Vt,ze);for(const ge in $t){if(isReservedProp(ge))continue;const Pe=$t[ge],ke=jt[ge];Pe!==ke&&ge!=="value"&&W(Kt,ge,ke,Pe,Be,kt.children,oe,Vt,ze)}"value"in $t&&W(Kt,"value",jt.value,$t.value)}},Dt=(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe)=>{const ke=kt.el=Kt?Kt.el:X(""),$e=kt.anchor=Kt?Kt.anchor:X("");let{patchFlag:Fe,dynamicChildren:Qe,slotScopeIds:We}=kt;We&&(ge=ge?ge.concat(We):We),Kt==null?(F(ke,jt,$t),F($e,jt,$t),Ht(kt.children,jt,$e,oe,Vt,Be,ge,Pe)):Fe>0&&Fe&64&&Qe&&Kt.dynamicChildren?(te(Kt.dynamicChildren,Qe,jt,oe,Vt,Be,ge),(kt.key!=null||oe&&kt===oe.subTree)&&traverseStaticChildren(Kt,kt,!0)):ye(Kt,kt,jt,$e,oe,Vt,Be,ge,Pe)},Qt=(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe)=>{kt.slotScopeIds=ge,Kt==null?kt.shapeFlag&512?oe.ctx.activate(kt,jt,$t,Be,Pe):Nt(kt,jt,$t,oe,Vt,Be,Pe):ce(Kt,kt,Pe)},Nt=(Kt,kt,jt,$t,oe,Vt,Be)=>{const ge=Kt.component=createComponentInstance(Kt,$t,oe);if(isKeepAlive(Kt)&&(ge.ctx.renderer=He),setupComponent(ge),ge.asyncDep){if(oe&&oe.registerDep(ge,Pt),!Kt.el){const Pe=ge.subTree=createVNode(Comment);_t(null,Pe,kt,jt)}return}Pt(ge,Kt,kt,jt,oe,Vt,Be)},ce=(Kt,kt,jt)=>{const $t=kt.component=Kt.component;if(shouldUpdateComponent(Kt,kt,jt))if($t.asyncDep&&!$t.asyncResolved){de($t,kt,jt);return}else $t.next=kt,invalidateJob($t.update),$t.update();else kt.el=Kt.el,$t.vnode=kt},Pt=(Kt,kt,jt,$t,oe,Vt,Be)=>{const ge=()=>{if(Kt.isMounted){let{next:$e,bu:Fe,u:Qe,parent:We,vnode:rn}=Kt,zn=$e,Bn;toggleRecurse(Kt,!1),$e?($e.el=rn.el,de(Kt,$e,Be)):$e=rn,Fe&&invokeArrayFns(Fe),(Bn=$e.props&&$e.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Bn,We,$e,rn),toggleRecurse(Kt,!0);const Pn=renderComponentRoot(Kt),jn=Kt.subTree;Kt.subTree=Pn,wt(jn,Pn,ct(jn.el),we(jn),Kt,oe,Vt),$e.el=Pn.el,zn===null&&updateHOCHostEl(Kt,Pn.el),Qe&&queuePostRenderEffect(Qe,oe),(Bn=$e.props&&$e.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Bn,We,$e,rn),oe)}else{let $e;const{el:Fe,props:Qe}=kt,{bm:We,m:rn,parent:zn}=Kt,Bn=isAsyncWrapper(kt);if(toggleRecurse(Kt,!1),We&&invokeArrayFns(We),!Bn&&($e=Qe&&Qe.onVnodeBeforeMount)&&invokeVNodeHook($e,zn,kt),toggleRecurse(Kt,!0),Fe&&Ye){const Pn=()=>{Kt.subTree=renderComponentRoot(Kt),Ye(Fe,Kt.subTree,Kt,oe,null)};Bn?kt.type.__asyncLoader().then(()=>!Kt.isUnmounted&&Pn()):Pn()}else{const Pn=Kt.subTree=renderComponentRoot(Kt);wt(null,Pn,jt,$t,Kt,oe,Vt),kt.el=Pn.el}if(rn&&queuePostRenderEffect(rn,oe),!Bn&&($e=Qe&&Qe.onVnodeMounted)){const Pn=kt;queuePostRenderEffect(()=>invokeVNodeHook($e,zn,Pn),oe)}(kt.shapeFlag&256||zn&&isAsyncWrapper(zn.vnode)&&zn.vnode.shapeFlag&256)&&Kt.a&&queuePostRenderEffect(Kt.a,oe),Kt.isMounted=!0,kt=jt=$t=null}},Pe=Kt.effect=new ReactiveEffect(ge,()=>queueJob(ke),Kt.scope),ke=Kt.update=()=>Pe.run();ke.id=Kt.uid,toggleRecurse(Kt,!0),ke()},de=(Kt,kt,jt)=>{kt.component=Kt;const $t=Kt.vnode.props;Kt.vnode=kt,Kt.next=null,updateProps(Kt,kt.props,$t,jt),updateSlots(Kt,kt.children,jt),pauseTracking(),flushPreFlushCbs(),resetTracking()},ye=(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe=!1)=>{const ke=Kt&&Kt.children,$e=Kt?Kt.shapeFlag:0,Fe=kt.children,{patchFlag:Qe,shapeFlag:We}=kt;if(Qe>0){if(Qe&128){ve(ke,Fe,jt,$t,oe,Vt,Be,ge,Pe);return}else if(Qe&256){pe(ke,Fe,jt,$t,oe,Vt,Be,ge,Pe);return}}We&8?($e&16&&ze(ke,oe,Vt),Fe!==ke&&st(jt,Fe)):$e&16?We&16?ve(ke,Fe,jt,$t,oe,Vt,Be,ge,Pe):ze(ke,oe,Vt,!0):($e&8&&st(jt,""),We&16&&Ht(Fe,jt,$t,oe,Vt,Be,ge,Pe))},pe=(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe)=>{Kt=Kt||EMPTY_ARR,kt=kt||EMPTY_ARR;const ke=Kt.length,$e=kt.length,Fe=Math.min(ke,$e);let Qe;for(Qe=0;Qe$e?ze(Kt,oe,Vt,!0,!1,Fe):Ht(kt,jt,$t,oe,Vt,Be,ge,Pe,Fe)},ve=(Kt,kt,jt,$t,oe,Vt,Be,ge,Pe)=>{let ke=0;const $e=kt.length;let Fe=Kt.length-1,Qe=$e-1;for(;ke<=Fe&&ke<=Qe;){const We=Kt[ke],rn=kt[ke]=Pe?cloneIfMounted(kt[ke]):normalizeVNode(kt[ke]);if(isSameVNodeType(We,rn))wt(We,rn,jt,null,oe,Vt,Be,ge,Pe);else break;ke++}for(;ke<=Fe&&ke<=Qe;){const We=Kt[Fe],rn=kt[Qe]=Pe?cloneIfMounted(kt[Qe]):normalizeVNode(kt[Qe]);if(isSameVNodeType(We,rn))wt(We,rn,jt,null,oe,Vt,Be,ge,Pe);else break;Fe--,Qe--}if(ke>Fe){if(ke<=Qe){const We=Qe+1,rn=We<$e?kt[We].el:$t;for(;ke<=Qe;)wt(null,kt[ke]=Pe?cloneIfMounted(kt[ke]):normalizeVNode(kt[ke]),jt,rn,oe,Vt,Be,ge,Pe),ke++}}else if(ke>Qe)for(;ke<=Fe;)De(Kt[ke],oe,Vt,!0),ke++;else{const We=ke,rn=ke,zn=new Map;for(ke=rn;ke<=Qe;ke++){const ie=kt[ke]=Pe?cloneIfMounted(kt[ke]):normalizeVNode(kt[ke]);ie.key!=null&&zn.set(ie.key,ke)}let Bn,Pn=0;const jn=Qe-rn+1;let Jn=!1,rr=0;const sr=new Array(jn);for(ke=0;ke=jn){De(ie,oe,Vt,!0);continue}let ne;if(ie.key!=null)ne=zn.get(ie.key);else for(Bn=rn;Bn<=Qe;Bn++)if(sr[Bn-rn]===0&&isSameVNodeType(ie,kt[Bn])){ne=Bn;break}ne===void 0?De(ie,oe,Vt,!0):(sr[ne-rn]=ke+1,ne>=rr?rr=ne:Jn=!0,wt(ie,kt[ne],jt,null,oe,Vt,Be,ge,Pe),Pn++)}const on=Jn?getSequence(sr):EMPTY_ARR;for(Bn=on.length-1,ke=jn-1;ke>=0;ke--){const ie=rn+ke,ne=kt[ie],xe=ie+1<$e?kt[ie+1].el:$t;sr[ke]===0?wt(null,ne,jt,xe,oe,Vt,Be,ge,Pe):Jn&&(Bn<0||ke!==on[Bn]?Ce(ne,jt,xe,2):Bn--)}}},Ce=(Kt,kt,jt,$t,oe=null)=>{const{el:Vt,type:Be,transition:ge,children:Pe,shapeFlag:ke}=Kt;if(ke&6){Ce(Kt.component.subTree,kt,jt,$t);return}if(ke&128){Kt.suspense.move(kt,jt,$t);return}if(ke&64){Be.move(Kt,kt,jt,He);return}if(Be===Fragment){F(Vt,kt,jt);for(let Fe=0;Fege.enter(Vt),oe);else{const{leave:Fe,delayLeave:Qe,afterLeave:We}=ge,rn=()=>F(Vt,kt,jt),zn=()=>{Fe(Vt,()=>{rn(),We&&We()})};Qe?Qe(Vt,rn,zn):zn()}else F(Vt,kt,jt)},De=(Kt,kt,jt,$t=!1,oe=!1)=>{const{type:Vt,props:Be,ref:ge,children:Pe,dynamicChildren:ke,shapeFlag:$e,patchFlag:Fe,dirs:Qe}=Kt;if(ge!=null&&setRef(ge,null,jt,Kt,!0),$e&256){kt.ctx.deactivate(Kt);return}const We=$e&1&&Qe,rn=!isAsyncWrapper(Kt);let zn;if(rn&&(zn=Be&&Be.onVnodeBeforeUnmount)&&invokeVNodeHook(zn,kt,Kt),$e&6)qe(Kt.component,jt,$t);else{if($e&128){Kt.suspense.unmount(jt,$t);return}We&&invokeDirectiveHook(Kt,null,kt,"beforeUnmount"),$e&64?Kt.type.remove(Kt,kt,jt,oe,He,$t):ke&&(Vt!==Fragment||Fe>0&&Fe&64)?ze(ke,kt,jt,!1,!0):(Vt===Fragment&&Fe&384||!oe&&$e&16)&&ze(Pe,kt,jt),$t&&Oe(Kt)}(rn&&(zn=Be&&Be.onVnodeUnmounted)||We)&&queuePostRenderEffect(()=>{zn&&invokeVNodeHook(zn,kt,Kt),We&&invokeDirectiveHook(Kt,null,kt,"unmounted")},jt)},Oe=Kt=>{const{type:kt,el:jt,anchor:$t,transition:oe}=Kt;if(kt===Fragment){Je(jt,$t);return}if(kt===Static){Ct(Kt);return}const Vt=()=>{Y(jt),oe&&!oe.persisted&&oe.afterLeave&&oe.afterLeave()};if(Kt.shapeFlag&1&&oe&&!oe.persisted){const{leave:Be,delayLeave:ge}=oe,Pe=()=>Be(jt,Vt);ge?ge(Kt.el,Vt,Pe):Pe()}else Vt()},Je=(Kt,kt)=>{let jt;for(;Kt!==kt;)jt=lt(Kt),Y(Kt),Kt=jt;Y(kt)},qe=(Kt,kt,jt)=>{const{bum:$t,scope:oe,update:Vt,subTree:Be,um:ge}=Kt;$t&&invokeArrayFns($t),oe.stop(),Vt&&(Vt.active=!1,De(Be,Kt,kt,jt)),ge&&queuePostRenderEffect(ge,kt),queuePostRenderEffect(()=>{Kt.isUnmounted=!0},kt),kt&&kt.pendingBranch&&!kt.isUnmounted&&Kt.asyncDep&&!Kt.asyncResolved&&Kt.suspenseId===kt.pendingId&&(kt.deps--,kt.deps===0&&kt.resolve())},ze=(Kt,kt,jt,$t=!1,oe=!1,Vt=0)=>{for(let Be=Vt;BeKt.shapeFlag&6?we(Kt.component.subTree):Kt.shapeFlag&128?Kt.suspense.next():lt(Kt.anchor||Kt.el),Me=(Kt,kt,jt)=>{Kt==null?kt._vnode&&De(kt._vnode,null,null,!0):wt(kt._vnode||null,Kt,kt,null,null,null,jt),flushPreFlushCbs(),flushPostFlushCbs(),kt._vnode=Kt},He={p:wt,um:De,m:Ce,r:Oe,mt:Nt,mc:Ht,pc:ye,pbc:te,n:we,o:D};let Le,Ye;return O&&([Le,Ye]=O(He)),{render:Me,hydrate:Le,createApp:createAppAPI(Me,Le)}}function toggleRecurse({effect:D,update:O},z){D.allowRecurse=O.allowRecurse=z}function needTransition(D,O){return(!D||D&&!D.pendingBranch)&&O&&!O.persisted}function traverseStaticChildren(D,O,z=!1){const F=D.children,Y=O.children;if(isArray$2(F)&&isArray$2(Y))for(let W=0;W>1,D[z[X]]0&&(O[F]=z[W-1]),z[W]=F)}}for(W=z.length,q=z[W-1];W-- >0;)z[W]=q,q=O[q];return z}const isTeleport=D=>D.__isTeleport,Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(D=!1){blockStack.push(currentBlock=D?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(D){isBlockTreeEnabled+=D}function setupBlock(D){return D.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(D),D}function createElementBlock(D,O,z,F,Y,W){return setupBlock(createBaseVNode(D,O,z,F,Y,W,!0))}function createBlock(D,O,z,F,Y){return setupBlock(createVNode(D,O,z,F,Y,!0))}function isVNode(D){return D?D.__v_isVNode===!0:!1}function isSameVNodeType(D,O){return D.type===O.type&&D.key===O.key}const InternalObjectKey="__vInternal",normalizeKey=({key:D})=>D??null,normalizeRef=({ref:D,ref_key:O,ref_for:z})=>(typeof D=="number"&&(D=""+D),D!=null?isString(D)||isRef(D)||isFunction$1(D)?{i:currentRenderingInstance,r:D,k:O,f:!!z}:D:null);function createBaseVNode(D,O=null,z=null,F=0,Y=null,W=D===Fragment?0:1,q=!1,X=!1){const tt={__v_isVNode:!0,__v_skip:!0,type:D,props:O,key:O&&normalizeKey(O),ref:O&&normalizeRef(O),scopeId:currentScopeId,slotScopeIds:null,children:z,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:W,patchFlag:F,dynamicProps:Y,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return X?(normalizeChildren(tt,z),W&128&&D.normalize(tt)):z&&(tt.shapeFlag|=isString(z)?8:16),isBlockTreeEnabled>0&&!q&¤tBlock&&(tt.patchFlag>0||W&6)&&tt.patchFlag!==32&¤tBlock.push(tt),tt}const createVNode=_createVNode;function _createVNode(D,O=null,z=null,F=0,Y=null,W=!1){if((!D||D===NULL_DYNAMIC_COMPONENT)&&(D=Comment),isVNode(D)){const X=cloneVNode(D,O,!0);return z&&normalizeChildren(X,z),isBlockTreeEnabled>0&&!W&¤tBlock&&(X.shapeFlag&6?currentBlock[currentBlock.indexOf(D)]=X:currentBlock.push(X)),X.patchFlag|=-2,X}if(isClassComponent(D)&&(D=D.__vccOpts),O){O=guardReactiveProps(O);let{class:X,style:tt}=O;X&&!isString(X)&&(O.class=normalizeClass(X)),isObject$2(tt)&&(isProxy(tt)&&!isArray$2(tt)&&(tt=extend$2({},tt)),O.style=normalizeStyle(tt))}const q=isString(D)?1:isSuspense(D)?128:isTeleport(D)?64:isObject$2(D)?4:isFunction$1(D)?2:0;return createBaseVNode(D,O,z,F,Y,q,W,!0)}function guardReactiveProps(D){return D?isProxy(D)||InternalObjectKey in D?extend$2({},D):D:null}function cloneVNode(D,O,z=!1){const{props:F,ref:Y,patchFlag:W,children:q}=D,X=O?mergeProps(F||{},O):F;return{__v_isVNode:!0,__v_skip:!0,type:D.type,props:X,key:X&&normalizeKey(X),ref:O&&O.ref?z&&Y?isArray$2(Y)?Y.concat(normalizeRef(O)):[Y,normalizeRef(O)]:normalizeRef(O):Y,scopeId:D.scopeId,slotScopeIds:D.slotScopeIds,children:q,target:D.target,targetAnchor:D.targetAnchor,staticCount:D.staticCount,shapeFlag:D.shapeFlag,patchFlag:O&&D.type!==Fragment?W===-1?16:W|16:W,dynamicProps:D.dynamicProps,dynamicChildren:D.dynamicChildren,appContext:D.appContext,dirs:D.dirs,transition:D.transition,component:D.component,suspense:D.suspense,ssContent:D.ssContent&&cloneVNode(D.ssContent),ssFallback:D.ssFallback&&cloneVNode(D.ssFallback),el:D.el,anchor:D.anchor,ctx:D.ctx,ce:D.ce}}function createTextVNode(D=" ",O=0){return createVNode(Text,null,D,O)}function createStaticVNode(D,O){const z=createVNode(Static,null,D);return z.staticCount=O,z}function createCommentVNode(D="",O=!1){return O?(openBlock(),createBlock(Comment,null,D)):createVNode(Comment,null,D)}function normalizeVNode(D){return D==null||typeof D=="boolean"?createVNode(Comment):isArray$2(D)?createVNode(Fragment,null,D.slice()):typeof D=="object"?cloneIfMounted(D):createVNode(Text,null,String(D))}function cloneIfMounted(D){return D.el===null&&D.patchFlag!==-1||D.memo?D:cloneVNode(D)}function normalizeChildren(D,O){let z=0;const{shapeFlag:F}=D;if(O==null)O=null;else if(isArray$2(O))z=16;else if(typeof O=="object")if(F&65){const Y=O.default;Y&&(Y._c&&(Y._d=!1),normalizeChildren(D,Y()),Y._c&&(Y._d=!0));return}else{z=32;const Y=O._;!Y&&!(InternalObjectKey in O)?O._ctx=currentRenderingInstance:Y===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?O._=1:(O._=2,D.patchFlag|=1024))}else isFunction$1(O)?(O={default:O,_ctx:currentRenderingInstance},z=32):(O=String(O),F&64?(z=16,O=[createTextVNode(O)]):z=8);D.children=O,D.shapeFlag|=z}function mergeProps(...D){const O={};for(let z=0;zcurrentInstance=D),internalSetCurrentInstance=D=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(O=>O(D)):globalCurrentInstanceSetters[0](D)};const setCurrentInstance=D=>{internalSetCurrentInstance(D),D.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(D){return D.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(D,O=!1){isInSSRComponentSetup=O;const{props:z,children:F}=D.vnode,Y=isStatefulComponent(D);initProps(D,z,Y,O),initSlots(D,F);const W=Y?setupStatefulComponent(D,O):void 0;return isInSSRComponentSetup=!1,W}function setupStatefulComponent(D,O){const z=D.type;D.accessCache=Object.create(null),D.proxy=markRaw(new Proxy(D.ctx,PublicInstanceProxyHandlers));const{setup:F}=z;if(F){const Y=D.setupContext=F.length>1?createSetupContext(D):null;setCurrentInstance(D),pauseTracking();const W=callWithErrorHandling(F,D,0,[D.props,Y]);if(resetTracking(),unsetCurrentInstance(),isPromise(W)){if(W.then(unsetCurrentInstance,unsetCurrentInstance),O)return W.then(q=>{handleSetupResult(D,q,O)}).catch(q=>{handleError$1(q,D,0)});D.asyncDep=W}else handleSetupResult(D,W,O)}else finishComponentSetup(D,O)}function handleSetupResult(D,O,z){isFunction$1(O)?D.type.__ssrInlineRender?D.ssrRender=O:D.render=O:isObject$2(O)&&(D.setupState=proxyRefs(O)),finishComponentSetup(D,z)}let compile$1;function finishComponentSetup(D,O,z){const F=D.type;if(!D.render){if(!O&&compile$1&&!F.render){const Y=F.template||resolveMergedOptions(D).template;if(Y){const{isCustomElement:W,compilerOptions:q}=D.appContext.config,{delimiters:X,compilerOptions:tt}=F,nt=extend$2(extend$2({isCustomElement:W,delimiters:X},q),tt);F.render=compile$1(Y,nt)}}D.render=F.render||NOOP}{setCurrentInstance(D),pauseTracking();try{applyOptions(D)}finally{resetTracking(),unsetCurrentInstance()}}}function getAttrsProxy(D){return D.attrsProxy||(D.attrsProxy=new Proxy(D.attrs,{get(O,z){return track(D,"get","$attrs"),O[z]}}))}function createSetupContext(D){const O=z=>{D.exposed=z||{}};return{get attrs(){return getAttrsProxy(D)},slots:D.slots,emit:D.emit,expose:O}}function getExposeProxy(D){if(D.exposed)return D.exposeProxy||(D.exposeProxy=new Proxy(proxyRefs(markRaw(D.exposed)),{get(O,z){if(z in O)return O[z];if(z in publicPropertiesMap)return publicPropertiesMap[z](D)},has(O,z){return z in O||z in publicPropertiesMap}}))}function getComponentName(D,O=!0){return isFunction$1(D)?D.displayName||D.name:D.name||O&&D.__name}function isClassComponent(D){return isFunction$1(D)&&"__vccOpts"in D}const computed=(D,O)=>computed$1(D,O,isInSSRComponentSetup),ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey),version$2="3.3.7",svgNS="http://www.w3.org/2000/svg",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(D,O,z)=>{O.insertBefore(D,z||null)},remove:D=>{const O=D.parentNode;O&&O.removeChild(D)},createElement:(D,O,z,F)=>{const Y=O?doc.createElementNS(svgNS,D):doc.createElement(D,z?{is:z}:void 0);return D==="select"&&F&&F.multiple!=null&&Y.setAttribute("multiple",F.multiple),Y},createText:D=>doc.createTextNode(D),createComment:D=>doc.createComment(D),setText:(D,O)=>{D.nodeValue=O},setElementText:(D,O)=>{D.textContent=O},parentNode:D=>D.parentNode,nextSibling:D=>D.nextSibling,querySelector:D=>doc.querySelector(D),setScopeId(D,O){D.setAttribute(O,"")},insertStaticContent(D,O,z,F,Y,W){const q=z?z.previousSibling:O.lastChild;if(Y&&(Y===W||Y.nextSibling))for(;O.insertBefore(Y.cloneNode(!0),z),!(Y===W||!(Y=Y.nextSibling)););else{templateContainer.innerHTML=F?`${D}`:D;const X=templateContainer.content;if(F){const tt=X.firstChild;for(;tt.firstChild;)X.appendChild(tt.firstChild);X.removeChild(tt)}O.insertBefore(X,z)}return[q?q.nextSibling:O.firstChild,z?z.previousSibling:O.lastChild]}},vtcKey=Symbol("_vtc");function patchClass(D,O,z){const F=D[vtcKey];F&&(O=(O?[O,...F]:[...F]).join(" ")),O==null?D.removeAttribute("class"):z?D.setAttribute("class",O):D.className=O}const vShowOldKey=Symbol("_vod");function patchStyle(D,O,z){const F=D.style,Y=isString(z);if(z&&!Y){if(O&&!isString(O))for(const W in O)z[W]==null&&setStyle$1(F,W,"");for(const W in z)setStyle$1(F,W,z[W])}else{const W=F.display;Y?O!==z&&(F.cssText=z):O&&D.removeAttribute("style"),vShowOldKey in D&&(F.display=W)}}const importantRE=/\s*!important$/;function setStyle$1(D,O,z){if(isArray$2(z))z.forEach(F=>setStyle$1(D,O,F));else if(z==null&&(z=""),O.startsWith("--"))D.setProperty(O,z);else{const F=autoPrefix(D,O);importantRE.test(z)?D.setProperty(hyphenate(F),z.replace(importantRE,""),"important"):D[F]=z}}const prefixes$1=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(D,O){const z=prefixCache[O];if(z)return z;let F=camelize(O);if(F!=="filter"&&F in D)return prefixCache[O]=F;F=capitalize(F);for(let Y=0;YcachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(D,O){const z=F=>{if(!F._vts)F._vts=Date.now();else if(F._vts<=z.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(F,z.value),O,5,[F])};return z.value=D,z.attached=getNow(),z}function patchStopImmediatePropagation(D,O){if(isArray$2(O)){const z=D.stopImmediatePropagation;return D.stopImmediatePropagation=()=>{z.call(D),D._stopped=!0},O.map(F=>Y=>!Y._stopped&&F&&F(Y))}else return O}const nativeOnRE=/^on[a-z]/,patchProp=(D,O,z,F,Y=!1,W,q,X,tt)=>{O==="class"?patchClass(D,F,Y):O==="style"?patchStyle(D,z,F):isOn(O)?isModelListener(O)||patchEvent(D,O,z,F,q):(O[0]==="."?(O=O.slice(1),!0):O[0]==="^"?(O=O.slice(1),!1):shouldSetAsProp(D,O,F,Y))?patchDOMProp(D,O,F,W,q,X,tt):(O==="true-value"?D._trueValue=F:O==="false-value"&&(D._falseValue=F),patchAttr(D,O,F,Y))};function shouldSetAsProp(D,O,z,F){return F?!!(O==="innerHTML"||O==="textContent"||O in D&&nativeOnRE.test(O)&&isFunction$1(z)):O==="spellcheck"||O==="draggable"||O==="translate"||O==="form"||O==="list"&&D.tagName==="INPUT"||O==="type"&&D.tagName==="TEXTAREA"||nativeOnRE.test(O)&&isString(z)?!1:O in D}/*! #__NO_SIDE_EFFECTS__ */function defineCustomElement(D,O){const z=defineComponent(D);class F extends VueElement{constructor(W){super(z,W,O)}}return F.def=z,F}const BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(O,z={},F){super(),this._def=O,this._props=z,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&F?F(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),nextTick(()=>{this._connected||(render$4(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let F=0;F{for(const Y of F)this._setAttr(Y.attributeName)}),this._ob.observe(this,{attributes:!0});const O=(F,Y=!1)=>{const{props:W,styles:q}=F;let X;if(W&&!isArray$2(W))for(const tt in W){const nt=W[tt];(nt===Number||nt&&nt.type===Number)&&(tt in this._props&&(this._props[tt]=toNumber$1(this._props[tt])),(X||(X=Object.create(null)))[camelize(tt)]=!0)}this._numberProps=X,Y&&this._resolveProps(F),this._applyStyles(q),this._update()},z=this._def.__asyncLoader;z?z().then(F=>O(F,!0)):O(this._def)}_resolveProps(O){const{props:z}=O,F=isArray$2(z)?z:Object.keys(z||{});for(const Y of Object.keys(this))Y[0]!=="_"&&F.includes(Y)&&this._setProp(Y,this[Y],!0,!1);for(const Y of F.map(camelize))Object.defineProperty(this,Y,{get(){return this._getProp(Y)},set(W){this._setProp(Y,W)}})}_setAttr(O){let z=this.getAttribute(O);const F=camelize(O);this._numberProps&&this._numberProps[F]&&(z=toNumber$1(z)),this._setProp(F,z,!1)}_getProp(O){return this._props[O]}_setProp(O,z,F=!0,Y=!0){z!==this._props[O]&&(this._props[O]=z,Y&&this._instance&&this._update(),F&&(z===!0?this.setAttribute(hyphenate(O),""):typeof z=="string"||typeof z=="number"?this.setAttribute(hyphenate(O),z+""):z||this.removeAttribute(hyphenate(O))))}_update(){render$4(this._createVNode(),this.shadowRoot)}_createVNode(){const O=createVNode(this._def,extend$2({},this._props));return this._instance||(O.ce=z=>{this._instance=z,z.isCE=!0;const F=(W,q)=>{this.dispatchEvent(new CustomEvent(W,{detail:q}))};z.emit=(W,...q)=>{F(W,q),hyphenate(W)!==W&&F(hyphenate(W),q)};let Y=this;for(;Y=Y&&(Y.parentNode||Y.host);)if(Y instanceof VueElement){z.parent=Y._instance,z.provides=Y._instance.provides;break}}),O}_applyStyles(O){O&&O.forEach(z=>{const F=document.createElement("style");F.textContent=z,this.shadowRoot.appendChild(F)})}}const rendererOptions=extend$2({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const render$4=(...D)=>{ensureRenderer().render(...D)};class Md5{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(O,z=!1){return this.onePassHasher.start().appendStr(O).end(z)}static hashAsciiStr(O,z=!1){return this.onePassHasher.start().appendAsciiStr(O).end(z)}static _hex(O){const z=Md5.hexChars,F=Md5.hexOut;let Y,W,q,X;for(X=0;X<4;X+=1)for(W=X*8,Y=O[X],q=0;q<8;q+=2)F[W+1+q]=z.charAt(Y&15),Y>>>=4,F[W+0+q]=z.charAt(Y&15),Y>>>=4;return F.join("")}static _md5cycle(O,z){let F=O[0],Y=O[1],W=O[2],q=O[3];F+=(Y&W|~Y&q)+z[0]-680876936|0,F=(F<<7|F>>>25)+Y|0,q+=(F&Y|~F&W)+z[1]-389564586|0,q=(q<<12|q>>>20)+F|0,W+=(q&F|~q&Y)+z[2]+606105819|0,W=(W<<17|W>>>15)+q|0,Y+=(W&q|~W&F)+z[3]-1044525330|0,Y=(Y<<22|Y>>>10)+W|0,F+=(Y&W|~Y&q)+z[4]-176418897|0,F=(F<<7|F>>>25)+Y|0,q+=(F&Y|~F&W)+z[5]+1200080426|0,q=(q<<12|q>>>20)+F|0,W+=(q&F|~q&Y)+z[6]-1473231341|0,W=(W<<17|W>>>15)+q|0,Y+=(W&q|~W&F)+z[7]-45705983|0,Y=(Y<<22|Y>>>10)+W|0,F+=(Y&W|~Y&q)+z[8]+1770035416|0,F=(F<<7|F>>>25)+Y|0,q+=(F&Y|~F&W)+z[9]-1958414417|0,q=(q<<12|q>>>20)+F|0,W+=(q&F|~q&Y)+z[10]-42063|0,W=(W<<17|W>>>15)+q|0,Y+=(W&q|~W&F)+z[11]-1990404162|0,Y=(Y<<22|Y>>>10)+W|0,F+=(Y&W|~Y&q)+z[12]+1804603682|0,F=(F<<7|F>>>25)+Y|0,q+=(F&Y|~F&W)+z[13]-40341101|0,q=(q<<12|q>>>20)+F|0,W+=(q&F|~q&Y)+z[14]-1502002290|0,W=(W<<17|W>>>15)+q|0,Y+=(W&q|~W&F)+z[15]+1236535329|0,Y=(Y<<22|Y>>>10)+W|0,F+=(Y&q|W&~q)+z[1]-165796510|0,F=(F<<5|F>>>27)+Y|0,q+=(F&W|Y&~W)+z[6]-1069501632|0,q=(q<<9|q>>>23)+F|0,W+=(q&Y|F&~Y)+z[11]+643717713|0,W=(W<<14|W>>>18)+q|0,Y+=(W&F|q&~F)+z[0]-373897302|0,Y=(Y<<20|Y>>>12)+W|0,F+=(Y&q|W&~q)+z[5]-701558691|0,F=(F<<5|F>>>27)+Y|0,q+=(F&W|Y&~W)+z[10]+38016083|0,q=(q<<9|q>>>23)+F|0,W+=(q&Y|F&~Y)+z[15]-660478335|0,W=(W<<14|W>>>18)+q|0,Y+=(W&F|q&~F)+z[4]-405537848|0,Y=(Y<<20|Y>>>12)+W|0,F+=(Y&q|W&~q)+z[9]+568446438|0,F=(F<<5|F>>>27)+Y|0,q+=(F&W|Y&~W)+z[14]-1019803690|0,q=(q<<9|q>>>23)+F|0,W+=(q&Y|F&~Y)+z[3]-187363961|0,W=(W<<14|W>>>18)+q|0,Y+=(W&F|q&~F)+z[8]+1163531501|0,Y=(Y<<20|Y>>>12)+W|0,F+=(Y&q|W&~q)+z[13]-1444681467|0,F=(F<<5|F>>>27)+Y|0,q+=(F&W|Y&~W)+z[2]-51403784|0,q=(q<<9|q>>>23)+F|0,W+=(q&Y|F&~Y)+z[7]+1735328473|0,W=(W<<14|W>>>18)+q|0,Y+=(W&F|q&~F)+z[12]-1926607734|0,Y=(Y<<20|Y>>>12)+W|0,F+=(Y^W^q)+z[5]-378558|0,F=(F<<4|F>>>28)+Y|0,q+=(F^Y^W)+z[8]-2022574463|0,q=(q<<11|q>>>21)+F|0,W+=(q^F^Y)+z[11]+1839030562|0,W=(W<<16|W>>>16)+q|0,Y+=(W^q^F)+z[14]-35309556|0,Y=(Y<<23|Y>>>9)+W|0,F+=(Y^W^q)+z[1]-1530992060|0,F=(F<<4|F>>>28)+Y|0,q+=(F^Y^W)+z[4]+1272893353|0,q=(q<<11|q>>>21)+F|0,W+=(q^F^Y)+z[7]-155497632|0,W=(W<<16|W>>>16)+q|0,Y+=(W^q^F)+z[10]-1094730640|0,Y=(Y<<23|Y>>>9)+W|0,F+=(Y^W^q)+z[13]+681279174|0,F=(F<<4|F>>>28)+Y|0,q+=(F^Y^W)+z[0]-358537222|0,q=(q<<11|q>>>21)+F|0,W+=(q^F^Y)+z[3]-722521979|0,W=(W<<16|W>>>16)+q|0,Y+=(W^q^F)+z[6]+76029189|0,Y=(Y<<23|Y>>>9)+W|0,F+=(Y^W^q)+z[9]-640364487|0,F=(F<<4|F>>>28)+Y|0,q+=(F^Y^W)+z[12]-421815835|0,q=(q<<11|q>>>21)+F|0,W+=(q^F^Y)+z[15]+530742520|0,W=(W<<16|W>>>16)+q|0,Y+=(W^q^F)+z[2]-995338651|0,Y=(Y<<23|Y>>>9)+W|0,F+=(W^(Y|~q))+z[0]-198630844|0,F=(F<<6|F>>>26)+Y|0,q+=(Y^(F|~W))+z[7]+1126891415|0,q=(q<<10|q>>>22)+F|0,W+=(F^(q|~Y))+z[14]-1416354905|0,W=(W<<15|W>>>17)+q|0,Y+=(q^(W|~F))+z[5]-57434055|0,Y=(Y<<21|Y>>>11)+W|0,F+=(W^(Y|~q))+z[12]+1700485571|0,F=(F<<6|F>>>26)+Y|0,q+=(Y^(F|~W))+z[3]-1894986606|0,q=(q<<10|q>>>22)+F|0,W+=(F^(q|~Y))+z[10]-1051523|0,W=(W<<15|W>>>17)+q|0,Y+=(q^(W|~F))+z[1]-2054922799|0,Y=(Y<<21|Y>>>11)+W|0,F+=(W^(Y|~q))+z[8]+1873313359|0,F=(F<<6|F>>>26)+Y|0,q+=(Y^(F|~W))+z[15]-30611744|0,q=(q<<10|q>>>22)+F|0,W+=(F^(q|~Y))+z[6]-1560198380|0,W=(W<<15|W>>>17)+q|0,Y+=(q^(W|~F))+z[13]+1309151649|0,Y=(Y<<21|Y>>>11)+W|0,F+=(W^(Y|~q))+z[4]-145523070|0,F=(F<<6|F>>>26)+Y|0,q+=(Y^(F|~W))+z[11]-1120210379|0,q=(q<<10|q>>>22)+F|0,W+=(F^(q|~Y))+z[2]+718787259|0,W=(W<<15|W>>>17)+q|0,Y+=(q^(W|~F))+z[9]-343485551|0,Y=(Y<<21|Y>>>11)+W|0,O[0]=F+O[0]|0,O[1]=Y+O[1]|0,O[2]=W+O[2]|0,O[3]=q+O[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(Md5.stateIdentity),this}appendStr(O){const z=this._buffer8,F=this._buffer32;let Y=this._bufferLength,W,q;for(q=0;q>>6)+192,z[Y++]=W&63|128;else if(W<55296||W>56319)z[Y++]=(W>>>12)+224,z[Y++]=W>>>6&63|128,z[Y++]=W&63|128;else{if(W=(W-55296)*1024+(O.charCodeAt(++q)-56320)+65536,W>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");z[Y++]=(W>>>18)+240,z[Y++]=W>>>12&63|128,z[Y++]=W>>>6&63|128,z[Y++]=W&63|128}Y>=64&&(this._dataLength+=64,Md5._md5cycle(this._state,F),Y-=64,F[0]=F[16])}return this._bufferLength=Y,this}appendAsciiStr(O){const z=this._buffer8,F=this._buffer32;let Y=this._bufferLength,W,q=0;for(;;){for(W=Math.min(O.length-q,64-Y);W--;)z[Y++]=O.charCodeAt(q++);if(Y<64)break;this._dataLength+=64,Md5._md5cycle(this._state,F),Y=0}return this._bufferLength=Y,this}appendByteArray(O){const z=this._buffer8,F=this._buffer32;let Y=this._bufferLength,W,q=0;for(;;){for(W=Math.min(O.length-q,64-Y);W--;)z[Y++]=O[q++];if(Y<64)break;this._dataLength+=64,Md5._md5cycle(this._state,F),Y=0}return this._bufferLength=Y,this}getState(){const O=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[O[0],O[1],O[2],O[3]]}}setState(O){const z=O.buffer,F=O.state,Y=this._state;let W;for(this._dataLength=O.length,this._bufferLength=O.buflen,Y[0]=F[0],Y[1]=F[1],Y[2]=F[2],Y[3]=F[3],W=0;W>2)+1;this._dataLength+=z;const q=this._dataLength*8;if(F[z]=128,F[z+1]=F[z+2]=F[z+3]=0,Y.set(Md5.buffer32Identity.subarray(W),W),z>55&&(Md5._md5cycle(this._state,Y),Y.set(Md5.buffer32Identity)),q<=4294967295)Y[14]=q;else{const X=q.toString(16).match(/(.*?)(.{0,8})$/);if(X===null)return;const tt=parseInt(X[2],16),nt=parseInt(X[1],16)||0;Y[14]=tt,Y[15]=nt}return Md5._md5cycle(this._state,Y),O?this._state:Md5._hex(this._state)}}Md5.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);Md5.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);Md5.hexChars="0123456789abcdef";Md5.hexOut=[];Md5.onePassHasher=new Md5;if(Md5.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");/* + * Component + * @version: 1.3.0 + * @author: HtmlStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 Htmlstream + */class Component{constructor(O,z){this.$collection=[],this.selector=O,this.config=z,this.events={}}_fireEvent(O,z=null){this.events.hasOwnProperty(O)&&this.events[O](z)}_dispatch(O,z,F=null){const Y=new CustomEvent(O,{detail:{payload:F},bubbles:!0,cancelable:!0,composed:!1});z.dispatchEvent(Y)}on(O,z){this.events[O]=z}afterTransition(O,z){const F=()=>{z(),O.removeEventListener("transitionend",F,!0)};window.getComputedStyle(O,null).getPropertyValue("transition")!=="all 0s ease 0s"?O.addEventListener("transitionend",F,!0):z()}getClassProperty(O,z,F=""){return(window.getComputedStyle(O).getPropertyValue(z)||F).replace(" ","")}}var top$2="top",bottom$1="bottom",right$1="right",left$1="left",auto="auto",basePlacements=[top$2,bottom$1,right$1,left$1],start$2="start",end$1="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(D,O){return D.concat([O+"-"+start$2,O+"-"+end$1])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(D,O){return D.concat([O,O+"-"+start$2,O+"-"+end$1])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write$1="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write$1,afterWrite];function getNodeName$1(D){return D?(D.nodeName||"").toLowerCase():null}function getWindow$1(D){if(D==null)return window;if(D.toString()!=="[object Window]"){var O=D.ownerDocument;return O&&O.defaultView||window}return D}function isElement$2(D){var O=getWindow$1(D).Element;return D instanceof O||D instanceof Element}function isHTMLElement$1(D){var O=getWindow$1(D).HTMLElement;return D instanceof O||D instanceof HTMLElement}function isShadowRoot$1(D){if(typeof ShadowRoot>"u")return!1;var O=getWindow$1(D).ShadowRoot;return D instanceof O||D instanceof ShadowRoot}function applyStyles(D){var O=D.state;Object.keys(O.elements).forEach(function(z){var F=O.styles[z]||{},Y=O.attributes[z]||{},W=O.elements[z];!isHTMLElement$1(W)||!getNodeName$1(W)||(Object.assign(W.style,F),Object.keys(Y).forEach(function(q){var X=Y[q];X===!1?W.removeAttribute(q):W.setAttribute(q,X===!0?"":X)}))})}function effect$2(D){var O=D.state,z={popper:{position:O.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(O.elements.popper.style,z.popper),O.styles=z,O.elements.arrow&&Object.assign(O.elements.arrow.style,z.arrow),function(){Object.keys(O.elements).forEach(function(F){var Y=O.elements[F],W=O.attributes[F]||{},q=Object.keys(O.styles.hasOwnProperty(F)?O.styles[F]:z[F]),X=q.reduce(function(tt,nt){return tt[nt]="",tt},{});!isHTMLElement$1(Y)||!getNodeName$1(Y)||(Object.assign(Y.style,X),Object.keys(W).forEach(function(tt){Y.removeAttribute(tt)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement$1(D){return D.split("-")[0]}var max$4=Math.max,min$4=Math.min,round$1=Math.round;function getUAString(){var D=navigator.userAgentData;return D!=null&&D.brands&&Array.isArray(D.brands)?D.brands.map(function(O){return O.brand+"/"+O.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect$1(D,O,z){O===void 0&&(O=!1),z===void 0&&(z=!1);var F=D.getBoundingClientRect(),Y=1,W=1;O&&isHTMLElement$1(D)&&(Y=D.offsetWidth>0&&round$1(F.width)/D.offsetWidth||1,W=D.offsetHeight>0&&round$1(F.height)/D.offsetHeight||1);var q=isElement$2(D)?getWindow$1(D):window,X=q.visualViewport,tt=!isLayoutViewport()&&z,nt=(F.left+(tt&&X?X.offsetLeft:0))/Y,st=(F.top+(tt&&X?X.offsetTop:0))/W,ct=F.width/Y,lt=F.height/W;return{width:ct,height:lt,top:st,right:nt+ct,bottom:st+lt,left:nt,x:nt,y:st}}function getLayoutRect(D){var O=getBoundingClientRect$1(D),z=D.offsetWidth,F=D.offsetHeight;return Math.abs(O.width-z)<=1&&(z=O.width),Math.abs(O.height-F)<=1&&(F=O.height),{x:D.offsetLeft,y:D.offsetTop,width:z,height:F}}function contains(D,O){var z=O.getRootNode&&O.getRootNode();if(D.contains(O))return!0;if(z&&isShadowRoot$1(z)){var F=O;do{if(F&&D.isSameNode(F))return!0;F=F.parentNode||F.host}while(F)}return!1}function getComputedStyle$2(D){return getWindow$1(D).getComputedStyle(D)}function isTableElement$1(D){return["table","td","th"].indexOf(getNodeName$1(D))>=0}function getDocumentElement$1(D){return((isElement$2(D)?D.ownerDocument:D.document)||window.document).documentElement}function getParentNode$1(D){return getNodeName$1(D)==="html"?D:D.assignedSlot||D.parentNode||(isShadowRoot$1(D)?D.host:null)||getDocumentElement$1(D)}function getTrueOffsetParent$1(D){return!isHTMLElement$1(D)||getComputedStyle$2(D).position==="fixed"?null:D.offsetParent}function getContainingBlock$1(D){var O=/firefox/i.test(getUAString()),z=/Trident/i.test(getUAString());if(z&&isHTMLElement$1(D)){var F=getComputedStyle$2(D);if(F.position==="fixed")return null}var Y=getParentNode$1(D);for(isShadowRoot$1(Y)&&(Y=Y.host);isHTMLElement$1(Y)&&["html","body"].indexOf(getNodeName$1(Y))<0;){var W=getComputedStyle$2(Y);if(W.transform!=="none"||W.perspective!=="none"||W.contain==="paint"||["transform","perspective"].indexOf(W.willChange)!==-1||O&&W.willChange==="filter"||O&&W.filter&&W.filter!=="none")return Y;Y=Y.parentNode}return null}function getOffsetParent$1(D){for(var O=getWindow$1(D),z=getTrueOffsetParent$1(D);z&&isTableElement$1(z)&&getComputedStyle$2(z).position==="static";)z=getTrueOffsetParent$1(z);return z&&(getNodeName$1(z)==="html"||getNodeName$1(z)==="body"&&getComputedStyle$2(z).position==="static")?O:z||getContainingBlock$1(D)||O}function getMainAxisFromPlacement(D){return["top","bottom"].indexOf(D)>=0?"x":"y"}function within(D,O,z){return max$4(D,min$4(O,z))}function withinMaxClamp(D,O,z){var F=within(D,O,z);return F>z?z:F}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(D){return Object.assign({},getFreshSideObject(),D)}function expandToHashMap(D,O){return O.reduce(function(z,F){return z[F]=D,z},{})}var toPaddingObject=function(O,z){return O=typeof O=="function"?O(Object.assign({},z.rects,{placement:z.placement})):O,mergePaddingObject(typeof O!="number"?O:expandToHashMap(O,basePlacements))};function arrow$1(D){var O,z=D.state,F=D.name,Y=D.options,W=z.elements.arrow,q=z.modifiersData.popperOffsets,X=getBasePlacement$1(z.placement),tt=getMainAxisFromPlacement(X),nt=[left$1,right$1].indexOf(X)>=0,st=nt?"height":"width";if(!(!W||!q)){var ct=toPaddingObject(Y.padding,z),lt=getLayoutRect(W),ht=tt==="y"?top$2:left$1,bt=tt==="y"?bottom$1:right$1,wt=z.rects.reference[st]+z.rects.reference[tt]-q[tt]-z.rects.popper[st],mt=q[tt]-z.rects.reference[tt],_t=getOffsetParent$1(W),Et=_t?tt==="y"?_t.clientHeight||0:_t.clientWidth||0:0,At=wt/2-mt/2,Ct=ct[ht],Ft=Et-lt[st]-ct[bt],Lt=Et/2-lt[st]/2+At,Yt=within(Ct,Lt,Ft),Ht=tt;z.modifiersData[F]=(O={},O[Ht]=Yt,O.centerOffset=Yt-Lt,O)}}function effect$1(D){var O=D.state,z=D.options,F=z.element,Y=F===void 0?"[data-popper-arrow]":F;Y!=null&&(typeof Y=="string"&&(Y=O.elements.popper.querySelector(Y),!Y)||contains(O.elements.popper,Y)&&(O.elements.arrow=Y))}const arrow$2={name:"arrow",enabled:!0,phase:"main",fn:arrow$1,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(D){return D.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(D,O){var z=D.x,F=D.y,Y=O.devicePixelRatio||1;return{x:round$1(z*Y)/Y||0,y:round$1(F*Y)/Y||0}}function mapToStyles(D){var O,z=D.popper,F=D.popperRect,Y=D.placement,W=D.variation,q=D.offsets,X=D.position,tt=D.gpuAcceleration,nt=D.adaptive,st=D.roundOffsets,ct=D.isFixed,lt=q.x,ht=lt===void 0?0:lt,bt=q.y,wt=bt===void 0?0:bt,mt=typeof st=="function"?st({x:ht,y:wt}):{x:ht,y:wt};ht=mt.x,wt=mt.y;var _t=q.hasOwnProperty("x"),Et=q.hasOwnProperty("y"),At=left$1,Ct=top$2,Ft=window;if(nt){var Lt=getOffsetParent$1(z),Yt="clientHeight",Ht="clientWidth";if(Lt===getWindow$1(z)&&(Lt=getDocumentElement$1(z),getComputedStyle$2(Lt).position!=="static"&&X==="absolute"&&(Yt="scrollHeight",Ht="scrollWidth")),Lt=Lt,Y===top$2||(Y===left$1||Y===right$1)&&W===end$1){Ct=bottom$1;var qt=ct&&Lt===Ft&&Ft.visualViewport?Ft.visualViewport.height:Lt[Yt];wt-=qt-F.height,wt*=tt?1:-1}if(Y===left$1||(Y===top$2||Y===bottom$1)&&W===end$1){At=right$1;var te=ct&&Lt===Ft&&Ft.visualViewport?Ft.visualViewport.width:Lt[Ht];ht-=te-F.width,ht*=tt?1:-1}}var Xt=Object.assign({position:X},nt&&unsetSides),Dt=st===!0?roundOffsetsByDPR({x:ht,y:wt},getWindow$1(z)):{x:ht,y:wt};if(ht=Dt.x,wt=Dt.y,tt){var Qt;return Object.assign({},Xt,(Qt={},Qt[Ct]=Et?"0":"",Qt[At]=_t?"0":"",Qt.transform=(Ft.devicePixelRatio||1)<=1?"translate("+ht+"px, "+wt+"px)":"translate3d("+ht+"px, "+wt+"px, 0)",Qt))}return Object.assign({},Xt,(O={},O[Ct]=Et?wt+"px":"",O[At]=_t?ht+"px":"",O.transform="",O))}function computeStyles(D){var O=D.state,z=D.options,F=z.gpuAcceleration,Y=F===void 0?!0:F,W=z.adaptive,q=W===void 0?!0:W,X=z.roundOffsets,tt=X===void 0?!0:X,nt={placement:getBasePlacement$1(O.placement),variation:getVariation(O.placement),popper:O.elements.popper,popperRect:O.rects.popper,gpuAcceleration:Y,isFixed:O.options.strategy==="fixed"};O.modifiersData.popperOffsets!=null&&(O.styles.popper=Object.assign({},O.styles.popper,mapToStyles(Object.assign({},nt,{offsets:O.modifiersData.popperOffsets,position:O.options.strategy,adaptive:q,roundOffsets:tt})))),O.modifiersData.arrow!=null&&(O.styles.arrow=Object.assign({},O.styles.arrow,mapToStyles(Object.assign({},nt,{offsets:O.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:tt})))),O.attributes.popper=Object.assign({},O.attributes.popper,{"data-popper-placement":O.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(D){var O=D.state,z=D.instance,F=D.options,Y=F.scroll,W=Y===void 0?!0:Y,q=F.resize,X=q===void 0?!0:q,tt=getWindow$1(O.elements.popper),nt=[].concat(O.scrollParents.reference,O.scrollParents.popper);return W&&nt.forEach(function(st){st.addEventListener("scroll",z.update,passive)}),X&&tt.addEventListener("resize",z.update,passive),function(){W&&nt.forEach(function(st){st.removeEventListener("scroll",z.update,passive)}),X&&tt.removeEventListener("resize",z.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement$1(D){return D.replace(/left|right|bottom|top/g,function(O){return hash$1[O]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(D){return D.replace(/start|end/g,function(O){return hash[O]})}function getWindowScroll(D){var O=getWindow$1(D),z=O.pageXOffset,F=O.pageYOffset;return{scrollLeft:z,scrollTop:F}}function getWindowScrollBarX$1(D){return getBoundingClientRect$1(getDocumentElement$1(D)).left+getWindowScroll(D).scrollLeft}function getViewportRect$1(D,O){var z=getWindow$1(D),F=getDocumentElement$1(D),Y=z.visualViewport,W=F.clientWidth,q=F.clientHeight,X=0,tt=0;if(Y){W=Y.width,q=Y.height;var nt=isLayoutViewport();(nt||!nt&&O==="fixed")&&(X=Y.offsetLeft,tt=Y.offsetTop)}return{width:W,height:q,x:X+getWindowScrollBarX$1(D),y:tt}}function getDocumentRect$1(D){var O,z=getDocumentElement$1(D),F=getWindowScroll(D),Y=(O=D.ownerDocument)==null?void 0:O.body,W=max$4(z.scrollWidth,z.clientWidth,Y?Y.scrollWidth:0,Y?Y.clientWidth:0),q=max$4(z.scrollHeight,z.clientHeight,Y?Y.scrollHeight:0,Y?Y.clientHeight:0),X=-F.scrollLeft+getWindowScrollBarX$1(D),tt=-F.scrollTop;return getComputedStyle$2(Y||z).direction==="rtl"&&(X+=max$4(z.clientWidth,Y?Y.clientWidth:0)-W),{width:W,height:q,x:X,y:tt}}function isScrollParent(D){var O=getComputedStyle$2(D),z=O.overflow,F=O.overflowX,Y=O.overflowY;return/auto|scroll|overlay|hidden/.test(z+Y+F)}function getScrollParent(D){return["html","body","#document"].indexOf(getNodeName$1(D))>=0?D.ownerDocument.body:isHTMLElement$1(D)&&isScrollParent(D)?D:getScrollParent(getParentNode$1(D))}function listScrollParents(D,O){var z;O===void 0&&(O=[]);var F=getScrollParent(D),Y=F===((z=D.ownerDocument)==null?void 0:z.body),W=getWindow$1(F),q=Y?[W].concat(W.visualViewport||[],isScrollParent(F)?F:[]):F,X=O.concat(q);return Y?X:X.concat(listScrollParents(getParentNode$1(q)))}function rectToClientRect$1(D){return Object.assign({},D,{left:D.x,top:D.y,right:D.x+D.width,bottom:D.y+D.height})}function getInnerBoundingClientRect$1(D,O){var z=getBoundingClientRect$1(D,!1,O==="fixed");return z.top=z.top+D.clientTop,z.left=z.left+D.clientLeft,z.bottom=z.top+D.clientHeight,z.right=z.left+D.clientWidth,z.width=D.clientWidth,z.height=D.clientHeight,z.x=z.left,z.y=z.top,z}function getClientRectFromMixedType(D,O,z){return O===viewport?rectToClientRect$1(getViewportRect$1(D,z)):isElement$2(O)?getInnerBoundingClientRect$1(O,z):rectToClientRect$1(getDocumentRect$1(getDocumentElement$1(D)))}function getClippingParents(D){var O=listScrollParents(getParentNode$1(D)),z=["absolute","fixed"].indexOf(getComputedStyle$2(D).position)>=0,F=z&&isHTMLElement$1(D)?getOffsetParent$1(D):D;return isElement$2(F)?O.filter(function(Y){return isElement$2(Y)&&contains(Y,F)&&getNodeName$1(Y)!=="body"}):[]}function getClippingRect$1(D,O,z,F){var Y=O==="clippingParents"?getClippingParents(D):[].concat(O),W=[].concat(Y,[z]),q=W[0],X=W.reduce(function(tt,nt){var st=getClientRectFromMixedType(D,nt,F);return tt.top=max$4(st.top,tt.top),tt.right=min$4(st.right,tt.right),tt.bottom=min$4(st.bottom,tt.bottom),tt.left=max$4(st.left,tt.left),tt},getClientRectFromMixedType(D,q,F));return X.width=X.right-X.left,X.height=X.bottom-X.top,X.x=X.left,X.y=X.top,X}function computeOffsets(D){var O=D.reference,z=D.element,F=D.placement,Y=F?getBasePlacement$1(F):null,W=F?getVariation(F):null,q=O.x+O.width/2-z.width/2,X=O.y+O.height/2-z.height/2,tt;switch(Y){case top$2:tt={x:q,y:O.y-z.height};break;case bottom$1:tt={x:q,y:O.y+O.height};break;case right$1:tt={x:O.x+O.width,y:X};break;case left$1:tt={x:O.x-z.width,y:X};break;default:tt={x:O.x,y:O.y}}var nt=Y?getMainAxisFromPlacement(Y):null;if(nt!=null){var st=nt==="y"?"height":"width";switch(W){case start$2:tt[nt]=tt[nt]-(O[st]/2-z[st]/2);break;case end$1:tt[nt]=tt[nt]+(O[st]/2-z[st]/2);break}}return tt}function detectOverflow$1(D,O){O===void 0&&(O={});var z=O,F=z.placement,Y=F===void 0?D.placement:F,W=z.strategy,q=W===void 0?D.strategy:W,X=z.boundary,tt=X===void 0?clippingParents:X,nt=z.rootBoundary,st=nt===void 0?viewport:nt,ct=z.elementContext,lt=ct===void 0?popper:ct,ht=z.altBoundary,bt=ht===void 0?!1:ht,wt=z.padding,mt=wt===void 0?0:wt,_t=mergePaddingObject(typeof mt!="number"?mt:expandToHashMap(mt,basePlacements)),Et=lt===popper?reference:popper,At=D.rects.popper,Ct=D.elements[bt?Et:lt],Ft=getClippingRect$1(isElement$2(Ct)?Ct:Ct.contextElement||getDocumentElement$1(D.elements.popper),tt,st,q),Lt=getBoundingClientRect$1(D.elements.reference),Yt=computeOffsets({reference:Lt,element:At,strategy:"absolute",placement:Y}),Ht=rectToClientRect$1(Object.assign({},At,Yt)),qt=lt===popper?Ht:Lt,te={top:Ft.top-qt.top+_t.top,bottom:qt.bottom-Ft.bottom+_t.bottom,left:Ft.left-qt.left+_t.left,right:qt.right-Ft.right+_t.right},Xt=D.modifiersData.offset;if(lt===popper&&Xt){var Dt=Xt[Y];Object.keys(te).forEach(function(Qt){var Nt=[right$1,bottom$1].indexOf(Qt)>=0?1:-1,ce=[top$2,bottom$1].indexOf(Qt)>=0?"y":"x";te[Qt]+=Dt[ce]*Nt})}return te}function computeAutoPlacement(D,O){O===void 0&&(O={});var z=O,F=z.placement,Y=z.boundary,W=z.rootBoundary,q=z.padding,X=z.flipVariations,tt=z.allowedAutoPlacements,nt=tt===void 0?placements:tt,st=getVariation(F),ct=st?X?variationPlacements:variationPlacements.filter(function(bt){return getVariation(bt)===st}):basePlacements,lt=ct.filter(function(bt){return nt.indexOf(bt)>=0});lt.length===0&&(lt=ct);var ht=lt.reduce(function(bt,wt){return bt[wt]=detectOverflow$1(D,{placement:wt,boundary:Y,rootBoundary:W,padding:q})[getBasePlacement$1(wt)],bt},{});return Object.keys(ht).sort(function(bt,wt){return ht[bt]-ht[wt]})}function getExpandedFallbackPlacements(D){if(getBasePlacement$1(D)===auto)return[];var O=getOppositePlacement$1(D);return[getOppositeVariationPlacement(D),O,getOppositeVariationPlacement(O)]}function flip$1(D){var O=D.state,z=D.options,F=D.name;if(!O.modifiersData[F]._skip){for(var Y=z.mainAxis,W=Y===void 0?!0:Y,q=z.altAxis,X=q===void 0?!0:q,tt=z.fallbackPlacements,nt=z.padding,st=z.boundary,ct=z.rootBoundary,lt=z.altBoundary,ht=z.flipVariations,bt=ht===void 0?!0:ht,wt=z.allowedAutoPlacements,mt=O.options.placement,_t=getBasePlacement$1(mt),Et=_t===mt,At=tt||(Et||!bt?[getOppositePlacement$1(mt)]:getExpandedFallbackPlacements(mt)),Ct=[mt].concat(At).reduce(function(Je,qe){return Je.concat(getBasePlacement$1(qe)===auto?computeAutoPlacement(O,{placement:qe,boundary:st,rootBoundary:ct,padding:nt,flipVariations:bt,allowedAutoPlacements:wt}):qe)},[]),Ft=O.rects.reference,Lt=O.rects.popper,Yt=new Map,Ht=!0,qt=Ct[0],te=0;te=0,ce=Nt?"width":"height",Pt=detectOverflow$1(O,{placement:Xt,boundary:st,rootBoundary:ct,altBoundary:lt,padding:nt}),de=Nt?Qt?right$1:left$1:Qt?bottom$1:top$2;Ft[ce]>Lt[ce]&&(de=getOppositePlacement$1(de));var ye=getOppositePlacement$1(de),pe=[];if(W&&pe.push(Pt[Dt]<=0),X&&pe.push(Pt[de]<=0,Pt[ye]<=0),pe.every(function(Je){return Je})){qt=Xt,Ht=!1;break}Yt.set(Xt,pe)}if(Ht)for(var ve=bt?3:1,Ce=function(qe){var ze=Ct.find(function(we){var Me=Yt.get(we);if(Me)return Me.slice(0,qe).every(function(He){return He})});if(ze)return qt=ze,"break"},De=ve;De>0;De--){var Oe=Ce(De);if(Oe==="break")break}O.placement!==qt&&(O.modifiersData[F]._skip=!0,O.placement=qt,O.reset=!0)}}const flip$2={name:"flip",enabled:!0,phase:"main",fn:flip$1,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(D,O,z){return z===void 0&&(z={x:0,y:0}),{top:D.top-O.height-z.y,right:D.right-O.width+z.x,bottom:D.bottom-O.height+z.y,left:D.left-O.width-z.x}}function isAnySideFullyClipped(D){return[top$2,right$1,bottom$1,left$1].some(function(O){return D[O]>=0})}function hide(D){var O=D.state,z=D.name,F=O.rects.reference,Y=O.rects.popper,W=O.modifiersData.preventOverflow,q=detectOverflow$1(O,{elementContext:"reference"}),X=detectOverflow$1(O,{altBoundary:!0}),tt=getSideOffsets(q,F),nt=getSideOffsets(X,Y,W),st=isAnySideFullyClipped(tt),ct=isAnySideFullyClipped(nt);O.modifiersData[z]={referenceClippingOffsets:tt,popperEscapeOffsets:nt,isReferenceHidden:st,hasPopperEscaped:ct},O.attributes.popper=Object.assign({},O.attributes.popper,{"data-popper-reference-hidden":st,"data-popper-escaped":ct})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(D,O,z){var F=getBasePlacement$1(D),Y=[left$1,top$2].indexOf(F)>=0?-1:1,W=typeof z=="function"?z(Object.assign({},O,{placement:D})):z,q=W[0],X=W[1];return q=q||0,X=(X||0)*Y,[left$1,right$1].indexOf(F)>=0?{x:X,y:q}:{x:q,y:X}}function offset$1(D){var O=D.state,z=D.options,F=D.name,Y=z.offset,W=Y===void 0?[0,0]:Y,q=placements.reduce(function(st,ct){return st[ct]=distanceAndSkiddingToXY(ct,O.rects,W),st},{}),X=q[O.placement],tt=X.x,nt=X.y;O.modifiersData.popperOffsets!=null&&(O.modifiersData.popperOffsets.x+=tt,O.modifiersData.popperOffsets.y+=nt),O.modifiersData[F]=q}const offset$2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset$1};function popperOffsets(D){var O=D.state,z=D.name;O.modifiersData[z]=computeOffsets({reference:O.rects.reference,element:O.rects.popper,strategy:"absolute",placement:O.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(D){return D==="x"?"y":"x"}function preventOverflow(D){var O=D.state,z=D.options,F=D.name,Y=z.mainAxis,W=Y===void 0?!0:Y,q=z.altAxis,X=q===void 0?!1:q,tt=z.boundary,nt=z.rootBoundary,st=z.altBoundary,ct=z.padding,lt=z.tether,ht=lt===void 0?!0:lt,bt=z.tetherOffset,wt=bt===void 0?0:bt,mt=detectOverflow$1(O,{boundary:tt,rootBoundary:nt,padding:ct,altBoundary:st}),_t=getBasePlacement$1(O.placement),Et=getVariation(O.placement),At=!Et,Ct=getMainAxisFromPlacement(_t),Ft=getAltAxis(Ct),Lt=O.modifiersData.popperOffsets,Yt=O.rects.reference,Ht=O.rects.popper,qt=typeof wt=="function"?wt(Object.assign({},O.rects,{placement:O.placement})):wt,te=typeof qt=="number"?{mainAxis:qt,altAxis:qt}:Object.assign({mainAxis:0,altAxis:0},qt),Xt=O.modifiersData.offset?O.modifiersData.offset[O.placement]:null,Dt={x:0,y:0};if(Lt){if(W){var Qt,Nt=Ct==="y"?top$2:left$1,ce=Ct==="y"?bottom$1:right$1,Pt=Ct==="y"?"height":"width",de=Lt[Ct],ye=de+mt[Nt],pe=de-mt[ce],ve=ht?-Ht[Pt]/2:0,Ce=Et===start$2?Yt[Pt]:Ht[Pt],De=Et===start$2?-Ht[Pt]:-Yt[Pt],Oe=O.elements.arrow,Je=ht&&Oe?getLayoutRect(Oe):{width:0,height:0},qe=O.modifiersData["arrow#persistent"]?O.modifiersData["arrow#persistent"].padding:getFreshSideObject(),ze=qe[Nt],we=qe[ce],Me=within(0,Yt[Pt],Je[Pt]),He=At?Yt[Pt]/2-ve-Me-ze-te.mainAxis:Ce-Me-ze-te.mainAxis,Le=At?-Yt[Pt]/2+ve+Me+we+te.mainAxis:De+Me+we+te.mainAxis,Ye=O.elements.arrow&&getOffsetParent$1(O.elements.arrow),Kt=Ye?Ct==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,kt=(Qt=Xt==null?void 0:Xt[Ct])!=null?Qt:0,jt=de+He-kt-Kt,$t=de+Le-kt,oe=within(ht?min$4(ye,jt):ye,de,ht?max$4(pe,$t):pe);Lt[Ct]=oe,Dt[Ct]=oe-de}if(X){var Vt,Be=Ct==="x"?top$2:left$1,ge=Ct==="x"?bottom$1:right$1,Pe=Lt[Ft],ke=Ft==="y"?"height":"width",$e=Pe+mt[Be],Fe=Pe-mt[ge],Qe=[top$2,left$1].indexOf(_t)!==-1,We=(Vt=Xt==null?void 0:Xt[Ft])!=null?Vt:0,rn=Qe?$e:Pe-Yt[ke]-Ht[ke]-We+te.altAxis,zn=Qe?Pe+Yt[ke]+Ht[ke]-We-te.altAxis:Fe,Bn=ht&&Qe?withinMaxClamp(rn,Pe,zn):within(ht?rn:$e,Pe,ht?zn:Fe);Lt[Ft]=Bn,Dt[Ft]=Bn-Pe}O.modifiersData[F]=Dt}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(D){return{scrollLeft:D.scrollLeft,scrollTop:D.scrollTop}}function getNodeScroll$1(D){return D===getWindow$1(D)||!isHTMLElement$1(D)?getWindowScroll(D):getHTMLElementScroll(D)}function isElementScaled(D){var O=D.getBoundingClientRect(),z=round$1(O.width)/D.offsetWidth||1,F=round$1(O.height)/D.offsetHeight||1;return z!==1||F!==1}function getCompositeRect(D,O,z){z===void 0&&(z=!1);var F=isHTMLElement$1(O),Y=isHTMLElement$1(O)&&isElementScaled(O),W=getDocumentElement$1(O),q=getBoundingClientRect$1(D,Y,z),X={scrollLeft:0,scrollTop:0},tt={x:0,y:0};return(F||!F&&!z)&&((getNodeName$1(O)!=="body"||isScrollParent(W))&&(X=getNodeScroll$1(O)),isHTMLElement$1(O)?(tt=getBoundingClientRect$1(O,!0),tt.x+=O.clientLeft,tt.y+=O.clientTop):W&&(tt.x=getWindowScrollBarX$1(W))),{x:q.left+X.scrollLeft-tt.x,y:q.top+X.scrollTop-tt.y,width:q.width,height:q.height}}function order$1(D){var O=new Map,z=new Set,F=[];D.forEach(function(W){O.set(W.name,W)});function Y(W){z.add(W.name);var q=[].concat(W.requires||[],W.requiresIfExists||[]);q.forEach(function(X){if(!z.has(X)){var tt=O.get(X);tt&&Y(tt)}}),F.push(W)}return D.forEach(function(W){z.has(W.name)||Y(W)}),F}function orderModifiers(D){var O=order$1(D);return modifierPhases.reduce(function(z,F){return z.concat(O.filter(function(Y){return Y.phase===F}))},[])}function debounce$1(D){var O;return function(){return O||(O=new Promise(function(z){Promise.resolve().then(function(){O=void 0,z(D())})})),O}}function mergeByName(D){var O=D.reduce(function(z,F){var Y=z[F.name];return z[F.name]=Y?Object.assign({},Y,F,{options:Object.assign({},Y.options,F.options),data:Object.assign({},Y.data,F.data)}):F,z},{});return Object.keys(O).map(function(z){return O[z]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var D=arguments.length,O=new Array(D),z=0;z{const Y=z.target.closest(this.selector);Y&&this.getClassProperty(Y,"--trigger")==="focus"&&this._focus(Y),Y&&this.getClassProperty(Y,"--trigger")==="click"&&this._click(Y)}),this.root.addEventListener("mousemove",z=>{const Y=z.target.closest(this.selector);Y&&this.getClassProperty(Y,"--trigger")!=="focus"&&this.getClassProperty(Y,"--trigger")!=="click"&&this._hover(Y)})}_hover(z){if(z.classList.contains("show"))return;const F=z.querySelector(".hs-tooltip-toggle"),Y=z.querySelector(".hs-tooltip-content"),W=this.getClassProperty(z,"--placement");createPopper(F,Y,{placement:W||"top",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.show(z);const q=X=>{X.relatedTarget.closest(this.selector)&&X.relatedTarget.closest(this.selector)==z||(this.hide(z),z.removeEventListener("mouseleave",q,!0))};z.addEventListener("mouseleave",q,!0)}_focus(z){const F=z.querySelector(".hs-tooltip-toggle"),Y=z.querySelector(".hs-tooltip-content"),W=this.getClassProperty(z,"--placement"),q=this.getClassProperty(z,"--strategy");createPopper(F,Y,{placement:W||"top",strategy:q||"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.show(z);const X=()=>{this.hide(z),z.removeEventListener("blur",X,!0)};z.addEventListener("blur",X,!0)}_click(z){if(z.classList.contains("show"))return;const F=z.querySelector(".hs-tooltip-toggle"),Y=z.querySelector(".hs-tooltip-content"),W=this.getClassProperty(z,"--placement"),q=this.getClassProperty(z,"--strategy");createPopper(F,Y,{placement:W||"top",strategy:q||"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.show(z);const X=tt=>{setTimeout(()=>{this.hide(z),z.removeEventListener("click",X,!0),z.removeEventListener("blur",X,!0)})};z.addEventListener("blur",X,!0),z.addEventListener("click",X,!0)}show(z){z.querySelector(".hs-tooltip-content").classList.remove("hidden"),setTimeout(()=>{z.classList.add("show"),this._fireEvent("show",z),this._dispatch("show.hs.tooltip",z,z)})}hide(z){const F=z.querySelector(".hs-tooltip-content");z.classList.remove("show"),this._fireEvent("hide",z),this._dispatch("hide.hs.tooltip",z,z),this.afterTransition(F,()=>{z.classList.contains("show")||F.classList.add("hidden")})}}const _hoisted_1$e={class:"hs-tooltip-toggle block text-center",href:"javascript:;",title:"Click for more information"},_hoisted_2$a=["innerHTML"],_hoisted_3$8={class:"hs-tooltip-content z-30 hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible hidden opacity-0 transition-opacity absolute invisible max-w-xs bg-white border border-gray-100 text-left rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700",role:"tooltip"},_hoisted_4$7={class:"flex flex-col bg-white border shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]"},_hoisted_5$5=["src"],_hoisted_6$5={class:"p-4 md:p-5"},_hoisted_7$5={class:"text-lg font-bold text-gray-800 dark:text-white"},_hoisted_8$5={class:"mt-1 text-gray-800 dark:text-gray-400"},_hoisted_9$5={class:"mt-5 text-xs text-gray-500 dark:text-gray-500"},_hoisted_10$5=["href"],_hoisted_11$4=createBaseVNode("img",{class:"max-w-[24px]",src:"https://upload.wikimedia.org/wikipedia/commons/7/77/Wikipedia_svg_logo.svg"},null,-1),_hoisted_12$4=createBaseVNode("span",{class:"ml-1"},"Wikipedia",-1),_hoisted_13$4=[_hoisted_11$4,_hoisted_12$4],_sfc_main$h=defineComponent({__name:"EntityInfobox.ce",props:{qid:{type:String},label:{type:String},description:{type:String},language:{type:String,default:"en"}},setup(D){const O=D;watch$1(O,()=>{q.value=O.qid});const z=ref(null),F=computed(()=>{var bt,wt;return(wt=(bt=z.value)==null?void 0:bt.getRootNode())==null?void 0:wt.host}),Y=computed(()=>{var bt;return(bt=F.value)==null?void 0:bt.textContent}),W=computed(()=>{var bt;return(bt=z==null?void 0:z.value)==null?void 0:bt.parentNode});watch$1(W,()=>{new HSTooltip(W.value).init()});const q=ref(O.qid);watch$1(q,()=>{lt(q.value)});const X=ref({}),tt=computed(()=>q.value&&X.value[q.value]),nt=computed(()=>{var bt,wt,mt;return(mt=(wt=(bt=tt.value)==null?void 0:bt.labels)==null?void 0:wt[O.language])==null?void 0:mt.value}),st=computed(()=>{var bt,wt,mt;return(mt=(wt=(bt=tt.value)==null?void 0:bt.descriptions)==null?void 0:wt[O.language])==null?void 0:mt.value}),ct=computed(()=>tt.value&&tt.value.sitelinks[`${O.language}wiki`].url);onMounted(()=>{lt(q.value)});async function lt(bt){if(!bt||X.value[bt])return;let wt=`https://www.wikidata.org/wiki/Special:EntityData/${bt}.json`;const _t=await(await fetch(wt)).json();Object.values(_t.entities).forEach(Et=>{Et.summaryText={},Et.claims.P18&&(Et.image=Et.claims.P18[0].mainsnak.datavalue.value,Et.thumbnail=ht(Et.image))}),X.value={...X.value,..._t.entities}}function ht(bt,wt=300){Array.isArray(bt)&&(bt=bt[0]),bt=bt.split("/").pop(),bt=decodeURIComponent(bt).replace(/ /g,"_");const mt=Md5.hashStr(bt),_t=bt.split(".").pop();let Et=`https://upload.wikimedia.org/wikipedia/commons${wt?"/thumb":""}`;return Et+=`/${mt.slice(0,1)}/${mt.slice(0,2)}/${bt}`,wt&&(Et+=`/${wt}px-${bt}`,_t==="svg"?Et+=".png":(_t==="tif"||_t==="tiff")&&(Et+=".jpg")),Et}return(bt,wt)=>{var mt;return openBlock(),createElementBlock("div",{ref_key:"root",ref:z,class:"hs-tooltip inline-block [--trigger:click] [--placement:top]"},[createBaseVNode("a",_hoisted_1$e,[createBaseVNode("span",{innerHTML:Y.value,class:"underline underline-offset-4 decoration-dotted"},null,8,_hoisted_2$a),createBaseVNode("div",_hoisted_3$8,[createBaseVNode("div",_hoisted_4$7,[createBaseVNode("img",{class:"w-full h-auto rounded-t-xl",src:(mt=tt.value)==null?void 0:mt.thumbnail,alt:"Image Description"},null,8,_hoisted_5$5),createBaseVNode("div",_hoisted_6$5,[createBaseVNode("h3",_hoisted_7$5,toDisplayString(nt.value),1),createBaseVNode("p",_hoisted_8$5,toDisplayString(st.value),1),createBaseVNode("div",_hoisted_9$5,[createBaseVNode("a",{class:"inline-flex items-center gap-2 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-all text-sm",target:"_blank",href:ct.value},_hoisted_13$4,8,_hoisted_10$5)])])])])])],512)}}}),_style_0$e=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-1{margin:.25rem}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}}.underline{text-decoration-color:green} +`,_export_sfc=(D,O)=>{const z=D.__vccOpts||D;for(const[F,Y]of O)z[F]=Y;return z},EntityInfobox=_export_sfc(_sfc_main$h,[["styles",[_style_0$e]]]),_hoisted_1$d=["innerHTML","onClick"],_sfc_main$g=defineComponent({__name:"Footer.ce",props:{sticky:{type:Boolean}},setup(D){const O=D,z=ref([]),F=ref(null),Y=computed(()=>{var ht,bt;return(bt=(ht=F.value)==null?void 0:ht.getRootNode())==null?void 0:bt.host});computed(()=>{var ht;return(ht=F==null?void 0:F.value)==null?void 0:ht.parentNode});const W=ref(!1);watch$1(W,()=>q.open=W.value);let q;const X=ref();watch$1(Y,()=>{}),watch$1(Y,()=>tt());function tt(){var ht;Y.value.style.clear="both",O.sticky&&nt(),z.value=Array.from((ht=Y.value)==null?void 0:ht.querySelectorAll("li"))}function nt(){Y.value.classList.add("sticky");let ht=Y.value.offsetHeight;ht+=parseInt(window.getComputedStyle(Y.value).getPropertyValue("margin-top")),ht+=parseInt(window.getComputedStyle(Y.value).getPropertyValue("margin-bottom"));let bt=document.querySelector("main");bt&&(bt.style.paddingBottom=`${ht}px`),Y.value.style.width=`${Y.value.parentElement.clientWidth}px`,document.body.style.marginBottom="80px"}function st(ht){return ht?Object.fromEntries(ht.split(";").filter(bt=>bt.trim()).map(bt=>bt.split(":").map(wt=>wt.trim()))):{}}function ct(){let ht=window.PREFIX,bt=location.hostname.indexOf("github.io")!==-1,wt=location.pathname.split("/").filter(mt=>mt).filter(mt=>mt!=="editor").slice(bt?1:0).join("/");X.value=ht&&wt.indexOf(ht)!==0?`${ht}/${wt}`:wt,W.value=!0}function lt(ht,bt){ht.innerHTML==="view-code"&&(bt.stopPropagation(),ct())}return(ht,bt)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:F,class:"flex bg-slate-100 p-6 gap-8 mt-8 items-center w-full h-8 justify-between"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(z.value,(wt,mt)=>(openBlock(),createElementBlock("div",{key:`li-${mt}`,class:normalizeClass(`flex items-center gap-4 whitespace-nowrap ${wt.className}`),style:normalizeStyle(st(wt.getAttribute("style")||"")),innerHTML:wt.innerHTML,onClick:_t=>lt(wt,_t)},null,14,_hoisted_1$d))),128))],512))}}),_style_0$d=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-1{margin:.25rem}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}}img{height:36px}.push{margin-left:auto} +`,Footer=_export_sfc(_sfc_main$g,[["styles",[_style_0$d]]]);var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}function getAugmentedNamespace(D){if(D.__esModule)return D;var O=D.default;if(typeof O=="function"){var z=function F(){return this instanceof F?Reflect.construct(O,arguments,this.constructor):O.apply(this,arguments)};z.prototype=O.prototype}else z={};return Object.defineProperty(z,"__esModule",{value:!0}),Object.keys(D).forEach(function(F){var Y=Object.getOwnPropertyDescriptor(D,F);Object.defineProperty(z,F,Y.get?Y:{enumerable:!0,get:function(){return D[F]}})}),z}var sha256$1={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$4=getAugmentedNamespace(__viteBrowserExternal$1);/** + * [js-sha256]{@link https://github.com/emn178/js-sha256} + * + * @version 0.10.1 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2023 + * @license MIT + */(function(D){(function(){var O="input is invalid type",z=typeof window=="object",F=z?window:{};F.JS_SHA256_NO_WINDOW&&(z=!1);var Y=!z&&typeof self=="object",W=!F.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;W?F=commonjsGlobal$1:Y&&(F=self);var q=!F.JS_SHA256_NO_COMMON_JS&&!0&&D.exports,X=!F.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",tt="0123456789abcdef".split(""),nt=[-2147483648,8388608,32768,128],st=[24,16,8,0],ct=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],lt=["hex","array","digest","arrayBuffer"],ht=[];(F.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(Lt){return Object.prototype.toString.call(Lt)==="[object Array]"}),X&&(F.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(Lt){return typeof Lt=="object"&&Lt.buffer&&Lt.buffer.constructor===ArrayBuffer});var bt=function(Lt,Yt){return function(Ht){return new At(Yt,!0).update(Ht)[Lt]()}},wt=function(Lt){var Yt=bt("hex",Lt);W&&(Yt=mt(Yt,Lt)),Yt.create=function(){return new At(Lt)},Yt.update=function(te){return Yt.create().update(te)};for(var Ht=0;Ht>2]|=Lt[te]<>2]|=qt<>2]|=(192|qt>>6)<>2]|=(128|qt&63)<=57344?(Qt[Xt>>2]|=(224|qt>>12)<>2]|=(128|qt>>6&63)<>2]|=(128|qt&63)<>2]|=(240|qt>>18)<>2]|=(128|qt>>12&63)<>2]|=(128|qt>>6&63)<>2]|=(128|qt&63)<=64?(this.block=Qt[16],this.start=Xt-64,this.hash(),this.hashed=!0):this.start=Xt}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},At.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Lt=this.blocks,Yt=this.lastByteIndex;Lt[16]=this.block,Lt[Yt>>2]|=nt[Yt&3],this.block=Lt[16],Yt>=56&&(this.hashed||this.hash(),Lt[0]=this.block,Lt[16]=Lt[1]=Lt[2]=Lt[3]=Lt[4]=Lt[5]=Lt[6]=Lt[7]=Lt[8]=Lt[9]=Lt[10]=Lt[11]=Lt[12]=Lt[13]=Lt[14]=Lt[15]=0),Lt[14]=this.hBytes<<3|this.bytes>>>29,Lt[15]=this.bytes<<3,this.hash()}},At.prototype.hash=function(){var Lt=this.h0,Yt=this.h1,Ht=this.h2,qt=this.h3,te=this.h4,Xt=this.h5,Dt=this.h6,Qt=this.h7,Nt=this.blocks,ce,Pt,de,ye,pe,ve,Ce,De,Oe,Je,qe;for(ce=16;ce<64;++ce)pe=Nt[ce-15],Pt=(pe>>>7|pe<<25)^(pe>>>18|pe<<14)^pe>>>3,pe=Nt[ce-2],de=(pe>>>17|pe<<15)^(pe>>>19|pe<<13)^pe>>>10,Nt[ce]=Nt[ce-16]+Pt+Nt[ce-7]+de<<0;for(qe=Yt&Ht,ce=0;ce<64;ce+=4)this.first?(this.is224?(De=300032,pe=Nt[0]-1413257819,Qt=pe-150054599<<0,qt=pe+24177077<<0):(De=704751109,pe=Nt[0]-210244248,Qt=pe-1521486534<<0,qt=pe+143694565<<0),this.first=!1):(Pt=(Lt>>>2|Lt<<30)^(Lt>>>13|Lt<<19)^(Lt>>>22|Lt<<10),de=(te>>>6|te<<26)^(te>>>11|te<<21)^(te>>>25|te<<7),De=Lt&Yt,ye=De^Lt&Ht^qe,Ce=te&Xt^~te&Dt,pe=Qt+de+Ce+ct[ce]+Nt[ce],ve=Pt+ye,Qt=qt+pe<<0,qt=pe+ve<<0),Pt=(qt>>>2|qt<<30)^(qt>>>13|qt<<19)^(qt>>>22|qt<<10),de=(Qt>>>6|Qt<<26)^(Qt>>>11|Qt<<21)^(Qt>>>25|Qt<<7),Oe=qt&Lt,ye=Oe^qt&Yt^De,Ce=Qt&te^~Qt&Xt,pe=Dt+de+Ce+ct[ce+1]+Nt[ce+1],ve=Pt+ye,Dt=Ht+pe<<0,Ht=pe+ve<<0,Pt=(Ht>>>2|Ht<<30)^(Ht>>>13|Ht<<19)^(Ht>>>22|Ht<<10),de=(Dt>>>6|Dt<<26)^(Dt>>>11|Dt<<21)^(Dt>>>25|Dt<<7),Je=Ht&qt,ye=Je^Ht&Lt^Oe,Ce=Dt&Qt^~Dt&te,pe=Xt+de+Ce+ct[ce+2]+Nt[ce+2],ve=Pt+ye,Xt=Yt+pe<<0,Yt=pe+ve<<0,Pt=(Yt>>>2|Yt<<30)^(Yt>>>13|Yt<<19)^(Yt>>>22|Yt<<10),de=(Xt>>>6|Xt<<26)^(Xt>>>11|Xt<<21)^(Xt>>>25|Xt<<7),qe=Yt&Ht,ye=qe^Yt&qt^Je,Ce=Xt&Dt^~Xt&Qt,pe=te+de+Ce+ct[ce+3]+Nt[ce+3],ve=Pt+ye,te=Lt+pe<<0,Lt=pe+ve<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+Lt<<0,this.h1=this.h1+Yt<<0,this.h2=this.h2+Ht<<0,this.h3=this.h3+qt<<0,this.h4=this.h4+te<<0,this.h5=this.h5+Xt<<0,this.h6=this.h6+Dt<<0,this.h7=this.h7+Qt<<0},At.prototype.hex=function(){this.finalize();var Lt=this.h0,Yt=this.h1,Ht=this.h2,qt=this.h3,te=this.h4,Xt=this.h5,Dt=this.h6,Qt=this.h7,Nt=tt[Lt>>28&15]+tt[Lt>>24&15]+tt[Lt>>20&15]+tt[Lt>>16&15]+tt[Lt>>12&15]+tt[Lt>>8&15]+tt[Lt>>4&15]+tt[Lt&15]+tt[Yt>>28&15]+tt[Yt>>24&15]+tt[Yt>>20&15]+tt[Yt>>16&15]+tt[Yt>>12&15]+tt[Yt>>8&15]+tt[Yt>>4&15]+tt[Yt&15]+tt[Ht>>28&15]+tt[Ht>>24&15]+tt[Ht>>20&15]+tt[Ht>>16&15]+tt[Ht>>12&15]+tt[Ht>>8&15]+tt[Ht>>4&15]+tt[Ht&15]+tt[qt>>28&15]+tt[qt>>24&15]+tt[qt>>20&15]+tt[qt>>16&15]+tt[qt>>12&15]+tt[qt>>8&15]+tt[qt>>4&15]+tt[qt&15]+tt[te>>28&15]+tt[te>>24&15]+tt[te>>20&15]+tt[te>>16&15]+tt[te>>12&15]+tt[te>>8&15]+tt[te>>4&15]+tt[te&15]+tt[Xt>>28&15]+tt[Xt>>24&15]+tt[Xt>>20&15]+tt[Xt>>16&15]+tt[Xt>>12&15]+tt[Xt>>8&15]+tt[Xt>>4&15]+tt[Xt&15]+tt[Dt>>28&15]+tt[Dt>>24&15]+tt[Dt>>20&15]+tt[Dt>>16&15]+tt[Dt>>12&15]+tt[Dt>>8&15]+tt[Dt>>4&15]+tt[Dt&15];return this.is224||(Nt+=tt[Qt>>28&15]+tt[Qt>>24&15]+tt[Qt>>20&15]+tt[Qt>>16&15]+tt[Qt>>12&15]+tt[Qt>>8&15]+tt[Qt>>4&15]+tt[Qt&15]),Nt},At.prototype.toString=At.prototype.hex,At.prototype.digest=function(){this.finalize();var Lt=this.h0,Yt=this.h1,Ht=this.h2,qt=this.h3,te=this.h4,Xt=this.h5,Dt=this.h6,Qt=this.h7,Nt=[Lt>>24&255,Lt>>16&255,Lt>>8&255,Lt&255,Yt>>24&255,Yt>>16&255,Yt>>8&255,Yt&255,Ht>>24&255,Ht>>16&255,Ht>>8&255,Ht&255,qt>>24&255,qt>>16&255,qt>>8&255,qt&255,te>>24&255,te>>16&255,te>>8&255,te&255,Xt>>24&255,Xt>>16&255,Xt>>8&255,Xt&255,Dt>>24&255,Dt>>16&255,Dt>>8&255,Dt&255];return this.is224||Nt.push(Qt>>24&255,Qt>>16&255,Qt>>8&255,Qt&255),Nt},At.prototype.array=At.prototype.digest,At.prototype.arrayBuffer=function(){this.finalize();var Lt=new ArrayBuffer(this.is224?28:32),Yt=new DataView(Lt);return Yt.setUint32(0,this.h0),Yt.setUint32(4,this.h1),Yt.setUint32(8,this.h2),Yt.setUint32(12,this.h3),Yt.setUint32(16,this.h4),Yt.setUint32(20,this.h5),Yt.setUint32(24,this.h6),this.is224||Yt.setUint32(28,this.h7),Lt};function Ct(Lt,Yt,Ht){var qt,te=typeof Lt;if(te==="string"){var Xt=[],Dt=Lt.length,Qt=0,Nt;for(qt=0;qt>6,Xt[Qt++]=128|Nt&63):Nt<55296||Nt>=57344?(Xt[Qt++]=224|Nt>>12,Xt[Qt++]=128|Nt>>6&63,Xt[Qt++]=128|Nt&63):(Nt=65536+((Nt&1023)<<10|Lt.charCodeAt(++qt)&1023),Xt[Qt++]=240|Nt>>18,Xt[Qt++]=128|Nt>>12&63,Xt[Qt++]=128|Nt>>6&63,Xt[Qt++]=128|Nt&63);Lt=Xt}else if(te==="object"){if(Lt===null)throw new Error(O);if(X&&Lt.constructor===ArrayBuffer)Lt=new Uint8Array(Lt);else if(!Array.isArray(Lt)&&(!X||!ArrayBuffer.isView(Lt)))throw new Error(O)}else throw new Error(O);Lt.length>64&&(Lt=new At(Yt,!0).update(Lt).array());var ce=[],Pt=[];for(qt=0;qt<64;++qt){var de=Lt[qt]||0;ce[qt]=92^de,Pt[qt]=54^de}At.call(this,Yt,Ht),this.update(Pt),this.oKeyPad=ce,this.inner=!0,this.sharedMemory=Ht}Ct.prototype=new At,Ct.prototype.finalize=function(){if(At.prototype.finalize.call(this),this.inner){this.inner=!1;var Lt=this.array();At.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Lt),At.prototype.finalize.call(this)}};var Ft=wt();Ft.sha256=Ft,Ft.sha224=wt(!0),Ft.sha256.hmac=Et(),Ft.sha224.hmac=Et(!0),q?D.exports=Ft:(F.sha256=Ft.sha256,F.sha224=Ft.sha224)})()})(sha256$1);var sha256Exports=sha256$1.exports;const iiifServer="https://iiif.juncture-digital.org";function sha256(D){return sha256Exports.sha256(D)}function isURL(D){return/^https*:\/\//.test(D)}function isMobile(){return"ontouchstart"in document.documentElement&&/mobi/i.test(navigator.userAgent)}async function getEntity(D,O="en"){return(await getEntityData([D],O))[D]}let entityData={};async function getEntityData(D=[],O="en"){let z=D.filter(F=>!entityData[F]).map(F=>`()`);if(z.length>0){let F=` + SELECT ?item ?label ?description ?alias ?image ?logoImage ?coords ?pageBanner ?whosOnFirst ?wikipedia WHERE { + VALUES (?item) { ${z.join(" ")} } + ?item rdfs:label ?label . + FILTER (LANG(?label) = "${O}" || LANG(?label) = "en") + OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "${O}" || LANG(?description) = "en")} + OPTIONAL { ?item skos:altLabel ?alias . FILTER (LANG(?alias) = "${O}" || LANG(?alias) = "en")} + OPTIONAL { ?item wdt:P625 ?coords . } + OPTIONAL { ?item wdt:P18 ?image . } + OPTIONAL { ?item wdt:P154 ?logoImage . } + OPTIONAL { ?item wdt:P948 ?pageBanner . } + OPTIONAL { ?item wdt:P6766 ?whosOnFirst . } + OPTIONAL { ?wikipedia schema:about ?item; schema:isPartOf . } + }`,Y=await fetch("https://query.wikidata.org/sparql",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json"},body:`query=${encodeURIComponent(F)}`});if(Y.ok)return(await Y.json()).results.bindings.forEach(q=>{let X=q.item.value.split("/").pop();entityData[X]?q.alias&&entityData[X].aliases.push(q.alias.value):(entityData[X]={id:X,label:q.label.value},q.description&&(entityData[X].description=q.description.value),q.alias&&(entityData[X].aliases=[q.alias.value]),q.coords&&(entityData[X].coords=q.coords.value.slice(6,-1).split(" ").reverse().join(",")),q.wikipedia&&(entityData[X].wikipedia=q.wikipedia.value),q.pageBanner&&(entityData[X].pageBanner=q.pageBanner.value),q.image&&(entityData[X].image=q.image.value,entityData[X].thumbnail=mwImage(q.image.value,300)),q.logoImage&&(entityData[X].logoImage=q.logoImage.value,entityData[X].thumbnail||(entityData[X].thumbnail=mwImage(q.logoImage.value,300))),q.whosOnFirst&&(entityData[X].geojson=whosOnFirstUrl(q.whosOnFirst.value)))}),Object.fromEntries(D.filter(q=>entityData[q]).map(q=>[q,entityData[q]]))}return Object.fromEntries(D.filter(F=>entityData[F]).map(F=>[F,entityData[F]]))}function mwImage(D,O){D=(Array.isArray(D)?D[0]:D).replace(/Special:FilePath\//,"File:").split("File:").pop(),D=decodeURIComponent(D).replace(/ /g,"_");const z=Md5.hashStr(D),F=D.split(".").pop();let Y=`https://upload.wikimedia.org/wikipedia/commons${O?"/thumb":""}`;return Y+=`/${z.slice(0,1)}/${z.slice(0,2)}/${D}`,O&&(Y+=`/${O}px-${D}`,F==="svg"?Y+=".png":(F==="tif"||F==="tiff")&&(Y+=".jpg")),Y}function whosOnFirstUrl(D){let O=[];for(let z=0;zY.indexOf("http")===0?Y:`${iiifServer}/${Y}/manifest.json`),F=z.filter(Y=>!_manifestCache[Y]);if(F.length>0){let Y=F.map(X=>(O&&["localhost","iiif.juncture-digital.org"].includes(new URL(X).hostname)&&(X+="?refresh"),fetch(X))),W=await Promise.all(Y),q=await Promise.all(W.map(X=>X.json()));if(Y=q.filter(X=>!Array.isArray(X["@context"])&&parseFloat(X["@context"].split("/").slice(-2,-1).pop())<3).map(X=>fetch("https://iiif.juncture-digital.org/prezi2to3/",{method:"POST",body:JSON.stringify(X)})),Y.length>0){W=await Promise.all(Y);let X=await Promise.all(W.map(tt=>tt.json()));for(let tt=0;tt(ct.id||ct["@id"])===nt);st&&(q[tt]=st)}}return q.forEach((X,tt)=>_manifestCache[F[tt]]=X),z.map(X=>_manifestCache[X])}else return z.map(Y=>_manifestCache[Y])}async function imageDataUrl(D,O,z){return new Promise(F=>{let{x:Y,y:W,w:q,h:X}=O,{width:tt,height:nt}=z,st=new Image;st.crossOrigin="anonymous",Y=Y?Y/100:0,W=W?W/100:0,q=q?q/100:0,X=X?X/100:0,st.onload=()=>{let ct=st.width,lt=st.height,ht=q>0?ct*q:ct-ct*Y,bt=X>0?lt*X:lt-lt*W,wt=ht/bt;wt>1?nt=tt/wt:tt=nt*wt;const mt=document.createElement("canvas"),_t=mt.getContext("2d");mt.width=tt,mt.height=nt,Y=Y*ct,W=W*lt,_t==null||_t.drawImage(st,Y,W,ht,bt,0,0,tt,nt);let Et=mt.toDataURL();F(Et)},st.src=D})}function findItem(D,O,z=1){const F=_findItems(D,O);return F.length>=z?F[z-1]:null}function _findItems(D,O,z=[]){if(z=z||[],O.items)for(let F=0;FY[q]&&Y[q]!==X)?z.push(Y):_findItems(D,Y,z)}return z}function getItemInfo(D,O=1){return findItem({type:"Annotation",motivation:"painting"},D,O).body}function parseImageOptions(D){let O=(D==null?void 0:D.split("/"))||[],z="full",F="full",Y="0",W="default",q="jpg",X=0;return{region:O.length>X&&O[X]?O[X]:z,size:O.length>X+1&&O[X+1]?O[X+1]:F,rotation:O.length>X+2&&O[X+2]?O[X+2]:Y,quality:O.length>X+3&&O[X+3]?O[X+3]:W,format:O.length>X+4&&O[X+4]?O[X+4]:q}}function kebabToCamel(D){return D.replace(/-([a-z])/g,function(O){return O[1].toUpperCase()})}function isNum(D){return D&&!isNaN(D)}function isQID(D){return D[0]==="Q"&&isNum(D.slice(1))}function _value(D,O="en"){return typeof D=="object"?D[O]||D.none||D[Object.keys(D).sort()[0]]:D}function label(D,O="en"){return D?_value(D.label,O):null}function getMetadata(D,O="en"){let z=[];return D.metadata&&D.metadata.forEach(F=>{z.push({label:_value(F.label,O)[0],value:_value(F.value,O)})}),z}function metadataAsObj(D,O="en"){return Object.fromEntries(getMetadata(D,O).map(z=>[z.label,z.value]))}function observeNavbar(D,O){const z=()=>{let Y=parseInt(D.style.top.replace(/^-/,"").replace(/px$/,""))||0,q=(parseInt(D.style.height.replace(/px$/,""))||D.clientHeight)-Y;O.style.top=`${q}px`};z(),new MutationObserver(z).observe(D,{attributes:!0})}function makeSticky(D){var z;D.classList.add("sticky"),D.style.position="sticky";let O=document.querySelector('ve-navbar[sticky="true"]');if(O)observeNavbar(O,D);else{let F=document.querySelector("ve-header[sticky]");F?(O=(z=F==null?void 0:F.shadowRoot)==null?void 0:z.querySelector("ve-navbar"),O?observeNavbar(O,D):new MutationObserver(()=>{var W;O=(W=F==null?void 0:F.shadowRoot)==null?void 0:W.querySelector("ve-navbar"),O&&observeNavbar(O,D)}).observe(F,{childList:!0,subtree:!0,attributes:!0})):D.style.top="0"}}function imageCount(D){return _findItems({type:"Annotation",motivation:"painting"},D).length}function parseRegionString(D,O){let z;const F=D.split(":");let[Y,W,q,X]=F[F.length-1].split(",").map(nt=>parseInt(nt));const tt=O.world.getItemAt(0).getContentSize();return F.length===2&&(F[0]==="pct"||F[0]==="percent")&&(Y=Math.round(tt.x*Y/100),W=Math.round(tt.y*W/100),q=Math.round(tt.x*q/100),X=Math.round(tt.y*X/100)),z=O.viewport.imageToViewportRectangle(Y,W,q,X),z}function staticImage(D,O,z=0,F=0){let Y=getItemInfo(D),W=O.region||"full",q=O.size?O.size:z?F?`${z},${F}`:`${z},`:F?`,${F}`:"400,",X=O.rotation||"0",tt=O.quality||"default",nt=O.format||"jpg";return`${Y.service[0].id||Y.service[0]["@id"]}/${W}/${q}/${X}/${tt}.${nt}`}function thumbnail(D,O=400,z=1){if(!D)return null;let F=getItemInfo(D,z);return F.service?`${F.service[0].id||F.service[0]["@id"]}/full/${O},/0/default.jpg`:F.type==="Video"?`https://iiif.juncture-digital.org/thumbnail?url=${F.id}`:F.id}let stickyElems=[];function top$1(){return stickyElems.length>0&&stickyElems[0].localName.toLowerCase()==="ve-navbar"?parseInt(window.getComputedStyle(stickyElems[0]).height.slice(0,-2)):0}const _hoisted_1$c=["background","options","position","sticky","height","top"],_hoisted_2$9=["label","subtitle","logo","url","sticky","search-domain","search-cx","search-key","contact","height","background","alpha","offset"],_hoisted_3$7=["innerHTML"],navbarHeight=100,heroHeight=400,_sfc_main$f=defineComponent({__name:"Header.ce",props:{label:{type:String},subtitle:{type:String},logo:{type:String},url:{type:String},contact:{type:String},searchDomain:{type:String},searchCx:{type:String},searchKey:{type:String},entities:{type:String},sticky:{type:Boolean},background:{type:String},options:{type:String},height:{type:Number},position:{type:String}},setup(D){const O=D,z=/^\w+:/,F=ref(null),Y=computed(()=>{var bt,wt;return(wt=(bt=F.value)==null?void 0:bt.getRootNode())==null?void 0:wt.host});watch$1(Y,()=>{st.value=Y.value.querySelector("ul")});const W=ref(),q=ref([]),X=ref(),tt=ref("#444A1E"),nt=ref(),st=ref(),ct=ref(O.height||navbarHeight);onMounted(()=>{console.log("mounted"),lt()}),onUpdated(()=>lt());function lt(){q.value=O.entities?O.entities.split(/\s+/).filter(bt=>bt):[],O.background!==void 0&&(isURL(O.background)||ht(O.background))?(nt.value=O.background,ct.value=O.height||heroHeight):tt.value=O.background||"#444",O.label&&O.label!=="static"&&(W.value=O.label),O.sticky&&Y.value.classList.add("sticky")}watch$1(q,async()=>{q.value.length>0&&!X.value&&(X.value=await getEntity(q.value[0]),X.value&&(W.value=X.value.label,X.value.pageBanner&&(nt.value=`https://iiif.juncture-digital.org/wc:${decodeURIComponent(X.value.pageBanner.split("/Special:FilePath/").pop()).replace(/\s/,"_")}/manifest.json`,ct.value=heroHeight)))});function ht(bt){return z.test(bt)}return(bt,wt)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",normalizeProps(guardReactiveProps(bt.$attrs)),null,16),nt.value?(openBlock(),createElementBlock("ve-hero",{key:0,background:nt.value,options:O.options,position:O.position,sticky:O.sticky?"":null,height:ct.value,top:O.sticky?ct.value-navbarHeight:0},null,8,_hoisted_1$c)):createCommentVNode("",!0),createBaseVNode("ve-navbar",{ref_key:"navbar",ref:F,class:"sticky z-10",label:W.value,subtitle:O.subtitle,logo:O.logo,url:O.url,sticky:O.sticky?"":null,"search-domain":O.searchDomain,"search-cx":O.searchCx,"search-key":O.searchKey,contact:O.contact,height:nt.value?navbarHeight:ct.value,background:tt.value,alpha:nt.value?.2:0,offset:nt.value?navbarHeight:0},[st.value?(openBlock(),createElementBlock("ul",{key:0,innerHTML:st.value.outerHTML},null,8,_hoisted_3$7)):createCommentVNode("",!0)],8,_hoisted_2$9)],64))}}),_style_0$c=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-1{margin:.25rem}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}} +`,Header=_export_sfc(_sfc_main$f,[["styles",[_style_0$c]]]);/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const t$5=globalThis,e$9=t$5.ShadowRoot&&(t$5.ShadyCSS===void 0||t$5.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),o$8=new WeakMap;let n$6=class{constructor(O,z,F){if(this._$cssResult$=!0,F!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=O,this.t=z}get styleSheet(){let O=this.o;const z=this.t;if(e$9&&O===void 0){const F=z!==void 0&&z.length===1;F&&(O=o$8.get(z)),O===void 0&&((this.o=O=new CSSStyleSheet).replaceSync(this.cssText),F&&o$8.set(z,O))}return O}toString(){return this.cssText}};const r$7=D=>new n$6(typeof D=="string"?D:D+"",void 0,s$3),i$5=(D,...O)=>{const z=D.length===1?D[0]:O.reduce((F,Y,W)=>F+(q=>{if(q._$cssResult$===!0)return q.cssText;if(typeof q=="number")return q;throw Error("Value passed to 'css' function must be a 'css' function result: "+q+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(Y)+D[W+1],D[0]);return new n$6(z,D,s$3)},S$1=(D,O)=>{if(e$9)D.adoptedStyleSheets=O.map(z=>z instanceof CSSStyleSheet?z:z.styleSheet);else for(const z of O){const F=document.createElement("style"),Y=t$5.litNonce;Y!==void 0&&F.setAttribute("nonce",Y),F.textContent=z.cssText,D.appendChild(F)}},c$3=e$9?D=>D:D=>D instanceof CSSStyleSheet?(O=>{let z="";for(const F of O.cssRules)z+=F.cssText;return r$7(z)})(D):D;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{is:i$4,defineProperty:e$8,getOwnPropertyDescriptor:r$6,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$7,getPrototypeOf:n$5}=Object,a$2=globalThis,c$2=a$2.trustedTypes,l$3=c$2?c$2.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(D,O)=>D,u$2={toAttribute(D,O){switch(O){case Boolean:D=D?l$3:null;break;case Object:case Array:D=D==null?D:JSON.stringify(D)}return D},fromAttribute(D,O){let z=D;switch(O){case Boolean:z=D!==null;break;case Number:z=D===null?null:Number(D);break;case Object:case Array:try{z=JSON.parse(D)}catch{z=null}}return z}},f$3=(D,O)=>!i$4(D,O),y$2={attribute:!0,type:String,converter:u$2,reflect:!1,hasChanged:f$3};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),a$2.litPropertyMetadata??(a$2.litPropertyMetadata=new WeakMap);class b extends HTMLElement{static addInitializer(O){this._$Ei(),(this.l??(this.l=[])).push(O)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(O,z=y$2){if(z.state&&(z.attribute=!1),this._$Ei(),this.elementProperties.set(O,z),!z.noAccessor){const F=Symbol(),Y=this.getPropertyDescriptor(O,F,z);Y!==void 0&&e$8(this.prototype,O,Y)}}static getPropertyDescriptor(O,z,F){const{get:Y,set:W}=r$6(this.prototype,O)??{get(){return this[z]},set(q){this[z]=q}};return{get(){return Y==null?void 0:Y.call(this)},set(q){const X=Y==null?void 0:Y.call(this);W.call(this,q),this.requestUpdate(O,X,F)},configurable:!0,enumerable:!0}}static getPropertyOptions(O){return this.elementProperties.get(O)??y$2}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const O=n$5(this);O.finalize(),O.l!==void 0&&(this.l=[...O.l]),this.elementProperties=new Map(O.elementProperties)}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const z=this.properties,F=[...h$1(z),...o$7(z)];for(const Y of F)this.createProperty(Y,z[Y])}const O=this[Symbol.metadata];if(O!==null){const z=litPropertyMetadata.get(O);if(z!==void 0)for(const[F,Y]of z)this.elementProperties.set(F,Y)}this._$Eh=new Map;for(const[z,F]of this.elementProperties){const Y=this._$Eu(z,F);Y!==void 0&&this._$Eh.set(Y,z)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(O){const z=[];if(Array.isArray(O)){const F=new Set(O.flat(1/0).reverse());for(const Y of F)z.unshift(c$3(Y))}else O!==void 0&&z.push(c$3(O));return z}static _$Eu(O,z){const F=z.attribute;return F===!1?void 0:typeof F=="string"?F:typeof O=="string"?O.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var O;this._$Eg=new Promise(z=>this.enableUpdating=z),this._$AL=new Map,this._$E_(),this.requestUpdate(),(O=this.constructor.l)==null||O.forEach(z=>z(this))}addController(O){var z;(this._$ES??(this._$ES=[])).push(O),this.renderRoot!==void 0&&this.isConnected&&((z=O.hostConnected)==null||z.call(O))}removeController(O){var z;(z=this._$ES)==null||z.splice(this._$ES.indexOf(O)>>>0,1)}_$E_(){const O=new Map,z=this.constructor.elementProperties;for(const F of z.keys())this.hasOwnProperty(F)&&(O.set(F,this[F]),delete this[F]);O.size>0&&(this._$Ep=O)}createRenderRoot(){const O=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(O,this.constructor.elementStyles),O}connectedCallback(){var O;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(O=this._$ES)==null||O.forEach(z=>{var F;return(F=z.hostConnected)==null?void 0:F.call(z)})}enableUpdating(O){}disconnectedCallback(){var O;(O=this._$ES)==null||O.forEach(z=>{var F;return(F=z.hostDisconnected)==null?void 0:F.call(z)})}attributeChangedCallback(O,z,F){this._$AK(O,F)}_$EO(O,z){var W;const F=this.constructor.elementProperties.get(O),Y=this.constructor._$Eu(O,F);if(Y!==void 0&&F.reflect===!0){const q=(((W=F.converter)==null?void 0:W.toAttribute)!==void 0?F.converter:u$2).toAttribute(z,F.type);this._$Em=O,q==null?this.removeAttribute(Y):this.setAttribute(Y,q),this._$Em=null}}_$AK(O,z){var W;const F=this.constructor,Y=F._$Eh.get(O);if(Y!==void 0&&this._$Em!==Y){const q=F.getPropertyOptions(Y),X=typeof q.converter=="function"?{fromAttribute:q.converter}:((W=q.converter)==null?void 0:W.fromAttribute)!==void 0?q.converter:u$2;this._$Em=Y,this[Y]=X.fromAttribute(z,q.type),this._$Em=null}}requestUpdate(O,z,F,Y=!1,W){if(O!==void 0){if(F??(F=this.constructor.getPropertyOptions(O)),!(F.hasChanged??f$3)(Y?W:this[O],z))return;this.C(O,z,F)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(O,z,F){this._$AL.has(O)||this._$AL.set(O,z),F.reflect===!0&&this._$Em!==O&&(this._$Ej??(this._$Ej=new Set)).add(O)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(z){Promise.reject(z)}const O=this.scheduleUpdate();return O!=null&&await O,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var F;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[W,q]of this._$Ep)this[W]=q;this._$Ep=void 0}const Y=this.constructor.elementProperties;if(Y.size>0)for(const[W,q]of Y)q.wrapped!==!0||this._$AL.has(W)||this[W]===void 0||this.C(W,this[W],q)}let O=!1;const z=this._$AL;try{O=this.shouldUpdate(z),O?(this.willUpdate(z),(F=this._$ES)==null||F.forEach(Y=>{var W;return(W=Y.hostUpdate)==null?void 0:W.call(Y)}),this.update(z)):this._$ET()}catch(Y){throw O=!1,this._$ET(),Y}O&&this._$AE(z)}willUpdate(O){}_$AE(O){var z;(z=this._$ES)==null||z.forEach(F=>{var Y;return(Y=F.hostUpdated)==null?void 0:Y.call(F)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(O)),this.updated(O)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(O){return!0}update(O){this._$Ej&&(this._$Ej=this._$Ej.forEach(z=>this._$EO(z,this[z]))),this._$ET()}updated(O){}firstUpdated(O){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1==null||p$1({ReactiveElement:b}),(a$2.reactiveElementVersions??(a$2.reactiveElementVersions=[])).push("2.0.0");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const t$4=globalThis,i$3=t$4.trustedTypes,s$2=i$3?i$3.createPolicy("lit-html",{createHTML:D=>D}):void 0,e$7="$lit$",h=`lit$${(Math.random()+"").slice(9)}$`,o$6="?"+h,n$4=`<${o$6}>`,r$5=document,l$2=()=>r$5.createComment(""),c$1=D=>D===null||typeof D!="object"&&typeof D!="function",a$1=Array.isArray,u$1=D=>a$1(D)||typeof(D==null?void 0:D[Symbol.iterator])=="function",d=`[ +\f\r]`,f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=D=>(O,...z)=>({_$litType$:D,strings:O,values:z}),x$1=y$1(1),w$1=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),A=new WeakMap,E=r$5.createTreeWalker(r$5,129);function C(D,O){if(!Array.isArray(D)||!D.hasOwnProperty("raw"))throw Error("invalid template strings array");return s$2!==void 0?s$2.createHTML(O):O}const P=(D,O)=>{const z=D.length-1,F=[];let Y,W=O===2?"":"",q=f$2;for(let X=0;X"?(q=Y??f$2,ct=-1):st[1]===void 0?ct=-2:(ct=q.lastIndex-st[2].length,nt=st[1],q=st[3]===void 0?m$1:st[3]==='"'?g:p):q===g||q===p?q=m$1:q===v||q===_$1?q=f$2:(q=m$1,Y=void 0);const ht=q===m$1&&D[X+1].startsWith("/>")?" ":"";W+=q===f$2?tt+n$4:ct>=0?(F.push(nt),tt.slice(0,ct)+e$7+tt.slice(ct)+h+ht):tt+h+(ct===-2?X:ht)}return[C(D,W+(D[z]||"")+(O===2?"":"")),F]};class V{constructor({strings:O,_$litType$:z},F){let Y;this.parts=[];let W=0,q=0;const X=O.length-1,tt=this.parts,[nt,st]=P(O,z);if(this.el=V.createElement(nt,F),E.currentNode=this.el.content,z===2){const ct=this.el.content.firstChild;ct.replaceWith(...ct.childNodes)}for(;(Y=E.nextNode())!==null&&tt.length0){Y.textContent=i$3?i$3.emptyScript:"";for(let ht=0;ht2||F[0]!==""||F[1]!==""?(this._$AH=Array(F.length-1).fill(new String),this.strings=F):this._$AH=T}_$AI(O,z=this,F,Y){const W=this.strings;let q=!1;if(W===void 0)O=N(this,O,z,0),q=!c$1(O)||O!==this._$AH&&O!==w$1,q&&(this._$AH=O);else{const X=O;let tt,nt;for(O=W[0],tt=0;tt{const F=(z==null?void 0:z.renderBefore)??O;let Y=F._$litPart$;if(Y===void 0){const W=(z==null?void 0:z.renderBefore)??null;F._$litPart$=Y=new M(O.insertBefore(l$2(),W),W,void 0,z??{})}return Y._$AI(D),Y};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */let s$1=class extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var z;const O=super.createRenderRoot();return(z=this.renderOptions).renderBefore??(z.renderBefore=O.firstChild),O}update(O){const z=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(O),this._$Do=j(z,this.renderRoot,this.renderOptions)}connectedCallback(){var O;super.connectedCallback(),(O=this._$Do)==null||O.setConnected(!0)}disconnectedCallback(){var O;super.disconnectedCallback(),(O=this._$Do)==null||O.setConnected(!1)}render(){return w$1}};var Eb;s$1._$litElement$=!0,s$1.finalized=!0,(Eb=globalThis.litElementHydrateSupport)==null||Eb.call(globalThis,{LitElement:s$1});const r$4=globalThis.litElementPolyfillSupport;r$4==null||r$4({LitElement:s$1});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.0");var component_styles_default=i$5` + :host { + box-sizing: border-box; + } + + :host *, + :host *::before, + :host *::after { + box-sizing: inherit; + } + + [hidden] { + display: none !important; + } +`,icon_styles_default=i$5` + ${component_styles_default} + + :host { + display: inline-block; + width: 1em; + height: 1em; + box-sizing: content-box !important; + } + + svg { + display: block; + height: 100%; + width: 100%; + } +`,basePath="";function setBasePath(D){basePath=D}function getBasePath(D=""){if(!basePath){const O=[...document.getElementsByTagName("script")],z=O.find(F=>F.hasAttribute("data-shoelace"));if(z)setBasePath(z.getAttribute("data-shoelace"));else{const F=O.find(W=>/shoelace(\.min)?\.js($|\?)/.test(W.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(W.src));let Y="";F&&(Y=F.getAttribute("src")),setBasePath(Y.split("/").slice(0,-1).join("/"))}}return basePath.replace(/\/$/,"")+(D?`/${D.replace(/^\//,"")}`:"")}var library={name:"default",resolver:D=>getBasePath(`assets/icons/${D}.svg`)},library_default_default=library,icons={caret:` + + + + `,check:` + + + + + + + + + + + `,"chevron-down":` + + + + `,"chevron-left":` + + + + `,"chevron-right":` + + + + `,copy:` + + + + `,eye:` + + + + + `,"eye-slash":` + + + + + + `,eyedropper:` + + + + `,"grip-vertical":` + + + + `,indeterminate:` + + + + + + + + + + `,"person-fill":` + + + + `,"play-fill":` + + + + `,"pause-fill":` + + + + `,radio:` + + + + + + + + `,"star-fill":` + + + + `,"x-lg":` + + + + `,"x-circle-fill":` + + + + `},systemLibrary={name:"system",resolver:D=>D in icons?`data:image/svg+xml,${encodeURIComponent(icons[D])}`:""},library_system_default=systemLibrary,registry=[library_default_default,library_system_default],watchedIcons=[];function watchIcon(D){watchedIcons.push(D)}function unwatchIcon(D){watchedIcons=watchedIcons.filter(O=>O!==D)}function getIconLibrary(D){return registry.find(O=>O.name===D)}var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__knownSymbol=(D,O)=>{if(O=Symbol[D])return O;throw Error("Symbol."+D+" is not defined")},__defNormalProp=(D,O,z)=>O in D?__defProp(D,O,{enumerable:!0,configurable:!0,writable:!0,value:z}):D[O]=z,__spreadValues=(D,O)=>{for(var z in O||(O={}))__hasOwnProp.call(O,z)&&__defNormalProp(D,z,O[z]);if(__getOwnPropSymbols)for(var z of __getOwnPropSymbols(O))__propIsEnum.call(O,z)&&__defNormalProp(D,z,O[z]);return D},__spreadProps=(D,O)=>__defProps(D,__getOwnPropDescs(O)),__decorateClass=(D,O,z,F)=>{for(var Y=F>1?void 0:F?__getOwnPropDesc(O,z):O,W=D.length-1,q;W>=0;W--)(q=D[W])&&(Y=(F?q(O,z,Y):q(Y))||Y);return F&&Y&&__defProp(O,z,Y),Y},__await=function(D,O){this[0]=D,this[1]=O},__yieldStar=D=>{var O=D[__knownSymbol("asyncIterator")],z=!1,F,Y={};return O==null?(O=D[__knownSymbol("iterator")](),F=W=>Y[W]=q=>O[W](q)):(O=O.call(D),F=W=>Y[W]=q=>{if(z){if(z=!1,W==="throw")throw q;return q}return z=!0,{done:!1,value:new __await(new Promise(X=>{var tt=O[W](q);if(!(tt instanceof Object))throw TypeError("Object expected");X(tt)}),1)}}),Y[__knownSymbol("iterator")]=()=>Y,F("next"),"throw"in O?F("throw"):Y.throw=W=>{throw W},"return"in O&&F("return"),Y};function watch(D,O){const z=__spreadValues({waitUntilFirstUpdate:!1},O);return(F,Y)=>{const{update:W}=F,q=Array.isArray(D)?D:[D];F.update=function(X){q.forEach(tt=>{const nt=tt;if(X.has(nt)){const st=X.get(nt),ct=this[nt];st!==ct&&(!z.waitUntilFirstUpdate||this.hasUpdated)&&this[Y](st,ct)}}),W.call(this,X)}}}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const o$5={attribute:!0,type:String,converter:u$2,reflect:!1,hasChanged:f$3},r$3=(D=o$5,O,z)=>{const{kind:F,metadata:Y}=z;let W=globalThis.litPropertyMetadata.get(Y);if(W===void 0&&globalThis.litPropertyMetadata.set(Y,W=new Map),W.set(z.name,D),F==="accessor"){const{name:q}=z;return{set(X){const tt=O.get.call(this);O.set.call(this,X),this.requestUpdate(q,tt,D)},init(X){return X!==void 0&&this.C(q,void 0,D),X}}}if(F==="setter"){const{name:q}=z;return function(X){const tt=this[q];O.call(this,X),this.requestUpdate(q,tt,D)}}throw Error("Unsupported decorator location: "+F)};function n$3(D){return(O,z)=>typeof z=="object"?r$3(D,O,z):((F,Y,W)=>{const q=Y.hasOwnProperty(W);return Y.constructor.createProperty(W,q?{...F,wrapped:!0}:F),q?Object.getOwnPropertyDescriptor(Y,W):void 0})(D,O,z)}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function r$2(D){return n$3({...D,state:!0,attribute:!1})}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function t$3(D){return(O,z)=>{const F=typeof O=="function"?O:O[z];Object.assign(F,D)}}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const e$6=(D,O,z)=>(z.configurable=!0,z.enumerable=!0,Reflect.decorate&&typeof O!="object"&&Object.defineProperty(D,O,z),z);/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function e$5(D,O){return(z,F,Y)=>{const W=q=>{var X;return((X=q.renderRoot)==null?void 0:X.querySelector(D))??null};if(O){const{get:q,set:X}=typeof F=="object"?z:Y??(()=>{const tt=Symbol();return{get(){return this[tt]},set(nt){this[tt]=nt}}})();return e$6(z,F,{get(){if(O){let tt=q.call(this);return tt===void 0&&(tt=W(this),X.call(this,tt)),tt}return W(this)}})}return e$6(z,F,{get(){return W(this)}})}}var ShoelaceElement=class extends s$1{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([D,O])=>{this.constructor.define(D,O)})}emit(D,O){const z=new CustomEvent(D,__spreadValues({bubbles:!0,cancelable:!1,composed:!0,detail:{}},O));return this.dispatchEvent(z),z}static define(D,O=this,z={}){const F=customElements.get(D);if(!F){customElements.define(D,class extends O{},z);return}let Y=" (unknown version)",W=Y;"version"in O&&O.version&&(Y=" v"+O.version),"version"in F&&F.version&&(W=" v"+F.version),!(Y&&W&&Y===W)&&console.warn(`Attempted to register <${D}>${Y}, but <${D}>${W} has already been registered.`)}};ShoelaceElement.version="2.11.2";ShoelaceElement.dependencies={};__decorateClass([n$3()],ShoelaceElement.prototype,"dir",2);__decorateClass([n$3()],ShoelaceElement.prototype,"lang",2);/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const e$4=(D,O)=>O===void 0?(D==null?void 0:D._$litType$)!==void 0:(D==null?void 0:D._$litType$)===O,f$1=D=>D.strings===void 0,u={},m=(D,O=u)=>D._$AH=O;var CACHEABLE_ERROR=Symbol(),RETRYABLE_ERROR=Symbol(),parser$e,iconCache=new Map,SlIcon=class extends ShoelaceElement{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(D,O){var z;let F;if(O!=null&&O.spriteSheet)return x$1` + + `;try{if(F=await fetch(D,{mode:"cors"}),!F.ok)return F.status===410?CACHEABLE_ERROR:RETRYABLE_ERROR}catch{return RETRYABLE_ERROR}try{const Y=document.createElement("div");Y.innerHTML=await F.text();const W=Y.firstElementChild;if(((z=W==null?void 0:W.tagName)==null?void 0:z.toLowerCase())!=="svg")return CACHEABLE_ERROR;parser$e||(parser$e=new DOMParser);const X=parser$e.parseFromString(W.outerHTML,"text/html").body.querySelector("svg");return X?(X.part.add("svg"),document.adoptNode(X)):CACHEABLE_ERROR}catch{return CACHEABLE_ERROR}}connectedCallback(){super.connectedCallback(),watchIcon(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),unwatchIcon(this)}getIconSource(){const D=getIconLibrary(this.library);return this.name&&D?{url:D.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var D;const{url:O,fromLibrary:z}=this.getIconSource(),F=z?getIconLibrary(this.library):void 0;if(!O){this.svg=null;return}let Y=iconCache.get(O);if(Y||(Y=this.resolveIcon(O,F),iconCache.set(O,Y)),!this.initialRender)return;const W=await Y;if(W===RETRYABLE_ERROR&&iconCache.delete(O),O===this.getIconSource().url){if(e$4(W)){this.svg=W;return}switch(W){case RETRYABLE_ERROR:case CACHEABLE_ERROR:this.svg=null,this.emit("sl-error");break;default:this.svg=W.cloneNode(!0),(D=F==null?void 0:F.mutator)==null||D.call(F,this.svg),this.emit("sl-load")}}}render(){return this.svg}};SlIcon.styles=icon_styles_default;__decorateClass([r$2()],SlIcon.prototype,"svg",2);__decorateClass([n$3({reflect:!0})],SlIcon.prototype,"name",2);__decorateClass([n$3()],SlIcon.prototype,"src",2);__decorateClass([n$3()],SlIcon.prototype,"label",2);__decorateClass([n$3({reflect:!0})],SlIcon.prototype,"library",2);__decorateClass([watch("label")],SlIcon.prototype,"handleLabelChange",1);__decorateClass([watch(["name","src","library"])],SlIcon.prototype,"setIcon",1);SlIcon.define("sl-icon");const _hoisted_1$b=["src","alt"],_sfc_main$e=defineComponent({__name:"GIF.ce",props:{src:{type:String,required:!0},alt:{type:String},initiallyPaused:{type:Boolean},restartOnPlay:{type:Boolean}},setup(D){const O=D,z=ref(null),F=computed(()=>{var lt;return(lt=z==null?void 0:z.value)==null?void 0:lt.parentNode}),Y=computed(()=>{var lt;return(lt=F.value)==null?void 0:lt.querySelector("#gif")}),W=ref(!1),q=ref(!1),X=ref(),tt={buttonPlayIconID:"",buttonPauseIconID:"",buttonPlayIconHTML:"",buttonPauseIconHTML:"",inheritClasses:!0,initiallyPaused:!1,restartOnPlay:!1,langPause:"Pause animation:",langPlay:"Play animation:",langPauseAllButton:"Pause all animations",langPlayAllButton:"Play all animations",langMissingAlt:"Animated GIF."};watch$1(Y,()=>{nextTick(()=>nt())});function nt(){X.value={...tt,initiallyPaused:O.initiallyPaused,restartOnPlay:O.restartOnPlay},st()}function st(){let lt=()=>{W.value=!0;let ht;if(ht=Y.value.src.split("."),ht=ht[ht.length-1].toLowerCase(),ht=ht.substring(0,4),ht==="gif"){const bt=document.createElement("canvas");let wt=parseFloat(getComputedStyle(Y.value,null).getPropertyValue("border-left-width")),mt=parseFloat(getComputedStyle(Y.value,null).getPropertyValue("border-right-width")),_t=wt+mt,Et=Y.value.getAttribute("width");Et!==null?(bt.width=parseInt(Et),bt.setAttribute("style","width:"+Et+"px !important;")):Y.value.clientWidth==0?bt.width=Y.value.naturalWidth+.5+_t:bt.width=Y.value.clientWidth+.5+_t;const At=Y.value.naturalHeight/Y.value.naturalWidth*bt.width;if(bt.height=At+.5,bt.setAttribute("role","img"),X.value.inheritClasses===!0){let Ht=Y.value.getAttribute("class");Ht==null&&(Ht=""),bt.setAttribute("class","gifa11y-canvas "+Ht)}else bt.setAttribute("class","gifa11y-canvas");let Ct=Y.value.getAttribute("alt")||X.value.langMissingAlt;bt.setAttribute("aria-label",Ct);const Ft=Y.value.src,Lt=window.matchMedia("(prefers-reduced-motion: reduce)");!Lt||Lt.matches||Y.value.classList.contains("gifa11y-paused")||Ft.indexOf("gifa11y-paused")>-1||X.value.initiallyPaused===!0?Y.value.style.display="none":bt.style.display="none",bt.getContext("2d").drawImage(Y.value,0,0,bt.width,bt.height),Y.value.after(bt)}};Y.value.complete?lt():Y.value.addEventListener("load",()=>{W.value||nextTick(()=>lt())})}function ct(lt,ht){q.value=!q.value;const bt=Y.value.nextElementSibling;q.value?(X.value.restartOnPlay&&(Y.value.src=O.src),Y.value.style.display="block",bt.style.display="none"):(X.value.restartOnPlay&&(Y.value.src=O.src),Y.value.style.display="none",bt.style.display="block"),ht.preventDefault()}return(lt,ht)=>{const bt=resolveComponent("sl-icon");return openBlock(),createElementBlock("div",{ref_key:"root",ref:z,class:"main"},[createBaseVNode("img",{src:O.src,i:"",id:"gif",style:{width:"100%"},alt:O.alt||"Animated GIF",onClick:ht[0]||(ht[0]=wt=>ct("image",wt))},null,8,_hoisted_1$b),W.value?(openBlock(),createBlock(bt,{key:0,id:"play-button",name:q.value?"pause-circle":"play-circle","data-state":q.value?"playing":"paused",style:{"font-size":"100px"},onClick:ht[1]||(ht[1]=wt=>ct("icon",wt))},null,8,["name","data-state"])):createCommentVNode("",!0)],512)}}}),_style_0$b=`.main{position:relative}canvas.gifa11y-canvas{-o-object-fit:contain;object-fit:contain;max-width:100%}#play-button{position:absolute;top:calc(50% - 50px);left:calc(50% - 50px);color:#fff;visibility:hidden;background-color:#0006;border-radius:50%}#play-button:hover{cursor:pointer}#play-button[data-state=paused],.main:hover #play-button{visibility:visible} +`,GIF=_export_sfc(_sfc_main$e,[["styles",[_style_0$b]]]),_hoisted_1$a=["manifest"],_sfc_main$d=defineComponent({__name:"Hero.ce",props:{background:{type:String},options:{type:String},position:{type:String,default:"center"},sticky:{type:Boolean,default:!1},height:{type:Number,default:350},top:{type:Number,default:0}},setup(D){const O=D,z=ref(null),F=computed(()=>{var nt,st;return(st=(nt=z.value)==null?void 0:nt.getRootNode())==null?void 0:st.host}),Y=ref(),W=ref(),q=ref(),X=ref();watch$1(O,()=>{O.sticky&&(F.value.style.position="sticky",F.value.style.top="-320px")}),watch$1(F,()=>{W.value=parseImageOptions(O.options||""),O.background&&getManifest(O.background).then(nt=>Y.value=nt),F.value.style.height=`${O.height}px`,O.sticky&&(F.value.style.position="sticky"),O.top&&(F.value.style.top=`-${O.top}px`)}),watch$1(Y,(nt,st)=>{nt!==st&&(q.value=getItemInfo(nt))}),watch$1(q,async(nt,st)=>{nt!==st&&(X.value=nt.service?tt(nt.service[0].id||nt.service[0]["@id"],W.value):await imageDataUrl(q.value.id,W.value.region,{width:F.value.clientWidth,height:O.height}))}),watch$1(X,()=>{F.value.style.backgroundImage=`url("${X.value}")`,F.value.style.backgroundPosition=O.position});function tt(nt,st){let ct=q.value,lt=Number((ct.width/ct.height).toFixed(4)),ht=Math.min(800,F.value.clientWidth),bt=Number(ht/lt).toFixed(0),wt=`${ht},${bt}`;return`${nt.replace(/\/info.json$/,"")}/${st.region}/${wt}/${st.rotation}/${st.quality}.${st.format}`}return(nt,st)=>{var ct;return openBlock(),createElementBlock("section",{ref_key:"root",ref:z,class:"ve-hero media-item"},[createBaseVNode("ve-manifest-popup",{manifest:(ct=Y.value)==null?void 0:ct.id},null,8,_hoisted_1$a)],512)}}}),_style_0$a=`*{box-sizing:border-box}:host{display:block;position:relative;width:100%;z-index:10}.ve-hero{background-repeat:no-repeat;background-size:cover;background-position:center;z-index:8}ve-manifest-popup{position:absolute;top:12px;right:12px;visibility:hidden;opacity:0;cursor:pointer}.media-item:hover ve-manifest-popup{visibility:visible;opacity:.8;transition:all .5s ease-in} +`,Hero=_export_sfc(_sfc_main$d,[["styles",[_style_0$a]]]),_withScopeId=D=>(pushScopeId("data-v-b4ddce3a"),D=D(),popScopeId(),D),_hoisted_1$9={class:"main"},_hoisted_2$8=["src"],_hoisted_3$6=["innerHTML"],_hoisted_4$6=["innerHTML"],_hoisted_5$4=["href","innerHTML"],_hoisted_6$4={class:"links"},_hoisted_7$4={class:"detail"},_hoisted_8$4={key:0,class:"provider"},_hoisted_9$4=_withScopeId(()=>createBaseVNode("span",{class:"label"},"provider",-1)),_hoisted_10$4={key:0,style:{display:"flex","align-items":"center"}},_hoisted_11$3=["src"],_hoisted_12$3=["href","innerHTML"],_hoisted_13$3={key:1},_hoisted_14$2=["src"],_hoisted_15$2=["href","innerHTML"],_hoisted_16$1={key:1,class:"requiredStatement"},_hoisted_17$1=["innerHTML"],_hoisted_18$1={key:2,class:"rights"},_hoisted_19$1=_withScopeId(()=>createBaseVNode("span",{class:"label"},"Reuse rights",-1)),_hoisted_20$1=["href","innerHTML"],_hoisted_21$1={key:3,class:"metadata"},_hoisted_22$1=_withScopeId(()=>createBaseVNode("span",{class:"label"},"metadata",-1)),_hoisted_23$1=["innerHTML"],_hoisted_24$1=["innerHTML"],_hoisted_25$1={key:1},_hoisted_26$1=["innerHTML"],_hoisted_27$1={key:4,class:"navDate"},_hoisted_28$1=_withScopeId(()=>createBaseVNode("span",{class:"label"},"navDate",-1)),_hoisted_29$1=["innerHTML"],_hoisted_30={key:5,class:"homepage"},_hoisted_31=_withScopeId(()=>createBaseVNode("span",{class:"label"},"homepage",-1)),_hoisted_32=["href","innerHTML"],_hoisted_33={key:6,class:"seeAlso"},_hoisted_34=_withScopeId(()=>createBaseVNode("span",{class:"label"},"seeAlso",-1)),_hoisted_35=["href","innerHTML"],_hoisted_36={key:7,class:"logo"},_hoisted_37=_withScopeId(()=>createBaseVNode("span",{class:"label"},"logo",-1)),_hoisted_38=["href","innerHTML"],_hoisted_39={key:8,class:"imageData"},_hoisted_40=_withScopeId(()=>createBaseVNode("span",{class:"label"},"source",-1)),_hoisted_41=["href","innerHTML"],_hoisted_42=_withScopeId(()=>createBaseVNode("span",{class:"label"},"format",-1)),_hoisted_43=["innerHTML"],_hoisted_44=_withScopeId(()=>createBaseVNode("span",{class:"label"},"width",-1)),_hoisted_45=["innerHTML"],_hoisted_46=_withScopeId(()=>createBaseVNode("span",{class:"label"},"height",-1)),_hoisted_47=["innerHTML"],_sfc_main$c=defineComponent({__name:"Manifest.ce",props:{manifest:{type:String}},setup(D){const O=D,z=ref(null);computed(()=>{var ct,lt;return(lt=(ct=z.value)==null?void 0:ct.getRootNode())==null?void 0:lt.host});const F=ref(null),Y=ref(null);watch$1(F,()=>Y.value=tt(F.value));const W=computed(()=>Y.value&&st(Y.value));onMounted(()=>q());function q(){typeof O.manifest=="object"?F.value=O.manifest:getManifest(O.manifest).then(ct=>F.value=ct)}function X(ct,lt="en"){return typeof ct=="object"&&!Array.isArray(ct)?ct[lt]||ct.none||ct[Object.keys(ct).sort()[0]]:ct}function tt(ct){let lt={};if(lt.id=X(ct.id),lt.label=X(ct.label),ct.summary&&(lt.summary=X(ct.summary)),ct.rights&&(lt.rights=ct.rights),ct.thumbnail&&(lt.thumbnail=ct.thumbnail[0].id||ct.thumbnail),ct.metadata){lt.metadata=ct.metadata.map(wt=>({label:X(wt.label)[0],value:X(wt.value)}));let ht=lt.metadata.find(wt=>wt.label=="source_url");lt.sourceUrl=ht?ht.value[0]:null;let bt=lt.metadata.find(wt=>wt.label==="depicts");bt&&(lt.depicts=bt.value)}if(ct.provider&&(lt.provider=ct.provider.map(ht=>{let bt={label:X(ht.label),href:ht.id};return ht.logo&&(bt.logo={src:ht.logo[0].id}),bt})),ct.logo&&(lt.logo=ct.logo.map(ht=>{let bt={src:typeof ht=="object"?ht.id||ht["@id"]:ht};return typeof ht=="object"&&(ht.width&&(bt.width=ht.width),ht.height&&(bt.height=ht.height)),bt})),lt.imageData=getItemInfo(ct),lt.service=lt.imageData.service&&`${(lt.imageData.service[0].id||lt.imageData.service[0]["@id"]).replace(/\/info\.json$/,"")}/info.json`,ct.requiredStatement){let ht=ct.requiredStatement;lt.requiredStatement={label:X(ht.label),value:X(ht.value)}}return ct.homepage&&(lt.homepage={label:ct.homepage.label?X(ct.homepage.label):ct.homepage.id,href:ct.homepage.id}),ct.seeAlso&&(lt.seeAlso=ct.seeAlso.map(ht=>({label:ht.label?X(ht.label):ht.id,href:ht.id}))),lt}function nt(ct){navigator.clipboard&&navigator.clipboard.writeText(ct)}function st(ct){let lt={cc:{badgeWidth:88,badgeHeight:31,badgeTemplate:'https://licensebuttons.net/l/${this.rightsCode}${this.rightsCode === "publicdomain" ? "" : "/"+this.version}/${this.badgeWidth}x${this.badgeHeight}.png'},rs:{badgeTemplate:"https://rightsstatements.org/files/buttons/${this.rightsCode}.white.svg",backgroundColor:"318ac7"}};const ht=function(Ct,Ft){return new Function("return `"+Ct+"`;").call(Ft)};let bt=ct.rights||"",wt="",[mt,_t,Et,At]=bt.split("/").slice(2);return mt==="creativecommons.org"?(Et=Et==="zero"?"publicdomain":Et,wt=``):mt==="rightsstatements.org"&&(wt=`
`),wt}return(ct,lt)=>{var ht,bt,wt,mt,_t,Et,At,Ct,Ft,Lt,Yt,Ht,qt,te,Xt;return openBlock(),createElementBlock("div",{ref_key:"root",ref:z,class:"manifest"},[createBaseVNode("div",_hoisted_1$9,[createBaseVNode("img",{class:"thumbnail",src:(ht=Y.value)==null?void 0:ht.thumbnail},null,8,_hoisted_2$8),createBaseVNode("div",{class:"label",innerHTML:(bt=Y.value)==null?void 0:bt.label},null,8,_hoisted_3$6),(wt=Y.value)!=null&&wt.summary?(openBlock(),createElementBlock("div",{key:0,class:"summary",innerHTML:(mt=Y.value)==null?void 0:mt.summary},null,8,_hoisted_4$6)):createCommentVNode("",!0),(_t=Y.value)!=null&&_t.rights?(openBlock(),createElementBlock("a",{key:1,href:(Et=Y.value)==null?void 0:Et.rights,innerHTML:W.value},null,8,_hoisted_5$4)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$4,[createBaseVNode("img",{src:"https://juncture-digital.github.io/web-app/static/iiif.png",class:"iiif",alt:"IIIF manifest icon",onClick:lt[0]||(lt[0]=Dt=>nt(F.value.id))})])]),createBaseVNode("div",_hoisted_7$4,[(At=Y.value)!=null&&At.provider?(openBlock(),createElementBlock("div",_hoisted_8$4,[_hoisted_9$4,Y.value.provider.length===1?(openBlock(),createElementBlock("div",_hoisted_10$4,[Y.value.provider[0].logo?(openBlock(),createElementBlock("img",{key:0,class:"logo",src:Y.value.provider[0].logo.src},null,8,_hoisted_11$3)):createCommentVNode("",!0),createBaseVNode("a",{class:"value",href:Y.value.provider[0].href,innerHTML:Y.value.provider[0].label},null,8,_hoisted_12$3)])):(openBlock(),createElementBlock("ul",_hoisted_13$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Y.value.provider,(Dt,Qt)=>(openBlock(),createElementBlock("li",{key:`provider-${Qt}`},[Dt.logo?(openBlock(),createElementBlock("img",{key:0,class:"logo",src:Dt.logo.src},null,8,_hoisted_14$2)):createCommentVNode("",!0),createBaseVNode("a",{class:"value",href:Dt.href,innerHTML:Dt.label},null,8,_hoisted_15$2)]))),128))]))])):createCommentVNode("",!0),(Ct=Y.value)!=null&&Ct.requiredStatement?(openBlock(),createElementBlock("div",_hoisted_16$1,[createBaseVNode("span",{class:"value",innerHTML:Y.value.requiredStatement.value},null,8,_hoisted_17$1)])):createCommentVNode("",!0),(Ft=Y.value)!=null&&Ft.rights?(openBlock(),createElementBlock("div",_hoisted_18$1,[_hoisted_19$1,createBaseVNode("a",{class:"value",href:Y.value.rights,innerHTML:Y.value.rights},null,8,_hoisted_20$1)])):createCommentVNode("",!0),(Lt=Y.value)!=null&&Lt.metadata?(openBlock(),createElementBlock("div",_hoisted_21$1,[_hoisted_22$1,createBaseVNode("ul",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Y.value.metadata,(Dt,Qt)=>(openBlock(),createElementBlock("li",{key:`md-${Qt}`},[createBaseVNode("span",{class:"label",innerHTML:Dt.label},null,8,_hoisted_23$1),Dt.value.length===1?(openBlock(),createElementBlock("span",{key:0,class:"value",innerHTML:Dt.value[0]},null,8,_hoisted_24$1)):(openBlock(),createElementBlock("ul",_hoisted_25$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dt.value,Nt=>(openBlock(),createElementBlock("li",{class:"value",innerHTML:Nt},null,8,_hoisted_26$1))),256))]))]))),128))])])):createCommentVNode("",!0),(Yt=Y.value)!=null&&Yt.navDate?(openBlock(),createElementBlock("div",_hoisted_27$1,[_hoisted_28$1,createBaseVNode("span",{class:"value",innerHTML:Y.value.navDate},null,8,_hoisted_29$1)])):createCommentVNode("",!0),(Ht=Y.value)!=null&&Ht.homepage?(openBlock(),createElementBlock("div",_hoisted_30,[_hoisted_31,createBaseVNode("a",{class:"value",href:Y.value.homepage.href,innerHTML:Y.value.homepage.label},null,8,_hoisted_32)])):createCommentVNode("",!0),(qt=Y.value)!=null&&qt.seeAlso?(openBlock(),createElementBlock("div",_hoisted_33,[_hoisted_34,createBaseVNode("a",{class:"value",href:Y.value.seeAlso[0].href,innerHTML:Y.value.seeAlso[0].label},null,8,_hoisted_35)])):createCommentVNode("",!0),(te=Y.value)!=null&&te.logo?(openBlock(),createElementBlock("div",_hoisted_36,[_hoisted_37,createBaseVNode("a",{class:"value",href:Y.value.logo[0].src,innerHTML:Y.value.logo[0].src},null,8,_hoisted_38)])):createCommentVNode("",!0),(Xt=Y.value)!=null&&Xt.imageData?(openBlock(),createElementBlock("div",_hoisted_39,[createBaseVNode("div",null,[_hoisted_40,createBaseVNode("a",{class:"value",href:Y.value.imageData.id,innerHTML:Y.value.imageData.id.split("/").pop()},null,8,_hoisted_41)]),createBaseVNode("div",null,[_hoisted_42,createBaseVNode("span",{class:"value",innerHTML:Y.value.imageData.format},null,8,_hoisted_43)]),createBaseVNode("div",null,[_hoisted_44,createBaseVNode("span",{class:"value",innerHTML:Y.value.imageData.width},null,8,_hoisted_45)]),createBaseVNode("div",null,[_hoisted_46,createBaseVNode("span",{class:"value",innerHTML:Y.value.imageData.height},null,8,_hoisted_47)])])):createCommentVNode("",!0)])],512)}}}),_style_0$9=`*[data-v-b4ddce3a]{box-sizing:border-box}.manifest[data-v-b4ddce3a]{width:100%;height:100%;overflow-y:scroll;background-color:#fff}.main[data-v-b4ddce3a],.detail[data-v-b4ddce3a]{display:flow-root;margin:6px}.main>*[data-v-b4ddce3a]{margin-bottom:6px}.detail>div[data-v-b4ddce3a]{margin-top:12px}.main .label[data-v-b4ddce3a]{font-size:1.2em;font-weight:700}.thumbnail[data-v-b4ddce3a]{float:left;max-width:45%;max-height:200px;margin:0 6px 6px 0}.links[data-v-b4ddce3a]{margin-top:6px}img.iiif[data-v-b4ddce3a]{height:24px;cursor:copy}ul[data-v-b4ddce3a]{list-style:none;padding-left:12px;margin-top:0}.detail .label[data-v-b4ddce3a]{font-size:1.1em;font-weight:700;min-width:80px;margin-right:6px}.detail .label[data-v-b4ddce3a]:after{content:":"}.detail .value[data-v-b4ddce3a],.main .label[data-v-b4ddce3a]{white-space:pre-wrap;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}.logo[data-v-b4ddce3a]{padding-right:6px}img.logo[data-v-b4ddce3a]{height:40px}.manifest-id[data-v-b4ddce3a],.manifest-label[data-v-b4ddce3a],.summary[data-v-b4ddce3a],.provider[data-v-b4ddce3a],.rights[data-v-b4ddce3a],.service[data-v-b4ddce3a],.imageData div[data-v-b4ddce3a],.thumbnail[data-v-b4ddce3a]{display:flex;align-items:flex-start}.metadata>ul[data-v-b4ddce3a],.requiredStatement ul[data-v-b4ddce3a]{padding-left:24px}.metadata ul li[data-v-b4ddce3a],.requiredStatement ul li[data-v-b4ddce3a]{display:flex}.metadata ul ul[data-v-b4ddce3a]{padding-left:0}a[data-v-b4ddce3a]:link,a[data-v-b4ddce3a]:visited{color:#00e} +`,Manifest=_export_sfc(_sfc_main$c,[["styles",[_style_0$9]],["__scopeId","data-v-b4ddce3a"]]);var BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function(){return document.body};function getValueAtIndexOrReturn(D,O,z){if(Array.isArray(D)){var F=D[O];return F??(Array.isArray(z)?z[O]:z)}return D}function isType(D,O){var z={}.toString.call(D);return z.indexOf("[object")===0&&z.indexOf(O+"]")>-1}function invokeWithArgsOrReturn(D,O){return typeof D=="function"?D.apply(void 0,O):D}function debounce(D,O){if(O===0)return D;var z;return function(F){clearTimeout(z),z=setTimeout(function(){D(F)},O)}}function splitBySpaces(D){return D.split(/\s+/).filter(Boolean)}function normalizeToArray(D){return[].concat(D)}function pushIfUnique(D,O){D.indexOf(O)===-1&&D.push(O)}function unique(D){return D.filter(function(O,z){return D.indexOf(O)===z})}function getBasePlacement(D){return D.split("-")[0]}function arrayFrom(D){return[].slice.call(D)}function removeUndefinedProps(D){return Object.keys(D).reduce(function(O,z){return D[z]!==void 0&&(O[z]=D[z]),O},{})}function div(){return document.createElement("div")}function isElement$1(D){return["Element","Fragment"].some(function(O){return isType(D,O)})}function isNodeList(D){return isType(D,"NodeList")}function isMouseEvent(D){return isType(D,"MouseEvent")}function isReferenceElement(D){return!!(D&&D._tippy&&D._tippy.reference===D)}function getArrayOfElements(D){return isElement$1(D)?[D]:isNodeList(D)?arrayFrom(D):Array.isArray(D)?D:arrayFrom(document.querySelectorAll(D))}function setTransitionDuration(D,O){D.forEach(function(z){z&&(z.style.transitionDuration=O+"ms")})}function setVisibilityState(D,O){D.forEach(function(z){z&&z.setAttribute("data-state",O)})}function getOwnerDocument(D){var O,z=normalizeToArray(D),F=z[0];return F!=null&&(O=F.ownerDocument)!=null&&O.body?F.ownerDocument:document}function isCursorOutsideInteractiveBorder(D,O){var z=O.clientX,F=O.clientY;return D.every(function(Y){var W=Y.popperRect,q=Y.popperState,X=Y.props,tt=X.interactiveBorder,nt=getBasePlacement(q.placement),st=q.modifiersData.offset;if(!st)return!0;var ct=nt==="bottom"?st.top.y:0,lt=nt==="top"?st.bottom.y:0,ht=nt==="right"?st.left.x:0,bt=nt==="left"?st.right.x:0,wt=W.top-F+ct>tt,mt=F-W.bottom-lt>tt,_t=W.left-z+ht>tt,Et=z-W.right-bt>tt;return wt||mt||_t||Et})}function updateTransitionEndListener(D,O,z){var F=O+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(Y){D[F](Y,z)})}function actualContains(D,O){for(var z=O;z;){var F;if(D.contains(z))return!0;z=z.getRootNode==null||(F=z.getRootNode())==null?void 0:F.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var D=performance.now();D-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=D}function onWindowBlur(){var D=document.activeElement;if(isReferenceElement(D)){var O=D._tippy;D.blur&&!O.state.isVisible&&D.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser=typeof window<"u"&&typeof document<"u",isIE11=isBrowser?!!window.msCrypto:!1,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function(O){var z=Object.keys(O);z.forEach(function(F){defaultProps[F]=O[F]})};function getExtendedPassedProps(D){var O=D.plugins||[],z=O.reduce(function(F,Y){var W=Y.name,q=Y.defaultValue;if(W){var X;F[W]=D[W]!==void 0?D[W]:(X=defaultProps[W])!=null?X:q}return F},{});return Object.assign({},D,z)}function getDataAttributeProps(D,O){var z=O?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:O}))):defaultKeys,F=z.reduce(function(Y,W){var q=(D.getAttribute("data-tippy-"+W)||"").trim();if(!q)return Y;if(W==="content")Y[W]=q;else try{Y[W]=JSON.parse(q)}catch{Y[W]=q}return Y},{});return F}function evaluateProps(D,O){var z=Object.assign({},O,{content:invokeWithArgsOrReturn(O.content,[D])},O.ignoreAttributes?{}:getDataAttributeProps(D,O.plugins));return z.aria=Object.assign({},defaultProps.aria,z.aria),z.aria={expanded:z.aria.expanded==="auto"?O.interactive:z.aria.expanded,content:z.aria.content==="auto"?O.interactive?null:"describedby":z.aria.content},z}var innerHTML=function(){return"innerHTML"};function dangerouslySetInnerHTML(D,O){D[innerHTML()]=O}function createArrowElement(D){var O=div();return D===!0?O.className=ARROW_CLASS:(O.className=SVG_ARROW_CLASS,isElement$1(D)?O.appendChild(D):dangerouslySetInnerHTML(O,D)),O}function setContent(D,O){isElement$1(O.content)?(dangerouslySetInnerHTML(D,""),D.appendChild(O.content)):typeof O.content!="function"&&(O.allowHTML?dangerouslySetInnerHTML(D,O.content):D.textContent=O.content)}function getChildren(D){var O=D.firstElementChild,z=arrayFrom(O.children);return{box:O,content:z.find(function(F){return F.classList.contains(CONTENT_CLASS)}),arrow:z.find(function(F){return F.classList.contains(ARROW_CLASS)||F.classList.contains(SVG_ARROW_CLASS)}),backdrop:z.find(function(F){return F.classList.contains(BACKDROP_CLASS)})}}function render$3(D){var O=div(),z=div();z.className=BOX_CLASS,z.setAttribute("data-state","hidden"),z.setAttribute("tabindex","-1");var F=div();F.className=CONTENT_CLASS,F.setAttribute("data-state","hidden"),setContent(F,D.props),O.appendChild(z),z.appendChild(F),Y(D.props,D.props);function Y(W,q){var X=getChildren(O),tt=X.box,nt=X.content,st=X.arrow;q.theme?tt.setAttribute("data-theme",q.theme):tt.removeAttribute("data-theme"),typeof q.animation=="string"?tt.setAttribute("data-animation",q.animation):tt.removeAttribute("data-animation"),q.inertia?tt.setAttribute("data-inertia",""):tt.removeAttribute("data-inertia"),tt.style.maxWidth=typeof q.maxWidth=="number"?q.maxWidth+"px":q.maxWidth,q.role?tt.setAttribute("role",q.role):tt.removeAttribute("role"),(W.content!==q.content||W.allowHTML!==q.allowHTML)&&setContent(nt,D.props),q.arrow?st?W.arrow!==q.arrow&&(tt.removeChild(st),tt.appendChild(createArrowElement(q.arrow))):tt.appendChild(createArrowElement(q.arrow)):st&&tt.removeChild(st)}return{popper:O,onUpdate:Y}}render$3.$$tippy=!0;var idCounter$1=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(D,O){var z=evaluateProps(D,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(O)))),F,Y,W,q=!1,X=!1,tt=!1,nt=!1,st,ct,lt,ht=[],bt=debounce(jt,z.interactiveDebounce),wt,mt=idCounter$1++,_t=null,Et=unique(z.plugins),At={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},Ct={id:mt,reference:D,popper:div(),popperInstance:_t,props:z,state:At,plugins:Et,clearDelayTimeouts:rn,setProps:zn,setContent:Bn,show:Pn,hide:jn,hideWithInteractivity:Jn,enable:Qe,disable:We,unmount:rr,destroy:sr};if(!z.render)return Ct;var Ft=z.render(Ct),Lt=Ft.popper,Yt=Ft.onUpdate;Lt.setAttribute("data-tippy-root",""),Lt.id="tippy-"+Ct.id,Ct.popper=Lt,D._tippy=Ct,Lt._tippy=Ct;var Ht=Et.map(function(on){return on.fn(Ct)}),qt=D.hasAttribute("aria-expanded");return Ye(),ve(),de(),ye("onCreate",[Ct]),z.showOnCreate&&$e(),Lt.addEventListener("mouseenter",function(){Ct.props.interactive&&Ct.state.isVisible&&Ct.clearDelayTimeouts()}),Lt.addEventListener("mouseleave",function(){Ct.props.interactive&&Ct.props.trigger.indexOf("mouseenter")>=0&&Nt().addEventListener("mousemove",bt)}),Ct;function te(){var on=Ct.props.touch;return Array.isArray(on)?on:[on,0]}function Xt(){return te()[0]==="hold"}function Dt(){var on;return!!((on=Ct.props.render)!=null&&on.$$tippy)}function Qt(){return wt||D}function Nt(){var on=Qt().parentNode;return on?getOwnerDocument(on):document}function ce(){return getChildren(Lt)}function Pt(on){return Ct.state.isMounted&&!Ct.state.isVisible||currentInput.isTouch||st&&st.type==="focus"?0:getValueAtIndexOrReturn(Ct.props.delay,on?0:1,defaultProps.delay)}function de(on){on===void 0&&(on=!1),Lt.style.pointerEvents=Ct.props.interactive&&!on?"":"none",Lt.style.zIndex=""+Ct.props.zIndex}function ye(on,ie,ne){if(ne===void 0&&(ne=!0),Ht.forEach(function(Ae){Ae[on]&&Ae[on].apply(Ae,ie)}),ne){var xe;(xe=Ct.props)[on].apply(xe,ie)}}function pe(){var on=Ct.props.aria;if(on.content){var ie="aria-"+on.content,ne=Lt.id,xe=normalizeToArray(Ct.props.triggerTarget||D);xe.forEach(function(Ae){var Ve=Ae.getAttribute(ie);if(Ct.state.isVisible)Ae.setAttribute(ie,Ve?Ve+" "+ne:ne);else{var vn=Ve&&Ve.replace(ne,"").trim();vn?Ae.setAttribute(ie,vn):Ae.removeAttribute(ie)}})}}function ve(){if(!(qt||!Ct.props.aria.expanded)){var on=normalizeToArray(Ct.props.triggerTarget||D);on.forEach(function(ie){Ct.props.interactive?ie.setAttribute("aria-expanded",Ct.state.isVisible&&ie===Qt()?"true":"false"):ie.removeAttribute("aria-expanded")})}}function Ce(){Nt().removeEventListener("mousemove",bt),mouseMoveListeners=mouseMoveListeners.filter(function(on){return on!==bt})}function De(on){if(!(currentInput.isTouch&&(tt||on.type==="mousedown"))){var ie=on.composedPath&&on.composedPath()[0]||on.target;if(!(Ct.props.interactive&&actualContains(Lt,ie))){if(normalizeToArray(Ct.props.triggerTarget||D).some(function(ne){return actualContains(ne,ie)})){if(currentInput.isTouch||Ct.state.isVisible&&Ct.props.trigger.indexOf("click")>=0)return}else ye("onClickOutside",[Ct,on]);Ct.props.hideOnClick===!0&&(Ct.clearDelayTimeouts(),Ct.hide(),X=!0,setTimeout(function(){X=!1}),Ct.state.isMounted||ze())}}}function Oe(){tt=!0}function Je(){tt=!1}function qe(){var on=Nt();on.addEventListener("mousedown",De,!0),on.addEventListener("touchend",De,TOUCH_OPTIONS),on.addEventListener("touchstart",Je,TOUCH_OPTIONS),on.addEventListener("touchmove",Oe,TOUCH_OPTIONS)}function ze(){var on=Nt();on.removeEventListener("mousedown",De,!0),on.removeEventListener("touchend",De,TOUCH_OPTIONS),on.removeEventListener("touchstart",Je,TOUCH_OPTIONS),on.removeEventListener("touchmove",Oe,TOUCH_OPTIONS)}function we(on,ie){He(on,function(){!Ct.state.isVisible&&Lt.parentNode&&Lt.parentNode.contains(Lt)&&ie()})}function Me(on,ie){He(on,ie)}function He(on,ie){var ne=ce().box;function xe(Ae){Ae.target===ne&&(updateTransitionEndListener(ne,"remove",xe),ie())}if(on===0)return ie();updateTransitionEndListener(ne,"remove",ct),updateTransitionEndListener(ne,"add",xe),ct=xe}function Le(on,ie,ne){ne===void 0&&(ne=!1);var xe=normalizeToArray(Ct.props.triggerTarget||D);xe.forEach(function(Ae){Ae.addEventListener(on,ie,ne),ht.push({node:Ae,eventType:on,handler:ie,options:ne})})}function Ye(){Xt()&&(Le("touchstart",kt,{passive:!0}),Le("touchend",$t,{passive:!0})),splitBySpaces(Ct.props.trigger).forEach(function(on){if(on!=="manual")switch(Le(on,kt),on){case"mouseenter":Le("mouseleave",$t);break;case"focus":Le(isIE11?"focusout":"blur",oe);break;case"focusin":Le("focusout",oe);break}})}function Kt(){ht.forEach(function(on){var ie=on.node,ne=on.eventType,xe=on.handler,Ae=on.options;ie.removeEventListener(ne,xe,Ae)}),ht=[]}function kt(on){var ie,ne=!1;if(!(!Ct.state.isEnabled||Vt(on)||X)){var xe=((ie=st)==null?void 0:ie.type)==="focus";st=on,wt=on.currentTarget,ve(),!Ct.state.isVisible&&isMouseEvent(on)&&mouseMoveListeners.forEach(function(Ae){return Ae(on)}),on.type==="click"&&(Ct.props.trigger.indexOf("mouseenter")<0||q)&&Ct.props.hideOnClick!==!1&&Ct.state.isVisible?ne=!0:$e(on),on.type==="click"&&(q=!ne),ne&&!xe&&Fe(on)}}function jt(on){var ie=on.target,ne=Qt().contains(ie)||Lt.contains(ie);if(!(on.type==="mousemove"&&ne)){var xe=ke().concat(Lt).map(function(Ae){var Ve,vn=Ae._tippy,Ge=(Ve=vn.popperInstance)==null?void 0:Ve.state;return Ge?{popperRect:Ae.getBoundingClientRect(),popperState:Ge,props:z}:null}).filter(Boolean);isCursorOutsideInteractiveBorder(xe,on)&&(Ce(),Fe(on))}}function $t(on){var ie=Vt(on)||Ct.props.trigger.indexOf("click")>=0&&q;if(!ie){if(Ct.props.interactive){Ct.hideWithInteractivity(on);return}Fe(on)}}function oe(on){Ct.props.trigger.indexOf("focusin")<0&&on.target!==Qt()||Ct.props.interactive&&on.relatedTarget&&Lt.contains(on.relatedTarget)||Fe(on)}function Vt(on){return currentInput.isTouch?Xt()!==on.type.indexOf("touch")>=0:!1}function Be(){ge();var on=Ct.props,ie=on.popperOptions,ne=on.placement,xe=on.offset,Ae=on.getReferenceClientRect,Ve=on.moveTransition,vn=Dt()?getChildren(Lt).arrow:null,Ge=Ae?{getBoundingClientRect:Ae,contextElement:Ae.contextElement||Qt()}:D,Dn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function($n){var Kn=$n.state;if(Dt()){var Wn=ce(),mr=Wn.box;["placement","reference-hidden","escaped"].forEach(function(ir){ir==="placement"?mr.setAttribute("data-placement",Kn.placement):Kn.attributes.popper["data-popper-"+ir]?mr.setAttribute("data-"+ir,""):mr.removeAttribute("data-"+ir)}),Kn.attributes.popper={}}}},en=[{name:"offset",options:{offset:xe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ve}},Dn];Dt()&&vn&&en.push({name:"arrow",options:{element:vn,padding:3}}),en.push.apply(en,(ie==null?void 0:ie.modifiers)||[]),Ct.popperInstance=createPopper(Ge,Lt,Object.assign({},ie,{placement:ne,onFirstUpdate:lt,modifiers:en}))}function ge(){Ct.popperInstance&&(Ct.popperInstance.destroy(),Ct.popperInstance=null)}function Pe(){var on=Ct.props.appendTo,ie,ne=Qt();Ct.props.interactive&&on===TIPPY_DEFAULT_APPEND_TO||on==="parent"?ie=ne.parentNode:ie=invokeWithArgsOrReturn(on,[ne]),ie.contains(Lt)||ie.appendChild(Lt),Ct.state.isMounted=!0,Be()}function ke(){return arrayFrom(Lt.querySelectorAll("[data-tippy-root]"))}function $e(on){Ct.clearDelayTimeouts(),on&&ye("onTrigger",[Ct,on]),qe();var ie=Pt(!0),ne=te(),xe=ne[0],Ae=ne[1];currentInput.isTouch&&xe==="hold"&&Ae&&(ie=Ae),ie?F=setTimeout(function(){Ct.show()},ie):Ct.show()}function Fe(on){if(Ct.clearDelayTimeouts(),ye("onUntrigger",[Ct,on]),!Ct.state.isVisible){ze();return}if(!(Ct.props.trigger.indexOf("mouseenter")>=0&&Ct.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(on.type)>=0&&q)){var ie=Pt(!1);ie?Y=setTimeout(function(){Ct.state.isVisible&&Ct.hide()},ie):W=requestAnimationFrame(function(){Ct.hide()})}}function Qe(){Ct.state.isEnabled=!0}function We(){Ct.hide(),Ct.state.isEnabled=!1}function rn(){clearTimeout(F),clearTimeout(Y),cancelAnimationFrame(W)}function zn(on){if(!Ct.state.isDestroyed){ye("onBeforeUpdate",[Ct,on]),Kt();var ie=Ct.props,ne=evaluateProps(D,Object.assign({},ie,removeUndefinedProps(on),{ignoreAttributes:!0}));Ct.props=ne,Ye(),ie.interactiveDebounce!==ne.interactiveDebounce&&(Ce(),bt=debounce(jt,ne.interactiveDebounce)),ie.triggerTarget&&!ne.triggerTarget?normalizeToArray(ie.triggerTarget).forEach(function(xe){xe.removeAttribute("aria-expanded")}):ne.triggerTarget&&D.removeAttribute("aria-expanded"),ve(),de(),Yt&&Yt(ie,ne),Ct.popperInstance&&(Be(),ke().forEach(function(xe){requestAnimationFrame(xe._tippy.popperInstance.forceUpdate)})),ye("onAfterUpdate",[Ct,on])}}function Bn(on){Ct.setProps({content:on})}function Pn(){var on=Ct.state.isVisible,ie=Ct.state.isDestroyed,ne=!Ct.state.isEnabled,xe=currentInput.isTouch&&!Ct.props.touch,Ae=getValueAtIndexOrReturn(Ct.props.duration,0,defaultProps.duration);if(!(on||ie||ne||xe)&&!Qt().hasAttribute("disabled")&&(ye("onShow",[Ct],!1),Ct.props.onShow(Ct)!==!1)){if(Ct.state.isVisible=!0,Dt()&&(Lt.style.visibility="visible"),de(),qe(),Ct.state.isMounted||(Lt.style.transition="none"),Dt()){var Ve=ce(),vn=Ve.box,Ge=Ve.content;setTransitionDuration([vn,Ge],0)}lt=function(){var en;if(!(!Ct.state.isVisible||nt)){if(nt=!0,Lt.offsetHeight,Lt.style.transition=Ct.props.moveTransition,Dt()&&Ct.props.animation){var Fn=ce(),$n=Fn.box,Kn=Fn.content;setTransitionDuration([$n,Kn],Ae),setVisibilityState([$n,Kn],"visible")}pe(),ve(),pushIfUnique(mountedInstances,Ct),(en=Ct.popperInstance)==null||en.forceUpdate(),ye("onMount",[Ct]),Ct.props.animation&&Dt()&&Me(Ae,function(){Ct.state.isShown=!0,ye("onShown",[Ct])})}},Pe()}}function jn(){var on=!Ct.state.isVisible,ie=Ct.state.isDestroyed,ne=!Ct.state.isEnabled,xe=getValueAtIndexOrReturn(Ct.props.duration,1,defaultProps.duration);if(!(on||ie||ne)&&(ye("onHide",[Ct],!1),Ct.props.onHide(Ct)!==!1)){if(Ct.state.isVisible=!1,Ct.state.isShown=!1,nt=!1,q=!1,Dt()&&(Lt.style.visibility="hidden"),Ce(),ze(),de(!0),Dt()){var Ae=ce(),Ve=Ae.box,vn=Ae.content;Ct.props.animation&&(setTransitionDuration([Ve,vn],xe),setVisibilityState([Ve,vn],"hidden"))}pe(),ve(),Ct.props.animation?Dt()&&we(xe,Ct.unmount):Ct.unmount()}}function Jn(on){Nt().addEventListener("mousemove",bt),pushIfUnique(mouseMoveListeners,bt),bt(on)}function rr(){Ct.state.isVisible&&Ct.hide(),Ct.state.isMounted&&(ge(),ke().forEach(function(on){on._tippy.unmount()}),Lt.parentNode&&Lt.parentNode.removeChild(Lt),mountedInstances=mountedInstances.filter(function(on){return on!==Ct}),Ct.state.isMounted=!1,ye("onHidden",[Ct]))}function sr(){Ct.state.isDestroyed||(Ct.clearDelayTimeouts(),Ct.unmount(),Kt(),delete D._tippy,Ct.state.isDestroyed=!0,ye("onDestroy",[Ct]))}}function tippy(D,O){O===void 0&&(O={});var z=defaultProps.plugins.concat(O.plugins||[]);bindGlobalEventListeners();var F=Object.assign({},O,{plugins:z}),Y=getArrayOfElements(D),W=Y.reduce(function(q,X){var tt=X&&createTippy(X,F);return tt&&q.push(tt),q},[]);return isElement$1(D)?W[0]:W}tippy.defaultProps=defaultProps;tippy.setDefaultProps=setDefaultProps;tippy.currentInput=currentInput;Object.assign({},applyStyles$1,{effect:function(O){var z=O.state,F={popper:{position:z.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(z.elements.popper.style,F.popper),z.styles=F,z.elements.arrow&&Object.assign(z.elements.arrow.style,F.arrow)}});tippy.setDefaultProps({render:render$3});const _sfc_main$b=defineComponent({__name:"ManifestPopup.ce",props:{manifest:{type:String}},setup(D){const O=D,z=ref(null),F=computed(()=>{var Y,W;return(W=(Y=z.value)==null?void 0:Y.getRootNode())==null?void 0:W.host});return watch$1(F,()=>{tippy(F.value,{theme:"light-border",allowHTML:!0,interactive:!0,appendTo:document.body,placement:"bottom-end",arrow:!0,delay:[null,null],onShow:Y=>Y.setContent(`
`)})}),(Y,W)=>{const q=resolveComponent("sl-icon");return openBlock(),createElementBlock("div",{ref_key:"root",ref:z},[createVNode(q,{id:"tippy",name:"info-circle-fill"})],512)}}}),_style_0$8=`#tippy{width:24px;height:24px;font-size:20px;border:2px solid rgba(255,255,255,.8);border-radius:50%;background-color:#fff;display:flex;justify-content:center} +`,ManifestPopup=_export_sfc(_sfc_main$b,[["styles",[_style_0$8]]]);var leafletSrc={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(D,O){(function(z,F){F(O)})(commonjsGlobal$1,function(z){var F="1.9.4";function Y(it){var pt,St,Ut,se;for(St=1,Ut=arguments.length;St"u"||!L||!L.Mixin)){it=At(it)?it:[it];for(var pt=0;pt0?Math.floor(it):Math.ceil(it)};ye.prototype={clone:function(){return new ye(this.x,this.y)},add:function(it){return this.clone()._add(ve(it))},_add:function(it){return this.x+=it.x,this.y+=it.y,this},subtract:function(it){return this.clone()._subtract(ve(it))},_subtract:function(it){return this.x-=it.x,this.y-=it.y,this},divideBy:function(it){return this.clone()._divideBy(it)},_divideBy:function(it){return this.x/=it,this.y/=it,this},multiplyBy:function(it){return this.clone()._multiplyBy(it)},_multiplyBy:function(it){return this.x*=it,this.y*=it,this},scaleBy:function(it){return new ye(this.x*it.x,this.y*it.y)},unscaleBy:function(it){return new ye(this.x/it.x,this.y/it.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=pe(this.x),this.y=pe(this.y),this},distanceTo:function(it){it=ve(it);var pt=it.x-this.x,St=it.y-this.y;return Math.sqrt(pt*pt+St*St)},equals:function(it){return it=ve(it),it.x===this.x&&it.y===this.y},contains:function(it){return it=ve(it),Math.abs(it.x)<=Math.abs(this.x)&&Math.abs(it.y)<=Math.abs(this.y)},toString:function(){return"Point("+lt(this.x)+", "+lt(this.y)+")"}};function ve(it,pt,St){return it instanceof ye?it:At(it)?new ye(it[0],it[1]):it==null?it:typeof it=="object"&&"x"in it&&"y"in it?new ye(it.x,it.y):new ye(it,pt,St)}function Ce(it,pt){if(it)for(var St=pt?[it,pt]:it,Ut=0,se=St.length;Ut=this.min.x&&St.x<=this.max.x&&pt.y>=this.min.y&&St.y<=this.max.y},intersects:function(it){it=De(it);var pt=this.min,St=this.max,Ut=it.min,se=it.max,Ne=se.x>=pt.x&&Ut.x<=St.x,nn=se.y>=pt.y&&Ut.y<=St.y;return Ne&&nn},overlaps:function(it){it=De(it);var pt=this.min,St=this.max,Ut=it.min,se=it.max,Ne=se.x>pt.x&&Ut.xpt.y&&Ut.y=pt.lat&&se.lat<=St.lat&&Ut.lng>=pt.lng&&se.lng<=St.lng},intersects:function(it){it=Je(it);var pt=this._southWest,St=this._northEast,Ut=it.getSouthWest(),se=it.getNorthEast(),Ne=se.lat>=pt.lat&&Ut.lat<=St.lat,nn=se.lng>=pt.lng&&Ut.lng<=St.lng;return Ne&&nn},overlaps:function(it){it=Je(it);var pt=this._southWest,St=this._northEast,Ut=it.getSouthWest(),se=it.getNorthEast(),Ne=se.lat>pt.lat&&Ut.latpt.lng&&Ut.lng1,Wn=function(){var it=!1;try{var pt=Object.defineProperty({},"passive",{get:function(){it=!0}});window.addEventListener("testPassiveEventSupport",ct,pt),window.removeEventListener("testPassiveEventSupport",ct,pt)}catch{}return it}(),mr=function(){return!!document.createElement("canvas").getContext}(),ir=!!(document.createElementNS&&$t("svg").createSVGRect),wr=!!ir&&function(){var it=document.createElement("div");return it.innerHTML="",(it.firstChild&&it.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Lr=!ir&&function(){try{var it=document.createElement("div");it.innerHTML='';var pt=it.firstChild;return pt.style.behavior="url(#default#VML)",pt&&typeof pt.adj=="object"}catch{return!1}}(),Dr=navigator.platform.indexOf("Mac")===0,Fo=navigator.platform.indexOf("Linux")===0;function xo(it){return navigator.userAgent.toLowerCase().indexOf(it)>=0}var tr={ie:Be,ielt9:ge,edge:Pe,webkit:ke,android:$e,android23:Fe,androidStock:We,opera:rn,chrome:zn,gecko:Bn,safari:Pn,phantom:jn,opera12:Jn,win:rr,ie3d:sr,webkit3d:on,gecko3d:ie,any3d:ne,mobile:xe,mobileWebkit:Ae,mobileWebkit3d:Ve,msPointer:vn,pointer:Ge,touch:en,touchNative:Dn,mobileOpera:Fn,mobileGecko:$n,retina:Kn,passiveEvents:Wn,canvas:mr,svg:ir,vml:Lr,inlineSvg:wr,mac:Dr,linux:Fo},Cr=tr.msPointer?"MSPointerDown":"pointerdown",go=tr.msPointer?"MSPointerMove":"pointermove",Un=tr.msPointer?"MSPointerUp":"pointerup",zi=tr.msPointer?"MSPointerCancel":"pointercancel",uo={touchstart:Cr,touchmove:go,touchend:Un,touchcancel:zi},io={touchstart:ci,touchmove:Or,touchend:Or,touchcancel:Or},sn={},En=!1;function un(it,pt,St){return pt==="touchstart"&&Er(),io[pt]?(St=io[pt].bind(this,St),it.addEventListener(uo[pt],St,!1),St):(console.warn("wrong event specified:",pt),ct)}function je(it,pt,St){if(!uo[pt]){console.warn("wrong event specified:",pt);return}it.removeEventListener(uo[pt],St,!1)}function gn(it){sn[it.pointerId]=it}function In(it){sn[it.pointerId]&&(sn[it.pointerId]=it)}function Hn(it){delete sn[it.pointerId]}function Er(){En||(document.addEventListener(Cr,gn,!0),document.addEventListener(go,In,!0),document.addEventListener(Un,Hn,!0),document.addEventListener(zi,Hn,!0),En=!0)}function Or(it,pt){if(pt.pointerType!==(pt.MSPOINTER_TYPE_MOUSE||"mouse")){pt.touches=[];for(var St in sn)pt.touches.push(sn[St]);pt.changedTouches=[pt],it(pt)}}function ci(it,pt){pt.MSPOINTER_TYPE_TOUCH&&pt.pointerType===pt.MSPOINTER_TYPE_TOUCH&&Ho(pt),Or(it,pt)}function Si(it){var pt={},St,Ut;for(Ut in it)St=it[Ut],pt[Ut]=St&&St.bind?St.bind(it):St;return it=pt,pt.type="dblclick",pt.detail=2,pt.isTrusted=!1,pt._simulated=!0,pt}var si=200;function mo(it,pt){it.addEventListener("dblclick",pt);var St=0,Ut;function se(Ne){if(Ne.detail!==1){Ut=Ne.detail;return}if(!(Ne.pointerType==="mouse"||Ne.sourceCapabilities&&!Ne.sourceCapabilities.firesTouchEvents)){var nn=ph(Ne);if(!(nn.some(function(kn){return kn instanceof HTMLLabelElement&&kn.attributes.for})&&!nn.some(function(kn){return kn instanceof HTMLInputElement||kn instanceof HTMLSelectElement}))){var _n=Date.now();_n-St<=si?(Ut++,Ut===2&&pt(Si(Ne))):Ut=1,St=_n}}}return it.addEventListener("click",se),{dblclick:pt,simDblclick:se}}function Co(it,pt){it.removeEventListener("dblclick",pt.dblclick),it.removeEventListener("click",pt.simDblclick)}var Uo=tl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_r=tl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ir=_r==="webkitTransition"||_r==="OTransition"?_r+"End":"transitionend";function $r(it){return typeof it=="string"?document.getElementById(it):it}function er(it,pt){var St=it.style[pt]||it.currentStyle&&it.currentStyle[pt];if((!St||St==="auto")&&document.defaultView){var Ut=document.defaultView.getComputedStyle(it,null);St=Ut?Ut[pt]:null}return St==="auto"?null:St}function Nr(it,pt,St){var Ut=document.createElement(it);return Ut.className=pt||"",St&&St.appendChild(Ut),Ut}function Xe(it){var pt=it.parentNode;pt&&pt.removeChild(it)}function xs(it){for(;it.firstChild;)it.removeChild(it.firstChild)}function an(it){var pt=it.parentNode;pt&&pt.lastChild!==it&&pt.appendChild(it)}function Do(it){var pt=it.parentNode;pt&&pt.firstChild!==it&&pt.insertBefore(it,pt.firstChild)}function Ka(it,pt){if(it.classList!==void 0)return it.classList.contains(pt);var St=ur(it);return St.length>0&&new RegExp("(^|\\s)"+pt+"(\\s|$)").test(St)}function ei(it,pt){if(it.classList!==void 0)for(var St=bt(pt),Ut=0,se=St.length;Ut0?2*window.devicePixelRatio:1;function Ba(it){return tr.edge?it.wheelDeltaY/2:it.deltaY&&it.deltaMode===0?-it.deltaY/tf:it.deltaY&&it.deltaMode===1?-it.deltaY*20:it.deltaY&&it.deltaMode===2?-it.deltaY*60:it.deltaX||it.deltaZ?0:it.wheelDelta?(it.wheelDeltaY||it.wheelDelta)/2:it.detail&&Math.abs(it.detail)<32765?-it.detail*20:it.detail?it.detail/-32765*60:0}function Ea(it,pt){var St=pt.relatedTarget;if(!St)return!0;try{for(;St&&St!==it;)St=St.parentNode}catch{return!1}return St!==it}var zs={__proto__:null,on:Kr,off:zr,stopPropagation:jl,disableScrollPropagation:fh,disableClickPropagation:xa,preventDefault:Ho,stop:la,getPropagationPath:ph,getMousePosition:gh,getWheelDelta:Ba,isExternalTarget:Ea,addListener:Kr,removeListener:zr},Pu=de.extend({run:function(it,pt,St,Ut){this.stop(),this._el=it,this._inProgress=!0,this._duration=St||.25,this._easeOutPower=1/Math.max(Ut||.5,.2),this._startPos=ai(it),this._offset=pt.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Xt(this._animate,this),this._step()},_step:function(it){var pt=+new Date-this._startTime,St=this._duration*1e3;ptthis.options.maxZoom)?this.setZoom(it):this},panInsideBounds:function(it,pt){this._enforcingBounds=!0;var St=this.getCenter(),Ut=this._limitCenter(St,this._zoom,Je(it));return St.equals(Ut)||this.panTo(Ut,pt),this._enforcingBounds=!1,this},panInside:function(it,pt){pt=pt||{};var St=ve(pt.paddingTopLeft||pt.padding||[0,0]),Ut=ve(pt.paddingBottomRight||pt.padding||[0,0]),se=this.project(this.getCenter()),Ne=this.project(it),nn=this.getPixelBounds(),_n=De([nn.min.add(St),nn.max.subtract(Ut)]),kn=_n.getSize();if(!_n.contains(Ne)){this._enforcingBounds=!0;var Vn=Ne.subtract(_n.getCenter()),yr=_n.extend(Ne).getSize().subtract(kn);se.x+=Vn.x<0?-yr.x:yr.x,se.y+=Vn.y<0?-yr.y:yr.y,this.panTo(this.unproject(se),pt),this._enforcingBounds=!1}return this},invalidateSize:function(it){if(!this._loaded)return this;it=Y({animate:!1,pan:!0},it===!0?{animate:!0}:it);var pt=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var St=this.getSize(),Ut=pt.divideBy(2).round(),se=St.divideBy(2).round(),Ne=Ut.subtract(se);return!Ne.x&&!Ne.y?this:(it.animate&&it.pan?this.panBy(Ne):(it.pan&&this._rawPanBy(Ne),this.fire("move"),it.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(q(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:pt,newSize:St}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(it){if(it=this._locateOptions=Y({timeout:1e4,watch:!1},it),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var pt=q(this._handleGeolocationResponse,this),St=q(this._handleGeolocationError,this);return it.watch?this._locationWatchId=navigator.geolocation.watchPosition(pt,St,it):navigator.geolocation.getCurrentPosition(pt,St,it),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(it){if(this._container._leaflet_id){var pt=it.code,St=it.message||(pt===1?"permission denied":pt===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:pt,message:"Geolocation error: "+St+"."})}},_handleGeolocationResponse:function(it){if(this._container._leaflet_id){var pt=it.coords.latitude,St=it.coords.longitude,Ut=new qe(pt,St),se=Ut.toBounds(it.coords.accuracy*2),Ne=this._locateOptions;if(Ne.setView){var nn=this.getBoundsZoom(se);this.setView(Ut,Ne.maxZoom?Math.min(nn,Ne.maxZoom):nn)}var _n={latlng:Ut,bounds:se,timestamp:it.timestamp};for(var kn in it.coords)typeof it.coords[kn]=="number"&&(_n[kn]=it.coords[kn]);this.fire("locationfound",_n)}},addHandler:function(it,pt){if(!pt)return this;var St=this[it]=new pt(this);return this._handlers.push(St),this.options[it]&&St.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Xe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Dt(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var it;for(it in this._layers)this._layers[it].remove();for(it in this._panes)Xe(this._panes[it]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(it,pt){var St="leaflet-pane"+(it?" leaflet-"+it.replace("Pane","")+"-pane":""),Ut=Nr("div",St,pt||this._mapPane);return it&&(this._panes[it]=Ut),Ut},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var it=this.getPixelBounds(),pt=this.unproject(it.getBottomLeft()),St=this.unproject(it.getTopRight());return new Oe(pt,St)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(it,pt,St){it=Je(it),St=ve(St||[0,0]);var Ut=this.getZoom()||0,se=this.getMinZoom(),Ne=this.getMaxZoom(),nn=it.getNorthWest(),_n=it.getSouthEast(),kn=this.getSize().subtract(St),Vn=De(this.project(_n,Ut),this.project(nn,Ut)).getSize(),yr=tr.any3d?this.options.zoomSnap:1,qr=kn.x/Vn.x,vi=kn.y/Vn.y,ta=pt?Math.max(qr,vi):Math.min(qr,vi);return Ut=this.getScaleZoom(ta,Ut),yr&&(Ut=Math.round(Ut/(yr/100))*(yr/100),Ut=pt?Math.ceil(Ut/yr)*yr:Math.floor(Ut/yr)*yr),Math.max(se,Math.min(Ne,Ut))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new ye(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(it,pt){var St=this._getTopLeftPoint(it,pt);return new Ce(St,St.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(it){return this.options.crs.getProjectedBounds(it===void 0?this.getZoom():it)},getPane:function(it){return typeof it=="string"?this._panes[it]:it},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(it,pt){var St=this.options.crs;return pt=pt===void 0?this._zoom:pt,St.scale(it)/St.scale(pt)},getScaleZoom:function(it,pt){var St=this.options.crs;pt=pt===void 0?this._zoom:pt;var Ut=St.zoom(it*St.scale(pt));return isNaN(Ut)?1/0:Ut},project:function(it,pt){return pt=pt===void 0?this._zoom:pt,this.options.crs.latLngToPoint(ze(it),pt)},unproject:function(it,pt){return pt=pt===void 0?this._zoom:pt,this.options.crs.pointToLatLng(ve(it),pt)},layerPointToLatLng:function(it){var pt=ve(it).add(this.getPixelOrigin());return this.unproject(pt)},latLngToLayerPoint:function(it){var pt=this.project(ze(it))._round();return pt._subtract(this.getPixelOrigin())},wrapLatLng:function(it){return this.options.crs.wrapLatLng(ze(it))},wrapLatLngBounds:function(it){return this.options.crs.wrapLatLngBounds(Je(it))},distance:function(it,pt){return this.options.crs.distance(ze(it),ze(pt))},containerPointToLayerPoint:function(it){return ve(it).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(it){return ve(it).add(this._getMapPanePos())},containerPointToLatLng:function(it){var pt=this.containerPointToLayerPoint(ve(it));return this.layerPointToLatLng(pt)},latLngToContainerPoint:function(it){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ze(it)))},mouseEventToContainerPoint:function(it){return gh(it,this._container)},mouseEventToLayerPoint:function(it){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(it))},mouseEventToLatLng:function(it){return this.layerPointToLatLng(this.mouseEventToLayerPoint(it))},_initContainer:function(it){var pt=this._container=$r(it);if(pt){if(pt._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Kr(pt,"scroll",this._onScroll,this),this._containerId=tt(pt)},_initLayout:function(){var it=this._container;this._fadeAnimated=this.options.fadeAnimation&&tr.any3d,ei(it,"leaflet-container"+(tr.touch?" leaflet-touch":"")+(tr.retina?" leaflet-retina":"")+(tr.ielt9?" leaflet-oldie":"")+(tr.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var pt=er(it,"position");pt!=="absolute"&&pt!=="relative"&&pt!=="fixed"&&pt!=="sticky"&&(it.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var it=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Mo(this._mapPane,new ye(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ei(it.markerPane,"leaflet-zoom-hide"),ei(it.shadowPane,"leaflet-zoom-hide"))},_resetView:function(it,pt,St){Mo(this._mapPane,new ye(0,0));var Ut=!this._loaded;this._loaded=!0,pt=this._limitZoom(pt),this.fire("viewprereset");var se=this._zoom!==pt;this._moveStart(se,St)._move(it,pt)._moveEnd(se),this.fire("viewreset"),Ut&&this.fire("load")},_moveStart:function(it,pt){return it&&this.fire("zoomstart"),pt||this.fire("movestart"),this},_move:function(it,pt,St,Ut){pt===void 0&&(pt=this._zoom);var se=this._zoom!==pt;return this._zoom=pt,this._lastCenter=it,this._pixelOrigin=this._getNewPixelOrigin(it),Ut?St&&St.pinch&&this.fire("zoom",St):((se||St&&St.pinch)&&this.fire("zoom",St),this.fire("move",St)),this},_moveEnd:function(it){return it&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Dt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(it){Mo(this._mapPane,this._getMapPanePos().subtract(it))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(it){this._targets={},this._targets[tt(this._container)]=this;var pt=it?zr:Kr;pt(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&pt(window,"resize",this._onResize,this),tr.any3d&&this.options.transform3DLimit&&(it?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Dt(this._resizeRequest),this._resizeRequest=Xt(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var it=this._getMapPanePos();Math.max(Math.abs(it.x),Math.abs(it.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(it,pt){for(var St=[],Ut,se=pt==="mouseout"||pt==="mouseover",Ne=it.target||it.srcElement,nn=!1;Ne;){if(Ut=this._targets[tt(Ne)],Ut&&(pt==="click"||pt==="preclick")&&this._draggableMoved(Ut)){nn=!0;break}if(Ut&&Ut.listens(pt,!0)&&(se&&!Ea(Ne,it)||(St.push(Ut),se))||Ne===this._container)break;Ne=Ne.parentNode}return!St.length&&!nn&&!se&&this.listens(pt,!0)&&(St=[this]),St},_isClickDisabled:function(it){for(;it&&it!==this._container;){if(it._leaflet_disable_click)return!0;it=it.parentNode}},_handleDOMEvent:function(it){var pt=it.target||it.srcElement;if(!(!this._loaded||pt._leaflet_disable_events||it.type==="click"&&this._isClickDisabled(pt))){var St=it.type;St==="mousedown"&&zl(pt),this._fireDOMEvent(it,St)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(it,pt,St){if(it.type==="click"){var Ut=Y({},it);Ut.type="preclick",this._fireDOMEvent(Ut,Ut.type,St)}var se=this._findEventTargets(it,pt);if(St){for(var Ne=[],nn=0;nn0?Math.round(it-pt)/2:Math.max(0,Math.ceil(it))-Math.max(0,Math.floor(pt))},_limitZoom:function(it){var pt=this.getMinZoom(),St=this.getMaxZoom(),Ut=tr.any3d?this.options.zoomSnap:1;return Ut&&(it=Math.round(it/Ut)*Ut),Math.max(pt,Math.min(St,it))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Pr(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(it,pt){var St=this._getCenterOffset(it)._trunc();return(pt&&pt.animate)!==!0&&!this.getSize().contains(St)?!1:(this.panBy(St,pt),!0)},_createAnimProxy:function(){var it=this._proxy=Nr("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(it),this.on("zoomanim",function(pt){var St=Uo,Ut=this._proxy.style[St];_a(this._proxy,this.project(pt.center,pt.zoom),this.getZoomScale(pt.zoom,1)),Ut===this._proxy.style[St]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Xe(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var it=this.getCenter(),pt=this.getZoom();_a(this._proxy,this.project(it,pt),this.getZoomScale(pt,1))},_catchTransitionEnd:function(it){this._animatingZoom&&it.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(it,pt,St){if(this._animatingZoom)return!0;if(St=St||{},!this._zoomAnimated||St.animate===!1||this._nothingToAnimate()||Math.abs(pt-this._zoom)>this.options.zoomAnimationThreshold)return!1;var Ut=this.getZoomScale(pt),se=this._getCenterOffset(it)._divideBy(1-1/Ut);return St.animate!==!0&&!this.getSize().contains(se)?!1:(Xt(function(){this._moveStart(!0,St.noMoveStart||!1)._animateZoom(it,pt,!0)},this),!0)},_animateZoom:function(it,pt,St,Ut){this._mapPane&&(St&&(this._animatingZoom=!0,this._animateToCenter=it,this._animateToZoom=pt,ei(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:it,zoom:pt,noUpdate:Ut}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(q(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Pr(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function zu(it,pt){return new mi(it,pt)}var Xs=Nt.extend({options:{position:"topright"},initialize:function(it){wt(this,it)},getPosition:function(){return this.options.position},setPosition:function(it){var pt=this._map;return pt&&pt.removeControl(this),this.options.position=it,pt&&pt.addControl(this),this},getContainer:function(){return this._container},addTo:function(it){this.remove(),this._map=it;var pt=this._container=this.onAdd(it),St=this.getPosition(),Ut=it._controlCorners[St];return ei(pt,"leaflet-control"),St.indexOf("bottom")!==-1?Ut.insertBefore(pt,Ut.firstChild):Ut.appendChild(pt),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Xe(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(it){this._map&&it&&it.screenX>0&&it.screenY>0&&this._map.getContainer().focus()}}),kc=function(it){return new Xs(it)};mi.include({addControl:function(it){return it.addTo(this),this},removeControl:function(it){return it.remove(),this},_initControlPos:function(){var it=this._controlCorners={},pt="leaflet-",St=this._controlContainer=Nr("div",pt+"control-container",this._container);function Ut(se,Ne){var nn=pt+se+" "+pt+Ne;it[se+Ne]=Nr("div",nn,St)}Ut("top","left"),Ut("top","right"),Ut("bottom","left"),Ut("bottom","right")},_clearControlPos:function(){for(var it in this._controlCorners)Xe(this._controlCorners[it]);Xe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Zs=Xs.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(it,pt,St,Ut){return St1,this._baseLayersList.style.display=it?"":"none"),this._separator.style.display=pt&&it?"":"none",this},_onLayerChange:function(it){this._handlingClick||this._update();var pt=this._getLayer(tt(it.target)),St=pt.overlay?it.type==="add"?"overlayadd":"overlayremove":it.type==="add"?"baselayerchange":null;St&&this._map.fire(St,pt)},_createRadioElement:function(it,pt){var St='",Ut=document.createElement("div");return Ut.innerHTML=St,Ut.firstChild},_addItem:function(it){var pt=document.createElement("label"),St=this._map.hasLayer(it.layer),Ut;it.overlay?(Ut=document.createElement("input"),Ut.type="checkbox",Ut.className="leaflet-control-layers-selector",Ut.defaultChecked=St):Ut=this._createRadioElement("leaflet-base-layers_"+tt(this),St),this._layerControlInputs.push(Ut),Ut.layerId=tt(it.layer),Kr(Ut,"click",this._onInputClick,this);var se=document.createElement("span");se.innerHTML=" "+it.name;var Ne=document.createElement("span");pt.appendChild(Ne),Ne.appendChild(Ut),Ne.appendChild(se);var nn=it.overlay?this._overlaysList:this._baseLayersList;return nn.appendChild(pt),this._checkDisabledLayers(),pt},_onInputClick:function(){if(!this._preventClick){var it=this._layerControlInputs,pt,St,Ut=[],se=[];this._handlingClick=!0;for(var Ne=it.length-1;Ne>=0;Ne--)pt=it[Ne],St=this._getLayer(pt.layerId).layer,pt.checked?Ut.push(St):pt.checked||se.push(St);for(Ne=0;Ne=0;se--)pt=it[se],St=this._getLayer(pt.layerId).layer,pt.disabled=St.options.minZoom!==void 0&&UtSt.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var it=this._section;this._preventClick=!0,Kr(it,"click",Ho),this.expand();var pt=this;setTimeout(function(){zr(it,"click",Ho),pt._preventClick=!1})}}),ml=function(it,pt,St){return new Zs(it,pt,St)},Js=Xs.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(it){var pt="leaflet-control-zoom",St=Nr("div",pt+" leaflet-bar"),Ut=this.options;return this._zoomInButton=this._createButton(Ut.zoomInText,Ut.zoomInTitle,pt+"-in",St,this._zoomIn),this._zoomOutButton=this._createButton(Ut.zoomOutText,Ut.zoomOutTitle,pt+"-out",St,this._zoomOut),this._updateDisabled(),it.on("zoomend zoomlevelschange",this._updateDisabled,this),St},onRemove:function(it){it.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(it){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(it.shiftKey?3:1))},_createButton:function(it,pt,St,Ut,se){var Ne=Nr("a",St,Ut);return Ne.innerHTML=it,Ne.href="#",Ne.title=pt,Ne.setAttribute("role","button"),Ne.setAttribute("aria-label",pt),xa(Ne),Kr(Ne,"click",la),Kr(Ne,"click",se,this),Kr(Ne,"click",this._refocusOnMap,this),Ne},_updateDisabled:function(){var it=this._map,pt="leaflet-disabled";Pr(this._zoomInButton,pt),Pr(this._zoomOutButton,pt),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||it._zoom===it.getMinZoom())&&(ei(this._zoomOutButton,pt),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||it._zoom===it.getMaxZoom())&&(ei(this._zoomInButton,pt),this._zoomInButton.setAttribute("aria-disabled","true"))}});mi.mergeOptions({zoomControl:!0}),mi.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Js,this.addControl(this.zoomControl))});var $a=function(it){return new Js(it)},Ac=Xs.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(it){var pt="leaflet-control-scale",St=Nr("div",pt),Ut=this.options;return this._addScales(Ut,pt+"-line",St),it.on(Ut.updateWhenIdle?"moveend":"move",this._update,this),it.whenReady(this._update,this),St},onRemove:function(it){it.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(it,pt,St){it.metric&&(this._mScale=Nr("div",pt,St)),it.imperial&&(this._iScale=Nr("div",pt,St))},_update:function(){var it=this._map,pt=it.getSize().y/2,St=it.distance(it.containerPointToLatLng([0,pt]),it.containerPointToLatLng([this.options.maxWidth,pt]));this._updateScales(St)},_updateScales:function(it){this.options.metric&&it&&this._updateMetric(it),this.options.imperial&&it&&this._updateImperial(it)},_updateMetric:function(it){var pt=this._getRoundNum(it),St=pt<1e3?pt+" m":pt/1e3+" km";this._updateScale(this._mScale,St,pt/it)},_updateImperial:function(it){var pt=it*3.2808399,St,Ut,se;pt>5280?(St=pt/5280,Ut=this._getRoundNum(St),this._updateScale(this._iScale,Ut+" mi",Ut/St)):(se=this._getRoundNum(pt),this._updateScale(this._iScale,se+" ft",se/pt))},_updateScale:function(it,pt,St){it.style.width=Math.round(this.options.maxWidth*St)+"px",it.innerHTML=pt},_getRoundNum:function(it){var pt=Math.pow(10,(Math.floor(it)+"").length-1),St=it/pt;return St=St>=10?10:St>=5?5:St>=3?3:St>=2?2:1,pt*St}}),Ma=function(it){return new Ac(it)},mh='',Ru=Xs.extend({options:{position:"bottomright",prefix:''+(tr.inlineSvg?mh+" ":"")+"Leaflet"},initialize:function(it){wt(this,it),this._attributions={}},onAdd:function(it){it.attributionControl=this,this._container=Nr("div","leaflet-control-attribution"),xa(this._container);for(var pt in it._layers)it._layers[pt].getAttribution&&this.addAttribution(it._layers[pt].getAttribution());return this._update(),it.on("layeradd",this._addAttribution,this),this._container},onRemove:function(it){it.off("layeradd",this._addAttribution,this)},_addAttribution:function(it){it.layer.getAttribution&&(this.addAttribution(it.layer.getAttribution()),it.layer.once("remove",function(){this.removeAttribution(it.layer.getAttribution())},this))},setPrefix:function(it){return this.options.prefix=it,this._update(),this},addAttribution:function(it){return it?(this._attributions[it]||(this._attributions[it]=0),this._attributions[it]++,this._update(),this):this},removeAttribution:function(it){return it?(this._attributions[it]&&(this._attributions[it]--,this._update()),this):this},_update:function(){if(this._map){var it=[];for(var pt in this._attributions)this._attributions[pt]&&it.push(pt);var St=[];this.options.prefix&&St.push(this.options.prefix),it.length&&St.push(it.join(", ")),this._container.innerHTML=St.join(' ')}}});mi.mergeOptions({attributionControl:!0}),mi.addInitHook(function(){this.options.attributionControl&&new Ru().addTo(this)});var yh=function(it){return new Ru(it)};Xs.Layers=Zs,Xs.Zoom=Js,Xs.Scale=Ac,Xs.Attribution=Ru,kc.layers=ml,kc.zoom=$a,kc.scale=Ma,kc.attribution=yh;var vo=Nt.extend({initialize:function(it){this._map=it},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});vo.addTo=function(it,pt){return it.addHandler(pt,this),this};var ju={Events:Pt},nl=tr.touch?"touchstart mousedown":"mousedown",ko=de.extend({options:{clickTolerance:3},initialize:function(it,pt,St,Ut){wt(this,Ut),this._element=it,this._dragStartTarget=pt||it,this._preventOutline=St},enable:function(){this._enabled||(Kr(this._dragStartTarget,nl,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ko._dragging===this&&this.finishDrag(!0),zr(this._dragStartTarget,nl,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(it){if(this._enabled&&(this._moved=!1,!Ka(this._element,"leaflet-zoom-anim"))){if(it.touches&&it.touches.length!==1){ko._dragging===this&&this.finishDrag();return}if(!(ko._dragging||it.shiftKey||it.which!==1&&it.button!==1&&!it.touches)&&(ko._dragging=this,this._preventOutline&&zl(this._element),wa(),Es(),!this._moving)){this.fire("down");var pt=it.touches?it.touches[0]:it,St=nu(this._element);this._startPoint=new ye(pt.clientX,pt.clientY),this._startPos=ai(this._element),this._parentScale=Cc(St);var Ut=it.type==="mousedown";Kr(document,Ut?"mousemove":"touchmove",this._onMove,this),Kr(document,Ut?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(it){if(this._enabled){if(it.touches&&it.touches.length>1){this._moved=!0;return}var pt=it.touches&&it.touches.length===1?it.touches[0]:it,St=new ye(pt.clientX,pt.clientY)._subtract(this._startPoint);!St.x&&!St.y||Math.abs(St.x)+Math.abs(St.y)Ne&&(nn=_n,Ne=kn);Ne>St&&(pt[nn]=1,Ts(it,pt,St,Ut,nn),Ts(it,pt,St,nn,se))}function sc(it,pt){for(var St=[it[0]],Ut=1,se=0,Ne=it.length;Utpt&&(St.push(it[Ut]),se=Ut);return sept.max.x&&(St|=2),it.ypt.max.y&&(St|=8),St}function ca(it,pt){var St=pt.x-it.x,Ut=pt.y-it.y;return St*St+Ut*Ut}function Ks(it,pt,St,Ut){var se=pt.x,Ne=pt.y,nn=St.x-se,_n=St.y-Ne,kn=nn*nn+_n*_n,Vn;return kn>0&&(Vn=((it.x-se)*nn+(it.y-Ne)*_n)/kn,Vn>1?(se=St.x,Ne=St.y):Vn>0&&(se+=nn*Vn,Ne+=_n*Vn)),nn=it.x-se,_n=it.y-Ne,Ut?nn*nn+_n*_n:new ye(se,Ne)}function vs(it){return!At(it[0])||typeof it[0][0]!="object"&&typeof it[0][0]<"u"}function _h(it){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),vs(it)}function Po(it,pt){var St,Ut,se,Ne,nn,_n,kn,Vn;if(!it||it.length===0)throw new Error("latlngs not passed");vs(it)||(console.warn("latlngs are not flat! Only the first ring will be used"),it=it[0]);var yr=ze([0,0]),qr=Je(it),vi=qr.getNorthWest().distanceTo(qr.getSouthWest())*qr.getNorthEast().distanceTo(qr.getNorthWest());vi<1700&&(yr=Nc(it));var ta=it.length,os=[];for(St=0;StUt){kn=(Ne-Ut)/se,Vn=[_n.x-kn*(_n.x-nn.x),_n.y-kn*(_n.y-nn.y)];break}var ua=pt.unproject(ve(Vn));return ze([ua.lat+yr.lat,ua.lng+yr.lng])}var Fa={__proto__:null,simplify:su,pointToSegmentDistance:Dc,closestPointOnSegment:Jo,clipSegment:bh,_getEdgeIntersection:Bu,_getBitCode:Vo,_sqClosestPointOnSegment:Ks,isFlat:vs,_flat:_h,polylineCenter:Po},ac={project:function(it){return new ye(it.lng,it.lat)},unproject:function(it){return new qe(it.y,it.x)},bounds:new Ce([-180,-90],[180,90])},rl={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Ce([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(it){var pt=Math.PI/180,St=this.R,Ut=it.lat*pt,se=this.R_MINOR/St,Ne=Math.sqrt(1-se*se),nn=Ne*Math.sin(Ut),_n=Math.tan(Math.PI/4-Ut/2)/Math.pow((1-nn)/(1+nn),Ne/2);return Ut=-St*Math.log(Math.max(_n,1e-10)),new ye(it.lng*pt*St,Ut)},unproject:function(it){for(var pt=180/Math.PI,St=this.R,Ut=this.R_MINOR/St,se=Math.sqrt(1-Ut*Ut),Ne=Math.exp(-it.y/St),nn=Math.PI/2-2*Math.atan(Ne),_n=0,kn=.1,Vn;_n<15&&Math.abs(kn)>1e-7;_n++)Vn=se*Math.sin(nn),Vn=Math.pow((1-Vn)/(1+Vn),se/2),kn=Math.PI/2-2*Math.atan(Ne*Vn)-nn,nn+=kn;return new qe(nn*pt,it.x*pt/St)}},Ic={__proto__:null,LonLat:ac,Mercator:rl,SphericalMercator:Le},Ot=Y({},Me,{code:"EPSG:3395",projection:rl,transformation:function(){var it=.5/(Math.PI*rl.R);return Kt(it,.5,-it,.5)}()}),Rt=Y({},Me,{code:"EPSG:4326",projection:ac,transformation:Kt(1/180,1,-1/180,.5)}),ae=Y({},we,{projection:ac,transformation:Kt(1,0,-1,0),scale:function(it){return Math.pow(2,it)},zoom:function(it){return Math.log(it)/Math.LN2},distance:function(it,pt){var St=pt.lng-it.lng,Ut=pt.lat-it.lat;return Math.sqrt(St*St+Ut*Ut)},infinite:!0});we.Earth=Me,we.EPSG3395=Ot,we.EPSG3857=kt,we.EPSG900913=jt,we.EPSG4326=Rt,we.Simple=ae;var Se=de.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(it){return it.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(it){return it&&it.removeLayer(this),this},getPane:function(it){return this._map.getPane(it?this.options[it]||it:this.options.pane)},addInteractiveTarget:function(it){return this._map._targets[tt(it)]=this,this},removeInteractiveTarget:function(it){return delete this._map._targets[tt(it)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(it){var pt=it.target;if(pt.hasLayer(this)){if(this._map=pt,this._zoomAnimated=pt._zoomAnimated,this.getEvents){var St=this.getEvents();pt.on(St,this),this.once("remove",function(){pt.off(St,this)},this)}this.onAdd(pt),this.fire("add"),pt.fire("layeradd",{layer:this})}}});mi.include({addLayer:function(it){if(!it._layerAdd)throw new Error("The provided object is not a Layer.");var pt=tt(it);return this._layers[pt]?this:(this._layers[pt]=it,it._mapToAdd=this,it.beforeAdd&&it.beforeAdd(this),this.whenReady(it._layerAdd,it),this)},removeLayer:function(it){var pt=tt(it);return this._layers[pt]?(this._loaded&&it.onRemove(this),delete this._layers[pt],this._loaded&&(this.fire("layerremove",{layer:it}),it.fire("remove")),it._map=it._mapToAdd=null,this):this},hasLayer:function(it){return tt(it)in this._layers},eachLayer:function(it,pt){for(var St in this._layers)it.call(pt,this._layers[St]);return this},_addLayers:function(it){it=it?At(it)?it:[it]:[];for(var pt=0,St=it.length;ptthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&pt[0]instanceof qe&&pt[0].equals(pt[St-1])&&pt.pop(),pt},_setLatLngs:function(it){il.prototype._setLatLngs.call(this,it),vs(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return vs(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var it=this._renderer._bounds,pt=this.options.weight,St=new ye(pt,pt);if(it=new Ce(it.min.subtract(St),it.max.add(St)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(it))){if(this.options.noClip){this._parts=this._rings;return}for(var Ut=0,se=this._rings.length,Ne;Utit.y!=se.y>it.y&&it.x<(se.x-Ut.x)*(it.y-Ut.y)/(se.y-Ut.y)+Ut.x&&(pt=!pt);return pt||il.prototype._containsPoint.call(this,it,!0)}});function nd(it,pt){return new Bl(it,pt)}var ki=hn.extend({initialize:function(it,pt){wt(this,pt),this._layers={},it&&this.addData(it)},addData:function(it){var pt=At(it)?it:it.features,St,Ut,se;if(pt){for(St=0,Ut=pt.length;St0&&se.push(se[0].slice()),se}function cu(it,pt){return it.feature?Y({},it.feature,{geometry:pt}):wh(pt)}function wh(it){return it.type==="Feature"||it.type==="FeatureCollection"?it:{type:"Feature",properties:{},geometry:it}}var xh={toGeoJSON:function(it){return cu(this,{type:"Point",coordinates:$l(this.getLatLng(),it)})}};Ci.include(xh),Sa.include(xh),ao.include(xh),il.include({toGeoJSON:function(it){var pt=!vs(this._latlngs),St=lu(this._latlngs,pt?1:0,!1,it);return cu(this,{type:(pt?"Multi":"")+"LineString",coordinates:St})}}),Bl.include({toGeoJSON:function(it){var pt=!vs(this._latlngs),St=pt&&!vs(this._latlngs[0]),Ut=lu(this._latlngs,St?2:pt?1:0,!0,it);return pt||(Ut=[Ut]),cu(this,{type:(St?"Multi":"")+"Polygon",coordinates:Ut})}}),Re.include({toMultiPoint:function(it){var pt=[];return this.eachLayer(function(St){pt.push(St.toGeoJSON(it).geometry.coordinates)}),cu(this,{type:"MultiPoint",coordinates:pt})},toGeoJSON:function(it){var pt=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(pt==="MultiPoint")return this.toMultiPoint(it);var St=pt==="GeometryCollection",Ut=[];return this.eachLayer(function(se){if(se.toGeoJSON){var Ne=se.toGeoJSON(it);if(St)Ut.push(Ne.geometry);else{var nn=wh(Ne);nn.type==="FeatureCollection"?Ut.push.apply(Ut,nn.features):Ut.push(nn)}}}),St?cu(this,{geometries:Ut,type:"GeometryCollection"}):{type:"FeatureCollection",features:Ut}}});function rd(it,pt){return new ki(it,pt)}var cg=rd,lc=Se.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(it,pt,St){this._url=it,this._bounds=Je(pt),wt(this,St)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ei(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Xe(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(it){return this.options.opacity=it,this._image&&this._updateOpacity(),this},setStyle:function(it){return it.opacity&&this.setOpacity(it.opacity),this},bringToFront:function(){return this._map&&an(this._image),this},bringToBack:function(){return this._map&&Do(this._image),this},setUrl:function(it){return this._url=it,this._image&&(this._image.src=it),this},setBounds:function(it){return this._bounds=Je(it),this._map&&this._reset(),this},getEvents:function(){var it={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(it.zoomanim=this._animateZoom),it},setZIndex:function(it){return this.options.zIndex=it,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var it=this._url.tagName==="IMG",pt=this._image=it?this._url:Nr("img");if(ei(pt,"leaflet-image-layer"),this._zoomAnimated&&ei(pt,"leaflet-zoom-animated"),this.options.className&&ei(pt,this.options.className),pt.onselectstart=ct,pt.onmousemove=ct,pt.onload=q(this.fire,this,"load"),pt.onerror=q(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(pt.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),it){this._url=pt.src;return}pt.src=this._url,pt.alt=this.options.alt},_animateZoom:function(it){var pt=this._map.getZoomScale(it.zoom),St=this._map._latLngBoundsToNewLayerBounds(this._bounds,it.zoom,it.center).min;_a(this._image,St,pt)},_reset:function(){var it=this._image,pt=new Ce(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),St=pt.getSize();Mo(it,pt.min),it.style.width=St.x+"px",it.style.height=St.y+"px"},_updateOpacity:function(){Yr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var it=this.options.errorOverlayUrl;it&&this._url!==it&&(this._url=it,this._image.src=it)},getCenter:function(){return this._bounds.getCenter()}}),ug=function(it,pt,St){return new lc(it,pt,St)},nf=lc.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var it=this._url.tagName==="VIDEO",pt=this._image=it?this._url:Nr("video");if(ei(pt,"leaflet-image-layer"),this._zoomAnimated&&ei(pt,"leaflet-zoom-animated"),this.options.className&&ei(pt,this.options.className),pt.onselectstart=ct,pt.onmousemove=ct,pt.onloadeddata=q(this.fire,this,"load"),it){for(var St=pt.getElementsByTagName("source"),Ut=[],se=0;se0?Ut:[pt.src];return}At(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(pt.style,"objectFit")&&(pt.style.objectFit="fill"),pt.autoplay=!!this.options.autoplay,pt.loop=!!this.options.loop,pt.muted=!!this.options.muted,pt.playsInline=!!this.options.playsInline;for(var Ne=0;Nese?(pt.height=se+"px",ei(it,Ne)):Pr(it,Ne),this._containerWidth=this._container.offsetWidth},_animateZoom:function(it){var pt=this._map._latLngToNewLayerPoint(this._latlng,it.zoom,it.center),St=this._getAnchor();Mo(this._container,pt.add(St))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var it=this._map,pt=parseInt(er(this._container,"marginBottom"),10)||0,St=this._container.offsetHeight+pt,Ut=this._containerWidth,se=new ye(this._containerLeft,-St-this._containerBottom);se._add(ai(this._container));var Ne=it.layerPointToContainerPoint(se),nn=ve(this.options.autoPanPadding),_n=ve(this.options.autoPanPaddingTopLeft||nn),kn=ve(this.options.autoPanPaddingBottomRight||nn),Vn=it.getSize(),yr=0,qr=0;Ne.x+Ut+kn.x>Vn.x&&(yr=Ne.x+Ut-Vn.x+kn.x),Ne.x-yr-_n.x<0&&(yr=Ne.x-_n.x),Ne.y+St+kn.y>Vn.y&&(qr=Ne.y+St-Vn.y+kn.y),Ne.y-qr-_n.y<0&&(qr=Ne.y-_n.y),(yr||qr)&&(this.options.keepInView&&(this._autopanning=!0),it.fire("autopanstart").panBy([yr,qr]))}},_getAnchor:function(){return ve(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Fl=function(it,pt){return new Fu(it,pt)};mi.mergeOptions({closePopupOnClick:!0}),mi.include({openPopup:function(it,pt,St){return this._initOverlay(Fu,it,pt,St).openOn(this),this},closePopup:function(it){return it=arguments.length?it:this._popup,it&&it.close(),this}}),Se.include({bindPopup:function(it,pt){return this._popup=this._initOverlay(Fu,this._popup,it,pt),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(it){return this._popup&&(this instanceof hn||(this._popup._source=this),this._popup._prepareOpen(it||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(it){return this._popup&&this._popup.setContent(it),this},getPopup:function(){return this._popup},_openPopup:function(it){if(!(!this._popup||!this._map)){la(it);var pt=it.layer||it.target;if(this._popup._source===pt&&!(pt instanceof to)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(it.latlng);return}this._popup._source=pt,this.openPopup(it.latlng)}},_movePopup:function(it){this._popup.setLatLng(it.latlng)},_onKeyPress:function(it){it.originalEvent.keyCode===13&&this._openPopup(it)}});var Oc=zo.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(it){zo.prototype.onAdd.call(this,it),this.setOpacity(this.options.opacity),it.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(it){zo.prototype.onRemove.call(this,it),it.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var it=zo.prototype.getEvents.call(this);return this.options.permanent||(it.preclick=this.close),it},_initLayout:function(){var it="leaflet-tooltip",pt=it+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Nr("div",pt),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+tt(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(it){var pt,St,Ut=this._map,se=this._container,Ne=Ut.latLngToContainerPoint(Ut.getCenter()),nn=Ut.layerPointToContainerPoint(it),_n=this.options.direction,kn=se.offsetWidth,Vn=se.offsetHeight,yr=ve(this.options.offset),qr=this._getAnchor();_n==="top"?(pt=kn/2,St=Vn):_n==="bottom"?(pt=kn/2,St=0):_n==="center"?(pt=kn/2,St=Vn/2):_n==="right"?(pt=0,St=Vn/2):_n==="left"?(pt=kn,St=Vn/2):nn.xthis.options.maxZoom||StUt?this._retainParent(se,Ne,nn,Ut):!1)},_retainChildren:function(it,pt,St,Ut){for(var se=2*it;se<2*it+2;se++)for(var Ne=2*pt;Ne<2*pt+2;Ne++){var nn=new ye(se,Ne);nn.z=St+1;var _n=this._tileCoordsToKey(nn),kn=this._tiles[_n];if(kn&&kn.active){kn.retain=!0;continue}else kn&&kn.loaded&&(kn.retain=!0);St+1this.options.maxZoom||this.options.minZoom!==void 0&&se1){this._setView(it,St);return}for(var qr=se.min.y;qr<=se.max.y;qr++)for(var vi=se.min.x;vi<=se.max.x;vi++){var ta=new ye(vi,qr);if(ta.z=this._tileZoom,!!this._isValidTile(ta)){var os=this._tiles[this._tileCoordsToKey(ta)];os?os.current=!0:nn.push(ta)}}if(nn.sort(function(ua,Rc){return ua.distanceTo(Ne)-Rc.distanceTo(Ne)}),nn.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ea=document.createDocumentFragment();for(vi=0;viSt.max.x)||!pt.wrapLat&&(it.ySt.max.y))return!1}if(!this.options.bounds)return!0;var Ut=this._tileCoordsToBounds(it);return Je(this.options.bounds).overlaps(Ut)},_keyToBounds:function(it){return this._tileCoordsToBounds(this._keyToTileCoords(it))},_tileCoordsToNwSe:function(it){var pt=this._map,St=this.getTileSize(),Ut=it.scaleBy(St),se=Ut.add(St),Ne=pt.unproject(Ut,it.z),nn=pt.unproject(se,it.z);return[Ne,nn]},_tileCoordsToBounds:function(it){var pt=this._tileCoordsToNwSe(it),St=new Oe(pt[0],pt[1]);return this.options.noWrap||(St=this._map.wrapLatLngBounds(St)),St},_tileCoordsToKey:function(it){return it.x+":"+it.y+":"+it.z},_keyToTileCoords:function(it){var pt=it.split(":"),St=new ye(+pt[0],+pt[1]);return St.z=+pt[2],St},_removeTile:function(it){var pt=this._tiles[it];pt&&(Xe(pt.el),delete this._tiles[it],this.fire("tileunload",{tile:pt.el,coords:this._keyToTileCoords(it)}))},_initTile:function(it){ei(it,"leaflet-tile");var pt=this.getTileSize();it.style.width=pt.x+"px",it.style.height=pt.y+"px",it.onselectstart=ct,it.onmousemove=ct,tr.ielt9&&this.options.opacity<1&&Yr(it,this.options.opacity)},_addTile:function(it,pt){var St=this._getTilePos(it),Ut=this._tileCoordsToKey(it),se=this.createTile(this._wrapCoords(it),q(this._tileReady,this,it));this._initTile(se),this.createTile.length<2&&Xt(q(this._tileReady,this,it,null,se)),Mo(se,St),this._tiles[Ut]={el:se,coords:it,current:!0},pt.appendChild(se),this.fire("tileloadstart",{tile:se,coords:it})},_tileReady:function(it,pt,St){pt&&this.fire("tileerror",{error:pt,tile:St,coords:it});var Ut=this._tileCoordsToKey(it);St=this._tiles[Ut],St&&(St.loaded=+new Date,this._map._fadeAnimated?(Yr(St.el,0),Dt(this._fadeFrame),this._fadeFrame=Xt(this._updateOpacity,this)):(St.active=!0,this._pruneTiles()),pt||(ei(St.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:St.el,coords:it})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),tr.ielt9||!this._map._fadeAnimated?Xt(this._pruneTiles,this):setTimeout(q(this._pruneTiles,this),250)))},_getTilePos:function(it){return it.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(it){var pt=new ye(this._wrapX?st(it.x,this._wrapX):it.x,this._wrapY?st(it.y,this._wrapY):it.y);return pt.z=it.z,pt},_pxBoundsToTileRange:function(it){var pt=this.getTileSize();return new Ce(it.min.unscaleBy(pt).floor(),it.max.unscaleBy(pt).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var it in this._tiles)if(!this._tiles[it].loaded)return!1;return!0}});function op(it){return new Eh(it)}var Pc=Eh.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(it,pt){this._url=it,pt=wt(this,pt),pt.detectRetina&&tr.retina&&pt.maxZoom>0?(pt.tileSize=Math.floor(pt.tileSize/2),pt.zoomReverse?(pt.zoomOffset--,pt.minZoom=Math.min(pt.maxZoom,pt.minZoom+1)):(pt.zoomOffset++,pt.maxZoom=Math.max(pt.minZoom,pt.maxZoom-1)),pt.minZoom=Math.max(0,pt.minZoom)):pt.zoomReverse?pt.minZoom=Math.min(pt.maxZoom,pt.minZoom):pt.maxZoom=Math.max(pt.minZoom,pt.maxZoom),typeof pt.subdomains=="string"&&(pt.subdomains=pt.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(it,pt){return this._url===it&&pt===void 0&&(pt=!0),this._url=it,pt||this.redraw(),this},createTile:function(it,pt){var St=document.createElement("img");return Kr(St,"load",q(this._tileOnLoad,this,pt,St)),Kr(St,"error",q(this._tileOnError,this,pt,St)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(St.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(St.referrerPolicy=this.options.referrerPolicy),St.alt="",St.src=this.getTileUrl(it),St},getTileUrl:function(it){var pt={r:tr.retina?"@2x":"",s:this._getSubdomain(it),x:it.x,y:it.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var St=this._globalTileRange.max.y-it.y;this.options.tms&&(pt.y=St),pt["-y"]=St}return Et(this._url,Y(pt,this.options))},_tileOnLoad:function(it,pt){tr.ielt9?setTimeout(q(it,this,null,pt),0):it(null,pt)},_tileOnError:function(it,pt,St){var Ut=this.options.errorTileUrl;Ut&&pt.getAttribute("src")!==Ut&&(pt.src=Ut),it(St,pt)},_onTileRemove:function(it){it.tile.onload=null},_getZoomForUrl:function(){var it=this._tileZoom,pt=this.options.maxZoom,St=this.options.zoomReverse,Ut=this.options.zoomOffset;return St&&(it=pt-it),it+Ut},_getSubdomain:function(it){var pt=Math.abs(it.x+it.y)%this.options.subdomains.length;return this.options.subdomains[pt]},_abortLoading:function(){var it,pt;for(it in this._tiles)if(this._tiles[it].coords.z!==this._tileZoom&&(pt=this._tiles[it].el,pt.onload=ct,pt.onerror=ct,!pt.complete)){pt.src=Ft;var St=this._tiles[it].coords;Xe(pt),delete this._tiles[it],this.fire("tileabort",{tile:pt,coords:St})}},_removeTile:function(it){var pt=this._tiles[it];if(pt)return pt.el.setAttribute("src",Ft),Eh.prototype._removeTile.call(this,it)},_tileReady:function(it,pt,St){if(!(!this._map||St&&St.getAttribute("src")===Ft))return Eh.prototype._tileReady.call(this,it,pt,St)}});function Mh(it,pt){return new Pc(it,pt)}var Uu=Pc.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(it,pt){this._url=it;var St=Y({},this.defaultWmsParams);for(var Ut in pt)Ut in this.options||(St[Ut]=pt[Ut]);pt=wt(this,pt);var se=pt.detectRetina&&tr.retina?2:1,Ne=this.getTileSize();St.width=Ne.x*se,St.height=Ne.y*se,this.wmsParams=St},onAdd:function(it){this._crs=this.options.crs||it.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var pt=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[pt]=this._crs.code,Pc.prototype.onAdd.call(this,it)},getTileUrl:function(it){var pt=this._tileCoordsToNwSe(it),St=this._crs,Ut=De(St.project(pt[0]),St.project(pt[1])),se=Ut.min,Ne=Ut.max,nn=(this._wmsVersion>=1.3&&this._crs===Rt?[se.y,se.x,Ne.y,Ne.x]:[se.x,se.y,Ne.x,Ne.y]).join(","),_n=Pc.prototype.getTileUrl.call(this,it);return _n+mt(this.wmsParams,_n,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+nn},setParams:function(it,pt){return Y(this.wmsParams,it),pt||this.redraw(),this}});function of(it,pt){return new Uu(it,pt)}Pc.WMS=Uu,Mh.wms=of;var yl=Se.extend({options:{padding:.1},initialize:function(it){wt(this,it),tt(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ei(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var it={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(it.zoomanim=this._onAnimZoom),it},_onAnimZoom:function(it){this._updateTransform(it.center,it.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(it,pt){var St=this._map.getZoomScale(pt,this._zoom),Ut=this._map.getSize().multiplyBy(.5+this.options.padding),se=this._map.project(this._center,pt),Ne=Ut.multiplyBy(-St).add(se).subtract(this._map._getNewPixelOrigin(it,pt));tr.any3d?_a(this._container,Ne,St):Mo(this._container,Ne)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var it in this._layers)this._layers[it]._reset()},_onZoomEnd:function(){for(var it in this._layers)this._layers[it]._project()},_updatePaths:function(){for(var it in this._layers)this._layers[it]._update()},_update:function(){var it=this.options.padding,pt=this._map.getSize(),St=this._map.containerPointToLayerPoint(pt.multiplyBy(-it)).round();this._bounds=new Ce(St,St.add(pt.multiplyBy(1+it*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ad=yl.extend({options:{tolerance:0},getEvents:function(){var it=yl.prototype.getEvents.call(this);return it.viewprereset=this._onViewPreReset,it},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){yl.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var it=this._container=document.createElement("canvas");Kr(it,"mousemove",this._onMouseMove,this),Kr(it,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Kr(it,"mouseout",this._handleMouseOut,this),it._leaflet_disable_events=!0,this._ctx=it.getContext("2d")},_destroyContainer:function(){Dt(this._redrawRequest),delete this._ctx,Xe(this._container),zr(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var it;this._redrawBounds=null;for(var pt in this._layers)it=this._layers[pt],it._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){yl.prototype._update.call(this);var it=this._bounds,pt=this._container,St=it.getSize(),Ut=tr.retina?2:1;Mo(pt,it.min),pt.width=Ut*St.x,pt.height=Ut*St.y,pt.style.width=St.x+"px",pt.style.height=St.y+"px",tr.retina&&this._ctx.scale(2,2),this._ctx.translate(-it.min.x,-it.min.y),this.fire("update")}},_reset:function(){yl.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(it){this._updateDashArray(it),this._layers[tt(it)]=it;var pt=it._order={layer:it,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=pt),this._drawLast=pt,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(it){this._requestRedraw(it)},_removePath:function(it){var pt=it._order,St=pt.next,Ut=pt.prev;St?St.prev=Ut:this._drawLast=Ut,Ut?Ut.next=St:this._drawFirst=St,delete it._order,delete this._layers[tt(it)],this._requestRedraw(it)},_updatePath:function(it){this._extendRedrawBounds(it),it._project(),it._update(),this._requestRedraw(it)},_updateStyle:function(it){this._updateDashArray(it),this._requestRedraw(it)},_updateDashArray:function(it){if(typeof it.options.dashArray=="string"){var pt=it.options.dashArray.split(/[, ]+/),St=[],Ut,se;for(se=0;se')}}catch{}return function(it){return document.createElement("<"+it+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Aa={_initContainer:function(){this._container=Nr("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(yl.prototype._update.call(this),this.fire("update"))},_initPath:function(it){var pt=it._container=zc("shape");ei(pt,"leaflet-vml-shape "+(this.options.className||"")),pt.coordsize="1 1",it._path=zc("path"),pt.appendChild(it._path),this._updateStyle(it),this._layers[tt(it)]=it},_addPath:function(it){var pt=it._container;this._container.appendChild(pt),it.options.interactive&&it.addInteractiveTarget(pt)},_removePath:function(it){var pt=it._container;Xe(pt),it.removeInteractiveTarget(pt),delete this._layers[tt(it)]},_updateStyle:function(it){var pt=it._stroke,St=it._fill,Ut=it.options,se=it._container;se.stroked=!!Ut.stroke,se.filled=!!Ut.fill,Ut.stroke?(pt||(pt=it._stroke=zc("stroke")),se.appendChild(pt),pt.weight=Ut.weight+"px",pt.color=Ut.color,pt.opacity=Ut.opacity,Ut.dashArray?pt.dashStyle=At(Ut.dashArray)?Ut.dashArray.join(" "):Ut.dashArray.replace(/( *, *)/g," "):pt.dashStyle="",pt.endcap=Ut.lineCap.replace("butt","flat"),pt.joinstyle=Ut.lineJoin):pt&&(se.removeChild(pt),it._stroke=null),Ut.fill?(St||(St=it._fill=zc("fill")),se.appendChild(St),St.color=Ut.fillColor||Ut.color,St.opacity=Ut.fillOpacity):St&&(se.removeChild(St),it._fill=null)},_updateCircle:function(it){var pt=it._point.round(),St=Math.round(it._radius),Ut=Math.round(it._radiusY||St);this._setPath(it,it._empty()?"M0 0":"AL "+pt.x+","+pt.y+" "+St+","+Ut+" 0,"+65535*360)},_setPath:function(it,pt){it._path.v=pt},_bringToFront:function(it){an(it._container)},_bringToBack:function(it){Do(it._container)}},cd=tr.vml?zc:$t,Yu=yl.extend({_initContainer:function(){this._container=cd("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=cd("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Xe(this._container),zr(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){yl.prototype._update.call(this);var it=this._bounds,pt=it.getSize(),St=this._container;(!this._svgSize||!this._svgSize.equals(pt))&&(this._svgSize=pt,St.setAttribute("width",pt.x),St.setAttribute("height",pt.y)),Mo(St,it.min),St.setAttribute("viewBox",[it.min.x,it.min.y,pt.x,pt.y].join(" ")),this.fire("update")}},_initPath:function(it){var pt=it._path=cd("path");it.options.className&&ei(pt,it.options.className),it.options.interactive&&ei(pt,"leaflet-interactive"),this._updateStyle(it),this._layers[tt(it)]=it},_addPath:function(it){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(it._path),it.addInteractiveTarget(it._path)},_removePath:function(it){Xe(it._path),it.removeInteractiveTarget(it._path),delete this._layers[tt(it)]},_updatePath:function(it){it._project(),it._update()},_updateStyle:function(it){var pt=it._path,St=it.options;pt&&(St.stroke?(pt.setAttribute("stroke",St.color),pt.setAttribute("stroke-opacity",St.opacity),pt.setAttribute("stroke-width",St.weight),pt.setAttribute("stroke-linecap",St.lineCap),pt.setAttribute("stroke-linejoin",St.lineJoin),St.dashArray?pt.setAttribute("stroke-dasharray",St.dashArray):pt.removeAttribute("stroke-dasharray"),St.dashOffset?pt.setAttribute("stroke-dashoffset",St.dashOffset):pt.removeAttribute("stroke-dashoffset")):pt.setAttribute("stroke","none"),St.fill?(pt.setAttribute("fill",St.fillColor||St.color),pt.setAttribute("fill-opacity",St.fillOpacity),pt.setAttribute("fill-rule",St.fillRule||"evenodd")):pt.setAttribute("fill","none"))},_updatePoly:function(it,pt){this._setPath(it,oe(it._parts,pt))},_updateCircle:function(it){var pt=it._point,St=Math.max(Math.round(it._radius),1),Ut=Math.max(Math.round(it._radiusY),1)||St,se="a"+St+","+Ut+" 0 1,0 ",Ne=it._empty()?"M0 0":"M"+(pt.x-St)+","+pt.y+se+St*2+",0 "+se+-St*2+",0 ";this._setPath(it,Ne)},_setPath:function(it,pt){it._path.setAttribute("d",pt)},_bringToFront:function(it){an(it._path)},_bringToBack:function(it){Do(it._path)}});tr.vml&&Yu.include(Aa);function sf(it){return tr.svg||tr.vml?new Yu(it):null}mi.include({getRenderer:function(it){var pt=it.options.renderer||this._getPaneRenderer(it.options.pane)||this.options.renderer||this._renderer;return pt||(pt=this._renderer=this._createRenderer()),this.hasLayer(pt)||this.addLayer(pt),pt},_getPaneRenderer:function(it){if(it==="overlayPane"||it===void 0)return!1;var pt=this._paneRenderers[it];return pt===void 0&&(pt=this._createRenderer({pane:it}),this._paneRenderers[it]=pt),pt},_createRenderer:function(it){return this.options.preferCanvas&&ld(it)||sf(it)}});var ud=Bl.extend({initialize:function(it,pt){Bl.prototype.initialize.call(this,this._boundsToLatLngs(it),pt)},setBounds:function(it){return this.setLatLngs(this._boundsToLatLngs(it))},_boundsToLatLngs:function(it){return it=Je(it),[it.getSouthWest(),it.getNorthWest(),it.getNorthEast(),it.getSouthEast()]}});function sp(it,pt){return new ud(it,pt)}Yu.create=cd,Yu.pointsToPath=oe,ki.geometryToLayer=au,ki.coordsToLatLng=Ca,ki.coordsToLatLngs=ka,ki.latLngToCoords=$l,ki.latLngsToCoords=lu,ki.getFeature=cu,ki.asFeature=wh,mi.mergeOptions({boxZoom:!0});var hd=vo.extend({initialize:function(it){this._map=it,this._container=it._container,this._pane=it._panes.overlayPane,this._resetStateTimeout=0,it.on("unload",this._destroy,this)},addHooks:function(){Kr(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){zr(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Xe(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(it){if(!it.shiftKey||it.which!==1&&it.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Es(),wa(),this._startPoint=this._map.mouseEventToContainerPoint(it),Kr(document,{contextmenu:la,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(it){this._moved||(this._moved=!0,this._box=Nr("div","leaflet-zoom-box",this._container),ei(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(it);var pt=new Ce(this._point,this._startPoint),St=pt.getSize();Mo(this._box,pt.min),this._box.style.width=St.x+"px",this._box.style.height=St.y+"px"},_finish:function(){this._moved&&(Xe(this._box),Pr(this._container,"leaflet-crosshair")),Io(),Os(),zr(document,{contextmenu:la,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(it){if(!(it.which!==1&&it.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(q(this._resetState,this),0);var pt=new Oe(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(pt).fire("boxzoomend",{boxZoomBounds:pt})}},_onKeyDown:function(it){it.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});mi.addInitHook("addHandler","boxZoom",hd),mi.mergeOptions({doubleClickZoom:!0});var Hu=vo.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(it){var pt=this._map,St=pt.getZoom(),Ut=pt.options.zoomDelta,se=it.originalEvent.shiftKey?St-Ut:St+Ut;pt.options.doubleClickZoom==="center"?pt.setZoom(se):pt.setZoomAround(it.containerPoint,se)}});mi.addInitHook("addHandler","doubleClickZoom",Hu),mi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Th=vo.extend({addHooks:function(){if(!this._draggable){var it=this._map;this._draggable=new ko(it._mapPane,it._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),it.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),it.on("zoomend",this._onZoomEnd,this),it.whenReady(this._onZoomEnd,this))}ei(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Pr(this._map._container,"leaflet-grab"),Pr(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var it=this._map;if(it._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var pt=Je(this._map.options.maxBounds);this._offsetLimit=De(this._map.latLngToContainerPoint(pt.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(pt.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;it.fire("movestart").fire("dragstart"),it.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(it){if(this._map.options.inertia){var pt=this._lastTime=+new Date,St=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(St),this._times.push(pt),this._prunePositions(pt)}this._map.fire("move",it).fire("drag",it)},_prunePositions:function(it){for(;this._positions.length>1&&it-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var it=this._map.getSize().divideBy(2),pt=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=pt.subtract(it).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(it,pt){return it-(it-pt)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var it=this._draggable._newPos.subtract(this._draggable._startPos),pt=this._offsetLimit;it.xpt.max.x&&(it.x=this._viscousLimit(it.x,pt.max.x)),it.y>pt.max.y&&(it.y=this._viscousLimit(it.y,pt.max.y)),this._draggable._newPos=this._draggable._startPos.add(it)}},_onPreDragWrap:function(){var it=this._worldWidth,pt=Math.round(it/2),St=this._initialWorldOffset,Ut=this._draggable._newPos.x,se=(Ut-pt+St)%it+pt-St,Ne=(Ut+pt+St)%it-pt-St,nn=Math.abs(se+St)0?Ne:-Ne))-pt;this._delta=0,this._startTime=null,nn&&(it.options.scrollWheelZoom==="center"?it.setZoom(pt+nn):it.setZoomAround(this._lastMousePos,pt+nn))}});mi.addInitHook("addHandler","scrollWheelZoom",uu);var hg=600;mi.mergeOptions({tapHold:tr.touchNative&&tr.safari&&tr.mobile,tapTolerance:15});var af=vo.extend({addHooks:function(){Kr(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){zr(this._map._container,"touchstart",this._onDown,this)},_onDown:function(it){if(clearTimeout(this._holdTimeout),it.touches.length===1){var pt=it.touches[0];this._startPos=this._newPos=new ye(pt.clientX,pt.clientY),this._holdTimeout=setTimeout(q(function(){this._cancel(),this._isTapValid()&&(Kr(document,"touchend",Ho),Kr(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",pt))},this),hg),Kr(document,"touchend touchcancel contextmenu",this._cancel,this),Kr(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function it(){zr(document,"touchend",Ho),zr(document,"touchend touchcancel",it)},_cancel:function(){clearTimeout(this._holdTimeout),zr(document,"touchend touchcancel contextmenu",this._cancel,this),zr(document,"touchmove",this._onMove,this)},_onMove:function(it){var pt=it.touches[0];this._newPos=new ye(pt.clientX,pt.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(it,pt){var St=new MouseEvent(it,{bubbles:!0,cancelable:!0,view:window,screenX:pt.screenX,screenY:pt.screenY,clientX:pt.clientX,clientY:pt.clientY});St._simulated=!0,pt.target.dispatchEvent(St)}});mi.addInitHook("addHandler","tapHold",af),mi.mergeOptions({touchZoom:tr.touch,bounceAtZoomLimits:!0});var Vu=vo.extend({addHooks:function(){ei(this._map._container,"leaflet-touch-zoom"),Kr(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Pr(this._map._container,"leaflet-touch-zoom"),zr(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(it){var pt=this._map;if(!(!it.touches||it.touches.length!==2||pt._animatingZoom||this._zooming)){var St=pt.mouseEventToContainerPoint(it.touches[0]),Ut=pt.mouseEventToContainerPoint(it.touches[1]);this._centerPoint=pt.getSize()._divideBy(2),this._startLatLng=pt.containerPointToLatLng(this._centerPoint),pt.options.touchZoom!=="center"&&(this._pinchStartLatLng=pt.containerPointToLatLng(St.add(Ut)._divideBy(2))),this._startDist=St.distanceTo(Ut),this._startZoom=pt.getZoom(),this._moved=!1,this._zooming=!0,pt._stop(),Kr(document,"touchmove",this._onTouchMove,this),Kr(document,"touchend touchcancel",this._onTouchEnd,this),Ho(it)}},_onTouchMove:function(it){if(!(!it.touches||it.touches.length!==2||!this._zooming)){var pt=this._map,St=pt.mouseEventToContainerPoint(it.touches[0]),Ut=pt.mouseEventToContainerPoint(it.touches[1]),se=St.distanceTo(Ut)/this._startDist;if(this._zoom=pt.getScaleZoom(se,this._startZoom),!pt.options.bounceAtZoomLimits&&(this._zoompt.getMaxZoom()&&se>1)&&(this._zoom=pt._limitZoom(this._zoom)),pt.options.touchZoom==="center"){if(this._center=this._startLatLng,se===1)return}else{var Ne=St._add(Ut)._divideBy(2)._subtract(this._centerPoint);if(se===1&&Ne.x===0&&Ne.y===0)return;this._center=pt.unproject(pt.project(this._pinchStartLatLng,this._zoom).subtract(Ne),this._zoom)}this._moved||(pt._moveStart(!0,!1),this._moved=!0),Dt(this._animRequest);var nn=q(pt._move,pt,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Xt(nn,this,!0),Ho(it)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Dt(this._animRequest),zr(document,"touchmove",this._onTouchMove,this),zr(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});mi.addInitHook("addHandler","touchZoom",Vu),mi.BoxZoom=hd,mi.DoubleClickZoom=Hu,mi.Drag=Th,mi.Keyboard=ap,mi.ScrollWheelZoom=uu,mi.TapHold=af,mi.TouchZoom=Vu,z.Bounds=Ce,z.Browser=tr,z.CRS=we,z.Canvas=ad,z.Circle=Sa,z.CircleMarker=ao,z.Class=Nt,z.Control=Xs,z.DivIcon=rf,z.DivOverlay=zo,z.DomEvent=zs,z.DomUtil=Rl,z.Draggable=ko,z.Evented=de,z.FeatureGroup=hn,z.GeoJSON=ki,z.GridLayer=Eh,z.Handler=vo,z.Icon=lr,z.ImageOverlay=lc,z.LatLng=qe,z.LatLngBounds=Oe,z.Layer=Se,z.LayerGroup=Re,z.LineUtil=Fa,z.Map=mi,z.Marker=Ci,z.Mixin=ju,z.Path=to,z.Point=ye,z.PolyUtil=Ms,z.Polygon=Bl,z.Polyline=il,z.Popup=Fu,z.PosAnimation=Pu,z.Projection=Ic,z.Rectangle=ud,z.Renderer=yl,z.SVG=Yu,z.SVGOverlay=Go,z.TileLayer=Pc,z.Tooltip=Oc,z.Transformation=Ye,z.Util=Qt,z.VideoOverlay=nf,z.bind=q,z.bounds=De,z.canvas=ld,z.circle=ef,z.circleMarker=ho,z.control=kc,z.divIcon=sd,z.extend=Y,z.featureGroup=Ln,z.geoJSON=rd,z.geoJson=cg,z.gridLayer=op,z.icon=yi,z.imageOverlay=ug,z.latLng=ze,z.latLngBounds=Je,z.layerGroup=Ke,z.map=zu,z.marker=Ri,z.point=ve,z.polygon=nd,z.polyline=$u,z.popup=Fl,z.rectangle=sp,z.setOptions=wt,z.stamp=tt,z.svg=sf,z.svgOverlay=rp,z.tileLayer=Mh,z.tooltip=ip,z.transformation=Kt,z.version=F,z.videoOverlay=od;var Gu=window.L;z.noConflict=function(){return window.L=Gu,this},window.L=z})})(leafletSrc,leafletSrc.exports);var leafletSrcExports=leafletSrc.exports;const L$1=getDefaultExportFromCjs(leafletSrcExports);var leafletGestureHandling_min={exports:{}};(function(D,O){(function(z,F){F(O)})(commonjsGlobal$1,function(z){var F={ar:{touch:"استخدم إصبعين لتحريك الخريطة",scroll:"‏استخدم ctrl + scroll لتصغير/تكبير الخريطة",scrollMac:"يمكنك استخدام ⌘ + التمرير لتكبير/تصغير الخريطة"},bg:{touch:"Използвайте два пръста, за да преместите картата",scroll:"Задръжте бутона Ctrl натиснат, докато превъртате, за да промените мащаба на картата",scrollMac:"Задръжте бутона ⌘ натиснат, докато превъртате, за да промените мащаба на картата"},bn:{touch:"মানচিত্রটিকে সরাতে দুটি আঙ্গুল ব্যবহার করুন",scroll:"ম্যাপ জুম করতে ctrl + scroll ব্যবহার করুন",scrollMac:"ম্যাপে জুম করতে ⌘ বোতাম টিপে স্ক্রল করুন"},ca:{touch:"Fes servir dos dits per moure el mapa",scroll:"Prem la tecla Control mentre et desplaces per apropar i allunyar el mapa",scrollMac:"Prem la tecla ⌘ mentre et desplaces per apropar i allunyar el mapa"},cs:{touch:"K posunutí mapy použijte dva prsty",scroll:"Velikost zobrazení mapy změňte podržením klávesy Ctrl a posouváním kolečka myši",scrollMac:"Velikost zobrazení mapy změníte podržením klávesy ⌘ a posunutím kolečka myši / touchpadu"},da:{touch:"Brug to fingre til at flytte kortet",scroll:"Brug ctrl + rullefunktionen til at zoome ind og ud på kortet",scrollMac:"Brug ⌘ + rullefunktionen til at zoome ind og ud på kortet"},de:{touch:"Verschieben der Karte mit zwei Fingern",scroll:"Verwende Strg+Scrollen zum Zoomen der Karte",scrollMac:"⌘"},el:{touch:"Χρησιμοποιήστε δύο δάχτυλα για μετακίνηση στον χάρτη",scroll:"Χρησιμοποιήστε το πλήκτρο Ctrl και κύλιση, για να μεγεθύνετε τον χάρτη",scrollMac:"Χρησιμοποιήστε το πλήκτρο ⌘ + κύλιση για εστίαση στον χάρτη"},en:{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-AU":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-GB":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},es:{touch:"Para mover el mapa, utiliza dos dedos",scroll:"Mantén pulsada la tecla Ctrl mientras te desplazas para acercar o alejar el mapa",scrollMac:"Mantén pulsada la tecla ⌘ mientras te desplazas para acercar o alejar el mapa"},eu:{touch:"Erabili bi hatz mapa mugitzeko",scroll:"Mapan zooma aplikatzeko, sakatu Ktrl eta egin gora edo behera",scrollMac:"Eduki sakatuta ⌘ eta egin gora eta behera mapa handitu eta txikitzeko"},fa:{touch:"برای حرکت دادن نقشه از دو انگشت استفاده کنید.",scroll:"‏برای بزرگ‌نمایی نقشه از ctrl + scroll استفاده کنید",scrollMac:"برای بزرگ‌نمایی نقشه، از ⌘ + پیمایش استفاده کنید."},fi:{touch:"Siirrä karttaa kahdella sormella.",scroll:"Zoomaa karttaa painamalla Ctrl-painiketta ja vierittämällä.",scrollMac:"Zoomaa karttaa pitämällä painike ⌘ painettuna ja vierittämällä."},fil:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},fr:{touch:"Utilisez deux doigts pour déplacer la carte",scroll:"Vous pouvez zoomer sur la carte à l'aide de CTRL+Molette de défilement",scrollMac:"Vous pouvez zoomer sur la carte à l'aide de ⌘+Molette de défilement"},gl:{touch:"Utiliza dous dedos para mover o mapa",scroll:"Preme Ctrl mentres te desprazas para ampliar o mapa",scrollMac:"Preme ⌘ e desprázate para ampliar o mapa"},gu:{touch:"નકશો ખસેડવા બે આંગળીઓનો ઉપયોગ કરો",scroll:"નકશાને ઝૂમ કરવા માટે ctrl + સ્ક્રોલનો ઉપયોગ કરો",scrollMac:"નકશાને ઝૂમ કરવા ⌘ + સ્ક્રોલનો ઉપયોગ કરો"},hi:{touch:"मैप एक जगह से दूसरी जगह ले जाने के लिए दो उंगलियों का इस्तेमाल करें",scroll:"मैप को ज़ूम करने के लिए ctrl + स्क्रोल का उपयोग करें",scrollMac:"मैप को ज़ूम करने के लिए ⌘ + स्क्रोल का उपयोग करें"},hr:{touch:"Pomičite kartu pomoću dva prsta",scroll:"Upotrijebite Ctrl i klizač miša da biste zumirali kartu",scrollMac:"Upotrijebite gumb ⌘ dok se pomičete za zumiranje karte"},hu:{touch:"Két ujjal mozgassa a térképet",scroll:"A térkép a ctrl + görgetés használatával nagyítható",scrollMac:"A térkép a ⌘ + görgetés használatával nagyítható"},id:{touch:"Gunakan dua jari untuk menggerakkan peta",scroll:"Gunakan ctrl + scroll untuk memperbesar atau memperkecil peta",scrollMac:"Gunakan ⌘ + scroll untuk memperbesar atau memperkecil peta"},it:{touch:"Utilizza due dita per spostare la mappa",scroll:"Utilizza CTRL + scorrimento per eseguire lo zoom della mappa",scrollMac:"Utilizza ⌘ + scorrimento per eseguire lo zoom della mappa"},iw:{touch:"הזז את המפה באמצעות שתי אצבעות",scroll:"‏אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ctrl וגלילה",scrollMac:"אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ⌘ וגלילה"},ja:{touch:"地図を移動させるには指 2 本で操作します",scroll:"地図をズームするには、Ctrl キーを押しながらスクロールしてください",scrollMac:"地図をズームするには、⌘ キーを押しながらスクロールしてください"},kn:{touch:"Use two fingers to move the map",scroll:"Use Ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},ko:{touch:"지도를 움직이려면 두 손가락을 사용하세요.",scroll:"지도를 확대/축소하려면 Ctrl을 누른 채 스크롤하세요.",scrollMac:"지도를 확대하려면 ⌘ + 스크롤 사용"},lt:{touch:"Perkelkite žemėlapį dviem pirštais",scroll:"Slinkite nuspaudę klavišą „Ctrl“, kad pakeistumėte žemėlapio mastelį",scrollMac:"Paspauskite klavišą ⌘ ir slinkite, kad priartintumėte žemėlapį"},lv:{touch:"Lai pārvietotu karti, bīdiet to ar diviem pirkstiem",scroll:"Kartes tālummaiņai izmantojiet ctrl + ritināšanu",scrollMac:"Lai veiktu kartes tālummaiņu, izmantojiet ⌘ + ritināšanu"},ml:{touch:"മാപ്പ് നീക്കാൻ രണ്ട് വിരലുകൾ ഉപയോഗിക്കുക",scroll:"കൺട്രോൾ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക",scrollMac:"⌘ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക"},mr:{touch:"नकाशा हलविण्यासाठी दोन बोटे वापरा",scroll:"नकाशा झूम करण्यासाठी ctrl + scroll वापरा",scrollMac:"नकाशावर झूम करण्यासाठी ⌘ + स्क्रोल वापरा"},nl:{touch:"Gebruik twee vingers om de kaart te verplaatsen",scroll:"Gebruik Ctrl + scrollen om in- en uit te zoomen op de kaart",scrollMac:"Gebruik ⌘ + scrollen om in en uit te zoomen op de kaart"},no:{touch:"Bruk to fingre for å flytte kartet",scroll:"Hold ctrl-tasten inne og rull for å zoome på kartet",scrollMac:"Hold inne ⌘-tasten og rull for å zoome på kartet"},pl:{touch:"Przesuń mapę dwoma palcami",scroll:"Naciśnij CTRL i przewiń, by przybliżyć mapę",scrollMac:"Naciśnij ⌘ i przewiń, by przybliżyć mapę"},pt:{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-BR":{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-PT":{touch:"Utilize dois dedos para mover o mapa",scroll:"Utilizar ctrl + deslocar para aumentar/diminuir zoom do mapa",scrollMac:"Utilize ⌘ + deslocar para aumentar/diminuir o zoom do mapa"},ro:{touch:"Folosiți două degete pentru a deplasa harta",scroll:"Apăsați tasta ctrl și derulați simultan pentru a mări harta",scrollMac:"Folosiți ⌘ și derulați pentru a mări/micșora harta"},ru:{touch:"Чтобы переместить карту, проведите по ней двумя пальцами",scroll:"Чтобы изменить масштаб, прокручивайте карту, удерживая клавишу Ctrl.",scrollMac:"Чтобы изменить масштаб, нажмите ⌘ + прокрутка"},sk:{touch:"Mapu môžete posunúť dvoma prstami",scroll:"Ak chcete priblížiť mapu, stlačte kláves ctrl a posúvajte",scrollMac:"Ak chcete priblížiť mapu, stlačte kláves ⌘ a posúvajte kolieskom myši"},sl:{touch:"Premaknite zemljevid z dvema prstoma",scroll:"Zemljevid povečate tako, da držite tipko Ctrl in vrtite kolesce na miški",scrollMac:"Uporabite ⌘ + funkcijo pomika, da povečate ali pomanjšate zemljevid"},sr:{touch:"Мапу померајте помоћу два прста",scroll:"Притисните ctrl тастер док померате да бисте зумирали мапу",scrollMac:"Притисните тастер ⌘ док померате да бисте зумирали мапу"},sv:{touch:"Använd två fingrar för att flytta kartan",scroll:"Använd ctrl + rulla för att zooma kartan",scrollMac:"Använd ⌘ + rulla för att zooma på kartan"},ta:{touch:"மேப்பை நகர்த்த இரண்டு விரல்களைப் பயன்படுத்தவும்",scroll:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ctrl பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்",scrollMac:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ⌘ பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்"},te:{touch:"మ్యాప్‌ని తరలించడం కోసం రెండు వేళ్లను ఉపయోగించండి",scroll:"మ్యాప్‌ని జూమ్ చేయడానికి ctrl బటన్‌ను నొక్కి ఉంచి, స్క్రోల్ చేయండి",scrollMac:"మ్యాప్ జూమ్ చేయాలంటే ⌘ + స్క్రోల్ ఉపయోగించండి"},th:{touch:"ใช้ 2 นิ้วเพื่อเลื่อนแผนที่",scroll:"กด Ctrl ค้างไว้ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่",scrollMac:"กด ⌘ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่"},tl:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},tr:{touch:"Haritada gezinmek için iki parmağınızı kullanın",scroll:"Haritayı yakınlaştırmak için ctrl + kaydırma kombinasyonunu kullanın",scrollMac:"Haritayı yakınlaştırmak için ⌘ tuşuna basıp ekranı kaydırın"},uk:{touch:"Переміщуйте карту двома пальцями",scroll:"Щоб змінювати масштаб карти, прокручуйте коліщатко миші, утримуючи клавішу Ctrl",scrollMac:"Щоб змінити масштаб карти, використовуйте ⌘ + прокручування"},vi:{touch:"Sử dụng hai ngón tay để di chuyển bản đồ",scroll:"Sử dụng ctrl + cuộn để thu phóng bản đồ",scrollMac:"Sử dụng ⌘ + cuộn để thu phóng bản đồ"},"zh-CN":{touch:"使用双指移动地图",scroll:"按住 Ctrl 并滚动鼠标滚轮才可缩放地图",scrollMac:"按住 ⌘ 并滚动鼠标滚轮才可缩放地图"},"zh-TW":{touch:"同時以兩指移動地圖",scroll:"按住 ctrl 鍵加上捲動滑鼠可以縮放地圖",scrollMac:"按 ⌘ 加上滾動捲軸可以縮放地圖"}};L.Map.mergeOptions({gestureHandlingOptions:{text:{},duration:1e3}});var Y=!1,W=L.Handler.extend({addHooks:function(){this._handleTouch=this._handleTouch.bind(this),this._setupPluginOptions(),this._setLanguageContent(),this._disableInteractions(),this._map._container.addEventListener("touchstart",this._handleTouch),this._map._container.addEventListener("touchmove",this._handleTouch),this._map._container.addEventListener("touchend",this._handleTouch),this._map._container.addEventListener("touchcancel",this._handleTouch),this._map._container.addEventListener("click",this._handleTouch),L.DomEvent.on(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.on(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.on(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.on(this._map,"movestart",this._handleDragging,this),L.DomEvent.on(this._map,"move",this._handleDragging,this),L.DomEvent.on(this._map,"moveend",this._handleDragging,this)},removeHooks:function(){this._enableInteractions(),this._map._container.removeEventListener("touchstart",this._handleTouch),this._map._container.removeEventListener("touchmove",this._handleTouch),this._map._container.removeEventListener("touchend",this._handleTouch),this._map._container.removeEventListener("touchcancel",this._handleTouch),this._map._container.removeEventListener("click",this._handleTouch),L.DomEvent.off(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.off(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.off(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.off(this._map,"movestart",this._handleDragging,this),L.DomEvent.off(this._map,"move",this._handleDragging,this),L.DomEvent.off(this._map,"moveend",this._handleDragging,this)},_handleDragging:function(q){q.type=="movestart"||q.type=="move"?Y=!0:q.type=="moveend"&&(Y=!1)},_disableInteractions:function(){this._map.dragging.disable(),this._map.scrollWheelZoom.disable(),this._map.tap&&this._map.tap.disable()},_enableInteractions:function(){this._map.dragging.enable(),this._map.scrollWheelZoom.enable(),this._map.tap&&this._map.tap.enable()},_setupPluginOptions:function(){this._map.options.gestureHandlingText&&(this._map.options.gestureHandlingOptions.text=this._map.options.gestureHandlingText)},_setLanguageContent:function(){var q;if(this._map.options.gestureHandlingOptions&&this._map.options.gestureHandlingOptions.text&&this._map.options.gestureHandlingOptions.text.touch&&this._map.options.gestureHandlingOptions.text.scroll&&this._map.options.gestureHandlingOptions.text.scrollMac)q=this._map.options.gestureHandlingOptions.text;else{var X=this._getUserLanguage();X||(X="en"),F[X]&&(q=F[X]),q||X.indexOf("-")===-1||(X=X.split("-")[0],q=F[X]),q||(q=F[X="en"])}var tt=!1;0<=navigator.platform.toUpperCase().indexOf("MAC")&&(tt=!0);var nt=q.scroll;tt&&(nt=q.scrollMac),this._map._container.setAttribute("data-gesture-handling-touch-content",q.touch),this._map._container.setAttribute("data-gesture-handling-scroll-content",nt)},_getUserLanguage:function(){return navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage},_handleTouch:function(q){for(var X=["leaflet-control-minimap","leaflet-interactive","leaflet-popup-content","leaflet-popup-content-wrapper","leaflet-popup-close-button","leaflet-control-zoom-in","leaflet-control-zoom-out"],tt=!1,nt=0;nt{X=X.target.value;const tt=this._getLayer(z.layerId).layer;tt._url===void 0||tt.setOpacity(Number(X/100))});const F=document.createElement("span");F.innerHTML=" "+D.name;const Y=document.createElement("div"),W=document.createElement("div");O.appendChild(Y),Y.appendChild(F),O.appendChild(W),W.appendChild(z),(D.overlay?this._overlaysList:this._baseLayersList).appendChild(O)}}),L.control.opacity=function(D,O){return new L.Control.Opacity(D,O)};class GithubClient{constructor(O){this._shas={},this.authToken=O}b64EncodeUnicode(O){return btoa(encodeURIComponent(O).replace(/%([0-9A-F]{2})/g,function(z,F){return String.fromCharCode(parseInt(F,16))}))}b64DecodeUnicode(O){return decodeURIComponent(Array.prototype.map.call(atob(O),function(z){return"%"+("00"+z.charCodeAt(0).toString(16)).slice(-2)}).join(""))}user(){return fetch("https://api.github.com/user",{headers:{Accept:"application/vnd.github+json",Authorization:`token ${this.authToken}`}}).then(O=>O.json())}async isCollaborator(O,z,F){let Y=`https://api.github.com/repos/${O}/${z}/collaborators/${F}`,W=await fetch(Y,{headers:{Accept:"application/vnd.github+json",Authorization:`token ${this.authToken}`}});return W.ok&&W.status===204}organizations(){return fetch("https://api.github.com/user/orgs",{headers:{Accept:"application/vnd.github+json",Authorization:`token ${this.authToken}`}}).then(O=>O.json())}repos(O="",z=""){let F=O?`users/${O}`:z?`orgs/${z}`:"user";return fetch(`https://api.github.com/${F}/repos?per_page=100`,{headers:{Accept:"application/vnd.github+json",Authorization:`token ${this.authToken}`}}).then(Y=>Y.json())}async createRepository({org:O=null,name:z="",description:F="",auto_init:Y=!0}){let W=O?`https://api.github.com/orgs/${O}/repos`:"https://api.github.com/user/repos";console.log(`createUserRepository: org=${O} name=${z} description=${F} auto_init=${Y} url=${W}`);let q=await fetch(W,{method:"POST",body:JSON.stringify({name:z,description:F,auto_init:Y}),headers:{Authorization:`Token ${this.authToken}`}});return{status:q.status,statusText:q.statusText}}branches(O,z){return fetch(`https://api.github.com/repos/${O}/${z}/branches`,{headers:{Accept:"application/vnd.github+json",Authorization:`token ${this.authToken}`}}).then(F=>F.json())}async getFile(O,z,F,Y){let W,q=`https://api.github.com/repos/${O}/${z}/contents/${F}`;Y&&(q+=`?ref=${Y}`);let X=await fetch(q,{cache:"no-cache",headers:{Authorization:`Token ${this.authToken}`}});return X.ok&&(X=await X.json(),W=decodeURIComponent(escape(atob(X.content)))),Promise.resolve({content:W,sha:X.sha})}async getSha(O,z,F,Y){console.log(`getSha: acct=${O} repo=${z} path=${F} ref=${Y}`);let W=`https://api.github.com/repos/${O}/${z}/contents/${F}`;Y&&(W+=`?ref=${Y}`);let q=await fetch(W,{headers:{Authorization:`Token ${this.authToken}`}});return q.ok&&(q=await q.json()),q.sha}async putFile(O,z,F,Y,W,q=!1,X=""){let tt=`https://api.github.com/repos/${O}/${z}/contents/${F}`,nt=`${O}/${z}/${W}/${F}`;X=X||this._shas[nt]||await this.getSha(O,z,F,W),console.log(`putFile: acct=${O} repo=${z} path=${F} ref=${W} sha=${X} isBinaryString=${q}`);let st={message:"API commit",content:q?btoa(Y):this.b64EncodeUnicode(Y)};W&&(st.branch=W),X&&(st.sha=X);let ct=await fetch(tt,{method:"PUT",body:JSON.stringify(st),headers:{Authorization:`Token ${this.authToken}`}});return ct.ok?(X=(await ct.json()).content.sha,this._shas[nt]=X):console.log(ct),{status:ct.status,statusText:ct.statusText,sha:X}}async deleteFile(O,z,F,Y,W=""){console.log(`deleteFile: acct=${O} repo=${z} path=${F} sha=${W}`),W=W||await this.getSha(O,z,F,Y);let q=`https://api.github.com/repos/${O}/${z}/contents/${F}`,tt=await fetch(q,{method:"DELETE",body:JSON.stringify({message:"API commit",sha:W}),headers:{Authorization:`Token ${this.authToken}`}});tt=await tt.json()}async defaultBranch(O,z){let F=null,Y=`https://api.github.com/repos/${O}/${z}`,W=await fetch(Y,{headers:{Authorization:`Token ${this.authToken}`}});return W.ok&&(W=await W.json(),F=W.default_branch),F}async dirlist(O,z,F,Y){var nt;F=F||"",Y=Y||await this.defaultBranch(O,z);let W=[],q=`https://api.github.com/repos/${O}/${z}/git/trees/${Y}`,X={Authorization:`Token ${this.authToken}`,Accept:"application/vnd.github.v3+json","If-None-Match":""},tt=F.split("/").filter(st=>st);for(let st=0;stbt.path===tt[st]):null;if(q=ht?ht.url:null,!q)break}if(q){let st=await fetch(q,{headers:X});W=((st.ok?await st.json():{}).tree||[]).map(lt=>({name:lt.path,sha:lt.sha,type:lt.type==="tree"?"dir":"file"}))}return W}async fullPath(O,z,F,Y,W=!1){let q=F.split("/").filter(st=>st),X=q[q.length-1],tt=await this.dirlist(O,z,q.join("/"),Y);if(tt.length===0&&(q.pop(),tt=await this.dirlist(O,z,q.join("/"),Y)),!W){let st=[X,`${X}.md`,"README.md"];for(let ct=0;ctlt.type==="file"&<.name===st[ct])){q.push(st[ct]);break}}return q.join("/")}}var form_control_styles_default=i$5` + .form-control .form-control__label { + display: none; + } + + .form-control .form-control__help-text { + display: none; + } + + /* Label */ + .form-control--has-label .form-control__label { + display: inline-block; + color: var(--sl-input-label-color); + margin-bottom: var(--sl-spacing-3x-small); + } + + .form-control--has-label.form-control--small .form-control__label { + font-size: var(--sl-input-label-font-size-small); + } + + .form-control--has-label.form-control--medium .form-control__label { + font-size: var(--sl-input-label-font-size-medium); + } + + .form-control--has-label.form-control--large .form-control__label { + font-size: var(--sl-input-label-font-size-large); + } + + :host([required]) .form-control--has-label .form-control__label::after { + content: var(--sl-input-required-content); + margin-inline-start: var(--sl-input-required-content-offset); + color: var(--sl-input-required-content-color); + } + + /* Help text */ + .form-control--has-help-text .form-control__help-text { + display: block; + color: var(--sl-input-help-text-color); + margin-top: var(--sl-spacing-3x-small); + } + + .form-control--has-help-text.form-control--small .form-control__help-text { + font-size: var(--sl-input-help-text-font-size-small); + } + + .form-control--has-help-text.form-control--medium .form-control__help-text { + font-size: var(--sl-input-help-text-font-size-medium); + } + + .form-control--has-help-text.form-control--large .form-control__help-text { + font-size: var(--sl-input-help-text-font-size-large); + } + + .form-control--has-help-text.form-control--radio-group .form-control__help-text { + margin-top: var(--sl-spacing-2x-small); + } +`,range_styles_default=i$5` + ${component_styles_default} + ${form_control_styles_default} + + :host { + --thumb-size: 20px; + --tooltip-offset: 10px; + --track-color-active: var(--sl-color-neutral-200); + --track-color-inactive: var(--sl-color-neutral-200); + --track-active-offset: 0%; + --track-height: 6px; + + display: block; + } + + .range { + position: relative; + } + + .range__control { + --percent: 0%; + -webkit-appearance: none; + border-radius: 3px; + width: 100%; + height: var(--track-height); + background: transparent; + line-height: var(--sl-input-height-medium); + vertical-align: middle; + margin: 0; + + background-image: linear-gradient( + to right, + var(--track-color-inactive) 0%, + var(--track-color-inactive) min(var(--percent), var(--track-active-offset)), + var(--track-color-active) min(var(--percent), var(--track-active-offset)), + var(--track-color-active) max(var(--percent), var(--track-active-offset)), + var(--track-color-inactive) max(var(--percent), var(--track-active-offset)), + var(--track-color-inactive) 100% + ); + } + + .range--rtl .range__control { + background-image: linear-gradient( + to left, + var(--track-color-inactive) 0%, + var(--track-color-inactive) min(var(--percent), var(--track-active-offset)), + var(--track-color-active) min(var(--percent), var(--track-active-offset)), + var(--track-color-active) max(var(--percent), var(--track-active-offset)), + var(--track-color-inactive) max(var(--percent), var(--track-active-offset)), + var(--track-color-inactive) 100% + ); + } + + /* Webkit */ + .range__control::-webkit-slider-runnable-track { + width: 100%; + height: var(--track-height); + border-radius: 3px; + border: none; + } + + .range__control::-webkit-slider-thumb { + border: none; + width: var(--thumb-size); + height: var(--thumb-size); + border-radius: 50%; + background-color: var(--sl-color-primary-600); + border: solid var(--sl-input-border-width) var(--sl-color-primary-600); + -webkit-appearance: none; + margin-top: calc(var(--thumb-size) / -2 + var(--track-height) / 2); + cursor: pointer; + } + + .range__control:enabled::-webkit-slider-thumb:hover { + background-color: var(--sl-color-primary-500); + border-color: var(--sl-color-primary-500); + } + + .range__control:enabled:focus-visible::-webkit-slider-thumb { + outline: var(--sl-focus-ring); + outline-offset: var(--sl-focus-ring-offset); + } + + .range__control:enabled::-webkit-slider-thumb:active { + background-color: var(--sl-color-primary-500); + border-color: var(--sl-color-primary-500); + cursor: grabbing; + } + + /* Firefox */ + .range__control::-moz-focus-outer { + border: 0; + } + + .range__control::-moz-range-progress { + background-color: var(--track-color-active); + border-radius: 3px; + height: var(--track-height); + } + + .range__control::-moz-range-track { + width: 100%; + height: var(--track-height); + background-color: var(--track-color-inactive); + border-radius: 3px; + border: none; + } + + .range__control::-moz-range-thumb { + border: none; + height: var(--thumb-size); + width: var(--thumb-size); + border-radius: 50%; + background-color: var(--sl-color-primary-600); + border-color: var(--sl-color-primary-600); + transition: + var(--sl-transition-fast) border-color, + var(--sl-transition-fast) background-color, + var(--sl-transition-fast) color, + var(--sl-transition-fast) box-shadow; + cursor: pointer; + } + + .range__control:enabled::-moz-range-thumb:hover { + background-color: var(--sl-color-primary-500); + border-color: var(--sl-color-primary-500); + } + + .range__control:enabled:focus-visible::-moz-range-thumb { + outline: var(--sl-focus-ring); + outline-offset: var(--sl-focus-ring-offset); + } + + .range__control:enabled::-moz-range-thumb:active { + background-color: var(--sl-color-primary-500); + border-color: var(--sl-color-primary-500); + cursor: grabbing; + } + + /* States */ + .range__control:focus-visible { + outline: none; + } + + .range__control:disabled { + opacity: 0.5; + } + + .range__control:disabled::-webkit-slider-thumb { + cursor: not-allowed; + } + + .range__control:disabled::-moz-range-thumb { + cursor: not-allowed; + } + + /* Tooltip output */ + .range__tooltip { + position: absolute; + z-index: var(--sl-z-index-tooltip); + left: 0; + border-radius: var(--sl-tooltip-border-radius); + background-color: var(--sl-tooltip-background-color); + font-family: var(--sl-tooltip-font-family); + font-size: var(--sl-tooltip-font-size); + font-weight: var(--sl-tooltip-font-weight); + line-height: var(--sl-tooltip-line-height); + color: var(--sl-tooltip-color); + opacity: 0; + padding: var(--sl-tooltip-padding); + transition: var(--sl-transition-fast) opacity; + pointer-events: none; + } + + .range__tooltip:after { + content: ''; + position: absolute; + width: 0; + height: 0; + left: 50%; + translate: calc(-1 * var(--sl-tooltip-arrow-size)); + } + + .range--tooltip-visible .range__tooltip { + opacity: 1; + } + + /* Tooltip on top */ + .range--tooltip-top .range__tooltip { + top: calc(-1 * var(--thumb-size) - var(--tooltip-offset)); + } + + .range--tooltip-top .range__tooltip:after { + border-top: var(--sl-tooltip-arrow-size) solid var(--sl-tooltip-background-color); + border-left: var(--sl-tooltip-arrow-size) solid transparent; + border-right: var(--sl-tooltip-arrow-size) solid transparent; + top: 100%; + } + + /* Tooltip on bottom */ + .range--tooltip-bottom .range__tooltip { + bottom: calc(-1 * var(--thumb-size) - var(--tooltip-offset)); + } + + .range--tooltip-bottom .range__tooltip:after { + border-bottom: var(--sl-tooltip-arrow-size) solid var(--sl-tooltip-background-color); + border-left: var(--sl-tooltip-arrow-size) solid transparent; + border-right: var(--sl-tooltip-arrow-size) solid transparent; + bottom: 100%; + } + + @media (forced-colors: active) { + .range__control, + .range__tooltip { + border: solid 1px transparent; + } + + .range__control::-webkit-slider-thumb { + border: solid 1px transparent; + } + + .range__control::-moz-range-thumb { + border: solid 1px transparent; + } + + .range__tooltip:after { + display: none; + } + } +`,defaultValue=(D="value")=>(O,z)=>{const F=O.constructor,Y=F.prototype.attributeChangedCallback;F.prototype.attributeChangedCallback=function(W,q,X){var tt;const nt=F.getPropertyOptions(D),st=typeof nt.attribute=="string"?nt.attribute:D;if(W===st){const ct=nt.converter||u$2,ht=(typeof ct=="function"?ct:(tt=ct==null?void 0:ct.fromAttribute)!=null?tt:u$2.fromAttribute)(X,nt.type);this[D]!==ht&&(this[z]=ht)}Y.call(this,W,q,X)}},formCollections=new WeakMap,reportValidityOverloads=new WeakMap,userInteractedControls=new WeakSet,interactions=new WeakMap,FormControlController=class{constructor(D,O){this.handleFormData=z=>{const F=this.options.disabled(this.host),Y=this.options.name(this.host),W=this.options.value(this.host),q=this.host.tagName.toLowerCase()==="sl-button";!F&&!q&&typeof Y=="string"&&Y.length>0&&typeof W<"u"&&(Array.isArray(W)?W.forEach(X=>{z.formData.append(Y,X.toString())}):z.formData.append(Y,W.toString()))},this.handleFormSubmit=z=>{var F;const Y=this.options.disabled(this.host),W=this.options.reportValidity;this.form&&!this.form.noValidate&&((F=formCollections.get(this.form))==null||F.forEach(q=>{this.setUserInteracted(q,!0)})),this.form&&!this.form.noValidate&&!Y&&!W(this.host)&&(z.preventDefault(),z.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),interactions.set(this.host,[])},this.handleInteraction=z=>{const F=interactions.get(this.host);F.includes(z.type)||F.push(z.type),F.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const z=this.form.querySelectorAll("*");for(const F of z)if(typeof F.reportValidity=="function"&&!F.reportValidity())return!1}return!0},(this.host=D).addController(this),this.options=__spreadValues({form:z=>{if(z.hasAttribute("form")&&z.getAttribute("form")!==""){const F=z.getRootNode(),Y=z.getAttribute("form");if(Y)return F.getElementById(Y)}return z.closest("form")},name:z=>z.name,value:z=>z.value,defaultValue:z=>z.defaultValue,disabled:z=>{var F;return(F=z.disabled)!=null?F:!1},reportValidity:z=>typeof z.reportValidity=="function"?z.reportValidity():!0,setValue:(z,F)=>z.value=F,assumeInteractionOn:["sl-input"]},O)}hostConnected(){const D=this.options.form(this.host);D&&this.attachForm(D),interactions.set(this.host,[]),this.options.assumeInteractionOn.forEach(O=>{this.host.addEventListener(O,this.handleInteraction)})}hostDisconnected(){this.detachForm(),interactions.delete(this.host),this.options.assumeInteractionOn.forEach(D=>{this.host.removeEventListener(D,this.handleInteraction)})}hostUpdated(){const D=this.options.form(this.host);D||this.detachForm(),D&&this.form!==D&&(this.detachForm(),this.attachForm(D)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(D){D?(this.form=D,formCollections.has(this.form)?formCollections.get(this.form).add(this.host):formCollections.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),reportValidityOverloads.has(this.form)||(reportValidityOverloads.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var D;this.form&&((D=formCollections.get(this.form))==null||D.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),reportValidityOverloads.has(this.form)&&(this.form.reportValidity=reportValidityOverloads.get(this.form),reportValidityOverloads.delete(this.form))),this.form=void 0}setUserInteracted(D,O){O?userInteractedControls.add(D):userInteractedControls.delete(D),D.requestUpdate()}doAction(D,O){if(this.form){const z=document.createElement("button");z.type=D,z.style.position="absolute",z.style.width="0",z.style.height="0",z.style.clipPath="inset(50%)",z.style.overflow="hidden",z.style.whiteSpace="nowrap",O&&(z.name=O.name,z.value=O.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(F=>{O.hasAttribute(F)&&z.setAttribute(F,O.getAttribute(F))})),this.form.append(z),z.click(),z.remove()}}getForm(){var D;return(D=this.form)!=null?D:null}reset(D){this.doAction("reset",D)}submit(D){this.doAction("submit",D)}setValidity(D){const O=this.host,z=!!userInteractedControls.has(O),F=!!O.required;O.toggleAttribute("data-required",F),O.toggleAttribute("data-optional",!F),O.toggleAttribute("data-invalid",!D),O.toggleAttribute("data-valid",D),O.toggleAttribute("data-user-invalid",!D&&z),O.toggleAttribute("data-user-valid",D&&z)}updateValidity(){const D=this.host;this.setValidity(D.validity.valid)}emitInvalidEvent(D){const O=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});D||O.preventDefault(),this.host.dispatchEvent(O)||D==null||D.preventDefault()}},validValidityState=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1});Object.freeze(__spreadProps(__spreadValues({},validValidityState),{valid:!1,valueMissing:!0}));Object.freeze(__spreadProps(__spreadValues({},validValidityState),{valid:!1,customError:!0}));var HasSlotController=class{constructor(D,...O){this.slotNames=[],this.handleSlotChange=z=>{const F=z.target;(this.slotNames.includes("[default]")&&!F.name||F.name&&this.slotNames.includes(F.name))&&this.host.requestUpdate()},(this.host=D).addController(this),this.slotNames=O}hasDefaultSlot(){return[...this.host.childNodes].some(D=>{if(D.nodeType===D.TEXT_NODE&&D.textContent.trim()!=="")return!0;if(D.nodeType===D.ELEMENT_NODE){const O=D;if(O.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!O.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(D){return this.host.querySelector(`:scope > [slot="${D}"]`)!==null}test(D){return D==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(D)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}};const connectedElements=new Set,documentElementObserver=new MutationObserver(update),translations=new Map;let documentDirection=document.documentElement.dir||"ltr",documentLanguage=document.documentElement.lang||navigator.language,fallback;documentElementObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});function registerTranslation(...D){D.map(O=>{const z=O.$code.toLowerCase();translations.has(z)?translations.set(z,Object.assign(Object.assign({},translations.get(z)),O)):translations.set(z,O),fallback||(fallback=O)}),update()}function update(){documentDirection=document.documentElement.dir||"ltr",documentLanguage=document.documentElement.lang||navigator.language,[...connectedElements.keys()].map(D=>{typeof D.requestUpdate=="function"&&D.requestUpdate()})}let LocalizeController$1=class{constructor(O){this.host=O,this.host.addController(this)}hostConnected(){connectedElements.add(this.host)}hostDisconnected(){connectedElements.delete(this.host)}dir(){return`${this.host.dir||documentDirection}`.toLowerCase()}lang(){return`${this.host.lang||documentLanguage}`.toLowerCase()}getTranslationData(O){var z,F;const Y=new Intl.Locale(O.replace(/_/g,"-")),W=Y==null?void 0:Y.language.toLowerCase(),q=(F=(z=Y==null?void 0:Y.region)===null||z===void 0?void 0:z.toLowerCase())!==null&&F!==void 0?F:"",X=translations.get(`${W}-${q}`),tt=translations.get(W);return{locale:Y,language:W,region:q,primary:X,secondary:tt}}exists(O,z){var F;const{primary:Y,secondary:W}=this.getTranslationData((F=z.lang)!==null&&F!==void 0?F:this.lang());return z=Object.assign({includeFallback:!1},z),!!(Y&&Y[O]||W&&W[O]||z.includeFallback&&fallback&&fallback[O])}term(O,...z){const{primary:F,secondary:Y}=this.getTranslationData(this.lang());let W;if(F&&F[O])W=F[O];else if(Y&&Y[O])W=Y[O];else if(fallback&&fallback[O])W=fallback[O];else return console.error(`No translation found for: ${String(O)}`),String(O);return typeof W=="function"?W(...z):W}date(O,z){return O=new Date(O),new Intl.DateTimeFormat(this.lang(),z).format(O)}number(O,z){return O=Number(O),isNaN(O)?"":new Intl.NumberFormat(this.lang(),z).format(O)}relativeTime(O,z,F){return new Intl.RelativeTimeFormat(this.lang(),F).format(O,z)}};var LocalizeController=class extends LocalizeController$1{};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const t$2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$3=D=>(...O)=>({_$litDirective$:D,values:O});let i$2=class{constructor(O){}get _$AU(){return this._$AM._$AU}_$AT(O,z,F){this._$Ct=O,this._$AM=z,this._$Ci=F}_$AS(O,z){return this.update(O,z)}update(O,z){return this.render(...z)}};/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const e$2=e$3(class extends i$2{constructor(D){var O;if(super(D),D.type!==t$2.ATTRIBUTE||D.name!=="class"||((O=D.strings)==null?void 0:O.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(D){return" "+Object.keys(D).filter(O=>D[O]).join(" ")+" "}update(D,[O]){var F,Y;if(this.it===void 0){this.it=new Set,D.strings!==void 0&&(this.st=new Set(D.strings.join(" ").split(/\s/).filter(W=>W!=="")));for(const W in O)O[W]&&!((F=this.st)!=null&&F.has(W))&&this.it.add(W);return this.render(O)}const z=D.element.classList;for(const W of this.it)W in O||(z.remove(W),this.it.delete(W));for(const W in O){const q=!!O[W];q===this.it.has(W)||(Y=this.st)!=null&&Y.has(W)||(q?(z.add(W),this.it.add(W)):(z.remove(W),this.it.delete(W)))}return w$1}});/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const o$4=D=>D??T;/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const l$1=e$3(class extends i$2{constructor(D){if(super(D),D.type!==t$2.PROPERTY&&D.type!==t$2.ATTRIBUTE&&D.type!==t$2.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!f$1(D))throw Error("`live` bindings can only contain a single expression")}render(D){return D}update(D,[O]){if(O===w$1||O===T)return O;const z=D.element,F=D.name;if(D.type===t$2.PROPERTY){if(O===z[F])return w$1}else if(D.type===t$2.BOOLEAN_ATTRIBUTE){if(!!O===z.hasAttribute(F))return w$1}else if(D.type===t$2.ATTRIBUTE&&z.getAttribute(F)===O+"")return w$1;return m(D),O}});var SlRange=class extends ShoelaceElement{constructor(){super(...arguments),this.formControlController=new FormControlController(this),this.hasSlotController=new HasSlotController(this,"help-text","label"),this.localize=new LocalizeController(this),this.hasFocus=!1,this.hasTooltip=!1,this.title="",this.name="",this.value=0,this.label="",this.helpText="",this.disabled=!1,this.min=0,this.max=100,this.step=1,this.tooltip="top",this.tooltipFormatter=D=>D.toString(),this.form="",this.defaultValue=0}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.syncRange()),this.valuethis.max&&(this.value=this.max),this.updateComplete.then(()=>{this.syncRange(),this.resizeObserver.observe(this.input)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.input)}handleChange(){this.emit("sl-change")}handleInput(){this.value=parseFloat(this.input.value),this.emit("sl-input"),this.syncRange()}handleBlur(){this.hasFocus=!1,this.hasTooltip=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.hasTooltip=!0,this.emit("sl-focus")}handleThumbDragStart(){this.hasTooltip=!0}handleThumbDragEnd(){this.hasTooltip=!1}syncProgress(D){this.input.style.setProperty("--percent",`${D*100}%`)}syncTooltip(D){if(this.output!==null){const O=this.input.offsetWidth,z=this.output.offsetWidth,F=getComputedStyle(this.input).getPropertyValue("--thumb-size"),Y=this.localize.dir()==="rtl",W=O*D;if(Y){const q=`${O-W}px + ${D} * ${F}`;this.output.style.translate=`calc((${q} - ${z/2}px - ${F} / 2))`}else{const q=`${W}px - ${D} * ${F}`;this.output.style.translate=`calc(${q} - ${z/2}px + ${F} / 2)`}}}handleValueChange(){this.formControlController.updateValidity(),this.input.value=this.value.toString(),this.value=parseFloat(this.input.value),this.syncRange()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}syncRange(){const D=Math.max(0,(this.value-this.min)/(this.max-this.min));this.syncProgress(D),this.tooltip!=="none"&&this.syncTooltip(D)}handleInvalid(D){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(D)}focus(D){this.input.focus(D)}blur(){this.input.blur()}stepUp(){this.input.stepUp(),this.value!==Number(this.input.value)&&(this.value=Number(this.input.value))}stepDown(){this.input.stepDown(),this.value!==Number(this.input.value)&&(this.value=Number(this.input.value))}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(D){this.input.setCustomValidity(D),this.formControlController.updateValidity()}render(){const D=this.hasSlotController.test("label"),O=this.hasSlotController.test("help-text"),z=this.label?!0:!!D,F=this.helpText?!0:!!O;return x$1` +
+ + +
+
+ + ${this.tooltip!=="none"&&!this.disabled?x$1` + + ${typeof this.tooltipFormatter=="function"?this.tooltipFormatter(this.value):this.value} + + `:""} +
+
+ +
+ ${this.helpText} +
+
+ `}};SlRange.styles=range_styles_default;__decorateClass([e$5(".range__control")],SlRange.prototype,"input",2);__decorateClass([e$5(".range__tooltip")],SlRange.prototype,"output",2);__decorateClass([r$2()],SlRange.prototype,"hasFocus",2);__decorateClass([r$2()],SlRange.prototype,"hasTooltip",2);__decorateClass([n$3()],SlRange.prototype,"title",2);__decorateClass([n$3()],SlRange.prototype,"name",2);__decorateClass([n$3({type:Number})],SlRange.prototype,"value",2);__decorateClass([n$3()],SlRange.prototype,"label",2);__decorateClass([n$3({attribute:"help-text"})],SlRange.prototype,"helpText",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlRange.prototype,"disabled",2);__decorateClass([n$3({type:Number})],SlRange.prototype,"min",2);__decorateClass([n$3({type:Number})],SlRange.prototype,"max",2);__decorateClass([n$3({type:Number})],SlRange.prototype,"step",2);__decorateClass([n$3()],SlRange.prototype,"tooltip",2);__decorateClass([n$3({attribute:!1})],SlRange.prototype,"tooltipFormatter",2);__decorateClass([n$3({reflect:!0})],SlRange.prototype,"form",2);__decorateClass([defaultValue()],SlRange.prototype,"defaultValue",2);__decorateClass([t$3({passive:!0})],SlRange.prototype,"handleThumbDragStart",1);__decorateClass([watch("value",{waitUntilFirstUpdate:!0})],SlRange.prototype,"handleValueChange",1);__decorateClass([watch("disabled",{waitUntilFirstUpdate:!0})],SlRange.prototype,"handleDisabledChange",1);__decorateClass([watch("hasTooltip",{waitUntilFirstUpdate:!0})],SlRange.prototype,"syncRange",1);SlRange.define("sl-range");var translation={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(D,O)=>`Go to slide ${D} of ${O}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:D=>D===0?"No options selected":D===1?"1 option selected":`${D} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:D=>`Slide ${D}`,toggleColorFormat:"Toggle color format"};registerTranslation(translation);(function(D,O){typeof exports=="object"&&typeof module<"u"?O(exports):typeof define=="function"&&define.amd?define(["exports"],O):O((D=typeof globalThis<"u"?globalThis:D||self).turf={})})(globalThis,function(D){var O=63710088e-1,z={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*O,kilometers:6371.0088,kilometres:6371.0088,meters:O,metres:O,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:O/1852,radians:1,yards:6967335223679999e-9},F={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/O,yards:1.0936133},Y={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function W(B,U,G){G===void 0&&(G={});var Q={type:"Feature"};return(G.id===0||G.id)&&(Q.id=G.id),G.bbox&&(Q.bbox=G.bbox),Q.properties=U||{},Q.geometry=B,Q}function q(B,U,G){switch(B){case"Point":return X(U).geometry;case"LineString":return ct(U).geometry;case"Polygon":return nt(U).geometry;case"MultiPoint":return wt(U).geometry;case"MultiLineString":return bt(U).geometry;case"MultiPolygon":return mt(U).geometry;default:throw new Error(B+" is invalid")}}function X(B,U,G){if(G===void 0&&(G={}),!B)throw new Error("coordinates is required");if(!Array.isArray(B))throw new Error("coordinates must be an Array");if(B.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Xt(B[0])||!Xt(B[1]))throw new Error("coordinates must contain numbers");return W({type:"Point",coordinates:B},U,G)}function tt(B,U,G){return G===void 0&&(G={}),ht(B.map(function(Q){return X(Q,U)}),G)}function nt(B,U,G){G===void 0&&(G={});for(var Q=0,J=B;Q=0))throw new Error("precision must be a positive number");var G=Math.pow(10,U||0);return Math.round(B*G)/G}function At(B,U){U===void 0&&(U="kilometers");var G=z[U];if(!G)throw new Error(U+" units is invalid");return B*G}function Ct(B,U){U===void 0&&(U="kilometers");var G=z[U];if(!G)throw new Error(U+" units is invalid");return B/G}function Ft(B,U){return Yt(Ct(B,U))}function Lt(B){var U=B%360;return U<0&&(U+=360),U}function Yt(B){return 180*(B%(2*Math.PI))/Math.PI}function Ht(B){return B%360*Math.PI/180}function qt(B,U,G){if(U===void 0&&(U="kilometers"),G===void 0&&(G="kilometers"),!(B>=0))throw new Error("length must be a positive number");return At(Ct(B,U),G)}function te(B,U,G){if(U===void 0&&(U="meters"),G===void 0&&(G="kilometers"),!(B>=0))throw new Error("area must be a positive number");var Q=Y[U];if(!Q)throw new Error("invalid original units");var J=Y[G];if(!J)throw new Error("invalid final units");return B/Q*J}function Xt(B){return!isNaN(B)&&B!==null&&!Array.isArray(B)}function Dt(B){return!!B&&B.constructor===Object}function Qt(B){if(!B)throw new Error("bbox is required");if(!Array.isArray(B))throw new Error("bbox must be an Array");if(B.length!==4&&B.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");B.forEach(function(U){if(!Xt(U))throw new Error("bbox must only contain numbers")})}function Nt(B){if(!B)throw new Error("id is required");if(["string","number"].indexOf(typeof B)===-1)throw new Error("id must be a number or a string")}var ce=Object.freeze({__proto__:null,earthRadius:O,factors:z,unitsFactors:F,areaFactors:Y,feature:W,geometry:q,point:X,points:tt,polygon:nt,polygons:st,lineString:ct,lineStrings:lt,featureCollection:ht,multiLineString:bt,multiPoint:wt,multiPolygon:mt,geometryCollection:_t,round:Et,radiansToLength:At,lengthToRadians:Ct,lengthToDegrees:Ft,bearingToAzimuth:Lt,radiansToDegrees:Yt,degreesToRadians:Ht,convertLength:qt,convertArea:te,isNumber:Xt,isObject:Dt,validateBBox:Qt,validateId:Nt});function Pt(B,U,G){if(B!==null)for(var Q,J,rt,at,ft,yt,vt,Tt,xt=0,It=0,Gt=B.type,Wt=Gt==="FeatureCollection",ee=Gt==="Feature",Bt=Wt?B.features.length:1,me=0;meyt||Wt>vt||ee>Tt)return ft=xt,yt=Q,vt=Wt,Tt=ee,void(rt=0);var Bt=ct([ft,xt],G.properties);if(U(Bt,Q,J,ee,rt)===!1)return!1;rt++,ft=xt})!==!1&&void 0}}})}function Me(B,U,G){var Q=G,J=!1;return we(B,function(rt,at,ft,yt,vt){Q=J===!1&&G===void 0?rt:U(Q,rt,at,ft,yt,vt),J=!0}),Q}function He(B,U){if(!B)throw new Error("geojson is required");qe(B,function(G,Q,J){if(G.geometry!==null){var rt=G.geometry.type,at=G.geometry.coordinates;switch(rt){case"LineString":if(U(G,Q,J,0,0)===!1)return!1;break;case"Polygon":for(var ft=0;ftG[0]&&(U[0]=G[0]),U[1]>G[1]&&(U[1]=G[1]),U[2]=2&&!Array.isArray(B[0])&&!Array.isArray(B[1]))return B;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function oe(B){if(Array.isArray(B))return B;if(B.type==="Feature"){if(B.geometry!==null)return B.geometry.coordinates}else if(B.coordinates)return B.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Vt(B){if(B.length>1&&Xt(B[0])&&Xt(B[1]))return!0;if(Array.isArray(B[0])&&B[0].length)return Vt(B[0]);throw new Error("coordinates must only contain numbers")}function Be(B,U,G){if(!U||!G)throw new Error("type and name required");if(!B||B.type!==U)throw new Error("Invalid input to "+G+": must be a "+U+", given "+B.type)}function ge(B,U,G){if(!B)throw new Error("No feature passed");if(!G)throw new Error(".featureOf() requires a name");if(!B||B.type!=="Feature"||!B.geometry)throw new Error("Invalid input to "+G+", Feature with geometry required");if(!B.geometry||B.geometry.type!==U)throw new Error("Invalid input to "+G+": must be a "+U+", given "+B.geometry.type)}function Pe(B,U,G){if(!B)throw new Error("No featureCollection passed");if(!G)throw new Error(".collectionOf() requires a name");if(!B||B.type!=="FeatureCollection")throw new Error("Invalid input to "+G+", FeatureCollection required");for(var Q=0,J=B.features;Q + * v. 1.2.0 + * https://github.com/RaumZeit/MarchingSquares.js + * + * MarchingSquaresJS is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * MarchingSquaresJS is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * As additional permission under GNU Affero General Public License version 3 + * section 7, third-party projects (personal or commercial) may distribute, + * include, or link against UNMODIFIED VERSIONS of MarchingSquaresJS without the + * requirement that said third-party project for that reason alone becomes + * subject to any requirement of the GNU Affero General Public License version 3. + * Any modifications to MarchingSquaresJS, however, must be shared with the public + * and made available. + * + * In summary this: + * - allows you to use MarchingSquaresJS at no cost + * - allows you to use MarchingSquaresJS for both personal and commercial purposes + * - allows you to distribute UNMODIFIED VERSIONS of MarchingSquaresJS under any + * license as long as this license notice is included + * - enables you to keep the source code of your program that uses MarchingSquaresJS + * undisclosed + * - forces you to share any modifications you have made to MarchingSquaresJS, + * e.g. bug-fixes + * + * You should have received a copy of the GNU Affero General Public License + * along with MarchingSquaresJS. If not, see . + */function Jn(B,U,G){G=G||{};for(var Q=Object.keys(Pn),J=0;J=0&&gr>=0&&gr=0;fe--)if(Math.abs(vt[fe][0][0]-Ie)<=xt&&Math.abs(vt[fe][0][1]-Zt)<=xt){for(var be=Bt.path.length-2;be>=0;--be)vt[fe].unshift(Bt.path[be]);me=!0;break}}me||(vt[Tt++]=Bt.path)}var Ee})}),vt}(function(yt,vt){for(var Tt=yt.length-1,xt=yt[0].length-1,It={rows:Tt,cols:xt,cells:[]},Gt=0;Gt=vt?8:0,ee|=me>=vt?4:0,ee|=Ie>=vt?2:0;var fe,be,Ee,_e,wn=!1;if((ee|=Zt>=vt?1:0)===5||ee===10){var cn=(Bt+me+Ie+Zt)/4;ee===5&&cnG;){if(Q-G>600){var rt=Q-G+1,at=U-G+1,ft=Math.log(rt),yt=.5*Math.exp(2*ft/3),vt=.5*Math.sqrt(ft*yt*(rt-yt)/rt)*(at-rt/2<0?-1:1);vn(B,U,Math.max(G,Math.floor(U-at*yt/rt+vt)),Math.min(Q,Math.floor(U+(rt-at)*yt/rt+vt)),J)}var Tt=B[U],xt=G,It=Q;for(Ge(B,G,U),J(B[Q],Tt)>0&&Ge(B,G,Q);xt0;)It--}J(B[G],Tt)===0?Ge(B,G,It):Ge(B,++It,Q),It<=U&&(G=It+1),U<=It&&(Q=It-1)}}function Ge(B,U,G){var Q=B[U];B[U]=B[G],B[G]=Q}function Dn(B,U){return BU?1:0}xe.default=Ae;var en=$n,Fn=$n;function $n(B,U){if(!(this instanceof $n))return new $n(B,U);this._maxEntries=Math.max(4,B||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),U&&this._initFormat(U),this.clear()}function Kn(B,U,G){if(!G)return U.indexOf(B);for(var Q=0;Q=B.minX&&U.maxY>=B.minY}function Cr(B){return{children:B,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function go(B,U,G,Q,J){for(var rt,at=[U,G];at.length;)(G=at.pop())-(U=at.pop())<=Q||(rt=U+Math.ceil((G-U)/Q/2)*Q,xe(B,rt,U,G,J),at.push(U,rt,rt,G))}function Un(B){var U={exports:{}};return B(U,U.exports),U.exports}$n.prototype={all:function(){return this._all(this.data,[])},search:function(B){var U=this.data,G=[],Q=this.toBBox;if(!tr(B,U))return G;for(var J,rt,at,ft,yt=[];U;){for(J=0,rt=U.children.length;J=0&&rt[U].children.length>this._maxEntries;)this._split(rt,U),U--;this._adjustParentBBoxes(J,rt,U)},_split:function(B,U){var G=B[U],Q=G.children.length,J=this._minEntries;this._chooseSplitAxis(G,J,Q);var rt=this._chooseSplitIndex(G,J,Q),at=Cr(G.children.splice(rt,G.children.length-rt));at.height=G.height,at.leaf=G.leaf,Wn(G,this.toBBox),Wn(at,this.toBBox),U?B[U-1].children.push(at):this._splitRoot(G,at)},_splitRoot:function(B,U){this.data=Cr([B,U]),this.data.height=B.height+1,this.data.leaf=!1,Wn(this.data,this.toBBox)},_chooseSplitIndex:function(B,U,G){var Q,J,rt,at,ft,yt,vt,Tt,xt,It,Gt,Wt,ee,Bt;for(yt=vt=1/0,Q=U;Q<=G-U;Q++)J=mr(B,0,Q,this.toBBox),rt=mr(B,Q,G,this.toBBox),xt=J,It=rt,Gt=void 0,Wt=void 0,ee=void 0,Bt=void 0,Gt=Math.max(xt.minX,It.minX),Wt=Math.max(xt.minY,It.minY),ee=Math.min(xt.maxX,It.maxX),Bt=Math.min(xt.maxY,It.maxY),at=Math.max(0,ee-Gt)*Math.max(0,Bt-Wt),ft=Dr(J)+Dr(rt),at=U;J--)rt=B.children[J],ir(yt,B.leaf?at(rt):rt),vt+=Fo(yt);return vt},_adjustParentBBoxes:function(B,U,G){for(var Q=G;Q>=0;Q--)ir(U[Q],B)},_condense:function(B){for(var U,G=B.length-1;G>=0;G--)B[G].children.length===0?G>0?(U=B[G-1].children).splice(U.indexOf(B[G]),1):this.clear():Wn(B[G],this.toBBox)},_initFormat:function(B){var U=["return a"," - b",";"];this.compareMinX=new Function("a","b",U.join(B[0])),this.compareMinY=new Function("a","b",U.join(B[1])),this.toBBox=new Function("a","return {minX: a"+B[0]+", minY: a"+B[1]+", maxX: a"+B[2]+", maxY: a"+B[3]+"};")}},en.default=Fn;var zi=function(B,U,G){var Q=B*U,J=uo*B,rt=J-(J-B),at=B-rt,ft=uo*U,yt=ft-(ft-U),vt=U-yt,Tt=at*vt-(Q-rt*yt-at*yt-rt*vt);return G?(G[0]=Tt,G[1]=Q,G):[Tt,Q]},uo=+(Math.pow(2,27)+1),io=function(B,U){var G=0|B.length,Q=0|U.length;if(G===1&&Q===1)return function(Ee,_e){var wn=Ee+_e,cn=wn-Ee,Tn=Ee-(wn-cn)+(_e-cn);return Tn?[Tn,wn]:[wn]}(B[0],U[0]);var J,rt,at=new Array(G+Q),ft=0,yt=0,vt=0,Tt=Math.abs,xt=B[yt],It=Tt(xt),Gt=U[vt],Wt=Tt(Gt);It=Q?(J=xt,(yt+=1)=Q?(J=xt,(yt+=1)>1;return["sum(",G(vt.slice(0,Tt)),",",G(vt.slice(Tt)),")"].join("")}function Q(vt){if(vt.length===2)return[["sum(prod(",vt[0][0],",",vt[1][1],"),prod(-",vt[0][1],",",vt[1][0],"))"].join("")];for(var Tt=[],xt=0;xt0){if(Wt<=0)return ee;It=Gt+Wt}else{if(!(Gt<0)||Wt>=0)return ee;It=-(Gt+Wt)}var Bt=33306690738754716e-32*It;return ee>=Bt||ee<=-Bt?ee:rt(vt,Tt,xt)},function(vt,Tt,xt,It){var Gt=vt[0]-It[0],Wt=Tt[0]-It[0],ee=xt[0]-It[0],Bt=vt[1]-It[1],me=Tt[1]-It[1],Ie=xt[1]-It[1],Zt=vt[2]-It[2],fe=Tt[2]-It[2],be=xt[2]-It[2],Ee=Wt*Ie,_e=ee*me,wn=ee*Bt,cn=Gt*Ie,Tn=Gt*me,dn=Wt*Bt,An=Zt*(Ee-_e)+fe*(wn-cn)+be*(Tn-dn),yn=7771561172376103e-31*((Math.abs(Ee)+Math.abs(_e))*Math.abs(Zt)+(Math.abs(wn)+Math.abs(cn))*Math.abs(fe)+(Math.abs(Tn)+Math.abs(dn))*Math.abs(be));return An>yn||-An>yn?An:at(vt,Tt,xt,It)}];function yt(vt){var Tt=ft[vt.length];return Tt||(Tt=ft[vt.length]=J(vt.length)),Tt.apply(void 0,vt)}(function(){for(;ft.length<=5;)ft.push(J(ft.length));for(var vt=[],Tt=["slow"],xt=0;xt<=5;++xt)vt.push("a"+xt),Tt.push("o"+xt);var It=["function getOrientation(",vt.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(xt=2;xt<=5;++xt)It.push("case ",xt,":return o",xt,"(",vt.slice(0,xt).join(),");");It.push("}var s=new Array(arguments.length);for(var i=0;i1&&In(B[rt[vt-2]],B[rt[vt-1]],yt)<=0;)vt-=1,rt.pop();for(rt.push(ft),vt=at.length;vt>1&&In(B[at[vt-2]],B[at[vt-1]],yt)>=0;)vt-=1,at.pop();at.push(ft)}G=new Array(at.length+rt.length-2);for(var Tt=0,xt=(Q=0,rt.length);Q0;--It)G[Tt++]=at[It];return G},In=je[3],Hn=Or,Er=Or;function Or(B,U){if(!(this instanceof Or))return new Or(B,U);if(this.data=B||[],this.length=this.data.length,this.compare=U||ci,this.length>0)for(var G=(this.length>>1)-1;G>=0;G--)this._down(G)}function ci(B,U){return BU?1:0}Or.prototype={push:function(B){this.data.push(B),this.length++,this._up(this.length-1)},pop:function(){if(this.length!==0){var B=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),B}},peek:function(){return this.data[0]},_up:function(B){for(var U=this.data,G=this.compare,Q=U[B];B>0;){var J=B-1>>1,rt=U[J];if(G(Q,rt)>=0)break;U[B]=rt,B=J}U[B]=Q},_down:function(B){for(var U=this.data,G=this.compare,Q=this.length>>1,J=U[B];B=0)break;U[B]=ft,B=rt}U[B]=J}},Hn.default=Er;var Si=function(B,U){for(var G=B[0],Q=B[1],J=!1,rt=0,at=U.length-1;rtQ!=Tt>Q&&G<(vt-ft)*(Q-yt)/(Tt-yt)+ft&&(J=!J)}return J},si=je[3],mo=Uo,Co=Uo;function Uo(B,U,G){U=Math.max(0,U===void 0?2:U),G=G||0;for(var Q,J=function(Ie){for(var Zt=Ie[0],fe=Ie[0],be=Ie[0],Ee=Ie[0],_e=0;_ebe[0]&&(be=wn),wn[1]Ee[1]&&(Ee=wn)}var cn=[Zt,fe,be,Ee],Tn=cn.slice();for(_e=0;_ert||ft.push({node:Tt,dist:xt})}for(;ft.length&&!ft.peek().node.children;){var It=ft.pop(),Gt=It.node,Wt=Do(Gt,U,G),ee=Do(Gt,Q,J);if(It.dist=U.minX&&B[0]<=U.maxX&&B[1]>=U.minY&&B[1]<=U.maxY}function Nr(B,U,G){for(var Q,J,rt,at,ft=Math.min(B[0],U[0]),yt=Math.min(B[1],U[1]),vt=Math.max(B[0],U[0]),Tt=Math.max(B[1],U[1]),xt=G.search({minX:ft,minY:yt,maxX:vt,maxY:Tt}),It=0;It0!=si(Q,J,at)>0&&si(rt,at,Q)>0!=si(rt,at,J)>0)return!1;return!0}function Xe(B){var U=B.p,G=B.next.p;return B.minX=Math.min(U[0],G[0]),B.minY=Math.min(U[1],G[1]),B.maxX=Math.max(U[0],G[0]),B.maxY=Math.max(U[1],G[1]),B}function xs(B,U){var G={p:B,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return U?(G.next=U.next,G.prev=U,U.next.prev=G,U.next=G):(G.prev=G,G.next=G),G}function an(B,U){var G=B[0]-U[0],Q=B[1]-U[1];return G*G+Q*Q}function Do(B,U,G){var Q=U[0],J=U[1],rt=G[0]-Q,at=G[1]-J;if(rt!==0||at!==0){var ft=((B[0]-Q)*rt+(B[1]-J)*at)/(rt*rt+at*at);ft>1?(Q=G[0],J=G[1]):ft>0&&(Q+=rt*ft,J+=at*ft)}return(rt=B[0]-Q)*rt+(at=B[1]-J)*at}function Ka(B,U,G,Q,J,rt,at,ft){var yt,vt,Tt,xt,It=G-B,Gt=Q-U,Wt=at-J,ee=ft-rt,Bt=B-J,me=U-rt,Ie=It*It+Gt*Gt,Zt=It*Wt+Gt*ee,fe=Wt*Wt+ee*ee,be=It*Bt+Gt*me,Ee=Wt*Bt+ee*me,_e=Ie*fe-Zt*Zt,wn=_e,cn=_e;_e===0?(vt=0,wn=1,xt=Ee,cn=fe):(xt=Ie*Ee-Zt*be,(vt=Zt*Ee-fe*be)<0?(vt=0,xt=Ee,cn=fe):vt>wn&&(vt=wn,xt=Ee+Zt,cn=fe)),xt<0?(xt=0,-be<0?vt=0:-be>Ie?vt=wn:(vt=-be,wn=Ie)):xt>cn&&(xt=cn,-be+Zt<0?vt=0:-be+Zt>Ie?vt=wn:(vt=-be+Zt,wn=Ie));var Tn=(1-(Tt=xt===0?0:xt/cn))*J+Tt*at-((1-(yt=vt===0?0:vt/wn))*B+yt*G),dn=(1-Tt)*rt+Tt*ft-((1-yt)*U+yt*Q);return Tn*Tn+dn*dn}function ei(B,U){U===void 0&&(U={}),U.concavity=U.concavity||1/0;var G=[];if(Pt(B,function(J){G.push([J[0],J[1]])}),!G.length)return null;var Q=mo(G,U.concavity);return Q.length>3?nt([Q]):null}function Pr(B,U,G){if(G===void 0&&(G={}),!B)throw new Error("point is required");if(!U)throw new Error("polygon is required");var Q=$t(B),J=ke(U),rt=J.type,at=U.bbox,ft=J.coordinates;if(at&&function(It,Gt){return Gt[0]<=It[0]&&Gt[1]<=It[1]&&Gt[2]>=It[0]&&Gt[3]>=It[1]}(Q,at)===!1)return!1;rt==="Polygon"&&(ft=[ft]);for(var yt=!1,vt=0;vtB[1]!=vt>B[1]&&B[0]<(yt-at)*(B[1]-ft)/(vt-ft)+at&&(Q=!Q)}return Q}function ur(B,U){var G=[];return ve(B,function(Q){var J=!1;if(Q.geometry.type==="Point")Oe(U,function(at){Pr(Q,at)&&(J=!0)}),J&&G.push(Q);else{if(Q.geometry.type!=="MultiPoint")throw new Error("Input geometry must be a Point or MultiPoint");var rt=[];Oe(U,function(at){Pt(Q,function(ft){Pr(ft,at)&&(J=!0,rt.push(ft))})}),J&&G.push(wt(rt))}}),ht(G)}function Yr(B,U,G){G===void 0&&(G={});var Q=$t(B),J=$t(U),rt=Ht(J[1]-Q[1]),at=Ht(J[0]-Q[0]),ft=Ht(Q[1]),yt=Ht(J[1]),vt=Math.pow(Math.sin(rt/2),2)+Math.pow(Math.sin(at/2),2)*Math.cos(ft)*Math.cos(yt);return At(2*Math.atan2(Math.sqrt(vt),Math.sqrt(1-vt)),G.units)}function Qs(B,U){var G=!1;return ht(function(Q){if(Q.length<3)return[];Q.sort(_a);for(var J,rt,at,ft,yt,vt,Tt=Q.length-1,xt=Q[Tt].x,It=Q[0].x,Gt=Q[Tt].y,Wt=Gt,ee=1e-12;Tt--;)Q[Tt].yWt&&(Wt=Q[Tt].y);var Bt,me=It-xt,Ie=Wt-Gt,Zt=me>Ie?me:Ie,fe=.5*(It+xt),be=.5*(Wt+Gt),Ee=[new tl({__sentinel:!0,x:fe-20*Zt,y:be-Zt},{__sentinel:!0,x:fe,y:be+20*Zt},{__sentinel:!0,x:fe+20*Zt,y:be-Zt})],_e=[],wn=[];for(Tt=Q.length;Tt--;){for(wn.length=0,Bt=Ee.length;Bt--;)(me=Q[Tt].x-Ee[Bt].x)>0&&me*me>Ee[Bt].r?(_e.push(Ee[Bt]),Ee.splice(Bt,1)):me*me+(Ie=Q[Tt].y-Ee[Bt].y)*Ie>Ee[Bt].r||(wn.push(Ee[Bt].a,Ee[Bt].b,Ee[Bt].b,Ee[Bt].c,Ee[Bt].c,Ee[Bt].a),Ee.splice(Bt,1));for(Mo(wn),Bt=wn.length;Bt;)rt=wn[--Bt],J=wn[--Bt],at=Q[Tt],ft=rt.x-J.x,yt=rt.y-J.y,vt=2*(ft*(at.y-rt.y)-yt*(at.x-rt.x)),Math.abs(vt)>ee&&Ee.push(new tl(J,rt,at))}for(Array.prototype.push.apply(_e,Ee),Tt=_e.length;Tt--;)(_e[Tt].a.__sentinel||_e[Tt].b.__sentinel||_e[Tt].c.__sentinel)&&_e.splice(Tt,1);return _e}(B.features.map(function(Q){var J={x:Q.geometry.coordinates[0],y:Q.geometry.coordinates[1]};return U?J.z=Q.properties[U]:Q.geometry.coordinates.length===3&&(G=!0,J.z=Q.geometry.coordinates[2]),J})).map(function(Q){var J=[Q.a.x,Q.a.y],rt=[Q.b.x,Q.b.y],at=[Q.c.x,Q.c.y],ft={};return G?(J.push(Q.a.z),rt.push(Q.b.z),at.push(Q.c.z)):ft={a:Q.a.z,b:Q.b.z,c:Q.c.z},nt([[J,rt,at,J]],ft)}))}mo.default=Co;var tl=function(B,U,G){this.a=B,this.b=U,this.c=G;var Q,J,rt=U.x-B.x,at=U.y-B.y,ft=G.x-B.x,yt=G.y-B.y,vt=rt*(B.x+U.x)+at*(B.y+U.y),Tt=ft*(B.x+G.x)+yt*(B.y+G.y),xt=2*(rt*(G.y-U.y)-at*(G.x-U.x));this.x=(yt*vt-at*Tt)/xt,this.y=(rt*Tt-ft*vt)/xt,Q=this.x-B.x,J=this.y-B.y,this.r=Q*Q+J*J};function _a(B,U){return U.x-B.x}function Mo(B){var U,G,Q,J,rt,at=B.length;t:for(;at;)for(G=B[--at],U=B[--at],Q=at;Q;)if(rt=B[--Q],U===(J=B[--Q])&&G===rt||U===rt&&G===J){B.splice(at,2),B.splice(Q,2),at-=2;continue t}}function ai(B){if(!B)throw new Error("geojson is required");switch(B.type){case"Feature":return Es(B);case"FeatureCollection":return function(U){var G={type:"FeatureCollection"};return Object.keys(U).forEach(function(Q){switch(Q){case"type":case"features":return;default:G[Q]=U[Q]}}),G.features=U.features.map(function(Q){return Es(Q)}),G}(B);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return el(B);default:throw new Error("unknown GeoJSON type")}}function Es(B){var U={type:"Feature"};return Object.keys(B).forEach(function(G){switch(G){case"type":case"properties":case"geometry":return;default:U[G]=B[G]}}),U.properties=Io(B.properties),U.geometry=el(B.geometry),U}function Io(B){var U={};return B&&Object.keys(B).forEach(function(G){var Q=B[G];typeof Q=="object"?Q===null?U[G]=null:Array.isArray(Q)?U[G]=Q.map(function(J){return J}):U[G]=Io(Q):U[G]=Q}),U}function el(B){var U={type:B.type};return B.bbox&&(U.bbox=B.bbox),B.type==="GeometryCollection"?(U.geometries=B.geometries.map(function(G){return el(G)}),U):(U.coordinates=Yo(B.coordinates),U)}function Yo(B){var U=B;return typeof U[0]!="object"?U.slice():U.map(function(G){return Yo(G)})}function wa(B,U){if(U===void 0&&(U={}),!Dt(U=U||{}))throw new Error("options is invalid");var G=U.mutate;if($e(B)!=="FeatureCollection")throw new Error("geojson must be a FeatureCollection");if(!B.features.length)throw new Error("geojson is empty");G!==!1&&G!==void 0||(B=ai(B));var Q=[],J=Le(B,function(rt,at){var ft=function(yt,vt){var Tt,xt=yt.geometry.coordinates,It=vt.geometry.coordinates,Gt=Os(xt[0]),Wt=Os(xt[xt.length-1]),ee=Os(It[0]),Bt=Os(It[It.length-1]);if(Gt===Bt)Tt=It.concat(xt.slice(1));else if(ee===Wt)Tt=xt.concat(It.slice(1));else if(Gt===ee)Tt=xt.slice(1).reverse().concat(It);else{if(Wt!==Bt)return null;Tt=xt.concat(It.reverse().slice(1))}return ct(Tt)}(rt,at);return ft||(Q.push(rt),at)});return J&&Q.push(J),Q.length?Q.length===1?Q[0]:bt(Q.map(function(rt){return rt.coordinates})):null}function Os(B){return B[0].toString()+","+B[1].toString()}function Pl(B){return B}function gl(B,U){var G=function(vt){if(vt==null)return Pl;var Tt,xt,It=vt.scale[0],Gt=vt.scale[1],Wt=vt.translate[0],ee=vt.translate[1];return function(Bt,me){me||(Tt=xt=0);var Ie=2,Zt=Bt.length,fe=new Array(Zt);for(fe[0]=(Tt+=Bt[0])*It+Wt,fe[1]=(xt+=Bt[1])*Gt+ee;Ie1)for(var Tt,xt,It=1,Gt=at(vt[0]);ItGt&&(xt=vt[0],vt[0]=vt[It],vt[It]=xt,Gt=Tt);return vt}).filter(function(ft){return ft.length>0})}}var nu=Object.prototype.hasOwnProperty;function Cc(B,U,G,Q,J,rt){arguments.length===3&&(Q=rt=Array,J=null);for(var at=new Q(B=1<=B)throw new Error("full hashmap");me=at[Bt=Bt+1&yt]}return at[Bt]=Wt,ft[Bt]=ee,ee}function xt(Wt,ee){for(var Bt=U(Wt)&yt,me=at[Bt],Ie=0;me!=J;){if(G(me,Wt))return ft[Bt];if(++Ie>=B)throw new Error("full hashmap");me=at[Bt=Bt+1&yt]}return at[Bt]=Wt,ft[Bt]=ee,ee}function It(Wt,ee){for(var Bt=U(Wt)&yt,me=at[Bt],Ie=0;me!=J;){if(G(me,Wt))return ft[Bt];if(++Ie>=B)break;me=at[Bt=Bt+1&yt]}return ee}function Gt(){for(var Wt=[],ee=0,Bt=at.length;ee>7^zr[2]^zr[3])}function dh(B){var U,G,Q,J,rt=B.coordinates,at=B.lines,ft=B.rings,yt=function(){for(var cn=Cc(1.4*rt.length,be,Ee,Int32Array,-1,Int32Array),Tn=new Int32Array(rt.length),dn=0,An=rt.length;dn=0){var mn=xt[dn];yn===Tn&&mn===An||yn===An&&mn===Tn||(++Gt,It[dn]=1)}else Tt[dn]=Tn,xt[dn]=An}}function be(cn){return aa(rt[cn])}function Ee(cn,Tn){return Rl(rt[cn],rt[Tn])}vt=Tt=xt=null;var _e,wn=function(cn,Tn,dn,An,yn){arguments.length===3&&(An=Array,yn=null);for(var mn=new An(cn=1<=cn)throw new Error("full hashset");ri=mn[Qn=Qn+1&fn]}return mn[Qn]=Mr,!0}function Nn(Mr){for(var Qn=Tn(Mr)&fn,ri=mn[Qn],gr=0;ri!=yn;){if(dn(ri,Mr))return!0;if(++gr>=cn)break;ri=mn[Qn=Qn+1&fn]}return!1}function Ze(){for(var Mr=[],Qn=0,ri=mn.length;Qn>1);Uee&&(ee=wn),cnBt&&(Bt=cn)}function fe(_e){_e.forEach(Zt)}function be(_e){_e.forEach(fe)}for(var Ee in It)me(It[Ee]);return ee>=Gt&&Bt>=Wt?[Gt,Wt,ee,Bt]:void 0}(B=jl(B)),Q=U>0&&G&&function(It,Gt,Wt){var ee=Gt[0],Bt=Gt[1],me=Gt[2],Ie=Gt[3],Zt=me-ee?(Wt-1)/(me-ee):1,fe=Ie-Bt?(Wt-1)/(Ie-Bt):1;function be(yn){return[Math.round((yn[0]-ee)*Zt),Math.round((yn[1]-Bt)*fe)]}function Ee(yn,mn){for(var fn,Sn,bn,Nn,Ze,Mr=-1,Qn=0,ri=yn.length,gr=new Array(ri);++Mr2&&mi(G[J-3],G[J-1],G[J-2])&&G.splice(G.length-2,1))}if(G.push(U[U.length-1]),J=G.length,Pu(U[0],U[U.length-1])&&J<4)throw new Error("invalid polygon");return mi(G[J-3],G[J-1],G[J-2])&&G.splice(G.length-2,1),G}function Pu(B,U){return B[0]===U[0]&&B[1]===U[1]}function mi(B,U,G){var Q=G[0],J=G[1],rt=B[0],at=B[1],ft=U[0],yt=U[1],vt=ft-rt,Tt=yt-at;return(Q-rt)*Tt-(J-at)*vt===0&&(Math.abs(vt)>=Math.abs(Tt)?vt>0?rt<=Q&&Q<=ft:ft<=Q&&Q<=rt:Tt>0?at<=J&&J<=yt:yt<=J&&J<=at)}function zu(B,U,G){var Q=U.x,J=U.y,rt=G.x-Q,at=G.y-J;if(rt!==0||at!==0){var ft=((B.x-Q)*rt+(B.y-J)*at)/(rt*rt+at*at);ft>1?(Q=G.x,J=G.y):ft>0&&(Q+=rt*ft,J+=at*ft)}return(rt=B.x-Q)*rt+(at=B.y-J)*at}function Xs(B,U,G,Q,J){for(var rt,at=Q,ft=U+1;ftat&&(rt=ft,at=yt)}at>Q&&(rt-U>1&&Xs(B,U,rt,Q,J),J.push(B[rt]),G-rt>1&&Xs(B,rt,G,Q,J))}function kc(B,U){var G=B.length-1,Q=[B[0]];return Xs(B,0,G,U,Q),Q.push(B[G]),Q}function Zs(B,U,G){if(B.length<=2)return B;var Q=U!==void 0?U*U:1;return B=kc(B=G?B:function(J,rt){for(var at,ft,yt,vt,Tt,xt=J[0],It=[xt],Gt=1,Wt=J.length;Gtrt&&(It.push(at),xt=at);return xt!==at&&It.push(at),It}(B,Q),Q)}function ml(B,U,G){return Zs(B.map(function(Q){return{x:Q[0],y:Q[1],z:Q[2]}}),U,G).map(function(Q){return Q.z?[Q.x,Q.y,Q.z]:[Q.x,Q.y]})}function Js(B,U,G){return B.map(function(Q){var J=Q.map(function(at){return{x:at[0],y:at[1]}});if(J.length<4)throw new Error("invalid polygon");for(var rt=Zs(J,U,G).map(function(at){return[at.x,at.y]});!$a(rt);)rt=Zs(J,U-=.01*U,G).map(function(at){return[at.x,at.y]});return rt[rt.length-1][0]===rt[0][0]&&rt[rt.length-1][1]===rt[0][1]||rt.push(rt[0]),rt})}function $a(B){return!(B.length<3)&&!(B.length===3&&B[2][0]===B[0][0]&&B[2][1]===B[0][1])}var Ac=function(){function B(U){this.points=U.points||[],this.duration=U.duration||1e4,this.sharpness=U.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=U.stepLength||60,this.length=this.points.length,this.delay=0;for(var G=0;GU&&(G.push(J),Q=rt)}return G},B.prototype.vector=function(U){var G=this.pos(U+10),Q=this.pos(U-10);return{angle:180*Math.atan2(G.y-Q.y,G.x-Q.x)/3.14,speed:Math.sqrt((Q.x-G.x)*(Q.x-G.x)+(Q.y-G.y)*(Q.y-G.y)+(Q.z-G.z)*(Q.z-G.z))}},B.prototype.pos=function(U){var G=U-this.delay;G<0&&(G=0),G>this.duration&&(G=this.duration-1);var Q=G/this.duration;if(Q>=1)return this.points[this.length-1];var J=Math.floor((this.points.length-1)*Q);return function(rt,at,ft,yt,vt){var Tt=function(xt){var It=xt*xt;return[It*xt,3*It*(1-xt),3*xt*(1-xt)*(1-xt),(1-xt)*(1-xt)*(1-xt)]}(rt);return{x:vt.x*Tt[0]+yt.x*Tt[1]+ft.x*Tt[2]+at.x*Tt[3],y:vt.y*Tt[0]+yt.y*Tt[1]+ft.y*Tt[2]+at.y*Tt[3],z:vt.z*Tt[0]+yt.z*Tt[1]+ft.z*Tt[2]+at.z*Tt[3]}}((this.length-1)*Q-J,this.points[J],this.controls[J][1],this.controls[J+1][0],this.points[J+1])},B}();function Ma(B,U){U===void 0&&(U={});for(var G=U.resolution||1e4,Q=U.sharpness||.85,J=[],rt=ke(B).coordinates.map(function(vt){return{x:vt[0],y:vt[1]}}),at=new Ac({duration:G,points:rt,sharpness:Q}),ft=function(vt){var Tt=at.pos(vt);Math.floor(vt/100)%2==0&&J.push([Tt.x,Tt.y])},yt=0;yt=Yr(B.slice(0,2),[U,J])){var rt=(G+J)/2;return[U,rt-(Q-U)/2,Q,rt+(Q-U)/2]}var at=(U+Q)/2;return[at-(J-G)/2,G,at+(J-G)/2,J]}function vo(B,U,G,Q){Q===void 0&&(Q={});var J=$t(B),rt=Ht(J[0]),at=Ht(J[1]),ft=Ht(G),yt=Ct(U,Q.units),vt=Math.asin(Math.sin(at)*Math.cos(yt)+Math.cos(at)*Math.sin(yt)*Math.cos(ft));return X([Yt(rt+Math.atan2(Math.sin(ft)*Math.sin(yt)*Math.cos(at),Math.cos(yt)-Math.sin(at)*Math.sin(vt))),Yt(vt)],Q.properties)}function ju(B,U,G){G===void 0&&(G={});for(var Q=G.steps||64,J=G.properties?G.properties:!Array.isArray(B)&&B.type==="Feature"&&B.properties?B.properties:{},rt=[],at=0;at80*G){Q=rt=B[0],J=at=B[1];for(var Wt=G;Wtrt&&(rt=ft),yt>at&&(at=yt);vt=(vt=Math.max(rt-Q,at-J))!==0?1/vt:0}return Us(It,Gt,G,Q,J,vt),Gt}function Dc(B,U,G,Q,J){var rt,at;if(J===Se(B,U,G,Q)>0)for(rt=U;rt=U;rt-=Q)at=Ot(rt,B[rt],B[rt+1],at);return at&&Fa(at,at.next)&&(Rt(at),at=at.next),at}function Jo(B,U){if(!B)return B;U||(U=B);var G,Q=B;do if(G=!1,Q.steiner||!Fa(Q,Q.next)&&Po(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(Rt(Q),(Q=U=Q.prev)===Q.next)break;G=!0}while(G||Q!==U);return U}function Us(B,U,G,Q,J,rt,at){if(B){!at&&rt&&function(Tt,xt,It,Gt){var Wt=Tt;do Wt.z===null&&(Wt.z=ca(Wt.x,Wt.y,xt,It,Gt)),Wt.prevZ=Wt.prev,Wt.nextZ=Wt.next,Wt=Wt.next;while(Wt!==Tt);Wt.prevZ.nextZ=null,Wt.prevZ=null,function(ee){var Bt,me,Ie,Zt,fe,be,Ee,_e,wn=1;do{for(me=ee,ee=null,fe=null,be=0;me;){for(be++,Ie=me,Ee=0,Bt=0;Bt0||_e>0&&Ie;)Ee!==0&&(_e===0||!Ie||me.z<=Ie.z)?(Zt=me,me=me.nextZ,Ee--):(Zt=Ie,Ie=Ie.nextZ,_e--),fe?fe.nextZ=Zt:ee=Zt,Zt.prevZ=fe,fe=Zt;me=Ie}fe.nextZ=null,wn*=2}while(be>1)}(Wt)}(B,Q,J,rt);for(var ft,yt,vt=B;B.prev!==B.next;)if(ft=B.prev,yt=B.next,rt?sc(B,Q,J,rt):Ts(B))U.push(ft.i/G),U.push(B.i/G),U.push(yt.i/G),Rt(B),B=yt.next,vt=yt.next;else if((B=yt)===vt){at?at===1?Us(B=vh(B,U,G),U,G,Q,J,rt,2):at===2&&bh(B,U,G,Q,J,rt):Us(Jo(B),U,G,Q,J,rt,1);break}}}function Ts(B){var U=B.prev,G=B,Q=B.next;if(Po(U,G,Q)>=0)return!1;for(var J=B.next.next;J!==B.prev;){if(vs(U.x,U.y,G.x,G.y,Q.x,Q.y,J.x,J.y)&&Po(J.prev,J,J.next)>=0)return!1;J=J.next}return!0}function sc(B,U,G,Q){var J=B.prev,rt=B,at=B.next;if(Po(J,rt,at)>=0)return!1;for(var ft=J.xrt.x?J.x>at.x?J.x:at.x:rt.x>at.x?rt.x:at.x,Tt=J.y>rt.y?J.y>at.y?J.y:at.y:rt.y>at.y?rt.y:at.y,xt=ca(ft,yt,U,G,Q),It=ca(vt,Tt,U,G,Q),Gt=B.prevZ,Wt=B.nextZ;Gt&&Gt.z>=xt&&Wt&&Wt.z<=It;){if(Gt!==B.prev&&Gt!==B.next&&vs(J.x,J.y,rt.x,rt.y,at.x,at.y,Gt.x,Gt.y)&&Po(Gt.prev,Gt,Gt.next)>=0||(Gt=Gt.prevZ,Wt!==B.prev&&Wt!==B.next&&vs(J.x,J.y,rt.x,rt.y,at.x,at.y,Wt.x,Wt.y)&&Po(Wt.prev,Wt,Wt.next)>=0))return!1;Wt=Wt.nextZ}for(;Gt&&Gt.z>=xt;){if(Gt!==B.prev&&Gt!==B.next&&vs(J.x,J.y,rt.x,rt.y,at.x,at.y,Gt.x,Gt.y)&&Po(Gt.prev,Gt,Gt.next)>=0)return!1;Gt=Gt.prevZ}for(;Wt&&Wt.z<=It;){if(Wt!==B.prev&&Wt!==B.next&&vs(J.x,J.y,rt.x,rt.y,at.x,at.y,Wt.x,Wt.y)&&Po(Wt.prev,Wt,Wt.next)>=0)return!1;Wt=Wt.nextZ}return!0}function vh(B,U,G){var Q=B;do{var J=Q.prev,rt=Q.next.next;!Fa(J,rt)&&ac(J,Q,Q.next,rt)&&rl(J,rt)&&rl(rt,J)&&(U.push(J.i/G),U.push(Q.i/G),U.push(rt.i/G),Rt(Q),Rt(Q.next),Q=B=rt),Q=Q.next}while(Q!==B);return Q}function bh(B,U,G,Q,J,rt){var at=B;do{for(var ft=at.next.next;ft!==at.prev;){if(at.i!==ft.i&&_h(at,ft)){var yt=Ic(at,ft);return at=Jo(at,at.next),yt=Jo(yt,yt.next),Us(at,U,G,Q,J,rt),void Us(yt,U,G,Q,J,rt)}ft=ft.next}at=at.next}while(at!==B)}function Bu(B,U){return B.x-U.x}function Vo(B,U){if(U=function(Q,J){var rt,at=J,ft=Q.x,yt=Q.y,vt=-1/0;do{if(yt<=at.y&&yt>=at.next.y&&at.next.y!==at.y){var Tt=at.x+(yt-at.y)*(at.next.x-at.x)/(at.next.y-at.y);if(Tt<=ft&&Tt>vt){if(vt=Tt,Tt===ft){if(yt===at.y)return at;if(yt===at.next.y)return at.next}rt=at.x=at.x&&at.x>=Gt&&ft!==at.x&&vs(ytrt.x)&&rl(at,Q)&&(rt=at,ee=xt),at=at.next;return rt}(B,U)){var G=Ic(U,B);Jo(G,G.next)}}function ca(B,U,G,Q,J){return(B=1431655765&((B=858993459&((B=252645135&((B=16711935&((B=32767*(B-G)*J)|B<<8))|B<<4))|B<<2))|B<<1))|(U=1431655765&((U=858993459&((U=252645135&((U=16711935&((U=32767*(U-Q)*J)|U<<8))|U<<4))|U<<2))|U<<1))<<1}function Ks(B){var U=B,G=B;do U.x=0&&(B-at)*(Q-ft)-(G-at)*(U-ft)>=0&&(G-at)*(rt-ft)-(J-at)*(Q-ft)>=0}function _h(B,U){return B.next.i!==U.i&&B.prev.i!==U.i&&!function(G,Q){var J=G;do{if(J.i!==G.i&&J.next.i!==G.i&&J.i!==Q.i&&J.next.i!==Q.i&&ac(J,J.next,G,Q))return!0;J=J.next}while(J!==G);return!1}(B,U)&&rl(B,U)&&rl(U,B)&&function(G,Q){var J=G,rt=!1,at=(G.x+Q.x)/2,ft=(G.y+Q.y)/2;do J.y>ft!=J.next.y>ft&&J.next.y!==J.y&&at<(J.next.x-J.x)*(ft-J.y)/(J.next.y-J.y)+J.x&&(rt=!rt),J=J.next;while(J!==G);return rt}(B,U)}function Po(B,U,G){return(U.y-B.y)*(G.x-U.x)-(U.x-B.x)*(G.y-U.y)}function Fa(B,U){return B.x===U.x&&B.y===U.y}function ac(B,U,G,Q){return!!(Fa(B,U)&&Fa(G,Q)||Fa(B,Q)&&Fa(G,U))||Po(B,U,G)>0!=Po(B,U,Q)>0&&Po(G,Q,B)>0!=Po(G,Q,U)>0}function rl(B,U){return Po(B.prev,B,B.next)<0?Po(B,U,B.next)>=0&&Po(B,B.prev,U)>=0:Po(B,U,B.prev)<0||Po(B,B.next,U)<0}function Ic(B,U){var G=new ae(B.i,B.x,B.y),Q=new ae(U.i,U.x,U.y),J=B.next,rt=U.prev;return B.next=U,U.prev=B,G.next=J,J.prev=G,Q.next=G,G.prev=Q,rt.next=Q,Q.prev=rt,Q}function Ot(B,U,G,Q){var J=new ae(B,U,G);return Q?(J.next=Q.next,J.prev=Q,Q.next.prev=J,Q.next=J):(J.prev=J,J.next=J),J}function Rt(B){B.next.prev=B.prev,B.prev.next=B.next,B.prevZ&&(B.prevZ.nextZ=B.nextZ),B.nextZ&&(B.nextZ.prevZ=B.prevZ)}function ae(B,U,G){this.i=B,this.x=U,this.y=G,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Se(B,U,G,Q){for(var J=0,rt=U,at=G-Q;rt0&&(Tt+=ft[xt-1].length,vt.holes.push(Tt))}return vt}(B),G=Nc(U.vertices,U.holes,2),Q=[],J=[];G.forEach(function(ft,yt){var vt=G[yt];J.push([U.vertices[2*vt],U.vertices[2*vt+1]])});for(var rt=0;rtIe?Bt:Ie,me>Zt?me:Zt]}(xt,It),Tt.push(Gt),It}),Tt})(ft,Q.properties).forEach(function(yt){yt.id=J.length,J.push(yt)})})}})(G,U)}),ht(U)}su.deviation=function(B,U,G,Q){var J=U&&U.length,rt=J?U[0]*G:B.length,at=Math.abs(Se(B,0,rt,G));if(J)for(var ft=0,yt=U.length;ft0&&(Q+=B[J-1].length,G.holes.push(Q))}return G},Nc.default=Ms;var Ln=Un(function(B,U){function G(Wt,ee,Bt){Bt===void 0&&(Bt={});var me={type:"Feature"};return(Bt.id===0||Bt.id)&&(me.id=Bt.id),Bt.bbox&&(me.bbox=Bt.bbox),me.properties=ee||{},me.geometry=Wt,me}function Q(Wt,ee,Bt){if(Bt===void 0&&(Bt={}),!Wt)throw new Error("coordinates is required");if(!Array.isArray(Wt))throw new Error("coordinates must be an Array");if(Wt.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Gt(Wt[0])||!Gt(Wt[1]))throw new Error("coordinates must contain numbers");return G({type:"Point",coordinates:Wt},ee,Bt)}function J(Wt,ee,Bt){Bt===void 0&&(Bt={});for(var me=0,Ie=Wt;me=0))throw new Error("precision must be a positive number");var Bt=Math.pow(10,ee||0);return Math.round(Wt*Bt)/Bt},U.radiansToLength=Tt,U.lengthToRadians=xt,U.lengthToDegrees=function(Wt,ee){return It(xt(Wt,ee))},U.bearingToAzimuth=function(Wt){var ee=Wt%360;return ee<0&&(ee+=360),ee},U.radiansToDegrees=It,U.degreesToRadians=function(Wt){return Wt%360*Math.PI/180},U.convertLength=function(Wt,ee,Bt){if(ee===void 0&&(ee="kilometers"),Bt===void 0&&(Bt="kilometers"),!(Wt>=0))throw new Error("length must be a positive number");return Tt(xt(Wt,ee),Bt)},U.convertArea=function(Wt,ee,Bt){if(ee===void 0&&(ee="meters"),Bt===void 0&&(Bt="kilometers"),!(Wt>=0))throw new Error("area must be a positive number");var me=U.areaFactors[ee];if(!me)throw new Error("invalid original units");var Ie=U.areaFactors[Bt];if(!Ie)throw new Error("invalid final units");return Wt/me*Ie},U.isNumber=Gt,U.isObject=function(Wt){return!!Wt&&Wt.constructor===Object},U.validateBBox=function(Wt){if(!Wt)throw new Error("bbox is required");if(!Array.isArray(Wt))throw new Error("bbox must be an Array");if(Wt.length!==4&&Wt.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");Wt.forEach(function(ee){if(!Gt(ee))throw new Error("bbox must only contain numbers")})},U.validateId=function(Wt){if(!Wt)throw new Error("id is required");if(["string","number"].indexOf(typeof Wt)===-1)throw new Error("id must be a number or a string")}});function lr(B,U,G){if(B!==null)for(var Q,J,rt,at,ft,yt,vt,Tt,xt=0,It=0,Gt=B.type,Wt=Gt==="FeatureCollection",ee=Gt==="Feature",Bt=Wt?B.features.length:1,me=0;meyt||Wt>vt||ee>Tt)return ft=xt,yt=Q,vt=Wt,Tt=ee,void(rt=0);var Bt=Ln.lineString([ft,xt],G.properties);if(U(Bt,Q,J,ee,rt)===!1)return!1;rt++,ft=xt})!==!1&&void 0}}})}function to(B,U){if(!B)throw new Error("geojson is required");Ci(B,function(G,Q,J){if(G.geometry!==null){var rt=G.geometry.type,at=G.geometry.coordinates;switch(rt){case"LineString":if(U(G,Q,J,0,0)===!1)return!1;break;case"Polygon":for(var ft=0;ftG[0]&&(U[0]=G[0]),U[1]>G[1]&&(U[1]=G[1]),U[2] line1 must only contain 2 coordinates");if(Q.length!==2)throw new Error(" line2 must only contain 2 coordinates");var J=G[0][0],rt=G[0][1],at=G[1][0],ft=G[1][1],yt=Q[0][0],vt=Q[0][1],Tt=Q[1][0],xt=Q[1][1],It=(xt-vt)*(at-J)-(Tt-yt)*(ft-rt),Gt=(Tt-yt)*(rt-vt)-(xt-vt)*(J-yt),Wt=(at-J)*(rt-vt)-(ft-rt)*(J-yt);if(It===0)return null;var ee=Gt/It,Bt=Wt/It;return ee>=0&&ee<=1&&Bt>=0&&Bt<=1?X([J+ee*(at-J),rt+ee*(ft-rt)]):null}function Fl(B,U,G){G===void 0&&(G={});var Q=X([1/0,1/0],{dist:1/0}),J=0;return qe(B,function(rt){for(var at=oe(rt),ft=0;ft0&&((Bt=ee.features[0]).properties.dist=Yr(U,Bt,G),Bt.properties.location=J+Yr(yt,Bt,G)),yt.properties.dist180?-360:Q[0]-J[0]>180?360:0,qt(function(rt,at,ft){var yt=ft=ft===void 0?O:Number(ft),vt=rt[1]*Math.PI/180,Tt=at[1]*Math.PI/180,xt=Tt-vt,It=Math.abs(at[0]-rt[0])*Math.PI/180;It>Math.PI&&(It-=2*Math.PI);var Gt=Math.log(Math.tan(Tt/2+Math.PI/4)/Math.tan(vt/2+Math.PI/4)),Wt=Math.abs(Gt)>1e-11?xt/Gt:Math.cos(vt);return Math.sqrt(xt*xt+Wt*Wt*It*It)*yt}(Q,J),"meters",G.units)}function ip(B,U,G){if(G===void 0&&(G={}),G.method||(G.method="geodesic"),G.units||(G.units="kilometers"),!B)throw new Error("pt is required");if(Array.isArray(B)?B=X(B):B.type==="Point"?B=W(B):ge(B,"Point","point"),!U)throw new Error("line is required");Array.isArray(U)?U=ct(U):U.type==="LineString"?U=W(U):ge(U,"LineString","line");var Q=1/0,J=B.geometry.coordinates;return we(U,function(rt){var at=rt.geometry.coordinates[0],ft=rt.geometry.coordinates[1],yt=function(vt,Tt,xt,It){var Gt=[xt[0]-Tt[0],xt[1]-Tt[1]],Wt=rf([vt[0]-Tt[0],vt[1]-Tt[1]],Gt);if(Wt<=0)return sd(vt,Tt,{method:It.method,units:"degrees"});var ee=rf(Gt,Gt);if(ee<=Wt)return sd(vt,xt,{method:It.method,units:"degrees"});var Bt=Wt/ee,me=[Tt[0]+Bt*Gt[0],Tt[1]+Bt*Gt[1]];return sd(vt,me,{method:It.method,units:"degrees"})}(J,at,ft,G);yt=0&&vt<=1&&(It.onLine1=!0),Tt>=0&&Tt<=1&&(It.onLine2=!0),!(!It.onLine1||!It.onLine2)&&[It.x,It.y])}function op(B){for(var U=function(It){return It.type!=="FeatureCollection"?It.type!=="Feature"?ht([W(It)]):ht([It]):It}(B),G=ko(U),Q=!1,J=0;!Q&&J0){U+=Math.abs(yl(B[0]));for(var G=1;G2){for(at=0;at=Tt&&xt===J.length-1);xt++){if(Tt>U&&rt.length===0){if(!(at=U-Tt))return rt.push(J[xt]),ct(rt);ft=nl(J[xt],J[xt-1])-180,yt=vo(J[xt],at,ft,Q),rt.push(yt.geometry.coordinates)}if(Tt>=G)return(at=G-Tt)?(ft=nl(J[xt],J[xt-1])-180,yt=vo(J[xt],at,ft,Q),rt.push(yt.geometry.coordinates),ct(rt)):(rt.push(J[xt]),ct(rt));if(Tt>=U&&rt.push(J[xt]),xt===J.length-1)return ct(rt);Tt+=Yr(J[xt],J[xt+1],Q)}if(TtJ)return!1}else if(Gt!==0)return!1;return Q?Q==="start"?Math.abs(xt)>=Math.abs(It)?xt>0?ft0?yt=Math.abs(It)?xt>0?ft<=rt&&rt0?yt<=at&&at=Math.abs(It)?xt>0?ft0?yt=Math.abs(It)?xt>0?ft<=rt&&rt<=vt:vt<=rt&&rt<=ft:It>0?yt<=at&&at<=Tt:Tt<=at&&at<=yt}function Yu(B,U){var G=ke(B),Q=ke(U),J=G.type,rt=Q.type;switch(J){case"Point":switch(rt){case"MultiPoint":return function(at,ft){var yt,vt=!1;for(yt=0;ytU[0])&&!(B[2]U[1])&&!(B[3] is required");if(typeof G!="number")throw new Error(" must be a number");if(typeof Q!="number")throw new Error(" must be a number");J!==!1&&J!==void 0||(B=JSON.parse(JSON.stringify(B)));var rt=Math.pow(10,G);return Pt(B,function(at){(function(ft,yt,vt){ft.length>vt&&ft.splice(vt,ft.length);for(var Tt=0;Tt=1||fe<=0||be>=1||be<=0))){var dn=Tn,An=!rt[dn];An&&(rt[dn]=!0),U?J.push(U(Tn,Bt,me,Ee,_e,fe,Ie,Zt,wn,cn,be,An)):J.push(Tn)}}function ee(Bt,me){var Ie,Zt,fe,be,Ee=Q[Bt][me],_e=Q[Bt][me+1];return Ee[0]<_e[0]?(Ie=Ee[0],Zt=_e[0]):(Ie=_e[0],Zt=Ee[0]),Ee[1]<_e[1]?(fe=Ee[1],be=_e[1]):(fe=_e[1],be=Ee[1]),{minX:Ie,minY:fe,maxX:Zt,maxY:be,ring:Bt,edge:me}}}function uu(B,U){if(!B||!U||B.length!==U.length)return!1;for(var G=0,Q=B.length;Gxt[jr.isect].coord?-1:1}),yt=[];fe.length>0;){var cn=fe.pop(),Tn=cn.isect,dn=cn.parent,An=cn.winding,yn=yt.length,mn=[xt[Tn].coord],fn=Tn;if(xt[Tn].ringAndEdge1Walkable)var Sn=xt[Tn].ringAndEdge1,bn=xt[Tn].nxtIsectAlongRingAndEdge1;else Sn=xt[Tn].ringAndEdge2,bn=xt[Tn].nxtIsectAlongRingAndEdge2;for(;!pt(xt[Tn].coord,xt[bn].coord);){mn.push(xt[bn].coord);var Nn=void 0;for(Q=0;Q1)for(jr=0;jr=0==U}function it(B){for(var U=0,G=0;G1&&G.push(ct(vt)),ht(G)}function qr(B,U){if(!U.features.length)throw new Error("lines must contain features");if(U.features.length===1)return U.features[0];var G,Q=1/0;return ve(U,function(J){var rt=Fl(J,B).properties.dist;rtTt&&It.push(vo(B,U,Tt,J).geometry.coordinates),ct(It,yt)}function os(B){var U=B%360;return U<0&&(U+=360),U}function ea(B,U){U===void 0&&(U={});var G=ke(B);switch(U.properties||B.type!=="Feature"||(U.properties=B.properties),G.type){case"Polygon":return ua(G,U);case"MultiPolygon":return function(Q,J){J===void 0&&(J={});var rt=ke(Q).coordinates,at=J.properties?J.properties:Q.type==="Feature"?Q.properties:{},ft=[];return rt.forEach(function(yt){ft.push(Rc(yt,at))}),ht(ft)}(G,U);default:throw new Error("invalid poly")}}function ua(B,U){return U===void 0&&(U={}),Rc(ke(B).coordinates,U.properties?U.properties:B.type==="Feature"?B.properties:{})}function Rc(B,U){return B.length>1?bt(B,U):ct(B[0],U)}function lp(B,U){var G,Q,J;U===void 0&&(U={});var rt=U.properties,at=(G=U.autoComplete)===null||G===void 0||G,ft=(Q=U.orderCoords)===null||Q===void 0||Q;switch((J=U.mutate)!==null&&J!==void 0&&J||(B=ai(B)),B.type){case"FeatureCollection":var yt=[];return B.features.forEach(function(vt){yt.push(oe(lf(vt,{},at,ft)))}),mt(yt,rt);default:return lf(B,rt,at,ft)}}function lf(B,U,G,Q){U=U||(B.type==="Feature"?B.properties:{});var J=ke(B),rt=J.coordinates,at=J.type;if(!rt.length)throw new Error("line must contain coordinates");switch(at){case"LineString":return G&&(rt=hu(rt)),nt([rt],U);case"MultiLineString":var ft=[],yt=0;return rt.forEach(function(vt){if(G&&(vt=hu(vt)),Q){var Tt=function(xt){var It=xt[0],Gt=xt[1],Wt=xt[2],ee=xt[3];return Math.abs(It-Wt)*Math.abs(Gt-ee)}(jt(ct(vt)));Tt>yt?(ft.unshift(vt),yt=Tt):ft.push(vt)}else ft.push(vt)}),nt(ft,U);default:throw new Error("geometry type "+at+" is not supported")}}function hu(B){var U=B[0],G=U[0],Q=U[1],J=B[B.length-1],rt=J[0],at=J[1];return G===rt&&Q===at||B.push(U),B}function du(B,U){var G,Q,J,rt,at,ft,yt;for(Q=1;Q<=8;Q*=2){for(G=[],rt=!(cc(J=B[B.length-1],U)&Q),at=0;atU[2]&&(G|=2),B[1]U[3]&&(G|=8),G}function ss(B,U){for(var G=[],Q=0,J=B;Q0&&(rt[0][0]===rt[rt.length-1][0]&&rt[0][1]===rt[rt.length-1][1]||rt.push(rt[0]),rt.length>=4&&G.push(rt))}return G}kn.prototype.interpolate=function(B){var U=Math.sin((1-B)*this.g)/Math.sin(this.g),G=Math.sin(B*this.g)/Math.sin(this.g),Q=U*Math.cos(this.start.y)*Math.cos(this.start.x)+G*Math.cos(this.end.y)*Math.cos(this.end.x),J=U*Math.cos(this.start.y)*Math.sin(this.start.x)+G*Math.cos(this.end.y)*Math.sin(this.end.x),rt=U*Math.sin(this.start.y)+G*Math.sin(this.end.y),at=se*Math.atan2(rt,Math.sqrt(Math.pow(Q,2)+Math.pow(J,2)));return[se*Math.atan2(J,Q),at]},kn.prototype.Arc=function(B,U){var G=[];if(!B||B<=2)G.push([this.start.lon,this.start.lat]),G.push([this.end.lon,this.end.lat]);else for(var Q=1/(B-1),J=0;JIt&&(ee>Tt&&WtTt&&eeyt&&(yt=Bt)}var me=[];if(ft&&yt0&&Math.abs(fe-G[Zt-1][0])>It){var be=parseFloat(G[Zt-1][0]),Ee=parseFloat(G[Zt-1][1]),_e=parseFloat(G[Zt][0]),wn=parseFloat(G[Zt][1]);if(be>-180&&be-180&&G[Zt-1][0]Tt&&be<180&&_e===-180&&Zt+1Tt&&G[Zt-1][0]<180){Ie.push([180,G[Zt][1]]),Zt++,Ie.push([G[Zt][0],G[Zt][1]]);continue}if(beTt){var cn=be;be=_e,_e=cn;var Tn=Ee;Ee=wn,wn=Tn}if(be>Tt&&_e=180&&be<_e){var dn=(180-be)/(_e-be),An=dn*wn+(1-dn)*Ee;Ie.push([G[Zt-1][0]>Tt?180:-180,An]),(Ie=[]).push([G[Zt-1][0]>Tt?-180:180,An]),me.push(Ie)}else Ie=[],me.push(Ie);Ie.push([fe,G[Zt][1]])}else Ie.push([G[Zt][0],G[Zt][1]])}}else{var yn=[];me.push(yn);for(var mn=0;mn=0;xt--)if(Gt[xt]!=Wt[xt])return!1;for(xt=Gt.length-1;xt>=0;xt--)if(It=Gt[xt],!G(yt[It],vt[It],Tt))return!1;return typeof yt==typeof vt}(rt,at,ft))};function Q(rt){return rt==null}function J(rt){return!(!rt||typeof rt!="object"||typeof rt.length!="number")&&typeof rt.copy=="function"&&typeof rt.slice=="function"&&!(rt.length>0&&typeof rt[0]!="number")}});function dd(B,U,G){if(G===void 0&&(G={}),!Dt(G=G||{}))throw new Error("options is invalid");var Q,J=G.tolerance||0,rt=[],at=Go(),ft=hn(B);return at.load(ft),we(U,function(yt){var vt=!1;yt&&(ve(at.search(yt),function(Tt){if(vt===!1){var xt=oe(yt).sort(),It=oe(Tt).sort();Wu(xt,It)||(J===0?Aa(xt[0],Tt)&&Aa(xt[1],Tt):Fl(Tt,xt[0]).properties.dist<=J&&Fl(Tt,xt[1]).properties.dist<=J)?(vt=!0,Q=Q?Ch(Q,yt):yt):(J===0?Aa(It[0],yt)&&Aa(It[1],yt):Fl(yt,It[0]).properties.dist<=J&&Fl(yt,It[1]).properties.dist<=J)&&(Q=Q?Ch(Q,Tt):Tt)}}),vt===!1&&Q&&(rt.push(Q),Q=void 0))}),Q&&rt.push(Q),ht(rt)}function Ch(B,U){var G=oe(U),Q=oe(B),J=Q[0],rt=Q[Q.length-1],at=B.geometry.coordinates;return Wu(G[0],J)?at.unshift(G[1]):Wu(G[0],rt)?at.push(G[1]):Wu(G[1],J)?at.unshift(G[0]):Wu(G[1],rt)&&at.push(G[0]),B}function fd(B){var U=B%360;return U<0&&(U+=360),U}function fu(B,U,G){var Q;return G===void 0&&(G={}),(Q=G.final?dg($t(U),$t(B)):dg($t(B),$t(U)))>180?-(360-Q):Q}function dg(B,U){var G=Ht(B[1]),Q=Ht(U[1]),J=Ht(U[0]-B[0]);J>Math.PI&&(J-=2*Math.PI),J<-Math.PI&&(J+=2*Math.PI);var rt=Math.log(Math.tan(Q/2+Math.PI/4)/Math.tan(G/2+Math.PI/4));return(Yt(Math.atan2(J,rt))+360)%360}function pd(B,U,G,Q){Q===void 0&&(Q={});var J=U<0,rt=qt(Math.abs(U),Q.units,"meters");J&&(rt=-Math.abs(rt));var at=$t(B),ft=function(yt,vt,Tt,xt){xt=xt===void 0?O:Number(xt);var It=vt/xt,Gt=yt[0]*Math.PI/180,Wt=Ht(yt[1]),ee=Ht(Tt),Bt=It*Math.cos(ee),me=Wt+Bt;Math.abs(me)>Math.PI/2&&(me=me>0?Math.PI-me:-Math.PI-me);var Ie=Math.log(Math.tan(me/2+Math.PI/4)/Math.tan(Wt/2+Math.PI/4)),Zt=Math.abs(Ie)>1e-11?Bt/Ie:Math.cos(Wt),fe=It*Math.sin(ee)/Zt;return[(180*(Gt+fe)/Math.PI+540)%360-180,180*me/Math.PI]}(at,rt,G);return ft[0]+=ft[0]-at[0]>180?-360:at[0]-ft[0]>180?360:0,X(ft,Q.properties)}function fg(B,U,G,Q,J,rt){for(var at=0;at0?pu(U,ft,J)<0||(J=ft):G>0&&Q<=0&&(fo(U,ft,rt)||(rt=ft)),G=Q}return[J,rt]}function fo(B,U,G){return pu(B,U,G)>0}function pu(B,U,G){return(U[0]-B[0])*(G[1]-B[1])-(G[0]-B[0])*(U[1]-B[1])}function uf(B){for(var U,G,Q=oe(B),J=0,rt=1;rt0}function gu(B,U){switch(B.type==="Feature"?B.geometry.type:B.type){case"GeometryCollection":return Oe(B,function(G){gu(G,U)}),B;case"LineString":return up(oe(B),U),B;case"Polygon":return qu(oe(B),U),B;case"MultiLineString":return oe(B).forEach(function(G){up(G,U)}),B;case"MultiPolygon":return oe(B).forEach(function(G){qu(G,U)}),B;case"Point":case"MultiPoint":return B}}function up(B,U){uf(B)===U&&B.reverse()}function qu(B,U){uf(B[0])!==U&&B[0].reverse();for(var G=1;GBt?128:64,Zt|=beBt?32:16,Zt|=EeBt?8:4;var wn=+(Zt|=_eBt?2:1),cn=0;if(Zt===17||Zt===18||Zt===33||Zt===34||Zt===38||Zt===68||Zt===72||Zt===98||Zt===102||Zt===132||Zt===136||Zt===137||Zt===152||Zt===153){var Tn=(fe+be+Ee+_e)/4;cn=Tn>Bt?2:Tn0?(Zt=156,cn=4):Zt=152:Zt===33?cn>0?(Zt=139,cn=4):Zt=137:Zt===72?cn>0?(Zt=99,cn=4):Zt=98:Zt===132&&(cn>0?(Zt=39,cn=4):Zt=38)}if(Zt!=0&&Zt!=170){var dn,An,yn,mn,fn,Sn,bn,Nn;dn=An=yn=mn=fn=Sn=bn=Nn=.5;var Ze=[];Zt===1?(yn=1-Te(xt,Ee,_e),Nn=1-Te(xt,fe,_e),Ze.push(kr[Zt])):Zt===169?(yn=Te(Bt,_e,Ee),Nn=Te(Bt,_e,fe),Ze.push(kr[Zt])):Zt===4?(Sn=1-Te(xt,be,Ee),mn=Te(xt,_e,Ee),Ze.push(vr[Zt])):Zt===166?(Sn=Te(Bt,Ee,be),mn=1-Te(Bt,Ee,_e),Ze.push(vr[Zt])):Zt===16?(fn=Te(xt,Ee,be),An=Te(xt,fe,be),Ze.push(br[Zt])):Zt===154?(fn=1-Te(Bt,be,Ee),An=1-Te(Bt,be,fe),Ze.push(br[Zt])):Zt===64?(bn=Te(xt,_e,fe),dn=1-Te(xt,be,fe),Ze.push(Fr[Zt])):Zt===106?(bn=1-Te(Bt,fe,_e),dn=Te(Bt,fe,be),Ze.push(Fr[Zt])):Zt===168?(mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),Ze.push(Rr[Zt]),Ze.push(kr[Zt])):Zt===2?(mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),Ze.push(Rr[Zt]),Ze.push(kr[Zt])):Zt===162?(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),Ze.push(Rr[Zt]),Ze.push(kr[Zt])):Zt===8?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===138?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===32?(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),dn=Te(xt,fe,be),An=Te(Bt,fe,be),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===42?(Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be),Ze.push(Vr[Zt]),Ze.push(Fr[Zt])):Zt===128&&(Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe),Ze.push(Vr[Zt]),Ze.push(Fr[Zt])),Zt===5?(Sn=1-Te(xt,be,Ee),Nn=1-Te(xt,fe,_e),Ze.push(vr[Zt])):Zt===165?(Sn=Te(Bt,Ee,be),Nn=Te(Bt,_e,fe),Ze.push(vr[Zt])):Zt===20?(mn=Te(xt,_e,Ee),An=Te(xt,fe,be),Ze.push(Rr[Zt])):Zt===150?(mn=1-Te(Bt,Ee,_e),An=1-Te(Bt,be,fe),Ze.push(Rr[Zt])):Zt===80?(fn=Te(xt,Ee,be),bn=Te(xt,_e,fe),Ze.push(br[Zt])):Zt===90?(fn=1-Te(Bt,be,Ee),bn=1-Te(Bt,fe,_e),Ze.push(br[Zt])):Zt===65?(yn=1-Te(xt,Ee,_e),dn=1-Te(xt,be,fe),Ze.push(kr[Zt])):Zt===105?(yn=Te(Bt,_e,Ee),dn=Te(Bt,fe,be),Ze.push(kr[Zt])):Zt===160?(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===10?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===130?(mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe),Ze.push(Rr[Zt]),Ze.push(kr[Zt])):Zt===40?(mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),dn=Te(xt,fe,be),An=Te(Bt,fe,be),Ze.push(Rr[Zt]),Ze.push(kr[Zt])):Zt===101?(Sn=Te(Bt,Ee,be),dn=Te(Bt,fe,be),Ze.push(vr[Zt])):Zt===69?(Sn=1-Te(xt,be,Ee),dn=1-Te(xt,be,fe),Ze.push(vr[Zt])):Zt===149?(Nn=Te(Bt,_e,fe),An=1-Te(Bt,be,fe),Ze.push(Vr[Zt])):Zt===21?(Nn=1-Te(xt,fe,_e),An=Te(xt,fe,be),Ze.push(Vr[Zt])):Zt===86?(mn=1-Te(Bt,Ee,_e),bn=1-Te(Bt,fe,_e),Ze.push(Rr[Zt])):Zt===84?(mn=Te(xt,_e,Ee),bn=Te(xt,_e,fe),Ze.push(Rr[Zt])):Zt===89?(fn=1-Te(Bt,be,Ee),yn=Te(Bt,_e,Ee),Ze.push(kr[Zt])):Zt===81?(fn=Te(xt,Ee,be),yn=1-Te(xt,Ee,_e),Ze.push(kr[Zt])):Zt===96?(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),bn=Te(xt,_e,fe),dn=Te(Bt,fe,be),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===74?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),bn=1-Te(Bt,fe,_e),dn=1-Te(xt,be,fe),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===24?(fn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),An=Te(xt,fe,be),Ze.push(br[Zt]),Ze.push(kr[Zt])):Zt===146?(fn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),An=1-Te(Bt,be,fe),Ze.push(br[Zt]),Ze.push(kr[Zt])):Zt===6?(Sn=1-Te(xt,be,Ee),mn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),Ze.push(vr[Zt]),Ze.push(Rr[Zt])):Zt===164?(Sn=Te(Bt,Ee,be),mn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),Ze.push(vr[Zt]),Ze.push(Rr[Zt])):Zt===129?(yn=1-Te(xt,Ee,_e),Nn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe),Ze.push(kr[Zt]),Ze.push(Vr[Zt])):Zt===41?(yn=Te(Bt,_e,Ee),Nn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be),Ze.push(kr[Zt]),Ze.push(Vr[Zt])):Zt===66?(mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),bn=1-Te(Bt,fe,_e),dn=1-Te(xt,be,fe),Ze.push(Rr[Zt]),Ze.push(kr[Zt])):Zt===104?(mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),bn=Te(xt,_e,fe),dn=Te(Bt,fe,be),Ze.push(kr[Zt]),Ze.push(Xi[Zt])):Zt===144?(fn=Te(xt,Ee,be),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),An=1-Te(Bt,be,fe),Ze.push(br[Zt]),Ze.push(Fr[Zt])):Zt===26?(fn=1-Te(Bt,be,Ee),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),An=Te(xt,fe,be),Ze.push(br[Zt]),Ze.push(Fr[Zt])):Zt===36?(Sn=Te(Bt,Ee,be),mn=Te(xt,_e,Ee),dn=Te(xt,fe,be),An=Te(Bt,fe,be),Ze.push(vr[Zt]),Ze.push(Rr[Zt])):Zt===134?(Sn=1-Te(xt,be,Ee),mn=1-Te(Bt,Ee,_e),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe),Ze.push(vr[Zt]),Ze.push(Rr[Zt])):Zt===9?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),yn=Te(Bt,_e,Ee),Nn=1-Te(xt,fe,_e),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===161?(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),yn=1-Te(xt,Ee,_e),Nn=Te(Bt,_e,fe),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===37?(Sn=Te(Bt,Ee,be),Nn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be),Ze.push(vr[Zt]),Ze.push(Vr[Zt])):Zt===133?(Sn=1-Te(xt,be,Ee),Nn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe),Ze.push(vr[Zt]),Ze.push(Vr[Zt])):Zt===148?(mn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),An=1-Te(Bt,be,fe),Ze.push(Rr[Zt]),Ze.push(Fr[Zt])):Zt===22?(mn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),An=Te(xt,fe,be),Ze.push(Rr[Zt]),Ze.push(Fr[Zt])):Zt===82?(fn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),bn=1-Te(Bt,fe,_e),Ze.push(br[Zt]),Ze.push(kr[Zt])):Zt===88?(fn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),bn=Te(xt,_e,fe),Ze.push(br[Zt]),Ze.push(kr[Zt])):Zt===73?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),yn=Te(Bt,_e,Ee),dn=1-Te(xt,be,fe),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===97?(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),yn=1-Te(xt,Ee,_e),dn=Te(Bt,fe,be),Ze.push(br[Zt]),Ze.push(vr[Zt])):Zt===145?(fn=Te(xt,Ee,be),yn=1-Te(xt,Ee,_e),Nn=Te(Bt,_e,fe),An=1-Te(Bt,be,fe),Ze.push(br[Zt]),Ze.push(Vr[Zt])):Zt===25?(fn=1-Te(Bt,be,Ee),yn=Te(Bt,_e,Ee),Nn=1-Te(xt,fe,_e),An=Te(xt,fe,be),Ze.push(br[Zt]),Ze.push(Vr[Zt])):Zt===70?(Sn=1-Te(xt,be,Ee),mn=1-Te(Bt,Ee,_e),bn=1-Te(Bt,fe,_e),dn=1-Te(xt,be,fe),Ze.push(vr[Zt]),Ze.push(Rr[Zt])):Zt===100?(Sn=Te(Bt,Ee,be),mn=Te(xt,_e,Ee),bn=Te(xt,_e,fe),dn=Te(Bt,fe,be),Ze.push(vr[Zt]),Ze.push(Rr[Zt])):Zt===34?(cn===0?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe)):(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be)),Ze.push(br[Zt]),Ze.push(vr[Zt]),Ze.push(Vr[Zt]),Ze.push(Fr[Zt])):Zt===35?(cn===4?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe)):(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be)),Ze.push(br[Zt]),Ze.push(vr[Zt]),Ze.push(kr[Zt]),Ze.push(Fr[Zt])):Zt===136?(cn===0?(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be)):(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe)),Ze.push(br[Zt]),Ze.push(vr[Zt]),Ze.push(Vr[Zt]),Ze.push(Fr[Zt])):Zt===153?(cn===0?(fn=Te(xt,Ee,be),yn=1-Te(xt,Ee,_e),Nn=1-Te(xt,fe,_e),An=Te(xt,fe,be)):(fn=1-Te(Bt,be,Ee),yn=Te(Bt,_e,Ee),Nn=Te(Bt,_e,fe),An=1-Te(Bt,be,fe)),Ze.push(br[Zt]),Ze.push(kr[Zt])):Zt===102?(cn===0?(Sn=1-Te(xt,be,Ee),mn=Te(xt,_e,Ee),bn=Te(xt,_e,fe),dn=1-Te(xt,be,fe)):(Sn=Te(Bt,Ee,be),mn=1-Te(Bt,Ee,_e),bn=1-Te(Bt,fe,_e),dn=Te(Bt,fe,be)),Ze.push(vr[Zt]),Ze.push(Fr[Zt])):Zt===155?(cn===4?(fn=Te(xt,Ee,be),yn=1-Te(xt,Ee,_e),Nn=1-Te(xt,fe,_e),An=Te(xt,fe,be)):(fn=1-Te(Bt,be,Ee),yn=Te(Bt,_e,Ee),Nn=Te(Bt,_e,fe),An=1-Te(Bt,be,fe)),Ze.push(br[Zt]),Ze.push(Vr[Zt])):Zt===103?(cn===4?(Sn=1-Te(xt,be,Ee),mn=Te(xt,_e,Ee),bn=Te(xt,_e,fe),dn=1-Te(xt,be,fe)):(Sn=Te(Bt,Ee,be),mn=1-Te(Bt,Ee,_e),bn=1-Te(Bt,fe,_e),dn=Te(Bt,fe,be)),Ze.push(vr[Zt]),Ze.push(Rr[Zt])):Zt===152?(cn===0?(fn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),An=Te(xt,fe,be)):(fn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),An=1-Te(Bt,be,fe)),Ze.push(br[Zt]),Ze.push(Rr[Zt]),Ze.push(kr[Zt])):Zt===156?(cn===4?(fn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),An=Te(xt,fe,be)):(fn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),An=1-Te(Bt,be,fe)),Ze.push(br[Zt]),Ze.push(kr[Zt]),Ze.push(Fr[Zt])):Zt===137?(cn===0?(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),yn=1-Te(xt,Ee,_e),Nn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be)):(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),yn=Te(Bt,_e,Ee),Nn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe)),Ze.push(br[Zt]),Ze.push(vr[Zt]),Ze.push(kr[Zt])):Zt===139?(cn===4?(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),yn=1-Te(xt,Ee,_e),Nn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be)):(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),yn=Te(Bt,_e,Ee),Nn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe)),Ze.push(br[Zt]),Ze.push(vr[Zt]),Ze.push(Vr[Zt])):Zt===98?(cn===0?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),bn=Te(xt,_e,fe),dn=1-Te(xt,be,fe)):(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),bn=1-Te(Bt,fe,_e),dn=Te(Bt,fe,be)),Ze.push(br[Zt]),Ze.push(vr[Zt]),Ze.push(Fr[Zt])):Zt===99?(cn===4?(fn=1-Te(xt,be,Ee),Sn=1-Te(Bt,be,Ee),mn=Te(Bt,_e,Ee),yn=Te(xt,_e,Ee),bn=Te(xt,_e,fe),dn=1-Te(xt,be,fe)):(fn=Te(Bt,Ee,be),Sn=Te(xt,Ee,be),mn=1-Te(xt,Ee,_e),yn=1-Te(Bt,Ee,_e),bn=1-Te(Bt,fe,_e),dn=Te(Bt,fe,be)),Ze.push(br[Zt]),Ze.push(vr[Zt]),Ze.push(kr[Zt])):Zt===38?(cn===0?(Sn=1-Te(xt,be,Ee),mn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe)):(Sn=Te(Bt,Ee,be),mn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be)),Ze.push(vr[Zt]),Ze.push(Vr[Zt]),Ze.push(Fr[Zt])):Zt===39?(cn===4?(Sn=1-Te(xt,be,Ee),mn=Te(xt,_e,Ee),Nn=Te(xt,_e,fe),bn=Te(Bt,_e,fe),dn=1-Te(Bt,be,fe),An=1-Te(xt,be,fe)):(Sn=Te(Bt,Ee,be),mn=1-Te(Bt,Ee,_e),Nn=1-Te(Bt,fe,_e),bn=1-Te(xt,fe,_e),dn=Te(xt,fe,be),An=Te(Bt,fe,be)),Ze.push(vr[Zt]),Ze.push(Rr[Zt]),Ze.push(Fr[Zt])):Zt===85&&(fn=1,Sn=0,mn=1,yn=0,Nn=0,bn=1,dn=0,An=1),(dn<0||dn>1||An<0||An>1||fn<0||fn>1||mn<0||mn>1||Nn<0||Nn>1||bn<0||bn>1)&&console.log("MarchingSquaresJS-isoBands: "+Zt+" "+wn+" "+fe+","+be+","+Ee+","+_e+" "+cn+" "+dn+" "+An+" "+fn+" "+Sn+" "+mn+" "+yn+" "+Nn+" "+bn),ee.cells[me][Ie]={cval:Zt,cval_real:wn,flipped:cn,topleft:dn,topright:An,righttop:fn,rightbottom:Sn,bottomright:mn,bottomleft:yn,leftbottom:Nn,lefttop:bn,edges:Ze}}}}}return ee}(B,U,G);return Ul.polygons?(Ul.verbose&&console.log("MarchingSquaresJS-isoBands: returning single polygons for each grid cell"),yt=function(Tt){var xt=[],It=0;return Tt.cells.forEach(function(Gt,Wt){Gt.forEach(function(ee,Bt){if(ee!==void 0){var me=cr[ee.cval](ee);typeof me=="object"&&xg(me)?typeof me[0]=="object"&&xg(me[0])?typeof me[0][0]=="object"&&xg(me[0][0])?me.forEach(function(Ie){Ie.forEach(function(Zt){Zt[0]+=Bt,Zt[1]+=Wt}),xt[It++]=Ie}):(me.forEach(function(Ie){Ie[0]+=Bt,Ie[1]+=Wt}),xt[It++]=me):console.log("MarchingSquaresJS-isoBands: bandcell polygon with malformed coordinates"):console.log("MarchingSquaresJS-isoBands: bandcell polygon with null coordinates")}})}),xt}(vt)):(Ul.verbose&&console.log("MarchingSquaresJS-isoBands: returning polygon paths for entire data grid"),yt=function(Tt){for(var xt=[],It=Tt.rows,Gt=Tt.cols,Wt=[],ee=0;ee0){var me=hf(Tt.cells[ee][Bt]),Ie=null,Zt=Bt,fe=ee;me!==null&&Wt.push([me.p[0]+Zt,me.p[1]+fe]);do{if((Ie=H1(Tt.cells[fe][Zt],me.x,me.y,me.o))===null)break;if(Wt.push([Ie.p[0]+Zt,Ie.p[1]+fe]),Zt+=Ie.x,me=Ie,(fe+=Ie.y)<0||fe>=It||Zt<0||Zt>=Gt||Tt.cells[fe][Zt]===void 0){var be=Y1(Tt,Zt-=Ie.x,fe-=Ie.y,Ie.x,Ie.y,Ie.o);if(be===null)break;be.path.forEach(function(Ee){Wt.push(Ee)}),Zt=be.i,fe=be.j,me=be}}while(Tt.cells[fe][Zt]!==void 0&&Tt.cells[fe][Zt].edges.length>0);xt.push(Wt),Wt=[],Tt.cells[ee][Bt].edges.length>0&&Bt--}return xt}(vt)),typeof Ul.successCallback=="function"&&Ul.successCallback(yt),yt}var bs=64,uc=16,di=[],ji=[],Ai=[],bi=[],_i=[],Bi=[],$i=[],Ni=[],wi=[],Fi=[],Ui=[],Yi=[],Hi=[],Wr=[],Di=[],Ii=[],Vi=[],ui=[],Gi=[],Wi=[],qi=[],xi=[],Qi=[],Li=[];$i[85]=Fi[85]=-1,Ni[85]=Ui[85]=0,wi[85]=Yi[85]=1,Gi[85]=xi[85]=1,Wi[85]=Qi[85]=0,qi[85]=Li[85]=1,di[85]=bi[85]=0,ji[85]=_i[85]=-1,Ai[85]=Di[85]=0,Ii[85]=Hi[85]=0,Vi[85]=Wr[85]=1,Bi[85]=ui[85]=1,xi[1]=xi[169]=0,Qi[1]=Qi[169]=-1,Li[1]=Li[169]=0,Hi[1]=Hi[169]=-1,Wr[1]=Wr[169]=0,Di[1]=Di[169]=0,Fi[4]=Fi[166]=0,Ui[4]=Ui[166]=-1,Yi[4]=Yi[166]=1,Ii[4]=Ii[166]=1,Vi[4]=Vi[166]=0,ui[4]=ui[166]=0,$i[16]=$i[154]=0,Ni[16]=Ni[154]=1,wi[16]=wi[154]=1,bi[16]=bi[154]=1,_i[16]=_i[154]=0,Bi[16]=Bi[154]=1,Gi[64]=Gi[106]=0,Wi[64]=Wi[106]=1,qi[64]=qi[106]=0,di[64]=di[106]=-1,ji[64]=ji[106]=0,Ai[64]=Ai[106]=1,Gi[2]=Gi[168]=0,Wi[2]=Wi[168]=-1,qi[2]=qi[168]=1,xi[2]=xi[168]=0,Qi[2]=Qi[168]=-1,Li[2]=Li[168]=0,Hi[2]=Hi[168]=-1,Wr[2]=Wr[168]=0,Di[2]=Di[168]=0,Ii[2]=Ii[168]=-1,Vi[2]=Vi[168]=0,ui[2]=ui[168]=1,$i[8]=$i[162]=0,Ni[8]=Ni[162]=-1,wi[8]=wi[162]=0,Fi[8]=Fi[162]=0,Ui[8]=Ui[162]=-1,Yi[8]=Yi[162]=1,Hi[8]=Hi[162]=1,Wr[8]=Wr[162]=0,Di[8]=Di[162]=1,Ii[8]=Ii[162]=1,Vi[8]=Vi[162]=0,ui[8]=ui[162]=0,$i[32]=$i[138]=0,Ni[32]=Ni[138]=1,wi[32]=wi[138]=1,Fi[32]=Fi[138]=0,Ui[32]=Ui[138]=1,Yi[32]=Yi[138]=0,di[32]=di[138]=1,ji[32]=ji[138]=0,Ai[32]=Ai[138]=0,bi[32]=bi[138]=1,_i[32]=_i[138]=0,Bi[32]=Bi[138]=1,xi[128]=xi[42]=0,Qi[128]=Qi[42]=1,Li[128]=Li[42]=1,Gi[128]=Gi[42]=0,Wi[128]=Wi[42]=1,qi[128]=qi[42]=0,di[128]=di[42]=-1,ji[128]=ji[42]=0,Ai[128]=Ai[42]=1,bi[128]=bi[42]=-1,_i[128]=_i[42]=0,Bi[128]=Bi[42]=0,Fi[5]=Fi[165]=-1,Ui[5]=Ui[165]=0,Yi[5]=Yi[165]=0,xi[5]=xi[165]=1,Qi[5]=Qi[165]=0,Li[5]=Li[165]=0,Ii[20]=Ii[150]=0,Vi[20]=Vi[150]=1,ui[20]=ui[150]=1,bi[20]=bi[150]=0,_i[20]=_i[150]=-1,Bi[20]=Bi[150]=1,$i[80]=$i[90]=-1,Ni[80]=Ni[90]=0,wi[80]=wi[90]=1,Gi[80]=Gi[90]=1,Wi[80]=Wi[90]=0,qi[80]=qi[90]=1,Hi[65]=Hi[105]=0,Wr[65]=Wr[105]=1,Di[65]=Di[105]=0,di[65]=di[105]=0,ji[65]=ji[105]=-1,Ai[65]=Ai[105]=0,$i[160]=$i[10]=-1,Ni[160]=Ni[10]=0,wi[160]=wi[10]=1,Fi[160]=Fi[10]=-1,Ui[160]=Ui[10]=0,Yi[160]=Yi[10]=0,xi[160]=xi[10]=1,Qi[160]=Qi[10]=0,Li[160]=Li[10]=0,Gi[160]=Gi[10]=1,Wi[160]=Wi[10]=0,qi[160]=qi[10]=1,Ii[130]=Ii[40]=0,Vi[130]=Vi[40]=1,ui[130]=ui[40]=1,Hi[130]=Hi[40]=0,Wr[130]=Wr[40]=1,Di[130]=Di[40]=0,di[130]=di[40]=0,ji[130]=ji[40]=-1,Ai[130]=Ai[40]=0,bi[130]=bi[40]=0,_i[130]=_i[40]=-1,Bi[130]=Bi[40]=1,Fi[37]=Fi[133]=0,Ui[37]=Ui[133]=1,Yi[37]=Yi[133]=1,xi[37]=xi[133]=0,Qi[37]=Qi[133]=1,Li[37]=Li[133]=0,di[37]=di[133]=-1,ji[37]=ji[133]=0,Ai[37]=Ai[133]=0,bi[37]=bi[133]=1,_i[37]=_i[133]=0,Bi[37]=Bi[133]=0,Ii[148]=Ii[22]=-1,Vi[148]=Vi[22]=0,ui[148]=ui[22]=0,xi[148]=xi[22]=0,Qi[148]=Qi[22]=-1,Li[148]=Li[22]=1,Gi[148]=Gi[22]=0,Wi[148]=Wi[22]=1,qi[148]=qi[22]=1,bi[148]=bi[22]=-1,_i[148]=_i[22]=0,Bi[148]=Bi[22]=1,$i[82]=$i[88]=0,Ni[82]=Ni[88]=-1,wi[82]=wi[88]=1,Ii[82]=Ii[88]=1,Vi[82]=Vi[88]=0,ui[82]=ui[88]=1,Hi[82]=Hi[88]=-1,Wr[82]=Wr[88]=0,Di[82]=Di[88]=1,Gi[82]=Gi[88]=0,Wi[82]=Wi[88]=-1,qi[82]=qi[88]=0,$i[73]=$i[97]=0,Ni[73]=Ni[97]=1,wi[73]=wi[97]=0,Fi[73]=Fi[97]=0,Ui[73]=Ui[97]=-1,Yi[73]=Yi[97]=0,Hi[73]=Hi[97]=1,Wr[73]=Wr[97]=0,Di[73]=Di[97]=0,di[73]=di[97]=1,ji[73]=ji[97]=0,Ai[73]=Ai[97]=1,$i[145]=$i[25]=0,Ni[145]=Ni[25]=-1,wi[145]=wi[25]=0,Hi[145]=Hi[25]=1,Wr[145]=Wr[25]=0,Di[145]=Di[25]=1,xi[145]=xi[25]=0,Qi[145]=Qi[25]=1,Li[145]=Li[25]=1,bi[145]=bi[25]=-1,_i[145]=_i[25]=0,Bi[145]=Bi[25]=0,Fi[70]=Fi[100]=0,Ui[70]=Ui[100]=1,Yi[70]=Yi[100]=0,Ii[70]=Ii[100]=-1,Vi[70]=Vi[100]=0,ui[70]=ui[100]=1,Gi[70]=Gi[100]=0,Wi[70]=Wi[100]=-1,qi[70]=qi[100]=1,di[70]=di[100]=1,ji[70]=ji[100]=0,Ai[70]=Ai[100]=0,Fi[101]=Fi[69]=0,Ui[101]=Ui[69]=1,Yi[101]=Yi[69]=0,di[101]=di[69]=1,ji[101]=ji[69]=0,Ai[101]=Ai[69]=0,xi[149]=xi[21]=0,Qi[149]=Qi[21]=1,Li[149]=Li[21]=1,bi[149]=bi[21]=-1,_i[149]=_i[21]=0,Bi[149]=Bi[21]=0,Ii[86]=Ii[84]=-1,Vi[86]=Vi[84]=0,ui[86]=ui[84]=1,Gi[86]=Gi[84]=0,Wi[86]=Wi[84]=-1,qi[86]=qi[84]=1,$i[89]=$i[81]=0,Ni[89]=Ni[81]=-1,wi[89]=wi[81]=0,Hi[89]=Hi[81]=1,Wr[89]=Wr[81]=0,Di[89]=Di[81]=1,$i[96]=$i[74]=0,Ni[96]=Ni[74]=1,wi[96]=wi[74]=0,Fi[96]=Fi[74]=-1,Ui[96]=Ui[74]=0,Yi[96]=Yi[74]=1,Gi[96]=Gi[74]=1,Wi[96]=Wi[74]=0,qi[96]=qi[74]=0,di[96]=di[74]=1,ji[96]=ji[74]=0,Ai[96]=Ai[74]=1,$i[24]=$i[146]=0,Ni[24]=Ni[146]=-1,wi[24]=wi[146]=1,Ii[24]=Ii[146]=1,Vi[24]=Vi[146]=0,ui[24]=ui[146]=1,Hi[24]=Hi[146]=0,Wr[24]=Wr[146]=1,Di[24]=Di[146]=1,bi[24]=bi[146]=0,_i[24]=_i[146]=-1,Bi[24]=Bi[146]=0,Fi[6]=Fi[164]=-1,Ui[6]=Ui[164]=0,Yi[6]=Yi[164]=1,Ii[6]=Ii[164]=-1,Vi[6]=Vi[164]=0,ui[6]=ui[164]=0,xi[6]=xi[164]=0,Qi[6]=Qi[164]=-1,Li[6]=Li[164]=1,Gi[6]=Gi[164]=1,Wi[6]=Wi[164]=0,qi[6]=qi[164]=0,Hi[129]=Hi[41]=0,Wr[129]=Wr[41]=1,Di[129]=Di[41]=1,xi[129]=xi[41]=0,Qi[129]=Qi[41]=1,Li[129]=Li[41]=0,di[129]=di[41]=-1,ji[129]=ji[41]=0,Ai[129]=Ai[41]=0,bi[129]=bi[41]=0,_i[129]=_i[41]=-1,Bi[129]=Bi[41]=0,Ii[66]=Ii[104]=0,Vi[66]=Vi[104]=1,ui[66]=ui[104]=0,Hi[66]=Hi[104]=-1,Wr[66]=Wr[104]=0,Di[66]=Di[104]=1,Gi[66]=Gi[104]=0,Wi[66]=Wi[104]=-1,qi[66]=qi[104]=0,di[66]=di[104]=0,ji[66]=ji[104]=-1,Ai[66]=Ai[104]=1,$i[144]=$i[26]=-1,Ni[144]=Ni[26]=0,wi[144]=wi[26]=0,xi[144]=xi[26]=1,Qi[144]=Qi[26]=0,Li[144]=Li[26]=1,Gi[144]=Gi[26]=0,Wi[144]=Wi[26]=1,qi[144]=qi[26]=1,bi[144]=bi[26]=-1,_i[144]=_i[26]=0,Bi[144]=Bi[26]=1,Fi[36]=Fi[134]=0,Ui[36]=Ui[134]=1,Yi[36]=Yi[134]=1,Ii[36]=Ii[134]=0,Vi[36]=Vi[134]=1,ui[36]=ui[134]=0,di[36]=di[134]=0,ji[36]=ji[134]=-1,Ai[36]=Ai[134]=1,bi[36]=bi[134]=1,_i[36]=_i[134]=0,Bi[36]=Bi[134]=0,$i[9]=$i[161]=-1,Ni[9]=Ni[161]=0,wi[9]=wi[161]=0,Fi[9]=Fi[161]=0,Ui[9]=Ui[161]=-1,Yi[9]=Yi[161]=0,Hi[9]=Hi[161]=1,Wr[9]=Wr[161]=0,Di[9]=Di[161]=0,xi[9]=xi[161]=1,Qi[9]=Qi[161]=0,Li[9]=Li[161]=1,$i[136]=0,Ni[136]=1,wi[136]=1,Fi[136]=0,Ui[136]=1,Yi[136]=0,Ii[136]=-1,Vi[136]=0,ui[136]=1,Hi[136]=-1,Wr[136]=0,Di[136]=0,xi[136]=0,Qi[136]=-1,Li[136]=0,Gi[136]=0,Wi[136]=-1,qi[136]=1,di[136]=1,ji[136]=0,Ai[136]=0,bi[136]=1,_i[136]=0,Bi[136]=1,$i[34]=0,Ni[34]=-1,wi[34]=0,Fi[34]=0,Ui[34]=-1,Yi[34]=1,Ii[34]=1,Vi[34]=0,ui[34]=0,Hi[34]=1,Wr[34]=0,Di[34]=1,xi[34]=0,Qi[34]=1,Li[34]=1,Gi[34]=0,Wi[34]=1,qi[34]=0,di[34]=-1,ji[34]=0,Ai[34]=1,bi[34]=-1,_i[34]=0,Bi[34]=0,$i[35]=0,Ni[35]=1,wi[35]=1,Fi[35]=0,Ui[35]=-1,Yi[35]=1,Ii[35]=1,Vi[35]=0,ui[35]=0,Hi[35]=-1,Wr[35]=0,Di[35]=0,xi[35]=0,Qi[35]=-1,Li[35]=0,Gi[35]=0,Wi[35]=1,qi[35]=0,di[35]=-1,ji[35]=0,Ai[35]=1,bi[35]=1,_i[35]=0,Bi[35]=1,$i[153]=0,Ni[153]=1,wi[153]=1,Hi[153]=-1,Wr[153]=0,Di[153]=0,xi[153]=0,Qi[153]=-1,Li[153]=0,bi[153]=1,_i[153]=0,Bi[153]=1,Fi[102]=0,Ui[102]=-1,Yi[102]=1,Ii[102]=1,Vi[102]=0,ui[102]=0,Gi[102]=0,Wi[102]=1,qi[102]=0,di[102]=-1,ji[102]=0,Ai[102]=1,$i[155]=0,Ni[155]=-1,wi[155]=0,Hi[155]=1,Wr[155]=0,Di[155]=1,xi[155]=0,Qi[155]=1,Li[155]=1,bi[155]=-1,_i[155]=0,Bi[155]=0,Fi[103]=0,Ui[103]=1,Yi[103]=0,Ii[103]=-1,Vi[103]=0,ui[103]=1,Gi[103]=0,Wi[103]=-1,qi[103]=1,di[103]=1,ji[103]=0,Ai[103]=0,$i[152]=0,Ni[152]=1,wi[152]=1,Ii[152]=-1,Vi[152]=0,ui[152]=1,Hi[152]=-1,Wr[152]=0,Di[152]=0,xi[152]=0,Qi[152]=-1,Li[152]=0,Gi[152]=0,Wi[152]=-1,qi[152]=1,bi[152]=1,_i[152]=0,Bi[152]=1,$i[156]=0,Ni[156]=-1,wi[156]=1,Ii[156]=1,Vi[156]=0,ui[156]=1,Hi[156]=-1,Wr[156]=0,Di[156]=0,xi[156]=0,Qi[156]=-1,Li[156]=0,Gi[156]=0,Wi[156]=1,qi[156]=1,bi[156]=-1,_i[156]=0,Bi[156]=1,$i[137]=0,Ni[137]=1,wi[137]=1,Fi[137]=0,Ui[137]=1,Yi[137]=0,Hi[137]=-1,Wr[137]=0,Di[137]=0,xi[137]=0,Qi[137]=-1,Li[137]=0,di[137]=1,ji[137]=0,Ai[137]=0,bi[137]=1,_i[137]=0,Bi[137]=1,$i[139]=0,Ni[139]=1,wi[139]=1,Fi[139]=0,Ui[139]=-1,Yi[139]=0,Hi[139]=1,Wr[139]=0,Di[139]=0,xi[139]=0,Qi[139]=1,Li[139]=0,di[139]=-1,ji[139]=0,Ai[139]=0,bi[139]=1,_i[139]=0,Bi[139]=1,$i[98]=0,Ni[98]=-1,wi[98]=0,Fi[98]=0,Ui[98]=-1,Yi[98]=1,Ii[98]=1,Vi[98]=0,ui[98]=0,Hi[98]=1,Wr[98]=0,Di[98]=1,Gi[98]=0,Wi[98]=1,qi[98]=0,di[98]=-1,ji[98]=0,Ai[98]=1,$i[99]=0,Ni[99]=1,wi[99]=0,Fi[99]=0,Ui[99]=-1,Yi[99]=1,Ii[99]=1,Vi[99]=0,ui[99]=0,Hi[99]=-1,Wr[99]=0,Di[99]=1,Gi[99]=0,Wi[99]=-1,qi[99]=0,di[99]=1,ji[99]=0,Ai[99]=1,Fi[38]=0,Ui[38]=-1,Yi[38]=1,Ii[38]=1,Vi[38]=0,ui[38]=0,xi[38]=0,Qi[38]=1,Li[38]=1,Gi[38]=0,Wi[38]=1,qi[38]=0,di[38]=-1,ji[38]=0,Ai[38]=1,bi[38]=-1,_i[38]=0,Bi[38]=0,Fi[39]=0,Ui[39]=1,Yi[39]=1,Ii[39]=-1,Vi[39]=0,ui[39]=0,xi[39]=0,Qi[39]=-1,Li[39]=1,Gi[39]=0,Wi[39]=1,qi[39]=0,di[39]=-1,ji[39]=0,Ai[39]=1,bi[39]=1,_i[39]=0,Bi[39]=0;var gg=function(B){return[[B.bottomleft,0],[0,0],[0,B.leftbottom]]},mg=function(B){return[[1,B.rightbottom],[1,0],[B.bottomright,0]]},hp=function(B){return[[B.topright,1],[1,1],[1,B.righttop]]},yg=function(B){return[[0,B.lefttop],[0,1],[B.topleft,1]]},vg=function(B){return[[B.bottomright,0],[B.bottomleft,0],[0,B.leftbottom],[0,B.lefttop]]},bg=function(B){return[[B.bottomright,0],[B.bottomleft,0],[1,B.righttop],[1,B.rightbottom]]},_g=function(B){return[[1,B.righttop],[1,B.rightbottom],[B.topleft,1],[B.topright,1]]},wg=function(B){return[[0,B.leftbottom],[0,B.lefttop],[B.topleft,1],[B.topright,1]]},br=[],vr=[],Rr=[],kr=[],Vr=[],Fr=[],Xi=[],Oi=[];kr[1]=Vr[1]=18,kr[169]=Vr[169]=18,Rr[4]=vr[4]=12,Rr[166]=vr[166]=12,br[16]=Oi[16]=4,br[154]=Oi[154]=4,Fr[64]=Xi[64]=22,Fr[106]=Xi[106]=22,Rr[2]=Fr[2]=17,kr[2]=Vr[2]=18,Rr[168]=Fr[168]=17,kr[168]=Vr[168]=18,br[8]=kr[8]=9,vr[8]=Rr[8]=12,br[162]=kr[162]=9,vr[162]=Rr[162]=12,br[32]=Oi[32]=4,vr[32]=Xi[32]=1,br[138]=Oi[138]=4,vr[138]=Xi[138]=1,Vr[128]=Oi[128]=21,Fr[128]=Xi[128]=22,Vr[42]=Oi[42]=21,Fr[42]=Xi[42]=22,vr[5]=Vr[5]=14,vr[165]=Vr[165]=14,Rr[20]=Oi[20]=6,Rr[150]=Oi[150]=6,br[80]=Fr[80]=11,br[90]=Fr[90]=11,kr[65]=Xi[65]=3,kr[105]=Xi[105]=3,br[160]=Fr[160]=11,vr[160]=Vr[160]=14,br[10]=Fr[10]=11,vr[10]=Vr[10]=14,Rr[130]=Oi[130]=6,kr[130]=Xi[130]=3,Rr[40]=Oi[40]=6,kr[40]=Xi[40]=3,vr[101]=Xi[101]=1,vr[69]=Xi[69]=1,Vr[149]=Oi[149]=21,Vr[21]=Oi[21]=21,Rr[86]=Fr[86]=17,Rr[84]=Fr[84]=17,br[89]=kr[89]=9,br[81]=kr[81]=9,br[96]=Xi[96]=0,vr[96]=Fr[96]=15,br[74]=Xi[74]=0,vr[74]=Fr[74]=15,br[24]=Rr[24]=8,kr[24]=Oi[24]=7,br[146]=Rr[146]=8,kr[146]=Oi[146]=7,vr[6]=Fr[6]=15,Rr[6]=Vr[6]=16,vr[164]=Fr[164]=15,Rr[164]=Vr[164]=16,kr[129]=Oi[129]=7,Vr[129]=Xi[129]=20,kr[41]=Oi[41]=7,Vr[41]=Xi[41]=20,Rr[66]=Xi[66]=2,kr[66]=Fr[66]=19,Rr[104]=Xi[104]=2,kr[104]=Fr[104]=19,br[144]=Vr[144]=10,Fr[144]=Oi[144]=23,br[26]=Vr[26]=10,Fr[26]=Oi[26]=23,vr[36]=Oi[36]=5,Rr[36]=Xi[36]=2,vr[134]=Oi[134]=5,Rr[134]=Xi[134]=2,br[9]=Vr[9]=10,vr[9]=kr[9]=13,br[161]=Vr[161]=10,vr[161]=kr[161]=13,vr[37]=Oi[37]=5,Vr[37]=Xi[37]=20,vr[133]=Oi[133]=5,Vr[133]=Xi[133]=20,Rr[148]=Vr[148]=16,Fr[148]=Oi[148]=23,Rr[22]=Vr[22]=16,Fr[22]=Oi[22]=23,br[82]=Rr[82]=8,kr[82]=Fr[82]=19,br[88]=Rr[88]=8,kr[88]=Fr[88]=19,br[73]=Xi[73]=0,vr[73]=kr[73]=13,br[97]=Xi[97]=0,vr[97]=kr[97]=13,br[145]=kr[145]=9,Vr[145]=Oi[145]=21,br[25]=kr[25]=9,Vr[25]=Oi[25]=21,vr[70]=Xi[70]=1,Rr[70]=Fr[70]=17,vr[100]=Xi[100]=1,Rr[100]=Fr[100]=17,br[34]=kr[34]=9,vr[34]=Rr[34]=12,Vr[34]=Oi[34]=21,Fr[34]=Xi[34]=22,br[136]=Oi[136]=4,vr[136]=Xi[136]=1,Rr[136]=Fr[136]=17,kr[136]=Vr[136]=18,br[35]=Oi[35]=4,vr[35]=Rr[35]=12,kr[35]=Vr[35]=18,Fr[35]=Xi[35]=22,br[153]=Oi[153]=4,kr[153]=Vr[153]=18,vr[102]=Rr[102]=12,Fr[102]=Xi[102]=22,br[155]=kr[155]=9,Vr[155]=Oi[155]=23,vr[103]=Xi[103]=1,Rr[103]=Fr[103]=17,br[152]=Oi[152]=4,Rr[152]=Fr[152]=17,kr[152]=Vr[152]=18,br[156]=Rr[156]=8,kr[156]=Vr[156]=18,Fr[156]=Oi[156]=23,br[137]=Oi[137]=4,vr[137]=Xi[137]=1,kr[137]=Vr[137]=18,br[139]=Oi[139]=4,vr[139]=kr[139]=13,Vr[139]=Xi[139]=20,br[98]=kr[98]=9,vr[98]=Rr[98]=12,Fr[98]=Xi[98]=22,br[99]=Xi[99]=0,vr[99]=Rr[99]=12,kr[99]=Fr[99]=19,vr[38]=Rr[38]=12,Vr[38]=Oi[38]=21,Fr[38]=Xi[38]=22,vr[39]=Oi[39]=5,Rr[39]=Vr[39]=16,Fr[39]=Xi[39]=22;var cr=[];function Te(B,U,G){return(B-U)/(G-U)}function xg(B){return B.constructor.toString().indexOf("Array")>-1}function Y1(B,U,G,Q,J,rt){for(var at=B.cells[G][U],ft=at.cval_real,yt=U+Q,vt=G+J,Tt=[],xt=!1;!xt;){if(B.cells[vt]===void 0||B.cells[vt][yt]===void 0)if(vt-=J,yt-=Q,ft=(at=B.cells[vt][yt]).cval_real,J===-1)if(rt===0)if(1&ft)Tt.push([yt,vt]),Q=-1,J=0,rt=0;else{if(!(4&ft)){Tt.push([yt+at.bottomright,vt]),Q=0,J=1,rt=1,xt=!0;break}Tt.push([yt+1,vt]),Q=1,J=0,rt=0}else{if(!(1&ft)){if(4&ft){Tt.push([yt+at.bottomright,vt]),Q=0,J=1,rt=1,xt=!0;break}Tt.push([yt+at.bottomleft,vt]),Q=0,J=1,rt=0,xt=!0;break}Tt.push([yt,vt]),Q=-1,J=0,rt=0}else if(J===1)if(rt===0){if(!(ft&uc)){if(ft&bs){Tt.push([yt+at.topleft,vt+1]),Q=0,J=-1,rt=0,xt=!0;break}Tt.push([yt+at.topright,vt+1]),Q=0,J=-1,rt=1,xt=!0;break}Tt.push([yt+1,vt+1]),Q=1,J=0,rt=1}else Tt.push([yt+1,vt+1]),Q=1,J=0,rt=1;else if(Q===-1)if(rt===0){if(!(ft&bs)){if(1&ft){Tt.push([yt,vt+at.leftbottom]),Q=1,J=0,rt=0,xt=!0;break}Tt.push([yt,vt+at.lefttop]),Q=1,J=0,rt=1,xt=!0;break}Tt.push([yt,vt+1]),Q=0,J=1,rt=0}else{if(!(ft&bs)){console.log("MarchingSquaresJS-isoBands: wtf");break}Tt.push([yt,vt+1]),Q=0,J=1,rt=0}else{if(Q!==1){console.log("MarchingSquaresJS-isoBands: we came from nowhere!");break}if(rt===0){if(!(4&ft)){Tt.push([yt+1,vt+at.rightbottom]),Q=-1,J=0,rt=0,xt=!0;break}Tt.push([yt+1,vt]),Q=0,J=-1,rt=1}else{if(!(4&ft)){if(ft&uc){Tt.push([yt+1,vt+at.righttop]),Q=-1,J=0,rt=1;break}Tt.push([yt+1,vt+at.rightbottom]),Q=-1,J=0,rt=0,xt=!0;break}Tt.push([yt+1,vt]),Q=0,J=-1,rt=1}}else if(ft=(at=B.cells[vt][yt]).cval_real,Q===-1)if(rt===0)if(B.cells[vt-1]!==void 0&&B.cells[vt-1][yt]!==void 0)Q=0,J=-1,rt=1;else{if(!(1&ft)){Tt.push([yt+at.bottomright,vt]),Q=0,J=1,rt=1,xt=!0;break}Tt.push([yt,vt])}else{if(!(ft&bs)){console.log("MarchingSquaresJS-isoBands: found entry from top at "+yt+","+vt);break}console.log("MarchingSquaresJS-isoBands: proceeding in x-direction!")}else if(Q===1){if(rt===0){console.log("MarchingSquaresJS-isoBands: wtf");break}if(B.cells[vt+1]!==void 0&&B.cells[vt+1][yt]!==void 0)Q=0,J=1,rt=0;else{if(!(ft&uc)){Tt.push([yt+at.topleft,vt+1]),Q=0,J=-1,rt=0,xt=!0;break}Tt.push([yt+1,vt+1]),Q=1,J=0,rt=1}}else if(J===-1){if(rt!==1){console.log("MarchingSquaresJS-isoBands: wtf");break}if(B.cells[vt][yt+1]!==void 0)Q=1,J=0,rt=1;else{if(!(4&ft)){Tt.push([yt+1,vt+at.righttop]),Q=-1,J=0,rt=1,xt=!0;break}Tt.push([yt+1,vt]),Q=0,J=-1,rt=1}}else{if(J!==1){console.log("MarchingSquaresJS-isoBands: where did we came from???");break}if(rt!==0){console.log("MarchingSquaresJS-isoBands: wtf");break}if(B.cells[vt][yt-1]!==void 0)Q=-1,J=0,rt=0;else{if(!(ft&bs)){Tt.push([yt,vt+at.leftbottom]),Q=1,J=0,rt=0,xt=!0;break}Tt.push([yt,vt+1]),Q=0,J=1,rt=0}}if(vt+=J,(yt+=Q)===U&&vt===G)break}return{path:Tt,i:yt,j:vt,x:Q,y:J,o:rt}}function hf(B){if(B.edges.length>0){var U=B.edges[B.edges.length-1],G=B.cval_real;switch(U){case 0:return G&uc?{p:[1,B.righttop],x:-1,y:0,o:1}:{p:[B.topleft,1],x:0,y:-1,o:0};case 1:return 4&G?{p:[B.topleft,1],x:0,y:-1,o:0}:{p:[1,B.rightbottom],x:-1,y:0,o:0};case 2:return 4&G?{p:[B.bottomright,0],x:0,y:1,o:1}:{p:[B.topleft,1],x:0,y:-1,o:0};case 3:return 1&G?{p:[B.topleft,1],x:0,y:-1,o:0}:{p:[B.bottomleft,0],x:0,y:1,o:0};case 4:return G&uc?{p:[1,B.righttop],x:-1,y:0,o:1}:{p:[B.topright,1],x:0,y:-1,o:1};case 5:return 4&G?{p:[B.topright,1],x:0,y:-1,o:1}:{p:[1,B.rightbottom],x:-1,y:0,o:0};case 6:return 4&G?{p:[B.bottomright,0],x:0,y:1,o:1}:{p:[B.topright,1],x:0,y:-1,o:1};case 7:return 1&G?{p:[B.topright,1],x:0,y:-1,o:1}:{p:[B.bottomleft,0],x:0,y:1,o:0};case 8:return 4&G?{p:[B.bottomright,0],x:0,y:1,o:1}:{p:[1,B.righttop],x:-1,y:0,o:1};case 9:return 1&G?{p:[1,B.righttop],x:-1,y:0,o:1}:{p:[B.bottomleft,0],x:0,y:1,o:0};case 10:return 1&G?{p:[0,B.leftbottom],x:1,y:0,o:0}:{p:[1,B.righttop],x:-1,y:0,o:1};case 11:return G&bs?{p:[1,B.righttop],x:-1,y:0,o:1}:{p:[0,B.lefttop],x:1,y:0,o:1};case 12:return 4&G?{p:[B.bottomright,0],x:0,y:1,o:1}:{p:[1,B.rightbottom],x:-1,y:0,o:0};case 13:return 1&G?{p:[1,B.rightbottom],x:-1,y:0,o:0}:{p:[B.bottomleft,0],x:0,y:1,o:0};case 14:return 1&G?{p:[0,B.leftbottom],x:1,y:0,o:0}:{p:[1,B.rightbottom],x:-1,y:0,o:0};case 15:return G&bs?{p:[1,B.rightbottom],x:-1,y:0,o:0}:{p:[0,B.lefttop],x:1,y:0,o:1};case 16:return 4&G?{p:[B.bottomright,0],x:0,y:1,o:1}:{p:[0,B.leftbottom],x:1,y:0,o:0};case 17:return G&bs?{p:[B.bottomright,0],x:0,y:1,o:1}:{p:[0,B.lefttop],x:1,y:0,o:1};case 18:return 1&G?{p:[0,B.leftbottom],x:1,y:0,o:0}:{p:[B.bottomleft,0],x:0,y:1,o:0};case 19:return G&bs?{p:[B.bottomleft,0],x:0,y:1,o:0}:{p:[0,B.lefttop],x:1,y:0,o:1};case 20:return G&bs?{p:[B.topleft,1],x:0,y:-1,o:0}:{p:[0,B.leftbottom],x:1,y:0,o:0};case 21:return G&uc?{p:[0,B.leftbottom],x:1,y:0,o:0}:{p:[B.topright,1],x:0,y:-1,o:1};case 22:return G&bs?{p:[B.topleft,1],x:0,y:-1,o:0}:{p:[0,B.lefttop],x:1,y:0,o:1};case 23:return G&uc?{p:[0,B.lefttop],x:1,y:0,o:1}:{p:[B.topright,1],x:0,y:-1,o:1};default:console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(B)}}return null}function H1(B,U,G,Q){var J,rt,at,ft,yt,vt=B.cval;switch(U){case-1:switch(Q){case 0:J=vr[vt],at=Fi[vt],ft=Ui[vt],yt=Yi[vt];break;default:J=br[vt],at=$i[vt],ft=Ni[vt],yt=wi[vt]}break;case 1:switch(Q){case 0:J=Vr[vt],at=xi[vt],ft=Qi[vt],yt=Li[vt];break;default:J=Fr[vt],at=Gi[vt],ft=Wi[vt],yt=qi[vt]}break;default:switch(G){case-1:switch(Q){case 0:J=Xi[vt],at=di[vt],ft=ji[vt],yt=Ai[vt];break;default:J=Oi[vt],at=bi[vt],ft=_i[vt],yt=Bi[vt]}break;case 1:switch(Q){case 0:J=kr[vt],at=Hi[vt],ft=Wr[vt],yt=Di[vt];break;default:J=Rr[vt],at=Ii[vt],ft=Vi[vt],yt=ui[vt]}}}if(rt=B.edges.indexOf(J),B.edges[rt]===void 0)return null;switch(function(Tt,xt){delete Tt.edges[xt];for(var It=xt+1;It0){var Tt=Q[yt-1],xt=Eg(vt,Tt);xt!==!1&&(Tt[1]=xt,vt[0]=xt),at.push(Tt[0]),yt===rt.length-2&&(at.push(vt[0]),at.push(vt[1]))}rt.length===2&&(at.push(vt[0]),at.push(vt[1]))}var It,Gt,Wt,ee,Bt,me,Ie,Zt}),ct(at,B.properties)}function Mg(B,U,G){var Q=U[0]-B[0],J=U[1]-B[1],rt=G[0]-U[0];return function(at){return(at>0)-(at<0)||+at}(Q*(G[1]-U[1])-rt*J)}function Tg(B,U){return U.geometry.coordinates[0].every(function(G){return Pr(X(G),B)})}cr[1]=cr[169]=gg,cr[4]=cr[166]=mg,cr[16]=cr[154]=hp,cr[64]=cr[106]=yg,cr[168]=cr[2]=vg,cr[162]=cr[8]=bg,cr[138]=cr[32]=_g,cr[42]=cr[128]=wg,cr[5]=cr[165]=function(B){return[[0,0],[0,B.leftbottom],[1,B.rightbottom],[1,0]]},cr[20]=cr[150]=function(B){return[[1,0],[B.bottomright,0],[B.topright,1],[1,1]]},cr[80]=cr[90]=function(B){return[[1,1],[1,B.righttop],[0,B.lefttop],[0,1]]},cr[65]=cr[105]=function(B){return[[B.bottomleft,0],[0,0],[0,1],[B.topleft,1]]},cr[160]=cr[10]=function(B){return[[1,B.righttop],[1,B.rightbottom],[0,B.leftbottom],[0,B.lefttop]]},cr[130]=cr[40]=function(B){return[[B.topleft,1],[B.topright,1],[B.bottomright,0],[B.bottomleft,0]]},cr[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},cr[101]=cr[69]=function(B){return[[1,B.rightbottom],[1,0],[0,0],[0,1],[B.topleft,1]]},cr[149]=cr[21]=function(B){return[[B.topright,1],[1,1],[1,0],[0,0],[0,B.leftbottom]]},cr[86]=cr[84]=function(B){return[[1,0],[B.bottomright,0],[0,B.lefttop],[0,1],[1,1]]},cr[89]=cr[81]=function(B){return[[1,1],[1,B.righttop],[B.bottomleft,0],[0,0],[0,1]]},cr[96]=cr[74]=function(B){return[[1,B.righttop],[1,B.rightbottom],[0,B.lefttop],[0,1],[B.topleft,1]]},cr[24]=cr[146]=function(B){return[[1,1],[1,B.righttop],[B.bottomright,0],[B.bottomleft,0],[B.topright,1]]},cr[6]=cr[164]=function(B){return[[1,B.rightbottom],[1,0],[B.bottomright,0],[0,B.leftbottom],[0,B.lefttop]]},cr[129]=cr[41]=function(B){return[[B.topright,1],[B.bottomleft,0],[0,0],[0,B.leftbottom],[B.topleft,1]]},cr[66]=cr[104]=function(B){return[[B.bottomright,0],[B.bottomleft,0],[0,B.lefttop],[0,1],[B.topleft,1]]},cr[144]=cr[26]=function(B){return[[1,1],[1,B.righttop],[0,B.leftbottom],[0,B.lefttop],[B.topright,1]]},cr[36]=cr[134]=function(B){return[[1,B.rightbottom],[1,0],[B.bottomright,0],[B.topleft,1],[B.topright,1]]},cr[9]=cr[161]=function(B){return[[1,B.righttop],[1,B.rightbottom],[B.bottomleft,0],[0,0],[0,B.leftbottom]]},cr[37]=cr[133]=function(B){return[[1,B.rightbottom],[1,0],[0,0],[0,B.leftbottom],[B.topleft,1],[B.topright,1]]},cr[148]=cr[22]=function(B){return[[1,1],[1,0],[B.bottomright,0],[0,B.leftbottom],[0,B.lefttop],[B.topright,1]]},cr[82]=cr[88]=function(B){return[[1,1],[1,B.righttop],[B.bottomright,0],[B.bottomleft,0],[0,B.lefttop],[0,1]]},cr[73]=cr[97]=function(B){return[[1,B.righttop],[1,B.rightbottom],[B.bottomleft,0],[0,0],[0,1],[B.topleft,1]]},cr[145]=cr[25]=function(B){return[[1,1],[1,B.righttop],[B.bottomleft,0],[0,0],[0,B.leftbottom],[B.topright,1]]},cr[70]=cr[100]=function(B){return[[1,B.rightbottom],[1,0],[B.bottomright,0],[0,B.lefttop],[0,1],[B.topleft,1]]},cr[34]=function(B){return[wg(B),bg(B)]},cr[35]=function(B){return[[1,B.righttop],[1,B.rightbottom],[B.bottomright,0],[B.bottomleft,0],[0,B.leftbottom],[0,B.lefttop],[B.topleft,1],[B.topright,1]]},cr[136]=function(B){return[_g(B),vg(B)]},cr[153]=function(B){return[hp(B),gg(B)]},cr[102]=function(B){return[mg(B),yg(B)]},cr[155]=function(B){return[[1,1],[1,B.righttop],[B.bottomleft,0],[0,0],[0,B.leftbottom],[B.topright,1]]},cr[103]=function(B){return[[1,B.rightbottom],[1,0],[B.bottomright,0],[0,B.lefttop],[0,1],[B.topleft,1]]},cr[152]=function(B){return[hp(B),vg(B)]},cr[156]=function(B){return[[1,1],[1,B.righttop],[B.bottomright,0],[B.bottomleft,0],[0,B.leftbottom],[0,B.lefttop],[B.topright,1]]},cr[137]=function(B){return[_g(B),gg(B)]},cr[139]=function(B){return[[1,B.righttop],[1,B.rightbottom],[B.bottomleft,0],[0,0],[0,B.leftbottom],[B.topleft,1],[B.topright,1]]},cr[98]=function(B){return[bg(B),yg(B)]},cr[99]=function(B){return[[1,B.righttop],[1,B.rightbottom],[B.bottomright,0],[B.bottomleft,0],[0,B.lefttop],[0,1],[B.topleft,1]]},cr[38]=function(B){return[mg(B),wg(B)]},cr[39]=function(B){return[[1,B.rightbottom],[1,0],[B.bottomright,0],[0,B.leftbottom],[0,B.lefttop],[B.topleft,1],[B.topright,1]]};var dp=function(){function B(U){this.id=B.buildId(U),this.coordinates=U,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}return B.buildId=function(U){return U.join(",")},B.prototype.removeInnerEdge=function(U){this.innerEdges=this.innerEdges.filter(function(G){return G.from.id!==U.from.id})},B.prototype.removeOuterEdge=function(U){this.outerEdges=this.outerEdges.filter(function(G){return G.to.id!==U.to.id})},B.prototype.addOuterEdge=function(U){this.outerEdges.push(U),this.outerEdgesSorted=!1},B.prototype.sortOuterEdges=function(){var U=this;this.outerEdgesSorted||(this.outerEdges.sort(function(G,Q){var J=G.to,rt=Q.to;if(J.coordinates[0]-U.coordinates[0]>=0&&rt.coordinates[0]-U.coordinates[0]<0)return 1;if(J.coordinates[0]-U.coordinates[0]<0&&rt.coordinates[0]-U.coordinates[0]>=0)return-1;if(J.coordinates[0]-U.coordinates[0]==0&&rt.coordinates[0]-U.coordinates[0]==0)return J.coordinates[1]-U.coordinates[1]>=0||rt.coordinates[1]-U.coordinates[1]>=0?J.coordinates[1]-rt.coordinates[1]:rt.coordinates[1]-J.coordinates[1];var at=Mg(U.coordinates,J.coordinates,rt.coordinates);return at<0?1:at>0?-1:Math.pow(J.coordinates[0]-U.coordinates[0],2)+Math.pow(J.coordinates[1]-U.coordinates[1],2)-(Math.pow(rt.coordinates[0]-U.coordinates[0],2)+Math.pow(rt.coordinates[1]-U.coordinates[1],2))}),this.outerEdgesSorted=!0)},B.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},B.prototype.getOuterEdge=function(U){return this.sortOuterEdges(),this.outerEdges[U]},B.prototype.addInnerEdge=function(U){this.innerEdges.push(U)},B}(),Sg=function(){function B(U,G){this.from=U,this.to=G,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return B.prototype.getSymetric=function(){return this.symetric||(this.symetric=new B(this.to,this.from),this.symetric.symetric=this),this.symetric},B.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},B.prototype.isEqual=function(U){return this.from.id===U.from.id&&this.to.id===U.to.id},B.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},B.prototype.toLineString=function(){return ct([this.from.coordinates,this.to.coordinates])},B.prototype.compareTo=function(U){return Mg(U.from.coordinates,U.to.coordinates,this.to.coordinates)},B}(),ha=function(){function B(){this.edges=[],this.polygon=void 0,this.envelope=void 0}return B.prototype.push=function(U){this.edges.push(U),this.polygon=this.envelope=void 0},B.prototype.get=function(U){return this.edges[U]},Object.defineProperty(B.prototype,"length",{get:function(){return this.edges.length},enumerable:!0,configurable:!0}),B.prototype.forEach=function(U){this.edges.forEach(U)},B.prototype.map=function(U){return this.edges.map(U)},B.prototype.some=function(U){return this.edges.some(U)},B.prototype.isValid=function(){return!0},B.prototype.isHole=function(){var U=this,G=this.edges.reduce(function(at,ft,yt){return ft.from.coordinates[1]>U.edges[at].from.coordinates[1]&&(at=yt),at},0),Q=(G===0?this.length:G)-1,J=(G+1)%this.length,rt=Mg(this.edges[Q].from.coordinates,this.edges[G].from.coordinates,this.edges[J].from.coordinates);return rt===0?this.edges[Q].from.coordinates[0]>this.edges[J].from.coordinates[0]:rt>0},B.prototype.toMultiPoint=function(){return wt(this.edges.map(function(U){return U.from.coordinates}))},B.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var U=this.edges.map(function(G){return G.from.coordinates});return U.push(this.edges[0].from.coordinates),this.polygon=nt([U])},B.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=Ru(this.toPolygon())},B.findEdgeRingContaining=function(U,G){var Q,J,rt=U.getEnvelope();return G.forEach(function(at){var ft,yt,vt,Tt,xt,It,Gt=at.getEnvelope();if(J&&(Q=J.getEnvelope()),yt=rt,vt=(ft=Gt).geometry.coordinates[0].map(function(Zt){return Zt[0]}),Tt=ft.geometry.coordinates[0].map(function(Zt){return Zt[1]}),xt=yt.geometry.coordinates[0].map(function(Zt){return Zt[0]}),It=yt.geometry.coordinates[0].map(function(Zt){return Zt[1]}),(Math.max.apply(null,vt)!==Math.max.apply(null,xt)||Math.max.apply(null,Tt)!==Math.max.apply(null,It)||Math.min.apply(null,vt)!==Math.min.apply(null,xt)||Math.min.apply(null,Tt)!==Math.min.apply(null,It))&&Tg(Gt,rt)){for(var Wt=U.map(function(Zt){return Zt.from.coordinates}),ee=void 0,Bt=function(Zt){at.some(function(fe){return be=Zt,Ee=fe.from.coordinates,be[0]===Ee[0]&&be[1]===Ee[1];var be,Ee})||(ee=Zt)},me=0,Ie=Wt;me=0;--at){var ft=rt[at],yt=ft.symetric,vt=void 0,Tt=void 0;ft.label===G&&(vt=ft),yt.label===G&&(Tt=yt),vt&&Tt&&(Tt&&(J=Tt),vt&&(J&&(J.next=vt,J=void 0),Q||(Q=vt)))}J&&(J.next=Q)},B.prototype._findLabeledEdgeRings=function(){var U=[],G=0;return this.edges.forEach(function(Q){if(!(Q.label>=0)){U.push(Q);var J=Q;do J.label=G,J=J.next;while(!Q.isEqual(J));G++}}),U},B.prototype.getEdgeRings=function(){var U=this;this._computeNextCWEdges(),this.edges.forEach(function(Q){Q.label=void 0}),this._findLabeledEdgeRings().forEach(function(Q){U._findIntersectionNodes(Q).forEach(function(J){U._computeNextCCWEdges(J,Q.label)})});var G=[];return this.edges.forEach(function(Q){Q.ring||G.push(U._findEdgeRing(Q))}),G},B.prototype._findIntersectionNodes=function(U){var G=[],Q=U,J=function(){var rt=0;Q.from.getOuterEdges().forEach(function(at){at.label===U.label&&++rt}),rt>1&&G.push(Q.from),Q=Q.next};do J();while(!U.isEqual(Q));return G},B.prototype._findEdgeRing=function(U){var G=U,Q=new ha;do Q.push(G),G.ring=Q,G=G.next;while(!U.isEqual(G));return Q},B.prototype.removeNode=function(U){var G=this;U.getOuterEdges().forEach(function(Q){return G.removeEdge(Q)}),U.innerEdges.forEach(function(Q){return G.removeEdge(Q)}),delete this.nodes[U.id]},B.prototype.removeEdge=function(U){this.edges=this.edges.filter(function(G){return!G.isEqual(U)}),U.deleteEdge()},B}();function Cg(B,U){var G=!0;return qe(B,function(Q){qe(U,function(J){if(G===!1)return!1;G=function(rt,at){switch(rt.type){case"Point":switch(at.type){case"Point":return ft=rt.coordinates,yt=at.coordinates,!(ft[0]===yt[0]&&ft[1]===yt[1]);case"LineString":return!Y0(at,rt);case"Polygon":return!Pr(rt,at)}break;case"LineString":switch(at.type){case"Point":return!Y0(rt,at);case"LineString":return!function(vt,Tt){return zo(vt,Tt).features.length>0}(rt,at);case"Polygon":return!fp(at,rt)}break;case"Polygon":switch(at.type){case"Point":return!Pr(at,rt);case"LineString":return!fp(rt,at);case"Polygon":return!function(vt,Tt){for(var xt=0,It=vt.coordinates[0];xt0}(at,rt)}}var ft,yt;return!1}(Q.geometry,J.geometry)})}),G}function Y0(B,U){for(var G=0;G0}function q1(B,U,G){var Q=G[0]-B[0],J=G[1]-B[1],rt=U[0]-B[0],at=U[1]-B[1];return Q*at-J*rt==0&&(Math.abs(rt)>=Math.abs(at)?rt>0?B[0]<=G[0]&&G[0]<=U[0]:U[0]<=G[0]&&G[0]<=B[0]:at>0?B[1]<=G[1]&&G[1]<=U[1]:U[1]<=G[1]&&G[1]<=B[1])}function H0(B,U){return!(B[0]>U[0])&&!(B[2]U[1])&&!(B[3]0}function Ag(B,U){for(var G=!1,Q=!1,J=B.coordinates.length,rt=0;rt=Math.abs(ft)?at>0?B[0]<=G[0]&&G[0]<=U[0]:U[0]<=G[0]&&G[0]<=B[0]:ft>0?B[1]<=G[1]&&G[1]<=U[1]:U[1]<=G[1]&&G[1]<=B[1]:Math.abs(at)>=Math.abs(ft)?at>0?B[0]0?B[1]=0&&(G=[].concat(B.slice(Q,B.length),B.slice(1,Q+1))),G},jc.prototype.comparePath=function(B,U){var G=this;return B.every(function(Q,J){return G.compareCoord(Q,this[J])},U)},jc.prototype.comparePolygon=function(B,U){if(this.compareLine(B.coordinates[0],U.coordinates[0],1,!0)){var G=B.coordinates.slice(1,B.coordinates.length),Q=U.coordinates.slice(1,U.coordinates.length),J=this;return G.every(function(rt){return this.some(function(at){return J.compareLine(rt,at,1,!0)})},Q)}return!1},jc.prototype.compareFeature=function(B,U){return!(B.id!==U.id||!this.objectComparator(B.properties,U.properties)||!this.compareBBox(B,U))&&this.compare(B.geometry,U.geometry)},jc.prototype.compareBBox=function(B,U){return!!(!B.bbox&&!U.bbox||B.bbox&&U.bbox&&this.compareCoord(B.bbox,U.bbox))},jc.prototype.removePseudo=function(B){return B};var Ng=jc;function q0(B,U){var G=!1;return qe(B,function(Q){qe(U,function(J){if(G===!0)return!0;G=!Cg(Q.geometry,J.geometry)})}),G}var Z1=Un(function(B){function U(G,Q,J,rt){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(G,Q,J,rt)}U.prototype.run=function(G,Q,J,rt){this._init(G,Q,J,rt);for(var at=0;at=this.minPts&&(Q=this._mergeArrays(Q,at))}this._assigned[rt]!==1&&this._addToCluster(rt,G)}},U.prototype._addToCluster=function(G,Q){this.clusters[Q].push(G),this._assigned[G]=1},U.prototype._regionQuery=function(G){for(var Q=[],J=0;J0){for(Tt=0;Tt=0);return G},U.prototype.assign=function(){for(var G,Q=!1,J=this.dataset.length,rt=0;rtat&&(J=rt):Q=this.minPts)return rt},G.prototype._regionQuery=function(Q,J){J=J||this.epsilon;for(var rt=[],at=0,ft=this.dataset.length;at0;Q.length0;){var ft=B[Math.floor(Math.random()*rt)],yt=at?ft.join("_"):""+ft;G[yt]||(G[yt]=!0,Q.push(ft))}if(Q.length0,at=B[Math.floor(Math.random()*J)];for(rt&&at.join("_"),Q.push(at);Q.length0,Gt=[];if(G)J=G=="kmrand"?X0(B,U):G=="kmpp"?ny(B,U):G;else for(var Wt={};J.length0;){var yt=at.pop();if(yt===G)return J0(yt);yt.closed=!0;for(var vt=B.neighbors(yt),Tt=0,xt=vt.length;Tt0)){if(rt/=It,It<0){if(rt0){if(rt>xt)return;rt>Tt&&(Tt=rt)}if(rt=Q-yt,It||!(rt<0)){if(rt/=It,It<0){if(rt>xt)return;rt>Tt&&(Tt=rt)}else if(It>0){if(rt0)){if(rt/=Gt,Gt<0){if(rt0){if(rt>xt)return;rt>Tt&&(Tt=rt)}if(rt=J-vt,Gt||!(rt<0)){if(rt/=Gt,Gt<0){if(rt>xt)return;rt>Tt&&(Tt=rt)}else if(Gt>0){if(rt0||xt<1)||(Tt>0&&(B[0]=[yt+Tt*It,vt+Tt*Gt]),xt<1&&(B[1]=[yt+xt*It,vt+xt*Gt]),!0)}}}}}function oy(B,U,G,Q,J){var rt=B[1];if(rt)return!0;var at,ft,yt=B[0],vt=B.left,Tt=B.right,xt=vt[0],It=vt[1],Gt=Tt[0],Wt=Tt[1],ee=(xt+Gt)/2,Bt=(It+Wt)/2;if(Wt===It){if(ee=Q)return;if(xt>Gt){if(yt){if(yt[1]>=J)return}else yt=[ee,G];rt=[ee,J]}else{if(yt){if(yt[1]1)if(xt>Gt){if(yt){if(yt[1]>=J)return}else yt=[(G-ft)/at,G];rt=[(J-ft)/at,J]}else{if(yt){if(yt[1]=Q)return}else yt=[U,at*U+ft];rt=[Q,at*Q+ft]}else{if(yt){if(yt[0]0&&(this.content[0]=U,this.bubbleUp(0)),B},remove:function(B){var U=this.content.indexOf(B),G=this.content.pop();U!==this.content.length-1&&(this.content[U]=G,this.scoreFunction(G)0;){var G=(B+1>>1)-1,Q=this.content[G];if(!(this.scoreFunction(U)=-hy)){var Gt=yt*yt+vt*vt,Wt=Tt*Tt+xt*xt,ee=(xt*Gt-vt*Wt)/It,Bt=(yt*Wt-Tt*Gt)/It,me=rm.pop()||new ay;me.arc=B,me.site=J,me.x=ee+at,me.y=(me.cy=Bt+ft)+Math.sqrt(ee*ee+Bt*Bt),B.circle=me;for(var Ie=null,Zt=_d._;Zt;)if(me.yTo)ft=ft.L;else{if(!((J=rt-uy(ft,at))>To)){Q>-To?(U=ft.P,G=ft):J>-To?(U=ft,G=ft.N):U=G=ft;break}if(!ft.R){U=ft;break}ft=ft.R}(function(be){vl[be.index]={site:be,halfedges:[]}})(B);var yt=sm(B);if(bd.insert(U,yt),U||G){if(U===G)return Ju(U),G=sm(U.site),bd.insert(yt,G),yt.edge=G.edge=yd(U.site,yt.site),kh(U),void kh(G);if(G){Ju(U),Ju(G);var vt=U.site,Tt=vt[0],xt=vt[1],It=B[0]-Tt,Gt=B[1]-xt,Wt=G.site,ee=Wt[0]-Tt,Bt=Wt[1]-xt,me=2*(It*Bt-Gt*ee),Ie=It*It+Gt*Gt,Zt=ee*ee+Bt*Bt,fe=[(Bt*Ie-Gt*Zt)/me+Tt,(It*Zt-ee*Ie)/me+xt];vd(G.edge,vt,Wt,fe),yt.edge=yd(vt,B,null,fe),G.edge=yd(B,Wt,null,fe),kh(U),kh(G)}else yt.edge=yd(U.site,yt.site)}}function am(B,U){var G=B.site,Q=G[0],J=G[1],rt=J-U;if(!rt)return Q;var at=B.P;if(!at)return-1/0;var ft=(G=at.site)[0],yt=G[1],vt=yt-U;if(!vt)return ft;var Tt=ft-Q,xt=1/rt-1/vt,It=Tt/vt;return xt?(-It+Math.sqrt(It*It-2*xt*(Tt*Tt/(-2*vt)-yt+vt/2+J-rt/2)))/xt+Q:(Q+ft)/2}function uy(B,U){var G=B.N;if(G)return am(G,U);var Q=B.site;return Q[1]===U?Q[0]:1/0}var bd,vl,_d,Na,To=1e-6,hy=1e-12;function lm(B,U){return U[1]-B[1]||U[0]-B[0]}function Bg(B,U){var G,Q,J,rt=B.sort(lm).pop();for(Na=[],vl=new Array(B.length),bd=new yp,_d=new yp;;)if(J=Rg,rt&&(!J||rt[1]To||Math.abs(Wt[0][1]-Wt[1][1])>To)||delete Na[ee]})(at,ft,yt,vt),function(Tt,xt,It,Gt){var Wt,ee,Bt,me,Ie,Zt,fe,be,Ee,_e,wn,cn,Tn=vl.length,dn=!0;for(Wt=0;WtTo||Math.abs(cn-Ee)>To)&&(Ie.splice(me,0,Na.push(Bc(Bt,_e,Math.abs(wn-Tt)To?[Tt,Math.abs(be-Tt)To?[Math.abs(Ee-Gt)To?[It,Math.abs(be-It)To?[Math.abs(Ee-xt)=-270&&(Wt=-Wt),Gt<-180&&Gt>=-360&&(ee=-ee),rt==="degrees"){var Bt=Wt*Math.cos(Tt)+ee*Math.sin(Tt),me=ee*Math.cos(Tt)-Wt*Math.sin(Tt);Wt=Bt,ee=me}xt.push([Wt+vt[0],ee+vt[1]])}return xt.push(xt[0]),rt==="degrees"?nt([xt],yt):$0(nt([xt],yt),at,{pivot:ft})}function um(B){var U=B*Math.PI/180;return Math.tan(U)}function $g(B,U){U===void 0&&(U={});var G=0,Q=0,J=0;return Oe(B,function(rt,at,ft){var yt=U.weight?ft==null?void 0:ft[U.weight]:void 0;if(!Xt(yt=yt??1))throw new Error("weight value must be a number for feature index "+at);(yt=Number(yt))>0&&Pt(rt,function(vt){G+=vt[0]*yt,Q+=vt[1]*yt,J+=yt})}),X([G/J,Q/J],U.properties,U)}function hm(B,U,G,Q,J){var rt=Q.tolerance||.001,at=0,ft=0,yt=0,vt=0;if(ve(G,function(It){var Gt,Wt=(Gt=It.properties)===null||Gt===void 0?void 0:Gt.weight,ee=Wt??1;if(!Xt(ee=Number(ee)))throw new Error("weight value must be a number");if(ee>0){vt+=1;var Bt=ee*Yr(It,B);Bt===0&&(Bt=1);var me=ee/Bt;at+=It.geometry.coordinates[0]*me,ft+=It.geometry.coordinates[1]*me,yt+=me}}),vt<1)throw new Error("no features to measure");var Tt=at/yt,xt=ft/yt;return vt===1||J===0||Math.abs(Tt-U[0])G&&(G=yt,Q=rt,U.push([]));var vt=rt-Q,Tt=B.coordinates[yt][vt+1],xt=J[0],It=J[1],Gt=Tt[0],Wt=Tt[1];U[yt].push([.75*xt+.25*Gt,.75*It+.25*Wt]),U[yt].push([.25*xt+.75*Gt,.25*It+.75*Wt])},!0),U.forEach(function(J){J.push(J[0])})}function py(B,U){var G=0,Q=0,J=0;Pt(B,function(rt,at,ft,yt,vt){yt>J&&(J=yt,Q=at,U.push([[]])),vt>G&&(G=vt,Q=at,U[yt].push([]));var Tt=at-Q,xt=B.coordinates[yt][vt][Tt+1],It=rt[0],Gt=rt[1],Wt=xt[0],ee=xt[1];U[yt][vt].push([.75*It+.25*Wt,.75*Gt+.25*ee]),U[yt][vt].push([.25*It+.75*Wt,.25*Gt+.75*ee])},!0),U.forEach(function(rt){rt.forEach(function(at){at.push(at[0])})})}function gy(B,U,G){G===void 0&&(G=2);var Q=$t(B),J=$t(U),rt=Q[0]-J[0],at=Q[1]-J[1];return G===1?Math.abs(rt)+Math.abs(at):Math.pow(Math.pow(rt,G)+Math.pow(at,G),1/G)}function fm(B,U){var G=(U=U||{}).threshold||1e4,Q=U.p||2,J=U.binary||!1,rt=U.alpha||-1,at=U.standardization||!1,ft=[];ve(B,function(Gt){ft.push(Ta(Gt))});for(var yt=[],vt=0;vt0?1:0}(B[0]))*U,G*Math.log(Math.tan(.25*Math.PI+.5*B[1]*U))];return J[0]>Q&&(J[0]=Q),J[0]<-Q&&(J[0]=-Q),J[1]>Q&&(J[1]=Q),J[1]<-Q&&(J[1]=-Q),J}function bm(B){var U=180/Math.PI,G=6378137;return[B[0]*U/G,(.5*Math.PI-2*Math.atan(Math.exp(-B[1]/G)))*U]}Bg.prototype={constructor:Bg,polygons:function(){var B=this.edges;return this.cells.map(function(U){var G=U.halfedges.map(function(Q){return nm(U,B[Q])});return G.data=U.site.data,G})},triangles:function(){var B=[],U=this.edges;return this.cells.forEach(function(G,Q){if(rt=(J=G.halfedges).length)for(var J,rt,at,ft,yt,vt,Tt=G.site,xt=-1,It=U[J[rt-1]],Gt=It.left===Tt?It.right:It.left;++xt=ft)return null;var yt=B-J.site[0],vt=U-J.site[1],Tt=yt*yt+vt*vt;do J=rt.cells[Q=at],at=null,J.halfedges.forEach(function(xt){var It=rt.edges[xt],Gt=It.left;if(Gt!==J.site&&Gt||(Gt=It.right)){var Wt=B-Gt[0],ee=U-Gt[1],Bt=Wt*Wt+ee*ee;Bt0?vt+xt[Tt-1]:vt}),yt.forEach(function(vt){vt=2*vt*Math.PI/yt[yt.length-1];var Tt=Math.random();ft.push([Tt*(U.max_radial_length||10)*Math.sin(vt),Tt*(U.max_radial_length||10)*Math.cos(vt)])}),ft[ft.length-1]=ft[0],ft=ft.map((at=vf(U.bbox),function(vt){return[vt[0]+at[0],vt[1]+at[1]]})),G.push(nt([ft]))},J=0;J + * @license MIT + * @preserve + */function Vg(B,U){return B>U?1:B0)||U.right===null||G(B,U.right.key)>0&&(ft=U.right,U.right=ft.left,ft.left=U,(U=ft).right===null))break;J.right=U,J=U,U=U.right}}return J.right=U.left,rt.left=U.right,U.left=Q.right,U.right=Q.left,U}function Gg(B,U,G,Q){var J=new Ku(B,U);if(G===null)return J.left=J.right=null,J;var rt=Q(B,(G=yu(B,G,Q)).key);return rt<0?(J.left=G.left,J.right=G,G.left=null):rt>=0&&(J.right=G.right,J.left=G,G.right=null),J}function Wg(B,U,G){var Q=null,J=null;if(U){var rt=G((U=yu(B,U,G)).key,B);rt===0?(Q=U.left,J=U.right):rt<0?(J=U.right,U.right=null,Q=U):(Q=U.left,U.left=null,J=U)}return{left:Q,right:J}}function qg(B,U,G,Q,J){if(B){Q(U+(G?"└── ":"├── ")+J(B)+` +`);var rt=U+(G?" ":"│ ");B.left&&qg(B.left,rt,!1,Q,J),B.right&&qg(B.right,rt,!0,Q,J)}}var Qg=function(){function B(U){U===void 0&&(U=Vg),this._root=null,this._size=0,this._comparator=U}return B.prototype.insert=function(U,G){return this._size++,this._root=Gg(U,G,this._root,this._comparator)},B.prototype.add=function(U,G){var Q=new Ku(U,G);this._root===null&&(Q.left=Q.right=null,this._size++,this._root=Q);var J=this._comparator,rt=yu(U,this._root,J),at=J(U,rt.key);return at===0?this._root=rt:(at<0?(Q.left=rt.left,Q.right=rt,rt.left=null):at>0&&(Q.right=rt.right,Q.left=rt,rt.right=null),this._size++,this._root=Q),this._root},B.prototype.remove=function(U){this._root=this._remove(U,this._root,this._comparator)},B.prototype._remove=function(U,G,Q){var J;return G===null?null:Q(U,(G=yu(U,G,Q)).key)===0?(G.left===null?J=G.right:(J=yu(U,G.left,Q)).right=G.right,this._size--,J):G},B.prototype.pop=function(){var U=this._root;if(U){for(;U.left;)U=U.left;return this._root=yu(U.key,this._root,this._comparator),this._root=this._remove(U.key,this._root,this._comparator),{key:U.key,data:U.data}}return null},B.prototype.findStatic=function(U){for(var G=this._root,Q=this._comparator;G;){var J=Q(U,G.key);if(J===0)return G;G=J<0?G.left:G.right}return null},B.prototype.find=function(U){return this._root&&(this._root=yu(U,this._root,this._comparator),this._comparator(U,this._root.key)!==0)?null:this._root},B.prototype.contains=function(U){for(var G=this._root,Q=this._comparator;G;){var J=Q(U,G.key);if(J===0)return!0;G=J<0?G.left:G.right}return!1},B.prototype.forEach=function(U,G){for(var Q=this._root,J=[],rt=!1;!rt;)Q!==null?(J.push(Q),Q=Q.left):J.length!==0?(Q=J.pop(),U.call(G,Q),Q=Q.right):rt=!0;return this},B.prototype.range=function(U,G,Q,J){for(var rt=[],at=this._comparator,ft=this._root;rt.length!==0||ft;)if(ft)rt.push(ft),ft=ft.left;else{if(at((ft=rt.pop()).key,G)>0)break;if(at(ft.key,U)>=0&&Q.call(J,ft))return this;ft=ft.right}return this},B.prototype.keys=function(){var U=[];return this.forEach(function(G){var Q=G.key;return U.push(Q)}),U},B.prototype.values=function(){var U=[];return this.forEach(function(G){var Q=G.data;return U.push(Q)}),U},B.prototype.min=function(){return this._root?this.minNode(this._root).key:null},B.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},B.prototype.minNode=function(U){if(U===void 0&&(U=this._root),U)for(;U.left;)U=U.left;return U},B.prototype.maxNode=function(U){if(U===void 0&&(U=this._root),U)for(;U.right;)U=U.right;return U},B.prototype.at=function(U){for(var G=this._root,Q=!1,J=0,rt=[];!Q;)if(G)rt.push(G),G=G.left;else if(rt.length>0){if(G=rt.pop(),J===U)return G;J++,G=G.right}else Q=!0;return null},B.prototype.next=function(U){var G=this._root,Q=null;if(U.right){for(Q=U.right;Q.left;)Q=Q.left;return Q}for(var J=this._comparator;G;){var rt=J(U.key,G.key);if(rt===0)break;rt<0?(Q=G,G=G.left):G=G.right}return Q},B.prototype.prev=function(U){var G=this._root,Q=null;if(U.left!==null){for(Q=U.left;Q.right;)Q=Q.right;return Q}for(var J=this._comparator;G;){var rt=J(U.key,G.key);if(rt===0)break;rt<0?G=G.left:(Q=G,G=G.right)}return Q},B.prototype.clear=function(){return this._root=null,this._size=0,this},B.prototype.toList=function(){return function(U){for(var G=U,Q=[],J=!1,rt=new Ku(null,null),at=rt;!J;)G?(Q.push(G),G=G.left):Q.length>0?G=(G=at=at.next=Q.pop()).right:J=!0;return at.next=null,rt.next}(this._root)},B.prototype.load=function(U,G,Q){G===void 0&&(G=[]),Q===void 0&&(Q=!1);var J=U.length,rt=this._comparator;if(Q&&Zg(U,G,0,J-1,rt),this._root===null)this._root=Xg(U,G,0,J),this._size=J;else{var at=function(ft,yt,vt){for(var Tt=new Ku(null,null),xt=Tt,It=ft,Gt=yt;It!==null&&Gt!==null;)vt(It.key,Gt.key)<0?(xt.next=It,It=It.next):(xt.next=Gt,Gt=Gt.next),xt=xt.next;return It!==null?xt.next=It:Gt!==null&&(xt.next=Gt),Tt.next}(this.toList(),function(ft,yt){for(var vt=new Ku(null,null),Tt=vt,xt=0;xt0){var rt=G+Math.floor(J/2),at=B[rt],ft=U[rt],yt=new Ku(at,ft);return yt.left=Xg(B,U,G,rt),yt.right=Xg(B,U,rt+1,Q),yt}return null}function wp(B,U,G){var Q=G-U;if(Q>0){var J=U+Math.floor(Q/2),rt=wp(B,U,J),at=B.head;return at.left=rt,B.head=B.head.next,at.right=wp(B,J+1,G),at}return null}function Zg(B,U,G,Q,J){if(!(G>=Q)){for(var rt=B[G+Q>>1],at=G-1,ft=Q+1;;){do at++;while(J(B[at],rt)<0);do ft--;while(J(B[ft],rt)>0);if(at>=ft)break;var yt=B[at];B[at]=B[ft],B[ft]=yt,yt=U[at],U[at]=U[ft],U[ft]=yt}Zg(B,U,G,ft,J),Zg(B,U,ft+1,Q,J)}}function Ua(B,U){if(!(B instanceof U))throw new TypeError("Cannot call a class as a function")}function Jg(B,U){for(var G=0;GG.x?1:U.yG.y?1:0}}]),Da(B,[{key:"link",value:function(U){if(U.point===this.point)throw new Error("Tried to link already linked events");for(var G=U.point.events,Q=0,J=G.length;Q=0&&xt>=0?vtIt?-1:0:yt<0&&xt<0?vtIt?1:0:xtyt?1:0}}}]),B}(),_y=0,Tp=function(){function B(U,G,Q,J){Ua(this,B),this.id=++_y,this.leftSE=U,U.segment=this,U.otherSE=G,this.rightSE=G,G.segment=this,G.otherSE=U,this.rings=Q,this.windings=J}return Da(B,null,[{key:"compare",value:function(U,G){var Q=U.leftSE.point.x,J=G.leftSE.point.x,rt=U.rightSE.point.x,at=G.rightSE.point.x;if(atft&&yt>vt)return-1;var xt=U.comparePoint(G.leftSE.point);if(xt<0)return 1;if(xt>0)return-1;var It=G.comparePoint(U.rightSE.point);return It!==0?It:-1}if(Q>J){if(ftyt&&ft>Tt)return 1;var Gt=G.comparePoint(U.leftSE.point);if(Gt!==0)return Gt;var Wt=U.comparePoint(G.rightSE.point);return Wt<0?1:Wt>0?-1:1}if(ftyt)return 1;if(rtat){var Bt=U.comparePoint(G.rightSE.point);if(Bt<0)return 1;if(Bt>0)return-1}if(rt!==at){var me=vt-ft,Ie=rt-Q,Zt=Tt-yt,fe=at-J;if(me>Ie&&Ztfe)return-1}return rt>at?1:rtTt?1:U.idG.id?1:0}}]),Da(B,[{key:"replaceRightSE",value:function(U){this.rightSE=U,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var U=this.leftSE.point.y,G=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:UG?U:G}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(U){return U.x===this.leftSE.point.x&&U.y===this.leftSE.point.y||U.x===this.rightSE.point.x&&U.y===this.rightSE.point.y}},{key:"comparePoint",value:function(U){if(this.isAnEndpoint(U))return 0;var G=this.leftSE.point,Q=this.rightSE.point,J=this.vector();if(G.x===Q.x)return U.x===G.x?0:U.x0&&ft.swapEvents(),$c.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),Q&&(J.checkForConsuming(),rt.checkForConsuming()),G}},{key:"swapEvents",value:function(){var U=this.rightSE;this.rightSE=this.leftSE,this.leftSE=U,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var G=0,Q=this.windings.length;G0){var rt=G;G=Q,Q=rt}if(G.prev===Q){var at=G;G=Q,Q=at}for(var ft=0,yt=Q.rings.length;ft0))throw new Error("Tried to create degenerate segment at [".concat(U.x,", ").concat(U.y,"]"));J=G,rt=U,at=-1}return new B(new $c(J,!0),new $c(rt,!1),[Q],[at])}}]),B}(),Lm=function(){function B(U,G,Q){if(Ua(this,B),!Array.isArray(U)||U.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=G,this.isExterior=Q,this.segments=[],typeof U[0][0]!="number"||typeof U[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var J=_f.round(U[0][0],U[0][1]);this.bbox={ll:{x:J.x,y:J.y},ur:{x:J.x,y:J.y}};for(var rt=J,at=1,ft=U.length;atthis.bbox.ur.x&&(this.bbox.ur.x=yt.x),yt.y>this.bbox.ur.y&&(this.bbox.ur.y=yt.y),rt=yt)}J.x===rt.x&&J.y===rt.y||this.segments.push(Tp.fromRing(rt,J,this))}return Da(B,[{key:"getSweepEvents",value:function(){for(var U=[],G=0,Q=this.segments.length;Gthis.bbox.ur.x&&(this.bbox.ur.x=rt.bbox.ur.x),rt.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=rt.bbox.ur.y),this.interiorRings.push(rt)}this.multiPoly=G}return Da(B,[{key:"getSweepEvents",value:function(){for(var U=this.exteriorRing.getSweepEvents(),G=0,Q=this.interiorRings.length;Gthis.bbox.ur.x&&(this.bbox.ur.x=rt.bbox.ur.x),rt.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=rt.bbox.ur.y),this.polys.push(rt)}this.isSubject=G}return Da(B,[{key:"getSweepEvents",value:function(){for(var U=[],G=0,Q=this.polys.length;G0&&(U=J)}for(var rt=U.segment.prevInResult(),at=rt?rt.prevInResult():null;;){if(!rt)return null;if(!at)return rt.ringOut;if(at.ringOut!==rt.ringOut)return at.ringOut.enclosingRing()!==rt.ringOut?rt.ringOut:rt.ringOut.enclosingRing();rt=at.prevInResult(),at=rt?rt.prevInResult():null}}}]),B}(),zm=function(){function B(U){Ua(this,B),this.exteriorRing=U,U.poly=this,this.interiorRings=[]}return Da(B,[{key:"addInterior",value:function(U){this.interiorRings.push(U),U.poly=this}},{key:"getGeom",value:function(){var U=[this.exteriorRing.getGeom()];if(U[0]===null)return null;for(var G=0,Q=this.interiorRings.length;G1&&arguments[1]!==void 0?arguments[1]:Tp.compare;Ua(this,B),this.queue=U,this.tree=new Qg(G),this.segments=[]}return Da(B,[{key:"process",value:function(U){var G=U.segment,Q=[];if(U.consumedBy)return U.isLeft?this.queue.remove(U.otherSE):this.tree.remove(G),Q;var J=U.isLeft?this.tree.insert(G):this.tree.find(G);if(!J)throw new Error("Unable to find segment #".concat(G.id," ")+"[".concat(G.leftSE.point.x,", ").concat(G.leftSE.point.y,"] -> ")+"[".concat(G.rightSE.point.x,", ").concat(G.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var rt=J,at=J,ft=void 0,yt=void 0;ft===void 0;)(rt=this.tree.prev(rt))===null?ft=null:rt.key.consumedBy===void 0&&(ft=rt.key);for(;yt===void 0;)(at=this.tree.next(at))===null?yt=null:at.key.consumedBy===void 0&&(yt=at.key);if(U.isLeft){var vt=null;if(ft){var Tt=ft.getIntersection(G);if(Tt!==null&&(G.isAnEndpoint(Tt)||(vt=Tt),!ft.isAnEndpoint(Tt)))for(var xt=this._splitSafely(ft,Tt),It=0,Gt=xt.length;It0?(this.tree.remove(G),Q.push(U)):(this.segments.push(G),G.prev=ft)}else{if(ft&&yt){var _e=ft.getIntersection(yt);if(_e!==null){if(!ft.isAnEndpoint(_e))for(var wn=this._splitSafely(ft,_e),cn=0,Tn=wn.length;cnRm)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var fe=new Ey(Wt),be=Wt.size,Ee=Wt.pop();Ee;){var _e=Ee.key;if(Wt.size===be){var wn=_e.segment;throw new Error("Unable to pop() ".concat(_e.isLeft?"left":"right"," SweepEvent ")+"[".concat(_e.point.x,", ").concat(_e.point.y,"] from segment #").concat(wn.id," ")+"[".concat(wn.leftSE.point.x,", ").concat(wn.leftSE.point.y,"] -> ")+"[".concat(wn.rightSE.point.x,", ").concat(wn.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(Wt.size>Rm)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(fe.segments.length>My)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var cn=fe.process(_e),Tn=0,dn=cn.length;Tn1?U-1:0),Q=1;Q1?U-1:0),Q=1;Q1?U-1:0),Q=1;Q1?U-1:0),Q=1;QU.x?1:this.yU.y?1:0},pn.prototype.clone=function(){},pn.prototype.copy=function(){return new pn(this)},pn.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},pn.prototype.distance3D=function(B){var U=this.x-B.x,G=this.y-B.y,Q=this.z-B.z;return Math.sqrt(U*U+G*G+Q*Q)},pn.prototype.distance=function(B){var U=this.x-B.x,G=this.y-B.y;return Math.sqrt(U*U+G*G)},pn.prototype.hashCode=function(){var B=17;return B=37*(B=37*B+pn.hashCode(this.x))+pn.hashCode(this.y)},pn.prototype.setCoordinate=function(B){this.x=B.x,this.y=B.y,this.z=B.z},pn.prototype.interfaces_=function(){return[ol,xf,sl]},pn.prototype.getClass=function(){return pn},pn.hashCode=function(){if(arguments.length===1){var B=arguments[0],U=Qr.doubleToLongBits(B);return Math.trunc((U^U)>>>32)}},Nh.DimensionalComparator.get=function(){return _u},Nh.serialVersionUID.get=function(){return 6683108902428367e3},Nh.NULL_ORDINATE.get=function(){return Qr.NaN},Nh.X.get=function(){return 0},Nh.Y.get=function(){return 1},Nh.Z.get=function(){return 2},Object.defineProperties(pn,Nh);var _u=function(B){if(this._dimensionsToTest=2,arguments.length!==0){if(arguments.length===1){var U=arguments[0];if(U!==2&&U!==3)throw new Ao("only 2 or 3 dimensions may be specified");this._dimensionsToTest=U}}};_u.prototype.compare=function(B,U){var G=B,Q=U,J=_u.compare(G.x,Q.x);if(J!==0)return J;var rt=_u.compare(G.y,Q.y);return rt!==0?rt:this._dimensionsToTest<=2?0:_u.compare(G.z,Q.z)},_u.prototype.interfaces_=function(){return[wd]},_u.prototype.getClass=function(){return _u},_u.compare=function(B,U){return BU?1:Qr.isNaN(B)?Qr.isNaN(U)?0:-1:Qr.isNaN(U)?1:0};var xd=function(){};xd.prototype.create=function(){},xd.prototype.interfaces_=function(){return[]},xd.prototype.getClass=function(){return xd};var xn=function(){},Ef={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};xn.prototype.interfaces_=function(){return[]},xn.prototype.getClass=function(){return xn},xn.toLocationSymbol=function(B){switch(B){case xn.EXTERIOR:return"e";case xn.BOUNDARY:return"b";case xn.INTERIOR:return"i";case xn.NONE:return"-"}throw new Ao("Unknown location value: "+B)},Ef.INTERIOR.get=function(){return 0},Ef.BOUNDARY.get=function(){return 1},Ef.EXTERIOR.get=function(){return 2},Ef.NONE.get=function(){return-1},Object.defineProperties(xn,Ef);var Ur=function(B,U){return B.interfaces_&&B.interfaces_().indexOf(U)>-1},Ya=function(){},Bm={LOG_10:{configurable:!0}};Ya.prototype.interfaces_=function(){return[]},Ya.prototype.getClass=function(){return Ya},Ya.log10=function(B){var U=Math.log(B);return Qr.isInfinite(U)||Qr.isNaN(U)?U:U/Ya.LOG_10},Ya.min=function(B,U,G,Q){var J=B;return UG?G:B}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var Q=arguments[0],J=arguments[1],rt=arguments[2];return Qrt?rt:Q}},Ya.wrap=function(B,U){return B<0?U- -B%U:B%U},Ya.max=function(){if(arguments.length===3){var B=arguments[0],U=arguments[1],G=arguments[2],Q=B;return U>Q&&(Q=U),G>Q&&(Q=G),Q}if(arguments.length===4){var J=arguments[0],rt=arguments[1],at=arguments[2],ft=arguments[3],yt=J;return rt>yt&&(yt=rt),at>yt&&(yt=at),ft>yt&&(yt=ft),yt}},Ya.average=function(B,U){return(B+U)/2},Bm.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(Ya,Bm);var Yl=function(B){this.str=B};Yl.prototype.append=function(B){this.str+=B},Yl.prototype.setCharAt=function(B,U){this.str=this.str.substr(0,B)+U+this.str.substr(B+1)},Yl.prototype.toString=function(B){return this.str};var Hl=function(B){this.value=B};Hl.prototype.intValue=function(){return this.value},Hl.prototype.compareTo=function(B){return this.valueB?1:0},Hl.isNaN=function(B){return Number.isNaN(B)};var Mf=function(){};Mf.isWhitespace=function(B){return B<=32&&B>=0||B===127},Mf.toUpperCase=function(B){return B.toUpperCase()};var Cn=function B(){if(this._hi=0,this._lo=0,arguments.length===0)this.init(0);else if(arguments.length===1){if(typeof arguments[0]=="number"){var U=arguments[0];this.init(U)}else if(arguments[0]instanceof B){var G=arguments[0];this.init(G)}else if(typeof arguments[0]=="string"){var Q=arguments[0];B.call(this,B.parse(Q))}}else if(arguments.length===2){var J=arguments[0],rt=arguments[1];this.init(J,rt)}},bl={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};Cn.prototype.le=function(B){return(this._hi9?(Tt=!0,xt="9"):xt="0"+vt,at.append(xt),G=G.subtract(Cn.valueOf(vt)).multiply(Cn.TEN),Tt&&G.selfAdd(Cn.TEN);var It=!0,Gt=Cn.magnitude(G._hi);if(Gt<0&&Math.abs(Gt)>=ft-yt&&(It=!1),!It)break}return U[0]=Q,at.toString()},Cn.prototype.sqr=function(){return this.multiply(this)},Cn.prototype.doubleValue=function(){return this._hi+this._lo},Cn.prototype.subtract=function(){if(arguments[0]instanceof Cn){var B=arguments[0];return this.add(B.negate())}if(typeof arguments[0]=="number"){var U=arguments[0];return this.add(-U)}},Cn.prototype.equals=function(){if(arguments.length===1){var B=arguments[0];return this._hi===B._hi&&this._lo===B._lo}},Cn.prototype.isZero=function(){return this._hi===0&&this._lo===0},Cn.prototype.selfSubtract=function(){if(arguments[0]instanceof Cn){var B=arguments[0];return this.isNaN()?this:this.selfAdd(-B._hi,-B._lo)}if(typeof arguments[0]=="number"){var U=arguments[0];return this.isNaN()?this:this.selfAdd(-U,0)}},Cn.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},Cn.prototype.min=function(B){return this.le(B)?this:B},Cn.prototype.selfDivide=function(){if(arguments.length===1){if(arguments[0]instanceof Cn){var B=arguments[0];return this.selfDivide(B._hi,B._lo)}if(typeof arguments[0]=="number"){var U=arguments[0];return this.selfDivide(U,0)}}else if(arguments.length===2){var G=arguments[0],Q=arguments[1],J=null,rt=null,at=null,ft=null,yt=null,vt=null,Tt=null,xt=null;return yt=this._hi/G,xt=(J=(vt=Cn.SPLIT*yt)-(J=vt-yt))*(at=(xt=Cn.SPLIT*G)-(at=xt-G))-(Tt=yt*G)+J*(ft=G-at)+(rt=yt-J)*at+rt*ft,xt=yt+(vt=(this._hi-Tt-xt+this._lo-yt*Q)/G),this._hi=xt,this._lo=yt-xt+vt,this}},Cn.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},Cn.prototype.divide=function(){if(arguments[0]instanceof Cn){var B=arguments[0],U=null,G=null,Q=null,J=null,rt=null,at=null,ft=null,yt=null;G=(rt=this._hi/B._hi)-(U=(at=Cn.SPLIT*rt)-(U=at-rt)),yt=U*(Q=(yt=Cn.SPLIT*B._hi)-(Q=yt-B._hi))-(ft=rt*B._hi)+U*(J=B._hi-Q)+G*Q+G*J;var vt=yt=rt+(at=(this._hi-ft-yt+this._lo-rt*B._lo)/B._hi),Tt=rt-yt+at;return new Cn(vt,Tt)}if(typeof arguments[0]=="number"){var xt=arguments[0];return Qr.isNaN(xt)?Cn.createNaN():Cn.copy(this).selfDivide(xt,0)}},Cn.prototype.ge=function(B){return(this._hi>B._hi||this._hi===B._hi)&&this._lo>=B._lo},Cn.prototype.pow=function(B){if(B===0)return Cn.valueOf(1);var U=new Cn(this),G=Cn.valueOf(1),Q=Math.abs(B);if(Q>1)for(;Q>0;)Q%2==1&&G.selfMultiply(U),(Q/=2)>0&&(U=U.sqr());else G=U;return B<0?G.reciprocal():G},Cn.prototype.ceil=function(){if(this.isNaN())return Cn.NaN;var B=Math.ceil(this._hi),U=0;return B===this._hi&&(U=Math.ceil(this._lo)),new Cn(B,U)},Cn.prototype.compareTo=function(B){var U=B;return this._hiU._hi?1:this._loU._lo?1:0},Cn.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},Cn.prototype.setValue=function(){if(arguments[0]instanceof Cn){var B=arguments[0];return this.init(B),this}if(typeof arguments[0]=="number"){var U=arguments[0];return this.init(U),this}},Cn.prototype.max=function(B){return this.ge(B)?this:B},Cn.prototype.sqrt=function(){if(this.isZero())return Cn.valueOf(0);if(this.isNegative())return Cn.NaN;var B=1/Math.sqrt(this._hi),U=this._hi*B,G=Cn.valueOf(U),Q=this.subtract(G.sqr())._hi*(.5*B);return G.add(Q)},Cn.prototype.selfAdd=function(){if(arguments.length===1){if(arguments[0]instanceof Cn){var B=arguments[0];return this.selfAdd(B._hi,B._lo)}if(typeof arguments[0]=="number"){var U=arguments[0],G=null,Q=null,J=null,rt=null,at=null,ft=null;return rt=(J=this._hi+U)-(at=J-this._hi),Q=(ft=(rt=U-at+(this._hi-rt))+this._lo)+(J-(G=J+ft)),this._hi=G+Q,this._lo=Q+(G-this._hi),this}}else if(arguments.length===2){var yt=arguments[0],vt=arguments[1],Tt=null,xt=null,It=null,Gt=null,Wt=null,ee=null,Bt=null;Gt=this._hi+yt,xt=this._lo+vt,Wt=Gt-(ee=Gt-this._hi),It=xt-(Bt=xt-this._lo);var me=(Tt=Gt+(ee=(Wt=yt-ee+(this._hi-Wt))+xt))+(ee=(It=vt-Bt+(this._lo-It))+(ee+(Gt-Tt))),Ie=ee+(Tt-me);return this._hi=me,this._lo=Ie,this}},Cn.prototype.selfMultiply=function(){if(arguments.length===1){if(arguments[0]instanceof Cn){var B=arguments[0];return this.selfMultiply(B._hi,B._lo)}if(typeof arguments[0]=="number"){var U=arguments[0];return this.selfMultiply(U,0)}}else if(arguments.length===2){var G=arguments[0],Q=arguments[1],J=null,rt=null,at=null,ft=null,yt=null,vt=null;J=(yt=Cn.SPLIT*this._hi)-this._hi,vt=Cn.SPLIT*G,J=yt-J,rt=this._hi-J,at=vt-G;var Tt=(yt=this._hi*G)+(vt=J*(at=vt-at)-yt+J*(ft=G-at)+rt*at+rt*ft+(this._hi*Q+this._lo*G)),xt=vt+(J=yt-Tt);return this._hi=Tt,this._lo=xt,this}},Cn.prototype.selfSqr=function(){return this.selfMultiply(this)},Cn.prototype.floor=function(){if(this.isNaN())return Cn.NaN;var B=Math.floor(this._hi),U=0;return B===this._hi&&(U=Math.floor(this._lo)),new Cn(B,U)},Cn.prototype.negate=function(){return this.isNaN()?this:new Cn(-this._hi,-this._lo)},Cn.prototype.clone=function(){},Cn.prototype.multiply=function(){if(arguments[0]instanceof Cn){var B=arguments[0];return B.isNaN()?Cn.createNaN():Cn.copy(this).selfMultiply(B)}if(typeof arguments[0]=="number"){var U=arguments[0];return Qr.isNaN(U)?Cn.createNaN():Cn.copy(this).selfMultiply(U,0)}},Cn.prototype.isNaN=function(){return Qr.isNaN(this._hi)},Cn.prototype.intValue=function(){return Math.trunc(this._hi)},Cn.prototype.toString=function(){var B=Cn.magnitude(this._hi);return B>=-3&&B<=20?this.toStandardNotation():this.toSciNotation()},Cn.prototype.toStandardNotation=function(){var B=this.getSpecialNumberString();if(B!==null)return B;var U=new Array(1).fill(null),G=this.extractSignificantDigits(!0,U),Q=U[0]+1,J=G;if(G.charAt(0)===".")J="0"+G;else if(Q<0)J="0."+Cn.stringOfChar("0",-Q)+G;else if(G.indexOf(".")===-1){var rt=Q-G.length;J=G+Cn.stringOfChar("0",rt)+".0"}return this.isNegative()?"-"+J:J},Cn.prototype.reciprocal=function(){var B,U,G,Q,J=null,rt=null,at=null,ft=null;B=(G=1/this._hi)-(J=(at=Cn.SPLIT*G)-(J=at-G)),rt=(ft=Cn.SPLIT*this._hi)-this._hi;var yt=G+(at=(1-(Q=G*this._hi)-(ft=J*(rt=ft-rt)-Q+J*(U=this._hi-rt)+B*rt+B*U)-G*this._lo)/this._hi);return new Cn(yt,G-yt+at)},Cn.prototype.toSciNotation=function(){if(this.isZero())return Cn.SCI_NOT_ZERO;var B=this.getSpecialNumberString();if(B!==null)return B;var U=new Array(1).fill(null),G=this.extractSignificantDigits(!1,U),Q=Cn.SCI_NOT_EXPONENT_CHAR+U[0];if(G.charAt(0)==="0")throw new Error("Found leading zero: "+G);var J="";G.length>1&&(J=G.substring(1));var rt=G.charAt(0)+"."+J;return this.isNegative()?"-"+rt+Q:rt+Q},Cn.prototype.abs=function(){return this.isNaN()?Cn.NaN:this.isNegative()?this.negate():new Cn(this)},Cn.prototype.isPositive=function(){return(this._hi>0||this._hi===0)&&this._lo>0},Cn.prototype.lt=function(B){return(this._hiB._hi||this._hi===B._hi)&&this._lo>B._lo},Cn.prototype.isNegative=function(){return(this._hi<0||this._hi===0)&&this._lo<0},Cn.prototype.trunc=function(){return this.isNaN()?Cn.NaN:this.isPositive()?this.floor():this.ceil()},Cn.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},Cn.prototype.interfaces_=function(){return[sl,ol,xf]},Cn.prototype.getClass=function(){return Cn},Cn.sqr=function(B){return Cn.valueOf(B).selfMultiply(B)},Cn.valueOf=function(){if(typeof arguments[0]=="string"){var B=arguments[0];return Cn.parse(B)}if(typeof arguments[0]=="number"){var U=arguments[0];return new Cn(U)}},Cn.sqrt=function(B){return Cn.valueOf(B).sqrt()},Cn.parse=function(B){for(var U=0,G=B.length;Mf.isWhitespace(B.charAt(U));)U++;var Q=!1;if(U=G);){var vt=B.charAt(U);if(U++,Mf.isDigit(vt)){var Tt=vt-"0";rt.selfMultiply(Cn.TEN),rt.selfAdd(Tt),at++}else{if(vt!=="."){if(vt==="e"||vt==="E"){var xt=B.substring(U);try{yt=Hl.parseInt(xt)}catch(Bt){throw Bt instanceof Error?new Error("Invalid exponent "+xt+" in string "+B):Bt}break}throw new Error("Unexpected character '"+vt+"' at position "+U+" in string "+B)}ft=at}}var It=rt,Gt=at-ft-yt;if(Gt===0)It=rt;else if(Gt>0){var Wt=Cn.TEN.pow(Gt);It=rt.divide(Wt)}else if(Gt<0){var ee=Cn.TEN.pow(-Gt);It=rt.multiply(ee)}return Q?It.negate():It},Cn.createNaN=function(){return new Cn(Qr.NaN,Qr.NaN)},Cn.copy=function(B){return new Cn(B)},Cn.magnitude=function(B){var U=Math.abs(B),G=Math.log(U)/Math.log(10),Q=Math.trunc(Math.floor(G));return 10*Math.pow(10,Q)<=U&&(Q+=1),Q},Cn.stringOfChar=function(B,U){for(var G=new Yl,Q=0;Q0){if(rt<=0)return da.signum(at);Q=J+rt}else{if(!(J<0)||rt>=0)return da.signum(at);Q=-J-rt}var ft=da.DP_SAFE_EPSILON*Q;return at>=ft||-at>=ft?da.signum(at):2},da.signum=function(B){return B>0?1:B<0?-1:0},$m.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(da,$m);var Pi=function(){},Tf={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};Tf.X.get=function(){return 0},Tf.Y.get=function(){return 1},Tf.Z.get=function(){return 2},Tf.M.get=function(){return 3},Pi.prototype.setOrdinate=function(B,U,G){},Pi.prototype.size=function(){},Pi.prototype.getOrdinate=function(B,U){},Pi.prototype.getCoordinate=function(){},Pi.prototype.getCoordinateCopy=function(B){},Pi.prototype.getDimension=function(){},Pi.prototype.getX=function(B){},Pi.prototype.clone=function(){},Pi.prototype.expandEnvelope=function(B){},Pi.prototype.copy=function(){},Pi.prototype.getY=function(B){},Pi.prototype.toCoordinateArray=function(){},Pi.prototype.interfaces_=function(){return[xf]},Pi.prototype.getClass=function(){return Pi},Object.defineProperties(Pi,Tf);var Fm=function(){},Dh=function(B){function U(){B.call(this,"Projective point not representable on the Cartesian plane.")}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(Fm),Rs=function(){};Rs.arraycopy=function(B,U,G,Q,J){for(var rt=0,at=U;atB._minx?this._minx:B._minx,G=this._miny>B._miny?this._miny:B._miny,Q=this._maxx=this._minx&&U.getMaxX()<=this._maxx&&U.getMinY()>=this._miny&&U.getMaxY()<=this._maxy}}else if(arguments.length===2){var G=arguments[0],Q=arguments[1];return!this.isNull()&&G>=this._minx&&G<=this._maxx&&Q>=this._miny&&Q<=this._maxy}},Sr.prototype.intersects=function(){if(arguments.length===1){if(arguments[0]instanceof Sr){var B=arguments[0];return!this.isNull()&&!B.isNull()&&!(B._minx>this._maxx||B._maxxthis._maxy||B._maxythis._maxx||Gthis._maxy||Qthis._maxx&&(this._maxx=U._maxx),U._minythis._maxy&&(this._maxy=U._maxy))}}else if(arguments.length===2){var G=arguments[0],Q=arguments[1];this.isNull()?(this._minx=G,this._maxx=G,this._miny=Q,this._maxy=Q):(Gthis._maxx&&(this._maxx=G),Qthis._maxy&&(this._maxy=Q))}},Sr.prototype.minExtent=function(){if(this.isNull())return 0;var B=this.getWidth(),U=this.getHeight();return BU._minx?1:this._minyU._miny?1:this._maxxU._maxx?1:this._maxyU._maxy?1:0},Sr.prototype.translate=function(B,U){if(this.isNull())return null;this.init(this.getMinX()+B,this.getMaxX()+B,this.getMinY()+U,this.getMaxY()+U)},Sr.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},Sr.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},Sr.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},Sr.prototype.maxExtent=function(){if(this.isNull())return 0;var B=this.getWidth(),U=this.getHeight();return B>U?B:U},Sr.prototype.expandBy=function(){if(arguments.length===1){var B=arguments[0];this.expandBy(B,B)}else if(arguments.length===2){var U=arguments[0],G=arguments[1];if(this.isNull())return null;this._minx-=U,this._maxx+=U,this._miny-=G,this._maxy+=G,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},Sr.prototype.contains=function(){if(arguments.length===1){if(arguments[0]instanceof Sr){var B=arguments[0];return this.covers(B)}if(arguments[0]instanceof pn){var U=arguments[0];return this.covers(U)}}else if(arguments.length===2){var G=arguments[0],Q=arguments[1];return this.covers(G,Q)}},Sr.prototype.centre=function(){return this.isNull()?null:new pn((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},Sr.prototype.init=function(){if(arguments.length===0)this.setToNull();else if(arguments.length===1){if(arguments[0]instanceof pn){var B=arguments[0];this.init(B.x,B.x,B.y,B.y)}else if(arguments[0]instanceof Sr){var U=arguments[0];this._minx=U._minx,this._maxx=U._maxx,this._miny=U._miny,this._maxy=U._maxy}}else if(arguments.length===2){var G=arguments[0],Q=arguments[1];this.init(G.x,Q.x,G.y,Q.y)}else if(arguments.length===4){var J=arguments[0],rt=arguments[1],at=arguments[2],ft=arguments[3];JB._maxx&&(U=this._minx-B._maxx);var G=0;return this._maxyB._maxy&&(G=this._miny-B._maxy),U===0?G:G===0?U:Math.sqrt(U*U+G*G)},Sr.prototype.hashCode=function(){var B=17;return B=37*(B=37*(B=37*(B=37*B+pn.hashCode(this._minx))+pn.hashCode(this._maxx))+pn.hashCode(this._miny))+pn.hashCode(this._maxy)},Sr.prototype.interfaces_=function(){return[ol,sl]},Sr.prototype.getClass=function(){return Sr},Sr.intersects=function(){if(arguments.length===3){var B=arguments[0],U=arguments[1],G=arguments[2];return G.x>=(B.xU.x?B.x:U.x)&&G.y>=(B.yU.y?B.y:U.y)}if(arguments.length===4){var Q=arguments[0],J=arguments[1],rt=arguments[2],at=arguments[3],ft=Math.min(rt.x,at.x),yt=Math.max(rt.x,at.x),vt=Math.min(Q.x,J.x),Tt=Math.max(Q.x,J.x);return!(vt>yt)&&!(Ttyt)&&!(TtG?(this._intLineIndex[B][0]=0,this._intLineIndex[B][1]=1):(this._intLineIndex[B][0]=1,this._intLineIndex[B][1]=0)}},Lo.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},Lo.prototype.setPrecisionModel=function(B){this._precisionModel=B},Lo.prototype.isInteriorIntersection=function(){var B=this;if(arguments.length===0)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(arguments.length===1){for(var U=arguments[0],G=0;GJ?Q:J;else{var at=Math.abs(B.x-U.x),ft=Math.abs(B.y-U.y);(rt=Q>J?at:ft)!==0||B.equals(U)||(rt=Math.max(at,ft))}return ni.isTrue(!(rt===0&&!B.equals(U)),"Bad distance calculation"),rt},Lo.nonRobustComputeEdgeDistance=function(B,U,G){var Q=B.x-U.x,J=B.y-U.y,rt=Math.sqrt(Q*Q+J*J);return ni.isTrue(!(rt===0&&!B.equals(U)),"Invalid distance calculation"),rt},Ih.DONT_INTERSECT.get=function(){return 0},Ih.DO_INTERSECT.get=function(){return 1},Ih.COLLINEAR.get=function(){return 2},Ih.NO_INTERSECTION.get=function(){return 0},Ih.POINT_INTERSECTION.get=function(){return 1},Ih.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(Lo,Ih);var wu=function(B){function U(){B.apply(this,arguments)}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.isInSegmentEnvelopes=function(G){var Q=new Sr(this._inputLines[0][0],this._inputLines[0][1]),J=new Sr(this._inputLines[1][0],this._inputLines[1][1]);return Q.contains(G)&&J.contains(G)},U.prototype.computeIntersection=function(){if(arguments.length!==3)return B.prototype.computeIntersection.apply(this,arguments);var G=arguments[0],Q=arguments[1],J=arguments[2];if(this._isProper=!1,Sr.intersects(Q,J,G)&&ar.orientationIndex(Q,J,G)===0&&ar.orientationIndex(J,Q,G)===0)return this._isProper=!0,(G.equals(Q)||G.equals(J))&&(this._isProper=!1),this._result=B.POINT_INTERSECTION,null;this._result=B.NO_INTERSECTION},U.prototype.normalizeToMinimum=function(G,Q,J,rt,at){at.x=this.smallestInAbsValue(G.x,Q.x,J.x,rt.x),at.y=this.smallestInAbsValue(G.y,Q.y,J.y,rt.y),G.x-=at.x,G.y-=at.y,Q.x-=at.x,Q.y-=at.y,J.x-=at.x,J.y-=at.y,rt.x-=at.x,rt.y-=at.y},U.prototype.safeHCoordinateIntersection=function(G,Q,J,rt){var at=null;try{at=al.intersection(G,Q,J,rt)}catch(ft){if(!(ft instanceof Dh))throw ft;at=U.nearestEndpoint(G,Q,J,rt)}return at},U.prototype.intersection=function(G,Q,J,rt){var at=this.intersectionWithNormalization(G,Q,J,rt);return this.isInSegmentEnvelopes(at)||(at=new pn(U.nearestEndpoint(G,Q,J,rt))),this._precisionModel!==null&&this._precisionModel.makePrecise(at),at},U.prototype.smallestInAbsValue=function(G,Q,J,rt){var at=G,ft=Math.abs(at);return Math.abs(Q)1e-4&&Rs.out.println("Distance = "+at.distance(ft))},U.prototype.intersectionWithNormalization=function(G,Q,J,rt){var at=new pn(G),ft=new pn(Q),yt=new pn(J),vt=new pn(rt),Tt=new pn;this.normalizeToEnvCentre(at,ft,yt,vt,Tt);var xt=this.safeHCoordinateIntersection(at,ft,yt,vt);return xt.x+=Tt.x,xt.y+=Tt.y,xt},U.prototype.computeCollinearIntersection=function(G,Q,J,rt){var at=Sr.intersects(G,Q,J),ft=Sr.intersects(G,Q,rt),yt=Sr.intersects(J,rt,G),vt=Sr.intersects(J,rt,Q);return at&&ft?(this._intPt[0]=J,this._intPt[1]=rt,B.COLLINEAR_INTERSECTION):yt&&vt?(this._intPt[0]=G,this._intPt[1]=Q,B.COLLINEAR_INTERSECTION):at&&yt?(this._intPt[0]=J,this._intPt[1]=G,!J.equals(G)||ft||vt?B.COLLINEAR_INTERSECTION:B.POINT_INTERSECTION):at&&vt?(this._intPt[0]=J,this._intPt[1]=Q,!J.equals(Q)||ft||yt?B.COLLINEAR_INTERSECTION:B.POINT_INTERSECTION):ft&&yt?(this._intPt[0]=rt,this._intPt[1]=G,!rt.equals(G)||at||vt?B.COLLINEAR_INTERSECTION:B.POINT_INTERSECTION):ft&&vt?(this._intPt[0]=rt,this._intPt[1]=Q,!rt.equals(Q)||at||yt?B.COLLINEAR_INTERSECTION:B.POINT_INTERSECTION):B.NO_INTERSECTION},U.prototype.normalizeToEnvCentre=function(G,Q,J,rt,at){var ft=G.xQ.x?G.x:Q.x,Tt=G.y>Q.y?G.y:Q.y,xt=J.xrt.x?J.x:rt.x,Wt=J.y>rt.y?J.y:rt.y,ee=((ft>xt?ft:xt)+(vtIt?yt:It)+(Tt0&&ft>0||at<0&&ft<0)return B.NO_INTERSECTION;var yt=ar.orientationIndex(J,rt,G),vt=ar.orientationIndex(J,rt,Q);return yt>0&&vt>0||yt<0&&vt<0?B.NO_INTERSECTION:at===0&&ft===0&&yt===0&&vt===0?this.computeCollinearIntersection(G,Q,J,rt):(at===0||ft===0||yt===0||vt===0?(this._isProper=!1,G.equals2D(J)||G.equals2D(rt)?this._intPt[0]=G:Q.equals2D(J)||Q.equals2D(rt)?this._intPt[0]=Q:at===0?this._intPt[0]=new pn(J):ft===0?this._intPt[0]=new pn(rt):yt===0?this._intPt[0]=new pn(G):vt===0&&(this._intPt[0]=new pn(Q))):(this._isProper=!0,this._intPt[0]=this.intersection(G,Q,J,rt)),B.POINT_INTERSECTION)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U.nearestEndpoint=function(G,Q,J,rt){var at=G,ft=ar.distancePointLine(G,J,rt),yt=ar.distancePointLine(Q,J,rt);return yt0?G>0?-J:J:G>0?J:-J;if(U===0||G===0)return Q>0?B>0?J:-J:B>0?-J:J;if(U>0?Q>0?U<=Q||(J=-J,rt=B,B=G,G=rt,rt=U,U=Q,Q=rt):U<=-Q?(J=-J,G=-G,Q=-Q):(rt=B,B=-G,G=rt,rt=U,U=-Q,Q=rt):Q>0?-U<=Q?(J=-J,B=-B,U=-U):(rt=-B,B=G,G=rt,rt=-U,U=Q,Q=rt):U>=Q?(B=-B,U=-U,G=-G,Q=-Q):(J=-J,rt=-B,B=-G,G=rt,rt=-U,U=-Q,Q=rt),B>0){if(!(G>0)||!(B<=G))return J}else{if(G>0||!(B>=G))return-J;J=-J,B=-B,G=-G}for(;;){if((Q-=(at=Math.floor(G/B))*U)<0)return-J;if(Q>U)return J;if(B>(G-=at*B)+G){if(UQ+Q)return-J;G=B-G,Q=U-Q,J=-J}if(Q===0)return G===0?0:-J;if(G===0||(U-=(at=Math.floor(B/G))*Q)<0)return J;if(U>Q)return-J;if(G>(B-=at*G)+B){if(QU+U)return J;B=G-B,U=Q-U,J=-J}if(U===0)return B===0?0:J;if(B===0)return-J}};var Gl=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var B=arguments[0];this._p=B};Gl.prototype.countSegment=function(B,U){if(B.xQ&&(G=U.x,Q=B.x),this._p.x>=G&&this._p.x<=Q&&(this._isPointOnSegment=!0),null}if(B.y>this._p.y&&U.y<=this._p.y||U.y>this._p.y&&B.y<=this._p.y){var J=B.x-this._p.x,rt=B.y-this._p.y,at=U.x-this._p.x,ft=U.y-this._p.y,yt=Lh.signOfDet2x2(J,rt,at,ft);if(yt===0)return this._isPointOnSegment=!0,null;ft0&&this._crossingCount++}},Gl.prototype.isPointInPolygon=function(){return this.getLocation()!==xn.EXTERIOR},Gl.prototype.getLocation=function(){return this._isPointOnSegment?xn.BOUNDARY:this._crossingCount%2==1?xn.INTERIOR:xn.EXTERIOR},Gl.prototype.isOnSegment=function(){return this._isPointOnSegment},Gl.prototype.interfaces_=function(){return[]},Gl.prototype.getClass=function(){return Gl},Gl.locatePointInRing=function(){if(arguments[0]instanceof pn&&Ur(arguments[1],Pi)){for(var B=arguments[0],U=arguments[1],G=new Gl(B),Q=new pn,J=new pn,rt=1;rt1||ft<0||ft>1)&&(J=!0)}}else J=!0;return J?Ya.min(ar.distancePointLine(B,G,Q),ar.distancePointLine(U,G,Q),ar.distancePointLine(G,B,U),ar.distancePointLine(Q,B,U)):0},ar.isPointInRing=function(B,U){return ar.locatePointInRing(B,U)!==xn.EXTERIOR},ar.computeLength=function(B){var U=B.size();if(U<=1)return 0;var G=0,Q=new pn;B.getCoordinate(0,Q);for(var J=Q.x,rt=Q.y,at=1;atG.y&&(G=rt,Q=J)}var at=Q;do(at-=1)<0&&(at=U);while(B[at].equals2D(G)&&at!==Q);var ft=Q;do ft=(ft+1)%U;while(B[ft].equals2D(G)&&ft!==Q);var yt=B[at],vt=B[ft];if(yt.equals2D(G)||vt.equals2D(G)||yt.equals2D(vt))return!1;var Tt=ar.computeOrientation(yt,G,vt),xt=!1;return xt=Tt===0?yt.x>vt.x:Tt>0,xt},ar.locatePointInRing=function(B,U){return Gl.locatePointInRing(B,U)},ar.distancePointLinePerpendicular=function(B,U,G){var Q=(G.x-U.x)*(G.x-U.x)+(G.y-U.y)*(G.y-U.y),J=((U.y-B.y)*(G.x-U.x)-(U.x-B.x)*(G.y-U.y))/Q;return Math.abs(J)*Math.sqrt(Q)},ar.computeOrientation=function(B,U,G){return ar.orientationIndex(B,U,G)},ar.distancePointLine=function(){if(arguments.length===2){var B=arguments[0],U=arguments[1];if(U.length===0)throw new Ao("Line array must contain at least one vertex");for(var G=B.distance(U[0]),Q=0;Q=1)return rt.distance(ft);var Tt=((at.y-rt.y)*(ft.x-at.x)-(at.x-rt.x)*(ft.y-at.y))/yt;return Math.abs(Tt)*Math.sqrt(yt)}},ar.isOnLine=function(B,U){for(var G=new wu,Q=1;Q0},Ph.prototype.interfaces_=function(){return[ll]},Ph.prototype.getClass=function(){return Ph};var Td=function(){};Td.prototype.isInBoundary=function(B){return B>1},Td.prototype.interfaces_=function(){return[ll]},Td.prototype.getClass=function(){return Td};var Sd=function(){};Sd.prototype.isInBoundary=function(B){return B===1},Sd.prototype.interfaces_=function(){return[ll]},Sd.prototype.getClass=function(){return Sd};var as=function(){};function e0(B){this.message=B||""}as.prototype.add=function(){},as.prototype.addAll=function(){},as.prototype.isEmpty=function(){},as.prototype.iterator=function(){},as.prototype.size=function(){},as.prototype.toArray=function(){},as.prototype.remove=function(){},e0.prototype=new Error,e0.prototype.name="IndexOutOfBoundsException";var Cd=function(){};Cd.prototype.hasNext=function(){},Cd.prototype.next=function(){},Cd.prototype.remove=function(){};var wl=function(B){function U(){B.apply(this,arguments)}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.get=function(){},U.prototype.set=function(){},U.prototype.isEmpty=function(){},U}(as);function zh(B){this.message=B||""}zh.prototype=new Error,zh.prototype.name="NoSuchElementException";var nr=function(B){function U(){B.call(this),this.array_=[],arguments[0]instanceof as&&this.addAll(arguments[0])}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.ensureCapacity=function(){},U.prototype.interfaces_=function(){return[B,as]},U.prototype.add=function(G){return arguments.length===1?this.array_.push(G):this.array_.splice(arguments[0],arguments[1]),!0},U.prototype.clear=function(){this.array_=[]},U.prototype.addAll=function(G){for(var Q=G.iterator();Q.hasNext();)this.add(Q.next());return!0},U.prototype.set=function(G,Q){var J=this.array_[G];return this.array_[G]=Q,J},U.prototype.iterator=function(){return new Ym(this)},U.prototype.get=function(G){if(G<0||G>=this.size())throw new e0;return this.array_[G]},U.prototype.isEmpty=function(){return this.array_.length===0},U.prototype.size=function(){return this.array_.length},U.prototype.toArray=function(){for(var G=[],Q=0,J=this.array_.length;Q=1){var vt=this.get(this.size()-1);if(vt.equals2D(ft))return null}B.prototype.add.call(this,ft)}else if(arguments[0]instanceof Object&&typeof arguments[1]=="boolean"){var Tt=arguments[0],xt=arguments[1];return this.add(Tt,xt),!0}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var It=arguments[0],Gt=arguments[1],Wt=arguments[2];if(Wt)for(var ee=0;ee=0;Bt--)Q.add(It[Bt],Gt);return!0}if(typeof arguments[2]=="boolean"&&Number.isInteger(arguments[0])&&arguments[1]instanceof pn){var me=arguments[0],Ie=arguments[1],Zt=arguments[2];if(!Zt){var fe=this.size();if(fe>0){if(me>0){var be=this.get(me-1);if(be.equals2D(Ie))return null}if(meTn&&(dn=-1);for(var An=cn;An!==Tn;An+=dn)Q.add(_e[An],wn);return!0}},U.prototype.closeRing=function(){this.size()>0&&this.add(new pn(this.get(0)),!1)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},Object.defineProperties(U,G),U}(nr),fi=function(){},kp={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};kp.ForwardComparator.get=function(){return kf},kp.BidirectionalComparator.get=function(){return Rh},kp.coordArrayType.get=function(){return new Array(0).fill(null)},fi.prototype.interfaces_=function(){return[]},fi.prototype.getClass=function(){return fi},fi.isRing=function(B){return!(B.length<4)&&!!B[0].equals2D(B[B.length-1])},fi.ptNotInList=function(B,U){for(var G=0;G=B?U:[]},fi.indexOf=function(B,U){for(var G=0;G0)&&(U=B[G]);return U},fi.extract=function(B,U,G){U=Ya.clamp(U,0,B.length);var Q=(G=Ya.clamp(G,-1,B.length))-U+1;G<0&&(Q=0),U>=B.length&&(Q=0),GQ.length)return 1;if(G.length===0)return 0;var J=fi.compare(G,Q);return fi.isEqualReversed(G,Q)?0:J},Rh.prototype.OLDcompare=function(B,U){var G=B,Q=U;if(G.lengthQ.length)return 1;if(G.length===0)return 0;for(var J=fi.increasingDirection(G),rt=fi.increasingDirection(Q),at=J>0?0:G.length-1,ft=rt>0?0:G.length-1,yt=0;yt0))return U.value;U=U.right}}return null},Ys.prototype.put=function(B,U){if(this.root_===null)return this.root_={key:B,value:U,left:null,right:null,parent:null,color:0,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var G,Q,J=this.root_;do if(G=J,(Q=B.compareTo(J.key))<0)J=J.left;else{if(!(Q>0)){var rt=J.value;return J.value=U,rt}J=J.right}while(J!==null);var at={key:B,left:null,right:null,value:U,parent:G,color:0,getValue:function(){return this.value},getKey:function(){return this.key}};return Q<0?G.left=at:G.right=at,this.fixAfterInsertion(at),this.size_++,null},Ys.prototype.fixAfterInsertion=function(B){var U=this;for(B.color=1;B!=null&&B!==this.root_&&B.parent.color===1;)if(bo(B)===n0(bo(bo(B)))){var G=Gm(bo(bo(B)));Vm(G)===1?(Yc(bo(B),0),Yc(G,0),Yc(bo(bo(B)),1),B=bo(bo(B))):(B===Gm(bo(B))&&(B=bo(B),U.rotateLeft(B)),Yc(bo(B),0),Yc(bo(bo(B)),1),U.rotateRight(bo(bo(B))))}else{var Q=n0(bo(bo(B)));Vm(Q)===1?(Yc(bo(B),0),Yc(Q,0),Yc(bo(bo(B)),1),B=bo(bo(B))):(B===n0(bo(B))&&(B=bo(B),U.rotateRight(B)),Yc(bo(B),0),Yc(bo(bo(B)),1),U.rotateLeft(bo(bo(B))))}this.root_.color=0},Ys.prototype.values=function(){var B=new nr,U=this.getFirstEntry();if(U!==null)for(B.add(U.value);(U=Ys.successor(U))!==null;)B.add(U.value);return B},Ys.prototype.entrySet=function(){var B=new Np,U=this.getFirstEntry();if(U!==null)for(B.add(U);(U=Ys.successor(U))!==null;)B.add(U);return B},Ys.prototype.rotateLeft=function(B){if(B!=null){var U=B.right;B.right=U.left,U.left!=null&&(U.left.parent=B),U.parent=B.parent,B.parent===null?this.root_=U:B.parent.left===B?B.parent.left=U:B.parent.right=U,U.left=B,B.parent=U}},Ys.prototype.rotateRight=function(B){if(B!=null){var U=B.left;B.left=U.right,U.right!=null&&(U.right.parent=B),U.parent=B.parent,B.parent===null?this.root_=U:B.parent.right===B?B.parent.right=U:B.parent.left=U,U.right=B,B.parent=U}},Ys.prototype.getFirstEntry=function(){var B=this.root_;if(B!=null)for(;B.left!=null;)B=B.left;return B},Ys.successor=function(B){if(B===null)return null;if(B.right!==null){for(var U=B.right;U.left!==null;)U=U.left;return U}for(var G=B.parent,Q=B;G!==null&&Q===G.right;)Q=G,G=G.parent;return G},Ys.prototype.size=function(){return this.size_};var Ad=function(){};function Wm(){}function xl(){this.array_=[],arguments[0]instanceof as&&this.addAll(arguments[0])}Ad.prototype.interfaces_=function(){return[]},Ad.prototype.getClass=function(){return Ad},Wm.prototype=new Ap,xl.prototype=new Wm,xl.prototype.contains=function(B){for(var U=0,G=this.array_.length;U=0;){var at=J.substring(0,rt);Q.add(at),rt=(J=J.substring(rt+G)).indexOf(U)}J.length>0&&Q.add(J);for(var ft=new Array(Q.size()).fill(null),yt=0;yt0)for(var rt=J;rt0&&Q.append(" ");for(var rt=0;rt0&&Q.append(","),Q.append(ul.toString(B.getOrdinate(J,rt)))}return Q.append(")"),Q.toString()}},Wo.ensureValidRing=function(B,U){var G=U.size();return G===0?U:G<=3?Wo.createClosedRing(B,U,4):U.getOrdinate(0,Pi.X)===U.getOrdinate(G-1,Pi.X)&&U.getOrdinate(0,Pi.Y)===U.getOrdinate(G-1,Pi.Y)?U:Wo.createClosedRing(B,U,G+1)},Wo.createClosedRing=function(B,U,G){var Q=B.create(G,U.getDimension()),J=U.size();Wo.copy(U,0,Q,0,J);for(var rt=J;rt0&&Wo.reverse(Q._points),null}},U.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},U.prototype.getBoundaryDimension=function(){return this.isClosed()?Zi.FALSE:0},U.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},U.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},U.prototype.getDimension=function(){return 1},U.prototype.getLength=function(){return ar.computeLength(this._points)},U.prototype.getNumPoints=function(){return this._points.size()},U.prototype.reverse=function(){var Q=this._points.copy();return Wo.reverse(Q),this.getFactory().createLineString(Q)},U.prototype.compareToSameClass=function(){var Q=this;if(arguments.length===1){for(var J=arguments[0],rt=J,at=0,ft=0;at= 2)");this._points=Q},U.prototype.isCoordinate=function(Q){for(var J=0;J=1&&this.getCoordinateSequence().size()= 4)")},U.prototype.getGeometryType=function(){return"LinearRing"},U.prototype.copy=function(){return new U(this._points.copy(),this._factory)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},G.MINIMUM_VALID_SIZE.get=function(){return 4},G.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(U,G),U}(No),vc=function(B){function U(){B.apply(this,arguments)}B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U;var G={serialVersionUID:{configurable:!0}};return U.prototype.getSortIndex=function(){return Br.SORTINDEX_MULTIPOLYGON},U.prototype.equalsExact=function(){if(arguments.length===2){var Q=arguments[0],J=arguments[1];return!!this.isEquivalentClass(Q)&&B.prototype.equalsExact.call(this,Q,J)}return B.prototype.equalsExact.apply(this,arguments)},U.prototype.getBoundaryDimension=function(){return 1},U.prototype.getDimension=function(){return 2},U.prototype.reverse=function(){for(var Q=this._geometries.length,J=new Array(Q).fill(null),rt=0;rt0?U.createPoint(G[0]):U.createPoint():B},Nf.prototype.interfaces_=function(){return[hl.GeometryEditorOperation]},Nf.prototype.getClass=function(){return Nf};var Df=function(){};Df.prototype.edit=function(B,U){return B instanceof yc?U.createLinearRing(this.edit(B.getCoordinateSequence(),B)):B instanceof No?U.createLineString(this.edit(B.getCoordinateSequence(),B)):B instanceof Ia?U.createPoint(this.edit(B.getCoordinateSequence(),B)):B},Df.prototype.interfaces_=function(){return[hl.GeometryEditorOperation]},Df.prototype.getClass=function(){return Df};var qo=function(){var B=this;if(this._dimension=3,this._coordinates=null,arguments.length===1){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var U=arguments[0];this._coordinates=new Array(U).fill(null);for(var G=0;G0){var B=new Yl(17*this._coordinates.length);B.append("("),B.append(this._coordinates[0]);for(var U=1;U3&&(Q=3),Q<2?new qo(G):new qo(G,Q)}},bc.prototype.interfaces_=function(){return[xd,sl]},bc.prototype.getClass=function(){return bc},bc.instance=function(){return bc.instanceObject},i0.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},i0.instanceObject.get=function(){return new bc},Object.defineProperties(bc,i0);var Zm=function(B){function U(){B.call(this),this.map_=new Map}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.get=function(G){return this.map_.get(G)||null},U.prototype.put=function(G,Q){return this.map_.set(G,Q),Q},U.prototype.values=function(){for(var G=new nr,Q=this.map_.values(),J=Q.next();!J.done;)G.add(J.value),J=Q.next();return G},U.prototype.entrySet=function(){var G=new Np;return this.map_.entries().forEach(function(Q){return G.add(Q)}),G},U.prototype.size=function(){return this.map_.size()},U}(jh),eo=function B(){if(this._modelType=null,this._scale=null,arguments.length===0)this._modelType=B.FLOATING;else if(arguments.length===1){if(arguments[0]instanceof Tl){var U=arguments[0];this._modelType=U,U===B.FIXED&&this.setScale(1)}else if(typeof arguments[0]=="number"){var G=arguments[0];this._modelType=B.FIXED,this.setScale(G)}else if(arguments[0]instanceof B){var Q=arguments[0];this._modelType=Q._modelType,this._scale=Q._scale}}},o0={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};eo.prototype.equals=function(B){if(!(B instanceof eo))return!1;var U=B;return this._modelType===U._modelType&&this._scale===U._scale},eo.prototype.compareTo=function(B){var U=B,G=this.getMaximumSignificantDigits(),Q=U.getMaximumSignificantDigits();return new Hl(G).compareTo(new Hl(Q))},eo.prototype.getScale=function(){return this._scale},eo.prototype.isFloating=function(){return this._modelType===eo.FLOATING||this._modelType===eo.FLOATING_SINGLE},eo.prototype.getType=function(){return this._modelType},eo.prototype.toString=function(){var B="UNKNOWN";return this._modelType===eo.FLOATING?B="Floating":this._modelType===eo.FLOATING_SINGLE?B="Floating-Single":this._modelType===eo.FIXED&&(B="Fixed (Scale="+this.getScale()+")"),B},eo.prototype.makePrecise=function(){if(typeof arguments[0]=="number"){var B=arguments[0];return Qr.isNaN(B)||this._modelType===eo.FLOATING_SINGLE?B:this._modelType===eo.FIXED?Math.round(B*this._scale)/this._scale:B}if(arguments[0]instanceof pn){var U=arguments[0];if(this._modelType===eo.FLOATING)return null;U.x=this.makePrecise(U.x),U.y=this.makePrecise(U.y)}},eo.prototype.getMaximumSignificantDigits=function(){var B=16;return this._modelType===eo.FLOATING?B=16:this._modelType===eo.FLOATING_SINGLE?B=6:this._modelType===eo.FIXED&&(B=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),B},eo.prototype.setScale=function(B){this._scale=Math.abs(B)},eo.prototype.interfaces_=function(){return[sl,ol]},eo.prototype.getClass=function(){return eo},eo.mostPrecise=function(B,U){return B.compareTo(U)>=0?B:U},o0.serialVersionUID.get=function(){return 7777263578777804e3},o0.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(eo,o0);var Tl=function B(U){this._name=U||null,B.nameToTypeMap.put(U,this)},If={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};Tl.prototype.readResolve=function(){return Tl.nameToTypeMap.get(this._name)},Tl.prototype.toString=function(){return this._name},Tl.prototype.interfaces_=function(){return[sl]},Tl.prototype.getClass=function(){return Tl},If.serialVersionUID.get=function(){return-552860263173159e4},If.nameToTypeMap.get=function(){return new Zm},Object.defineProperties(Tl,If),eo.Type=Tl,eo.FIXED=new Tl("FIXED"),eo.FLOATING=new Tl("FLOATING"),eo.FLOATING_SINGLE=new Tl("FLOATING SINGLE");var gi=function B(){this._precisionModel=new eo,this._SRID=0,this._coordinateSequenceFactory=B.getDefaultCoordinateSequenceFactory(),arguments.length===0||(arguments.length===1?Ur(arguments[0],xd)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof eo&&(this._precisionModel=arguments[0]):arguments.length===2?(this._precisionModel=arguments[0],this._SRID=arguments[1]):arguments.length===3&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},Jm={serialVersionUID:{configurable:!0}};gi.prototype.toGeometry=function(B){return B.isNull()?this.createPoint(null):B.getMinX()===B.getMaxX()&&B.getMinY()===B.getMaxY()?this.createPoint(new pn(B.getMinX(),B.getMinY())):B.getMinX()===B.getMaxX()||B.getMinY()===B.getMaxY()?this.createLineString([new pn(B.getMinX(),B.getMinY()),new pn(B.getMaxX(),B.getMaxY())]):this.createPolygon(this.createLinearRing([new pn(B.getMinX(),B.getMinY()),new pn(B.getMinX(),B.getMaxY()),new pn(B.getMaxX(),B.getMaxY()),new pn(B.getMaxX(),B.getMinY()),new pn(B.getMinX(),B.getMinY())]),null)},gi.prototype.createLineString=function(B){return B?B instanceof Array?new No(this.getCoordinateSequenceFactory().create(B),this):Ur(B,Pi)?new No(B,this):void 0:new No(this.getCoordinateSequenceFactory().create([]),this)},gi.prototype.createMultiLineString=function(){if(arguments.length===0)return new xu(null,this);if(arguments.length===1){var B=arguments[0];return new xu(B,this)}},gi.prototype.buildGeometry=function(B){for(var U=null,G=!1,Q=!1,J=B.iterator();J.hasNext();){var rt=J.next(),at=rt.getClass();U===null&&(U=at),at!==U&&(G=!0),rt.isGeometryCollectionOrDerived()&&(Q=!0)}if(U===null)return this.createGeometryCollection();if(G||Q)return this.createGeometryCollection(gi.toGeometryArray(B));var ft=B.iterator().next();if(B.size()>1){if(ft instanceof ls)return this.createMultiPolygon(gi.toPolygonArray(B));if(ft instanceof No)return this.createMultiLineString(gi.toLineStringArray(B));if(ft instanceof Ia)return this.createMultiPoint(gi.toPointArray(B));ni.shouldNeverReachHere("Unhandled class: "+ft.getClass().getName())}return ft},gi.prototype.createMultiPointFromCoords=function(B){return this.createMultiPoint(B!==null?this.getCoordinateSequenceFactory().create(B):null)},gi.prototype.createPoint=function(){if(arguments.length===0)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof pn){var B=arguments[0];return this.createPoint(B!==null?this.getCoordinateSequenceFactory().create([B]):null)}if(Ur(arguments[0],Pi)){var U=arguments[0];return new Ia(U,this)}}},gi.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},gi.prototype.createPolygon=function(){if(arguments.length===0)return new ls(null,null,this);if(arguments.length===1){if(Ur(arguments[0],Pi)){var B=arguments[0];return this.createPolygon(this.createLinearRing(B))}if(arguments[0]instanceof Array){var U=arguments[0];return this.createPolygon(this.createLinearRing(U))}if(arguments[0]instanceof yc){var G=arguments[0];return this.createPolygon(G,null)}}else if(arguments.length===2){var Q=arguments[0],J=arguments[1];return new ls(Q,J,this)}},gi.prototype.getSRID=function(){return this._SRID},gi.prototype.createGeometryCollection=function(){if(arguments.length===0)return new na(null,this);if(arguments.length===1){var B=arguments[0];return new na(B,this)}},gi.prototype.createGeometry=function(B){return new hl(this).edit(B,{edit:function(){if(arguments.length===2){var U=arguments[0];return this._coordinateSequenceFactory.create(U)}}})},gi.prototype.getPrecisionModel=function(){return this._precisionModel},gi.prototype.createLinearRing=function(){if(arguments.length===0)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var B=arguments[0];return this.createLinearRing(B!==null?this.getCoordinateSequenceFactory().create(B):null)}if(Ur(arguments[0],Pi)){var U=arguments[0];return new yc(U,this)}}},gi.prototype.createMultiPolygon=function(){if(arguments.length===0)return new vc(null,this);if(arguments.length===1){var B=arguments[0];return new vc(B,this)}},gi.prototype.createMultiPoint=function(){var B=this;if(arguments.length===0)return new Dd(null,this);if(arguments.length===1){if(arguments[0]instanceof Array){var U=arguments[0];return new Dd(U,this)}if(arguments[0]instanceof Array){var G=arguments[0];return this.createMultiPoint(G!==null?this.getCoordinateSequenceFactory().create(G):null)}if(Ur(arguments[0],Pi)){var Q=arguments[0];if(Q===null)return this.createMultiPoint(new Array(0).fill(null));for(var J=new Array(Q.size()).fill(null),rt=0;rt=this.size())throw new Error;return this.array_[B]},Ql.prototype.push=function(B){return this.array_.push(B),B},Ql.prototype.pop=function(B){if(this.array_.length===0)throw new Op;return this.array_.pop()},Ql.prototype.peek=function(){if(this.array_.length===0)throw new Op;return this.array_[this.array_.length-1]},Ql.prototype.empty=function(){return this.array_.length===0},Ql.prototype.isEmpty=function(){return this.empty()},Ql.prototype.search=function(B){return this.array_.indexOf(B)},Ql.prototype.size=function(){return this.array_.length},Ql.prototype.toArray=function(){for(var B=[],U=0,G=this.array_.length;U0&&this._minIndexthis._minCoord.y&&G.y>this._minCoord.y&&Q===ar.CLOCKWISE)&&(J=!0),J&&(this._minIndex=this._minIndex-1)},Sl.prototype.getRightmostSideOfSegment=function(B,U){var G=B.getEdge().getCoordinates();if(U<0||U+1>=G.length||G[U].y===G[U+1].y)return-1;var Q=qn.LEFT;return G[U].yU._minCoord.x)&&(U._minDe=B,U._minIndex=Q,U._minCoord=G[Q])},Sl.prototype.findRightmostEdgeAtNode=function(){var B=this._minDe.getNode().getEdges();this._minDe=B.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Sl.prototype.findEdge=function(B){for(var U=B.iterator();U.hasNext();){var G=U.next();G.isForward()&&this.checkForRightmostCoordinate(G)}ni.isTrue(this._minIndex!==0||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),this._minIndex===0?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===qn.LEFT&&(this._orientedDe=this._minDe.getSym())},Sl.prototype.interfaces_=function(){return[]},Sl.prototype.getClass=function(){return Sl};var Vc=function(B){function U(G,Q){B.call(this,U.msgWithCoord(G,Q)),this.pt=Q?new pn(Q):null,this.name="TopologyException"}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.getCoordinate=function(){return this.pt},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U.msgWithCoord=function(G,Q){return Q?G:G+" [ "+Q+" ]"},U}(Uc),Pp=function(){this.array_=[]};Pp.prototype.addLast=function(B){this.array_.push(B)},Pp.prototype.removeFirst=function(){return this.array_.shift()},Pp.prototype.isEmpty=function(){return this.array_.length===0};var Hs=function(){this._finder=null,this._dirEdgeList=new nr,this._nodes=new nr,this._rightMostCoord=null,this._env=null,this._finder=new Sl};Hs.prototype.clearVisitedEdges=function(){for(var B=this._dirEdgeList.iterator();B.hasNext();)B.next().setVisited(!1)},Hs.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},Hs.prototype.computeNodeDepth=function(B){for(var U=null,G=B.getEdges().iterator();G.hasNext();){var Q=G.next();if(Q.isVisited()||Q.getSym().isVisited()){U=Q;break}}if(U===null)throw new Vc("unable to find edge to compute depths at "+B.getCoordinate());B.getEdges().computeDepths(U);for(var J=B.getEdges().iterator();J.hasNext();){var rt=J.next();rt.setVisited(!0),this.copySymDepths(rt)}},Hs.prototype.computeDepth=function(B){this.clearVisitedEdges();var U=this._finder.getEdge();U.setEdgeDepths(qn.RIGHT,B),this.copySymDepths(U),this.computeDepths(U)},Hs.prototype.create=function(B){this.addReachable(B),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},Hs.prototype.findResultEdges=function(){for(var B=this._dirEdgeList.iterator();B.hasNext();){var U=B.next();U.getDepth(qn.RIGHT)>=1&&U.getDepth(qn.LEFT)<=0&&!U.isInteriorAreaEdge()&&U.setInResult(!0)}},Hs.prototype.computeDepths=function(B){var U=new Np,G=new Pp,Q=B.getNode();for(G.addLast(Q),U.add(Q),B.setVisited(!0);!G.isEmpty();){var J=G.removeFirst();U.add(J),this.computeNodeDepth(J);for(var rt=J.getEdges().iterator();rt.hasNext();){var at=rt.next().getSym();if(!at.isVisited()){var ft=at.getNode();U.contains(ft)||(G.addLast(ft),U.add(ft))}}}},Hs.prototype.compareTo=function(B){var U=B;return this._rightMostCoord.xU._rightMostCoord.x?1:0},Hs.prototype.getEnvelope=function(){if(this._env===null){for(var B=new Sr,U=this._dirEdgeList.iterator();U.hasNext();)for(var G=U.next().getEdge().getCoordinates(),Q=0;Qthis.location.length){var U=new Array(3).fill(null);U[qn.ON]=this.location[qn.ON],U[qn.LEFT]=xn.NONE,U[qn.RIGHT]=xn.NONE,this.location=U}for(var G=0;G1&&B.append(xn.toLocationSymbol(this.location[qn.LEFT])),B.append(xn.toLocationSymbol(this.location[qn.ON])),this.location.length>1&&B.append(xn.toLocationSymbol(this.location[qn.RIGHT])),B.toString()},_o.prototype.setLocations=function(B,U,G){this.location[qn.ON]=B,this.location[qn.LEFT]=U,this.location[qn.RIGHT]=G},_o.prototype.get=function(B){return B1},_o.prototype.isAnyNull=function(){for(var B=0;BB._maxNodeDegree&&(B._maxNodeDegree=G),U=B.getNext(U)}while(U!==this._startDe);this._maxNodeDegree*=2},Qo.prototype.addPoints=function(B,U,G){var Q=B.getCoordinates();if(U){var J=1;G&&(J=0);for(var rt=J;rt=0;ft--)this._pts.add(Q[ft])}},Qo.prototype.isHole=function(){return this._isHole},Qo.prototype.setInResult=function(){var B=this._startDe;do B.getEdge().setInResult(!0),B=B.getNext();while(B!==this._startDe)},Qo.prototype.containsPoint=function(B){var U=this.getLinearRing();if(!U.getEnvelopeInternal().contains(B)||!ar.isPointInRing(B,U.getCoordinates()))return!1;for(var G=this._holes.iterator();G.hasNext();)if(G.next().containsPoint(B))return!1;return!0},Qo.prototype.addHole=function(B){this._holes.add(B)},Qo.prototype.isShell=function(){return this._shell===null},Qo.prototype.getLabel=function(){return this._label},Qo.prototype.getEdges=function(){return this._edges},Qo.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},Qo.prototype.getShell=function(){return this._shell},Qo.prototype.mergeLabel=function(){if(arguments.length===1){var B=arguments[0];this.mergeLabel(B,0),this.mergeLabel(B,1)}else if(arguments.length===2){var U=arguments[0],G=arguments[1],Q=U.getLocation(G,qn.RIGHT);if(Q===xn.NONE)return null;if(this._label.getLocation(G)===xn.NONE)return this._label.setLocation(G,Q),null}},Qo.prototype.setShell=function(B){this._shell=B,B!==null&&B.addHole(this)},Qo.prototype.toPolygon=function(B){for(var U=new Array(this._holes.size()).fill(null),G=0;G=2,"found partial label"),this.computeIM(B)},La.prototype.isInResult=function(){return this._isInResult},La.prototype.isVisited=function(){return this._isVisited},La.prototype.interfaces_=function(){return[]},La.prototype.getClass=function(){return La};var zp=function(B){function U(){B.call(this),this._coord=null,this._edges=null;var G=arguments[0],Q=arguments[1];this._coord=G,this._edges=Q,this._label=new so(0,xn.NONE)}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.isIncidentEdgeInResult=function(){for(var G=this.getEdges().getEdges().iterator();G.hasNext();)if(G.next().getEdge().isInResult())return!0;return!1},U.prototype.isIsolated=function(){return this._label.getGeometryCount()===1},U.prototype.getCoordinate=function(){return this._coord},U.prototype.print=function(G){G.println("node "+this._coord+" lbl: "+this._label)},U.prototype.computeIM=function(G){},U.prototype.computeMergedLocation=function(G,Q){var J=xn.NONE;if(J=this._label.getLocation(Q),!G.isNull(Q)){var rt=G.getLocation(Q);J!==xn.BOUNDARY&&(J=rt)}return J},U.prototype.setLabel=function(){if(arguments.length!==2)return B.prototype.setLabel.apply(this,arguments);var G=arguments[0],Q=arguments[1];this._label===null?this._label=new so(G,Q):this._label.setLocation(G,Q)},U.prototype.getEdges=function(){return this._edges},U.prototype.mergeLabel=function(){var G=this;if(arguments[0]instanceof U){var Q=arguments[0];this.mergeLabel(Q._label)}else if(arguments[0]instanceof so)for(var J=arguments[0],rt=0;rt<2;rt++){var at=G.computeMergedLocation(J,rt),ft=G._label.getLocation(rt);ft===xn.NONE&&G._label.setLocation(rt,at)}},U.prototype.add=function(G){this._edges.insert(G),G.setNode(this)},U.prototype.setLabelBoundary=function(G){if(this._label===null)return null;var Q=xn.NONE;this._label!==null&&(Q=this._label.getLocation(G));var J=null;switch(Q){case xn.BOUNDARY:J=xn.INTERIOR;break;case xn.INTERIOR:default:J=xn.BOUNDARY}this._label.setLocation(G,J)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(La),Xl=function(){this.nodeMap=new Ys,this.nodeFact=null;var B=arguments[0];this.nodeFact=B};Xl.prototype.find=function(B){return this.nodeMap.get(B)},Xl.prototype.addNode=function(){if(arguments[0]instanceof pn){var B=arguments[0],U=this.nodeMap.get(B);return U===null&&(U=this.nodeFact.createNode(B),this.nodeMap.put(B,U)),U}if(arguments[0]instanceof zp){var G=arguments[0],Q=this.nodeMap.get(G.getCoordinate());return Q===null?(this.nodeMap.put(G.getCoordinate(),G),G):(Q.mergeLabel(G),Q)}},Xl.prototype.print=function(B){for(var U=this.iterator();U.hasNext();)U.next().print(B)},Xl.prototype.iterator=function(){return this.nodeMap.values().iterator()},Xl.prototype.values=function(){return this.nodeMap.values()},Xl.prototype.getBoundaryNodes=function(B){for(var U=new nr,G=this.iterator();G.hasNext();){var Q=G.next();Q.getLabel().getLocation(B)===xn.BOUNDARY&&U.add(Q)}return U},Xl.prototype.add=function(B){var U=B.getCoordinate();this.addNode(U).add(B)},Xl.prototype.interfaces_=function(){return[]},Xl.prototype.getClass=function(){return Xl};var lo=function(){},Pf={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};lo.prototype.interfaces_=function(){return[]},lo.prototype.getClass=function(){return lo},lo.isNorthern=function(B){return B===lo.NE||B===lo.NW},lo.isOpposite=function(B,U){return B!==U&&(B-U+4)%4===2},lo.commonHalfPlane=function(B,U){if(B===U)return B;if((B-U+4)%4===2)return-1;var G=BU?B:U)===3?3:G},lo.isInHalfPlane=function(B,U){return U===lo.SE?B===lo.SE||B===lo.SW:B===U||B===U+1},lo.quadrant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var B=arguments[0],U=arguments[1];if(B===0&&U===0)throw new Ao("Cannot compute the quadrant for point ( "+B+", "+U+" )");return B>=0?U>=0?lo.NE:lo.SE:U>=0?lo.NW:lo.SW}if(arguments[0]instanceof pn&&arguments[1]instanceof pn){var G=arguments[0],Q=arguments[1];if(Q.x===G.x&&Q.y===G.y)throw new Ao("Cannot compute the quadrant for two identical points "+G);return Q.x>=G.x?Q.y>=G.y?lo.NE:lo.SE:Q.y>=G.y?lo.NW:lo.SW}},Pf.NE.get=function(){return 0},Pf.NW.get=function(){return 1},Pf.SW.get=function(){return 2},Pf.SE.get=function(){return 3},Object.defineProperties(lo,Pf);var Vs=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,arguments.length===1){var B=arguments[0];this._edge=B}else if(arguments.length===3){var U=arguments[0],G=arguments[1],Q=arguments[2],J=null;this._edge=U,this.init(G,Q),this._label=J}else if(arguments.length===4){var rt=arguments[0],at=arguments[1],ft=arguments[2],yt=arguments[3];this._edge=rt,this.init(at,ft),this._label=yt}};Vs.prototype.compareDirection=function(B){return this._dx===B._dx&&this._dy===B._dy?0:this._quadrant>B._quadrant?1:this._quadrant2){rt.linkDirectedEdgesForMinimalEdgeRings();var at=rt.buildMinimalRings(),ft=this.findShell(at);ft!==null?(this.placePolygonHoles(ft,at),U.add(ft)):G.addAll(at)}else Q.add(rt)}return Q},pa.prototype.containsPoint=function(B){for(var U=this._shellList.iterator();U.hasNext();)if(U.next().containsPoint(B))return!0;return!1},pa.prototype.buildMaximalEdgeRings=function(B){for(var U=new nr,G=B.iterator();G.hasNext();){var Q=G.next();if(Q.isInResult()&&Q.getLabel().isArea()&&Q.getEdgeRing()===null){var J=new Iy(Q,this._geometryFactory);U.add(J),J.setInResult()}}return U},pa.prototype.placePolygonHoles=function(B,U){for(var G=U.iterator();G.hasNext();){var Q=G.next();Q.isHole()&&Q.setShell(B)}},pa.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},pa.prototype.findEdgeRingContaining=function(B,U){for(var G=B.getLinearRing(),Q=G.getEnvelopeInternal(),J=G.getCoordinateN(0),rt=null,at=null,ft=U.iterator();ft.hasNext();){var yt=ft.next(),vt=yt.getLinearRing(),Tt=vt.getEnvelopeInternal();rt!==null&&(at=rt.getLinearRing().getEnvelopeInternal());var xt=!1;Tt.contains(Q)&&ar.isPointInRing(J,vt.getCoordinates())&&(xt=!0),xt&&(rt===null||at.contains(Tt))&&(rt=yt)}return rt},pa.prototype.findShell=function(B){for(var U=0,G=null,Q=B.iterator();Q.hasNext();){var J=Q.next();J.isHole()||(G=J,U++)}return ni.isTrue(U<=1,"found two shells in MinimalEdgeRing list"),G},pa.prototype.add=function(){if(arguments.length===1){var B=arguments[0];this.add(B.getEdgeEnds(),B.getNodes())}else if(arguments.length===2){var U=arguments[0],G=arguments[1];Oo.linkResultDirectedEdges(G);var Q=this.buildMaximalEdgeRings(U),J=new nr,rt=this.buildMinimalEdgeRings(Q,this._shellList,J);this.sortShellsAndHoles(rt,this._shellList,J),this.placeFreeHoles(this._shellList,J)}},pa.prototype.interfaces_=function(){return[]},pa.prototype.getClass=function(){return pa};var Ld=function(){};Ld.prototype.getBounds=function(){},Ld.prototype.interfaces_=function(){return[]},Ld.prototype.getClass=function(){return Ld};var Cl=function(){this._bounds=null,this._item=null;var B=arguments[0],U=arguments[1];this._bounds=B,this._item=U};Cl.prototype.getItem=function(){return this._item},Cl.prototype.getBounds=function(){return this._bounds},Cl.prototype.interfaces_=function(){return[Ld,sl]},Cl.prototype.getClass=function(){return Cl};var _c=function(){this._size=null,this._items=null,this._size=0,this._items=new nr,this._items.add(null)};_c.prototype.poll=function(){if(this.isEmpty())return null;var B=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),B},_c.prototype.size=function(){return this._size},_c.prototype.reorder=function(B){for(var U=this,G=null,Q=this._items.get(B);2*B<=this._size&&((G=2*B)!==U._size&&U._items.get(G+1).compareTo(U._items.get(G))<0&&G++,U._items.get(G).compareTo(Q)<0);B=G)U._items.set(B,U._items.get(G));this._items.set(B,Q)},_c.prototype.clear=function(){this._size=0,this._items.clear()},_c.prototype.isEmpty=function(){return this._size===0},_c.prototype.add=function(B){this._items.add(null),this._size+=1;var U=this._size;for(this._items.set(0,B);B.compareTo(this._items.get(Math.trunc(U/2)))<0;U/=2)this._items.set(U,this._items.get(Math.trunc(U/2)));this._items.set(U,B)},_c.prototype.interfaces_=function(){return[]},_c.prototype.getClass=function(){return _c};var Mu=function(){};Mu.prototype.visitItem=function(B){},Mu.prototype.interfaces_=function(){return[]},Mu.prototype.getClass=function(){return Mu};var Bh=function(){};Bh.prototype.insert=function(B,U){},Bh.prototype.remove=function(B,U){},Bh.prototype.query=function(){},Bh.prototype.interfaces_=function(){return[]},Bh.prototype.getClass=function(){return Bh};var Ko=function(){if(this._childBoundables=new nr,this._bounds=null,this._level=null,arguments.length!==0){if(arguments.length===1){var B=arguments[0];this._level=B}}},e1={serialVersionUID:{configurable:!0}};Ko.prototype.getLevel=function(){return this._level},Ko.prototype.size=function(){return this._childBoundables.size()},Ko.prototype.getChildBoundables=function(){return this._childBoundables},Ko.prototype.addChildBoundable=function(B){ni.isTrue(this._bounds===null),this._childBoundables.add(B)},Ko.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Ko.prototype.getBounds=function(){return this._bounds===null&&(this._bounds=this.computeBounds()),this._bounds},Ko.prototype.interfaces_=function(){return[Ld,sl]},Ko.prototype.getClass=function(){return Ko},e1.serialVersionUID.get=function(){return 6493722185909574e3},Object.defineProperties(Ko,e1);var kl=function(){};kl.reverseOrder=function(){return{compare:function(B,U){return U.compareTo(B)}}},kl.min=function(B){return kl.sort(B),B.get(0)},kl.sort=function(B,U){var G=B.toArray();U?mc.sort(G,U):mc.sort(G);for(var Q=B.iterator(),J=0,rt=G.length;JXo.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,B,U),null):(this.expand(this._boundable2,this._boundable1,B,U),null);if(G)return this.expand(this._boundable1,this._boundable2,B,U),null;if(Q)return this.expand(this._boundable2,this._boundable1,B,U),null;throw new Ao("neither boundable is composite")},Xo.prototype.isLeaves=function(){return!(Xo.isComposite(this._boundable1)||Xo.isComposite(this._boundable2))},Xo.prototype.compareTo=function(B){var U=B;return this._distanceU._distance?1:0},Xo.prototype.expand=function(B,U,G,Q){for(var J=B.getChildBoundables().iterator();J.hasNext();){var rt=J.next(),at=new Xo(rt,U,this._itemDistance);at.getDistance()1,"Node capacity must be greater than 1"),this._nodeCapacity=G}},jp={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};Ss.prototype.getNodeCapacity=function(){return this._nodeCapacity},Ss.prototype.lastNode=function(B){return B.get(B.size()-1)},Ss.prototype.size=function(){var B=this;if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.size(this._root));if(arguments.length===1){for(var U=arguments[0],G=0,Q=U.getChildBoundables().iterator();Q.hasNext();){var J=Q.next();J instanceof Ko?G+=B.size(J):J instanceof Cl&&(G+=1)}return G}},Ss.prototype.removeItem=function(B,U){for(var G=null,Q=B.getChildBoundables().iterator();Q.hasNext();){var J=Q.next();J instanceof Cl&&J.getItem()===U&&(G=J)}return G!==null&&(B.getChildBoundables().remove(G),!0)},Ss.prototype.itemsTree=function(){var B=this;if(arguments.length===0){this.build();var U=this.itemsTree(this._root);return U===null?new nr:U}if(arguments.length===1){for(var G=arguments[0],Q=new nr,J=G.getChildBoundables().iterator();J.hasNext();){var rt=J.next();if(rt instanceof Ko){var at=B.itemsTree(rt);at!==null&&Q.add(at)}else rt instanceof Cl?Q.add(rt.getItem()):ni.shouldNeverReachHere()}return Q.size()<=0?null:Q}},Ss.prototype.insert=function(B,U){ni.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Cl(B,U))},Ss.prototype.boundablesAtLevel=function(){var B=this;if(arguments.length===1){var U=arguments[0],G=new nr;return this.boundablesAtLevel(U,this._root,G),G}if(arguments.length===3){var Q=arguments[0],J=arguments[1],rt=arguments[2];if(ni.isTrue(Q>-2),J.getLevel()===Q)return rt.add(J),null;for(var at=J.getChildBoundables().iterator();at.hasNext();){var ft=at.next();ft instanceof Ko?B.boundablesAtLevel(Q,ft,rt):(ni.isTrue(ft instanceof Cl),Q===-1&&rt.add(ft))}return null}},Ss.prototype.query=function(){var B=this;if(arguments.length===1){var U=arguments[0];this.build();var G=new nr;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),U)&&this.query(U,this._root,G),G}if(arguments.length===2){var Q=arguments[0],J=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),Q)&&this.query(Q,this._root,J)}else if(arguments.length===3){if(Ur(arguments[2],Mu)&&arguments[0]instanceof Object&&arguments[1]instanceof Ko)for(var rt=arguments[0],at=arguments[1],ft=arguments[2],yt=at.getChildBoundables(),vt=0;vtG&&(G=rt)}}return G+1}},Ss.prototype.createParentBoundables=function(B,U){var G=this;ni.isTrue(!B.isEmpty());var Q=new nr;Q.add(this.createNode(U));var J=new nr(B);kl.sort(J,this.getComparator());for(var rt=J.iterator();rt.hasNext();){var at=rt.next();G.lastNode(Q).getChildBoundables().size()===G.getNodeCapacity()&&Q.add(G.createNode(U)),G.lastNode(Q).addChildBoundable(at)}return Q},Ss.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},Ss.prototype.interfaces_=function(){return[sl]},Ss.prototype.getClass=function(){return Ss},Ss.compareDoubles=function(B,U){return B>U?1:B0);for(var rt=new nr,at=0;at0;){var Wt=Gt.poll(),ee=Wt.getDistance();if(ee>=xt)break;Wt.isLeaves()?(xt=ee,It=Wt):Wt.expandToQueue(Gt,xt)}return[It.getBoundable(0).getItem(),It.getBoundable(1).getItem()]}}else if(arguments.length===3){var Bt=arguments[0],me=arguments[1],Ie=arguments[2],Zt=new Cl(Bt,me),fe=new Xo(this.getRoot(),Zt,Ie);return this.nearestNeighbour(fe)[0]}},U.prototype.interfaces_=function(){return[Bh,sl]},U.prototype.getClass=function(){return U},U.centreX=function(Q){return U.avg(Q.getMinX(),Q.getMaxX())},U.avg=function(Q,J){return(Q+J)/2},U.centreY=function(Q){return U.avg(Q.getMinY(),Q.getMaxY())},G.STRtreeNode.get=function(){return s0},G.serialVersionUID.get=function(){return 0x39920f7d5f261e0},G.xComparator.get=function(){return{interfaces_:function(){return[wd]},compare:function(Q,J){return B.compareDoubles(U.centreX(Q.getBounds()),U.centreX(J.getBounds()))}}},G.yComparator.get=function(){return{interfaces_:function(){return[wd]},compare:function(Q,J){return B.compareDoubles(U.centreY(Q.getBounds()),U.centreY(J.getBounds()))}}},G.intersectsOp.get=function(){return{interfaces_:function(){return[B.IntersectsOp]},intersects:function(Q,J){return Q.intersects(J)}}},G.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(U,G),U}(Ss),s0=function(B){function U(){var G=arguments[0];B.call(this,G)}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.computeBounds=function(){for(var G=null,Q=this.getChildBoundables().iterator();Q.hasNext();){var J=Q.next();G===null?G=new Sr(J.getBounds()):G.expandToInclude(J.getBounds())}return G},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(Ko),ga=function(){};ga.prototype.interfaces_=function(){return[]},ga.prototype.getClass=function(){return ga},ga.relativeSign=function(B,U){return BU?1:0},ga.compare=function(B,U,G){if(U.equals2D(G))return 0;var Q=ga.relativeSign(U.x,G.x),J=ga.relativeSign(U.y,G.y);switch(B){case 0:return ga.compareValue(Q,J);case 1:return ga.compareValue(J,Q);case 2:return ga.compareValue(J,-Q);case 3:return ga.compareValue(-Q,J);case 4:return ga.compareValue(-Q,-J);case 5:return ga.compareValue(-J,-Q);case 6:return ga.compareValue(-J,Q);case 7:return ga.compareValue(Q,-J)}return ni.shouldNeverReachHere("invalid octant value"),0},ga.compareValue=function(B,U){return B<0?-1:B>0?1:U<0?-1:U>0?1:0};var Tu=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var B=arguments[0],U=arguments[1],G=arguments[2],Q=arguments[3];this._segString=B,this.coord=new pn(U),this.segmentIndex=G,this._segmentOctant=Q,this._isInterior=!U.equals2D(B.getCoordinate(G))};Tu.prototype.getCoordinate=function(){return this.coord},Tu.prototype.print=function(B){B.print(this.coord),B.print(" seg # = "+this.segmentIndex)},Tu.prototype.compareTo=function(B){var U=B;return this.segmentIndexU.segmentIndex?1:this.coord.equals2D(U.coord)?0:ga.compare(this._segmentOctant,this.coord,U.coord)},Tu.prototype.isEndPoint=function(B){return this.segmentIndex===0&&!this._isInterior||this.segmentIndex===B},Tu.prototype.isInterior=function(){return this._isInterior},Tu.prototype.interfaces_=function(){return[ol]},Tu.prototype.getClass=function(){return Tu};var _s=function(){this._nodeMap=new Ys,this._edge=null;var B=arguments[0];this._edge=B};_s.prototype.getSplitCoordinates=function(){var B=new Cf;this.addEndpoints();for(var U=this.iterator(),G=U.next();U.hasNext();){var Q=U.next();this.addEdgeCoordinates(G,Q,B),G=Q}return B.toCoordinateArray()},_s.prototype.addCollapsedNodes=function(){var B=new nr;this.findCollapsesFromInsertedNodes(B),this.findCollapsesFromExistingVertices(B);for(var U=B.iterator();U.hasNext();){var G=U.next().intValue();this.add(this._edge.getCoordinate(G),G)}},_s.prototype.print=function(B){B.println("Intersections:");for(var U=this.iterator();U.hasNext();)U.next().print(B)},_s.prototype.findCollapsesFromExistingVertices=function(B){for(var U=0;U=0?U>=0?G>=Q?0:1:G>=Q?7:6:U>=0?G>=Q?3:2:G>=Q?4:5}if(arguments[0]instanceof pn&&arguments[1]instanceof pn){var J=arguments[0],rt=arguments[1],at=rt.x-J.x,ft=rt.y-J.y;if(at===0&&ft===0)throw new Ao("Cannot compute the octant for two identical points "+J);return Al.octant(at,ft)}};var cs=function(){};cs.prototype.getCoordinates=function(){},cs.prototype.size=function(){},cs.prototype.getCoordinate=function(B){},cs.prototype.isClosed=function(){},cs.prototype.setData=function(B){},cs.prototype.getData=function(){},cs.prototype.interfaces_=function(){return[]},cs.prototype.getClass=function(){return cs};var zf=function(){};zf.prototype.addIntersection=function(B,U){},zf.prototype.interfaces_=function(){return[cs]},zf.prototype.getClass=function(){return zf};var Ro=function(){this._nodeList=new _s(this),this._pts=null,this._data=null;var B=arguments[0],U=arguments[1];this._pts=B,this._data=U};Ro.prototype.getCoordinates=function(){return this._pts},Ro.prototype.size=function(){return this._pts.length},Ro.prototype.getCoordinate=function(B){return this._pts[B]},Ro.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Ro.prototype.getSegmentOctant=function(B){return B===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(B),this.getCoordinate(B+1))},Ro.prototype.setData=function(B){this._data=B},Ro.prototype.safeOctant=function(B,U){return B.equals2D(U)?0:Al.octant(B,U)},Ro.prototype.getData=function(){return this._data},Ro.prototype.addIntersection=function(){if(arguments.length===2){var B=arguments[0],U=arguments[1];this.addIntersectionNode(B,U)}else if(arguments.length===4){var G=arguments[0],Q=arguments[1],J=arguments[3],rt=new pn(G.getIntersection(J));this.addIntersection(rt,Q)}},Ro.prototype.toString=function(){return _l.toLineString(new qo(this._pts))},Ro.prototype.getNodeList=function(){return this._nodeList},Ro.prototype.addIntersectionNode=function(B,U){var G=U,Q=G+1;if(Q=0&&G>=0||U<=0&&G<=0?Math.max(U,G):0}if(arguments[0]instanceof pn){var Q=arguments[0];return ar.orientationIndex(this.p0,this.p1,Q)}},Tr.prototype.toGeometry=function(B){return B.createLineString([this.p0,this.p1])},Tr.prototype.isVertical=function(){return this.p0.x===this.p1.x},Tr.prototype.equals=function(B){if(!(B instanceof Tr))return!1;var U=B;return this.p0.equals(U.p0)&&this.p1.equals(U.p1)},Tr.prototype.intersection=function(B){var U=new wu;return U.computeIntersection(this.p0,this.p1,B.p0,B.p1),U.hasIntersection()?U.getIntersection(0):null},Tr.prototype.project=function(){if(arguments[0]instanceof pn){var B=arguments[0];if(B.equals(this.p0)||B.equals(this.p1))return new pn(B);var U=this.projectionFactor(B),G=new pn;return G.x=this.p0.x+U*(this.p1.x-this.p0.x),G.y=this.p0.y+U*(this.p1.y-this.p0.y),G}if(arguments[0]instanceof Tr){var Q=arguments[0],J=this.projectionFactor(Q.p0),rt=this.projectionFactor(Q.p1);if(J>=1&&rt>=1||J<=0&&rt<=0)return null;var at=this.project(Q.p0);J<0&&(at=this.p0),J>1&&(at=this.p1);var ft=this.project(Q.p1);return rt<0&&(ft=this.p0),rt>1&&(ft=this.p1),new Tr(at,ft)}},Tr.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},Tr.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},Tr.prototype.getCoordinate=function(B){return B===0?this.p0:this.p1},Tr.prototype.distancePerpendicular=function(B){return ar.distancePointLinePerpendicular(B,this.p0,this.p1)},Tr.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},Tr.prototype.midPoint=function(){return Tr.midPoint(this.p0,this.p1)},Tr.prototype.projectionFactor=function(B){if(B.equals(this.p0))return 0;if(B.equals(this.p1))return 1;var U=this.p1.x-this.p0.x,G=this.p1.y-this.p0.y,Q=U*U+G*G;return Q<=0?Qr.NaN:((B.x-this.p0.x)*U+(B.y-this.p0.y)*G)/Q},Tr.prototype.closestPoints=function(B){var U=this.intersection(B);if(U!==null)return[U,U];var G=new Array(2).fill(null),Q=Qr.MAX_VALUE,J=null,rt=this.closestPoint(B.p0);Q=rt.distance(B.p0),G[0]=rt,G[1]=B.p0;var at=this.closestPoint(B.p1);(J=at.distance(B.p1))0&&U<1?this.project(B):this.p0.distance(B)1||Qr.isNaN(U))&&(U=1),U},Tr.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},Tr.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},Tr.prototype.distance=function(){if(arguments[0]instanceof Tr){var B=arguments[0];return ar.distanceLineLine(this.p0,this.p1,B.p0,B.p1)}if(arguments[0]instanceof pn){var U=arguments[0];return ar.distancePointLine(U,this.p0,this.p1)}},Tr.prototype.pointAlong=function(B){var U=new pn;return U.x=this.p0.x+B*(this.p1.x-this.p0.x),U.y=this.p0.y+B*(this.p1.y-this.p0.y),U},Tr.prototype.hashCode=function(){var B=Qr.doubleToLongBits(this.p0.x);B^=31*Qr.doubleToLongBits(this.p0.y);var U=Math.trunc(B)^Math.trunc(B>>32),G=Qr.doubleToLongBits(this.p1.x);return G^=31*Qr.doubleToLongBits(this.p1.y),U^(Math.trunc(G)^Math.trunc(G>>32))},Tr.prototype.interfaces_=function(){return[ol,sl]},Tr.prototype.getClass=function(){return Tr},Tr.midPoint=function(B,U){return new pn((B.x+U.x)/2,(B.y+U.y)/2)},Bp.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(Tr,Bp);var Rf=function(){this.tempEnv1=new Sr,this.tempEnv2=new Sr,this._overlapSeg1=new Tr,this._overlapSeg2=new Tr};Rf.prototype.overlap=function(){if(arguments.length!==2){if(arguments.length===4){var B=arguments[0],U=arguments[1],G=arguments[2],Q=arguments[3];B.getLineSegment(U,this._overlapSeg1),G.getLineSegment(Q,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}}},Rf.prototype.interfaces_=function(){return[]},Rf.prototype.getClass=function(){return Rf};var Oa=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var B=arguments[0],U=arguments[1],G=arguments[2],Q=arguments[3];this._pts=B,this._start=U,this._end=G,this._context=Q};Oa.prototype.getLineSegment=function(B,U){U.p0=this._pts[B],U.p1=this._pts[B+1]},Oa.prototype.computeSelect=function(B,U,G,Q){var J=this._pts[U],rt=this._pts[G];if(Q.tempEnv1.init(J,rt),G-U==1)return Q.select(this,U),null;if(!B.intersects(Q.tempEnv1))return null;var at=Math.trunc((U+G)/2);U=B.length-1)return B.length-1;for(var Q=lo.quadrant(B[G],B[G+1]),J=U+1;Jat.getId()&&(at.computeOverlaps(yt,J),Q._nOverlaps++),Q._segInt.isDone())return null}},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},G.SegmentOverlapAction.get=function(){return $p},Object.defineProperties(U,G),U}(jf),$p=function(B){function U(){B.call(this),this._si=null;var G=arguments[0];this._si=G}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.overlap=function(){if(arguments.length!==4)return B.prototype.overlap.apply(this,arguments);var G=arguments[0],Q=arguments[1],J=arguments[2],rt=arguments[3],at=G.getContext(),ft=J.getContext();this._si.processIntersections(at,Q,ft,rt)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(Rf),no=function B(){if(this._quadrantSegments=B.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=B.CAP_ROUND,this._joinStyle=B.JOIN_ROUND,this._mitreLimit=B.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=B.DEFAULT_SIMPLIFY_FACTOR,arguments.length!==0){if(arguments.length===1){var U=arguments[0];this.setQuadrantSegments(U)}else if(arguments.length===2){var G=arguments[0],Q=arguments[1];this.setQuadrantSegments(G),this.setEndCapStyle(Q)}else if(arguments.length===4){var J=arguments[0],rt=arguments[1],at=arguments[2],ft=arguments[3];this.setQuadrantSegments(J),this.setEndCapStyle(rt),this.setJoinStyle(at),this.setMitreLimit(ft)}}},Nl={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};no.prototype.getEndCapStyle=function(){return this._endCapStyle},no.prototype.isSingleSided=function(){return this._isSingleSided},no.prototype.setQuadrantSegments=function(B){this._quadrantSegments=B,this._quadrantSegments===0&&(this._joinStyle=no.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=no.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),B<=0&&(this._quadrantSegments=1),this._joinStyle!==no.JOIN_ROUND&&(this._quadrantSegments=no.DEFAULT_QUADRANT_SEGMENTS)},no.prototype.getJoinStyle=function(){return this._joinStyle},no.prototype.setJoinStyle=function(B){this._joinStyle=B},no.prototype.setSimplifyFactor=function(B){this._simplifyFactor=B<0?0:B},no.prototype.getSimplifyFactor=function(){return this._simplifyFactor},no.prototype.getQuadrantSegments=function(){return this._quadrantSegments},no.prototype.setEndCapStyle=function(B){this._endCapStyle=B},no.prototype.getMitreLimit=function(){return this._mitreLimit},no.prototype.setMitreLimit=function(B){this._mitreLimit=B},no.prototype.setSingleSided=function(B){this._isSingleSided=B},no.prototype.interfaces_=function(){return[]},no.prototype.getClass=function(){return no},no.bufferDistanceError=function(B){var U=Math.PI/2/B;return 1-Math.cos(U/2)},Nl.CAP_ROUND.get=function(){return 1},Nl.CAP_FLAT.get=function(){return 2},Nl.CAP_SQUARE.get=function(){return 3},Nl.JOIN_ROUND.get=function(){return 1},Nl.JOIN_MITRE.get=function(){return 2},Nl.JOIN_BEVEL.get=function(){return 3},Nl.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Nl.DEFAULT_MITRE_LIMIT.get=function(){return 5},Nl.DEFAULT_SIMPLIFY_FACTOR.get=function(){return .01},Object.defineProperties(no,Nl);var Eo=function(B){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=ar.COUNTERCLOCKWISE,this._inputLine=B||null},eh={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Eo.prototype.isDeletable=function(B,U,G,Q){var J=this._inputLine[B],rt=this._inputLine[U],at=this._inputLine[G];return!!this.isConcave(J,rt,at)&&!!this.isShallow(J,rt,at,Q)&&this.isShallowSampled(J,rt,B,G,Q)},Eo.prototype.deleteShallowConcavities=function(){for(var B=this,U=1,G=this.findNextNonDeletedIndex(U),Q=this.findNextNonDeletedIndex(G),J=!1;Q=0;Q--)this.addPt(B[Q])},Ha.prototype.isRedundant=function(B){if(this._ptList.size()<1)return!1;var U=this._ptList.get(this._ptList.size()-1);return B.distance(U)Math.PI;)B-=Ei.PI_TIMES_2;for(;B<=-Math.PI;)B+=Ei.PI_TIMES_2;return B},Ei.angle=function(){if(arguments.length===1){var B=arguments[0];return Math.atan2(B.y,B.x)}if(arguments.length===2){var U=arguments[0],G=arguments[1],Q=G.x-U.x,J=G.y-U.y;return Math.atan2(J,Q)}},Ei.isAcute=function(B,U,G){var Q=B.x-U.x,J=B.y-U.y;return Q*(G.x-U.x)+J*(G.y-U.y)>0},Ei.isObtuse=function(B,U,G){var Q=B.x-U.x,J=B.y-U.y;return Q*(G.x-U.x)+J*(G.y-U.y)<0},Ei.interiorAngle=function(B,U,G){var Q=Ei.angle(U,B),J=Ei.angle(U,G);return Math.abs(J-Q)},Ei.normalizePositive=function(B){if(B<0){for(;B<0;)B+=Ei.PI_TIMES_2;B>=Ei.PI_TIMES_2&&(B=0)}else{for(;B>=Ei.PI_TIMES_2;)B-=Ei.PI_TIMES_2;B<0&&(B=0)}return B},Ei.angleBetween=function(B,U,G){var Q=Ei.angle(U,B),J=Ei.angle(U,G);return Ei.diff(Q,J)},Ei.diff=function(B,U){var G=null;return(G=BMath.PI&&(G=2*Math.PI-G),G},Ei.toRadians=function(B){return B*Math.PI/180},Ei.getTurn=function(B,U){var G=Math.sin(U-B);return G>0?Ei.COUNTERCLOCKWISE:G<0?Ei.CLOCKWISE:Ei.NONE},Ei.angleBetweenOriented=function(B,U,G){var Q=Ei.angle(U,B),J=Ei.angle(U,G)-Q;return J<=-Math.PI?J+Ei.PI_TIMES_2:J>Math.PI?J-Ei.PI_TIMES_2:J},$h.PI_TIMES_2.get=function(){return 2*Math.PI},$h.PI_OVER_2.get=function(){return Math.PI/2},$h.PI_OVER_4.get=function(){return Math.PI/4},$h.COUNTERCLOCKWISE.get=function(){return ar.COUNTERCLOCKWISE},$h.CLOCKWISE.get=function(){return ar.CLOCKWISE},$h.NONE.get=function(){return ar.COLLINEAR},Object.defineProperties(Ei,$h);var So=function B(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new Tr,this._seg1=new Tr,this._offset0=new Tr,this._offset1=new Tr,this._side=0,this._hasNarrowConcaveAngle=!1;var U=arguments[0],G=arguments[1],Q=arguments[2];this._precisionModel=U,this._bufParams=G,this._li=new wu,this._filletAngleQuantum=Math.PI/2/G.getQuadrantSegments(),G.getQuadrantSegments()>=8&&G.getJoinStyle()===no.JOIN_ROUND&&(this._closingSegLengthFactor=B.MAX_CLOSING_SEG_LEN_FACTOR),this.init(Q)},Pd={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};So.prototype.addNextSegment=function(B,U){if(this._s0=this._s1,this._s1=this._s2,this._s2=B,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var G=ar.computeOrientation(this._s0,this._s1,this._s2),Q=G===ar.CLOCKWISE&&this._side===qn.LEFT||G===ar.COUNTERCLOCKWISE&&this._side===qn.RIGHT;G===0?this.addCollinear(U):Q?this.addOutsideTurn(G,U):this.addInsideTurn(G,U)},So.prototype.addLineEndCap=function(B,U){var G=new Tr(B,U),Q=new Tr;this.computeOffsetSegment(G,qn.LEFT,this._distance,Q);var J=new Tr;this.computeOffsetSegment(G,qn.RIGHT,this._distance,J);var rt=U.x-B.x,at=U.y-B.y,ft=Math.atan2(at,rt);switch(this._bufParams.getEndCapStyle()){case no.CAP_ROUND:this._segList.addPt(Q.p1),this.addFilletArc(U,ft+Math.PI/2,ft-Math.PI/2,ar.CLOCKWISE,this._distance),this._segList.addPt(J.p1);break;case no.CAP_FLAT:this._segList.addPt(Q.p1),this._segList.addPt(J.p1);break;case no.CAP_SQUARE:var yt=new pn;yt.x=Math.abs(this._distance)*Math.cos(ft),yt.y=Math.abs(this._distance)*Math.sin(ft);var vt=new pn(Q.p1.x+yt.x,Q.p1.y+yt.y),Tt=new pn(J.p1.x+yt.x,J.p1.y+yt.y);this._segList.addPt(vt),this._segList.addPt(Tt)}},So.prototype.getCoordinates=function(){return this._segList.getCoordinates()},So.prototype.addMitreJoin=function(B,U,G,Q){var J=!0,rt=null;try{rt=al.intersection(U.p0,U.p1,G.p0,G.p1),(Q<=0?1:rt.distance(B)/Math.abs(Q))>this._bufParams.getMitreLimit()&&(J=!1)}catch(at){if(!(at instanceof Dh))throw at;rt=new pn(0,0),J=!1}J?this._segList.addPt(rt):this.addLimitedMitreJoin(U,G,Q,this._bufParams.getMitreLimit())},So.prototype.addFilletCorner=function(B,U,G,Q,J){var rt=U.x-B.x,at=U.y-B.y,ft=Math.atan2(at,rt),yt=G.x-B.x,vt=G.y-B.y,Tt=Math.atan2(vt,yt);Q===ar.CLOCKWISE?ft<=Tt&&(ft+=2*Math.PI):ft>=Tt&&(ft-=2*Math.PI),this._segList.addPt(U),this.addFilletArc(B,ft,Tt,Q,J),this._segList.addPt(G)},So.prototype.addOutsideTurn=function(B,U){if(this._offset0.p1.distance(this._offset1.p0)0){var G=new pn((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(G);var Q=new pn((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(Q)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},So.prototype.createCircle=function(B){var U=new pn(B.x+this._distance,B.y);this._segList.addPt(U),this.addFilletArc(B,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},So.prototype.addBevelJoin=function(B,U){this._segList.addPt(B.p1),this._segList.addPt(U.p0)},So.prototype.init=function(B){this._distance=B,this._maxCurveSegmentError=B*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new Ha,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(B*So.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},So.prototype.addCollinear=function(B){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===no.JOIN_BEVEL||this._bufParams.getJoinStyle()===no.JOIN_MITRE?(B&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,ar.CLOCKWISE,this._distance))},So.prototype.closeRing=function(){this._segList.closeRing()},So.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},So.prototype.interfaces_=function(){return[]},So.prototype.getClass=function(){return So},Pd.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return .001},Pd.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return .001},Pd.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},Pd.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(So,Pd);var Ar=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var B=arguments[0],U=arguments[1];this._precisionModel=B,this._bufParams=U};Ar.prototype.getOffsetCurve=function(B,U){if(this._distance=U,U===0)return null;var G=U<0,Q=Math.abs(U),J=this.getSegGen(Q);B.length<=1?this.computePointCurve(B[0],J):this.computeOffsetCurve(B,G,J);var rt=J.getCoordinates();return G&&fi.reverse(rt),rt},Ar.prototype.computeSingleSidedBufferCurve=function(B,U,G){var Q=this.simplifyTolerance(this._distance);if(U){G.addSegments(B,!0);var J=Eo.simplify(B,-Q),rt=J.length-1;G.initSideSegments(J[rt],J[rt-1],qn.LEFT),G.addFirstSegment();for(var at=rt-2;at>=0;at--)G.addNextSegment(J[at],!0)}else{G.addSegments(B,!1);var ft=Eo.simplify(B,Q),yt=ft.length-1;G.initSideSegments(ft[0],ft[1],qn.LEFT),G.addFirstSegment();for(var vt=2;vt<=yt;vt++)G.addNextSegment(ft[vt],!0)}G.addLastSegment(),G.closeRing()},Ar.prototype.computeRingBufferCurve=function(B,U,G){var Q=this.simplifyTolerance(this._distance);U===qn.RIGHT&&(Q=-Q);var J=Eo.simplify(B,Q),rt=J.length-1;G.initSideSegments(J[rt-1],J[0],U);for(var at=1;at<=rt;at++){var ft=at!==1;G.addNextSegment(J[at],ft)}G.closeRing()},Ar.prototype.computeLineBufferCurve=function(B,U){var G=this.simplifyTolerance(this._distance),Q=Eo.simplify(B,G),J=Q.length-1;U.initSideSegments(Q[0],Q[1],qn.LEFT);for(var rt=2;rt<=J;rt++)U.addNextSegment(Q[rt],!0);U.addLastSegment(),U.addLineEndCap(Q[J-1],Q[J]);var at=Eo.simplify(B,-G),ft=at.length-1;U.initSideSegments(at[ft],at[ft-1],qn.LEFT);for(var yt=ft-2;yt>=0;yt--)U.addNextSegment(at[yt],!0);U.addLastSegment(),U.addLineEndCap(at[1],at[0]),U.closeRing()},Ar.prototype.computePointCurve=function(B,U){switch(this._bufParams.getEndCapStyle()){case no.CAP_ROUND:U.createCircle(B);break;case no.CAP_SQUARE:U.createSquare(B)}},Ar.prototype.getLineCurve=function(B,U){if(this._distance=U,U<0&&!this._bufParams.isSingleSided()||U===0)return null;var G=Math.abs(U),Q=this.getSegGen(G);if(B.length<=1)this.computePointCurve(B[0],Q);else if(this._bufParams.isSingleSided()){var J=U<0;this.computeSingleSidedBufferCurve(B,J,Q)}else this.computeLineBufferCurve(B,Q);return Q.getCoordinates()},Ar.prototype.getBufferParameters=function(){return this._bufParams},Ar.prototype.simplifyTolerance=function(B){return B*this._bufParams.getSimplifyFactor()},Ar.prototype.getRingCurve=function(B,U,G){if(this._distance=G,B.length<=2)return this.getLineCurve(B,G);if(G===0)return Ar.copyCoordinates(B);var Q=this.getSegGen(G);return this.computeRingBufferCurve(B,U,Q),Q.getCoordinates()},Ar.prototype.computeOffsetCurve=function(B,U,G){var Q=this.simplifyTolerance(this._distance);if(U){var J=Eo.simplify(B,-Q),rt=J.length-1;G.initSideSegments(J[rt],J[rt-1],qn.LEFT),G.addFirstSegment();for(var at=rt-2;at>=0;at--)G.addNextSegment(J[at],!0)}else{var ft=Eo.simplify(B,Q),yt=ft.length-1;G.initSideSegments(ft[0],ft[1],qn.LEFT),G.addFirstSegment();for(var vt=2;vt<=yt;vt++)G.addNextSegment(ft[vt],!0)}G.addLastSegment()},Ar.prototype.getSegGen=function(B){return new So(this._precisionModel,this._bufParams,B)},Ar.prototype.interfaces_=function(){return[]},Ar.prototype.getClass=function(){return Ar},Ar.copyCoordinates=function(B){for(var U=new Array(B.length).fill(null),G=0;Grt.getMaxY()||B.findStabbedSegments(U,J.getDirectedEdges(),G)}return G}if(arguments.length===3){if(Ur(arguments[2],wl)&&arguments[0]instanceof pn&&arguments[1]instanceof Rp)for(var at=arguments[0],ft=arguments[1],yt=arguments[2],vt=ft.getEdge().getCoordinates(),Tt=0;TtB._seg.p1.y&&B._seg.reverse();var xt=Math.max(B._seg.p0.x,B._seg.p1.x);if(!(xtB._seg.p1.y||ar.computeOrientation(B._seg.p0,B._seg.p1,at)===ar.RIGHT)){var It=ft.getDepth(qn.LEFT);B._seg.p0.equals(vt[Tt])||(It=ft.getDepth(qn.RIGHT));var Gt=new nh(B._seg,It);yt.add(Gt)}}else if(Ur(arguments[2],wl)&&arguments[0]instanceof pn&&Ur(arguments[1],wl))for(var Wt=arguments[0],ee=arguments[1],Bt=arguments[2],me=ee.iterator();me.hasNext();){var Ie=me.next();Ie.isForward()&&B.findStabbedSegments(Wt,Ie,Bt)}}},Fh.prototype.getDepth=function(B){var U=this.findStabbedSegments(B);return U.size()===0?0:kl.min(U)._leftDepth},Fh.prototype.interfaces_=function(){return[]},Fh.prototype.getClass=function(){return Fh},o1.DepthSegment.get=function(){return nh},Object.defineProperties(Fh,o1);var nh=function(){this._upwardSeg=null,this._leftDepth=null;var B=arguments[0],U=arguments[1];this._upwardSeg=new Tr(B),this._leftDepth=U};nh.prototype.compareTo=function(B){var U=B;if(this._upwardSeg.minX()>=U._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=U._upwardSeg.minX())return-1;var G=this._upwardSeg.orientationIndex(U._upwardSeg);return G!==0||(G=-1*U._upwardSeg.orientationIndex(this._upwardSeg))!==0?G:this._upwardSeg.compareTo(U._upwardSeg)},nh.prototype.compareX=function(B,U){var G=B.p0.compareTo(U.p0);return G!==0?G:B.p1.compareTo(U.p1)},nh.prototype.toString=function(){return this._upwardSeg.toString()},nh.prototype.interfaces_=function(){return[ol]},nh.prototype.getClass=function(){return nh};var Xr=function(B,U,G){this.p0=B||null,this.p1=U||null,this.p2=G||null};Xr.prototype.area=function(){return Xr.area(this.p0,this.p1,this.p2)},Xr.prototype.signedArea=function(){return Xr.signedArea(this.p0,this.p1,this.p2)},Xr.prototype.interpolateZ=function(B){if(B===null)throw new Ao("Supplied point is null.");return Xr.interpolateZ(B,this.p0,this.p1,this.p2)},Xr.prototype.longestSideLength=function(){return Xr.longestSideLength(this.p0,this.p1,this.p2)},Xr.prototype.isAcute=function(){return Xr.isAcute(this.p0,this.p1,this.p2)},Xr.prototype.circumcentre=function(){return Xr.circumcentre(this.p0,this.p1,this.p2)},Xr.prototype.area3D=function(){return Xr.area3D(this.p0,this.p1,this.p2)},Xr.prototype.centroid=function(){return Xr.centroid(this.p0,this.p1,this.p2)},Xr.prototype.inCentre=function(){return Xr.inCentre(this.p0,this.p1,this.p2)},Xr.prototype.interfaces_=function(){return[]},Xr.prototype.getClass=function(){return Xr},Xr.area=function(B,U,G){return Math.abs(((G.x-B.x)*(U.y-B.y)-(U.x-B.x)*(G.y-B.y))/2)},Xr.signedArea=function(B,U,G){return((G.x-B.x)*(U.y-B.y)-(U.x-B.x)*(G.y-B.y))/2},Xr.det=function(B,U,G,Q){return B*Q-U*G},Xr.interpolateZ=function(B,U,G,Q){var J=U.x,rt=U.y,at=G.x-J,ft=Q.x-J,yt=G.y-rt,vt=Q.y-rt,Tt=at*vt-ft*yt,xt=B.x-J,It=B.y-rt,Gt=(vt*xt-ft*It)/Tt,Wt=(-yt*xt+at*It)/Tt;return U.z+Gt*(G.z-U.z)+Wt*(Q.z-U.z)},Xr.longestSideLength=function(B,U,G){var Q=B.distance(U),J=U.distance(G),rt=G.distance(B),at=Q;return J>at&&(at=J),rt>at&&(at=rt),at},Xr.isAcute=function(B,U,G){return!!Ei.isAcute(B,U,G)&&!!Ei.isAcute(U,G,B)&&!!Ei.isAcute(G,B,U)},Xr.circumcentre=function(B,U,G){var Q=G.x,J=G.y,rt=B.x-Q,at=B.y-J,ft=U.x-Q,yt=U.y-J,vt=2*Xr.det(rt,at,ft,yt),Tt=Xr.det(at,rt*rt+at*at,yt,ft*ft+yt*yt),xt=Xr.det(rt,rt*rt+at*at,ft,ft*ft+yt*yt);return new pn(Q-Tt/vt,J+xt/vt)},Xr.perpendicularBisector=function(B,U){var G=U.x-B.x,Q=U.y-B.y,J=new al(B.x+G/2,B.y+Q/2,1),rt=new al(B.x-Q+G/2,B.y+G+Q/2,1);return new al(J,rt)},Xr.angleBisector=function(B,U,G){var Q=U.distance(B),J=Q/(Q+U.distance(G)),rt=G.x-B.x,at=G.y-B.y;return new pn(B.x+J*rt,B.y+J*at)},Xr.area3D=function(B,U,G){var Q=U.x-B.x,J=U.y-B.y,rt=U.z-B.z,at=G.x-B.x,ft=G.y-B.y,yt=G.z-B.z,vt=J*yt-rt*ft,Tt=rt*at-Q*yt,xt=Q*ft-J*at,It=vt*vt+Tt*Tt+xt*xt,Gt=Math.sqrt(It)/2;return Gt},Xr.centroid=function(B,U,G){var Q=(B.x+U.x+G.x)/3,J=(B.y+U.y+G.y)/3;return new pn(Q,J)},Xr.inCentre=function(B,U,G){var Q=U.distance(G),J=B.distance(G),rt=B.distance(U),at=Q+J+rt,ft=(Q*B.x+J*U.x+rt*G.x)/at,yt=(Q*B.y+J*U.y+rt*G.y)/at;return new pn(ft,yt)};var ma=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new nr;var B=arguments[0],U=arguments[1],G=arguments[2];this._inputGeom=B,this._distance=U,this._curveBuilder=G};ma.prototype.addPoint=function(B){if(this._distance<=0)return null;var U=B.getCoordinates(),G=this._curveBuilder.getLineCurve(U,this._distance);this.addCurve(G,xn.EXTERIOR,xn.INTERIOR)},ma.prototype.addPolygon=function(B){var U=this,G=this._distance,Q=qn.LEFT;this._distance<0&&(G=-this._distance,Q=qn.RIGHT);var J=B.getExteriorRing(),rt=fi.removeRepeatedPoints(J.getCoordinates());if(this._distance<0&&this.isErodedCompletely(J,this._distance)||this._distance<=0&&rt.length<3)return null;this.addPolygonRing(rt,G,Q,xn.EXTERIOR,xn.INTERIOR);for(var at=0;at0&&U.isErodedCompletely(ft,-U._distance)||U.addPolygonRing(yt,G,qn.opposite(Q),xn.INTERIOR,xn.EXTERIOR)}},ma.prototype.isTriangleErodedCompletely=function(B,U){var G=new Xr(B[0],B[1],B[2]),Q=G.inCentre();return ar.distancePointLine(Q,G.p0,G.p1)=yc.MINIMUM_VALID_SIZE&&ar.isCCW(B)&&(rt=J,at=Q,G=qn.opposite(G));var ft=this._curveBuilder.getRingCurve(B,G,U);this.addCurve(ft,rt,at)},ma.prototype.add=function(B){if(B.isEmpty())return null;B instanceof ls?this.addPolygon(B):B instanceof No?this.addLineString(B):B instanceof Ia?this.addPoint(B):(B instanceof Dd||B instanceof xu||B instanceof vc||B instanceof na)&&this.addCollection(B)},ma.prototype.isErodedCompletely=function(B,U){var G=B.getCoordinates();if(G.length<4)return U<0;if(G.length===4)return this.isTriangleErodedCompletely(G,U);var Q=B.getEnvelopeInternal(),J=Math.min(Q.getHeight(),Q.getWidth());return U<0&&2*Math.abs(U)>J},ma.prototype.addCollection=function(B){for(var U=0;U=this._max)throw new zh;var B=this._parent.getGeometryN(this._index++);return B instanceof na?(this._subcollectionIterator=new Zl(B),this._subcollectionIterator.next()):B},Zl.prototype.remove=function(){throw new Error(this.getClass().getName())},Zl.prototype.hasNext=function(){if(this._atStart)return!0;if(this._subcollectionIterator!==null){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},Zl.prototype.interfaces_=function(){return[Cd]},Zl.prototype.getClass=function(){return Zl},Zl.isAtomic=function(B){return!(B instanceof na)};var ya=function(){this._geom=null;var B=arguments[0];this._geom=B};ya.prototype.locate=function(B){return ya.locate(B,this._geom)},ya.prototype.interfaces_=function(){return[ro]},ya.prototype.getClass=function(){return ya},ya.isPointInRing=function(B,U){return!!U.getEnvelopeInternal().intersects(B)&&ar.isPointInRing(B,U.getCoordinates())},ya.containsPointInPolygon=function(B,U){if(U.isEmpty())return!1;var G=U.getExteriorRing();if(!ya.isPointInRing(B,G))return!1;for(var Q=0;Q=0;J--){var rt=this._edgeList.get(J),at=rt.getSym();Q===null&&(Q=at),G!==null&&at.setNext(G),G=rt}Q.setNext(G)},U.prototype.computeDepths=function(){var G=this;if(arguments.length===1){var Q=arguments[0],J=this.findIndex(Q),rt=Q.getDepth(qn.LEFT),at=Q.getDepth(qn.RIGHT),ft=this.computeDepths(J+1,this._edgeList.size(),rt),yt=this.computeDepths(0,J,ft);if(yt!==at)throw new Vc("depth mismatch at "+Q.getCoordinate())}else if(arguments.length===3){for(var vt=arguments[0],Tt=arguments[1],xt=arguments[2],It=xt,Gt=vt;Gt=0;ft--){var yt=Q._resultAreaEdgeList.get(ft),vt=yt.getSym();switch(J===null&&yt.getEdgeRing()===G&&(J=yt),at){case Q._SCANNING_FOR_INCOMING:if(vt.getEdgeRing()!==G)continue;rt=vt,at=Q._LINKING_TO_OUTGOING;break;case Q._LINKING_TO_OUTGOING:if(yt.getEdgeRing()!==G)continue;rt.setNextMin(yt),at=Q._SCANNING_FOR_INCOMING}}at===this._LINKING_TO_OUTGOING&&(ni.isTrue(J!==null,"found null for first outgoing dirEdge"),ni.isTrue(J.getEdgeRing()===G,"unable to link last incoming dirEdge"),rt.setNextMin(J))},U.prototype.getOutgoingDegree=function(){if(arguments.length===0){for(var G=0,Q=this.iterator();Q.hasNext();){var J=Q.next();J.isInResult()&&G++}return G}if(arguments.length===1){for(var rt=arguments[0],at=0,ft=this.iterator();ft.hasNext();){var yt=ft.next();yt.getEdgeRing()===rt&&at++}return at}},U.prototype.getLabel=function(){return this._label},U.prototype.findCoveredLineEdges=function(){for(var G=xn.NONE,Q=this.iterator();Q.hasNext();){var J=Q.next(),rt=J.getSym();if(!J.isLineEdge()){if(J.isInResult()){G=xn.INTERIOR;break}if(rt.isInResult()){G=xn.EXTERIOR;break}}}if(G===xn.NONE)return null;for(var at=G,ft=this.iterator();ft.hasNext();){var yt=ft.next(),vt=yt.getSym();yt.isLineEdge()?yt.getEdge().setCovered(at===xn.INTERIOR):(yt.isInResult()&&(at=xn.EXTERIOR),vt.isInResult()&&(at=xn.INTERIOR))}},U.prototype.computeLabelling=function(G){B.prototype.computeLabelling.call(this,G),this._label=new so(xn.NONE);for(var Q=this.iterator();Q.hasNext();)for(var J=Q.next().getEdge().getLabel(),rt=0;rt<2;rt++){var at=J.getLocation(rt);at!==xn.INTERIOR&&at!==xn.BOUNDARY||this._label.setLocation(rt,xn.INTERIOR)}},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(Cs),s1=function(B){function U(){B.apply(this,arguments)}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.createNode=function(G){return new zp(G,new Ly)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(Id),Su=function B(){this._pts=null,this._orientation=null;var U=arguments[0];this._pts=U,this._orientation=B.orientation(U)};Su.prototype.compareTo=function(B){var U=B;return Su.compareOriented(this._pts,this._orientation,U._pts,U._orientation)},Su.prototype.interfaces_=function(){return[ol]},Su.prototype.getClass=function(){return Su},Su.orientation=function(B){return fi.increasingDirection(B)===1},Su.compareOriented=function(B,U,G,Q){for(var J=U?1:-1,rt=Q?1:-1,at=U?B.length:-1,ft=Q?G.length:-1,yt=U?0:B.length-1,vt=Q?0:G.length-1;;){var Tt=B[yt].compareTo(G[vt]);if(Tt!==0)return Tt;var xt=(yt+=J)===at,It=(vt+=rt)===ft;if(xt&&!It)return-1;if(!xt&&It)return 1;if(xt&&It)return 0}};var Pa=function(){this._edges=new nr,this._ocaMap=new Ys};Pa.prototype.print=function(B){B.print("MULTILINESTRING ( ");for(var U=0;U0&&B.print(","),B.print("(");for(var Q=G.getCoordinates(),J=0;J0&&B.print(","),B.print(Q[J].x+" "+Q[J].y);B.println(")")}B.print(") ")},Pa.prototype.addAll=function(B){for(var U=B.iterator();U.hasNext();)this.add(U.next())},Pa.prototype.findEdgeIndex=function(B){for(var U=0;U0||!U.coord.equals2D(Q);J||G--;var rt=new Array(G).fill(null),at=0;rt[at++]=new pn(B.coord);for(var ft=B.segmentIndex+1;ft<=U.segmentIndex;ft++)rt[at++]=this.edge.pts[ft];return J&&(rt[at]=U.coord),new zd(rt,new so(this.edge._label))},Ji.prototype.add=function(B,U,G){var Q=new Jl(B,U,G),J=this._nodeMap.get(Q);return J!==null?J:(this._nodeMap.put(Q,Q),Q)},Ji.prototype.isIntersection=function(B){for(var U=this.iterator();U.hasNext();)if(U.next().coord.equals(B))return!0;return!1},Ji.prototype.interfaces_=function(){return[]},Ji.prototype.getClass=function(){return Ji};var Cu=function(){};Cu.prototype.getChainStartIndices=function(B){var U=0,G=new nr;G.add(new Hl(U));do{var Q=this.findChainEnd(B,U);G.add(new Hl(Q)),U=Q}while(UG?U:G},us.prototype.getMinX=function(B){var U=this.pts[this.startIndex[B]].x,G=this.pts[this.startIndex[B+1]].x;return UG&&(J=1),B._depth[U][Q]=J}}},ts.prototype.getDelta=function(B){return this._depth[B][qn.RIGHT]-this._depth[B][qn.LEFT]},ts.prototype.getLocation=function(B,U){return this._depth[B][U]<=0?xn.EXTERIOR:xn.INTERIOR},ts.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},ts.prototype.add=function(){var B=this;if(arguments.length===1)for(var U=arguments[0],G=0;G<2;G++)for(var Q=1;Q<3;Q++){var J=U.getLocation(G,Q);J!==xn.EXTERIOR&&J!==xn.INTERIOR||(B.isNull(G,Q)?B._depth[G][Q]=ts.depthAtLocation(J):B._depth[G][Q]+=ts.depthAtLocation(J))}else if(arguments.length===3){var rt=arguments[0],at=arguments[1],ft=arguments[2];ft===xn.INTERIOR&&this._depth[rt][at]++}},ts.prototype.interfaces_=function(){return[]},ts.prototype.getClass=function(){return ts},ts.depthAtLocation=function(B){return B===xn.EXTERIOR?0:B===xn.INTERIOR?1:ts.NULL_VALUE},wc.NULL_VALUE.get=function(){return-1},Object.defineProperties(ts,wc);var zd=function(B){function U(){if(B.call(this),this.pts=null,this._env=null,this.eiList=new Ji(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new ts,this._depthDelta=0,arguments.length===1){var G=arguments[0];U.call(this,G,null)}else if(arguments.length===2){var Q=arguments[0],J=arguments[1];this.pts=Q,this._label=J}}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.getDepth=function(){return this._depth},U.prototype.getCollapsedEdge=function(){var G=new Array(2).fill(null);return G[0]=this.pts[0],G[1]=this.pts[1],new U(G,so.toLineLabel(this._label))},U.prototype.isIsolated=function(){return this._isIsolated},U.prototype.getCoordinates=function(){return this.pts},U.prototype.setIsolated=function(G){this._isIsolated=G},U.prototype.setName=function(G){this._name=G},U.prototype.equals=function(G){if(!(G instanceof U))return!1;var Q=G;if(this.pts.length!==Q.pts.length)return!1;for(var J=!0,rt=!0,at=this.pts.length,ft=0;ft0?this.pts[0]:null;if(arguments.length===1){var G=arguments[0];return this.pts[G]}},U.prototype.print=function(G){G.print("edge "+this._name+": "),G.print("LINESTRING (");for(var Q=0;Q0&&G.print(","),G.print(this.pts[Q].x+" "+this.pts[Q].y);G.print(") "+this._label+" "+this._depthDelta)},U.prototype.computeIM=function(G){U.updateIM(this._label,G)},U.prototype.isCollapsed=function(){return!!this._label.isArea()&&this.pts.length===3&&!!this.pts[0].equals(this.pts[2])},U.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},U.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},U.prototype.getDepthDelta=function(){return this._depthDelta},U.prototype.getNumPoints=function(){return this.pts.length},U.prototype.printReverse=function(G){G.print("edge "+this._name+": ");for(var Q=this.pts.length-1;Q>=0;Q--)G.print(this.pts[Q]+" ");G.println("")},U.prototype.getMonotoneChainEdge=function(){return this._mce===null&&(this._mce=new us(this)),this._mce},U.prototype.getEnvelope=function(){if(this._env===null){this._env=new Sr;for(var G=0;G0&&G.append(","),G.append(this.pts[Q].x+" "+this.pts[Q].y);return G.append(") "+this._label+" "+this._depthDelta),G.toString()},U.prototype.isPointwiseEqual=function(G){if(this.pts.length!==G.pts.length)return!1;for(var Q=0;QQ||this._maxyrt;if(at)return!1;var ft=this.intersectsToleranceSquare(B,U);return ni.isTrue(!(at&&ft),"Found bad envelope test"),ft},ra.prototype.initCorners=function(B){var U=.5;this._minx=B.x-U,this._maxx=B.x+U,this._miny=B.y-U,this._maxy=B.y+U,this._corner[0]=new pn(this._maxx,this._maxy),this._corner[1]=new pn(this._minx,this._maxy),this._corner[2]=new pn(this._minx,this._miny),this._corner[3]=new pn(this._maxx,this._miny)},ra.prototype.intersects=function(B,U){return this._scaleFactor===1?this.intersectsScaled(B,U):(this.copyScaled(B,this._p0Scaled),this.copyScaled(U,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},ra.prototype.scale=function(B){return Math.round(B*this._scaleFactor)},ra.prototype.getCoordinate=function(){return this._originalPt},ra.prototype.copyScaled=function(B,U){U.x=this.scale(B.x),U.y=this.scale(B.y)},ra.prototype.getSafeEnvelope=function(){if(this._safeEnv===null){var B=ra.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new Sr(this._originalPt.x-B,this._originalPt.x+B,this._originalPt.y-B,this._originalPt.y+B)}return this._safeEnv},ra.prototype.intersectsPixelClosure=function(B,U){return this._li.computeIntersection(B,U,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(B,U,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(B,U,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(B,U,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},ra.prototype.intersectsToleranceSquare=function(B,U){var G=!1,Q=!1;return this._li.computeIntersection(B,U,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(B,U,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(G=!0),this._li.computeIntersection(B,U,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(Q=!0),this._li.computeIntersection(B,U,this._corner[3],this._corner[0]),!!this._li.isProper()||!(!G||!Q)||!!B.equals(this._pt)||!!U.equals(this._pt))))},ra.prototype.addSnappedNode=function(B,U){var G=B.getCoordinate(U),Q=B.getCoordinate(U+1);return!!this.intersects(G,Q)&&(B.addIntersection(this.getCoordinate(),U),!0)},ra.prototype.interfaces_=function(){return[]},ra.prototype.getClass=function(){return ra},Ga.SAFE_ENV_EXPANSION_FACTOR.get=function(){return .75},Object.defineProperties(ra,Ga);var es=function(){this.tempEnv1=new Sr,this.selectedSegment=new Tr};es.prototype.select=function(){if(arguments.length!==1){if(arguments.length===2){var B=arguments[0],U=arguments[1];B.getLineSegment(U,this.selectedSegment),this.select(this.selectedSegment)}}},es.prototype.interfaces_=function(){return[]},es.prototype.getClass=function(){return es};var xc=function(){this._index=null;var B=arguments[0];this._index=B},Bf={HotPixelSnapAction:{configurable:!0}};xc.prototype.snap=function(){if(arguments.length===1){var B=arguments[0];return this.snap(B,null,-1)}if(arguments.length===3){var U=arguments[0],G=arguments[1],Q=arguments[2],J=U.getSafeEnvelope(),rt=new Rd(U,G,Q);return this._index.query(J,{interfaces_:function(){return[Mu]},visitItem:function(at){at.select(J,rt)}}),rt.isNodeAdded()}},xc.prototype.interfaces_=function(){return[]},xc.prototype.getClass=function(){return xc},Bf.HotPixelSnapAction.get=function(){return Rd},Object.defineProperties(xc,Bf);var Rd=function(B){function U(){B.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var G=arguments[0],Q=arguments[1],J=arguments[2];this._hotPixel=G,this._parentEdge=Q,this._hotPixelVertexIndex=J}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.isNodeAdded=function(){return this._isNodeAdded},U.prototype.select=function(){if(arguments.length!==2)return B.prototype.select.apply(this,arguments);var G=arguments[0],Q=arguments[1],J=G.getContext();if(this._parentEdge!==null&&J===this._parentEdge&&Q===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(J,Q)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(es),Yh=function(){this._li=null,this._interiorIntersections=null;var B=arguments[0];this._li=B,this._interiorIntersections=new nr};Yh.prototype.processIntersections=function(B,U,G,Q){if(B===G&&U===Q)return null;var J=B.getCoordinates()[U],rt=B.getCoordinates()[U+1],at=G.getCoordinates()[Q],ft=G.getCoordinates()[Q+1];if(this._li.computeIntersection(J,rt,at,ft),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var yt=0;yt=0;U--){try{B.bufferReducedPrecision(U)}catch(rt){if(!(rt instanceof Vc))throw rt;B._saveException=rt}if(B._resultGeometry!==null)return null}throw this._saveException}if(arguments.length===1){var G=arguments[0],Q=yo.precisionScaleFactor(this._argGeom,this._distance,G),J=new eo(Q);this.bufferFixedPrecision(J)}},yo.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),this._resultGeometry!==null)return null;var B=this._argGeom.getFactory().getPrecisionModel();B.getType()===eo.FIXED?this.bufferFixedPrecision(B):this.bufferReducedPrecision()},yo.prototype.setQuadrantSegments=function(B){this._bufParams.setQuadrantSegments(B)},yo.prototype.bufferOriginalPrecision=function(){try{var B=new ks(this._bufParams);this._resultGeometry=B.buffer(this._argGeom,this._distance)}catch(U){if(!(U instanceof Uc))throw U;this._saveException=U}},yo.prototype.getResultGeometry=function(B){return this._distance=B,this.computeGeometry(),this._resultGeometry},yo.prototype.setEndCapStyle=function(B){this._bufParams.setEndCapStyle(B)},yo.prototype.interfaces_=function(){return[]},yo.prototype.getClass=function(){return yo},yo.bufferOp=function(){if(arguments.length===2){var B=arguments[0],U=arguments[1],G=new yo(B),Q=G.getResultGeometry(U);return Q}if(arguments.length===3){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Br&&typeof arguments[1]=="number"){var J=arguments[0],rt=arguments[1],at=arguments[2],ft=new yo(J);ft.setQuadrantSegments(at);var yt=ft.getResultGeometry(rt);return yt}if(arguments[2]instanceof no&&arguments[0]instanceof Br&&typeof arguments[1]=="number"){var vt=arguments[0],Tt=arguments[1],xt=arguments[2],It=new yo(vt,xt),Gt=It.getResultGeometry(Tt);return Gt}}else if(arguments.length===4){var Wt=arguments[0],ee=arguments[1],Bt=arguments[2],me=arguments[3],Ie=new yo(Wt);Ie.setQuadrantSegments(Bt),Ie.setEndCapStyle(me);var Zt=Ie.getResultGeometry(ee);return Zt}},yo.precisionScaleFactor=function(B,U,G){var Q=B.getEnvelopeInternal(),J=Ya.max(Math.abs(Q.getMaxX()),Math.abs(Q.getMaxY()),Math.abs(Q.getMinX()),Math.abs(Q.getMinY()))+2*(U>0?U:0),rt=G-Math.trunc(Math.log(J)/Math.log(10)+1);return Math.pow(10,rt)},Wa.CAP_ROUND.get=function(){return no.CAP_ROUND},Wa.CAP_BUTT.get=function(){return no.CAP_FLAT},Wa.CAP_FLAT.get=function(){return no.CAP_FLAT},Wa.CAP_SQUARE.get=function(){return no.CAP_SQUARE},Wa.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(yo,Wa);var As=function(){this._pt=[new pn,new pn],this._distance=Qr.NaN,this._isNull=!0};As.prototype.getCoordinates=function(){return this._pt},As.prototype.getCoordinate=function(B){return this._pt[B]},As.prototype.setMinimum=function(){if(arguments.length===1){var B=arguments[0];this.setMinimum(B._pt[0],B._pt[1])}else if(arguments.length===2){var U=arguments[0],G=arguments[1];if(this._isNull)return this.initialize(U,G),null;var Q=U.distance(G);Qthis._distance&&this.initialize(U,G,Q)}},As.prototype.interfaces_=function(){return[]},As.prototype.getClass=function(){return As};var qa=function(){};qa.prototype.interfaces_=function(){return[]},qa.prototype.getClass=function(){return qa},qa.computeDistance=function(){if(arguments[2]instanceof As&&arguments[0]instanceof No&&arguments[1]instanceof pn)for(var B=arguments[0],U=arguments[1],G=arguments[2],Q=B.getCoordinates(),J=new Tr,rt=0;rt0||this._isIn?xn.INTERIOR:xn.EXTERIOR)},Qa.prototype.interfaces_=function(){return[]},Qa.prototype.getClass=function(){return Qa};var ia=function B(){if(this._component=null,this._segIndex=null,this._pt=null,arguments.length===2){var U=arguments[0],G=arguments[1];B.call(this,U,B.INSIDE_AREA,G)}else if(arguments.length===3){var Q=arguments[0],J=arguments[1],rt=arguments[2];this._component=Q,this._segIndex=J,this._pt=rt}},a1={INSIDE_AREA:{configurable:!0}};ia.prototype.isInsideArea=function(){return this._segIndex===ia.INSIDE_AREA},ia.prototype.getCoordinate=function(){return this._pt},ia.prototype.getGeometryComponent=function(){return this._component},ia.prototype.getSegmentIndex=function(){return this._segIndex},ia.prototype.interfaces_=function(){return[]},ia.prototype.getClass=function(){return ia},a1.INSIDE_AREA.get=function(){return-1},Object.defineProperties(ia,a1);var Au=function(B){this._pts=B||null};Au.prototype.filter=function(B){B instanceof Ia&&this._pts.add(B)},Au.prototype.interfaces_=function(){return[Wl]},Au.prototype.getClass=function(){return Au},Au.getPoints=function(){if(arguments.length===1){var B=arguments[0];return B instanceof Ia?kl.singletonList(B):Au.getPoints(B,new nr)}if(arguments.length===2){var U=arguments[0],G=arguments[1];return U instanceof Ia?G.add(U):U instanceof na&&U.apply(new Au(G)),G}};var Wc=function(){this._locations=null;var B=arguments[0];this._locations=B};Wc.prototype.filter=function(B){(B instanceof Ia||B instanceof No||B instanceof ls)&&this._locations.add(new ia(B,0,B.getCoordinate()))},Wc.prototype.interfaces_=function(){return[Wl]},Wc.prototype.getClass=function(){return Wc},Wc.getLocations=function(B){var U=new nr;return B.apply(new Wc(U)),U};var Ns=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Qa,this._minDistanceLocation=null,this._minDistance=Qr.MAX_VALUE,arguments.length===2){var B=arguments[0],U=arguments[1];this._geom=[B,U],this._terminateDistance=0}else if(arguments.length===3){var G=arguments[0],Q=arguments[1],J=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=G,this._geom[1]=Q,this._terminateDistance=J}};Ns.prototype.computeContainmentDistance=function(){var B=this;if(arguments.length===0){var U=new Array(2).fill(null);if(this.computeContainmentDistance(0,U),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,U)}else if(arguments.length===2){var G=arguments[0],Q=arguments[1],J=1-G,rt=Gc.getPolygons(this._geom[G]);if(rt.size()>0){var at=Wc.getLocations(this._geom[J]);if(this.computeContainmentDistance(at,rt,Q),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[J]=Q[0],this._minDistanceLocation[G]=Q[1],null}}else if(arguments.length===3){if(arguments[2]instanceof Array&&Ur(arguments[0],wl)&&Ur(arguments[1],wl)){for(var ft=arguments[0],yt=arguments[1],vt=arguments[2],Tt=0;Ttthis._minDistance)return null;for(var J=U.getCoordinates(),rt=G.getCoordinate(),at=0;atthis._minDistance)return null;for(var Gt=Tt.getCoordinates(),Wt=xt.getCoordinates(),ee=0;eethis._distance&&this.initialize(U,G,Q)}},Gs.prototype.interfaces_=function(){return[]},Gs.prototype.getClass=function(){return Gs};var Dl=function(){};Dl.prototype.interfaces_=function(){return[]},Dl.prototype.getClass=function(){return Dl},Dl.computeDistance=function(){if(arguments[2]instanceof Gs&&arguments[0]instanceof No&&arguments[1]instanceof pn)for(var B=arguments[0],U=arguments[1],G=arguments[2],Q=new Tr,J=B.getCoordinates(),rt=0;rt1||B<=0)throw new Ao("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=B},Xa.prototype.compute=function(B,U){this.computeOrientedDistance(B,U,this._ptDist),this.computeOrientedDistance(U,B,this._ptDist)},Xa.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Xa.prototype.computeOrientedDistance=function(B,U,G){var Q=new Vh(U);if(B.apply(Q),G.setMaximum(Q.getMaxPointDistance()),this._densifyFrac>0){var J=new Nu(U,this._densifyFrac);B.apply(J),G.setMaximum(J.getMaxPointDistance())}},Xa.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Xa.prototype.interfaces_=function(){return[]},Xa.prototype.getClass=function(){return Xa},Xa.distance=function(){if(arguments.length===2){var B=arguments[0],U=arguments[1],G=new Xa(B,U);return G.distance()}if(arguments.length===3){var Q=arguments[0],J=arguments[1],rt=arguments[2],at=new Xa(Q,J);return at.setDensifyFraction(rt),at.distance()}},Hh.MaxPointDistanceFilter.get=function(){return Vh},Hh.MaxDensifiedByFractionDistanceFilter.get=function(){return Nu},Object.defineProperties(Xa,Hh);var Vh=function(){this._maxPtDist=new Gs,this._minPtDist=new Gs,this._euclideanDist=new Dl,this._geom=null;var B=arguments[0];this._geom=B};Vh.prototype.filter=function(B){this._minPtDist.initialize(),Dl.computeDistance(this._geom,B,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Vh.prototype.getMaxPointDistance=function(){return this._maxPtDist},Vh.prototype.interfaces_=function(){return[pc]},Vh.prototype.getClass=function(){return Vh};var Nu=function(){this._maxPtDist=new Gs,this._minPtDist=new Gs,this._geom=null,this._numSubSegs=0;var B=arguments[0],U=arguments[1];this._geom=B,this._numSubSegs=Math.trunc(Math.round(1/U))};Nu.prototype.filter=function(B,U){var G=this;if(U===0)return null;for(var Q=B.getCoordinate(U-1),J=B.getCoordinate(U),rt=(J.x-Q.x)/this._numSubSegs,at=(J.y-Q.y)/this._numSubSegs,ft=0;ftG){this._isValid=!1;var J=Q.getCoordinates();this._errorLocation=J[1],this._errorIndicator=B.getFactory().createLineString(J),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+_l.toLineString(J[0],J[1])+")"}},Ra.prototype.isValid=function(){var B=Math.abs(this._bufDistance),U=Ra.MAX_DISTANCE_DIFF_FRAC*B;return this._minValidDistance=B-U,this._maxValidDistance=B+U,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),Ra.VERBOSE&&Rs.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},Ra.prototype.checkNegativeValid=function(){if(!(this._input instanceof ls||this._input instanceof vc||this._input instanceof na))return null;var B=this.getPolygonLines(this._input);if(this.checkMinimumDistance(B,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(B,this._result,this._maxValidDistance)},Ra.prototype.getErrorIndicator=function(){return this._errorIndicator},Ra.prototype.checkMinimumDistance=function(B,U,G){var Q=new Ns(B,U,G);if(this._minDistanceFound=Q.distance(),this._minDistanceFound0&&B>U&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&B=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},Bs.prototype.report=function(B){if(!Bs.VERBOSE)return null;Rs.out.println("Check "+B+": "+(this._isValid?"passed":"FAILED"))},Bs.prototype.getErrorMessage=function(){return this._errorMsg},Bs.prototype.interfaces_=function(){return[]},Bs.prototype.getClass=function(){return Bs},Bs.isValidMsg=function(B,U,G){var Q=new Bs(B,U,G);return Q.isValid()?null:Q.getErrorMessage()},Bs.isValid=function(B,U,G){return!!new Bs(B,U,G).isValid()},c0.VERBOSE.get=function(){return!1},c0.MAX_ENV_DIFF_FRAC.get=function(){return .012},Object.defineProperties(Bs,c0);var tc=function(){this._pts=null,this._data=null;var B=arguments[0],U=arguments[1];this._pts=B,this._data=U};tc.prototype.getCoordinates=function(){return this._pts},tc.prototype.size=function(){return this._pts.length},tc.prototype.getCoordinate=function(B){return this._pts[B]},tc.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},tc.prototype.getSegmentOctant=function(B){return B===this._pts.length-1?-1:Al.octant(this.getCoordinate(B),this.getCoordinate(B+1))},tc.prototype.setData=function(B){this._data=B},tc.prototype.getData=function(){return this._data},tc.prototype.toString=function(){return _l.toLineString(new qo(this._pts))},tc.prototype.interfaces_=function(){return[cs]},tc.prototype.getClass=function(){return tc};var Ds=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new nr,this._intersectionCount=0,this._keepIntersections=!0;var B=arguments[0];this._li=B,this._interiorIntersection=null};Ds.prototype.getInteriorIntersection=function(){return this._interiorIntersection},Ds.prototype.setCheckEndSegmentsOnly=function(B){this._isCheckEndSegmentsOnly=B},Ds.prototype.getIntersectionSegments=function(){return this._intSegments},Ds.prototype.count=function(){return this._intersectionCount},Ds.prototype.getIntersections=function(){return this._intersections},Ds.prototype.setFindAllIntersections=function(B){this._findAllIntersections=B},Ds.prototype.setKeepIntersections=function(B){this._keepIntersections=B},Ds.prototype.processIntersections=function(B,U,G,Q){if(!this._findAllIntersections&&this.hasIntersection()||B===G&&U===Q||this._isCheckEndSegmentsOnly&&!(this.isEndSegment(B,U)||this.isEndSegment(G,Q)))return null;var J=B.getCoordinates()[U],rt=B.getCoordinates()[U+1],at=G.getCoordinates()[Q],ft=G.getCoordinates()[Q+1];this._li.computeIntersection(J,rt,at,ft),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=J,this._intSegments[1]=rt,this._intSegments[2]=at,this._intSegments[3]=ft,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},Ds.prototype.isEndSegment=function(B,U){return U===0||U>=B.size()-2},Ds.prototype.hasIntersection=function(){return this._interiorIntersection!==null},Ds.prototype.isDone=function(){return!this._findAllIntersections&&this._interiorIntersection!==null},Ds.prototype.interfaces_=function(){return[rh]},Ds.prototype.getClass=function(){return Ds},Ds.createAllIntersectionsFinder=function(B){var U=new Ds(B);return U.setFindAllIntersections(!0),U},Ds.createAnyIntersectionFinder=function(B){return new Ds(B)},Ds.createIntersectionCounter=function(B){var U=new Ds(B);return U.setFindAllIntersections(!0),U.setKeepIntersections(!1),U};var fl=function(){this._li=new wu,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var B=arguments[0];this._segStrings=B};fl.prototype.execute=function(){if(this._segInt!==null)return null;this.checkInteriorIntersections()},fl.prototype.getIntersections=function(){return this._segInt.getIntersections()},fl.prototype.isValid=function(){return this.execute(),this._isValid},fl.prototype.setFindAllIntersections=function(B){this._findAllIntersections=B},fl.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new Ds(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var B=new a0;if(B.setSegmentIntersector(this._segInt),B.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},fl.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Vc(this.getErrorMessage(),this._segInt.getInteriorIntersection())},fl.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var B=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+_l.toLineString(B[0],B[1])+" and "+_l.toLineString(B[2],B[3])},fl.prototype.interfaces_=function(){return[]},fl.prototype.getClass=function(){return fl},fl.computeIntersections=function(B){var U=new fl(B);return U.setFindAllIntersections(!0),U.isValid(),U.getIntersections()};var oh=function B(){this._nv=null;var U=arguments[0];this._nv=new fl(B.toSegmentStrings(U))};oh.prototype.checkValid=function(){this._nv.checkValid()},oh.prototype.interfaces_=function(){return[]},oh.prototype.getClass=function(){return oh},oh.toSegmentStrings=function(B){for(var U=new nr,G=B.iterator();G.hasNext();){var Q=G.next();U.add(new tc(Q.getCoordinates(),Q))}return U},oh.checkValid=function(B){new oh(B).checkValid()};var Gh=function(B){this._mapOp=B};Gh.prototype.map=function(B){for(var U=new nr,G=0;G0&&Q<4&&!this._preserveType?this._factory.createLineString(G):this._factory.createLinearRing(G)},oa.prototype.interfaces_=function(){return[]},oa.prototype.getClass=function(){return oa};var Ki=function B(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new Tr,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof No&&typeof arguments[1]=="number"){var U=arguments[0],G=arguments[1];B.call(this,U.getCoordinates(),G)}else if(arguments[0]instanceof Array&&typeof arguments[1]=="number"){var Q=arguments[0],J=arguments[1];this._srcPts=Q,this._isClosed=B.isClosed(Q),this._snapTolerance=J}};Ki.prototype.snapVertices=function(B,U){for(var G=this._isClosed?B.size()-1:B.size(),Q=0;Q=0&&B.add(rt+1,new pn(J),!1)}},Ki.prototype.findSegmentIndexToSnap=function(B,U){for(var G=this,Q=Qr.MAX_VALUE,J=-1,rt=0;rtU&&(U=Q)}return U}if(arguments.length===2){var J=arguments[0],rt=arguments[1];return Math.min(Mi.computeOverlaySnapTolerance(J),Mi.computeOverlaySnapTolerance(rt))}},Mi.computeSizeBasedSnapTolerance=function(B){var U=B.getEnvelopeInternal();return Math.min(U.getHeight(),U.getWidth())*Mi.SNAP_PRECISION_FACTOR},Mi.snapToSelf=function(B,U,G){return new Mi(B).snapToSelf(U,G)},Up.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(Mi,Up);var Yp=function(B){function U(G,Q,J){B.call(this),this._snapTolerance=G||null,this._snapPts=Q||null,this._isSelfSnap=J!==void 0&&J}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.snapLine=function(G,Q){var J=new Ki(G,this._snapTolerance);return J.setAllowSnappingToSourceVertices(this._isSelfSnap),J.snapTo(Q)},U.prototype.transformCoordinates=function(G,Q){var J=G.toCoordinateArray(),rt=this.snapLine(J,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(rt)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(oa),Is=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};Is.prototype.getCommon=function(){return Qr.longBitsToDouble(this._commonBits)},Is.prototype.add=function(B){var U=Qr.doubleToLongBits(B);return this._isFirst?(this._commonBits=U,this._commonSignExp=Is.signExpBits(this._commonBits),this._isFirst=!1,null):Is.signExpBits(U)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=Is.numCommonMostSigMantissaBits(this._commonBits,U),void(this._commonBits=Is.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},Is.prototype.toString=function(){if(arguments.length===1){var B=arguments[0],U=Qr.longBitsToDouble(B),G=Qr.toBinaryString(B),Q="0000000000000000000000000000000000000000000000000000000000000000"+G,J=Q.substring(Q.length-64),rt=J.substring(0,1)+" "+J.substring(1,12)+"(exp) "+J.substring(12)+" [ "+U+" ]";return rt}},Is.prototype.interfaces_=function(){return[]},Is.prototype.getClass=function(){return Is},Is.getBit=function(B,U){return B&1<>52},Is.zeroLowerBits=function(B,U){return B&~((1<=0;Q--){if(Is.getBit(B,Q)!==Is.getBit(U,Q))return G;G++}return 52};var nc=function(){this._commonCoord=null,this._ccFilter=new qc},jd={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};nc.prototype.addCommonBits=function(B){var U=new rc(this._commonCoord);B.apply(U),B.geometryChanged()},nc.prototype.removeCommonBits=function(B){if(this._commonCoord.x===0&&this._commonCoord.y===0)return B;var U=new pn(this._commonCoord);U.x=-U.x,U.y=-U.y;var G=new rc(U);return B.apply(G),B.geometryChanged(),B},nc.prototype.getCommonCoordinate=function(){return this._commonCoord},nc.prototype.add=function(B){B.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},nc.prototype.interfaces_=function(){return[]},nc.prototype.getClass=function(){return nc},jd.CommonCoordinateFilter.get=function(){return qc},jd.Translater.get=function(){return rc},Object.defineProperties(nc,jd);var qc=function(){this._commonBitsX=new Is,this._commonBitsY=new Is};qc.prototype.filter=function(B){this._commonBitsX.add(B.x),this._commonBitsY.add(B.y)},qc.prototype.getCommonCoordinate=function(){return new pn(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},qc.prototype.interfaces_=function(){return[pc]},qc.prototype.getClass=function(){return qc};var rc=function(){this.trans=null;var B=arguments[0];this.trans=B};rc.prototype.filter=function(B,U){var G=B.getOrdinate(U,0)+this.trans.x,Q=B.getOrdinate(U,1)+this.trans.y;B.setOrdinate(U,0,G),B.setOrdinate(U,1,Q)},rc.prototype.isDone=function(){return!1},rc.prototype.isGeometryChanged=function(){return!0},rc.prototype.interfaces_=function(){return[El]},rc.prototype.getClass=function(){return rc};var hs=function(B,U){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=B,this._geom[1]=U,this.computeSnapTolerance()};hs.prototype.selfSnap=function(B){return new Mi(B).snapTo(B,this._snapTolerance)},hs.prototype.removeCommonBits=function(B){this._cbr=new nc,this._cbr.add(B[0]),this._cbr.add(B[1]);var U=new Array(2).fill(null);return U[0]=this._cbr.removeCommonBits(B[0].copy()),U[1]=this._cbr.removeCommonBits(B[1].copy()),U},hs.prototype.prepareResult=function(B){return this._cbr.addCommonBits(B),B},hs.prototype.getResultGeometry=function(B){var U=this.snap(this._geom),G=ti.overlayOp(U[0],U[1],B);return this.prepareResult(G)},hs.prototype.checkValid=function(B){B.isValid()||Rs.out.println("Snapped geometry is invalid")},hs.prototype.computeSnapTolerance=function(){this._snapTolerance=Mi.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},hs.prototype.snap=function(B){var U=this.removeCommonBits(B);return Mi.snap(U[0],U[1],this._snapTolerance)},hs.prototype.interfaces_=function(){return[]},hs.prototype.getClass=function(){return hs},hs.overlayOp=function(B,U,G){return new hs(B,U).getResultGeometry(G)},hs.union=function(B,U){return hs.overlayOp(B,U,ti.UNION)},hs.intersection=function(B,U){return hs.overlayOp(B,U,ti.INTERSECTION)},hs.symDifference=function(B,U){return hs.overlayOp(B,U,ti.SYMDIFFERENCE)},hs.difference=function(B,U){return hs.overlayOp(B,U,ti.DIFFERENCE)};var Ls=function(B,U){this._geom=new Array(2).fill(null),this._geom[0]=B,this._geom[1]=U};Ls.prototype.getResultGeometry=function(B){var U=null,G=!1,Q=null;try{U=ti.overlayOp(this._geom[0],this._geom[1],B),G=!0}catch(J){if(!(J instanceof Uc))throw J;Q=J}if(!G)try{U=hs.overlayOp(this._geom[0],this._geom[1],B)}catch(J){throw J instanceof Uc?Q:J}return U},Ls.prototype.interfaces_=function(){return[]},Ls.prototype.getClass=function(){return Ls},Ls.overlayOp=function(B,U,G){return new Ls(B,U).getResultGeometry(G)},Ls.union=function(B,U){return Ls.overlayOp(B,U,ti.UNION)},Ls.intersection=function(B,U){return Ls.overlayOp(B,U,ti.INTERSECTION)},Ls.symDifference=function(B,U){return Ls.overlayOp(B,U,ti.SYMDIFFERENCE)},Ls.difference=function(B,U){return Ls.overlayOp(B,U,ti.DIFFERENCE)};var sh=function(){this.mce=null,this.chainIndex=null;var B=arguments[0],U=arguments[1];this.mce=B,this.chainIndex=U};sh.prototype.computeIntersections=function(B,U){this.mce.computeIntersectsForChain(this.chainIndex,B.mce,B.chainIndex,U)},sh.prototype.interfaces_=function(){return[]},sh.prototype.getClass=function(){return sh};var Ws=function B(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,arguments.length===2){var U=arguments[0],G=arguments[1];this._eventType=B.DELETE,this._xValue=U,this._insertEvent=G}else if(arguments.length===3){var Q=arguments[0],J=arguments[1],rt=arguments[2];this._eventType=B.INSERT,this._label=Q,this._xValue=J,this._obj=rt}},u0={INSERT:{configurable:!0},DELETE:{configurable:!0}};Ws.prototype.isDelete=function(){return this._eventType===Ws.DELETE},Ws.prototype.setDeleteEventIndex=function(B){this._deleteEventIndex=B},Ws.prototype.getObject=function(){return this._obj},Ws.prototype.compareTo=function(B){var U=B;return this._xValueU._xValue?1:this._eventTypeU._eventType?1:0},Ws.prototype.getInsertEvent=function(){return this._insertEvent},Ws.prototype.isInsert=function(){return this._eventType===Ws.INSERT},Ws.prototype.isSameLabel=function(B){return this._label!==null&&this._label===B._label},Ws.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},Ws.prototype.interfaces_=function(){return[ol]},Ws.prototype.getClass=function(){return Ws},u0.INSERT.get=function(){return 1},u0.DELETE.get=function(){return 2},Object.defineProperties(Ws,u0);var qh=function(){};qh.prototype.interfaces_=function(){return[]},qh.prototype.getClass=function(){return qh};var ds=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var B=arguments[0],U=arguments[1],G=arguments[2];this._li=B,this._includeProper=U,this._recordIsolated=G};ds.prototype.isTrivialIntersection=function(B,U,G,Q){if(B===G&&this._li.getIntersectionNum()===1){if(ds.isAdjacentSegments(U,Q))return!0;if(B.isClosed()){var J=B.getNumPoints()-1;if(U===0&&Q===J||Q===0&&U===J)return!0}}return!1},ds.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},ds.prototype.setIsDoneIfProperInt=function(B){this._isDoneWhenProperInt=B},ds.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},ds.prototype.isBoundaryPointInternal=function(B,U){for(var G=U.iterator();G.hasNext();){var Q=G.next().getCoordinate();if(B.isIntersection(Q))return!0}return!1},ds.prototype.hasProperIntersection=function(){return this._hasProper},ds.prototype.hasIntersection=function(){return this._hasIntersection},ds.prototype.isDone=function(){return this._isDone},ds.prototype.isBoundaryPoint=function(B,U){return U!==null&&(!!this.isBoundaryPointInternal(B,U[0])||!!this.isBoundaryPointInternal(B,U[1]))},ds.prototype.setBoundaryNodes=function(B,U){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=B,this._bdyNodes[1]=U},ds.prototype.addIntersections=function(B,U,G,Q){if(B===G&&U===Q)return null;this.numTests++;var J=B.getCoordinates()[U],rt=B.getCoordinates()[U+1],at=G.getCoordinates()[Q],ft=G.getCoordinates()[Q+1];this._li.computeIntersection(J,rt,at,ft),this._li.hasIntersection()&&(this._recordIsolated&&(B.setIsolated(!1),G.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(B,U,G,Q)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(B.addIntersections(this._li,U,0),G.addIntersections(this._li,Q,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},ds.prototype.interfaces_=function(){return[]},ds.prototype.getClass=function(){return ds},ds.isAdjacentSegments=function(B,U){return Math.abs(B-U)===1};var Oy=function(B){function U(){B.call(this),this.events=new nr,this.nOverlaps=null}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.prepareEvents=function(){kl.sort(this.events);for(var G=0;GU||this._maxrt?1:0},$f.prototype.interfaces_=function(){return[wd]},$f.prototype.getClass=function(){return $f};var Il=function(B){function U(){B.call(this),this._item=null;var G=arguments[0],Q=arguments[1],J=arguments[2];this._min=G,this._max=Q,this._item=J}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.query=function(G,Q,J){if(!this.intersects(G,Q))return null;J.visitItem(this._item)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(Tc),c1=function(B){function U(){B.call(this),this._node1=null,this._node2=null;var G=arguments[0],Q=arguments[1];this._node1=G,this._node2=Q,this.buildExtent(this._node1,this._node2)}return B&&(U.__proto__=B),U.prototype=Object.create(B&&B.prototype),U.prototype.constructor=U,U.prototype.buildExtent=function(G,Q){this._min=Math.min(G._min,Q._min),this._max=Math.max(G._max,Q._max)},U.prototype.query=function(G,Q,J){if(!this.intersects(G,Q))return null;this._node1!==null&&this._node1.query(G,Q,J),this._node2!==null&&this._node2.query(G,Q,J)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U}(Tc),ic=function(){this._leaves=new nr,this._root=null,this._level=0};ic.prototype.buildTree=function(){kl.sort(this._leaves,new Tc.NodeComparator);for(var B=this._leaves,U=null,G=new nr;;){if(this.buildLevel(B,G),G.size()===1)return G.get(0);U=B,B=G,G=U}},ic.prototype.insert=function(B,U,G){if(this._root!==null)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new Il(B,U,G))},ic.prototype.query=function(B,U,G){this.init(),this._root.query(B,U,G)},ic.prototype.buildRoot=function(){if(this._root!==null)return null;this._root=this.buildTree()},ic.prototype.printNode=function(B){Rs.out.println(_l.toLineString(new pn(B._min,this._level),new pn(B._max,this._level)))},ic.prototype.init=function(){if(this._root!==null)return null;this.buildRoot()},ic.prototype.buildLevel=function(B,U){this._level++,U.clear();for(var G=0;G=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,Q[0]),this.insertBoundaryPoint(this._argIndex,Q[Q.length-1])},U.prototype.getInvalidPoint=function(){return this._invalidPoint},U.prototype.getBoundaryPoints=function(){for(var G=this.getBoundaryNodes(),Q=new Array(G.size()).fill(null),J=0,rt=G.iterator();rt.hasNext();){var at=rt.next();Q[J++]=at.getCoordinate().copy()}return Q},U.prototype.getBoundaryNodes=function(){return this._boundaryNodes===null&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},U.prototype.addSelfIntersectionNode=function(G,Q,J){if(this.isBoundaryNode(G,Q))return null;J===xn.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(G,Q):this.insertPoint(G,Q,J)},U.prototype.addPolygonRing=function(G,Q,J){if(G.isEmpty())return null;var rt=fi.removeRepeatedPoints(G.getCoordinates());if(rt.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=rt[0],null;var at=Q,ft=J;ar.isCCW(rt)&&(at=J,ft=Q);var yt=new zd(rt,new so(this._argIndex,xn.BOUNDARY,at,ft));this._lineEdgeMap.put(G,yt),this.insertEdge(yt),this.insertPoint(this._argIndex,rt[0],xn.BOUNDARY)},U.prototype.insertPoint=function(G,Q,J){var rt=this._nodes.addNode(Q),at=rt.getLabel();at===null?rt._label=new so(G,J):at.setLocation(G,J)},U.prototype.createEdgeSetIntersector=function(){return new Oy},U.prototype.addSelfIntersectionNodes=function(G){for(var Q=this._edges.iterator();Q.hasNext();)for(var J=Q.next(),rt=J.getLabel().getLocation(G),at=J.eiList.iterator();at.hasNext();){var ft=at.next();this.addSelfIntersectionNode(G,ft.coord,rt)}},U.prototype.add=function(){if(arguments.length!==1)return B.prototype.add.apply(this,arguments);var G=arguments[0];if(G.isEmpty())return null;if(G instanceof vc&&(this._useBoundaryDeterminationRule=!1),G instanceof ls)this.addPolygon(G);else if(G instanceof No)this.addLineString(G);else if(G instanceof Ia)this.addPoint(G);else if(G instanceof Dd)this.addCollection(G);else if(G instanceof xu)this.addCollection(G);else if(G instanceof vc)this.addCollection(G);else{if(!(G instanceof na))throw new Error(G.getClass().getName());this.addCollection(G)}},U.prototype.addCollection=function(G){for(var Q=0;Q50?(this._areaPtLocator===null&&(this._areaPtLocator=new $d(this._parentGeom)),this._areaPtLocator.locate(G)):this._ptLocator.locate(G,this._parentGeom)},U.prototype.findEdge=function(){if(arguments.length===1){var G=arguments[0];return this._lineEdgeMap.get(G)}return B.prototype.findEdge.apply(this,arguments)},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U.determineBoundary=function(G,Q){return G.isInBoundary(Q)?xn.BOUNDARY:xn.INTERIOR},U}(Oo),Yd=function(){if(this._li=new wu,this._resultPrecisionModel=null,this._arg=null,arguments.length===1){var B=arguments[0];this.setComputationPrecision(B.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new Ud(0,B)}else if(arguments.length===2){var U=arguments[0],G=arguments[1],Q=ll.OGC_SFS_BOUNDARY_RULE;U.getPrecisionModel().compareTo(G.getPrecisionModel())>=0?this.setComputationPrecision(U.getPrecisionModel()):this.setComputationPrecision(G.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Ud(0,U,Q),this._arg[1]=new Ud(1,G,Q)}else if(arguments.length===3){var J=arguments[0],rt=arguments[1],at=arguments[2];J.getPrecisionModel().compareTo(rt.getPrecisionModel())>=0?this.setComputationPrecision(J.getPrecisionModel()):this.setComputationPrecision(rt.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Ud(0,J,at),this._arg[1]=new Ud(1,rt,at)}};Yd.prototype.getArgGeometry=function(B){return this._arg[B].getGeometry()},Yd.prototype.setComputationPrecision=function(B){this._resultPrecisionModel=B,this._li.setPrecisionModel(this._resultPrecisionModel)},Yd.prototype.interfaces_=function(){return[]},Yd.prototype.getClass=function(){return Yd};var ah=function(){};ah.prototype.interfaces_=function(){return[]},ah.prototype.getClass=function(){return ah},ah.map=function(){if(arguments[0]instanceof Br&&Ur(arguments[1],ah.MapOp)){for(var B=arguments[0],U=arguments[1],G=new nr,Q=0;Q=B.size()?null:B.get(U)},ns.union=function(B){return new ns(B).union()},d0.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(ns,d0);var Ll=function(){};function Qc(){return new Hd}function Hd(){this.reset()}Ll.prototype.interfaces_=function(){return[]},Ll.prototype.getClass=function(){return Ll},Ll.union=function(B,U){if(B.isEmpty()||U.isEmpty()){if(B.isEmpty()&&U.isEmpty())return ti.createEmptyResult(ti.UNION,B,U,B.getFactory());if(B.isEmpty())return U.copy();if(U.isEmpty())return B.copy()}return B.checkNotGeometryCollection(B),B.checkNotGeometryCollection(U),Ls.overlayOp(B,U,ti.UNION)},Hd.prototype={constructor:Hd,reset:function(){this.s=this.t=0},add:function(B){f0(Ff,B,this.t),f0(this,Ff.s,this.s),this.s?this.t+=Ff.t:this.s=Ff.t},valueOf:function(){return this.s}};var Ff=new Hd;function f0(B,U,G){var Q=B.s=U+G,J=Q-U,rt=Q-J;B.t=U-rt+(G-J)}var Zo=1e-6,co=Math.PI,Xc=co/2,u1=co/4,Zc=2*co,Hr=180/co,pl=co/180,sa=Math.abs,Py=Math.atan,Vd=Math.atan2,fs=Math.cos,ps=Math.sin,Uf=Math.sqrt;function Vp(B){return B>1?0:B<-1?co:Math.acos(B)}function Sc(B){return B>1?Xc:B<-1?-Xc:Math.asin(B)}function lh(){}function Yf(B,U){B&&p0.hasOwnProperty(B.type)&&p0[B.type](B,U)}var Gp={Feature:function(B,U){Yf(B.geometry,U)},FeatureCollection:function(B,U){for(var G=B.features,Q=-1,J=G.length;++Qco?B-Zc:B<-co?B+Zc:B,U]}function h1(B){return function(U,G){return[(U+=B)>co?U-Zc:U<-co?U+Zc:U,G]}}function _0(B){var U=h1(B);return U.invert=h1(-B),U}function w0(B,U){var G=fs(B),Q=ps(B),J=fs(U),rt=ps(U);function at(ft,yt){var vt=fs(yt),Tt=fs(ft)*vt,xt=ps(ft)*vt,It=ps(yt),Gt=It*G+Tt*Q;return[Vd(xt*J-Gt*rt,Tt*G-It*Q),Sc(Gt*J+xt*rt)]}return at.invert=function(ft,yt){var vt=fs(yt),Tt=fs(ft)*vt,xt=ps(ft)*vt,It=ps(yt),Gt=It*J-xt*rt;return[Vd(xt*J+It*rt,Tt*G+Gt*Q),Sc(Gt*G-Tt*Q)]},at}function x0(B,U){(U=rs(U))[0]-=B,y0(U);var G=Vp(-U[1]);return((-U[2]<0?-G:G)+Zc-Zo)%Zc}function Xp(){var B,U=[];return{point:function(G,Q){B.push([G,Q])},lineStart:function(){U.push(B=[])},lineEnd:lh,rejoin:function(){U.length>1&&U.push(U.pop().concat(U.shift()))},result:function(){var G=U;return U=[],B=null,G}}}function Zp(B,U){return sa(B[0]-U[0])=0;--rt)J.point((Tt=vt[rt])[0],Tt[1]);else Q(It.x,It.p.x,-1,J);It=It.p}vt=(It=It.o).z,Gt=!Gt}while(!It.v);J.lineEnd()}}}function Vf(B){if(U=B.length){for(var U,G,Q=0,J=B[0];++QU?1:B>=U?0:NaN}b0.invert=b0;var Wd,Jc;(Wd=Gf).length===1&&(Jc=Wd,Wd=function(B,U){return Gf(Jc(B),U)});function d1(B){for(var U,G,Q,J=B.length,rt=-1,at=0;++rt=0;)for(U=(Q=B[J]).length;--U>=0;)G[--at]=Q[U];return G}var qd=1e9,$s=-qd;function Jp(B,U,G,Q){function J(vt,Tt){return B<=vt&&vt<=G&&U<=Tt&&Tt<=Q}function rt(vt,Tt,xt,It){var Gt=0,Wt=0;if(vt==null||(Gt=at(vt,xt))!==(Wt=at(Tt,xt))||yt(vt,Tt)<0^xt>0)do It.point(Gt===0||Gt===3?B:G,Gt>1?Q:U);while((Gt=(Gt+xt+4)%4)!==Wt);else It.point(Tt[0],Tt[1])}function at(vt,Tt){return sa(vt[0]-B)0?0:3:sa(vt[0]-G)0?2:1:sa(vt[1]-U)0?1:0:Tt>0?3:2}function ft(vt,Tt){return yt(vt.x,Tt.x)}function yt(vt,Tt){var xt=at(vt,1),It=at(Tt,1);return xt!==It?xt-It:xt===0?Tt[1]-vt[1]:xt===1?vt[0]-Tt[0]:xt===2?vt[1]-Tt[1]:Tt[0]-vt[0]}return function(vt){var Tt,xt,It,Gt,Wt,ee,Bt,me,Ie,Zt,fe,be=vt,Ee=Xp(),_e={point:wn,lineStart:function(){_e.point=cn,xt&&xt.push(It=[]),Zt=!0,Ie=!1,Bt=me=NaN},lineEnd:function(){Tt&&(cn(Gt,Wt),ee&&Ie&&Ee.rejoin(),Tt.push(Ee.result())),_e.point=wn,Ie&&be.lineEnd()},polygonStart:function(){be=Ee,Tt=[],xt=[],fe=!0},polygonEnd:function(){var Tn=function(){for(var yn=0,mn=0,fn=xt.length;mnQ&&(ri-Sn)*(Q-bn)>(gr-bn)*(B-Sn)&&++yn:gr<=Q&&(ri-Sn)*(Q-bn)<(gr-bn)*(B-Sn)&&--yn;return yn}(),dn=fe&&Tn,An=(Tt=d1(Tt)).length;(dn||An)&&(vt.polygonStart(),dn&&(vt.lineStart(),rt(null,null,1,vt),vt.lineEnd()),An&&E0(Tt,ft,Tn,rt,vt),vt.polygonEnd()),be=vt,Tt=xt=It=null}};function wn(Tn,dn){J(Tn,dn)&&be.point(Tn,dn)}function cn(Tn,dn){var An=J(Tn,dn);if(xt&&It.push([Tn,dn]),Zt)Gt=Tn,Wt=dn,ee=An,Zt=!1,An&&(be.lineStart(),be.point(Tn,dn));else if(An&&Ie)be.point(Tn,dn);else{var yn=[Bt=Math.max($s,Math.min(qd,Bt)),me=Math.max($s,Math.min(qd,me))],mn=[Tn=Math.max($s,Math.min(qd,Tn)),dn=Math.max($s,Math.min(qd,dn))];(function(fn,Sn,bn,Nn,Ze,Mr){var Qn,ri=fn[0],gr=fn[1],jr=0,Ti=1,po=Sn[0]-ri,Fs=Sn[1]-gr;if(Qn=bn-ri,po||!(Qn>0)){if(Qn/=po,po<0){if(Qn0){if(Qn>Ti)return;Qn>jr&&(jr=Qn)}if(Qn=Ze-ri,po||!(Qn<0)){if(Qn/=po,po<0){if(Qn>Ti)return;Qn>jr&&(jr=Qn)}else if(po>0){if(Qn0)){if(Qn/=Fs,Fs<0){if(Qn0){if(Qn>Ti)return;Qn>jr&&(jr=Qn)}if(Qn=Mr-gr,Fs||!(Qn<0)){if(Qn/=Fs,Fs<0){if(Qn>Ti)return;Qn>jr&&(jr=Qn)}else if(Fs>0){if(Qn0&&(fn[0]=ri+jr*po,fn[1]=gr+jr*Fs),Ti<1&&(Sn[0]=ri+Ti*po,Sn[1]=gr+Ti*Fs),!0}}}}})(yn,mn,B,U,G,Q)?(Ie||(be.lineStart(),be.point(yn[0],yn[1])),be.point(mn[0],mn[1]),An||be.lineEnd(),fe=!1):An&&(be.lineStart(),be.point(Tn,dn),fe=!1)}Bt=Tn,me=dn,Ie=An}return _e}}var M0=Qc();Qc();function f1(B){return B}Qc(),Qc();var Qd=1/0,Zh=Qd,ch=-Qd,Kp=ch,p1={point:function(B,U){Bch&&(ch=B),UKp&&(Kp=U)},lineStart:lh,lineEnd:lh,polygonStart:lh,polygonEnd:lh,result:function(){var B=[[Qd,Zh],[ch,Kp]];return ch=Kp=-(Zh=Qd=1/0),B}};Qc();function T0(B,U,G,Q){return function(J,rt){var at,ft,yt,vt=U(rt),Tt=J.invert(Q[0],Q[1]),xt=Xp(),It=U(xt),Gt=!1,Wt={point:ee,lineStart:me,lineEnd:Ie,polygonStart:function(){Wt.point=Zt,Wt.lineStart=fe,Wt.lineEnd=be,ft=[],at=[]},polygonEnd:function(){Wt.point=ee,Wt.lineStart=me,Wt.lineEnd=Ie,ft=d1(ft);var Ee=function(_e,wn){var cn=wn[0],Tn=wn[1],dn=[ps(cn),-fs(cn),0],An=0,yn=0;M0.reset();for(var mn=0,fn=_e.length;mn=0?1:-1,Xf=Qf*uh,Xd=Xf>co,eg=Qn*Fs;if(M0.add(Vd(eg*Qf*ps(Xf),ri*qf+eg*fs(Xf))),An+=Xd?uh+Qf*Zc:uh,Xd^Ze>=cn^Ti>=cn){var Zd=qp(rs(Nn),rs(jr));y0(Zd);var C1=qp(dn,Zd);y0(C1);var k1=(Xd^uh>=0?-1:1)*Sc(C1[2]);(Tn>k1||Tn===k1&&(Zd[0]||Zd[1]))&&(yn+=Xd^uh>=0?1:-1)}}return(An<-1e-6||An0){for(Gt||(rt.polygonStart(),Gt=!0),rt.lineStart(),Ee=0;Ee<_e;++Ee)rt.point((cn=wn[Ee])[0],cn[1]);rt.lineEnd()}}else An>1&&2&Tn&&dn.push(dn.pop().concat(dn.shift())),ft.push(dn.filter(g1))}return Wt}}function g1(B){return B.length>1}function S0(B,U){return((B=B.x)[0]<0?B[1]-Xc-Zo:Xc-B[1])-((U=U.x)[0]<0?U[1]-Xc-Zo:Xc-U[1])}var C0=T0(function(){return!0},function(B){var U,G=NaN,Q=NaN,J=NaN;return{lineStart:function(){B.lineStart(),U=1},point:function(rt,at){var ft=rt>0?co:-co,yt=sa(rt-G);sa(yt-co)0?Xc:-Xc),B.point(J,Q),B.lineEnd(),B.lineStart(),B.point(ft,Q),B.point(rt,Q),U=0):J!==ft&&yt>=co&&(sa(G-J)Zo?Py((ps(Tt)*(Wt=fs(It))*ps(xt)-ps(It)*(Gt=fs(Tt))*ps(vt))/(Gt*Wt*ee)):(Tt+It)/2}(G,Q,rt,at),B.point(J,Q),B.lineEnd(),B.lineStart(),B.point(ft,Q),U=0),B.point(G=rt,Q=at),J=ft},lineEnd:function(){B.lineEnd(),G=Q=NaN},clean:function(){return 2-U}}},function(B,U,G,Q){var J;if(B==null)J=G*Xc,Q.point(-co,J),Q.point(0,J),Q.point(co,J),Q.point(co,0),Q.point(co,-J),Q.point(0,-J),Q.point(-co,-J),Q.point(-co,0),Q.point(-co,J);else if(sa(B[0]-U[0])>Zo){var rt=B[0]0,J=sa(G)>Zo;function rt(yt,vt){return fs(yt)*fs(vt)>G}function at(yt,vt,Tt){var xt=[1,0,0],It=qp(rs(yt),rs(vt)),Gt=Hf(It,It),Wt=It[0],ee=Gt-Wt*Wt;if(!ee)return!Tt&&yt;var Bt=G*Gt/ee,me=-G*Wt/ee,Ie=qp(xt,It),Zt=Qp(xt,Bt);m0(Zt,Qp(It,me));var fe=Ie,be=Hf(Zt,fe),Ee=Hf(fe,fe),_e=be*be-Ee*(Hf(Zt,Zt)-1);if(!(_e<0)){var wn=Uf(_e),cn=Qp(fe,(-be-wn)/Ee);if(m0(cn,Zt),cn=g0(cn),!Tt)return cn;var Tn,dn=yt[0],An=vt[0],yn=yt[1],mn=vt[1];An0^cn[1]<(sa(cn[0]-dn)co^(dn<=cn[0]&&cn[0]<=An)){var bn=Qp(fe,(-be+wn)/Ee);return m0(bn,Zt),[cn,g0(bn)]}}}function ft(yt,vt){var Tt=Q?B:co-B,xt=0;return yt<-Tt?xt|=1:yt>Tt&&(xt|=2),vt<-Tt?xt|=4:vt>Tt&&(xt|=8),xt}return T0(rt,function(yt){var vt,Tt,xt,It,Gt;return{lineStart:function(){It=xt=!1,Gt=1},point:function(Wt,ee){var Bt,me=[Wt,ee],Ie=rt(Wt,ee),Zt=Q?Ie?0:ft(Wt,ee):Ie?ft(Wt+(Wt<0?co:-co),ee):0;if(!vt&&(It=xt=Ie)&&yt.lineStart(),Ie!==xt&&(!(Bt=at(vt,me))||Zp(vt,Bt)||Zp(me,Bt))&&(me[0]+=Zo,me[1]+=Zo,Ie=rt(me[0],me[1])),Ie!==xt)Gt=0,Ie?(yt.lineStart(),Bt=at(me,vt),yt.point(Bt[0],Bt[1])):(Bt=at(vt,me),yt.point(Bt[0],Bt[1]),yt.lineEnd()),vt=Bt;else if(J&&vt&&Q^Ie){var fe;Zt&Tt||!(fe=at(me,vt,!0))||(Gt=0,Q?(yt.lineStart(),yt.point(fe[0][0],fe[0][1]),yt.point(fe[1][0],fe[1][1]),yt.lineEnd()):(yt.point(fe[1][0],fe[1][1]),yt.lineEnd(),yt.lineStart(),yt.point(fe[0][0],fe[0][1])))}!Ie||vt&&Zp(vt,me)||yt.point(me[0],me[1]),vt=me,xt=Ie,Tt=Zt},lineEnd:function(){xt&&yt.lineEnd(),vt=null},clean:function(){return Gt|(It&&xt)<<1}}},function(yt,vt,Tt,xt){(function(It,Gt,Wt,ee,Bt,me){if(Wt){var Ie=fs(Gt),Zt=ps(Gt),fe=ee*Wt;Bt==null?(Bt=Gt+ee*Zc,me=Gt-fe/2):(Bt=x0(Ie,Bt),me=x0(Ie,me),(ee>0?Btme)&&(Bt+=ee*Zc));for(var be,Ee=Bt;ee>0?Ee>me:Ee4*Q&&me--){var Ee=yt+Wt,_e=vt+ee,wn=Tt+Bt,cn=Uf(Ee*Ee+_e*_e+wn*wn),Tn=Sc(wn/=cn),dn=sa(sa(wn)-1)Q||sa((Zt*fn+fe*Sn)/be-.5)>.3||yt*Wt+vt*ee+Tt*Bt2?fn[2]%360*pl:0,yn()):[me*Hr,Ie*Hr,Zt*Hr]},Tn.precision=function(fn){return arguments.length?(cn=y1(An,wn=fn*fn),mn()):Uf(wn)},Tn.fitExtent=function(fn,Sn){return Wf(Tn,fn,Sn)},Tn.fitSize=function(fn,Sn){return function(bn,Nn,Ze){return Wf(bn,[[0,0],Nn],Ze)}(Tn,fn,Sn)},function(){return G=U.apply(this,arguments),Tn.invert=G.invert&&dn,yn()}}(function(){return B})()}var A0=function(B){return function(U,G){var Q=fs(U),J=fs(G),rt=B(Q*J);return[rt*J*ps(U),rt*ps(G)]}}(function(B){return(B=Vp(B))&&B/ps(B)});function jy(){return Ry(A0).scale(79.4188).clipAngle(179.999)}function Jh(B,U,G,Q){var J=B.properties||{},rt=B.type==="Feature"?B.geometry:B;if(rt.type==="GeometryCollection"){var at=[];return Oe(B,function(It){var Gt=Jh(It,U,G,Q);Gt&&at.push(Gt)}),ht(at)}var ft=function(It){var Gt=ko(It).geometry.coordinates,Wt=[-Gt[0],-Gt[1]];return jy().rotate(Wt).scale(O)}(rt),yt={type:rt.type,coordinates:_1(rt.coordinates,ft)},vt=new Lp().read(yt),Tt=At(Ct(U,G),"meters"),xt=yo.bufferOp(vt,Tt,Q);if(!b1((xt=new Km().write(xt)).coordinates))return W({type:xt.type,coordinates:w1(xt.coordinates,ft)},J)}function b1(B){return Array.isArray(B[0])?b1(B[0]):isNaN(B[0])}function _1(B,U){return typeof B[0]!="object"?U(B):B.map(function(G){return _1(G,U)})}function w1(B,U){return typeof B[0]!="object"?U.invert(B):B.map(function(G){return w1(G,U)})}function Kh(B,U,G){G===void 0&&(G={});var Q=ke(B),J=ke(U),rt=bu.intersection(Q.coordinates,J.coordinates);return rt.length===0?null:rt.length===1?nt(rt[0],G.properties):mt(rt,G.properties)}function x1(B,U,G){G===void 0&&(G={});var Q=JSON.stringify(G.properties||{}),J=B[0],rt=B[1],at=B[2],ft=B[3],yt=(rt+ft)/2,vt=(J+at)/2,Tt=2*U/Yr([J,yt],[at,yt],G)*(at-J),xt=2*U/Yr([vt,rt],[vt,ft],G)*(ft-rt),It=Tt/2,Gt=2*It,Wt=Math.sqrt(3)/2*xt,ee=at-J,Bt=ft-rt,me=3/4*Gt,Ie=Wt,Zt=(ee-Gt)/(Gt-It/2),fe=Math.floor(Zt),be=(fe*me-It/2-ee)/2-It/2+me/2,Ee=Math.floor((Bt-Wt)/Wt),_e=(Bt-Ee*Wt)/2,wn=Ee*Wt-Bt>Wt/2;wn&&(_e-=Wt/4);for(var cn=[],Tn=[],dn=0;dn<6;dn++){var An=2*Math.PI/6*dn;cn.push(Math.cos(An)),Tn.push(Math.sin(An))}for(var yn=[],mn=0;mn<=fe;mn++)for(var fn=0;fn<=Ee;fn++){var Sn=mn%2==1;if((fn!==0||!Sn)&&(fn!==0||!wn)){var bn=mn*me+J-be,Nn=fn*Ie+rt+_e;if(Sn&&(Nn-=Wt/2),G.triangles===!0)M1([bn,Nn],Tt/2,xt/2,JSON.parse(Q),cn,Tn).forEach(function(Mr){G.mask?Kh(G.mask,Mr)&&yn.push(Mr):yn.push(Mr)});else{var Ze=E1([bn,Nn],Tt/2,xt/2,JSON.parse(Q),cn,Tn);G.mask?Kh(G.mask,Ze)&&yn.push(Ze):yn.push(Ze)}}}return ht(yn)}function E1(B,U,G,Q,J,rt){for(var at=[],ft=0;ft<6;ft++){var yt=B[0]+U*J[ft],vt=B[1]+G*rt[ft];at.push([yt,vt])}return at.push(at[0].slice()),nt([at],Q)}function M1(B,U,G,Q,J,rt){for(var at=[],ft=0;ft<6;ft++){var yt=[];yt.push(B),yt.push([B[0]+U*J[ft],B[1]+G*rt[ft]]),yt.push([B[0]+U*J[(ft+1)%6],B[1]+G*rt[(ft+1)%6]]),yt.push(B),at.push(nt([yt],Q))}return at}function T1(B){return mt(B)}function By(B){return nt(B&&B.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]])}function S1(B,U,G){return G===void 0&&(G={}),function(Q,J,rt,at){at===void 0&&(at={});for(var ft=[],yt=Q[0],vt=Q[1],Tt=Q[2],xt=Q[3],It=J/Yr([yt,vt],[Tt,vt],at)*(Tt-yt),Gt=rt/Yr([yt,vt],[yt,xt],at)*(xt-vt),Wt=Tt-yt,ee=xt-vt,Bt=Math.floor(Wt/It),me=Math.floor(ee/Gt),Ie=(ee-me*Gt)/2,Zt=yt+(Wt-Bt*It)/2,fe=0;fe=J&&rt===Q.length-1);rt++){if(J>=U){var at=U-J;if(at){var ft=nl(Q[rt],Q[rt-1])-180;return vo(Q[rt],at,ft,G)}return X(Q[rt])}J+=Yr(Q[rt],Q[rt+1],G)}return X(Q[Q.length-1])},D.angle=function(B,U,G,Q){if(Q===void 0&&(Q={}),!Dt(Q))throw new Error("options is invalid");if(!B)throw new Error("startPoint is required");if(!U)throw new Error("midPoint is required");if(!G)throw new Error("endPoint is required");var J=B,rt=U,at=G,ft=Lt(Q.mercator!==!0?nl(J,rt):fu(J,rt)),yt=Lt(Q.mercator!==!0?nl(at,rt):fu(at,rt)),vt=Math.abs(ft-yt);return Q.explementary===!0?360-vt:vt},D.applyFilter=_p,D.area=Uu,D.areaFactors=Y,D.bbox=jt,D.bboxClip=function(B,U){var G=ke(B),Q=G.type,J=B.type==="Feature"?B.properties:{},rt=G.coordinates;switch(Q){case"LineString":case"MultiLineString":var at=[];return Q==="LineString"&&(rt=[rt]),rt.forEach(function(ft){(function(yt,vt,Tt){var xt,It,Gt,Wt,ee,Bt=yt.length,me=cc(yt[0],vt),Ie=[];for(Tt||(Tt=[]),xt=1;xt0)for(var yt=0;yt0},D.booleanParallel=function(B,U){if(!B)throw new Error("line1 is required");if(!U)throw new Error("line2 is required");if(Og(B,"line1")!=="LineString")throw new Error("line1 must be a LineString");if(Og(U,"line2")!=="LineString")throw new Error("line2 must be a LineString");for(var G=hn(Ea(B)).features,Q=hn(Ea(U)).features,J=0;JG&&(U.numberOfClusters=G),U.mutate!==!0&&(B=ai(B));var Q=De(B),J=Q.slice(0,U.numberOfClusters),rt=Lg(Q,U.numberOfClusters,J),at={};return rt.centroids.forEach(function(ft,yt){at[yt]=ft}),ve(B,function(ft,yt){var vt=rt.idxs[yt];ft.properties.cluster=vt,ft.properties.centroid=at[vt]}),B},D.collect=function(B,U,G,Q){var J=en(6),rt=U.features.map(function(at){var ft;return{minX:at.geometry.coordinates[0],minY:at.geometry.coordinates[1],maxX:at.geometry.coordinates[0],maxY:at.geometry.coordinates[1],property:(ft=at.properties)===null||ft===void 0?void 0:ft[G]}});return J.load(rt),B.features.forEach(function(at){at.properties||(at.properties={});var ft=jt(at),yt=J.search({minX:ft[0],minY:ft[1],maxX:ft[2],maxY:ft[3]}),vt=[];yt.forEach(function(Tt){Pr([Tt.minX,Tt.minY],at)&&vt.push(Tt.property)}),at.properties[Q]=vt}),B},D.collectionOf=Pe,D.combine=function(B){var U={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}};return ve(B,function(G){var Q,J,rt,at;switch((at=G.geometry)===null||at===void 0?void 0:at.type){case"Point":U.MultiPoint.coordinates.push(G.geometry.coordinates),U.MultiPoint.properties.push(G.properties);break;case"MultiPoint":(Q=U.MultiPoint.coordinates).push.apply(Q,G.geometry.coordinates),U.MultiPoint.properties.push(G.properties);break;case"LineString":U.MultiLineString.coordinates.push(G.geometry.coordinates),U.MultiLineString.properties.push(G.properties);break;case"MultiLineString":(J=U.MultiLineString.coordinates).push.apply(J,G.geometry.coordinates),U.MultiLineString.properties.push(G.properties);break;case"Polygon":U.MultiPolygon.coordinates.push(G.geometry.coordinates),U.MultiPolygon.properties.push(G.properties);break;case"MultiPolygon":(rt=U.MultiPolygon.coordinates).push.apply(rt,G.geometry.coordinates),U.MultiPolygon.properties.push(G.properties)}}),ht(Object.keys(U).filter(function(G){return U[G].coordinates.length}).sort().map(function(G){return W({type:G,coordinates:U[G].coordinates},{collectedProperties:U[G].properties})}))},D.concave=function(B,U){U===void 0&&(U={});var G=U.maxEdge||1/0,Q=Qs(function(rt){var at=[],ft={};return ve(rt,function(yt){if(yt.geometry){var vt=yt.geometry.coordinates.join("-");Object.prototype.hasOwnProperty.call(ft,vt)||(at.push(yt),ft[vt]=!0)}}),ht(at)}(B));if(Q.features=Q.features.filter(function(rt){var at=rt.geometry.coordinates[0][0],ft=rt.geometry.coordinates[0][1],yt=rt.geometry.coordinates[0][2],vt=Yr(at,ft,U),Tt=Yr(ft,yt,U),xt=Yr(at,yt,U);return vt<=G&&Tt<=G&&xt<=G}),Q.features.length<1)return null;var J=Ba(Q);return J.coordinates.length===1&&(J.coordinates=J.coordinates[0],J.type="Polygon"),W(J)},D.containsNumber=Vt,D.convertArea=te,D.convertDistance=qt,D.convertLength=qt,D.convex=ei,D.coordAll=De,D.coordEach=Pt,D.coordReduce=de,D.createBins=Yg,D.degrees2radians=Ht,D.degreesToRadians=Ht,D.destination=vo,D.difference=function(B,U){var G=ke(B),Q=ke(U),J=B.properties||{},rt=bu.difference(G.coordinates,Q.coordinates);return rt.length===0?null:rt.length===1?nt(rt[0],J):mt(rt,J)},D.dissolve=function(B,U){if(!Dt(U=U||{}))throw new Error("options is invalid");var G=U.propertyName;Pe(B,"Polygon","dissolve");var Q=[];if(!U.propertyName)return Th(mt(bu.union.apply(null,B.features.map(function(yt){return yt.geometry.coordinates}))));var J={};ve(B,function(yt){Object.prototype.hasOwnProperty.call(J,yt.properties[G])||(J[yt.properties[G]]=[]),J[yt.properties[G]].push(yt)});for(var rt=Object.keys(J),at=0;at0&&(yt=nt(ft).geometry),fy(yt,vt),ft=vt.slice(0);G.push(nt(ft,at));break;case"MultiPolygon":ft=[[[]]];for(var xt=0;xt0&&(yt=mt(ft).geometry),py(yt,vt),ft=vt.slice(0);G.push(mt(ft,at));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}}),ht(G)},D.polygonTangents=function(B,U){var G,Q,J,rt,at=oe(B),ft=oe(U),yt=jt(U),vt=0,Tt=null;switch(at[0]>yt[0]&&at[0]yt[1]&&at[1] is required");if(typeof G!="boolean")throw new Error(" must be a boolean");if(typeof Q!="boolean")throw new Error(" must be a boolean");Q===!1&&(B=ai(B));var J=[];switch(B.type){case"GeometryCollection":return Oe(B,function(rt){gu(rt,G)}),B;case"FeatureCollection":return ve(B,function(rt){ve(gu(rt,G),function(at){J.push(at)})}),ht(J)}return gu(B,G)},D.rhumbBearing=fu,D.rhumbDestination=pd,D.rhumbDistance=Oc,D.round=Et,D.sample=function(B,U){if(!B)throw new Error("featurecollection is required");if(U==null)throw new Error("num is required");if(typeof U!="number")throw new Error("num must be a number");return ht(function(G,Q){for(var J,rt,at=G.slice(0),ft=G.length,yt=ft-Q;ft-- >yt;)J=at[rt=Math.floor((ft+1)*Math.random())],at[rt]=at[ft],at[ft]=J;return at.slice(yt)}(B.features,U))},D.sector=function(B,U,G,Q,J){if(!Dt(J=J||{}))throw new Error("options is invalid");var rt=J.properties;if(!B)throw new Error("center is required");if(G==null)throw new Error("bearing1 is required");if(Q==null)throw new Error("bearing2 is required");if(!U)throw new Error("radius is required");if(typeof J!="object")throw new Error("options must be an object");if(fd(G)===fd(Q))return ju(B,U,J);var at=oe(B),ft=ta(B,U,G,Q,J),yt=[[at]];return Pt(ft,function(vt){yt[0].push(vt)}),yt[0].push(at),nt(yt,rt)},D.segmentEach=we,D.segmentReduce=Me,D.shortestPath=function(B,U,G){if(!Dt(G=G||{}))throw new Error("options is invalid");var Q=G.resolution,J=G.minDistance,rt=G.obstacles||ht([]);if(!B)throw new Error("start is required");if(!U)throw new Error("end is required");if(Q&&!Xt(Q)||Q<=0)throw new Error("options.resolution must be a number, greater than 0");if(J)throw new Error("options.minDistance is not yet implemented");var at=$t(B),ft=$t(U);switch(B=X(at),U=X(ft),$e(rt)){case"FeatureCollection":if(rt.features.length===0)return ct([at,ft]);break;case"Polygon":rt=ht([W(ke(rt))]);break;default:throw new Error("invalid obstacles")}var yt=rt;yt.features.push(B),yt.features.push(U);var vt=jt(F0(mh(jt(yt)),1.15));Q||(Q=Yr([vt[0],vt[1]],[vt[2],vt[1]],G)/100),yt.features.pop(),yt.features.pop();for(var Tt=vt[0],xt=vt[1],It=vt[2],Gt=vt[3],Wt=Q/Yr([Tt,xt],[It,xt],G)*(It-Tt),ee=Q/Yr([Tt,xt],[Tt,Gt],G)*(Gt-xt),Bt=It-Tt,me=Gt-xt,Ie=Math.floor(Bt/Wt),Zt=Math.floor(me/ee),fe=(Bt-Ie*Wt)/2,be=[],Ee=[],_e=[],wn=[],cn=1/0,Tn=1/0,dn=Gt-(me-Zt*ee)/2,An=0;dn>=xt;){for(var yn=[],mn=[],fn=Tt+fe,Sn=0;fn<=It;){var bn=X([fn,dn]),Nn=ry(bn,rt);yn.push(Nn?0:1),mn.push(fn+"|"+dn);var Ze=Yr(bn,B);!Nn&&ZeOpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],CartoDB_DarkMatterNoLabels:["https://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}{r}.png",{attribution:'© OpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],CartoDB_DarkMatterOnlyLabels:["https://{s}.basemaps.cartocdn.com/dark_only_labels/{z}/{x}/{y}{r}.png",{attribution:'© OpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],CartoDB_Positron:["https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png",{attribution:'© OpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],CartoDB_PositronNoLabels:["https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png",{attribution:'© OpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],CartoDB_PositronOnlyLabels:["https://{s}.basemaps.cartocdn.com/light_only_labels/{z}/{x}/{y}{r}.png",{attribution:'© OpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],CartoDB_Voyager:["https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",{attribution:'© OpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],CartoDB_VoyagerNoLabels:["https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}{r}.png",{attribution:'© OpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],CartoDB_VoyagerOnlyLabels:["https://{s}.basemaps.cartocdn.com/rastertiles/voyager_only_labels/{z}/{x}/{y}{r}.png",{attribution:'© OpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],CartoDB_VoyagerLabelsUnder:["https://{s}.basemaps.cartocdn.com/rastertiles/voyager_labels_under/{z}/{x}/{y}{r}.png",{attribution:'© OpenStreetMap contributors © CARTO',subdomains:"abcd",maxZoom:20}],Esri_DeLorme:["https://server.arcgisonline.com/ArcGIS/rest/services/Specialty/DeLorme_World_Base_Map/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Copyright: ©2012 DeLorme",minZoom:1,maxZoom:11}],Esri_NatGeoWorldMap:["https://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC",maxZoom:16}],Esri_OceanBasemap:["https://server.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri",maxZoom:13}],Esri_WorldGrayCanvas:["https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Esri, DeLorme, NAVTEQ",maxZoom:16}],Esri_WorldImagery:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}],Esri_WorldPhysical:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/{z}/{y}/{x}",{maxZoom:8,attribution:"Tiles © Esri — Source: US National Park Service"}],Esri_WorldShadedRelief:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Source: Esri",maxZoom:13}],Esri_WorldStreetMap:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}],Esri_WorldTerrain:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Source: USGS, Esri, TANA, DeLorme, and NPS",maxZoom:13}],Esri_WorldTopoMap:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}],MtbMap:["http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors & USGS'}],OpenStreetMap:["https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18,attribution:'© OpenStreetMap'}],OpenStreetMap_DE:["https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png",{maxZoom:18,attribution:'© OpenStreetMap contributors'}],OpenStreetMap_France:["https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",{maxZoom:20,attribution:'© OpenStreetMap France | © OpenStreetMap contributors'}],OpenStreetMap_HOT:["https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors, Tiles style by Humanitarian OpenStreetMap Team hosted by OpenStreetMap France',maxZoom:19}],OpenStreetMap_Mapnik:["https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors',maxZoom:19}],OpenTopoMap:["https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",{maxZoom:17,attribution:'Map data: © OpenStreetMap contributors, SRTM | Map style: © OpenTopoMap (CC-BY-SA)'}],OPNVKarte:["https://tileserver.memomaps.de/tilegen/{z}/{x}/{y}.png",{attribution:'Map memomaps.de CC-BY-SA, map data © OpenStreetMap contributors',maxZoom:18}],Stadia_AlidadeSmooth:["https://tiles.stadiamaps.com/tiles/alidade_smooth/{z}/{x}/{y}{r}.png",{attribution:'© Stadia Maps, © OpenMapTiles © OpenStreetMap contributors',maxZoom:20}],Stadia_AlidadeSmoothDark:["https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}{r}.png",{attribution:'© Stadia Maps, © OpenMapTiles © OpenStreetMap contributors',maxZoom:20}],Stadia_OSMBright:["https://tiles.stadiamaps.com/tiles/osm_bright/{z}/{x}/{y}{r}.png",{attribution:'© Stadia Maps, © OpenMapTiles © OpenStreetMap contributors',maxZoom:20}],Stadia_Outdoors:["https://tiles.stadiamaps.com/tiles/outdoors/{z}/{x}/{y}{r}.png",{maxZoom:20,attribution:'© Stadia Maps, © OpenMapTiles © OpenStreetMap contributors'}],Stamen_Terrain:["https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}{r}.{ext}",{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors',subdomains:"abcd",minZoom:0,maxZoom:18,ext:"png"}],Stamen_TerrainBackground:["https://stamen-tiles-{s}.a.ssl.fastly.net/terrain-background/{z}/{x}/{y}{r}.{ext}",{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors',subdomains:"abcd",minZoom:0,maxZoom:18,ext:"png"}],Stamen_TerrainLabels:["https://stamen-tiles-{s}.a.ssl.fastly.net/terrain-labels/{z}/{x}/{y}{r}.{ext}",{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors',subdomains:"abcd",minZoom:0,maxZoom:18,ext:"png"}],Stamen_Toner:["https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}{r}.{ext}",{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors',subdomains:"abcd",minZoom:0,maxZoom:20,ext:"png"}],Stamen_TonerBackground:["https://stamen-tiles-{s}.a.ssl.fastly.net/toner-background/{z}/{x}/{y}{r}.{ext}",{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors',subdomains:"abcd",minZoom:0,maxZoom:20,ext:"png"}],Stamen_TonerLite:["https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}{r}.{ext}",{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors',subdomains:"abcd",minZoom:0,maxZoom:20,ext:"png"}],Stamen_Watercolor:["https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.{ext}",{subdomains:"abcd",minZoom:1,maxZoom:16,ext:"jpg",attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors'}],USGS_USTopo:["https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x}",{maxZoom:20,attribution:'Tiles courtesy of the U.S. Geological Survey'}],USGS_USImagery:["https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}",{maxZoom:20,attribution:'Tiles courtesy of the U.S. Geological Survey'}],USGS_USImageryTopo:["https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",{maxZoom:20,attribution:'Tiles courtesy of the U.S. Geological Survey'}]},W=ref(null),q=computed(()=>{var jt,$t;return($t=(jt=W.value)==null?void 0:jt.getRootNode())==null?void 0:$t.host}),X=computed(()=>{var jt;return(jt=W==null?void 0:W.value)==null?void 0:jt.parentNode}),tt=computed(()=>{var jt;return(jt=X.value)==null?void 0:jt.querySelector(".content")}),nt=ref(),st=ref(),ct=ref([]),lt=ref(),ht=ref([]),bt=ref(),wt=ref(),mt=ref(),_t=ref(10),Et=ref(),At=ref(!1),Ct=ref(),Ft=ref();watch$1(q,()=>Yt()),onMounted(()=>{let jt=window.localStorage.getItem("gh-auth-token")||window.localStorage.getItem("gh-unscoped-token");jt&&(nt.value=new GithubClient(jt)),Ht(),Yt()});const Lt=isMobile()?"full":F.right?"right":F.left?"left":"full";function Yt(){q.value.classList.add("ve-component"),q.value.classList.add(Lt),Lt==="full"?q.value.style.width="100%":(q.value.style.float=Lt,q.value.style.width="calc(50% - 16px)"),q.value.style.width=window.getComputedStyle(q.value).width,F.sticky&&makeSticky(q.value),tt.value.style.width=isMobile()?"100%":F.width||"100%",nextTick(()=>{let jt=parseInt(window.getComputedStyle(tt.value).width.slice(0,-2)),$t=jt;if(F.sticky&&Lt==="full"){let oe=Math.round(window.innerHeight*.4);$t=Math.min(oe,jt)}tt.value.style.width=`${jt}px`,tt.value.style.height=`${$t}px`,q.value.style.height=`${F.caption?$t+32:$t}px`,te()})}watch$1(F,()=>Ht());function Ht(){_t.value=F.zoom,F.cards&&qt()}function qt(){let jt=[];if(F.cards){let $t=document.getElementById(F.cards);$t&&$t.querySelectorAll(".card").forEach(async oe=>{var Be;let Vt=Array.from(oe.querySelectorAll("li")).filter(ge=>ge.innerHTML.trim().indexOf("coords:")===0).map(ge=>ge.innerHTML.split(":")[1].trim()).pop()||"";if(Vt){let ge=oe.querySelector("ul.card-metadata");ge&&((Be=ge.parentElement)==null||Be.removeChild(ge)),jt.push({coords:qe(Vt),caption:oe.innerHTML})}})}jt.length>0&&(ht.value=[...ht.value,...jt])}watch$1(ht,async()=>{let jt=await Promise.all(ht.value),$t=jt.filter(Pe=>Pe.geojson&&Pe.preferGeojson).map(Pe=>{if(Pe.geojson.indexOf("http")!==0)if(Pe.geojson[0]==="/"){let[ke,$e,...Fe]=Pe.geojson.split("/").filter(rn=>rn),Qe=Fe.join("/"),We="main";Pe.geojson=`https://raw.githubusercontent.com/${ke}/${$e}/${We}/${Qe}`}else Pe.geojson=`https://raw.githubusercontent.com/${F.essayBase}/${Pe.geojson}`;return Pe}).map(Pe=>({url:Pe.geojson,item:Pe})),oe=await Promise.all($t.map(Pe=>fetch(Pe.url))),Vt=await Promise.all(oe.map(Pe=>Pe.json())),Be={};for(let Pe=0;Pe<$t.length;Pe++){$t[Pe].item.id&&/^Q[0-9]+$/.test($t[Pe].item.id)&&($t[Pe].item.qid=$t[Pe].item.id,delete $t[Pe].item.id),Vt[Pe].type==="FeatureCollection"?Vt[Pe].features.forEach($e=>$e.properties={...$e.properties,...$t[Pe].item}):Vt[Pe].properties={...Vt[Pe].properties,...$t[Pe].item};let ke=$t[Pe].item.layer||"Locations";Be[ke]||(Be[ke]=[]),Be[ke].push(Vt[Pe])}let ge={};jt.filter(Pe=>!Pe.geojson||!Pe.preferGeojson).filter(Pe=>!Pe.allmaps).forEach(Pe=>{let ke=Pe.layer||"Locations";ge[ke]||(ge[ke]=[]),ge[ke].push(Pe)}),jt.filter(Pe=>!Pe.allmaps).forEach(Pe=>{let ke=Pe.layer||"Locations";Be[ke]?ge[ke]&&(Be[ke].push(Pt(ge[ke])),delete ge[ke]):(Be[ke]=[Pt(ge[ke])],delete ge[ke])}),wt.value=jt.filter(Pe=>Pe.allmaps).map(Pe=>({name:Pe.layer||"Image layer",disabled:Pe.disabled,layer:L$1.tileLayer(`https://allmaps.xyz/maps/${Pe.allmaps}/{z}/{x}/{y}.png`,{maxZoom:19,attribution:'Allmaps'})})),mt.value=Be}),watch$1(wt,()=>ce()),watch$1(mt,()=>ce()),watch$1(st,()=>ce());function te(){var oe;if(At.value)return;if(At.value=!0,ct.value=F.entities?F.entities.split(/\s+/).filter(Vt=>Vt):[],F.cards){let Vt=[],Be=document.getElementById(F.cards);Be&&Be.querySelectorAll(".card").forEach(async ge=>{var ke;let Pe=Array.from(ge.querySelectorAll("li")).filter($e=>$e.innerHTML.trim().indexOf("coords:")===0).map($e=>$e.innerHTML.split(":")[1].trim()).pop()||"";if(Pe){let $e=ge.querySelector("ul.card-metadata");$e&&((ke=$e.parentElement)==null||ke.removeChild($e)),Vt.push({coords:qe(Pe),caption:ge.innerHTML})}}),ht.value=[...ht.value,...Vt]}de(),ye();const jt=new ResizeObserver(()=>Xt());let $t=(oe=X.value)==null?void 0:oe.querySelector("#map");$t&&jt.observe($t),He()}async function Xt(){var oe,Vt;let jt;if(F.center)if(isQID(F.center)){let Be=await getEntity(F.center);jt=qe(Be.coords)}else jt=qe(F.center);else if(F.entities){let Be=await getEntity(ct.value[0]);jt=qe(Be.coords),_t.value=9}else jt=new L$1.LatLng(0,0),_t.value=6;if(st.value){st.value.off(),st.value.remove();let Be=(oe=X.value)==null?void 0:oe.querySelector("#map"),ge=document.createElement("div");ge.id="map",Be==null||Be.replaceWith(ge)}let $t=(Vt=X.value)==null?void 0:Vt.querySelector("#map");if($t){isMobile()&&L$1.Map.addInitHook("addHandler","gestureHandling",leafletGestureHandling_minExports.GestureHandling),$t.style.cursor="default";let Be=F.basemaps.split(",").map(Pe=>{let[ke,$e]=Y[Pe];return[Pe.replace(/_/," "),L$1.tileLayer(ke,$e)]}),ge={preferCanvas:!1,zoomSnap:.1,center:jt,zoom:_t.value,zoomAnimation:!0,gestureHandling:isMobile(),layers:[Be[0][1]]};st.value=L$1.map($t,ge),(Be.length>1||Object.keys(mt.value||{}).length>1)&&(bt.value=L$1.control.layers(Object.fromEntries(Be),{}).addTo(st.value)),st.value.on("click",Pe=>{var ke;Dt(Pe),lt.value&&ze((ke=lt.value)==null?void 0:ke.split(" ")[0]),F.zoomOnClick&&kt()}),st.value.on("zoomend",Pe=>{Dt(Pe),Ft.value&&Ft.value.layer.openPopup()}),st.value.on("movestart",()=>$t.style.cursor="move"),st.value.on("moveend",Pe=>{$t.style.cursor="default",Dt(Pe)}),st.value.on("layeradd",Pe=>{var ke,$e;if(Pe.layer.feature){let Fe=Pe.layer;((ke=Fe.feature)==null?void 0:ke.type)=="Feature"&&(($e=Fe.feature)!=null&&$e.properties.qid)&&Fe.feature}}),lt.value=`${Number(jt.lat.toFixed(5))},${Number(jt.lng.toFixed(5))} ${_t.value}`,Et.value=`${Number(jt.lat.toFixed(5))},${Number(jt.lng.toFixed(5))},${_t.value}`}}function Dt(jt){let $t=jt.type==="click"?jt.latlng:jt.target.getCenter(),oe=jt.target.getZoom(),Vt=[$t.lat,$t.lng,oe];return lt.value=`${Number($t.lat.toFixed(5))},${Number($t.lng.toFixed(5))} ${oe}`,Ct.value||(Et.value=`${Number($t.lat.toFixed(5))},${Number($t.lng.toFixed(5))},${oe}`),Vt}function Qt(jt){return L$1.geoJSON(jt,{pointToLayer:($t,oe)=>{const Vt=$t.properties;let Be={...z};return $t.properties.icon&&(Be.iconUrl=$t.properties.icon),$t.properties.shadowUrl&&(Be.shadowUrl=$t.properties.shadowUrl),$t.properties.iconRetinaUrl&&(Be.iconRetinaUrl=$t.properties.iconRetinaUrl),Vt.markerType==="circle"?L$1.circleMarker(oe,{radius:Vt.radius||4}):L$1.marker(oe,{icon:new L$1.Icon(Be)})},onEachFeature:async($t,oe)=>{var Be;let Vt=oe;if(!$t.properties.coords){if((Be=Vt.feature)!=null&&Be.bbox){let ge=Vt.getBounds().getCenter();$t.properties.coords=`${ge.lat},${ge.lng}`}else if($t.geometry.type==="Polygon"){let ge=O.centroid($t);$t.properties.coords=`${ge.geometry.coordinates[1]},${ge.geometry.coordinates[0]}`}}if($t.properties.qid){let ge=await getEntity($t.properties.qid);$t.properties.entityData=ge;let ke=``;oe.bindPopup(ke)}else{let Pe=``;oe.bindPopup(Pe)}F.popupOnHover&&(oe.on("mouseover",()=>oe.openPopup()),oe.on("mouseout",()=>oe.closePopup())),oe.on("click",()=>{Ct.value?(oe.closePopup(),Ct.value=void 0):(oe.openPopup(),Ct.value={},F.zoomOnClick&&Kt($t.properties.coords))})},style:$t=>{const oe=$t==null?void 0:$t.properties,Vt=$t==null?void 0:$t.geometry.type;for(let[ge,Pe]of Object.entries(oe))Pe==="null"&&(oe[ge]=null);return{color:oe.color||"#FB683F",weight:oe.weight||(Vt==="Polygon"||Vt==="MultiPolygon"?0:4),opacity:oe.opacity||1,fillColor:oe.fillColor||"#32C125",fillOpacity:oe.fillOpacity||.5}}})}let Nt=!1;function ce(){var jt;if(st.value&&mt.value&&wt.value&&!Nt){Nt=!0;let $t=Object.keys(mt.value||{}),oe=wt.value?wt.value.length:0;!bt.value&&($t.length>1||$t.length===1&&$t[0]!=="Locations"||oe>0)&&(bt.value=L$1.control.layers(Object.fromEntries([]),{}).addTo(st.value)),Object.keys(mt.value||{}).forEach(Be=>{var ke;let ge=new L$1.LayerGroup,Pe=!1;mt.value[Be].forEach($e=>{var Qe;let Fe=Qt($e);ge.addLayer(Fe),(Qe=$e.properties)!=null&&Qe.disabled&&(Pe=!0)}),Pe||(ke=st.value)==null||ke.addLayer(ge),bt.value&&bt.value.addOverlay(ge,Be)});let Vt={};(jt=wt.value)==null||jt.forEach(Be=>{var ge;bt.value&&bt.value.addOverlay(Be.layer,Be.name),Be.disabled||(ge=st.value)==null||ge.addLayer(Be.layer),Vt[Be.name]=Be.layer}),Object.keys(Vt).length>0&&L$1.control.opacity(Vt,{label:null,collapsed:!0,position:"topright"}).addTo(st.value)}}function Pt(jt){const $t={type:"FeatureCollection",features:[]};return jt.filter(oe=>oe.coords).forEach(oe=>{let[Vt,Be]=oe.coords.split(",").map(ge=>parseFloat(ge.trim()));$t.features.push({type:"Feature",properties:oe,geometry:{type:"Point",coordinates:[Be,Vt]}})}),$t}async function de(){let jt=Array.from(q.value.querySelectorAll("li")).map($t=>{var oe;return Je((oe=$t.firstChild)==null?void 0:oe.textContent)});if(F.marker&&F.center)if(isQID(F.center)){let $t=await getEntity(F.center);jt.push(Promise.resolve(Oe($t)))}else jt.push(Promise.resolve({coords:F.center,zoom:F.zoom||10}));ht.value=[...ht.value,...jt]}function ye(){const jt=oe=>{for(let Vt of oe)Vt.type==="childList"&&Array.from(Vt.target.classList).indexOf("hydrated")>=0&&de()};new MutationObserver(jt).observe(q.value,{childList:!0,subtree:!0,characterData:!0})}function pe(jt){return/^[+-]?\d+(.\d*|\d*),{1}[+-]?\d+(.\d*|\d*)$/.test(jt)}function ve(jt){return/^\d{1,2}(\.\d{1})?$/.test(jt)}function Ce(jt){jt=jt||"";let $t=[];jt=jt.replace(/“/,'"').replace(/”/,'"').replace(/’/,"'");let oe=jt.match(/[^\s"]+|"([^"]*)"/gmi);return oe&&oe.forEach(Vt=>{$t.length>0&&$t[$t.length-1].indexOf("=")===$t[$t.length-1].length-1?$t[$t.length-1]=`${$t[$t.length-1]}${Vt}`:$t.push(Vt)}),$t}function De(jt,$t){let oe={id:$t},Vt=metadataAsObj(jt);return Vt.location&&(oe.coords=Vt.location[0]),Vt.coordinates_of_the_point_of_view&&(oe.coords=Vt.coordinates_of_the_point_of_view[0]),jt.label&&(oe.label=jt.label.en),jt.summary&&(oe.description=jt.summary.en[0]),jt.thumbnail&&(oe.image=jt.thumbnail[0].id),oe}function Oe(jt,$t=""){let oe={id:$t||jt.id};return jt.coords&&(oe.coords=jt.coords),jt.geojson&&(oe.geojson=jt.geojson),jt.label&&(oe.label=jt.label),jt.description&&(oe.description=jt.description),jt.thumbnail&&(oe.image=jt.thumbnail),oe}async function Je(jt){let $t=Ce(jt),oe=/\.(geo)?json$/i,Vt=/^[a-z0-9\-]+:.+/,Be={},ge=new Set(["disabled","prefer-geojson"]);for(let Pe=0;Pe<$t.length;Pe++){let ke=$t[Pe];if(ke.indexOf("=")>0){let[$e,...Fe]=ke.split("="),Qe=Fe.join("=");if(Qe=Qe[Qe.length-1]==='"'?Qe.slice(1,-1):Qe,$e==="qid"){let We=await getEntity(ke);Be={...Oe(We,ke),...Be}}else if($e==="iiif"){let We=await getManifest(ke);Be={...De(We,ke),...Be}}else Be[$e]=Qe}else if(ve(ke))Be.zoom=parseInt(ke);else if(pe(ke))Be.coords=ke,Be.id=ke;else if(isQID(ke)){let $e=await getEntity(ke);Be={...Oe($e,ke),...Be}}else if(oe.test(ke))Be.geojson=ke;else if(Vt.test(ke)){let $e=await getManifest(ke);Be={...De($e,ke),...Be}}else if(ge.has(ke))Be[kebabToCamel(ke)]=!0;else{let $e=ke[0]==='"'&&ke[ke.length-1]==='"'?ke.slice(1,-1):ke;Be.label?Be.description=$e:Be.label=$e}}return Be.preferGeojson=Be.preferGeojson||F.preferGeojson&&Be.geojson||Be.geojson&&!Be.coords,Be}function qe(jt){let[$t,oe]=jt.split(",").map(Vt=>parseFloat(Vt.trim()));return new leafletSrcExports.LatLng($t,oe)}function ze(jt){navigator.clipboard&&navigator.clipboard.writeText(jt)}function we(jt="",$t=""){return Object.values(mt.value).map(Vt=>{let Be=Vt[0];return Be.type==="FeatureCollection"?Be.features:[Be]}).flat().find(Vt=>{var Be,ge;return Vt.id===jt||((Be=Vt.properties)==null?void 0:Be.id)===jt||((ge=Vt.properties)==null?void 0:ge.coords)===$t})}function Me(jt=""){var ge,Pe,ke,$e;jt=jt.replace(/^flyto\|/i,"");let $t="",oe=10,Vt=jt.split(",");if(Vt.length===1){$t=Vt[0];let Fe=we($t);oe=((ge=Fe==null?void 0:Fe.properties)==null?void 0:ge.zoom)||oe}else if(Vt.length===2)if(/^[+-]?\d+(.\d*|\d*)$/.test(Vt[0])){$t=Vt.join(",");let Fe=we("",$t);oe=((Pe=Fe==null?void 0:Fe.properties)==null?void 0:Pe.zoom)||oe}else $t=Vt[0],oe=parseFloat(Vt[1]);else $t=Vt.slice(0,2).join(","),oe=parseFloat(Vt[2]);let Be;return(ke=st.value)==null||ke.eachLayer(Fe=>{var Qe,We,rn,zn;(((We=(Qe=Fe==null?void 0:Fe.feature)==null?void 0:Qe.properties)==null?void 0:We.id)===$t||((zn=(rn=Fe==null?void 0:Fe.feature)==null?void 0:rn.properties)==null?void 0:zn.coords)===$t)&&(Be=Fe)}),Be||($e=st.value)==null||$e.eachLayer(Fe=>Be=Fe),{id:$t,zoom:oe,layer:Be}}function He(){let jt=q.value.parentElement,$t=new Set;for(;jt.parentElement&&jt.tagName!=="MAIN";)jt=jt.parentElement,Array.from(jt.querySelectorAll("[enter],[exit]")).forEach(Vt=>{Ye(Vt)&&!$t.has(Vt)&&(Le(Vt),$t.add(Vt))});let oe=q.value.parentElement;for(;oe!=null&&oe.parentElement&&oe.tagName!=="BODY";)oe=oe.parentElement;oe&&Array.from(oe.querySelectorAll("mark")).forEach(Vt=>{let Be=Array.from(Vt.attributes).find(ge=>ge.name==="flyto");if(Be&&Ye(Vt.parentElement)){let Pe=Be==null?void 0:Be.value;Vt.classList.add(Be.name),Vt.addEventListener("click",()=>Kt(Pe)),F.popupOnHover&&(Vt.addEventListener("mouseover",()=>{let ke=Me(Pe).layer;ke.openPopup(),isMobile()&&setTimeout(()=>ke.closePopup(),2e3)}),Vt.addEventListener("mouseleave",()=>{var ke;Ft.value=Me(Pe),Ft.value.id!==Ct.value&&((ke=Ft.value.layer)==null||ke.closePopup())}))}})}function Le(jt){let $t=jt.classList.contains("active");new MutationObserver(Vt=>{Vt.forEach(Be=>{if(Be.attributeName=="class"){let ge=Be.target.classList.contains("active");if($t!==ge){$t=ge;let Pe=jt.attributes.getNamedItem(ge?"enter":"exit");if(Pe){const[ke,...$e]=Pe.value.split(":");let Fe=$e.join(":");ke==="flyto"&&Kt(Fe,!0),Pe.name==="exit"&&kt()}}}})}).observe(jt,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function Ye(jt){let $t=jt.previousSibling;for(;$t;){if($t.nodeName==="VE-MAP")return $t===q.value?$t:null;$t=$t.previousSibling}for(;jt.parentElement&&jt.tagName!=="MAIN";){jt=jt.parentElement;let oe=jt.querySelector(":scope > ve-map, :scope > p > ve-map, :scope > section > ve-map");if(oe)return oe===q.value?oe:null}}async function Kt(jt,$t=!1){var oe,Vt;if(Ft.value=Me(jt),Ft.value.layer){if(Ft.value.id===Ct.value&&!$t)Ft.value.layer.closePopup(),kt();else if(Ct.value=Ft.value.id,(oe=Ft.value.layer.feature)!=null&&oe.properties){let Be=qe(Ft.value.layer.feature.properties.coords);(Vt=st.value)==null||Vt.flyTo(Be,Ft.value.zoom)}}else kt()}function kt(){var jt,$t;if(Ft.value=null,Et.value){let[oe,Vt,Be]=Et.value.split(",").map(Pe=>parseFloat(Pe)),ge=new L$1.LatLng(oe,Vt);(jt=st.value)==null||jt.flyTo(ge,Be),($t=st.value)==null||$t.closePopup()}Ct.value=void 0}return(jt,$t)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:W,style:{width:"100%",height:"100%"}},[createBaseVNode("div",_hoisted_1$8,[createBaseVNode("div",{id:"lat-lng-zoom",innerHTML:lt.value,onClick:$t[0]||($t[0]=oe=>ze(`${lt.value}`))},null,8,_hoisted_2$7),_hoisted_3$5,D.caption?(openBlock(),createElementBlock("div",{key:0,id:"caption",innerHTML:D.caption},null,8,_hoisted_4$5)):createCommentVNode("",!0)])],512))}}),_style_0$7=`.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}input[type=range]{-webkit-appearance:none;-webkit-tap-highlight-color:rgba(255,255,255,0);width:110px;height:10px;margin:0;border:none;padding:1px 2px;border-radius:30px;background:#f1f0ee;outline:none}input[type=range]::-ms-track{border:inherit;color:transparent;background:transparent}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper{background:transparent}input[type=range]::-ms-tooltip{display:none}input[type=range]::-ms-thumb{width:15px;height:18px;border-radius:12px;border:0;background-image:linear-gradient(to bottom,#1253a4 0,#1253a4 100%)}.leaflet-control-layers-label{margin:0 0 8px 1px}@keyframes leaflet-gestures-fadein{0%{opacity:0}to{opacity:1}}.leaflet-container:after{animation:leaflet-gestures-fadein .8s backwards;color:#fff;font-family:Roboto,Arial,sans-serif;font-size:22px;justify-content:center;display:flex;align-items:center;padding:15px;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:461;pointer-events:none}.leaflet-gesture-handling-touch-warning:after,.leaflet-gesture-handling-scroll-warning:after{animation:leaflet-gestures-fadein .8s forwards}.leaflet-gesture-handling-touch-warning:after{content:attr(data-gesture-handling-touch-content)}.leaflet-gesture-handling-scroll-warning:after{content:attr(data-gesture-handling-scroll-content)}*{box-sizing:border-box}:host{display:flex;align-content:center;justify-content:center;position:relative;font-family:Roboto,sans-serif;background-color:#fff;margin-bottom:1rem}.content{margin:auto}#map{border:1px solid #ccc;width:100%;height:100%}#caption{font-family:sans-serif;width:100%;white-space:nowrap;background-color:#555;color:#fff;padding:4px 6px;bottom:0;height:32px;text-overflow:ellipsis;overflow:hidden}#lat-lng-zoom{position:absolute;font-family:sans-serif;bottom:24px;right:0;width:150px;height:32px;padding:3px 6px;font-size:.8rem;background-color:#ffffff80;color:#000;z-index:2;opacity:0;text-align:right}#lat-lng-zoom:hover{visibility:visible;opacity:1;transition:all .3s ease-in;cursor:copy;z-index:1000}.card{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto 1fr 0px;border-radius:4px;padding:0}.card p{border:none}.card-image{grid-area:1 / 1 / 2 / 2;width:100%;height:190px}.card-title{grid-area:2 / 1 / 3 / 2;font-weight:700;font-size:1.5rem;line-height:1;padding:1.3rem .5rem .2rem;text-decoration:none}.card-metadata{grid-area:3 / 1 / 4 / 2;list-style:none;padding:.2rem .5rem;margin:0;font-size:.9rem;font-weight:400}.card-abstract{grid-area:4 / 1 / 5 / 2;align-self:flex-end;height:110px;line-height:1.4;font-size:1rem;padding:.5rem .5rem 0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;margin:0 0 .5rem}.leaflet-popup-content{width:280px;margin:0}.leaflet-control-layers-toggle{background-image:url(https://unpkg.com/leaflet@1.9.3/dist/images/layers.png)}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(https://unpkg.com/leaflet@1.9.3/dist/images/layers-2x.png)} +`,Map$3=_export_sfc(_sfc_main$a,[["styles",[_style_0$7]]]);var dist$1={exports:{}},Sister;/** +* @link https://github.com/gajus/sister for the canonical source repository +* @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause +*/Sister=function(){var D={},O={};return D.on=function(z,F){var Y={name:z,handler:F};return O[z]=O[z]||[],O[z].unshift(Y),Y},D.off=function(z){var F=O[z.name].indexOf(z);F!==-1&&O[z.name].splice(F,1)},D.trigger=function(z,F){var Y=O[z],W;if(Y)for(W=Y.length;W--;)Y[W].handler(F)},D};var sister=Sister,YouTubePlayer$1={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var D=1e3,O=D*60,z=O*60,F=z*24,Y=F*7,W=F*365.25;ms=function(st,ct){ct=ct||{};var lt=typeof st;if(lt==="string"&&st.length>0)return q(st);if(lt==="number"&&isFinite(st))return ct.long?tt(st):X(st);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(st))};function q(st){if(st=String(st),!(st.length>100)){var ct=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(st);if(ct){var lt=parseFloat(ct[1]),ht=(ct[2]||"ms").toLowerCase();switch(ht){case"years":case"year":case"yrs":case"yr":case"y":return lt*W;case"weeks":case"week":case"w":return lt*Y;case"days":case"day":case"d":return lt*F;case"hours":case"hour":case"hrs":case"hr":case"h":return lt*z;case"minutes":case"minute":case"mins":case"min":case"m":return lt*O;case"seconds":case"second":case"secs":case"sec":case"s":return lt*D;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return lt;default:return}}}}function X(st){var ct=Math.abs(st);return ct>=F?Math.round(st/F)+"d":ct>=z?Math.round(st/z)+"h":ct>=O?Math.round(st/O)+"m":ct>=D?Math.round(st/D)+"s":st+"ms"}function tt(st){var ct=Math.abs(st);return ct>=F?nt(st,ct,F,"day"):ct>=z?nt(st,ct,z,"hour"):ct>=O?nt(st,ct,O,"minute"):ct>=D?nt(st,ct,D,"second"):st+" ms"}function nt(st,ct,lt,ht){var bt=ct>=lt*1.5;return Math.round(st/lt)+" "+ht+(bt?"s":"")}return ms}function setup(D){z.debug=z,z.default=z,z.coerce=tt,z.disable=W,z.enable=Y,z.enabled=q,z.humanize=requireMs(),z.destroy=nt,Object.keys(D).forEach(st=>{z[st]=D[st]}),z.names=[],z.skips=[],z.formatters={};function O(st){let ct=0;for(let lt=0;lt{if(Lt==="%%")return"%";Ct++;const Ht=z.formatters[Yt];if(typeof Ht=="function"){const qt=mt[Ct];Lt=Ht.call(_t,qt),mt.splice(Ct,1),Ct--}return Lt}),z.formatArgs.call(_t,mt),(_t.log||z.log).apply(_t,mt)}return wt.namespace=st,wt.useColors=z.useColors(),wt.color=z.selectColor(st),wt.extend=F,wt.destroy=z.destroy,Object.defineProperty(wt,"enabled",{enumerable:!0,configurable:!1,get:()=>lt!==null?lt:(ht!==z.namespaces&&(ht=z.namespaces,bt=z.enabled(st)),bt),set:mt=>{lt=mt}}),typeof z.init=="function"&&z.init(wt),wt}function F(st,ct){const lt=z(this.namespace+(typeof ct>"u"?":":ct)+st);return lt.log=this.log,lt}function Y(st){z.save(st),z.namespaces=st,z.names=[],z.skips=[];let ct;const lt=(typeof st=="string"?st:"").split(/[\s,]+/),ht=lt.length;for(ct=0;ct"-"+ct)].join(",");return z.enable(""),st}function q(st){if(st[st.length-1]==="*")return!0;let ct,lt;for(ct=0,lt=z.skips.length;ct{let tt=!1;return()=>{tt||(tt=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),O.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function z(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function F(tt){if(tt[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+tt[0]+(this.useColors?"%c ":" ")+"+"+D.exports.humanize(this.diff),!this.useColors)return;const nt="color: "+this.color;tt.splice(1,0,nt,"color: inherit");let st=0,ct=0;tt[0].replace(/%[a-zA-Z%]/g,lt=>{lt!=="%%"&&(st++,lt==="%c"&&(ct=st))}),tt.splice(ct,0,nt)}O.log=console.debug||console.log||(()=>{});function Y(tt){try{tt?O.storage.setItem("debug",tt):O.storage.removeItem("debug")}catch{}}function W(){let tt;try{tt=O.storage.getItem("debug")}catch{}return!tt&&typeof process<"u"&&"env"in process&&(tt={name:"juncture-webcomponents",version:"0.4.0"}.DEBUG),tt}function q(){try{return localStorage}catch{}}D.exports=common$2(O);const{formatters:X}=D.exports;X.j=function(tt){try{return JSON.stringify(tt)}catch(nt){return"[UnexpectedJSONParseError]: "+nt.message}}})(browser,browser.exports);var browserExports=browser.exports,FunctionStateMap={exports:{}},PlayerStates={exports:{}};(function(D,O){Object.defineProperty(O,"__esModule",{value:!0}),O.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},D.exports=O.default})(PlayerStates,PlayerStates.exports);var PlayerStatesExports=PlayerStates.exports;(function(D,O){Object.defineProperty(O,"__esModule",{value:!0});var z=PlayerStatesExports,F=Y(z);function Y(W){return W&&W.__esModule?W:{default:W}}O.default={pauseVideo:{acceptableStates:[F.default.ENDED,F.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[F.default.ENDED,F.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[F.default.ENDED,F.default.PLAYING,F.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},D.exports=O.default})(FunctionStateMap,FunctionStateMap.exports);var FunctionStateMapExports=FunctionStateMap.exports,eventNames={exports:{}};(function(D,O){Object.defineProperty(O,"__esModule",{value:!0}),O.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],D.exports=O.default})(eventNames,eventNames.exports);var eventNamesExports=eventNames.exports,functionNames={exports:{}};(function(D,O){Object.defineProperty(O,"__esModule",{value:!0}),O.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe","getSphericalProperties","setSphericalProperties"],D.exports=O.default})(functionNames,functionNames.exports);var functionNamesExports=functionNames.exports;(function(D,O){Object.defineProperty(O,"__esModule",{value:!0});var z=browserExports,F=st(z),Y=FunctionStateMapExports,W=st(Y),q=eventNamesExports,X=st(q),tt=functionNamesExports,nt=st(tt);function st(ht){return ht&&ht.__esModule?ht:{default:ht}}const ct=(0,F.default)("youtube-player"),lt={};lt.proxyEvents=ht=>{const bt={};for(const wt of X.default){const mt="on"+wt.slice(0,1).toUpperCase()+wt.slice(1);bt[mt]=_t=>{ct('event "%s"',mt,_t),ht.trigger(wt,_t)}}return bt},lt.promisifyPlayer=(ht,bt=!1)=>{const wt={};for(const mt of nt.default)bt&&W.default[mt]?wt[mt]=(..._t)=>ht.then(Et=>{const At=W.default[mt],Ct=Et.getPlayerState(),Ft=Et[mt].apply(Et,_t);return At.stateChangeRequired||Array.isArray(At.acceptableStates)&&!At.acceptableStates.includes(Ct)?new Promise(Lt=>{const Yt=()=>{const Ht=Et.getPlayerState();let qt;typeof At.timeout=="number"&&(qt=setTimeout(()=>{Et.removeEventListener("onStateChange",Yt),Lt()},At.timeout)),Array.isArray(At.acceptableStates)&&At.acceptableStates.includes(Ht)&&(Et.removeEventListener("onStateChange",Yt),clearTimeout(qt),Lt())};Et.addEventListener("onStateChange",Yt)}).then(()=>Ft):Ft}):wt[mt]=(..._t)=>ht.then(Et=>Et[mt].apply(Et,_t));return wt},O.default=lt,D.exports=O.default})(YouTubePlayer$1,YouTubePlayer$1.exports);var YouTubePlayerExports=YouTubePlayer$1.exports,loadYouTubeIframeApi={exports:{}},loadScript=function(O,z,F){var Y=document.head||document.getElementsByTagName("head")[0],W=document.createElement("script");typeof z=="function"&&(F=z,z={}),z=z||{},F=F||function(){},W.type=z.type||"text/javascript",W.charset=z.charset||"utf8",W.async="async"in z?!!z.async:!0,W.src=O,z.attrs&&setAttributes(W,z.attrs),z.text&&(W.text=""+z.text);var q="onload"in W?stdOnEnd:ieOnEnd;q(W,F),W.onload||stdOnEnd(W,F),Y.appendChild(W)};function setAttributes(D,O){for(var z in O)D.setAttribute(z,O[z])}function stdOnEnd(D,O){D.onload=function(){this.onerror=this.onload=null,O(null,D)},D.onerror=function(){this.onerror=this.onload=null,O(new Error("Failed to load "+this.src),D)}}function ieOnEnd(D,O){D.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,O(null,D))}}(function(D,O){Object.defineProperty(O,"__esModule",{value:!0});var z=loadScript,F=Y(z);function Y(W){return W&&W.__esModule?W:{default:W}}O.default=W=>new Promise(X=>{if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){X(window.YT);return}else{const nt=window.location.protocol==="http:"?"http:":"https:";(0,F.default)(nt+"//www.youtube.com/iframe_api",st=>{st&&W.trigger("error",st)})}const tt=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{tt&&tt(),X(window.YT)}}),D.exports=O.default})(loadYouTubeIframeApi,loadYouTubeIframeApi.exports);var loadYouTubeIframeApiExports=loadYouTubeIframeApi.exports;(function(D,O){Object.defineProperty(O,"__esModule",{value:!0});var z=sister,F=tt(z),Y=YouTubePlayerExports,W=tt(Y),q=loadYouTubeIframeApiExports,X=tt(q);function tt(st){return st&&st.__esModule?st:{default:st}}let nt;O.default=(st,ct={},lt=!1)=>{const ht=(0,F.default)();if(nt||(nt=(0,X.default)(ht)),ct.events)throw new Error("Event handlers cannot be overwritten.");if(typeof st=="string"&&!document.getElementById(st))throw new Error('Element "'+st+'" does not exist.');ct.events=W.default.proxyEvents(ht);const bt=new Promise(mt=>{typeof st=="object"&&st.playVideo instanceof Function?mt(st):nt.then(_t=>{const Et=new _t.Player(st,ct);return ht.on("ready",()=>{mt(Et)}),null})}),wt=W.default.promisifyPlayer(bt,lt);return wt.on=ht.on,wt.off=ht.off,wt},D.exports=O.default})(dist$1,dist$1.exports);var distExports=dist$1.exports;const YouTubePlayer=getDefaultExportFromCjs(distExports);/*! @vimeo/player v2.20.1 | (c) 2023 Vimeo | MIT License | https://github.com/vimeo/player.js */function ownKeys(D,O){var z=Object.keys(D);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(D);O&&(F=F.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),z.push.apply(z,F)}return z}function _objectSpread2(D){for(var O=1;O=0;--ce){var Pt=this.tryEntries[ce],de=Pt.completion;if(Pt.tryLoc==="root")return Nt("end");if(Pt.tryLoc<=this.prev){var ye=z.call(Pt,"catchLoc"),pe=z.call(Pt,"finallyLoc");if(ye&&pe){if(this.prev=0;--Nt){var ce=this.tryEntries[Nt];if(ce.tryLoc<=this.prev&&z.call(ce,"finallyLoc")&&this.prev=0;--Qt){var Nt=this.tryEntries[Qt];if(Nt.finallyLoc===Dt)return this.complete(Nt.completion,Nt.afterLoc),Ht(Nt),ct}},catch:function(Dt){for(var Qt=this.tryEntries.length-1;Qt>=0;--Qt){var Nt=this.tryEntries[Qt];if(Nt.tryLoc===Dt){var ce=Nt.completion;if(ce.type==="throw"){var Pt=ce.arg;Ht(Nt)}return Pt}}throw new Error("illegal catch attempt")},delegateYield:function(Dt,Qt,Nt){return this.delegate={iterator:te(Dt),resultName:Qt,nextLoc:Nt},this.method==="next"&&(this.arg=void 0),ct}},D}function asyncGeneratorStep(D,O,z,F,Y,W,q){try{var X=D[W](q),tt=X.value}catch(nt){z(nt);return}X.done?O(tt):Promise.resolve(tt).then(F,Y)}function _asyncToGenerator(D){return function(){var O=this,z=arguments;return new Promise(function(F,Y){var W=D.apply(O,z);function q(tt){asyncGeneratorStep(W,F,Y,q,X,"next",tt)}function X(tt){asyncGeneratorStep(W,F,Y,q,X,"throw",tt)}q(void 0)})}}function _classCallCheck(D,O){if(!(D instanceof O))throw new TypeError("Cannot call a class as a function")}function _defineProperties(D,O){for(var z=0;z"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct$1(D,O,z){return _isNativeReflectConstruct$1()?_construct$1=Reflect.construct.bind():_construct$1=function(Y,W,q){var X=[null];X.push.apply(X,W);var tt=Function.bind.apply(Y,X),nt=new tt;return q&&_setPrototypeOf$1(nt,q.prototype),nt},_construct$1.apply(null,arguments)}function _isNativeFunction(D){return Function.toString.call(D).indexOf("[native code]")!==-1}function _wrapNativeSuper(D){var O=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(F){if(F===null||!_isNativeFunction(F))return F;if(typeof F!="function")throw new TypeError("Super expression must either be null or a function");if(typeof O<"u"){if(O.has(F))return O.get(F);O.set(F,Y)}function Y(){return _construct$1(F,arguments,_getPrototypeOf(this).constructor)}return Y.prototype=Object.create(F.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$1(Y,F)},_wrapNativeSuper(D)}function _assertThisInitialized(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function _possibleConstructorReturn(D,O){if(O&&(typeof O=="object"||typeof O=="function"))return O;if(O!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(D)}function _createSuper(D){var O=_isNativeReflectConstruct$1();return function(){var F=_getPrototypeOf(D),Y;if(O){var W=_getPrototypeOf(this).constructor;Y=Reflect.construct(F,arguments,W)}else Y=F.apply(this,arguments);return _possibleConstructorReturn(this,Y)}}function _toPrimitive(D,O){if(typeof D!="object"||D===null)return D;var z=D[Symbol.toPrimitive];if(z!==void 0){var F=z.call(D,O||"default");if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(D)}function _toPropertyKey(D){var O=_toPrimitive(D,"string");return typeof O=="symbol"?O:String(O)}var isNode$1=typeof global<"u"&&{}.toString.call(global)==="[object global]";function getMethodName(D,O){return D.indexOf(O.toLowerCase())===0?D:"".concat(O.toLowerCase()).concat(D.substr(0,1).toUpperCase()).concat(D.substr(1))}function isDomElement(D){return!!(D&&D.nodeType===1&&"nodeName"in D&&D.ownerDocument&&D.ownerDocument.defaultView)}function isInteger$1(D){return!isNaN(parseFloat(D))&&isFinite(D)&&Math.floor(D)==D}function isVimeoUrl(D){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(D)}function isVimeoEmbed(D){var O=/^https:\/\/player\.vimeo\.com\/video\/\d+/;return O.test(D)}function getVimeoUrl(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=D.id,z=D.url,F=O||z;if(!F)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(isInteger$1(F))return"https://vimeo.com/".concat(F);if(isVimeoUrl(F))return F.replace("http:","https:");throw O?new TypeError("“".concat(O,"” is not a valid video id.")):new TypeError("“".concat(F,"” is not a vimeo.com url."))}var subscribe=function(O,z,F){var Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",q=typeof z=="string"?[z]:z;return q.forEach(function(X){O[Y](X,F)}),{cancel:function(){return q.forEach(function(tt){return O[W](tt,F)})}}},arrayIndexOfSupport=typeof Array.prototype.indexOf<"u",postMessageSupport=typeof window<"u"&&typeof window.postMessage<"u";if(!isNode$1&&(!arrayIndexOfSupport||!postMessageSupport))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function createCommonjsModule(D,O){return O={exports:{}},D(O,O.exports),O.exports}/*! + * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill + * https://github.com/polygonplanet/weakmap-polyfill + * Copyright (c) 2015-2021 polygonplanet + * @license MIT + */(function(D){if(D.WeakMap)return;var O=Object.prototype.hasOwnProperty,z=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),F=function(W,q,X){z?Object.defineProperty(W,q,{configurable:!0,writable:!0,value:X}):W[q]=X};D.WeakMap=function(){function W(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(F(this,"_id",X("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}F(W.prototype,"delete",function(nt){if(q(this,"delete"),!Y(nt))return!1;var st=nt[this._id];return st&&st[0]===nt?(delete nt[this._id],!0):!1}),F(W.prototype,"get",function(nt){if(q(this,"get"),!!Y(nt)){var st=nt[this._id];if(st&&st[0]===nt)return st[1]}}),F(W.prototype,"has",function(nt){if(q(this,"has"),!Y(nt))return!1;var st=nt[this._id];return!!(st&&st[0]===nt)}),F(W.prototype,"set",function(nt,st){if(q(this,"set"),!Y(nt))throw new TypeError("Invalid value used as weak map key");var ct=nt[this._id];return ct&&ct[0]===nt?(ct[1]=st,this):(F(nt,this._id,[nt,st]),this)});function q(nt,st){if(!Y(nt)||!O.call(nt,"_id"))throw new TypeError(st+" method called on incompatible receiver "+typeof nt)}function X(nt){return nt+"_"+tt()+"."+tt()}function tt(){return Math.random().toString().substring(2)}return F(W,"_polyfill",!0),W}();function Y(W){return Object(W)===W}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:commonjsGlobal);var npo_src=createCommonjsModule(function(D){/*! Native Promise Only + v0.8.1 (c) Kyle Simpson + MIT License: http://getify.mit-license.org +*/(function(z,F,Y){F[z]=F[z]||Y(),D.exports&&(D.exports=F[z])})("Promise",commonjsGlobal,function(){var z,F,Y,W=Object.prototype.toString,q=typeof setImmediate<"u"?function(At){return setImmediate(At)}:setTimeout;try{Object.defineProperty({},"x",{}),z=function(At,Ct,Ft,Lt){return Object.defineProperty(At,Ct,{value:Ft,writable:!0,configurable:Lt!==!1})}}catch{z=function(Ct,Ft,Lt){return Ct[Ft]=Lt,Ct}}Y=function(){var At,Ct,Ft;function Lt(Yt,Ht){this.fn=Yt,this.self=Ht,this.next=void 0}return{add:function(Ht,qt){Ft=new Lt(Ht,qt),Ct?Ct.next=Ft:At=Ft,Ct=Ft,Ft=void 0},drain:function(){var Ht=At;for(At=Ct=F=void 0;Ht;)Ht.fn.call(Ht.self),Ht=Ht.next}}}();function X(Et,At){Y.add(Et,At),F||(F=q(Y.drain))}function tt(Et){var At,Ct=typeof Et;return Et!=null&&(Ct=="object"||Ct=="function")&&(At=Et.then),typeof At=="function"?At:!1}function nt(){for(var Et=0;Et0&&X(nt,Ct))}catch(Ft){lt.call(new bt(Ct),Ft)}}}function lt(Et){var At=this;At.triggered||(At.triggered=!0,At.def&&(At=At.def),At.msg=Et,At.state=2,At.chain.length>0&&X(nt,At))}function ht(Et,At,Ct,Ft){for(var Lt=0;Lt=8&&Y<10&&(F=JSON.stringify(F)),D.element.contentWindow.postMessage(F,D.origin)}}function processData(D,O){O=parseMessageData(O);var z=[],F;if(O.event){if(O.event==="error"){var Y=getCallbacks(D,O.data.method);Y.forEach(function(q){var X=new Error(O.data.message);X.name=O.data.name,q.reject(X),removeCallback(D,O.data.method,q)})}z=getCallbacks(D,"event:".concat(O.event)),F=O.data}else if(O.method){var W=shiftCallbacks(D,O.method);W&&(z.push(W),F=O.value)}z.forEach(function(q){try{if(typeof q=="function"){q.call(D,F);return}q.resolve(F)}catch{}})}var oEmbedParameters=["autopause","autoplay","background","byline","color","colors","controls","dnt","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function getOEmbedParameters(D){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oEmbedParameters.reduce(function(z,F){var Y=D.getAttribute("data-vimeo-".concat(F));return(Y||Y==="")&&(z[F]=Y===""?1:Y),z},O)}function createEmbed(D,O){var z=D.html;if(!O)throw new TypeError("An element must be provided");if(O.getAttribute("data-vimeo-initialized")!==null)return O.querySelector("iframe");var F=document.createElement("div");return F.innerHTML=z,O.appendChild(F.firstChild),O.setAttribute("data-vimeo-initialized","true"),O.querySelector("iframe")}function getOEmbedData(D){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=arguments.length>2?arguments[2]:void 0;return new Promise(function(F,Y){if(!isVimeoUrl(D))throw new TypeError("“".concat(D,"” is not a vimeo.com url."));var W="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(D));for(var q in O)O.hasOwnProperty(q)&&(W+="&".concat(q,"=").concat(encodeURIComponent(O[q])));var X="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;X.open("GET",W,!0),X.onload=function(){if(X.status===404){Y(new Error("“".concat(D,"” was not found.")));return}if(X.status===403){Y(new Error("“".concat(D,"” is not embeddable.")));return}try{var tt=JSON.parse(X.responseText);if(tt.domain_status_code===403){createEmbed(tt,z),Y(new Error("“".concat(D,"” is not embeddable.")));return}F(tt)}catch(nt){Y(nt)}},X.onerror=function(){var tt=X.status?" (".concat(X.status,")"):"";Y(new Error("There was an error fetching the embed code from Vimeo".concat(tt,".")))},X.send()})}function initializeEmbeds(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,O=[].slice.call(D.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),z=function(Y){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(Y))};O.forEach(function(F){try{if(F.getAttribute("data-vimeo-defer")!==null)return;var Y=getOEmbedParameters(F),W=getVimeoUrl(Y);getOEmbedData(W,Y,F).then(function(q){return createEmbed(q,F)}).catch(z)}catch(q){z(q)}})}function resizeEmbeds(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var O=function(F){if(isVimeoUrl(F.origin)&&!(!F.data||F.data.event!=="spacechange")){for(var Y=D.querySelectorAll("iframe"),W=0;W0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var O=function(F){if(isVimeoUrl(F.origin)){var Y=parseMessageData(F.data);if(!(!Y||Y.event!=="ready"))for(var W=D.querySelectorAll("iframe"),q=0;q0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var O=function(Y){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(Y))},z=function(Y){if(isVimeoUrl(Y.origin)){var W=parseMessageData(Y.data);if(!(!W||W.event!=="ready"))for(var q=D.querySelectorAll("iframe"),X=function(){var st=q[tt],ct=st.contentWindow===Y.source;if(isVimeoEmbed(st.src)&&ct){var lt=new Player(st);lt.getVideoId().then(function(ht){var bt=new RegExp("[?&]vimeo_t_".concat(ht,"=([^&#]*)")).exec(window.location.href);if(bt&&bt[1]){var wt=decodeURI(bt[1]);lt.setCurrentTime(wt)}}).catch(O)}},tt=0;tt2&&arguments[2]!==void 0?arguments[2]:{},X=arguments.length>3?arguments[3]:void 0;return _classCallCheck(this,z),W=O.call(this),_defineProperty(_assertThisInitialized(W),"logger",void 0),_defineProperty(_assertThisInitialized(W),"speedAdjustment",0),_defineProperty(_assertThisInitialized(W),"adjustSpeed",function(){var tt=_asyncToGenerator(_regeneratorRuntime().mark(function nt(st,ct){var lt;return _regeneratorRuntime().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(W.speedAdjustment!==ct){bt.next=2;break}return bt.abrupt("return");case 2:return bt.next=4,st.getPlaybackRate();case 4:return bt.t0=bt.sent,bt.t1=W.speedAdjustment,bt.t2=bt.t0-bt.t1,bt.t3=ct,lt=bt.t2+bt.t3,W.log("New playbackRate: ".concat(lt)),bt.next=12,st.setPlaybackRate(lt);case 12:W.speedAdjustment=ct;case 13:case"end":return bt.stop()}},nt)}));return function(nt,st){return tt.apply(this,arguments)}}()),W.logger=X,W.init(Y,F,_objectSpread2(_objectSpread2({},defaultOptions),q)),W}return _createClass(z,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var F=_asyncToGenerator(_regeneratorRuntime().mark(function W(q,X,tt){var nt=this,st,ct,lt;return _regeneratorRuntime().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,this.waitForTOReadyState(q,"open");case 2:if(tt.role!=="viewer"){bt.next=10;break}return bt.next=5,this.updatePlayer(q,X,tt);case 5:st=subscribe(q,"change",function(){return nt.updatePlayer(q,X,tt)}),ct=this.maintainPlaybackPosition(q,X,tt),this.addEventListener("disconnect",function(){ct.cancel(),st.cancel()}),bt.next=14;break;case 10:return bt.next=12,this.updateTimingObject(q,X);case 12:lt=subscribe(X,["seeked","play","pause","ratechange"],function(){return nt.updateTimingObject(q,X)},"on","off"),this.addEventListener("disconnect",function(){return lt.cancel()});case 14:case"end":return bt.stop()}},W,this)}));function Y(W,q,X){return F.apply(this,arguments)}return Y}()},{key:"updateTimingObject",value:function(){var F=_asyncToGenerator(_regeneratorRuntime().mark(function W(q,X){return _regeneratorRuntime().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.t0=q,nt.next=3,X.getCurrentTime();case 3:return nt.t1=nt.sent,nt.next=6,X.getPaused();case 6:if(!nt.sent){nt.next=10;break}nt.t2=0,nt.next=13;break;case 10:return nt.next=12,X.getPlaybackRate();case 12:nt.t2=nt.sent;case 13:nt.t3=nt.t2,nt.t4={position:nt.t1,velocity:nt.t3},nt.t0.update.call(nt.t0,nt.t4);case 16:case"end":return nt.stop()}},W)}));function Y(W,q){return F.apply(this,arguments)}return Y}()},{key:"updatePlayer",value:function(){var F=_asyncToGenerator(_regeneratorRuntime().mark(function W(q,X,tt){var nt,st,ct;return _regeneratorRuntime().wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:if(nt=q.query(),st=nt.position,ct=nt.velocity,typeof st=="number"&&X.setCurrentTime(st),typeof ct!="number"){ht.next=25;break}if(ct!==0){ht.next=11;break}return ht.next=6,X.getPaused();case 6:if(ht.t0=ht.sent,ht.t0!==!1){ht.next=9;break}X.pause();case 9:ht.next=25;break;case 11:if(!(ct>0)){ht.next=25;break}return ht.next=14,X.getPaused();case 14:if(ht.t1=ht.sent,ht.t1!==!0){ht.next=19;break}return ht.next=18,X.play().catch(function(){var bt=_asyncToGenerator(_regeneratorRuntime().mark(function wt(mt){return _regeneratorRuntime().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(!(mt.name==="NotAllowedError"&&tt.autoPlayMuted)){Et.next=5;break}return Et.next=3,X.setMuted(!0);case 3:return Et.next=5,X.play().catch(function(At){return console.error("Couldn't play the video from TimingSrcConnector. Error:",At)});case 5:case"end":return Et.stop()}},wt)}));return function(wt){return bt.apply(this,arguments)}}());case 18:this.updatePlayer(q,X,tt);case 19:return ht.next=21,X.getPlaybackRate();case 21:if(ht.t2=ht.sent,ht.t3=ct,ht.t2===ht.t3){ht.next=25;break}X.setPlaybackRate(ct);case 25:case"end":return ht.stop()}},W,this)}));function Y(W,q,X){return F.apply(this,arguments)}return Y}()},{key:"maintainPlaybackPosition",value:function(Y,W,q){var X=this,tt=q.allowedDrift,nt=q.maxAllowedDrift,st=q.minCheckInterval,ct=q.maxRateAdjustment,lt=q.maxTimeToCatchUp,ht=Math.min(lt,Math.max(st,nt))*1e3,bt=function(){var mt=_asyncToGenerator(_regeneratorRuntime().mark(function _t(){var Et,At,Ct,Ft,Lt;return _regeneratorRuntime().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(Ht.t0=Y.query().velocity===0,Ht.t0){Ht.next=6;break}return Ht.next=4,W.getPaused();case 4:Ht.t1=Ht.sent,Ht.t0=Ht.t1===!0;case 6:if(!Ht.t0){Ht.next=8;break}return Ht.abrupt("return");case 8:return Ht.t2=Y.query().position,Ht.next=11,W.getCurrentTime();case 11:if(Ht.t3=Ht.sent,Et=Ht.t2-Ht.t3,At=Math.abs(Et),X.log("Drift: ".concat(Et)),!(At>nt)){Ht.next=22;break}return Ht.next=18,X.adjustSpeed(W,0);case 18:W.setCurrentTime(Y.query().position),X.log("Resync by currentTime"),Ht.next=29;break;case 22:if(!(At>tt)){Ht.next=29;break}return Ct=At/lt,Ft=ct,Lt=Ct1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,D),window.jQuery&&O instanceof jQuery&&(O.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),O=O[0]),typeof document<"u"&&typeof O=="string"&&(O=document.getElementById(O)),!isDomElement(O))throw new TypeError("You must pass either a valid element or a valid id.");if(O.nodeName!=="IFRAME"){var Y=O.querySelector("iframe");Y&&(O=Y)}if(O.nodeName==="IFRAME"&&!isVimeoUrl(O.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(playerMap.has(O))return playerMap.get(O);this._window=O.ownerDocument.defaultView,this.element=O,this.origin="*";var W=new npo_src(function(X,tt){if(z._onMessage=function(ct){if(!(!isVimeoUrl(ct.origin)||z.element.contentWindow!==ct.source)){z.origin==="*"&&(z.origin=ct.origin);var lt=parseMessageData(ct.data),ht=lt&<.event==="error",bt=ht&<.data&<.data.method==="ready";if(bt){var wt=new Error(lt.data.message);wt.name=lt.data.name,tt(wt);return}var mt=lt&<.event==="ready",_t=lt&<.method==="ping";if(mt||_t){z.element.setAttribute("data-ready","true"),X();return}processData(z,lt)}},z._window.addEventListener("message",z._onMessage),z.element.nodeName!=="IFRAME"){var nt=getOEmbedParameters(O,F),st=getVimeoUrl(nt);getOEmbedData(st,nt,O).then(function(ct){var lt=createEmbed(ct,O);return z.element=lt,z._originalElement=O,swapCallbacks(O,lt),playerMap.set(z.element,z),ct}).catch(tt)}});if(readyMap.set(this,W),playerMap.set(this.element,this),this.element.nodeName==="IFRAME"&&postMessage(this,"ping"),screenfull.isEnabled){var q=function(){return screenfull.exit()};this.fullscreenchangeHandler=function(){screenfull.isFullscreen?storeCallback(z,"event:exitFullscreen",q):removeCallback(z,"event:exitFullscreen",q),z.ready().then(function(){postMessage(z,"fullscreenchange",screenfull.isFullscreen)})},screenfull.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return _createClass(D,[{key:"callMethod",value:function(z){var F=this,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new npo_src(function(W,q){return F.ready().then(function(){storeCallback(F,z,{resolve:W,reject:q}),postMessage(F,z,Y)}).catch(q)})}},{key:"get",value:function(z){var F=this;return new npo_src(function(Y,W){return z=getMethodName(z,"get"),F.ready().then(function(){storeCallback(F,z,{resolve:Y,reject:W}),postMessage(F,z)}).catch(W)})}},{key:"set",value:function(z,F){var Y=this;return new npo_src(function(W,q){if(z=getMethodName(z,"set"),F==null)throw new TypeError("There must be a value to set.");return Y.ready().then(function(){storeCallback(Y,z,{resolve:W,reject:q}),postMessage(Y,z,F)}).catch(q)})}},{key:"on",value:function(z,F){if(!z)throw new TypeError("You must pass an event name.");if(!F)throw new TypeError("You must pass a callback function.");if(typeof F!="function")throw new TypeError("The callback must be a function.");var Y=getCallbacks(this,"event:".concat(z));Y.length===0&&this.callMethod("addEventListener",z).catch(function(){}),storeCallback(this,"event:".concat(z),F)}},{key:"off",value:function(z,F){if(!z)throw new TypeError("You must pass an event name.");if(F&&typeof F!="function")throw new TypeError("The callback must be a function.");var Y=removeCallback(this,"event:".concat(z),F);Y&&this.callMethod("removeEventListener",z).catch(function(W){})}},{key:"loadVideo",value:function(z){return this.callMethod("loadVideo",z)}},{key:"ready",value:function(){var z=readyMap.get(this)||new npo_src(function(F,Y){Y(new Error("Unknown player. Probably unloaded."))});return npo_src.resolve(z)}},{key:"addCuePoint",value:function(z){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:z,data:F})}},{key:"removeCuePoint",value:function(z){return this.callMethod("removeCuePoint",z)}},{key:"enableTextTrack",value:function(z,F){if(!z)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:z,kind:F})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return screenfull.isEnabled?screenfull.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return screenfull.isEnabled?screenfull.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return screenfull.isEnabled?npo_src.resolve(screenfull.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var z=this;return new npo_src(function(F){if(readyMap.delete(z),playerMap.delete(z.element),z._originalElement&&(playerMap.delete(z._originalElement),z._originalElement.removeAttribute("data-vimeo-initialized")),z.element&&z.element.nodeName==="IFRAME"&&z.element.parentNode&&(z.element.parentNode.parentNode&&z._originalElement&&z._originalElement!==z.element.parentNode?z.element.parentNode.parentNode.removeChild(z.element.parentNode):z.element.parentNode.removeChild(z.element)),z.element&&z.element.nodeName==="DIV"&&z.element.parentNode){z.element.removeAttribute("data-vimeo-initialized");var Y=z.element.querySelector("iframe");Y&&Y.parentNode&&(Y.parentNode.parentNode&&z._originalElement&&z._originalElement!==Y.parentNode?Y.parentNode.parentNode.removeChild(Y.parentNode):Y.parentNode.removeChild(Y))}z._window.removeEventListener("message",z._onMessage),screenfull.isEnabled&&screenfull.off("fullscreenchange",z.fullscreenchangeHandler),F()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(z){return this.set("autopause",z)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(z){return this.set("cameraProps",z)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return npo_src.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(z){return this.set("color",z)}},{key:"setColors",value:function(z){if(!Array.isArray(z))return new npo_src(function(W,q){return q(new TypeError("Argument must be an array."))});var F=new npo_src(function(W){return W(null)}),Y=[z[0]?this.set("colorOne",z[0]):F,z[1]?this.set("colorTwo",z[1]):F,z[2]?this.set("colorThree",z[2]):F,z[3]?this.set("colorFour",z[3]):F];return npo_src.all(Y)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(z){return this.set("currentTime",z)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(z){return this.set("loop",z)}},{key:"setMuted",value:function(z){return this.set("muted",z)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(z){return this.set("playbackRate",z)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(z){return this.set("quality",z)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(z){return this.set("volume",z)}},{key:"setTimingSrc",value:function(){var O=_asyncToGenerator(_regeneratorRuntime().mark(function F(Y,W){var q=this,X;return _regeneratorRuntime().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(Y){nt.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return nt.next=4,this.ready();case 4:return X=new TimingSrcConnector(this,Y,W),postMessage(this,"notifyTimingObjectConnect"),X.addEventListener("disconnect",function(){return postMessage(q,"notifyTimingObjectDisconnect")}),nt.abrupt("return",X);case 8:case"end":return nt.stop()}},F,this)}));function z(F,Y){return O.apply(this,arguments)}return z}()}]),D}();isNode$1||(screenfull=initializeScreenfull(),initializeEmbeds(),resizeEmbeds(),initAppendVideoMetadata(),checkUrlTimeParam());var openseadragon={exports:{}},hasRequiredOpenseadragon;function requireOpenseadragon(){return hasRequiredOpenseadragon||(hasRequiredOpenseadragon=1,function(module){//! openseadragon 2.4.2 +//! Built on 2020-03-05 +//! Git commit: v2.4.2-0-c450749 +//! http://openseadragon.github.io +//! License: http://openseadragon.github.io/license/ +function OpenSeadragon(D){return new OpenSeadragon.Viewer(D)}(function(D){D.version={versionStr:"2.4.2",major:parseInt("2",10),minor:parseInt("4",10),revision:parseInt("2",10)};var O={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},z=Object.prototype.toString,F=Object.prototype.hasOwnProperty;D.isFunction=function(Y){return D.type(Y)==="function"},D.isArray=Array.isArray||function(Y){return D.type(Y)==="array"},D.isWindow=function(Y){return Y&&typeof Y=="object"&&"setInterval"in Y},D.type=function(Y){return Y==null?String(Y):O[z.call(Y)]||"object"},D.isPlainObject=function(Y){if(!Y||OpenSeadragon.type(Y)!=="object"||Y.nodeType||D.isWindow(Y)||Y.constructor&&!F.call(Y,"constructor")&&!F.call(Y.constructor.prototype,"isPrototypeOf"))return!1;var W;for(var q in Y)W=q;return W===void 0||F.call(Y,W)},D.isEmptyObject=function(Y){for(var W in Y)return!1;return!0},D.freezeObject=function(Y){return Object.freeze?D.freezeObject=Object.freeze:D.freezeObject=function(W){return W},D.freezeObject(Y)},D.supportsCanvas=function(){var Y=document.createElement("canvas");return!!(D.isFunction(Y.getContext)&&Y.getContext("2d"))}(),D.isCanvasTainted=function(Y){var W=!1;try{Y.getContext("2d").getImageData(0,0,1,1)}catch{W=!0}return W},D.pixelDensityRatio=function(){if(D.supportsCanvas){var Y=document.createElement("canvas").getContext("2d"),W=window.devicePixelRatio||1,q=Y.webkitBackingStorePixelRatio||Y.mozBackingStorePixelRatio||Y.msBackingStorePixelRatio||Y.oBackingStorePixelRatio||Y.backingStorePixelRatio||1;return Math.max(W,1)/q}else return 1}()})(OpenSeadragon),function($){$.extend=function(){var D,O,z,F,Y,W,q=arguments[0]||{},X=arguments.length,tt=!1,nt=1;for(typeof q=="boolean"&&(tt=q,q=arguments[1]||{},nt=2),typeof q!="object"&&!OpenSeadragon.isFunction(q)&&(q={}),X===nt&&(q=this,--nt);nt=z.x&&O.x=z.y},getEvent:function(D){return D?$.getEvent=function(O){return O}:$.getEvent=function(){return window.event},$.getEvent(D)},getMousePosition:function(D){if(typeof D.pageX=="number")$.getMousePosition=function(O){var z=new $.Point;return O=$.getEvent(O),z.x=O.pageX,z.y=O.pageY,z};else if(typeof D.clientX=="number")$.getMousePosition=function(O){var z=new $.Point;return O=$.getEvent(O),z.x=O.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,z.y=O.clientY+document.body.scrollTop+document.documentElement.scrollTop,z};else throw new Error("Unknown event mouse position, no known technique.");return $.getMousePosition(D)},getPageScroll:function(){var D=document.documentElement||{},O=document.body||{};if(typeof window.pageXOffset=="number")$.getPageScroll=function(){return new $.Point(window.pageXOffset,window.pageYOffset)};else if(O.scrollLeft||O.scrollTop)$.getPageScroll=function(){return new $.Point(document.body.scrollLeft,document.body.scrollTop)};else if(D.scrollLeft||D.scrollTop)$.getPageScroll=function(){return new $.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)};else return new $.Point(0,0);return $.getPageScroll()},setPageScroll:function(D){if(typeof window.scrollTo<"u")$.setPageScroll=function(F){window.scrollTo(F.x,F.y)};else{var O=$.getPageScroll();if(O.x===D.x&&O.y===D.y)return;document.body.scrollLeft=D.x,document.body.scrollTop=D.y;var z=$.getPageScroll();if(z.x!==O.x&&z.y!==O.y){$.setPageScroll=function(F){document.body.scrollLeft=F.x,document.body.scrollTop=F.y};return}if(document.documentElement.scrollLeft=D.x,document.documentElement.scrollTop=D.y,z=$.getPageScroll(),z.x!==O.x&&z.y!==O.y){$.setPageScroll=function(F){document.documentElement.scrollLeft=F.x,document.documentElement.scrollTop=F.y};return}$.setPageScroll=function(F){}}return $.setPageScroll(D)},getWindowSize:function(){var D=document.documentElement||{},O=document.body||{};if(typeof window.innerWidth=="number")$.getWindowSize=function(){return new $.Point(window.innerWidth,window.innerHeight)};else if(D.clientWidth||D.clientHeight)$.getWindowSize=function(){return new $.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else if(O.clientWidth||O.clientHeight)$.getWindowSize=function(){return new $.Point(document.body.clientWidth,document.body.clientHeight)};else throw new Error("Unknown window size, no known technique.");return $.getWindowSize()},makeCenteredNode:function(D){D=$.getElement(D);var O=[$.makeNeutralElement("div"),$.makeNeutralElement("div"),$.makeNeutralElement("div")];return $.extend(O[0].style,{display:"table",height:"100%",width:"100%"}),$.extend(O[1].style,{display:"table-row"}),$.extend(O[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"}),O[0].appendChild(O[1]),O[1].appendChild(O[2]),O[2].appendChild(D),O[0]},makeNeutralElement:function(D){var O=document.createElement(D),z=O.style;return z.background="transparent none",z.border="none",z.margin="0px",z.padding="0px",z.position="static",O},now:function(){return Date.now?$.now=Date.now:$.now=function(){return new Date().getTime()},$.now()},makeTransparentImage:function(D){return $.makeTransparentImage=function(O){var z=$.makeNeutralElement("img");return z.src=O,z},$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<7&&($.makeTransparentImage=function(O){var z=$.makeNeutralElement("img"),F=null;return F=$.makeNeutralElement("span"),F.style.display="inline-block",z.onload=function(){F.style.width=F.style.width||z.width+"px",F.style.height=F.style.height||z.height+"px",z.onload=null,z=null},z.src=O,F.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+O+"', sizingMethod='scale')",F}),$.makeTransparentImage(D)},setElementOpacity:function(D,O,z){var F,Y;D=$.getElement(D),z&&!$.Browser.alpha&&(O=Math.round(O)),$.Browser.opacity?D.style.opacity=O<1?O:"":O<1?(F=Math.round(100*O),Y="alpha(opacity="+F+")",D.style.filter=Y):D.style.filter=""},setElementTouchActionNone:function(D){D=$.getElement(D),typeof D.style.touchAction<"u"?D.style.touchAction="none":typeof D.style.msTouchAction<"u"&&(D.style.msTouchAction="none")},addClass:function(D,O){D=$.getElement(D),D.className?(" "+D.className+" ").indexOf(" "+O+" ")===-1&&(D.className+=" "+O):D.className=O},indexOf:function(D,O,z){return Array.prototype.indexOf?this.indexOf=function(F,Y,W){return F.indexOf(Y,W)}:this.indexOf=function(F,Y,W){var q,X=W||0,tt;if(!F)throw new TypeError;if(tt=F.length,tt===0||X>=tt)return-1;for(X<0&&(X=tt-Math.abs(X)),q=X;q=200&&X.status<300||X.status===0&&q!=="http:"&&q!=="https:"?O(X):($.console.log("AJAX request returned %d: %s",X.status,D),$.isFunction(z)&&z(X)))};try{if(X.open("GET",D,!0),W&&(X.responseType=W),Y)for(var tt in Y)Object.prototype.hasOwnProperty.call(Y,tt)&&Y[tt]&&X.setRequestHeader(tt,Y[tt]);F&&(X.withCredentials=!0),X.send(null)}catch(lt){var nt=lt.message,st=$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<10;if(st&&typeof lt.number<"u"&<.number==-2147024891&&(nt+=` +See http://msdn.microsoft.com/en-us/library/ms537505(v=vs.85).aspx#xdomain`),$.console.log("%s while making AJAX request: %s",lt.name,nt),X.onreadystatechange=function(){},window.XDomainRequest){var ct=new window.XDomainRequest;if(ct){ct.onload=function(ht){$.isFunction(O)&&O({responseText:ct.responseText,status:200,statusText:"OK"})},ct.onerror=function(ht){$.isFunction(z)&&z({responseText:ct.responseText,status:444,statusText:"An error happened. Due to an XDomainRequest deficiency we can not extract any information about this error. Upgrade your browser."})};try{ct.open("GET",D),ct.send()}catch{$.isFunction(z)&&z(X,lt)}}}else $.isFunction(z)&&z(X,lt)}return X},jsonp:function(D){var O,z=D.url,F=document.head||document.getElementsByTagName("head")[0]||document.documentElement,Y=D.callbackName||"openseadragon"+$.now(),W=window[Y],q="$1"+Y+"$2",X=D.param||"callback",tt=D.callback;z=z.replace(/(\=)\?(&|$)|\?\?/i,q),z+=(/\?/.test(z)?"&":"?")+X+"="+Y,window[Y]=function(nt){if(W)window[Y]=W;else try{delete window[Y]}catch{}tt&&$.isFunction(tt)&&tt(nt)},O=document.createElement("script"),(D.async!==void 0||D.async!==!1)&&(O.async="async"),D.scriptCharset&&(O.charset=D.scriptCharset),O.src=z,O.onload=O.onreadystatechange=function(nt,st){(st||!O.readyState||/loaded|complete/.test(O.readyState))&&(O.onload=O.onreadystatechange=null,F&&O.parentNode&&F.removeChild(O),O=void 0)},F.insertBefore(O,F.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(D){if(window.DOMParser)$.parseXml=function(O){var z=null,F;return F=new DOMParser,z=F.parseFromString(O,"text/xml"),z};else if(window.ActiveXObject)$.parseXml=function(O){var z=null;return z=new ActiveXObject("Microsoft.XMLDOM"),z.async=!1,z.loadXML(O),z};else throw new Error("Browser doesn't support XML DOM.");return $.parseXml(D)},parseJSON:function(string){return window.JSON&&window.JSON.parse?$.parseJSON=window.JSON.parse:$.parseJSON=function(string){return eval("("+string+")")},$.parseJSON(string)},imageFormatSupported:function(D){return D=D||"",!!FILEFORMATS[D.toLowerCase()]}});var nullfunction=function(D){};$.console=window.console||{log:nullfunction,debug:nullfunction,info:nullfunction,warn:nullfunction,error:nullfunction,assert:nullfunction},$.Browser={vendor:$.BROWSERS.UNKNOWN,version:0,alpha:!0};var FILEFORMATS={bmp:!1,jpeg:!0,jpg:!0,png:!0,tif:!1,wdp:!1},URLPARAMS={};(function(){var D=navigator.appVersion,O=navigator.userAgent,z;switch(navigator.appName){case"Microsoft Internet Explorer":window.attachEvent&&window.ActiveXObject&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(O.substring(O.indexOf("MSIE")+5,O.indexOf(";",O.indexOf("MSIE")))));break;case"Netscape":window.addEventListener&&(O.indexOf("Firefox")>=0?($.Browser.vendor=$.BROWSERS.FIREFOX,$.Browser.version=parseFloat(O.substring(O.indexOf("Firefox")+8))):O.indexOf("Safari")>=0?($.Browser.vendor=O.indexOf("Chrome")>=0?$.BROWSERS.CHROME:$.BROWSERS.SAFARI,$.Browser.version=parseFloat(O.substring(O.substring(0,O.indexOf("Safari")).lastIndexOf("/")+1,O.indexOf("Safari")))):(z=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"),z.exec(O)!==null&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(RegExp.$1))));break;case"Opera":$.Browser.vendor=$.BROWSERS.OPERA,$.Browser.version=parseFloat(D);break}var F=window.location.search.substring(1),Y=F.split("&"),W,q,X;for(X=0;X0){var tt=W.substring(0,q),nt=W.substring(q+1);try{URLPARAMS[tt]=decodeURIComponent(nt)}catch{$.console.error("Ignoring malformed URL parameter: %s=%s",tt,nt)}}$.Browser.alpha=!($.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<9||$.Browser.vendor==$.BROWSERS.CHROME&&$.Browser.version<2),$.Browser.opacity=!($.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<9)})(),function(D){var O=D.requestAnimationFrame||D.mozRequestAnimationFrame||D.webkitRequestAnimationFrame||D.msRequestAnimationFrame,z=D.cancelAnimationFrame||D.mozCancelAnimationFrame||D.webkitCancelAnimationFrame||D.msCancelAnimationFrame;if(O&&z)$.requestAnimationFrame=function(){return O.apply(D,arguments)},$.cancelAnimationFrame=function(){return z.apply(D,arguments)};else{var F=[],Y=[],W=0,q;$.requestAnimationFrame=function(X){return F.push([++W,X]),q||(q=setInterval(function(){if(F.length){var tt=$.now(),nt=Y;for(Y=F,F=nt;Y.length;)Y.shift()[1](tt)}else clearInterval(q),q=void 0},1e3/50)),W},$.cancelAnimationFrame=function(X){var tt,nt;for(tt=0,nt=F.length;tt8||"onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",D.MouseTracker.supportsMouseCapture=function(){var ie=document.createElement("div");return D.isFunction(ie.setCapture)&&D.isFunction(ie.releaseCapture)}(),D.MouseTracker.subscribeEvents=["click","dblclick","keydown","keyup","keypress","focus","blur",D.MouseTracker.wheelEventName],D.MouseTracker.wheelEventName=="DOMMouseScroll"&&D.MouseTracker.subscribeEvents.push("MozMousePixelScroll"),window.PointerEvent&&(window.navigator.pointerEnabled||D.Browser.vendor!==D.BROWSERS.IE)?(D.MouseTracker.havePointerEvents=!0,D.MouseTracker.subscribeEvents.push("pointerover","pointerout","pointerdown","pointerup","pointermove","pointercancel"),D.MouseTracker.unprefixedPointerEvents=!0,navigator.maxTouchPoints?D.MouseTracker.maxTouchPoints=navigator.maxTouchPoints:D.MouseTracker.maxTouchPoints=0,D.MouseTracker.haveMouseEnter=!1):window.MSPointerEvent&&window.navigator.msPointerEnabled?(D.MouseTracker.havePointerEvents=!0,D.MouseTracker.subscribeEvents.push("MSPointerOver","MSPointerOut","MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"),D.MouseTracker.unprefixedPointerEvents=!1,navigator.msMaxTouchPoints?D.MouseTracker.maxTouchPoints=navigator.msMaxTouchPoints:D.MouseTracker.maxTouchPoints=0,D.MouseTracker.haveMouseEnter=!1):(D.MouseTracker.havePointerEvents=!1,D.Browser.vendor===D.BROWSERS.IE&&D.Browser.version<9?(D.MouseTracker.subscribeEvents.push("mouseenter","mouseleave"),D.MouseTracker.haveMouseEnter=!0):(D.MouseTracker.subscribeEvents.push("mouseover","mouseout"),D.MouseTracker.haveMouseEnter=!1),D.MouseTracker.subscribeEvents.push("mousedown","mouseup","mousemove"),"ontouchstart"in window&&D.MouseTracker.subscribeEvents.push("touchstart","touchend","touchmove","touchcancel"),"ongesturestart"in window&&D.MouseTracker.subscribeEvents.push("gesturestart","gesturechange"),D.MouseTracker.mousePointerId="legacy-mouse",D.MouseTracker.maxTouchPoints=10),D.MouseTracker.GesturePointList=function(ie){this._gPoints=[],this.type=ie,this.buttons=0,this.contacts=0,this.clicks=0,this.captureCount=0},D.MouseTracker.GesturePointList.prototype={getLength:function(){return this._gPoints.length},asArray:function(){return this._gPoints},add:function(ie){return this._gPoints.push(ie)},removeById:function(ie){var ne,xe=this._gPoints.length;for(ne=0;ne1&&(this.type==="mouse"||this.type==="pen")&&(this.contacts=1)},removeContact:function(){--this.contacts,this.contacts<0&&(this.contacts=0)}};function F(ie){var ne=z[ie.hash],xe,Ae=ne.activePointersLists.length;for(xe=0;xe0&&(D.removeEvent(D.MouseTracker.captureElement,"mousemove",ne.mousemovecaptured,!0),D.removeEvent(D.MouseTracker.captureElement,"mouseup",ne.mouseupcaptured,!0),D.removeEvent(D.MouseTracker.captureElement,D.MouseTracker.unprefixedPointerEvents?"pointermove":"MSPointerMove",ne.pointermovecaptured,!0),D.removeEvent(D.MouseTracker.captureElement,D.MouseTracker.unprefixedPointerEvents?"pointerup":"MSPointerUp",ne.pointerupcaptured,!0),D.removeEvent(D.MouseTracker.captureElement,"touchmove",ne.touchmovecaptured,!0),D.removeEvent(D.MouseTracker.captureElement,"touchend",ne.touchendcaptured,!0),ne.activePointersLists[xe].captureCount=0);for(xe=0;xe0){for(Ae=0;Ae0&&(Pn(ie,ne,vn,0),xe.captureCount=1,tt(ie,xe.type),zn(ie,ne,vn))}}function Je(ie,ne){var xe,Ae,Ve,vn=ne.changedTouches.length,Ge=[],Dn,en=ie.getActivePointersListByType("touch");for(xe=D.now(),en.getLength()>ne.touches.length-vn&&(D.console.warn("Tracked touch contact count doesn't match event.touches.length. Removing all tracked touch pointers."),Oe(ie,ne,en)),Ae=0;Ae"u")return Oe(ie,ne,vn),!1;for(Fn=0;Fn<$n;Fn++)Kn=xe[Fn],Wn=vn.getById(Kn.id),Wn&&(Wn.captured&&(Wn.captured=!1,mr=!0,ir=!0),Wn.lastPos=Wn.currentPos,Wn.lastTime=Wn.currentTime,Wn.currentPos=Kn.currentPos,Wn.currentTime=Kn.currentTime,Wn.insideElement||We(vn,Wn),Dn=Wn.currentPos,en=Wn.currentTime,ir?(vn.removeContact(),(ie.dragHandler||ie.dragEndHandler||ie.pinchHandler)&&D.MouseTracker.gesturePointVelocityTracker.removePoint(ie,Wn),vn.contacts===0?(ie.releaseHandler&&(Ge=ie.releaseHandler({eventSource:ie,pointerType:Wn.type,position:lt(Dn,ie.element),buttons:vn.buttons,insideElementPressed:Wn.insideElementPressed,insideElementReleased:Wn.insideElement,isTouchEvent:Wn.type==="touch",originalEvent:ne,preventDefaultAction:!1,userData:ie.userData}),Ge===!1&&D.cancelEvent(ne)),ie.dragEndHandler&&!Wn.currentPos.equals(Wn.contactPos)&&(Ge=ie.dragEndHandler({eventSource:ie,pointerType:Wn.type,position:lt(Wn.currentPos,ie.element),speed:Wn.speed,direction:Wn.direction,shift:ne.shiftKey,isTouchEvent:Wn.type==="touch",originalEvent:ne,preventDefaultAction:!1,userData:ie.userData}),Ge===!1&&D.cancelEvent(ne)),(ie.clickHandler||ie.dblClickHandler)&&Wn.insideElement&&(wr=en-Wn.contactTime<=ie.clickTimeThreshold&&Wn.contactPos.distanceTo(Dn)<=ie.clickDistThreshold,ie.clickHandler&&(Ge=ie.clickHandler({eventSource:ie,pointerType:Wn.type,position:lt(Wn.currentPos,ie.element),quick:wr,shift:ne.shiftKey,isTouchEvent:Wn.type==="touch",originalEvent:ne,preventDefaultAction:!1,userData:ie.userData}),Ge===!1&&D.cancelEvent(ne)),ie.dblClickHandler&&wr&&(vn.clicks++,vn.clicks===1?(Ve.lastClickPos=Dn,Ve.dblClickTimeOut=setTimeout(function(){vn.clicks=0},ie.dblClickTimeThreshold)):vn.clicks===2&&(clearTimeout(Ve.dblClickTimeOut),vn.clicks=0,Ve.lastClickPos.distanceTo(Dn)<=ie.dblClickDistThreshold&&(Ge=ie.dblClickHandler({eventSource:ie,pointerType:Wn.type,position:lt(Wn.currentPos,ie.element),shift:ne.shiftKey,isTouchEvent:Wn.type==="touch",originalEvent:ne,preventDefaultAction:!1,userData:ie.userData}),Ge===!1&&D.cancelEvent(ne)),Ve.lastClickPos=null)))):vn.contacts===2&&ie.pinchHandler&&Wn.type==="touch"&&(Ve.pinchGPoints=vn.asArray(),Ve.lastPinchDist=Ve.currentPinchDist=Ve.pinchGPoints[0].currentPos.distanceTo(Ve.pinchGPoints[1].currentPos),Ve.lastPinchCenter=Ve.currentPinchCenter=ht(Ve.pinchGPoints[0].currentPos,Ve.pinchGPoints[1].currentPos))):ie.releaseHandler&&(Ge=ie.releaseHandler({eventSource:ie,pointerType:Wn.type,position:lt(Dn,ie.element),buttons:vn.buttons,insideElementPressed:Wn.insideElementPressed,insideElementReleased:Wn.insideElement,isTouchEvent:Wn.type==="touch",originalEvent:ne,preventDefaultAction:!1,userData:ie.userData}),Ge===!1&&D.cancelEvent(ne)));return mr}function jn(ie,ne,xe){var Ae=z[ie.hash],Ve=ie.getActivePointersListByType(xe[0].type),vn,Ge=xe.length,Dn,en,Fn,$n,Kn;for(typeof ne.buttons<"u"&&(Ve.buttons=ne.buttons),vn=0;vn"u"?!0:z.attachToViewer,this.autoFade=typeof z.autoFade>"u"?!0:z.autoFade,this.element=O,this.anchor=z.anchor,this.container=F,this.anchor==D.ControlAnchor.ABSOLUTE?(this.wrapper=D.makeNeutralElement("div"),this.wrapper.style.position="absolute",this.wrapper.style.top=typeof z.top=="number"?z.top+"px":z.top,this.wrapper.style.left=typeof z.left=="number"?z.left+"px":z.left,this.wrapper.style.height=typeof z.height=="number"?z.height+"px":z.height,this.wrapper.style.width=typeof z.width=="number"?z.width+"px":z.width,this.wrapper.style.margin="0px",this.wrapper.style.padding="0px",this.element.style.position="relative",this.element.style.top="0px",this.element.style.left="0px",this.element.style.height="100%",this.element.style.width="100%"):(this.wrapper=D.makeNeutralElement("div"),this.wrapper.style.display="inline-block",this.anchor==D.ControlAnchor.NONE&&(this.wrapper.style.width=this.wrapper.style.height="100%")),this.wrapper.appendChild(this.element),z.attachToViewer?this.anchor==D.ControlAnchor.TOP_RIGHT||this.anchor==D.ControlAnchor.BOTTOM_RIGHT?this.container.insertBefore(this.wrapper,this.container.firstChild):this.container.appendChild(this.wrapper):Y.appendChild(this.wrapper)},D.Control.prototype={destroy:function(){this.wrapper.removeChild(this.element),this.container.removeChild(this.wrapper)},isVisible:function(){return this.wrapper.style.display!="none"},setVisible:function(O){this.wrapper.style.display=O?this.anchor==D.ControlAnchor.ABSOLUTE?"block":"inline-block":"none"},setOpacity:function(O){this.element[D.SIGNAL]&&D.Browser.vendor==D.BROWSERS.IE?D.setElementOpacity(this.element,O,!0):D.setElementOpacity(this.wrapper,O,!0)}}}(OpenSeadragon),function(D){D.ControlDock=function(z){var F=["topleft","topright","bottomright","bottomleft"],Y,W;for(D.extend(!0,this,{id:"controldock-"+D.now()+"-"+Math.floor(Math.random()*1e6),container:D.makeNeutralElement("div"),controls:[]},z),this.container.onsubmit=function(){return!1},this.element&&(this.element=D.getElement(this.element),this.element.appendChild(this.container),this.element.style.position="relative",this.container.style.width="100%",this.container.style.height="100%"),W=0;W=0)){switch(F.anchor){case D.ControlAnchor.TOP_RIGHT:Y=this.controls.topright,z.style.position="relative",z.style.paddingRight="0px",z.style.paddingTop="0px";break;case D.ControlAnchor.BOTTOM_RIGHT:Y=this.controls.bottomright,z.style.position="relative",z.style.paddingRight="0px",z.style.paddingBottom="0px";break;case D.ControlAnchor.BOTTOM_LEFT:Y=this.controls.bottomleft,z.style.position="relative",z.style.paddingLeft="0px",z.style.paddingBottom="0px";break;case D.ControlAnchor.TOP_LEFT:Y=this.controls.topleft,z.style.position="relative",z.style.paddingLeft="0px",z.style.paddingTop="0px";break;case D.ControlAnchor.ABSOLUTE:Y=this.container,z.style.margin="0px",z.style.padding="0px";break;default:case D.ControlAnchor.NONE:Y=this.container,z.style.margin="0px",z.style.padding="0px";break}this.controls.push(new D.Control(z,F,Y)),z.style.display="inline-block"}},removeControl:function(z){z=D.getElement(z);var F=O(this,z);return F>=0&&(this.controls[F].destroy(),this.controls.splice(F,1)),this},clearControls:function(){for(;this.controls.length>0;)this.controls.pop().destroy();return this},areControlsEnabled:function(){var z;for(z=this.controls.length-1;z>=0;z--)if(this.controls[z].isVisible())return!0;return!1},setControlsEnabled:function(z){var F;for(F=this.controls.length-1;F>=0;F--)this.controls[F].setVisible(z);return this}};function O(z,F){var Y=z.controls,W;for(W=Y.length-1;W>=0;W--)if(Y[W].element==F)return W;return-1}}(OpenSeadragon),function(D){D.Placement=D.freezeObject({CENTER:0,TOP_LEFT:1,TOP:2,TOP_RIGHT:3,RIGHT:4,BOTTOM_RIGHT:5,BOTTOM:6,BOTTOM_LEFT:7,LEFT:8,properties:{0:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1},1:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},2:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},3:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!0,isVerticallyCentered:!1,isBottom:!1},4:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!0,isBottom:!1},5:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!1,isBottom:!0},6:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},7:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},8:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1}}})}(OpenSeadragon),function(D){var O={},z=1;D.Viewer=function(kt){var jt=arguments,$t=this,oe;if(D.isPlainObject(kt)||(kt={id:jt[0],xmlPath:jt.length>1?jt[1]:void 0,prefixUrl:jt.length>2?jt[2]:void 0,controls:jt.length>3?jt[3]:void 0,overlays:jt.length>4?jt[4]:void 0}),kt.config&&(D.extend(!0,kt,kt.config),delete kt.config),D.extend(!0,this,{id:kt.id,hash:kt.hash||z++,initialPage:0,element:null,container:null,canvas:null,overlays:[],overlaysContainer:null,previousBody:[],customControls:[],source:null,drawer:null,world:null,viewport:null,navigator:null,collectionViewport:null,collectionDrawer:null,navImages:null,buttons:null,profiler:null},D.DEFAULT_SETTINGS,kt),typeof this.hash>"u")throw new Error("A hash must be defined, either by specifying options.id or options.hash.");for(typeof O[this.hash]<"u"&&D.console.warn("Hash "+this.hash+" has already been used."),O[this.hash]={fsBoundsDelta:new D.Point(1,1),prevContainerSize:null,animating:!1,forceRedraw:!1,mouseInside:!1,group:null,zooming:!1,zoomFactor:null,lastZoomTime:null,fullPage:!1,onfullscreenchange:null},this._sequenceIndex=0,this._firstOpen=!0,this._updateRequestId=null,this._loadQueue=[],this.currentOverlays=[],this._lastScrollTime=D.now(),D.EventSource.call(this),this.addHandler("open-failed",function(Vt){var Be=D.getString("Errors.OpenFailed",Vt.eventSource,Vt.message);$t._showMessage(Be)}),D.ControlDock.call(this,kt),this.xmlPath&&(this.tileSources=[this.xmlPath]),this.element=this.element||document.getElementById(this.id),this.canvas=D.makeNeutralElement("div"),this.canvas.className="openseadragon-canvas",function(Vt){Vt.width="100%",Vt.height="100%",Vt.overflow="hidden",Vt.position="absolute",Vt.top="0px",Vt.left="0px"}(this.canvas.style),D.setElementTouchActionNone(this.canvas),kt.tabIndex!==""&&(this.canvas.tabIndex=kt.tabIndex===void 0?0:kt.tabIndex),this.container.className="openseadragon-container",function(Vt){Vt.width="100%",Vt.height="100%",Vt.position="relative",Vt.overflow="hidden",Vt.left="0px",Vt.top="0px",Vt.textAlign="left"}(this.container.style),this.container.insertBefore(this.canvas,this.container.firstChild),this.element.appendChild(this.container),this.bodyWidth=document.body.style.width,this.bodyHeight=document.body.style.height,this.bodyOverflow=document.body.style.overflow,this.docOverflow=document.documentElement.style.overflow,this.innerTracker=new D.MouseTracker({element:this.canvas,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,keyDownHandler:D.delegate(this,bt),keyHandler:D.delegate(this,wt),clickHandler:D.delegate(this,mt),dblClickHandler:D.delegate(this,_t),dragHandler:D.delegate(this,Et),dragEndHandler:D.delegate(this,At),enterHandler:D.delegate(this,Ct),exitHandler:D.delegate(this,Ft),pressHandler:D.delegate(this,Lt),releaseHandler:D.delegate(this,Yt),nonPrimaryPressHandler:D.delegate(this,Ht),nonPrimaryReleaseHandler:D.delegate(this,qt),scrollHandler:D.delegate(this,Xt),pinchHandler:D.delegate(this,te)}),this.outerTracker=new D.MouseTracker({element:this.container,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,enterHandler:D.delegate(this,Dt),exitHandler:D.delegate(this,Qt)}),this.toolbar&&(this.toolbar=new D.ControlDock({element:this.toolbar})),this.bindStandardControls(),O[this.hash].prevContainerSize=F(this.container),this.world=new D.World({viewer:this}),this.world.addHandler("add-item",function(Vt){$t.source=$t.world.getItemAt(0).source,O[$t.hash].forceRedraw=!0,$t._updateRequestId||($t._updateRequestId=X($t,Nt))}),this.world.addHandler("remove-item",function(Vt){$t.world.getItemCount()?$t.source=$t.world.getItemAt(0).source:$t.source=null,O[$t.hash].forceRedraw=!0}),this.world.addHandler("metrics-change",function(Vt){$t.viewport&&$t.viewport._setContentBounds($t.world.getHomeBounds(),$t.world.getContentFactor())}),this.world.addHandler("item-index-change",function(Vt){$t.source=$t.world.getItemAt(0).source}),this.viewport=new D.Viewport({containerSize:O[this.hash].prevContainerSize,springStiffness:this.springStiffness,animationTime:this.animationTime,minZoomImageRatio:this.minZoomImageRatio,maxZoomPixelRatio:this.maxZoomPixelRatio,visibilityRatio:this.visibilityRatio,wrapHorizontal:this.wrapHorizontal,wrapVertical:this.wrapVertical,defaultZoomLevel:this.defaultZoomLevel,minZoomLevel:this.minZoomLevel,maxZoomLevel:this.maxZoomLevel,viewer:this,degrees:this.degrees,flipped:this.flipped,navigatorRotate:this.navigatorRotate,homeFillsViewer:this.homeFillsViewer,margins:this.viewportMargins}),this.viewport._setContentBounds(this.world.getHomeBounds(),this.world.getContentFactor()),this.imageLoader=new D.ImageLoader({jobLimit:this.imageLoaderLimit,timeout:kt.timeout}),this.tileCache=new D.TileCache({maxImageCacheCount:this.maxImageCacheCount}),this.drawer=new D.Drawer({viewer:this,viewport:this.viewport,element:this.canvas,debugGridColor:this.debugGridColor}),this.overlaysContainer=D.makeNeutralElement("div"),this.canvas.appendChild(this.overlaysContainer),this.drawer.canRotate()||(this.rotateLeft&&(oe=this.buttons.buttons.indexOf(this.rotateLeft),this.buttons.buttons.splice(oe,1),this.buttons.element.removeChild(this.rotateLeft.element)),this.rotateRight&&(oe=this.buttons.buttons.indexOf(this.rotateRight),this.buttons.buttons.splice(oe,1),this.buttons.element.removeChild(this.rotateRight.element))),this.showNavigator&&(this.navigator=new D.Navigator({id:this.navigatorId,position:this.navigatorPosition,sizeRatio:this.navigatorSizeRatio,maintainSizeRatio:this.navigatorMaintainSizeRatio,top:this.navigatorTop,left:this.navigatorLeft,width:this.navigatorWidth,height:this.navigatorHeight,autoResize:this.navigatorAutoResize,autoFade:this.navigatorAutoFade,prefixUrl:this.prefixUrl,viewer:this,navigatorRotate:this.navigatorRotate,background:this.navigatorBackground,opacity:this.navigatorOpacity,borderColor:this.navigatorBorderColor,displayRegionColor:this.navigatorDisplayRegionColor,crossOriginPolicy:this.crossOriginPolicy})),this.sequenceMode&&this.bindSequenceControls(),this.tileSources&&this.open(this.tileSources),oe=0;oe-1&&kt.index=0&&kt=0)return this;var Be=W(this,Vt);return this.currentOverlays.push(Be),Be.drawHTML(this.overlaysContainer,this.viewport),this.raiseEvent("add-overlay",{element:kt,location:Vt.location,placement:Vt.placement}),this},updateOverlay:function(kt,jt,$t){var oe;return kt=D.getElement(kt),oe=q(this.currentOverlays,kt),oe>=0&&(this.currentOverlays[oe].update(jt,$t),O[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:kt,location:jt,placement:$t})),this},removeOverlay:function(kt){var jt;return kt=D.getElement(kt),jt=q(this.currentOverlays,kt),jt>=0&&(this.currentOverlays[jt].destroy(),this.currentOverlays.splice(jt,1),O[this.hash].forceRedraw=!0,this.raiseEvent("remove-overlay",{element:kt})),this},clearOverlays:function(){for(;this.currentOverlays.length>0;)this.currentOverlays.pop().destroy();return O[this.hash].forceRedraw=!0,this.raiseEvent("clear-overlay",{}),this},getOverlayById:function(kt){var jt;return kt=D.getElement(kt),jt=q(this.currentOverlays,kt),jt>=0?this.currentOverlays[jt]:null},_updateSequenceButtons:function(kt){this.nextButton&&(!this.tileSources||this.tileSources.length-1===kt?this.navPrevNextWrap||this.nextButton.disable():this.nextButton.enable()),this.previousButton&&(kt>0?this.previousButton.enable():this.navPrevNextWrap||this.previousButton.disable())},_showMessage:function(kt){this._hideMessage();var jt=D.makeNeutralElement("div");jt.appendChild(document.createTextNode(kt)),this.messageDiv=D.makeCenteredNode(jt),D.addClass(this.messageDiv,"openseadragon-message"),this.container.appendChild(this.messageDiv)},_hideMessage:function(){var kt=this.messageDiv;kt&&(kt.parentNode.removeChild(kt),delete this.messageDiv)},gestureSettingsByDeviceType:function(kt){switch(kt){case"mouse":return this.gestureSettingsMouse;case"touch":return this.gestureSettingsTouch;case"pen":return this.gestureSettingsPen;default:return this.gestureSettingsUnknown}},_drawOverlays:function(){var kt,jt=this.currentOverlays.length;for(kt=0;kt1&&(this.referenceStrip=new D.ReferenceStrip({id:this.referenceStripElement,position:this.referenceStripPosition,sizeRatio:this.referenceStripSizeRatio,scroll:this.referenceStripScroll,height:this.referenceStripHeight,width:this.referenceStripWidth,tileSources:this.tileSources,prefixUrl:this.prefixUrl,useCanvas:this.useCanvas,viewer:this}),this.referenceStrip.setFocus(this._sequenceIndex))}else D.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')}});function F(kt){return kt=D.getElement(kt),new D.Point(kt.clientWidth===0?1:kt.clientWidth,kt.clientHeight===0?1:kt.clientHeight)}function Y(kt,jt,$t,oe,Vt){var Be=kt;if(D.type(jt)=="string"){if(jt.match(/^\s*<.*>\s*$/))jt=D.parseXml(jt);else if(jt.match(/^\s*[\{\[].*[\}\]]\s*$/))try{var ge=D.parseJSON(jt);jt=ge}catch{}}function Pe(ke,$e){ke.ready?oe(ke):(ke.addHandler("ready",function(){oe(ke)}),ke.addHandler("open-failed",function(Fe){Vt({message:Fe.message,source:$e})}))}setTimeout(function(){if(D.type(jt)=="string")jt=new D.TileSource({url:jt,crossOriginPolicy:$t.crossOriginPolicy!==void 0?$t.crossOriginPolicy:kt.crossOriginPolicy,ajaxWithCredentials:kt.ajaxWithCredentials,ajaxHeaders:kt.ajaxHeaders,useCanvas:kt.useCanvas,success:function(Qe){oe(Qe.tileSource)}}),jt.addHandler("open-failed",function(Qe){Vt(Qe)});else if(D.isPlainObject(jt)||jt.nodeType)if(jt.crossOriginPolicy===void 0&&($t.crossOriginPolicy!==void 0||kt.crossOriginPolicy!==void 0)&&(jt.crossOriginPolicy=$t.crossOriginPolicy!==void 0?$t.crossOriginPolicy:kt.crossOriginPolicy),jt.ajaxWithCredentials===void 0&&(jt.ajaxWithCredentials=kt.ajaxWithCredentials),jt.useCanvas===void 0&&(jt.useCanvas=kt.useCanvas),D.isFunction(jt.getTileUrl)){var ke=new D.TileSource(jt);ke.getTileUrl=jt.getTileUrl,oe(ke)}else{var $e=D.TileSource.determineType(Be,jt);if(!$e){Vt({message:"Unable to load TileSource",source:jt});return}var Fe=$e.prototype.configure.apply(Be,[jt]);Pe(new $e(Fe),jt)}else Pe(jt,jt)})}function W(kt,jt){if(jt instanceof D.Overlay)return jt;var $t=null;if(jt.element)$t=D.getElement(jt.element);else{var oe=jt.id?jt.id:"openseadragon-overlay-"+Math.floor(Math.random()*1e7);$t=D.getElement(jt.id),$t||($t=document.createElement("a"),$t.href="#/overlay/"+oe),$t.id=oe,D.addClass($t,jt.className?jt.className:"openseadragon-overlay")}var Vt=jt.location,Be=jt.width,ge=jt.height;if(!Vt){var Pe=jt.x,ke=jt.y;if(jt.px!==void 0){var $e=kt.viewport.imageToViewportRectangle(new D.Rect(jt.px,jt.py,Be||0,ge||0));Pe=$e.x,ke=$e.y,Be=Be!==void 0?$e.width:void 0,ge=ge!==void 0?$e.height:void 0}Vt=new D.Point(Pe,ke)}var Fe=jt.placement;return Fe&&D.type(Fe)==="string"&&(Fe=D.Placement[jt.placement.toUpperCase()]),new D.Overlay({element:$t,location:Vt,placement:Fe,onDraw:jt.onDraw,checkResize:jt.checkResize,width:Be,height:ge,rotationMode:jt.rotationMode})}function q(kt,jt){var $t;for($t=kt.length-1;$t>=0;$t--)if(kt[$t].element===jt)return $t;return-1}function X(kt,jt){return D.requestAnimationFrame(function(){jt(kt)})}function tt(kt){D.requestAnimationFrame(function(){st(kt)})}function nt(kt){kt.autoHideControls&&(kt.controlsShouldFade=!0,kt.controlsFadeBeginTime=D.now()+kt.controlsFadeDelay,window.setTimeout(function(){tt(kt)},kt.controlsFadeDelay))}function st(kt){var jt,$t,oe,Vt;if(kt.controlsShouldFade){for(jt=D.now(),$t=jt-kt.controlsFadeBeginTime,oe=1-$t/kt.controlsFadeLength,oe=Math.min(1,oe),oe=Math.max(0,oe),Vt=kt.controls.length-1;Vt>=0;Vt--)kt.controls[Vt].autoFade&&kt.controls[Vt].setOpacity(oe);oe>0&&tt(kt)}}function ct(kt){var jt;for(kt.controlsShouldFade=!1,jt=kt.controls.length-1;jt>=0;jt--)kt.controls[jt].setOpacity(1)}function lt(){ct(this)}function ht(){nt(this)}function bt(kt){var jt={originalEvent:kt.originalEvent,preventDefaultAction:kt.preventDefaultAction,preventVerticalPan:kt.preventVerticalPan,preventHorizontalPan:kt.preventHorizontalPan};if(this.raiseEvent("canvas-key",jt),!jt.preventDefaultAction&&!kt.ctrl&&!kt.alt&&!kt.meta)switch(kt.keyCode){case 38:return jt.preventVerticalPan||(kt.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new D.Point(0,-this.pixelsPerArrowPress))),this.viewport.applyConstraints()),!1;case 40:return jt.preventVerticalPan||(kt.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new D.Point(0,this.pixelsPerArrowPress))),this.viewport.applyConstraints()),!1;case 37:return jt.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new D.Point(-this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),!1;case 39:return jt.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new D.Point(this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),!1;default:return!0}else return!0}function wt(kt){var jt={originalEvent:kt.originalEvent,preventDefaultAction:kt.preventDefaultAction,preventVerticalPan:kt.preventVerticalPan,preventHorizontalPan:kt.preventHorizontalPan};if(this.raiseEvent("canvas-key",jt),!jt.preventDefaultAction&&!kt.ctrl&&!kt.alt&&!kt.meta)switch(kt.keyCode){case 43:case 61:return this.viewport.zoomBy(1.1),this.viewport.applyConstraints(),!1;case 45:return this.viewport.zoomBy(.9),this.viewport.applyConstraints(),!1;case 48:return this.viewport.goHome(),this.viewport.applyConstraints(),!1;case 119:case 87:return jt.preventVerticalPan||(kt.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new D.Point(0,-40))),this.viewport.applyConstraints()),!1;case 115:case 83:return jt.preventVerticalPan||(kt.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new D.Point(0,40))),this.viewport.applyConstraints()),!1;case 97:return jt.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new D.Point(-40,0))),this.viewport.applyConstraints()),!1;case 100:return jt.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new D.Point(40,0))),this.viewport.applyConstraints()),!1;case 114:return this.viewport.flipped?this.viewport.setRotation(D.positiveModulo(this.viewport.degrees-this.rotationIncrement,360)):this.viewport.setRotation(D.positiveModulo(this.viewport.degrees+this.rotationIncrement,360)),this.viewport.applyConstraints(),!1;case 82:return this.viewport.flipped?this.viewport.setRotation(D.positiveModulo(this.viewport.degrees+this.rotationIncrement,360)):this.viewport.setRotation(D.positiveModulo(this.viewport.degrees-this.rotationIncrement,360)),this.viewport.applyConstraints(),!1;case 102:return this.viewport.toggleFlip(),!1;default:return!0}else return!0}function mt(kt){var jt,$t=document.activeElement==this.canvas;$t||this.canvas.focus(),this.viewport.flipped&&(kt.position.x=this.viewport.getContainerSize().x-kt.position.x);var oe={tracker:kt.eventSource,position:kt.position,quick:kt.quick,shift:kt.shift,originalEvent:kt.originalEvent,preventDefaultAction:kt.preventDefaultAction};this.raiseEvent("canvas-click",oe),!oe.preventDefaultAction&&this.viewport&&kt.quick&&(jt=this.gestureSettingsByDeviceType(kt.pointerType),jt.clickToZoom&&(this.viewport.zoomBy(kt.shift?1/this.zoomPerClick:this.zoomPerClick,jt.zoomToRefPoint?this.viewport.pointFromPixel(kt.position,!0):null),this.viewport.applyConstraints()))}function _t(kt){var jt,$t={tracker:kt.eventSource,position:kt.position,shift:kt.shift,originalEvent:kt.originalEvent,preventDefaultAction:kt.preventDefaultAction};this.raiseEvent("canvas-double-click",$t),!$t.preventDefaultAction&&this.viewport&&(jt=this.gestureSettingsByDeviceType(kt.pointerType),jt.dblClickToZoom&&(this.viewport.zoomBy(kt.shift?1/this.zoomPerClick:this.zoomPerClick,jt.zoomToRefPoint?this.viewport.pointFromPixel(kt.position,!0):null),this.viewport.applyConstraints()))}function Et(kt){var jt,$t={tracker:kt.eventSource,position:kt.position,delta:kt.delta,speed:kt.speed,direction:kt.direction,shift:kt.shift,originalEvent:kt.originalEvent,preventDefaultAction:kt.preventDefaultAction};if(this.raiseEvent("canvas-drag",$t),!$t.preventDefaultAction&&this.viewport){if(jt=this.gestureSettingsByDeviceType(kt.pointerType),this.panHorizontal||(kt.delta.x=0),this.panVertical||(kt.delta.y=0),this.viewport.flipped&&(kt.delta.x=-kt.delta.x),this.constrainDuringPan){var oe=this.viewport.deltaPointsFromPixels(kt.delta.negate());this.viewport.centerSpringX.target.value+=oe.x,this.viewport.centerSpringY.target.value+=oe.y;var Vt=this.viewport.getBounds(),Be=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=oe.x,this.viewport.centerSpringY.target.value-=oe.y,Vt.x!=Be.x&&(kt.delta.x=0),Vt.y!=Be.y&&(kt.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(kt.delta.negate()),jt.flickEnabled&&!this.constrainDuringPan)}}function At(kt){if(!kt.preventDefaultAction&&this.viewport){var jt=this.gestureSettingsByDeviceType(kt.pointerType);if(jt.flickEnabled&&kt.speed>=jt.flickMinSpeed){var $t=0;this.panHorizontal&&($t=jt.flickMomentum*kt.speed*Math.cos(kt.direction));var oe=0;this.panVertical&&(oe=jt.flickMomentum*kt.speed*Math.sin(kt.direction));var Vt=this.viewport.pixelFromPoint(this.viewport.getCenter(!0)),Be=this.viewport.pointFromPixel(new D.Point(Vt.x-$t,Vt.y-oe));this.viewport.panTo(Be,!1)}this.viewport.applyConstraints()}this.raiseEvent("canvas-drag-end",{tracker:kt.eventSource,position:kt.position,speed:kt.speed,direction:kt.direction,shift:kt.shift,originalEvent:kt.originalEvent})}function Ct(kt){this.raiseEvent("canvas-enter",{tracker:kt.eventSource,pointerType:kt.pointerType,position:kt.position,buttons:kt.buttons,pointers:kt.pointers,insideElementPressed:kt.insideElementPressed,buttonDownAny:kt.buttonDownAny,originalEvent:kt.originalEvent})}function Ft(kt){window.location!=window.parent.location&&D.MouseTracker.resetAllMouseTrackers(),this.raiseEvent("canvas-exit",{tracker:kt.eventSource,pointerType:kt.pointerType,position:kt.position,buttons:kt.buttons,pointers:kt.pointers,insideElementPressed:kt.insideElementPressed,buttonDownAny:kt.buttonDownAny,originalEvent:kt.originalEvent})}function Lt(kt){this.raiseEvent("canvas-press",{tracker:kt.eventSource,pointerType:kt.pointerType,position:kt.position,insideElementPressed:kt.insideElementPressed,insideElementReleased:kt.insideElementReleased,originalEvent:kt.originalEvent})}function Yt(kt){this.raiseEvent("canvas-release",{tracker:kt.eventSource,pointerType:kt.pointerType,position:kt.position,insideElementPressed:kt.insideElementPressed,insideElementReleased:kt.insideElementReleased,originalEvent:kt.originalEvent})}function Ht(kt){this.raiseEvent("canvas-nonprimary-press",{tracker:kt.eventSource,position:kt.position,pointerType:kt.pointerType,button:kt.button,buttons:kt.buttons,originalEvent:kt.originalEvent})}function qt(kt){this.raiseEvent("canvas-nonprimary-release",{tracker:kt.eventSource,position:kt.position,pointerType:kt.pointerType,button:kt.button,buttons:kt.buttons,originalEvent:kt.originalEvent})}function te(kt){var jt,$t,oe,Vt;if(!kt.preventDefaultAction&&this.viewport&&(jt=this.gestureSettingsByDeviceType(kt.pointerType),jt.pinchToZoom&&($t=this.viewport.pointFromPixel(kt.center,!0),oe=this.viewport.pointFromPixel(kt.lastCenter,!0),Vt=oe.minus($t),this.panHorizontal||(Vt.x=0),this.panVertical||(Vt.y=0),this.viewport.zoomBy(kt.distance/kt.lastDistance,$t,!0),jt.zoomToRefPoint&&this.viewport.panBy(Vt,!0),this.viewport.applyConstraints()),jt.pinchRotate)){var Be=Math.atan2(kt.gesturePoints[0].currentPos.y-kt.gesturePoints[1].currentPos.y,kt.gesturePoints[0].currentPos.x-kt.gesturePoints[1].currentPos.x),ge=Math.atan2(kt.gesturePoints[0].lastPos.y-kt.gesturePoints[1].lastPos.y,kt.gesturePoints[0].lastPos.x-kt.gesturePoints[1].lastPos.x);this.viewport.setRotation(this.viewport.getRotation()+(Be-ge)*(180/Math.PI))}return this.raiseEvent("canvas-pinch",{tracker:kt.eventSource,gesturePoints:kt.gesturePoints,lastCenter:kt.lastCenter,center:kt.center,lastDistance:kt.lastDistance,distance:kt.distance,shift:kt.shift,originalEvent:kt.originalEvent}),!1}function Xt(kt){var jt,$t,oe,Vt;if(oe=D.now(),Vt=oe-this._lastScrollTime,Vt>this.minScrollDeltaTime){if(this._lastScrollTime=oe,this.viewport.flipped&&(kt.position.x=this.viewport.getContainerSize().x-kt.position.x),!kt.preventDefaultAction&&this.viewport&&(jt=this.gestureSettingsByDeviceType(kt.pointerType),jt.scrollToZoom&&($t=Math.pow(this.zoomPerScroll,kt.scroll),this.viewport.zoomBy($t,jt.zoomToRefPoint?this.viewport.pointFromPixel(kt.position,!0):null),this.viewport.applyConstraints())),this.raiseEvent("canvas-scroll",{tracker:kt.eventSource,position:kt.position,scroll:kt.scroll,shift:kt.shift,originalEvent:kt.originalEvent}),jt&&jt.scrollToZoom)return!1}else if(jt=this.gestureSettingsByDeviceType(kt.pointerType),jt&&jt.scrollToZoom)return!1}function Dt(kt){O[this.hash].mouseInside=!0,ct(this),this.raiseEvent("container-enter",{tracker:kt.eventSource,position:kt.position,buttons:kt.buttons,pointers:kt.pointers,insideElementPressed:kt.insideElementPressed,buttonDownAny:kt.buttonDownAny,originalEvent:kt.originalEvent})}function Qt(kt){kt.pointers<1&&(O[this.hash].mouseInside=!1,O[this.hash].animating||nt(this)),this.raiseEvent("container-exit",{tracker:kt.eventSource,position:kt.position,buttons:kt.buttons,pointers:kt.pointers,insideElementPressed:kt.insideElementPressed,buttonDownAny:kt.buttonDownAny,originalEvent:kt.originalEvent})}function Nt(kt){ce(kt),kt.isOpen()?kt._updateRequestId=X(kt,Nt):kt._updateRequestId=!1}function ce(kt){if(!kt._opening){if(kt.autoResize){var jt=F(kt.container),$t=O[kt.hash].prevContainerSize;if(!jt.equals($t)){var oe=kt.viewport;if(kt.preserveImageSizeOnResize){var Vt=$t.x/jt.x,Be=oe.getZoom()*Vt,ge=oe.getCenter();oe.resize(jt,!1),oe.zoomTo(Be,null,!0),oe.panTo(ge,!0)}else{var Pe=oe.getBounds();oe.resize(jt,!0),oe.fitBoundsWithConstraints(Pe,!0)}O[kt.hash].prevContainerSize=jt,O[kt.hash].forceRedraw=!0}}var ke=kt.viewport.update(),$e=kt.world.update()||ke;ke&&kt.raiseEvent("viewport-change"),kt.referenceStrip&&($e=kt.referenceStrip.update(kt.viewport)||$e),!O[kt.hash].animating&&$e&&(kt.raiseEvent("animation-start"),ct(kt)),($e||O[kt.hash].forceRedraw||kt.world.needsDraw())&&(Pt(kt),kt._drawOverlays(),kt.navigator&&kt.navigator.update(kt.viewport),O[kt.hash].forceRedraw=!1,$e&&kt.raiseEvent("animation")),O[kt.hash].animating&&!$e&&(kt.raiseEvent("animation-finish"),O[kt.hash].mouseInside||nt(kt)),O[kt.hash].animating=$e}}function Pt(kt){kt.imageLoader.clear(),kt.drawer.clear(),kt.world.draw(),kt.raiseEvent("update-viewport",{})}function de(kt,jt){return kt?kt+jt:jt}function ye(){O[this.hash].lastZoomTime=D.now(),O[this.hash].zoomFactor=this.zoomPerSecond,O[this.hash].zooming=!0,Ce(this)}function pe(){O[this.hash].lastZoomTime=D.now(),O[this.hash].zoomFactor=1/this.zoomPerSecond,O[this.hash].zooming=!0,Ce(this)}function ve(){O[this.hash].zooming=!1}function Ce(kt){D.requestAnimationFrame(D.delegate(kt,De))}function De(){var kt,jt,$t;O[this.hash].zooming&&this.viewport&&(kt=D.now(),jt=kt-O[this.hash].lastZoomTime,$t=Math.pow(O[this.hash].zoomFactor,jt/1e3),this.viewport.zoomBy($t),this.viewport.applyConstraints(),O[this.hash].lastZoomTime=kt,Ce(this))}function Oe(){this.viewport&&(O[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function Je(){this.viewport&&(O[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function qe(){this.buttons.emulateEnter(),this.buttons.emulateExit()}function ze(){this.viewport&&this.viewport.goHome()}function we(){this.isFullPage()&&!D.isFullScreen()?this.setFullPage(!1):this.setFullScreen(!this.isFullPage()),this.buttons&&this.buttons.emulateExit(),this.fullPageButton.element.focus(),this.viewport&&this.viewport.applyConstraints()}function Me(){if(this.viewport){var kt=this.viewport.getRotation();this.viewport.flipped?kt=D.positiveModulo(kt+this.rotationIncrement,360):kt=D.positiveModulo(kt-this.rotationIncrement,360),this.viewport.setRotation(kt)}}function He(){if(this.viewport){var kt=this.viewport.getRotation();this.viewport.flipped?kt=D.positiveModulo(kt-this.rotationIncrement,360):kt=D.positiveModulo(kt+this.rotationIncrement,360),this.viewport.setRotation(kt)}}function Le(){this.viewport.toggleFlip()}function Ye(){var kt=this._sequenceIndex-1;this.navPrevNextWrap&&kt<0&&(kt+=this.tileSources.length),this.goToPage(kt)}function Kt(){var kt=this._sequenceIndex+1;this.navPrevNextWrap&&kt>=this.tileSources.length&&(kt=0),this.goToPage(kt)}}(OpenSeadragon),function(D){D.Navigator=function(X){var tt=X.viewer,nt=this,st,ct;X.id?(this.element=document.getElementById(X.id),X.controlOptions={anchor:D.ControlAnchor.NONE,attachToViewer:!1,autoFade:!1}):(X.id="navigator-"+D.now(),this.element=D.makeNeutralElement("div"),X.controlOptions={anchor:D.ControlAnchor.TOP_RIGHT,attachToViewer:!0,autoFade:X.autoFade},X.position&&(X.position=="BOTTOM_RIGHT"?X.controlOptions.anchor=D.ControlAnchor.BOTTOM_RIGHT:X.position=="BOTTOM_LEFT"?X.controlOptions.anchor=D.ControlAnchor.BOTTOM_LEFT:X.position=="TOP_RIGHT"?X.controlOptions.anchor=D.ControlAnchor.TOP_RIGHT:X.position=="TOP_LEFT"?X.controlOptions.anchor=D.ControlAnchor.TOP_LEFT:X.position=="ABSOLUTE"&&(X.controlOptions.anchor=D.ControlAnchor.ABSOLUTE,X.controlOptions.top=X.top,X.controlOptions.left=X.left,X.controlOptions.height=X.height,X.controlOptions.width=X.width))),this.element.id=X.id,this.element.className+=" navigator",X=D.extend(!0,{sizeRatio:D.DEFAULT_SETTINGS.navigatorSizeRatio},X,{element:this.element,tabIndex:-1,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,autoResize:X.autoResize,minZoomImageRatio:1,background:X.background,opacity:X.opacity,borderColor:X.borderColor,displayRegionColor:X.displayRegionColor}),X.minPixelRatio=this.minPixelRatio=tt.minPixelRatio,D.setElementTouchActionNone(this.element),this.borderWidth=2,this.fudge=new D.Point(1,1),this.totalBorderWidths=new D.Point(this.borderWidth*2,this.borderWidth*2).minus(this.fudge),X.controlOptions.anchor!=D.ControlAnchor.NONE&&function(bt,wt){bt.margin="0px",bt.border=wt+"px solid "+X.borderColor,bt.padding="0px",bt.background=X.background,bt.opacity=X.opacity,bt.overflow="hidden"}(this.element.style,this.borderWidth),this.displayRegion=D.makeNeutralElement("div"),this.displayRegion.id=this.element.id+"-displayregion",this.displayRegion.className="displayregion",function(bt,wt){bt.position="relative",bt.top="0px",bt.left="0px",bt.fontSize="0px",bt.overflow="hidden",bt.border=wt+"px solid "+X.displayRegionColor,bt.margin="0px",bt.padding="0px",bt.background="transparent",bt.float="left",bt.cssFloat="left",bt.styleFloat="left",bt.zIndex=999999999,bt.cursor="default"}(this.displayRegion.style,this.borderWidth),this.displayRegionContainer=D.makeNeutralElement("div"),this.displayRegionContainer.id=this.element.id+"-displayregioncontainer",this.displayRegionContainer.className="displayregioncontainer",this.displayRegionContainer.style.width="100%",this.displayRegionContainer.style.height="100%",tt.addControl(this.element,X.controlOptions),this._resizeWithViewer=X.controlOptions.anchor!=D.ControlAnchor.ABSOLUTE&&X.controlOptions.anchor!=D.ControlAnchor.NONE,X.width&&X.height?(this.setWidth(X.width),this.setHeight(X.height)):this._resizeWithViewer&&(st=D.getElementSize(tt.element),this.element.style.height=Math.round(st.y*X.sizeRatio)+"px",this.element.style.width=Math.round(st.x*X.sizeRatio)+"px",this.oldViewerSize=st,ct=D.getElementSize(this.element),this.elementArea=ct.x*ct.y),this.oldContainerSize=new D.Point(0,0),D.Viewer.apply(this,[X]),this.displayRegionContainer.appendChild(this.displayRegion),this.element.getElementsByTagName("div")[0].appendChild(this.displayRegionContainer);function lt(bt){W(nt.displayRegionContainer,bt),W(nt.displayRegion,-bt),nt.viewport.setRotation(bt)}if(X.navigatorRotate){var ht=X.viewer.viewport?X.viewer.viewport.getRotation():X.viewer.degrees||0;lt(ht),X.viewer.addHandler("rotate",function(bt){lt(bt.degrees)})}this.innerTracker.destroy(),this.innerTracker=new D.MouseTracker({element:this.element,dragHandler:D.delegate(this,z),clickHandler:D.delegate(this,O),releaseHandler:D.delegate(this,F),scrollHandler:D.delegate(this,Y)}),this.addHandler("reset-size",function(){nt.viewport&&nt.viewport.goHome(!0)}),tt.world.addHandler("item-index-change",function(bt){window.setTimeout(function(){var wt=nt.world.getItemAt(bt.previousIndex);nt.world.setItemIndex(wt,bt.newIndex)},1)}),tt.world.addHandler("remove-item",function(bt){var wt=bt.item,mt=nt._getMatchingItem(wt);mt&&nt.world.removeItem(mt)}),this.update(tt.viewport)},D.extend(D.Navigator.prototype,D.EventSource.prototype,D.Viewer.prototype,{updateSize:function(){if(this.viewport){var X=new D.Point(this.container.clientWidth===0?1:this.container.clientWidth,this.container.clientHeight===0?1:this.container.clientHeight);X.equals(this.oldContainerSize)||(this.viewport.resize(X,!0),this.viewport.goHome(!0),this.oldContainerSize=X,this.drawer.clear(),this.world.draw())}},setWidth:function(X){this.width=X,this.element.style.width=typeof X=="number"?X+"px":X,this._resizeWithViewer=!1},setHeight:function(X){this.height=X,this.element.style.height=typeof X=="number"?X+"px":X,this._resizeWithViewer=!1},setFlip:function(X){return this.viewport.setFlip(X),this.setDisplayTransform(this.viewer.viewport.getFlip()?"scale(-1,1)":"scale(1,1)"),this},setDisplayTransform:function(X){q(this.displayRegion,X),q(this.canvas,X),q(this.element,X)},update:function(X){var tt,nt,st,ct,lt,ht;if(tt=D.getElementSize(this.viewer.element),this._resizeWithViewer&&tt.x&&tt.y&&!tt.equals(this.oldViewerSize)&&(this.oldViewerSize=tt,this.maintainSizeRatio||!this.elementArea?(nt=tt.x*this.sizeRatio,st=tt.y*this.sizeRatio):(nt=Math.sqrt(this.elementArea*(tt.x/tt.y)),st=this.elementArea/nt),this.element.style.width=Math.round(nt)+"px",this.element.style.height=Math.round(st)+"px",this.elementArea||(this.elementArea=nt*st),this.updateSize()),X&&this.viewport){ct=X.getBoundsNoRotate(!0),lt=this.viewport.pixelFromPointNoRotate(ct.getTopLeft(),!1),ht=this.viewport.pixelFromPointNoRotate(ct.getBottomRight(),!1).minus(this.totalBorderWidths);var bt=this.displayRegion.style;bt.display=this.world.getItemCount()?"block":"none",bt.top=Math.round(lt.y)+"px",bt.left=Math.round(lt.x)+"px";var wt=Math.abs(lt.x-ht.x),mt=Math.abs(lt.y-ht.y);bt.width=Math.round(Math.max(wt,0))+"px",bt.height=Math.round(Math.max(mt,0))+"px"}},addTiledImage:function(X){var tt=this,nt=X.originalTiledImage;delete X.original;var st=D.extend({},X,{success:function(ct){var lt=ct.item;lt._originalForNavigator=nt,tt._matchBounds(lt,nt,!0);function ht(){tt._matchBounds(lt,nt)}function bt(){tt._matchOpacity(lt,nt)}function wt(){tt._matchCompositeOperation(lt,nt)}nt.addHandler("bounds-change",ht),nt.addHandler("clip-change",ht),nt.addHandler("opacity-change",bt),nt.addHandler("composite-operation-change",wt)}});return D.Viewer.prototype.addTiledImage.apply(this,[st])},_getMatchingItem:function(X){for(var tt=this.world.getItemCount(),nt,st=0;st1||F.y>1));z++);return z-1},getTileAtPoint:function(z,F){var Y=F.x>=0&&F.x<=1&&F.y>=0&&F.y<=1/this.aspectRatio;D.console.assert(Y,"[TileSource.getTileAtPoint] must be called with a valid point.");var W=this.dimensions.x*this.getLevelScale(z),q=F.x*W,X=F.y*W,tt=Math.floor(q/this.getTileWidth(z)),nt=Math.floor(X/this.getTileHeight(z));F.x>=1&&(tt=this.getNumTiles(z).x-1);var st=1e-15;return F.y>=1/this.aspectRatio-st&&(nt=this.getNumTiles(z).y-1),new D.Point(tt,nt)},getTileBounds:function(z,F,Y,W){var q=this.dimensions.times(this.getLevelScale(z)),X=this.getTileWidth(z),tt=this.getTileHeight(z),nt=F===0?0:X*F-this.tileOverlap,st=Y===0?0:tt*Y-this.tileOverlap,ct=X+(F===0?1:2)*this.tileOverlap,lt=tt+(Y===0?1:2)*this.tileOverlap,ht=1/q.x;return ct=Math.min(ct,q.x-nt),lt=Math.min(lt,q.y-st),W?new D.Rect(0,0,ct,lt):new D.Rect(nt*ht,st*ht,ct*ht,lt*ht)},getImageInfo:function(z){var F=this,Y,W,q,X,tt,nt,st;z&&(tt=z.split("/"),nt=tt[tt.length-1],st=nt.lastIndexOf("."),st>-1&&(tt[tt.length-1]=nt.slice(0,st))),W=function(ct){typeof ct=="string"&&(ct=D.parseXml(ct));var lt=D.TileSource.determineType(F,ct,z);if(!lt){F.raiseEvent("open-failed",{message:"Unable to load TileSource",source:z});return}X=lt.prototype.configure.apply(F,[ct,z]),X.ajaxWithCredentials===void 0&&(X.ajaxWithCredentials=F.ajaxWithCredentials),q=new lt(X),F.ready=!0,F.raiseEvent("ready",{tileSource:q})},z.match(/\.js$/)?(Y=z.split("/").pop().replace(".js",""),D.jsonp({url:z,async:!1,callbackName:Y,callback:W})):D.makeAjaxRequest({url:z,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(ct){var lt=O(ct);W(lt)},error:function(ct,lt){var ht;try{ht="HTTP "+ct.status+" attempting to load TileSource"}catch{var bt;typeof lt>"u"||!lt.toString?bt="Unknown error":bt=lt.toString(),ht=bt+" attempting to load TileSource"}F.raiseEvent("open-failed",{message:ht,source:z})}})},supports:function(z,F){return!1},configure:function(z,F){throw new Error("Method not implemented.")},getTileUrl:function(z,F,Y){throw new Error("Method not implemented.")},getTileAjaxHeaders:function(z,F,Y){return{}},tileExists:function(z,F,Y){var W=this.getNumTiles(z);return z>=this.minLevel&&z<=this.maxLevel&&F>=0&&Y>=0&&F=0;lt--)for(ht=this.displayRects[lt],bt=ht.minLevel;bt<=ht.maxLevel;bt++)this._levelRects[bt]||(this._levelRects[bt]=[]),this._levelRects[bt].push(ht);D.TileSource.apply(this,[wt])},D.extend(D.DziTileSource.prototype,D.TileSource.prototype,{supports:function(F,Y){var W;return F.Image?W=F.Image.xmlns:F.documentElement&&(F.documentElement.localName=="Image"||F.documentElement.tagName=="Image")&&(W=F.documentElement.namespaceURI),W=(W||"").toLowerCase(),W.indexOf("schemas.microsoft.com/deepzoom/2008")!==-1||W.indexOf("schemas.microsoft.com/deepzoom/2009")!==-1},configure:function(F,Y){var W;return D.isPlainObject(F)?W=z(this,F):W=O(this,F),Y&&!W.tilesUrl&&(W.tilesUrl=Y.replace(/([^\/]+?)(\.(dzi|xml|js)?(\?[^\/]*)?)?\/?$/,"$1_files/"),Y.search(/\.(dzi|xml|js)\?/)!=-1?W.queryParams=Y.match(/\?.*/):W.queryParams=""),W},getTileUrl:function(F,Y,W){return[this.tilesUrl,F,"/",Y,"_",W,".",this.fileFormat,this.queryParams].join("")},tileExists:function(F,Y,W){var q=this._levelRects[F],X,tt,nt,st,ct,lt,ht;if(this.minLevel&&Fthis.maxLevel)return!1;if(!q||!q.length)return!0;for(ht=q.length-1;ht>=0;ht--)if(X=q[ht],!(FX.maxLevel)&&(tt=this.getLevelScale(F),nt=X.x*tt,st=X.y*tt,ct=nt+X.width*tt,lt=st+X.height*tt,nt=Math.floor(nt/this._tileWidth),st=Math.floor(st/this._tileWidth),ct=Math.ceil(ct/this._tileWidth),lt=Math.ceil(lt/this._tileWidth),nt<=Y&&Y0?W.tileSize=Math.max.apply(null,ct):W.tileSize=nt}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,W.levels=z(this),D.extend(!0,W,{width:W.levels[W.levels.length-1].width,height:W.levels[W.levels.length-1].height,tileSize:Math.max(W.height,W.width),tileOverlap:0,minLevel:0,maxLevel:W.levels.length-1}),this.levels=W.levels):D.console.error("Nothing in the info.json to construct image pyramids from");if(!W.maxLevel&&!this.emulateLegacyImagePyramid)if(!this.scale_factors)W.maxLevel=Number(Math.ceil(Math.log(Math.max(this.width,this.height),2)));else{var ht=Math.max.apply(null,this.scale_factors);W.maxLevel=Math.round(Math.log(ht)*Math.LOG2E)}D.TileSource.apply(this,[W])},D.extend(D.IIIFTileSource.prototype,D.TileSource.prototype,{supports:function(W,q){return W.protocol&&W.protocol=="http://iiif.io/api/image"||W["@context"]&&(W["@context"]=="http://library.stanford.edu/iiif/image-api/1.1/context.json"||W["@context"]=="http://iiif.io/api/image/1/context.json")||W.profile&&W.profile.indexOf("http://library.stanford.edu/iiif/image-api/compliance.html")===0||W.identifier&&W.width&&W.height?!0:!!(W.documentElement&&W.documentElement.tagName=="info"&&W.documentElement.namespaceURI=="http://library.stanford.edu/iiif/image-api/ns/")},configure:function(W,q){if(D.isPlainObject(W)){if(!W["@context"])W["@context"]="http://iiif.io/api/image/1.0/context.json",W["@id"]=q.replace("/info.json",""),W.version=1;else{var tt=W["@context"];if(Array.isArray(tt)){for(var nt=0;nt0&&W>=this.minLevel&&W<=this.maxLevel&&(q=this.levels[W].width/this.levels[this.maxLevel].width),q}return D.TileSource.prototype.getLevelScale.call(this,W)},getNumTiles:function(W){if(this.emulateLegacyImagePyramid){var q=this.getLevelScale(W);return q?new D.Point(1,1):new D.Point(0,0)}return D.TileSource.prototype.getNumTiles.call(this,W)},getTileAtPoint:function(W,q){return this.emulateLegacyImagePyramid?new D.Point(0,0):D.TileSource.prototype.getTileAtPoint.call(this,W,q)},getTileUrl:function(W,q,X){if(this.emulateLegacyImagePyramid){var tt=null;return this.levels.length>0&&W>=this.minLevel&&W<=this.maxLevel&&(tt=this.levels[W].url),tt}var nt="0",st=Math.pow(.5,this.maxLevel-W),ct=Math.ceil(this.width*st),lt=Math.ceil(this.height*st),ht,bt,wt,mt,_t,Et,At,Ct,Ft,Lt,Yt,Ht,qt,te;return ht=this.getTileWidth(W),bt=this.getTileHeight(W),wt=Math.ceil(ht/st),mt=Math.ceil(bt/st),this.version===1?qt="native."+this.tileFormat:qt="default."+this.tileFormat,ct1&&W.profile[1].supports&&(nt=W.profile[1].supports.indexOf("sizeByW")!==-1),W.version===3&&W.extraFeatures&&(nt=W.extraFeatures.indexOf("sizeByWh")!==-1),!tt||nt}function z(W){for(var q=[],X=0;Xtt?nt=X/256:nt=tt/256,q.maxLevel=Math.ceil(Math.log(nt)/Math.log(2))-1,q.tileSize=256,q.width=X,q.height=tt,D.TileSource.apply(this,[q])},D.extend(D.TmsTileSource.prototype,D.TileSource.prototype,{supports:function(O,z){return O.type&&O.type=="tiledmapservice"},configure:function(O,z){return O},getTileUrl:function(O,z,F){var Y=this.getNumTiles(O).y-1;return this.tilesUrl+O+"/"+z+"/"+(Y-F)+".png"}})}(OpenSeadragon),function(D){D.ZoomifyTileSource=function(O){O.tileSize=256;var z={x:O.width,y:O.height};for(O.imageSizes=[{x:O.width,y:O.height}],O.gridSize=[this._getGridSize(O.width,O.height,O.tileSize)];parseInt(z.x,10)>O.tileSize||parseInt(z.y,10)>O.tileSize;)z.x=Math.floor(z.x/2),z.y=Math.floor(z.y/2),O.imageSizes.push({x:z.x,y:z.y}),O.gridSize.push(this._getGridSize(z.x,z.y,O.tileSize));O.imageSizes.reverse(),O.gridSize.reverse(),O.minLevel=0,O.maxLevel=O.gridSize.length-1,OpenSeadragon.TileSource.apply(this,[O])},D.extend(D.ZoomifyTileSource.prototype,D.TileSource.prototype,{_getGridSize:function(O,z,F){return{x:Math.ceil(O/F),y:Math.ceil(z/F)}},_calculateAbsoluteTileNumber:function(O,z,F){for(var Y=0,W={},q=0;q0?(q=W.levels[W.levels.length-1].width,X=W.levels[W.levels.length-1].height):(q=0,X=0,D.console.error("No supported image formats found")),D.extend(!0,W,{width:q,height:X,tileSize:Math.max(X,q),tileOverlap:0,minLevel:0,maxLevel:W.levels.length>0?W.levels.length-1:0}),D.TileSource.apply(this,[W]),this.levels=W.levels},D.extend(D.LegacyTileSource.prototype,D.TileSource.prototype,{supports:function(Y,W){return Y.type&&Y.type=="legacy-image-pyramid"||Y.documentElement&&Y.documentElement.getAttribute("type")=="legacy-image-pyramid"},configure:function(Y,W){var q;return D.isPlainObject(Y)?q=F(this,Y):q=z(this,Y),q},getLevelScale:function(Y){var W=NaN;return this.levels.length>0&&Y>=this.minLevel&&Y<=this.maxLevel&&(W=this.levels[Y].width/this.levels[this.maxLevel].width),W},getNumTiles:function(Y){var W=this.getLevelScale(Y);return W?new D.Point(1,1):new D.Point(0,0)},getTileUrl:function(Y,W,q){var X=null;return this.levels.length>0&&Y>=this.minLevel&&Y<=this.maxLevel&&(X=this.levels[Y].url),X}});function O(Y){var W=[],q,X;for(X=0;X");return W.sort(function(tt,nt){return tt.height-nt.height})}function z(Y,W){if(!W||!W.documentElement)throw new Error(D.getString("Errors.Xml"));var q=W.documentElement,X=q.tagName,tt=null,nt=[],st,ct;if(X=="image")try{for(tt={type:q.getAttribute("type"),levels:[]},nt=q.getElementsByTagName("level"),ct=0;ct=this.minLevel&&O<=this.maxLevel&&(z=this.levels[O].width/this.levels[this.maxLevel].width),z},getNumTiles:function(O){var z=this.getLevelScale(O);return z?new D.Point(1,1):new D.Point(0,0)},getTileUrl:function(O,z,F){var Y=null;return O>=this.minLevel&&O<=this.maxLevel&&(Y=this.levels[O].url),Y},getContext2D:function(O,z,F){var Y=null;return O>=this.minLevel&&O<=this.maxLevel&&(Y=this.levels[O].context2D),Y},_buildLevels:function(){var O=[{url:this._image.src,width:Object.prototype.hasOwnProperty.call(this._image,"naturalWidth")?this._image.naturalWidth:this._image.width,height:Object.prototype.hasOwnProperty.call(this._image,"naturalHeight")?this._image.naturalHeight:this._image.height}];if(!this.buildPyramid||!D.supportsCanvas||!this.useCanvas)return delete this._image,O;var z=Object.prototype.hasOwnProperty.call(this._image,"naturalWidth")?this._image.naturalWidth:this._image.width,F=Object.prototype.hasOwnProperty.call(this._image,"naturalHeight")?this._image.naturalHeight:this._image.height,Y=document.createElement("canvas"),W=Y.getContext("2d");if(Y.width=z,Y.height=F,W.drawImage(this._image,0,0,z,F),O[0].context2D=W,delete this._image,D.isCanvasTainted(Y))return O;for(;z>=2&&F>=2;){z=Math.floor(z/2),F=Math.floor(F/2);var q=document.createElement("canvas"),X=q.getContext("2d");q.width=z,q.height=F,X.drawImage(Y,0,0,z,F),O.splice(0,0,{context2D:X,width:z,height:F}),Y=q,W=X}return O}})}(OpenSeadragon),function(D){D.TileSourceCollection=function(O,z,F,Y){D.console.error("TileSourceCollection is deprecated; use World instead")}}(OpenSeadragon),function(D){D.ButtonState={REST:0,GROUP:1,HOVER:2,DOWN:3},D.Button=function(X){var tt=this;D.EventSource.call(this),D.extend(!0,this,{tooltip:null,srcRest:null,srcGroup:null,srcHover:null,srcDown:null,clickTimeThreshold:D.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:D.DEFAULT_SETTINGS.clickDistThreshold,fadeDelay:0,fadeLength:2e3,onPress:null,onRelease:null,onClick:null,onEnter:null,onExit:null,onFocus:null,onBlur:null},X),this.element=X.element||D.makeNeutralElement("div"),X.element||(this.imgRest=D.makeTransparentImage(this.srcRest),this.imgGroup=D.makeTransparentImage(this.srcGroup),this.imgHover=D.makeTransparentImage(this.srcHover),this.imgDown=D.makeTransparentImage(this.srcDown),this.imgRest.alt=this.imgGroup.alt=this.imgHover.alt=this.imgDown.alt=this.tooltip,this.element.style.position="relative",D.setElementTouchActionNone(this.element),this.imgGroup.style.position=this.imgHover.style.position=this.imgDown.style.position="absolute",this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top="0px",this.imgGroup.style.left=this.imgHover.style.left=this.imgDown.style.left="0px",this.imgHover.style.visibility=this.imgDown.style.visibility="hidden",D.Browser.vendor==D.BROWSERS.FIREFOX&&D.Browser.version<3&&(this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top=""),this.element.appendChild(this.imgRest),this.element.appendChild(this.imgGroup),this.element.appendChild(this.imgHover),this.element.appendChild(this.imgDown)),this.addHandler("press",this.onPress),this.addHandler("release",this.onRelease),this.addHandler("click",this.onClick),this.addHandler("enter",this.onEnter),this.addHandler("exit",this.onExit),this.addHandler("focus",this.onFocus),this.addHandler("blur",this.onBlur),this.currentState=D.ButtonState.GROUP,this.fadeBeginTime=null,this.shouldFade=!1,this.element.style.display="inline-block",this.element.style.position="relative",this.element.title=this.tooltip,this.tracker=new D.MouseTracker({element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(nt){nt.insideElementPressed?(W(tt,D.ButtonState.DOWN),tt.raiseEvent("enter",{originalEvent:nt.originalEvent})):nt.buttonDownAny||W(tt,D.ButtonState.HOVER)},focusHandler:function(nt){this.enterHandler(nt),tt.raiseEvent("focus",{originalEvent:nt.originalEvent})},exitHandler:function(nt){q(tt,D.ButtonState.GROUP),nt.insideElementPressed&&tt.raiseEvent("exit",{originalEvent:nt.originalEvent})},blurHandler:function(nt){this.exitHandler(nt),tt.raiseEvent("blur",{originalEvent:nt.originalEvent})},pressHandler:function(nt){W(tt,D.ButtonState.DOWN),tt.raiseEvent("press",{originalEvent:nt.originalEvent})},releaseHandler:function(nt){nt.insideElementPressed&&nt.insideElementReleased?(q(tt,D.ButtonState.HOVER),tt.raiseEvent("release",{originalEvent:nt.originalEvent})):nt.insideElementPressed?q(tt,D.ButtonState.GROUP):W(tt,D.ButtonState.HOVER)},clickHandler:function(nt){nt.quick&&tt.raiseEvent("click",{originalEvent:nt.originalEvent})},keyHandler:function(nt){return nt.keyCode===13?(tt.raiseEvent("click",{originalEvent:nt.originalEvent}),tt.raiseEvent("release",{originalEvent:nt.originalEvent}),!1):!0}}),q(this,D.ButtonState.REST)},D.extend(D.Button.prototype,D.EventSource.prototype,{notifyGroupEnter:function(){W(this,D.ButtonState.GROUP)},notifyGroupExit:function(){q(this,D.ButtonState.REST)},disable:function(){this.notifyGroupExit(),this.element.disabled=!0,D.setElementOpacity(this.element,.2,!0)},enable:function(){this.element.disabled=!1,D.setElementOpacity(this.element,1,!0),this.notifyGroupEnter()}});function O(X){D.requestAnimationFrame(function(){z(X)})}function z(X){var tt,nt,st;X.shouldFade&&(tt=D.now(),nt=tt-X.fadeBeginTime,st=1-nt/X.fadeLength,st=Math.min(1,st),st=Math.max(0,st),X.imgGroup&&D.setElementOpacity(X.imgGroup,st,!0),st>0&&O(X))}function F(X){X.shouldFade=!0,X.fadeBeginTime=D.now()+X.fadeDelay,window.setTimeout(function(){O(X)},X.fadeDelay)}function Y(X){X.shouldFade=!1,X.imgGroup&&D.setElementOpacity(X.imgGroup,1,!0)}function W(X,tt){X.element.disabled||(tt>=D.ButtonState.GROUP&&X.currentState==D.ButtonState.REST&&(Y(X),X.currentState=D.ButtonState.GROUP),tt>=D.ButtonState.HOVER&&X.currentState==D.ButtonState.GROUP&&(X.imgHover&&(X.imgHover.style.visibility=""),X.currentState=D.ButtonState.HOVER),tt>=D.ButtonState.DOWN&&X.currentState==D.ButtonState.HOVER&&(X.imgDown&&(X.imgDown.style.visibility=""),X.currentState=D.ButtonState.DOWN))}function q(X,tt){X.element.disabled||(tt<=D.ButtonState.HOVER&&X.currentState==D.ButtonState.DOWN&&(X.imgDown&&(X.imgDown.style.visibility="hidden"),X.currentState=D.ButtonState.HOVER),tt<=D.ButtonState.GROUP&&X.currentState==D.ButtonState.HOVER&&(X.imgHover&&(X.imgHover.style.visibility="hidden"),X.currentState=D.ButtonState.GROUP),tt<=D.ButtonState.REST&&X.currentState==D.ButtonState.GROUP&&(F(X),X.currentState=D.ButtonState.REST))}}(OpenSeadragon),function(D){D.ButtonGroup=function(O){D.extend(!0,this,{buttons:[],clickTimeThreshold:D.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:D.DEFAULT_SETTINGS.clickDistThreshold,labelText:""},O);var z=this.buttons.concat([]),F=this,Y;if(this.element=O.element||D.makeNeutralElement("div"),!O.group)for(this.element.style.display="inline-block",Y=0;Y=270?(q=this.getTopRight(),this.x=q.x,this.y=q.y,X=this.height,this.height=this.width,this.width=X,this.degrees-=270):this.degrees>=180?(q=this.getBottomRight(),this.x=q.x,this.y=q.y,this.degrees-=180):this.degrees>=90&&(q=this.getBottomLeft(),this.x=q.x,this.y=q.y,X=this.height,this.height=this.width,this.width=X,this.degrees-=90)},D.Rect.fromSummits=function(O,z,F){var Y=O.distanceTo(z),W=O.distanceTo(F),q=z.minus(O),X=Math.atan(q.y/q.x);return q.x<0?X+=Math.PI:q.y<0&&(X+=2*Math.PI),new D.Rect(O.x,O.y,Y,W,X/Math.PI*180)},D.Rect.prototype={clone:function(){return new D.Rect(this.x,this.y,this.width,this.height,this.degrees)},getAspectRatio:function(){return this.width/this.height},getTopLeft:function(){return new D.Point(this.x,this.y)},getBottomRight:function(){return new D.Point(this.x+this.width,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getTopRight:function(){return new D.Point(this.x+this.width,this.y).rotate(this.degrees,this.getTopLeft())},getBottomLeft:function(){return new D.Point(this.x,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getCenter:function(){return new D.Point(this.x+this.width/2,this.y+this.height/2).rotate(this.degrees,this.getTopLeft())},getSize:function(){return new D.Point(this.width,this.height)},equals:function(O){return O instanceof D.Rect&&this.x===O.x&&this.y===O.y&&this.width===O.width&&this.height===O.height&&this.degrees===O.degrees},times:function(O){return new D.Rect(this.x*O,this.y*O,this.width*O,this.height*O,this.degrees)},translate:function(O){return new D.Rect(this.x+O.x,this.y+O.y,this.width,this.height,this.degrees)},union:function(O){var z=this.getBoundingBox(),F=O.getBoundingBox(),Y=Math.min(z.x,F.x),W=Math.min(z.y,F.y),q=Math.max(z.x+z.width,F.x+F.width),X=Math.max(z.y+z.height,F.y+F.height);return new D.Rect(Y,W,q-Y,X-W)},intersection:function(O){var z=1e-10,F=[],Y=this.getTopLeft();O.containsPoint(Y,z)&&F.push(Y);var W=this.getTopRight();O.containsPoint(W,z)&&F.push(W);var q=this.getBottomLeft();O.containsPoint(q,z)&&F.push(q);var X=this.getBottomRight();O.containsPoint(X,z)&&F.push(X);var tt=O.getTopLeft();this.containsPoint(tt,z)&&F.push(tt);var nt=O.getTopRight();this.containsPoint(nt,z)&&F.push(nt);var st=O.getBottomLeft();this.containsPoint(st,z)&&F.push(st);var ct=O.getBottomRight();this.containsPoint(ct,z)&&F.push(ct);for(var lt=this._getSegments(),ht=O._getSegments(),bt=0;btFt&&(Ft=qt.x),qt.yYt&&(Yt=qt.y)}return new D.Rect(Ct,Lt,Ft-Ct,Yt-Lt)},_getSegments:function(){var O=this.getTopLeft(),z=this.getTopRight(),F=this.getBottomLeft(),Y=this.getBottomRight();return[[O,z],[z,Y],[Y,F],[F,O]]},rotate:function(O,z){if(O=D.positiveModulo(O,360),O===0)return this.clone();z=z||this.getCenter();var F=this.getTopLeft().rotate(O,z),Y=this.getTopRight().rotate(O,z),W=Y.minus(F);W=W.apply(function(X){var tt=1e-15;return Math.abs(X)=-z&&(O.x-Y.x)*q.x+(O.y-Y.y)*q.y<=z&&(O.x-F.x)*X.x+(O.y-F.y)*X.y>=-z&&(O.x-W.x)*X.x+(O.y-W.y)*X.y<=z},toString:function(){return"["+Math.round(this.x*100)/100+", "+Math.round(this.y*100)/100+", "+Math.round(this.width*100)/100+"x"+Math.round(this.height*100)/100+", "+Math.round(this.degrees*100)/100+"deg]"}}}(OpenSeadragon),function(D){var O={};D.ReferenceStrip=function(nt){var st=this,ct=nt.viewer,lt=D.getElementSize(ct.element),ht,bt,wt;for(nt.id||(nt.id="referencestrip-"+D.now(),this.element=D.makeNeutralElement("div"),this.element.id=nt.id,this.element.className="referencestrip"),nt=D.extend(!0,{sizeRatio:D.DEFAULT_SETTINGS.referenceStripSizeRatio,position:D.DEFAULT_SETTINGS.referenceStripPosition,scroll:D.DEFAULT_SETTINGS.referenceStripScroll,clickTimeThreshold:D.DEFAULT_SETTINGS.clickTimeThreshold},nt,{element:this.element,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1}),D.extend(this,nt),O[this.id]={animating:!1},this.minPixelRatio=this.viewer.minPixelRatio,bt=this.element.style,bt.marginTop="0px",bt.marginRight="0px",bt.marginBottom="0px",bt.marginLeft="0px",bt.left="0px",bt.bottom="0px",bt.border="0px",bt.background="#000",bt.position="relative",D.setElementTouchActionNone(this.element),D.setElementOpacity(this.element,.8),this.viewer=ct,this.innerTracker=new D.MouseTracker({element:this.element,dragHandler:D.delegate(this,z),scrollHandler:D.delegate(this,F),enterHandler:D.delegate(this,W),exitHandler:D.delegate(this,q),keyDownHandler:D.delegate(this,X),keyHandler:D.delegate(this,tt)}),nt.width&&nt.height?(this.element.style.width=nt.width+"px",this.element.style.height=nt.height+"px",ct.addControl(this.element,{anchor:D.ControlAnchor.BOTTOM_LEFT})):nt.scroll=="horizontal"?(this.element.style.width=lt.x*nt.sizeRatio*ct.tileSources.length+12*ct.tileSources.length+"px",this.element.style.height=lt.y*nt.sizeRatio+"px",ct.addControl(this.element,{anchor:D.ControlAnchor.BOTTOM_LEFT})):(this.element.style.height=lt.y*nt.sizeRatio*ct.tileSources.length+12*ct.tileSources.length+"px",this.element.style.width=lt.x*nt.sizeRatio+"px",ct.addControl(this.element,{anchor:D.ControlAnchor.TOP_LEFT})),this.panelWidth=lt.x*this.sizeRatio+8,this.panelHeight=lt.y*this.sizeRatio+8,this.panels=[],this.miniViewers={},wt=0;wtbt+ct.x-this.panelWidth?(mt=Math.min(mt,lt-ct.x),this.element.style.marginLeft=-mt+"px",Y(this,ct.x,-mt)):mtwt+ct.y-this.panelHeight?(mt=Math.min(mt,ht-ct.y),this.element.style.marginTop=-mt+"px",Y(this,ct.y,-mt)):mt0?st>-(lt-bt.x)&&(this.element.style.marginLeft=st+nt.delta.x*2+"px",Y(this,bt.x,st+nt.delta.x*2)):-nt.delta.x<0&&st<0&&(this.element.style.marginLeft=st+nt.delta.x*2+"px",Y(this,bt.x,st+nt.delta.x*2)):-nt.delta.y>0?ct>-(ht-bt.y)&&(this.element.style.marginTop=ct+nt.delta.y*2+"px",Y(this,bt.y,ct+nt.delta.y*2)):-nt.delta.y<0&&ct<0&&(this.element.style.marginTop=ct+nt.delta.y*2+"px",Y(this,bt.y,ct+nt.delta.y*2))),!1}function F(nt){var st=Number(this.element.style.marginLeft.replace("px","")),ct=Number(this.element.style.marginTop.replace("px","")),lt=Number(this.element.style.width.replace("px","")),ht=Number(this.element.style.height.replace("px","")),bt=D.getElementSize(this.viewer.canvas);return this.element&&(this.scroll=="horizontal"?nt.scroll>0?st>-(lt-bt.x)&&(this.element.style.marginLeft=st-nt.scroll*60+"px",Y(this,bt.x,st-nt.scroll*60)):nt.scroll<0&&st<0&&(this.element.style.marginLeft=st-nt.scroll*60+"px",Y(this,bt.x,st-nt.scroll*60)):nt.scroll<0?ct>bt.y-ht&&(this.element.style.marginTop=ct+nt.scroll*60+"px",Y(this,bt.y,ct+nt.scroll*60)):nt.scroll>0&&ct<0&&(this.element.style.marginTop=ct+nt.scroll*60+"px",Y(this,bt.y,ct+nt.scroll*60))),!1}function Y(nt,st,ct){var lt,ht,bt,wt,mt,_t,Et;for(nt.scroll=="horizontal"?lt=nt.panelWidth:lt=nt.panelHeight,ht=Math.ceil(st/lt)+5,bt=Math.ceil((Math.abs(ct)+st)/lt)+1,ht=bt-ht,ht=ht<0?0:ht,_t=ht;_t1?F[1].springStiffness:5,animationTime:F.length>1?F[1].animationTime:1.5}),D.console.assert(typeof z.springStiffness=="number"&&z.springStiffness!==0,"[OpenSeadragon.Spring] options.springStiffness must be a non-zero number"),D.console.assert(typeof z.animationTime=="number"&&z.animationTime>=0,"[OpenSeadragon.Spring] options.animationTime must be a number greater than or equal to 0"),z.exponential&&(this._exponential=!0,delete z.exponential),D.extend(!0,this,z),this.current={value:typeof this.initial=="number"?this.initial:this._exponential?0:1,time:D.now()},D.console.assert(!this._exponential||this.current.value!==0,"[OpenSeadragon.Spring] value must be non-zero for exponential springs"),this.start={value:this.current.value,time:this.current.time},this.target={value:this.current.value,time:this.current.time},this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},D.Spring.prototype={resetTo:function(z){D.console.assert(!this._exponential||z!==0,"[OpenSeadragon.Spring.resetTo] target must be non-zero for exponential springs"),this.start.value=this.target.value=this.current.value=z,this.start.time=this.target.time=this.current.time=D.now(),this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},springTo:function(z){D.console.assert(!this._exponential||z!==0,"[OpenSeadragon.Spring.springTo] target must be non-zero for exponential springs"),this.start.value=this.current.value,this.start.time=this.current.time,this.target.value=z,this.target.time=this.start.time+1e3*this.animationTime,this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},shiftBy:function(z){this.start.value+=z,this.target.value+=z,this._exponential&&(D.console.assert(this.target.value!==0&&this.start.value!==0,"[OpenSeadragon.Spring.shiftBy] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},setExponential:function(z){this._exponential=z,this._exponential&&(D.console.assert(this.current.value!==0&&this.target.value!==0&&this.start.value!==0,"[OpenSeadragon.Spring.setExponential] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},update:function(){this.current.time=D.now();var z,F;this._exponential?(z=this.start._logValue,F=this.target._logValue):(z=this.start.value,F=this.target.value);var Y=this.current.time>=this.target.time?F:z+(F-z)*O(this.springStiffness,(this.current.time-this.start.time)/(this.target.time-this.start.time)),W=this.current.value;return this._exponential?this.current.value=Math.exp(Y):this.current.value=Y,W!=this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}};function O(z,F){return(1-Math.exp(z*-F))/(1-Math.exp(-z))}}(OpenSeadragon),function(D){function O(F){D.extend(!0,this,{timeout:D.DEFAULT_SETTINGS.timeout,jobId:null},F),this.image=null}O.prototype={errorMsg:null,start:function(){var F=this,Y=this.abort;this.image=new Image,this.image.onload=function(){F.finish(!0)},this.image.onabort=this.image.onerror=function(){F.errorMsg="Image load aborted",F.finish(!1)},this.jobId=window.setTimeout(function(){F.errorMsg="Image load exceeded timeout ("+F.timeout+" ms)",F.finish(!1)},this.timeout),this.loadWithAjax?(this.request=D.makeAjaxRequest({url:this.src,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,responseType:"arraybuffer",success:function(W){var q;try{q=new window.Blob([W.response])}catch(st){var X=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(st.name==="TypeError"&&X){var tt=new X;tt.append(W.response),q=tt.getBlob()}}q.size===0&&(F.errorMsg="Empty image response.",F.finish(!1));var nt=(window.URL||window.webkitURL).createObjectURL(q);F.image.src=nt},error:function(W){F.errorMsg="Image load aborted - XHR error",F.finish(!1)}}),this.abort=function(){F.request.abort(),typeof Y=="function"&&Y()}):(this.crossOriginPolicy!==!1&&(this.image.crossOrigin=this.crossOriginPolicy),this.image.src=this.src)},finish:function(F){this.image.onload=this.image.onerror=this.image.onabort=null,F||(this.image=null),this.jobId&&window.clearTimeout(this.jobId),this.callback(this)}},D.ImageLoader=function(F){D.extend(!0,this,{jobLimit:D.DEFAULT_SETTINGS.imageLoaderLimit,timeout:D.DEFAULT_SETTINGS.timeout,jobQueue:[],jobsInProgress:0},F)},D.ImageLoader.prototype={addJob:function(F){var Y=this,W=function(tt){z(Y,tt,F.callback)},q={src:F.src,loadWithAjax:F.loadWithAjax,ajaxHeaders:F.loadWithAjax?F.ajaxHeaders:null,crossOriginPolicy:F.crossOriginPolicy,ajaxWithCredentials:F.ajaxWithCredentials,callback:W,abort:F.abort,timeout:this.timeout},X=new O(q);!this.jobLimit||this.jobsInProgress0&&(q=F.jobQueue.shift(),q.start(),F.jobsInProgress++),W(Y.image,Y.errorMsg,Y.request)}}(OpenSeadragon),function(D){D.Tile=function(O,z,F,Y,W,q,X,tt,nt,st){this.level=O,this.x=z,this.y=F,this.bounds=Y,this.sourceBounds=st,this.exists=W,this.url=q,this.context2D=X,this.loadWithAjax=tt,this.ajaxHeaders=nt,this.ajaxHeaders?this.cacheKey=this.url+"+"+JSON.stringify(this.ajaxHeaders):this.cacheKey=this.url,this.loaded=!1,this.loading=!1,this.element=null,this.imgElement=null,this.image=null,this.style=null,this.position=null,this.size=null,this.blendStart=null,this.opacity=null,this.squaredDistance=null,this.visibility=null,this.beingDrawn=!1,this.lastTouchTime=0,this.isRightMost=!1,this.isBottomMost=!1},D.Tile.prototype={toString:function(){return this.level+"/"+this.x+"_"+this.y},_hasTransparencyChannel:function(){return!!this.context2D||this.url.match(".png")},drawHTML:function(O){if(!this.cacheImageRecord){D.console.warn("[Tile.drawHTML] attempting to draw tile %s when it's not cached",this.toString());return}if(!this.loaded){D.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString());return}this.element||(this.element=D.makeNeutralElement("div"),this.imgElement=this.cacheImageRecord.getImage().cloneNode(),this.imgElement.style.msInterpolationMode="nearest-neighbor",this.imgElement.style.width="100%",this.imgElement.style.height="100%",this.style=this.element.style,this.style.position="absolute"),this.element.parentNode!=O&&O.appendChild(this.element),this.imgElement.parentNode!=this.element&&this.element.appendChild(this.imgElement),this.style.top=this.position.y+"px",this.style.left=this.position.x+"px",this.style.height=this.size.y+"px",this.style.width=this.size.x+"px",D.setElementOpacity(this.element,this.opacity)},drawCanvas:function(O,z,F,Y){var W=this.position.times(D.pixelDensityRatio),q=this.size.times(D.pixelDensityRatio),X;if(!this.context2D&&!this.cacheImageRecord){D.console.warn("[Tile.drawCanvas] attempting to draw tile %s when it's not cached",this.toString());return}if(X=this.context2D||this.cacheImageRecord.getRenderedContext(),!this.loaded||!X){D.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString());return}O.save(),O.globalAlpha=this.opacity,typeof F=="number"&&F!==1&&(W=W.times(F),q=q.times(F)),Y instanceof D.Point&&(W=W.plus(Y)),O.globalAlpha===1&&this._hasTransparencyChannel()&&O.clearRect(W.x,W.y,q.x,q.y),z({context:O,tile:this,rendered:X});var tt,nt;this.sourceBounds?(tt=Math.min(this.sourceBounds.width,X.canvas.width),nt=Math.min(this.sourceBounds.height,X.canvas.height)):(tt=X.canvas.width,nt=X.canvas.height),O.drawImage(X.canvas,0,0,tt,nt,W.x,W.y,q.x,q.y),O.restore()},getScaleForEdgeSmoothing:function(){var O;if(this.cacheImageRecord)O=this.cacheImageRecord.getRenderedContext();else if(this.context2D)O=this.context2D;else return D.console.warn("[Tile.drawCanvas] attempting to get tile scale %s when tile's not cached",this.toString()),1;return O.canvas.width/(this.size.x*D.pixelDensityRatio)},getTranslationForEdgeSmoothing:function(O,z,F){var Y=Math.max(1,Math.ceil((F.x-z.x)/2)),W=Math.max(1,Math.ceil((F.y-z.y)/2));return new D.Point(Y,W).minus(this.position.times(D.pixelDensityRatio).times(O||1).apply(function(q){return q%1}))},unload:function(){this.imgElement&&this.imgElement.parentNode&&this.imgElement.parentNode.removeChild(this.imgElement),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.imgElement=null,this.loaded=!1,this.loading=!1}}}(OpenSeadragon),function(D){D.OverlayPlacement=D.Placement,D.OverlayRotationMode=D.freezeObject({NO_ROTATION:1,EXACT:2,BOUNDING_BOX:3}),D.Overlay=function(O,z,F){var Y;D.isPlainObject(O)?Y=O:Y={element:O,location:z,placement:F},this.element=Y.element,this.style=Y.element.style,this._init(Y)},D.Overlay.prototype={_init:function(O){this.location=O.location,this.placement=O.placement===void 0?D.Placement.TOP_LEFT:O.placement,this.onDraw=O.onDraw,this.checkResize=O.checkResize===void 0?!0:O.checkResize,this.width=O.width===void 0?null:O.width,this.height=O.height===void 0?null:O.height,this.rotationMode=O.rotationMode||D.OverlayRotationMode.EXACT,this.location instanceof D.Rect&&(this.width=this.location.width,this.height=this.location.height,this.location=this.location.getTopLeft(),this.placement=D.Placement.TOP_LEFT),this.scales=this.width!==null&&this.height!==null,this.bounds=new D.Rect(this.location.x,this.location.y,this.width,this.height),this.position=this.location},adjust:function(O,z){var F=D.Placement.properties[this.placement];F&&(F.isHorizontallyCentered?O.x-=z.x/2:F.isRight&&(O.x-=z.x),F.isVerticallyCentered?O.y-=z.y/2:F.isBottom&&(O.y-=z.y))},destroy:function(){var O=this.element,z=this.style;O.parentNode&&(O.parentNode.removeChild(O),O.prevElementParent&&(z.display="none",document.body.appendChild(O))),this.onDraw=null,z.top="",z.left="",z.position="",this.width!==null&&(z.width=""),this.height!==null&&(z.height="");var F=D.getCssPropertyWithVendorPrefix("transformOrigin"),Y=D.getCssPropertyWithVendorPrefix("transform");F&&Y&&(z[F]="",z[Y]="")},drawHTML:function(O,z){var F=this.element;F.parentNode!==O&&(F.prevElementParent=F.parentNode,F.prevNextSibling=F.nextSibling,O.appendChild(F),this.style.position="absolute",this.size=D.getElementSize(F));var Y=this._getOverlayPositionAndSize(z),W=Y.position,q=this.size=Y.size,X=Y.rotate;if(this.onDraw)this.onDraw(W,q,this.element);else{var tt=this.style;tt.left=W.x+"px",tt.top=W.y+"px",this.width!==null&&(tt.width=q.x+"px"),this.height!==null&&(tt.height=q.y+"px");var nt=D.getCssPropertyWithVendorPrefix("transformOrigin"),st=D.getCssPropertyWithVendorPrefix("transform");nt&&st&&(X?(tt[nt]=this._getTransformOrigin(),tt[st]="rotate("+X+"deg)"):(tt[nt]="",tt[st]="")),tt.display!=="none"&&(tt.display="block")}},_getOverlayPositionAndSize:function(O){var z=O.pixelFromPoint(this.location,!0),F=this._getSizeInPixels(O);this.adjust(z,F);var Y=0;if(O.degrees&&this.rotationMode!==D.OverlayRotationMode.NO_ROTATION)if(this.rotationMode===D.OverlayRotationMode.BOUNDING_BOX&&this.width!==null&&this.height!==null){var W=new D.Rect(z.x,z.y,F.x,F.y),q=this._getBoundingBox(W,O.degrees);z=q.getTopLeft(),F=q.getSize()}else Y=O.degrees;return{position:z,size:F,rotate:Y}},_getSizeInPixels:function(O){var z=this.size.x,F=this.size.y;if(this.width!==null||this.height!==null){var Y=O.deltaPixelsFromPointsNoRotate(new D.Point(this.width||0,this.height||0),!0);this.width!==null&&(z=Y.x),this.height!==null&&(F=Y.y)}if(this.checkResize&&(this.width===null||this.height===null)){var W=this.size=D.getElementSize(this.element);this.width===null&&(z=W.x),this.height===null&&(F=W.y)}return new D.Point(z,F)},_getBoundingBox:function(O,z){var F=this._getPlacementPoint(O);return O.rotate(z,F).getBoundingBox()},_getPlacementPoint:function(O){var z=new D.Point(O.x,O.y),F=D.Placement.properties[this.placement];return F&&(F.isHorizontallyCentered?z.x+=O.width/2:F.isRight&&(z.x+=O.width),F.isVerticallyCentered?z.y+=O.height/2:F.isBottom&&(z.y+=O.height)),z},_getTransformOrigin:function(){var O="",z=D.Placement.properties[this.placement];return z&&(z.isLeft?O="left":z.isRight&&(O="right"),z.isTop?O+=" top":z.isBottom&&(O+=" bottom")),O},update:function(O,z){var F=D.isPlainObject(O)?O:{location:O,placement:z};this._init({location:F.location||this.location,placement:F.placement!==void 0?F.placement:this.placement,onDraw:F.onDraw||this.onDraw,checkResize:F.checkResize||this.checkResize,width:F.width!==void 0?F.width:this.width,height:F.height!==void 0?F.height:this.height,rotationMode:F.rotationMode||this.rotationMode})},getBounds:function(O){D.console.assert(O,"A viewport must now be passed to Overlay.getBounds.");var z=this.width,F=this.height;if(z===null||F===null){var Y=O.deltaPointsFromPixelsNoRotate(this.size,!0);z===null&&(z=Y.x),F===null&&(F=Y.y)}var W=this.location.clone();return this.adjust(W,new D.Point(z,F)),this._adjustBoundsForRotation(O,new D.Rect(W.x,W.y,z,F))},_adjustBoundsForRotation:function(O,z){if(!O||O.degrees===0||this.rotationMode===D.OverlayRotationMode.EXACT)return z;if(this.rotationMode===D.OverlayRotationMode.BOUNDING_BOX){if(this.width===null||this.height===null)return z;var F=this._getOverlayPositionAndSize(O);return O.viewerElementToViewportRectangle(new D.Rect(F.position.x,F.position.y,F.size.x,F.size.y))}return z.rotate(-O.degrees,this._getPlacementPoint(z))}}}(OpenSeadragon),function(D){D.Drawer=function(O){D.console.assert(O.viewer,"[Drawer] options.viewer is required");var z=arguments;if(D.isPlainObject(O)||(O={source:z[0],viewport:z[1],element:z[2]}),D.console.assert(O.viewport,"[Drawer] options.viewport is required"),D.console.assert(O.element,"[Drawer] options.element is required"),O.source&&D.console.error("[Drawer] options.source is no longer accepted; use TiledImage instead"),this.viewer=O.viewer,this.viewport=O.viewport,this.debugGridColor=typeof O.debugGridColor=="string"?[O.debugGridColor]:O.debugGridColor||D.DEFAULT_SETTINGS.debugGridColor,O.opacity&&D.console.error("[Drawer] options.opacity is no longer accepted; set the opacity on the TiledImage instead"),this.useCanvas=D.supportsCanvas&&(this.viewer?this.viewer.useCanvas:!0),this.container=D.getElement(O.element),this.canvas=D.makeNeutralElement(this.useCanvas?"canvas":"div"),this.context=this.useCanvas?this.canvas.getContext("2d"):null,this.sketchCanvas=null,this.sketchContext=null,this.element=this.container,this.container.dir="ltr",this.useCanvas){var F=this._calculateCanvasSize();this.canvas.width=F.x,this.canvas.height=F.y}this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.position="absolute",D.setElementOpacity(this.canvas,this.opacity,!0),this.container.style.textAlign="left",this.container.appendChild(this.canvas),this._imageSmoothingEnabled=!0},D.Drawer.prototype={addOverlay:function(O,z,F,Y){return D.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(O,z,F,Y),this},updateOverlay:function(O,z,F){return D.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(O,z,F),this},removeOverlay:function(O){return D.console.error("drawer.removeOverlay is deprecated. Use viewer.removeOverlay instead."),this.viewer.removeOverlay(O),this},clearOverlays:function(){return D.console.error("drawer.clearOverlays is deprecated. Use viewer.clearOverlays instead."),this.viewer.clearOverlays(),this},viewportCoordToDrawerCoord:function(O){var z=this.viewport.pixelFromPointNoRotate(O,!0);return new D.Point(z.x*D.pixelDensityRatio,z.y*D.pixelDensityRatio)},clipWithPolygons:function(O,z){if(this.useCanvas){var F=this._getContext(z);F.beginPath(),O.forEach(function(Y){Y.forEach(function(W,q){F[q===0?"moveTo":"lineTo"](W.x,W.y)})}),F.clip()}},setOpacity:function(O){D.console.error("drawer.setOpacity is deprecated. Use tiledImage.setOpacity instead.");for(var z=this.viewer.world,F=0;Fz&&(z=Y)}return z},needsUpdate:function(){return D.console.error("[Drawer.needsUpdate] this function is deprecated. Use World.needsDraw instead."),this.viewer.world.needsDraw()},numTilesLoaded:function(){return D.console.error("[Drawer.numTilesLoaded] this function is deprecated. Use TileCache.numTilesLoaded instead."),this.viewer.tileCache.numTilesLoaded()},reset:function(){return D.console.error("[Drawer.reset] this function is deprecated. Use World.resetItems instead."),this.viewer.world.resetItems(),this},update:function(){return D.console.error("[Drawer.update] this function is deprecated. Use Drawer.clear and World.draw instead."),this.clear(),this.viewer.world.draw(),this},canRotate:function(){return this.useCanvas},destroy:function(){this.canvas.width=1,this.canvas.height=1,this.sketchCanvas=null,this.sketchContext=null},clear:function(){if(this.canvas.innerHTML="",this.useCanvas){var O=this._calculateCanvasSize();if((this.canvas.width!=O.x||this.canvas.height!=O.y)&&(this.canvas.width=O.x,this.canvas.height=O.y,this._updateImageSmoothingEnabled(this.context),this.sketchCanvas!==null)){var z=this._calculateSketchCanvasSize();this.sketchCanvas.width=z.x,this.sketchCanvas.height=z.y,this._updateImageSmoothingEnabled(this.sketchContext)}this._clear()}},_clear:function(O,z){if(this.useCanvas){var F=this._getContext(O);if(z)F.clearRect(z.x,z.y,z.width,z.height);else{var Y=F.canvas;F.clearRect(0,0,Y.width,Y.height)}}},viewportToDrawerRectangle:function(O){var z=this.viewport.pixelFromPointNoRotate(O.getTopLeft(),!0),F=this.viewport.deltaPixelsFromPointsNoRotate(O.getSize(),!0);return new D.Rect(z.x*D.pixelDensityRatio,z.y*D.pixelDensityRatio,F.x*D.pixelDensityRatio,F.y*D.pixelDensityRatio)},drawTile:function(O,z,F,Y,W){if(D.console.assert(O,"[Drawer.drawTile] tile is required"),D.console.assert(z,"[Drawer.drawTile] drawingHandler is required"),this.useCanvas){var q=this._getContext(F);Y=Y||1,O.drawCanvas(q,z,Y,W)}else O.drawHTML(this.canvas)},_getContext:function(O){var z=this.context;if(O){if(this.sketchCanvas===null){this.sketchCanvas=document.createElement("canvas");var F=this._calculateSketchCanvasSize();if(this.sketchCanvas.width=F.x,this.sketchCanvas.height=F.y,this.sketchContext=this.sketchCanvas.getContext("2d"),this.viewport.getRotation()===0){var Y=this;this.viewer.addHandler("rotate",function W(){if(Y.viewport.getRotation()!==0){Y.viewer.removeHandler("rotate",W);var q=Y._calculateSketchCanvasSize();Y.sketchCanvas.width=q.x,Y.sketchCanvas.height=q.y}})}this._updateImageSmoothingEnabled(this.sketchContext)}z=this.sketchContext}return z},saveContext:function(O){this.useCanvas&&this._getContext(O).save()},restoreContext:function(O){this.useCanvas&&this._getContext(O).restore()},setClip:function(O,z){if(this.useCanvas){var F=this._getContext(z);F.beginPath(),F.rect(O.x,O.y,O.width,O.height),F.clip()}},drawRectangle:function(O,z,F){if(this.useCanvas){var Y=this._getContext(F);Y.save(),Y.fillStyle=z,Y.fillRect(O.x,O.y,O.width,O.height),Y.restore()}},blendSketch:function(O,z,F,Y){var W=O;if(D.isPlainObject(W)||(W={opacity:O,scale:z,translate:F,compositeOperation:Y}),!(!this.useCanvas||!this.sketchCanvas)){O=W.opacity,Y=W.compositeOperation;var q=W.bounds;if(this.context.save(),this.context.globalAlpha=O,Y&&(this.context.globalCompositeOperation=Y),q)q.x<0&&(q.width+=q.x,q.x=0),q.x+q.width>this.canvas.width&&(q.width=this.canvas.width-q.x),q.y<0&&(q.height+=q.y,q.y=0),q.y+q.height>this.canvas.height&&(q.height=this.canvas.height-q.y),this.context.drawImage(this.sketchCanvas,q.x,q.y,q.width,q.height,q.x,q.y,q.width,q.height);else{z=W.scale||1,F=W.translate;var X=F instanceof D.Point?F:new D.Point(0,0),tt=0,nt=0;if(F){var st=this.sketchCanvas.width-this.canvas.width,ct=this.sketchCanvas.height-this.canvas.height;tt=Math.round(st/2),nt=Math.round(ct/2)}this.context.drawImage(this.sketchCanvas,X.x-tt*z,X.y-nt*z,(this.canvas.width+2*tt)*z,(this.canvas.height+2*nt)*z,-tt,-nt,this.canvas.width+2*tt,this.canvas.height+2*nt)}this.context.restore()}},drawDebugInfo:function(O,z,F,Y){if(this.useCanvas){var W=this.viewer.world.getIndexOfItem(Y)%this.debugGridColor.length,q=this.context;q.save(),q.lineWidth=2*D.pixelDensityRatio,q.font="small-caps bold "+13*D.pixelDensityRatio+"px arial",q.strokeStyle=this.debugGridColor[W],q.fillStyle=this.debugGridColor[W],this.viewport.degrees!==0&&this._offsetForRotation({degrees:this.viewport.degrees}),Y.getRotation(!0)%360!==0&&this._offsetForRotation({degrees:Y.getRotation(!0),point:Y.viewport.pixelFromPointNoRotate(Y._getRotationPoint(!0),!0)}),Y.viewport.degrees===0&&Y.getRotation(!0)%360===0&&Y._drawer.viewer.viewport.getFlip()&&Y._drawer._flip(),q.strokeRect(O.position.x*D.pixelDensityRatio,O.position.y*D.pixelDensityRatio,O.size.x*D.pixelDensityRatio,O.size.y*D.pixelDensityRatio);var X=(O.position.x+O.size.x/2)*D.pixelDensityRatio,tt=(O.position.y+O.size.y/2)*D.pixelDensityRatio;q.translate(X,tt),q.rotate(Math.PI/180*-this.viewport.degrees),q.translate(-X,-tt),O.x===0&&O.y===0&&(q.fillText("Zoom: "+this.viewport.getZoom(),O.position.x*D.pixelDensityRatio,(O.position.y-30)*D.pixelDensityRatio),q.fillText("Pan: "+this.viewport.getBounds().toString(),O.position.x*D.pixelDensityRatio,(O.position.y-20)*D.pixelDensityRatio)),q.fillText("Level: "+O.level,(O.position.x+10)*D.pixelDensityRatio,(O.position.y+20)*D.pixelDensityRatio),q.fillText("Column: "+O.x,(O.position.x+10)*D.pixelDensityRatio,(O.position.y+30)*D.pixelDensityRatio),q.fillText("Row: "+O.y,(O.position.x+10)*D.pixelDensityRatio,(O.position.y+40)*D.pixelDensityRatio),q.fillText("Order: "+F+" of "+z,(O.position.x+10)*D.pixelDensityRatio,(O.position.y+50)*D.pixelDensityRatio),q.fillText("Size: "+O.size.toString(),(O.position.x+10)*D.pixelDensityRatio,(O.position.y+60)*D.pixelDensityRatio),q.fillText("Position: "+O.position.toString(),(O.position.x+10)*D.pixelDensityRatio,(O.position.y+70)*D.pixelDensityRatio),this.viewport.degrees!==0&&this._restoreRotationChanges(),Y.getRotation(!0)%360!==0&&this._restoreRotationChanges(),Y.viewport.degrees===0&&Y.getRotation(!0)%360===0&&Y._drawer.viewer.viewport.getFlip()&&Y._drawer._flip(),q.restore()}},debugRect:function(O){if(this.useCanvas){var z=this.context;z.save(),z.lineWidth=2*D.pixelDensityRatio,z.strokeStyle=this.debugGridColor[0],z.fillStyle=this.debugGridColor[0],z.strokeRect(O.x*D.pixelDensityRatio,O.y*D.pixelDensityRatio,O.width*D.pixelDensityRatio,O.height*D.pixelDensityRatio),z.restore()}},setImageSmoothingEnabled:function(O){this.useCanvas&&(this._imageSmoothingEnabled=O,this._updateImageSmoothingEnabled(this.context),this.viewer.forceRedraw())},_updateImageSmoothingEnabled:function(O){O.msImageSmoothingEnabled=this._imageSmoothingEnabled,O.imageSmoothingEnabled=this._imageSmoothingEnabled},getCanvasSize:function(O){var z=this._getContext(O).canvas;return new D.Point(z.width,z.height)},getCanvasCenter:function(){return new D.Point(this.canvas.width/2,this.canvas.height/2)},_offsetForRotation:function(O){var z=O.point?O.point.times(D.pixelDensityRatio):this.getCanvasCenter(),F=this._getContext(O.useSketch);F.save(),F.translate(z.x,z.y),this.viewer.viewport.flipped?(F.rotate(Math.PI/180*-O.degrees),F.scale(-1,1)):F.rotate(Math.PI/180*O.degrees),F.translate(-z.x,-z.y)},_flip:function(O){O=O||{};var z=O.point?O.point.times(D.pixelDensityRatio):this.getCanvasCenter(),F=this._getContext(O.useSketch);F.translate(z.x,0),F.scale(-1,1),F.translate(-z.x,0)},_restoreRotationChanges:function(O){var z=this._getContext(O);z.restore()},_calculateCanvasSize:function(){var O=D.pixelDensityRatio,z=this.viewport.getContainerSize();return{x:Math.round(z.x*O),y:Math.round(z.y*O)}},_calculateSketchCanvasSize:function(){var O=this._calculateCanvasSize();if(this.viewport.getRotation()===0)return O;var z=Math.ceil(Math.sqrt(O.x*O.x+O.y*O.y));return{x:z,y:z}}}}(OpenSeadragon),function(D){D.Viewport=function(O){var z=arguments;z.length&&z[0]instanceof D.Point&&(O={containerSize:z[0],contentSize:z[1],config:z[2]}),O.config&&(D.extend(!0,O,O.config),delete O.config),this._margins=D.extend({left:0,top:0,right:0,bottom:0},O.margins||{}),delete O.margins,D.extend(!0,this,{containerSize:null,contentSize:null,zoomPoint:null,viewer:null,springStiffness:D.DEFAULT_SETTINGS.springStiffness,animationTime:D.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:D.DEFAULT_SETTINGS.minZoomImageRatio,maxZoomPixelRatio:D.DEFAULT_SETTINGS.maxZoomPixelRatio,visibilityRatio:D.DEFAULT_SETTINGS.visibilityRatio,wrapHorizontal:D.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:D.DEFAULT_SETTINGS.wrapVertical,defaultZoomLevel:D.DEFAULT_SETTINGS.defaultZoomLevel,minZoomLevel:D.DEFAULT_SETTINGS.minZoomLevel,maxZoomLevel:D.DEFAULT_SETTINGS.maxZoomLevel,degrees:D.DEFAULT_SETTINGS.degrees,flipped:D.DEFAULT_SETTINGS.flipped,homeFillsViewer:D.DEFAULT_SETTINGS.homeFillsViewer},O),this._updateContainerInnerSize(),this.centerSpringX=new D.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.centerSpringY=new D.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.zoomSpring=new D.Spring({exponential:!0,initial:1,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._setContentBounds(new D.Rect(0,0,1,1),1),this.goHome(!0),this.update()},D.Viewport.prototype={resetContentSize:function(O){return D.console.assert(O,"[Viewport.resetContentSize] contentSize is required"),D.console.assert(O instanceof D.Point,"[Viewport.resetContentSize] contentSize must be an OpenSeadragon.Point"),D.console.assert(O.x>0,"[Viewport.resetContentSize] contentSize.x must be greater than 0"),D.console.assert(O.y>0,"[Viewport.resetContentSize] contentSize.y must be greater than 0"),this._setContentBounds(new D.Rect(0,0,1,O.y/O.x),O.x),this},setHomeBounds:function(O,z){D.console.error("[Viewport.setHomeBounds] this function is deprecated; The content bounds should not be set manually."),this._setContentBounds(O,z)},_setContentBounds:function(O,z){D.console.assert(O,"[Viewport._setContentBounds] bounds is required"),D.console.assert(O instanceof D.Rect,"[Viewport._setContentBounds] bounds must be an OpenSeadragon.Rect"),D.console.assert(O.width>0,"[Viewport._setContentBounds] bounds.width must be greater than 0"),D.console.assert(O.height>0,"[Viewport._setContentBounds] bounds.height must be greater than 0"),this._contentBoundsNoRotate=O.clone(),this._contentSizeNoRotate=this._contentBoundsNoRotate.getSize().times(z),this._contentBounds=O.rotate(this.degrees).getBoundingBox(),this._contentSize=this._contentBounds.getSize().times(z),this._contentAspectRatio=this._contentSize.x/this._contentSize.y,this.viewer&&this.viewer.raiseEvent("reset-size",{contentSize:this._contentSizeNoRotate.clone(),contentFactor:z,homeBounds:this._contentBoundsNoRotate.clone(),contentBounds:this._contentBounds.clone()})},getHomeZoom:function(){if(this.defaultZoomLevel)return this.defaultZoomLevel;var O=this._contentAspectRatio/this.getAspectRatio(),z;return this.homeFillsViewer?z=O>=1?O:1:z=O>=1?1:O,z/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var O=this._contentBounds.getCenter(),z=1/this.getHomeZoom(),F=z/this.getAspectRatio();return new D.Rect(O.x-z/2,O.y-F/2,z,F)},goHome:function(O){return this.viewer&&this.viewer.raiseEvent("home",{immediately:O}),this.fitBounds(this.getHomeBounds(),O)},getMinZoom:function(){var O=this.getHomeZoom(),z=this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*O;return z},getMaxZoom:function(){var O=this.maxZoomLevel;return O||(O=this._contentSize.x*this.maxZoomPixelRatio/this._containerInnerSize.x,O/=this._contentBounds.width),Math.max(O,this.getHomeZoom())},getAspectRatio:function(){return this._containerInnerSize.x/this._containerInnerSize.y},getContainerSize:function(){return new D.Point(this.containerSize.x,this.containerSize.y)},getMargins:function(){return D.extend({},this._margins)},setMargins:function(O){D.console.assert(D.type(O)==="object","[Viewport.setMargins] margins must be an object"),this._margins=D.extend({left:0,top:0,right:0,bottom:0},O),this._updateContainerInnerSize(),this.viewer&&this.viewer.forceRedraw()},getBounds:function(O){return this.getBoundsNoRotate(O).rotate(-this.getRotation())},getBoundsNoRotate:function(O){var z=this.getCenter(O),F=1/this.getZoom(O),Y=F/this.getAspectRatio();return new D.Rect(z.x-F/2,z.y-Y/2,F,Y)},getBoundsWithMargins:function(O){return this.getBoundsNoRotateWithMargins(O).rotate(-this.getRotation(),this.getCenter(O))},getBoundsNoRotateWithMargins:function(O){var z=this.getBoundsNoRotate(O),F=this._containerInnerSize.x*this.getZoom(O);return z.x-=this._margins.left/F,z.y-=this._margins.top/F,z.width+=(this._margins.left+this._margins.right)/F,z.height+=(this._margins.top+this._margins.bottom)/F,z},getCenter:function(O){var z=new D.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),F=new D.Point(this.centerSpringX.target.value,this.centerSpringY.target.value),Y,W,q,X,tt,nt,st,ct;return O?z:this.zoomPoint?(Y=this.pixelFromPoint(this.zoomPoint,!0),W=this.getZoom(),q=1/W,X=q/this.getAspectRatio(),tt=new D.Rect(z.x-q/2,z.y-X/2,q,X),nt=this._pixelFromPoint(this.zoomPoint,tt),st=nt.minus(Y),ct=st.divide(this._containerInnerSize.x*W),F.plus(ct)):F},getZoom:function(O){return O?this.zoomSpring.current.value:this.zoomSpring.target.value},_applyZoomConstraints:function(O){return Math.max(Math.min(O,this.getMaxZoom()),this.getMinZoom())},_applyBoundaryConstraints:function(O){var z=new D.Rect(O.x,O.y,O.width,O.height);if(!this.wrapHorizontal){var F=this.visibilityRatio*z.width,Y=z.x+z.width,W=this._contentBoundsNoRotate.x+this._contentBoundsNoRotate.width,q=this._contentBoundsNoRotate.x-Y+F,X=W-z.x-F;F>this._contentBoundsNoRotate.width?z.x+=(q+X)/2:X<0?z.x+=X:q>0&&(z.x+=q)}if(!this.wrapVertical){var tt=this.visibilityRatio*z.height,nt=z.y+z.height,st=this._contentBoundsNoRotate.y+this._contentBoundsNoRotate.height,ct=this._contentBoundsNoRotate.y-nt+tt,lt=st-z.y-tt;tt>this._contentBoundsNoRotate.height?z.y+=(ct+lt)/2:lt<0?z.y+=lt:ct>0&&(z.y+=ct)}return z},_raiseConstraintsEvent:function(O){this.viewer&&this.viewer.raiseEvent("constrain",{immediately:O})},applyConstraints:function(O){var z=this.getZoom(),F=this._applyZoomConstraints(z);z!==F&&this.zoomTo(F,this.zoomPoint,O);var Y=this.getBoundsNoRotate(),W=this._applyBoundaryConstraints(Y);return this._raiseConstraintsEvent(O),(Y.x!==W.x||Y.y!==W.y||O)&&this.fitBounds(W.rotate(-this.getRotation()),O),this},ensureVisible:function(O){return this.applyConstraints(O)},_fitBounds:function(O,z){z=z||{};var F=z.immediately||!1,Y=z.constraints||!1,W=this.getAspectRatio(),q=O.getCenter(),X=new D.Rect(O.x,O.y,O.width,O.height,O.degrees+this.getRotation()).getBoundingBox();X.getAspectRatio()>=W?X.height=X.width/W:X.width=X.height*W,X.x=q.x-X.width/2,X.y=q.y-X.height/2;var tt=1/X.width;if(Y){var nt=X.getAspectRatio(),st=this._applyZoomConstraints(tt);tt!==st&&(tt=st,X.width=1/tt,X.x=q.x-X.width/2,X.height=X.width/nt,X.y=q.y-X.height/2),X=this._applyBoundaryConstraints(X),q=X.getCenter(),this._raiseConstraintsEvent(F)}if(F)return this.panTo(q,!0),this.zoomTo(tt,null,!0);this.panTo(this.getCenter(!0),!0),this.zoomTo(this.getZoom(!0),null,!0);var ct=this.getBounds(),lt=this.getZoom();if(lt===0||Math.abs(tt/lt-1)<1e-8)return this.zoomTo(tt,!0),this.panTo(q,F);X=X.rotate(-this.getRotation());var ht=X.getTopLeft().times(tt).minus(ct.getTopLeft().times(lt)).divide(tt-lt);return this.zoomTo(tt,ht,F)},fitBounds:function(O,z){return this._fitBounds(O,{immediately:z,constraints:!1})},fitBoundsWithConstraints:function(O,z){return this._fitBounds(O,{immediately:z,constraints:!0})},fitVertically:function(O){var z=new D.Rect(this._contentBounds.x+this._contentBounds.width/2,this._contentBounds.y,0,this._contentBounds.height);return this.fitBounds(z,O)},fitHorizontally:function(O){var z=new D.Rect(this._contentBounds.x,this._contentBounds.y+this._contentBounds.height/2,this._contentBounds.width,0);return this.fitBounds(z,O)},getConstrainedBounds:function(O){var z,F;return z=this.getBounds(O),F=this._applyBoundaryConstraints(z),F},panBy:function(O,z){var F=new D.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(F.plus(O),z)},panTo:function(O,z){return z?(this.centerSpringX.resetTo(O.x),this.centerSpringY.resetTo(O.y)):(this.centerSpringX.springTo(O.x),this.centerSpringY.springTo(O.y)),this.viewer&&this.viewer.raiseEvent("pan",{center:O,immediately:z}),this},zoomBy:function(O,z,F){return this.zoomTo(this.zoomSpring.target.value*O,z,F)},zoomTo:function(O,z,F){var Y=this;return this.zoomPoint=z instanceof D.Point&&!isNaN(z.x)&&!isNaN(z.y)?z:null,F?this._adjustCenterSpringsForZoomPoint(function(){Y.zoomSpring.resetTo(O)}):this.zoomSpring.springTo(O),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:O,refPoint:z,immediately:F}),this},setRotation:function(O){return!this.viewer||!this.viewer.drawer.canRotate()?this:(this.degrees=D.positiveModulo(O,360),this._setContentBounds(this.viewer.world.getHomeBounds(),this.viewer.world.getContentFactor()),this.viewer.forceRedraw(),this.viewer.raiseEvent("rotate",{degrees:O}),this)},getRotation:function(){return this.degrees},resize:function(O,z){var F=this.getBoundsNoRotate(),Y=F,W;return this.containerSize.x=O.x,this.containerSize.y=O.y,this._updateContainerInnerSize(),z&&(W=O.x/this.containerSize.x,Y.width=F.width*W,Y.height=Y.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:O,maintain:z}),this.fitBounds(Y,!0)},_updateContainerInnerSize:function(){this._containerInnerSize=new D.Point(Math.max(1,this.containerSize.x-(this._margins.left+this._margins.right)),Math.max(1,this.containerSize.y-(this._margins.top+this._margins.bottom)))},update:function(){var O=this;this._adjustCenterSpringsForZoomPoint(function(){O.zoomSpring.update()}),this.centerSpringX.update(),this.centerSpringY.update();var z=this.centerSpringX.current.value!==this._oldCenterX||this.centerSpringY.current.value!==this._oldCenterY||this.zoomSpring.current.value!==this._oldZoom;return this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,z},_adjustCenterSpringsForZoomPoint:function(O){if(this.zoomPoint){var z=this.pixelFromPoint(this.zoomPoint,!0);O();var F=this.pixelFromPoint(this.zoomPoint,!0),Y=F.minus(z),W=this.deltaPointsFromPixels(Y,!0);this.centerSpringX.shiftBy(W.x),this.centerSpringY.shiftBy(W.y),this.zoomSpring.isAtTargetValue()&&(this.zoomPoint=null)}else O()},deltaPixelsFromPointsNoRotate:function(O,z){return O.times(this._containerInnerSize.x*this.getZoom(z))},deltaPixelsFromPoints:function(O,z){return this.deltaPixelsFromPointsNoRotate(O.rotate(this.getRotation()),z)},deltaPointsFromPixelsNoRotate:function(O,z){return O.divide(this._containerInnerSize.x*this.getZoom(z))},deltaPointsFromPixels:function(O,z){return this.deltaPointsFromPixelsNoRotate(O,z).rotate(-this.getRotation())},pixelFromPointNoRotate:function(O,z){return this._pixelFromPointNoRotate(O,this.getBoundsNoRotate(z))},pixelFromPoint:function(O,z){return this._pixelFromPoint(O,this.getBoundsNoRotate(z))},_pixelFromPointNoRotate:function(O,z){return O.minus(z.getTopLeft()).times(this._containerInnerSize.x/z.width).plus(new D.Point(this._margins.left,this._margins.top))},_pixelFromPoint:function(O,z){return this._pixelFromPointNoRotate(O.rotate(this.getRotation(),this.getCenter(!0)),z)},pointFromPixelNoRotate:function(O,z){var F=this.getBoundsNoRotate(z);return O.minus(new D.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/F.width).plus(F.getTopLeft())},pointFromPixel:function(O,z){return this.pointFromPixelNoRotate(O,z).rotate(-this.getRotation(),this.getCenter(!0))},_viewportToImageDelta:function(O,z){var F=this._contentBoundsNoRotate.width;return new D.Point(O*this._contentSizeNoRotate.x/F,z*this._contentSizeNoRotate.x/F)},viewportToImageCoordinates:function(O,z){if(O instanceof D.Point)return this.viewportToImageCoordinates(O.x,O.y);if(this.viewer){var F=this.viewer.world.getItemCount();if(F>1)D.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(F===1){var Y=this.viewer.world.getItemAt(0);return Y.viewportToImageCoordinates(O,z,!0)}}return this._viewportToImageDelta(O-this._contentBoundsNoRotate.x,z-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(O,z){var F=this._contentBoundsNoRotate.width;return new D.Point(O/this._contentSizeNoRotate.x*F,z/this._contentSizeNoRotate.x*F)},imageToViewportCoordinates:function(O,z){if(O instanceof D.Point)return this.imageToViewportCoordinates(O.x,O.y);if(this.viewer){var F=this.viewer.world.getItemCount();if(F>1)D.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(F===1){var Y=this.viewer.world.getItemAt(0);return Y.imageToViewportCoordinates(O,z,!0)}}var W=this._imageToViewportDelta(O,z);return W.x+=this._contentBoundsNoRotate.x,W.y+=this._contentBoundsNoRotate.y,W},imageToViewportRectangle:function(O,z,F,Y){var W=O;if(W instanceof D.Rect||(W=new D.Rect(O,z,F,Y)),this.viewer){var q=this.viewer.world.getItemCount();if(q>1)D.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(q===1){var X=this.viewer.world.getItemAt(0);return X.imageToViewportRectangle(O,z,F,Y,!0)}}var tt=this.imageToViewportCoordinates(W.x,W.y),nt=this._imageToViewportDelta(W.width,W.height);return new D.Rect(tt.x,tt.y,nt.x,nt.y,W.degrees)},viewportToImageRectangle:function(O,z,F,Y){var W=O;if(W instanceof D.Rect||(W=new D.Rect(O,z,F,Y)),this.viewer){var q=this.viewer.world.getItemCount();if(q>1)D.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(q===1){var X=this.viewer.world.getItemAt(0);return X.viewportToImageRectangle(O,z,F,Y,!0)}}var tt=this.viewportToImageCoordinates(W.x,W.y),nt=this._viewportToImageDelta(W.width,W.height);return new D.Rect(tt.x,tt.y,nt.x,nt.y,W.degrees)},viewerElementToImageCoordinates:function(O){var z=this.pointFromPixel(O,!0);return this.viewportToImageCoordinates(z)},imageToViewerElementCoordinates:function(O){var z=this.imageToViewportCoordinates(O);return this.pixelFromPoint(z,!0)},windowToImageCoordinates:function(O){D.console.assert(this.viewer,"[Viewport.windowToImageCoordinates] the viewport must have a viewer.");var z=O.minus(D.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(z)},imageToWindowCoordinates:function(O){D.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer.");var z=this.imageToViewerElementCoordinates(O);return z.plus(D.getElementPosition(this.viewer.element))},viewerElementToViewportCoordinates:function(O){return this.pointFromPixel(O,!0)},viewportToViewerElementCoordinates:function(O){return this.pixelFromPoint(O,!0)},viewerElementToViewportRectangle:function(O){return D.Rect.fromSummits(this.pointFromPixel(O.getTopLeft(),!0),this.pointFromPixel(O.getTopRight(),!0),this.pointFromPixel(O.getBottomLeft(),!0))},viewportToViewerElementRectangle:function(O){return D.Rect.fromSummits(this.pixelFromPoint(O.getTopLeft(),!0),this.pixelFromPoint(O.getTopRight(),!0),this.pixelFromPoint(O.getBottomLeft(),!0))},windowToViewportCoordinates:function(O){D.console.assert(this.viewer,"[Viewport.windowToViewportCoordinates] the viewport must have a viewer.");var z=O.minus(D.getElementPosition(this.viewer.element));return this.viewerElementToViewportCoordinates(z)},viewportToWindowCoordinates:function(O){D.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer.");var z=this.viewportToViewerElementCoordinates(O);return z.plus(D.getElementPosition(this.viewer.element))},viewportToImageZoom:function(O){if(this.viewer){var z=this.viewer.world.getItemCount();if(z>1)D.console.error("[Viewport.viewportToImageZoom] is not accurate with multi-image.");else if(z===1){var F=this.viewer.world.getItemAt(0);return F.viewportToImageZoom(O)}}var Y=this._contentSizeNoRotate.x,W=this._containerInnerSize.x,q=this._contentBoundsNoRotate.width,X=W/Y*q;return O*X},imageToViewportZoom:function(O){if(this.viewer){var z=this.viewer.world.getItemCount();if(z>1)D.console.error("[Viewport.imageToViewportZoom] is not accurate with multi-image.");else if(z===1){var F=this.viewer.world.getItemAt(0);return F.imageToViewportZoom(O)}}var Y=this._contentSizeNoRotate.x,W=this._containerInnerSize.x,q=this._contentBoundsNoRotate.width,X=Y/W/q;return O*X},toggleFlip:function(){return this.setFlip(!this.getFlip()),this},getFlip:function(){return this.flipped},setFlip:function(O){return this.flipped===O?this:(this.flipped=O,this.viewer.navigator&&this.viewer.navigator.setFlip(this.getFlip()),this.viewer.forceRedraw(),this.viewer.raiseEvent("flip",{flipped:O}),this)}}}(OpenSeadragon),function(D){D.TiledImage=function(mt){var _t=this;D.console.assert(mt.tileCache,"[TiledImage] options.tileCache is required"),D.console.assert(mt.drawer,"[TiledImage] options.drawer is required"),D.console.assert(mt.viewer,"[TiledImage] options.viewer is required"),D.console.assert(mt.imageLoader,"[TiledImage] options.imageLoader is required"),D.console.assert(mt.source,"[TiledImage] options.source is required"),D.console.assert(!mt.clip||mt.clip instanceof D.Rect,"[TiledImage] options.clip must be an OpenSeadragon.Rect if present"),D.EventSource.call(this),this._tileCache=mt.tileCache,delete mt.tileCache,this._drawer=mt.drawer,delete mt.drawer,this._imageLoader=mt.imageLoader,delete mt.imageLoader,mt.clip instanceof D.Rect&&(this._clip=mt.clip.clone()),delete mt.clip;var Et=mt.x||0;delete mt.x;var At=mt.y||0;delete mt.y,this.normHeight=mt.source.dimensions.y/mt.source.dimensions.x,this.contentAspectX=mt.source.dimensions.x/mt.source.dimensions.y;var Ct=1;mt.width?(Ct=mt.width,delete mt.width,mt.height&&(D.console.error("specifying both width and height to a tiledImage is not supported"),delete mt.height)):mt.height&&(Ct=mt.height/this.normHeight,delete mt.height);var Ft=mt.fitBounds;delete mt.fitBounds;var Lt=mt.fitBoundsPlacement||OpenSeadragon.Placement.CENTER;delete mt.fitBoundsPlacement;var Yt=mt.degrees||0;delete mt.degrees,D.extend(!0,this,{viewer:null,tilesMatrix:{},coverage:{},loadingCoverage:{},lastDrawn:[],lastResetTime:0,_midDraw:!1,_needsDraw:!0,_hasOpaqueTile:!1,_tilesLoading:0,springStiffness:D.DEFAULT_SETTINGS.springStiffness,animationTime:D.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:D.DEFAULT_SETTINGS.minZoomImageRatio,wrapHorizontal:D.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:D.DEFAULT_SETTINGS.wrapVertical,immediateRender:D.DEFAULT_SETTINGS.immediateRender,blendTime:D.DEFAULT_SETTINGS.blendTime,alwaysBlend:D.DEFAULT_SETTINGS.alwaysBlend,minPixelRatio:D.DEFAULT_SETTINGS.minPixelRatio,smoothTileEdgesMinZoom:D.DEFAULT_SETTINGS.smoothTileEdgesMinZoom,iOSDevice:D.DEFAULT_SETTINGS.iOSDevice,debugMode:D.DEFAULT_SETTINGS.debugMode,crossOriginPolicy:D.DEFAULT_SETTINGS.crossOriginPolicy,ajaxWithCredentials:D.DEFAULT_SETTINGS.ajaxWithCredentials,placeholderFillStyle:D.DEFAULT_SETTINGS.placeholderFillStyle,opacity:D.DEFAULT_SETTINGS.opacity,preload:D.DEFAULT_SETTINGS.preload,compositeOperation:D.DEFAULT_SETTINGS.compositeOperation},mt),this._preload=this.preload,delete this.preload,this._fullyLoaded=!1,this._xSpring=new D.Spring({initial:Et,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new D.Spring({initial:At,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._scaleSpring=new D.Spring({initial:Ct,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._degreesSpring=new D.Spring({initial:Yt,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._updateForScale(),Ft&&this.fitBounds(Ft,Lt,!0),this._drawingHandler=function(Ht){_t.viewer.raiseEvent("tile-drawing",D.extend({tiledImage:_t},Ht))}},D.extend(D.TiledImage.prototype,D.EventSource.prototype,{needsDraw:function(){return this._needsDraw},getFullyLoaded:function(){return this._fullyLoaded},_setFullyLoaded:function(mt){mt!==this._fullyLoaded&&(this._fullyLoaded=mt,this.raiseEvent("fully-loaded-change",{fullyLoaded:this._fullyLoaded}))},reset:function(){this._tileCache.clearTilesFor(this),this.lastResetTime=D.now(),this._needsDraw=!0},update:function(){var mt=this._xSpring.update(),_t=this._ySpring.update(),Et=this._scaleSpring.update(),At=this._degreesSpring.update();return mt||_t||Et||At?(this._updateForScale(),this._needsDraw=!0,!0):!1},draw:function(){this.opacity!==0||this._preload?(this._midDraw=!0,this._updateViewport(),this._midDraw=!1):this._needsDraw=!1},destroy:function(){this.reset()},getBounds:function(mt){return this.getBoundsNoRotate(mt).rotate(this.getRotation(mt),this._getRotationPoint(mt))},getBoundsNoRotate:function(mt){return mt?new D.Rect(this._xSpring.current.value,this._ySpring.current.value,this._worldWidthCurrent,this._worldHeightCurrent):new D.Rect(this._xSpring.target.value,this._ySpring.target.value,this._worldWidthTarget,this._worldHeightTarget)},getWorldBounds:function(){return D.console.error("[TiledImage.getWorldBounds] is deprecated; use TiledImage.getBounds instead"),this.getBounds()},getClippedBounds:function(mt){var _t=this.getBoundsNoRotate(mt);if(this._clip){var Et=mt?this._worldWidthCurrent:this._worldWidthTarget,At=Et/this.source.dimensions.x,Ct=this._clip.times(At);_t=new D.Rect(_t.x+Ct.x,_t.y+Ct.y,Ct.width,Ct.height)}return _t.rotate(this.getRotation(mt),this._getRotationPoint(mt))},getContentSize:function(){return new D.Point(this.source.dimensions.x,this.source.dimensions.y)},_viewportToImageDelta:function(mt,_t,Et){var At=Et?this._scaleSpring.current.value:this._scaleSpring.target.value;return new D.Point(mt*(this.source.dimensions.x/At),_t*(this.source.dimensions.y*this.contentAspectX/At))},viewportToImageCoordinates:function(mt,_t,Et){var At;return mt instanceof D.Point?(Et=_t,At=mt):At=new D.Point(mt,_t),At=At.rotate(-this.getRotation(Et),this._getRotationPoint(Et)),Et?this._viewportToImageDelta(At.x-this._xSpring.current.value,At.y-this._ySpring.current.value):this._viewportToImageDelta(At.x-this._xSpring.target.value,At.y-this._ySpring.target.value)},_imageToViewportDelta:function(mt,_t,Et){var At=Et?this._scaleSpring.current.value:this._scaleSpring.target.value;return new D.Point(mt/this.source.dimensions.x*At,_t/this.source.dimensions.y/this.contentAspectX*At)},imageToViewportCoordinates:function(mt,_t,Et){mt instanceof D.Point&&(Et=_t,_t=mt.y,mt=mt.x);var At=this._imageToViewportDelta(mt,_t);return Et?(At.x+=this._xSpring.current.value,At.y+=this._ySpring.current.value):(At.x+=this._xSpring.target.value,At.y+=this._ySpring.target.value),At.rotate(this.getRotation(Et),this._getRotationPoint(Et))},imageToViewportRectangle:function(mt,_t,Et,At,Ct){var Ft=mt;Ft instanceof D.Rect?Ct=_t:Ft=new D.Rect(mt,_t,Et,At);var Lt=this.imageToViewportCoordinates(Ft.getTopLeft(),Ct),Yt=this._imageToViewportDelta(Ft.width,Ft.height,Ct);return new D.Rect(Lt.x,Lt.y,Yt.x,Yt.y,Ft.degrees+this.getRotation(Ct))},viewportToImageRectangle:function(mt,_t,Et,At,Ct){var Ft=mt;mt instanceof D.Rect?Ct=_t:Ft=new D.Rect(mt,_t,Et,At);var Lt=this.viewportToImageCoordinates(Ft.getTopLeft(),Ct),Yt=this._viewportToImageDelta(Ft.width,Ft.height,Ct);return new D.Rect(Lt.x,Lt.y,Yt.x,Yt.y,Ft.degrees-this.getRotation(Ct))},viewerElementToImageCoordinates:function(mt){var _t=this.viewport.pointFromPixel(mt,!0);return this.viewportToImageCoordinates(_t)},imageToViewerElementCoordinates:function(mt){var _t=this.imageToViewportCoordinates(mt);return this.viewport.pixelFromPoint(_t,!0)},windowToImageCoordinates:function(mt){var _t=mt.minus(OpenSeadragon.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(_t)},imageToWindowCoordinates:function(mt){var _t=this.imageToViewerElementCoordinates(mt);return _t.plus(OpenSeadragon.getElementPosition(this.viewer.element))},_viewportToTiledImageRectangle:function(mt){var _t=this._scaleSpring.current.value;return mt=mt.rotate(-this.getRotation(!0),this._getRotationPoint(!0)),new D.Rect((mt.x-this._xSpring.current.value)/_t,(mt.y-this._ySpring.current.value)/_t,mt.width/_t,mt.height/_t,mt.degrees)},viewportToImageZoom:function(mt){var _t=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return _t*mt},imageToViewportZoom:function(mt){var _t=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return mt/_t},setPosition:function(mt,_t){var Et=this._xSpring.target.value===mt.x&&this._ySpring.target.value===mt.y;if(_t){if(Et&&this._xSpring.current.value===mt.x&&this._ySpring.current.value===mt.y)return;this._xSpring.resetTo(mt.x),this._ySpring.resetTo(mt.y),this._needsDraw=!0}else{if(Et)return;this._xSpring.springTo(mt.x),this._ySpring.springTo(mt.y),this._needsDraw=!0}Et||this._raiseBoundsChange()},setWidth:function(mt,_t){this._setScale(mt,_t)},setHeight:function(mt,_t){this._setScale(mt/this.normHeight,_t)},setCroppingPolygons:function(mt){var _t=function(At){return At instanceof D.Point||typeof At.x=="number"&&typeof At.y=="number"},Et=function(At){return At.map(function(Ct){try{if(_t(Ct))return{x:Ct.x,y:Ct.y};throw new Error}catch{throw new Error("A Provided cropping polygon point is not supported")}})};try{if(!D.isArray(mt))throw new Error("Provided cropping polygon is not an array");this._croppingPolygons=mt.map(function(At){return Et(At)})}catch(At){D.console.error("[TiledImage.setCroppingPolygons] Cropping polygon format not supported"),D.console.error(At),this._croppingPolygons=null}},resetCroppingPolygons:function(){this._croppingPolygons=null},fitBounds:function(mt,_t,Et){_t=_t||D.Placement.CENTER;var At=D.Placement.properties[_t],Ct=this.contentAspectX,Ft=0,Lt=0,Yt=1,Ht=1;if(this._clip&&(Ct=this._clip.getAspectRatio(),Yt=this._clip.width/this.source.dimensions.x,Ht=this._clip.height/this.source.dimensions.y,mt.getAspectRatio()>Ct?(Ft=this._clip.x/this._clip.height*mt.height,Lt=this._clip.y/this._clip.height*mt.height):(Ft=this._clip.x/this._clip.width*mt.width,Lt=this._clip.y/this._clip.width*mt.width)),mt.getAspectRatio()>Ct){var qt=mt.height/Ht,te=0;At.isHorizontallyCentered?te=(mt.width-mt.height*Ct)/2:At.isRight&&(te=mt.width-mt.height*Ct),this.setPosition(new D.Point(mt.x-Ft+te,mt.y-Lt),Et),this.setHeight(qt,Et)}else{var Xt=mt.width/Yt,Dt=0;At.isVerticallyCentered?Dt=(mt.height-mt.width/Ct)/2:At.isBottom&&(Dt=mt.height-mt.width/Ct),this.setPosition(new D.Point(mt.x-Ft,mt.y-Lt+Dt),Et),this.setWidth(Xt,Et)}},getClip:function(){return this._clip?this._clip.clone():null},setClip:function(mt){D.console.assert(!mt||mt instanceof D.Rect,"[TiledImage.setClip] newClip must be an OpenSeadragon.Rect or null"),mt instanceof D.Rect?this._clip=mt.clone():this._clip=null,this._needsDraw=!0,this.raiseEvent("clip-change")},getOpacity:function(){return this.opacity},setOpacity:function(mt){mt!==this.opacity&&(this.opacity=mt,this._needsDraw=!0,this.raiseEvent("opacity-change",{opacity:this.opacity}))},getPreload:function(){return this._preload},setPreload:function(mt){this._preload=!!mt,this._needsDraw=!0},getRotation:function(mt){return mt?this._degreesSpring.current.value:this._degreesSpring.target.value},setRotation:function(mt,_t){this._degreesSpring.target.value===mt&&this._degreesSpring.isAtTargetValue()||(_t?this._degreesSpring.resetTo(mt):this._degreesSpring.springTo(mt),this._needsDraw=!0,this._raiseBoundsChange())},_getRotationPoint:function(mt){return this.getBoundsNoRotate(mt).getCenter()},getCompositeOperation:function(){return this.compositeOperation},setCompositeOperation:function(mt){mt!==this.compositeOperation&&(this.compositeOperation=mt,this._needsDraw=!0,this.raiseEvent("composite-operation-change",{compositeOperation:this.compositeOperation}))},_setScale:function(mt,_t){var Et=this._scaleSpring.target.value===mt;if(_t){if(Et&&this._scaleSpring.current.value===mt)return;this._scaleSpring.resetTo(mt),this._updateForScale(),this._needsDraw=!0}else{if(Et)return;this._scaleSpring.springTo(mt),this._updateForScale(),this._needsDraw=!0}Et||this._raiseBoundsChange()},_updateForScale:function(){this._worldWidthTarget=this._scaleSpring.target.value,this._worldHeightTarget=this.normHeight*this._scaleSpring.target.value,this._worldWidthCurrent=this._scaleSpring.current.value,this._worldHeightCurrent=this.normHeight*this._scaleSpring.current.value},_raiseBoundsChange:function(){this.raiseEvent("bounds-change")},_isBottomItem:function(){return this.viewer.world.getItemAt(0)===this},_getLevelsInterval:function(){var mt=Math.max(this.source.minLevel,Math.floor(Math.log(this.minZoomImageRatio)/Math.log(2))),_t=this.viewport.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(0),!0).x*this._scaleSpring.current.value,Et=Math.min(Math.abs(this.source.maxLevel),Math.abs(Math.floor(Math.log(_t/this.minPixelRatio)/Math.log(2))));return Et=Math.max(Et,this.source.minLevel||0),mt=Math.min(mt,Et),{lowestLevel:mt,highestLevel:Et}},_updateViewport:function(){for(this._needsDraw=!1,this._tilesLoading=0,this.loadingCoverage={};this.lastDrawn.length>0;){var mt=this.lastDrawn.pop();mt.beingDrawn=!1}var _t=this.viewport,Et=this._viewportToTiledImageRectangle(_t.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var At=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(Et=Et.intersection(At),Et===null)return}for(var Ct=this._getLevelsInterval(),Ft=Ct.lowestLevel,Lt=Ct.highestLevel,Yt=null,Ht=!1,qt=D.now(),te=Lt;te>=Ft;te--){var Xt=!1,Dt=_t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(te),!0).x*this._scaleSpring.current.value;if(te===Ft||!Ht&&Dt>=this.minPixelRatio)Xt=!0,Ht=!0;else if(!Ht)continue;var Qt=_t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(te),!1).x*this._scaleSpring.current.value,Nt=_t.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,ce=this.immediateRender?1:Nt,Pt=Math.min(1,(Dt-.5)/.5),de=ce/Math.abs(ce-Qt);if(Yt=O(this,Ht,Xt,te,Pt,de,Et,qt,Yt),nt(this.coverage,te))break}bt(this,this.lastDrawn),Yt&&!Yt.context2D?(Y(this,Yt,qt),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(this._tilesLoading===0)},_getCornerTiles:function(mt,_t,Et){var At,Ct;this.wrapHorizontal?(At=D.positiveModulo(_t.x,1),Ct=D.positiveModulo(Et.x,1)):(At=Math.max(0,_t.x),Ct=Math.min(1,Et.x));var Ft,Lt,Yt=1/this.source.aspectRatio;this.wrapVertical?(Ft=D.positiveModulo(_t.y,Yt),Lt=D.positiveModulo(Et.y,Yt)):(Ft=Math.max(0,_t.y),Lt=Math.min(Yt,Et.y));var Ht=this.source.getTileAtPoint(mt,new D.Point(At,Ft)),qt=this.source.getTileAtPoint(mt,new D.Point(Ct,Lt)),te=this.source.getNumTiles(mt);return this.wrapHorizontal&&(Ht.x+=te.x*Math.floor(_t.x),qt.x+=te.x*Math.floor(Et.x)),this.wrapVertical&&(Ht.y+=te.y*Math.floor(_t.y/Yt),qt.y+=te.y*Math.floor(Et.y/Yt)),{topLeft:Ht,bottomRight:qt}}});function O(mt,_t,Et,At,Ct,Ft,Lt,Yt,Ht){var qt=Lt.getBoundingBox().getTopLeft(),te=Lt.getBoundingBox().getBottomRight();mt.viewer&&mt.viewer.raiseEvent("update-level",{tiledImage:mt,havedrawn:_t,level:At,opacity:Ct,visibility:Ft,drawArea:Lt,topleft:qt,bottomright:te,currenttime:Yt,best:Ht}),lt(mt.coverage,At),lt(mt.loadingCoverage,At);for(var Xt=mt._getCornerTiles(At,qt,te),Dt=Xt.topLeft,Qt=Xt.bottomRight,Nt=mt.source.getNumTiles(At),ce=mt.viewport.pixelFromPoint(mt.viewport.getCenter()),Pt=Dt.x;Pt<=Qt.x;Pt++)for(var de=Dt.y;de<=Qt.y;de++){if(!mt.wrapHorizontal&&!mt.wrapVertical){var ye=mt.source.getTileBounds(At,Pt,de);if(Lt.intersection(ye)===null)continue}Ht=z(mt,Et,_t,Pt,de,At,Ct,Ft,ce,Nt,Yt,Ht)}return Ht}function z(mt,_t,Et,At,Ct,Ft,Lt,Yt,Ht,qt,te,Xt){var Dt=F(At,Ct,Ft,mt,mt.source,mt.tilesMatrix,te,qt,mt._worldWidthCurrent,mt._worldHeightCurrent),Qt=Et;mt.viewer&&mt.viewer.raiseEvent("update-tile",{tiledImage:mt,tile:Dt}),ct(mt.coverage,Ft,At,Ct,!1);var Nt=Dt.loaded||Dt.loading||st(mt.loadingCoverage,Ft,At,Ct);if(ct(mt.loadingCoverage,Ft,At,Ct,Nt),!Dt.exists||(_t&&!Qt&&(st(mt.coverage,Ft,At,Ct)?ct(mt.coverage,Ft,At,Ct,!0):Qt=!0),!Qt))return Xt;if(X(Dt,mt.source.tileOverlap,mt.viewport,Ht,Yt,mt),!Dt.loaded)if(Dt.context2D)q(mt,Dt);else{var ce=mt._tileCache.getImageRecord(Dt.cacheKey);if(ce){var Pt=ce.getImage();q(mt,Dt,Pt)}}if(Dt.loaded){var de=tt(mt,Dt,At,Ct,Ft,Lt,te);de&&(mt._needsDraw=!0)}else Dt.loading?mt._tilesLoading++:Nt||(Xt=ht(Xt,Dt));return Xt}function F(mt,_t,Et,At,Ct,Ft,Lt,Yt,Ht,qt){var te,Xt,Dt,Qt,Nt,ce,Pt,de,ye;return Ft[Et]||(Ft[Et]={}),Ft[Et][mt]||(Ft[Et][mt]={}),Ft[Et][mt][_t]||(te=(Yt.x+mt%Yt.x)%Yt.x,Xt=(Yt.y+_t%Yt.y)%Yt.y,Dt=Ct.getTileBounds(Et,te,Xt),Qt=Ct.getTileBounds(Et,te,Xt,!0),Nt=Ct.tileExists(Et,te,Xt),ce=Ct.getTileUrl(Et,te,Xt),At.loadTilesWithAjax?(Pt=Ct.getTileAjaxHeaders(Et,te,Xt),D.isPlainObject(At.ajaxHeaders)&&(Pt=D.extend({},At.ajaxHeaders,Pt))):Pt=null,de=Ct.getContext2D?Ct.getContext2D(Et,te,Xt):void 0,Dt.x+=(mt-te)/Yt.x,Dt.y+=qt/Ht*((_t-Xt)/Yt.y),ye=new D.Tile(Et,mt,_t,Dt,Nt,ce,de,At.loadTilesWithAjax,Pt,Qt),te===Yt.x-1&&(ye.isRightMost=!0),Xt===Yt.y-1&&(ye.isBottomMost=!0),Ft[Et][mt][_t]=ye),ye=Ft[Et][mt][_t],ye.lastTouchTime=Lt,ye}function Y(mt,_t,Et){_t.loading=!0,mt._imageLoader.addJob({src:_t.url,loadWithAjax:_t.loadWithAjax,ajaxHeaders:_t.ajaxHeaders,crossOriginPolicy:mt.crossOriginPolicy,ajaxWithCredentials:mt.ajaxWithCredentials,callback:function(At,Ct,Ft){W(mt,_t,Et,At,Ct,Ft)},abort:function(){_t.loading=!1}})}function W(mt,_t,Et,At,Ct,Ft){if(!At){D.console.log("Tile %s failed to load: %s - error: %s",_t,_t.url,Ct),mt.viewer.raiseEvent("tile-load-failed",{tile:_t,tiledImage:mt,time:Et,message:Ct,tileRequest:Ft}),_t.loading=!1,_t.exists=!1;return}if(Etmt.visibility||_t.visibility==mt.visibility&&_t.squaredDistance1&&Yt>mt.smoothTileEdgesMinZoom&&!mt.iOSDevice&&mt.getRotation(!0)%360===0&&D.supportsCanvas&&(At=!0,Ct=Et.getScaleForEdgeSmoothing(),Ft=Et.getTranslationForEdgeSmoothing(Ct,mt._drawer.getCanvasSize(!1),mt._drawer.getCanvasSize(!0)));var Ht;At&&(Ct||(Ht=mt.viewport.viewportToViewerElementRectangle(mt.getClippedBounds(!0)).getIntegerBoundingBox(),mt._drawer.viewer.viewport.getFlip()&&(mt.viewport.degrees!==0||mt.getRotation(!0)%360!==0)&&(Ht.x=mt._drawer.viewer.container.clientWidth-(Ht.x+Ht.width)),Ht=Ht.times(D.pixelDensityRatio)),mt._drawer._clear(!0,Ht)),Ct||(mt.viewport.degrees!==0&&mt._drawer._offsetForRotation({degrees:mt.viewport.degrees,useSketch:At}),mt.getRotation(!0)%360!==0&&mt._drawer._offsetForRotation({degrees:mt.getRotation(!0),point:mt.viewport.pixelFromPointNoRotate(mt._getRotationPoint(!0),!0),useSketch:At}),mt.viewport.degrees===0&&mt.getRotation(!0)%360===0&&mt._drawer.viewer.viewport.getFlip()&&mt._drawer._flip());var qt=!1;if(mt._clip){mt._drawer.saveContext(At);var te=mt.imageToViewportRectangle(mt._clip,!0);te=te.rotate(-mt.getRotation(!0),mt._getRotationPoint(!0));var Xt=mt._drawer.viewportToDrawerRectangle(te);Ct&&(Xt=Xt.times(Ct)),Ft&&(Xt=Xt.translate(Ft)),mt._drawer.setClip(Xt,At),qt=!0}if(mt._croppingPolygons){mt._drawer.saveContext(At);try{var Dt=mt._croppingPolygons.map(function(Pt){return Pt.map(function(de){var ye=mt.imageToViewportCoordinates(de.x,de.y,!0).rotate(-mt.getRotation(!0),mt._getRotationPoint(!0)),pe=mt._drawer.viewportCoordToDrawerCoord(ye);return Ct&&(pe=pe.times(Ct)),pe})});mt._drawer.clipWithPolygons(Dt,At)}catch(Pt){D.console.error(Pt)}qt=!0}if(mt.placeholderFillStyle&&mt._hasOpaqueTile===!1){var Qt=mt._drawer.viewportToDrawerRectangle(mt.getBounds(!0));Ct&&(Qt=Qt.times(Ct)),Ft&&(Qt=Qt.translate(Ft));var Nt=null;typeof mt.placeholderFillStyle=="function"?Nt=mt.placeholderFillStyle(mt,mt._drawer.context):Nt=mt.placeholderFillStyle,mt._drawer.drawRectangle(Qt,Nt,At)}for(var ce=_t.length-1;ce>=0;ce--)Et=_t[ce],mt._drawer.drawTile(Et,mt._drawingHandler,At,Ct,Ft),Et.beingDrawn=!0,mt.viewer&&mt.viewer.raiseEvent("tile-drawn",{tiledImage:mt,tile:Et});qt&&mt._drawer.restoreContext(At),Ct||(mt.getRotation(!0)%360!==0&&mt._drawer._restoreRotationChanges(At),mt.viewport.degrees!==0&&mt._drawer._restoreRotationChanges(At)),At&&(Ct&&(mt.viewport.degrees!==0&&mt._drawer._offsetForRotation({degrees:mt.viewport.degrees,useSketch:!1}),mt.getRotation(!0)%360!==0&&mt._drawer._offsetForRotation({degrees:mt.getRotation(!0),point:mt.viewport.pixelFromPointNoRotate(mt._getRotationPoint(!0),!0),useSketch:!1})),mt._drawer.blendSketch({opacity:mt.opacity,scale:Ct,translate:Ft,compositeOperation:mt.compositeOperation,bounds:Ht}),Ct&&(mt.getRotation(!0)%360!==0&&mt._drawer._restoreRotationChanges(!1),mt.viewport.degrees!==0&&mt._drawer._restoreRotationChanges(!1))),Ct||mt.viewport.degrees===0&&mt.getRotation(!0)%360===0&&mt._drawer.viewer.viewport.getFlip()&&mt._drawer._flip(),wt(mt,_t)}}function wt(mt,_t){if(mt.debugMode)for(var Et=_t.length-1;Et>=0;Et--){var At=_t[Et];try{mt._drawer.drawDebugInfo(At,_t.length,Et,mt)}catch(Ct){D.console.error(Ct)}}}}(OpenSeadragon),function(D){var O=function(F){D.console.assert(F,"[TileCache.cacheTile] options is required"),D.console.assert(F.tile,"[TileCache.cacheTile] options.tile is required"),D.console.assert(F.tiledImage,"[TileCache.cacheTile] options.tiledImage is required"),this.tile=F.tile,this.tiledImage=F.tiledImage},z=function(F){D.console.assert(F,"[ImageRecord] options is required"),D.console.assert(F.image,"[ImageRecord] options.image is required"),this._image=F.image,this._tiles=[]};z.prototype={destroy:function(){this._image=null,this._renderedContext=null,this._tiles=null},getImage:function(){return this._image},getRenderedContext:function(){if(!this._renderedContext){var F=document.createElement("canvas");F.width=this._image.width,F.height=this._image.height,this._renderedContext=F.getContext("2d"),this._renderedContext.drawImage(this._image,0,0),this._image=null}return this._renderedContext},setRenderedContext:function(F){D.console.error("ImageRecord.setRenderedContext is deprecated. The rendered context should be created by the ImageRecord itself when calling ImageRecord.getRenderedContext."),this._renderedContext=F},addTile:function(F){D.console.assert(F,"[ImageRecord.addTile] tile is required"),this._tiles.push(F)},removeTile:function(F){for(var Y=0;Ythis._maxImageCacheCount){for(var X=null,tt=-1,nt=null,st,ct,lt,ht,bt,wt,mt=this._tilesLoaded.length-1;mt>=0;mt--)if(wt=this._tilesLoaded[mt],st=wt.tile,!(st.level<=Y||st.beingDrawn)){if(!X){X=st,tt=mt,nt=wt;continue}ht=st.lastTouchTime,ct=X.lastTouchTime,bt=st.level,lt=X.level,(htlt)&&(X=st,tt=mt,nt=wt)}X&&tt>=0&&(this._unloadTile(nt),W=tt)}this._tilesLoaded[W]=new O({tile:F.tile,tiledImage:F.tiledImage})},clearTilesFor:function(F){D.console.assert(F,"[TileCache.clearTilesFor] tiledImage is required");for(var Y,W=0;W=this._items.length)throw new Error("Index bigger than number of layers.");z===F||F===-1||(this._items.splice(F,1),this._items.splice(z,0,O),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:O,previousIndex:F,newIndex:z}))},removeItem:function(O){D.console.assert(O,"[World.removeItem] item is required");var z=D.indexOf(this._items,O);z!==-1&&(O.removeHandler("bounds-change",this._delegatedFigureSizes),O.removeHandler("clip-change",this._delegatedFigureSizes),O.destroy(),this._items.splice(z,1),this._figureSizes(),this._needsDraw=!0,this._raiseRemoveItem(O))},removeAll:function(){this.viewer._cancelPendingImages();var O,z;for(z=0;zht.height?bt=q:bt=q*(ht.width/ht.height),wt=bt*(ht.height/ht.width),mt=new D.Point(st+(q-bt)/2,ct+(q-wt)/2),lt.setPosition(mt,z),lt.setWidth(bt,z),F==="horizontal"?st+=tt:ct+=tt;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var O=this._homeBounds?this._homeBounds.clone():null,z=this._contentSize?this._contentSize.clone():null,F=this._contentFactor||0;if(!this._items.length)this._homeBounds=new D.Rect(0,0,1,1),this._contentSize=new D.Point(1,1),this._contentFactor=1;else{var Y=this._items[0],W=Y.getBounds();this._contentFactor=Y.getContentSize().x/W.width;for(var q=Y.getClippedBounds().getBoundingBox(),X=q.x,tt=q.y,nt=q.x+q.width,st=q.y+q.height,ct=1;cttt.version.major)throw new Error("OpenSeadragonViewerInputHook requires OpenSeadragon version 1.0.0+");return tt.Viewer.prototype.addViewerInputHook=function(st){return(st=st||{}).viewer=this,new nt.ViewerInputHook(st)},nt.ViewerInputHook=function(st){var ct,lt;for((st=st||{}).hooks=st.hooks||[],this.viewer=st.viewer||null,this.viewerTrackers={},this.hooks=[],this.viewer&&(this.viewerTrackers.viewer=this.viewer.innerTracker,this.viewerTrackers.viewer_outer=this.viewer.outerTracker),ct=0;ctbt in ht?z(ht,bt,{enumerable:!0,configurable:!0,writable:!0,value:wt}):ht[bt]=wt,nt=(ht,bt)=>{for(var wt in bt||(bt={}))q.call(bt,wt)&&tt(ht,wt,bt[wt]);if(W)for(var wt of W(bt))X.call(bt,wt)&&tt(ht,wt,bt[wt]);return ht},st=(ht,bt)=>F(ht,Y(bt)),ct=(ht,bt)=>{var wt={};for(var mt in ht)q.call(ht,mt)&&bt.indexOf(mt)<0&&(wt[mt]=ht[mt]);if(ht!=null&&W)for(var mt of W(ht))bt.indexOf(mt)<0&&X.call(ht,mt)&&(wt[mt]=ht[mt]);return wt},lt=(ht,bt,wt)=>(tt(ht,typeof bt!="symbol"?bt+"":bt,wt),wt);(function(ht,bt){D.exports=bt(requireOpenseadragon())})(commonjsGlobal$1,function(ht){function bt(et){return et&&typeof et=="object"&&"default"in et?et:{default:et}}var wt=bt(ht),mt,_t,Et,At,Ct,Ft,Lt,Yt={},Ht=[],qt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function te(et,ot){for(var ut in ot)et[ut]=ot[ut];return et}function Xt(et){var ot=et.parentNode;ot&&ot.removeChild(et)}function Dt(et,ot,ut){var dt,gt,Mt,zt={};for(Mt in ot)Mt=="key"?dt=ot[Mt]:Mt=="ref"?gt=ot[Mt]:zt[Mt]=ot[Mt];if(arguments.length>2&&(zt.children=arguments.length>3?mt.call(arguments,2):ut),typeof et=="function"&&et.defaultProps!=null)for(Mt in et.defaultProps)zt[Mt]===void 0&&(zt[Mt]=et.defaultProps[Mt]);return Qt(et,zt,dt,gt,null)}function Qt(et,ot,ut,dt,gt){var Mt={type:et,props:ot,key:ut,ref:dt,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:gt??++Et};return _t.vnode!=null&&_t.vnode(Mt),Mt}function Nt(){return{current:null}}function ce(et){return et.children}function Pt(et,ot){this.props=et,this.context=ot}function de(et,ot){if(ot==null)return et.__?de(et.__,et.__.__k.indexOf(et)+1):null;for(var ut;ot0?Qt(ln.type,ln.props,ln.key,null,ln.__v):ln)!=null){if(ln.__=ut,ln.__b=ut.__b+1,(tn=or[le])===null||tn&&ln.key==tn.key&&ln.type===tn.type)or[le]=void 0;else for(Ue=0;Ue2&&(zt.children=arguments.length>3?mt.call(arguments,2):ut),Qt(et.type,zt,dt||et.key,gt||et.ref,null)}function ge(et,ot){var ut={__c:ot="__cC"+Lt++,__:et,Consumer:function(dt,gt){return dt.children(gt)},Provider:function(dt){var gt,Mt;return this.getChildContext||(gt=[],(Mt={})[ot]=this,this.getChildContext=function(){return Mt},this.shouldComponentUpdate=function(zt){this.props.value!==zt.value&>.some(pe)},this.sub=function(zt){gt.push(zt);var Jt=zt.componentWillUnmount;zt.componentWillUnmount=function(){gt.splice(gt.indexOf(zt),1),Jt&&Jt.call(zt)}}),dt.children}};return ut.Provider.__=ut.Consumer.contextType=ut}mt=Ht.slice,_t={__e:function(et,ot){for(var ut,dt,gt;ot=ot.__;)if((ut=ot.__c)&&!ut.__)try{if((dt=ut.constructor)&&dt.getDerivedStateFromError!=null&&(ut.setState(dt.getDerivedStateFromError(et)),gt=ut.__d),ut.componentDidCatch!=null&&(ut.componentDidCatch(et),gt=ut.__d),gt)return ut.__E=ut}catch(Mt){et=Mt}throw et}},Et=0,Pt.prototype.setState=function(et,ot){var ut;ut=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=te({},this.state),typeof et=="function"&&(et=et(te({},ut),this.props)),et&&te(ut,et),et!=null&&this.__v&&(ot&&this.__h.push(ot),pe(this))},Pt.prototype.forceUpdate=function(et){this.__v&&(this.__e=!0,et&&this.__h.push(et),pe(this))},Pt.prototype.render=ce,At=[],Ct=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ve.__r=0,Lt=0;var Pe,ke,$e,Fe=0,Qe=[],We=_t.__b,rn=_t.__r,zn=_t.diffed,Bn=_t.__c,Pn=_t.unmount;function jn(et,ot){_t.__h&&_t.__h(ke,et,Fe||ot),Fe=0;var ut=ke.__H||(ke.__H={__:[],__h:[]});return et>=ut.__.length&&ut.__.push({}),ut.__[et]}function Jn(et){return Fe=1,rr(Wn,et)}function rr(et,ot,ut){var dt=jn(Pe++,2);return dt.t=et,dt.__c||(dt.__=[ut?ut(ot):Wn(void 0,ot),function(gt){var Mt=dt.t(dt.__[0],gt);dt.__[0]!==Mt&&(dt.__=[Mt,dt.__[1]],dt.__c.setState({}))}],dt.__c=ke),dt.__}function sr(et,ot){var ut=jn(Pe++,3);!_t.__s&&Kn(ut.__H,ot)&&(ut.__=et,ut.__H=ot,ke.__H.__h.push(ut))}function on(et,ot){var ut=jn(Pe++,4);!_t.__s&&Kn(ut.__H,ot)&&(ut.__=et,ut.__H=ot,ke.__h.push(ut))}function ie(et){return Fe=5,xe(function(){return{current:et}},[])}function ne(et,ot,ut){Fe=6,on(function(){typeof et=="function"?et(ot()):et&&(et.current=ot())},ut==null?ut:ut.concat(et))}function xe(et,ot){var ut=jn(Pe++,7);return Kn(ut.__H,ot)&&(ut.__=et(),ut.__H=ot,ut.__h=et),ut.__}function Ae(et,ot){return Fe=8,xe(function(){return et},ot)}function Ve(et){var ot=ke.context[et.__c],ut=jn(Pe++,9);return ut.c=et,ot?(ut.__==null&&(ut.__=!0,ot.sub(ke)),ot.props.value):et.__}function vn(et,ot){_t.useDebugValue&&_t.useDebugValue(ot?ot(et):et)}function Ge(et){var ot=jn(Pe++,10),ut=Jn();return ot.__=et,ke.componentDidCatch||(ke.componentDidCatch=function(dt){ot.__&&ot.__(dt),ut[1](dt)}),[ut[0],function(){ut[1](void 0)}]}function Dn(){Qe.forEach(function(et){if(et.__P)try{et.__H.__h.forEach(Fn),et.__H.__h.forEach($n),et.__H.__h=[]}catch(ot){et.__H.__h=[],_t.__e(ot,et.__v)}}),Qe=[]}_t.__b=function(et){ke=null,We&&We(et)},_t.__r=function(et){rn&&rn(et),Pe=0;var ot=(ke=et.__c).__H;ot&&(ot.__h.forEach(Fn),ot.__h.forEach($n),ot.__h=[])},_t.diffed=function(et){zn&&zn(et);var ot=et.__c;ot&&ot.__H&&ot.__H.__h.length&&(Qe.push(ot)!==1&&$e===_t.requestAnimationFrame||(($e=_t.requestAnimationFrame)||function(ut){var dt,gt=function(){clearTimeout(Mt),en&&cancelAnimationFrame(dt),setTimeout(ut)},Mt=setTimeout(gt,100);en&&(dt=requestAnimationFrame(gt))})(Dn)),ke=void 0},_t.__c=function(et,ot){ot.some(function(ut){try{ut.__h.forEach(Fn),ut.__h=ut.__h.filter(function(dt){return!dt.__||$n(dt)})}catch(dt){ot.some(function(gt){gt.__h&&(gt.__h=[])}),ot=[],_t.__e(dt,ut.__v)}}),Bn&&Bn(et,ot)},_t.unmount=function(et){Pn&&Pn(et);var ot=et.__c;if(ot&&ot.__H)try{ot.__H.__.forEach(Fn)}catch(ut){_t.__e(ut,ot.__v)}};var en=typeof requestAnimationFrame=="function";function Fn(et){var ot=ke;typeof et.__c=="function"&&et.__c(),ke=ot}function $n(et){var ot=ke;et.__c=et.__(),ke=ot}function Kn(et,ot){return!et||et.length!==ot.length||ot.some(function(ut,dt){return ut!==et[dt]})}function Wn(et,ot){return typeof ot=="function"?ot(et):ot}function mr(et,ot){for(var ut in ot)et[ut]=ot[ut];return et}function ir(et,ot){for(var ut in et)if(ut!=="__source"&&!(ut in ot))return!0;for(var dt in ot)if(dt!=="__source"&&et[dt]!==ot[dt])return!0;return!1}function wr(et){this.props=et}function Lr(et,ot){function ut(gt){var Mt=this.props.ref,zt=Mt==gt.ref;return!zt&&Mt&&(Mt.call?Mt(null):Mt.current=null),ot?!ot(this.props,gt)||!zt:ir(this.props,gt)}function dt(gt){return this.shouldComponentUpdate=ut,Dt(et,gt)}return dt.displayName="Memo("+(et.displayName||et.name)+")",dt.prototype.isReactComponent=!0,dt.__f=!0,dt}(wr.prototype=new Pt).isPureReactComponent=!0,wr.prototype.shouldComponentUpdate=function(et,ot){return ir(this.props,et)||ir(this.state,ot)};var Dr=_t.__b;_t.__b=function(et){et.type&&et.type.__f&&et.ref&&(et.props.ref=et.ref,et.ref=null),Dr&&Dr(et)};var Fo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function xo(et){function ot(ut,dt){var gt=mr({},ut);return delete gt.ref,et(gt,(dt=ut.ref||dt)&&(typeof dt!="object"||"current"in dt)?dt:null)}return ot.$$typeof=Fo,ot.render=ot,ot.prototype.isReactComponent=ot.__f=!0,ot.displayName="ForwardRef("+(et.displayName||et.name)+")",ot}var tr=function(et,ot){return et==null?null:Oe(Oe(et).map(ot))},Cr={map:tr,forEach:tr,count:function(et){return et?Oe(et).length:0},only:function(et){var ot=Oe(et);if(ot.length!==1)throw"Children.only";return ot[0]},toArray:Oe},go=_t.__e;_t.__e=function(et,ot,ut){if(et.then){for(var dt,gt=ot;gt=gt.__;)if((dt=gt.__c)&&dt.__c)return ot.__e==null&&(ot.__e=ut.__e,ot.__k=ut.__k),dt.__c(et,ot)}go(et,ot,ut)};var Un=_t.unmount;function zi(){this.__u=0,this.t=null,this.__b=null}function uo(et){var ot=et.__.__c;return ot&&ot.__e&&ot.__e(et)}function io(et){var ot,ut,dt;function gt(Mt){if(ot||(ot=et()).then(function(zt){ut=zt.default||zt},function(zt){dt=zt}),dt)throw dt;if(!ut)throw ot;return Dt(ut,Mt)}return gt.displayName="Lazy",gt.__f=!0,gt}function sn(){this.u=null,this.o=null}_t.unmount=function(et){var ot=et.__c;ot&&ot.__R&&ot.__R(),ot&&et.__h===!0&&(et.type=null),Un&&Un(et)},(zi.prototype=new Pt).__c=function(et,ot){var ut=ot.__c,dt=this;dt.t==null&&(dt.t=[]),dt.t.push(ut);var gt=uo(dt.__v),Mt=!1,zt=function(){Mt||(Mt=!0,ut.__R=null,gt?gt(Jt):Jt())};ut.__R=zt;var Jt=function(){if(!--dt.__u){if(dt.state.__e){var he=dt.state.__e;dt.__v.__k[0]=function Ue(tn,ln,Mn){return tn&&(tn.__v=null,tn.__k=tn.__k&&tn.__k.map(function(Rn){return Ue(Rn,ln,Mn)}),tn.__c&&tn.__c.__P===ln&&(tn.__e&&Mn.insertBefore(tn.__e,tn.__d),tn.__c.__e=!0,tn.__c.__P=Mn)),tn}(he,he.__c.__P,he.__c.__O)}var le;for(dt.setState({__e:dt.__b=null});le=dt.t.pop();)le.forceUpdate()}},ue=ot.__h===!0;dt.__u++||ue||dt.setState({__e:dt.__b=dt.__v.__k[0]}),et.then(zt,zt)},zi.prototype.componentWillUnmount=function(){this.t=[]},zi.prototype.render=function(et,ot){if(this.__b){if(this.__v.__k){var ut=document.createElement("div"),dt=this.__v.__k[0].__c;this.__v.__k[0]=function Mt(zt,Jt,ue){return zt&&(zt.__c&&zt.__c.__H&&(zt.__c.__H.__.forEach(function(he){typeof he.__c=="function"&&he.__c()}),zt.__c.__H=null),(zt=mr({},zt)).__c!=null&&(zt.__c.__P===ue&&(zt.__c.__P=Jt),zt.__c=null),zt.__k=zt.__k&&zt.__k.map(function(he){return Mt(he,Jt,ue)})),zt}(this.__b,ut,dt.__O=dt.__P)}this.__b=null}var gt=ot.__e&&Dt(ce,null,et.fallback);return gt&&(gt.__h=null),[Dt(ce,null,ot.__e?null:et.children),gt]};var En=function(et,ot,ut){if(++ut[1]===ut[0]&&et.o.delete(ot),et.props.revealOrder&&(et.props.revealOrder[0]!=="t"||!et.o.size))for(ut=et.u;ut;){for(;ut.length>3;)ut.pop()();if(ut[1]>>1,1),ot.i.removeChild(dt)}}),oe(Dt(un,{context:ot.context},et.__v),ot.l)):ot.l&&ot.componentWillUnmount()}function gn(et,ot){return Dt(je,{__v:et,i:ot})}(sn.prototype=new Pt).__e=function(et){var ot=this,ut=uo(ot.__v),dt=ot.o.get(et);return dt[0]++,function(gt){var Mt=function(){ot.props.revealOrder?(dt.push(gt),En(ot,et,dt)):gt()};ut?ut(Mt):Mt()}},sn.prototype.render=function(et){this.u=null,this.o=new Map;var ot=Oe(et.children);et.revealOrder&&et.revealOrder[0]==="b"&&ot.reverse();for(var ut=ot.length;ut--;)this.o.set(ot[ut],this.u=[1,0,this.u]);return et.children},sn.prototype.componentDidUpdate=sn.prototype.componentDidMount=function(){var et=this;this.o.forEach(function(ot,ut){En(et,ut,ot)})};var In=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Er=function(et){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(et)};function Or(et,ot,ut){return ot.__k==null&&(ot.textContent=""),oe(et,ot),typeof ut=="function"&&ut(),et?et.__c:null}function ci(et,ot,ut){return Vt(et,ot),typeof ut=="function"&&ut(),et?et.__c:null}Pt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(et){Object.defineProperty(Pt.prototype,et,{configurable:!0,get:function(){return this["UNSAFE_"+et]},set:function(ot){Object.defineProperty(this,et,{configurable:!0,writable:!0,value:ot})}})});var Si=_t.event;function si(){}function mo(){return this.cancelBubble}function Co(){return this.defaultPrevented}_t.event=function(et){return Si&&(et=Si(et)),et.persist=si,et.isPropagationStopped=mo,et.isDefaultPrevented=Co,et.nativeEvent=et};var Uo,_r={configurable:!0,get:function(){return this.class}},Ir=_t.vnode;_t.vnode=function(et){var ot=et.type,ut=et.props,dt=ut;if(typeof ot=="string"){for(var gt in dt={},ut){var Mt=ut[gt];gt==="value"&&"defaultValue"in ut&&Mt==null||(gt==="defaultValue"&&"value"in ut&&ut.value==null?gt="value":gt==="download"&&Mt===!0?Mt="":/ondoubleclick/i.test(gt)?gt="ondblclick":/^onchange(textarea|input)/i.test(gt+ot)&&!Er(ut.type)?gt="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(gt)?gt=gt.toLowerCase():Hn.test(gt)?gt=gt.replace(/[A-Z0-9]/,"-$&").toLowerCase():Mt===null&&(Mt=void 0),dt[gt]=Mt)}ot=="select"&&dt.multiple&&Array.isArray(dt.value)&&(dt.value=Oe(ut.children).forEach(function(zt){zt.props.selected=dt.value.indexOf(zt.props.value)!=-1})),ot=="select"&&dt.defaultValue!=null&&(dt.value=Oe(ut.children).forEach(function(zt){zt.props.selected=dt.multiple?dt.defaultValue.indexOf(zt.props.value)!=-1:dt.defaultValue==zt.props.value})),et.props=dt}ot&&ut.class!=ut.className&&(_r.enumerable="className"in ut,ut.className!=null&&(dt.class=ut.className),Object.defineProperty(dt,"className",_r)),et.$$typeof=In,Ir&&Ir(et)};var $r=_t.__r;_t.__r=function(et){$r&&$r(et),Uo=et.__c};var er={ReactCurrentDispatcher:{current:{readContext:function(et){return Uo.__n[et.__c].props.value}}}},Nr="17.0.2";function Xe(et){return Dt.bind(null,et)}function xs(et){return!!et&&et.$$typeof===In}function an(et){return xs(et)?Be.apply(null,arguments):et}function Do(et){return!!et.__k&&(oe(null,et),!0)}function Ka(et){return et&&(et.base||et.nodeType===1&&et)||null}var ei=function(et,ot){return et(ot)},Pr=function(et,ot){return et(ot)},oc=ce,ur={useState:Jn,useReducer:rr,useEffect:sr,useLayoutEffect:on,useRef:ie,useImperativeHandle:ne,useMemo:xe,useCallback:Ae,useContext:Ve,useDebugValue:vn,version:"17.0.2",Children:Cr,render:Or,hydrate:ci,unmountComponentAtNode:Do,createPortal:gn,createElement:Dt,createContext:ge,createFactory:Xe,cloneElement:an,createRef:Nt,Fragment:ce,isValidElement:xs,findDOMNode:Ka,Component:Pt,PureComponent:wr,memo:Lr,forwardRef:xo,flushSync:Pr,unstable_batchedUpdates:ei,StrictMode:ce,Suspense:zi,SuspenseList:sn,lazy:io,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:er},Yr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ur,version:Nr,Children:Cr,render:Or,hydrate:ci,unmountComponentAtNode:Do,createPortal:gn,createFactory:Xe,cloneElement:an,isValidElement:xs,findDOMNode:Ka,PureComponent:wr,memo:Lr,forwardRef:xo,flushSync:Pr,unstable_batchedUpdates:ei,StrictMode:oc,Suspense:zi,SuspenseList:sn,lazy:io,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:er,createElement:Dt,createContext:ge,createRef:Nt,Fragment:ce,Component:Pt,useState:Jn,useReducer:rr,useEffect:sr,useLayoutEffect:on,useRef:ie,useImperativeHandle:ne,useMemo:xe,useCallback:Ae,useContext:Ve,useDebugValue:vn,useErrorBoundary:Ge}),Qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof self<"u"?self:{};function tl(et){return et&&et.__esModule&&Object.prototype.hasOwnProperty.call(et,"default")?et.default:et}function _a(et){if(et.__esModule)return et;var ot=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(et).forEach(function(ut){var dt=Object.getOwnPropertyDescriptor(et,ut);Object.defineProperty(ot,ut,dt.get?dt:{enumerable:!0,get:function(){return et[ut]}})}),ot}var Mo={exports:{}};function ai(){}ai.prototype={on:function(et,ot,ut){var dt=this.e||(this.e={});return(dt[et]||(dt[et]=[])).push({fn:ot,ctx:ut}),this},once:function(et,ot,ut){var dt=this;function gt(){dt.off(et,gt),ot.apply(ut,arguments)}return gt._=ot,this.on(et,gt,ut)},emit:function(et){var ot=[].slice.call(arguments,1),ut=((this.e||(this.e={}))[et]||[]).slice(),dt=0,gt=ut.length;for(dt;dt0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";var dt=(et=window.document)===null||et===void 0||(ot=et.documentElement)===null||ot===void 0?void 0:ot.style;if(!dt||ut in dt)return"";for(var gt=0;gt: Unmounted during event!");return ot}var Fa={},ac={};Object.defineProperty(ac,"__esModule",{value:!0}),ac.default=rl;function rl(){}function Ic(et){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ic=function(ot){return typeof ot}:Ic=function(ot){return ot&&typeof Symbol=="function"&&ot.constructor===Symbol&&ot!==Symbol.prototype?"symbol":typeof ot},Ic(et)}Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.default=void 0;var Ot=yi(Yo),Rt=Ln(wa.exports),ae=Ln(Yo),Se=zr,Re=Us,Ke=aa,hn=Ln(ac);function Ln(et){return et&&et.__esModule?et:{default:et}}function lr(et){if(typeof WeakMap!="function")return null;var ot=new WeakMap,ut=new WeakMap;return(lr=function(dt){return dt?ut:ot})(et)}function yi(et,ot){if(!ot&&et&&et.__esModule)return et;if(et===null||Ic(et)!=="object"&&typeof et!="function")return{default:et};var ut=lr(ot);if(ut&&ut.has(et))return ut.get(et);var dt={},gt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Mt in et)if(Mt!=="default"&&Object.prototype.hasOwnProperty.call(et,Mt)){var zt=gt?Object.getOwnPropertyDescriptor(et,Mt):null;zt&&(zt.get||zt.set)?Object.defineProperty(dt,Mt,zt):dt[Mt]=et[Mt]}return dt.default=et,ut&&ut.set(et,dt),dt}function ii(et,ot){return ao(et)||to(et,ot)||Ci(et,ot)||oo()}function oo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ci(et,ot){if(et){if(typeof et=="string")return Ri(et,ot);var ut=Object.prototype.toString.call(et).slice(8,-1);if(ut==="Object"&&et.constructor&&(ut=et.constructor.name),ut==="Map"||ut==="Set")return Array.from(et);if(ut==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ut))return Ri(et,ot)}}function Ri(et,ot){(ot==null||ot>et.length)&&(ot=et.length);for(var ut=0,dt=new Array(ot);ut"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lc(et){return Lc=Object.setPrototypeOf?Object.getPrototypeOf:function(ot){return ot.__proto__||Object.getPrototypeOf(ot)},Lc(et)}function Ca(et,ot,ut){return ot in et?Object.defineProperty(et,ot,{value:ut,enumerable:!0,configurable:!0,writable:!0}):et[ot]=ut,et}var ka={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},$l=ka.mouse,lu=function(et){il(ut,et);var ot=Bl(ut);function ut(){var dt;ho(this,ut);for(var gt=arguments.length,Mt=new Array(gt),zt=0;zt not mounted on DragStart!");var he=ue.ownerDocument;if(!(dt.props.disabled||!(Jt.target instanceof he.defaultView.Node)||dt.props.handle&&!(0,Se.matchesSelectorAndParentsTo)(Jt.target,dt.props.handle,ue)||dt.props.cancel&&(0,Se.matchesSelectorAndParentsTo)(Jt.target,dt.props.cancel,ue))){Jt.type==="touchstart"&&Jt.preventDefault();var le=(0,Se.getTouchIdentifier)(Jt);dt.setState({touchIdentifier:le});var Ue=(0,Re.getControlPosition)(Jt,le,ki(dt));if(Ue!=null){var tn=Ue.x,ln=Ue.y,Mn=(0,Re.createCoreData)(ki(dt),tn,ln);(0,hn.default)("DraggableCore: handleDragStart: %j",Mn),(0,hn.default)("calling",dt.props.onStart);var Rn=dt.props.onStart(Jt,Mn);Rn===!1||dt.mounted===!1||(dt.props.enableUserSelectHack&&(0,Se.addUserSelectStyles)(he),dt.setState({dragging:!0,lastX:tn,lastY:ln}),(0,Se.addEvent)(he,$l.move,dt.handleDrag),(0,Se.addEvent)(he,$l.stop,dt.handleDragStop))}}}),Ca(ki(dt),"handleDrag",function(Jt){var ue=(0,Re.getControlPosition)(Jt,dt.state.touchIdentifier,ki(dt));if(ue!=null){var he=ue.x,le=ue.y;if(Array.isArray(dt.props.grid)){var Ue=he-dt.state.lastX,tn=le-dt.state.lastY,ln=(0,Re.snapToGrid)(dt.props.grid,Ue,tn),Mn=ii(ln,2);if(Ue=Mn[0],tn=Mn[1],!Ue&&!tn)return;he=dt.state.lastX+Ue,le=dt.state.lastY+tn}var Rn=(0,Re.createCoreData)(ki(dt),he,le);(0,hn.default)("DraggableCore: handleDrag: %j",Rn);var On=dt.props.onDrag(Jt,Rn);if(On===!1||dt.mounted===!1){try{dt.handleDragStop(new MouseEvent("mouseup"))}catch{var or=document.createEvent("MouseEvents");or.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),dt.handleDragStop(or)}return}dt.setState({lastX:he,lastY:le})}}),Ca(ki(dt),"handleDragStop",function(Jt){if(dt.state.dragging){var ue=(0,Re.getControlPosition)(Jt,dt.state.touchIdentifier,ki(dt));if(ue!=null){var he=ue.x,le=ue.y,Ue=(0,Re.createCoreData)(ki(dt),he,le),tn=dt.props.onStop(Jt,Ue);if(tn===!1||dt.mounted===!1)return!1;var ln=dt.findDOMNode();ln&&dt.props.enableUserSelectHack&&(0,Se.removeUserSelectStyles)(ln.ownerDocument),(0,hn.default)("DraggableCore: handleDragStop: %j",Ue),dt.setState({dragging:!1,lastX:NaN,lastY:NaN}),ln&&((0,hn.default)("DraggableCore: Removing handlers"),(0,Se.removeEvent)(ln.ownerDocument,$l.move,dt.handleDrag),(0,Se.removeEvent)(ln.ownerDocument,$l.stop,dt.handleDragStop))}}}),Ca(ki(dt),"onMouseDown",function(Jt){return $l=ka.mouse,dt.handleDragStart(Jt)}),Ca(ki(dt),"onMouseUp",function(Jt){return $l=ka.mouse,dt.handleDragStop(Jt)}),Ca(ki(dt),"onTouchStart",function(Jt){return $l=ka.touch,dt.handleDragStart(Jt)}),Ca(ki(dt),"onTouchEnd",function(Jt){return $l=ka.touch,dt.handleDragStop(Jt)}),dt}return ef(ut,[{key:"componentDidMount",value:function(){this.mounted=!0;var dt=this.findDOMNode();dt&&(0,Se.addEvent)(dt,ka.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var dt=this.findDOMNode();if(dt){var gt=dt.ownerDocument;(0,Se.removeEvent)(gt,ka.mouse.move,this.handleDrag),(0,Se.removeEvent)(gt,ka.touch.move,this.handleDrag),(0,Se.removeEvent)(gt,ka.mouse.stop,this.handleDragStop),(0,Se.removeEvent)(gt,ka.touch.stop,this.handleDragStop),(0,Se.removeEvent)(dt,ka.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Se.removeUserSelectStyles)(gt)}}},{key:"findDOMNode",value:function(){var dt,gt,Mt;return(dt=(gt=this.props)===null||gt===void 0||(Mt=gt.nodeRef)===null||Mt===void 0?void 0:Mt.current)!==null&&dt!==void 0?dt:ae.default.findDOMNode(this)}},{key:"render",value:function(){return Ot.cloneElement(Ot.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),ut}(Ot.Component);Fa.default=lu,Ca(lu,"displayName","DraggableCore"),Ca(lu,"propTypes",{allowAnyClick:Rt.default.bool,disabled:Rt.default.bool,enableUserSelectHack:Rt.default.bool,offsetParent:function(et,ot){if(et[ot]&&et[ot].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Rt.default.arrayOf(Rt.default.number),handle:Rt.default.string,cancel:Rt.default.string,nodeRef:Rt.default.object,onStart:Rt.default.func,onDrag:Rt.default.func,onStop:Rt.default.func,onMouseDown:Rt.default.func,scale:Rt.default.number,className:Ke.dontSetMe,style:Ke.dontSetMe,transform:Ke.dontSetMe}),Ca(lu,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(et){function ot(Gn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ot=function(hr){return typeof hr}:ot=function(hr){return hr&&typeof Symbol=="function"&&hr.constructor===Symbol&&hr!==Symbol.prototype?"symbol":typeof hr},ot(Gn)}Object.defineProperty(et,"__esModule",{value:!0}),Object.defineProperty(et,"DraggableCore",{enumerable:!0,get:function(){return he.default}}),et.default=void 0;var ut=Mn(Yo),dt=tn(wa.exports),gt=tn(Yo),Mt=tn(ja),zt=zr,Jt=Us,ue=aa,he=tn(Fa),le=tn(ac),Ue=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function tn(Gn){return Gn&&Gn.__esModule?Gn:{default:Gn}}function ln(Gn){if(typeof WeakMap!="function")return null;var hr=new WeakMap,pr=new WeakMap;return(ln=function(dr){return dr?pr:hr})(Gn)}function Mn(Gn,hr){if(!hr&&Gn&&Gn.__esModule)return Gn;if(Gn===null||ot(Gn)!=="object"&&typeof Gn!="function")return{default:Gn};var pr=ln(hr);if(pr&&pr.has(Gn))return pr.get(Gn);var dr={},xr=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var hi in Gn)if(hi!=="default"&&Object.prototype.hasOwnProperty.call(Gn,hi)){var ys=xr?Object.getOwnPropertyDescriptor(Gn,hi):null;ys&&(ys.get||ys.set)?Object.defineProperty(dr,hi,ys):dr[hi]=Gn[hi]}return dr.default=Gn,pr&&pr.set(Gn,dr),dr}function Rn(){return Rn=Object.assign||function(Gn){for(var hr=1;hr=0)&&(!Object.prototype.propertyIsEnumerable.call(Gn,dr)||(pr[dr]=Gn[dr]))}return pr}function or(Gn,hr){if(Gn==null)return{};var pr={},dr=Object.keys(Gn),xr,hi;for(hi=0;hi=0)&&(pr[xr]=Gn[xr]);return pr}function fr(Gn,hr){var pr=Object.keys(Gn);if(Object.getOwnPropertySymbols){var dr=Object.getOwnPropertySymbols(Gn);hr&&(dr=dr.filter(function(xr){return Object.getOwnPropertyDescriptor(Gn,xr).enumerable})),pr.push.apply(pr,dr)}return pr}function oi(Gn){for(var hr=1;hrGn.length)&&(hr=Gn.length);for(var pr=0,dr=new Array(hr);pr"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ep(Gn){return ep=Object.setPrototypeOf?Object.getPrototypeOf:function(hr){return hr.__proto__||Object.getPrototypeOf(hr)},ep(Gn)}function eu(Gn,hr,pr){return hr in Gn?Object.defineProperty(Gn,hr,{value:pr,enumerable:!0,configurable:!0,writable:!0}):Gn[hr]=pr,Gn}var is=function(Gn){Ol(pr,Gn);var hr=tu(pr);function pr(dr){var xr;return jo(this,pr),xr=hr.call(this,dr),eu(Ja(xr),"onDragStart",function(hi,ys){(0,le.default)("Draggable: onDragStart: %j",ys);var ba=xr.props.onStart(hi,(0,Jt.createDraggableData)(Ja(xr),ys));if(ba===!1)return!1;xr.setState({dragging:!0,dragged:!0})}),eu(Ja(xr),"onDrag",function(hi,ys){if(!xr.state.dragging)return!1;(0,le.default)("Draggable: onDrag: %j",ys);var ba=(0,Jt.createDraggableData)(Ja(xr),ys),$o={x:ba.x,y:ba.y};if(xr.props.bounds){var np=$o.x,hh=$o.y;$o.x+=xr.state.slackX,$o.y+=xr.state.slackY;var Kd=(0,Jt.getBoundPosition)(Ja(xr),$o.x,$o.y),lg=Zr(Kd,2),B1=lg[0],$1=lg[1];$o.x=B1,$o.y=$1,$o.slackX=xr.state.slackX+(np-$o.x),$o.slackY=xr.state.slackY+(hh-$o.y),ba.x=$o.x,ba.y=$o.y,ba.deltaX=$o.x-xr.state.x,ba.deltaY=$o.y-xr.state.y}var pv=xr.props.onDrag(hi,ba);if(pv===!1)return!1;xr.setState($o)}),eu(Ja(xr),"onDragStop",function(hi,ys){if(!xr.state.dragging)return!1;var ba=xr.props.onStop(hi,(0,Jt.createDraggableData)(Ja(xr),ys));if(ba===!1)return!1;(0,le.default)("Draggable: onDragStop: %j",ys);var $o={dragging:!1,slackX:0,slackY:0},np=!!xr.props.position;if(np){var hh=xr.props.position,Kd=hh.x,lg=hh.y;$o.x=Kd,$o.y=lg}xr.setState($o)}),xr.state={dragging:!1,dragged:!1,x:dr.position?dr.position.x:dr.defaultPosition.x,y:dr.position?dr.position.y:dr.defaultPosition.y,prevPropsPosition:oi({},dr.position),slackX:0,slackY:0,isElementSVG:!1},dr.position&&!(dr.onDrag||dr.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),xr}return Kc(pr,[{key:"componentDidMount",value:function(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var dr,xr,hi;return(dr=(xr=this.props)===null||xr===void 0||(hi=xr.nodeRef)===null||hi===void 0?void 0:hi.current)!==null&&dr!==void 0?dr:gt.default.findDOMNode(this)}},{key:"render",value:function(){var dr,xr=this.props;xr.axis,xr.bounds;var hi=xr.children,ys=xr.defaultPosition,ba=xr.defaultClassName,$o=xr.defaultClassNameDragging,np=xr.defaultClassNameDragged,hh=xr.position,Kd=xr.positionOffset;xr.scale;var lg=On(xr,Ue),B1={},$1=null,pv=!!hh,_b=!pv||this.state.dragging,wb=hh||ys,xb={x:(0,Jt.canDragX)(this)&&_b?this.state.x:wb.x,y:(0,Jt.canDragY)(this)&&_b?this.state.y:wb.y};this.state.isElementSVG?$1=(0,zt.createSVGTransform)(xb,Kd):B1=(0,zt.createCSSTransform)(xb,Kd);var Uw=(0,Mt.default)(hi.props.className||"",ba,(dr={},eu(dr,$o,this.state.dragging),eu(dr,np,this.state.dragged),dr));return ut.createElement(he.default,Rn({},lg,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),ut.cloneElement(ut.Children.only(hi),{className:Uw,style:oi(oi({},hi.props.style),B1),transform:$1}))}}],[{key:"getDerivedStateFromProps",value:function(dr,xr){var hi=dr.position,ys=xr.prevPropsPosition;return hi&&(!ys||hi.x!==ys.x||hi.y!==ys.y)?((0,le.default)("Draggable: getDerivedStateFromProps %j",{position:hi,prevPropsPosition:ys}),{x:hi.x,y:hi.y,prevPropsPosition:oi({},hi)}):null}}]),pr}(ut.Component);et.default=is,eu(is,"displayName","Draggable"),eu(is,"propTypes",oi(oi({},he.default.propTypes),{},{axis:dt.default.oneOf(["both","x","y","none"]),bounds:dt.default.oneOfType([dt.default.shape({left:dt.default.number,right:dt.default.number,top:dt.default.number,bottom:dt.default.number}),dt.default.string,dt.default.oneOf([!1])]),defaultClassName:dt.default.string,defaultClassNameDragging:dt.default.string,defaultClassNameDragged:dt.default.string,defaultPosition:dt.default.shape({x:dt.default.number,y:dt.default.number}),positionOffset:dt.default.shape({x:dt.default.oneOfType([dt.default.number,dt.default.string]),y:dt.default.oneOfType([dt.default.number,dt.default.string])}),position:dt.default.shape({x:dt.default.number,y:dt.default.number}),className:ue.dontSetMe,style:ue.dontSetMe,transform:ue.dontSetMe})),eu(is,"defaultProps",oi(oi({},he.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))}(el);var cu=el,wh=cu.default,xh=cu.DraggableCore;Io.exports=wh,Io.exports.default=wh,Io.exports.DraggableCore=xh;var rd=Io.exports,cg=["second","minute","hour","day","week","month","year"];function lc(et,ot){if(ot===0)return["just now","right now"];var ut=cg[Math.floor(ot/2)];return et>1&&(ut+="s"),[et+" "+ut+" ago","in "+et+" "+ut]}var ug=["秒","分钟","小时","天","周","个月","年"];function nf(et,ot){if(ot===0)return["刚刚","片刻后"];var ut=ug[~~(ot/2)];return[et+" "+ut+"前",et+" "+ut+"后"]}var od={},Go=function(et,ot){od[et]=ot},rp=function(et){return od[et]||od.en_US},zo=[60,60,24,7,365/7/12,12];function Fu(et){return et instanceof Date?et:!isNaN(et)||/^\d+$/.test(et)?new Date(parseInt(et)):(et=(et||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(et))}function Fl(et,ot){var ut=et<0?1:0;et=Math.abs(et);for(var dt=et,gt=0;et>=zo[gt]&>(gt===0?9:1)&&(gt+=1),ot(et,gt,dt)[ut].replace("%s",et.toString())}function Oc(et,ot){var ut=ot?Fu(ot):new Date;return(+ut-+Fu(et))/1e3}function ip(et){for(var ot=1,ut=0,dt=Math.abs(et);et>=zo[ut]&&ut{et.current&&!et.current.contains(event.target)&&ot()};sr(()=>(document.addEventListener("mousedown",ut),()=>document.removeEventListener("mousedown",ut)))}var ud=Object.prototype.toString,sp=function(et){var ot=ud.call(et),ut=ot==="[object Arguments]";return ut||(ut=ot!=="[object Array]"&&et!==null&&typeof et=="object"&&typeof et.length=="number"&&et.length>=0&&ud.call(et.callee)==="[object Function]"),ut},hd;if(!Object.keys){var Hu=Object.prototype.hasOwnProperty,Th=Object.prototype.toString,ap=sp,uu=Object.prototype.propertyIsEnumerable,hg=!uu.call({toString:null},"toString"),af=uu.call(function(){},"prototype"),Vu=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Gu=function(et){var ot=et.constructor;return ot&&ot.prototype===et},it={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},pt=function(){if(typeof window>"u")return!1;for(var et in window)try{if(!it["$"+et]&&Hu.call(window,et)&&window[et]!==null&&typeof window[et]=="object")try{Gu(window[et])}catch{return!0}}catch{return!0}return!1}(),St=function(et){if(typeof window>"u"||!pt)return Gu(et);try{return Gu(et)}catch{return!1}};hd=function(et){var ot=et!==null&&typeof et=="object",ut=Th.call(et)==="[object Function]",dt=ap(et),gt=ot&&Th.call(et)==="[object String]",Mt=[];if(!ot&&!ut&&!dt)throw new TypeError("Object.keys called on a non-object");var zt=af&&ut;if(gt&&et.length>0&&!Hu.call(et,0))for(var Jt=0;Jt0)for(var ue=0;ue2?arguments[2]:{},dt=yr(ot);qr&&(dt=ta.call(dt,Object.getOwnPropertySymbols(ot)));for(var gt=0;gt"u"?fo:Qu(Uint8Array),di={"%AggregateError%":typeof AggregateError>"u"?fo:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?fo:ArrayBuffer,"%ArrayIteratorPrototype%":Ul?Qu([][Symbol.iterator]()):fo,"%AsyncFromSyncIteratorPrototype%":fo,"%AsyncFunction%":bs,"%AsyncGenerator%":bs,"%AsyncGeneratorFunction%":bs,"%AsyncIteratorPrototype%":bs,"%Atomics%":typeof Atomics>"u"?fo:Atomics,"%BigInt%":typeof BigInt>"u"?fo:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?fo:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?fo:Float32Array,"%Float64Array%":typeof Float64Array>"u"?fo:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?fo:FinalizationRegistry,"%Function%":uf,"%GeneratorFunction%":bs,"%Int8Array%":typeof Int8Array>"u"?fo:Int8Array,"%Int16Array%":typeof Int16Array>"u"?fo:Int16Array,"%Int32Array%":typeof Int32Array>"u"?fo:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ul?Qu(Qu([][Symbol.iterator]())):fo,"%JSON%":typeof JSON=="object"?JSON:fo,"%Map%":typeof Map>"u"?fo:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ul?fo:Qu(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?fo:Promise,"%Proxy%":typeof Proxy>"u"?fo:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?fo:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?fo:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ul?fo:Qu(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?fo:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ul?Qu(""[Symbol.iterator]()):fo,"%Symbol%":Ul?Symbol:fo,"%SyntaxError%":pu,"%ThrowTypeError%":j0,"%TypedArray%":uc,"%TypeError%":gu,"%Uint8Array%":typeof Uint8Array>"u"?fo:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?fo:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?fo:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?fo:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?fo:WeakMap,"%WeakRef%":typeof WeakRef>"u"?fo:WeakRef,"%WeakSet%":typeof WeakSet>"u"?fo:WeakSet},ji=function et(ot){var ut;if(ot==="%AsyncFunction%")ut=up("async function () {}");else if(ot==="%GeneratorFunction%")ut=up("function* () {}");else if(ot==="%AsyncGeneratorFunction%")ut=up("async function* () {}");else if(ot==="%AsyncGenerator%"){var dt=et("%AsyncGeneratorFunction%");dt&&(ut=dt.prototype)}else if(ot==="%AsyncIteratorPrototype%"){var gt=et("%AsyncGenerator%");gt&&(ut=Qu(gt.prototype))}return di[ot]=ut,ut},Ai={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bi=dd,_i=fg,Bi=bi.call(Function.call,Array.prototype.concat),$i=bi.call(Function.apply,Array.prototype.splice),Ni=bi.call(Function.call,String.prototype.replace),wi=bi.call(Function.call,String.prototype.slice),Fi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ui=/\\(\\)?/g,Yi=function(et){var ot=wi(et,0,1),ut=wi(et,-1);if(ot==="%"&&ut!=="%")throw new pu("invalid intrinsic syntax, expected closing `%`");if(ut==="%"&&ot!=="%")throw new pu("invalid intrinsic syntax, expected opening `%`");var dt=[];return Ni(et,Fi,function(gt,Mt,zt,Jt){dt[dt.length]=zt?Ni(Jt,Ui,"$1"):Mt||gt}),dt},Hi=function(et,ot){var ut=et,dt;if(_i(Ai,ut)&&(dt=Ai[ut],ut="%"+dt[0]+"%"),_i(di,ut)){var gt=di[ut];if(gt===bs&&(gt=ji(ut)),typeof gt>"u"&&!ot)throw new gu("intrinsic "+et+" exists, but is not available. Please file an issue!");return{alias:dt,name:ut,value:gt}}throw new pu("intrinsic "+et+" does not exist!")},Wr=function(et,ot){if(typeof et!="string"||et.length===0)throw new gu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ot!="boolean")throw new gu('"allowMissing" argument must be a boolean');var ut=Yi(et),dt=ut.length>0?ut[0]:"",gt=Hi("%"+dt+"%",ot),Mt=gt.name,zt=gt.value,Jt=!1,ue=gt.alias;ue&&(dt=ue[0],$i(ut,Bi([0,1],ue)));for(var he=1,le=!0;he=ut.length){var Mn=qu(zt,Ue);le=!!Mn,le&&"get"in Mn&&!("originalValue"in Mn.get)?zt=Mn.get:zt=zt[Ue]}else le=_i(zt,Ue),zt=zt[Ue];le&&!Jt&&(di[Mt]=zt)}}return zt};(function(et){var ot=dd,ut=Wr,dt=ut("%Function.prototype.apply%"),gt=ut("%Function.prototype.call%"),Mt=ut("%Reflect.apply%",!0)||ot.call(gt,dt),zt=ut("%Object.getOwnPropertyDescriptor%",!0),Jt=ut("%Object.defineProperty%",!0),ue=ut("%Math.max%");if(Jt)try{Jt({},"a",{value:1})}catch{Jt=null}et.exports=function(le){var Ue=Mt(ot,gt,arguments);if(zt&&Jt){var tn=zt(Ue,"length");tn.configurable&&Jt(Ue,"length",{value:1+ue(0,le.length-(arguments.length-1))})}return Ue};var he=function(){return Mt(ot,dt,arguments)};Jt?Jt(et.exports,"apply",{value:he}):et.exports.apply=he})(du);var Di=Wr,Ii=du.exports,Vi=Ii(Di("String.prototype.indexOf")),ui=function(et,ot){var ut=Di(et,!!ot);return typeof ut=="function"&&Vi(et,".prototype.")>-1?Ii(ut):ut},Gi=Wr,Wi=Gi("%TypeError%"),qi=function(et,ot){if(et==null)throw new Wi(ot||"Cannot call method on "+et);return et},xi=qi,Qi=Wr,Li=Qi("%Array%"),gg=!Li.isArray&&ui("Object.prototype.toString"),mg=Li.isArray||function(et){return gg(et)==="[object Array]"},hp=Wr,yg=ui,vg=hp("%TypeError%"),bg=mg,_g=hp("%Reflect.apply%",!0)||yg("%Function.prototype.apply%"),wg=function(et,ot){var ut=arguments.length>2?arguments[2]:[];if(!bg(ut))throw new vg("Assertion failed: optional `argumentsList`, if provided, must be a List");return _g(et,ot,ut)},br={},vr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:br}),Rr=_a(vr),kr=typeof Map=="function"&&Map.prototype,Vr=Object.getOwnPropertyDescriptor&&kr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Fr=kr&&Vr&&typeof Vr.get=="function"?Vr.get:null,Xi=kr&&Map.prototype.forEach,Oi=typeof Set=="function"&&Set.prototype,cr=Object.getOwnPropertyDescriptor&&Oi?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Te=Oi&&cr&&typeof cr.get=="function"?cr.get:null,xg=Oi&&Set.prototype.forEach,Y1=typeof WeakMap=="function"&&WeakMap.prototype,hf=Y1?WeakMap.prototype.has:null,H1=typeof WeakSet=="function"&&WeakSet.prototype,df=H1?WeakSet.prototype.has:null,V1=typeof WeakRef=="function"&&WeakRef.prototype,B0=V1?WeakRef.prototype.deref:null,G1=Boolean.prototype.valueOf,$0=Object.prototype.toString,F0=Function.prototype.toString,U0=String.prototype.match,gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ff=Object.getOwnPropertySymbols,Eg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,md=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Mg=Object.prototype.propertyIsEnumerable,Tg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(et){return et.__proto__}:null),dp=Rr.custom,Sg=dp&&Ag(dp)?dp:null,ha=typeof Symbol=="function"&&typeof Symbol.toStringTag<"u"?Symbol.toStringTag:null,W1=function et(ot,ut,dt,gt){var Mt=ut||{};if(Xu(Mt,"quoteStyle")&&Mt.quoteStyle!=="single"&&Mt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Xu(Mt,"maxStringLength")&&(typeof Mt.maxStringLength=="number"?Mt.maxStringLength<0&&Mt.maxStringLength!==1/0:Mt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var zt=Xu(Mt,"customInspect")?Mt.customInspect:!0;if(typeof zt!="boolean"&&zt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Xu(Mt,"indent")&&Mt.indent!==null&&Mt.indent!==" "&&!(parseInt(Mt.indent,10)===Mt.indent&&Mt.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof ot>"u")return"undefined";if(ot===null)return"null";if(typeof ot=="boolean")return ot?"true":"false";if(typeof ot=="string")return Dg(ot,Mt);if(typeof ot=="number")return ot===0?1/0/ot>0?"0":"-0":String(ot);if(typeof ot=="bigint")return String(ot)+"n";var Jt=typeof Mt.depth>"u"?5:Mt.depth;if(typeof dt>"u"&&(dt=0),dt>=Jt&&Jt>0&&typeof ot=="object")return fp(ot)?"[Array]":"[Object]";var ue=Z0(Mt,dt);if(typeof gt>"u")gt=[];else if(Ng(gt,ot)>=0)return"[Circular]";function he(jo,Bo,Kc){if(Bo&&(gt=gt.slice(),gt.push(Bo)),Kc){var Ol={depth:Mt.depth};return Xu(Mt,"quoteStyle")&&(Ol.quoteStyle=Mt.quoteStyle),et(jo,Ol,dt+1,gt)}return et(jo,Mt,dt+1,gt)}if(typeof ot=="function"){var le=X1(ot),Ue=pp(ot,he);return"[Function"+(le?": "+le:" (anonymous)")+"]"+(Ue.length>0?" { "+Ue.join(", ")+" }":"")}if(Ag(ot)){var tn=md?String(ot).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):Eg.call(ot);return typeof ot=="object"&&!md?pf(tn):tn}if(ty(ot)){for(var ln="<"+String(ot.nodeName).toLowerCase(),Mn=ot.attributes||[],Rn=0;Rn",ln}if(fp(ot)){if(ot.length===0)return"[]";var On=pp(ot,he);return ue&&!ny(On)?"["+Lg(On,ue)+"]":"[ "+On.join(", ")+" ]"}if(kg(ot)){var or=pp(ot,he);return or.length===0?"["+String(ot)+"]":"{ ["+String(ot)+"] "+or.join(", ")+" }"}if(typeof ot=="object"&&zt){if(Sg&&typeof ot[Sg]=="function")return ot[Sg]();if(zt!=="symbol"&&typeof ot.inspect=="function")return ot.inspect()}if(q0(ot)){var fr=[];return Xi.call(ot,function(jo,Bo){fr.push(he(Bo,ot,!0)+" => "+he(jo,ot))}),X0("Map",Fr.call(ot),fr,ue)}if(Q0(ot)){var oi=[];return xg.call(ot,function(jo){oi.push(he(jo,ot))}),X0("Set",Te.call(ot),oi,ue)}if(Z1(ot))return Ig("WeakMap");if(K1(ot))return Ig("WeakSet");if(J1(ot))return Ig("WeakRef");if(V0(ot))return pf(he(Number(ot)));if(W0(ot))return pf(he(gd.call(ot)));if(G0(ot))return pf(G1.call(ot));if(Q1(ot))return pf(he(String(ot)));if(!q1(ot)&&!H0(ot)){var Zr=pp(ot,he),Gr=Tg?Tg(ot)===Object.prototype:ot instanceof Object||ot.constructor===Object,li=ot instanceof Object?"":"null prototype",Jr=!Gr&&ha&&Object(ot)===ot&&ha in ot?mu(ot).slice(8,-1):li?"Object":"",gs=Gr||typeof ot.constructor!="function"?"":ot.constructor.name?ot.constructor.name+" ":"",ws=gs+(Jr||li?"["+[].concat(Jr||[],li||[]).join(": ")+"] ":"");return Zr.length===0?ws+"{}":ue?ws+"{"+Lg(Zr,ue)+"}":ws+"{ "+Zr.join(", ")+" }"}return String(ot)};function Cg(et,ot,ut){var dt=(ut.quoteStyle||ot)==="double"?'"':"'";return dt+et+dt}function Y0(et){return String(et).replace(/"/g,""")}function fp(et){return mu(et)==="[object Array]"&&(!ha||!(typeof et=="object"&&ha in et))}function q1(et){return mu(et)==="[object Date]"&&(!ha||!(typeof et=="object"&&ha in et))}function H0(et){return mu(et)==="[object RegExp]"&&(!ha||!(typeof et=="object"&&ha in et))}function kg(et){return mu(et)==="[object Error]"&&(!ha||!(typeof et=="object"&&ha in et))}function Q1(et){return mu(et)==="[object String]"&&(!ha||!(typeof et=="object"&&ha in et))}function V0(et){return mu(et)==="[object Number]"&&(!ha||!(typeof et=="object"&&ha in et))}function G0(et){return mu(et)==="[object Boolean]"&&(!ha||!(typeof et=="object"&&ha in et))}function Ag(et){if(md)return et&&typeof et=="object"&&et instanceof Symbol;if(typeof et=="symbol")return!0;if(!et||typeof et!="object"||!Eg)return!1;try{return Eg.call(et),!0}catch{}return!1}function W0(et){if(!et||typeof et!="object"||!gd)return!1;try{return gd.call(et),!0}catch{}return!1}var jc=Object.prototype.hasOwnProperty||function(et){return et in this};function Xu(et,ot){return jc.call(et,ot)}function mu(et){return $0.call(et)}function X1(et){if(et.name)return et.name;var ot=U0.call(F0.call(et),/^function\s*([\w$]+)/);return ot?ot[1]:null}function Ng(et,ot){if(et.indexOf)return et.indexOf(ot);for(var ut=0,dt=et.length;utot.maxStringLength){var ut=et.length-ot.maxStringLength,dt="... "+ut+" more character"+(ut>1?"s":"");return Dg(et.slice(0,ot.maxStringLength),ot)+dt}var gt=et.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,ey);return Cg(gt,"single",ot)}function ey(et){var ot=et.charCodeAt(0),ut={8:"b",9:"t",10:"n",12:"f",13:"r"}[ot];return ut?"\\"+ut:"\\x"+(ot<16?"0":"")+ot.toString(16).toUpperCase()}function pf(et){return"Object("+et+")"}function Ig(et){return et+" { ? }"}function X0(et,ot,ut,dt){var gt=dt?Lg(ut,dt):ut.join(", ");return et+" ("+ot+") {"+gt+"}"}function ny(et){for(var ot=0;ot=0)return!1;return!0}function Z0(et,ot){var ut;if(et.indent===" ")ut=" ";else if(typeof et.indent=="number"&&et.indent>0)ut=Array(et.indent+1).join(" ");else return null;return{base:ut,prev:Array(ot+1).join(ut)}}function Lg(et,ot){if(et.length===0)return"";var ut=` +`+ot.prev+ot.base;return ut+et.join(","+ut)+` +`+ot.prev}function pp(et,ot){var ut=fp(et),dt=[];if(ut){dt.length=et.length;for(var gt=0;gt"u")return"Undefined";if(typeof et=="function"||typeof et=="object")return"Object";if(typeof et=="number")return"Number";if(typeof et=="boolean")return"Boolean";if(typeof et=="string")return"String"},gp=J0,Zu=function(et){return typeof et=="symbol"?"Symbol":typeof et=="bigint"?"BigInt":gp(et)},mp=Wr,Pg=mp("%TypeError%"),ry=W1,K0=Og,iy=Zu,tm=function(et,ot){if(iy(et)!=="Object")throw new Pg("Assertion failed: Type(O) is not Object");if(!K0(ot))throw new Pg("Assertion failed: IsPropertyKey(P) is not true, got "+ry(ot));return et[ot]},yp=Wr,gf=yp("%TypeError%"),mf=Og,yf=Zu,em=function(et,ot){if(yf(et)!=="Object")throw new gf("Assertion failed: `O` must be an Object");if(!mf(ot))throw new gf("Assertion failed: `P` must be a Property Key");return ot in et},yd=Function.prototype.toString,Bc=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,vd,vp;if(typeof Bc=="function"&&typeof Object.defineProperty=="function")try{vd=Object.defineProperty({},"length",{get:function(){throw vp}}),vp={},Bc(function(){throw 42},null,vd)}catch(et){et!==vp&&(Bc=null)}else Bc=null;var oy=/^\s*class\b/,zg=function(et){try{var ot=yd.call(et);return oy.test(ot)}catch{return!1}},nm=function(et){try{return zg(et)?!1:(yd.call(et),!0)}catch{return!1}},sy=Object.prototype.toString,Rg="[object Function]",rm="[object GeneratorFunction]",ay=typeof Symbol=="function"&&!!Symbol.toStringTag,kh=typeof document=="object"&&typeof document.all>"u"&&document.all!==void 0?document.all:{},Ju=Bc?function(et){if(et===kh)return!0;if(!et||typeof et!="function"&&typeof et!="object")return!1;if(typeof et=="function"&&!et.prototype)return!0;try{Bc(et,null,vd)}catch(ot){if(ot!==vp)return!1}return!zg(et)}:function(et){if(et===kh)return!0;if(!et||typeof et!="function"&&typeof et!="object")return!1;if(typeof et=="function"&&!et.prototype)return!0;if(ay)return nm(et);if(zg(et))return!1;var ot=sy.call(et);return ot===Rg||ot===rm},im=Ju,om=Wr,sm=om("%Math%"),jg=om("%Number%"),ly=jg.MAX_SAFE_INTEGER||sm.pow(2,53)-1,cy=Wr,am=cy("%Math.abs%"),uy=function(et){return am(et)},bd=Math.floor,vl=function(et){return bd(et)},_d=function(et){return et===null||typeof et!="function"&&typeof et!="object"},Na=Object.prototype.toString,To=_d,hy=Ju,lm={"[[DefaultValue]]":function(et){var ot;if(arguments.length>1?ot=arguments[1]:ot=Na.call(et)==="[object Date]"?String:Number,ot===String||ot===Number){var ut=ot===String?["toString","valueOf"]:["valueOf","toString"],dt,gt;for(gt=0;gt1?lm["[[DefaultValue]]"](et,arguments[1]):lm["[[DefaultValue]]"](et)},dy=Bg,cm=dy,um=function(et){var ot=cm(et,Number);if(typeof ot!="string")return+ot;var ut=ot.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(ut)?NaN:+ut},$g=Number.isNaN||function(et){return et!==et},hm=Number.isNaN||function(et){return et!==et},dm=Number.isFinite||function(et){return typeof et=="number"&&!hm(et)&&et!==1/0&&et!==-1/0},fy=function(et){return et>=0?1:-1},py=uy,gy=vl,fm=um,pm=$g,gm=dm,mm=fy,ym=function(et){var ot=fm(et);return pm(ot)?0:ot===0||!gm(ot)?ot:mm(ot)*gy(py(ot))},vm=Wr,bm=vm("RegExp.prototype.test"),my=du.exports,yy=function(et){return my(bm,et)},vf=function(et){return et===null||typeof et!="function"&&typeof et!="object"},_m=Ch,Fg=function(){return _m()&&!!Symbol.toStringTag},wm=Date.prototype.getDay,xm=function(et){try{return wm.call(et),!0}catch{return!1}},Em=Object.prototype.toString,vy="[object Date]",Mm=Fg(),Ug=function(et){return typeof et!="object"||et===null?!1:Mm?xm(et):Em.call(et)===vy},bp={exports:{}},Yg=Object.prototype.toString,_p=dg();if(_p){var Hg=Symbol.prototype.toString,Tm=/^Symbol\(.*\)$/,by=function(et){return typeof et.valueOf()!="symbol"?!1:Tm.test(Hg.call(et))};bp.exports=function(et){if(typeof et=="symbol")return!0;if(Yg.call(et)!=="[object Symbol]")return!1;try{return by(et)}catch{return!1}}}else bp.exports=function(et){return!1};var Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",Vg=_d,yu=Ju,Gg=Ug,Wg=bp.exports,qg=function(et,ot){if(typeof et>"u"||et===null)throw new TypeError("Cannot call method on "+et);if(typeof ot!="string"||ot!=="number"&&ot!=="string")throw new TypeError('hint must be "string" or "number"');var ut=ot==="string"?["toString","valueOf"]:["valueOf","toString"],dt,gt,Mt;for(Mt=0;Mt1&&(arguments[1]===String?ot="string":arguments[1]===Number&&(ot="number"));var ut;if(Ku&&(Symbol.toPrimitive?ut=Qg(et,Symbol.toPrimitive):Wg(et)&&(ut=Symbol.prototype.valueOf)),typeof ut<"u"){var dt=ut.call(et,ot);if(Vg(dt))return dt;throw new TypeError("unable to convert exotic object to primitive")}return ot==="default"&&(Gg(et)||Wg(et))&&(ot="string"),qg(et,ot==="default"?"number":ot)},wp=Xg,Zg=function(et){return arguments.length>1?wp(et,arguments[1]):wp(et)},Ua=Wr,Jg=Ua("%TypeError%"),Da=Ua("%Number%"),bf=Ua("%RegExp%"),xp=Ua("%parseInt%"),vu=ui,Ep=yy,Kg=vf,Sm=vu("String.prototype.slice"),Cm=Ep(/^0b[01]+$/i),_f=Ep(/^0o[0-7]+$/i),wf=Ep(/^[-+]0x[0-9a-f]+$/i),km=["…","​","￾"].join(""),Am=new bf("["+km+"]","g"),Mp=Ep(Am),Nm=[` +\v\f\r   ᠎    `,"          \u2028","\u2029\uFEFF"].join(""),Dm=new RegExp("(^["+Nm+"]+)|(["+Nm+"]+$)","g"),Im=vu("String.prototype.replace"),$c=function(et){return Im(et,Dm,"")},_y=Zg,Tp=function et(ot){var ut=Kg(ot)?ot:_y(ot,Da);if(typeof ut=="symbol")throw new Jg("Cannot convert a Symbol value to a number");if(typeof ut=="bigint")throw new Jg("Conversion from 'BigInt' to 'number' is not allowed.");if(typeof ut=="string"){if(Cm(ut))return et(xp(Sm(ut,2),2));if(_f(ut))return et(xp(Sm(ut,2),8));if(Mp(ut)||wf(ut))return NaN;var dt=$c(ut);if(dt!==ut)return et(dt)}return Da(ut)},Lm=ym,wy=Tp,Om=function(et){var ot=wy(et);return ot!==0&&(ot=Lm(ot)),ot===0?0:ot},Pm=ly,zm=Om,xy=function(et){var ot=zm(et);return ot<=0?0:ot>Pm?Pm:ot},Ey=Wr,Rm=Ey("%TypeError%"),My=tm,hc=xy,bu=Zu,Ah=function(et){if(bu(et)!=="Object")throw new Rm("Assertion failed: `obj` must be an Object");return hc(My(et,"length"))},Ao=Wr,Qr=Ao("%Object%"),jm=xi,ol=function(et){return jm(et),Qr(et)},xf=Wr,wd=xf("%String%"),sl=xf("%TypeError%"),pn=function(et){if(typeof et=="symbol")throw new sl("Cannot convert a Symbol value to a string");return wd(et)},Nh=String.prototype.valueOf,_u=function(et){try{return Nh.call(et),!0}catch{return!1}},xd=Object.prototype.toString,xn="[object String]",Ef=Fg(),Ur=function(et){return typeof et=="string"?!0:typeof et!="object"?!1:Ef?_u(et):xd.call(et)===xn},Ya=Wr,Bm=ui,Yl=Ya("%TypeError%"),Hl=wg,Mf=tm,Cn=em,bl=im,da=Ah,$m=ol,Pi=pn,Tf=Ur,Fm=Bm("String.prototype.split"),Dh=Object("a"),Rs=Dh[0]!=="a"||!(0 in Dh),al=function(et){var ot=$m(this),ut=Rs&&Tf(this)?Fm(this,""):ot,dt=da(ut);if(!bl(et))throw new Yl("Array.prototype.forEach callback must be a function");var gt;arguments.length>1&&(gt=arguments[1]);for(var Mt=0;Mt=12&&ot<=14)?1:2},qm={pluralTypes:{arabic:function(et){if(et<3)return et;var ot=et%100;return ot>=3&&ot<=10?3:ot>=11?4:5},bosnian_serbian:Nd,chinese:function(){return 0},croatian:Nd,french:function(et){return et>=2?1:0},german:function(et){return et!==1?1:0},russian:Nd,lithuanian:function(et){return et%10==1&&et%100!=11?0:et%10>=2&&et%10<=9&&(et%100<11||et%100>19)?1:2},czech:function(et){return et===1?0:et>=2&&et<=4?1:2},polish:function(et){if(et===1)return 0;var ot=et%10;return 2<=ot&&ot<=4&&(et%100<10||et%100>=20)?1:2},icelandic:function(et){return et%10!=1||et%100==11?1:0},slovenian:function(et){var ot=et%100;return ot===1?0:ot===2?1:ot===3||ot===4?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function Sy(et){var ot={};return mc(Zi(et),function(ut){var dt=ut[0],gt=ut[1];mc(gt,function(Mt){ot[Mt]=dt})}),ot}function Cy(et,ot){var ut=Sy(et.pluralTypeToLanguages);return ut[ot]||ut[xu.call(ot,/-/,1)[0]]||ut.en}function ky(et,ot,ut){return et.pluralTypes[ot](ut)}function Ay(){var et={};return function(ot,ut){var dt=et[ut];return dt&&!ot.pluralTypes[dt]&&(dt=null,et[ut]=dt),dt||(dt=Cy(ot,ut),dt&&(et[ut]=dt)),dt}}function Qm(et){return et.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ul(et){var ot=et&&et.prefix||"%{",ut=et&&et.suffix||"}";if(ot===fa||ut===fa)throw new RangeError('"'+fa+'" token is reserved for pluralization');return new RegExp(Qm(ot)+"(.*?)"+Qm(ut),"g")}var r0=Ay(),Wo=/%\{(.*?)\}/g;function No(et,ot,ut,dt,gt){if(typeof et!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(ot==null)return et;var Mt=et,zt=dt||Wo,Jt=typeof ot=="number"?{smart_count:ot}:ot;if(Jt.smart_count!=null&&et){var ue=gt||qm,he=xu.call(et,fa),le=ut||"en",Ue=r0(ue,le),tn=ky(ue,Ue,Jt.smart_count);Mt=Wl(he[tn]||he[0])}return Mt=na.call(Mt,zt,function(ln,Mn){return!cl(Jt,Mn)||Jt[Mn]==null?ln:Jt[Mn]}),Mt}function Ml(et){var ot=et||{};this.phrases={},this.extend(ot.phrases||{}),this.currentLocale=ot.locale||"en";var ut=ot.allowMissing?No:null;this.onMissingKey=typeof ot.onMissingKey=="function"?ot.onMissingKey:ut,this.warn=ot.warn||El,this.tokenRegex=ul(ot.interpolation),this.pluralRules=ot.pluralRules||qm}Ml.prototype.locale=function(et){return et&&(this.currentLocale=et),this.currentLocale},Ml.prototype.extend=function(et,ot){mc(Zi(et||{}),function(ut){var dt=ut[0],gt=ut[1],Mt=ot?ot+"."+dt:dt;typeof gt=="object"?this.extend(gt,Mt):this.phrases[Mt]=gt},this)},Ml.prototype.unset=function(et,ot){typeof et=="string"?delete this.phrases[et]:mc(Zi(et||{}),function(ut){var dt=ut[0],gt=ut[1],Mt=ot?ot+"."+dt:dt;typeof gt=="object"?this.unset(gt,Mt):delete this.phrases[Mt]},this)},Ml.prototype.clear=function(){this.phrases={}},Ml.prototype.replace=function(et){this.clear(),this.extend(et)},Ml.prototype.t=function(et,ot){var ut,dt,gt=ot??{};if(typeof this.phrases[et]=="string")ut=this.phrases[et];else if(typeof gt._=="string")ut=gt._;else if(this.onMissingKey){var Mt=this.onMissingKey;dt=Mt(et,gt,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+et+'"'),dt=et;return typeof ut=="string"&&(dt=No(ut,gt,this.currentLocale,this.tokenRegex,this.pluralRules)),dt},Ml.prototype.has=function(et){return cl(this.phrases,et)},Ml.transformPhrase=function(et,ot,ut){return No(et,ot,ut)};var Ia=Ml,Eu={"Add a comment...":"إضافة تعليق","Add a reply...":"إضافة رد","Add tag...":"إضافة علامة",Cancel:"إلغاء",Close:"إغلاق",Edit:"Edit",Delete:"Delete",Ok:"تم"},ls={"Add a comment...":"Napsat komentář...","Add a reply...":"Odpovědět...","Add tag...":"Přidat štítek...",Cancel:"Zrušit",Close:"Zavřít",Edit:"Upravit",Delete:"Smazat",Ok:"Ok"},Dd={"Add a comment...":"Kommentar schreiben...","Add a reply...":"Antwort schreiben...","Add tag...":"Tag...",Cancel:"Abbrechen",Close:"Schliessen",Edit:"Bearbeiten",Delete:"Löschen",Ok:"Ok"},yc={"Add a comment...":"Σχολίασε...","Add a reply...":"Απάντησε...","Add tag...":"Πρόσθεσε tag...",Cancel:"Άκυρο",Close:"Κλείσιμο",Edit:"Επεξεργασία",Delete:"Διαγραφή",Ok:"Ok"},vc={"Add a comment...":"Agregar un comentario...","Add a reply...":"Agregar una respuesta...","Add tag...":"Etiquetar...",Cancel:"Cancelar",Close:"Cerrar",Edit:"Editar",Delete:"Eliminar",Ok:"Ok"},hl={"Add a comment...":"Lisää kommentti","Add a reply...":"Lisää vastaus","Add tag...":"Lisää tunniste",Cancel:"Peruuta",Close:"Sulje",Edit:"Muokkaa",Delete:"Poista",Ok:"Ok"},Ip={"Add a comment...":"Ajouter un commentaire...","Add a reply...":"Ajouter une réponse...","Add tag...":"Ajouter une étiquette...",Cancel:"Annuler",Close:"Fermer",Edit:"Éditer",Delete:"Supprimer",Ok:"Ok"},Af={"Add a comment...":"Engadir un comentario...","Add a reply...":"Engadir unha resposta...","Add tag...":"Etiquetar...",Cancel:"Cancelar",Close:"Pechar",Edit:"Edit",Delete:"Delete",Ok:"Ok"},Nf={"Add a comment...":"टिप्पणी जोड़ें","Add a reply...":"जवाब दें","Add tag...":"टैग लगाएँ",Cancel:"रद्द करें",Close:"बंद करें",Edit:"संपादित करें",Delete:"हटाएँ",Ok:"ठीक है"},Df={"Add a comment...":"Commenta...","Add a reply...":"Rispondi...","Add tag...":"Aggiungi tag...",Cancel:"Annulla",Close:"Chiudi",Edit:"Edit",Delete:"Delete",Ok:"Ok"},qo={"Add a comment...":"댓글 추가","Add a reply...":"답글 추가","Add tag...":"태그 추가",Cancel:"취소",Close:"닫기",Edit:"수정",Delete:"삭제",Ok:"확인"},Xm={"Add a comment...":"Commentaar toevoegen...","Add a reply...":"Antwoord toevoegen...","Add tag...":"Tag toevoegen...",Cancel:"Afbreken",Close:"Sluiten",Edit:"Bewerken",Delete:"Verwijderen",Ok:"Ok"},bc={"Add a comment...":"Adicionar um comentário...","Add a reply...":"Adicionar uma resposta...","Add tag...":"Etiquetar...",Cancel:"Cancelar",Close:"Fechar",Edit:"Editar",Delete:"Apagar",Ok:"Ok"},i0={"Add a comment...":"Skriv en kommentar...","Add a reply...":"Skriv ett svar...","Add tag...":"Tagg...",Cancel:"Cancel",Close:"Stäng",Edit:"Edit",Delete:"Delete",Ok:"Ok"},Zm={"Add a comment...":"เพิ่มคอมเมนต์...","Add a reply...":"ตอบกลับ...","Add tag...":"เพิ่มแท็ก...",Cancel:"ยกเลิก",Close:"ปิด",Edit:"แก้ไข",Delete:"ลบ",Ok:"ตกลง"},eo={"Add a comment...":"Yorum ekle...","Add a reply...":"Cevap ekle...","Add tag...":"Tag Ekle...",Cancel:"İptal",Close:"Kapat",Edit:"Düzenle",Delete:"Sil",Ok:"Tamam"},o0={"Add a comment...":"تبصرہ کریں","Add a reply...":"جواب دیں","Add tag...":"ٹیگ لگائیں",Cancel:"منسوخ کریں",Close:"بند کریں",Edit:"ترمیم کریں",Delete:"ہٹائیں",Ok:"ٹھیک ہے"},Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});var If=[["ثانية","ثانيتين","%s ثوان","%s ثانية"],["دقيقة","دقيقتين","%s دقائق","%s دقيقة"],["ساعة","ساعتين","%s ساعات","%s ساعة"],["يوم","يومين","%s أيام","%s يوماً"],["أسبوع","أسبوعين","%s أسابيع","%s أسبوعاً"],["شهر","شهرين","%s أشهر","%s شهراً"],["عام","عامين","%s أعوام","%s عاماً"]];function gi(et,ot){return ot<3?If[et][ot-1]:ot>=3&&ot<=10?If[et][2]:If[et][3]}function Jm(et,ot){if(ot===0)return["منذ لحظات","بعد لحظات"];var ut=gi(Math.floor(ot/2),et);return["منذ "+ut,"بعد "+ut]}var Ny=Tl.default=Jm,Lf={};Object.defineProperty(Lf,"__esModule",{value:!0});function ql(et,ot){var ut=0,dt=ot==1||ot==3||ot==5||ot==7||ot==9||ot==11||ot==13;return dt&&et>=5&&(ut=1),[[["právě teď","právě teď"]],[["před %s vteřinami","za %s vteřiny"],["před %s vteřinami","za %s vteřin"]],[["před minutou","za minutu"]],[["před %s minutami","za %s minuty"],["před %s minutami","za %s minut"]],[["před hodinou","za hodinu"]],[["před %s hodinami","za %s hodiny"],["před %s hodinami","za %s hodin"]],[["včera","zítra"]],[["před %s dny","za %s dny"],["před %s dny","za %s dnů"]],[["minulý týden","příští týden"]],[["před %s týdny","za %s týdny"],["před %s týdny","za %s týdnů"]],[["minulý měsíc","přístí měsíc"]],[["před %s měsíci","za %s měsíce"],["před %s měsíci","za %s měsíců"]],[["před rokem","přístí rok"]],[["před %s lety","za %s roky"],["před %s lety","za %s let"]]][ot][ut]}var Hc=Lf.default=ql,Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});function Km(et,ot){return[["gerade eben","vor einer Weile"],["vor %s Sekunden","in %s Sekunden"],["vor 1 Minute","in 1 Minute"],["vor %s Minuten","in %s Minuten"],["vor 1 Stunde","in 1 Stunde"],["vor %s Stunden","in %s Stunden"],["vor 1 Tag","in 1 Tag"],["vor %s Tagen","in %s Tagen"],["vor 1 Woche","in 1 Woche"],["vor %s Wochen","in %s Wochen"],["vor 1 Monat","in 1 Monat"],["vor %s Monaten","in %s Monaten"],["vor 1 Jahr","in 1 Jahr"],["vor %s Jahren","in %s Jahren"]][ot]}var qn=Lp.default=Km,Of={};Object.defineProperty(Of,"__esModule",{value:!0});function Op(et,ot){return[["μόλις τώρα","σε λίγο"],["%s δευτερόλεπτα πριν","σε %s δευτερόλεπτα"],["1 λεπτό πριν","σε 1 λεπτό"],["%s λεπτά πριν","σε %s λεπτά"],["1 ώρα πριν","σε 1 ώρα"],["%s ώρες πριν","σε %s ώρες"],["1 μέρα πριν","σε 1 μέρα"],["%s μέρες πριν","σε %s μέρες"],["1 εβδομάδα πριν","σε 1 εβδομάδα"],["%s εβδομάδες πριν","σε %s εβδομάδες"],["1 μήνα πριν","σε 1 μήνα"],["%s μήνες πριν","σε %s μήνες"],["1 χρόνο πριν","σε 1 χρόνο"],["%s χρόνια πριν","σε %s χρόνια"]][ot]}var Ql=Of.default=Op,Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});function Vc(et,ot){return[["justo ahora","en un rato"],["hace %s segundos","en %s segundos"],["hace 1 minuto","en 1 minuto"],["hace %s minutos","en %s minutos"],["hace 1 hora","en 1 hora"],["hace %s horas","en %s horas"],["hace 1 día","en 1 día"],["hace %s días","en %s días"],["hace 1 semana","en 1 semana"],["hace %s semanas","en %s semanas"],["hace 1 mes","en 1 mes"],["hace %s meses","en %s meses"],["hace 1 año","en 1 año"],["hace %s años","en %s años"]][ot]}var Pp=Sl.default=Vc,Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});function _o(et,ot){return[["juuri äsken","juuri nyt"],["%s sekuntia sitten","%s sekunnin päästä"],["minuutti sitten","minuutin päästä"],["%s minuuttia sitten","%s minuutin päästä"],["tunti sitten","tunnin päästä"],["%s tuntia sitten","%s tunnin päästä"],["päivä sitten","päivän päästä"],["%s päivää sitten","%s päivän päästä"],["viikko sitten","viikon päästä"],["%s viikkoa sitten","%s viikon päästä"],["kuukausi sitten","kuukauden päästä"],["%s kuukautta sitten","%s kuukauden päästä"],["vuosi sitten","vuoden päästä"],["%s vuotta sitten","%s vuoden päästä"]][ot]}var so=Hs.default=_o,Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});function Dy(et,ot){return[["à l'instant","dans un instant"],["il y a %s secondes","dans %s secondes"],["il y a 1 minute","dans 1 minute"],["il y a %s minutes","dans %s minutes"],["il y a 1 heure","dans 1 heure"],["il y a %s heures","dans %s heures"],["il y a 1 jour","dans 1 jour"],["il y a %s jours","dans %s jours"],["il y a 1 semaine","dans 1 semaine"],["il y a %s semaines","dans %s semaines"],["il y a 1 mois","dans 1 mois"],["il y a %s mois","dans %s mois"],["il y a 1 an","dans 1 an"],["il y a %s ans","dans %s ans"]][ot]}var Iy=Qo.default=Dy,La={};Object.defineProperty(La,"__esModule",{value:!0});function zp(et,ot){return[["xusto agora","daquí a un pouco"],["hai %s segundos","en %s segundos"],["hai 1 minuto","nun minuto"],["hai %s minutos","en %s minutos"],["hai 1 hora","nunha hora"],["hai %s horas","en %s horas"],["hai 1 día","nun día"],["hai %s días","en %s días"],["hai 1 semana","nunha semana"],["hai %s semanas","en %s semanas"],["hai 1 mes","nun mes"],["hai %s meses","en %s meses"],["hai 1 ano","nun ano"],["hai %s anos","en %s anos"]][ot]}var Xl=La.default=zp,lo={};Object.defineProperty(lo,"__esModule",{value:!0});function Pf(et,ot){return[["अभी","कुछ समय"],["%s सेकंड पहले","%s सेकंड में"],["1 मिनट पहले","1 मिनट में"],["%s मिनट पहले","%s मिनट में"],["1 घंटे पहले","1 घंटे में"],["%s घंटे पहले","%s घंटे में"],["1 दिन पहले","1 दिन में"],["%s दिन पहले","%s दिनों में"],["1 सप्ताह पहले","1 सप्ताह में"],["%s हफ्ते पहले","%s हफ्तों में"],["1 महीने पहले","1 महीने में"],["%s महीने पहले","%s महीनों में"],["1 साल पहले","1 साल में"],["%s साल पहले","%s साल में"]][ot]}var Vs=lo.default=Pf,Rp={};Object.defineProperty(Rp,"__esModule",{value:!0});function Id(et,ot){return[["poco fa","fra poco"],["%s secondi fa","fra %s secondi"],["un minuto fa","fra un minuto"],["%s minuti fa","fra %s minuti"],["un'ora fa","fra un'ora"],["%s ore fa","fra %s ore"],["un giorno fa","fra un giorno"],["%s giorni fa","fra %s giorni"],["una settimana fa","fra una settimana"],["%s settimane fa","fra %s settimane"],["un mese fa","fra un mese"],["%s mesi fa","fra %s mesi"],["un anno fa","fra un anno"],["%s anni fa","fra %s anni"]][ot]}var Oo=Rp.default=Id,pa={};Object.defineProperty(pa,"__esModule",{value:!0});function Ld(et,ot){return[["방금","곧"],["%s초 전","%s초 후"],["1분 전","1분 후"],["%s분 전","%s분 후"],["1시간 전","1시간 후"],["%s시간 전","%s시간 후"],["1일 전","1일 후"],["%s일 전","%s일 후"],["1주일 전","1주일 후"],["%s주일 전","%s주일 후"],["1개월 전","1개월 후"],["%s개월 전","%s개월 후"],["1년 전","1년 후"],["%s년 전","%s년 후"]][ot]}var Cl=pa.default=Ld,_c={};Object.defineProperty(_c,"__esModule",{value:!0});function Mu(et,ot){return[["recent","binnenkort"],["%s seconden geleden","binnen %s seconden"],["1 minuut geleden","binnen 1 minuut"],["%s minuten geleden","binnen %s minuten"],["1 uur geleden","binnen 1 uur"],["%s uur geleden","binnen %s uur"],["1 dag geleden","binnen 1 dag"],["%s dagen geleden","binnen %s dagen"],["1 week geleden","binnen 1 week"],["%s weken geleden","binnen %s weken"],["1 maand geleden","binnen 1 maand"],["%s maanden geleden","binnen %s maanden"],["1 jaar geleden","binnen 1 jaar"],["%s jaar geleden","binnen %s jaar"]][ot]}var Bh=_c.default=Mu,Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});function e1(et,ot){return[["agora mesmo","agora"],["há %s segundos","em %s segundos"],["há um minuto","em um minuto"],["há %s minutos","em %s minutos"],["há uma hora","em uma hora"],["há %s horas","em %s horas"],["há um dia","em um dia"],["há %s dias","em %s dias"],["há uma semana","em uma semana"],["há %s semanas","em %s semanas"],["há um mês","em um mês"],["há %s meses","em %s meses"],["há um ano","em um ano"],["há %s anos","em %s anos"]][ot]}var kl=Ko.default=e1,Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});function Ss(et,ot){return[["just nu","om en stund"],["%s sekunder sedan","om %s sekunder"],["1 minut sedan","om 1 minut"],["%s minuter sedan","om %s minuter"],["1 timme sedan","om 1 timme"],["%s timmar sedan","om %s timmar"],["1 dag sedan","om 1 dag"],["%s dagar sedan","om %s dagar"],["1 vecka sedan","om 1 vecka"],["%s veckor sedan","om %s veckor"],["1 månad sedan","om 1 månad"],["%s månader sedan","om %s månader"],["1 år sedan","om 1 år"],["%s år sedan","om %s år"]][ot]}var jp=Xo.default=Ss,n1={};Object.defineProperty(n1,"__esModule",{value:!0});function Od(et,ot){return[["เมื่อสักครู่นี้","อีกสักครู่"],["%s วินาทีที่แล้ว","ใน %s วินาที"],["1 นาทีที่แล้ว","ใน 1 นาที"],["%s นาทีที่แล้ว","ใน %s นาที"],["1 ชั่วโมงที่แล้ว","ใน 1 ชั่วโมง"],["%s ชั่วโมงที่แล้ว","ใน %s ชั่วโมง"],["1 วันที่แล้ว","ใน 1 วัน"],["%s วันที่แล้ว","ใน %s วัน"],["1 อาทิตย์ที่แล้ว","ใน 1 อาทิตย์"],["%s อาทิตย์ที่แล้ว","ใน %s อาทิตย์"],["1 เดือนที่แล้ว","ใน 1 เดือน"],["%s เดือนที่แล้ว","ใน %s เดือน"],["1 ปีที่แล้ว","ใน 1 ปี"],["%s ปีที่แล้ว","ใน %s ปี"]][ot]}var r1=n1.default=Od,s0={};Object.defineProperty(s0,"__esModule",{value:!0});function ga(et,ot){return[["az önce","şimdi"],["%s saniye önce","%s saniye içinde"],["1 dakika önce","1 dakika içinde"],["%s dakika önce","%s dakika içinde"],["1 saat önce","1 saat içinde"],["%s saat önce","%s saat içinde"],["1 gün önce","1 gün içinde"],["%s gün önce","%s gün içinde"],["1 hafta önce","1 hafta içinde"],["%s hafta önce","%s hafta içinde"],["1 ay önce","1 ay içinde"],["%s ay önce","%s ay içinde"],["1 yıl önce","1 yıl içinde"],["%s yıl önce","%s yıl içinde"]][ot]}var Tu=s0.default=ga;const _s={ar:Eu,cs:ls,de:Dd,el:yc,es:vc,fi:hl,fr:Ip,gl:Af,hi:Nf,it:Df,ko:qo,nl:Xm,pt:bc,sv:i0,th:Zm,tr:eo,ur:o0},Al=new Ia({allowMissing:!0});Al.init=(et,ot)=>{Al.clear(),et&&(Al.locale(et),Al.extend(_s[et])),ot&&Al.extend(ot)},Go("ar",Ny),Go("cs",Hc),Go("de",qn),Go("el",Ql),Go("es",Pp),Go("fi",so),Go("fr",Iy),Go("gl",Xl),Go("hi",Vs),Go("it",Oo),Go("ko",Cl),Go("nl",Bh),Go("pt",kl),Go("sv",jp),Go("th",r1),Go("tr",Tu),Al.registerMessages=(et,ot)=>{_s[et]?_s[et]=nt(nt({},_s[et]),ot):_s[et]=ot};var cs=Al,zf=et=>{const ot=ie();return sf(ot,()=>et.onClickOutside()),Dt("ul",{ref:ot,className:"r6o-comment-dropdown-menu"},Dt("li",{onClick:et.onEdit},cs.t("Edit")),Dt("li",{onClick:et.onDelete},cs.t("Delete")))},Ro={},Tr={},Bp={exports:{}};/*! + autosize 4.0.4 + license: MIT + http://www.jacklmoore.com/autosize +*/(function(et,ot){(function(ut,dt){dt(et,ot)})(Qs,function(ut,dt){var gt=typeof Map=="function"?new Map:function(){var le=[],Ue=[];return{has:function(tn){return le.indexOf(tn)>-1},get:function(tn){return Ue[le.indexOf(tn)]},set:function(tn,ln){le.indexOf(tn)===-1&&(le.push(tn),Ue.push(ln))},delete:function(tn){var ln=le.indexOf(tn);ln>-1&&(le.splice(ln,1),Ue.splice(ln,1))}}}(),Mt=function(le){return new Event(le,{bubbles:!0})};try{new Event("test")}catch{Mt=function(Ue){var tn=document.createEvent("Event");return tn.initEvent(Ue,!0,!1),tn}}function zt(le){if(!le||!le.nodeName||le.nodeName!=="TEXTAREA"||gt.has(le))return;var Ue=null,tn=null,ln=null;function Mn(){var Gr=window.getComputedStyle(le,null);Gr.resize==="vertical"?le.style.resize="none":Gr.resize==="both"&&(le.style.resize="horizontal"),Gr.boxSizing==="content-box"?Ue=-(parseFloat(Gr.paddingTop)+parseFloat(Gr.paddingBottom)):Ue=parseFloat(Gr.borderTopWidth)+parseFloat(Gr.borderBottomWidth),isNaN(Ue)&&(Ue=0),fr()}function Rn(Gr){{var li=le.style.width;le.style.width="0px",le.offsetWidth,le.style.width=li}le.style.overflowY=Gr}function On(Gr){for(var li=[];Gr&&Gr.parentNode&&Gr.parentNode instanceof Element;)Gr.parentNode.scrollTop&&li.push({node:Gr.parentNode,scrollTop:Gr.parentNode.scrollTop}),Gr=Gr.parentNode;return li}function or(){if(le.scrollHeight!==0){var Gr=On(le),li=document.documentElement&&document.documentElement.scrollTop;le.style.height="",le.style.height=le.scrollHeight+Ue+"px",tn=le.clientWidth,Gr.forEach(function(Jr){Jr.node.scrollTop=Jr.scrollTop}),li&&(document.documentElement.scrollTop=li)}}function fr(){or();var Gr=Math.round(parseFloat(le.style.height)),li=window.getComputedStyle(le,null),Jr=li.boxSizing==="content-box"?Math.round(parseFloat(li.height)):le.offsetHeight;if(Jr"u"||typeof window.getComputedStyle!="function"?(he=function(le){return le},he.destroy=function(le){return le},he.update=function(le){return le}):(he=function(le,Ue){return le&&Array.prototype.forEach.call(le.length?le:[le],function(tn){return zt(tn)}),le},he.destroy=function(le){return le&&Array.prototype.forEach.call(le.length?le:[le],Jt),le},he.update=function(le){return le&&Array.prototype.forEach.call(le.length?le:[le],ue),le}),dt.default=he,ut.exports=dt.default})})(Bp,Bp.exports);var Rf=function(et,ot,ut){return ut=window.getComputedStyle,(ut?ut(et):et.currentStyle)[ot.replace(/-(\w)/gi,function(dt,gt){return gt.toUpperCase()})]},Oa=Rf,dl=Oa;function th(et){var ot=dl(et,"line-height"),ut=parseFloat(ot,10);if(ot===ut+""){var dt=et.style.lineHeight;et.style.lineHeight=ot+"em",ot=dl(et,"line-height"),ut=parseFloat(ot,10),dt?et.style.lineHeight=dt:delete et.style.lineHeight}if(ot.indexOf("pt")!==-1?(ut*=4,ut/=3):ot.indexOf("mm")!==-1?(ut*=96,ut/=25.4):ot.indexOf("cm")!==-1?(ut*=96,ut/=2.54):ot.indexOf("in")!==-1?ut*=96:ot.indexOf("pc")!==-1&&(ut*=16),ut=Math.round(ut),ot==="normal"){var gt=et.nodeName,Mt=document.createElement(gt);Mt.innerHTML=" ",gt.toUpperCase()==="TEXTAREA"&&Mt.setAttribute("rows","1");var zt=dl(et,"font-size");Mt.style.fontSize=zt,Mt.style.padding="0px",Mt.style.border="0px";var Jt=document.body;Jt.appendChild(Mt);var ue=Mt.offsetHeight;ut=ue,Jt.removeChild(Mt)}return ut}var jf=th,a0=Qs&&Qs.__extends||function(){var et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,ut){ot.__proto__=ut}||function(ot,ut){for(var dt in ut)ut.hasOwnProperty(dt)&&(ot[dt]=ut[dt])};return function(ot,ut){et(ot,ut);function dt(){this.constructor=ot}ot.prototype=ut===null?Object.create(ut):(dt.prototype=ut.prototype,new dt)}}(),$p=Qs&&Qs.__assign||Object.assign||function(et){for(var ot,ut=1,dt=arguments.length;ut{ut.which===13&&ut.ctrlKey&&this.props.onSaveAndClose()}),this.element=Nt()}componentDidMount(){this.props.focus&&this.element.current&&this.element.current.focus({preventScroll:!0})}render(){return Dt(So,{ref:this.element,className:"r6o-editable-text",value:this.props.content,placeholder:this.props.placeholder||cs.t("Add a comment..."),disabled:!this.props.editable,onChange:this.props.onChange,onKeyDown:this.onKeyDown})}}function Ar(){return Ar=Object.assign||function(et){for(var ot=1;ot0?us(xc,--Ga):0,Uh--,es===10&&(Uh=1,Va--),es}function yo(){return es=Ga2||Kl(es)>3?"":" "}function js(et,ot){for(;--ot&&yo()&&!(es<48||es>102||es>57&&es<65||es>70&&es<97););return qa(et,As()+(ot<6&&Wa()==32&&yo()==32))}function Qa(et){for(;yo();)switch(es){case et:return Ga;case 34:case 39:return Qa(et===34||et===39?et:es);case 40:et===41&&Qa(et);break;case 92:yo();break}return Ga}function ia(et,ot){for(;yo()&&et+es!==47+10&&!(et+es===42+42&&Wa()===47););return"/*"+qa(ot,Ga-1)+"*"+Pa(et===47?et:yo())}function a1(et){for(;!Kl(Wa());)yo();return qa(et,Ga)}function Au(et){return ih(Wc("",null,null,null,[""],et=Fp(et),0,[0],et))}function Wc(et,ot,ut,dt,gt,Mt,zt,Jt,ue){for(var he=0,le=0,Ue=zt,tn=0,ln=0,Mn=0,Rn=1,On=1,or=1,fr=0,oi="",Zr=gt,Gr=Mt,li=dt,Jr=oi;On;)switch(Mn=fr,fr=yo()){case 34:case 39:case 91:case 40:Jr+=Mc(fr);break;case 9:case 10:case 13:case 32:Jr+=Gc(Mn);break;case 92:Jr+=js(As()-1,7);continue;case 47:switch(Wa()){case 42:case 47:ks(Gs(ia(yo(),As()),ot,ut),ue);break;default:Jr+="/"}break;case 123*Rn:Jt[he++]=wc(Jr)*or;case 125*Rn:case 59:case 0:switch(fr){case 0:case 125:On=0;case 59+le:ln>0&&wc(Jr)-Ue&&ks(ln>32?Dl(Jr+";",dt,ut,Ue-1):Dl(Ji(Jr," ","")+";",dt,ut,Ue-2),ue);break;case 59:Jr+=";";default:if(ks(li=Ns(Jr,ot,ut,he,le,gt,Jt,oi,Zr=[],Gr=[],Ue),Mt),fr===123)if(le===0)Wc(Jr,ot,li,li,Zr,Mt,Ue,Jt,Gr);else switch(tn){case 100:case 109:case 115:Wc(et,li,li,dt&&ks(Ns(et,li,li,0,0,gt,Jt,oi,gt,Zr=[],Ue),Gr),gt,Gr,Ue,Jt,dt?Zr:Gr);break;default:Wc(Jr,li,li,li,[""],Gr,Ue,Jt,Gr)}}he=le=ln=0,Rn=or=1,oi=Jr="",Ue=zt;break;case 58:Ue=1+wc(Jr),ln=Mn;default:if(Rn<1){if(fr==123)--Rn;else if(fr==125&&Rn++==0&&Ec()==125)continue}switch(Jr+=Pa(fr),fr*Rn){case 38:or=le>0?1:(Jr+="\f",-1);break;case 44:Jt[he++]=(wc(Jr)-1)*or,or=1;break;case 64:Wa()===45&&(Jr+=Mc(yo())),tn=Wa(),le=wc(oi=Jr+=a1(As())),fr++;break;case 45:Mn===45&&wc(Jr)==2&&(Rn=0)}}return Mt}function Ns(et,ot,ut,dt,gt,Mt,zt,Jt,ue,he,le){for(var Ue=gt-1,tn=gt===0?Mt:[""],ln=zd(tn),Mn=0,Rn=0,On=0;Mn0?tn[or]+" "+fr:Ji(fr,/&\f/g,tn[or])))&&(ue[On++]=oi);return Bf(et,ot,ut,gt===0?ya:Jt,ue,he,le)}function Gs(et,ot,ut){return Bf(et,ot,ut,Zl,Pa(Yh()),ts(et,2,-2),0)}function Dl(et,ot,ut,dt){return Bf(et,ot,ut,Cs,ts(et,0,dt),ts(et,dt+1,-1),dt)}function Xa(et,ot){switch(rh(et,ot)){case 5103:return ro+"print-"+et+et;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ro+et+et;case 5349:case 4246:case 4810:case 6968:case 2756:return ro+et+ma+et+Xr+et+et;case 6828:case 4268:return ro+et+Xr+et+et;case 6165:return ro+et+Xr+"flex-"+et+et;case 5187:return ro+et+Ji(et,/(\w+).+(:[^]+)/,ro+"box-$1$2"+Xr+"flex-$1$2")+et;case 5443:return ro+et+Xr+"flex-item-"+Ji(et,/flex-|-self/,"")+et;case 4675:return ro+et+Xr+"flex-line-pack"+Ji(et,/align-content|flex-|-self/,"")+et;case 5548:return ro+et+Xr+Ji(et,"shrink","negative")+et;case 5292:return ro+et+Xr+Ji(et,"basis","preferred-size")+et;case 6060:return ro+"box-"+Ji(et,"-grow","")+ro+et+Xr+Ji(et,"grow","positive")+et;case 4554:return ro+Ji(et,/([^-])(transform)/g,"$1"+ro+"$2")+et;case 6187:return Ji(Ji(Ji(et,/(zoom-|grab)/,ro+"$1"),/(image-set)/,ro+"$1"),et,"")+et;case 5495:case 3959:return Ji(et,/(image-set\([^]*)/,ro+"$1$`$1");case 4968:return Ji(Ji(et,/(.+:)(flex-)?(.*)/,ro+"box-pack:$3"+Xr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ro+et+et;case 4095:case 3583:case 4068:case 2532:return Ji(et,/(.+)-inline(.+)/,ro+"$1$2")+et;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wc(et)-1-ot>6)switch(us(et,ot+1)){case 109:if(us(et,ot+4)!==45)break;case 102:return Ji(et,/(.+:)(.+)-([^]+)/,"$1"+ro+"$2-$3$1"+ma+(us(et,ot+3)==108?"$3":"$2-$3"))+et;case 115:return~Cu(et,"stretch")?Xa(Ji(et,"stretch","fill-available"),ot)+et:et}break;case 4949:if(us(et,ot+1)!==115)break;case 6444:switch(us(et,wc(et)-3-(~Cu(et,"!important")&&10))){case 107:return Ji(et,":",":"+ro)+et;case 101:return Ji(et,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ro+(us(et,14)===45?"inline-":"")+"box$3$1"+ro+"$2$3$1"+Xr+"$2box$3")+et}break;case 5936:switch(us(et,ot+11)){case 114:return ro+et+Xr+Ji(et,/[svh]\w+-[tblr]{2}/,"tb")+et;case 108:return ro+et+Xr+Ji(et,/[svh]\w+-[tblr]{2}/,"tb-rl")+et;case 45:return ro+et+Xr+Ji(et,/[svh]\w+-[tblr]{2}/,"lr")+et}return ro+et+Xr+et+et}return et}function Hh(et,ot){for(var ut="",dt=zd(et),gt=0;gt=4;++dt,gt-=4)ut=et.charCodeAt(dt)&255|(et.charCodeAt(++dt)&255)<<8|(et.charCodeAt(++dt)&255)<<16|(et.charCodeAt(++dt)&255)<<24,ut=(ut&65535)*1540483477+((ut>>>16)*59797<<16),ut^=ut>>>24,ot=(ut&65535)*1540483477+((ut>>>16)*59797<<16)^(ot&65535)*1540483477+((ot>>>16)*59797<<16);switch(gt){case 3:ot^=(et.charCodeAt(dt+2)&255)<<16;case 2:ot^=(et.charCodeAt(dt+1)&255)<<8;case 1:ot^=et.charCodeAt(dt)&255,ot=(ot&65535)*1540483477+((ot>>>16)*59797<<16)}return ot^=ot>>>13,ot=(ot&65535)*1540483477+((ot>>>16)*59797<<16),((ot^ot>>>15)>>>0).toString(36)}var ah={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ti=/[A-Z]|^ms/g,Iu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qh=function(et){return et.charCodeAt(1)===45},Lu=function(et){return et!=null&&typeof et!="boolean"},va=Bs(function(et){return Qh(et)?et:et.replace(ti,"-$&").toLowerCase()}),h0=function(et,ot){switch(et){case"animation":case"animationName":if(typeof ot=="string")return ot.replace(Iu,function(ut,dt,gt){return Ll={name:dt,styles:gt,next:Ll},dt})}return ah[et]!==1&&!Qh(et)&&typeof ot=="number"&&ot!==0?ot+"px":ot};function qs(et,ot,ut){if(ut==null)return"";if(ut.__emotion_styles!==void 0)return ut;switch(typeof ut){case"boolean":return"";case"object":{if(ut.anim===1)return Ll={name:ut.name,styles:ut.styles,next:Ll},ut.name;if(ut.styles!==void 0){var dt=ut.next;if(dt!==void 0)for(;dt!==void 0;)Ll={name:dt.name,styles:dt.styles,next:Ll},dt=dt.next;var gt=ut.styles+";";return gt}return ns(et,ot,ut)}case"function":{if(et!==void 0){var Mt=Ll,zt=ut(et);return Ll=Mt,qs(et,ot,zt)}break}}if(ot==null)return ut;var Jt=ot[ut];return Jt!==void 0?Jt:ut}function ns(et,ot,ut){var dt="";if(Array.isArray(ut))for(var gt=0;gt=0)&&(ut[gt]=et[gt]);return ut}function Sc(et,ot){if(et==null)return{};var ut=Vp(et,ot),dt,gt;if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(et);for(gt=0;gt=0)&&(!Object.prototype.propertyIsEnumerable.call(et,dt)||(ut[dt]=et[dt]))}return ut}function lh(et){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lh=function(ot){return typeof ot}:lh=function(ot){return ot&&typeof Symbol=="function"&&ot.constructor===Symbol&&ot!==Symbol.prototype?"symbol":typeof ot},lh(et)}var Yf={};Object.defineProperty(Yf,"__esModule",{value:!0});var Gp=Object.assign||function(et){for(var ot=1;ot=0||!Object.prototype.hasOwnProperty.call(et,dt)||(ut[dt]=et[dt]);return ut}function m0(et,ot){if(!(et instanceof ot))throw new TypeError("Cannot call a class as a function")}function Qp(et,ot){if(!et)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ot&&(typeof ot=="object"||typeof ot=="function")?ot:et}function y0(et,ot){if(typeof ot!="function"&&ot!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ot);et.prototype=Object.create(ot&&ot.prototype,{constructor:{value:et,enumerable:!1,writable:!0,configurable:!0}}),ot&&(Object.setPrototypeOf?Object.setPrototypeOf(et,ot):et.__proto__=ot)}var v0={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},b0=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],h1=function(et){return b0.forEach(function(ot){return delete et[ot]}),et},_0=function(et,ot){ot.style.fontSize=et.fontSize,ot.style.fontFamily=et.fontFamily,ot.style.fontWeight=et.fontWeight,ot.style.fontStyle=et.fontStyle,ot.style.letterSpacing=et.letterSpacing,ot.style.textTransform=et.textTransform},w0=typeof window<"u"&&window.navigator?/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent):!1,x0=function(){return w0?"_"+Math.random().toString(36).substr(2,12):void 0},Xp=function(et){y0(ot,et),p0(ot,null,[{key:"getDerivedStateFromProps",value:function(ut,dt){var gt=ut.id;return gt!==dt.prevId?{inputId:gt||x0(),prevId:gt}:null}}]);function ot(ut){m0(this,ot);var dt=Qp(this,(ot.__proto__||Object.getPrototypeOf(ot)).call(this,ut));return dt.inputRef=function(gt){dt.input=gt,typeof dt.props.inputRef=="function"&&dt.props.inputRef(gt)},dt.placeHolderSizerRef=function(gt){dt.placeHolderSizer=gt},dt.sizerRef=function(gt){dt.sizer=gt},dt.state={inputWidth:ut.minWidth,inputId:ut.id||x0(),prevId:ut.id},dt}return p0(ot,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(ut,dt){dt.inputWidth!==this.state.inputWidth&&typeof this.props.onAutosize=="function"&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(!(!this.mounted||!window.getComputedStyle)){var ut=this.input&&window.getComputedStyle(this.input);!ut||(_0(ut,this.sizer),this.placeHolderSizer&&_0(ut,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||typeof this.sizer.scrollWidth>"u")){var ut=void 0;this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?ut=Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:ut=this.sizer.scrollWidth+2;var dt=this.props.type==="number"&&this.props.extraWidth===void 0?16:parseInt(this.props.extraWidth)||0;ut+=dt,ut"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f1(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function Qd(et,ot){return ot&&(typeof ot=="object"||typeof ot=="function")?ot:f1(et)}function Zh(et){var ot=M0();return function(){var ut=Jp(et),dt;if(ot){var gt=Jp(this).constructor;dt=Reflect.construct(ut,arguments,gt)}else dt=ut.apply(this,arguments);return Qd(this,dt)}}var ch=function(){};function Kp(et,ot){return ot?ot[0]==="-"?et+ot:et+"__"+ot:et}function p1(et,ot,ut){var dt=[ut];if(ot&&et)for(var gt in ot)ot.hasOwnProperty(gt)&&ot[gt]&&dt.push("".concat(Kp(et,gt)));return dt.filter(function(Mt){return Mt}).map(function(Mt){return String(Mt).trim()}).join(" ")}var T0=function(et){return Array.isArray(et)?et.filter(Boolean):lh(et)==="object"&&et!==null?[et]:[]},g1=function(et){et.className,et.clearValue,et.cx,et.getStyles,et.getValue,et.hasValue,et.isMulti,et.isRtl,et.options,et.selectOption,et.selectProps,et.setValue,et.theme;var ot=Sc(et,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]);return $s({},ot)};function S0(et){return[document.documentElement,document.body,window].indexOf(et)>-1}function C0(et){return S0(et)?window.pageYOffset:et.scrollTop}function tg(et,ot){if(S0(et)){window.scrollTo(0,ot);return}et.scrollTop=ot}function m1(et){var ot=getComputedStyle(et),ut=ot.position==="absolute",dt=/(auto|scroll)/,gt=document.documentElement;if(ot.position==="fixed")return gt;for(var Mt=et;Mt=Mt.parentElement;)if(ot=getComputedStyle(Mt),!(ut&&ot.position==="static")&&dt.test(ot.overflow+ot.overflowY+ot.overflowX))return Mt;return gt}function k0(et,ot,ut,dt){return ut*((et=et/dt-1)*et*et+1)+ot}function Wf(et,ot){var ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ch,gt=C0(et),Mt=ot-gt,zt=10,Jt=0;function ue(){Jt+=zt;var he=k0(Jt,gt,Mt,ut);tg(et,he),Jtut.bottom?tg(et,Math.min(ot.offsetTop+ot.clientHeight-et.offsetHeight+gt,et.scrollHeight)):dt.top-gt=Rn)return{placement:"bottom",maxHeight:ot};if(jo>=Rn&&!zt)return Mt&&Wf(he,Bo,Ol),{placement:"bottom",maxHeight:ot};if(!zt&&jo>=dt||zt&&gs>=dt){Mt&&Wf(he,Bo,Ol);var ed=zt?gs-Gr:jo-Gr;return{placement:"bottom",maxHeight:ed}}if(gt==="auto"||zt){var tu=ot,Ou=zt?Jr:ws;return Ou>=dt&&(tu=Math.min(Ou-Gr-ue.controlHeight,ot)),{placement:"top",maxHeight:tu}}if(gt==="bottom")return Mt&&tg(he,Bo),{placement:"bottom",maxHeight:ot};break;case"top":if(Jr>=Rn)return{placement:"top",maxHeight:ot};if(ws>=Rn&&!zt)return Mt&&Wf(he,Kc,Ol),{placement:"top",maxHeight:ot};if(!zt&&ws>=dt||zt&&Jr>=dt){var Ja=ot;return(!zt&&ws>=dt||zt&&Jr>=dt)&&(Ja=zt?Jr-li:ws-li),Mt&&Wf(he,Kc,Ol),{placement:"top",maxHeight:Ja}}return{placement:"bottom",maxHeight:ot};default:throw new Error('Invalid placement provided "'.concat(gt,'".'))}return le}function w1(et){var ot={bottom:"top",top:"bottom"};return et?ot[et]:"bottom"}var Kh=function(et){return et==="auto"?"bottom":et},x1=function(et){var ot,ut=et.placement,dt=et.theme,gt=dt.borderRadius,Mt=dt.spacing,zt=dt.colors;return ot={label:"menu"},Jc(ot,w1(ut),"100%"),Jc(ot,"backgroundColor",zt.neutral0),Jc(ot,"borderRadius",gt),Jc(ot,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Jc(ot,"marginBottom",Mt.menuGutter),Jc(ot,"marginTop",Mt.menuGutter),Jc(ot,"position","absolute"),Jc(ot,"width","100%"),Jc(ot,"zIndex",1),ot},E1=ge({getPortalPlacement:null}),M1=function(et){Wd(ut,et);var ot=Zh(ut);function ut(){var dt;Xh(this,ut);for(var gt=arguments.length,Mt=new Array(gt),zt=0;ztet.length)&&(ot=et.length);for(var ut=0,dt=new Array(ot);ut-1}};function $b(et){et.in,et.out,et.onExited,et.appear,et.enter,et.exit;var ot=et.innerRef;et.emotion;var ut=Sc(et,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Hr("input",Ar({ref:ot},ut,{css:pl({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var Fb=function(et){et.preventDefault(),et.stopPropagation()};function Ub(et){var ot=et.isEnabled,ut=et.onBottomArrive,dt=et.onBottomLeave,gt=et.onTopArrive,Mt=et.onTopLeave,zt=ie(!1),Jt=ie(!1),ue=ie(0),he=ie(null),le=Ae(function(On,or){if(he.current!==null){var fr=he.current,oi=fr.scrollTop,Zr=fr.scrollHeight,Gr=fr.clientHeight,li=he.current,Jr=or>0,gs=Zr-Gr-oi,ws=!1;gs>or&&zt.current&&(dt&&dt(On),zt.current=!1),Jr&&Jt.current&&(Mt&&Mt(On),Jt.current=!1),Jr&&or>gs?(ut&&!zt.current&&ut(On),li.scrollTop=Zr,ws=!0,zt.current=!0):!Jr&&-or>oi&&(gt&&!Jt.current&>(On),li.scrollTop=0,ws=!0,Jt.current=!0),ws&&Fb(On)}},[]),Ue=Ae(function(On){le(On,On.deltaY)},[le]),tn=Ae(function(On){ue.current=On.changedTouches[0].clientY},[]),ln=Ae(function(On){var or=ue.current-On.changedTouches[0].clientY;le(On,or)},[le]),Mn=Ae(function(On){if(On){var or=b1?{passive:!1}:!1;typeof On.addEventListener=="function"&&On.addEventListener("wheel",Ue,or),typeof On.addEventListener=="function"&&On.addEventListener("touchstart",tn,or),typeof On.addEventListener=="function"&&On.addEventListener("touchmove",ln,or)}},[ln,tn,Ue]),Rn=Ae(function(On){!On||(typeof On.removeEventListener=="function"&&On.removeEventListener("wheel",Ue,!1),typeof On.removeEventListener=="function"&&On.removeEventListener("touchstart",tn,!1),typeof On.removeEventListener=="function"&&On.removeEventListener("touchmove",ln,!1))},[ln,tn,Ue]);return sr(function(){if(ot){var On=he.current;return Mn(On),function(){Rn(On)}}},[ot,Mn,Rn]),function(On){he.current=On}}var _v=["boxSizing","height","overflow","paddingRight","position"],wv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function xv(et){et.preventDefault()}function Ev(et){et.stopPropagation()}function Mv(){var et=this.scrollTop,ot=this.scrollHeight,ut=et+this.offsetHeight;et===0?this.scrollTop=1:ut===ot&&(this.scrollTop=et-1)}function Tv(){return"ontouchstart"in window||navigator.maxTouchPoints}var Sv=!!(typeof window<"u"&&window.document&&window.document.createElement),D0=0,ng={capture:!1,passive:!1};function Yb(et){var ot=et.isEnabled,ut=et.accountForScrollbars,dt=ut===void 0?!0:ut,gt=ie({}),Mt=ie(null),zt=Ae(function(ue){if(Sv){var he=document.body,le=he&&he.style;if(dt&&_v.forEach(function(Mn){var Rn=le&&le[Mn];gt.current[Mn]=Rn}),dt&&D0<1){var Ue=parseInt(gt.current.paddingRight,10)||0,tn=document.body?document.body.clientWidth:0,ln=window.innerWidth-tn+Ue||0;Object.keys(wv).forEach(function(Mn){var Rn=wv[Mn];le&&(le[Mn]=Rn)}),le&&(le.paddingRight="".concat(ln,"px"))}he&&Tv()&&(he.addEventListener("touchmove",xv,ng),ue&&(ue.addEventListener("touchstart",Mv,ng),ue.addEventListener("touchmove",Ev,ng))),D0+=1}},[]),Jt=Ae(function(ue){if(Sv){var he=document.body,le=he&&he.style;D0=Math.max(D0-1,0),dt&&D0<1&&_v.forEach(function(Ue){var tn=gt.current[Ue];le&&(le[Ue]=tn)}),he&&Tv()&&(he.removeEventListener("touchmove",xv,ng),ue&&(ue.removeEventListener("touchstart",Mv,ng),ue.removeEventListener("touchmove",Ev,ng)))}},[]);return sr(function(){if(ot){var ue=Mt.current;return zt(ue),function(){Jt(ue)}}},[ot,zt,Jt]),function(ue){Mt.current=ue}}var Hb=function(){return document.activeElement&&document.activeElement.blur()},Vb={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Gb(et){var ot=et.children,ut=et.lockEnabled,dt=et.captureEnabled,gt=dt===void 0?!0:dt,Mt=et.onBottomArrive,zt=et.onBottomLeave,Jt=et.onTopArrive,ue=et.onTopLeave,he=Ub({isEnabled:gt,onBottomArrive:Mt,onBottomLeave:zt,onTopArrive:Jt,onTopLeave:ue}),le=Yb({isEnabled:ut}),Ue=function(tn){he(tn),le(tn)};return Hr(ur.Fragment,null,ut&&Hr("div",{onClick:Hb,css:Vb}),ot(Ue))}var Wb=function(et){return et.label},qb=function(et){return et.label},Qb=function(et){return et.value},Xb=function(et){return!!et.isDisabled},Zb={clearIndicator:fe,container:at,control:An,dropdownIndicator:Ie,group:mn,groupHeading:Sn,indicatorsContainer:Tt,indicatorSeparator:Ee,input:Nn,loadingIndicator:cn,loadingMessage:U,menu:x1,menuList:By,menuPortal:J,multiValue:Qn,multiValueLabel:ri,multiValueRemove:gr,noOptionsMessage:B,option:uh,placeholder:Xf,singleValue:eg,valueContainer:yt},Jb={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Kb=4,Cv=4,t_=38,e_=Cv*2,n_={baseUnit:Cv,controlHeight:t_,menuGutter:e_},Vy={borderRadius:Kb,colors:Jb,spacing:n_},r_={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:v1(),captureMenuScroll:!v1(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Bb(),formatGroupLabel:Wb,getOptionLabel:qb,getOptionValue:Qb,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Xb,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Ry(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(et){var ot=et.count;return"".concat(ot," result").concat(ot!==1?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function kv(et,ot,ut,dt){var gt=Lv(et,ot,ut),Mt=Ov(et,ot,ut),zt=Iv(et,ot),Jt=A1(et,ot);return{type:"option",data:ot,isDisabled:gt,isSelected:Mt,label:zt,value:Jt,index:dt}}function Av(et,ot){return et.options.map(function(ut,dt){if(ut.options){var gt=ut.options.map(function(zt,Jt){return kv(et,zt,ot,Jt)}).filter(function(zt){return Dv(et,zt)});return gt.length>0?{type:"group",data:ut,options:gt,index:dt}:void 0}var Mt=kv(et,ut,ot,dt);return Dv(et,Mt)?Mt:void 0}).filter(function(ut){return!!ut})}function Nv(et){return et.reduce(function(ot,ut){return ut.type==="group"?ot.push.apply(ot,gv(ut.options.map(function(dt){return dt.data}))):ot.push(ut.data),ot},[])}function i_(et,ot){return Nv(Av(et,ot))}function Dv(et,ot){var ut=et.inputValue,dt=ut===void 0?"":ut,gt=ot.data,Mt=ot.isSelected,zt=ot.label,Jt=ot.value;return(!zv(et)||!Mt)&&Pv(et,{label:zt,value:Jt,data:gt},dt)}function o_(et,ot){var ut=et.focusedValue,dt=et.selectValue,gt=dt.indexOf(ut);if(gt>-1){var Mt=ot.indexOf(ut);if(Mt>-1)return ut;if(gt-1?ut:ot[0]}var Iv=function(et,ot){return et.getOptionLabel(ot)},A1=function(et,ot){return et.getOptionValue(ot)};function Lv(et,ot,ut){return typeof et.isOptionDisabled=="function"?et.isOptionDisabled(ot,ut):!1}function Ov(et,ot,ut){if(ut.indexOf(ot)>-1)return!0;if(typeof et.isOptionSelected=="function")return et.isOptionSelected(ot,ut);var dt=A1(et,ot);return ut.some(function(gt){return A1(et,gt)===dt})}function Pv(et,ot,ut){return et.filterOption?et.filterOption(ot,ut):!0}var zv=function(et){var ot=et.hideSelectedOptions,ut=et.isMulti;return ot===void 0?ut:ot},a_=1,Rv=function(et){Wd(ut,et);var ot=Zh(ut);function ut(dt){var gt;return Xh(this,ut),gt=ot.call(this,dt),gt.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},gt.blockOptionHover=!1,gt.isComposing=!1,gt.commonProps=void 0,gt.initialTouchX=0,gt.initialTouchY=0,gt.instancePrefix="",gt.openAfterFocus=!1,gt.scrollToFocusedOptionOnUpdate=!1,gt.userIsDragging=void 0,gt.controlRef=null,gt.getControlRef=function(Mt){gt.controlRef=Mt},gt.focusedOptionRef=null,gt.getFocusedOptionRef=function(Mt){gt.focusedOptionRef=Mt},gt.menuListRef=null,gt.getMenuListRef=function(Mt){gt.menuListRef=Mt},gt.inputRef=null,gt.getInputRef=function(Mt){gt.inputRef=Mt},gt.focus=gt.focusInput,gt.blur=gt.blurInput,gt.onChange=function(Mt,zt){var Jt=gt.props,ue=Jt.onChange,he=Jt.name;zt.name=he,gt.ariaOnChange(Mt,zt),ue(Mt,zt)},gt.setValue=function(Mt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set-value",Jt=arguments.length>2?arguments[2]:void 0,ue=gt.props,he=ue.closeMenuOnSelect,le=ue.isMulti;gt.onInputChange("",{action:"set-value"}),he&&(gt.setState({inputIsHiddenAfterUpdate:!le}),gt.onMenuClose()),gt.setState({clearFocusValueOnUpdate:!0}),gt.onChange(Mt,{action:zt,option:Jt})},gt.selectOption=function(Mt){var zt=gt.props,Jt=zt.blurInputOnSelect,ue=zt.isMulti,he=zt.name,le=gt.state.selectValue,Ue=ue&>.isOptionSelected(Mt,le),tn=gt.isOptionDisabled(Mt,le);if(Ue){var ln=gt.getOptionValue(Mt);gt.setValue(le.filter(function(Mn){return gt.getOptionValue(Mn)!==ln}),"deselect-option",Mt)}else if(!tn)ue?gt.setValue([].concat(gv(le),[Mt]),"select-option",Mt):gt.setValue(Mt,"select-option");else{gt.ariaOnChange(Mt,{action:"select-option",name:he});return}Jt&>.blurInput()},gt.removeValue=function(Mt){var zt=gt.props.isMulti,Jt=gt.state.selectValue,ue=gt.getOptionValue(Mt),he=Jt.filter(function(Ue){return gt.getOptionValue(Ue)!==ue}),le=zt?he:he[0]||null;gt.onChange(le,{action:"remove-value",removedValue:Mt}),gt.focusInput()},gt.clearValue=function(){var Mt=gt.state.selectValue;gt.onChange(gt.props.isMulti?[]:null,{action:"clear",removedValues:Mt})},gt.popValue=function(){var Mt=gt.props.isMulti,zt=gt.state.selectValue,Jt=zt[zt.length-1],ue=zt.slice(0,zt.length-1),he=Mt?ue:ue[0]||null;gt.onChange(he,{action:"pop-value",removedValue:Jt})},gt.getValue=function(){return gt.state.selectValue},gt.cx=function(){for(var Mt=arguments.length,zt=new Array(Mt),Jt=0;Jtle||he>le}},gt.onTouchEnd=function(Mt){gt.userIsDragging||(gt.controlRef&&!gt.controlRef.contains(Mt.target)&>.menuListRef&&!gt.menuListRef.contains(Mt.target)&>.blurInput(),gt.initialTouchX=0,gt.initialTouchY=0)},gt.onControlTouchEnd=function(Mt){gt.userIsDragging||gt.onControlMouseDown(Mt)},gt.onClearIndicatorTouchEnd=function(Mt){gt.userIsDragging||gt.onClearIndicatorMouseDown(Mt)},gt.onDropdownIndicatorTouchEnd=function(Mt){gt.userIsDragging||gt.onDropdownIndicatorMouseDown(Mt)},gt.handleInputChange=function(Mt){var zt=Mt.currentTarget.value;gt.setState({inputIsHiddenAfterUpdate:!1}),gt.onInputChange(zt,{action:"input-change"}),gt.props.menuIsOpen||gt.onMenuOpen()},gt.onInputFocus=function(Mt){gt.props.onFocus&>.props.onFocus(Mt),gt.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(gt.openAfterFocus||gt.props.openMenuOnFocus)&>.openMenu("first"),gt.openAfterFocus=!1},gt.onInputBlur=function(Mt){if(gt.menuListRef&>.menuListRef.contains(document.activeElement)){gt.inputRef.focus();return}gt.props.onBlur&>.props.onBlur(Mt),gt.onInputChange("",{action:"input-blur"}),gt.onMenuClose(),gt.setState({focusedValue:null,isFocused:!1})},gt.onOptionHover=function(Mt){gt.blockOptionHover||gt.state.focusedOption===Mt||gt.setState({focusedOption:Mt})},gt.shouldHideSelectedOptions=function(){return zv(gt.props)},gt.onKeyDown=function(Mt){var zt=gt.props,Jt=zt.isMulti,ue=zt.backspaceRemovesValue,he=zt.escapeClearsValue,le=zt.inputValue,Ue=zt.isClearable,tn=zt.isDisabled,ln=zt.menuIsOpen,Mn=zt.onKeyDown,Rn=zt.tabSelectsValue,On=zt.openMenuOnFocus,or=gt.state,fr=or.focusedOption,oi=or.focusedValue,Zr=or.selectValue;if(!tn&&!(typeof Mn=="function"&&(Mn(Mt),Mt.defaultPrevented))){switch(gt.blockOptionHover=!0,Mt.key){case"ArrowLeft":if(!Jt||le)return;gt.focusValue("previous");break;case"ArrowRight":if(!Jt||le)return;gt.focusValue("next");break;case"Delete":case"Backspace":if(le)return;if(oi)gt.removeValue(oi);else{if(!ue)return;Jt?gt.popValue():Ue&>.clearValue()}break;case"Tab":if(gt.isComposing||Mt.shiftKey||!ln||!Rn||!fr||On&>.isOptionSelected(fr,Zr))return;gt.selectOption(fr);break;case"Enter":if(Mt.keyCode===229)break;if(ln){if(!fr||gt.isComposing)return;gt.selectOption(fr);break}return;case"Escape":ln?(gt.setState({inputIsHiddenAfterUpdate:!1}),gt.onInputChange("",{action:"menu-close"}),gt.onMenuClose()):Ue&&he&>.clearValue();break;case" ":if(le)return;if(!ln){gt.openMenu("first");break}if(!fr)return;gt.selectOption(fr);break;case"ArrowUp":ln?gt.focusOption("up"):gt.openMenu("last");break;case"ArrowDown":ln?gt.focusOption("down"):gt.openMenu("first");break;case"PageUp":if(!ln)return;gt.focusOption("pageup");break;case"PageDown":if(!ln)return;gt.focusOption("pagedown");break;case"Home":if(!ln)return;gt.focusOption("first");break;case"End":if(!ln)return;gt.focusOption("last");break;default:return}Mt.preventDefault()}},gt.instancePrefix="react-select-"+(gt.props.instanceId||++a_),gt.state.selectValue=T0(dt.value),gt}return Vf(ut,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(dt){var gt=this.props,Mt=gt.isDisabled,zt=gt.menuIsOpen,Jt=this.state.isFocused;(Jt&&!Mt&&dt.isDisabled||Jt&&zt&&!dt.menuIsOpen)&&this.focusInput(),Jt&&Mt&&!dt.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(zy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(dt,gt){this.props.onInputChange(dt,gt)}},{key:"focusInput",value:function(){!this.inputRef||this.inputRef.focus()}},{key:"blurInput",value:function(){!this.inputRef||this.inputRef.blur()}},{key:"openMenu",value:function(dt){var gt=this,Mt=this.state,zt=Mt.selectValue,Jt=Mt.isFocused,ue=this.buildFocusableOptions(),he=dt==="first"?0:ue.length-1;if(!this.props.isMulti){var le=ue.indexOf(zt[0]);le>-1&&(he=le)}this.scrollToFocusedOptionOnUpdate=!(Jt&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:ue[he]},function(){return gt.onMenuOpen()})}},{key:"focusValue",value:function(dt){var gt=this.state,Mt=gt.selectValue,zt=gt.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var Jt=Mt.indexOf(zt);zt||(Jt=-1);var ue=Mt.length-1,he=-1;if(Mt.length){switch(dt){case"previous":Jt===0?he=0:Jt===-1?he=ue:he=Jt-1;break;case"next":Jt>-1&&Jt0&&arguments[0]!==void 0?arguments[0]:"first",gt=this.props.pageSize,Mt=this.state.focusedOption,zt=this.getFocusableOptions();if(zt.length){var Jt=0,ue=zt.indexOf(Mt);Mt||(ue=-1),dt==="up"?Jt=ue>0?ue-1:zt.length-1:dt==="down"?Jt=(ue+1)%zt.length:dt==="pageup"?(Jt=ue-gt,Jt<0&&(Jt=0)):dt==="pagedown"?(Jt=ue+gt,Jt>zt.length-1&&(Jt=zt.length-1)):dt==="last"&&(Jt=zt.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:zt[Jt],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Vy):$s($s({},Vy),this.props.theme):Vy}},{key:"getCommonProps",value:function(){var dt=this.clearValue,gt=this.cx,Mt=this.getStyles,zt=this.getValue,Jt=this.selectOption,ue=this.setValue,he=this.props,le=he.isMulti,Ue=he.isRtl,tn=he.options,ln=this.hasValue();return{clearValue:dt,cx:gt,getStyles:Mt,getValue:zt,hasValue:ln,isMulti:le,isRtl:Ue,options:tn,selectOption:Jt,selectProps:he,setValue:ue,theme:this.getTheme()}}},{key:"hasValue",value:function(){var dt=this.state.selectValue;return dt.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var dt=this.props,gt=dt.isClearable,Mt=dt.isMulti;return gt===void 0?Mt:gt}},{key:"isOptionDisabled",value:function(dt,gt){return Lv(this.props,dt,gt)}},{key:"isOptionSelected",value:function(dt,gt){return Ov(this.props,dt,gt)}},{key:"filterOption",value:function(dt,gt){return Pv(this.props,dt,gt)}},{key:"formatOptionLabel",value:function(dt,gt){if(typeof this.props.formatOptionLabel=="function"){var Mt=this.props.inputValue,zt=this.state.selectValue;return this.props.formatOptionLabel(dt,{context:gt,inputValue:Mt,selectValue:zt})}else return this.getOptionLabel(dt)}},{key:"formatGroupLabel",value:function(dt){return this.props.formatGroupLabel(dt)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var dt=this.props,gt=dt.isDisabled,Mt=dt.isSearchable,zt=dt.inputId,Jt=dt.inputValue,ue=dt.tabIndex,he=dt.form,le=this.getComponents(),Ue=le.Input,tn=this.state.inputIsHidden,ln=this.commonProps,Mn=zt||this.getElementId("input"),Rn={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return Mt?ur.createElement(Ue,Ar({},ln,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:Mn,innerRef:this.getInputRef,isDisabled:gt,isHidden:tn,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:ue,form:he,type:"text",value:Jt},Rn)):ur.createElement($b,Ar({id:Mn,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ch,onFocus:this.onInputFocus,readOnly:!0,disabled:gt,tabIndex:ue,form:he,value:""},Rn))}},{key:"renderPlaceholderOrValue",value:function(){var dt=this,gt=this.getComponents(),Mt=gt.MultiValue,zt=gt.MultiValueContainer,Jt=gt.MultiValueLabel,ue=gt.MultiValueRemove,he=gt.SingleValue,le=gt.Placeholder,Ue=this.commonProps,tn=this.props,ln=tn.controlShouldRenderValue,Mn=tn.isDisabled,Rn=tn.isMulti,On=tn.inputValue,or=tn.placeholder,fr=this.state,oi=fr.selectValue,Zr=fr.focusedValue,Gr=fr.isFocused;if(!this.hasValue()||!ln)return On?null:ur.createElement(le,Ar({},Ue,{key:"placeholder",isDisabled:Mn,isFocused:Gr}),or);if(Rn){var li=oi.map(function(gs,ws){var jo=gs===Zr;return ur.createElement(Mt,Ar({},Ue,{components:{Container:zt,Label:Jt,Remove:ue},isFocused:jo,isDisabled:Mn,key:"".concat(dt.getOptionValue(gs)).concat(ws),index:ws,removeProps:{onClick:function(){return dt.removeValue(gs)},onTouchEnd:function(){return dt.removeValue(gs)},onMouseDown:function(Bo){Bo.preventDefault(),Bo.stopPropagation()}},data:gs}),dt.formatOptionLabel(gs,"value"))});return li}if(On)return null;var Jr=oi[0];return ur.createElement(he,Ar({},Ue,{data:Jr,isDisabled:Mn}),this.formatOptionLabel(Jr,"value"))}},{key:"renderClearIndicator",value:function(){var dt=this.getComponents(),gt=dt.ClearIndicator,Mt=this.commonProps,zt=this.props,Jt=zt.isDisabled,ue=zt.isLoading,he=this.state.isFocused;if(!this.isClearable()||!gt||Jt||!this.hasValue()||ue)return null;var le={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ur.createElement(gt,Ar({},Mt,{innerProps:le,isFocused:he}))}},{key:"renderLoadingIndicator",value:function(){var dt=this.getComponents(),gt=dt.LoadingIndicator,Mt=this.commonProps,zt=this.props,Jt=zt.isDisabled,ue=zt.isLoading,he=this.state.isFocused;if(!gt||!ue)return null;var le={"aria-hidden":"true"};return ur.createElement(gt,Ar({},Mt,{innerProps:le,isDisabled:Jt,isFocused:he}))}},{key:"renderIndicatorSeparator",value:function(){var dt=this.getComponents(),gt=dt.DropdownIndicator,Mt=dt.IndicatorSeparator;if(!gt||!Mt)return null;var zt=this.commonProps,Jt=this.props.isDisabled,ue=this.state.isFocused;return ur.createElement(Mt,Ar({},zt,{isDisabled:Jt,isFocused:ue}))}},{key:"renderDropdownIndicator",value:function(){var dt=this.getComponents(),gt=dt.DropdownIndicator;if(!gt)return null;var Mt=this.commonProps,zt=this.props.isDisabled,Jt=this.state.isFocused,ue={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ur.createElement(gt,Ar({},Mt,{innerProps:ue,isDisabled:zt,isFocused:Jt}))}},{key:"renderMenu",value:function(){var dt=this,gt=this.getComponents(),Mt=gt.Group,zt=gt.GroupHeading,Jt=gt.Menu,ue=gt.MenuList,he=gt.MenuPortal,le=gt.LoadingMessage,Ue=gt.NoOptionsMessage,tn=gt.Option,ln=this.commonProps,Mn=this.state.focusedOption,Rn=this.props,On=Rn.captureMenuScroll,or=Rn.inputValue,fr=Rn.isLoading,oi=Rn.loadingMessage,Zr=Rn.minMenuHeight,Gr=Rn.maxMenuHeight,li=Rn.menuIsOpen,Jr=Rn.menuPlacement,gs=Rn.menuPosition,ws=Rn.menuPortalTarget,jo=Rn.menuShouldBlockScroll,Bo=Rn.menuShouldScrollIntoView,Kc=Rn.noOptionsMessage,Ol=Rn.onMenuScrollToTop,ed=Rn.onMenuScrollToBottom;if(!li)return null;var tu=function(is,Gn){var hr=is.type,pr=is.data,dr=is.isDisabled,xr=is.isSelected,hi=is.label,ys=is.value,ba=Mn===pr,$o=dr?void 0:function(){return dt.onOptionHover(pr)},np=dr?void 0:function(){return dt.selectOption(pr)},hh="".concat(dt.getElementId("option"),"-").concat(Gn),Kd={id:hh,onClick:np,onMouseMove:$o,onMouseOver:$o,tabIndex:-1};return ur.createElement(tn,Ar({},ln,{innerProps:Kd,data:pr,isDisabled:dr,isSelected:xr,key:hh,label:hi,type:hr,value:ys,isFocused:ba,innerRef:ba?dt.getFocusedOptionRef:void 0}),dt.formatOptionLabel(is.data,"menu"))},Ou;if(this.hasOptions())Ou=this.getCategorizedOptions().map(function(is){if(is.type==="group"){var Gn=is.data,hr=is.options,pr=is.index,dr="".concat(dt.getElementId("group"),"-").concat(pr),xr="".concat(dr,"-heading");return ur.createElement(Mt,Ar({},ln,{key:dr,data:Gn,options:hr,Heading:zt,headingProps:{id:xr,data:is.data},label:dt.formatGroupLabel(is.data)}),is.options.map(function(hi){return tu(hi,"".concat(pr,"-").concat(hi.index))}))}else if(is.type==="option")return tu(is,"".concat(is.index))});else if(fr){var Ja=oi({inputValue:or});if(Ja===null)return null;Ou=ur.createElement(le,ln,Ja)}else{var j1=Kc({inputValue:or});if(j1===null)return null;Ou=ur.createElement(Ue,ln,j1)}var ep={minMenuHeight:Zr,maxMenuHeight:Gr,menuPlacement:Jr,menuPosition:gs,menuShouldScrollIntoView:Bo},eu=ur.createElement(M1,Ar({},ln,ep),function(is){var Gn=is.ref,hr=is.placerProps,pr=hr.placement,dr=hr.maxHeight;return ur.createElement(Jt,Ar({},ln,ep,{innerRef:Gn,innerProps:{onMouseDown:dt.onMenuMouseDown,onMouseMove:dt.onMenuMouseMove},isLoading:fr,placement:pr}),ur.createElement(Gb,{captureEnabled:On,onTopArrive:Ol,onBottomArrive:ed,lockEnabled:jo},function(xr){return ur.createElement(ue,Ar({},ln,{innerRef:function(hi){dt.getMenuListRef(hi),xr(hi)},isLoading:fr,maxHeight:dr,focusedOption:Mn}),Ou)}))});return ws||gs==="fixed"?ur.createElement(he,Ar({},ln,{appendTo:ws,controlElement:this.controlRef,menuPlacement:Jr,menuPosition:gs}),eu):eu}},{key:"renderFormField",value:function(){var dt=this,gt=this.props,Mt=gt.delimiter,zt=gt.isDisabled,Jt=gt.isMulti,ue=gt.name,he=this.state.selectValue;if(!(!ue||zt))if(Jt)if(Mt){var le=he.map(function(ln){return dt.getOptionValue(ln)}).join(Mt);return ur.createElement("input",{name:ue,type:"hidden",value:le})}else{var Ue=he.length>0?he.map(function(ln,Mn){return ur.createElement("input",{key:"i-".concat(Mn),name:ue,type:"hidden",value:dt.getOptionValue(ln)})}):ur.createElement("input",{name:ue,type:"hidden"});return ur.createElement("div",null,Ue)}else{var tn=he[0]?this.getOptionValue(he[0]):"";return ur.createElement("input",{name:ue,type:"hidden",value:tn})}}},{key:"renderLiveRegion",value:function(){var dt=this.commonProps,gt=this.state,Mt=gt.ariaSelection,zt=gt.focusedOption,Jt=gt.focusedValue,ue=gt.isFocused,he=gt.selectValue,le=this.getFocusableOptions();return ur.createElement(Pb,Ar({},dt,{ariaSelection:Mt,focusedOption:zt,focusedValue:Jt,isFocused:ue,selectValue:he,focusableOptions:le}))}},{key:"render",value:function(){var dt=this.getComponents(),gt=dt.Control,Mt=dt.IndicatorsContainer,zt=dt.SelectContainer,Jt=dt.ValueContainer,ue=this.props,he=ue.className,le=ue.id,Ue=ue.isDisabled,tn=ue.menuIsOpen,ln=this.state.isFocused,Mn=this.commonProps=this.getCommonProps();return ur.createElement(zt,Ar({},Mn,{className:he,innerProps:{id:le,onKeyDown:this.onKeyDown},isDisabled:Ue,isFocused:ln}),this.renderLiveRegion(),ur.createElement(gt,Ar({},Mn,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:Ue,isFocused:ln,menuIsOpen:tn}),ur.createElement(Jt,Ar({},Mn,{isDisabled:Ue}),this.renderPlaceholderOrValue(),this.renderInput()),ur.createElement(Mt,Ar({},Mn,{isDisabled:Ue}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(dt,gt){var Mt=gt.prevProps,zt=gt.clearFocusValueOnUpdate,Jt=gt.inputIsHiddenAfterUpdate,ue=dt.options,he=dt.value,le=dt.menuIsOpen,Ue=dt.inputValue,tn={};if(Mt&&(he!==Mt.value||ue!==Mt.options||le!==Mt.menuIsOpen||Ue!==Mt.inputValue)){var ln=T0(he),Mn=le?i_(dt,ln):[],Rn=zt?o_(gt,ln):null,On=s_(gt,Mn);tn={selectValue:ln,focusedOption:On,focusedValue:Rn,clearFocusValueOnUpdate:!1}}var or=Jt!=null&&dt!==Mt?{inputIsHidden:Jt,inputIsHiddenAfterUpdate:void 0}:{};return $s($s($s({},tn),or),{},{prevProps:dt})}}]),ut}(Pt);Rv.defaultProps=r_;var l_={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},c_=function(et){var ot,ut;return ut=ot=function(dt){Wd(Mt,dt);var gt=Zh(Mt);function Mt(){var zt;Xh(this,Mt);for(var Jt=arguments.length,ue=new Array(Jt),he=0;he1?ue-1:0),le=1;le{const ot=et.content?Gy.find(ut=>ut.value===et.content):null;return Dt("div",{className:"r6o-purposedropdown"},Dt(h_,{value:ot,onChange:et.onChange,options:Gy,isDisabled:!et.editable}))};const d_=et=>Dt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 940",width:et.width},Dt("metadata",null,"IcoFont Icons"),Dt("title",null,"simple-down"),Dt("glyph",{glyphName:"simple-down",unicode:"",horizAdvX:"1000"}),Dt("path",{fill:"currentColor",d:"M200 392.6l300 300 300-300-85.10000000000002-85.10000000000002-214.89999999999998 214.79999999999995-214.89999999999998-214.89999999999998-85.10000000000002 85.20000000000005z"})),f_=et=>Dt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"180 150 700 800",width:et.width},Dt("metadata",null,"IcoFont Icons"),Dt("title",null,"close"),Dt("glyph",{glyphName:"close",unicode:"",horizAdvX:"1000"}),Dt("path",{fill:"currentColor",d:"M709.8 206.6c-64.39999999999998 65.50000000000003-128.89999999999998 131.20000000000002-194.19999999999993 197.6-8.600000000000023 8.699999999999989-22.400000000000034 8.800000000000011-31 0-65-66-129.70000000000005-131.8-194.5-197.6-8.600000000000023-8.699999999999989-22.400000000000034-8.599999999999994-30.900000000000034 0.09999999999999432-15.699999999999989 16.200000000000017-31.099999999999994 32.30000000000001-47.099999999999994 48.80000000000001-8.5 8.800000000000011-8.299999999999983 23 0.20000000000001705 31.69999999999999 63.099999999999966 64.19999999999999 127.89999999999998 130.10000000000002 193.59999999999997 197 8.600000000000023 8.699999999999989 8.5 22.80000000000001 0 31.599999999999966-65.19999999999999 66.40000000000009-130.2 132.5-194.7 198.10000000000002-8.5 8.700000000000045-8.5 22.800000000000068 0.20000000000001705 31.399999999999977l47.79999999999998 47.90000000000009c8.600000000000023 8.599999999999909 22.600000000000023 8.599999999999909 31.100000000000023-0.10000000000002274l194.2-197.30000000000007c8.600000000000023-8.699999999999932 22.399999999999977-8.699999999999932 31 0 64.70000000000005 65.80000000000007 129.20000000000005 131.4000000000001 194.20000000000005 197.5 8.599999999999909 8.700000000000045 22.5 8.800000000000068 31 0.10000000000002274 16-16.199999999999932 31.699999999999932-32.19999999999993 47.59999999999991-48.299999999999955 8.600000000000023-8.700000000000045 8.600000000000023-22.899999999999977 0.10000000000002274-31.600000000000023-63.799999999999955-65-128.5-130.89999999999998-194.19999999999993-197.79999999999995-8.600000000000023-8.700000000000045-8.600000000000023-22.900000000000034 0-31.600000000000023 65.19999999999993-66.40000000000003 130.0999999999999-132.5 194.5-198.20000000000005 8.599999999999909-8.699999999999989 8.5-22.799999999999955-0.10000000000002274-31.49999999999997l-47.80000000000007-48.099999999999994c-8.5-8.5-22.399999999999977-8.400000000000006-31 0.29999999999998295z"})),p_=et=>Dt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:et.width},Dt("path",{fill:"currentColor",d:"M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"}));var g_=et=>{const[ot,ut]=Jn(!1),[dt,gt]=Jn(!1),Mt=Ue=>{ut(!0),gt(!1)},zt=Ue=>{et.onDelete(et.body),gt(!1)},Jt=Ue=>et.onUpdate(et.body,st(nt({},et.body),{value:Ue.target.value})),ue=Ue=>et.onUpdate(et.body,st(nt({},et.body),{purpose:Ue.value})),he=et.body.modified||et.body.created,le=et.body.creator&&Dt("div",{className:"r6o-lastmodified"},Dt("span",{className:"r6o-lastmodified-by"},et.body.creator.name||et.body.creator.id),et.body.created&&Dt("span",{className:"r6o-lastmodified-at"},Dt(Yu,{datetime:et.env.toClientTime(he),locale:cs.locale()})));return et.readOnly?Dt("div",{className:"r6o-widget comment"},Dt("div",{className:"r6o-readonly-comment"},et.body.value),le):Dt("div",{className:ot?"r6o-widget comment editable":"r6o-widget comment"},Dt(Pd,{editable:ot,content:et.body.value,onChange:Jt,onSaveAndClose:et.onSaveAndClose}),!ot&&le,et.purposeSelector&&Dt(jv,{editable:ot,content:et.body.purpose,onChange:ue,onSaveAndClose:et.onSaveAndClose}),Dt("div",{className:dt?"r6o-icon r6o-arrow-down r6o-menu-open":"r6o-icon r6o-arrow-down",onClick:()=>gt(!dt)},Dt(d_,{width:12})),dt&&Dt(zf,{onEdit:Mt,onDelete:zt,onClickOutside:()=>gt(!1)}))};const m_=Gy.map(et=>et.value),Bv=(et,ot)=>{const ut=ot?m_.indexOf(et.purpose)>-1:et.purpose=="commenting"||et.purpose=="replying";return et.type==="TextualBody"&&(!et.hasOwnProperty("purpose")||ut)},$v=(et,ot)=>{var ut,dt;if(ot.editable===!0)return!1;if(ot.editable===!1)return!0;if(ot.editable==="MINE_ONLY"){const gt=(ut=et.creator)==null?void 0:ut.id;return((dt=ot.env.user)==null?void 0:dt.id)!==gt}return ot.readOnly},y_=(et,ot)=>et||{type:"TextualBody",value:"",purpose:ot?"replying":"commenting",draft:!0},Fv=et=>{const ot=et.annotation?et.annotation.bodies.filter(zt=>Bv(zt,et.purposeSelector)):[],ut=y_(ot.find(zt=>zt.draft==!0),ot.length>1),dt=ot.filter(zt=>zt!=ut),gt=zt=>{const Jt=ut.value,ue=zt.target.value;Jt.length===0&&ue.length>0?et.onAppendBody(st(nt({},ut),{value:ue})):Jt.length>0&&ue.length===0?et.onRemoveBody(ut):et.onUpdateBody(ut,st(nt({},ut),{value:ue}))},Mt=zt=>et.onUpdateBody(ut,st(nt({},ut),{purpose:zt.value}));return Dt(ce,null,dt.map((zt,Jt)=>Dt(g_,{key:Jt,env:et.env,purposeSelector:et.purposeSelector,readOnly:$v(zt,et),body:zt,onUpdate:et.onUpdateBody,onDelete:et.onRemoveBody,onSaveAndClose:et.onSaveAndClose})),!et.readOnly&&et.annotation&&Dt("div",{className:"r6o-widget comment editable"},Dt(Pd,{focus:et.focus,content:ut.value,editable:!0,placeholder:dt.length>0?cs.t("Add a reply..."):cs.t("Add a comment..."),onChange:gt,onSaveAndClose:()=>et.onSaveAndClose()}),et.purposeSelector&&ut.value.length>0&&Dt(jv,{editable:!0,content:ut.purpose,onChange:Mt,onSaveAndClose:()=>et.onSaveAndClose()})))};Fv.disableDelete=(et,ot)=>et.bodies.filter(ut=>Bv(ut,ot.purposeSelector)).some(ut=>$v(ut,ot));var Uv=Fv;function Yv(et,ot){et.prototype=Object.create(ot.prototype),et.prototype.constructor=et,Gf(et,ot)}function v_(et,ot){return et.classList?!!ot&&et.classList.contains(ot):(" "+(et.className.baseVal||et.className)+" ").indexOf(" "+ot+" ")!==-1}function b_(et,ot){et.classList?et.classList.add(ot):v_(et,ot)||(typeof et.className=="string"?et.className=et.className+" "+ot:et.setAttribute("class",(et.className&&et.className.baseVal||"")+" "+ot))}function Hv(et,ot){return et.replace(new RegExp("(^|\\s)"+ot+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function __(et,ot){et.classList?et.classList.remove(ot):typeof et.className=="string"?et.className=Hv(et.className,ot):et.setAttribute("class",Hv(et.className&&et.className.baseVal||"",ot))}var Vv={disabled:!1},Gv=ur.createContext(null),I0="unmounted",Zf="exited",Jf="entering",rg="entered",Wy="exiting",td=function(et){Yv(ot,et);function ot(dt,gt){var Mt;Mt=et.call(this,dt,gt)||this;var zt=gt,Jt=zt&&!zt.isMounting?dt.enter:dt.appear,ue;return Mt.appearStatus=null,dt.in?Jt?(ue=Zf,Mt.appearStatus=Jf):ue=rg:dt.unmountOnExit||dt.mountOnEnter?ue=I0:ue=Zf,Mt.state={status:ue},Mt.nextCallback=null,Mt}ot.getDerivedStateFromProps=function(dt,gt){var Mt=dt.in;return Mt&>.status===I0?{status:Zf}:null};var ut=ot.prototype;return ut.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},ut.componentDidUpdate=function(dt){var gt=null;if(dt!==this.props){var Mt=this.state.status;this.props.in?Mt!==Jf&&Mt!==rg&&(gt=Jf):(Mt===Jf||Mt===rg)&&(gt=Wy)}this.updateStatus(!1,gt)},ut.componentWillUnmount=function(){this.cancelNextCallback()},ut.getTimeouts=function(){var dt=this.props.timeout,gt,Mt,zt;return gt=Mt=zt=dt,dt!=null&&typeof dt!="number"&&(gt=dt.exit,Mt=dt.enter,zt=dt.appear!==void 0?dt.appear:Mt),{exit:gt,enter:Mt,appear:zt}},ut.updateStatus=function(dt,gt){dt===void 0&&(dt=!1),gt!==null?(this.cancelNextCallback(),gt===Jf?this.performEnter(dt):this.performExit()):this.props.unmountOnExit&&this.state.status===Zf&&this.setState({status:I0})},ut.performEnter=function(dt){var gt=this,Mt=this.props.enter,zt=this.context?this.context.isMounting:dt,Jt=this.props.nodeRef?[zt]:[ur.findDOMNode(this),zt],ue=Jt[0],he=Jt[1],le=this.getTimeouts(),Ue=zt?le.appear:le.enter;if(!dt&&!Mt||Vv.disabled){this.safeSetState({status:rg},function(){gt.props.onEntered(ue)});return}this.props.onEnter(ue,he),this.safeSetState({status:Jf},function(){gt.props.onEntering(ue,he),gt.onTransitionEnd(Ue,function(){gt.safeSetState({status:rg},function(){gt.props.onEntered(ue,he)})})})},ut.performExit=function(){var dt=this,gt=this.props.exit,Mt=this.getTimeouts(),zt=this.props.nodeRef?void 0:ur.findDOMNode(this);if(!gt||Vv.disabled){this.safeSetState({status:Zf},function(){dt.props.onExited(zt)});return}this.props.onExit(zt),this.safeSetState({status:Wy},function(){dt.props.onExiting(zt),dt.onTransitionEnd(Mt.exit,function(){dt.safeSetState({status:Zf},function(){dt.props.onExited(zt)})})})},ut.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},ut.safeSetState=function(dt,gt){gt=this.setNextCallback(gt),this.setState(dt,gt)},ut.setNextCallback=function(dt){var gt=this,Mt=!0;return this.nextCallback=function(zt){Mt&&(Mt=!1,gt.nextCallback=null,dt(zt))},this.nextCallback.cancel=function(){Mt=!1},this.nextCallback},ut.onTransitionEnd=function(dt,gt){this.setNextCallback(gt);var Mt=this.props.nodeRef?this.props.nodeRef.current:ur.findDOMNode(this),zt=dt==null&&!this.props.addEndListener;if(!Mt||zt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var Jt=this.props.nodeRef?[this.nextCallback]:[Mt,this.nextCallback],ue=Jt[0],he=Jt[1];this.props.addEndListener(ue,he)}dt!=null&&setTimeout(this.nextCallback,dt)},ut.render=function(){var dt=this.state.status;if(dt===I0)return null;var gt=this.props,Mt=gt.children;gt.in,gt.mountOnEnter,gt.unmountOnExit,gt.appear,gt.enter,gt.exit,gt.timeout,gt.addEndListener,gt.onEnter,gt.onEntering,gt.onEntered,gt.onExit,gt.onExiting,gt.onExited,gt.nodeRef;var zt=Vp(gt,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ur.createElement(Gv.Provider,{value:null},typeof Mt=="function"?Mt(dt,zt):ur.cloneElement(ur.Children.only(Mt),zt))},ot}(ur.Component);td.contextType=Gv,td.propTypes={};function ig(){}td.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ig,onEntering:ig,onEntered:ig,onExit:ig,onExiting:ig,onExited:ig},td.UNMOUNTED=I0,td.EXITED=Zf,td.ENTERING=Jf,td.ENTERED=rg,td.EXITING=Wy;var w_=td,x_=function(et,ot){return et&&ot&&ot.split(" ").forEach(function(ut){return b_(et,ut)})},qy=function(et,ot){return et&&ot&&ot.split(" ").forEach(function(ut){return __(et,ut)})},Qy=function(et){Yv(ot,et);function ot(){for(var dt,gt=arguments.length,Mt=new Array(gt),zt=0;ztot.filter(ut=>(ut.label?ut.label:ut).toLowerCase().startsWith(et.toLowerCase())),T_=(et,ot)=>ot(et);var S_=et=>{const ot=ie(),[ut,dt]=Jn(et.initialValue||""),[gt,Mt]=Jn([]),[zt,Jt]=Jn(null);sr(()=>{et.focus&&ot.current.querySelector("input").focus({preventScroll:!0})},[]),sr(()=>{et.onChange&&et.onChange(ut)},[ut]);const ue=le=>{if(typeof et.vocabulary=="function"){const Ue=T_(le,et.vocabulary);Ue.then?Ue.then(Mt):Mt(Ue)}else{const Ue=M_(le,et.vocabulary);Mt(Ue)}},he=()=>{if(zt!==null)et.onSubmit(gt[zt]);else{const le=ut.trim();if(le){const Ue=Array.isArray(et.vocabulary)?et.vocabulary.find(tn=>(tn.label||tn).toLowerCase()===le.toLowerCase()):null;Ue?et.onSubmit(Ue):et.onSubmit(le)}}dt(""),Mt([]),Jt(null)};return Dt("div",{ref:ot,className:"r6o-autocomplete"},Dt("div",null,Dt("input",{onKeyDown:le=>{if(le.which===13)he();else if(le.which===27)et.onCancel&&et.onCancel();else if(gt.length>0){if(le.which===38)if(zt===null)Jt(0);else{const Ue=Math.max(0,zt-1);Jt(Ue)}else if(le.which===40)if(zt===null)Jt(0);else{const Ue=Math.min(gt.length-1,zt+1);Jt(Ue)}}else le.which===40&&Array.isArray(et.vocabulary)&&Mt(et.vocabulary)},onChange:le=>{const{value:Ue}=le.target;dt(Ue),Jt(null),Ue?ue(Ue):Mt([])},value:ut,placeholder:et.placeholder})),Dt("ul",null,gt.length>0&>.map((le,Ue)=>Dt("li",{key:`${le.label?le.label:le}${Ue}`,onClick:he,onMouseEnter:()=>Jt(Ue),style:zt===Ue?{backgroundColor:"#bde4ff"}:{}},le.label?le.label:le))))};const C_=et=>et||{type:"TextualBody",value:"",purpose:"tagging",draft:!0};var Wv=et=>{const ot=et.annotation?et.annotation.bodies.filter(le=>le.type==="TextualBody"&&le.purpose==="tagging"):[],ut=C_(ot.slice().reverse().find(le=>le.draft)),dt=ot.filter(le=>le!=ut),[gt,Mt]=Jn(!1),zt=le=>Ue=>{Mt(gt===le?!1:le)},Jt=le=>{const Ue=ut.value.trim(),tn=le.trim();Ue.length===0&&tn.length>0?et.onAppendBody(st(nt({},ut),{value:tn})):Ue.length>0&&tn.length===0?et.onRemoveBody(ut):et.onUpdateBody(ut,st(nt({},ut),{value:tn}))},ue=le=>Ue=>{Ue.stopPropagation(),et.onRemoveBody(le)},he=le=>{const Ue=le.label?st(nt({},ut),{value:le.label,source:le.uri}):st(nt({},ut),{value:le}),tn=ct(Ue,["draft"]);ut.value.trim().length===0?et.onAppendBody(tn):et.onUpdateBody(ut,tn)};return Dt("div",{className:"r6o-widget r6o-tag"},dt.length>0&&Dt("ul",{className:"r6o-taglist"},dt.map(le=>Dt("li",{key:le.value,onClick:zt(le.value)},Dt("span",{className:"r6o-label"},le.value),!et.readOnly&&Dt(E_,{in:gt===le.value,timeout:200,classNames:"r6o-delete"},Dt("span",{className:"r6o-delete-wrapper",onClick:ue(le)},Dt("span",{className:"r6o-delete"},Dt(f_,{width:12}))))))),!et.readOnly&&Dt(S_,{focus:et.focus,placeholder:cs.t("Add tag..."),vocabulary:et.vocabulary||[],onChange:Jt,onSubmit:he}))};class qv extends Pt{constructor(ot){super(ot),this.element=ur.createRef()}renderWidget(ot){const ut=this.props.widget(st(nt({annotation:ot.annotation,readOnly:ot.readOnly},ot.config),{onAppendBody:(dt,gt)=>ot.onAppendBody(dt,gt),onUpdateBody:(dt,gt,Mt)=>ot.onUpdateBody(dt,gt,Mt),onUpsertBody:(dt,gt,Mt)=>ot.onUpsertBody(dt,gt,Mt),onRemoveBody:(dt,gt)=>ot.onRemoveBody(dt,gt),onBatchModify:(dt,gt)=>ot.onBatchModify(dt,gt),onSetProperty:(dt,gt)=>ot.onSetProperty(dt,gt),onSaveAndClose:()=>ot.onSaveAndClose()}));for(;this.element.current.firstChild;)this.element.current.removeChild(this.element.current.lastChild);this.element.current.appendChild(ut)}componentDidMount(){this.renderWidget(this.props)}componentWillReceiveProps(ot){this.element.current&&this.props.annotation!==ot.annotation&&this.renderWidget(ot)}render(){return Dt("div",{ref:this.element,className:"widget"})}}window.React=ur,window.ReactDOM=ur;const k_={COMMENT:Uv,TAG:Wv},A_=[Dt(Uv,null),Dt(Wv,null)],N_=et=>{const ot=dt=>{var gt;return typeof dt=="function"&&!!((gt=dt.prototype)!=null&>.isReactComponent)},ut=dt=>typeof dt=="function"&&(String(dt).match(/return .+\(['|"].+['|"],\s*\{/g)||String(dt).match(/return .+preact_compat/)||String(dt).match(/return .+\.createElement/g));return ot(et)||ut(et)},D_=et=>{const ot=(ut,dt,gt)=>{if(typeof ut=="string"||ut instanceof String)return ur.createElement(k_[ut],dt);if((gt==null?void 0:gt.toLowerCase())==="react")return ur.createElement(ut,dt);if((gt==null?void 0:gt.toLowerCase())==="plainjs")return Dt(qv,{widget:ut,config:dt});if(N_(ut))return ur.createElement(ut,dt);if(typeof ut=="function"||ut instanceof Function)return Dt(qv,{widget:ut,config:dt});throw`${ut} is not a valid plugin`};if(et.widget){const ut=et,{widget:dt,force:gt}=ut,Mt=ct(ut,["widget","force"]);return ot(dt,Mt,gt)}else return ot(et)},Qv=14;var Xv=(et,ot,ut,dt)=>{const gt=et.getBoundingClientRect();ot.className="r6o-editor r6o-arrow-top r6o-arrow-left";const{left:Mt,top:zt,right:Jt,bottom:ue}=ut.getBoundingClientRect();if(ot.style.top=`${ue-gt.top+Qv}px`,ot.style.left=`${Mt-gt.left}px`,dt){const he=ot.children[1].getBoundingClientRect();if(he.right>window.innerWidth&&(ot.classList.remove("r6o-arrow-left"),ot.classList.add("r6o-arrow-right"),ot.style.left=`${Jt-he.width-gt.left}px`),he.bottom>window.innerHeight){ot.classList.remove("r6o-arrow-top"),ot.classList.add("r6o-arrow-bottom");const Ue=ot.children[1].getBoundingClientRect().height;ot.style.top=`${zt-gt.top-Ue-Qv}px`}const le=ot.children[1].getBoundingClientRect();if(le.top<0){ot.classList.add("pushed","down"),ot.style.top=`${-gt.top}px`;const Ue=ue-gt.top;le.height-gt.top>Ue&&ot.classList.remove("r6o-arrow-bottom")}le.left<0&&(ot.classList.add("pushed","right"),ot.style.left=`${-gt.left}px`),requestAnimationFrame(()=>ot.style.opacity=1)}};const Zv=et=>{const{top:ot,left:ut,width:dt,height:gt}=et.getBoundingClientRect();return`${ot}, ${ut}, ${dt}, ${gt}`};class I_ extends Pt{constructor(ot){super(ot),lt(this,"initResizeObserver",()=>{const ut=this.props.autoPosition===void 0?!0:this.props.autoPosition;if(window!=null&&window.ResizeObserver){const dt=new ResizeObserver(()=>{this.state.dragged||Xv(this.props.wrapperEl,this.element.current,this.props.selectedElement,ut)});return dt.observe(this.props.wrapperEl),()=>dt.disconnect()}else this.state.dragged||Xv(this.props.wrapperEl,this.element.current,this.props.selectedElement,ut)}),lt(this,"creationMeta",ut=>{const dt={},{user:gt}=this.props.env;return gt&&(dt.creator={},gt.id&&(dt.creator.id=gt.id),gt.displayName&&(dt.creator.name=gt.displayName),dt[ut.created?"modified":"created"]=this.props.env.getCurrentTimeAdjusted()),dt}),lt(this,"getCurrentAnnotation",()=>this.state.currentAnnotation.clone()),lt(this,"updateCurrentAnnotation",(ut,dt)=>this.setState({currentAnnotation:this.state.currentAnnotation.clone(ut)},()=>{dt&&this.onOk()})),lt(this,"onAppendBody",(ut,dt)=>this.updateCurrentAnnotation({body:[...this.state.currentAnnotation.bodies,nt(nt({},ut),this.creationMeta(ut))]},dt)),lt(this,"onUpdateBody",(ut,dt,gt)=>this.updateCurrentAnnotation({body:this.state.currentAnnotation.bodies.map(Mt=>Mt===ut?nt(nt({},dt),this.creationMeta(dt)):Mt)},gt)),lt(this,"onRemoveBody",(ut,dt)=>this.updateCurrentAnnotation({body:this.state.currentAnnotation.bodies.filter(gt=>gt!==ut)},dt)),lt(this,"onUpsertBody",(ut,dt,gt)=>{if(ut==null&&dt!=null)this.onAppendBody(dt,gt);else if(ut!=null&&dt!=null)this.onUpdateBody(ut,dt,gt);else if(ut!=null&&dt==null){const Mt=this.state.currentAnnotation.bodies.find(zt=>zt.purpose===ut.purpose);Mt?this.onUpdateBody(Mt,ut,gt):this.onAppendBody(ut,gt)}}),lt(this,"onBatchModify",(ut,dt)=>{const gt=ut.filter(he=>he.action==="upsert"&&he.body).map(he=>({previous:this.state.currentAnnotation.bodies.find(le=>le.purpose===he.body.purpose),updated:nt(nt({},he.body),this.creationMeta(he.body))})),Mt=ut.filter(he=>he.action==="remove").map(he=>he.body),zt=[...ut.filter(he=>he.action==="append"||he.action==="upsert"&&he.updated&&!he.previous).map(he=>nt(nt({},he.body),this.creationMeta(he.body))),...gt.filter(he=>!he.previous).map(he=>he.updated)],Jt=[...ut.filter(he=>he.action==="update"||he.action==="upsert"&&he.updated&&he.previous).map(he=>({previous:he.previous,updated:nt(nt({},he.updated),this.creationMeta(he.updated))})),...gt.filter(he=>he.previous)],ue=[...this.state.currentAnnotation.bodies.filter(he=>!Mt.includes(he)).map(he=>{const le=Jt.find(Ue=>Ue.previous===he);return le?le.updated:he}),...zt];this.updateCurrentAnnotation({body:ue},dt)}),lt(this,"onSetProperty",(ut,dt)=>{if(["@context","id","type","body","target"].includes(ut))throw new Exception(`Cannot set ${ut} - not allowed`);if(dt)this.updateCurrentAnnotation({[ut]:dt});else{const gt=this.currentAnnotation.clone();delete gt[ut],this.setState({currentAnnotation:gt})}}),lt(this,"onCancel",()=>this.props.onCancel(this.props.annotation)),lt(this,"onOk",()=>{const ut=gt=>gt.clone({body:gt.bodies.map(Mt=>{var zt=Mt,Jt=ct(zt,["draft"]);return Jt})}),{currentAnnotation:dt}=this.state;dt.bodies.length===0&&!this.props.allowEmpty?dt.isSelection?this.onCancel():this.props.onAnnotationDeleted(this.props.annotation):dt.isSelection?this.props.onAnnotationCreated(ut(dt).toAnnotation()):this.props.onAnnotationUpdated(ut(dt),this.props.annotation)}),lt(this,"onDelete",()=>this.props.onAnnotationDeleted(this.props.annotation)),this.element=ur.createRef(),this.state={currentAnnotation:ot.annotation,dragged:!1,selectionBounds:Zv(ot.selectedElement)}}componentWillReceiveProps(ot){var ut;const{selectionBounds:dt}=this.state,gt=Zv(ot.selectedElement);(ut=this.props.annotation)!=null&&ut.isEqual(ot.annotation)?this.setState({selectionBounds:gt}):this.setState({currentAnnotation:ot.annotation,selectionBounds:gt}),this.props.modifiedTarget!=ot.modifiedTarget&&this.state.currentAnnotation&&this.updateCurrentAnnotation({target:this.props.modifiedTarget}),dt!=gt&&this.element.current&&(this.removeObserver&&this.removeObserver(),this.removeObserver=this.initResizeObserver())}componentDidMount(){this.removeObserver=this.initResizeObserver(),new MutationObserver(()=>{this.element.current&&(this.removeObserver&&this.removeObserver(),this.removeObserver=this.initResizeObserver())}).observe(this.element.current,{childList:!0,subtree:!0})}componentWillUnmount(){this.removeObserver&&this.removeObserver()}render(){const{currentAnnotation:ot}=this.state,ut=this.props.widgets?this.props.widgets.map(D_):A_,dt=Mt=>Mt.type.disableDelete?Mt.type.disableDelete(ot,st(nt({},Mt.props),{readOnly:this.props.readOnly,env:this.props.env})):!1,gt=ot&&(ot.bodies.length>0||this.props.allowEmpty)&&!this.props.readOnly&&!ot.isSelection&&!ut.some(dt);return Dt(rd,{disabled:!this.props.detachable,handle:".r6o-draggable",cancel:".r6o-btn, .r6o-btn *",onDrag:()=>this.setState({dragged:!0})},Dt("div",{ref:this.element,className:this.state.dragged?"r6o-editor dragged":"r6o-editor"},Dt("div",{className:"r6o-arrow"}),Dt("div",{className:"r6o-editor-inner"},ut.map((Mt,zt)=>ur.cloneElement(Mt,{key:`${zt}`,focus:zt===0,annotation:ot,readOnly:this.props.readOnly,env:this.props.env,onAppendBody:this.onAppendBody,onUpdateBody:this.onUpdateBody,onRemoveBody:this.onRemoveBody,onUpsertBody:this.onUpsertBody,onBatchModify:this.onBatchModify,onSetProperty:this.onSetProperty,onSaveAndClose:this.onOk})),this.props.readOnly?Dt("div",{className:"r6o-footer"},Dt("button",{className:"r6o-btn",onClick:this.onCancel},cs.t("Close"))):Dt("div",{className:this.props.detachable?"r6o-footer r6o-draggable":"r6o-footer"},gt&&Dt("button",{className:"r6o-btn left delete-annotation",title:cs.t("Delete"),onClick:this.onDelete},Dt(p_,{width:12})),Dt("button",{className:"r6o-btn outline",onClick:this.onCancel},cs.t("Cancel")),Dt("button",{className:"r6o-btn ",onClick:this.onOk},cs.t("Ok"))))))}}var N1,L_=new Uint8Array(16);function O_(){if(!N1&&(N1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!N1))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return N1(L_)}var P_=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function z_(et){return typeof et=="string"&&P_.test(et)}for(var Za=[],Xy=0;Xy<256;++Xy)Za.push((Xy+256).toString(16).substr(1));function R_(et){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ut=(Za[et[ot+0]]+Za[et[ot+1]]+Za[et[ot+2]]+Za[et[ot+3]]+"-"+Za[et[ot+4]]+Za[et[ot+5]]+"-"+Za[et[ot+6]]+Za[et[ot+7]]+"-"+Za[et[ot+8]]+Za[et[ot+9]]+"-"+Za[et[ot+10]]+Za[et[ot+11]]+Za[et[ot+12]]+Za[et[ot+13]]+Za[et[ot+14]]+Za[et[ot+15]]).toLowerCase();if(!z_(ut))throw TypeError("Stringified UUID is invalid");return ut}function Jv(et,ot,ut){et=et||{};var dt=et.random||(et.rng||O_)();if(dt[6]=dt[6]&15|64,dt[8]=dt[8]&63|128,ot){ut=ut||0;for(var gt=0;gt<16;++gt)ot[ut+gt]=dt[gt];return ot}return R_(dt)}var j_=function et(ot,ut){if(ot===ut)return!0;if(ot&&ut&&typeof ot=="object"&&typeof ut=="object"){if(ot.constructor!==ut.constructor)return!1;var dt,gt,Mt;if(Array.isArray(ot)){if(dt=ot.length,dt!=ut.length)return!1;for(gt=dt;gt--!=0;)if(!et(ot[gt],ut[gt]))return!1;return!0}if(ot.constructor===RegExp)return ot.source===ut.source&&ot.flags===ut.flags;if(ot.valueOf!==Object.prototype.valueOf)return ot.valueOf()===ut.valueOf();if(ot.toString!==Object.prototype.toString)return ot.toString()===ut.toString();if(Mt=Object.keys(ot),dt=Mt.length,dt!==Object.keys(ut).length)return!1;for(gt=dt;gt--!=0;)if(!Object.prototype.hasOwnProperty.call(ut,Mt[gt]))return!1;for(gt=dt;gt--!=0;){var zt=Mt[gt];if(!et(ot[zt],ut[zt]))return!1}return!0}return ot!==ot&&ut!==ut},Kv=j_;const Zy=class{constructor(et,ot){lt(this,"clone",(ut,dt)=>new Zy(nt(nt({},this.underlying),ut),nt(nt({},this.opts),dt))),lt(this,"selector",ut=>{const{target:dt}=this.underlying;if(dt.selector)return(Array.isArray(dt.selector)?dt.selector:[dt.selector]).find(gt=>gt.type===ut)}),this.underlying=et,this.opts=ot}isEqual(et){return(et==null?void 0:et.type)!=="Annotation"?!1:this.underlying===et.underlying?!0:!this.underlying.id||!et.underlying.id?!1:Kv(this.underlying,et.underlying)}get readOnly(){var et;return(et=this.opts)==null?void 0:et.readOnly}get id(){return this.underlying.id}get type(){return this.underlying.type}get motivation(){return this.underlying.motivation}get body(){return this.underlying.body}get target(){return this.underlying.target}get bodies(){return Array.isArray(this.underlying.body)?this.underlying.body:[this.underlying.body]}set bodies(et){this.underlying.body=et}get targets(){return Array.isArray(this.underlying.target)?this.underlying.target:[this.underlying.target]}get quote(){return this.selector("TextQuoteSelector").exact}get start(){return this.selector("TextPositionSelector").start}get end(){return this.selector("TextPositionSelector").end}};let Kf=Zy;lt(Kf,"create",et=>{const ot={"@context":"http://www.w3.org/ns/anno.jsonld",type:"Annotation",id:`#${Jv()}`,body:[]};return new Zy(nt(nt({},ot),et))});class L0{constructor(ot,ut){lt(this,"clone",dt=>{const gt=new L0;return gt.underlying=JSON.parse(JSON.stringify(this.underlying)),dt&&(gt.underlying=nt(nt({},gt.underlying),dt)),gt}),lt(this,"selector",dt=>{const{target:gt}=this.underlying;if(gt.selector)return(Array.isArray(gt.selector)?gt.selector:[gt.selector]).find(Mt=>Mt.type===dt)}),lt(this,"toAnnotation",()=>{const dt=Object.assign({},this.underlying,{"@context":"http://www.w3.org/ns/anno.jsonld",type:"Annotation",id:`#${Jv()}`});return new Kf(dt)}),this.underlying={type:"Selection",body:ut||[],target:ot}}get type(){return this.underlying.type}get body(){return this.underlying.body}get target(){return this.underlying.target}get targets(){return Array.isArray(this.underlying.target)?this.underlying.target:[this.underlying.target]}isEqual(ot){return ot?Kv(this.underlying,ot.underlying):!1}get bodies(){return Array.isArray(this.underlying.body)?this.underlying.body:[this.underlying.body]}get quote(){return this.selector("TextQuoteSelector").exact}get isSelection(){return!0}}let Jy=0;var B_=()=>({setServerTime:et=>{const ot=Date.now();Jy=et-ot},getCurrentTimeAdjusted:()=>new Date(Date.now()+Jy).toISOString(),toClientTime:et=>Date.parse(et)-Jy});const $_=(et,ot)=>{if(et){const ut=et==="auto"?window.navigator.userLanguage||window.navigator.language:et;try{cs.init(ut.split("-")[0].toLowerCase(),ot)}catch{console.warn(`Unsupported locale '${ut}'. Falling back to default en.`)}}else cs.init(null,ot)},wo="http://www.w3.org/2000/svg",Ky=et=>{const ot=et.getAttribute("class");return ot?new Set(ot.split(" ")):new Set},Jd=(et,ot)=>{const ut=Ky(et);ut.add(ot),et.setAttribute("class",Array.from(ut).join(" "))},F_=(et,ot)=>{const ut=Ky(et);ut.delete(ot),ut.size===0?et.removeAttribute("class"):et.setAttribute("class",Array.from(ut).join(" "))},tv=(et,ot)=>Ky(et).has(ot),tp=(et,ot)=>{const ut=et.selector("FragmentSelector");if(ut!=null&&ut.conformsTo.startsWith("http://www.w3.org/TR/media-frags")){const{value:dt}=ut,gt=dt.includes(":")?dt.substring(dt.indexOf("=")+1,dt.indexOf(":")):"pixel",Mt=dt.includes(":")?dt.substring(dt.indexOf(":")+1):dt.substring(dt.indexOf("=")+1);let[zt,Jt,ue,he]=Mt.split(",").map(parseFloat);return gt.toLowerCase()==="percent"&&(zt=zt*ot.naturalWidth/100,Jt=Jt*ot.naturalHeight/100,ue=ue*ot.naturalWidth/100,he=he*ot.naturalHeight/100),{x:zt,y:Jt,w:ue,h:he}}},U_=(et,ot,ut,dt,gt)=>({source:gt==null?void 0:gt.src,selector:{type:"FragmentSelector",conformsTo:"http://www.w3.org/TR/media-frags/",value:`xywh=pixel:${et},${ot},${ut},${dt}`}}),Y_=(et,ot,ut,dt,gt)=>{const Mt=et/gt.naturalWidth*100,zt=ot/gt.naturalHeight*100,Jt=ut/gt.naturalWidth*100,ue=dt/gt.naturalHeight*100;return{source:gt.src,selector:{type:"FragmentSelector",conformsTo:"http://www.w3.org/TR/media-frags/",value:`xywh=percent:${Mt},${zt},${Jt},${ue}`}}},O0=(et,ot,ut,dt,gt,Mt)=>(Mt==null?void 0:Mt.toLowerCase())==="percent"?Y_(et,ot,ut,dt,gt):U_(et,ot,ut,dt,gt),D1=(et,ot,ut,dt,gt)=>{et.setAttribute("x",ot),et.setAttribute("y",ut),et.setAttribute("width",dt),et.setAttribute("height",gt)},I1=(et,ot,ut)=>{et.setAttribute("cx",ot),et.setAttribute("cy",ut),et.setAttribute("r",7)},tb=(et,ot,ut,dt,gt)=>{const Mt=document.createElementNS(wo,"path");Mt.setAttribute("fill-rule","evenodd");const{naturalWidth:zt,naturalHeight:Jt}=et;return Mt.setAttribute("d",`M0 0 h${zt} v${Jt} h-${zt} z M${ot} ${ut} h${dt} v${gt} h-${dt} z`),Mt},ev=(et,ot,ut,dt,gt,Mt)=>{const{naturalWidth:zt,naturalHeight:Jt}=ot;et.setAttribute("d",`M0 0 h${zt} v${Jt} h-${zt} z M${ut} ${dt} h${gt} v${Mt} h-${gt} z`)},nv=(et,ot,ut,dt)=>{const{x:gt,y:Mt,w:zt,h:Jt}=et.type==="Annotation"||et.type==="Selection"?tp(et,ot):{x:et,y:ot,w:ut,h:dt},ue=document.createElementNS(wo,"g");if(zt===0&&Jt===0){Jd(ue,"a9s-point"),Jd(ue,"a9s-non-scaling"),ue.setAttribute("transform-origin",`${gt} ${Mt}`);const he=document.createElementNS(wo,"circle"),le=document.createElementNS(wo,"circle");le.setAttribute("class","a9s-inner"),I1(le,gt,Mt),he.setAttribute("class","a9s-outer"),I1(he,gt,Mt),ue.appendChild(he),ue.appendChild(le)}else{const he=document.createElementNS(wo,"rect"),le=document.createElementNS(wo,"rect");le.setAttribute("class","a9s-inner"),D1(le,gt,Mt,zt,Jt),he.setAttribute("class","a9s-outer"),D1(he,gt,Mt,zt,Jt),ue.appendChild(he),ue.appendChild(le)}return ue},eb=et=>{const ot=et.querySelector(".a9s-outer");if(ot.nodeName==="rect"){const ut=parseFloat(ot.getAttribute("x")),dt=parseFloat(ot.getAttribute("y")),gt=parseFloat(ot.getAttribute("width")),Mt=parseFloat(ot.getAttribute("height"));return{x:ut,y:dt,w:gt,h:Mt}}else{const ut=parseFloat(ot.getAttribute("cx")),dt=parseFloat(ot.getAttribute("cy"));return{x:ut,y:dt,w:0,h:0}}},rv=(et,ot,ut,dt,gt)=>{const Mt=et.querySelector(".a9s-inner"),zt=et.querySelector(".a9s-outer");zt.nodeName==="rect"?(D1(Mt,ot,ut,dt,gt),D1(zt,ot,ut,dt,gt)):(I1(Mt,ot,ut),I1(zt,ot,ut))},H_=(et,ot)=>{const{w:ut,h:dt}=tp(et,ot);return ut*dt};class V_{constructor(ot,ut,dt,gt,Mt){lt(this,"dragTo",(zt,Jt)=>{this.group.style.display=null,this.opposite=[zt,Jt];const{x:ue,y:he,w:le,h:Ue}=this.bbox;ev(this.mask,this.env.image,ue,he,le,Ue),rv(this.rect,ue,he,le,Ue)}),lt(this,"getBoundingClientRect",()=>this.rect.getBoundingClientRect()),lt(this,"toSelection",()=>{const{x:zt,y:Jt,w:ue,h:he}=this.bbox;return new L0(O0(zt,Jt,ue,he,this.env.image,this.config.fragmentUnit))}),lt(this,"destroy",()=>{this.group.parentNode.removeChild(this.group),this.mask=null,this.rect=null,this.group=null}),this.anchor=[ot,ut],this.opposite=[ot,ut],this.config=gt,this.env=Mt,this.group=document.createElementNS(wo,"g"),this.mask=tb(Mt.image,ot,ut,2,2),this.mask.setAttribute("class","a9s-selection-mask"),this.rect=nv(ot,ut,2,2),this.rect.setAttribute("class","a9s-selection"),this.group.style.pointerEvents="none",this.group.style.display="none",this.group.appendChild(this.mask),this.group.appendChild(this.rect),dt.appendChild(this.group)}get bbox(){const ot=this.opposite[0]-this.anchor[0],ut=this.opposite[1]-this.anchor[1];return{x:ot>0?this.anchor[0]:this.opposite[0],y:ut>0?this.anchor[1]:this.opposite[1],w:Math.max(1,Math.abs(ot)),h:Math.max(1,Math.abs(ut))}}get element(){return this.rect}}const G_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},iv=()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,W_=et=>{let ot=null;const ut=(gt,Mt)=>new MouseEvent(gt,{screenX:Mt.screenX,screenY:Mt.screenY,clientX:Mt.clientX,clientY:Mt.clientY,pageX:Mt.pageX,pageY:Mt.pageY,bubbles:!0}),dt=gt=>{const Mt=gt.changedTouches[0],zt=ut(G_[gt.type],Mt);Mt.target.dispatchEvent(zt),gt.preventDefault(),(gt.type==="touchstart"||gt.type==="touchmove")&&(ot&&clearTimeout(ot),ot=setTimeout(()=>{const Jt=ut("dblclick",Mt);Mt.target.dispatchEvent(Jt)},800)),gt.type==="touchend"&&ot&&clearTimeout(ot)};et.addEventListener("touchstart",dt,!0),et.addEventListener("touchmove",dt,!0),et.addEventListener("touchend",dt,!0),et.addEventListener("touchcancel",dt,!0)},L1="An implementation is missing",q_=iv();class nb extends Es{constructor(ot,ut,dt){super(),lt(this,"enableResponsive",()=>{window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>{const Mt=this.svg.getBoundingClientRect(),{width:zt,height:Jt}=this.svg.viewBox.baseVal;this.scale=Math.max(zt/Mt.width,Jt/Mt.height),this.onScaleChanged&&this.onScaleChanged(this.scale)}),this.resizeObserver.observe(this.svg.parentNode))}),lt(this,"getSVGPoint",Mt=>{const zt=this.svg.createSVGPoint();if(q_){const Jt=this.svg.getBoundingClientRect(),ue=Mt.clientX-Jt.x,he=Mt.clientY-Jt.y,{left:le,top:Ue}=this.svg.getBoundingClientRect();return zt.x=ue+le,zt.y=he+Ue,zt.matrixTransform(this.g.getScreenCTM().inverse())}else return zt.x=Mt.offsetX,zt.y=Mt.offsetY,zt.matrixTransform(this.g.getCTM().inverse())}),lt(this,"drawHandle",(Mt,zt)=>{const Jt=document.createElementNS(wo,"g");Jt.setAttribute("class","a9s-handle");const ue=document.createElementNS(wo,"g"),he=ln=>{const Mn=document.createElementNS(wo,"circle");return Mn.setAttribute("cx",Mt),Mn.setAttribute("cy",zt),Mn.setAttribute("r",ln),Mn},le=this.config.handleRadius||6,Ue=he(le);Ue.setAttribute("class","a9s-handle-inner");const tn=he(le+1);return tn.setAttribute("class","a9s-handle-outer"),ue.appendChild(tn),ue.appendChild(Ue),Jt.appendChild(ue),Jt}),lt(this,"setHandleXY",(Mt,zt,Jt)=>{const ue=Mt.querySelector(".a9s-handle-inner");ue.setAttribute("cx",zt),ue.setAttribute("cy",Jt);const he=Mt.querySelector(".a9s-handle-outer");he.setAttribute("cx",zt),he.setAttribute("cy",Jt)}),lt(this,"getHandleXY",Mt=>{const zt=Mt.querySelector(".a9s-handle-outer");return{x:parseFloat(zt.getAttribute("cx")),y:parseFloat(zt.getAttribute("cy"))}}),lt(this,"scaleHandle",Mt=>{const zt=Mt.querySelector(".a9s-handle-inner"),Jt=Mt.querySelector(".a9s-handle-outer"),ue=this.scale*(this.config.handleRadius||6);zt.setAttribute("r",ue),Jt.setAttribute("r",ue)}),this.svg=ot.closest("svg"),this.g=ot,this.config=ut,this.env=dt,this.scale=1;const{image:gt}=dt;(gt instanceof Element||gt instanceof HTMLDocument)&&this.enableResponsive()}destroy(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=null}}class ov extends nb{constructor(ot,ut,dt){super(ot,ut,dt),lt(this,"attachListeners",({mouseMove:gt,mouseUp:Mt,dblClick:zt})=>{gt&&(this.mouseMove=Jt=>{const{x:ue,y:he}=this.getSVGPoint(Jt);this.started||(this.emit("startSelection",{x:ue,y:he}),this.started=!0),gt(ue,he,Jt)},this.svg.addEventListener("mousemove",this.mouseMove)),Mt&&(this.mouseUp=Jt=>{if(Jt.button!==0)return;const{x:ue,y:he}=this.getSVGPoint(Jt);Mt(ue,he,Jt)},document.addEventListener("mouseup",this.mouseUp)),zt&&(this.dblClick=Jt=>{const{x:ue,y:he}=this.getSVGPoint(Jt);zt(ue,he,Jt)},document.addEventListener("dblclick",this.dblClick))}),lt(this,"detachListeners",()=>{this.mouseMove&&this.svg.removeEventListener("mousemove",this.mouseMove),this.mouseUp&&document.removeEventListener("mouseup",this.mouseUp),this.dblClick&&document.removeEventListener("dblclick",this.dblClick)}),lt(this,"start",(gt,Mt)=>{const{x:zt,y:Jt}=this.getSVGPoint(gt);this.startDrawing(zt,Jt,Mt,gt)}),lt(this,"startDrawing",gt=>{throw new Error(L1)}),lt(this,"createEditableShape",gt=>{throw new Error(L1)}),this.started=!1}get isDrawing(){throw new Error(L1)}}ov.supports=et=>{throw new Error(L1)};const rb="An implementation is missing";class ib extends nb{constructor(ot,ut,dt,gt){super(ut,dt,gt),lt(this,"updateState",Mt=>{throw new Error(rb)}),this.annotation=ot}get element(){throw new Error(rb)}}const Q_=/firefox/i.test(navigator.userAgent),ob=(et,ot,ut,dt,gt)=>{et.setAttribute("width",dt),et.setAttribute("height",gt),Q_?(et.setAttribute("x",0),et.setAttribute("y",0),et.setAttribute("transform",`translate(${ot}, ${ut})`)):(et.setAttribute("x",ot),et.setAttribute("y",ut))},sb=(et,ot)=>{const{x:ut,y:dt,width:gt,height:Mt}=ot.getBBox(),zt=document.createElementNS(wo,"svg");zt.setAttribute("class","a9s-formatter-el"),ob(zt,ut,dt,gt,Mt);const Jt=document.createElementNS(wo,"g");Jt.appendChild(et),zt.appendChild(Jt),ot.append(zt)},O1=(et,ot,ut)=>{if(!ut)return et;const dt=ut(ot);if(!dt)return et;if(typeof dt=="string"||dt instanceof String)Jd(et,dt);else if(dt.nodeType===Node.ELEMENT_NODE)sb(dt,et);else{const{className:gt,style:Mt,element:zt}=dt;if(gt&&Jd(et,gt),Mt){const Jt=et.querySelector(".a9s-outer"),ue=et.querySelector(".a9s-inner");Jt&&ue?(Jt.setAttribute("style","display:none"),ue.setAttribute("style",Mt)):et.setAttribute("style",Mt)}zt&&sb(zt,et);for(const Jt in dt)dt.hasOwnProperty(Jt)&&Jt.startsWith("data-")&&et.setAttribute(Jt,dt[Jt])}},sv=(et,ot,ut,dt,gt)=>{const Mt=et.querySelector(".a9s-formatter-el");Mt&&ob(Mt,ot,ut,dt,gt)};class X_ extends ib{constructor(ot,ut,dt,gt){super(ot,ut,dt,gt),lt(this,"onScaleChanged",()=>this.handles.map(this.scaleHandle)),lt(this,"setSize",(he,le,Ue,tn)=>{rv(this.rectangle,he,le,Ue,tn),ev(this.mask,this.env.image,he,le,Ue,tn),sv(this.elementGroup,he,le,Ue,tn);const[ln,Mn,Rn,On]=this.handles;this.setHandleXY(ln,he,le),this.setHandleXY(Mn,he+Ue,le),this.setHandleXY(Rn,he+Ue,le+tn),this.setHandleXY(On,he,le+tn)}),lt(this,"stretchCorners",(he,le,Ue)=>{const tn=this.getHandleXY(le),ln=Ue.x-tn.x,Mn=Ue.y-tn.y,Rn=ln>0?tn.x:Ue.x,On=Mn>0?tn.y:Ue.y,or=Math.abs(ln),fr=Math.abs(Mn);rv(this.rectangle,Rn,On,or,fr),ev(this.mask,this.env.image,Rn,On,or,fr),sv(this.elementGroup,Rn,On,or,fr),this.setHandleXY(this.handles[he],Ue.x,Ue.y);const oi=this.handles[(he+3)%4];this.setHandleXY(oi,tn.x,Ue.y);const Zr=this.handles[(he+5)%4];return this.setHandleXY(Zr,Ue.x,tn.y),{x:Rn,y:On,w:or,h:fr}}),lt(this,"onGrab",he=>le=>{if(le.button!==0)return;this.grabbedElem=he;const Ue=this.getSVGPoint(le),{x:tn,y:ln}=eb(this.rectangle);this.mouseOffset={x:Ue.x-tn,y:Ue.y-ln}}),lt(this,"onMouseMove",he=>{if(he.button!==0)return;const le=(Ue,tn)=>Ue<0?0:Ue>tn?tn:Ue;if(this.grabbedElem){const Ue=this.getSVGPoint(he);if(this.grabbedElem===this.rectangle){const{w:tn,h:ln}=eb(this.rectangle),{naturalWidth:Mn,naturalHeight:Rn}=this.env.image,On=le(Ue.x-this.mouseOffset.x,Mn-tn),or=le(Ue.y-this.mouseOffset.y,Rn-ln);this.setSize(On,or,tn,ln),this.emit("update",O0(On,or,tn,ln,this.env.image,this.config.fragmentUnit))}else{const tn=this.handles.indexOf(this.grabbedElem),ln=tn<2?this.handles[tn+2]:this.handles[tn-2],{x:Mn,y:Rn,w:On,h:or}=this.stretchCorners(tn,ln,Ue);this.emit("update",O0(Mn,Rn,On,or,this.env.image,this.config.fragmentUnit))}}}),lt(this,"onMouseUp",he=>{this.grabbedElem=null,this.mouseOffset=null}),lt(this,"updateState",he=>{const{x:le,y:Ue,w:tn,h:ln}=tp(he,this.env.image);this.setSize(le,Ue,tn,ln)}),this.svg.addEventListener("mousemove",this.onMouseMove),this.svg.addEventListener("mouseup",this.onMouseUp);const{x:Mt,y:zt,w:Jt,h:ue}=tp(ot,gt.image);this.containerGroup=document.createElementNS(wo,"g"),this.mask=tb(gt.image,Mt,zt,Jt,ue),this.mask.setAttribute("class","a9s-selection-mask"),this.containerGroup.appendChild(this.mask),this.elementGroup=document.createElementNS(wo,"g"),this.elementGroup.setAttribute("class","a9s-annotation editable selected"),this.rectangle=nv(Mt,zt,Jt,ue),this.rectangle.querySelector(".a9s-inner").addEventListener("mousedown",this.onGrab(this.rectangle)),this.elementGroup.appendChild(this.rectangle),this.handles=[[Mt,zt],[Mt+Jt,zt],[Mt+Jt,zt+ue],[Mt,zt+ue]].map(he=>{const[le,Ue]=he,tn=this.drawHandle(le,Ue);return tn.addEventListener("mousedown",this.onGrab(tn)),this.elementGroup.appendChild(tn),tn}),this.containerGroup.appendChild(this.elementGroup),ut.appendChild(this.containerGroup),O1(this.rectangle,ot,dt.formatter),this.grabbedElem=null,this.mouseOffset=null}get element(){return this.elementGroup}destroy(){this.containerGroup.parentNode.removeChild(this.containerGroup),super.destroy()}}class P1 extends ov{constructor(ot,ut,dt){super(ot,ut,dt),lt(this,"startDrawing",(gt,Mt)=>{this.attachListeners({mouseMove:this.onMouseMove,mouseUp:this.onMouseUp}),this.rubberband=new V_(gt,Mt,this.g,this.config,this.env)}),lt(this,"stop",()=>{this.rubberband&&(this.rubberband.destroy(),this.rubberband=null)}),lt(this,"onMouseMove",(gt,Mt)=>this.rubberband.dragTo(gt,Mt)),lt(this,"onMouseUp",()=>{this.detachListeners(),this.started=!1;const{width:gt,height:Mt}=this.rubberband.getBoundingClientRect(),zt=this.config.minSelectionWidth||4,Jt=this.config.minSelectionHeight||4;if(gt>=zt&&Mt>=Jt){const{element:ue}=this.rubberband;ue.annotation=this.rubberband.toSelection(),this.emit("complete",ue)}else this.emit("cancel");this.stop()}),lt(this,"createEditableShape",gt=>new X_(gt,this.g,this.config,this.env)),this.rubberband=null}get isDrawing(){return this.rubberband!=null}}P1.identifier="rect",P1.supports=et=>{const ot=et.selector("FragmentSelector");return ot==null?void 0:ot.conformsTo.startsWith("http://www.w3.org/TR/media-frags")};const Z_=et=>{const ot=new XMLSerializer().serializeToString(et.documentElement).replace("",``);return new DOMParser().parseFromString(ot,"image/svg+xml").documentElement},ab=et=>{const ot=dt=>{Array.from(dt.attributes).forEach(gt=>{gt.name.startsWith("on")&&dt.removeAttribute(gt.name)})},ut=et.getElementsByTagName("script");return Array.from(ut).reverse().forEach(dt=>dt.parentNode.removeChild(dt)),ot(et),Array.from(et.querySelectorAll("*")).forEach(ot),et},og=et=>{const ot=et.selector("SvgSelector");if(ot){const ut=new DOMParser,{value:dt}=ot,gt=ut.parseFromString(dt,"image/svg+xml"),Mt=gt.lookupPrefix(wo),zt=gt.lookupNamespaceURI(null);return Mt||zt?ab(gt).firstChild:ab(Z_(gt)).firstChild}},lb=et=>{const ot=og(et),ut=document.createElementNS(wo,"g"),dt=ot.cloneNode(!0);dt.setAttribute("class","a9s-inner");const gt=ot.cloneNode(!0);return gt.setAttribute("class","a9s-outer"),ut.appendChild(gt),ut.appendChild(dt),ut},av=(et,ot)=>{const ut=et.querySelector(".a9s-inner").cloneNode(!0);ut.removeAttribute("class"),ut.removeAttribute("xmlns");let dt=ut.outerHTML||new XMLSerializer().serializeToString(ut);return dt=dt.replace(` xmlns="${wo}"`,""),{source:ot==null?void 0:ot.src,selector:{type:"SvgSelector",value:`${dt}`}}},J_=et=>{const ot=og(et),ut=ot.nodeName.toLowerCase();if(ut==="polygon")return K_(ot);if(ut==="circle")return tw(ot);if(ut==="ellipse")return ew(ot);if(ut=="path")return nw(ot);throw`Unsupported SVG shape type: ${ut}`},K_=et=>{const ot=et.getAttribute("points").split(" ").map(gt=>gt.split(",").map(Mt=>parseFloat(Mt.trim())));let ut=0,dt=ot.length-1;for(let gt=0;gt{const ot=et.getAttribute("r");return ot*ot*Math.PI},ew=et=>{const ot=et.getAttribute("rx"),ut=et.getAttribute("ry");return ot*ut*Math.PI},nw=et=>{const ot=et.getAttribute("d").split("L");let ut=0;if(ot.length>1){var dt=ot[ot.length-1].trim().split(" ");let gt=parseFloat(dt[0]),Mt=parseFloat(dt[1]);dt=ot[0].substring(1).trim().split(" ");let zt=parseFloat(dt[0]),Jt=parseFloat(dt[1]);ut+=(gt+zt)*(Mt-Jt),gt=zt,Mt=Jt;for(let ue=1;ue{this.mask.setAttribute("d",`M0 0 h${this.w} v${this.h} h-${this.w} z M${this.polygon.getAttribute("points")} z`)}),lt(this,"destroy",()=>this.mask.parentNode.removeChild(this.mask)),this.w=ot.naturalWidth,this.h=ot.naturalHeight,this.polygon=ut,this.mask=document.createElementNS(wo,"path"),this.mask.setAttribute("fill-rule","evenodd"),this.mask.setAttribute("class","a9s-selection-mask"),this.mask.setAttribute("d",`M0 0 h${this.w} v${this.h} h-${this.w} z M${this.polygon.getAttribute("points")} z`)}get element(){return this.mask}}class rw{constructor(ot,ut,dt){lt(this,"setPoints",gt=>{const Mt=gt.map(zt=>`${zt[0]},${zt[1]}`).join(" ");this.outer.setAttribute("points",Mt),this.inner.setAttribute("points",Mt)}),lt(this,"getBoundingClientRect",()=>this.outer.getBoundingClientRect()),lt(this,"dragTo",gt=>{this.group.style.display=null,this.mousepos=gt;const Mt=[...this.points,gt];this.setPoints(Mt),this.mask.redraw()}),lt(this,"addPoint",()=>{const[gt,Mt]=this.mousepos,zt=this.points[this.points.length-1];Math.pow(gt-zt[0],2)+Math.pow(Mt-zt[1],2)>4&&(this.points=[...this.points,this.mousepos],this.setPoints(this.points),this.mask.redraw())}),lt(this,"destroy",()=>{this.group.parentNode.removeChild(this.group),this.polygon=null,this.group=null}),lt(this,"toSelection",()=>new L0(av(this.group,this.env.image))),this.points=[ot],this.env=dt,this.mousepos=ot,this.group=document.createElementNS(wo,"g"),this.polygon=document.createElementNS(wo,"g"),this.polygon.setAttribute("class","a9s-selection"),this.outer=document.createElementNS(wo,"polygon"),this.outer.setAttribute("class","a9s-outer"),this.inner=document.createElementNS(wo,"polygon"),this.inner.setAttribute("class","a9s-inner"),this.setPoints(this.points),this.mask=new cb(dt.image,this.inner),this.polygon.appendChild(this.outer),this.polygon.appendChild(this.inner),this.group.style.display="none",this.group.appendChild(this.mask.element),this.group.appendChild(this.polygon),ut.appendChild(this.group)}get element(){return this.polygon}}const lv=et=>{const ot=et.querySelector(".a9s-inner").points,ut=[];for(let dt=0;dtet.querySelector(".a9s-inner").getBBox();class ow extends ib{constructor(ot,ut,dt,gt){super(ot,ut,dt,gt),lt(this,"onScaleChanged",()=>this.handles.map(this.scaleHandle)),lt(this,"setPoints",Mt=>{const zt=ln=>Math.round(10*ln)/10,Jt=Mt.map(ln=>`${zt(ln.x)},${zt(ln.y)}`).join(" ");this.shape.querySelector(".a9s-inner").setAttribute("points",Jt);const ue=this.shape.querySelector(".a9s-outer");ue.setAttribute("points",Jt),this.mask.redraw();const{x:he,y:le,width:Ue,height:tn}=ue.getBBox();sv(this.elementGroup,he,le,Ue,tn)}),lt(this,"onGrab",Mt=>zt=>{zt.button===0&&(this.grabbedElem=Mt,this.grabbedAt=this.getSVGPoint(zt))}),lt(this,"onMouseMove",Mt=>{const zt=(Jt,ue,he)=>Jt+ue<0?-Jt:Jt+ue>he?he-Jt:ue;if(this.grabbedElem){const Jt=this.getSVGPoint(Mt);if(this.grabbedElem===this.shape){const{x:ue,y:he,width:le,height:Ue}=iw(this.shape),{naturalWidth:tn,naturalHeight:ln}=this.env.image,Mn=zt(ue,Jt.x-this.grabbedAt.x,tn-le),Rn=zt(he,Jt.y-this.grabbedAt.y,ln-Ue),On=lv(this.shape).map(or=>({x:or.x+Mn,y:or.y+Rn}));this.grabbedAt=Jt,this.setPoints(On),On.forEach((or,fr)=>this.setHandleXY(this.handles[fr],or.x,or.y)),this.emit("update",av(this.shape,this.env.image))}else{const ue=this.handles.indexOf(this.grabbedElem),he=lv(this.shape).map((le,Ue)=>Ue===ue?Jt:le);this.setPoints(he),this.setHandleXY(this.handles[ue],Jt.x,Jt.y),this.emit("update",av(this.shape,this.env.image))}}}),lt(this,"onMouseUp",Mt=>{this.grabbedElem=null,this.grabbedAt=null}),lt(this,"updateState",Mt=>{const zt=og(Mt).getAttribute("points").split(" ").map(Jt=>{const[ue,he]=Jt.split(",").map(le=>parseFloat(le.trim()));return{x:ue,y:he}});this.setPoints(zt),zt.forEach((Jt,ue)=>this.setHandleXY(this.handles[ue],Jt.x,Jt.y))}),lt(this,"destroy",()=>{this.containerGroup.parentNode.removeChild(this.containerGroup),super.destroy()}),this.svg.addEventListener("mousemove",this.onMouseMove),this.svg.addEventListener("mouseup",this.onMouseUp),this.containerGroup=document.createElementNS(wo,"g"),this.shape=lb(ot),this.shape.querySelector(".a9s-inner").addEventListener("mousedown",this.onGrab(this.shape)),this.mask=new cb(gt.image,this.shape.querySelector(".a9s-inner")),this.containerGroup.appendChild(this.mask.element),this.elementGroup=document.createElementNS(wo,"g"),this.elementGroup.setAttribute("class","a9s-annotation editable selected"),this.elementGroup.appendChild(this.shape),this.handles=lv(this.shape).map(Mt=>{const zt=this.drawHandle(Mt.x,Mt.y);return zt.addEventListener("mousedown",this.onGrab(zt)),this.elementGroup.appendChild(zt),zt}),this.containerGroup.appendChild(this.elementGroup),ut.appendChild(this.containerGroup),O1(this.shape,ot,dt.formatter),this.grabbedElem=null,this.grabbedAt=null}get element(){return this.elementGroup}}class cv extends ov{constructor(ot,ut,dt){super(ot,ut,dt),lt(this,"startDrawing",(gt,Mt,zt)=>{this._isDrawing=!0,this._startOnSingleClick=zt,this.attachListeners({mouseMove:this.onMouseMove,mouseUp:this.onMouseUp,dblClick:this.onDblClick}),this.rubberband=new rw([gt,Mt],this.g,this.env)}),lt(this,"stop",()=>{this.detachListeners(),this._isDrawing=!1,this.rubberband&&(this.rubberband.destroy(),this.rubberband=null)}),lt(this,"onMouseMove",(gt,Mt)=>this.rubberband.dragTo([gt,Mt])),lt(this,"onMouseUp",()=>{const{width:gt,height:Mt}=this.rubberband.getBoundingClientRect(),zt=this.config.minSelectionWidth||4,Jt=this.config.minSelectionHeight||4;gt>=zt||Mt>=Jt?this.rubberband.addPoint():this._startOnSingleClick||(this.emit("cancel"),this.stop())}),lt(this,"onDblClick",()=>{this._isDrawing=!1;const gt=this.rubberband.element;gt.annotation=this.rubberband.toSelection(),this.emit("complete",gt),this.stop()}),lt(this,"createEditableShape",gt=>new ow(gt,this.g,this.config,this.env)),this._isDrawing=!1,this._startOnSingleClick=!1}get isDrawing(){return this._isDrawing}}cv.identifier="polygon",cv.supports=et=>{var ot;const ut=et.selector("SvgSelector");if(ut)return(ot=ut.value)==null?void 0:ot.match(/^this._registered.map(gt=>gt.identifier)),lt(this,"registerTool",gt=>{const Mt=gt.identifier;this.listTools().includes(Mt)&&this.unregisterTool(Mt),this._registered.push(gt)}),lt(this,"unregisterTool",gt=>this._registered=this._registered.filter(Mt=>Mt.identifier!==gt)),lt(this,"setCurrent",gt=>{const Mt=typeof gt=="string"||gt instanceof String?this._registered.find(zt=>zt.identifier===gt):gt;this._current=new Mt(this._g,this._config,this._env),this._current.on("startSelection",zt=>this.emit("startSelection",zt)),this._current.on("complete",zt=>this.emit("complete",zt)),this._current.on("cancel",zt=>this.emit("cancel",zt))}),lt(this,"forAnnotation",gt=>{var Mt;const[zt,...Jt]=gt.targets,ue=(Mt=zt.renderedVia)==null?void 0:Mt.name,he=ue?this._registered.find(le=>le.identifier===ue):this._registered.find(le=>le.supports(gt));return he?new he(this._g,this._config,this._env):null}),this._g=ot,this._config=ut,this._env=dt,this._registered=[P1,cv],this.setCurrent(P1)}get current(){return this._current}}class aw{constructor(ot,ut,dt){this.svg=ot.closest("svg"),this.g=document.createElementNS(wo,"g"),this.g.setAttribute("class","a9s-crosshair");const gt=document.createElementNS(wo,"line"),Mt=document.createElementNS(wo,"line");this.g.appendChild(gt),this.g.appendChild(Mt),ot.appendChild(this.g);const zt=Jt=>{const ue=this.svg.getBoundingClientRect(),he=Jt.clientX-ue.x,le=Jt.clientY-ue.y,Ue=this.svg.createSVGPoint(),{left:tn,top:ln}=this.svg.getBoundingClientRect();return Ue.x=he+tn,Ue.y=le+ln,Ue.matrixTransform(ot.getScreenCTM().inverse())};this.svg.addEventListener("mousemove",Jt=>{const{x:ue,y:he}=zt(Jt);gt.setAttribute("x1",0),gt.setAttribute("y1",he),gt.setAttribute("x2",ut),gt.setAttribute("y2",he),Mt.setAttribute("x1",ue),Mt.setAttribute("y1",0),Mt.setAttribute("x2",ue),Mt.setAttribute("y2",dt)})}}const lw={FragmentSelector:nv,SvgSelector:lb},cw={FragmentSelector:H_,SvgSelector:J_},ub=et=>{const ot=et.targets[0];if(ot)return Array.isArray(ot.selector)?ot.selector[0]:ot.selector},uv=(et,ot)=>lw[ub(et).type](et,ot),hb=(et,ot)=>cw[ub(et).type](et,ot);function uw(et,ot,ut,dt,gt){fb(et,ot,ut||0,dt||et.length-1,gt||hw)}function fb(et,ot,ut,dt,gt){for(;dt>ut;){if(dt-ut>600){var Mt=dt-ut+1,zt=ot-ut+1,Jt=Math.log(Mt),ue=.5*Math.exp(2*Jt/3),he=.5*Math.sqrt(Jt*ue*(Mt-ue)/Mt)*(zt-Mt/2<0?-1:1),le=Math.max(ut,Math.floor(ot-zt*ue/Mt+he)),Ue=Math.min(dt,Math.floor(ot+(Mt-zt)*ue/Mt+he));fb(et,ot,le,Ue,gt)}var tn=et[ot],ln=ut,Mn=dt;for(P0(et,ut,ot),gt(et[dt],tn)>0&&P0(et,ut,dt);ln0;)Mn--}gt(et[ut],tn)===0?P0(et,ut,Mn):(Mn++,P0(et,Mn,dt)),Mn<=ot&&(ut=Mn+1),ot<=Mn&&(dt=Mn-1)}}function P0(et,ot,ut){var dt=et[ot];et[ot]=et[ut],et[ut]=dt}function hw(et,ot){return etot?1:0}class dw{constructor(ot=9){this._maxEntries=Math.max(4,ot),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(ot){let ut=this.data;const dt=[];if(!R1(ot,ut))return dt;const gt=this.toBBox,Mt=[];for(;ut;){for(let zt=0;zt=0&&Mt[ut].children.length>this._maxEntries;)this._split(Mt,ut),ut--;this._adjustParentBBoxes(gt,Mt,ut)}_split(ot,ut){const dt=ot[ut],gt=dt.children.length,Mt=this._minEntries;this._chooseSplitAxis(dt,Mt,gt);const zt=this._chooseSplitIndex(dt,Mt,gt),Jt=ag(dt.children.splice(zt,dt.children.length-zt));Jt.height=dt.height,Jt.leaf=dt.leaf,sg(dt,this.toBBox),sg(Jt,this.toBBox),ut?ot[ut-1].children.push(Jt):this._splitRoot(dt,Jt)}_splitRoot(ot,ut){this.data=ag([ot,ut]),this.data.height=ot.height+1,this.data.leaf=!1,sg(this.data,this.toBBox)}_chooseSplitIndex(ot,ut,dt){let gt,Mt=1/0,zt=1/0;for(let Jt=ut;Jt<=dt-ut;Jt++){const ue=z0(ot,0,Jt,this.toBBox),he=z0(ot,Jt,dt,this.toBBox),le=yw(ue,he),Ue=hv(ue)+hv(he);le=ut;he--){const le=ot.children[he];R0(Jt,ot.leaf?Mt(le):le),ue+=z1(Jt)}return ue}_adjustParentBBoxes(ot,ut,dt){for(let gt=dt;gt>=0;gt--)R0(ut[gt],ot)}_condense(ot){for(let ut=ot.length-1,dt;ut>=0;ut--)ot[ut].children.length===0?ut>0?(dt=ot[ut-1].children,dt.splice(dt.indexOf(ot[ut]),1)):this.clear():sg(ot[ut],this.toBBox)}}function fw(et,ot,ut){if(!ut)return ot.indexOf(et);for(let dt=0;dt=et.minX&&ot.maxY>=et.minY}function ag(et){return{children:et,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function pb(et,ot,ut,dt,gt){const Mt=[ot,ut];for(;Mt.length;){if(ut=Mt.pop(),ot=Mt.pop(),ut-ot<=dt)continue;const zt=ot+Math.ceil((ut-ot)/dt/2)*dt;uw(et,zt,ot,ut,gt),Mt.push(ot,zt,zt,ut)}}const gb=et=>{const ot=uv(et),ut=document.createElementNS(wo,"svg");ut.style.position="absolute",ut.style.opacity=0,ut.style.top=0,ut.style.left=0,ut.appendChild(ot),document.body.appendChild(ut);const{x:dt,y:gt,width:Mt,height:zt}=ot.getBBox();return document.body.removeChild(ut),{minX:dt,minY:gt,maxX:dt+Mt,maxY:gt+zt}};class vw{constructor(ot){lt(this,"getAnnotationAt",(ut,dt,gt)=>{const Mt=gt?5/gt:5,zt=this.spatial_index.search({minX:ut-Mt,minY:dt-Mt,maxX:ut+Mt,maxY:dt+Mt}).map(Jt=>Jt.annotation);if(zt.length>0)return zt.sort((Jt,ue)=>hb(Jt,this.env.image)-hb(ue,this.env.image)),zt[0]}),lt(this,"getAnnotationsIntersecting",ut=>this.spatial_index.search(ut).map(dt=>dt.annotation)),lt(this,"insert",ut=>{(Array.isArray(ut)?ut:[ut]).forEach(dt=>{this.spatial_index.insert(st(nt({},gb(dt)),{annotation:dt}))})}),lt(this,"remove",ut=>{const dt=st(nt({},gb(ut)),{annotation:ut});this.spatial_index.remove(dt,(gt,Mt)=>gt.annotation.id===Mt.annotation.id)}),this.env=ot,this.spatial_index=new dw}}const bw=(et,ot)=>{const ut=tv(ot,".a9s-annotation")?ot:ot.querySelector(".a9s-annotation"),{canvas:dt}=et.drawer,gt=dt.getBoundingClientRect(),Mt=dt.width/gt.width,zt=dt.height/gt.height,Jt=ut.getBoundingClientRect(),ue=Jt.x-gt.x,he=Jt.y-gt.y,{width:le,height:Ue}=Jt,tn=document.createElement("CANVAS"),ln=tn.getContext("2d");tn.width=le,tn.height=Ue,ln.drawImage(dt,ue*Mt,he*zt,le*Mt,Ue*zt,0,0,le,Ue);const Mn=et.viewport.viewportToImageCoordinates(Jt.x,Jt.y),Rn=et.viewport.viewportToImageZoom(et.viewport.getZoom());return{snippet:tn,transform:On=>{const or=Mn.x+On[0]/Mt/Rn,fr=Mn.y+On[1]/zt/Rn;return[or,fr]}}},_w=iv();class mb extends Es{constructor(ot){super(),lt(this,"_getShapeAt",dt=>{const gt=ue=>{const he=this.svg.createSVGPoint();if(window.TouchEvent&&ue instanceof TouchEvent){const le=this.svg.getBoundingClientRect(),Ue=ue.touches[0],tn=Ue.clientX-le.x,ln=Ue.clientY-le.y,{left:Mn,top:Rn}=this.svg.getBoundingClientRect();return he.x=tn+Mn,he.y=ln+Rn,he.matrixTransform(this.g.getScreenCTM().inverse())}else return he.x=ue.offsetX,he.y=ue.offsetY,he.matrixTransform(this.g.getCTM().inverse())},{x:Mt,y:zt}=gt(dt),Jt=this.store.getAnnotationAt(Mt,zt,this.currentScale());if(Jt)return this.findShape(Jt)}),lt(this,"_initDrawingTools",dt=>{this.tools=new sw(this.g,this.config,this.env),this.tools.on("complete",this.onDrawingComplete);let gt=!1;this.mouseTracker=new wt.default.MouseTracker({element:this.svg,pressHandler:Mt=>{this.tools.current.isDrawing||(this.tools.current.start(Mt.originalEvent,this.drawOnSingleClick&&!this.hoveredShape),dt||this.scaleTool(this.tools.current))},moveHandler:Mt=>{if(this.tools.current.isDrawing){const{x:zt,y:Jt}=this.tools.current.getSVGPoint(Mt.originalEvent);this.tools.current.onMouseMove(zt,Jt,Mt.originalEvent),gt||(this.emit("startSelection",{x:zt,y:Jt}),gt=!0)}},releaseHandler:Mt=>{if(this.tools.current.isDrawing){const{x:zt,y:Jt}=this.tools.current.getSVGPoint(Mt.originalEvent);this.tools.current.onMouseUp(zt,Jt,Mt.originalEvent)}gt=!1}}).setTracking(!1),this.onKeyDown&&document.removeEventListener("keydown",this.onKeyDown),this.onKeyUp&&document.removeEventListener("keydown",this.onKeyDown),this.onKeyDown=Mt=>{Mt.which===16&&!this.selectedShape&&this.mouseTracker.setTracking(!this.readOnly)},this.onKeyUp=Mt=>{Mt.which===16&&!this.tools.current.isDrawing&&this.mouseTracker.setTracking(!1)},document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}),lt(this,"_initMouseEvents",()=>{let dt=this.viewer.gestureSettingsByDeviceType("mouse").clickToZoom;this.svg.addEventListener("mousemove",zt=>{var Jt,ue;if(!((Jt=this.tools)!=null&&Jt.current.isDrawing)&&!zt.target.closest(".a9s-annotation.editable.selected")){const he=this._getShapeAt(zt);if((he==null?void 0:he.annotation)!==((ue=this.hoveredShape)==null?void 0:ue.annotation)){if(this.hoveredShape){this.viewer.gestureSettingsByDeviceType("mouse").clickToZoom=dt;const le=this.hoveredShape.element||this.hoveredShape;F_(le,"hover"),this.emit("mouseLeaveAnnotation",this.hoveredShape.annotation,this.hoveredShape)}he&&(dt=this.viewer.gestureSettingsByDeviceType("mouse").clickToZoom,this.viewer.gestureSettingsByDeviceType("mouse").clickToZoom=!1,Jd(he,"hover"),this.emit("mouseEnterAnnotation",he.annotation,he))}this.hoveredShape=he}});let gt=null;new wt.default.MouseTracker({element:this.viewer.canvas,pressHandler:()=>{gt=new Date().getTime()}}),this.svg.addEventListener("mousedown",()=>{gt=new Date().getTime()});const Mt=zt=>{var Jt;if(!((Jt=this.tools.current)!=null&&Jt.isDrawing||this.disableSelect)&&new Date().getTime()-gt<250){const ue=zt.target.closest(".a9s-annotation.editable.selected")?this.selectedShape:this._getShapeAt(zt);ue?this.selectShape(ue):ue||(this.deselect(),this.emit("select",{}))}this.disableSelect&&this.emit("clickAnnotation",this.hoveredShape.annotation,this.hoveredShape)};this.svg.addEventListener("click",Mt),this.svg.addEventListener("touchstart",Mt)}),lt(this,"_refreshNonScalingAnnotations",()=>{const dt=this.currentScale();Array.from(this.svg.querySelectorAll(".a9s-non-scaling")).forEach(gt=>gt.setAttribute("transform",`scale(${1/dt})`))}),lt(this,"addAnnotation",(dt,gt)=>{const Mt=gt||this.g,zt=uv(dt,this.env.image);return Jd(zt,"a9s-annotation"),zt.setAttribute("data-id",dt.id),zt.annotation=dt,Mt.appendChild(zt),O1(zt,dt,this.formatter),this.scaleFormatterElements(zt),zt}),lt(this,"addDrawingTool",dt=>this.tools.registerTool(dt)),lt(this,"addOrUpdateAnnotation",(dt,gt)=>{var Mt,zt;(((Mt=this.selectedShape)==null?void 0:Mt.annotation)===dt||((zt=this.selectedShape)==null?void 0:zt.annotation)==gt)&&this.deselect(),gt&&this.removeAnnotation(dt),this.removeAnnotation(dt);const Jt=this.addAnnotation(dt);tv(Jt,"a9s-non-scaling")&&Jt.setAttribute("transform",`scale(${1/this.currentScale()})`),this.store.insert(dt)}),lt(this,"currentScale",()=>{const dt=this.viewer.viewport.getContainerSize().x;return this.viewer.viewport.getZoom(!0)*dt/this.viewer.world.getContentFactor()}),lt(this,"deselect",()=>{var dt;if((dt=this.tools)==null||dt.current.stop(),this.selectedShape){const{annotation:gt}=this.selectedShape;if(this.selectedShape.destroy&&(this.selectedShape.mouseTracker.destroy(),this.selectedShape.destroy(),!gt.isSelection)){const Mt=this.addAnnotation(gt);tv(Mt,"a9s-non-scaling")&&Mt.setAttribute("transform",`scale(${1/this.currentScale()})`)}this.selectedShape=null}}),lt(this,"destroy",()=>{this.deselect(),this.svg.parentNode.removeChild(this.svg)}),lt(this,"findShape",dt=>{const gt=dt!=null&&dt.id?dt.id:dt;return this.g.querySelector(`.a9s-annotation[data-id="${gt}"]`)}),lt(this,"fitBounds",(dt,gt)=>{const Mt=this.findShape(dt);if(Mt){const{x:zt,y:Jt,width:ue,height:he}=Mt.getBBox(),le=this.viewer.viewport.imageToViewportRectangle(zt,Jt,ue,he);this.viewer.viewport.fitBounds(le,gt)}}),lt(this,"getAnnotations",()=>Array.from(this.g.querySelectorAll(".a9s-annotation")).map(dt=>dt.annotation)),lt(this,"getSelectedImageSnippet",()=>{var dt;if(this.selectedShape){const gt=(dt=this.selectedShape.element)!=null?dt:this.selectedShape;return bw(this.viewer,gt)}}),lt(this,"init",dt=>{this.deselect(),Array.from(this.g.querySelectorAll(".a9s-annotation")).forEach(gt=>this.g.removeChild(gt)),console.time("Took"),console.log("Drawing..."),this.loaded||(this.g.style.display="none"),dt.forEach(gt=>this.addAnnotation(gt)),console.log("Indexing..."),this.store.insert(dt),console.timeEnd("Took"),this.resize()}),lt(this,"listDrawingTools",()=>this.tools.listTools()),lt(this,"overrideId",(dt,gt)=>{const Mt=this.findShape(dt);Mt.setAttribute("data-id",gt);const{annotation:zt}=Mt,Jt=zt.clone({id:gt});return Mt.annotation=Jt,this.store.remove(zt),this.store.insert(Jt),Jt}),lt(this,"panTo",(dt,gt)=>{const Mt=this.findShape(dt);if(Mt){const{top:zt,left:Jt,width:ue,height:he}=Mt.getBoundingClientRect(),le=Jt+ue/2+window.scrollX,Ue=zt+he/2+window.scrollY,tn=this.viewer.viewport.windowToViewportCoordinates(new wt.default.Point(le,Ue));this.viewer.viewport.panTo(tn,gt)}}),lt(this,"removeAnnotation",dt=>{var gt,Mt;const zt=dt.type?dt.id:dt;((gt=this.selectedShape)==null?void 0:gt.annotation.id)===zt&&this.deselect();const Jt=this.findShape(dt);if(Jt){const{annotation:ue}=Jt;((Mt=this.selectedShape)==null?void 0:Mt.annotation)===ue&&this.deselect(),Jt.parentNode.removeChild(Jt),this.store.remove(ue)}}),lt(this,"removeDrawingTool",dt=>{var gt;return(gt=this.tools)==null?void 0:gt.unregisterTool(dt)}),lt(this,"scaleFormatterElements",dt=>{const gt=1/this.currentScale();if(dt){const Mt=dt.querySelector(".a9s-formatter-el");Mt&&Mt.firstChild.setAttribute("transform",`scale(${gt})`)}else Array.from(this.g.querySelectorAll(".a9s-formatter-el")).forEach(Mt=>Mt.firstChild.setAttribute("transform",`scale(${gt})`))}),lt(this,"scaleTool",dt=>{if(dt){const gt=1/this.currentScale();dt.scale=gt,dt.onScaleChanged&&dt.onScaleChanged(gt)}}),lt(this,"selectAnnotation",(dt,gt)=>{this.selectedShape&&this.deselect();const Mt=this.findShape(dt);if(Mt){this.selectShape(Mt,gt);const zt=this.selectedShape.element?this.selectedShape.element:this.selectedShape;return{annotation:Mt.annotation,element:zt}}else this.deselect()}),lt(this,"selectShape",(dt,gt)=>{var Mt;if(!gt&&!dt.annotation.isSelection&&this.emit("clickAnnotation",dt.annotation,dt),((Mt=this.selectedShape)==null?void 0:Mt.annotation)===dt.annotation)return;this.selectedShape&&this.selectedShape.annotation!==dt.annotation&&this.deselect();const{annotation:zt}=dt;if(this.readOnly||zt.readOnly||this.headless)this.selectedShape=dt,gt||this.emit("select",{annotation:zt,element:dt,skipEvent:gt});else{const Jt=this.tools.forAnnotation(zt);if(Jt){setTimeout(()=>{dt.parentNode.removeChild(dt),gt||this.emit("select",{annotation:zt,element:this.selectedShape.element})},1),this.selectedShape=Jt.createEditableShape(zt),this.scaleTool(this.selectedShape),this.scaleFormatterElements(this.selectedShape.element),this.selectedShape.element.annotation=zt;const ue=new wt.default.MouseTracker({element:this.svg}).setTracking(!0);this.selectedShape.element.addEventListener("mouseenter",()=>{this.hoveredShape=this.selectedShape,ue.setTracking(!0)}),this.selectedShape.element.addEventListener("mouseleave",()=>{this.hoveredShape=null,ue.setTracking(!1)}),this.selectedShape.mouseTracker=ue,this.selectedShape.on("update",he=>this.emit("updateTarget",this.selectedShape.element,he))}else this.selectedShape=dt,gt||this.emit("select",{annotation:zt,element:this.selectedShape})}}),lt(this,"setDrawingEnabled",dt=>{var gt;return(gt=this.mouseTracker)==null?void 0:gt.setTracking(dt&&!this.readOnly)}),lt(this,"setDrawingTool",dt=>{var gt;this.tools&&((gt=this.tools.current)==null||gt.stop(),this.tools.setCurrent(dt))}),lt(this,"setVisible",dt=>{dt?this.svg.style.display=null:(this.deselect(),this.svg.style.display="none")}),lt(this,"stopDrawing",()=>{var dt,gt;return(gt=(dt=this.tools)==null?void 0:dt.current)==null?void 0:gt.stop()}),this.viewer=ot.viewer,this.config=ot.config,this.env=ot.env,this.readOnly=ot.config.readOnly,this.headless=ot.config.headless,this.formatter=ot.config.formatter,this.disableSelect=ot.disableSelect,this.drawOnSingleClick=ot.config.drawOnSingleClick,this.svg=document.createElementNS(wo,"svg"),_w?(this.svg.setAttribute("class","a9s-annotationlayer a9s-osd-annotationlayer touch"),W_(this.svg)):this.svg.setAttribute("class","a9s-annotationlayer a9s-osd-annotationlayer"),this.g=document.createElementNS(wo,"g"),this.svg.appendChild(this.g),this.viewer.canvas.appendChild(this.svg),this.viewer.addHandler("animation",()=>this.resize()),this.viewer.addHandler("rotate",()=>this.resize()),this.viewer.addHandler("resize",()=>this.resize()),this.viewer.addHandler("flip",()=>this.resize()),this.loaded=!1;const ut=()=>{const{x:dt,y:gt}=this.viewer.world.getItemAt(0).source.dimensions;this.env.image={src:this.viewer.world.getItemAt(0).source["@id"]||new URL(this.viewer.world.getItemAt(0).source.url,document.baseURI).href,naturalWidth:dt,naturalHeight:gt},ot.config.crosshair&&(this.crosshair=new aw(this.g,dt,gt),Jd(this.svg,"has-crosshair")),this.loaded=!0,this.g.style.display="inline",this.resize()};this.viewer.addHandler("open",ut),this.viewer.world.addHandler("add-item",ut),this.viewer.world.getItemAt(0)&&ut(),this.store=new vw(this.env),this.selectedShape=null,this.hoveredShape=null,this._initMouseEvents()}resize(){var ot;const ut=this.viewer.viewport.getFlip(),dt=this.viewer.viewport.pixelFromPoint(new wt.default.Point(0,0),!0);ut&&(dt.x=this.viewer.viewport._containerInnerSize.x-dt.x);const gt=this.currentScale(),Mt=ut?-gt:gt,zt=this.viewer.viewport.getRotation();this.g.setAttribute("transform",`translate(${dt.x}, ${dt.y}) scale(${Mt}, ${gt}) rotate(${zt})`),this._refreshNonScalingAnnotations(),this.scaleFormatterElements(),this.selectedShape&&(this.selectedShape.element?(this.scaleTool(this.selectedShape),this.emit("viewportChange",this.selectedShape.element)):this.emit("viewportChange",this.selectedShape)),(ot=this.tools)!=null&&ot.current.isDrawing&&this.scaleTool(this.tools.current)}}class ww extends mb{constructor(ot){super(ot),lt(this,"onDrawingComplete",ut=>{this.selectShape(ut),this.emit("createSelection",ut.annotation),this.mouseTracker.setTracking(!1)}),this._initDrawingTools()}}const fv=et=>{const ot=et.viewport.viewportToImageRectangle(et.viewport.getBounds(!0)),ut=et.viewport.getContainerSize().x,dt=et.viewport.getZoom(!0)*ut/et.world.getContentFactor();return{extent:ot,scale:dt}},xw=et=>{var ot;const ut=et.targets[0];return ut?Array.isArray(ut.selector)?ut.selector[0].type:(ot=ut.selector)==null?void 0:ot.type:null},yb=(et,ot)=>{const{extent:ut,scale:dt}=fv(et),{selector:gt}=ot,Mt=Kf.create({target:ot});if(gt.type==="SvgSelector"){const zt=og(Mt),Jt=zt.nodeName.toLowerCase();let ue=null;if(Jt==="polygon")ue=Ew(zt,ut,dt);else if(Jt==="circle")ue=Mw(zt,ut,dt);else if(Jt==="ellipse")ue=Tw(zt,ut,dt);else if(Jt==="path")ue=Sw(zt,ut,dt);else throw`Unsupported SVG shape type: ${Jt}`;let he=ue.outerHTML||new XMLSerializer().serializeToString(ue);return he=he.replace(` xmlns="${wo}"`,""),st(nt({},ot),{selector:{type:"SvgSelector",value:`${he}`}})}else if(gt.type==="FragmentSelector"){const{x:zt,y:Jt,w:ue,h:he}=tp(Mt),le=ut.x+zt/dt,Ue=ut.y+Jt/dt,tn=ue/dt,ln=he/dt;return O0(le,Ue,tn,ln)}else throw`Unsupported selector type: ${gt.type}`},Ew=(et,ot,ut)=>{const dt=Array.from(et.points).map(gt=>{const Mt=ot.x+gt.x/ut,zt=ot.y+gt.y/ut;return Mt+","+zt}).join(" ");return et.setAttribute("points",dt),et},Mw=(et,ot,ut)=>{const dt=parseFloat(et.getAttribute("cx")),gt=parseFloat(et.getAttribute("cy")),Mt=parseFloat(et.getAttribute("r"));return et.setAttribute("cx",ot.x+dt/ut),et.setAttribute("cy",ot.y+gt/ut),et.setAttribute("r",Mt/ut),et},Tw=(et,ot,ut)=>{const dt=parseFloat(et.getAttribute("cx")),gt=parseFloat(et.getAttribute("cy")),Mt=parseFloat(et.getAttribute("rx")),zt=parseFloat(et.getAttribute("ry"));return et.setAttribute("cx",ot.x+dt/ut),et.setAttribute("cy",ot.y+gt/ut),et.setAttribute("rx",Mt/ut),et.setAttribute("ry",zt/ut),et},Sw=(et,ot,ut)=>{const dt=et.getAttribute("d").split(/(?=M|m|L|l|H|h|V|v|Z|z)/g).map(gt=>gt.trim()).map(gt=>{const Mt=gt.substring(0,1);if(Mt.toLowerCase()==="z")return Mt;{const zt=gt.substring(1).split(" ").map(le=>parseFloat(le.trim())),Jt=Mt===Mt.toUpperCase(),ue=Jt?ot.x+zt[0]/ut:zt[0]/ut,he=Jt?ot.y+zt[1]/ut:zt[1]/ut;return Mt+" "+ue+" "+he}}).join(" ");return et.setAttribute("d",dt),et},vb=(et,ot)=>{const{extent:ut,scale:dt}=fv(et),gt=ot.selector("FragmentSelector");if(ot.selector("SvgSelector")){const Mt=og(ot),zt=Mt.nodeName.toLowerCase();let Jt=null;if(zt==="polygon")Jt=Cw(Mt,ut,dt);else if(zt==="circle")Jt=kw(Mt,ut,dt);else if(zt==="ellipse")Jt=Aw(Mt,ut,dt);else if(zt==="path")Jt=Nw(Mt,ut,dt);else throw`Unsupported SVG shape type: ${zt}`;let ue=Jt.outerHTML||new XMLSerializer().serializeToString(Jt);ue=ue.replace(` xmlns="${wo}"`,"");const he={selector:{type:"SvgSelector",value:`${ue}`}};return ot.clone({target:he})}else if(gt){const{x:Mt,y:zt,w:Jt,h:ue}=tp(ot),he=(Mt-ut.x)*dt,le=(zt-ut.y)*dt,Ue=O0(he,le,Jt*dt,ue*dt);return ot.clone({target:Ue})}},Cw=(et,ot,ut)=>{const dt=Array.from(et.points).map(gt=>{const Mt=ut*(gt.x-ot.x),zt=ut*(gt.y-ot.y);return Mt+","+zt}).join(" ");return et.setAttribute("points",dt),et},kw=(et,ot,ut)=>{const dt=et.getAttribute("cx"),gt=et.getAttribute("cy"),Mt=et.getAttribute("r");return et.setAttribute("cx",ut*(dt-ot.x)),et.setAttribute("cy",ut*(gt-ot.y)),et.setAttribute("r",Mt*ut),et},Aw=(et,ot,ut)=>{const dt=et.getAttribute("cx"),gt=et.getAttribute("cy"),Mt=et.getAttribute("rx"),zt=et.getAttribute("ry");return et.setAttribute("cx",ut*(dt-ot.x)),et.setAttribute("cy",ut*(gt-ot.y)),et.setAttribute("rx",Mt*ut),et.setAttribute("ry",zt*ut),et},Nw=(et,ot,ut)=>{const dt=et.getAttribute("d").split(/(?=M|m|L|l|H|h|V|v|Z|z)/g).map(gt=>gt.trim()).map(gt=>{const Mt=gt.substring(0,1);if(Mt.toLowerCase()==="z")return Mt;{const zt=gt.substring(1).split(" ").filter(le=>le).map(le=>parseFloat(le.trim())),Jt=Mt===Mt.toUpperCase(),ue=Jt?ut*(zt[0]-ot.x):ut*zt[0],he=Jt?ut*(zt[1]-ot.y):ut*zt[1];return Mt+" "+ue+" "+he}}).join(" ");return et.setAttribute("d",dt),et},bb=(et,ot)=>{const{extent:ut,scale:dt}=fv(et),gt=xw(ot.annotation);if(gt==="FragmentSelector")Dw(ot,ut,dt);else if(gt==="SvgSelector")Iw(ot,ut,dt);else throw`Unsupported selector type type: ${gt}`},Dw=(et,ot,ut)=>{const{x:dt,y:gt,w:Mt,h:zt}=tp(et.annotation),Jt=et.querySelector(".a9s-outer"),ue=et.querySelector(".a9s-inner"),he=ut*(dt-ot.x),le=ut*(gt-ot.y);Mt===0&&zt===0?[Jt,ue].forEach(Ue=>{Ue.setAttribute("cx",he),Ue.setAttribute("cy",le)}):[Jt,ue].forEach(Ue=>{Ue.setAttribute("x",he),Ue.setAttribute("y",le),Ue.setAttribute("width",Mt*ut),Ue.setAttribute("height",zt*ut)})},Iw=(et,ot,ut)=>{const dt=og(et.annotation),gt=dt.nodeName.toLowerCase();if(gt==="polygon")Lw(et,dt,ot,ut);else if(gt==="circle")Ow(et,dt,ot,ut);else if(gt==="ellipse")Pw(et,dt,ot,ut);else if(gt==="path")zw(et,dt,ot,ut);else throw`Unsupported SVG shape type: ${gt}`},Lw=(et,ot,ut,dt)=>{const gt=Array.from(ot.points).map(Mt=>{const zt=dt*(Mt.x-ut.x),Jt=dt*(Mt.y-ut.y);return zt+","+Jt}).join(" ");et.querySelector(".a9s-outer").setAttribute("points",gt),et.querySelector(".a9s-inner").setAttribute("points",gt)},Ow=(et,ot,ut,dt)=>{const gt=dt*(ot.getAttribute("cx")-ut.x),Mt=dt*(ot.getAttribute("cy")-ut.y),zt=dt*ot.getAttribute("r"),Jt=et.querySelector(".a9s-outer");Jt.setAttribute("cx",gt),Jt.setAttribute("cy",Mt),Jt.setAttribute("r",zt);const ue=et.querySelector(".a9s-inner");ue.setAttribute("cx",gt),ue.setAttribute("cy",Mt),ue.setAttribute("r",zt)},Pw=(et,ot,ut,dt)=>{const gt=dt*(ot.getAttribute("cx")-ut.x),Mt=dt*(ot.getAttribute("cy")-ut.y),zt=dt*ot.getAttribute("rx"),Jt=dt*ot.getAttribute("ry"),ue=et.querySelector(".a9s-outer");ue.setAttribute("cx",gt),ue.setAttribute("cy",Mt),ue.setAttribute("rx",zt),ue.setAttribute("ry",Jt);const he=et.querySelector(".a9s-inner");he.setAttribute("cx",gt),he.setAttribute("cy",Mt),he.setAttribute("rx",zt),he.setAttribute("ry",Jt)},zw=(et,ot,ut,dt)=>{const gt=ot.getAttribute("d").split(/(?=M|m|L|l|H|h|V|v|Z|z)/g).map(Mt=>Mt.trim()).map(Mt=>{const zt=Mt.substring(0,1);if(zt.toLowerCase()==="z")return zt;{const Jt=Mt.substring(1).split(" ").filter(Ue=>Ue).map(Ue=>parseFloat(Ue.trim())),ue=zt===zt.toUpperCase(),he=ue?dt*(Jt[0]-ut.x):dt*Jt[0],le=ue?dt*(Jt[1]-ut.y):dt*Jt[1];return zt+" "+he+" "+le}}).join(" ");et.querySelector(".a9s-inner").setAttribute("d",gt),et.querySelector(".a9s-outer").setAttribute("d",gt)},Rw=iv();class jw extends mb{constructor(ot){super(ot),lt(this,"onDrawingComplete",ut=>{const dt=ut.annotation.clone({target:yb(this.viewer,ut.annotation.target)});ut.annotation=dt,this.selectShape(ut),this.emit("createSelection",ut.annotation),this.mouseTracker.setTracking(!1)}),lt(this,"addAnnotation",(ut,dt)=>{const gt=dt||this.g,Mt=uv(ut,this.env.image);return Jd(Mt,"a9s-annotation"),Mt.setAttribute("data-id",ut.id),Mt.annotation=ut,bb(this.viewer,Mt),gt.appendChild(Mt),O1(Mt,ut,this.formatter),Mt}),lt(this,"_getShapeAt",ut=>{const dt=ue=>{if(Rw){const he=this.svg.getBoundingClientRect(),le=ue.clientX-he.x,Ue=ue.clientY-he.y;return new wt.default.Point(le,Ue)}else return new wt.default.Point(ue.offsetX,ue.offsetY)},gt=this.viewer.viewport.viewerElementToViewportCoordinates(dt(ut)),{x:Mt,y:zt}=this.viewer.viewport.viewportToImageCoordinates(gt.x,gt.y),Jt=this.store.getAnnotationAt(Mt,zt,this.currentScale());if(Jt)return this.findShape(Jt)}),lt(this,"selectShape",(ut,dt)=>{var gt;if(!dt&&!ut.annotation.isSelection&&this.emit("clickAnnotation",ut.annotation,ut),((gt=this.selectedShape)==null?void 0:gt.annotation)===ut.annotation)return;this.selectedShape&&this.selectedShape.annotation!==ut.annotation&&this.deselect(!0);const{annotation:Mt}=ut;if(this.readOnly||Mt.readOnly||this.headless)this.selectedShape=ut,dt||this.emit("select",{annotation:Mt,element:ut,skipEvent:dt});else{setTimeout(()=>{ut.parentNode.removeChild(ut),dt||this.emit("select",{annotation:Mt,element:this.selectedShape.element})},1);const zt=this.tools.forAnnotation(Mt);this.selectedShape=zt.createEditableShape(Mt),this.selectedShape.element.annotation=Mt;const Jt=vb(this.viewer,Mt);this.selectedShape.updateState(Jt);const ue=new wt.default.MouseTracker({element:this.svg}).setTracking(!0);this.selectedShape.element.addEventListener("mouseenter",he=>ue.setTracking(!0)),this.selectedShape.element.addEventListener("mouseleave",he=>ue.setTracking(!1)),this.selectedShape.mouseTracker=ue,this.selectedShape.on("update",he=>{const le=yb(this.viewer,he);this.selectedShape.element.annotation=this.selectedShape.annotation.clone({target:le}),this.emit("updateTarget",this.selectedShape.element,le)})}}),this._initDrawingTools(!0)}resize(){const ot=this.viewer.viewport.getBounds(!0),{x:ut,y:dt,width:gt,height:Mt}=this.viewer.viewport.viewportToImageRectangle(ot),zt={minX:ut,minY:dt,maxX:ut+gt,maxY:dt+Mt},Jt=new Set(this.store.getAnnotationsIntersecting(zt).map(ue=>ue.id));if(Jt.size>0&&Array.from(this.g.querySelectorAll(".a9s-annotation:not(.selected)")).forEach(ue=>{Jt.has(ue.annotation.id)?(ue.removeAttribute("visibility"),bb(this.viewer,ue)):ue.hasAttribute("visibility")||ue.setAttribute("visibility","hidden")}),this.selectedShape)if(this.selectedShape.element){const ue=vb(this.viewer,this.selectedShape.element.annotation);this.selectedShape.updateState&&this.selectedShape.updateState(ue),this.emit("viewportChange",this.selectedShape.element)}else this.emit("viewportChange",this.selectedShape)}}class Bw extends Pt{constructor(ot){super(ot),lt(this,"clearState",ut=>this.setState({selectedAnnotation:null,selectedDOMElement:null,modifiedTarget:null,beforeHeadlessModify:null},ut)),lt(this,"forwardEvent",(ut,dt)=>{this.annotationLayer.on(ut,(gt,Mt)=>{this.props[dt](gt.clone(),Mt)})}),lt(this,"escapeKeyCancel",ut=>{if(ut.which===27){this.annotationLayer.stopDrawing();const{selectedAnnotation:dt}=this.state;dt&&(this.cancelSelected(),this.props.onCancelSelected(dt))}}),lt(this,"handleStartSelect",ut=>this.props.onSelectionStarted(ut)),lt(this,"handleSelect",(ut,dt)=>{this.state.editorDisabled?this.onHeadlessSelect(ut,dt):this.onNormalSelect(ut,dt)}),lt(this,"onNormalSelect",(ut,dt)=>{const{annotation:gt,element:Mt}=ut;if(gt){const zt=()=>{this.setState({selectedAnnotation:gt,selectedDOMElement:Mt,modifiedTarget:null},()=>{dt||(gt.isSelection?this.props.onSelectionCreated(gt.clone()):this.props.onAnnotationSelected(gt.clone(),Mt))})},{selectedAnnotation:Jt}=this.state;Jt&&!Jt.isEqual(gt)?this.clearState(()=>{this.props.onCancelSelected(Jt),zt()}):zt()}else{const{selectedAnnotation:zt}=this.state;zt?this.clearState(()=>this.props.onCancelSelected(zt)):this.clearState()}}),lt(this,"onHeadlessSelect",(ut,dt)=>{this.saveSelected().then(()=>{this.onNormalSelect(ut,dt)})}),lt(this,"handleUpdateTarget",(ut,dt)=>{this.setState({selectedDOMElement:ut,modifiedTarget:dt});const gt=JSON.parse(JSON.stringify(dt));this.props.onSelectionTargetChanged(gt)}),lt(this,"handleViewportChange",ut=>this.setState({selectedDOMElement:ut})),lt(this,"overrideAnnotationId",ut=>dt=>{const{id:gt}=ut;this.state.selectedAnnotation?this.setState({selectedAnnotation:null,selectedDOMElement:null,modifiedTarget:null},()=>{this.annotationLayer.overrideId(gt,dt)}):this.annotationLayer.overrideId(gt,dt)}),lt(this,"onCreateOrUpdateAnnotation",(ut,dt)=>(gt,Mt)=>{let zt=gt.isSelection?gt.toAnnotation():gt;zt=this.state.modifiedTarget?zt.clone({target:this.state.modifiedTarget}):zt.clone(),this.clearState(()=>{this.annotationLayer.deselect(),this.annotationLayer.addOrUpdateAnnotation(zt,Mt),Mt?this.props[ut](zt,Mt.clone()):this.props[ut](zt,this.overrideAnnotationId(gt)),dt&&dt()})}),lt(this,"onDeleteAnnotation",ut=>{this.clearState(),this.annotationLayer.removeAnnotation(ut),this.props.onAnnotationDeleted(ut)}),lt(this,"onCancelAnnotation",(ut,dt)=>{this.state.editorDisabled||this.annotationLayer.deselect(),this.props.onCancelSelected(ut),this.clearState(dt)}),lt(this,"addAnnotation",ut=>{var dt;ut.id===((dt=this.state.selectedAnnotation)==null?void 0:dt.id)&&(this.annotationLayer.deselect(),this.clearState()),this.annotationLayer.addOrUpdateAnnotation(ut.clone())}),lt(this,"addDrawingTool",ut=>this.annotationLayer.addDrawingTool(ut)),lt(this,"cancelSelected",()=>new Promise(ut=>{this.annotationLayer.deselect(),this.state.selectedAnnotation?this.clearState(ut):ut()})),lt(this,"fitBounds",(ut,dt)=>this.annotationLayer.fitBounds(ut,dt)),lt(this,"getAnnotationById",ut=>{var dt;return(dt=this.annotationLayer.findShape(ut))==null?void 0:dt.annotation}),lt(this,"getAnnotations",()=>this.annotationLayer.getAnnotations().map(ut=>ut.clone())),lt(this,"getSelected",()=>{var ut;if(this.state.selectedAnnotation)return this.state.editorDisabled?this.state.selectedAnnotation:(ut=this._editor.current)==null?void 0:ut.getCurrentAnnotation()}),lt(this,"getSelectedImageSnippet",()=>this.annotationLayer.getSelectedImageSnippet()),lt(this,"listDrawingTools",()=>this.annotationLayer.listDrawingTools()),lt(this,"panTo",(ut,dt)=>this.annotationLayer.panTo(ut,dt)),lt(this,"removeAnnotation",ut=>this.annotationLayer.removeAnnotation(ut)),lt(this,"removeDrawingTool",ut=>this.annotationLayer.removeDrawingTool(ut)),lt(this,"saveSelected",()=>new Promise(ut=>{const dt=this.state.selectedAnnotation;if(dt)if(dt.isSelection)dt.bodies.length>0||this.props.config.allowEmpty?this.onCreateOrUpdateAnnotation("onAnnotationCreated",ut)(dt,dt):(this.annotationLayer.deselect(),ut());else{const{beforeHeadlessModify:gt,modifiedTarget:Mt}=this.state;gt?this.onCreateOrUpdateAnnotation("onAnnotationUpdated",ut)(dt,gt):Mt?this.onCreateOrUpdateAnnotation("onAnnotationUpdated",ut)(dt,dt):this.onCancelAnnotation(dt,ut)}else ut()})),lt(this,"selectAnnotation",ut=>{const dt=this.annotationLayer.selectAnnotation(ut,!0);if(dt)return this.handleSelect(dt,!0),dt.annotation.clone();this.clearState()}),lt(this,"setAnnotations",ut=>this.annotationLayer.init(ut.map(dt=>dt.clone()))),lt(this,"setDrawingEnabled",ut=>this.annotationLayer.setDrawingEnabled(ut)),lt(this,"setDrawingTool",ut=>this.annotationLayer.setDrawingTool(ut)),lt(this,"setVisible",ut=>{this.annotationLayer.setVisible(ut),ut||this.clearState()}),lt(this,"updateSelected",(ut,dt)=>new Promise(gt=>{this.state.selectedAnnotation&&(dt?this.state.selectedAnnotation.isSelection?this.onCreateOrUpdateAnnotation("onAnnotationCreated",gt)(ut):this.onCreateOrUpdateAnnotation("onAnnotationUpdated",gt)(ut,this.state.selectedAnnotation):this.setState({selectedAnnotation:ut,beforeHeadlessModify:this.state.beforeHeadlessModify||this.state.selectedAnnotation},gt))})),this.state={selectedAnnotation:null,selectedDOMElement:null,modifiedTarget:null,readOnly:ot.config.readOnly,editorDisabled:ot.config.disableEditor,widgets:ot.config.widgets,beforeHeadlessModify:null},this._editor=ur.createRef()}componentDidMount(){this.annotationLayer=this.props.config.gigapixelMode?new jw(this.props):new ww(this.props),this.annotationLayer.on("startSelection",this.handleStartSelect),this.annotationLayer.on("select",this.handleSelect),this.annotationLayer.on("updateTarget",this.handleUpdateTarget),this.annotationLayer.on("viewportChange",this.handleViewportChange),this.forwardEvent("mouseEnterAnnotation","onMouseEnterAnnotation"),this.forwardEvent("mouseLeaveAnnotation","onMouseLeaveAnnotation"),this.forwardEvent("clickAnnotation","onClickAnnotation"),document.addEventListener("keyup",this.escapeKeyCancel)}componentWillUnmount(){this.annotationLayer.destroy(),document.removeEventListener("keyup",this.escapeKeyCancel)}get disableEditor(){return this.state.editorDisabled}set disableEditor(ot){this.setState({editorDisabled:ot},()=>{ot?document.addEventListener("keyup",this.escapeKeyCancel):document.removeEventListener("keyup",this.escapeKeyCancel)})}get disableSelect(){return this.annotationLayer.disableSelect}set disableSelect(ot){this.annotationLayer.disableSelect=ot}get readOnly(){return this.state.readOnly}set readOnly(ot){this.annotationLayer.readOnly=ot,this.setState({readOnly:ot})}get widgets(){return this.state.widgets}set widgets(ot){this.setState({widgets:ot})}render(){var ot;const ut=this.state.selectedAnnotation&&!this.state.editorDisabled,dt=this.state.readOnly||((ot=this.state.selectedAnnotation)==null?void 0:ot.readOnly);return ut&&Dt(I_,{ref:this._editor,detachable:!0,wrapperEl:this.props.wrapperEl,annotation:this.state.selectedAnnotation,modifiedTarget:this.state.modifiedTarget,selectedElement:this.state.selectedDOMElement,readOnly:dt,allowEmpty:this.props.config.allowEmpty,widgets:this.state.widgets,env:this.props.env,onAnnotationCreated:this.onCreateOrUpdateAnnotation("onAnnotationCreated"),onAnnotationUpdated:this.onCreateOrUpdateAnnotation("onAnnotationUpdated"),onAnnotationDeleted:this.onDeleteAnnotation,onCancel:this.onCancelAnnotation})}}class $w{constructor(ot,ut){lt(this,"handleAnnotationCreated",(gt,Mt)=>this._emitter.emit("createAnnotation",gt.underlying,Mt)),lt(this,"handleAnnotationDeleted",gt=>this._emitter.emit("deleteAnnotation",gt.underlying)),lt(this,"handleAnnotationSelected",(gt,Mt)=>this._emitter.emit("selectAnnotation",gt.underlying,Mt)),lt(this,"handleAnnotationUpdated",(gt,Mt)=>this._emitter.emit("updateAnnotation",gt.underlying,Mt.underlying)),lt(this,"handleCancelSelected",gt=>this._emitter.emit("cancelSelected",gt.underlying)),lt(this,"handleClickAnnotation",(gt,Mt)=>this._emitter.emit("clickAnnotation",gt.underlying,Mt)),lt(this,"handleSelectionCreated",gt=>this._emitter.emit("createSelection",gt.underlying)),lt(this,"handleSelectionStarted",gt=>this._emitter.emit("startSelection",gt)),lt(this,"handleSelectionTargetChanged",gt=>this._emitter.emit("changeSelectionTarget",gt)),lt(this,"handleMouseEnterAnnotation",(gt,Mt)=>this._emitter.emit("mouseEnterAnnotation",gt.underlying,Mt)),lt(this,"handleMouseLeaveAnnotation",(gt,Mt)=>this._emitter.emit("mouseLeaveAnnotation",gt.underlying,Mt)),lt(this,"_wrap",gt=>(gt==null?void 0:gt.type)==="Annotation"?new Kf(gt):gt),lt(this,"addAnnotation",gt=>this._app.current.addAnnotation(new Kf(gt))),lt(this,"addDrawingTool",gt=>this._app.current.addDrawingTool(gt)),lt(this,"cancelSelected",()=>this._app.current.cancelSelected()),lt(this,"clearAnnotations",()=>this.setAnnotations([])),lt(this,"clearAuthInfo",()=>this._env.user=null),lt(this,"destroy",()=>ur.unmountComponentAtNode(this.appContainerEl)),lt(this,"fitBounds",(gt,Mt)=>this._app.current.fitBounds(this._wrap(gt),Mt)),lt(this,"getAnnotationById",gt=>{const Mt=this._app.current.getAnnotationById(gt);return Mt==null?void 0:Mt.underlying}),lt(this,"getAnnotations",()=>this._app.current.getAnnotations().map(gt=>gt.underlying)),lt(this,"getSelected",()=>{const gt=this._app.current.getSelected();return gt==null?void 0:gt.underlying}),lt(this,"getSelectedImageSnippet",()=>this._app.current.getSelectedImageSnippet()),lt(this,"listDrawingTools",()=>this._app.current.listDrawingTools()),lt(this,"loadAnnotations",gt=>fetch(gt).then(Mt=>Mt.json()).then(Mt=>(this.setAnnotations(Mt),Mt))),lt(this,"off",(gt,Mt)=>this._emitter.off(gt,Mt)),lt(this,"on",(gt,Mt)=>this._emitter.on(gt,Mt)),lt(this,"once",(gt,Mt)=>this._emitter.once(gt,Mt)),lt(this,"panTo",(gt,Mt)=>this._app.current.panTo(this._wrap(gt),Mt)),lt(this,"removeAnnotation",gt=>this._app.current.removeAnnotation(this._wrap(gt))),lt(this,"removeDrawingTool",gt=>this._app.current.removeDrawingTool(gt)),lt(this,"saveSelected",()=>this._app.current.saveSelected()),lt(this,"selectAnnotation",gt=>{const Mt=this._app.current.selectAnnotation(this._wrap(gt));return Mt==null?void 0:Mt.underlying}),lt(this,"setAnnotations",gt=>{const Mt=(gt||[]).map(zt=>new Kf(zt));this._app.current.setAnnotations(Mt)}),lt(this,"setAuthInfo",gt=>this._env.user=gt),lt(this,"setDrawingEnabled",gt=>this._app.current.setDrawingEnabled(gt)),lt(this,"setDrawingTool",gt=>this._app.current.setDrawingTool(gt)),lt(this,"setServerTime",gt=>this._env.setServerTime(gt)),lt(this,"setVisible",gt=>this._app.current.setVisible(gt)),lt(this,"updateSelected",(gt,Mt)=>{let zt=null;gt.type==="Annotation"?zt=new Kf(gt):gt.type==="Selection"&&(zt=new L0(gt.target,gt.body)),zt&&this._app.current.updateSelected(zt,Mt)});const dt=ut||{};this._app=ur.createRef(),this._emitter=new Es,this._env=B_(),this._element=ot.element,window.getComputedStyle(this._element).getPropertyValue("position")==="static"&&(this._element.style.position="relative"),$_(dt.locale,dt.messages),this.appContainerEl=document.createElement("DIV"),this._element.appendChild(this.appContainerEl),ur.render(Dt(Bw,{ref:this._app,viewer:ot,wrapperEl:this._element,config:dt,env:this._env,onSelectionStarted:this.handleSelectionStarted,onSelectionCreated:this.handleSelectionCreated,onSelectionTargetChanged:this.handleSelectionTargetChanged,onAnnotationCreated:this.handleAnnotationCreated,onAnnotationSelected:this.handleAnnotationSelected,onAnnotationUpdated:this.handleAnnotationUpdated,onAnnotationDeleted:this.handleAnnotationDeleted,onCancelSelected:this.handleCancelSelected,onClickAnnotation:this.handleClickAnnotation,onMouseEnterAnnotation:this.handleMouseEnterAnnotation,onMouseLeaveAnnotation:this.handleMouseLeaveAnnotation}),this.appContainerEl)}get disableEditor(){return this._app.current.disableEditor}set disableEditor(ot){this._app.current.disableEditor=ot}get disableSelect(){return this._app.current.disableSelect}set disableSelect(ot){this._app.current.disableSelect=ot}get readOnly(){return this._app.current.readOnly}set readOnly(ot){this._app.current.readOnly=ot}get widgets(){return this._app.current.widgets}set widgets(ot){this._app.current.widgets=ot}}var Fw=(et,ot)=>new $w(et,ot);return Fw})})(openseadragonAnnotorious_min);var openseadragonAnnotorious_minExports=openseadragonAnnotorious_min.exports;const Annotorious=getDefaultExportFromCjs(openseadragonAnnotorious_minExports);class Annotator{constructor(O,z="",F=!0){this.ref="main",this.imageId="",this.sha="",this.visible=!1,this.ghAuthToken="",this.selected=null,this.osd=O,this.base=z;let[Y,W,...q]=this.base.split("/");this.acct=Y,this.repo=W,this.basePath=q.join("/"),this.annotorious=Annotorious(O,{readOnly:!F}),this.annotorious.on("createAnnotation",async X=>this.createAnnotation(X)),this.annotorious.on("updateAnnotation",async X=>this.updateAnnotation(X)),this.annotorious.on("deleteAnnotation",async X=>this.deleteAnnotation(X)),this.annotorious.on("selectAnnotation",async X=>this.onSelect(X)),this.setVisible(!0),this.ghAuthToken=localStorage.getItem("gh-auth-token")||"",this.ghAuthToken&&(this.ghClient=new GithubClient(this.ghAuthToken))}async loadAnnotations(O){this.imageId=O,this.setVisible(!1);let z=[],F=await this.ghClient.getFile(this.acct,this.repo,`${this.basePath}/${this.imageId}.json`,this.ref);return F.content&&(z=JSON.parse(F.content),this.sha=F.sha),console.log(`Adding ${z.length} annotations`),this.annotorious.setAnnotations(z),this.annotorious.readOnly&&z.forEach(Y=>{let W=this.annoEl(Y.id);W&&(W.addEventListener("mouseenter",()=>this.select(Y.id)),W.addEventListener("mouseleave",()=>this.deselect()),W.addEventListener("click",()=>navigator.clipboard.writeText(Y.id)))}),z}setVisible(O){if(this.selected)this.deselect();else{this.visible=O;let z=this.osd.element.querySelector(".a9s-annotationlayer");z&&(z.style.visibility=this.visible?"visible":"hidden"),Array.from(this.osd.element.querySelectorAll(".a9s-annotation")).forEach(F=>F.style.visibility=this.visible?"visible":"hidden")}}toggleVisibility(O){O&&O.stopPropagation(),this.setVisible(!this.visible)}onSelect(O){this.selected=O.id,navigator.clipboard&&navigator.clipboard.writeText(this.selected)}annoEl(O){return this.osd.element.querySelector(`[data-id="${O}"]`)}select(O){var z;if(O!==((z=this.selected)==null?void 0:z.id)){if(this.deselect(),this.selected=this.annotorious.selectAnnotation(O),this.selected){let F=this.annoEl(O);F&&(F.style.visibility="visible");let Y=this.osd.element.querySelector(".a9s-annotation.selected");Y&&(Y.style.visibility="visible")}}else this.deselect()}deselect(){Array.from(this.osd.element.querySelectorAll(".a9s-annotation")).forEach(O=>O.style.visibility=this.visible?"visible":"hidden"),this.annotorious.selectAnnotation(),this.selected=void 0}async saveAnnotations(){let O=JSON.stringify(this.annotorious.getAnnotations(),null,2);await this.ghClient.putFile(this.acct,this.repo,`${this.basePath}/${this.imageId}.json`,O,this.ref,!1,this.sha)}async createAnnotation(O){O.id=sha256(O.id).slice(0,8),O.target.id=this.imageId,this.saveAnnotations(),navigator.clipboard&&navigator.clipboard.writeText(O.id)}async updateAnnotation(O){O.target.id=this.imageId,this.saveAnnotations(),navigator.clipboard&&navigator.clipboard.writeText(O.id)}async deleteAnnotation(O){this.saveAnnotations()}}var badge_styles_default=i$5` + ${component_styles_default} + + :host { + display: inline-flex; + } + + .badge { + display: inline-flex; + align-items: center; + justify-content: center; + font-size: max(12px, 0.75em); + font-weight: var(--sl-font-weight-semibold); + letter-spacing: var(--sl-letter-spacing-normal); + line-height: 1; + border-radius: var(--sl-border-radius-small); + border: solid 1px var(--sl-color-neutral-0); + white-space: nowrap; + padding: 0.35em 0.6em; + user-select: none; + -webkit-user-select: none; + cursor: inherit; + } + + /* Variant modifiers */ + .badge--primary { + background-color: var(--sl-color-primary-600); + color: var(--sl-color-neutral-0); + } + + .badge--success { + background-color: var(--sl-color-success-600); + color: var(--sl-color-neutral-0); + } + + .badge--neutral { + background-color: var(--sl-color-neutral-600); + color: var(--sl-color-neutral-0); + } + + .badge--warning { + background-color: var(--sl-color-warning-600); + color: var(--sl-color-neutral-0); + } + + .badge--danger { + background-color: var(--sl-color-danger-600); + color: var(--sl-color-neutral-0); + } + + /* Pill modifier */ + .badge--pill { + border-radius: var(--sl-border-radius-pill); + } + + /* Pulse modifier */ + .badge--pulse { + animation: pulse 1.5s infinite; + } + + .badge--pulse.badge--primary { + --pulse-color: var(--sl-color-primary-600); + } + + .badge--pulse.badge--success { + --pulse-color: var(--sl-color-success-600); + } + + .badge--pulse.badge--neutral { + --pulse-color: var(--sl-color-neutral-600); + } + + .badge--pulse.badge--warning { + --pulse-color: var(--sl-color-warning-600); + } + + .badge--pulse.badge--danger { + --pulse-color: var(--sl-color-danger-600); + } + + @keyframes pulse { + 0% { + box-shadow: 0 0 0 0 var(--pulse-color); + } + 70% { + box-shadow: 0 0 0 0.5rem transparent; + } + 100% { + box-shadow: 0 0 0 0 transparent; + } + } +`,SlBadge=class extends ShoelaceElement{constructor(){super(...arguments),this.variant="primary",this.pill=!1,this.pulse=!1}render(){return x$1` + + + + `}};SlBadge.styles=badge_styles_default;__decorateClass([n$3({reflect:!0})],SlBadge.prototype,"variant",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlBadge.prototype,"pill",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlBadge.prototype,"pulse",2);SlBadge.define("sl-badge");var spinner_styles_default=i$5` + ${component_styles_default} + + :host { + --track-width: 2px; + --track-color: rgb(128 128 128 / 25%); + --indicator-color: var(--sl-color-primary-600); + --speed: 2s; + + display: inline-flex; + width: 1em; + height: 1em; + } + + .spinner { + flex: 1 1 auto; + height: 100%; + width: 100%; + } + + .spinner__track, + .spinner__indicator { + fill: none; + stroke-width: var(--track-width); + r: calc(0.5em - var(--track-width) / 2); + cx: 0.5em; + cy: 0.5em; + transform-origin: 50% 50%; + } + + .spinner__track { + stroke: var(--track-color); + transform-origin: 0% 0%; + } + + .spinner__indicator { + stroke: var(--indicator-color); + stroke-linecap: round; + stroke-dasharray: 150% 75%; + animation: spin var(--speed) linear infinite; + } + + @keyframes spin { + 0% { + transform: rotate(0deg); + stroke-dasharray: 0.01em, 2.75em; + } + + 50% { + transform: rotate(450deg); + stroke-dasharray: 1.375em, 1.375em; + } + + 100% { + transform: rotate(1080deg); + stroke-dasharray: 0.01em, 2.75em; + } + } +`,SlSpinner=class extends ShoelaceElement{constructor(){super(...arguments),this.localize=new LocalizeController(this)}render(){return x$1` + + + + + `}};SlSpinner.styles=spinner_styles_default;var button_styles_default=i$5` + ${component_styles_default} + + :host { + display: inline-block; + position: relative; + width: auto; + cursor: pointer; + } + + .button { + display: inline-flex; + align-items: stretch; + justify-content: center; + width: 100%; + border-style: solid; + border-width: var(--sl-input-border-width); + font-family: var(--sl-input-font-family); + font-weight: var(--sl-font-weight-semibold); + text-decoration: none; + user-select: none; + -webkit-user-select: none; + white-space: nowrap; + vertical-align: middle; + padding: 0; + transition: + var(--sl-transition-x-fast) background-color, + var(--sl-transition-x-fast) color, + var(--sl-transition-x-fast) border, + var(--sl-transition-x-fast) box-shadow; + cursor: inherit; + } + + .button::-moz-focus-inner { + border: 0; + } + + .button:focus { + outline: none; + } + + .button:focus-visible { + outline: var(--sl-focus-ring); + outline-offset: var(--sl-focus-ring-offset); + } + + .button--disabled { + opacity: 0.5; + cursor: not-allowed; + } + + /* When disabled, prevent mouse events from bubbling up from children */ + .button--disabled * { + pointer-events: none; + } + + .button__prefix, + .button__suffix { + flex: 0 0 auto; + display: flex; + align-items: center; + pointer-events: none; + } + + .button__label { + display: inline-block; + } + + .button__label::slotted(sl-icon) { + vertical-align: -2px; + } + + /* + * Standard buttons + */ + + /* Default */ + .button--standard.button--default { + background-color: var(--sl-color-neutral-0); + border-color: var(--sl-color-neutral-300); + color: var(--sl-color-neutral-700); + } + + .button--standard.button--default:hover:not(.button--disabled) { + background-color: var(--sl-color-primary-50); + border-color: var(--sl-color-primary-300); + color: var(--sl-color-primary-700); + } + + .button--standard.button--default:active:not(.button--disabled) { + background-color: var(--sl-color-primary-100); + border-color: var(--sl-color-primary-400); + color: var(--sl-color-primary-700); + } + + /* Primary */ + .button--standard.button--primary { + background-color: var(--sl-color-primary-600); + border-color: var(--sl-color-primary-600); + color: var(--sl-color-neutral-0); + } + + .button--standard.button--primary:hover:not(.button--disabled) { + background-color: var(--sl-color-primary-500); + border-color: var(--sl-color-primary-500); + color: var(--sl-color-neutral-0); + } + + .button--standard.button--primary:active:not(.button--disabled) { + background-color: var(--sl-color-primary-600); + border-color: var(--sl-color-primary-600); + color: var(--sl-color-neutral-0); + } + + /* Success */ + .button--standard.button--success { + background-color: var(--sl-color-success-600); + border-color: var(--sl-color-success-600); + color: var(--sl-color-neutral-0); + } + + .button--standard.button--success:hover:not(.button--disabled) { + background-color: var(--sl-color-success-500); + border-color: var(--sl-color-success-500); + color: var(--sl-color-neutral-0); + } + + .button--standard.button--success:active:not(.button--disabled) { + background-color: var(--sl-color-success-600); + border-color: var(--sl-color-success-600); + color: var(--sl-color-neutral-0); + } + + /* Neutral */ + .button--standard.button--neutral { + background-color: var(--sl-color-neutral-600); + border-color: var(--sl-color-neutral-600); + color: var(--sl-color-neutral-0); + } + + .button--standard.button--neutral:hover:not(.button--disabled) { + background-color: var(--sl-color-neutral-500); + border-color: var(--sl-color-neutral-500); + color: var(--sl-color-neutral-0); + } + + .button--standard.button--neutral:active:not(.button--disabled) { + background-color: var(--sl-color-neutral-600); + border-color: var(--sl-color-neutral-600); + color: var(--sl-color-neutral-0); + } + + /* Warning */ + .button--standard.button--warning { + background-color: var(--sl-color-warning-600); + border-color: var(--sl-color-warning-600); + color: var(--sl-color-neutral-0); + } + .button--standard.button--warning:hover:not(.button--disabled) { + background-color: var(--sl-color-warning-500); + border-color: var(--sl-color-warning-500); + color: var(--sl-color-neutral-0); + } + + .button--standard.button--warning:active:not(.button--disabled) { + background-color: var(--sl-color-warning-600); + border-color: var(--sl-color-warning-600); + color: var(--sl-color-neutral-0); + } + + /* Danger */ + .button--standard.button--danger { + background-color: var(--sl-color-danger-600); + border-color: var(--sl-color-danger-600); + color: var(--sl-color-neutral-0); + } + + .button--standard.button--danger:hover:not(.button--disabled) { + background-color: var(--sl-color-danger-500); + border-color: var(--sl-color-danger-500); + color: var(--sl-color-neutral-0); + } + + .button--standard.button--danger:active:not(.button--disabled) { + background-color: var(--sl-color-danger-600); + border-color: var(--sl-color-danger-600); + color: var(--sl-color-neutral-0); + } + + /* + * Outline buttons + */ + + .button--outline { + background: none; + border: solid 1px; + } + + /* Default */ + .button--outline.button--default { + border-color: var(--sl-color-neutral-300); + color: var(--sl-color-neutral-700); + } + + .button--outline.button--default:hover:not(.button--disabled), + .button--outline.button--default.button--checked:not(.button--disabled) { + border-color: var(--sl-color-primary-600); + background-color: var(--sl-color-primary-600); + color: var(--sl-color-neutral-0); + } + + .button--outline.button--default:active:not(.button--disabled) { + border-color: var(--sl-color-primary-700); + background-color: var(--sl-color-primary-700); + color: var(--sl-color-neutral-0); + } + + /* Primary */ + .button--outline.button--primary { + border-color: var(--sl-color-primary-600); + color: var(--sl-color-primary-600); + } + + .button--outline.button--primary:hover:not(.button--disabled), + .button--outline.button--primary.button--checked:not(.button--disabled) { + background-color: var(--sl-color-primary-600); + color: var(--sl-color-neutral-0); + } + + .button--outline.button--primary:active:not(.button--disabled) { + border-color: var(--sl-color-primary-700); + background-color: var(--sl-color-primary-700); + color: var(--sl-color-neutral-0); + } + + /* Success */ + .button--outline.button--success { + border-color: var(--sl-color-success-600); + color: var(--sl-color-success-600); + } + + .button--outline.button--success:hover:not(.button--disabled), + .button--outline.button--success.button--checked:not(.button--disabled) { + background-color: var(--sl-color-success-600); + color: var(--sl-color-neutral-0); + } + + .button--outline.button--success:active:not(.button--disabled) { + border-color: var(--sl-color-success-700); + background-color: var(--sl-color-success-700); + color: var(--sl-color-neutral-0); + } + + /* Neutral */ + .button--outline.button--neutral { + border-color: var(--sl-color-neutral-600); + color: var(--sl-color-neutral-600); + } + + .button--outline.button--neutral:hover:not(.button--disabled), + .button--outline.button--neutral.button--checked:not(.button--disabled) { + background-color: var(--sl-color-neutral-600); + color: var(--sl-color-neutral-0); + } + + .button--outline.button--neutral:active:not(.button--disabled) { + border-color: var(--sl-color-neutral-700); + background-color: var(--sl-color-neutral-700); + color: var(--sl-color-neutral-0); + } + + /* Warning */ + .button--outline.button--warning { + border-color: var(--sl-color-warning-600); + color: var(--sl-color-warning-600); + } + + .button--outline.button--warning:hover:not(.button--disabled), + .button--outline.button--warning.button--checked:not(.button--disabled) { + background-color: var(--sl-color-warning-600); + color: var(--sl-color-neutral-0); + } + + .button--outline.button--warning:active:not(.button--disabled) { + border-color: var(--sl-color-warning-700); + background-color: var(--sl-color-warning-700); + color: var(--sl-color-neutral-0); + } + + /* Danger */ + .button--outline.button--danger { + border-color: var(--sl-color-danger-600); + color: var(--sl-color-danger-600); + } + + .button--outline.button--danger:hover:not(.button--disabled), + .button--outline.button--danger.button--checked:not(.button--disabled) { + background-color: var(--sl-color-danger-600); + color: var(--sl-color-neutral-0); + } + + .button--outline.button--danger:active:not(.button--disabled) { + border-color: var(--sl-color-danger-700); + background-color: var(--sl-color-danger-700); + color: var(--sl-color-neutral-0); + } + + @media (forced-colors: active) { + .button.button--outline.button--checked:not(.button--disabled) { + outline: solid 2px transparent; + } + } + + /* + * Text buttons + */ + + .button--text { + background-color: transparent; + border-color: transparent; + color: var(--sl-color-primary-600); + } + + .button--text:hover:not(.button--disabled) { + background-color: transparent; + border-color: transparent; + color: var(--sl-color-primary-500); + } + + .button--text:focus-visible:not(.button--disabled) { + background-color: transparent; + border-color: transparent; + color: var(--sl-color-primary-500); + } + + .button--text:active:not(.button--disabled) { + background-color: transparent; + border-color: transparent; + color: var(--sl-color-primary-700); + } + + /* + * Size modifiers + */ + + .button--small { + height: auto; + min-height: var(--sl-input-height-small); + font-size: var(--sl-button-font-size-small); + line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2); + border-radius: var(--sl-input-border-radius-small); + } + + .button--medium { + height: auto; + min-height: var(--sl-input-height-medium); + font-size: var(--sl-button-font-size-medium); + line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2); + border-radius: var(--sl-input-border-radius-medium); + } + + .button--large { + height: auto; + min-height: var(--sl-input-height-large); + font-size: var(--sl-button-font-size-large); + line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2); + border-radius: var(--sl-input-border-radius-large); + } + + /* + * Pill modifier + */ + + .button--pill.button--small { + border-radius: var(--sl-input-height-small); + } + + .button--pill.button--medium { + border-radius: var(--sl-input-height-medium); + } + + .button--pill.button--large { + border-radius: var(--sl-input-height-large); + } + + /* + * Circle modifier + */ + + .button--circle { + padding-left: 0; + padding-right: 0; + } + + .button--circle.button--small { + width: var(--sl-input-height-small); + border-radius: 50%; + } + + .button--circle.button--medium { + width: var(--sl-input-height-medium); + border-radius: 50%; + } + + .button--circle.button--large { + width: var(--sl-input-height-large); + border-radius: 50%; + } + + .button--circle .button__prefix, + .button--circle .button__suffix, + .button--circle .button__caret { + display: none; + } + + /* + * Caret modifier + */ + + .button--caret .button__suffix { + display: none; + } + + .button--caret .button__caret { + height: auto; + } + + /* + * Loading modifier + */ + + .button--loading { + position: relative; + cursor: wait; + } + + .button--loading .button__prefix, + .button--loading .button__label, + .button--loading .button__suffix, + .button--loading .button__caret { + visibility: hidden; + } + + .button--loading sl-spinner { + --indicator-color: currentColor; + position: absolute; + font-size: 1em; + height: 1em; + width: 1em; + top: calc(50% - 0.5em); + left: calc(50% - 0.5em); + } + + /* + * Badges + */ + + .button ::slotted(sl-badge) { + position: absolute; + top: 0; + right: 0; + translate: 50% -50%; + pointer-events: none; + } + + .button--rtl ::slotted(sl-badge) { + right: auto; + left: 0; + translate: -50% -50%; + } + + /* + * Button spacing + */ + + .button--has-label.button--small .button__label { + padding: 0 var(--sl-spacing-small); + } + + .button--has-label.button--medium .button__label { + padding: 0 var(--sl-spacing-medium); + } + + .button--has-label.button--large .button__label { + padding: 0 var(--sl-spacing-large); + } + + .button--has-prefix.button--small { + padding-inline-start: var(--sl-spacing-x-small); + } + + .button--has-prefix.button--small .button__label { + padding-inline-start: var(--sl-spacing-x-small); + } + + .button--has-prefix.button--medium { + padding-inline-start: var(--sl-spacing-small); + } + + .button--has-prefix.button--medium .button__label { + padding-inline-start: var(--sl-spacing-small); + } + + .button--has-prefix.button--large { + padding-inline-start: var(--sl-spacing-small); + } + + .button--has-prefix.button--large .button__label { + padding-inline-start: var(--sl-spacing-small); + } + + .button--has-suffix.button--small, + .button--caret.button--small { + padding-inline-end: var(--sl-spacing-x-small); + } + + .button--has-suffix.button--small .button__label, + .button--caret.button--small .button__label { + padding-inline-end: var(--sl-spacing-x-small); + } + + .button--has-suffix.button--medium, + .button--caret.button--medium { + padding-inline-end: var(--sl-spacing-small); + } + + .button--has-suffix.button--medium .button__label, + .button--caret.button--medium .button__label { + padding-inline-end: var(--sl-spacing-small); + } + + .button--has-suffix.button--large, + .button--caret.button--large { + padding-inline-end: var(--sl-spacing-small); + } + + .button--has-suffix.button--large .button__label, + .button--caret.button--large .button__label { + padding-inline-end: var(--sl-spacing-small); + } + + /* + * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.). + * This means buttons aren't always direct descendants of the button group, thus we can't target them with the + * ::slotted selector. To work around this, the button group component does some magic to add these special classes to + * buttons and we style them here instead. + */ + + :host(.sl-button-group__button--first:not(.sl-button-group__button--last)) .button { + border-start-end-radius: 0; + border-end-end-radius: 0; + } + + :host(.sl-button-group__button--inner) .button { + border-radius: 0; + } + + :host(.sl-button-group__button--last:not(.sl-button-group__button--first)) .button { + border-start-start-radius: 0; + border-end-start-radius: 0; + } + + /* All except the first */ + :host(.sl-button-group__button:not(.sl-button-group__button--first)) { + margin-inline-start: calc(-1 * var(--sl-input-border-width)); + } + + /* Add a visual separator between solid buttons */ + :host( + .sl-button-group__button:not( + .sl-button-group__button--first, + .sl-button-group__button--radio, + [variant='default'] + ):not(:hover) + ) + .button:after { + content: ''; + position: absolute; + top: 0; + inset-inline-start: 0; + bottom: 0; + border-left: solid 1px rgb(128 128 128 / 33%); + mix-blend-mode: multiply; + } + + /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */ + :host(.sl-button-group__button--hover) { + z-index: 1; + } + + /* Focus and checked are always on top */ + :host(.sl-button-group__button--focus), + :host(.sl-button-group__button[checked]) { + z-index: 2; + } +`;/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const e$1=Symbol.for(""),o$3=D=>{if((D==null?void 0:D.r)===e$1)return D==null?void 0:D._$litStatic$},s=(D,...O)=>({_$litStatic$:O.reduce((z,F,Y)=>z+(W=>{if(W._$litStatic$!==void 0)return W._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${W}. Use 'unsafeStatic' to pass non-literal values, but + take care to ensure page security.`)})(F)+D[Y+1],D[0]),r:e$1}),a=new Map,l=D=>(O,...z)=>{const F=z.length;let Y,W;const q=[],X=[];let tt,nt=0,st=!1;for(;nt{if(D.hasAttribute("form")){const O=D.getRootNode(),z=D.getAttribute("form");return O.getElementById(z)}return D.closest("form")},assumeInteractionOn:["click"]}),this.hasSlotController=new HasSlotController(this,"[default]","prefix","suffix"),this.localize=new LocalizeController(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity:validValidityState}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(D){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(D)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(D){this.button.focus(D)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(D){this.isButton()&&(this.button.setCustomValidity(D),this.formControlController.updateValidity())}render(){const D=this.isLink(),O=D?s`a`:s`button`;return n$2` + <${O} + part="base" + class=${e$2({button:!0,"button--default":this.variant==="default","button--primary":this.variant==="primary","button--success":this.variant==="success","button--neutral":this.variant==="neutral","button--warning":this.variant==="warning","button--danger":this.variant==="danger","button--text":this.variant==="text","button--small":this.size==="small","button--medium":this.size==="medium","button--large":this.size==="large","button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()==="rtl","button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})} + ?disabled=${o$4(D?void 0:this.disabled)} + type=${o$4(D?void 0:this.type)} + title=${this.title} + name=${o$4(D?void 0:this.name)} + value=${o$4(D?void 0:this.value)} + href=${o$4(D?this.href:void 0)} + target=${o$4(D?this.target:void 0)} + download=${o$4(D?this.download:void 0)} + rel=${o$4(D?this.rel:void 0)} + role=${o$4(D?void 0:"button")} + aria-disabled=${this.disabled?"true":"false"} + tabindex=${this.disabled?"-1":"0"} + @blur=${this.handleBlur} + @focus=${this.handleFocus} + @invalid=${this.isButton()?this.handleInvalid:null} + @click=${this.handleClick} + > + + + + ${this.caret?n$2` `:""} + ${this.loading?n$2``:""} + + `}};SlButton.styles=button_styles_default;SlButton.dependencies={"sl-icon":SlIcon,"sl-spinner":SlSpinner};__decorateClass([e$5(".button")],SlButton.prototype,"button",2);__decorateClass([r$2()],SlButton.prototype,"hasFocus",2);__decorateClass([r$2()],SlButton.prototype,"invalid",2);__decorateClass([n$3()],SlButton.prototype,"title",2);__decorateClass([n$3({reflect:!0})],SlButton.prototype,"variant",2);__decorateClass([n$3({reflect:!0})],SlButton.prototype,"size",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlButton.prototype,"caret",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlButton.prototype,"disabled",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlButton.prototype,"loading",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlButton.prototype,"outline",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlButton.prototype,"pill",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlButton.prototype,"circle",2);__decorateClass([n$3()],SlButton.prototype,"type",2);__decorateClass([n$3()],SlButton.prototype,"name",2);__decorateClass([n$3()],SlButton.prototype,"value",2);__decorateClass([n$3()],SlButton.prototype,"href",2);__decorateClass([n$3()],SlButton.prototype,"target",2);__decorateClass([n$3()],SlButton.prototype,"rel",2);__decorateClass([n$3()],SlButton.prototype,"download",2);__decorateClass([n$3()],SlButton.prototype,"form",2);__decorateClass([n$3({attribute:"formaction"})],SlButton.prototype,"formAction",2);__decorateClass([n$3({attribute:"formenctype"})],SlButton.prototype,"formEnctype",2);__decorateClass([n$3({attribute:"formmethod"})],SlButton.prototype,"formMethod",2);__decorateClass([n$3({attribute:"formnovalidate",type:Boolean})],SlButton.prototype,"formNoValidate",2);__decorateClass([n$3({attribute:"formtarget"})],SlButton.prototype,"formTarget",2);__decorateClass([watch("disabled",{waitUntilFirstUpdate:!0})],SlButton.prototype,"handleDisabledChange",1);SlButton.define("sl-button");function isTakingUpSpace(D){return!!(D.offsetParent||D.offsetWidth||D.offsetHeight||D.getClientRects().length)}function isTabbable(D){const O=D.tagName.toLowerCase();return D.getAttribute("tabindex")==="-1"||D.hasAttribute("disabled")||O==="input"&&D.getAttribute("type")==="radio"&&!D.hasAttribute("checked")||!isTakingUpSpace(D)||window.getComputedStyle(D).visibility==="hidden"?!1:(O==="audio"||O==="video")&&D.hasAttribute("controls")||D.hasAttribute("tabindex")||D.hasAttribute("contenteditable")&&D.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(O)}function getTabbableElements(D){const O=[];function z(F){if(F instanceof Element){if(F.hasAttribute("inert"))return;!O.includes(F)&&isTabbable(F)&&O.push(F);const Y=W=>{var q;return((q=W.getRootNode({composed:!0}))==null?void 0:q.host)!==D};F instanceof HTMLSlotElement&&Y(F)&&F.assignedElements({flatten:!0}).forEach(W=>{z(W)}),F.shadowRoot!==null&&F.shadowRoot.mode==="open"&&z(F.shadowRoot)}[...F.children].forEach(Y=>z(Y))}return z(D),O.sort((F,Y)=>{const W=Number(F.getAttribute("tabindex"))||0;return(Number(Y.getAttribute("tabindex"))||0)-W})}function*activeElements(D=document.activeElement){D!=null&&(yield D,"shadowRoot"in D&&D.shadowRoot&&D.shadowRoot.mode!=="closed"&&(yield*__yieldStar(activeElements(D.shadowRoot.activeElement))))}function getDeepestActiveElement(){return[...activeElements()].pop()}var activeModals=[],Modal$1=class{constructor(O){this.tabDirection="forward",this.handleFocusIn=()=>{this.checkFocus()},this.handleKeyDown=z=>{var F,Y;if(z.key!=="Tab"||this.isExternalActivated)return;z.shiftKey?this.tabDirection="backward":this.tabDirection="forward",z.preventDefault();const W=getTabbableElements(this.element),q=getDeepestActiveElement();let X=W.findIndex(nt=>nt===q);if(X===-1){this.currentFocus=W[0],(F=this.currentFocus)==null||F.focus({preventScroll:!0});return}const tt=this.tabDirection==="forward"?1:-1;X+tt>=W.length?X=0:X+tt<0?X=W.length-1:X+=tt,this.currentFocus=W[X],(Y=this.currentFocus)==null||Y.focus({preventScroll:!0}),setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=O}activate(){activeModals.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){activeModals=activeModals.filter(O=>O!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return activeModals[activeModals.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const O=getTabbableElements(this.element);if(!this.element.matches(":focus-within")){const z=O[0],F=O[O.length-1],Y=this.tabDirection==="forward"?z:F;typeof(Y==null?void 0:Y.focus)=="function"&&(this.currentFocus=Y,Y.focus({preventScroll:!0}))}}}},locks=new Set;function getScrollbarWidth(){const D=document.documentElement.clientWidth;return Math.abs(window.innerWidth-D)}function lockBodyScrolling(D){if(locks.add(D),!document.body.classList.contains("sl-scroll-lock")){const O=getScrollbarWidth();document.body.classList.add("sl-scroll-lock"),document.body.style.setProperty("--sl-scroll-lock-size",`${O}px`)}}function unlockBodyScrolling(D){locks.delete(D),locks.size===0&&(document.body.classList.remove("sl-scroll-lock"),document.body.style.removeProperty("--sl-scroll-lock-size"))}var dialog_styles_default=i$5` + ${component_styles_default} + + :host { + --width: 31rem; + --header-spacing: var(--sl-spacing-large); + --body-spacing: var(--sl-spacing-large); + --footer-spacing: var(--sl-spacing-large); + + display: contents; + } + + .dialog { + display: flex; + align-items: center; + justify-content: center; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: var(--sl-z-index-dialog); + } + + .dialog__panel { + display: flex; + flex-direction: column; + z-index: 2; + width: var(--width); + max-width: calc(100% - var(--sl-spacing-2x-large)); + max-height: calc(100% - var(--sl-spacing-2x-large)); + background-color: var(--sl-panel-background-color); + border-radius: var(--sl-border-radius-medium); + box-shadow: var(--sl-shadow-x-large); + } + + .dialog__panel:focus { + outline: none; + } + + /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */ + @media screen and (max-width: 420px) { + .dialog__panel { + max-height: 80vh; + } + } + + .dialog--open .dialog__panel { + display: flex; + opacity: 1; + } + + .dialog__header { + flex: 0 0 auto; + display: flex; + } + + .dialog__title { + flex: 1 1 auto; + font: inherit; + font-size: var(--sl-font-size-large); + line-height: var(--sl-line-height-dense); + padding: var(--header-spacing); + margin: 0; + } + + .dialog__header-actions { + flex-shrink: 0; + display: flex; + flex-wrap: wrap; + justify-content: end; + gap: var(--sl-spacing-2x-small); + padding: 0 var(--header-spacing); + } + + .dialog__header-actions sl-icon-button, + .dialog__header-actions ::slotted(sl-icon-button) { + flex: 0 0 auto; + display: flex; + align-items: center; + font-size: var(--sl-font-size-medium); + } + + .dialog__body { + flex: 1 1 auto; + display: block; + padding: var(--body-spacing); + overflow: auto; + -webkit-overflow-scrolling: touch; + } + + .dialog__footer { + flex: 0 0 auto; + text-align: right; + padding: var(--footer-spacing); + } + + .dialog__footer ::slotted(sl-button:not(:first-of-type)) { + margin-inline-start: var(--sl-spacing-x-small); + } + + .dialog:not(.dialog--has-footer) .dialog__footer { + display: none; + } + + .dialog__overlay { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: var(--sl-overlay-background-color); + } + + @media (forced-colors: active) { + .dialog__panel { + border: solid 1px var(--sl-color-neutral-0); + } + } +`,icon_button_styles_default=i$5` + ${component_styles_default} + + :host { + display: inline-block; + color: var(--sl-color-neutral-600); + } + + .icon-button { + flex: 0 0 auto; + display: flex; + align-items: center; + background: none; + border: none; + border-radius: var(--sl-border-radius-medium); + font-size: inherit; + color: inherit; + padding: var(--sl-spacing-x-small); + cursor: pointer; + transition: var(--sl-transition-x-fast) color; + -webkit-appearance: none; + } + + .icon-button:hover:not(.icon-button--disabled), + .icon-button:focus-visible:not(.icon-button--disabled) { + color: var(--sl-color-primary-600); + } + + .icon-button:active:not(.icon-button--disabled) { + color: var(--sl-color-primary-700); + } + + .icon-button:focus { + outline: none; + } + + .icon-button--disabled { + opacity: 0.5; + cursor: not-allowed; + } + + .icon-button:focus-visible { + outline: var(--sl-focus-ring); + outline-offset: var(--sl-focus-ring-offset); + } + + .icon-button__icon { + pointer-events: none; + } +`,SlIconButton=class extends ShoelaceElement{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(D){this.disabled&&(D.preventDefault(),D.stopPropagation())}click(){this.button.click()}focus(D){this.button.focus(D)}blur(){this.button.blur()}render(){const D=!!this.href,O=D?s`a`:s`button`;return n$2` + <${O} + part="base" + class=${e$2({"icon-button":!0,"icon-button--disabled":!D&&this.disabled,"icon-button--focused":this.hasFocus})} + ?disabled=${o$4(D?void 0:this.disabled)} + type=${o$4(D?void 0:"button")} + href=${o$4(D?this.href:void 0)} + target=${o$4(D?this.target:void 0)} + download=${o$4(D?this.download:void 0)} + rel=${o$4(D&&this.target?"noreferrer noopener":void 0)} + role=${o$4(D?void 0:"button")} + aria-disabled=${this.disabled?"true":"false"} + aria-label="${this.label}" + tabindex=${this.disabled?"-1":"0"} + @blur=${this.handleBlur} + @focus=${this.handleFocus} + @click=${this.handleClick} + > + + + `}};SlIconButton.styles=icon_button_styles_default;SlIconButton.dependencies={"sl-icon":SlIcon};__decorateClass([e$5(".icon-button")],SlIconButton.prototype,"button",2);__decorateClass([r$2()],SlIconButton.prototype,"hasFocus",2);__decorateClass([n$3()],SlIconButton.prototype,"name",2);__decorateClass([n$3()],SlIconButton.prototype,"library",2);__decorateClass([n$3()],SlIconButton.prototype,"src",2);__decorateClass([n$3()],SlIconButton.prototype,"href",2);__decorateClass([n$3()],SlIconButton.prototype,"target",2);__decorateClass([n$3()],SlIconButton.prototype,"download",2);__decorateClass([n$3()],SlIconButton.prototype,"label",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlIconButton.prototype,"disabled",2);var defaultAnimationRegistry=new Map,customAnimationRegistry=new WeakMap;function ensureAnimation(D){return D??{keyframes:[],options:{duration:0}}}function getLogicalAnimation(D,O){return O.toLowerCase()==="rtl"?{keyframes:D.rtlKeyframes||D.keyframes,options:D.options}:D}function setDefaultAnimation(D,O){defaultAnimationRegistry.set(D,ensureAnimation(O))}function getAnimation(D,O,z){const F=customAnimationRegistry.get(D);if(F!=null&&F[O])return getLogicalAnimation(F[O],z.dir);const Y=defaultAnimationRegistry.get(O);return Y?getLogicalAnimation(Y,z.dir):{keyframes:[],options:{duration:0}}}function waitForEvent(D,O){return new Promise(z=>{function F(Y){Y.target===D&&(D.removeEventListener(O,F),z())}D.addEventListener(O,F)})}function animateTo(D,O,z){return new Promise(F=>{if((z==null?void 0:z.duration)===1/0)throw new Error("Promise-based animations must be finite.");const Y=D.animate(O,__spreadProps(__spreadValues({},z),{duration:prefersReducedMotion()?0:z.duration}));Y.addEventListener("cancel",F,{once:!0}),Y.addEventListener("finish",F,{once:!0})})}function prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function stopAnimations(D){return Promise.all(D.getAnimations().map(O=>new Promise(z=>{const F=requestAnimationFrame(z);O.addEventListener("cancel",()=>F,{once:!0}),O.addEventListener("finish",()=>F,{once:!0}),O.cancel()})))}var SlDialog=class extends ShoelaceElement{constructor(){super(...arguments),this.hasSlotController=new HasSlotController(this,"footer"),this.localize=new LocalizeController(this),this.modal=new Modal$1(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=D=>{D.key==="Escape"&&this.modal.isActive()&&this.open&&(D.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),lockBodyScrolling(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),unlockBodyScrolling(this)}requestClose(D){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:D}}).defaultPrevented){const z=getAnimation(this,"dialog.denyClose",{dir:this.localize.dir()});animateTo(this.panel,z.keyframes,z.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),lockBodyScrolling(this);const D=this.querySelector("[autofocus]");D&&D.removeAttribute("autofocus"),await Promise.all([stopAnimations(this.dialog),stopAnimations(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(D?D.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),D&&D.setAttribute("autofocus","")});const O=getAnimation(this,"dialog.show",{dir:this.localize.dir()}),z=getAnimation(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([animateTo(this.panel,O.keyframes,O.options),animateTo(this.overlay,z.keyframes,z.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([stopAnimations(this.dialog),stopAnimations(this.overlay)]);const D=getAnimation(this,"dialog.hide",{dir:this.localize.dir()}),O=getAnimation(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([animateTo(this.overlay,O.keyframes,O.options).then(()=>{this.overlay.hidden=!0}),animateTo(this.panel,D.keyframes,D.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,unlockBodyScrolling(this);const z=this.originalTrigger;typeof(z==null?void 0:z.focus)=="function"&&setTimeout(()=>z.focus()),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,waitForEvent(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,waitForEvent(this,"sl-after-hide")}render(){return x$1` +
+
this.requestClose("overlay")} tabindex="-1">
+ + +
+ `}};SlDialog.styles=dialog_styles_default;SlDialog.dependencies={"sl-icon-button":SlIconButton};__decorateClass([e$5(".dialog")],SlDialog.prototype,"dialog",2);__decorateClass([e$5(".dialog__panel")],SlDialog.prototype,"panel",2);__decorateClass([e$5(".dialog__overlay")],SlDialog.prototype,"overlay",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlDialog.prototype,"open",2);__decorateClass([n$3({reflect:!0})],SlDialog.prototype,"label",2);__decorateClass([n$3({attribute:"no-header",type:Boolean,reflect:!0})],SlDialog.prototype,"noHeader",2);__decorateClass([watch("open",{waitUntilFirstUpdate:!0})],SlDialog.prototype,"handleOpenChange",1);setDefaultAnimation("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});setDefaultAnimation("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});setDefaultAnimation("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});setDefaultAnimation("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});setDefaultAnimation("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});SlDialog.define("sl-dialog");SlIconButton.define("sl-icon-button");var image_comparer_styles_default=i$5` + ${component_styles_default} + + :host { + --divider-width: 2px; + --handle-size: 2.5rem; + + display: inline-block; + position: relative; + } + + .image-comparer { + max-width: 100%; + max-height: 100%; + overflow: hidden; + } + + .image-comparer__before, + .image-comparer__after { + display: block; + pointer-events: none; + } + + .image-comparer__before::slotted(img), + .image-comparer__after::slotted(img), + .image-comparer__before::slotted(svg), + .image-comparer__after::slotted(svg) { + display: block; + max-width: 100% !important; + height: auto; + } + + .image-comparer__after { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + } + + .image-comparer__divider { + display: flex; + align-items: center; + justify-content: center; + position: absolute; + top: 0; + width: var(--divider-width); + height: 100%; + background-color: var(--sl-color-neutral-0); + translate: calc(var(--divider-width) / -2); + cursor: ew-resize; + } + + .image-comparer__handle { + display: flex; + align-items: center; + justify-content: center; + position: absolute; + top: calc(50% - (var(--handle-size) / 2)); + width: var(--handle-size); + height: var(--handle-size); + background-color: var(--sl-color-neutral-0); + border-radius: var(--sl-border-radius-circle); + font-size: calc(var(--handle-size) * 0.5); + color: var(--sl-color-neutral-700); + cursor: inherit; + z-index: 10; + } + + .image-comparer__handle:focus-visible { + outline: var(--sl-focus-ring); + outline-offset: var(--sl-focus-ring-offset); + } +`;function drag(D,O){function z(Y){const W=D.getBoundingClientRect(),q=D.ownerDocument.defaultView,X=W.left+q.pageXOffset,tt=W.top+q.pageYOffset,nt=Y.pageX-X,st=Y.pageY-tt;O!=null&&O.onMove&&O.onMove(nt,st)}function F(){document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",F),O!=null&&O.onStop&&O.onStop()}document.addEventListener("pointermove",z,{passive:!0}),document.addEventListener("pointerup",F),(O==null?void 0:O.initialEvent)instanceof PointerEvent&&z(O.initialEvent)}function clamp$1(D,O,z){const F=Y=>Object.is(Y,-0)?0:Y;return Dz?F(z):F(D)}/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const n$1="important",i$1=" !"+n$1,o$2=e$3(class extends i$2{constructor(D){var O;if(super(D),D.type!==t$2.ATTRIBUTE||D.name!=="style"||((O=D.strings)==null?void 0:O.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(D){return Object.keys(D).reduce((O,z)=>{const F=D[z];return F==null?O:O+`${z=z.includes("-")?z:z.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${F};`},"")}update(D,[O]){const{style:z}=D.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(O)),this.render(O);for(const F of this.ut)O[F]==null&&(this.ut.delete(F),F.includes("-")?z.removeProperty(F):z[F]=null);for(const F in O){const Y=O[F];if(Y!=null){this.ut.add(F);const W=typeof Y=="string"&&Y.endsWith(i$1);F.includes("-")||W?z.setProperty(F,W?Y.slice(0,-11):Y,W?n$1:""):z[F]=Y}}return w$1}});var SlImageComparer=class extends ShoelaceElement{constructor(){super(...arguments),this.localize=new LocalizeController(this),this.position=50}handleDrag(D){const{width:O}=this.base.getBoundingClientRect(),z=this.localize.dir()==="rtl";D.preventDefault(),drag(this.base,{onMove:F=>{this.position=parseFloat(clamp$1(F/O*100,0,100).toFixed(2)),z&&(this.position=100-this.position)},initialEvent:D})}handleKeyDown(D){const O=this.localize.dir()==="ltr",z=this.localize.dir()==="rtl";if(["ArrowLeft","ArrowRight","Home","End"].includes(D.key)){const F=D.shiftKey?10:1;let Y=this.position;D.preventDefault(),(O&&D.key==="ArrowLeft"||z&&D.key==="ArrowRight")&&(Y-=F),(O&&D.key==="ArrowRight"||z&&D.key==="ArrowLeft")&&(Y+=F),D.key==="Home"&&(Y=0),D.key==="End"&&(Y=100),Y=clamp$1(Y,0,100),this.position=Y}}handlePositionChange(){this.emit("sl-change")}render(){const D=this.localize.dir()==="rtl";return x$1` +
+
+
+ +
+ +
+ +
+
+ +
+
+ + + +
+
+
+ `}};SlImageComparer.styles=image_comparer_styles_default;SlImageComparer.scopedElement={"sl-icon":SlIcon};__decorateClass([e$5(".image-comparer")],SlImageComparer.prototype,"base",2);__decorateClass([e$5(".image-comparer__handle")],SlImageComparer.prototype,"handle",2);__decorateClass([n$3({type:Number,reflect:!0})],SlImageComparer.prototype,"position",2);__decorateClass([watch("position",{waitUntilFirstUpdate:!0})],SlImageComparer.prototype,"handlePositionChange",1);SlImageComparer.define("sl-image-comparer");var popup_styles_default=i$5` + ${component_styles_default} + + :host { + --arrow-color: var(--sl-color-neutral-1000); + --arrow-size: 6px; + + /* + * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant + * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating. + */ + --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071); + --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size)); + + display: contents; + } + + .popup { + position: absolute; + isolation: isolate; + max-width: var(--auto-size-available-width, none); + max-height: var(--auto-size-available-height, none); + } + + .popup--fixed { + position: fixed; + } + + .popup:not(.popup--active) { + display: none; + } + + .popup__arrow { + position: absolute; + width: calc(var(--arrow-size-diagonal) * 2); + height: calc(var(--arrow-size-diagonal) * 2); + rotate: 45deg; + background: var(--arrow-color); + z-index: -1; + } +`;const min$3=Math.min,max$3=Math.max,round=Math.round,floor=Math.floor,createCoords=D=>({x:D,y:D}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(D,O,z){return max$3(D,min$3(O,z))}function evaluate$1(D,O){return typeof D=="function"?D(O):D}function getSide(D){return D.split("-")[0]}function getAlignment(D){return D.split("-")[1]}function getOppositeAxis(D){return D==="x"?"y":"x"}function getAxisLength(D){return D==="y"?"height":"width"}function getSideAxis(D){return["top","bottom"].includes(getSide(D))?"y":"x"}function getAlignmentAxis(D){return getOppositeAxis(getSideAxis(D))}function getAlignmentSides(D,O,z){z===void 0&&(z=!1);const F=getAlignment(D),Y=getAlignmentAxis(D),W=getAxisLength(Y);let q=Y==="x"?F===(z?"end":"start")?"right":"left":F==="start"?"bottom":"top";return O.reference[W]>O.floating[W]&&(q=getOppositePlacement(q)),[q,getOppositePlacement(q)]}function getExpandedPlacements(D){const O=getOppositePlacement(D);return[getOppositeAlignmentPlacement(D),O,getOppositeAlignmentPlacement(O)]}function getOppositeAlignmentPlacement(D){return D.replace(/start|end/g,O=>oppositeAlignmentMap[O])}function getSideList(D,O,z){const F=["left","right"],Y=["right","left"],W=["top","bottom"],q=["bottom","top"];switch(D){case"top":case"bottom":return z?O?Y:F:O?F:Y;case"left":case"right":return O?W:q;default:return[]}}function getOppositeAxisPlacements(D,O,z,F){const Y=getAlignment(D);let W=getSideList(getSide(D),z==="start",F);return Y&&(W=W.map(q=>q+"-"+Y),O&&(W=W.concat(W.map(getOppositeAlignmentPlacement)))),W}function getOppositePlacement(D){return D.replace(/left|right|bottom|top/g,O=>oppositeSideMap[O])}function expandPaddingObject(D){return{top:0,right:0,bottom:0,left:0,...D}}function getPaddingObject(D){return typeof D!="number"?expandPaddingObject(D):{top:D,right:D,bottom:D,left:D}}function rectToClientRect(D){return{...D,top:D.y,left:D.x,right:D.x+D.width,bottom:D.y+D.height}}function computeCoordsFromPlacement(D,O,z){let{reference:F,floating:Y}=D;const W=getSideAxis(O),q=getAlignmentAxis(O),X=getAxisLength(q),tt=getSide(O),nt=W==="y",st=F.x+F.width/2-Y.width/2,ct=F.y+F.height/2-Y.height/2,lt=F[X]/2-Y[X]/2;let ht;switch(tt){case"top":ht={x:st,y:F.y-Y.height};break;case"bottom":ht={x:st,y:F.y+F.height};break;case"right":ht={x:F.x+F.width,y:ct};break;case"left":ht={x:F.x-Y.width,y:ct};break;default:ht={x:F.x,y:F.y}}switch(getAlignment(O)){case"start":ht[q]-=lt*(z&&nt?-1:1);break;case"end":ht[q]+=lt*(z&&nt?-1:1);break}return ht}const computePosition$1=async(D,O,z)=>{const{placement:F="bottom",strategy:Y="absolute",middleware:W=[],platform:q}=z,X=W.filter(Boolean),tt=await(q.isRTL==null?void 0:q.isRTL(O));let nt=await q.getElementRects({reference:D,floating:O,strategy:Y}),{x:st,y:ct}=computeCoordsFromPlacement(nt,F,tt),lt=F,ht={},bt=0;for(let wt=0;wt({name:"arrow",options:D,async fn(O){const{x:z,y:F,placement:Y,rects:W,platform:q,elements:X,middlewareData:tt}=O,{element:nt,padding:st=0}=evaluate$1(D,O)||{};if(nt==null)return{};const ct=getPaddingObject(st),lt={x:z,y:F},ht=getAlignmentAxis(Y),bt=getAxisLength(ht),wt=await q.getDimensions(nt),mt=ht==="y",_t=mt?"top":"left",Et=mt?"bottom":"right",At=mt?"clientHeight":"clientWidth",Ct=W.reference[bt]+W.reference[ht]-lt[ht]-W.floating[bt],Ft=lt[ht]-W.reference[ht],Lt=await(q.getOffsetParent==null?void 0:q.getOffsetParent(nt));let Yt=Lt?Lt[At]:0;(!Yt||!await(q.isElement==null?void 0:q.isElement(Lt)))&&(Yt=X.floating[At]||W.floating[bt]);const Ht=Ct/2-Ft/2,qt=Yt/2-wt[bt]/2-1,te=min$3(ct[_t],qt),Xt=min$3(ct[Et],qt),Dt=te,Qt=Yt-wt[bt]-Xt,Nt=Yt/2-wt[bt]/2+Ht,ce=clamp(Dt,Nt,Qt),Pt=!tt.arrow&&getAlignment(Y)!=null&&Nt!=ce&&W.reference[bt]/2-(NtDt<=0)){var qt,te;const Dt=(((qt=W.flip)==null?void 0:qt.index)||0)+1,Qt=Ft[Dt];if(Qt)return{data:{index:Dt,overflows:Ht},reset:{placement:Qt}};let Nt=(te=Ht.filter(ce=>ce.overflows[0]<=0).sort((ce,Pt)=>ce.overflows[1]-Pt.overflows[1])[0])==null?void 0:te.placement;if(!Nt)switch(ht){case"bestFit":{var Xt;const ce=(Xt=Ht.map(Pt=>[Pt.placement,Pt.overflows.filter(de=>de>0).reduce((de,ye)=>de+ye,0)]).sort((Pt,de)=>Pt[1]-de[1])[0])==null?void 0:Xt[0];ce&&(Nt=ce);break}case"initialPlacement":Nt=X;break}if(Y!==Nt)return{reset:{placement:Nt}}}return{}}}};async function convertValueToCoords(D,O){const{placement:z,platform:F,elements:Y}=D,W=await(F.isRTL==null?void 0:F.isRTL(Y.floating)),q=getSide(z),X=getAlignment(z),tt=getSideAxis(z)==="y",nt=["left","top"].includes(q)?-1:1,st=W&&tt?-1:1,ct=evaluate$1(O,D);let{mainAxis:lt,crossAxis:ht,alignmentAxis:bt}=typeof ct=="number"?{mainAxis:ct,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...ct};return X&&typeof bt=="number"&&(ht=X==="end"?bt*-1:bt),tt?{x:ht*st,y:lt*nt}:{x:lt*nt,y:ht*st}}const offset=function(D){return D===void 0&&(D=0),{name:"offset",options:D,async fn(O){const{x:z,y:F}=O,Y=await convertValueToCoords(O,D);return{x:z+Y.x,y:F+Y.y,data:Y}}}},shift=function(D){return D===void 0&&(D={}),{name:"shift",options:D,async fn(O){const{x:z,y:F,placement:Y}=O,{mainAxis:W=!0,crossAxis:q=!1,limiter:X={fn:mt=>{let{x:_t,y:Et}=mt;return{x:_t,y:Et}}},...tt}=evaluate$1(D,O),nt={x:z,y:F},st=await detectOverflow(O,tt),ct=getSideAxis(getSide(Y)),lt=getOppositeAxis(ct);let ht=nt[lt],bt=nt[ct];if(W){const mt=lt==="y"?"top":"left",_t=lt==="y"?"bottom":"right",Et=ht+st[mt],At=ht-st[_t];ht=clamp(Et,ht,At)}if(q){const mt=ct==="y"?"top":"left",_t=ct==="y"?"bottom":"right",Et=bt+st[mt],At=bt-st[_t];bt=clamp(Et,bt,At)}const wt=X.fn({...O,[lt]:ht,[ct]:bt});return{...wt,data:{x:wt.x-z,y:wt.y-F}}}}},size=function(D){return D===void 0&&(D={}),{name:"size",options:D,async fn(O){const{placement:z,rects:F,platform:Y,elements:W}=O,{apply:q=()=>{},...X}=evaluate$1(D,O),tt=await detectOverflow(O,X),nt=getSide(z),st=getAlignment(z),ct=getSideAxis(z)==="y",{width:lt,height:ht}=F.floating;let bt,wt;nt==="top"||nt==="bottom"?(bt=nt,wt=st===(await(Y.isRTL==null?void 0:Y.isRTL(W.floating))?"start":"end")?"left":"right"):(wt=nt,bt=st==="end"?"top":"bottom");const mt=ht-tt[bt],_t=lt-tt[wt],Et=!O.middlewareData.shift;let At=mt,Ct=_t;if(ct){const Lt=lt-tt.left-tt.right;Ct=st||Et?min$3(_t,Lt):Lt}else{const Lt=ht-tt.top-tt.bottom;At=st||Et?min$3(mt,Lt):Lt}if(Et&&!st){const Lt=max$3(tt.left,0),Yt=max$3(tt.right,0),Ht=max$3(tt.top,0),qt=max$3(tt.bottom,0);ct?Ct=lt-2*(Lt!==0||Yt!==0?Lt+Yt:max$3(tt.left,tt.right)):At=ht-2*(Ht!==0||qt!==0?Ht+qt:max$3(tt.top,tt.bottom))}await q({...O,availableWidth:Ct,availableHeight:At});const Ft=await Y.getDimensions(W.floating);return lt!==Ft.width||ht!==Ft.height?{reset:{rects:!0}}:{}}}};function getNodeName(D){return isNode(D)?(D.nodeName||"").toLowerCase():"#document"}function getWindow(D){var O;return(D==null||(O=D.ownerDocument)==null?void 0:O.defaultView)||window}function getDocumentElement(D){var O;return(O=(isNode(D)?D.ownerDocument:D.document)||window.document)==null?void 0:O.documentElement}function isNode(D){return D instanceof Node||D instanceof getWindow(D).Node}function isElement(D){return D instanceof Element||D instanceof getWindow(D).Element}function isHTMLElement(D){return D instanceof HTMLElement||D instanceof getWindow(D).HTMLElement}function isShadowRoot(D){return typeof ShadowRoot>"u"?!1:D instanceof ShadowRoot||D instanceof getWindow(D).ShadowRoot}function isOverflowElement(D){const{overflow:O,overflowX:z,overflowY:F,display:Y}=getComputedStyle$1(D);return/auto|scroll|overlay|hidden|clip/.test(O+F+z)&&!["inline","contents"].includes(Y)}function isTableElement(D){return["table","td","th"].includes(getNodeName(D))}function isContainingBlock(D){const O=isWebKit(),z=getComputedStyle$1(D);return z.transform!=="none"||z.perspective!=="none"||(z.containerType?z.containerType!=="normal":!1)||!O&&(z.backdropFilter?z.backdropFilter!=="none":!1)||!O&&(z.filter?z.filter!=="none":!1)||["transform","perspective","filter"].some(F=>(z.willChange||"").includes(F))||["paint","layout","strict","content"].some(F=>(z.contain||"").includes(F))}function getContainingBlock(D){let O=getParentNode(D);for(;isHTMLElement(O)&&!isLastTraversableNode(O);){if(isContainingBlock(O))return O;O=getParentNode(O)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(D){return["html","body","#document"].includes(getNodeName(D))}function getComputedStyle$1(D){return getWindow(D).getComputedStyle(D)}function getNodeScroll(D){return isElement(D)?{scrollLeft:D.scrollLeft,scrollTop:D.scrollTop}:{scrollLeft:D.pageXOffset,scrollTop:D.pageYOffset}}function getParentNode(D){if(getNodeName(D)==="html")return D;const O=D.assignedSlot||D.parentNode||isShadowRoot(D)&&D.host||getDocumentElement(D);return isShadowRoot(O)?O.host:O}function getNearestOverflowAncestor(D){const O=getParentNode(D);return isLastTraversableNode(O)?D.ownerDocument?D.ownerDocument.body:D.body:isHTMLElement(O)&&isOverflowElement(O)?O:getNearestOverflowAncestor(O)}function getOverflowAncestors(D,O,z){var F;O===void 0&&(O=[]),z===void 0&&(z=!0);const Y=getNearestOverflowAncestor(D),W=Y===((F=D.ownerDocument)==null?void 0:F.body),q=getWindow(Y);return W?O.concat(q,q.visualViewport||[],isOverflowElement(Y)?Y:[],q.frameElement&&z?getOverflowAncestors(q.frameElement):[]):O.concat(Y,getOverflowAncestors(Y,[],z))}function getCssDimensions(D){const O=getComputedStyle$1(D);let z=parseFloat(O.width)||0,F=parseFloat(O.height)||0;const Y=isHTMLElement(D),W=Y?D.offsetWidth:z,q=Y?D.offsetHeight:F,X=round(z)!==W||round(F)!==q;return X&&(z=W,F=q),{width:z,height:F,$:X}}function unwrapElement(D){return isElement(D)?D:D.contextElement}function getScale(D){const O=unwrapElement(D);if(!isHTMLElement(O))return createCoords(1);const z=O.getBoundingClientRect(),{width:F,height:Y,$:W}=getCssDimensions(O);let q=(W?round(z.width):z.width)/F,X=(W?round(z.height):z.height)/Y;return(!q||!Number.isFinite(q))&&(q=1),(!X||!Number.isFinite(X))&&(X=1),{x:q,y:X}}const noOffsets=createCoords(0);function getVisualOffsets(D){const O=getWindow(D);return!isWebKit()||!O.visualViewport?noOffsets:{x:O.visualViewport.offsetLeft,y:O.visualViewport.offsetTop}}function shouldAddVisualOffsets(D,O,z){return O===void 0&&(O=!1),!z||O&&z!==getWindow(D)?!1:O}function getBoundingClientRect(D,O,z,F){O===void 0&&(O=!1),z===void 0&&(z=!1);const Y=D.getBoundingClientRect(),W=unwrapElement(D);let q=createCoords(1);O&&(F?isElement(F)&&(q=getScale(F)):q=getScale(D));const X=shouldAddVisualOffsets(W,z,F)?getVisualOffsets(W):createCoords(0);let tt=(Y.left+X.x)/q.x,nt=(Y.top+X.y)/q.y,st=Y.width/q.x,ct=Y.height/q.y;if(W){const lt=getWindow(W),ht=F&&isElement(F)?getWindow(F):F;let bt=lt.frameElement;for(;bt&&F&&ht!==lt;){const wt=getScale(bt),mt=bt.getBoundingClientRect(),_t=getComputedStyle$1(bt),Et=mt.left+(bt.clientLeft+parseFloat(_t.paddingLeft))*wt.x,At=mt.top+(bt.clientTop+parseFloat(_t.paddingTop))*wt.y;tt*=wt.x,nt*=wt.y,st*=wt.x,ct*=wt.y,tt+=Et,nt+=At,bt=getWindow(bt).frameElement}}return rectToClientRect({width:st,height:ct,x:tt,y:nt})}function convertOffsetParentRelativeRectToViewportRelativeRect(D){let{rect:O,offsetParent:z,strategy:F}=D;const Y=isHTMLElement(z),W=getDocumentElement(z);if(z===W)return O;let q={scrollLeft:0,scrollTop:0},X=createCoords(1);const tt=createCoords(0);if((Y||!Y&&F!=="fixed")&&((getNodeName(z)!=="body"||isOverflowElement(W))&&(q=getNodeScroll(z)),isHTMLElement(z))){const nt=getBoundingClientRect(z);X=getScale(z),tt.x=nt.x+z.clientLeft,tt.y=nt.y+z.clientTop}return{width:O.width*X.x,height:O.height*X.y,x:O.x*X.x-q.scrollLeft*X.x+tt.x,y:O.y*X.y-q.scrollTop*X.y+tt.y}}function getClientRects(D){return Array.from(D.getClientRects())}function getWindowScrollBarX(D){return getBoundingClientRect(getDocumentElement(D)).left+getNodeScroll(D).scrollLeft}function getDocumentRect(D){const O=getDocumentElement(D),z=getNodeScroll(D),F=D.ownerDocument.body,Y=max$3(O.scrollWidth,O.clientWidth,F.scrollWidth,F.clientWidth),W=max$3(O.scrollHeight,O.clientHeight,F.scrollHeight,F.clientHeight);let q=-z.scrollLeft+getWindowScrollBarX(D);const X=-z.scrollTop;return getComputedStyle$1(F).direction==="rtl"&&(q+=max$3(O.clientWidth,F.clientWidth)-Y),{width:Y,height:W,x:q,y:X}}function getViewportRect(D,O){const z=getWindow(D),F=getDocumentElement(D),Y=z.visualViewport;let W=F.clientWidth,q=F.clientHeight,X=0,tt=0;if(Y){W=Y.width,q=Y.height;const nt=isWebKit();(!nt||nt&&O==="fixed")&&(X=Y.offsetLeft,tt=Y.offsetTop)}return{width:W,height:q,x:X,y:tt}}function getInnerBoundingClientRect(D,O){const z=getBoundingClientRect(D,!0,O==="fixed"),F=z.top+D.clientTop,Y=z.left+D.clientLeft,W=isHTMLElement(D)?getScale(D):createCoords(1),q=D.clientWidth*W.x,X=D.clientHeight*W.y,tt=Y*W.x,nt=F*W.y;return{width:q,height:X,x:tt,y:nt}}function getClientRectFromClippingAncestor(D,O,z){let F;if(O==="viewport")F=getViewportRect(D,z);else if(O==="document")F=getDocumentRect(getDocumentElement(D));else if(isElement(O))F=getInnerBoundingClientRect(O,z);else{const Y=getVisualOffsets(D);F={...O,x:O.x-Y.x,y:O.y-Y.y}}return rectToClientRect(F)}function hasFixedPositionAncestor(D,O){const z=getParentNode(D);return z===O||!isElement(z)||isLastTraversableNode(z)?!1:getComputedStyle$1(z).position==="fixed"||hasFixedPositionAncestor(z,O)}function getClippingElementAncestors(D,O){const z=O.get(D);if(z)return z;let F=getOverflowAncestors(D,[],!1).filter(X=>isElement(X)&&getNodeName(X)!=="body"),Y=null;const W=getComputedStyle$1(D).position==="fixed";let q=W?getParentNode(D):D;for(;isElement(q)&&!isLastTraversableNode(q);){const X=getComputedStyle$1(q),tt=isContainingBlock(q);!tt&&X.position==="fixed"&&(Y=null),(W?!tt&&!Y:!tt&&X.position==="static"&&!!Y&&["absolute","fixed"].includes(Y.position)||isOverflowElement(q)&&!tt&&hasFixedPositionAncestor(D,q))?F=F.filter(st=>st!==q):Y=X,q=getParentNode(q)}return O.set(D,F),F}function getClippingRect(D){let{element:O,boundary:z,rootBoundary:F,strategy:Y}=D;const q=[...z==="clippingAncestors"?getClippingElementAncestors(O,this._c):[].concat(z),F],X=q[0],tt=q.reduce((nt,st)=>{const ct=getClientRectFromClippingAncestor(O,st,Y);return nt.top=max$3(ct.top,nt.top),nt.right=min$3(ct.right,nt.right),nt.bottom=min$3(ct.bottom,nt.bottom),nt.left=max$3(ct.left,nt.left),nt},getClientRectFromClippingAncestor(O,X,Y));return{width:tt.right-tt.left,height:tt.bottom-tt.top,x:tt.left,y:tt.top}}function getDimensions(D){return getCssDimensions(D)}function getRectRelativeToOffsetParent(D,O,z){const F=isHTMLElement(O),Y=getDocumentElement(O),W=z==="fixed",q=getBoundingClientRect(D,!0,W,O);let X={scrollLeft:0,scrollTop:0};const tt=createCoords(0);if(F||!F&&!W)if((getNodeName(O)!=="body"||isOverflowElement(Y))&&(X=getNodeScroll(O)),F){const nt=getBoundingClientRect(O,!0,W,O);tt.x=nt.x+O.clientLeft,tt.y=nt.y+O.clientTop}else Y&&(tt.x=getWindowScrollBarX(Y));return{x:q.left+X.scrollLeft-tt.x,y:q.top+X.scrollTop-tt.y,width:q.width,height:q.height}}function getTrueOffsetParent(D,O){return!isHTMLElement(D)||getComputedStyle$1(D).position==="fixed"?null:O?O(D):D.offsetParent}function getOffsetParent(D,O){const z=getWindow(D);if(!isHTMLElement(D))return z;let F=getTrueOffsetParent(D,O);for(;F&&isTableElement(F)&&getComputedStyle$1(F).position==="static";)F=getTrueOffsetParent(F,O);return F&&(getNodeName(F)==="html"||getNodeName(F)==="body"&&getComputedStyle$1(F).position==="static"&&!isContainingBlock(F))?z:F||getContainingBlock(D)||z}const getElementRects=async function(D){let{reference:O,floating:z,strategy:F}=D;const Y=this.getOffsetParent||getOffsetParent,W=this.getDimensions;return{reference:getRectRelativeToOffsetParent(O,await Y(z),F),floating:{x:0,y:0,...await W(z)}}};function isRTL(D){return getComputedStyle$1(D).direction==="rtl"}const platform$1={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(D,O){let z=null,F;const Y=getDocumentElement(D);function W(){clearTimeout(F),z&&z.disconnect(),z=null}function q(X,tt){X===void 0&&(X=!1),tt===void 0&&(tt=1),W();const{left:nt,top:st,width:ct,height:lt}=D.getBoundingClientRect();if(X||O(),!ct||!lt)return;const ht=floor(st),bt=floor(Y.clientWidth-(nt+ct)),wt=floor(Y.clientHeight-(st+lt)),mt=floor(nt),Et={rootMargin:-ht+"px "+-bt+"px "+-wt+"px "+-mt+"px",threshold:max$3(0,min$3(1,tt))||1};let At=!0;function Ct(Ft){const Lt=Ft[0].intersectionRatio;if(Lt!==tt){if(!At)return q();Lt?q(!1,Lt):F=setTimeout(()=>{q(!1,1e-7)},100)}At=!1}try{z=new IntersectionObserver(Ct,{...Et,root:Y.ownerDocument})}catch{z=new IntersectionObserver(Ct,Et)}z.observe(D)}return q(!0),W}function autoUpdate(D,O,z,F){F===void 0&&(F={});const{ancestorScroll:Y=!0,ancestorResize:W=!0,elementResize:q=typeof ResizeObserver=="function",layoutShift:X=typeof IntersectionObserver=="function",animationFrame:tt=!1}=F,nt=unwrapElement(D),st=Y||W?[...nt?getOverflowAncestors(nt):[],...getOverflowAncestors(O)]:[];st.forEach(_t=>{Y&&_t.addEventListener("scroll",z,{passive:!0}),W&&_t.addEventListener("resize",z)});const ct=nt&&X?observeMove(nt,z):null;let lt=-1,ht=null;q&&(ht=new ResizeObserver(_t=>{let[Et]=_t;Et&&Et.target===nt&&ht&&(ht.unobserve(O),cancelAnimationFrame(lt),lt=requestAnimationFrame(()=>{ht&&ht.observe(O)})),z()}),nt&&!tt&&ht.observe(nt),ht.observe(O));let bt,wt=tt?getBoundingClientRect(D):null;tt&&mt();function mt(){const _t=getBoundingClientRect(D);wt&&(_t.x!==wt.x||_t.y!==wt.y||_t.width!==wt.width||_t.height!==wt.height)&&z(),wt=_t,bt=requestAnimationFrame(mt)}return z(),()=>{st.forEach(_t=>{Y&&_t.removeEventListener("scroll",z),W&&_t.removeEventListener("resize",z)}),ct&&ct(),ht&&ht.disconnect(),ht=null,tt&&cancelAnimationFrame(bt)}}const computePosition=(D,O,z)=>{const F=new Map,Y={platform:platform$1,...z},W={...Y.platform,_c:F};return computePosition$1(D,O,{...Y,platform:W})};function t$1(D){return r$1(D)}function o$1(D){return D.assignedSlot?D.assignedSlot:D.parentNode instanceof ShadowRoot?D.parentNode.host:D.parentNode}function r$1(D){for(let O=D;O;O=o$1(O))if(O instanceof Element&&getComputedStyle(O).display==="none")return null;for(let O=o$1(D);O;O=o$1(O)){if(!(O instanceof Element))continue;const z=getComputedStyle(O);if(z.display!=="contents"&&(z.position!=="static"||z.filter!=="none"||O.tagName==="BODY"))return O}return null}function isVirtualElement(D){return D!==null&&typeof D=="object"&&"getBoundingClientRect"in D}var SlPopup=class extends ShoelaceElement{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(D){super.updated(D),D.has("active")&&(this.active?this.start():this.stop()),D.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const D=this.getRootNode();this.anchorEl=D.getElementById(this.anchor)}else this.anchor instanceof Element||isVirtualElement(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=autoUpdate(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(D=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>D())):D()})}reposition(){if(!this.active||!this.anchorEl)return;const D=[offset({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?D.push(size({apply:({rects:z})=>{const F=this.sync==="width"||this.sync==="both",Y=this.sync==="height"||this.sync==="both";this.popup.style.width=F?`${z.reference.width}px`:"",this.popup.style.height=Y?`${z.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&D.push(flip({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&D.push(shift({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?D.push(size({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:z,availableHeight:F})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${F}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${z}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&D.push(arrow({element:this.arrowEl,padding:this.arrowPadding}));const O=this.strategy==="absolute"?z=>platform$1.getOffsetParent(z,t$1):platform$1.getOffsetParent;computePosition(this.anchorEl,this.popup,{placement:this.placement,middleware:D,strategy:this.strategy,platform:__spreadProps(__spreadValues({},platform$1),{getOffsetParent:O})}).then(({x:z,y:F,middlewareData:Y,placement:W})=>{const q=getComputedStyle(this).direction==="rtl",X={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]];if(this.setAttribute("data-current-placement",W),Object.assign(this.popup.style,{left:`${z}px`,top:`${F}px`}),this.arrow){const tt=Y.arrow.x,nt=Y.arrow.y;let st="",ct="",lt="",ht="";if(this.arrowPlacement==="start"){const bt=typeof tt=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";st=typeof nt=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",ct=q?bt:"",ht=q?"":bt}else if(this.arrowPlacement==="end"){const bt=typeof tt=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";ct=q?"":bt,ht=q?bt:"",lt=typeof nt=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(ht=typeof tt=="number"?"calc(50% - var(--arrow-size-diagonal))":"",st=typeof nt=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(ht=typeof tt=="number"?`${tt}px`:"",st=typeof nt=="number"?`${nt}px`:"");Object.assign(this.arrowEl.style,{top:st,right:ct,bottom:lt,left:ht,[X]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sl-reposition")}render(){return x$1` + + +
+ + ${this.arrow?x$1``:""} +
+ `}};SlPopup.styles=popup_styles_default;__decorateClass([e$5(".popup")],SlPopup.prototype,"popup",2);__decorateClass([e$5(".popup__arrow")],SlPopup.prototype,"arrowEl",2);__decorateClass([n$3()],SlPopup.prototype,"anchor",2);__decorateClass([n$3({type:Boolean,reflect:!0})],SlPopup.prototype,"active",2);__decorateClass([n$3({reflect:!0})],SlPopup.prototype,"placement",2);__decorateClass([n$3({reflect:!0})],SlPopup.prototype,"strategy",2);__decorateClass([n$3({type:Number})],SlPopup.prototype,"distance",2);__decorateClass([n$3({type:Number})],SlPopup.prototype,"skidding",2);__decorateClass([n$3({type:Boolean})],SlPopup.prototype,"arrow",2);__decorateClass([n$3({attribute:"arrow-placement"})],SlPopup.prototype,"arrowPlacement",2);__decorateClass([n$3({attribute:"arrow-padding",type:Number})],SlPopup.prototype,"arrowPadding",2);__decorateClass([n$3({type:Boolean})],SlPopup.prototype,"flip",2);__decorateClass([n$3({attribute:"flip-fallback-placements",converter:{fromAttribute:D=>D.split(" ").map(O=>O.trim()).filter(O=>O!==""),toAttribute:D=>D.join(" ")}})],SlPopup.prototype,"flipFallbackPlacements",2);__decorateClass([n$3({attribute:"flip-fallback-strategy"})],SlPopup.prototype,"flipFallbackStrategy",2);__decorateClass([n$3({type:Object})],SlPopup.prototype,"flipBoundary",2);__decorateClass([n$3({attribute:"flip-padding",type:Number})],SlPopup.prototype,"flipPadding",2);__decorateClass([n$3({type:Boolean})],SlPopup.prototype,"shift",2);__decorateClass([n$3({type:Object})],SlPopup.prototype,"shiftBoundary",2);__decorateClass([n$3({attribute:"shift-padding",type:Number})],SlPopup.prototype,"shiftPadding",2);__decorateClass([n$3({attribute:"auto-size"})],SlPopup.prototype,"autoSize",2);__decorateClass([n$3()],SlPopup.prototype,"sync",2);__decorateClass([n$3({type:Object})],SlPopup.prototype,"autoSizeBoundary",2);__decorateClass([n$3({attribute:"auto-size-padding",type:Number})],SlPopup.prototype,"autoSizePadding",2);SlPopup.define("sl-popup");const _hoisted_1$7=["draggable"],_hoisted_2$6={id:"content"},_hoisted_3$4={key:0,class:"image-wrapper media-item"},_hoisted_4$4=["src"],_hoisted_5$3=["src"],_hoisted_6$3={key:2,id:"osd"},_hoisted_7$3=["manifest"],_hoisted_8$3=["manifest"],_hoisted_9$3={key:1},_hoisted_10$3=["draggable","onDragstart"],_hoisted_11$2=["data-id","src","onClick"],_hoisted_12$2=["src","onClick"],_hoisted_13$2=["manifest"],_hoisted_14$1={key:2},_hoisted_15$1=["slot","src","alt"],_hoisted_16={key:3,class:"media-item"},_hoisted_17={id:"html5-player",controls:""},_hoisted_18=["src","type"],_hoisted_19=["manifest"],_hoisted_20={key:4,class:"media-item"},_hoisted_21={key:0,id:"youtube-placeholder"},_hoisted_22={key:1,id:"ve-video-vimeo","data-vimeo-playsinline":"true"},_hoisted_23=["muted","autoplay","poster"],_hoisted_24=["src","type"],_hoisted_25=["manifest"],_hoisted_26=["total","current"],_hoisted_27=["innerHTML"],_hoisted_28=["innerHTML"],_hoisted_29=["src"],_sfc_main$9=defineComponent({__name:"MediaViewer.ce",props:{manifest:{type:String},src:{type:String},seq:{type:Number,default:1},annoBase:{type:String},base:{type:String},region:{type:String},size:{type:String},rotation:{type:String},quality:{type:String},format:{type:String},options:{type:String},alt:{type:String},caption:{type:String},fit:{type:String},entities:{type:String},zoomOnScroll:{type:Boolean},noCaption:{type:Boolean},noInfoIcon:{type:Boolean},editable:{type:Boolean},static:{type:Boolean},grid:{type:Boolean},cards:{type:Boolean},compare:{type:Boolean},small:{type:Boolean},position:{type:String},full:{type:Boolean},left:{type:Boolean},right:{type:Boolean},sticky:{type:Boolean},width:{type:String},height:{type:String},autoplay:{type:Boolean,default:!1},muted:{type:Boolean,default:!0},start:{type:Number},end:{type:Number},poster:{type:String},class:{type:String}},setup(D){function O(sn,En){var je;En.stopPropagation();let un=`https://iiif.juncture-digital.org/?manifest=${sn.id}`;(je=En.dataTransfer)==null||je.setData("text/uri-list",un)}const z=D,F=ref(null),Y=computed(()=>{var sn;return(sn=F==null?void 0:F.value)==null?void 0:sn.parentNode}),W=computed(()=>{var sn,En;return(En=(sn=F.value)==null?void 0:sn.getRootNode())==null?void 0:En.host}),q=computed(()=>{var sn;return(sn=Y.value)==null?void 0:sn.querySelector("#content")}),X=computed(()=>{var sn;return(sn=Y.value)==null?void 0:sn.querySelector("#outer")}),tt=computed(()=>{var sn;return(sn=Y.value)==null?void 0:sn.querySelector("#inner")}),nt=ref([]);onMounted(()=>lt());const st=z.position||(isMobile()?"full":z.right?"right":z.left?"left":"full");function ct(sn=16/9){z.sticky&&(makeSticky(W.value),tt.value.style.paddingTop="6px",X.value.style.paddingBottom="6px"),Ce.value=ze.value?Number((ze.value.width/ze.value.height).toFixed(4)):sn,W.value.classList.add("ve-component"),W.value.classList.add(st),st==="full"||(W.value.style.float=st,W.value.style.width="calc(50% - 12px)"),W.value.style.width=window.getComputedStyle(W.value).width,q.value&&(tt.value.style.width=isMobile()?"100%":z.width||"100%"),nextTick(()=>{if(pe.value=parseInt(window.getComputedStyle(q.value).width.slice(0,-2)),q.value.style.width=`${pe.value}px`,q.value.style.height=z.height||(we.value==="image-grid"?"":we.value==="audio"?"80px":`${Math.round((pe==null?void 0:pe.value)/Ce.value)}px`),ve.value=parseInt(window.getComputedStyle(q.value).height.slice(0,-2)),z.sticky&&st==="full"&&!(z.width||z.height)){let En=Math.round(window.innerHeight*.4),un=Math.ceil(En*Ce.value);we.value==="image"&&(q.value.style.height=`${En}px`),we.value!=="image-grid"&&tt.value.classList.add("drop-shadow"),tt.value.style.width=`${un}px`}nextTick(()=>{pe.value=parseInt(window.getComputedStyle(tt.value).width.slice(0,-2)),ve.value=parseInt(window.getComputedStyle(q.value).height.slice(0,-2))})})}function lt(){var sn;if(nt.value=z.entities?z.entities.split(/\s+/).filter(En=>En):[],z.src)if(((sn=z.src)==null?void 0:sn.indexOf("http"))===0){let En=new URL(z.src),un=En.hostname.replace(/^www\./,"");xe.has(un)?(we.value="video",en=!0,vn.value=En.searchParams.get("v"),nextTick(()=>Lr())):Ae.has(un)?(we.value="video",Fn=!0,vn.value=En.pathname.slice(1),nextTick(()=>Dr())):De.value=ge()}else De.value=ge();else De.value=ge();kt()}function ht(sn){const En=sn.target.parentElement;En&&(En.active=!En.active)}const bt=ref();watch$1(bt,()=>{if(bt.value){let sn=bt.value;setTimeout(()=>te(),100),sn.addHandler("viewport-change",()=>qt()),(z.base||z.annoBase)&&(Et.value=new Annotator(sn,z.base||z.annoBase,Ft.value));let En=sn.world.getItemAt(0);En?(z.rotation&&En.setRotation(parseInt(z.rotation),!0),En.getFullyLoaded()?mt():En.addHandler("fully-loaded-change",un=>{un.fullyLoaded&&mt()})):sn.world.addHandler("add-item",()=>{let un=sn.world.getItemAt(0);z.rotation&&un.setRotation(parseInt(z.rotation),!0),un.getFullyLoaded()?mt():un.addHandler("fully-loaded-change",je=>{je.fullyLoaded&&mt()})})}});let wt;function mt(sn){var je;let En=De.value[0],un=sha256(ze.value.id||ze.value["@id"]).slice(0,8);un!==wt&&(Et.value&&Et.value.loadAnnotations(un).then(gn=>At.value=gn),!wt&&En.seq===Pt.value&&En.region&&((je=bt.value)==null||je.viewport.fitBounds(parseRegionString(En.region,bt.value),!0)),wt=un)}function _t(sn){return getItemInfo(sn).format==="image/gif"}const Et=ref(),At=ref([]),Ct=ref(!1),Ft=ref(window.location.pathname.split("/")[1]==="editor"||z.editable);function Lt(){Ct.value=!Ct.value}watch$1(Ct,()=>{var En;Et.value.setVisible(Ct.value);let sn=(En=Y.value)==null?void 0:En.querySelector("#annotations-icon");Ft.value&&Ct.value?sn==null||sn.classList.add("editable"):sn==null||sn.classList.remove("editable")});const Yt=ref();let Ht=null;function qt(){Ht!==null&&(clearTimeout(Ht),Ht=null),Ht=window.setTimeout(()=>te(),100)}function te(){var En,un;const sn=bt&&((En=bt.value)==null?void 0:En.world.getItemAt(0));if(sn){let je=(un=bt.value)==null?void 0:un.viewport.getBounds();const gn=je?sn.viewportToImageRectangle(je):null;Yt.value=gn?`${Math.ceil(gn.x)},${Math.ceil(gn.y)},${Math.ceil(gn.width)},${Math.ceil(gn.height)}`:""}}const Xt=ref();watch$1(Y,()=>{var sn;Xt.value=(sn=Y.value)==null?void 0:sn.querySelector("#media-dialog")}),watch$1(Xt,sn=>{sn==null||sn.addEventListener("sl-after-hide",()=>Dt.value=null),sn==null||sn.addEventListener("sl-show",()=>{Xt.value&&(Xt.value.panel.style.width=isMobile()?"100%":`${Nt()}px`)})});const Dt=ref();watch$1(Dt,sn=>{var En,un;sn?(En=Xt.value)==null||En.show():(un=Xt.value)==null||un.hide()});function Qt(sn=null){Dt.value=Dt.value?null:sn.src||sn.id}function Nt(){var gn;let sn=Math.round(window.innerWidth-100),En=Math.round(window.innerHeight-150),un=((gn=Dt.value)==null?void 0:gn.indexOf("http"))===0?Dt.value:`https://iiif.juncture-digital.org/${Dt.value}/manifest.json`,je=Oe.value.find(In=>decodeURIComponent(In.id)===un);if(je){let In=getItemInfo(je),Hn=Number((In.width/In.height).toFixed(4));sn=Hn>=1?sn/Hn>En?sn=En*Hn:sn:Math.round(En*Hn)}return sn}const ce=ref(z.caption),Pt=ref(z.seq),de=ref(z.seq);function ye(sn){Pt.value=sn.detail}const pe=ref(0),ve=ref(0),Ce=ref(0),De=ref([]),Oe=ref([]),Je=ref(null),qe=ref(null),ze=ref(null),we=ref(null),Me=ref(null),He=computed(()=>Object.fromEntries(Oe.value.map(sn=>[sha256(decodeURIComponent(sn.id)).slice(0,8),sn])));watch$1(De,()=>{let sn=De.value.filter(En=>En.iiif).map(En=>En.src);loadManifests(sn).then(En=>{Oe.value=En,z.grid?we.value="image-grid":Oe.value.length>1&&(we.value=Oe.value.length===2?"image-compare":"image-grid")})}),watch$1(Oe,()=>{Je.value=Oe.value.length>0&&Oe.value[0],qe.value=De.value[0]}),watch$1(Je,()=>{de.value=imageCount(Je.value),ze.value=Je.value?getItemInfo(Je.value,Pt.value):null}),watch$1(Pt,()=>ze.value=Je.value?getItemInfo(Je.value,Pt.value):null);const Le=ref([]),Ye=computed(()=>{var sn;return(sn=ze.value)==null?void 0:sn.id}),Kt=computed(()=>{var En;let sn=(En=Ye.value)==null?void 0:En.split("#")[0].split(".").pop();return sn==="mp4"?"video/mp4":sn==="webm"?"video/webm":"application/ogg"});watch$1(ze,()=>{var sn,En;we.value=we.value||((En=(sn=ze.value)==null?void 0:sn.type)==null?void 0:En.split(":").pop().toLowerCase()),Me.value=(we==null?void 0:we.value.indexOf("image"))===0?ze.value.service?`${ze.value.service[0].id||ze.value.service[0]["@id"]}/info.json`:{url:ze.value.id,type:"image",buildPyramid:!0}:null,bt.value&&bt.value.open(Me.value),pe.value||nextTick(()=>ct())}),watch$1(we,()=>{Pn(),nextTick(()=>{we.value==="image"&&!_t(Je.value)&&!z.static?ke():(we.value==="video"&&De.value.length>0||we.value==="audio")&&Fo(),!ce.value&&we.value==="image"&&(ce.value=label(Je.value))})}),watch$1(ve,()=>{we.value==="image-compare"&&(Le.value=Pe())});function kt(){let sn=W.value.parentElement.querySelector("ve-media > ul, ve-media > span");if(sn){const En=je=>{for(let gn of je)gn.type==="childList"||gn.type;De.value=ge()};new MutationObserver(En).observe(sn,{childList:!0,subtree:!0,characterData:!0})}}const jt=RegExp(/^(?(pct:)?([0-9.]+,[0-9.]+,[0-9.]+,[0-9.]+)|full|square)(\/(?full|max|((pct:)?[\d,.!]+)))?(\/(?!?\d+))?(\/(?color|gray|bitonal|default))?(\/(?jpg|tif|png|gif|jp2|pdf|webp))?/),$t=RegExp(/^(?!?)(?0|90|180|270){1}/);function oe(sn){return jt.test(sn)}function Vt(sn){return/^[0-9]+$/.test(sn)}function Be(sn){return $t.test(sn)}function ge(){let sn=[],En=z.manifest||z.src,un=Array.from(W.value.querySelectorAll("li")).filter(je=>je.innerText.trim()!=="");if(!En&&un.length===0&&nt.value.length>0&&(En=`wd:${nt.value[0]}`),En){let je={};je.src=En,je.src=je.src.indexOf("http")===0?je.src:`https://iiif.juncture-digital.org/${je.src}/manifest.json`,je.id=sha256(je.src).slice(0,8);let In=new URL(je.src).hostname.replace(/^www\./,"");if(je.iiif=!xe.has(In)&&!Ae.has(In),z.options&&oe(z.options)){let Hn=z.options.match(jt);Hn&&(je={...je,...Hn.groups})}je.seq=z.seq,je.region=z.region||je.region,je.size=z.size||je.size,je.rotation=z.rotation||je.rotation,je.quality=z.quality||je.quality,je.format=z.format||je.format,je.fit=z.fit,sn.push(je)}else sn=un.map(je=>{var ci,Si;let gn=[],In=(ci=je.textContent)==null?void 0:ci.replace(/“/,'"').replace(/”/,'"').replace(/’/,"'").trim();(Si=In==null?void 0:In.match(/[^\s"]+|"([^"]*)"/gmi))==null||Si.forEach(si=>{gn.length>0&&gn[gn.length-1].indexOf("=")===gn[gn.length-1].length-1?gn[gn.length-1]=`${gn[gn.length-1]}${si}`:gn.push(si)});let Hn={};gn.length>0&&(Hn.src=gn[0].indexOf("http")===0?gn[0]:gn[0].indexOf("manifest")===0?`https://iiif.juncture-digital.org/${gn[0]}`:`https://iiif.juncture-digital.org/${gn[0]}/manifest.json`),Hn.id=sha256(decodeURIComponent(Hn.src)).slice(0,8);let Er=new URL(Hn.src),Or=Er.hostname.replace(/^www\./,"");xe.has(Or)?(Hn.youtube=!0,Hn.videoid=Er.searchParams.get("v")):Ae.has(Or)?Hn.vimeo=!0:Hn.iiif=!0,Hn.iiif=!xe.has(Or)&&!Ae.has(Or);for(let si=1;si0){let Co=mo.split("=");Hn[Co[0]]=Co[1]}else if(Vt(mo))Hn.seq=mo;else if(oe(mo)){let Co=mo.match(jt);Co&&(Hn={...Hn,...Co.groups})}else if(mo==="cover"||mo==="contain")Hn.fit=mo;else if(Be(mo)){let Co=mo.match($t);Co&&(Hn={...Hn,...Co.groups})}else mo==="mirror"?Hn.mirror=!0:Hn.caption=mo[0]==='"'&&mo[mo.length-1]==='"'?mo.slice(1,-1):mo}return Hn});return sn}function Pe(){let sn=pe.value,En=ve.value,un=Ce.value;return De.value.map((je,gn)=>{let In=getItemInfo(Oe.value[gn],je.seq),Hn,Er,Or,ci;je.region&&([Hn,Er,Or,ci]=je.region.split(":").pop().split(",").map(xs=>parseFloat(xs)),je.region.split(":")[0]==="pct"&&(Hn=Math.round(Hn*In.width/100),Er=Math.round(Er*In.height/100),Or=Math.round(Or*In.width/100),ci=Math.round(ci*In.height/100)));const Si=Or||In.width,si=ci||In.height,mo=Number((Si/si).toFixed(4));let Co=Si,Uo=si;mo>un?(Co=Math.round(si*un),Uo=Math.round(Co/un)):(Uo=Math.round(Si/un),Co=Math.round(Uo*un));let _r=In.service[0].id||In.service[0]["@id"];const Ir=(Hn||0)+Math.abs(Math.round((Co-Si)*.5)),$r=(Er||0)+Math.abs(Math.round((Uo-si)*.5));let er=`${Ir},${$r},${Co},${Uo}`;return`${_r}/${er}/${sn},${En}/${je.mirror?"!":""}${je.rotation||0}/${je.quality||"default"}.${je.format||"jpg"}`})}function ke(){bt.value=$e(),Fe(),Me.value&&bt.value.open(Me.value)}function $e(){var je;const un={element:((je=F.value)==null?void 0:je.parentNode).querySelector("#osd"),prefixUrl:"https://openseadragon.github.io/openseadragon/images/",homeFillsViewer:z.fit==="cover",showNavigationControl:!0,minZoomImageRatio:1,maxZoomPixelRatio:10,showRotationControl:!0,showHomeControl:!0,showZoomControl:!0,showFullPageControl:!0,showNavigator:!1,sequenceMode:!0,showReferenceStrip:!0,animationTime:.5,springStiffness:10,visibilityRatio:1,constrainDuringPan:!0};return OpenSeadragon(un)}function Fe(){z.zoomOnScroll||new OpenSeadragonViewerInputHook({viewer:bt.value,hooks:[{tracker:"viewer",handler:"scrollHandler",hookHandler:sn=>{var En;return!((En=bt.value)!=null&&En.isFullPage())&&!sn.originalEvent.ctrlKey&&(sn.preventDefaultAction=!0,sn.stopHandlers=!0),!0}}]})}function Qe(sn){navigator.clipboard&&navigator.clipboard.writeText(sn)}function We(sn){let En=sn.name.toLowerCase(),un=sn.value;return(En==="enter"||En==="exit")&&un.indexOf("|")>0&&([En,un]=un.split("|")),["zoom","zoomto"].indexOf(En.toLowerCase())===0||/^((pct:|pixel:|px:)?[\d.]+,[\d.]+,[\d.]+,[\d.]+)?\|?([0-9a-f]{8})?$/.test(un)}function rn(sn){let En=sn.name.toLowerCase(),un=sn.value;return(En==="enter"||En==="exit")&&un.indexOf("|")>0&&([En,un]=un.split("|")),En.toLowerCase()==="play"||/^([0-9:]+)+,?([0-9:]+)?$/.test(un)}function zn(sn){let En=sn.name.toLowerCase(),un=sn.value.toLowerCase();return En==="pause"||un==="pause"}const Bn=new Set(["anno","play","start","zoomto"]);function Pn(){Array.from(W.value.querySelectorAll("[enter],[exit]")).forEach(En=>{jn(En)&&Jn(En)});let sn=W.value.parentElement;for(;sn.parentElement&&sn.tagName!=="BODY";)sn=sn.parentElement;Array.from(sn.querySelectorAll("mark, ve-trigger")).forEach(En=>{let un=Array.from(En.attributes).find(je=>Bn.has(je.name));un&&jn(En.parentElement)&&(En.classList.add(un.name),En.addEventListener("click",()=>{(un==null?void 0:un.name)==="anno"?ne(un.value):(un==null?void 0:un.name)==="zoomto"?ie(un.value):(un==null?void 0:un.name)==="play"?rr(un.value):sr()}))})}function jn(sn){let En=sn.previousSibling;for(;En;){if(En.nodeName==="VE-MEDIA")return En===W.value?En:null;En=En.previousSibling}for(;sn.parentElement&&sn.tagName!=="MAIN";){sn=sn.parentElement;let un=sn.querySelector(":scope > ve-media, :scope > p > ve-media");if(un)return un===W.value?un:null}}function Jn(sn){let En=sn.classList.contains("active");new MutationObserver(je=>{je.forEach(gn=>{if(gn.attributeName=="class"){let In=gn.target.classList.contains("active");if(En!==In){En=In;let Hn=sn.attributes.getNamedItem(In?"enter":"exit");Hn&&(we.value==="image"&&We(Hn)&&ie(Hn.value),we.value!=="image"&&(rn(Hn)?rr(Hn.value):zn(Hn)&&sr()))}}})}).observe(sn,{attributes:!0})}function rr(sn){sn=sn.replace(/^play\|/i,"");const En=sn.match(/^([0-9:]+)+,?([0-9:]+)?$/);En&&io(En[1],En[2])}function sr(){tr()}let on="";function ie(sn){var un,je,gn,In,Hn,Er,Or;sn=sn.replace(/^zoomto\|/i,"");const En=sn==null?void 0:sn.match(/^(?(pct:|pixel:|px:)?[\d.]+,[\d.]+,[\d.]+,[\d.]+)?,?(?[0-9a-f]{8})?$/);if(En){let ci=(un=En==null?void 0:En.groups)==null?void 0:un.region,Si=(je=En==null?void 0:En.groups)==null?void 0:je.annoid;ci?(on===ci?((gn=bt.value)==null||gn.viewport.goHome(),on=""):(on=ci,(In=Et.value)==null||In.deselect(),(Hn=bt.value)==null||Hn.viewport.fitBounds(parseRegionString(ci,bt.value),!1)),Si&&Et.value.select(Si)):Si&&(((Er=Et.value.selected)==null?void 0:Er.id)===Si?Et.value.deselect():((Or=bt.value)==null||Or.viewport.goHome(),Si&&Et.value.select(Si)))}}function ne(sn){var un,je,gn,In,Hn;const En=sn==null?void 0:sn.match(/^(?[0-9a-f]{8})$/);if(En){let Er=(un=En==null?void 0:En.groups)==null?void 0:un.annoid;Er&&((je=Et.value.selected)==null?void 0:je.id)===Er?((gn=Et.value)==null||gn.deselect(),(In=bt.value)==null||In.viewport.goHome()):((Hn=bt.value)==null||Hn.viewport.goHome(),Et.value.select(Er))}}const xe=new Set(["youtube.com","youtube.co.uk","youtu.be"]),Ae=new Set(["vimeo.com"]);let Ve=null;const vn=ref(),Ge=ref(!0),Dn=ref(!1);let en=!1,Fn=!1,$n=!1,Kn=null,Wn=!0,mr={};function ir(){mr.value=Object.fromEntries(Array.from(W.value.parentElement.querySelectorAll("p[data-start]")).map(sn=>[uo(sn.dataset.start||"0"),sn]))}async function wr(sn){let un=`https://youtube.com/oembed?url=${encodeURI(`https://www.youtube.com/watch?v=${sn}`)}&format=json`,gn=await(await fetch(un)).json();return gn.aspect=gn.width/gn.height,gn}async function Lr(){let sn=await wr(vn.value);ir(),nextTick(()=>{ct(sn.aspect),nextTick(()=>{var gn;let En=(gn=Y.value)==null?void 0:gn.querySelector("#youtube-placeholder"),un=parseInt(window.getComputedStyle(En).width.slice(0,-2));En.style.height=`${un/sn.aspect}px`;let je={color:"white",rel:0,modestbranding:1,playsinline:1};Ve=YouTubePlayer(En,{videoId:vn.value,width:un,playerVars:je}),Ve.on("ready",In=>{xo(),z.autoplay&&io(`${z.start||""}`,`${z.end||""}`)})})})}async function Dr(){var En;ct();let sn=(En=Y.value)==null?void 0:En.querySelector("#ve-video-vimeo");Ve=new Player(sn,{id:vn.value,width:parseInt(window.getComputedStyle(sn).width.slice(0,-2))}),Ve.on("loaded",()=>{ct(sn.clientWidth/sn.clientHeight-5),xo()})}function Fo(){ir(),$n=!0,nextTick(()=>{var sn;Ve=(sn=Y.value)==null?void 0:sn.querySelector("#html5-player"),xo()}),ct()}async function xo(){let sn=W.value.parentElement.querySelector("ve-media"),En=!1;setInterval(async()=>{if(Ge.value=await Un(),Dn.value=await go(),Dn.value&&z.sticky&&Object.keys(mr.value).length>0&&!En){let un=sn.getBoundingClientRect().top+window.scrollY-top$1();window.scrollTo(0,un),En=!0}Dn.value&&Cr().then(un=>{if(un=Math.round(un),mr.value[un]){let gn=mr.value[un].getBoundingClientRect();window.scrollTo(0,gn.top+window.scrollY-sn.getBoundingClientRect().bottom)}})},1e3)}function tr(){en?Ve.pauseVideo():(Fn||$n)&&Ve.pause()}async function Cr(){if(en)return Ve.getCurrentTime();if(Fn)return await Ve.getCurrentTime();if($n)return Ve.currentTime}async function go(){return en?await Ve.getPlayerState()===1:Fn?!(await Ve.getEnded()||await Ve.getPaused()):$n?!(Ve.ended||Ve.paused):!1}async function Un(){return en?await Ve.isMuted():Fn?await Ve.getMuted():await z.muted}function zi(sn){en?sn?Ve.mute():Ve.unMute():Fn?Ve.setMuted(sn):$n&&(Ve.muted=sn)}function uo(sn){var En=sn.split(":").slice(0,3).map(gn=>parseInt(gn,10));let un=0,je=1;for(;En.length>0;){let gn=En.pop()||0;un+=je*gn,je*=60}return un}function io(sn,En=""){let un=uo(sn),je=En?uo(En)+1:-1;Kn&&(clearTimeout(Kn),Kn=null);let gn=Ge.value;if(en?(Ve.playVideo(),Ve.seekTo(un).then(In=>{je>=un&&(Kn=setTimeout(()=>{Ve.pauseVideo().then(Hn=>{Kn=null,!gn&&Wn&&zi(!1)})},je===un?200:(je-un)*1e3))})):Fn?(Ve.setCurrentTime(un),Ve.play().then(In=>{je>=un&&(Kn=setTimeout(()=>{Ve.pause().then(Hn=>{Kn=null,!gn&&Wn&&zi(!1)})},je===un?200:(je-un)*1e3))})):$n&&setTimeout(()=>{Ve.play(),Ve.currentTime=un,je>=un&&(Kn=setTimeout(()=>{Kn=null,Ve.pause(),!gn&&Wn&&zi(!1)},je===un?200:(je-un)*1e3))},200),mr.value[un]){let Hn=mr.value[un].getBoundingClientRect(),Er=W.value.parentElement.querySelector("ve-media");window.scrollTo(0,Hn.top+window.scrollY-Er.getBoundingClientRect().bottom)}}return(sn,En)=>{const un=resolveComponent("sl-image-comparer"),je=resolveComponent("sl-icon-button"),gn=resolveComponent("sl-badge"),In=resolveComponent("sl-button"),Hn=resolveComponent("sl-dialog");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",mergeProps({ref_key:"root",ref:F},sn.$attrs),null,16),createBaseVNode("div",{id:"outer",class:normalizeClass(Ft.value?"edit":"view"),draggable:we.value==="image",onDragstart:En[2]||(En[2]=Er=>O(Je.value,Er))},[createBaseVNode("div",{id:"inner",class:normalizeClass(we.value)},[createBaseVNode("div",_hoisted_2$6,[we.value==="image"?(openBlock(),createElementBlock("div",_hoisted_3$4,[_t(Oe.value[0])?(openBlock(),createElementBlock("ve-gif",{key:0,src:ze.value.id,alt:"Animated GIF","initially-paused":"","restart-on-play":""},null,8,_hoisted_4$4)):D.static?(openBlock(),createElementBlock("img",{key:1,src:unref(staticImage)(Je.value,qe.value,pe.value),style:{width:"100%"},onClick:En[0]||(En[0]=Er=>Qt(Je.value))},null,8,_hoisted_5$3)):(openBlock(),createElementBlock("div",_hoisted_6$3)),z.noInfoIcon?createCommentVNode("",!0):(openBlock(),createElementBlock("ve-manifest-popup",{key:3,manifest:Oe.value[0].id},null,8,_hoisted_7$3))])):we.value==="image-grid"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(`grid-wrapper${z.small?" small":""}`)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(De.value,(Er,Or)=>(openBlock(),createElementBlock(Fragment,null,[z.cards?(openBlock(),createElementBlock("ve-media-card",{key:0,style:{width:"100%",height:"100%"},manifest:Er.src},null,8,_hoisted_8$3)):(openBlock(),createElementBlock("div",_hoisted_9$3,[createBaseVNode("div",{class:"media-item",draggable:we.value==="image",onDragstart:ci=>O(He.value[Er.id],ci)},[Er.iiif?(openBlock(),createElementBlock("img",{key:0,"data-id":Er.id,src:unref(thumbnail)(He.value[Er.id],400,Er.seq||1),onClick:ci=>Qt(Er)},null,8,_hoisted_11$2)):Er.youtube?(openBlock(),createElementBlock("img",{key:1,src:`https://img.youtube.com/vi/${Er.videoid}/0.jpg`,onClick:ci=>Qt(Er)},null,8,_hoisted_12$2)):createCommentVNode("",!0),Er.iiif?(openBlock(),createElementBlock("ve-manifest-popup",{key:2,manifest:Er.src},null,8,_hoisted_13$2)):createCommentVNode("",!0)],40,_hoisted_10$3)]))],64))),256))],2)):we.value==="image-compare"?(openBlock(),createElementBlock("div",_hoisted_14$1,[createVNode(un,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Le.value,(Er,Or)=>(openBlock(),createElementBlock("img",{key:`img-${Or}`,slot:Or===0?"before":"after",src:Er,alt:unref(label)(Oe.value[Or])},null,8,_hoisted_15$1))),128))]),_:1})])):we.value==="audio"?(openBlock(),createElementBlock("div",_hoisted_16,[createBaseVNode("audio",_hoisted_17,[createBaseVNode("source",{src:Ye.value,type:Kt.value},null,8,_hoisted_18)]),z.noInfoIcon?createCommentVNode("",!0):(openBlock(),createElementBlock("ve-manifest-popup",{key:0,manifest:Oe.value[0].id},null,8,_hoisted_19))])):we.value==="video"?(openBlock(),createElementBlock("div",_hoisted_20,[unref(en)?(openBlock(),createElementBlock("div",_hoisted_21)):unref(Fn)?(openBlock(),createElementBlock("div",_hoisted_22)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("video",{id:"html5-player",controls:"",playsinline:"",muted:z.muted,autoplay:z.autoplay,poster:z.poster},[createBaseVNode("source",{src:Ye.value,type:Kt.value},null,8,_hoisted_24)],8,_hoisted_23),z.noInfoIcon?createCommentVNode("",!0):(openBlock(),createElementBlock("ve-manifest-popup",{key:0,manifest:Oe.value[0].id},null,8,_hoisted_25))],64))])):createCommentVNode("",!0)]),we.value==="image"&&de.value>1?(openBlock(),createElementBlock("ve-pager",{key:0,total:de.value,current:Pt.value,onImageSelected:ye},null,40,_hoisted_26)):createCommentVNode("",!0),ce.value&&!z.noCaption?(openBlock(),createElementBlock("div",{key:1,id:"caption-bar",onClick:ht},[we.value==="image"?(openBlock(),createElementBlock("div",{key:0,id:"annotations-icon",class:"button-icon-with-badge",onClick:Lt},[Ft.value?(openBlock(),createElementBlock(Fragment,{key:0},[Ct.value?(openBlock(),createBlock(je,{key:0,name:"chat-square",label:"Hide annotations"})):(openBlock(),createBlock(je,{key:1,name:"pencil",label:"Edit annotations"})),!Ct.value&&At.value.length>0?(openBlock(),createBlock(gn,{key:2,variant:"danger",pill:""},{default:withCtx(()=>[createTextVNode(toDisplayString(At.value.length),1)]),_:1})):createCommentVNode("",!0)],64)):At.value.length>0?(openBlock(),createElementBlock(Fragment,{key:1},[Ct.value?(openBlock(),createBlock(je,{key:0,name:"chat-square",label:"Hide annotations"})):(openBlock(),createBlock(je,{key:1,name:"chat-square-text",label:"Show annotations"})),Ct.value?createCommentVNode("",!0):(openBlock(),createBlock(gn,{key:2,variant:"danger",pill:""},{default:withCtx(()=>[createTextVNode(toDisplayString(At.value.length),1)]),_:1}))],64)):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",{class:"label",innerHTML:ce.value},null,8,_hoisted_27)])):createCommentVNode("",!0),Yt.value?(openBlock(),createElementBlock("div",{key:2,id:"coords",innerHTML:Yt.value,onClick:En[1]||(En[1]=Er=>Qe(Yt.value||""))},null,8,_hoisted_28)):createCommentVNode("",!0)],2),createVNode(Hn,{id:"media-dialog","no-header":"",style:{"--body-spacing":"0","--footer-spacing":"0"}},{default:withCtx(()=>[Dt.value?(openBlock(),createElementBlock("ve-media",{key:0,src:Dt.value,"zoom-on-scroll":""},null,8,_hoisted_29)):createCommentVNode("",!0),createVNode(In,{slot:"footer",class:"close",onClick:Qt,variant:"primary"},{default:withCtx(()=>[createTextVNode("Close")]),_:1})]),_:1})],42,_hoisted_1$7)],64)}}}),_style_0$6=`.r6o-editor{top:0;left:0;margin-left:-19px}.a9s-annotationlayer{position:absolute;top:0;left:0;width:100%;height:100%;outline:none;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.a9s-annotationlayer.no-cursor,.a9s-annotationlayer.no-cursor *{cursor:none!important}.a9s-crosshair line{stroke-width:1px;stroke:#00000080;pointer-events:none;vector-effect:non-scaling-stroke;shape-rendering:crispEdges}.a9s-selection-mask{stroke:none;fill:transparent;pointer-events:none}.a9s-annotation rect,.a9s-annotation circle,.a9s-annotation ellipse,.a9s-annotation path,.a9s-annotation polygon,.a9s-annotation line,.a9s-selection rect,.a9s-selection circle,.a9s-selection ellipse,.a9s-selection path,.a9s-selection polygon,.a9s-selection line{fill:transparent;cursor:pointer;vector-effect:non-scaling-stroke}.a9s-annotation .a9s-inner,.a9s-selection .a9s-inner{stroke:#fff;stroke-width:1px;fill:transparent}.a9s-annotation .a9s-inner:hover,.a9s-selection .a9s-inner:hover{stroke:#fff000}.a9s-annotation .a9s-outer,.a9s-selection .a9s-outer{stroke:#000000b3;stroke-width:3px;fill:none}.a9s-annotation .a9s-formatter-el,.a9s-selection .a9s-formatter-el{overflow:visible}.a9s-annotation.a9s-point .a9s-inner{display:none}.a9s-annotation.a9s-point .a9s-outer{stroke:#5a5a5a;stroke-width:1.5px;fill:#ffffff80}.a9s-annotation.a9s-point .a9s-outer:hover{fill:#fff000}.a9s-annotation.selected .a9s-inner,.a9s-selection .a9s-inner{stroke:#fff000}.a9s-annotation.editable .a9s-inner{stroke:#fff000;cursor:move!important}.a9s-annotation.editable .a9s-inner:hover{fill:#fff0001a}.a9s-handle{cursor:move}.a9s-handle .a9s-handle-inner{stroke:#fff000;fill:#000}.a9s-handle .a9s-handle-outer{stroke:#000;fill:#fff}.a9s-handle:hover .a9s-handle-inner{fill:#fff000}.r6o-btn{background-color:#4483c4;border:1px solid #4483c4;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-size:14px;margin:0;outline:none;text-decoration:none;white-space:nowrap;padding:6px 18px;min-width:70px;vertical-align:middle;border-radius:2px}.r6o-btn *{vertical-align:middle;cursor:pointer}.r6o-btn .r6o-icon{margin-right:4px}.r6o-btn:disabled{border-color:#a3c2e2!important;background-color:#a3c2e2!important}.r6o-btn:hover{background-color:#4f92d7;border-color:#4f92d7}.r6o-btn.outline{border:1px solid #4483c4;color:#4483c4;background-color:transparent;text-shadow:none}.r6o-autocomplete{display:inline;position:relative}.r6o-autocomplete div[role=combobox]{display:inline}.r6o-autocomplete input{outline:none;border:none;width:80px;height:100%;line-height:14px;white-space:pre;box-sizing:border-box;background-color:transparent;font-size:14px;color:#3f3f3f}.r6o-autocomplete ul{position:absolute;margin:0;padding:0;list-style-type:none;background-color:#fff;border-radius:3px;border:1px solid #d6d7d9;box-sizing:border-box;box-shadow:0 0 20px #00000040}.r6o-autocomplete ul:empty{display:none}.r6o-autocomplete li{box-sizing:border-box;padding:2px 12px;width:100%;cursor:pointer}.r6o-editable-text{max-height:120px;overflow:auto;outline:none;min-height:2em;font-size:14px;font-family:Lato,sans-serif}.r6o-editable-text:empty:not(:focus):before{content:attr(data-placeholder);color:#c2c2c2}.r6o-widget.comment{font-size:14px;min-height:3em;background-color:#fff;position:relative}.r6o-widget.comment .r6o-editable-text,.r6o-widget.comment .r6o-readonly-comment{padding:10px;width:100%;box-sizing:border-box;outline:none;border:none;background-color:transparent;resize:none}.r6o-widget.comment .r6o-readonly-comment{white-space:pre-line}.r6o-widget.comment .r6o-editable-text::-webkit-input-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-editable-text::-moz-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-editable-text:-moz-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-editable-text:-ms-input-placeholder{color:#c2c2c2}.r6o-widget.comment .r6o-lastmodified{border:1px solid #e5e5e5;display:inline-block;border-radius:2px;margin:0 10px 8px;padding:4px 5px;line-height:100%;font-size:12px}.r6o-widget.comment .r6o-lastmodified .r6o-lastmodified-at{color:#757575;padding-left:3px}.r6o-widget.comment .r6o-arrow-down{position:absolute;height:20px;width:20px;top:9px;right:9px;line-height:22px;background-color:#fff;text-align:center;-webkit-font-smoothing:antialiased;border:1px solid #e5e5e5;cursor:pointer;border-radius:1px}.r6o-widget.comment .r6o-arrow-down.r6o-menu-open{border-color:#4483c4}.r6o-widget.comment .r6o-comment-dropdown-menu{position:absolute;top:32px;right:8px;background-color:#fff;border:1px solid #e5e5e5;list-style-type:none;margin:0;padding:5px 0;z-index:9999;box-shadow:0 2px 4px #0003}.r6o-widget.comment .r6o-comment-dropdown-menu li{padding:0 15px;cursor:pointer}.r6o-widget.comment .r6o-comment-dropdown-menu li:hover{background-color:#ecf0f1}.r6o-widget.comment .r6o-purposedropdown{position:relative;z-index:2}.r6o-widget.comment.editable{background-color:#ecf0f1}.r6o-widget.r6o-tag:empty{display:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.r6o-widget.tag .r6o-taglist li{height:27px}.r6o-widget.tag .r6o-taglist li .r6o-delete-wrapper .r6o-delete{position:relative;top:-4px}}.r6o-widget.r6o-tag{background-color:#ecf0f1;border-bottom:1px solid #e5e5e5;padding:1px 3px;display:flex}.r6o-widget.r6o-tag ul{margin:0;padding:0;list-style-type:none;z-index:1}.r6o-widget.r6o-tag ul.r6o-taglist{flex:0;white-space:nowrap}.r6o-widget.r6o-tag ul.r6o-taglist li{display:inline-block;margin:1px 1px 1px 0;padding:0;vertical-align:middle;overflow:hidden;font-size:12px;background-color:#fff;border:1px solid #d6d7d9;cursor:pointer;position:relative;line-height:180%;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:2px;box-shadow:0 0 4px #0000001a}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-label{padding:2px 8px;display:inline-block}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper{display:inline-block;padding:2px 0;color:#fff;width:0;height:100%;background-color:#4483c4;-webkit-border-top-right-radius:2px;-webkit-border-bottom-right-radius:2px;-khtml-border-radius-topright:2px;-khtml-border-radius-bottomright:2px;-moz-border-radius-topright:2px;-moz-border-radius-bottomright:2px;border-top-right-radius:2px;border-bottom-right-radius:2px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper .r6o-delete{padding:2px 6px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper svg{vertical-align:text-top}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-enter-active{width:24px;transition:width .2s}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-enter-done,.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-exit{width:24px}.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-exit-active{width:0;transition:width .2s}.r6o-widget.r6o-tag .r6o-autocomplete{flex:1;position:relative}.r6o-widget.r6o-tag .r6o-autocomplete li{font-size:14px}.r6o-widget.r6o-tag input{width:100%;padding:0 3px;min-width:80px;outline:none;border:none;line-height:170%;background-color:transparent;color:#3f3f3f}.r6o-widget.r6o-tag input::-webkit-input-placeholder{color:#c2c2c2}.r6o-widget.r6o-tag input::-moz-placeholder{color:#c2c2c2}.r6o-widget.r6o-tag input:-moz-placeholder{color:#c2c2c2}.r6o-widget.r6o-tag input:-ms-input-placeholder{color:#c2c2c2}.r6o-editor{position:absolute;z-index:99999;width:400px;color:#3f3f3f;opacity:0;font-family:Lato,sans-serif;font-size:17px;line-height:27px;transition:opacity .2s ease-in}.r6o-editor .r6o-arrow{position:absolute;overflow:hidden;top:-12px;left:12px;width:28px;height:12px;display:none}.r6o-editor .r6o-arrow:after{content:"";position:absolute;top:5px;left:5px;width:18px;height:18px;background-color:#fff;-webkit-backface-visibility:hidden;transform:rotate(45deg)}.r6o-editor .r6o-editor-inner{background-color:#fff;border-radius:2px;box-shadow:2px 2px 42px #0006}.r6o-editor .r6o-editor-inner .r6o-widget:first-child{-webkit-border-top-left-radius:2px;-webkit-border-top-right-radius:2px;-khtml-border-radius-topleft:2px;-khtml-border-radius-topright:2px;-moz-border-radius-topleft:2px;-moz-border-radius-topright:2px;border-top-left-radius:2px;border-top-right-radius:2px}.r6o-editor .r6o-editor-inner .r6o-widget{border-bottom:1px solid #e5e5e5}.r6o-editor .r6o-footer{position:relative;text-align:right;padding:8px 0}.r6o-editor .r6o-footer .r6o-btn{margin-right:8px}.r6o-editor .r6o-footer .r6o-btn.delete-annotation{position:absolute;top:7px;left:7px;background-color:transparent;border:none;color:#4483c4;width:32px;height:32px;min-width:0;border-radius:100%;padding:0;display:flex;justify-content:center;align-items:center;transition:all .1s ease-in}.r6o-editor .r6o-footer .r6o-btn.delete-annotation:hover{color:#fff;background-color:#ef352c}@media (max-width: 640px){.r6o-editor{width:260px}}.r6o-editor.r6o-arrow-top .r6o-arrow{display:block}.r6o-editor.r6o-arrow-right{margin-left:8px}.r6o-editor.r6o-arrow-right .r6o-arrow{left:auto;right:12px}.r6o-editor.r6o-arrow-bottom .r6o-arrow{display:block;top:auto;bottom:-12px}.r6o-editor.r6o-arrow-bottom .r6o-arrow:after{top:-11px;box-shadow:none}.r6o-editor.pushed .r6o-arrow,.r6o-editor.dragged .r6o-arrow{display:none}.r6o-editor .r6o-draggable{cursor:move}.r6o-purposedropdown{width:150px;display:inline-block}.r6o-noselect{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.a9s-annotation.hover .a9s-inner{stroke:#fff000}.a9s-annotation:not(.hover):hover .a9s-inner{stroke:#fff}*{box-sizing:border-box}:host{display:block;padding-bottom:6px;background-color:inherit}.info-icon{position:absolute;top:12px;right:12px;width:24px;height:24px;font-size:20px;border:2px solid rgba(255,255,255,.8);border-radius:50%;background-color:#fff;display:flex;justify-content:center;visibility:hidden}.media-item:hover .info-icon{visibility:visible;transition:all .3s ease-in}.manifest-popover{background-color:#fff;border-radius:6px;width:300px;height:400px;overflow-y:scroll;box-shadow:#32325d40 0 6px 12px -2px,#0000004d 0 3px 7px -3px}#outer{position:relative;width:100%;background-color:inherit;display:flex;justify-items:center;margin-bottom:12px}#inner{margin:auto;width:100%}#inner.image,.drop-shadow{box-shadow:#32325d40 0 6px 12px -2px,#0000004d 0 3px 7px -3px}#content{width:100%}#osd,video{width:100%;height:100%}#caption-bar{display:flex;gap:6px;width:100%;align-items:center;height:32px;background-color:#555}#caption-bar .label{color:#fff;padding:0 9px;font-size:1.1rem;width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;cursor:pointer}.image-wrapper{position:relative;height:100%;width:100%}.grid-wrapper{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-auto-rows:1fr;grid-gap:18px;align-items:flex-start;justify-items:center}.grid-wrapper.small{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:1fr;grid-gap:18px;align-items:flex-start;justify-items:center}.grid-wrapper>.caption{display:flex;align-items:center;font-family:sans-serif;width:100%;background:rgba(0,0,0,.7);color:#fff;padding:4px 6px;bottom:0;height:32px;margin-top:6px}.grid-wrapper img{border:1px solid #ccc;box-shadow:2px 2px 6px #0000004d;max-width:100%;cursor:pointer}#coords{position:absolute;display:flex;align-items:center;justify-content:flex-end;font-family:sans-serif;bottom:0;right:0;width:130px;height:32px;padding:3px 6px;font-size:.8rem;background-color:#ffffff80;color:#000;z-index:2;opacity:0;text-align:right}#coords:hover{visibility:visible;opacity:1;transition:all .3s ease-in;cursor:copy}.info-icon span{position:absolute;top:20px;right:20px;font-size:24px;z-index:2;opacity:0;border-radius:50%;border:1px solid white;background-color:#0003}.media-item{position:relative}.media-item:hover .info-icon span{visibility:visible;opacity:1;transition:all .3s ease-in;cursor:pointer;color:#fff}.info-icon:hover svg{fill:#000}.view .r6o-footer{display:none}.r6o-widget.comment .r6o-readonly-comment{display:inline;padding:0}.view .r6o-editor,.view .r6o-editor-inner,.view .r6o-widget{display:inline-block;min-height:unset!important;line-height:1.4;padding:0;border-bottom:none}.r6o-tag,.comment.editable:nth-of-type(2){display:none!important}.edit .r6o-editor{width:216px}.r6o-widget.comment{padding:6px 6px 4px;border-radius:4px}svg.a9s-annotationlayer .a9s-selection .a9s-inner,svg.a9s-annotationlayer .a9s-annotation .a9s-inner{stroke-width:3;stroke:#ff0}ul.annotations{list-style:none;padding-left:0}.annotations li{display:flex;align-items:center;gap:6px;padding:6px 0}.annotations li:hover{background-color:#fff3;cursor:pointer}.compare{height:100%;width:100%;position:relative;overflow:hidden;border:5px solid #bfc0c1;box-shadow:-3px 5px 15px #000}.compare img{width:100%;height:100%;position:absolute}#compare-img-2{-webkit-clip-path:polygon(0 0,50% 0,50% 100%,0 100%);clip-path:polygon(0 0,50% 0,50% 100%,0 100%)}#slider{position:relative;-webkit-appearance:none;width:calc(100% + 40px);height:100%;margin-left:-20px;background-color:transparent;outline:none}#slider::-webkit-slider-thumb{-webkit-appearance:none;height:45px;width:45px;background:rgba(255,255,255,.3);border:4px solid white;border-radius:50%;background-size:contain;cursor:pointer}audio#html5-player{width:calc(100% - 60px);max-width:50vh}.buttons{display:flex;align-items:center;justify-content:center;padding:12px}.close{font-size:14px;font-weight:700;padding:6px}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer}.popup-overview sl-popup{--arrow-color: var(--sl-color-primary-600)}.popup-overview span[slot=anchor]{display:inline-block;width:150px;height:150px;border:dashed 2px var(--sl-color-neutral-600);margin:50px}.popup-overview .box{width:100px;height:50px;background:var(--sl-color-primary-600);border-radius:var(--sl-border-radius-medium)}.popup-overview-options{display:flex;flex-wrap:wrap;align-items:end;gap:1rem}.popup-overview-options sl-select{width:160px}.popup-overview-options sl-input{width:100px}.popup-overview-options+.popup-overview-options{margin-top:1rem}sl-popup{--arrow-color: var(--sl-color-primary-600)}.media-item .box{width:300px;height:600px;background:white;border-radius:var(--sl-border-radius-medium)}#annotations-icon{position:relative;cursor:pointer}#annotations-icon sl-icon-button::part(base){color:#fff;font-size:1.2rem;padding:3px}.button-icon-with-badge{display:inline-block;position:relative;margin:0 6px}.button-icon-with-badge sl-badge{position:absolute;left:70%;top:0;cursor:pointer}.button-icon-with-badge sl-badge::part(base){font-size:.7rem;background-color:#ff0;color:#000;font-weight:700;padding:4px 5px 1px;border:unset}#youtube-placeholder,#ve-video-vimeo{width:100%}ve-manifest-popup{position:absolute;top:12px;right:12px;visibility:hidden;opacity:0;cursor:pointer}.media-item:hover ve-manifest-popup{visibility:visible;opacity:.8;transition:all .5s ease-in} +`,MediaViewer=_export_sfc(_sfc_main$9,[["styles",[_style_0$6]]]);/* + * Util + * @version: 1.3.0 + * @author: HtmlStream + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 Htmlstream + */const MenuSearchHistory={historyIndex:-1,addHistory(D){this.historyIndex=D},existsInHistory(D){return D>this.historyIndex},clearHistory(){this.historyIndex=-1}};/* + * HSDropdown + * @version: 1.3.0 + * @author: HtmlStream + * @requires: @popperjs/core ^2.11.2 + * @license: Licensed under MIT (https://preline.co/docs/license.html) + * Copyright 2023 Htmlstream + */const isIOS=()=>/iPad|iPhone|iPod/.test(navigator.platform)?!0:navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),isIpadOS=()=>navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform);class HSDropdown extends Component{constructor(z){super(".hs-dropdown");F1(this,"root");this.root=z,this.positions={top:"top","top-left":"top-start","top-right":"top-end",bottom:"bottom","bottom-left":"bottom-start","bottom-right":"bottom-end",right:"right","right-top":"right-start","right-bottom":"right-end",left:"left","left-top":"left-start","left-bottom":"left-end"},this.absoluteStrategyModifiers=F=>[{name:"applyStyles",fn:Y=>{const W=(window.getComputedStyle(F).getPropertyValue("--strategy")||"absolute").replace(" ",""),q=(window.getComputedStyle(F).getPropertyValue("--adaptive")||"adaptive").replace(" ","");Y.state.elements.popper.style.position=W,Y.state.elements.popper.style.transform=q==="adaptive"?Y.state.styles.popper.transform:null,Y.state.elements.popper.style.top=null,Y.state.elements.popper.style.bottom=null,Y.state.elements.popper.style.left=null,Y.state.elements.popper.style.right=null,Y.state.elements.popper.style.margin=0}},{name:"computeStyles",options:{adaptive:!1}}],this._history=MenuSearchHistory}init(){this.root.addEventListener("click",z=>{const F=z.target,Y=F.closest(this.selector),W=F.closest(".hs-dropdown-menu");if((!Y||!Y.classList.contains("open"))&&this._closeOthers(Y),W){const q=(window.getComputedStyle(Y).getPropertyValue("--auto-close")||"").replace(" ","");if((q=="false"||q=="inside")&&!Y.parentElement.closest(this.selector))return}Y&&(Y.classList.contains("open")?this.close(Y):this.open(Y))}),this.root.addEventListener("mousemove",z=>{const F=z.target,Y=F.closest(this.selector);if(F.closest(".hs-dropdown-menu"),Y){const W=(window.getComputedStyle(Y).getPropertyValue("--trigger")||"click").replace(" ","");if(W!=="hover")return;(!Y||!Y.classList.contains("open"))&&this._closeOthers(Y),W==="hover"&&!Y.classList.contains("open")&&!isIOS()&&!isIpadOS()&&this._hover(F)}}),this.root.addEventListener("keydown",this._keyboardSupport.bind(this)),window.addEventListener("resize",()=>{this.root.querySelectorAll(".hs-dropdown.open").forEach(F=>{this.close(F,!0)})})}_closeOthers(z=null){this.root.querySelectorAll(`${this.selector}.open`).forEach(Y=>{if(z&&z.closest(".hs-dropdown.open")===Y)return;const W=(window.getComputedStyle(Y).getPropertyValue("--auto-close")||"").replace(" ","");W=="false"||W=="outside"||this.close(Y)})}_hover(z){const F=z.closest(this.selector);this.open(F);const Y=W=>{(!W.target.closest(this.selector)||W.target.closest(this.selector)===F.parentElement.closest(this.selector))&&(this.close(F),this.root.removeEventListener("mousemove",Y,!0))};this.root.addEventListener("mousemove",Y,!0)}close(z,F=!1){const Y=z.querySelector(".hs-dropdown-menu"),W=()=>{z.classList.contains("open")||(Y.classList.remove("block"),Y.classList.add("hidden"),Y.style.inset=null,Y.style.position=null,z._popper&&z._popper.destroy())};F||this.afterTransition(z.querySelector("[data-hs-dropdown-transition]")||Y,()=>{W()}),Y.style.margin=null,z.classList.remove("open"),F&&W(),this._fireEvent("close",z),this._dispatch("close.hs.dropdown",z,z),Y.querySelectorAll(".hs-dropdown.open").forEach(X=>{this.close(X,!0)})}open(z){const F=z.querySelector(".hs-dropdown-menu"),Y=(window.getComputedStyle(z).getPropertyValue("--placement")||"").replace(" ",""),W=(window.getComputedStyle(z).getPropertyValue("--strategy")||"fixed").replace(" ","");(window.getComputedStyle(z).getPropertyValue("--adaptive")||"adaptive").replace(" ","");const q=parseInt((window.getComputedStyle(z).getPropertyValue("--offset")||"10").replace(" ",""));if(W!=="static"){z._popper&&z._popper.destroy();const X=createPopper(z,F,{placement:this.positions[Y]||"bottom-start",strategy:W,modifiers:[...W!=="fixed"?this.absoluteStrategyModifiers(z):[],{name:"offset",options:{offset:[0,q]}}]});z._popper=X}F.style.margin=null,F.classList.add("block"),F.classList.remove("hidden"),setTimeout(()=>{z.classList.add("open")}),this._fireEvent("open",z),this._dispatch("open.hs.dropdown",z,z)}_keyboardSupport(z){const F=this.root.querySelector(".hs-dropdown.open");if(F){if(z.keyCode===27)return z.preventDefault(),this._esc(F);if(z.keyCode===40)return z.preventDefault(),this._down(F);if(z.keyCode===38)return z.preventDefault(),this._up(F);if(z.keyCode===36)return z.preventDefault(),this._start(F);if(z.keyCode===35)return z.preventDefault(),this._end(F);this._byChar(F,z.key)}}_esc(z){this.close(z)}_up(z){const F=z.querySelector(".hs-dropdown-menu"),Y=[...F.querySelectorAll("a")].reverse().filter(X=>!X.disabled),W=F.querySelector("a:focus");let q=Y.findIndex(X=>X===W);q+1!X.disabled),W=F.querySelector("a:focus");let q=Y.findIndex(X=>X===W);q+1!W.disabled);Y.length&&Y[0].focus()}_end(z){const Y=[...z.querySelector(".hs-dropdown-menu").querySelectorAll("a")].reverse().filter(W=>!W.disabled);Y.length&&Y[0].focus()}_byChar(z,F){const W=[...z.querySelector(".hs-dropdown-menu").querySelectorAll("a")],q=()=>W.findIndex((tt,nt)=>tt.innerText.toLowerCase().charAt(0)===F.toLowerCase()&&this._history.existsInHistory(nt));let X=q();X===-1&&(this._history.clearHistory(),X=q()),X!==-1&&(W[X].focus(),this._history.addHistory(X))}toggle(z){z.classList.contains("open")?this.close(z):this.open(z)}}var netlifyIdentity$1={exports:{}};(function(D,O){(function(z,F){D.exports=F()})(commonjsGlobal$1,function(){return function(z){var F={};function Y(W){if(F[W])return F[W].exports;var q=F[W]={i:W,l:!1,exports:{}};return z[W].call(q.exports,q,q.exports,Y),q.l=!0,q.exports}return Y.m=z,Y.c=F,Y.d=function(W,q,X){Y.o(W,q)||Object.defineProperty(W,q,{enumerable:!0,get:X})},Y.r=function(W){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},Y.t=function(W,q){if(1&q&&(W=Y(W)),8&q||4&q&&typeof W=="object"&&W&&W.__esModule)return W;var X=Object.create(null);if(Y.r(X),Object.defineProperty(X,"default",{enumerable:!0,value:W}),2&q&&typeof W!="string")for(var tt in W)Y.d(X,tt,(function(nt){return W[nt]}).bind(null,tt));return X},Y.n=function(W){var q=W&&W.__esModule?function(){return W.default}:function(){return W};return Y.d(q,"a",q),q},Y.o=function(W,q){return Object.prototype.hasOwnProperty.call(W,q)},Y.p="/",Y(Y.s=8)}([function(z,F,Y){Y.r(F),Y.d(F,"h",function(){return nt}),Y.d(F,"createElement",function(){return nt}),Y.d(F,"cloneElement",function(){return ht}),Y.d(F,"createRef",function(){return qe}),Y.d(F,"Component",function(){return Oe}),Y.d(F,"render",function(){return Je}),Y.d(F,"rerender",function(){return _t}),Y.d(F,"options",function(){return q});var W=function(){},q={},X=[],tt=[];function nt(we,Me){var He,Le,Ye,Kt,kt=tt;for(Kt=arguments.length;Kt-- >2;)X.push(arguments[Kt]);for(Me&&Me.children!=null&&(X.length||X.push(Me.children),delete Me.children);X.length;)if((Le=X.pop())&&Le.pop!==void 0)for(Kt=Le.length;Kt--;)X.push(Le[Kt]);else typeof Le=="boolean"&&(Le=null),(Ye=typeof we!="function")&&(Le==null?Le="":typeof Le=="number"?Le=String(Le):typeof Le!="string"&&(Ye=!1)),Ye&&He?kt[kt.length-1]+=Le:kt===tt?kt=[Le]:kt.push(Le),He=Ye;var jt=new W;return jt.nodeName=we,jt.children=kt,jt.attributes=Me??void 0,jt.key=Me==null?void 0:Me.key,q.vnode!==void 0&&q.vnode(jt),jt}function st(we,Me){for(var He in Me)we[He]=Me[He];return we}function ct(we,Me){we&&(typeof we=="function"?we(Me):we.current=Me)}var lt=typeof Promise=="function"?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function ht(we,Me){return nt(we.nodeName,st(st({},we.attributes),Me),arguments.length>2?[].slice.call(arguments,2):we.children)}var bt=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,wt=[];function mt(we){!we._dirty&&(we._dirty=!0)&&wt.push(we)==1&&(q.debounceRendering||lt)(_t)}function _t(){for(var we;we=wt.pop();)we._dirty&&Ce(we)}function Et(we,Me,He){return typeof Me=="string"||typeof Me=="number"?we.splitText!==void 0:typeof Me.nodeName=="string"?!we._componentConstructor&&At(we,Me.nodeName):He||we._componentConstructor===Me.nodeName}function At(we,Me){return we.normalizedNodeName===Me||we.nodeName.toLowerCase()===Me.toLowerCase()}function Ct(we){var Me=st({},we.attributes);Me.children=we.children;var He=we.nodeName.defaultProps;if(He!==void 0)for(var Le in He)Me[Le]===void 0&&(Me[Le]=He[Le]);return Me}function Ft(we){var Me=we.parentNode;Me&&Me.removeChild(we)}function Lt(we,Me,He,Le,Ye){if(Me==="className"&&(Me="class"),Me!=="key")if(Me==="ref")ct(He,null),ct(Le,we);else if(Me!=="class"||Ye)if(Me==="style"){if(Le&&typeof Le!="string"&&typeof He!="string"||(we.style.cssText=Le||""),Le&&typeof Le=="object"){if(typeof He!="string")for(var Kt in He)Kt in Le||(we.style[Kt]="");for(var Kt in Le)we.style[Kt]=typeof Le[Kt]=="number"&&bt.test(Kt)===!1?Le[Kt]+"px":Le[Kt]}}else if(Me==="dangerouslySetInnerHTML")Le&&(we.innerHTML=Le.__html||"");else if(Me[0]=="o"&&Me[1]=="n"){var kt=Me!==(Me=Me.replace(/Capture$/,""));Me=Me.toLowerCase().substring(2),Le?He||we.addEventListener(Me,Yt,kt):we.removeEventListener(Me,Yt,kt),(we._listeners||(we._listeners={}))[Me]=Le}else if(Me!=="list"&&Me!=="type"&&!Ye&&Me in we){try{we[Me]=Le??""}catch{}Le!=null&&Le!==!1||Me=="spellcheck"||we.removeAttribute(Me)}else{var jt=Ye&&Me!==(Me=Me.replace(/^xlink:?/,""));Le==null||Le===!1?jt?we.removeAttributeNS("http://www.w3.org/1999/xlink",Me.toLowerCase()):we.removeAttribute(Me):typeof Le!="function"&&(jt?we.setAttributeNS("http://www.w3.org/1999/xlink",Me.toLowerCase(),Le):we.setAttribute(Me,Le))}else we.className=Le||""}function Yt(we){return this._listeners[we.type](q.event&&q.event(we)||we)}var Ht=[],qt=0,te=!1,Xt=!1;function Dt(){for(var we;we=Ht.shift();)q.afterMount&&q.afterMount(we),we.componentDidMount&&we.componentDidMount()}function Qt(we,Me,He,Le,Ye,Kt){qt++||(te=Ye!=null&&Ye.ownerSVGElement!==void 0,Xt=we!=null&&!("__preactattr_"in we));var kt=Nt(we,Me,He,Le,Kt);return Ye&&kt.parentNode!==Ye&&Ye.appendChild(kt),--qt||(Xt=!1,Kt||Dt()),kt}function Nt(we,Me,He,Le,Ye){var Kt=we,kt=te;if(Me!=null&&typeof Me!="boolean"||(Me=""),typeof Me=="string"||typeof Me=="number")return we&&we.splitText!==void 0&&we.parentNode&&(!we._component||Ye)?we.nodeValue!=Me&&(we.nodeValue=Me):(Kt=document.createTextNode(Me),we&&(we.parentNode&&we.parentNode.replaceChild(Kt,we),ce(we,!0))),Kt.__preactattr_=!0,Kt;var jt,$t,oe=Me.nodeName;if(typeof oe=="function")return function($e,Fe,Qe,We){for(var rn=$e&&$e._component,zn=rn,Bn=$e,Pn=rn&&$e._componentConstructor===Fe.nodeName,jn=Pn,Jn=Ct(Fe);rn&&!jn&&(rn=rn._parentComponent);)jn=rn.constructor===Fe.nodeName;return rn&&jn&&(!We||rn._component)?(ve(rn,Jn,3,Qe,We),$e=rn.base):(zn&&!Pn&&(De(zn),$e=Bn=null),rn=ye(Fe.nodeName,Jn,Qe),$e&&!rn.nextBase&&(rn.nextBase=$e,Bn=null),ve(rn,Jn,1,Qe,We),$e=rn.base,Bn&&$e!==Bn&&(Bn._component=null,ce(Bn,!1))),$e}(we,Me,He,Le);if(te=oe==="svg"||oe!=="foreignObject"&&te,oe=String(oe),(!we||!At(we,oe))&&(jt=oe,($t=te?document.createElementNS("http://www.w3.org/2000/svg",jt):document.createElement(jt)).normalizedNodeName=jt,Kt=$t,we)){for(;we.firstChild;)Kt.appendChild(we.firstChild);we.parentNode&&we.parentNode.replaceChild(Kt,we),ce(we,!0)}var Vt=Kt.firstChild,Be=Kt.__preactattr_,ge=Me.children;if(Be==null){Be=Kt.__preactattr_={};for(var Pe=Kt.attributes,ke=Pe.length;ke--;)Be[Pe[ke].name]=Pe[ke].value}return!Xt&&ge&&ge.length===1&&typeof ge[0]=="string"&&Vt!=null&&Vt.splitText!==void 0&&Vt.nextSibling==null?Vt.nodeValue!=ge[0]&&(Vt.nodeValue=ge[0]):(ge&&ge.length||Vt!=null)&&function($e,Fe,Qe,We,rn){var zn,Bn,Pn,jn,Jn,rr=$e.childNodes,sr=[],on={},ie=0,ne=0,xe=rr.length,Ae=0,Ve=Fe?Fe.length:0;if(xe!==0)for(var vn=0;vn=Ot.length&&(Ot=void 0),{value:Ot&&Ot[ae++],done:!Ot}}}}function Pt(Ot,Rt){var ae=typeof Symbol=="function"&&Ot[Symbol.iterator];if(!ae)return Ot;var Se,Re,Ke=ae.call(Ot),hn=[];try{for(;(Rt===void 0||Rt-- >0)&&!(Se=Ke.next()).done;)hn.push(Se.value)}catch(Ln){Re={error:Ln}}finally{try{Se&&!Se.done&&(ae=Ke.return)&&ae.call(Ke)}finally{if(Re)throw Re.error}}return hn}function de(){for(var Ot=[],Rt=0;Rt2&&Be("box");var ae=Le(Rt);return new mr(Ot,$t(ae),ae.name,!0,ae.equals)},array:function(Ot,Rt){arguments.length>2&&Be("array");var ae=Le(Rt);return Ru(Ot,$t(ae),ae.name)},map:function(Ot,Rt){arguments.length>2&&Be("map");var ae=Le(Rt);return new Nc(Ot,$t(ae),ae.name)},set:function(Ot,Rt){arguments.length>2&&Be("set");var ae=Le(Rt);return new Dc(Ot,$t(ae),ae.name)},object:function(Ot,Rt,ae){typeof arguments[1]=="string"&&Be("object");var Se=Le(ae);if(Se.proxy===!1)return Qs({},Ot,Rt,Se);var Re=tl(Se),Ke=Qs({},void 0,void 0,Se),hn=kc(Ke);return _a(hn,Ot,Rt,Re),hn},ref:kt,shallow:Kt,deep:Ye,struct:jt},Vt=function(Ot,Rt,ae){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return Ye.apply(null,arguments);if(Kr(Ot))return Ot;var Se=bt(Ot)?Vt.object(Ot,Rt,ae):Array.isArray(Ot)?Vt.array(Ot,Rt):Et(Ot)?Vt.map(Ot,Rt):At(Ot)?Vt.set(Ot,Rt):Ot;if(Se!==Ot)return Se;nt(!1)};function Be(Ot){nt("Expected one or two arguments to observable."+Ot+". Did you accidentally try to use observable."+Ot+" as decorator?")}Object.keys(oe).forEach(function(Ot){return Vt[Ot]=oe[Ot]});var ge,Pe,ke=Je(!1,function(Ot,Rt,ae,Se,Re){var Ke=ae.get,hn=ae.set,Ln=Re[0]||{};Ts(Ot).addComputedProp(Ot,Rt,Nt({get:Ke,set:hn,context:Ot},Ln))}),$e=ke({equals:Dt.structural}),Fe=function(Ot,Rt,ae){if(typeof Rt=="string"||Ot!==null&&typeof Ot=="object"&&arguments.length===1)return ke.apply(null,arguments);var Se=typeof Rt=="object"?Rt:{};return Se.get=Ot,Se.set=typeof Rt=="function"?Rt:Se.set,Se.name=Se.name||Ot.name||"",new wr(Se)};Fe.struct=$e,function(Ot){Ot[Ot.NOT_TRACKING=-1]="NOT_TRACKING",Ot[Ot.UP_TO_DATE=0]="UP_TO_DATE",Ot[Ot.POSSIBLY_STALE=1]="POSSIBLY_STALE",Ot[Ot.STALE=2]="STALE"}(ge||(ge={})),function(Ot){Ot[Ot.NONE=0]="NONE",Ot[Ot.LOG=1]="LOG",Ot[Ot.BREAK=2]="BREAK"}(Pe||(Pe={}));var Qe=function(Ot){this.cause=Ot};function We(Ot){return Ot instanceof Qe}function rn(Ot){switch(Ot.dependenciesState){case ge.UP_TO_DATE:return!1;case ge.NOT_TRACKING:case ge.STALE:return!0;case ge.POSSIBLY_STALE:for(var Rt=on(!0),ae=rr(),Se=Ot.observing,Re=Se.length,Ke=0;Ke0;Un.computationDepth>0&&Rt&&nt(!1),Un.allowStateChanges||!Rt&&Un.enforceActions!=="strict"||nt(!1)}function Pn(Ot,Rt,ae){var Se=on(!0);ne(Ot),Ot.newObserving=new Array(Ot.observing.length+100),Ot.unboundDepsCount=0,Ot.runId=++Un.runId;var Re,Ke=Un.trackingDerivation;if(Un.trackingDerivation=Ot,Un.disableErrorBoundaries===!0)Re=Rt.call(ae);else try{Re=Rt.call(ae)}catch(hn){Re=new Qe(hn)}return Un.trackingDerivation=Ke,function(hn){for(var Ln=hn.observing,lr=hn.observing=hn.newObserving,yi=ge.UP_TO_DATE,ii=0,oo=hn.unboundDepsCount,Ci=0;Ciyi&&(yi=Ri.dependenciesState);for(lr.length=ii,hn.newObserving=null,oo=Ln.length;oo--;)(Ri=Ln[oo]).diffValue===0&&sn(Ri,hn),Ri.diffValue=0;for(;ii--;){var Ri;(Ri=lr[ii]).diffValue===1&&(Ri.diffValue=0,io(Ri,hn))}yi!==ge.UP_TO_DATE&&(hn.dependenciesState=yi,hn.onBecomeStale())}(Ot),ie(Se),Re}function jn(Ot){var Rt=Ot.observing;Ot.observing=[];for(var ae=Rt.length;ae--;)sn(Rt[ae],Ot);Ot.dependenciesState=ge.NOT_TRACKING}function Jn(Ot){var Rt=rr();try{return Ot()}finally{sr(Rt)}}function rr(){var Ot=Un.trackingDerivation;return Un.trackingDerivation=null,Ot}function sr(Ot){Un.trackingDerivation=Ot}function on(Ot){var Rt=Un.allowStateReads;return Un.allowStateReads=Ot,Rt}function ie(Ot){Un.allowStateReads=Ot}function ne(Ot){if(Ot.dependenciesState!==ge.UP_TO_DATE){Ot.dependenciesState=ge.UP_TO_DATE;for(var Rt=Ot.observing,ae=Rt.length;ae--;)Rt[ae].lowestObserverState=ge.UP_TO_DATE}}var xe=0,Ae=1,Ve=Object.getOwnPropertyDescriptor(function(){},"name");Ve&&Ve.configurable;function vn(Ot,Rt,ae){var Se=function(){return Ge(Ot,Rt,ae||this,arguments)};return Se.isMobxAction=!0,Se}function Ge(Ot,Rt,ae,Se){var Re=Dn();try{return Rt.apply(ae,Se)}catch(Ke){throw Re.error=Ke,Ke}finally{en(Re)}}function Dn(Ot,Rt,ae){var Se=0,Re=rr();un();var Ke={prevDerivation:Re,prevAllowStateChanges:$n(!0),prevAllowStateReads:on(!0),notifySpy:!1,startTime:Se,actionId:Ae++,parentActionId:xe};return xe=Ke.actionId,Ke}function en(Ot){xe!==Ot.actionId&&nt("invalid action stack. did you forget to finish an action?"),xe=Ot.parentActionId,Ot.error!==void 0&&(Un.suppressReactionErrors=!0),Kn(Ot.prevAllowStateChanges),ie(Ot.prevAllowStateReads),je(),sr(Ot.prevDerivation),Ot.notifySpy,Un.suppressReactionErrors=!1}function Fn(Ot,Rt){var ae,Se=$n(Ot);try{ae=Rt()}finally{Kn(Se)}return ae}function $n(Ot){var Rt=Un.allowStateChanges;return Un.allowStateChanges=Ot,Rt}function Kn(Ot){Un.allowStateChanges=Ot}function Wn(Ot){var Rt,ae=Un.computationDepth;Un.computationDepth=0;try{Rt=Ot()}finally{Un.computationDepth=ae}return Rt}var mr=function(Ot){function Rt(ae,Se,Re,Ke,hn){Re===void 0&&(Re="ObservableValue@"+tt()),hn===void 0&&(hn=Dt.default);var Ln=Ot.call(this,Re)||this;return Ln.enhancer=Se,Ln.name=Re,Ln.equals=hn,Ln.hasUnreportedChange=!1,Ln.value=Se(ae,void 0,Re),Ln}return function(ae,Se){function Re(){this.constructor=ae}Qt(ae,Se),ae.prototype=Se===null?Object.create(Se):(Re.prototype=Se.prototype,new Re)}(Rt,Ot),Rt.prototype.dehanceValue=function(ae){return this.dehancer!==void 0?this.dehancer(ae):ae},Rt.prototype.set=function(ae){this.value,(ae=this.prepareNewValue(ae))!==Un.UNCHANGED&&this.setNewValue(ae)},Rt.prototype.prepareNewValue=function(ae){if(Bn(this),Zs(this)){var Se=Js(this,{object:this,type:"update",newValue:ae});if(!Se)return Un.UNCHANGED;ae=Se.newValue}return ae=this.enhancer(ae,this.value,this.name),this.equals(this.value,ae)?Un.UNCHANGED:ae},Rt.prototype.setNewValue=function(ae){var Se=this.value;this.value=ae,this.reportChanged(),$a(this)&&Ma(this,{type:"update",object:this,newValue:ae,oldValue:Se})},Rt.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},Rt.prototype.intercept=function(ae){return ml(this,ae)},Rt.prototype.observe=function(ae,Se){return Se&&ae({object:this,type:"update",newValue:this.value,oldValue:void 0}),Ac(this,ae)},Rt.prototype.toJSON=function(){return this.get()},Rt.prototype.toString=function(){return this.name+"["+this.value+"]"},Rt.prototype.valueOf=function(){return Lt(this.get())},Rt.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},Rt}(qt),ir=mt("ObservableValue",mr),wr=function(){function Ot(Rt){this.dependenciesState=ge.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=ge.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+tt(),this.value=new Qe(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Pe.NONE,st(Rt.get,"missing option for computed: get"),this.derivation=Rt.get,this.name=Rt.name||"ComputedValue@"+tt(),Rt.set&&(this.setter=vn(this.name+"-setter",Rt.set)),this.equals=Rt.equals||(Rt.compareStructural||Rt.struct?Dt.structural:Dt.default),this.scope=Rt.context,this.requiresReaction=!!Rt.requiresReaction,this.keepAlive=!!Rt.keepAlive}return Ot.prototype.onBecomeStale=function(){(function(Rt){Rt.lowestObserverState===ge.UP_TO_DATE&&(Rt.lowestObserverState=ge.POSSIBLY_STALE,Rt.observers.forEach(function(ae){ae.dependenciesState===ge.UP_TO_DATE&&(ae.dependenciesState=ge.POSSIBLY_STALE,ae.isTracing!==Pe.NONE&&In(ae,Rt),ae.onBecomeStale())}))})(this)},Ot.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(Rt){return Rt()})},Ot.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(Rt){return Rt()})},Ot.prototype.get=function(){this.isComputing&&nt("Cycle detected in computation "+this.name+": "+this.derivation),Un.inBatch!==0||this.observers.size!==0||this.keepAlive?(gn(this),rn(this)&&this.trackAndCompute()&&function(ae){ae.lowestObserverState!==ge.STALE&&(ae.lowestObserverState=ge.STALE,ae.observers.forEach(function(Se){Se.dependenciesState===ge.POSSIBLY_STALE?Se.dependenciesState=ge.STALE:Se.dependenciesState===ge.UP_TO_DATE&&(ae.lowestObserverState=ge.UP_TO_DATE)}))}(this)):rn(this)&&(this.warnAboutUntrackedRead(),un(),this.value=this.computeValue(!1),je());var Rt=this.value;if(We(Rt))throw Rt.cause;return Rt},Ot.prototype.peek=function(){var Rt=this.computeValue(!1);if(We(Rt))throw Rt.cause;return Rt},Ot.prototype.set=function(Rt){if(this.setter){st(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,Rt)}finally{this.isRunningSetter=!1}}else st(!1,!1)},Ot.prototype.trackAndCompute=function(){var Rt=this.value,ae=this.dependenciesState===ge.NOT_TRACKING,Se=this.computeValue(!0),Re=ae||We(Rt)||We(Se)||!this.equals(Rt,Se);return Re&&(this.value=Se),Re},Ot.prototype.computeValue=function(Rt){var ae;if(this.isComputing=!0,Un.computationDepth++,Rt)ae=Pn(this,this.derivation,this.scope);else if(Un.disableErrorBoundaries===!0)ae=this.derivation.call(this.scope);else try{ae=this.derivation.call(this.scope)}catch(Se){ae=new Qe(Se)}return Un.computationDepth--,this.isComputing=!1,ae},Ot.prototype.suspend=function(){this.keepAlive||(jn(this),this.value=void 0)},Ot.prototype.observe=function(Rt,ae){var Se=this,Re=!0,Ke=void 0;return xs(function(){var hn=Se.get();if(!Re||ae){var Ln=rr();Rt({type:"update",object:Se,newValue:hn,oldValue:Ke}),sr(Ln)}Re=!1,Ke=hn})},Ot.prototype.warnAboutUntrackedRead=function(){},Ot.prototype.toJSON=function(){return this.get()},Ot.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},Ot.prototype.valueOf=function(){return Lt(this.get())},Ot.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},Ot}(),Lr=mt("ComputedValue",wr),Dr=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Fo=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},xo={};function tr(){return typeof window<"u"?window:W!==void 0?W:typeof self<"u"?self:xo}var Cr=!0,go=!1,Un=function(){var Ot=tr();return Ot.__mobxInstanceCount>0&&!Ot.__mobxGlobals&&(Cr=!1),Ot.__mobxGlobals&&Ot.__mobxGlobals.version!==new Fo().version&&(Cr=!1),Cr?Ot.__mobxGlobals?(Ot.__mobxInstanceCount+=1,Ot.__mobxGlobals.UNCHANGED||(Ot.__mobxGlobals.UNCHANGED={}),Ot.__mobxGlobals):(Ot.__mobxInstanceCount=1,Ot.__mobxGlobals=new Fo):(setTimeout(function(){go||nt("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Fo)}();function zi(){return Un}function uo(){var Ot=new Fo;for(var Rt in Ot)Dr.indexOf(Rt)===-1&&(Un[Rt]=Ot[Rt]);Un.allowStateChanges=!Un.enforceActions}function io(Ot,Rt){Ot.observers.add(Rt),Ot.lowestObserverState>Rt.dependenciesState&&(Ot.lowestObserverState=Rt.dependenciesState)}function sn(Ot,Rt){Ot.observers.delete(Rt),Ot.observers.size===0&&En(Ot)}function En(Ot){Ot.isPendingUnobservation===!1&&(Ot.isPendingUnobservation=!0,Un.pendingUnobservations.push(Ot))}function un(){Un.inBatch++}function je(){if(--Un.inBatch==0){ci();for(var Ot=Un.pendingUnobservations,Rt=0;Rt0&&En(Ot),!1)}function In(Ot,Rt){if(console.log("[mobx.trace] '"+Ot.name+"' is invalidated due to a change in: '"+Rt.name+"'"),Ot.isTracing===Pe.BREAK){var ae=[];(function Se(Re,Ke,hn){if(Ke.length>=1e3)return void Ke.push("(and many more)");Ke.push(""+new Array(hn).join(" ")+Re.name),Re.dependencies&&Re.dependencies.forEach(function(Ln){return Se(Ln,Ke,hn+1)})})(Mo(Ot),ae,1),new Function(`debugger; +/* +Tracing '`+Ot.name+`' + +You are entering this break point because derivation '`+Ot.name+"' is being traced and '"+Rt.name+`' is now forcing it to update. +Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update +The stackframe you are looking for is at least ~6-8 stack-frames up. + +`+(Ot instanceof wr?Ot.derivation.toString().replace(/[*]\//g,"/"):"")+` + +The dependencies for this derivation are: + +`+ae.join(` +`)+` +*/ + `)()}}var Hn=function(){function Ot(Rt,ae,Se,Re){Rt===void 0&&(Rt="Reaction@"+tt()),Re===void 0&&(Re=!1),this.name=Rt,this.onInvalidate=ae,this.errorHandler=Se,this.requiresObservable=Re,this.observing=[],this.newObserving=[],this.dependenciesState=ge.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+tt(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Pe.NONE}return Ot.prototype.onBecomeStale=function(){this.schedule()},Ot.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Un.pendingReactions.push(this),ci())},Ot.prototype.isScheduled=function(){return this._isScheduled},Ot.prototype.runReaction=function(){if(!this.isDisposed){if(un(),this._isScheduled=!1,rn(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(Rt){this.reportExceptionInDerivation(Rt)}}je()}},Ot.prototype.track=function(Rt){if(!this.isDisposed){un(),this._isRunning=!0;var ae=Pn(this,Rt,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&jn(this),We(ae)&&this.reportExceptionInDerivation(ae.cause),je()}},Ot.prototype.reportExceptionInDerivation=function(Rt){var ae=this;if(this.errorHandler)this.errorHandler(Rt,this);else{if(Un.disableErrorBoundaries)throw Rt;var Se="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Un.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(Se,Rt),Un.globalReactionErrorHandlers.forEach(function(Re){return Re(Rt,ae)})}},Ot.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(un(),jn(this),je()))},Ot.prototype.getDisposer=function(){var Rt=this.dispose.bind(this);return Rt[Ht]=this,Rt},Ot.prototype.toString=function(){return"Reaction["+this.name+"]"},Ot.prototype.trace=function(Rt){Rt===void 0&&(Rt=!1),gh(this,Rt)},Ot}();function Er(Ot){return Un.globalReactionErrorHandlers.push(Ot),function(){var Rt=Un.globalReactionErrorHandlers.indexOf(Ot);Rt>=0&&Un.globalReactionErrorHandlers.splice(Rt,1)}}var Or=function(Ot){return Ot()};function ci(){Un.inBatch>0||Un.isRunningReactions||Or(Si)}function Si(){Un.isRunningReactions=!0;for(var Ot=Un.pendingReactions,Rt=0;Ot.length>0;){++Rt==100&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+Ot[0]),Ot.splice(0));for(var ae=Ot.splice(0),Se=0,Re=ae.length;Se",Ot):arguments.length===2&&typeof Rt=="function"?vn(Ot,Rt):arguments.length===1&&typeof Ot=="string"?_r(Ot):Se!==!0?_r(Rt).apply(null,arguments):void wt(Ot,Rt,vn(Ot.name||Rt,ae.value,this))};function er(Ot,Rt){return Ge(typeof Ot=="string"?Ot:Ot.name||"",typeof Ot=="function"?Ot:Rt,this,void 0)}function Nr(Ot){return typeof Ot=="function"&&Ot.isMobxAction===!0}function Xe(Ot,Rt,ae){wt(Ot,Rt,vn(Rt,ae.bind(Ot)))}function xs(Ot,Rt){Rt===void 0&&(Rt=X);var ae,Se=Rt&&Rt.name||Ot.name||"Autorun@"+tt();if(!Rt.scheduler&&!Rt.delay)ae=new Hn(Se,function(){this.track(hn)},Rt.onError,Rt.requiresObservable);else{var Re=Do(Rt),Ke=!1;ae=new Hn(Se,function(){Ke||(Ke=!0,Re(function(){Ke=!1,ae.isDisposed||ae.track(hn)}))},Rt.onError,Rt.requiresObservable)}function hn(){Ot(ae)}return ae.schedule(),ae.getDisposer()}$r.bound=function(Ot,Rt,ae,Se){return Se===!0?(Xe(Ot,Rt,ae.value),null):ae?{configurable:!0,enumerable:!1,get:function(){return Xe(this,Rt,ae.value||ae.initializer.call(this)),this[Rt]},set:Uo}:{enumerable:!1,configurable:!0,set:function(Re){Xe(this,Rt,Re)},get:function(){}}};var an=function(Ot){return Ot()};function Do(Ot){return Ot.scheduler?Ot.scheduler:Ot.delay?function(Rt){return setTimeout(Rt,Ot.delay)}:an}function Ka(Ot,Rt,ae){ae===void 0&&(ae=X);var Se,Re,Ke,hn=ae.name||"Reaction@"+tt(),Ln=$r(hn,ae.onError?(Se=ae.onError,Re=Rt,function(){try{return Re.apply(this,arguments)}catch(ao){Se.call(this,ao)}}):Rt),lr=!ae.scheduler&&!ae.delay,yi=Do(ae),ii=!0,oo=!1,Ci=ae.compareStructural?Dt.structural:ae.equals||Dt.default,Ri=new Hn(hn,function(){ii||lr?to():oo||(oo=!0,yi(to))},ae.onError,ae.requiresObservable);function to(){if(oo=!1,!Ri.isDisposed){var ao=!1;Ri.track(function(){var ho=Ot(Ri);ao=ii||!Ci(Ke,ho),Ke=ho}),ii&&ae.fireImmediately&&Ln(Ke,Ri),ii||ao!==!0||Ln(Ke,Ri),ii&&(ii=!1)}}return Ri.schedule(),Ri.getDisposer()}function ei(Ot,Rt,ae){return oc("onBecomeObserved",Ot,Rt,ae)}function Pr(Ot,Rt,ae){return oc("onBecomeUnobserved",Ot,Rt,ae)}function oc(Ot,Rt,ae,Se){var Re=typeof Se=="function"?ca(Rt,ae):ca(Rt),Ke=typeof Se=="function"?Se:ae,hn=Ot+"Listeners";return Re[hn]?Re[hn].add(Ke):Re[hn]=new Set([Ke]),typeof Re[Ot]!="function"?nt(!1):function(){var Ln=Re[hn];Ln&&(Ln.delete(Ke),Ln.size===0&&delete Re[hn])}}function ur(Ot){var Rt=Ot.enforceActions,ae=Ot.computedRequiresReaction,Se=Ot.computedConfigurable,Re=Ot.disableErrorBoundaries,Ke=Ot.reactionScheduler,hn=Ot.reactionRequiresObservable,Ln=Ot.observableRequiresReaction;if(Ot.isolateGlobalState===!0&&((Un.pendingReactions.length||Un.inBatch||Un.isRunningReactions)&&nt("isolateGlobalState should be called before MobX is running any reactions"),go=!0,Cr&&(--tr().__mobxInstanceCount==0&&(tr().__mobxGlobals=void 0),Un=new Fo)),Rt!==void 0){var lr=void 0;switch(Rt){case!0:case"observed":lr=!0;break;case!1:case"never":lr=!1;break;case"strict":case"always":lr="strict";break;default:nt("Invalid value for 'enforceActions': '"+Rt+"', expected 'never', 'always' or 'observed'")}Un.enforceActions=lr,Un.allowStateChanges=lr!==!0&&lr!=="strict"}ae!==void 0&&(Un.computedRequiresReaction=!!ae),hn!==void 0&&(Un.reactionRequiresObservable=!!hn),Ln!==void 0&&(Un.observableRequiresReaction=!!Ln,Un.allowStateReads=!Un.observableRequiresReaction),Se!==void 0&&(Un.computedConfigurable=!!Se),Re!==void 0&&(Re===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),Un.disableErrorBoundaries=!!Re),Ke&&mo(Ke)}function Yr(Ot,Rt){var ae=typeof Ot=="function"?Ot.prototype:Ot,Se=function(Ke){var hn=Rt[Ke];Array.isArray(hn)||(hn=[hn]);var Ln=Object.getOwnPropertyDescriptor(ae,Ke),lr=hn.reduce(function(yi,ii){return ii(ae,Ke,yi)},Ln);lr&&Object.defineProperty(ae,Ke,lr)};for(var Re in Rt)Se(Re);return Ot}function Qs(Ot,Rt,ae,Se){var Re=tl(Se=Le(Se));return Oe(Ot),Ts(Ot,Se.name,Re.enhancer),Rt&&_a(Ot,Rt,ae,Re),Ot}function tl(Ot){return Ot.defaultDecorator||(Ot.deep===!1?kt:Ye)}function _a(Ot,Rt,ae,Se){var Re,Ke;un();try{var hn=Yt(Rt);try{for(var Ln=ce(hn),lr=Ln.next();!lr.done;lr=Ln.next()){var yi=lr.value,ii=Object.getOwnPropertyDescriptor(Rt,yi),oo=(ae&&yi in ae?ae[yi]:ii.get?ke:Se)(Ot,yi,ii,!0);oo&&Object.defineProperty(Ot,yi,oo)}}catch(Ci){Re={error:Ci}}finally{try{lr&&!lr.done&&(Ke=Ln.return)&&Ke.call(Ln)}finally{if(Re)throw Re.error}}}finally{je()}}function Mo(Ot,Rt){return ai(ca(Ot,Rt))}function ai(Ot){var Rt,ae,Se={name:Ot.name};return Ot.observing&&Ot.observing.length>0&&(Se.dependencies=(Rt=Ot.observing,ae=[],Rt.forEach(function(Re){ae.indexOf(Re)===-1&&ae.push(Re)}),ae).map(ai)),Se}function Es(Ot,Rt){return Io(ca(Ot,Rt))}function Io(Ot){var Rt={name:Ot.name};return function(ae){return ae.observers&&ae.observers.size>0}(Ot)&&(Rt.observers=Array.from(function(ae){return ae.observers}(Ot)).map(Io)),Rt}var el=0;function Yo(){this.message="FLOW_CANCELLED"}function wa(Ot){return Ot instanceof Yo}function Os(Ot){arguments.length!==1&&nt("Flow expects 1 argument and cannot be used as decorator");var Rt=Ot.name||"";return function(){var ae,Se=this,Re=arguments,Ke=++el,hn=$r(Rt+" - runid: "+Ke+" - init",Ot).apply(Se,Re),Ln=void 0,lr=new Promise(function(yi,ii){var oo=0;function Ci(ao){var ho;Ln=void 0;try{ho=$r(Rt+" - runid: "+Ke+" - yield "+oo++,hn.next).call(hn,ao)}catch(Sa){return ii(Sa)}to(ho)}function Ri(ao){var ho;Ln=void 0;try{ho=$r(Rt+" - runid: "+Ke+" - yield "+oo++,hn.throw).call(hn,ao)}catch(Sa){return ii(Sa)}to(ho)}function to(ao){if(!ao||typeof ao.then!="function")return ao.done?yi(ao.value):(Ln=Promise.resolve(ao.value)).then(Ci,Ri);ao.then(to,ii)}ae=ii,Ci(void 0)});return lr.cancel=$r(Rt+" - runid: "+Ke+" - cancel",function(){try{Ln&&Pl(Ln);var yi=hn.return(void 0),ii=Promise.resolve(yi.value);ii.then(lt,lt),Pl(ii),ae(new Yo)}catch(oo){ae(oo)}}),lr}}function Pl(Ot){typeof Ot.cancel=="function"&&Ot.cancel()}function gl(Ot,Rt,ae){var Se;if(Ms(Ot)||ko(Ot)||ir(Ot))Se=Ks(Ot);else{if(!Vo(Ot)||typeof Rt!="string")return nt(!1);Se=Ks(Ot,Rt)}return Se.dehancer!==void 0?nt(!1):(Se.dehancer=typeof Rt=="function"?Rt:ae,function(){Se.dehancer=void 0})}function zl(Ot,Rt,ae){return typeof ae=="function"?function(Se,Re,Ke){return Ks(Se,Re).intercept(Ke)}(Ot,Rt,ae):function(Se,Re){return Ks(Se).intercept(Re)}(Ot,Rt)}function Ps(Ot,Rt){if(Ot==null)return!1;if(Rt!==void 0){if(Vo(Ot)===!1||!Ot[Ht].values.has(Rt))return!1;var ae=ca(Ot,Rt);return Lr(ae)}return Lr(Ot)}function nu(Ot){return arguments.length>1?nt(!1):Ps(Ot)}function Cc(Ot,Rt){return typeof Rt!="string"?nt(!1):Ps(Ot,Rt)}function Rl(Ot,Rt){return Ot!=null&&(Rt!==void 0?!!Vo(Ot)&&Ot[Ht].values.has(Rt):Vo(Ot)||!!Ot[Ht]||te(Ot)||si(Ot)||Lr(Ot))}function Kr(Ot){return arguments.length!==1&&nt(!1),Rl(Ot)}function ja(Ot,Rt){return typeof Rt!="string"?nt(!1):Rl(Ot,Rt)}function zr(Ot){return Vo(Ot)?Ot[Ht].getKeys():Ms(Ot)||Jo(Ot)?Array.from(Ot.keys()):ko(Ot)?Ot.map(function(Rt,ae){return ae}):nt(!1)}function aa(Ot){return Vo(Ot)?zr(Ot).map(function(Rt){return Ot[Rt]}):Ms(Ot)?zr(Ot).map(function(Rt){return Ot.get(Rt)}):Jo(Ot)?Array.from(Ot.values()):ko(Ot)?Ot.slice():nt(!1)}function dh(Ot){return Vo(Ot)?zr(Ot).map(function(Rt){return[Rt,Ot[Rt]]}):Ms(Ot)?zr(Ot).map(function(Rt){return[Rt,Ot.get(Rt)]}):Jo(Ot)?Array.from(Ot.entries()):ko(Ot)?Ot.map(function(Rt,ae){return[ae,Rt]}):nt(!1)}function ru(Ot,Rt,ae){if(arguments.length!==2||Jo(Ot))if(Vo(Ot)){var Se=Ot[Ht],Re=Se.values.get(Rt);Re?Se.write(Rt,ae):Se.addObservableProp(Rt,ae,Se.defaultEnhancer)}else if(Ms(Ot))Ot.set(Rt,ae);else if(Jo(Ot))Ot.add(Rt);else{if(!ko(Ot))return nt(!1);typeof Rt!="number"&&(Rt=parseInt(Rt,10)),st(Rt>=0,"Not a valid index: '"+Rt+"'"),un(),Rt>=Ot.length&&(Ot.length=Rt+1),Ot[Rt]=ae,je()}else{un();var Ke=Rt;try{for(var hn in Ke)ru(Ot,hn,Ke[hn])}finally{je()}}}function iu(Ot,Rt){if(Vo(Ot))Ot[Ht].remove(Rt);else if(Ms(Ot))Ot.delete(Rt);else if(Jo(Ot))Ot.delete(Rt);else{if(!ko(Ot))return nt(!1);typeof Rt!="number"&&(Rt=parseInt(Rt,10)),st(Rt>=0,"Not a valid index: '"+Rt+"'"),Ot.splice(Rt,1)}}function jl(Ot,Rt){return Vo(Ot)?Ks(Ot).has(Rt):Ms(Ot)||Jo(Ot)?Ot.has(Rt):ko(Ot)?Rt>=0&&Rt0}function ml(Ot,Rt){var ae=Ot.interceptors||(Ot.interceptors=[]);return ae.push(Rt),ct(function(){var Se=ae.indexOf(Rt);Se!==-1&&ae.splice(Se,1)})}function Js(Ot,Rt){var ae=rr();try{for(var Se=de(Ot.interceptors||[]),Re=0,Ke=Se.length;Re0}function Ac(Ot,Rt){var ae=Ot.changeListeners||(Ot.changeListeners=[]);return ae.push(Rt),ct(function(){var Se=ae.indexOf(Rt);Se!==-1&&ae.splice(Se,1)})}function Ma(Ot,Rt){var ae=rr(),Se=Ot.changeListeners;if(Se){for(var Re=0,Ke=(Se=Se.slice()).length;Re0?Rt.map(this.dehancer):Rt},Ot.prototype.intercept=function(Rt){return ml(this,Rt)},Ot.prototype.observe=function(Rt,ae){return ae===void 0&&(ae=!1),ae&&Rt({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Ac(this,Rt)},Ot.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},Ot.prototype.setArrayLength=function(Rt){if(typeof Rt!="number"||Rt<0)throw new Error("[mobx.array] Out of range: "+Rt);var ae=this.values.length;if(Rt!==ae)if(Rt>ae){for(var Se=new Array(Rt-ae),Re=0;ReKe?Rt=Ke:Rt<0&&(Rt=Math.max(0,Ke+Rt)),ae=arguments.length===1?Ke-Rt:ae==null?0:Math.max(0,Math.min(ae,Ke-Rt)),Se===void 0&&(Se=q),Zs(this)){var hn=Js(this,{object:this.proxy,type:"splice",index:Rt,removedCount:ae,added:Se});if(!hn)return q;ae=hn.removedCount,Se=hn.added}Se=Se.length===0?Se:Se.map(function(lr){return Re.enhancer(lr,void 0)});var Ln=this.spliceItemsIntoValues(Rt,ae,Se);return ae===0&&Se.length===0||this.notifyArraySplice(Rt,Se,Ln),this.dehanceValues(Ln)},Ot.prototype.spliceItemsIntoValues=function(Rt,ae,Se){var Re;if(Se.length<1e4)return(Re=this.values).splice.apply(Re,de([Rt,ae],Se));var Ke=this.values.slice(Rt,Rt+ae);return this.values=this.values.slice(0,Rt).concat(Se,this.values.slice(Rt+ae)),Ke},Ot.prototype.notifyArrayChildUpdate=function(Rt,ae,Se){var Re=!this.owned&&!1,Ke=$a(this),hn=Ke||Re?{object:this.proxy,type:"update",index:Rt,newValue:ae,oldValue:Se}:null;this.atom.reportChanged(),Ke&&Ma(this,hn)},Ot.prototype.notifyArraySplice=function(Rt,ae,Se){var Re=!this.owned&&!1,Ke=$a(this),hn=Ke||Re?{object:this.proxy,type:"splice",index:Rt,removed:Se,added:ae,removedCount:Se.length,addedCount:ae.length}:null;this.atom.reportChanged(),Ke&&Ma(this,hn)},Ot}(),vo={intercept:function(Ot){return this[Ht].intercept(Ot)},observe:function(Ot,Rt){return Rt===void 0&&(Rt=!1),this[Ht].observe(Ot,Rt)},clear:function(){return this.splice(0)},replace:function(Ot){var Rt=this[Ht];return Rt.spliceWithArray(0,Rt.values.length,Ot)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(Ot,Rt){for(var ae=[],Se=2;Se-1&&(this.splice(ae,1),!0)},get:function(Ot){var Rt=this[Ht];if(Rt){if(Ot=0&&hn++}Re=Fa(Re),Ke=Fa(Ke);var oo=ii==="[object Array]";if(!oo){if(typeof Re!="object"||typeof Ke!="object")return!1;var Ci=Re.constructor,Ri=Ke.constructor;if(Ci!==Ri&&!(typeof Ci=="function"&&Ci instanceof Ci&&typeof Ri=="function"&&Ri instanceof Ri)&&"constructor"in Re&&"constructor"in Ke)return!1}if(hn===0)return!1;hn<0&&(hn=-1),lr=lr||[];for(var to=(Ln=Ln||[]).length;to--;)if(Ln[to]===Re)return lr[to]===Ke;if(Ln.push(Re),lr.push(Ke),oo){if((to=Re.length)!==Ke.length)return!1;for(;to--;)if(!Se(Re[to],Ke[to],hn-1,Ln,lr))return!1}else{var ao=Object.keys(Re),ho=void 0;if(to=ao.length,Object.keys(Ke).length!==to)return!1;for(;to--;)if(ho=ao[to],!ac(Ke,ho)||!Se(Re[ho],Ke[ho],hn-1,Ln,lr))return!1}return Ln.pop(),lr.pop(),!0}(Ot,Rt,ae)}function Fa(Ot){return ko(Ot)?Ot.slice():Et(Ot)||Ms(Ot)||At(Ot)||Jo(Ot)?Array.from(Ot.entries()):Ot}function ac(Ot,Rt){return Object.prototype.hasOwnProperty.call(Ot,Rt)}function rl(Ot){return Ot[Symbol.iterator]=Ic,Ot}function Ic(){return this}if(typeof Proxy>"u"||typeof Symbol>"u")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Co,extras:{getDebugName:vs},$mobx:Ht})}).call(this,Y(3))},function(z,F,Y){Y.r(F),(function(W){Y.d(F,"observer",function(){return Lt}),Y.d(F,"Observer",function(){return Ht}),Y.d(F,"useStaticRendering",function(){return _t}),Y.d(F,"connect",function(){return Nt}),Y.d(F,"inject",function(){return Qt}),Y.d(F,"Provider",function(){return de});var q=Y(0),X=Y(1);function tt(ye){return!(ye.prototype&&ye.prototype.render||q.Component.isPrototypeOf(ye))}function nt(ye){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=pe.prefix,Ce=ve===void 0?"":ve,De=pe.suffix,Oe=De===void 0?"":De,Je=ye.displayName||ye.name||ye.constructor&&ye.constructor.name||"";return Ce+Je+Oe}var st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},ct=function(ye,pe){if(!(ye instanceof pe))throw new TypeError("Cannot call a class as a function")},lt=function(){function ye(pe,ve){for(var Ce=0;Ce2&&arguments[2]!==void 0&&arguments[2],Ce=ye[pe],De=Ft[pe],Oe=Ce?ve===!0?function(){De.apply(this,arguments),Ce.apply(this,arguments)}:function(){Ce.apply(this,arguments),De.apply(this,arguments)}:De;ye[pe]=Oe}function Ct(ye,pe){if(ye==null||pe==null||(ye===void 0?"undefined":st(ye))!=="object"||(pe===void 0?"undefined":st(pe))!=="object")return ye!==pe;var ve=Object.keys(ye);if(ve.length!==Object.keys(pe).length)return!0;for(var Ce=void 0,De=ve.length-1;Ce=ve[De];De--)if(pe[Ce]!==ye[Ce])return!0;return!1}var Ft={componentWillMount:function(){var ye=this;if(wt!==!0){var pe=nt(this),ve=!1,Ce=!1;ze.call(this,"props"),ze.call(this,"state");var De=this.render.bind(this),Oe=null,Je=!1,qe=function(we,Me,He){Je=!1;var Le=void 0,Ye=void 0;if(Oe.track(function(){try{Ye=Et(!1,De,we,Me,He)}catch(Kt){Le=Kt}}),Le)throw Le;return Ye};this.render=function(){return(Oe=new X.Reaction(pe+".render()",function(){if(!Je&&(Je=!0,typeof ye.componentWillReact=="function"&&ye.componentWillReact(),ye.__$mobxIsUnmounted!==!0)){var we=!0;try{Ce=!0,ve||q.Component.prototype.forceUpdate.call(ye),we=!1}finally{Ce=!1,we&&Oe.dispose()}}})).reactComponent=ye,qe.$mobx=Oe,ye.render=qe,qe(ye.props,ye.state,ye.context)}}function ze(we){var Me=this[we],He=Object(X.createAtom)("reactive "+we);Object.defineProperty(this,we,{configurable:!0,enumerable:!0,get:function(){return He.reportObserved(),Me},set:function(Le){!Ce&&Ct(Me,Le)?(Me=Le,ve=!0,He.reportChanged(),ve=!1):Me=Le}})}},componentWillUnmount:function(){wt!==!0&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0)},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(ye,pe){return wt&&mt.warn("[mobx-preact] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==pe||Ct(this.props,ye)}};function Lt(ye){var pe,ve;if(arguments.length>1&&mt.warn('Mobx observer: Using observer to inject stores is not supported. Use `@connect(["store1", "store2"]) ComponentClass instead or preferably, use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))``'),ye.isMobxInjector===!0&&mt.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),tt(ye))return Lt((ve=pe=function(De){function Oe(){return ct(this,Oe),bt(this,(Oe.__proto__||Object.getPrototypeOf(Oe)).apply(this,arguments))}return ht(Oe,De),lt(Oe,[{key:"render",value:function(){return ye.call(this,this.props,this.context)}}]),Oe}(q.Component),pe.displayName=nt(ye),ve));if(!ye)throw new Error("Please pass a valid component to 'observer'");var Ce=ye.prototype||ye;return Yt(Ce),ye.isMobXReactObserver=!0,ye}function Yt(ye){At(ye,"componentWillMount",!0),At(ye,"componentDidMount"),ye.shouldComponentUpdate||(ye.shouldComponentUpdate=Ft.shouldComponentUpdate)}var Ht=Lt(function(ye){return ye.children[0]()});Ht.displayName="Observer";var qt=function(ye,pe){return ye(pe={exports:{}},pe.exports),pe.exports}(function(ye,pe){var ve,Ce,De,Oe,Je,qe,ze,we;ye.exports=(ve={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ce={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},De=Object.defineProperty,Oe=Object.getOwnPropertyNames,Je=Object.getOwnPropertySymbols,qe=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,we=ze&&ze(Object),function Me(He,Le,Ye){if(typeof Le!="string"){if(we){var Kt=ze(Le);Kt&&Kt!==we&&Me(He,Kt,Ye)}var kt=Oe(Le);Je&&(kt=kt.concat(Je(Le)));for(var jt=0;jt1?Object(q.h)("div",null," ",Ce," "):Ce[0]}},{key:"getChildContext",value:function(){var ve={},Ce=this.context.mobxStores;if(Ce)for(var De in Ce)ve[De]=Ce[De];for(var Oe in this.props)ce[Oe]||Oe==="suppressChangedStoreWarning"||(ve[Oe]=this.props[Oe]);return{mobxStores:ve}}},{key:"componentWillReceiveProps",value:function(ve){if(Object.keys(ve).length!==Object.keys(this.props).length&&Pt.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!ve.suppressChangedStoreWarning)for(var Ce in ve)ce[Ce]||this.props[Ce]===ve[Ce]||Pt.warn("MobX Provider: Provided store '"+Ce+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),pe}(q.Component);if(!q.Component)throw new Error("mobx-preact requires Preact to be available")}).call(this,Y(3))},function(z,F){var Y;Y=function(){return this}();try{Y=Y||new Function("return this")()}catch{typeof window=="object"&&(Y=window)}z.exports=Y},function(z,F,Y){Object.defineProperty(F,"__esModule",{value:!0}),F.JSONHTTPError=F.TextHTTPError=F.HTTPError=F.getPagination=void 0;var W=Object.assign||function(wt){for(var mt=1;mt0&&arguments[0]!==void 0?arguments[0]:"",_t=arguments[1];tt(this,wt),this.apiURL=mt,this.apiURL.match(/\/[^\/]?/)&&(this._sameOrigin=!0),this.defaultHeaders=_t&&_t.defaultHeaders||{}}return q(wt,[{key:"headers",value:function(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return W({},this.defaultHeaders,{"Content-Type":"application/json"},mt)}},{key:"parseJsonResponse",value:function(mt){return mt.json().then(function(_t){if(!mt.ok)return Promise.reject(new ht(mt,_t));var Et=(0,X.getPagination)(mt);return Et?{pagination:Et,items:_t}:_t})}},{key:"request",value:function(mt){var _t=this,Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},At=this.headers(Et.headers||{});return this._sameOrigin&&(Et.credentials=Et.credentials||"same-origin"),fetch(this.apiURL+mt,W({},Et,{headers:At})).then(function(Ct){var Ft=Ct.headers.get("Content-Type");return Ft&&Ft.match(/json/)?_t.parseJsonResponse(Ct):Ct.ok?Ct.text().then(function(Lt){}):Ct.text().then(function(Lt){return Promise.reject(new lt(Ct,Lt))})})}}]),wt}();F.default=bt},function(z,F,Y){function W(bt){return(W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(wt){return typeof wt}:function(wt){return wt&&typeof Symbol=="function"&&wt.constructor===Symbol&&wt!==Symbol.prototype?"symbol":typeof wt})(bt)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var q=Y(0);function X(bt,wt){if(!(bt instanceof wt))throw new TypeError("Cannot call a class as a function")}function tt(bt,wt){for(var mt=0;mt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var mt,_t=lt(bt);if(wt){var Et=lt(this).constructor;mt=Reflect.construct(_t,arguments,Et)}else mt=_t.apply(this,arguments);return ct(this,mt)}}function ct(bt,wt){return!wt||W(wt)!=="object"&&typeof wt!="function"?function(mt){if(mt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return mt}(bt):wt}function lt(bt){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(wt){return wt.__proto__||Object.getPrototypeOf(wt)})(bt)}var ht=function(bt){(function(At,Ct){if(typeof Ct!="function"&&Ct!==null)throw new TypeError("Super expression must either be null or a function");At.prototype=Object.create(Ct&&Ct.prototype,{constructor:{value:At,writable:!0,configurable:!0}}),Ct&&nt(At,Ct)})(Et,bt);var wt,mt,_t=st(Et);function Et(){return X(this,Et),_t.apply(this,arguments)}return wt=Et,(mt=[{key:"render",value:function(){var At=this.props,Ct=At.saving,Ft=At.text,Lt=At.saving_text;return(0,q.h)("button",{type:"submit",className:"btn".concat(Ct?" saving":"")},Ct?Lt||"Saving":Ft||"Save")}}])&&tt(wt.prototype,mt),Et}(q.Component);F.default=ht},function(z,F,Y){function W(wt){return(W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(mt){return typeof mt}:function(mt){return mt&&typeof Symbol=="function"&&mt.constructor===Symbol&&mt!==Symbol.prototype?"symbol":typeof mt})(wt)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var q=Y(0);function X(wt,mt){if(!(wt instanceof mt))throw new TypeError("Cannot call a class as a function")}function tt(wt,mt){for(var _t=0;_t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _t,Et=lt(wt);if(mt){var At=lt(this).constructor;_t=Reflect.construct(Et,arguments,At)}else _t=Et.apply(this,arguments);return ct(this,_t)}}function ct(wt,mt){return!mt||W(mt)!=="object"&&typeof mt!="function"?function(_t){if(_t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _t}(wt):mt}function lt(wt){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(mt){return mt.__proto__||Object.getPrototypeOf(mt)})(wt)}var ht={confirm:{type:"success",text:"message_confirm"},password_mail:{type:"success",text:"message_password_mail"},email_changed:{type:"sucess",text:"message_email_changed"},verfication_error:{type:"error",text:"message_verfication_error"},signup_disabled:{type:"error",text:"message_signup_disabled"}},bt=function(wt){(function(Ct,Ft){if(typeof Ft!="function"&&Ft!==null)throw new TypeError("Super expression must either be null or a function");Ct.prototype=Object.create(Ft&&Ft.prototype,{constructor:{value:Ct,writable:!0,configurable:!0}}),Ft&&nt(Ct,Ft)})(At,wt);var mt,_t,Et=st(At);function At(){return X(this,At),Et.apply(this,arguments)}return mt=At,(_t=[{key:"render",value:function(){var Ct=this.props,Ft=Ct.type,Lt=Ct.t,Yt=ht[Ft];return(0,q.h)("div",{className:"flashMessage ".concat(Yt.type)},(0,q.h)("span",null,Lt(Yt.text)))}}])&&tt(mt.prototype,_t),At}(q.Component);F.default=bt},function(z,F,Y){z.exports=function(W){var q=[];return q.toString=function(){return this.map(function(X){var tt=function(nt,st){var ct=nt[1]||"",lt=nt[3];if(!lt)return ct;if(st&&typeof btoa=="function"){var ht=(wt=lt,mt=btoa(unescape(encodeURIComponent(JSON.stringify(wt)))),_t="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(mt),"/*# ".concat(_t," */")),bt=lt.sources.map(function(Et){return"/*# sourceURL=".concat(lt.sourceRoot||"").concat(Et," */")});return[ct].concat(bt).concat([ht]).join(` +`)}var wt,mt,_t;return[ct].join(` +`)}(X,W);return X[2]?"@media ".concat(X[2]," {").concat(tt,"}"):tt}).join("")},q.i=function(X,tt,nt){typeof X=="string"&&(X=[[null,X,""]]);var st={};if(nt)for(var ct=0;ctpe.length)&&(ve=pe.length);for(var Ce=0,De=new Array(ve);Ce0&&arguments[0]!==void 0?arguments[0]:{},Ce=ve.APIUrl,De=ve.logo,Oe=De===void 0||De,Je=ve.namePlaceholder,qe=ve.locale;qe&&(st.default.locale=qe);var ze=document.querySelectorAll("[data-netlify-identity-menu],[data-netlify-identity-button]");Array.prototype.slice.call(ze).forEach(function(Me){var He=Me.getAttribute("data-netlify-identity-menu")===null?"button":"menu";(0,W.render)((0,W.h)(X.Provider,{store:st.default},(0,W.h)(ct.default,{mode:He,text:Me.innerText.trim()})),Me,null)}),st.default.init(Dt(Ce)),st.default.modal.logo=Oe,st.default.setNamePlaceholder(Je),(te=document.createElement("iframe")).id="netlify-identity-widget",te.title="Netlify identity widget",te.onload=function(){var Me=te.contentDocument.createElement("style");Me.innerHTML=lt.default.toString(),te.contentDocument.head.appendChild(Me),qt=(0,W.render)((0,W.h)(X.Provider,{store:st.default},(0,W.h)(nt.default,null)),te.contentDocument.body,qt),de()},Ht(te,Qt),te.src="about:blank";var we=ve.container?document.querySelector(ve.container):document.body;we.appendChild(te),Yt&&(te.setAttribute("style",Yt),Yt=null)})(pe)},setLocale:function(pe){pe&&(st.default.locale=pe)},store:st.default},Yt=null;function Ht(pe,ve){var Ce="";for(var De in ve)Ce+="".concat(De,": ").concat(ve[De],"; ");pe?pe.setAttribute("style",Ce):Yt=Ce}var qt,te,Xt={localhost:!0,"127.0.0.1":!0,"0.0.0.0":!0};function Dt(pe){var ve=Xt[document.location.hostname];if(pe)return new tt.default({APIUrl:pe,setCookie:!ve});if(ve){st.default.setIsLocal(ve);var Ce=localStorage.getItem("netlifySiteURL");return Ce&&st.default.setSiteURL(Ce),null}return new tt.default({setCookie:!ve})}var Qt={position:"fixed",top:0,left:0,border:"none",width:"100%",height:"100%",overflow:"visible",background:"transparent",display:"none","z-index":99};(0,q.observe)(st.default.modal,"isOpen",function(){st.default.settings||st.default.loadSettings(),Ht(te,_t(_t({},Qt),{},{display:st.default.modal.isOpen?"block !important":"none"})),st.default.modal.isOpen?Ct("open",st.default.modal.page):Ct("close")}),(0,q.observe)(st.default,"siteURL",function(){var pe;if(st.default.siteURL===null||st.default.siteURL===void 0?localStorage.removeItem("netlifySiteURL"):localStorage.setItem("netlifySiteURL",st.default.siteURL),st.default.siteURL){var ve=st.default.siteURL.replace(/\/$/,"");pe="".concat(ve,"/.netlify/identity")}st.default.init(Dt(pe),!0)}),(0,q.observe)(st.default,"user",function(){st.default.user?Ct("login",st.default.user):Ct("logout")}),(0,q.observe)(st.default,"gotrue",function(){st.default.gotrue&&Ct("init",st.default.gotrue.currentUser())}),(0,q.observe)(st.default,"error",function(){Ct("error",st.default.error)});var Nt=/(confirmation|invite|recovery|email_change)_token=([^&]+)/,ce=/error=access_denied&error_description=403/,Pt=/access_token=/;function de(){var pe=(document.location.hash||"").replace(/^#\/?/,"");if(pe){var ve=pe.match(Nt);if(ve&&(st.default.verifyToken(ve[1],ve[2]),document.location.hash=""),pe.match(ce)&&(st.default.openModal("signup"),document.location.hash=""),pe.match(Pt)){var Ce={};if(pe.split("&").forEach(function(Oe){var Je=bt(Oe.split("="),2),qe=Je[0],ze=Je[1];Ce[qe]=ze}),document&&Ce.access_token&&(document.cookie="nf_jwt=".concat(Ce.access_token)),Ce.state)try{var De=decodeURIComponent(Ce.state);if(JSON.parse(De).auth_type==="implicit")return}catch{}document.location.hash="",st.default.openModal("login"),st.default.completeExternalLogin(Ce)}}}var ye=Lt;F.default=ye},function(z,F,Y){function W(bt){return(W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(wt){return typeof wt}:function(wt){return wt&&typeof Symbol=="function"&&wt.constructor===Symbol&&wt!==Symbol.prototype?"symbol":typeof wt})(bt)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var q,X=function(bt){if(bt&&bt.__esModule)return bt;if(bt===null||W(bt)!=="object"&&typeof bt!="function")return{default:bt};var wt=nt();if(wt&&wt.has(bt))return wt.get(bt);var mt={},_t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Et in bt)if(Object.prototype.hasOwnProperty.call(bt,Et)){var At=_t?Object.getOwnPropertyDescriptor(bt,Et):null;At&&(At.get||At.set)?Object.defineProperty(mt,Et,At):mt[Et]=bt[Et]}return mt.default=bt,wt&&wt.set(bt,mt),mt}(Y(4)),tt=(q=Y(11))&&q.__esModule?q:{default:q};function nt(){if(typeof WeakMap!="function")return null;var bt=new WeakMap;return nt=function(){return bt},bt}function st(bt,wt){if(!(bt instanceof wt))throw new TypeError("Cannot call a class as a function")}function ct(bt,wt){for(var mt=0;mt0&&arguments[0]!==void 0?arguments[0]:{},Et=_t.APIUrl,At=Et===void 0?"/.netlify/identity":Et,Ct=_t.audience,Ft=Ct===void 0?"":Ct,Lt=_t.setCookie,Yt=Lt!==void 0&≪st(this,bt),At.match(lt)&&console.warn(`Warning: + +DO NOT USE HTTP IN PRODUCTION FOR GOTRUE EVER! +GoTrue REQUIRES HTTPS to work securely.`),Ft&&(this.audience=Ft),this.setCookie=Yt,this.api=new X.default(At)}var wt,mt;return wt=bt,(mt=[{key:"_request",value:function(_t){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Et.headers=Et.headers||{};var At=Et.audience||this.audience;return At&&(Et.headers["X-JWT-AUD"]=At),this.api.request(_t,Et).catch(function(Ct){return Ct instanceof X.JSONHTTPError&&Ct.json&&(Ct.json.msg?Ct.message=Ct.json.msg:Ct.json.error&&(Ct.message="".concat(Ct.json.error,": ").concat(Ct.json.error_description))),Promise.reject(Ct)})}},{key:"settings",value:function(){return this._request("/settings")}},{key:"signup",value:function(_t,Et,At){return this._request("/signup",{method:"POST",body:JSON.stringify({email:_t,password:Et,data:At})})}},{key:"login",value:function(_t,Et,At){var Ct=this;return this._setRememberHeaders(At),this._request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=password&username=".concat(encodeURIComponent(_t),"&password=").concat(encodeURIComponent(Et))}).then(function(Ft){return tt.default.removeSavedSession(),Ct.createUser(Ft,At)})}},{key:"loginExternalUrl",value:function(_t){return"".concat(this.api.apiURL,"/authorize?provider=").concat(_t)}},{key:"confirm",value:function(_t,Et){return this._setRememberHeaders(Et),this.verify("signup",_t,Et)}},{key:"requestPasswordRecovery",value:function(_t){return this._request("/recover",{method:"POST",body:JSON.stringify({email:_t})})}},{key:"recover",value:function(_t,Et){return this._setRememberHeaders(Et),this.verify("recovery",_t,Et)}},{key:"acceptInvite",value:function(_t,Et,At){var Ct=this;return this._setRememberHeaders(At),this._request("/verify",{method:"POST",body:JSON.stringify({token:_t,password:Et,type:"signup"})}).then(function(Ft){return Ct.createUser(Ft,At)})}},{key:"acceptInviteExternalUrl",value:function(_t,Et){return"".concat(this.api.apiURL,"/authorize?provider=").concat(_t,"&invite_token=").concat(Et)}},{key:"createUser",value:function(_t){var Et=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this._setRememberHeaders(Et);var At=new tt.default(this.api,_t,this.audience);return At.getUserData().then(function(Ct){return Et&&Ct._saveSession(),Ct})}},{key:"currentUser",value:function(){var _t=tt.default.recoverSession(this.api);return _t&&this._setRememberHeaders(_t._fromStorage),_t}},{key:"verify",value:function(_t,Et,At){var Ct=this;return this._setRememberHeaders(At),this._request("/verify",{method:"POST",body:JSON.stringify({token:Et,type:_t})}).then(function(Ft){return Ct.createUser(Ft,At)})}},{key:"_setRememberHeaders",value:function(_t){this.setCookie&&(this.api.defaultHeaders=this.api.defaultHeaders||{},this.api.defaultHeaders["X-Use-Cookie"]=_t?"1":"session")}}])&&ct(wt.prototype,mt),bt}();F.default=ht,typeof window<"u"&&(window.GoTrue=ht)},function(z,F,Y){Object.defineProperty(F,"__esModule",{value:!0});var W=function(q,X){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return function(tt,nt){var st=[],ct=!0,lt=!1,ht=void 0;try{for(var bt,wt=tt[Symbol.iterator]();!(ct=(bt=wt.next()).done)&&(st.push(bt.value),!nt||st.length!==nt);ct=!0);}catch(mt){lt=!0,ht=mt}finally{try{!ct&&wt.return&&wt.return()}finally{if(lt)throw ht}}return st}(q,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")};F.getPagination=function(q){var X=q.headers.get("Link"),tt={};if(X==null)return null;X=X.split(",");for(var nt=q.headers.get("X-Total-Count"),st=0,ct=X.length;st1&&arguments[1]!==void 0?arguments[1]:{};te.headers=te.headers||{};var Xt=te.audience||this.audience;return Xt&&(te.headers["X-JWT-AUD"]=Xt),this.jwt().then(function(Dt){return qt.api.request(Ht,ct({headers:Object.assign(te.headers,{Authorization:"Bearer ".concat(Dt)})},te)).catch(function(Qt){return Qt instanceof X.JSONHTTPError&&Qt.json&&(Qt.json.msg?Qt.message=Qt.json.msg:Qt.json.error&&(Qt.message="".concat(Qt.json.error,": ").concat(Qt.json.error_description))),Promise.reject(Qt)})})}},{key:"getUserData",value:function(){return this._request("/user").then(this._saveUserData.bind(this)).then(this._refreshSavedSession.bind(this))}},{key:"_saveUserData",value:function(Ht,qt){for(var te in Ht)te in Ct.prototype||te in mt||(this[te]=Ht[te]);return qt&&(this._fromStorage=!0),this}},{key:"_processTokenResponse",value:function(Ht){this.token=Ht;try{var qt=JSON.parse(function(te){var Xt=te.replace(/-/g,"+").replace(/_/g,"/");switch(Xt.length%4){case 0:break;case 2:Xt+="==";break;case 3:Xt+="=";break;default:throw"Illegal base64url string!"}var Dt=window.atob(Xt);try{return decodeURIComponent(escape(Dt))}catch{return Dt}}(Ht.access_token.split(".")[1]));this.token.expires_at=1e3*qt.exp}catch(te){console.error(new Error("Gotrue-js: Failed to parse tokenResponse claims: ".concat(te)))}}},{key:"_refreshSavedSession",value:function(){return Et()&&localStorage.getItem("gotrue.user")&&this._saveSession(),this}},{key:"_saveSession",value:function(){return Et()&&localStorage.setItem("gotrue.user",JSON.stringify(this._details)),this}},{key:"tokenDetails",value:function(){return this.token}},{key:"clearSession",value:function(){Ct.removeSavedSession(),this.token=null,wt=null}},{key:"admin",get:function(){return new tt.default(this)}},{key:"_details",get:function(){var Ht={};for(var qt in this)qt in Ct.prototype||qt in _t||(Ht[qt]=this[qt]);return Ht}}])&&ht(Ft.prototype,Lt),Yt&&ht(Ft,Yt),Ct}();F.default=At},function(z,F,Y){function W(X,tt){for(var nt=0;nt1&&arguments[1]!==void 0?arguments[1]:{};return this.user._request("/admin/users/".concat(st.id),{method:"PUT",body:JSON.stringify(ct)})}},{key:"createUser",value:function(st,ct){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return lt.email=st,lt.password=ct,this.user._request("/admin/users",{method:"POST",body:JSON.stringify(lt)})}},{key:"deleteUser",value:function(st){return this.user._request("/admin/users/".concat(st.id),{method:"DELETE"})}}])&&W(tt.prototype,nt),X}();F.default=q},function(z,F,Y){function W(qt){return(W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(qt)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var q,X=Y(0),tt=Y(2),nt=wt(Y(14)),st=wt(Y(15)),ct=wt(Y(16)),lt=wt(Y(17)),ht=wt(Y(18)),bt=wt(Y(6));function wt(qt){return qt&&qt.__esModule?qt:{default:qt}}function mt(qt,te){if(!(qt instanceof te))throw new TypeError("Cannot call a class as a function")}function _t(qt,te){for(var Xt=0;Xt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Xt,Dt=Ft(qt);if(te){var Qt=Ft(this).constructor;Xt=Reflect.construct(Dt,arguments,Qt)}else Xt=Dt.apply(this,arguments);return Ct(this,Xt)}}function Ct(qt,te){return!te||W(te)!=="object"&&typeof te!="function"?function(Xt){if(Xt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xt}(qt):te}function Ft(qt){return(Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)})(qt)}var Lt={login:!0,signup:!0},Yt={login:{login:!0,button:"log_in",button_saving:"logging_in",email:!0,password:"current-password",link:"amnesia",link_text:"forgot_password",providers:!0},signup:{signup:!0,button:"sign_up",button_saving:"signing_up",name:!0,email:!0,password:"new-password",providers:!0},amnesia:{title:"recover_password",button:"send_recovery_email",button_saving:"sending_recovery_email",email:!0,link:"login",link_text:"never_mind"},recovery:{title:"recover_password",button:"update_password",button_saving:"updating_password",password:"new-password",link:"login",link_text:"never_mind"},invite:{title:"complete_your_signup",button:"sign_up",button_saving:"signing_up",password:"new-password",providers:!0},user:{title:"logged_in"}},Ht=(0,tt.connect)(["store"])(q=function(qt){(function(Nt,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");Nt.prototype=Object.create(ce&&ce.prototype,{constructor:{value:Nt,writable:!0,configurable:!0}}),ce&&Et(Nt,ce)})(Qt,qt);var te,Xt,Dt=At(Qt);function Qt(){var Nt;mt(this,Qt);for(var ce=arguments.length,Pt=new Array(ce),de=0;de"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var mt,_t=lt(bt);if(wt){var Et=lt(this).constructor;mt=Reflect.construct(_t,arguments,Et)}else mt=_t.apply(this,arguments);return ct(this,mt)}}function ct(bt,wt){return!wt||W(wt)!=="object"&&typeof wt!="function"?function(mt){if(mt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return mt}(bt):wt}function lt(bt){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(wt){return wt.__proto__||Object.getPrototypeOf(wt)})(bt)}var ht=function(bt){(function(At,Ct){if(typeof Ct!="function"&&Ct!==null)throw new TypeError("Super expression must either be null or a function");At.prototype=Object.create(Ct&&Ct.prototype,{constructor:{value:At,writable:!0,configurable:!0}}),Ct&&nt(At,Ct)})(Et,bt);var wt,mt,_t=st(Et);function Et(){var At;X(this,Et);for(var Ct=arguments.length,Ft=new Array(Ct),Lt=0;Lt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var wt,mt=ct(ht);if(bt){var _t=ct(this).constructor;wt=Reflect.construct(mt,arguments,_t)}else wt=mt.apply(this,arguments);return st(this,wt)}}function st(ht,bt){return!bt||W(bt)!=="object"&&typeof bt!="function"?function(wt){if(wt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return wt}(ht):bt}function ct(ht){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(bt){return bt.__proto__||Object.getPrototypeOf(bt)})(ht)}var lt=function(ht){(function(Et,At){if(typeof At!="function"&&At!==null)throw new TypeError("Super expression must either be null or a function");Et.prototype=Object.create(At&&At.prototype,{constructor:{value:Et,writable:!0,configurable:!0}}),At&&tt(Et,At)})(_t,ht);var bt,wt,mt=nt(_t);function _t(Et){var At;return function(Ct,Ft){if(!(Ct instanceof Ft))throw new TypeError("Cannot call a class as a function")}(this,_t),(At=mt.call(this,Et)).handleInput=function(Ct){var Ft,Lt,Yt;At.setState((Ft={},Lt=Ct.target.name,Yt=Ct.target.value,Lt in Ft?Object.defineProperty(Ft,Lt,{value:Yt,enumerable:!0,configurable:!0,writable:!0}):Ft[Lt]=Yt,Ft))},At.addSiteURL=function(Ct){Ct.preventDefault();var Ft,Lt,Yt=(Ft=At.state.url,Lt="/.netlify/identity",Ft.indexOf(Lt)===-1?Ft:Ft.substring(0,Ft.length-Lt.length));At.props.onSiteURL(Yt)},At.clearSiteURL=function(Ct){Ct.preventDefault,At.props.onSiteURL()},At.state={url:"",development:Et.devMode||!1},At}return bt=_t,(wt=[{key:"render",value:function(){var Et=this,At=this.state,Ct=At.url,Ft=At.development,Lt=this.props.t;return(0,q.h)("div",null,Ft?(0,q.h)("div",{class:"subheader"},(0,q.h)("h3",null,Lt("site_url_title")),(0,q.h)("button",{onclick:function(Yt){return Et.clearSiteURL(Yt)},className:"btnLink forgotPasswordLink"},Lt("site_url_link_text"))):(0,q.h)("form",{onsubmit:this.addSiteURL,className:"form"},(0,q.h)("div",{className:"flashMessage"},Lt("site_url_message")),(0,q.h)("div",{className:"formGroup"},(0,q.h)("label",null,(0,q.h)("span",{className:"visuallyHidden"},Lt("site_url_label")),(0,q.h)("input",{className:"formControl",type:"url",name:"url",value:Ct,placeholder:Lt("site_url_placeholder"),autocapitalize:"off",required:!0,oninput:this.handleInput}),(0,q.h)("div",{className:"inputFieldIcon inputFieldUrl"}))),(0,q.h)("button",{type:"submit",className:"btn"},Lt("site_url_submit"))))}}])&&X(bt.prototype,wt),_t}(q.Component);F.default=lt},function(z,F,Y){function W(mt){return(W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_t){return typeof _t}:function(_t){return _t&&typeof Symbol=="function"&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t})(mt)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var q,X=Y(0),tt=(q=Y(5))&&q.__esModule?q:{default:q};function nt(mt,_t){if(!(mt instanceof _t))throw new TypeError("Cannot call a class as a function")}function st(mt,_t){for(var Et=0;Et<_t.length;Et++){var At=_t[Et];At.enumerable=At.enumerable||!1,At.configurable=!0,"value"in At&&(At.writable=!0),Object.defineProperty(mt,At.key,At)}}function ct(mt,_t){return(ct=Object.setPrototypeOf||function(Et,At){return Et.__proto__=At,Et})(mt,_t)}function lt(mt){var _t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Et,At=bt(mt);if(_t){var Ct=bt(this).constructor;Et=Reflect.construct(At,arguments,Ct)}else Et=At.apply(this,arguments);return ht(this,Et)}}function ht(mt,_t){return!_t||W(_t)!=="object"&&typeof _t!="function"?function(Et){if(Et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et}(mt):_t}function bt(mt){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(_t){return _t.__proto__||Object.getPrototypeOf(_t)})(mt)}var wt=function(mt){(function(Ft,Lt){if(typeof Lt!="function"&&Lt!==null)throw new TypeError("Super expression must either be null or a function");Ft.prototype=Object.create(Lt&&Lt.prototype,{constructor:{value:Ft,writable:!0,configurable:!0}}),Lt&&ct(Ft,Lt)})(Ct,mt);var _t,Et,At=lt(Ct);function Ct(){var Ft;nt(this,Ct);for(var Lt=arguments.length,Yt=new Array(Lt),Ht=0;Ht"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Et,At=bt(mt);if(_t){var Ct=bt(this).constructor;Et=Reflect.construct(At,arguments,Ct)}else Et=At.apply(this,arguments);return ht(this,Et)}}function ht(mt,_t){return!_t||W(_t)!=="object"&&typeof _t!="function"?function(Et){if(Et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et}(mt):_t}function bt(mt){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(_t){return _t.__proto__||Object.getPrototypeOf(_t)})(mt)}var wt=function(mt){(function(Ft,Lt){if(typeof Lt!="function"&&Lt!==null)throw new TypeError("Super expression must either be null or a function");Ft.prototype=Object.create(Lt&&Lt.prototype,{constructor:{value:Ft,writable:!0,configurable:!0}}),Lt&&ct(Ft,Lt)})(Ct,mt);var _t,Et,At=lt(Ct);function Ct(Ft){var Lt;return function(Yt,Ht){if(!(Yt instanceof Ht))throw new TypeError("Cannot call a class as a function")}(this,Ct),(Lt=At.call(this,Ft)).handleInput=function(Yt){var Ht,qt,te;Lt.setState((Ht={},qt=Yt.target.name,te=Yt.target.value,qt in Ht?Object.defineProperty(Ht,qt,{value:te,enumerable:!0,configurable:!0,writable:!0}):Ht[qt]=te,Ht))},Lt.handleLogin=function(Yt){Yt.preventDefault(),Lt.props.onSubmit(Lt.state)},Lt.state={name:"",email:"",password:""},Lt}return _t=Ct,(Et=[{key:"render",value:function(){var Ft=this.props,Lt=Ft.page,Yt=Ft.message,Ht=Ft.saving,qt=Ft.namePlaceholder,te=Ft.t,Xt=this.state,Dt=Xt.name,Qt=Xt.email,Nt=Xt.password;return(0,q.h)("form",{onsubmit:this.handleLogin,className:"form ".concat(Ht?"disabled":"")},Yt&&(0,q.h)(X.default,{type:Yt,t:te}),Lt.name&&(0,q.h)("div",{className:"formGroup"},(0,q.h)("label",null,(0,q.h)("span",{className:"visuallyHidden"},te("form_name_placeholder")),(0,q.h)("input",{className:"formControl",type:"name",name:"name",value:Dt,placeholder:qt||te("form_name_label"),autocapitalize:"off",required:!0,oninput:this.handleInput}),(0,q.h)("div",{className:"inputFieldIcon inputFieldName"}))),Lt.email&&(0,q.h)("div",{className:"formGroup"},(0,q.h)("label",null,(0,q.h)("span",{className:"visuallyHidden"},te("form_name_label")),(0,q.h)("input",{className:"formControl",type:"email",name:"email",value:Qt,placeholder:te("form_email_placeholder"),autocapitalize:"off",required:!0,oninput:this.handleInput}),(0,q.h)("div",{className:"inputFieldIcon inputFieldEmail"}))),Lt.password&&(0,q.h)("div",{className:"formGroup"},(0,q.h)("label",null,(0,q.h)("span",{className:"visuallyHidden"},te("form_password_label")),(0,q.h)("input",{className:"formControl",type:"password",name:"password",value:Nt,placeholder:te("form_password_placeholder"),autocomplete:Lt.password,required:!0,oninput:this.handleInput}),(0,q.h)("div",{className:"inputFieldIcon inputFieldPassword"}))),(0,q.h)(tt.default,{saving:Ht,text:te(Lt.button),saving_text:te(Lt.button_saving)}))}}])&&st(_t.prototype,Et),Ct}(q.Component);F.default=wt},function(z,F,Y){function W(_t){return(W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Et){return typeof Et}:function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et})(_t)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var q=Y(0);function X(_t,Et){if(!(_t instanceof Et))throw new TypeError("Cannot call a class as a function")}function tt(_t,Et){for(var At=0;At"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var At,Ct=bt(_t);if(Et){var Ft=bt(this).constructor;At=Reflect.construct(Ct,arguments,Ft)}else At=Ct.apply(this,arguments);return ht(this,At)}}function ht(_t,Et){return!Et||W(Et)!=="object"&&typeof Et!="function"?function(At){if(At===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return At}(_t):Et}function bt(_t){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(Et){return Et.__proto__||Object.getPrototypeOf(Et)})(_t)}var wt=function(_t){st(At,_t);var Et=lt(At);function At(){var Ct;X(this,At);for(var Ft=arguments.length,Lt=new Array(Ft),Yt=0;Yt1&&arguments[1]!==void 0?arguments[1]:"en",At=mt[Et]&&mt[Et][_t];return At||mt.en[_t]||_t}},function(z){z.exports=JSON.parse(`{"log_in":"Log in","log_out":"Log out","logged_in_as":"Logged in as","logged_in":"Logged in","logging_in":"Logging in","logging_out":"Logging out","sign_up":"Sign up","signing_up":"Signing up","forgot_password":"Forgot password?","recover_password":"Recover password","send_recovery_email":"Send recovery email","sending_recovery_email":"Sending recovery email","never_mind":"Never mind","update_password":"Update password","updating_password":"Updating password","complete_your_signup":"Complete your signup","site_url_title":"Development Settings","site_url_link_text":"Clear localhost URL","site_url_message":"Looks like you're running a local server. Please let us know the URL of your Netlify site.","site_url_label":"Enter your Netlify Site URL","site_url_placeholder":"URL of your Netlify site","site_url_submit":"Set site's URL","message_confirm":"A confirmation message was sent to your email, click the link there to continue.","message_password_mail":"We've sent a recovery email to your account, follow the link there to reset your password.","message_email_changed":"Your email address has been updated!","message_verfication_error":"There was an error verifying your account. Please try again or contact an administrator.","message_signup_disabled":"Public signups are disabled. Contact an administrator and ask for an invite.","form_name_placeholder":"Name","form_email_label":"Enter your email","form_name_label":"Enter your name","form_email_placeholder":"Email","form_password_label":"Enter your password","form_password_placeholder":"Password","coded_by":"Coded by Netlify","continue_with":"Continue with","No user found with this email":"No user found with this email","Invalid Password":"Invalid Password","Email not confirmed":"Email not confirmed","User not found":"User not found"}`)},function(z){z.exports=JSON.parse(`{"log_in":"Connexion","log_out":"Déconnexion","logged_in_as":"Connecté en tant que","logged_in":"Connecté","logging_in":"Connexion","logging_out":"Déconnexion","sign_up":"Inscription","signing_up":"Inscription","forgot_password":"Mot de passe oublié ?","recover_password":"Récupérer le mot de passe","send_recovery_email":"Envoyer l'e-mail de récupération","sending_recovery_email":"Envoi de l'e-mail de récupération","never_mind":"Annuler","update_password":"Mettre à jour le mot de passe","updating_password":"Mise à jour du mot de passe","complete_your_signup":"Compléter l'inscription","site_url_title":"Paramètres de développement","site_url_link_text":"Effacer l'URL localhost","site_url_message":"On dirait que vous faites tourner un serveur local. Veuillez nous indiquer l'URL de votre site Netlify.","site_url_label":"Entrez l'URL de votre site Netlify","site_url_placeholder":"URL de votre site Netlify","site_url_submit":"Définir l'URL du site","message_confirm":"Un message de confirmation a été envoyé à votre adresse électronique, cliquez sur le lien pour continuer.","message_password_mail":"Nous avons envoyé un e-mail de récupération à votre compte, suivez le lien qui s'y trouve pour réinitialiser votre mot de passe.","message_email_changed":"Votre adresse e-mail a été mise à jour !","message_verfication_error":"Il y a eu une erreur lors de la vérification de votre compte. Veuillez réessayer ou contacter un administrateur.","message_signup_disabled":"Les inscriptions publiques sont désactivées. Contactez un administrateur et demandez une invitation.","form_name_placeholder":"Nom","form_email_label":"Entrez votre adresse e-mail","form_name_label":"Saisissez votre nom","form_email_placeholder":"E-mail","form_password_label":"Saisissez votre mot de passe","form_password_placeholder":"Mot de passe","coded_by":"Codé par Netlify","continue_with":"Continuer avec","No user found with this email":"Aucun utilisateur trouvé avec cet e-mail","Invalid Password":"Mot de passe incorrect","Email not confirmed":"Adresse e-mail non confirmée","User not found":"Aucun utilisateur trouvé"}`)},function(z){z.exports=JSON.parse('{"log_in":"Iniciar sesión","log_out":"Cerrar sesión","logged_in_as":"Conectado como","logged_in":"Conectado","logging_in":"Iniciando sesión","logging_out":"Cerrando sesión","sign_up":"Registrate","signing_up":"Registrandose","forgot_password":"¿Olvidaste tu contraseña?","recover_password":"Recuperar contraseña","send_recovery_email":"Enviar correo electrónico de recuperación","sending_recovery_email":"Enviando correo electrónico de recuperación","never_mind":"Regresar","update_password":"Actualizar contraseña","updating_password":"Actualizando contraseña","complete_your_signup":"Completa tu registro","site_url_title":"Configuración de desarrollo","site_url_link_text":"Borrar URL del localhost","site_url_message":"Parece que estas corriendo un servidor local. Por favor haznos saber la URL de tu sitio en Netlify.","site_url_label":"Ingresa la URL de tu sitio en Netlify","site_url_placeholder":"URL de tu sitio en Netlify","site_url_submit":"Establecer la URL del sitio","message_confirm":"Se envió un mensaje de confirmación a tu correo electrónico, haz clic en el enlace allí para continuar.","message_password_mail":"Hemos enviado un correo electrónico de recuperación a tu correo electrónico, sigue el enlace allí para restablecer tu contraseña.","message_email_changed":"¡Tu dirección de correo electrónico ha sido actualizada!","message_verfication_error":"Se produjo un error al verificar tu cuenta. Por favor intenta nuevamente o contacta a un administrador.","message_signup_disabled":"Los registros públicos están deshabilitados. Contacta a un administrador y solicita una invitación.","form_name_placeholder":"Nombre","form_email_label":"Ingresa tu correo electrónico","form_name_label":"Ingresa tu nombre","form_email_placeholder":"Correo electrónico","form_password_label":"Ingresa tu contraseña","form_password_placeholder":"Contraseña","coded_by":"Codificado por Netlify","continue_with":"Continúa con","No user found with this email":"No existe ningún usuario con este correo electrónico","Invalid Password":"La contraseña es invalida","Email not confirmed":"Correo electrónico no confirmado","User not found":"Usuario no encontrado"}')},function(z){z.exports=JSON.parse('{"log_in":"Bejelentkezés","log_out":"Kijelentkezés","logged_in_as":"Bejelentkezve mint","logged_in":"Bejelentkezve","logging_in":"Bejelentkezés","logging_out":"Kijelentkezés","sign_up":"Regisztráció","signing_up":"Regisztrálás","forgot_password":"Elfelejtette a jelszavát?","recover_password":"Jelszó visszaállítása","send_recovery_email":"Jelszópótló levél küldése","sending_recovery_email":"Jelszópótló levél küldése","never_mind":"Mégsem","update_password":"Új jelszó beállítása","updating_password":"Új jelszó beállítása","complete_your_signup":"Regisztráció befejezése","site_url_title":"Fejlesztői Beállítások","site_url_link_text":"Localhost URL törlése","site_url_message":"Úgy néz ki egy helyi szervert futtat. Kérjük adja meg a Netlify oldala URL-jét.","site_url_label":"Adja meg a Netlify oldala URL-jét","site_url_placeholder":"a Netlify oldala URL-je","site_url_submit":"URL beállítása","message_confirm":"Elküldtünk egy megerősítő levelet e-mailben, kérjük kattintson a linkre a levélben a folytatáshoz.","message_password_mail":"Elküldtünk egy jelszópótló levelet e-mailben, kérjük kövesse a linket a levélben a jelszava visszaállításához.","message_email_changed":"Az e-mail címét frissítettük!","message_verfication_error":"Probléma történt a fiókja megerősítése közben. Kérjük próbálja újra, vagy vegye fel a kapcsolatot egy adminisztrátorral.","message_signup_disabled":"A nyilvános regisztráció nincs engedélyezve. Vegye fel a kapcsolatot egy adminisztrátorral és kérjen meghívót.","form_name_placeholder":"Név","form_email_label":"Adja meg az e-mail címét","form_name_label":"Adja meg a nevét","form_email_placeholder":"E-mail","form_password_label":"Adja meg a jelszavát","form_password_placeholder":"Jelszó","coded_by":"Fejlesztette a Netlify","continue_with":"Bejelentkezés ezzel:","No user found with this email":"Nem található fiók ezzel az e-mail címmel","Invalid Password":"Helytelen Jelszó","Email not confirmed":"Az e-mail nem erősült meg","User not found":"Felhasználó nem található"}')},function(z){z.exports=JSON.parse('{"log_in":"Entrar","log_out":"Sair","logged_in_as":"Logado como","logged_in":"Logado em","logging_in":"Logando em","logging_out":"Saindo","sign_up":"Registrar","signing_up":"Registrando","forgot_password":"Esqueceu a senha?","recover_password":"Recuperar senha","send_recovery_email":"Enviar email de recuperação de senha","sending_recovery_email":"Enviando email de recuperação de senha","never_mind":"Deixa pra lá","update_password":"Atualizar senha","updating_password":"Atualizando senha","complete_your_signup":"Complete seu registro","site_url_title":"Configurações de desenvolvimento","site_url_link_text":"Limpar URL do localhost","site_url_message":"Parece que você está executando um servidor local. Informe-nos o URL do seu site Netlify.","site_url_label":"Insira o URL do seu site Netlify","site_url_placeholder":"URL do seu site Netlify","site_url_submit":"Configure a URL do seu site","message_confirm":"Uma mensagem de confirmação foi enviada para o seu email, clique no link para continuar.","message_password_mail":"Enviamos um e-mail de recuperação para sua conta, siga o link para redefinir sua senha.","message_email_changed":"Seu email foi atualizado!","message_verfication_error":"Ocorreu um erro ao verificar sua conta. Tente novamente ou entre em contato com um administrador.","message_signup_disabled":"Registros públicos estão desabilitados. Contate um administrador e peça por um convite.","form_name_placeholder":"Nome","form_email_label":"Insira seu email","form_name_label":"Insira seu nome","form_email_placeholder":"Email","form_password_label":"Insira sua senha","form_password_placeholder":"Senha","coded_by":"Desenvolvido por Netlify","continue_with":"Continue com","No user found with this email":"Nenhum usuário encontrado com esse email","Invalid Password":"Senha inválida","Email not confirmed":"Email não confirmado","User not found":"Usuário não encontrado"}')},function(z){z.exports=JSON.parse('{"log_in":"Zaloguj się","log_out":"Wyloguj się","logged_in_as":"Zaloguj jako","logged_in":"Zalogowany","logging_in":"Logowanie","logging_out":"Wylogowywanie","sign_up":"Zarejestruj się","signing_up":"Rejestracja","forgot_password":"Nie pamiętasz hasła?","recover_password":"Resetuj hasło","send_recovery_email":"Wyślij link do resetowania hasła","sending_recovery_email":"Wysyłanie linku do resetowania hasła","never_mind":"Nieistotne","update_password":"Zaktualizuj hasło","updating_password":"Aktualizowanie hasło","complete_your_signup":"Dokończ rejestrację","site_url_title":"Ustawienia strony","site_url_link_text":"Usuń adres localhost","site_url_message":"Wygląda na to że został uruchomiony lokalny serwer. Wprowadź adres Twojej strony na Netlify.","site_url_label":"Wprowadz adres strony na Netlify","site_url_placeholder":"Adres Twojej strony na Netlify","site_url_submit":"Ustaw adres strony","message_confirm":"Potwierdzenie zostało wysłane na Twój adres email. Kliknij w link w wiadomości aby kontunuować.","message_password_mail":"Wysłaliśmy link resetujący hasło na Twój adres email. Klknij w link w wiadomości aby zresetować hasło.","message_email_changed":"Twój adres email został zaktualizowany!","message_verfication_error":"Wystąpił błąd podczas weryfikcacji Twoje konta. Spróbuj ponownie lub skontaktuj się z administratorem,","message_signup_disabled":"Publiczna rejestracja jest wyłączona. Skontaktuj się z administratorem by uzyskać zaproszenie.","form_name_placeholder":"Imię","form_email_label":"Wprowadź Twój adres email","form_name_label":"Wprowadź Twoje imię","form_email_placeholder":"Email","form_password_label":"Wprowadź twoje hasło","form_password_placeholder":"Hasło","coded_by":"Coded by Netlify","continue_with":"Kontynuuj z","No user found with this email":"Nie znaleziono użytkownika o tym adresie","Invalid Password":"Hasło nieprawidłowe","Email not confirmed":"Email nie został potwierdzony","User not found":"Nie znaleziono użytkownika"}')},function(z){z.exports=JSON.parse('{"log_in":"Přihlásit se","log_out":"Odhlásit se","logged_in_as":"Přihlášen jako","logged_in":"Přihlášený uživatel","logging_in":"Probíhá přihlášení","logging_out":"Probíhá odhlášení","sign_up":"Zaregistrovat se","signing_up":"Registrace","forgot_password":"Zapomněli jste heslo?","recover_password":"Obnovit heslo","send_recovery_email":"Odeslat e-mail pro obnovení","sending_recovery_email":"Odesílání e-mailu pro obnovení","never_mind":"Zpět","update_password":"Aktualizovat heslo","updated_password":"Aktualizace hesla","complete_your_signup":"Dokončete registraci","site_url_title":"Nastavení vývoje","site_url_link_text":"Vymazat URL localhost","site_url_message":"Zdá se, že používáte lokální server. Sdělte nám prosím adresu URL svého Netlify serveru.","site_url_label":"Zadejte adresu URL svého serveru Netlify","site_url_placeholder":"URL vašeho Netlify serveru","site_url_submit":"Nastavit adresu URL","message_confirm":"Na váš e-mail byl odeslán odkaz k potvrzení registrace, pokračujte kliknutím na tento odkaz.","message_password_mail":"Zaslali jsme vám e-mail pro obnovení hesla, heslo obnovíte kliknutím na odkaz v e-mailu.","message_email_changed":"Vaše e-mailová adresa byla aktualizována!","message_verfication_error":"Při ověřování vašeho účtu došlo k chybě. Zkuste to prosím znovu nebo kontaktujte správce.","message_signup_disabled":"Registrace pro veřejnost jsou zakázány. Kontaktujte správce a požádejte o pozvánku.","form_name_placeholder":"Jméno","form_email_label":"Zadejte svůj e-mail","form_name_label":"Zadejte své jméno","form_email_placeholder":"E-mail","form_password_label":"Zadejte své heslo","form_password_placeholder":"Heslo","coded_by":"Vytvořeno Netlify","continue_with":"Pokračovat přes","No user found with this email":"Nebyl nalezen žádný uživatel s tímto e-mailem","Invalid Password":"Neplatné heslo","Email not confirmed":"E-mail nebyl potvrzen","User not found":"Uživatel nebyl nalezen"}')},function(z){z.exports=JSON.parse('{"log_in":"Prihlásiť sa","log_out":"Odhlásiť sa","logged_in_as":"Prihlásený ako","logged_in":"Prihlásený užívateľ","logging_in":"Prebieha prihlásenie","logging_out":"Prebieha odhlásenie","sign_up":"Zaregistrovať sa","signing_up":"Registrácia","forgot_password":"Zabudli ste heslo?","recover_password":"Obnoviť heslo","send_recovery_email":"Odoslať e-mail pre obnovenie","sending_recovery_email":"Odosielanie e-mailu pre obnovenie","never_mind":"Naspäť","update_password":"Aktualizovať heslo","updated_password":"Aktualizácia hesla","complete_your_signup":"Dokončite registráciu","site_url_title":"Nastavenie vývoja","site_url_link_text":"Vymazať URL localhost","site_url_message":"Zdá sa, že používate lokálny server. Prosím, nastavte URL adresu svojho Netlify servera.","site_url_label":"Zadajte URL svojho Netlify servera","site_url_placeholder":"URL vášho Netlify servera","site_url_submit":"Nastaviť URL adresu","message_confirm":"Potvrďte registráciu kliknutím na odkaz v správe, ktorú sme Vám práve zaslali na váš email.","message_password_mail":"Poslali sme vám e-mail pre obnovenie hesla, heslo obnovíte kliknutím na odkaz v e-maile.","message_email_changed":"Vaša e-mailová adresa bola aktualizovaná!","message_verfication_error":"Pri overovaní vášho účtu došlo k chybe. Prosím, skúste to znova alebo kontaktujte správcu.","message_signup_disabled":"Registrácia pre verejnosť sú zakázané. Kontaktujte správcu a požiadajte o pozvánku.","form_name_placeholder":"Meno","form_email_label":"Zadajte svoj e-mail","form_name_label":"Zadajte svoje meno","form_email_placeholder":"E-mail","form_password_label":"Zadajte svoje heslo","form_password_placeholder":"Heslo","coded_by":"Vytvorené Netlify","continue_with":"Pokračovať cez","No user found with this email":"Nebol nájdený žiadny užívateľ s týmto e-mailom","Invalid Password":"Neplatné heslo","Email not confirmed":"E-mail nebol potvrdený","User not found":"Používateľ nebol nájdený"}')},function(z,F,Y){function W(wt){return(W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(mt){return typeof mt}:function(mt){return mt&&typeof Symbol=="function"&&mt.constructor===Symbol&&mt!==Symbol.prototype?"symbol":typeof mt})(wt)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var q,X=Y(0);function tt(wt,mt){if(!(wt instanceof mt))throw new TypeError("Cannot call a class as a function")}function nt(wt,mt){for(var _t=0;_t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _t,Et=ht(wt);if(mt){var At=ht(this).constructor;_t=Reflect.construct(Et,arguments,At)}else _t=Et.apply(this,arguments);return lt(this,_t)}}function lt(wt,mt){return!mt||W(mt)!=="object"&&typeof mt!="function"?function(_t){if(_t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _t}(wt):mt}function ht(wt){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(mt){return mt.__proto__||Object.getPrototypeOf(mt)})(wt)}var bt=(0,Y(2).connect)(["store"])(q=function(wt){(function(Ct,Ft){if(typeof Ft!="function"&&Ft!==null)throw new TypeError("Super expression must either be null or a function");Ct.prototype=Object.create(Ft&&Ft.prototype,{constructor:{value:Ct,writable:!0,configurable:!0}}),Ft&&st(Ct,Ft)})(At,wt);var mt,_t,Et=ct(At);function At(){var Ct;tt(this,At);for(var Ft=arguments.length,Lt=new Array(Ft),Yt=0;Yt>(-2*Y&6)):0)F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(F);return q};function t(D){var O=D.replace(/-/g,"+").replace(/_/g,"/");switch(O.length%4){case 0:break;case 2:O+="==";break;case 3:O+="=";break;default:throw"Illegal base64url string!"}try{return function(z){return decodeURIComponent(r(z).replace(/(.)/g,function(F,Y){var W=Y.charCodeAt(0).toString(16).toUpperCase();return W.length<2&&(W="0"+W),"%"+W}))}(O)}catch{return r(O)}}function n(D){this.message=D}function o(D,O){if(typeof D!="string")throw new n("Invalid token specified");var z=(O=O||{}).header===!0?0:1;try{return JSON.parse(t(D.split(".")[z]))}catch(F){throw new n("Invalid token specified: "+F.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const _hoisted_1$6=createBaseVNode("button",{id:"hs-dropdown-custom-icon-trigger",type:"button","aria-label":"Site navigation menu",class:"hs-dropdown-toggle p-3 inline-flex justify-center items-center gap-2 rounded-md border font-medium bg-white text-gray-700 shadow-lg align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-lg dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"},[createBaseVNode("svg",{class:"w-4 h-4",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},[createBaseVNode("path",{"fill-rule":"evenodd",d:"M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"})])],-1),_hoisted_2$5={class:"hs-dropdown-menu font-sans text-base transition-[opacity,margin] duration hs-dropdown-open:opacity-100 opacity-0 hidden min-w-[15rem] bg-white shadow-md rounded-lg p-2 mt-2 dark:bg-gray-800 dark:border dark:border-gray-700","aria-labelledby":"hs-dropdown-custom-icon-trigger"},_hoisted_3$3=["href","onClick"],_hoisted_4$3=["innerHTML"],_hoisted_5$2={key:1,class:"w-4"},_hoisted_6$2=["innerHTML"],_hoisted_7$2=createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512"},[createBaseVNode("path",{d:"M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"})],-1),_hoisted_8$2={class:"font-medium"},_hoisted_9$2=createBaseVNode("span",{class:"font-medium"},"Logout",-1),_hoisted_10$2=createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512"},[createBaseVNode("path",{d:"M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"})],-1),_hoisted_11$1={class:"font-medium"},_hoisted_12$1=["href"],_hoisted_13$1=createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},[createBaseVNode("path",{d:"M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"})],-1),_hoisted_14=createBaseVNode("span",{class:"font-medium"},"Contact Us",-1),_hoisted_15=[_hoisted_13$1,_hoisted_14],_sfc_main$8=defineComponent({__name:"Menu.ce",props:{logo:{type:String},title:{type:String},auth:{type:String},contact:{type:String}},setup(D){const O=ref(null),z=computed(()=>{var Lt,Yt;return(Yt=(Lt=O.value)==null?void 0:Lt.getRootNode())==null?void 0:Yt.host}),F=computed(()=>{var Lt;return(Lt=O==null?void 0:O.value)==null?void 0:Lt.parentNode});watch$1(F,Lt=>new HSDropdown(Lt).init()),watch$1(z,()=>{nt()});const Y=ref([]),W=D,q=ref(null),X=computed(()=>{var Lt,Yt,Ht;return((Lt=q.value)==null?void 0:Lt.token)&&(((Yt=q.value)==null?void 0:Yt.provider)==="github"||tt((Ht=q.value)==null?void 0:Ht.tokenExpiration))||!1});function tt(Lt){return!(Lt<=Date.now())}function nt(){function Lt(){Y.value=Array.from(z.value.querySelectorAll("li")).map(Yt=>{const Ht=Yt.querySelector("a");let qt=Ht.innerText.trim(),te=Yt.querySelector("svg");return{label:qt,icon:te,href:Ht.href}})}Lt(),new MutationObserver(Yt=>{for(let Ht of Yt)Ht.type==="childList"&&Lt()}).observe(z.value,{childList:!0,subtree:!0})}onMounted(async()=>{W.auth==="netlify"?wt():W.auth==="github"&&Et()}),watch$1(q,()=>{q.value?localStorage.setItem("auth-user",JSON.stringify(q.value)):localStorage.getItem("auth-user")&&localStorage.removeItem("auth-user")});function st(Lt,Yt){Yt.preventDefault();let Ht=Lt.href.split("/").filter(qt=>qt).pop().toLowerCase();Ht=location.host===Ht?"home":Ht,Ht==="search"?window.open(Lt.href,"_blank"):location.href=Lt.href}function ct(Lt){return Lt[0].toUpperCase()+Lt.slice(1).toLowerCase()}function lt(Lt){Lt.preventDefault(),W.auth==="netlify"?netlifyIdentity.open("login"):W.auth==="github"&&At()}function ht(Lt){Lt.preventDefault(),q.value=null,W.auth==="netlify"?netlifyIdentity.logout():W.auth==="github"&&Ct()}let bt="https://juncture-search.netlify.app/.netlify/identity";function wt(){location.hostname==="search.plant-humanities.org"&&(bt="https://search.plant-humanities.org/.netlify/identity");let Lt=localStorage.getItem("auth-user")&&JSON.parse(localStorage.getItem("auth-user")||"{}");(Lt==null?void 0:Lt.provider)==="netlify"?q.value=Lt:q.value=null,netlifyIdentity.on("init",Yt=>{Yt&&(q.value={provider:"netlify",name:Yt.user_metadata.full_name,email:Yt.email,token:Yt.token})}),netlifyIdentity.on("error",Yt=>console.error("Error",Yt)),netlifyIdentity.on("login",Yt=>{q.value={provider:"netlify",name:Yt.user_metadata.full_name,email:Yt.email,token:Yt.token},netlifyIdentity.close()}),netlifyIdentity.init({APIUrl:bt}),mt()}function mt(){let Lt=localStorage.getItem("auth-user")&&JSON.parse(localStorage.getItem("auth-user")||"{}");if(Lt&&!X.value){const Yt=new FormData;return Yt.append("grant_type","refresh_token"),Yt.append("refresh_token",Lt.token.refresh_token),fetch(`${bt}/token`,{method:"POST",body:Yt}).then(Ht=>Ht.json()).then(Ht=>{console.log("validateNetlifyUser: newToken",Ht),Lt.token.access_token=Ht.access_token,Lt.token.refresh_token=Ht.refresh_token,Lt.token.expires_at=o(Ht.access_token).exp*1e3,q.value={provider:"netlify",name:Lt.user_metadata.full_name,email:Lt.email,token:Lt.token}}),null}return null}const _t={"www.juncture-digital.org":"f7247e1e4769ba7c61e4","dev.juncture-digital.org":"bb290b5a738cb6fe31c7","search.juncture-digital.org":"ce9f2d2fb0a3498569fd","lab.plant-humanities.org":"2883735f052415de88ce","beta.plant-humanities.org":"4304885bd2882ecd28cc","search.plant-humanities.org":"e75df39d883077c1013f"};async function Et(){let Lt=localStorage.getItem("auth-user")&&JSON.parse(localStorage.getItem("auth-user")||"{}");(Lt==null?void 0:Lt.provider)==="github"?q.value=Lt:q.value=null;let Yt=new URL(window.location.href).searchParams.get("code");if(Yt){let Ht=`${location.pathname}${location.hash}`;window.history.replaceState({},"",Ht);let qt=`https://www.juncture-digital.org/gh-token?code=${Yt}&hostname=${window.location.hostname}`,te=await fetch(qt);if(te.ok){let Xt=await te.text(),Dt=await Ft(Xt);q.value=Dt}}}function At(){let Lt=new URL(window.location.href).hostname,Yt=Lt==="localhost"||Lt.indexOf("192.168.")===0,Ht=`${window.location.href}`,qt=Yt?`${window.location.pathname}?code=testing&redirect_uri=${location.pathname}${location.hash}`:_t[location.hostname]!==void 0?`https://github.com/login/oauth/authorize?client_id=${_t[location.hostname]}&scope=repo&state=juncture&redirect_uri=${Ht}`:null;qt&&(window.location.href=qt)}function Ct(){Object.keys(localStorage).forEach(Lt=>localStorage.removeItem(Lt)),q.value=null}async function Ft(Lt){let Yt=await fetch("https://api.github.com/user",{headers:{Accept:"application/vnd.github+json",Authorization:`token ${Lt}`}});if(Yt.ok){let Ht=await Yt.json();return{provider:"github",username:Ht.login,name:Ht.name,email:Ht.email,token:Lt}}}return(Lt,Yt)=>{var Ht,qt;return openBlock(),createElementBlock("nav",{class:"hs-dropdown relative inline-flex",ref_key:"root",ref:O},[_hoisted_1$6,createBaseVNode("div",_hoisted_2$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Y.value,te=>(openBlock(),createElementBlock("a",{key:te.href,class:"flex items-center gap-x-2 py-2 rounded-md font-sans text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300",href:te.href,onClick:Xt=>st(te,Xt)},[te.icon?(openBlock(),createElementBlock("svg",{key:0,innerHTML:te.icon.outerHTML,class:"w-4 h-4 text-gray-500"},null,8,_hoisted_4$3)):(openBlock(),createElementBlock("span",_hoisted_5$2)),createBaseVNode("span",{innerHTML:te.label,class:"font-medium"},null,8,_hoisted_6$2)],8,_hoisted_3$3))),128)),W.auth&&X.value?(openBlock(),createElementBlock("a",{key:0,class:"flex items-center gap-x-2 py-2 rounded-md text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300",href:"javascript;;",onClick:ht},[_hoisted_7$2,createBaseVNode("span",_hoisted_8$2,"("+toDisplayString(((Ht=q.value)==null?void 0:Ht.name)||((qt=q.value)==null?void 0:qt.email))+")",1),createTextVNode(),_hoisted_9$2])):createCommentVNode("",!0),W.auth&&!X.value?(openBlock(),createElementBlock("a",{key:1,class:"flex items-center gap-x-2 py-2 rounded-md text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300",href:"javascript;;",onClick:lt},[_hoisted_10$2,createBaseVNode("span",_hoisted_11$1,"Login with "+toDisplayString(ct(W.auth)),1)])):createCommentVNode("",!0),W.contact?(openBlock(),createElementBlock("a",{key:2,class:"flex items-center gap-x-2 py-2 rounded-md font-sans text-gray-800 hover:bg-gray-100 focus:ring-2 focus:ring-blue-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300",href:`mailto:${Lt.$props.contact}`},_hoisted_15,8,_hoisted_12$1)):createCommentVNode("",!0)])],512)}}}),_style_0$5=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[10px\\]{right:10px}.top-0{top:0}.top-\\[12px\\]{top:12px}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.float-right{float:right}.float-left{float:left}.m-1{margin:.25rem}.m-3{margin:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-\\[80px\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.w-1\\/2{width:50%}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-8{width:2rem}.w-\\[80px\\]{width:80px}.w-full{width:100%}.min-w-\\[15rem\\]{min-width:15rem}.max-w-\\[24px\\]{max-width:24px}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-\\[\\#000\\]\\/30{background-color:#0000004d}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,margin\\]{transition-property:opacity,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\[--placement\\:top\\]{--placement: top}.\\[--trigger\\:click\\]{--trigger: click}html{padding:1rem;font-family:sans-serif}ve-header ul,ve-menu ul{display:none}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.group:hover .group-hover\\:visible{visibility:visible}.hs-dropdown.open>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-dropdown.open>.hs-dropdown-menu>.hs-dropdown-open\\:opacity-100{opacity:1}.hs-tooltip.show .hs-tooltip-shown\\:visible{visibility:visible}.hs-tooltip.show .hs-tooltip-shown\\:opacity-100,.open.hs-overlay-open\\:opacity-100{opacity:1}.open.hs-overlay-open\\:duration-500{transition-duration:.5s}.open .hs-overlay-open\\:opacity-100{opacity:1}.open .hs-overlay-open\\:duration-500{transition-duration:.5s}:is(.dark .dark\\:border){border-width:1px}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:shadow-slate-700\\/\\[\\.7\\]){--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\\:hover\\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-slate-800:hover){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:focus\\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-offset-gray-800:focus){--tw-ring-offset-color: #1f2937}@media (min-width: 640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}}@media (min-width: 768px){.md\\:p-5{padding:1.25rem}} +`,Menu=_export_sfc(_sfc_main$8,[["styles",[_style_0$5]]]);function dedent(D){for(var O=[],z=1;z=ce?Nt:""+Array(ce+1-de.length).join(Pt)+Nt},Ct={s:At,z:function(Nt){var ce=-Nt.utcOffset(),Pt=Math.abs(ce),de=Math.floor(Pt/60),ye=Pt%60;return(ce<=0?"+":"-")+At(de,2,"0")+":"+At(ye,2,"0")},m:function Nt(ce,Pt){if(ce.date()1)return Nt(ve[0])}else{var Ce=ce.name;Lt[Ce]=ce,ye=Ce}return!de&&ye&&(Ft=ye),ye||!de&&Ft},te=function(Nt,ce){if(Ht(Nt))return Nt.clone();var Pt=typeof ce=="object"?ce:{};return Pt.date=Nt,Pt.args=arguments,new Dt(Pt)},Xt=Ct;Xt.l=qt,Xt.i=Ht,Xt.w=function(Nt,ce){return te(Nt,{locale:ce.$L,utc:ce.$u,x:ce.$x,$offset:ce.$offset})};var Dt=function(){function Nt(Pt){this.$L=qt(Pt.locale,null,!0),this.parse(Pt),this.$x=this.$x||Pt.x||{},this[Yt]=!0}var ce=Nt.prototype;return ce.parse=function(Pt){this.$d=function(de){var ye=de.date,pe=de.utc;if(ye===null)return new Date(NaN);if(Xt.u(ye))return new Date;if(ye instanceof Date)return new Date(ye);if(typeof ye=="string"&&!/Z$/i.test(ye)){var ve=ye.match(mt);if(ve){var Ce=ve[2]-1||0,De=(ve[7]||"0").substring(0,3);return pe?new Date(Date.UTC(ve[1],Ce,ve[3]||1,ve[4]||0,ve[5]||0,ve[6]||0,De)):new Date(ve[1],Ce,ve[3]||1,ve[4]||0,ve[5]||0,ve[6]||0,De)}}return new Date(ye)}(Pt),this.init()},ce.init=function(){var Pt=this.$d;this.$y=Pt.getFullYear(),this.$M=Pt.getMonth(),this.$D=Pt.getDate(),this.$W=Pt.getDay(),this.$H=Pt.getHours(),this.$m=Pt.getMinutes(),this.$s=Pt.getSeconds(),this.$ms=Pt.getMilliseconds()},ce.$utils=function(){return Xt},ce.isValid=function(){return this.$d.toString()!==wt},ce.isSame=function(Pt,de){var ye=te(Pt);return this.startOf(de)<=ye&&ye<=this.endOf(de)},ce.isAfter=function(Pt,de){return te(Pt)-1}function tt(st){var ct=st.replace(Y,"");return ct.replace(z,function(lt,ht){return String.fromCharCode(ht)})}function nt(st){if(!st)return D.BLANK_URL;var ct=tt(st).replace(F,"").replace(Y,"").trim();if(!ct)return D.BLANK_URL;if(X(ct))return ct;var lt=ct.match(W);if(!lt)return ct;var ht=lt[0];return O.test(ht)?D.BLANK_URL:ct}D.sanitizeUrl=nt})(dist);function ascending$1(D,O){return D==null||O==null?NaN:DO?1:D>=O?0:NaN}function descending$1(D,O){return D==null||O==null?NaN:OD?1:O>=D?0:NaN}function bisector(D){let O,z,F;D.length!==2?(O=ascending$1,z=(X,tt)=>ascending$1(D(X),tt),F=(X,tt)=>D(X)-tt):(O=D===ascending$1||D===descending$1?D:zero$1,z=D,F=D);function Y(X,tt,nt=0,st=X.length){if(nt>>1;z(X[ct],tt)<0?nt=ct+1:st=ct}while(nt>>1;z(X[ct],tt)<=0?nt=ct+1:st=ct}while(ntnt&&F(X[ct-1],tt)>-F(X[ct],tt)?ct-1:ct}return{left:Y,center:q,right:W}}function zero$1(){return 0}function number$3(D){return D===null?NaN:+D}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right;bisector(number$3).center;const bisect=bisectRight;class InternMap extends Map{constructor(O,z=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:z}}),O!=null)for(const[F,Y]of O)this.set(F,Y)}get(O){return super.get(intern_get(this,O))}has(O){return super.has(intern_get(this,O))}set(O,z){return super.set(intern_set(this,O),z)}delete(O){return super.delete(intern_delete(this,O))}}function intern_get({_intern:D,_key:O},z){const F=O(z);return D.has(F)?D.get(F):z}function intern_set({_intern:D,_key:O},z){const F=O(z);return D.has(F)?D.get(F):(D.set(F,z),z)}function intern_delete({_intern:D,_key:O},z){const F=O(z);return D.has(F)&&(z=D.get(F),D.delete(F)),z}function keyof(D){return D!==null&&typeof D=="object"?D.valueOf():D}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(D,O,z){const F=(O-D)/Math.max(0,z),Y=Math.floor(Math.log10(F)),W=F/Math.pow(10,Y),q=W>=e10?10:W>=e5?5:W>=e2?2:1;let X,tt,nt;return Y<0?(nt=Math.pow(10,-Y)/q,X=Math.round(D*nt),tt=Math.round(O*nt),X/ntO&&--tt,nt=-nt):(nt=Math.pow(10,Y)*q,X=Math.round(D/nt),tt=Math.round(O/nt),X*ntO&&--tt),tt0))return[];if(D===O)return[D];const F=O=Y))return[];const X=W-Y+1,tt=new Array(X);if(F)if(q<0)for(let nt=0;nt=F)&&(z=F);else{let F=-1;for(let Y of D)(Y=O(Y,++F,D))!=null&&(z=Y)&&(z=Y)}return z}function min$2(D,O){let z;if(O===void 0)for(const F of D)F!=null&&(z>F||z===void 0&&F>=F)&&(z=F);else{let F=-1;for(let Y of D)(Y=O(Y,++F,D))!=null&&(z>Y||z===void 0&&Y>=Y)&&(z=Y)}return z}function identity$5(D){return D}var top=1,right=2,bottom=3,left=4,epsilon$2=1e-6;function translateX(D){return"translate("+D+",0)"}function translateY(D){return"translate(0,"+D+")"}function number$2(D){return O=>+D(O)}function center(D,O){return O=Math.max(0,D.bandwidth()-O*2)/2,D.round()&&(O=Math.round(O)),z=>+D(z)+O}function entering(){return!this.__axis}function axis(D,O){var z=[],F=null,Y=null,W=6,q=6,X=3,tt=typeof window<"u"&&window.devicePixelRatio>1?0:.5,nt=D===top||D===left?-1:1,st=D===left||D===right?"x":"y",ct=D===top||D===bottom?translateX:translateY;function lt(ht){var bt=F??(O.ticks?O.ticks.apply(O,z):O.domain()),wt=Y??(O.tickFormat?O.tickFormat.apply(O,z):identity$5),mt=Math.max(W,0)+X,_t=O.range(),Et=+_t[0]+tt,At=+_t[_t.length-1]+tt,Ct=(O.bandwidth?center:number$2)(O.copy(),tt),Ft=ht.selection?ht.selection():ht,Lt=Ft.selectAll(".domain").data([null]),Yt=Ft.selectAll(".tick").data(bt,O).order(),Ht=Yt.exit(),qt=Yt.enter().append("g").attr("class","tick"),te=Yt.select("line"),Xt=Yt.select("text");Lt=Lt.merge(Lt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Yt=Yt.merge(qt),te=te.merge(qt.append("line").attr("stroke","currentColor").attr(st+"2",nt*W)),Xt=Xt.merge(qt.append("text").attr("fill","currentColor").attr(st,nt*mt).attr("dy",D===top?"0em":D===bottom?"0.71em":"0.32em")),ht!==Ft&&(Lt=Lt.transition(ht),Yt=Yt.transition(ht),te=te.transition(ht),Xt=Xt.transition(ht),Ht=Ht.transition(ht).attr("opacity",epsilon$2).attr("transform",function(Dt){return isFinite(Dt=Ct(Dt))?ct(Dt+tt):this.getAttribute("transform")}),qt.attr("opacity",epsilon$2).attr("transform",function(Dt){var Qt=this.parentNode.__axis;return ct((Qt&&isFinite(Qt=Qt(Dt))?Qt:Ct(Dt))+tt)})),Ht.remove(),Lt.attr("d",D===left||D===right?q?"M"+nt*q+","+Et+"H"+tt+"V"+At+"H"+nt*q:"M"+tt+","+Et+"V"+At:q?"M"+Et+","+nt*q+"V"+tt+"H"+At+"V"+nt*q:"M"+Et+","+tt+"H"+At),Yt.attr("opacity",1).attr("transform",function(Dt){return ct(Ct(Dt)+tt)}),te.attr(st+"2",nt*W),Xt.attr(st,nt*mt).text(wt),Ft.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",D===right?"start":D===left?"end":"middle"),Ft.each(function(){this.__axis=Ct})}return lt.scale=function(ht){return arguments.length?(O=ht,lt):O},lt.ticks=function(){return z=Array.from(arguments),lt},lt.tickArguments=function(ht){return arguments.length?(z=ht==null?[]:Array.from(ht),lt):z.slice()},lt.tickValues=function(ht){return arguments.length?(F=ht==null?null:Array.from(ht),lt):F&&F.slice()},lt.tickFormat=function(ht){return arguments.length?(Y=ht,lt):Y},lt.tickSize=function(ht){return arguments.length?(W=q=+ht,lt):W},lt.tickSizeInner=function(ht){return arguments.length?(W=+ht,lt):W},lt.tickSizeOuter=function(ht){return arguments.length?(q=+ht,lt):q},lt.tickPadding=function(ht){return arguments.length?(X=+ht,lt):X},lt.offset=function(ht){return arguments.length?(tt=+ht,lt):tt},lt}function axisTop(D){return axis(top,D)}function axisBottom(D){return axis(bottom,D)}var noop$2={value:()=>{}};function dispatch(){for(var D=0,O=arguments.length,z={},F;D=0&&(F=z.slice(Y+1),z=z.slice(0,Y)),z&&!O.hasOwnProperty(z))throw new Error("unknown type: "+z);return{type:z,name:F}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(D,O){var z=this._,F=parseTypenames$1(D+"",z),Y,W=-1,q=F.length;if(arguments.length<2){for(;++W0)for(var z=new Array(Y),F=0,Y,W;F=0&&(O=D.slice(0,z))!=="xmlns"&&(D=D.slice(z+1)),namespaces.hasOwnProperty(O)?{space:namespaces[O],local:D}:D}function creatorInherit(D){return function(){var O=this.ownerDocument,z=this.namespaceURI;return z===xhtml&&O.documentElement.namespaceURI===xhtml?O.createElement(D):O.createElementNS(z,D)}}function creatorFixed(D){return function(){return this.ownerDocument.createElementNS(D.space,D.local)}}function creator(D){var O=namespace(D);return(O.local?creatorFixed:creatorInherit)(O)}function none(){}function selector(D){return D==null?none:function(){return this.querySelector(D)}}function selection_select(D){typeof D!="function"&&(D=selector(D));for(var O=this._groups,z=O.length,F=new Array(z),Y=0;Y=At&&(At=Et+1);!(Ft=mt[At])&&++At=0;)(q=F[Y])&&(W&&q.compareDocumentPosition(W)^4&&W.parentNode.insertBefore(q,W),W=q);return this}function selection_sort(D){D||(D=ascending);function O(ct,lt){return ct&<?D(ct.__data__,lt.__data__):!ct-!lt}for(var z=this._groups,F=z.length,Y=new Array(F),W=0;WO?1:D>=O?0:NaN}function selection_call(){var D=arguments[0];return arguments[0]=this,D.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var D=this._groups,O=0,z=D.length;O1?this.each((O==null?styleRemove$1:typeof O=="function"?styleFunction$1:styleConstant$1)(D,O,z??"")):styleValue(this.node(),D)}function styleValue(D,O){return D.style.getPropertyValue(O)||defaultView(D).getComputedStyle(D,null).getPropertyValue(O)}function propertyRemove(D){return function(){delete this[D]}}function propertyConstant(D,O){return function(){this[D]=O}}function propertyFunction(D,O){return function(){var z=O.apply(this,arguments);z==null?delete this[D]:this[D]=z}}function selection_property(D,O){return arguments.length>1?this.each((O==null?propertyRemove:typeof O=="function"?propertyFunction:propertyConstant)(D,O)):this.node()[D]}function classArray(D){return D.trim().split(/^|\s+/)}function classList(D){return D.classList||new ClassList(D)}function ClassList(D){this._node=D,this._names=classArray(D.getAttribute("class")||"")}ClassList.prototype={add:function(D){var O=this._names.indexOf(D);O<0&&(this._names.push(D),this._node.setAttribute("class",this._names.join(" ")))},remove:function(D){var O=this._names.indexOf(D);O>=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(D){return this._names.indexOf(D)>=0}};function classedAdd(D,O){for(var z=classList(D),F=-1,Y=O.length;++F=0&&(z=O.slice(F+1),O=O.slice(0,F)),{type:O,name:z}})}function onRemove(D){return function(){var O=this.__on;if(O){for(var z=0,F=-1,Y=O.length,W;z>8&15|O>>4&240,O>>4&15|O&240,(O&15)<<4|O&15,1):z===8?rgba$2(O>>24&255,O>>16&255,O>>8&255,(O&255)/255):z===4?rgba$2(O>>12&15|O>>8&240,O>>8&15|O>>4&240,O>>4&15|O&240,((O&15)<<4|O&15)/255):null):(O=reRgbInteger.exec(D))?new Rgb(O[1],O[2],O[3],1):(O=reRgbPercent.exec(D))?new Rgb(O[1]*255/100,O[2]*255/100,O[3]*255/100,1):(O=reRgbaInteger.exec(D))?rgba$2(O[1],O[2],O[3],O[4]):(O=reRgbaPercent.exec(D))?rgba$2(O[1]*255/100,O[2]*255/100,O[3]*255/100,O[4]):(O=reHslPercent.exec(D))?hsla(O[1],O[2]/100,O[3]/100,1):(O=reHslaPercent.exec(D))?hsla(O[1],O[2]/100,O[3]/100,O[4]):named.hasOwnProperty(D)?rgbn(named[D]):D==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(D){return new Rgb(D>>16&255,D>>8&255,D&255,1)}function rgba$2(D,O,z,F){return F<=0&&(D=O=z=NaN),new Rgb(D,O,z,F)}function rgbConvert(D){return D instanceof Color$2||(D=color(D)),D?(D=D.rgb(),new Rgb(D.r,D.g,D.b,D.opacity)):new Rgb}function rgb(D,O,z,F){return arguments.length===1?rgbConvert(D):new Rgb(D,O,z,F??1)}function Rgb(D,O,z,F){this.r=+D,this.g=+O,this.b=+z,this.opacity=+F}define$1(Rgb,rgb,extend$1(Color$2,{brighter(D){return D=D==null?brighter:Math.pow(brighter,D),new Rgb(this.r*D,this.g*D,this.b*D,this.opacity)},darker(D){return D=D==null?darker:Math.pow(darker,D),new Rgb(this.r*D,this.g*D,this.b*D,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const D=clampa(this.opacity);return`${D===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${D===1?")":`, ${D})`}`}function clampa(D){return isNaN(D)?1:Math.max(0,Math.min(1,D))}function clampi(D){return Math.max(0,Math.min(255,Math.round(D)||0))}function hex(D){return D=clampi(D),(D<16?"0":"")+D.toString(16)}function hsla(D,O,z,F){return F<=0?D=O=z=NaN:z<=0||z>=1?D=O=NaN:O<=0&&(D=NaN),new Hsl(D,O,z,F)}function hslConvert(D){if(D instanceof Hsl)return new Hsl(D.h,D.s,D.l,D.opacity);if(D instanceof Color$2||(D=color(D)),!D)return new Hsl;if(D instanceof Hsl)return D;D=D.rgb();var O=D.r/255,z=D.g/255,F=D.b/255,Y=Math.min(O,z,F),W=Math.max(O,z,F),q=NaN,X=W-Y,tt=(W+Y)/2;return X?(O===W?q=(z-F)/X+(z0&&tt<1?0:q,new Hsl(q,X,tt,D.opacity)}function hsl(D,O,z,F){return arguments.length===1?hslConvert(D):new Hsl(D,O,z,F??1)}function Hsl(D,O,z,F){this.h=+D,this.s=+O,this.l=+z,this.opacity=+F}define$1(Hsl,hsl,extend$1(Color$2,{brighter(D){return D=D==null?brighter:Math.pow(brighter,D),new Hsl(this.h,this.s,this.l*D,this.opacity)},darker(D){return D=D==null?darker:Math.pow(darker,D),new Hsl(this.h,this.s,this.l*D,this.opacity)},rgb(){var D=this.h%360+(this.h<0)*360,O=isNaN(D)||isNaN(this.s)?0:this.s,z=this.l,F=z+(z<.5?z:1-z)*O,Y=2*z-F;return new Rgb(hsl2rgb(D>=240?D-240:D+120,Y,F),hsl2rgb(D,Y,F),hsl2rgb(D<120?D+240:D-120,Y,F),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const D=clampa(this.opacity);return`${D===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${D===1?")":`, ${D})`}`}}));function clamph(D){return D=(D||0)%360,D<0?D+360:D}function clampt(D){return Math.max(0,Math.min(1,D||0))}function hsl2rgb(D,O,z){return(D<60?O+(z-O)*D/60:D<180?z:D<240?O+(z-O)*(240-D)/60:O)*255}const radians=Math.PI/180,degrees$1=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0$1=4/29,t1$1=6/29,t2=3*t1$1*t1$1,t3=t1$1*t1$1*t1$1;function labConvert(D){if(D instanceof Lab)return new Lab(D.l,D.a,D.b,D.opacity);if(D instanceof Hcl)return hcl2lab(D);D instanceof Rgb||(D=rgbConvert(D));var O=rgb2lrgb(D.r),z=rgb2lrgb(D.g),F=rgb2lrgb(D.b),Y=xyz2lab((.2225045*O+.7168786*z+.0606169*F)/Yn),W,q;return O===z&&z===F?W=q=Y:(W=xyz2lab((.4360747*O+.3850649*z+.1430804*F)/Xn),q=xyz2lab((.0139322*O+.0971045*z+.7141733*F)/Zn)),new Lab(116*Y-16,500*(W-Y),200*(Y-q),D.opacity)}function lab(D,O,z,F){return arguments.length===1?labConvert(D):new Lab(D,O,z,F??1)}function Lab(D,O,z,F){this.l=+D,this.a=+O,this.b=+z,this.opacity=+F}define$1(Lab,lab,extend$1(Color$2,{brighter(D){return new Lab(this.l+K*(D??1),this.a,this.b,this.opacity)},darker(D){return new Lab(this.l-K*(D??1),this.a,this.b,this.opacity)},rgb(){var D=(this.l+16)/116,O=isNaN(this.a)?D:D+this.a/500,z=isNaN(this.b)?D:D-this.b/200;return O=Xn*lab2xyz(O),D=Yn*lab2xyz(D),z=Zn*lab2xyz(z),new Rgb(lrgb2rgb(3.1338561*O-1.6168667*D-.4906146*z),lrgb2rgb(-.9787684*O+1.9161415*D+.033454*z),lrgb2rgb(.0719453*O-.2289914*D+1.4052427*z),this.opacity)}}));function xyz2lab(D){return D>t3?Math.pow(D,1/3):D/t2+t0$1}function lab2xyz(D){return D>t1$1?D*D*D:t2*(D-t0$1)}function lrgb2rgb(D){return 255*(D<=.0031308?12.92*D:1.055*Math.pow(D,1/2.4)-.055)}function rgb2lrgb(D){return(D/=255)<=.04045?D/12.92:Math.pow((D+.055)/1.055,2.4)}function hclConvert(D){if(D instanceof Hcl)return new Hcl(D.h,D.c,D.l,D.opacity);if(D instanceof Lab||(D=labConvert(D)),D.a===0&&D.b===0)return new Hcl(NaN,0()=>D;function linear$1(D,O){return function(z){return D+z*O}}function exponential(D,O,z){return D=Math.pow(D,z),O=Math.pow(O,z)-D,z=1/z,function(F){return Math.pow(D+F*O,z)}}function hue(D,O){var z=O-D;return z?linear$1(D,z>180||z<-180?z-360*Math.round(z/360):z):constant$2(isNaN(D)?O:D)}function gamma(D){return(D=+D)==1?nogamma:function(O,z){return z-O?exponential(O,z,D):constant$2(isNaN(O)?z:O)}}function nogamma(D,O){var z=O-D;return z?linear$1(D,z):constant$2(isNaN(D)?O:D)}const interpolateRgb=function D(O){var z=gamma(O);function F(Y,W){var q=z((Y=rgb(Y)).r,(W=rgb(W)).r),X=z(Y.g,W.g),tt=z(Y.b,W.b),nt=nogamma(Y.opacity,W.opacity);return function(st){return Y.r=q(st),Y.g=X(st),Y.b=tt(st),Y.opacity=nt(st),Y+""}}return F.gamma=D,F}(1);function numberArray(D,O){O||(O=[]);var z=D?Math.min(O.length,D.length):0,F=O.slice(),Y;return function(W){for(Y=0;Yz&&(W=O.slice(z,W),X[q]?X[q]+=W:X[++q]=W),(F=F[0])===(Y=Y[0])?X[q]?X[q]+=Y:X[++q]=Y:(X[++q]=null,tt.push({i:q,x:interpolateNumber(F,Y)})),z=reB.lastIndex;return z180?st+=360:st-nt>180&&(nt+=360),lt.push({i:ct.push(Y(ct)+"rotate(",null,F)-2,x:interpolateNumber(nt,st)})):st&&ct.push(Y(ct)+"rotate("+st+F)}function X(nt,st,ct,lt){nt!==st?lt.push({i:ct.push(Y(ct)+"skewX(",null,F)-2,x:interpolateNumber(nt,st)}):st&&ct.push(Y(ct)+"skewX("+st+F)}function tt(nt,st,ct,lt,ht,bt){if(nt!==ct||st!==lt){var wt=ht.push(Y(ht)+"scale(",null,",",null,")");bt.push({i:wt-4,x:interpolateNumber(nt,ct)},{i:wt-2,x:interpolateNumber(st,lt)})}else(ct!==1||lt!==1)&&ht.push(Y(ht)+"scale("+ct+","+lt+")")}return function(nt,st){var ct=[],lt=[];return nt=D(nt),st=D(st),W(nt.translateX,nt.translateY,st.translateX,st.translateY,ct,lt),q(nt.rotate,st.rotate,ct,lt),X(nt.skewX,st.skewX,ct,lt),tt(nt.scaleX,nt.scaleY,st.scaleX,st.scaleY,ct,lt),nt=st=null,function(ht){for(var bt=-1,wt=lt.length,mt;++bt=0&&D._call.call(void 0,O),D=D._next;--frame$1}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame$1=timeout$1=0;try{timerFlush()}finally{frame$1=0,nap(),clockNow=0}}function poke(){var D=clock.now(),O=D-clockLast;O>pokeDelay&&(clockSkew-=O,clockLast=D)}function nap(){for(var D,O=taskHead,z,F=1/0;O;)O._call?(F>O._time&&(F=O._time),D=O,O=O._next):(z=O._next,O._next=null,O=D?D._next=z:taskHead=z);taskTail=D,sleep(F)}function sleep(D){if(!frame$1){timeout$1&&(timeout$1=clearTimeout(timeout$1));var O=D-clockNow;O>24?(D<1/0&&(timeout$1=setTimeout(wake,D-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame$1=1,setFrame(wake))}}function timeout(D,O,z){var F=new Timer;return O=O==null?0:+O,F.restart(Y=>{F.stop(),D(Y+O)},O,z),F}var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(D,O,z,F,Y,W){var q=D.__transition;if(!q)D.__transition={};else if(z in q)return;create$1(D,z,{name:O,index:F,group:Y,on:emptyOn,tween:emptyTween,time:W.time,delay:W.delay,duration:W.duration,ease:W.ease,timer:null,state:CREATED})}function init$1(D,O){var z=get$2(D,O);if(z.state>CREATED)throw new Error("too late; already scheduled");return z}function set(D,O){var z=get$2(D,O);if(z.state>STARTED)throw new Error("too late; already running");return z}function get$2(D,O){var z=D.__transition;if(!z||!(z=z[O]))throw new Error("transition not found");return z}function create$1(D,O,z){var F=D.__transition,Y;F[O]=z,z.timer=timer(W,0,z.time);function W(nt){z.state=SCHEDULED,z.timer.restart(q,z.delay,z.time),z.delay<=nt&&q(nt-z.delay)}function q(nt){var st,ct,lt,ht;if(z.state!==SCHEDULED)return tt();for(st in F)if(ht=F[st],ht.name===z.name){if(ht.state===STARTED)return timeout(q);ht.state===RUNNING?(ht.state=ENDED,ht.timer.stop(),ht.on.call("interrupt",D,D.__data__,ht.index,ht.group),delete F[st]):+stSTARTING&&F.state=0&&(O=O.slice(0,z)),!O||O==="start"})}function onFunction(D,O,z){var F,Y,W=start$1(O)?init$1:set;return function(){var q=W(this,D),X=q.on;X!==F&&(Y=(F=X).copy()).on(O,z),q.on=Y}}function transition_on(D,O){var z=this._id;return arguments.length<2?get$2(this.node(),z).on.on(D):this.each(onFunction(z,D,O))}function removeFunction(D){return function(){var O=this.parentNode;for(var z in this.__transition)if(+z!==D)return;O&&O.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(D){var O=this._name,z=this._id;typeof D!="function"&&(D=selector(D));for(var F=this._groups,Y=F.length,W=new Array(Y),q=0;q=0))throw new Error(`invalid digits: ${D}`);if(O>15)return append$1;const z=10**O;return function(F){this._+=F[0];for(let Y=1,W=F.length;Yepsilon$1)if(!(Math.abs(ct*tt-nt*st)>epsilon$1)||!W)this._append`L${this._x1=O},${this._y1=z}`;else{let ht=F-q,bt=Y-X,wt=tt*tt+nt*nt,mt=ht*ht+bt*bt,_t=Math.sqrt(wt),Et=Math.sqrt(lt),At=W*Math.tan((pi$1-Math.acos((wt+lt-mt)/(2*_t*Et)))/2),Ct=At/Et,Ft=At/_t;Math.abs(Ct-1)>epsilon$1&&this._append`L${O+Ct*st},${z+Ct*ct}`,this._append`A${W},${W},0,0,${+(ct*ht>st*bt)},${this._x1=O+Ft*tt},${this._y1=z+Ft*nt}`}}arc(O,z,F,Y,W,q){if(O=+O,z=+z,F=+F,q=!!q,F<0)throw new Error(`negative radius: ${F}`);let X=F*Math.cos(Y),tt=F*Math.sin(Y),nt=O+X,st=z+tt,ct=1^q,lt=q?Y-W:W-Y;this._x1===null?this._append`M${nt},${st}`:(Math.abs(this._x1-nt)>epsilon$1||Math.abs(this._y1-st)>epsilon$1)&&this._append`L${nt},${st}`,F&&(lt<0&&(lt=lt%tau$1+tau$1),lt>tauEpsilon?this._append`A${F},${F},0,1,${ct},${O-X},${z-tt}A${F},${F},0,1,${ct},${this._x1=nt},${this._y1=st}`:lt>epsilon$1&&this._append`A${F},${F},0,${+(lt>=pi$1)},${ct},${this._x1=O+F*Math.cos(W)},${this._y1=z+F*Math.sin(W)}`)}rect(O,z,F,Y){this._append`M${this._x0=this._x1=+O},${this._y0=this._y1=+z}h${F=+F}v${+Y}h${-F}Z`}toString(){return this._}}function responseText(D){if(!D.ok)throw new Error(D.status+" "+D.statusText);return D.text()}function text$1(D,O){return fetch(D,O).then(responseText)}function parser$d(D){return(O,z)=>text$1(O,z).then(F=>new DOMParser().parseFromString(F,D))}var svg$2=parser$d("image/svg+xml");function formatDecimal(D){return Math.abs(D=Math.round(D))>=1e21?D.toLocaleString("en").replace(/,/g,""):D.toString(10)}function formatDecimalParts(D,O){if((z=(D=O?D.toExponential(O-1):D.toExponential()).indexOf("e"))<0)return null;var z,F=D.slice(0,z);return[F.length>1?F[0]+F.slice(2):F,+D.slice(z+1)]}function exponent(D){return D=formatDecimalParts(Math.abs(D)),D?D[1]:NaN}function formatGroup(D,O){return function(z,F){for(var Y=z.length,W=[],q=0,X=D[0],tt=0;Y>0&&X>0&&(tt+X+1>F&&(X=Math.max(1,F-tt)),W.push(z.substring(Y-=X,Y+X)),!((tt+=X+1)>F));)X=D[q=(q+1)%D.length];return W.reverse().join(O)}}function formatNumerals(D){return function(O){return O.replace(/[0-9]/g,function(z){return D[+z]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(D){if(!(O=re.exec(D)))throw new Error("invalid format: "+D);var O;return new FormatSpecifier({fill:O[1],align:O[2],sign:O[3],symbol:O[4],zero:O[5],width:O[6],comma:O[7],precision:O[8]&&O[8].slice(1),trim:O[9],type:O[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(D){this.fill=D.fill===void 0?" ":D.fill+"",this.align=D.align===void 0?">":D.align+"",this.sign=D.sign===void 0?"-":D.sign+"",this.symbol=D.symbol===void 0?"":D.symbol+"",this.zero=!!D.zero,this.width=D.width===void 0?void 0:+D.width,this.comma=!!D.comma,this.precision=D.precision===void 0?void 0:+D.precision,this.trim=!!D.trim,this.type=D.type===void 0?"":D.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(D){t:for(var O=D.length,z=1,F=-1,Y;z0&&(F=0);break}return F>0?D.slice(0,F)+D.slice(Y+1):D}var prefixExponent;function formatPrefixAuto(D,O){var z=formatDecimalParts(D,O);if(!z)return D+"";var F=z[0],Y=z[1],W=Y-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(Y/3)))*3)+1,q=F.length;return W===q?F:W>q?F+new Array(W-q+1).join("0"):W>0?F.slice(0,W)+"."+F.slice(W):"0."+new Array(1-W).join("0")+formatDecimalParts(D,Math.max(0,O+W-1))[0]}function formatRounded(D,O){var z=formatDecimalParts(D,O);if(!z)return D+"";var F=z[0],Y=z[1];return Y<0?"0."+new Array(-Y).join("0")+F:F.length>Y+1?F.slice(0,Y+1)+"."+F.slice(Y+1):F+new Array(Y-F.length+2).join("0")}const formatTypes={"%":(D,O)=>(D*100).toFixed(O),b:D=>Math.round(D).toString(2),c:D=>D+"",d:formatDecimal,e:(D,O)=>D.toExponential(O),f:(D,O)=>D.toFixed(O),g:(D,O)=>D.toPrecision(O),o:D=>Math.round(D).toString(8),p:(D,O)=>formatRounded(D*100,O),r:formatRounded,s:formatPrefixAuto,X:D=>Math.round(D).toString(16).toUpperCase(),x:D=>Math.round(D).toString(16)};function identity$3(D){return D}var map$2=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(D){var O=D.grouping===void 0||D.thousands===void 0?identity$3:formatGroup(map$2.call(D.grouping,Number),D.thousands+""),z=D.currency===void 0?"":D.currency[0]+"",F=D.currency===void 0?"":D.currency[1]+"",Y=D.decimal===void 0?".":D.decimal+"",W=D.numerals===void 0?identity$3:formatNumerals(map$2.call(D.numerals,String)),q=D.percent===void 0?"%":D.percent+"",X=D.minus===void 0?"−":D.minus+"",tt=D.nan===void 0?"NaN":D.nan+"";function nt(ct){ct=formatSpecifier(ct);var lt=ct.fill,ht=ct.align,bt=ct.sign,wt=ct.symbol,mt=ct.zero,_t=ct.width,Et=ct.comma,At=ct.precision,Ct=ct.trim,Ft=ct.type;Ft==="n"?(Et=!0,Ft="g"):formatTypes[Ft]||(At===void 0&&(At=12),Ct=!0,Ft="g"),(mt||lt==="0"&&ht==="=")&&(mt=!0,lt="0",ht="=");var Lt=wt==="$"?z:wt==="#"&&/[boxX]/.test(Ft)?"0"+Ft.toLowerCase():"",Yt=wt==="$"?F:/[%p]/.test(Ft)?q:"",Ht=formatTypes[Ft],qt=/[defgprs%]/.test(Ft);At=At===void 0?6:/[gprs]/.test(Ft)?Math.max(1,Math.min(21,At)):Math.max(0,Math.min(20,At));function te(Xt){var Dt=Lt,Qt=Yt,Nt,ce,Pt;if(Ft==="c")Qt=Ht(Xt)+Qt,Xt="";else{Xt=+Xt;var de=Xt<0||1/Xt<0;if(Xt=isNaN(Xt)?tt:Ht(Math.abs(Xt),At),Ct&&(Xt=formatTrim(Xt)),de&&+Xt==0&&bt!=="+"&&(de=!1),Dt=(de?bt==="("?bt:X:bt==="-"||bt==="("?"":bt)+Dt,Qt=(Ft==="s"?prefixes[8+prefixExponent/3]:"")+Qt+(de&&bt==="("?")":""),qt){for(Nt=-1,ce=Xt.length;++NtPt||Pt>57){Qt=(Pt===46?Y+Xt.slice(Nt+1):Xt.slice(Nt))+Qt,Xt=Xt.slice(0,Nt);break}}}Et&&!mt&&(Xt=O(Xt,1/0));var ye=Dt.length+Xt.length+Qt.length,pe=ye<_t?new Array(_t-ye+1).join(lt):"";switch(Et&&mt&&(Xt=O(pe+Xt,pe.length?_t-Qt.length:1/0),pe=""),ht){case"<":Xt=Dt+Xt+Qt+pe;break;case"=":Xt=Dt+pe+Xt+Qt;break;case"^":Xt=pe.slice(0,ye=pe.length>>1)+Dt+Xt+Qt+pe.slice(ye);break;default:Xt=pe+Dt+Xt+Qt;break}return W(Xt)}return te.toString=function(){return ct+""},te}function st(ct,lt){var ht=nt((ct=formatSpecifier(ct),ct.type="f",ct)),bt=Math.max(-8,Math.min(8,Math.floor(exponent(lt)/3)))*3,wt=Math.pow(10,-bt),mt=prefixes[8+bt/3];return function(_t){return ht(wt*_t)+mt}}return{format:nt,formatPrefix:st}}var locale$1,format$1,formatPrefix;defaultLocale$1({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$1(D){return locale$1=formatLocale$1(D),format$1=locale$1.format,formatPrefix=locale$1.formatPrefix,locale$1}function precisionFixed(D){return Math.max(0,-exponent(Math.abs(D)))}function precisionPrefix(D,O){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(O)/3)))*3-exponent(Math.abs(D)))}function precisionRound(D,O){return D=Math.abs(D),O=Math.abs(O)-D,Math.max(0,exponent(O)-exponent(D))+1}function initRange(D,O){switch(arguments.length){case 0:break;case 1:this.range(D);break;default:this.range(O).domain(D);break}return this}const implicit=Symbol("implicit");function ordinal(){var D=new InternMap,O=[],z=[],F=implicit;function Y(W){let q=D.get(W);if(q===void 0){if(F!==implicit)return F;D.set(W,q=O.push(W)-1)}return z[q%z.length]}return Y.domain=function(W){if(!arguments.length)return O.slice();O=[],D=new InternMap;for(const q of W)D.has(q)||D.set(q,O.push(q)-1);return Y},Y.range=function(W){return arguments.length?(z=Array.from(W),Y):z.slice()},Y.unknown=function(W){return arguments.length?(F=W,Y):F},Y.copy=function(){return ordinal(O,z).unknown(F)},initRange.apply(Y,arguments),Y}function constants$1(D){return function(){return D}}function number$1(D){return+D}var unit$1=[0,1];function identity$2(D){return D}function normalize(D,O){return(O-=D=+D)?function(z){return(z-D)/O}:constants$1(isNaN(O)?NaN:.5)}function clamper(D,O){var z;return D>O&&(z=D,D=O,O=z),function(F){return Math.max(D,Math.min(O,F))}}function bimap(D,O,z){var F=D[0],Y=D[1],W=O[0],q=O[1];return Y2?polymap:bimap,tt=nt=null,ct}function ct(lt){return lt==null||isNaN(lt=+lt)?W:(tt||(tt=X(D.map(F),O,z)))(F(q(lt)))}return ct.invert=function(lt){return q(Y((nt||(nt=X(O,D.map(F),interpolateNumber)))(lt)))},ct.domain=function(lt){return arguments.length?(D=Array.from(lt,number$1),st()):D.slice()},ct.range=function(lt){return arguments.length?(O=Array.from(lt),st()):O.slice()},ct.rangeRound=function(lt){return O=Array.from(lt),z=interpolateRound,st()},ct.clamp=function(lt){return arguments.length?(q=lt?!0:identity$2,st()):q!==identity$2},ct.interpolate=function(lt){return arguments.length?(z=lt,st()):z},ct.unknown=function(lt){return arguments.length?(W=lt,ct):W},function(lt,ht){return F=lt,Y=ht,st()}}function continuous(){return transformer()(identity$2,identity$2)}function tickFormat(D,O,z,F){var Y=tickStep(D,O,z),W;switch(F=formatSpecifier(F??",f"),F.type){case"s":{var q=Math.max(Math.abs(D),Math.abs(O));return F.precision==null&&!isNaN(W=precisionPrefix(Y,q))&&(F.precision=W),formatPrefix(F,q)}case"":case"e":case"g":case"p":case"r":{F.precision==null&&!isNaN(W=precisionRound(Y,Math.max(Math.abs(D),Math.abs(O))))&&(F.precision=W-(F.type==="e"));break}case"f":case"%":{F.precision==null&&!isNaN(W=precisionFixed(Y))&&(F.precision=W-(F.type==="%")*2);break}}return format$1(F)}function linearish(D){var O=D.domain;return D.ticks=function(z){var F=O();return ticks(F[0],F[F.length-1],z??10)},D.tickFormat=function(z,F){var Y=O();return tickFormat(Y[0],Y[Y.length-1],z??10,F)},D.nice=function(z){z==null&&(z=10);var F=O(),Y=0,W=F.length-1,q=F[Y],X=F[W],tt,nt,st=10;for(X0;){if(nt=tickIncrement(q,X,z),nt===tt)return F[Y]=q,F[W]=X,O(F);if(nt>0)q=Math.floor(q/nt)*nt,X=Math.ceil(X/nt)*nt;else if(nt<0)q=Math.ceil(q*nt)/nt,X=Math.floor(X*nt)/nt;else break;tt=nt}return D},D}function linear(){var D=continuous();return D.copy=function(){return copy$1(D,linear())},initRange.apply(D,arguments),linearish(D)}function nice(D,O){D=D.slice();var z=0,F=D.length-1,Y=D[z],W=D[F],q;return W(D(W=new Date(+W)),W),Y.ceil=W=>(D(W=new Date(W-1)),O(W,1),D(W),W),Y.round=W=>{const q=Y(W),X=Y.ceil(W);return W-q(O(W=new Date(+W),q==null?1:Math.floor(q)),W),Y.range=(W,q,X)=>{const tt=[];if(W=Y.ceil(W),X=X==null?1:Math.floor(X),!(W0))return tt;let nt;do tt.push(nt=new Date(+W)),O(W,X),D(W);while(nttimeInterval(q=>{if(q>=q)for(;D(q),!W(q);)q.setTime(q-1)},(q,X)=>{if(q>=q)if(X<0)for(;++X<=0;)for(;O(q,-1),!W(q););else for(;--X>=0;)for(;O(q,1),!W(q););}),z&&(Y.count=(W,q)=>(t0.setTime(+W),t1.setTime(+q),D(t0),D(t1),Math.floor(z(t0,t1))),Y.every=W=>(W=Math.floor(W),!isFinite(W)||!(W>0)?null:W>1?Y.filter(F?q=>F(q)%W===0:q=>Y.count(0,q)%W===0):Y)),Y}const millisecond=timeInterval(()=>{},(D,O)=>{D.setTime(+D+O)},(D,O)=>O-D);millisecond.every=D=>(D=Math.floor(D),!isFinite(D)||!(D>0)?null:D>1?timeInterval(O=>{O.setTime(Math.floor(O/D)*D)},(O,z)=>{O.setTime(+O+z*D)},(O,z)=>(z-O)/D):millisecond);millisecond.range;const durationSecond=1e3,durationMinute=durationSecond*60,durationHour=durationMinute*60,durationDay=durationHour*24,durationWeek=durationDay*7,durationMonth=durationDay*30,durationYear=durationDay*365,second=timeInterval(D=>{D.setTime(D-D.getMilliseconds())},(D,O)=>{D.setTime(+D+O*durationSecond)},(D,O)=>(O-D)/durationSecond,D=>D.getUTCSeconds());second.range;const timeMinute=timeInterval(D=>{D.setTime(D-D.getMilliseconds()-D.getSeconds()*durationSecond)},(D,O)=>{D.setTime(+D+O*durationMinute)},(D,O)=>(O-D)/durationMinute,D=>D.getMinutes());timeMinute.range;const utcMinute=timeInterval(D=>{D.setUTCSeconds(0,0)},(D,O)=>{D.setTime(+D+O*durationMinute)},(D,O)=>(O-D)/durationMinute,D=>D.getUTCMinutes());utcMinute.range;const timeHour=timeInterval(D=>{D.setTime(D-D.getMilliseconds()-D.getSeconds()*durationSecond-D.getMinutes()*durationMinute)},(D,O)=>{D.setTime(+D+O*durationHour)},(D,O)=>(O-D)/durationHour,D=>D.getHours());timeHour.range;const utcHour=timeInterval(D=>{D.setUTCMinutes(0,0,0)},(D,O)=>{D.setTime(+D+O*durationHour)},(D,O)=>(O-D)/durationHour,D=>D.getUTCHours());utcHour.range;const timeDay=timeInterval(D=>D.setHours(0,0,0,0),(D,O)=>D.setDate(D.getDate()+O),(D,O)=>(O-D-(O.getTimezoneOffset()-D.getTimezoneOffset())*durationMinute)/durationDay,D=>D.getDate()-1);timeDay.range;const utcDay=timeInterval(D=>{D.setUTCHours(0,0,0,0)},(D,O)=>{D.setUTCDate(D.getUTCDate()+O)},(D,O)=>(O-D)/durationDay,D=>D.getUTCDate()-1);utcDay.range;const unixDay=timeInterval(D=>{D.setUTCHours(0,0,0,0)},(D,O)=>{D.setUTCDate(D.getUTCDate()+O)},(D,O)=>(O-D)/durationDay,D=>Math.floor(D/durationDay));unixDay.range;function timeWeekday(D){return timeInterval(O=>{O.setDate(O.getDate()-(O.getDay()+7-D)%7),O.setHours(0,0,0,0)},(O,z)=>{O.setDate(O.getDate()+z*7)},(O,z)=>(z-O-(z.getTimezoneOffset()-O.getTimezoneOffset())*durationMinute)/durationWeek)}const timeSunday=timeWeekday(0),timeMonday=timeWeekday(1),timeTuesday=timeWeekday(2),timeWednesday=timeWeekday(3),timeThursday=timeWeekday(4),timeFriday=timeWeekday(5),timeSaturday=timeWeekday(6);timeSunday.range;timeMonday.range;timeTuesday.range;timeWednesday.range;timeThursday.range;timeFriday.range;timeSaturday.range;function utcWeekday(D){return timeInterval(O=>{O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-D)%7),O.setUTCHours(0,0,0,0)},(O,z)=>{O.setUTCDate(O.getUTCDate()+z*7)},(O,z)=>(z-O)/durationWeek)}const utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range;utcMonday.range;utcTuesday.range;utcWednesday.range;utcThursday.range;utcFriday.range;utcSaturday.range;const timeMonth=timeInterval(D=>{D.setDate(1),D.setHours(0,0,0,0)},(D,O)=>{D.setMonth(D.getMonth()+O)},(D,O)=>O.getMonth()-D.getMonth()+(O.getFullYear()-D.getFullYear())*12,D=>D.getMonth());timeMonth.range;const utcMonth=timeInterval(D=>{D.setUTCDate(1),D.setUTCHours(0,0,0,0)},(D,O)=>{D.setUTCMonth(D.getUTCMonth()+O)},(D,O)=>O.getUTCMonth()-D.getUTCMonth()+(O.getUTCFullYear()-D.getUTCFullYear())*12,D=>D.getUTCMonth());utcMonth.range;const timeYear=timeInterval(D=>{D.setMonth(0,1),D.setHours(0,0,0,0)},(D,O)=>{D.setFullYear(D.getFullYear()+O)},(D,O)=>O.getFullYear()-D.getFullYear(),D=>D.getFullYear());timeYear.every=D=>!isFinite(D=Math.floor(D))||!(D>0)?null:timeInterval(O=>{O.setFullYear(Math.floor(O.getFullYear()/D)*D),O.setMonth(0,1),O.setHours(0,0,0,0)},(O,z)=>{O.setFullYear(O.getFullYear()+z*D)});timeYear.range;const utcYear=timeInterval(D=>{D.setUTCMonth(0,1),D.setUTCHours(0,0,0,0)},(D,O)=>{D.setUTCFullYear(D.getUTCFullYear()+O)},(D,O)=>O.getUTCFullYear()-D.getUTCFullYear(),D=>D.getUTCFullYear());utcYear.every=D=>!isFinite(D=Math.floor(D))||!(D>0)?null:timeInterval(O=>{O.setUTCFullYear(Math.floor(O.getUTCFullYear()/D)*D),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},(O,z)=>{O.setUTCFullYear(O.getUTCFullYear()+z*D)});utcYear.range;function ticker(D,O,z,F,Y,W){const q=[[second,1,durationSecond],[second,5,5*durationSecond],[second,15,15*durationSecond],[second,30,30*durationSecond],[W,1,durationMinute],[W,5,5*durationMinute],[W,15,15*durationMinute],[W,30,30*durationMinute],[Y,1,durationHour],[Y,3,3*durationHour],[Y,6,6*durationHour],[Y,12,12*durationHour],[F,1,durationDay],[F,2,2*durationDay],[z,1,durationWeek],[O,1,durationMonth],[O,3,3*durationMonth],[D,1,durationYear]];function X(nt,st,ct){const lt=stmt).right(q,lt);if(ht===q.length)return D.every(tickStep(nt/durationYear,st/durationYear,ct));if(ht===0)return millisecond.every(Math.max(tickStep(nt,st,ct),1));const[bt,wt]=q[lt/q[ht-1][2]53)return null;"w"in Kt||(Kt.w=1),"Z"in Kt?(jt=utcDate(newDate(Kt.y,0,1)),$t=jt.getUTCDay(),jt=$t>4||$t===0?utcMonday.ceil(jt):utcMonday(jt),jt=utcDay.offset(jt,(Kt.V-1)*7),Kt.y=jt.getUTCFullYear(),Kt.m=jt.getUTCMonth(),Kt.d=jt.getUTCDate()+(Kt.w+6)%7):(jt=localDate(newDate(Kt.y,0,1)),$t=jt.getDay(),jt=$t>4||$t===0?timeMonday.ceil(jt):timeMonday(jt),jt=timeDay.offset(jt,(Kt.V-1)*7),Kt.y=jt.getFullYear(),Kt.m=jt.getMonth(),Kt.d=jt.getDate()+(Kt.w+6)%7)}else("W"in Kt||"U"in Kt)&&("w"in Kt||(Kt.w="u"in Kt?Kt.u%7:"W"in Kt?1:0),$t="Z"in Kt?utcDate(newDate(Kt.y,0,1)).getUTCDay():localDate(newDate(Kt.y,0,1)).getDay(),Kt.m=0,Kt.d="W"in Kt?(Kt.w+6)%7+Kt.W*7-($t+5)%7:Kt.w+Kt.U*7-($t+6)%7);return"Z"in Kt?(Kt.H+=Kt.Z/100|0,Kt.M+=Kt.Z%100,utcDate(Kt)):localDate(Kt)}}function Ht(He,Le,Ye,Kt){for(var kt=0,jt=Le.length,$t=Ye.length,oe,Vt;kt=$t)return-1;if(oe=Le.charCodeAt(kt++),oe===37){if(oe=Le.charAt(kt++),Vt=Ft[oe in pads?Le.charAt(kt++):oe],!Vt||(Kt=Vt(He,Ye,Kt))<0)return-1}else if(oe!=Ye.charCodeAt(Kt++))return-1}return Kt}function qt(He,Le,Ye){var Kt=nt.exec(Le.slice(Ye));return Kt?(He.p=st.get(Kt[0].toLowerCase()),Ye+Kt[0].length):-1}function te(He,Le,Ye){var Kt=ht.exec(Le.slice(Ye));return Kt?(He.w=bt.get(Kt[0].toLowerCase()),Ye+Kt[0].length):-1}function Xt(He,Le,Ye){var Kt=ct.exec(Le.slice(Ye));return Kt?(He.w=lt.get(Kt[0].toLowerCase()),Ye+Kt[0].length):-1}function Dt(He,Le,Ye){var Kt=_t.exec(Le.slice(Ye));return Kt?(He.m=Et.get(Kt[0].toLowerCase()),Ye+Kt[0].length):-1}function Qt(He,Le,Ye){var Kt=wt.exec(Le.slice(Ye));return Kt?(He.m=mt.get(Kt[0].toLowerCase()),Ye+Kt[0].length):-1}function Nt(He,Le,Ye){return Ht(He,O,Le,Ye)}function ce(He,Le,Ye){return Ht(He,z,Le,Ye)}function Pt(He,Le,Ye){return Ht(He,F,Le,Ye)}function de(He){return q[He.getDay()]}function ye(He){return W[He.getDay()]}function pe(He){return tt[He.getMonth()]}function ve(He){return X[He.getMonth()]}function Ce(He){return Y[+(He.getHours()>=12)]}function De(He){return 1+~~(He.getMonth()/3)}function Oe(He){return q[He.getUTCDay()]}function Je(He){return W[He.getUTCDay()]}function qe(He){return tt[He.getUTCMonth()]}function ze(He){return X[He.getUTCMonth()]}function we(He){return Y[+(He.getUTCHours()>=12)]}function Me(He){return 1+~~(He.getUTCMonth()/3)}return{format:function(He){var Le=Lt(He+="",At);return Le.toString=function(){return He},Le},parse:function(He){var Le=Yt(He+="",!1);return Le.toString=function(){return He},Le},utcFormat:function(He){var Le=Lt(He+="",Ct);return Le.toString=function(){return He},Le},utcParse:function(He){var Le=Yt(He+="",!0);return Le.toString=function(){return He},Le}}}var pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(D,O,z){var F=D<0?"-":"",Y=(F?-D:D)+"",W=Y.length;return F+(W[O.toLowerCase(),z]))}function parseWeekdayNumberSunday(D,O,z){var F=numberRe.exec(O.slice(z,z+1));return F?(D.w=+F[0],z+F[0].length):-1}function parseWeekdayNumberMonday(D,O,z){var F=numberRe.exec(O.slice(z,z+1));return F?(D.u=+F[0],z+F[0].length):-1}function parseWeekNumberSunday(D,O,z){var F=numberRe.exec(O.slice(z,z+2));return F?(D.U=+F[0],z+F[0].length):-1}function parseWeekNumberISO(D,O,z){var F=numberRe.exec(O.slice(z,z+2));return F?(D.V=+F[0],z+F[0].length):-1}function parseWeekNumberMonday(D,O,z){var F=numberRe.exec(O.slice(z,z+2));return F?(D.W=+F[0],z+F[0].length):-1}function parseFullYear(D,O,z){var F=numberRe.exec(O.slice(z,z+4));return F?(D.y=+F[0],z+F[0].length):-1}function parseYear(D,O,z){var F=numberRe.exec(O.slice(z,z+2));return F?(D.y=+F[0]+(+F[0]>68?1900:2e3),z+F[0].length):-1}function parseZone(D,O,z){var F=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(z,z+6));return F?(D.Z=F[1]?0:-(F[2]+(F[3]||"00")),z+F[0].length):-1}function parseQuarter(D,O,z){var F=numberRe.exec(O.slice(z,z+1));return F?(D.q=F[0]*3-3,z+F[0].length):-1}function parseMonthNumber(D,O,z){var F=numberRe.exec(O.slice(z,z+2));return F?(D.m=F[0]-1,z+F[0].length):-1}function parseDayOfMonth(D,O,z){var F=numberRe.exec(O.slice(z,z+2));return F?(D.d=+F[0],z+F[0].length):-1}function parseDayOfYear(D,O,z){var F=numberRe.exec(O.slice(z,z+3));return F?(D.m=0,D.d=+F[0],z+F[0].length):-1}function parseHour24(D,O,z){var F=numberRe.exec(O.slice(z,z+2));return F?(D.H=+F[0],z+F[0].length):-1}function parseMinutes(D,O,z){var F=numberRe.exec(O.slice(z,z+2));return F?(D.M=+F[0],z+F[0].length):-1}function parseSeconds(D,O,z){var F=numberRe.exec(O.slice(z,z+2));return F?(D.S=+F[0],z+F[0].length):-1}function parseMilliseconds(D,O,z){var F=numberRe.exec(O.slice(z,z+3));return F?(D.L=+F[0],z+F[0].length):-1}function parseMicroseconds(D,O,z){var F=numberRe.exec(O.slice(z,z+6));return F?(D.L=Math.floor(F[0]/1e3),z+F[0].length):-1}function parseLiteralPercent(D,O,z){var F=percentRe.exec(O.slice(z,z+1));return F?z+F[0].length:-1}function parseUnixTimestamp(D,O,z){var F=numberRe.exec(O.slice(z));return F?(D.Q=+F[0],z+F[0].length):-1}function parseUnixTimestampSeconds(D,O,z){var F=numberRe.exec(O.slice(z));return F?(D.s=+F[0],z+F[0].length):-1}function formatDayOfMonth(D,O){return pad(D.getDate(),O,2)}function formatHour24(D,O){return pad(D.getHours(),O,2)}function formatHour12(D,O){return pad(D.getHours()%12||12,O,2)}function formatDayOfYear(D,O){return pad(1+timeDay.count(timeYear(D),D),O,3)}function formatMilliseconds(D,O){return pad(D.getMilliseconds(),O,3)}function formatMicroseconds(D,O){return formatMilliseconds(D,O)+"000"}function formatMonthNumber(D,O){return pad(D.getMonth()+1,O,2)}function formatMinutes(D,O){return pad(D.getMinutes(),O,2)}function formatSeconds(D,O){return pad(D.getSeconds(),O,2)}function formatWeekdayNumberMonday(D){var O=D.getDay();return O===0?7:O}function formatWeekNumberSunday(D,O){return pad(timeSunday.count(timeYear(D)-1,D),O,2)}function dISO(D){var O=D.getDay();return O>=4||O===0?timeThursday(D):timeThursday.ceil(D)}function formatWeekNumberISO(D,O){return D=dISO(D),pad(timeThursday.count(timeYear(D),D)+(timeYear(D).getDay()===4),O,2)}function formatWeekdayNumberSunday(D){return D.getDay()}function formatWeekNumberMonday(D,O){return pad(timeMonday.count(timeYear(D)-1,D),O,2)}function formatYear(D,O){return pad(D.getFullYear()%100,O,2)}function formatYearISO(D,O){return D=dISO(D),pad(D.getFullYear()%100,O,2)}function formatFullYear(D,O){return pad(D.getFullYear()%1e4,O,4)}function formatFullYearISO(D,O){var z=D.getDay();return D=z>=4||z===0?timeThursday(D):timeThursday.ceil(D),pad(D.getFullYear()%1e4,O,4)}function formatZone(D){var O=D.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+pad(O/60|0,"0",2)+pad(O%60,"0",2)}function formatUTCDayOfMonth(D,O){return pad(D.getUTCDate(),O,2)}function formatUTCHour24(D,O){return pad(D.getUTCHours(),O,2)}function formatUTCHour12(D,O){return pad(D.getUTCHours()%12||12,O,2)}function formatUTCDayOfYear(D,O){return pad(1+utcDay.count(utcYear(D),D),O,3)}function formatUTCMilliseconds(D,O){return pad(D.getUTCMilliseconds(),O,3)}function formatUTCMicroseconds(D,O){return formatUTCMilliseconds(D,O)+"000"}function formatUTCMonthNumber(D,O){return pad(D.getUTCMonth()+1,O,2)}function formatUTCMinutes(D,O){return pad(D.getUTCMinutes(),O,2)}function formatUTCSeconds(D,O){return pad(D.getUTCSeconds(),O,2)}function formatUTCWeekdayNumberMonday(D){var O=D.getUTCDay();return O===0?7:O}function formatUTCWeekNumberSunday(D,O){return pad(utcSunday.count(utcYear(D)-1,D),O,2)}function UTCdISO(D){var O=D.getUTCDay();return O>=4||O===0?utcThursday(D):utcThursday.ceil(D)}function formatUTCWeekNumberISO(D,O){return D=UTCdISO(D),pad(utcThursday.count(utcYear(D),D)+(utcYear(D).getUTCDay()===4),O,2)}function formatUTCWeekdayNumberSunday(D){return D.getUTCDay()}function formatUTCWeekNumberMonday(D,O){return pad(utcMonday.count(utcYear(D)-1,D),O,2)}function formatUTCYear(D,O){return pad(D.getUTCFullYear()%100,O,2)}function formatUTCYearISO(D,O){return D=UTCdISO(D),pad(D.getUTCFullYear()%100,O,2)}function formatUTCFullYear(D,O){return pad(D.getUTCFullYear()%1e4,O,4)}function formatUTCFullYearISO(D,O){var z=D.getUTCDay();return D=z>=4||z===0?utcThursday(D):utcThursday.ceil(D),pad(D.getUTCFullYear()%1e4,O,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(D){return+D}function formatUnixTimestampSeconds(D){return Math.floor(+D/1e3)}var locale,timeFormat;defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function defaultLocale(D){return locale=formatLocale(D),timeFormat=locale.format,locale.parse,locale.utcFormat,locale.utcParse,locale}function date(D){return new Date(D)}function number(D){return D instanceof Date?+D:+new Date(+D)}function calendar(D,O,z,F,Y,W,q,X,tt,nt){var st=continuous(),ct=st.invert,lt=st.domain,ht=nt(".%L"),bt=nt(":%S"),wt=nt("%I:%M"),mt=nt("%I %p"),_t=nt("%a %d"),Et=nt("%b %d"),At=nt("%B"),Ct=nt("%Y");function Ft(Lt){return(tt(Lt)1?0:D<-1?pi:Math.acos(D)}function asin(D){return D>=1?halfPi:D<=-1?-halfPi:Math.asin(D)}function withPath(D){let O=3;return D.digits=function(z){if(!arguments.length)return O;if(z==null)O=null;else{const F=Math.floor(z);if(!(F>=0))throw new RangeError(`invalid digits: ${z}`);O=F}return D},()=>new Path(O)}function arcInnerRadius(D){return D.innerRadius}function arcOuterRadius(D){return D.outerRadius}function arcStartAngle(D){return D.startAngle}function arcEndAngle(D){return D.endAngle}function arcPadAngle(D){return D&&D.padAngle}function intersect$1(D,O,z,F,Y,W,q,X){var tt=z-D,nt=F-O,st=q-Y,ct=X-W,lt=ct*tt-st*nt;if(!(lt*ltNt*Nt+ce*ce&&(Ht=te,qt=Xt),{cx:Ht,cy:qt,x01:-st,y01:-ct,x11:Ht*(Y/Ft-1),y11:qt*(Y/Ft-1)}}function arc(){var D=arcInnerRadius,O=arcOuterRadius,z=constant$1(0),F=null,Y=arcStartAngle,W=arcEndAngle,q=arcPadAngle,X=null,tt=withPath(nt);function nt(){var st,ct,lt=+D.apply(this,arguments),ht=+O.apply(this,arguments),bt=Y.apply(this,arguments)-halfPi,wt=W.apply(this,arguments)-halfPi,mt=abs$1(wt-bt),_t=wt>bt;if(X||(X=st=tt()),htepsilon))X.moveTo(0,0);else if(mt>tau-epsilon)X.moveTo(ht*cos(bt),ht*sin(bt)),X.arc(0,0,ht,bt,wt,!_t),lt>epsilon&&(X.moveTo(lt*cos(wt),lt*sin(wt)),X.arc(0,0,lt,wt,bt,_t));else{var Et=bt,At=wt,Ct=bt,Ft=wt,Lt=mt,Yt=mt,Ht=q.apply(this,arguments)/2,qt=Ht>epsilon&&(F?+F.apply(this,arguments):sqrt(lt*lt+ht*ht)),te=min$1(abs$1(ht-lt)/2,+z.apply(this,arguments)),Xt=te,Dt=te,Qt,Nt;if(qt>epsilon){var ce=asin(qt/lt*sin(Ht)),Pt=asin(qt/ht*sin(Ht));(Lt-=ce*2)>epsilon?(ce*=_t?1:-1,Ct+=ce,Ft-=ce):(Lt=0,Ct=Ft=(bt+wt)/2),(Yt-=Pt*2)>epsilon?(Pt*=_t?1:-1,Et+=Pt,At-=Pt):(Yt=0,Et=At=(bt+wt)/2)}var de=ht*cos(Et),ye=ht*sin(Et),pe=lt*cos(Ft),ve=lt*sin(Ft);if(te>epsilon){var Ce=ht*cos(At),De=ht*sin(At),Oe=lt*cos(Ct),Je=lt*sin(Ct),qe;if(mtepsilon?Dt>epsilon?(Qt=cornerTangents(Oe,Je,de,ye,ht,Dt,_t),Nt=cornerTangents(Ce,De,pe,ve,ht,Dt,_t),X.moveTo(Qt.cx+Qt.x01,Qt.cy+Qt.y01),Dtepsilon)||!(Lt>epsilon)?X.lineTo(pe,ve):Xt>epsilon?(Qt=cornerTangents(pe,ve,Ce,De,lt,-Xt,_t),Nt=cornerTangents(de,ye,Oe,Je,lt,-Xt,_t),X.lineTo(Qt.cx+Qt.x01,Qt.cy+Qt.y01),XtD?1:O>=D?0:NaN}function identity$1(D){return D}function pie(){var D=identity$1,O=descending,z=null,F=constant$1(0),Y=constant$1(tau),W=constant$1(0);function q(X){var tt,nt=(X=array(X)).length,st,ct,lt=0,ht=new Array(nt),bt=new Array(nt),wt=+F.apply(this,arguments),mt=Math.min(tau,Math.max(-tau,Y.apply(this,arguments)-wt)),_t,Et=Math.min(Math.abs(mt)/nt,W.apply(this,arguments)),At=Et*(mt<0?-1:1),Ct;for(tt=0;tt0&&(lt+=Ct);for(O!=null?ht.sort(function(Ft,Lt){return O(bt[Ft],bt[Lt])}):z!=null&&ht.sort(function(Ft,Lt){return z(X[Ft],X[Lt])}),tt=0,ct=lt?(mt-nt*At)/lt:0;tt0?Ct*ct:0)+At,bt[st]={data:X[st],index:tt,value:Ct,startAngle:wt,endAngle:_t,padAngle:Et};return bt}return q.value=function(X){return arguments.length?(D=typeof X=="function"?X:constant$1(+X),q):D},q.sortValues=function(X){return arguments.length?(O=X,z=null,q):O},q.sort=function(X){return arguments.length?(z=X,O=null,q):z},q.startAngle=function(X){return arguments.length?(F=typeof X=="function"?X:constant$1(+X),q):F},q.endAngle=function(X){return arguments.length?(Y=typeof X=="function"?X:constant$1(+X),q):Y},q.padAngle=function(X){return arguments.length?(W=typeof X=="function"?X:constant$1(+X),q):W},q}class Bump{constructor(O,z){this._context=O,this._x=z}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(O,z){switch(O=+O,z=+z,this._point){case 0:{this._point=1,this._line?this._context.lineTo(O,z):this._context.moveTo(O,z);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+O)/2,this._y0,this._x0,z,O,z):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+z)/2,O,this._y0,O,z);break}}this._x0=O,this._y0=z}}function bumpX(D){return new Bump(D,!0)}function bumpY(D){return new Bump(D,!1)}function noop$1(){}function point$4(D,O,z){D._context.bezierCurveTo((2*D._x0+D._x1)/3,(2*D._y0+D._y1)/3,(D._x0+2*D._x1)/3,(D._y0+2*D._y1)/3,(D._x0+4*D._x1+O)/6,(D._y0+4*D._y1+z)/6)}function Basis(D){this._context=D}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$4(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(D,O){switch(D=+D,O=+O,this._point){case 0:this._point=1,this._line?this._context.lineTo(D,O):this._context.moveTo(D,O);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$4(this,D,O);break}this._x0=this._x1,this._x1=D,this._y0=this._y1,this._y1=O}};function curveBasis(D){return new Basis(D)}function BasisClosed(D){this._context=D}BasisClosed.prototype={areaStart:noop$1,areaEnd:noop$1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(D,O){switch(D=+D,O=+O,this._point){case 0:this._point=1,this._x2=D,this._y2=O;break;case 1:this._point=2,this._x3=D,this._y3=O;break;case 2:this._point=3,this._x4=D,this._y4=O,this._context.moveTo((this._x0+4*this._x1+D)/6,(this._y0+4*this._y1+O)/6);break;default:point$4(this,D,O);break}this._x0=this._x1,this._x1=D,this._y0=this._y1,this._y1=O}};function curveBasisClosed(D){return new BasisClosed(D)}function BasisOpen(D){this._context=D}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(D,O){switch(D=+D,O=+O,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var z=(this._x0+4*this._x1+D)/6,F=(this._y0+4*this._y1+O)/6;this._line?this._context.lineTo(z,F):this._context.moveTo(z,F);break;case 3:this._point=4;default:point$4(this,D,O);break}this._x0=this._x1,this._x1=D,this._y0=this._y1,this._y1=O}};function curveBasisOpen(D){return new BasisOpen(D)}function Bundle(D,O){this._basis=new Basis(D),this._beta=O}Bundle.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var D=this._x,O=this._y,z=D.length-1;if(z>0)for(var F=D[0],Y=O[0],W=D[z]-F,q=O[z]-Y,X=-1,tt;++X<=z;)tt=X/z,this._basis.point(this._beta*D[X]+(1-this._beta)*(F+tt*W),this._beta*O[X]+(1-this._beta)*(Y+tt*q));this._x=this._y=null,this._basis.lineEnd()},point:function(D,O){this._x.push(+D),this._y.push(+O)}};const curveBundle=function D(O){function z(F){return O===1?new Basis(F):new Bundle(F,O)}return z.beta=function(F){return D(+F)},z}(.85);function point$3(D,O,z){D._context.bezierCurveTo(D._x1+D._k*(D._x2-D._x0),D._y1+D._k*(D._y2-D._y0),D._x2+D._k*(D._x1-O),D._y2+D._k*(D._y1-z),D._x2,D._y2)}function Cardinal(D,O){this._context=D,this._k=(1-O)/6}Cardinal.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:point$3(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(D,O){switch(D=+D,O=+O,this._point){case 0:this._point=1,this._line?this._context.lineTo(D,O):this._context.moveTo(D,O);break;case 1:this._point=2,this._x1=D,this._y1=O;break;case 2:this._point=3;default:point$3(this,D,O);break}this._x0=this._x1,this._x1=this._x2,this._x2=D,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const curveCardinal=function D(O){function z(F){return new Cardinal(F,O)}return z.tension=function(F){return D(+F)},z}(0);function CardinalClosed(D,O){this._context=D,this._k=(1-O)/6}CardinalClosed.prototype={areaStart:noop$1,areaEnd:noop$1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(D,O){switch(D=+D,O=+O,this._point){case 0:this._point=1,this._x3=D,this._y3=O;break;case 1:this._point=2,this._context.moveTo(this._x4=D,this._y4=O);break;case 2:this._point=3,this._x5=D,this._y5=O;break;default:point$3(this,D,O);break}this._x0=this._x1,this._x1=this._x2,this._x2=D,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const curveCardinalClosed=function D(O){function z(F){return new CardinalClosed(F,O)}return z.tension=function(F){return D(+F)},z}(0);function CardinalOpen(D,O){this._context=D,this._k=(1-O)/6}CardinalOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(D,O){switch(D=+D,O=+O,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$3(this,D,O);break}this._x0=this._x1,this._x1=this._x2,this._x2=D,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const curveCardinalOpen=function D(O){function z(F){return new CardinalOpen(F,O)}return z.tension=function(F){return D(+F)},z}(0);function point$2(D,O,z){var F=D._x1,Y=D._y1,W=D._x2,q=D._y2;if(D._l01_a>epsilon){var X=2*D._l01_2a+3*D._l01_a*D._l12_a+D._l12_2a,tt=3*D._l01_a*(D._l01_a+D._l12_a);F=(F*X-D._x0*D._l12_2a+D._x2*D._l01_2a)/tt,Y=(Y*X-D._y0*D._l12_2a+D._y2*D._l01_2a)/tt}if(D._l23_a>epsilon){var nt=2*D._l23_2a+3*D._l23_a*D._l12_a+D._l12_2a,st=3*D._l23_a*(D._l23_a+D._l12_a);W=(W*nt+D._x1*D._l23_2a-O*D._l12_2a)/st,q=(q*nt+D._y1*D._l23_2a-z*D._l12_2a)/st}D._context.bezierCurveTo(F,Y,W,q,D._x2,D._y2)}function CatmullRom(D,O){this._context=D,this._alpha=O}CatmullRom.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(D,O){if(D=+D,O=+O,this._point){var z=this._x2-D,F=this._y2-O;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(z*z+F*F,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(D,O):this._context.moveTo(D,O);break;case 1:this._point=2;break;case 2:this._point=3;default:point$2(this,D,O);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=D,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const curveCatmullRom=function D(O){function z(F){return O?new CatmullRom(F,O):new Cardinal(F,0)}return z.alpha=function(F){return D(+F)},z}(.5);function CatmullRomClosed(D,O){this._context=D,this._alpha=O}CatmullRomClosed.prototype={areaStart:noop$1,areaEnd:noop$1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(D,O){if(D=+D,O=+O,this._point){var z=this._x2-D,F=this._y2-O;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(z*z+F*F,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=D,this._y3=O;break;case 1:this._point=2,this._context.moveTo(this._x4=D,this._y4=O);break;case 2:this._point=3,this._x5=D,this._y5=O;break;default:point$2(this,D,O);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=D,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const curveCatmullRomClosed=function D(O){function z(F){return O?new CatmullRomClosed(F,O):new CardinalClosed(F,0)}return z.alpha=function(F){return D(+F)},z}(.5);function CatmullRomOpen(D,O){this._context=D,this._alpha=O}CatmullRomOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(D,O){if(D=+D,O=+O,this._point){var z=this._x2-D,F=this._y2-O;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(z*z+F*F,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$2(this,D,O);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=D,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const curveCatmullRomOpen=function D(O){function z(F){return O?new CatmullRomOpen(F,O):new CardinalOpen(F,0)}return z.alpha=function(F){return D(+F)},z}(.5);function LinearClosed(D){this._context=D}LinearClosed.prototype={areaStart:noop$1,areaEnd:noop$1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(D,O){D=+D,O=+O,this._point?this._context.lineTo(D,O):(this._point=1,this._context.moveTo(D,O))}};function curveLinearClosed(D){return new LinearClosed(D)}function sign(D){return D<0?-1:1}function slope3(D,O,z){var F=D._x1-D._x0,Y=O-D._x1,W=(D._y1-D._y0)/(F||Y<0&&-0),q=(z-D._y1)/(Y||F<0&&-0),X=(W*Y+q*F)/(F+Y);return(sign(W)+sign(q))*Math.min(Math.abs(W),Math.abs(q),.5*Math.abs(X))||0}function slope2(D,O){var z=D._x1-D._x0;return z?(3*(D._y1-D._y0)/z-O)/2:O}function point$1(D,O,z){var F=D._x0,Y=D._y0,W=D._x1,q=D._y1,X=(W-F)/3;D._context.bezierCurveTo(F+X,Y+X*O,W-X,q-X*z,W,q)}function MonotoneX(D){this._context=D}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$1(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(D,O){var z=NaN;if(D=+D,O=+O,!(D===this._x1&&O===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(D,O):this._context.moveTo(D,O);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,z=slope3(this,D,O)),z);break;default:point$1(this,this._t0,z=slope3(this,D,O));break}this._x0=this._x1,this._x1=D,this._y0=this._y1,this._y1=O,this._t0=z}}};function MonotoneY(D){this._context=new ReflectContext(D)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(D,O){MonotoneX.prototype.point.call(this,O,D)};function ReflectContext(D){this._context=D}ReflectContext.prototype={moveTo:function(D,O){this._context.moveTo(O,D)},closePath:function(){this._context.closePath()},lineTo:function(D,O){this._context.lineTo(O,D)},bezierCurveTo:function(D,O,z,F,Y,W){this._context.bezierCurveTo(O,D,F,z,W,Y)}};function monotoneX(D){return new MonotoneX(D)}function monotoneY(D){return new MonotoneY(D)}function Natural(D){this._context=D}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var D=this._x,O=this._y,z=D.length;if(z)if(this._line?this._context.lineTo(D[0],O[0]):this._context.moveTo(D[0],O[0]),z===2)this._context.lineTo(D[1],O[1]);else for(var F=controlPoints(D),Y=controlPoints(O),W=0,q=1;q=0;--O)Y[O]=(q[O]-Y[O+1])/W[O];for(W[z-1]=(D[z]+Y[z-1])/2,O=0;O=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(D,O){switch(D=+D,O=+O,this._point){case 0:this._point=1,this._line?this._context.lineTo(D,O):this._context.moveTo(D,O);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,O),this._context.lineTo(D,O);else{var z=this._x*(1-this._t)+D*this._t;this._context.lineTo(z,this._y),this._context.lineTo(z,O)}break}}this._x=D,this._y=O}};function curveStep(D){return new Step(D,.5)}function stepBefore(D){return new Step(D,0)}function stepAfter(D){return new Step(D,1)}function Transform(D,O,z){this.k=D,this.x=O,this.y=z}Transform.prototype={constructor:Transform,scale:function(D){return D===1?this:new Transform(this.k*D,this.x,this.y)},translate:function(D,O){return D===0&O===0?this:new Transform(this.k,this.x+this.k*D,this.y+this.k*O)},apply:function(D){return[D[0]*this.k+this.x,D[1]*this.k+this.y]},applyX:function(D){return D*this.k+this.x},applyY:function(D){return D*this.k+this.y},invert:function(D){return[(D[0]-this.x)/this.k,(D[1]-this.y)/this.k]},invertX:function(D){return(D-this.x)/this.k},invertY:function(D){return(D-this.y)/this.k},rescaleX:function(D){return D.copy().domain(D.range().map(this.invertX,this).map(D.invert,D))},rescaleY:function(D){return D.copy().domain(D.range().map(this.invertY,this).map(D.invert,D))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Transform.prototype;/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */function _typeof(D){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},_typeof(D)}function _setPrototypeOf(D,O){return _setPrototypeOf=Object.setPrototypeOf||function(F,Y){return F.__proto__=Y,F},_setPrototypeOf(D,O)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(D,O,z){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Y,W,q){var X=[null];X.push.apply(X,W);var tt=Function.bind.apply(Y,X),nt=new tt;return q&&_setPrototypeOf(nt,q.prototype),nt},_construct.apply(null,arguments)}function _toConsumableArray(D){return _arrayWithoutHoles(D)||_iterableToArray(D)||_unsupportedIterableToArray(D)||_nonIterableSpread()}function _arrayWithoutHoles(D){if(Array.isArray(D))return _arrayLikeToArray(D)}function _iterableToArray(D){if(typeof Symbol<"u"&&D[Symbol.iterator]!=null||D["@@iterator"]!=null)return Array.from(D)}function _unsupportedIterableToArray(D,O){if(D){if(typeof D=="string")return _arrayLikeToArray(D,O);var z=Object.prototype.toString.call(D).slice(8,-1);if(z==="Object"&&D.constructor&&(z=D.constructor.name),z==="Map"||z==="Set")return Array.from(D);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return _arrayLikeToArray(D,O)}}function _arrayLikeToArray(D,O){(O==null||O>D.length)&&(O=D.length);for(var z=0,F=new Array(O);z1?z-1:0),Y=1;Y/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),getGlobal=function D(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function D(O,z){if(_typeof(O)!=="object"||typeof O.createPolicy!="function")return null;var F=null,Y="data-tt-policy-suffix";z.currentScript&&z.currentScript.hasAttribute(Y)&&(F=z.currentScript.getAttribute(Y));var W="dompurify"+(F?"#"+F:"");try{return O.createPolicy(W,{createHTML:function(X){return X},createScriptURL:function(X){return X}})}catch{return console.warn("TrustedTypes policy "+W+" could not be created."),null}};function createDOMPurify(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal(),O=function(je){return createDOMPurify(je)};if(O.version="2.4.3",O.removed=[],!D||!D.document||D.document.nodeType!==9)return O.isSupported=!1,O;var z=D.document,F=D.document,Y=D.DocumentFragment,W=D.HTMLTemplateElement,q=D.Node,X=D.Element,tt=D.NodeFilter,nt=D.NamedNodeMap,st=nt===void 0?D.NamedNodeMap||D.MozNamedAttrMap:nt,ct=D.HTMLFormElement,lt=D.DOMParser,ht=D.trustedTypes,bt=X.prototype,wt=lookupGetter(bt,"cloneNode"),mt=lookupGetter(bt,"nextSibling"),_t=lookupGetter(bt,"childNodes"),Et=lookupGetter(bt,"parentNode");if(typeof W=="function"){var At=F.createElement("template");At.content&&At.content.ownerDocument&&(F=At.content.ownerDocument)}var Ct=_createTrustedTypesPolicy(ht,z),Ft=Ct?Ct.createHTML(""):"",Lt=F,Yt=Lt.implementation,Ht=Lt.createNodeIterator,qt=Lt.createDocumentFragment,te=Lt.getElementsByTagName,Xt=z.importNode,Dt={};try{Dt=clone$2(F).documentMode?F.documentMode:{}}catch{}var Qt={};O.isSupported=typeof Et=="function"&&Yt&&typeof Yt.createHTMLDocument<"u"&&Dt!==9;var Nt=MUSTACHE_EXPR,ce=ERB_EXPR,Pt=TMPLIT_EXPR,de=DATA_ATTR,ye=ARIA_ATTR,pe=IS_SCRIPT_OR_DATA,ve=ATTR_WHITESPACE,Ce=IS_ALLOWED_URI,De=null,Oe=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text))),Je=null,qe=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(mathMl),_toConsumableArray(xml))),ze=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),we=null,Me=null,He=!0,Le=!0,Ye=!1,Kt=!1,kt=!1,jt=!1,$t=!1,oe=!1,Vt=!1,Be=!1,ge=!0,Pe=!1,ke="user-content-",$e=!0,Fe=!1,Qe={},We=null,rn=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),zn=null,Bn=addToSet({},["audio","video","img","source","image","track"]),Pn=null,jn=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Jn="http://www.w3.org/1998/Math/MathML",rr="http://www.w3.org/2000/svg",sr="http://www.w3.org/1999/xhtml",on=sr,ie=!1,ne=null,xe=addToSet({},[Jn,rr,sr],stringToString),Ae,Ve=["application/xhtml+xml","text/html"],vn="text/html",Ge,Dn=null,en=F.createElement("form"),Fn=function(je){return je instanceof RegExp||je instanceof Function},$n=function(je){Dn&&Dn===je||((!je||_typeof(je)!=="object")&&(je={}),je=clone$2(je),Ae=Ve.indexOf(je.PARSER_MEDIA_TYPE)===-1?Ae=vn:Ae=je.PARSER_MEDIA_TYPE,Ge=Ae==="application/xhtml+xml"?stringToString:stringToLowerCase,De="ALLOWED_TAGS"in je?addToSet({},je.ALLOWED_TAGS,Ge):Oe,Je="ALLOWED_ATTR"in je?addToSet({},je.ALLOWED_ATTR,Ge):qe,ne="ALLOWED_NAMESPACES"in je?addToSet({},je.ALLOWED_NAMESPACES,stringToString):xe,Pn="ADD_URI_SAFE_ATTR"in je?addToSet(clone$2(jn),je.ADD_URI_SAFE_ATTR,Ge):jn,zn="ADD_DATA_URI_TAGS"in je?addToSet(clone$2(Bn),je.ADD_DATA_URI_TAGS,Ge):Bn,We="FORBID_CONTENTS"in je?addToSet({},je.FORBID_CONTENTS,Ge):rn,we="FORBID_TAGS"in je?addToSet({},je.FORBID_TAGS,Ge):{},Me="FORBID_ATTR"in je?addToSet({},je.FORBID_ATTR,Ge):{},Qe="USE_PROFILES"in je?je.USE_PROFILES:!1,He=je.ALLOW_ARIA_ATTR!==!1,Le=je.ALLOW_DATA_ATTR!==!1,Ye=je.ALLOW_UNKNOWN_PROTOCOLS||!1,Kt=je.SAFE_FOR_TEMPLATES||!1,kt=je.WHOLE_DOCUMENT||!1,oe=je.RETURN_DOM||!1,Vt=je.RETURN_DOM_FRAGMENT||!1,Be=je.RETURN_TRUSTED_TYPE||!1,$t=je.FORCE_BODY||!1,ge=je.SANITIZE_DOM!==!1,Pe=je.SANITIZE_NAMED_PROPS||!1,$e=je.KEEP_CONTENT!==!1,Fe=je.IN_PLACE||!1,Ce=je.ALLOWED_URI_REGEXP||Ce,on=je.NAMESPACE||sr,je.CUSTOM_ELEMENT_HANDLING&&Fn(je.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ze.tagNameCheck=je.CUSTOM_ELEMENT_HANDLING.tagNameCheck),je.CUSTOM_ELEMENT_HANDLING&&Fn(je.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ze.attributeNameCheck=je.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),je.CUSTOM_ELEMENT_HANDLING&&typeof je.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ze.allowCustomizedBuiltInElements=je.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Kt&&(Le=!1),Vt&&(oe=!0),Qe&&(De=addToSet({},_toConsumableArray(text)),Je=[],Qe.html===!0&&(addToSet(De,html$1),addToSet(Je,html)),Qe.svg===!0&&(addToSet(De,svg$1),addToSet(Je,svg),addToSet(Je,xml)),Qe.svgFilters===!0&&(addToSet(De,svgFilters),addToSet(Je,svg),addToSet(Je,xml)),Qe.mathMl===!0&&(addToSet(De,mathMl$1),addToSet(Je,mathMl),addToSet(Je,xml))),je.ADD_TAGS&&(De===Oe&&(De=clone$2(De)),addToSet(De,je.ADD_TAGS,Ge)),je.ADD_ATTR&&(Je===qe&&(Je=clone$2(Je)),addToSet(Je,je.ADD_ATTR,Ge)),je.ADD_URI_SAFE_ATTR&&addToSet(Pn,je.ADD_URI_SAFE_ATTR,Ge),je.FORBID_CONTENTS&&(We===rn&&(We=clone$2(We)),addToSet(We,je.FORBID_CONTENTS,Ge)),$e&&(De["#text"]=!0),kt&&addToSet(De,["html","head","body"]),De.table&&(addToSet(De,["tbody"]),delete we.tbody),freeze&&freeze(je),Dn=je)},Kn=addToSet({},["mi","mo","mn","ms","mtext"]),Wn=addToSet({},["foreignobject","desc","title","annotation-xml"]),mr=addToSet({},["title","style","font","a","script"]),ir=addToSet({},svg$1);addToSet(ir,svgFilters),addToSet(ir,svgDisallowed);var wr=addToSet({},mathMl$1);addToSet(wr,mathMlDisallowed);var Lr=function(je){var gn=Et(je);(!gn||!gn.tagName)&&(gn={namespaceURI:on,tagName:"template"});var In=stringToLowerCase(je.tagName),Hn=stringToLowerCase(gn.tagName);return ne[je.namespaceURI]?je.namespaceURI===rr?gn.namespaceURI===sr?In==="svg":gn.namespaceURI===Jn?In==="svg"&&(Hn==="annotation-xml"||Kn[Hn]):!!ir[In]:je.namespaceURI===Jn?gn.namespaceURI===sr?In==="math":gn.namespaceURI===rr?In==="math"&&Wn[Hn]:!!wr[In]:je.namespaceURI===sr?gn.namespaceURI===rr&&!Wn[Hn]||gn.namespaceURI===Jn&&!Kn[Hn]?!1:!wr[In]&&(mr[In]||!ir[In]):!!(Ae==="application/xhtml+xml"&&ne[je.namespaceURI]):!1},Dr=function(je){arrayPush$1(O.removed,{element:je});try{je.parentNode.removeChild(je)}catch{try{je.outerHTML=Ft}catch{je.remove()}}},Fo=function(je,gn){try{arrayPush$1(O.removed,{attribute:gn.getAttributeNode(je),from:gn})}catch{arrayPush$1(O.removed,{attribute:null,from:gn})}if(gn.removeAttribute(je),je==="is"&&!Je[je])if(oe||Vt)try{Dr(gn)}catch{}else try{gn.setAttribute(je,"")}catch{}},xo=function(je){var gn,In;if($t)je=""+je;else{var Hn=stringMatch(je,/^[\r\n\t ]+/);In=Hn&&Hn[0]}Ae==="application/xhtml+xml"&&on===sr&&(je=''+je+"");var Er=Ct?Ct.createHTML(je):je;if(on===sr)try{gn=new lt().parseFromString(Er,Ae)}catch{}if(!gn||!gn.documentElement){gn=Yt.createDocument(on,"template",null);try{gn.documentElement.innerHTML=ie?Ft:Er}catch{}}var Or=gn.body||gn.documentElement;return je&&In&&Or.insertBefore(F.createTextNode(In),Or.childNodes[0]||null),on===sr?te.call(gn,kt?"html":"body")[0]:kt?gn.documentElement:Or},tr=function(je){return Ht.call(je.ownerDocument||je,je,tt.SHOW_ELEMENT|tt.SHOW_COMMENT|tt.SHOW_TEXT,null,!1)},Cr=function(je){return je instanceof ct&&(typeof je.nodeName!="string"||typeof je.textContent!="string"||typeof je.removeChild!="function"||!(je.attributes instanceof st)||typeof je.removeAttribute!="function"||typeof je.setAttribute!="function"||typeof je.namespaceURI!="string"||typeof je.insertBefore!="function"||typeof je.hasChildNodes!="function")},go=function(je){return _typeof(q)==="object"?je instanceof q:je&&_typeof(je)==="object"&&typeof je.nodeType=="number"&&typeof je.nodeName=="string"},Un=function(je,gn,In){Qt[je]&&arrayForEach(Qt[je],function(Hn){Hn.call(O,gn,In,Dn)})},zi=function(je){var gn;if(Un("beforeSanitizeElements",je,null),Cr(je)||regExpTest(/[\u0080-\uFFFF]/,je.nodeName))return Dr(je),!0;var In=Ge(je.nodeName);if(Un("uponSanitizeElement",je,{tagName:In,allowedTags:De}),je.hasChildNodes()&&!go(je.firstElementChild)&&(!go(je.content)||!go(je.content.firstElementChild))&®ExpTest(/<[/\w]/g,je.innerHTML)&®ExpTest(/<[/\w]/g,je.textContent)||In==="select"&®ExpTest(/