mashlib 2.1.3-test.0 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mashlib.js +63 -38
- package/dist/mashlib.js.map +1 -1
- package/dist/mashlib.min.js +5 -5
- package/dist/mashlib.min.js.map +1 -1
- package/package.json +7 -7
package/dist/mashlib.min.js
CHANGED
|
@@ -85,7 +85,7 @@ e.exports=n(1813)},6049(e,t,n){"use strict";
|
|
|
85
85
|
</section>
|
|
86
86
|
`:""}
|
|
87
87
|
</article>
|
|
88
|
-
`:r.html``}},7408(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.datesAsText=l,t.languageAsText=c,t.presentCV=function(e,t){const n=function(e,t){const n=e.each(null,a("member"),t,null),r={PastRole:[],CurrentRole:[],FutureRole:[]};for(const t of n){let n,s,c,u,p;const d=e.any(t,i.ns.schema("startDate")),f=e.any(t,i.ns.schema("endDate")),h=l(d,f),m=e.any(t,a("organization"));m&&(s=e.anyJS(m,i.ns.schema("name")),n=e.any(m,i.ns.schema("uri")),p=e.any(m,i.ns.solid("publicId"))),p&&(c=e.anyJS(p,i.ns.schema("name")));const g=c||s,v=e.any(t,a("role"));v&&(u=e.anyJS(v,i.ns.schema("name")));const b=e.anyJS(t,i.ns.vcard("role")),y={startDate:d,endDate:f,orgName:g,roleText:b&&u?u+" - "+b:b||u,dates:h,orgHomePage:n};for(const n of o)e.holds(t,i.ns.rdf("type"),i.ns.solid(n))&&r[n].push(y)}return r}(t,e);for(const e of o)n[e].sort(function(e,t){return e.endDate&&t.endDate?e.endDate>t.endDate?-1:1:e.startDate>t.startDate?-1:1});const r=t.each(e,i.ns.schema("skills")).map(e=>s(t,e)).filter(e=>""!==e),p=t.each(e,i.ns.schema("knowsLanguage")).flatMap(e=>u(t,e)).map(e=>c(t,e)).
|
|
88
|
+
`:r.html``}},7408(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.datesAsText=l,t.languageAsText=c,t.presentCV=function(e,t){const n=function(e,t){const n=e.each(null,a("member"),t,null),r={PastRole:[],CurrentRole:[],FutureRole:[]};for(const t of n){let n,s,c,u,p;const d=e.any(t,i.ns.schema("startDate")),f=e.any(t,i.ns.schema("endDate")),h=l(d,f),m=e.any(t,a("organization"));m&&(s=e.anyJS(m,i.ns.schema("name")),n=e.any(m,i.ns.schema("uri")),p=e.any(m,i.ns.solid("publicId"))),p&&(c=e.anyJS(p,i.ns.schema("name")));const g=c||s,v=e.any(t,a("role"));v&&(u=e.anyJS(v,i.ns.schema("name")));const b=e.anyJS(t,i.ns.vcard("role")),y={startDate:d,endDate:f,orgName:g,roleText:b&&u?u+" - "+b:b||u,dates:h,orgHomePage:n};for(const n of o)e.holds(t,i.ns.rdf("type"),i.ns.solid(n))&&r[n].push(y)}return r}(t,e);for(const e of o)n[e].sort(function(e,t){return e.endDate&&t.endDate?e.endDate>t.endDate?-1:1:e.startDate>t.startDate?-1:1});const r=t.each(e,i.ns.schema("skills")).map(e=>s(t,e)).filter(e=>""!==e),p=t.each(e,i.ns.schema("knowsLanguage")).flatMap(e=>u(t,e)).map(e=>c(t,e)),d=Array.from(new Set(p));return{rolesByType:n,skills:r,languages:d}},t.skillAsText=s,t.typesOfRole=void 0;var r=n(8230),i=n(500);const a=(0,r.Namespace)("http://www.w3.org/ns/org#"),o=t.typesOfRole=["PastRole","CurrentRole","FutureRole"];function s(e,t){if("Literal"===t.termType)return t.value;const n=e.anyJS(t,i.ns.solid("publicId"));if(n){const t=e.anyJS(n,i.ns.schema("name"));if(t)return t}const r=e.anyJS(t,i.ns.vcard("role"));return r&&r[0]>""?r:""}function c(e,t){if("Literal"===t.termType)return t.value;const n=e.anyJS(t,i.ns.solid("publicId"));return n?i.utils.label(n,!0):""}function l(e,t){return e?"("+e.value.slice(0,10)+" to "+(t?t.value.slice(0,10):"")+")":""}function u(e,t){const n=t.elements;if(Array.isArray(n))return n.flatMap(t=>u(e,t));if(!e.any(t,i.ns.rdf("first")))return[t];const r=[];let a=t;for(;a;){const t=e.any(a,i.ns.rdf("first"));t&&r.push(...u(e,t));const n=e.any(a,i.ns.rdf("rest"));if(!n||"NamedNode"===n.termType&&n.value===i.ns.rdf("nil").value)break;a=n}return r}},4799(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatWithMe=void 0;var r=n(6752),i=n(500),a=n(9332),o=n(4697),s=n(1363),c=n(4198);n(1275);t.ChatWithMe=(e,t)=>{const n=t.session.logic,l=t.session.paneRegistry.byName("long chat");return r.html` ${(0,o.asyncReplace)(async function*(){const o=t.dom.createElement("section");o.setAttribute("class","chatSection section-centered"),o.setAttribute("aria-labelledby","chat-section-title"),o.setAttribute("role","region"),o.setAttribute("data-testid","chat");const u=t.dom.createElement("h3");let p;u.id="chat-section-title",u.className="sr-only",u.textContent="Communication",o.appendChild(u);try{yield r.html`
|
|
89
89
|
<div class="buttonSubSection">
|
|
90
90
|
<div class="actionButton loading-text center" role="status" aria-live="polite">
|
|
91
91
|
${s.loadingMessage.toUpperCase()}
|
|
@@ -302,7 +302,7 @@ e.exports=n(1813)},6049(e,t,n){"use strict";
|
|
|
302
302
|
</ul>
|
|
303
303
|
</nav>
|
|
304
304
|
</section>
|
|
305
|
-
`}},6294(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.presentSocial=function(e,t){function n(e){const n=t.any(e,r.ns.foaf("name"))||t.any(e,r.ns.rdfs("label"));if(n)return n.value;const i=t.each(e,r.ns.rdf("type"));for(const e of i){const n=t.any(e,r.ns.rdfs("label"));return n?n.value:r.utils.label(e)}return"Unknown Account"}function s(e){const n=t.any(e,r.ns.foaf("icon"));if(n)return n.value;const i=t.each(e,r.ns.rdf("type"));if(i.length>0)for(const e of i){const n=t.any(e,r.ns.foaf("icon"));if(null!==n)return n.value}return a}function c(e){const n=t.anyJS(e,r.ns.foaf("accountName"),null,e.doc())||"",i=t.each(e,r.ns.rdf("type"));for(const e of i){const i=t.any(e,r.ns.foaf("userProfilePrefix"));if(i)return i.value+n.trim()}return t.anyJS(e,r.ns.foaf("homepage"),null,e.doc())||""}(0,i.loadDocument)(t,'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix schema: <http://schema.org/>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix org: <http://www.w3.org/ns/org#>.\n@prefix : <#>.\n\n########### ATTENTION - we cannot rename this ontology file name without migrating existing data on existing accounts\n\n########### Social Media - other accounts\n#\n# Twitter, linked In, Orkid, Mastodon, Matrix, Bluesky, Instagram, Facebook, Github,\n# Snapchat, TikTok, etc\n\n:this\n <http://purl.org/dc/elements/1.1/title> "Social media form" ;\n a ui:Form ;\n ui:parts (\n :SocialsForm\n ).\n\n:SocialsForm a ui:Multiple;\n ui:label "online account";\n ui:property foaf:account; # the triple is created with the foaf:acccounts predicate\n ui:ordered true; # Allow user to order occounts most important first.\n ui:part :AccountsForm.\n\n:AccountsForm a ui:Group; \n ui:weight 1; \n ui:parts ( \n :AccountField \n :AccountIdField ).\n\n:AccountField a ui:Classifier; \n ui:label "Choose account"@en;\n ui:multiple false ; \n ui:category foaf:Account. # the accounts are described by the foaf:Account predicate\n\n# this is what is needed to make a dropdown box\nfoaf:Account a rdfs:Class;\n rdfs:label "Online Account Provider";\n owl:disjointUnionOf ( \n :BlueSkyAccount :DiggAccount :FacebookAccount :GithubAccount :InstagramAccount\n :LinkedInAccount :MastodonAccount :MatrixAccount :MediumAccount :NostrAccount \n :OrcidAccount :PinterestAccount :RedditAccount :SnapchatAccount :StravaAccount \n :TiktokAccount :TumblrAccount :TwitterAccount :OtherAccount) .\n\n:AccountIdField a ui:Options; \n ui:dependingOn rdf:type; \n ui:case\n [ ui:for :BlueSkyAccount; ui:use :BlueSkyIdField ],\n [ ui:for :DiggAccount; ui:use :DiggIdField],\n [ ui:for :FacebookAccount; ui:use :FacebookIdField ],\n [ ui:for :GithubAccount; ui:use :GithubIdField ],\n [ ui:for :InstagramAccount; ui:use :InstagramIdField ],\n [ ui:for :LinkedInAccount; ui:use :LinkedInIdField ],\n [ ui:for :MastodonAccount; ui:use :MastodonIdField ],\n [ ui:for :MatrixAccount; ui:use :MatrixIdField ],\n [ ui:for :MediumAccount; ui:use :MediumIdField ],\n [ ui:for :NostrAccount; ui:use :NostrIdField ],\n [ ui:for :OrcidAccount; ui:use :OrcidIdField ],\n [ ui:for :PinterestAccount; ui:use :PinterestIdField ],\n [ ui:for :RedditAccount; ui:use :RedditIdField ],\n [ ui:for :StravaAccount; ui:use :StravaIdField ],\n [ ui:for :SnapchatAccount; ui:use :SnapchatIdField ],\n [ ui:for :TiktokAccount; ui:use :TiktokIdField ],\n [ ui:for :TumblrAccount; ui:use :TumblrIdField ],\n [ ui:for :TwitterAccount; ui:use :TwitterIdField ],\n [ ui:for :OtherAccount; ui:use :OtherIdForm ] .\n\n:BlueSkyAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Bluesky";\n foaf:userProfilePrefix "https://bsky.app/profile/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/bluesky-1.svg>;\n foaf:homepage <https://bsky.app/> .\n\n:DiggAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Digg";\n foaf:userProfilePrefix "https://www.digg.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/digg-icon.svg>;\n foaf:homepage <https://www.digg.com/> .\n\n:FacebookAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Facebook";\n foaf:userProfilePrefix "https://www.facebook.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/facebook-2020-2-1.svg>;\n foaf:homepage <https://www.facebook.com/> .\n\n:GithubAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Github";\n foaf:userProfilePrefix "https://www.github.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/github-icon.svg>;\n foaf:homepage <https://github.com/> .\n\n:InstagramAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Instagram";\n foaf:userProfilePrefix "https://www.instagram.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/instagram-2016-5.svg>;\n foaf:homepage <https://www.instagram.com/> .\n\n:LinkedInAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "LinkedIn";\n foaf:userProfilePrefix "https://www.linkedin.com/in/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/linkedin-icon.svg>;\n foaf:homepage <https://linkedin.com/> .\n\n:MastodonAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Mastodon" ;\n foaf:userProfilePrefix "https://mastodon.social/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/mastodon-2.svg>;\n foaf:homepage <https://joinmastodon.org/> .\n\n:MatrixAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Matrix" ;\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/matrix-logo-black.svg> ;\n foaf:userProfilePrefix "https://matrix.to/#/" ;\n foaf:homepage <https://matrix.org/> .\n\n:MediumAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Medium";\n foaf:userProfilePrefix "https://medium.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/medium-logo-wordmark-black.svg>;\n foaf:homepage <https://medium.com/> .\n\n:NostrAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Nostr";\n foaf:userProfilePrefix "https://primal.net/p/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/nostr-icon-purple-on-white.svg>;\n foaf:homepage <https://nostr.net/> .\n\n:OrcidAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "ORCiD";\n foaf:userProfilePrefix "https://orcid.org/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/ORCID-1.svg>;\n foaf:homepage <https://orcid.org/> .\n\n:PinterestAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Pinterest";\n foaf:userProfilePrefix "https://pin.it/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/pinterest-2-1.svg>;\n foaf:homepage <https://pinterest.com/> .\n\n:RedditAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Reddit";\n foaf:userProfilePrefix "https://www.reddit.com/user/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/reddit-4.svg>;\n foaf:homepage <https://reddit.com/> .\n\n:SnapchatAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Snapchat";\n foaf:userProfilePrefix "https://www.snapchat.com/add/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/snapchat-1.svg>;\n foaf:homepage <https://www.snapchat.com/> .\n\n:StravaAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Strava";\n foaf:userProfilePrefix "https://www.strava.com/athletes/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/strava-2.svg>;\n foaf:homepage <https://strava.com/> .\n\n:TiktokAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "TikTok";\n foaf:userProfilePrefix "https://www.tiktok.com/@";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tiktok-icon-2.svg>;\n foaf:homepage <https://www.tiktok.com/> .\n\n:TumblrAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Tumblr";\n foaf:userProfilePrefix "https://www.tumblr.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tumblr-icon.svg>;\n foaf:homepage <https://www.tumblr.com/> .\n\n:TwitterAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "X";\n foaf:userProfilePrefix "https://x.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/x-2.svg>;\n foaf:homepage <https://x.com/> .\n\n:OtherAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Other" ;\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/noun_1689339.svg> .\n\n:BlueSkyIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*".\n\n:DiggIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*".\n\n:FacebookIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:GithubIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:InstagramIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:LinkedInIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MastodonIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MatrixIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MediumIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:NostrIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:OrcidIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:PinterestIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:RedditIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:StravaIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:SnapchatIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TiktokIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TumblrIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TwitterIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n# an unknown online account needs more info\n\n:OtherIdForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :OtherIdField \n :OtherIconField \n :OtherLabelField ).\n\n:OtherIdField\n a ui:NamedNodeURIField ;\n ui:label "Account link";\n ui:maxLength "200" ;\n ui:property foaf:homepage.\n\n:OtherIconField\n a ui:NamedNodeURIField ;\n ui:label "Icon link";\n ui:maxLength "200" ;\n ui:property foaf:icon.\n\n:OtherLabelField\n a ui:SingleLineTextField ;\n ui:label "Name";\n ui:maxLength "200" ;\n ui:property rdfs:label.\n\n# ends\n',"socialMedia.ttl");const l=t.each(e,r.ns.foaf("account")).flatMap(e=>o(t,e));if(!l.length)return{accounts:[]};return{accounts:l.map(e=>function(e){return{name:n(e),icon:s(e),homepage:c(e)}}(e))}};var r=n(500),i=n(7824);const a=r.icons.iconBase+"noun_10636_grey.svg";function o(e,t){const n=t.elements;if(Array.isArray(n))return n.flatMap(t=>o(e,t));if(!e.any(t,r.ns.rdf("first")))return[t];const i=[];let a=t;for(;a;){const t=e.any(a,r.ns.rdf("first"));t&&i.push(...o(e,t));const n=e.any(a,r.ns.rdf("rest"));if(!n||"NamedNode"===n.termType&&n.value===r.ns.rdf("nil").value)break;a=n}return i}},135(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StuffCard=void 0,t.renderThing=o,t.renderThingAsDOM=a,t.renderThings=s;var r=n(6752),i=n(500);n(5755);function a(e,t){return i.widgets.personTR(t,null,e.instance,{})}function o(e,t){return a(e,t)}function s(e,t){return 0===e.length?r.html``:r.html`${o(e[0],t)}${e.length>1?s(e.slice(1),t):r.html``}`}t.StuffCard=(e,t,n,i)=>{const{stuff:a}=i,o=t.dom||document;return r.html`
|
|
305
|
+
`}},6294(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.presentSocial=function(e,t){function n(e){const n=t.any(e,r.ns.foaf("name"))||t.any(e,r.ns.rdfs("label"));if(n)return n.value;const i=t.each(e,r.ns.rdf("type"));for(const e of i){const n=t.any(e,r.ns.rdfs("label"));return n?n.value:r.utils.label(e)}return"Unknown Account"}function o(e){const n=t.any(e,r.ns.foaf("icon"));if(n)return n.value;const i=t.each(e,r.ns.rdf("type"));if(i.length>0)for(const e of i){const n=t.any(e,r.ns.foaf("icon"));if(null!==n)return n.value}return a}function s(e){const n=t.any(e,r.ns.foaf("homepage"));if(n)return n.value;const i=t.anyJS(e,r.ns.foaf("accountName"),null,e.doc())||"No_account_Name",a=t.each(e,r.ns.rdf("type"));for(const e of a)if("NamedNode"===e.termType){const n=t.any(e,r.ns.foaf("userProfilePrefix"));if(n)return n.value+i.trim()}return t.anyJS(e,r.ns.foaf("homepage"),null,e.doc())||""}function c(e){return{name:n(e),icon:o(e),homepage:s(e)}}(0,i.loadDocument)(t,'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix schema: <http://schema.org/>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix org: <http://www.w3.org/ns/org#>.\n@prefix : <#>.\n\n########### ATTENTION - we cannot rename this ontology file name without migrating existing data on existing accounts\n\n########### Social Media - other accounts\n#\n# Twitter, linked In, Orkid, Mastodon, Matrix, Bluesky, Instagram, Facebook, Github,\n# Snapchat, TikTok, etc\n\n:this\n <http://purl.org/dc/elements/1.1/title> "Social media form" ;\n a ui:Form ;\n ui:parts (\n :SocialsForm\n ).\n\n:SocialsForm a ui:Multiple;\n ui:label "online account";\n ui:property foaf:account; # the triple is created with the foaf:acccounts predicate\n ui:ordered true; # Allow user to order occounts most important first.\n ui:part :AccountsForm.\n\n:AccountsForm a ui:Group; \n ui:weight 1; \n ui:parts ( \n :AccountField \n :AccountIdField ).\n\n:AccountField a ui:Classifier; \n ui:label "Choose account"@en;\n ui:multiple false ; \n ui:category foaf:Account. # the accounts are described by the foaf:Account predicate\n\n# this is what is needed to make a dropdown box\nfoaf:Account a rdfs:Class;\n rdfs:label "Online Account Provider";\n owl:disjointUnionOf ( \n :BlueSkyAccount :DiggAccount :FacebookAccount :GithubAccount :InstagramAccount\n :LinkedInAccount :MastodonAccount :MatrixAccount :MediumAccount :NostrAccount \n :OrcidAccount :PinterestAccount :RedditAccount :SnapchatAccount :StravaAccount \n :TiktokAccount :TumblrAccount :TwitterAccount :OtherAccount) .\n\n:AccountIdField a ui:Options; \n ui:dependingOn rdf:type; \n ui:case\n [ ui:for :BlueSkyAccount; ui:use :BlueSkyIdField ],\n [ ui:for :DiggAccount; ui:use :DiggIdField],\n [ ui:for :FacebookAccount; ui:use :FacebookIdField ],\n [ ui:for :GithubAccount; ui:use :GithubIdField ],\n [ ui:for :InstagramAccount; ui:use :InstagramIdField ],\n [ ui:for :LinkedInAccount; ui:use :LinkedInIdField ],\n [ ui:for :MastodonAccount; ui:use :MastodonIdField ],\n [ ui:for :MatrixAccount; ui:use :MatrixIdField ],\n [ ui:for :MediumAccount; ui:use :MediumIdField ],\n [ ui:for :NostrAccount; ui:use :NostrIdField ],\n [ ui:for :OrcidAccount; ui:use :OrcidIdField ],\n [ ui:for :PinterestAccount; ui:use :PinterestIdField ],\n [ ui:for :RedditAccount; ui:use :RedditIdField ],\n [ ui:for :StravaAccount; ui:use :StravaIdField ],\n [ ui:for :SnapchatAccount; ui:use :SnapchatIdField ],\n [ ui:for :TiktokAccount; ui:use :TiktokIdField ],\n [ ui:for :TumblrAccount; ui:use :TumblrIdField ],\n [ ui:for :TwitterAccount; ui:use :TwitterIdField ],\n [ ui:for :OtherAccount; ui:use :OtherIdForm ] .\n\n:BlueSkyAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Bluesky";\n foaf:userProfilePrefix "https://bsky.app/profile/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/bluesky-1.svg>;\n foaf:homepage <https://bsky.app/> .\n\n:DiggAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Digg";\n foaf:userProfilePrefix "https://www.digg.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/digg-icon.svg>;\n foaf:homepage <https://www.digg.com/> .\n\n:FacebookAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Facebook";\n foaf:userProfilePrefix "https://www.facebook.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/facebook-2020-2-1.svg>;\n foaf:homepage <https://www.facebook.com/> .\n\n:GithubAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Github";\n foaf:userProfilePrefix "https://www.github.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/github-icon.svg>;\n foaf:homepage <https://github.com/> .\n\n:InstagramAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Instagram";\n foaf:userProfilePrefix "https://www.instagram.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/instagram-2016-5.svg>;\n foaf:homepage <https://www.instagram.com/> .\n\n:LinkedInAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "LinkedIn";\n foaf:userProfilePrefix "https://www.linkedin.com/in/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/linkedin-icon.svg>;\n foaf:homepage <https://linkedin.com/> .\n\n:MastodonAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Mastodon" ;\n foaf:userProfilePrefix "https://mastodon.social/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/mastodon-2.svg>;\n foaf:homepage <https://joinmastodon.org/> .\n\n:MatrixAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Matrix" ;\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/matrix-logo-black.svg> ;\n foaf:userProfilePrefix "https://matrix.to/#/" ;\n foaf:homepage <https://matrix.org/> .\n\n:MediumAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Medium";\n foaf:userProfilePrefix "https://medium.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/medium-logo-wordmark-black.svg>;\n foaf:homepage <https://medium.com/> .\n\n:NostrAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Nostr";\n foaf:userProfilePrefix "https://primal.net/p/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/nostr-icon-purple-on-white.svg>;\n foaf:homepage <https://nostr.net/> .\n\n:OrcidAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "ORCiD";\n foaf:userProfilePrefix "https://orcid.org/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/ORCID-1.svg>;\n foaf:homepage <https://orcid.org/> .\n\n:PinterestAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Pinterest";\n foaf:userProfilePrefix "https://pin.it/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/pinterest-2-1.svg>;\n foaf:homepage <https://pinterest.com/> .\n\n:RedditAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Reddit";\n foaf:userProfilePrefix "https://www.reddit.com/user/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/reddit-4.svg>;\n foaf:homepage <https://reddit.com/> .\n\n:SnapchatAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Snapchat";\n foaf:userProfilePrefix "https://www.snapchat.com/add/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/snapchat-1.svg>;\n foaf:homepage <https://www.snapchat.com/> .\n\n:StravaAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Strava";\n foaf:userProfilePrefix "https://www.strava.com/athletes/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/strava-2.svg>;\n foaf:homepage <https://strava.com/> .\n\n:TiktokAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "TikTok";\n foaf:userProfilePrefix "https://www.tiktok.com/@";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tiktok-icon-2.svg>;\n foaf:homepage <https://www.tiktok.com/> .\n\n:TumblrAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Tumblr";\n foaf:userProfilePrefix "https://www.tumblr.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/tumblr-icon.svg>;\n foaf:homepage <https://www.tumblr.com/> .\n\n:TwitterAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "X";\n foaf:userProfilePrefix "https://x.com/";\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/social/x-2.svg>;\n foaf:homepage <https://x.com/> .\n\n:OtherAccount rdfs:subClassOf foaf:Account ;\n rdfs:label "Other" ;\n foaf:icon <https://solidos.github.io/solid-ui/src/icons/noun_1689339.svg> .\n\n:BlueSkyIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*".\n\n:DiggIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-](.[a-z0-9A-Z_-])*".\n\n:FacebookIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:GithubIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:InstagramIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:LinkedInIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MastodonIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MatrixIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:MediumIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:NostrIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*(.[a-z0-9A-Z_-])*".\n\n:OrcidIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:PinterestIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:RedditIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:StravaIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "[a-z0-9A-Z_-]*".\n\n:SnapchatIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TiktokIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TumblrIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n:TwitterIdField\n a ui:SingleLineTextField ;\n ui:label "Username";\n ui:maxLength "200" ;\n ui:property foaf:accountName ; \n ui:pattern "@[a-z0-9A-Z_-]*".\n\n# an unknown online account needs more info\n\n:OtherIdForm a ui:Group; \n ui:weight 0; \n ui:parts ( \n :OtherIdField \n :OtherIconField \n :OtherLabelField ).\n\n:OtherIdField\n a ui:NamedNodeURIField ;\n ui:label "Account link";\n ui:maxLength "200" ;\n ui:property foaf:homepage.\n\n:OtherIconField\n a ui:NamedNodeURIField ;\n ui:label "Icon link";\n ui:maxLength "200" ;\n ui:property foaf:icon.\n\n:OtherLabelField\n a ui:SingleLineTextField ;\n ui:label "Name";\n ui:maxLength "200" ;\n ui:property rdfs:label.\n\n# ends\n',"socialMedia.ttl");let l=t.each(e,r.ns.foaf("account")).flatMap(e=>function(e,t){const n=new Set;function i(t){const a=`${t.termType||typeof t}:${t.value||String(t)}`;if(n.has(a))return[];n.add(a);const o=t.elements;if(Array.isArray(o))return o.flatMap(e=>i(e));if(!e.any(t,r.ns.rdf("first")))return[t];const s=[];let c=t;for(;c;){const t=e.any(c,r.ns.rdf("first"));t&&s.push(...i(t));const n=e.any(c,r.ns.rdf("rest"));if(!n||"NamedNode"===n.termType&&n.value===r.ns.rdf("nil").value)break;c=n}return s}return i(t)}(t,e));const u=new Set,p=[];for(const e of l)if("NamedNode"===e.termType){const n=t.any(e,r.ns.foaf("accountName")),i=n?n.value:"";u.has(i)||(u.add(i),p.push(c(e)))}return p.length?{accounts:p}:{accounts:[]}};var r=n(500),i=n(7824);const a=r.icons.iconBase+"noun_10636_grey.svg"},135(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StuffCard=void 0,t.renderThing=o,t.renderThingAsDOM=a,t.renderThings=s;var r=n(6752),i=n(500);n(5755);function a(e,t){return i.widgets.personTR(t,null,e.instance,{})}function o(e,t){return a(e,t)}function s(e,t){return 0===e.length?r.html``:r.html`${o(e[0],t)}${e.length>1?s(e.slice(1),t):r.html``}`}t.StuffCard=(e,t,n,i)=>{const{stuff:a}=i,o=t.dom||document;return r.html`
|
|
306
306
|
<section
|
|
307
307
|
class="stuffCard"
|
|
308
308
|
aria-labelledby="stuff-card-title"
|
|
@@ -367,7 +367,7 @@ var r=n(8287),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t
|
|
|
367
367
|
*
|
|
368
368
|
* This source code is licensed under the MIT license found in the
|
|
369
369
|
* LICENSE file in the root directory of this source tree.
|
|
370
|
-
*/function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else{if(!(l<i&&0>a(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],p=1,d=null,f=3,h=!1,m=!1,g=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function k(e){if(g=!1,x(e),!m)if(null!==r(l))m=!0,E||(E=!0,_());else{var t=r(u);null!==t&&F(k,t.startTime-e)}}var _,E=!1,C=-1,S=5,A=-1;function T(){return!!v||!(t.unstable_now()-A<S)}function P(){if(v=!1,E){var e=t.unstable_now();A=e;var n=!0;try{e:{m=!1,g&&(g=!1,y(C),C=-1),h=!0;var a=f;try{t:{for(x(e),d=r(l);null!==d&&!(d.expirationTime>e&&T());){var o=d.callback;if("function"==typeof o){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){d.callback=s,x(e),n=!0;break t}d===r(l)&&i(l),x(e)}else i(l);d=r(l)}if(null!==d)n=!0;else{var c=r(u);null!==c&&F(k,c.startTime-e),n=!1}}break e}finally{d=null,f=a,h=!1}n=void 0}}finally{n?_():E=!1}}}if("function"==typeof w)_=function(){w(P)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=P,_=function(){I.postMessage(null)}}else _=function(){b(P,0)};function F(e,n){C=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e||(S=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:p++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(u,e),null===r(l)&&e===r(u)&&(g?(y(C),C=-1):g=!0,F(k,a-o))):(e.sortIndex=s,n(l,e),m||h||(m=!0,E||(E=!0,_()))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982(e,t,n){"use strict";e.exports=n(4477)},5386(e){const t={acl:"http://www.w3.org/ns/auth/acl#",arg:"http://www.w3.org/ns/pim/arg#",as:"https://www.w3.org/ns/activitystreams#",bookmark:"http://www.w3.org/2002/01/bookmark#",cal:"http://www.w3.org/2002/12/cal/ical#",cco:"http://www.ontologyrepository.com/CommonCoreOntologies/",cert:"http://www.w3.org/ns/auth/cert#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",doap:"http://usefulinc.com/ns/doap#",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",gpx:"http://www.w3.org/ns/pim/gpx#",gr:"http://purl.org/goodrelations/v1#",http:"http://www.w3.org/2007/ont/http#",httph:"http://www.w3.org/2007/ont/httph#",icalTZ:"http://www.w3.org/2002/12/cal/icaltzd#",ldp:"http://www.w3.org/ns/ldp#",link:"http://www.w3.org/2007/ont/link#",log:"http://www.w3.org/2000/10/swap/log#",meeting:"http://www.w3.org/ns/pim/meeting#",mo:"http://purl.org/ontology/mo/",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pad:"http://www.w3.org/ns/pim/pad#",patch:"http://www.w3.org/ns/pim/patch#",prov:"http://www.w3.org/ns/prov#",pto:"http://www.productontology.org/id/",qu:"http://www.w3.org/2000/10/swap/pim/qif#",trip:"http://www.w3.org/ns/pim/trip#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rss:"http://purl.org/rss/1.0/",sched:"http://www.w3.org/ns/pim/schedule#",schema:"http://schema.org/",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",solid:"http://www.w3.org/ns/solid/terms#",space:"http://www.w3.org/ns/pim/space#",stat:"http://www.w3.org/ns/posix/stat#",tab:"http://www.w3.org/2007/ont/link#",tabont:"http://www.w3.org/2007/ont/link#",ui:"http://www.w3.org/ns/ui#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",wf:"http://www.w3.org/2005/01/wf/flow#",xsd:"http://www.w3.org/2001/XMLSchema#"};e.exports=function(e={namedNode:e=>e}){const n={};for(const r in t){const i=t[r];n[r]=function(t=""){return e.namedNode(i+t)}}return n}},8236(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RDFXMLPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.RDFXMLPane={icon:r.icons.originalIconBase+"22-text-xml4.png",name:"RDFXML",audience:[o.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const r=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===r?null:"As RDF/XML ("+r+")"},render:function(e,t){const n=t.dom,r=t.session.store,a=n.createElement("div");a.setAttribute("class","RDFXMLPane");const o=r.statementsMatching(void 0,void 0,void 0,e),s=i.Serializer(r);s.suggestNamespaces(r.namespaces),s.setBase(e.uri);const c=s.statementsToXML(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(c)),a.appendChild(l),a}}},6686(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_534313.svg",name:"audio",label:function(e,t){const n=t.session.store.findTypeURIs(e),r=i.Util.mediaTypeClass("audio/*").uri.split("*")[0];for(const e in n)if(e.startsWith(r))return"Play audio";return null},render:function(e,t){const n=t.session.store,r=t.dom,i=!1,a=!0,s=!0,c=!1,l=function(e){const t=e.lastIndexOf(".");if(t<0)return e;return t<e.lastIndexOf("/")?e:e.slice(0,t)},u=function(e){const t=e.uri.split("/").slice(-3),n=function(e){try{return decodeURIComponent(e)}catch(t){return e}};v.textContent=n(t[0]),b.textContent=n(t[1]),y.textContent=n(l(t[2]))},p=function(e,t){return new Promise(function(r){if(t=t||0,!a)return r(null);const i=n.any(void 0,o.ldp("contains"),e)||e.dir();if(!i)return r(null);n.fetcher.load(i).then(function(a){const l=n.each(i,o.ldp("contains"));let u;l.sort();for(let a=0;a<l.length;a++)if(e.uri===l[a].uri){if(u=(a+1)%l.length,0!==u)return r(l[u]);if(!s)return r(c?l[u]:null);if(1===t||!s)return r(null);p(i,t+1).then(function(e){e&&n.fetcher.load(e).then(function(t){const i=n.each(e,o.ldp("contains"));return 0===i.length?r(null):(i.sort(),r(i[0]))})})}})})},d=function(e){const t=n.sym(e.target.getAttribute("src"));if(!a)return;const r=function(t){p(t).then(function(t){t&&(!function(e){const t=n.any(void 0,o.ldp("contains"),e);if(!t)return!1;const r=n.each(t,o.ldp("contains"));if(r.length<2)return!1;const i=e.uri;for(let e=0;e<r.length;e++){const t=r[e].uri;if(i.length>t.length&&i.startsWith(l(t)))return!0;if(i.endsWith(".m4a")&&t.endsWith(".mp3")&&l(i)===l(t))return!0}return!1}(t)?(u(t),w.appendChild(f(t,!0)),w.removeChild(e.target)):r(t))})};r(t)},f=function(e,t){const i=r.createElement("audio");return i.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);i.setAttribute("src",t)}),t&&i.setAttribute("autoplay","autoplay"),i.addEventListener("ended",d,!1),i},h=r.createElement("div"),m=h.appendChild(r.createElement("table")),g="padding: 0.3em; color:white; background-color: black;",v=m.appendChild(r.createElement("tr"));v.style.cssText=g;const b=m.appendChild(r.createElement("tr"));b.style.cssText=g;const y=m.appendChild(r.createElement("tr"));y.style.cssText=g;const w=m.appendChild(r.createElement("tr"));return u(e),w.appendChild(f(e,i)),!n.holds(void 0,o.ldp("contains"),e)&&e.dir()&&n.fetcher.load(e.dir()),h}}},5382(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classInstancePane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.classInstancePane={icon:r.icons.originalIconBase+"tango/22-folder-open.png",name:"classInstance",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store.each(void 0,o.rdf("type"),e).length;return n>0?"List ("+n+")":null},render:function(e,t){const n=t.dom,a=t.getOutliner(n),s=t.session.store,c=function(e,t){const r=n.createElement("pre");r.setAttribute("style","background-color: "+t||0),l.appendChild(r),r.appendChild(n.createTextNode(e))},l=n.createElement("div");l.setAttribute("class","instancePane"),l.setAttribute("style"," border-top: solid 1px #777; border-bottom: solid 1px #777; margin-top: 0.5em; margin-bottom: 0.5em ");const u=s.statementsMatching(void 0,o.rdf("type"),e);if(u.length>0){const t={},p=[];u.forEach(e=>{t[e.subject.toNT()]=e});for(const n in s.findMembersNT(e))t[n]||p.push(i.st(s.fromNT(n),o.rdf("type"),e));if(p.length&&c("There are "+u.length+" explicit and "+p.length+" implicit members of "+r.utils.label(e)),e.sameTerm(o.rdf("Property")));else if(e.sameTerm(o.rdfs("Class"))){const e=s.statementsMatching(void 0,o.rdf("type"),void 0),t={};e.forEach(function(e){t[e.object]=e});const n=[];for(const e in t)n.push(i.st(i.sym(e),o.rdf("type"),o.rdfs("Class")));c("Total of "+e.length+" type statements and "+n.length+" unique types.")}if(u.length>10){const e=n.createElement("TR");e.appendChild(n.createTextNode(""+u.length)),l.appendChild(e)}a.appendPropertyTRs(l,u,!0,function(e){return!0}),p.length&&(c("Implicit:"),a.appendPropertyTRs(l,p,!0,function(e){return!0}))}return l}}},6106(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.basicPreferencesPane=void 0;var r=n(8230),i=n(500);const a=t.basicPreferencesPane={icon:i.icons.iconBase+"noun_Sliders_341315_000000.svg",name:"basicPreferences",label:e=>null,render:(e,t)=>{const n=t.dom,a=t.session.store;function s(e,t){e||c.appendChild(i.widgets.errorMessageBlock(n,t,"#fee"))}const c=n.createElement("div"),l=function(e,t){const n=o(e,t,"User types"),r=n.appendChild(t.createElement("p"));r.innerText="Here you can self-assign user types to help the data browser know which views you would like to access.";const i=n.appendChild(t.createElement("a"));i.href="https://github.com/solidos/userguide/#role",i.innerText="Read more";const a=n.appendChild(t.createElement("div"));return a}(c,n);function u(e,t){e=e.doc(),a.holds(void 0,void 0,void 0,e)||(0,r.parse)(t,a,e.uri,"text/turtle",null)}const p=a.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597#this");u(p,'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix : <#>.\n\n:this <http://purl.org/dc/elements/1.1/title> "Basic preferences" ;\n a ui:Form ;\n ui:part :categorizeUser, :privateComment, :personalInformationHeading;\n ui:parts ( :personalInformationHeading :privateComment :categorizeUser ).\n\n:personalInformationHeading a ui:Heading;\n ui:contents "Personal information".\n\n:privateComment a ui:Comment;\n ui:contents "This information is private.".\n\n:categorizeUser a ui:Classifier;\n ui:label "Level of user"; ui:property rdf:type ; ui:category solid:User.\n');return u(a.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597-ONT"),'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix schema: <http:/schema.org/>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix : <#>.\n\nsolid:User a rdfs:Class;\n rdfs:label "user"@en, "utilisateur"@fr;\n rdfs:comment """Any person who might use a Solid-based system""";\n rdfs:subClassOf foaf:Person, schema:Person, vcard:Individual.\n\n# Since these options are opt-in, it is a bit strange to have new users opt in\n# That they are new users - also we do not use this class for anything specific\n# yet\n# solid:NewUser a rdfs:Class;\n# rdfs:label "new user"@en;\n# rdfs:comment """A person who might use a Solid-based system who has a low\n# level of familiarity with technical details.""";\n# rdfs:subClassOf solid:User.\n\nsolid:PowerUser a rdfs:Class;\n rdfs:label "power user"@en;\n rdfs:comment """A person who might use a Solid-based system\n who is prepared to be given a more complex interface in order\n to be provided with more pwerful features.""";\n rdfs:subClassOf solid:User.\n\n solid:Developer a rdfs:Class;\n rdfs:label "Developer";\n rdfs:comment """Any person who might use a Solid-based system,\n who has software development skills.""";\n rdfs:subClassOf solid:User.\n'),async function(){const e=await i.login.ensureLoadedPreferences({dom:n,div:c});if(!e.preferencesFile)return;i.widgets.appendForm(n,l,{},e.me,p,e.preferencesFile,s).style.borderStyle="none";const r=t.session.paneRegistry.byName("trustedApplications");r&&c.appendChild(r.render(null,t)),function(e,t,n,r){const a=o(e,r,"Delete account"),s=t.each(n,i.ns.space("storage"),null,n.doc()),c=s.map(e=>e.value),l=a.appendChild(r.createElement("ul"));c.forEach(async e=>{const t=await async function(e,t){const n=t.createElement("a");n.textContent=`Delete your account at ${e}`;const r=await async function(e){const t=new URL(e),n=new URL(e);n.pathname=t.pathname="/account/delete";const r=n.hostname.split(".");n.hostname=r.slice(1).join(".");if((await fetch(n.href,{method:"HEAD"})).ok)return n.href;if((await fetch(t.href,{method:"HEAD"})).ok)return t.href;return null}(e);if("string"!=typeof r)return null;return n.href=r,n}(e,r);if(t){l.appendChild(r.createElement("li")).appendChild(t)}})}(c,a,e.me,n)}(),c}};t.default=a;function o(e,t,n){const r=e.appendChild(t.createElement("div"));r.style.border="0.3em solid #418d99",r.style.borderRadius="0.5em",r.style.padding="0.7em",r.style.marginTop="0.7em";return r.appendChild(t.createElement("h3")).innerText=n,r}},5682(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.dashboardPane=void 0;var r=n(500),i=n(9332),a=n(730);const o=t.dashboardPane={icon:r.icons.iconBase+"noun_547570.svg",name:"dashboard",label:e=>"NamedNode"===e.termType&&e.uri===e.site().uri?"Dashboard":null,render:(e,t)=>{const n=t.dom.createElement("div"),r=()=>{n.innerHTML="",function(e,t,n,r){const o=new URL(window.location.href).searchParams.get("uri");if(t&&(o||t.site().uri===r.site().uri))return function(e,t){const n=t.getOutliner(t.dom);n.getDashboard().then(t=>e.appendChild(t))}(e,n);(function(e,t){const n=document.createElement("div");e.appendChild(n);const r=n.attachShadow({mode:"open"}),o=document.createElement("link");o.rel="stylesheet",o.href="/common/css/bootstrap.min.css",r.appendChild(o),(0,a.generateHomepage)(t,i.store,i.store.fetcher).then(e=>r.appendChild(e))})(e,r)}(n,i.authn.currentUser()||null,t,e)};return i.authSession.events.on("login",()=>{r()}),i.authSession.events.on("sessionRestore",()=>{r()}),r(),n}};t.default=o},730(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateHomepage=async function(e,t,n){const a=await async function(e,t,n){const a=e.site().uri,o=(0,r.sym)(`${a}profile/card#me`);try{return await n.load(o),o}catch(e){}try{await n.load(e)}catch(t){return e}const s=t.any(e,i.ns.foaf("primaryTopic"),null,e.doc());if(s&&"NamedNode"===s.termType)try{return await n.load(s),s}catch(t){return e}return e}(e,t,n),o=function(e,t){return e.anyValue(t,i.ns.vcard("fn"),null,t.doc())||e.anyValue(t,i.ns.foaf("name"),null,t.doc())||new URL(t.uri).host.split(".")[0]}(t,a),s=document.createElement("div");return s.classList.add("container"),s.appendChild(function(e,t){const n=document.createElement("a");n.href=e,n.innerText=t;const r=document.createElement("span");r.innerText="'s Pod";const i=document.createElement("h1");return i.appendChild(n),i.appendChild(r),i}(a.uri,o)),s.appendChild(function(e){const t=document.createElement("section"),n=document.createElement("h2");n.innerText="Data",t.appendChild(n);const r=document.createElement("div");r.classList.add("list-group"),t.appendChild(r);const i=document.createElement("a");return i.classList.add("list-group-item"),i.href=window.document.location.href+"public/",i.innerText=`View ${e}'s files`,r.appendChild(i),t}(o)),s};var r=n(8230),i=n(500)},1424(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataContentPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.dataContentPane={icon:r.icons.originalIconBase+"rdf_flyer.24.gif",name:"dataContents",audience:[o.solid("Developer")],label:function(e,t){if("http://www.w3.org/2007/ont/link#ProtocolEvent"in t.session.store.findTypeURIs(e))return null;const n=t.session.store.statementsMatching(void 0,void 0,void 0,e).length;return 0===n?null:"Data ("+n+")"},statementsAsTables:function(e,t,n){const a=t.dom,o=a.createElement("table"),s=i.Serializer(t.session.store),c=s.rootSubjects(e);let l=c.roots;const u=c.subjects,p=c.loopBreakers;for(const e in p);const d={},f={};function h(e){const t=a.createElement("table");let n=null;const i=u[s.toStr(e)];if(!i)return t.appendChild(a.createTextNode("...")),t;i.sort();let o,c=0;for(let e=0;e<i.length;e++){const s=i[e],l=a.createElement("tr");if(s.predicate.uri!==n){n&&c>1&&o.setAttribute("rowspan",""+c),o=a.createElement("td"),o.setAttribute("class","pred");const e=a.createElement("a");e.setAttribute("href",s.predicate.uri),e.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),e.appendChild(a.createTextNode(r.utils.predicateLabelForXML(s.predicate))),o.appendChild(e),l.appendChild(o),n=s.predicate.uri,c=0}c++;const u=a.createElement("td");u.appendChild(m(s.object)),l.appendChild(u),t.appendChild(l)}return n&&c>1&&o.setAttribute("rowspan",""+c),t}function m(e){let n,i;switch(e.termType){case"NamedNode":return i=a.createElement("a"),i.setAttribute("href",e.uri),i.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),i.appendChild(a.createTextNode(r.utils.label(e))),i;case"Literal":return e.datatype&&e.datatype.uri?"http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral"===e.datatype.uri?(n=a.createElement("div"),n.setAttribute("class","embeddedXHTML"),n.innerHTML=e.value,n):a.createTextNode(e.value):(n=a.createElement("div"),n.setAttribute("style","white-space: pre-wrap;"),n.textContent=e.value,n);case"BlankNode":{if(e.toNT()in d){f[e.toNT()]=!0;const t=a.createElement("a");return t.setAttribute("href","#"+e.toNT().slice(2)),t.setAttribute("class","bnodeRef"),t.textContent="*"+e.toNT().slice(3),t}d[e.toNT()]=!0;const t=h(e);return d[e.toNT()]=t,r.utils.ancestor(t,"TABLE")&&"white"===r.utils.ancestor(t,"TABLE").style.backgroundColor?t.style.backgroundColor="#eee":t.style.backgroundColor="white",t}case"Collection":n=a.createElement("table"),n.setAttribute("class","collectionAsTables");for(let t=0;t<e.elements.length;t++){const r=a.createElement("tr");n.appendChild(r),r.appendChild(m(e.elements[t]))}return n;case"Graph":return n=t.session.paneRegistry.byName("dataContents").statementsAsTables(e.statements,t),n.setAttribute("class","nestedFormula"),n;case"Variable":return n=a.createTextNode("?"+e.uri),n}throw new Error("Unhandled node type: "+e.termType)}n&&(l=n.concat(l.filter(function(e){for(let t=0;t<n.length;t++)if(e.sameTerm(n[t]))return!1;return!0})));for(let e=0;e<l.length;e++){const t=a.createElement("tr");t.setAttribute("style",`background-color: ${e%2==0?"#f0f0f0":"white"};`),o.appendChild(t);const n=a.createElement("td");t.appendChild(n);const i=a.createElement("td");t.appendChild(i);const s=l[e];"BlankNode"===s.termType?n.appendChild(a.createTextNode(r.utils.label(s))):n.appendChild(m(s)),i.appendChild(h(s))}for(const e in f){const t=d[e],n=a.createElement("a");n.setAttribute("id",e.slice(2)),n.setAttribute("class","bnodeDef"),n.textContent=e.slice(3)+")",t.insertBefore(n,t.firstChild)}return o},render:function(e,t){const n=t.dom;t.getOutliner(n);const i=t.session.store,a=n.createElement("div");a.setAttribute("class","dataContentPane");const o=i.statementsMatching(void 0,void 0,void 0,e);return function(){const n=[];i.holds(e,void 0,void 0,e)&&n.push(e);const s=i.any(e,r.ns.foaf("primaryTopic"),void 0,e);s&&n.push(s),a.appendChild(t.session.paneRegistry.byName("dataContents").statementsAsTables(o,t,n))}(),a}}},4064(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.defaultPane={icon:r.icons.originalIconBase+"about.png",name:"default",audience:[o.solid("Developer")],label:function(e){return"about "},render:function(e,t){const n=t.dom,a=function(e,n){return void 0===t.session.paneRegistry.byName("internal").predicates[e.uri]&&(!n||"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"!==e.uri)},o=t.getOutliner(n),s=t.session.store;r.log.info("@defaultPane.render, dom is now "+n.location),e=s.canon(e);const c=n.createElement("div");c.setAttribute("class","defaultPane");let l=s.statementsMatching(e);if(o.appendPropertyTRs(c,l,!1,a),l=s.statementsMatching(void 0,void 0,e),o.appendPropertyTRs(c,l,!0,a),"Literal"===e.termType&&"http://"===e.value.slice(0,7)&&o.appendPropertyTRs(c,[i.st(s.sym(e.value),r.ns.link("uri"),e)],!0,a),"NamedNode"===e.termType&&s.updater.editable(i.Util.uri.docpart(e.uri),s)||"BlankNode"===e.termType&&s.anyStatementMatching(e)&&s.anyStatementMatching(e).why&&s.anyStatementMatching(e).why.uri&&s.updater.editable(s.anyStatementMatching(e).why.uri)){const e=n.createElement("tr"),t=n.createElement("td");t.setAttribute("colspan","2"),t.setAttribute("notSelectable","true");const i=n.createElement("img");i.src=r.icons.originalIconBase+"tango/22-list-add-new.png",i.addEventListener("click",function(e){o.UserInput.addNewPredicateObject(e),e.stopPropagation(),e.preventDefault()}),i.className="bottom-border-active",c.appendChild(e).appendChild(t).appendChild(i)}return c}}},2970(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=c(n(500)),a=c(n(8230)),o=c(n(6049)),s=(r=n(3505))&&r.__esModule?r:{default:r};function c(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.default={icon:i.icons.iconBase+"dokieli-logo.png",name:"Dokieli",mintClass:i.ns.solid("DokieliDocument"),label:function(e,t){return null},mintNew:function(e,t){const n=e.session.store;let r=t.newInstance;if(!r){let e=t.newBase;e.endsWith("/")&&(e=e.slice(0,-1),t.newBase=e),r=n.sym(e)}const i=o.lookup(r.uri);i&&i.includes("html")||(r=a.sym(r.uri+".html")),t.newInstance=r;let c=s.default,l=r.uri.split("/").slice(-1)[0];l=decodeURIComponent(l.split(".")[0]);const u=l.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");return c=c.replace("<title>","<title>"+u),c=c.replace("</article>","<h1>"+u+"</h1></article>"),new Promise(function(e){n.fetcher.webOperation("PUT",r.uri,{data:c,contentType:"text/html"}).then(function(){e(t)}).catch(function(e){})})}}},3505(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default='<!DOCTYPE html>\n<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">\n <head>\n <meta charset="utf-8" />\n <title></title>\n <meta content="width=device-width, initial-scale=1" name="viewport" />\n <link href="https://dokie.li/media/css/basic.css" media="all" rel="stylesheet" title="Basic" />\n <link href="https://dokie.li/media/css/dokieli.css" media="all" rel="stylesheet" />\n <script src="https://dokie.li/scripts/dokieli.js"><\/script>\n </head>\n\n <body about="" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# rdfa: http://www.w3.org/ns/rdfa# dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ foaf: http://xmlns.com/foaf/0.1/ pimspace: http://www.w3.org/ns/pim/space# skos: http://www.w3.org/2004/02/skos/core# prov: http://www.w3.org/ns/prov# mem: http://mementoweb.org/ns# qb: http://purl.org/linked-data/cube# schema: http://schema.org/ void: http://rdfs.org/ns/void# rsa: http://www.w3.org/ns/auth/rsa# cert: http://www.w3.org/ns/auth/cert# wgs: http://www.w3.org/2003/01/geo/wgs84_pos# bibo: http://purl.org/ontology/bibo/ sioc: http://rdfs.org/sioc/ns# doap: http://usefulinc.com/ns/doap# dbr: http://dbpedia.org/resource/ dbp: http://dbpedia.org/property/ sio: http://semanticscience.org/resource/ opmw: http://www.opmw.org/ontology/ deo: http://purl.org/spar/deo/ doco: http://purl.org/spar/doco/ cito: http://purl.org/spar/cito/ fabio: http://purl.org/spar/fabio/ oa: http://www.w3.org/ns/oa# as: https://www.w3.org/ns/activitystreams# ldp: http://www.w3.org/ns/ldp# solid: http://www.w3.org/ns/solid/terms# acl: http://www.w3.org/ns/auth/acl# earl: http://www.w3.org/ns/earl# spec: http://www.w3.org/ns/spec# odrl: http://www.w3.org/ns/odrl/2/ dio: https://w3id.org/dio# rel: https://www.w3.org/ns/iana/link-relations/relation#" typeof="schema:CreativeWork prov:Entity">\n <main>\n <article about="" typeof="schema:Article">\n\n </article>\n </main>\n </body>\n</html>\n'},5238(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formPane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=r.ns;t.formPane={icon:r.icons.iconBase+"noun_122196.svg",name:"form",audience:[s.solid("PowerUser")],label:function(e){const t=r.widgets.formsFor(e).length;return r.log.debug("Form pane: forms for "+e+": "+t),t?t+" forms":null},render:function(e,t){const n=t.session.store,o=t.dom,c=function(e,t){const n=o.createElement("p");return n.setAttribute("style",t||"color: grey; background-color: white"),d.appendChild(n).textContent=e,n},l=function(e,t){c(e,"style")},u=function(e,t){e||l("Sorry, failed to save your change:\n"+t)},p=i.authn.currentUser(),d=o.createElement("div");if(d.setAttribute("class","formPane"),p){0===n.each(p,s.ui("workspace")).length&&c("You don't seem to have any workspaces defined. A workspace is a place on the web (http://..) or in the file system (file:///) to store application data.\n")}else c("You are not logged in. If you log in and have workspaces then you would be able to select workspace in which to put this new information");const f=function(e,t){n.fetcher.nowOrWhenFetched(e.uri,t,function(n,i){if(!n)return l("Cannot load store "+e.uri+": "+i);const s=r.widgets.formsFor(t);for(let n=0;n<s.length;n++){const i=s[n],c=o.createElement("h4");if(d.appendChild(c),i.uri){const e=a.Util.uri.document(i.uri);if(e.uri!==i.uri){d.appendChild(r.widgets.editFormButton(o,d,i,e,u)).setAttribute("style","float: right;")}}const l=o.createElement("a");l.setAttribute("href",i.uri),c.appendChild(l),l.textContent=r.utils.label(i,!0),r.widgets.appendForm(o,d,{},t,i,e,u)}})};let h=null;const m=a.Util.uri.docpart(e.uri);if(e.uri!==m&&n.updater.editable(m,n)&&(h=e.doc()),h=h||n.any(n.sym(m),s.link("annotationStore")),!h){const t={},n=[];h.statementsMatching(e).forEach(function(e){t[e.why.uri]=1}),h.statementsMatching(void 0,void 0,e).forEach(function(e){t[e.why.uri]=2});for(const e in t)n.push(t[e],e);n.sort();for(let e=0;e<n.length;e++){const t=n[e][1];if(t&&h.updater.editable(t)){h=h.sym(t);break}}}const g="2014";if(h)f(h,e);else{l("No suitable store is known, to edit <"+e.uri+">.");const t=r.login.selectWorkspace(o,function(t){c("Workspace selected OK: "+t);const n=h.each(void 0,s.space("workspace"),t);for(let r=0;r<n.length;r++){const i=n[r],a=h.any(t,s.space("store")),o=h.any(t,s.cal("dtstart")).value(),c=h.any(t,s.cal("dtend")).value();if(a&&o&&c&&o<=g&&c>g){f(a,e);break}l("Note no suitable annotation store in activity: "+i)}});d.appendChild(t)}return d}}},8426(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(9332),i=n(500);const a={icon:i.icons.iconBase+"noun_547570.svg",global:!0,name:"home",label:function(){return"home"},render:function(e,t){const n=t.dom,a=n.createElement("div"),o=r.authn.currentUser();return async function(){const e={div:a,dom:n,statusArea:a,me:o};a.appendChild(n.createElement("h4")).textContent="Create new thing somewhere";const r={div:a.appendChild(n.createElement("div")),dom:n,statusArea:a,me:o},s=await i.login.filterAvailablePanes(t.session.paneRegistry.list);i.create.newThingUI(r,t,s),i.login.registrationList(e,{}).then(function(){})}(),a}};t.default=a},6380(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(500),a=n(8230),o=n(23),s=(r=n(5454))&&r.__esModule?r:{default:r};const c=e=>{if(!e)return!1;const t=e.split("?")[0].split("#")[0];return/\.(md|markdown|mdown|mkd|mkdn)$/i.test(t)},l=new Map,u={icon:function(e,t){if(e&&c(e.uri))return i.icons.iconBase+"markdown.svg";if(e){const n=t.session.store,r=l.get(e.uri);if("dokieli"===r)return i.icons.iconBase+"dokieli-logo.png";if("html"===r)return i.icons.originalIconBase+"tango/22-text-x-generic.png";const a=n.fetcher.getHeader(e.doc(),"content");if(a&&a.length>0){const t=a[0],n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");return l.set(e.uri,n?"dokieli":"html"),n?i.icons.iconBase+"dokieli-logo.png":i.icons.originalIconBase+"tango/22-text-x-generic.png"}const o=n.fetcher.getHeader(e.doc(),"content-type");if("text/html"===(o?o[0].split(";",1)[0].trim():null))return n.fetcher._fetch(e.uri).then(e=>e.text()).then(t=>{const n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");return l.set(e.uri,n?"dokieli":"html"),n?i.icons.iconBase+"dokieli-logo.png":i.icons.originalIconBase+"tango/22-text-x-generic.png"}).catch(()=>(l.set(e.uri,"html"),i.icons.originalIconBase+"tango/22-text-x-generic.png"))}return i.icons.originalIconBase+"tango/22-text-x-generic.png"},name:"humanReadable",label:function(e,t){const n=t.session.store,r=["text/plain","text/html","text/markdown","application/xhtml+xml","image/png","image/jpeg","application/pdf","video/mp4"];if(!e.uri)return null;if(n.findTypeURIs(e)[i.ns.link("WebPage").uri])return"view";if(c(e.uri))return"View";if(function(e,t,n){const r=e.fetcher.getHeader(t,"content-type");if(r)for(let e=0;e<r.length;e++)for(let t=0;t<n.length;t++)if(r[e].indexOf(n[t])>=0)return!0;return!1}(n,e,r)||function(e,t,n){const r=e.findTypeURIs(t);for(let e=0;e<n.length;e++)if(a.Util.mediaTypeClass(n[e]).uri in r)return!0;return!1}(n,e,r)){const t=n.fetcher.getHeader(e.doc(),"content-type");return"text/html"!==(t?t[0].split(";",1)[0].trim():null)||l.has(e.uri)||n.fetcher._fetch(e.uri).then(e=>e.text()).then(t=>{const n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");l.set(e.uri,n?"dokieli":"html")}).catch(()=>{l.set(e.uri,"html")}),"View"}return null},render:function(e,t){const n=t.dom,r=n.createElement("div"),i=t.session.store,a=i.fetcher.getHeader(e.doc(),"content-type"),u=a?a[0].split(";",1)[0].trim():null,p="text/markdown"===u||c(e.uri);r.setAttribute("class","docView");const d=(t,n)=>{t.setAttribute("src",e.uri),t.setAttribute("class","doc"),t.setAttribute("style",`border: 1px solid; padding: 1em; height: ${n}em; width: 800px; resize: both; overflow: auto;`)};if(p){const t=n.createElement("DIV");!function(t){i.fetcher.webOperation("GET",e.uri).then(e=>{const n=e.responseText,r=Math.min(30,n.split(/\n/).length+5),i=o.marked.parse(n),a=s.default.sanitize(i);t.innerHTML=a,t.setAttribute("class","doc"),t.setAttribute("style",`border: 1px solid; padding: 1em; height: ${r}em; width: 800px; resize: both; overflow: auto;`)}).catch(e=>{t.innerHTML="<p>Error loading content</p>"})}(t);const a=n.createElement("TR");a.appendChild(t),r.appendChild(a)}else{const t=n.createElement("IFRAME");"text/html"!==u&&"application/xhtml+xml"!==u||t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),i.fetcher.webOperation("GET",e.uri).then(n=>{const r=n.responseText,i=r.includes('<script src="https://dokie.li/scripts/dokieli.js">')?-10:5,a=Math.min(30,r.split(/\n/).length+i),o=r.includes('<script src="https://dokie.li/scripts/dokieli.js">')||r.includes("dokieli.css");l.set(e.uri,o?"dokieli":"html"),d(t,a)}).catch(e=>{d(t,30)});const a=n.createElement("TR");a.appendChild(t),r.appendChild(a)}return r}};t.default=u},2168(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imagePane=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.imagePane={icon:r.icons.originalIconBase+"tango/22-image-x-generic.png",name:"image",label:function(e,t){const n=t.session.store;if(!n.anyStatementMatching(e,r.ns.rdf("type"),n.sym("http://purl.org/dc/terms/Image")))return null;return function(e,t,n){const r=e.fetcher.getHeader(t,"content-type");if(r)for(let e=0;e<r.length;e++)for(let t=0;t<n.length;t++)if(r[e].indexOf(n[t])>=0)return!0;return!1}(n,e,["application/pdf"])?null:"view"},render:function(e,t){const n=t.dom,r=t.session.store,i=n.createElement("div");i.setAttribute("class","imageView");const a=n.createElement("IMG");r.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("style","max-width: 100%; max-height: 100%;");const o=n.createElement("TR");return o.appendChild(a),i.appendChild(o),i}}},7523(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"OutlineManager",{enumerable:!0,get:function(){return o.default}}),t.UI=void 0,Object.defineProperty(t,"byName",{enumerable:!0,get:function(){return c.byName}}),t.getOutliner=d,Object.defineProperty(t,"initMainPage",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"list",{enumerable:!0,get:function(){return c.list}}),Object.defineProperty(t,"paneForIcon",{enumerable:!0,get:function(){return c.paneForIcon}}),Object.defineProperty(t,"paneForPredicate",{enumerable:!0,get:function(){return c.paneForPredicate}}),Object.defineProperty(t,"register",{enumerable:!0,get:function(){return c.register}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.default}});var r=p(n(4959)),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.UI=i;var a=n(9332),o=p(n(7981)),s=n(2371),c=n(4059),l=n(6813),u=p(n(5218));function p(e){return e&&e.__esModule?e:{default:e}}function d(e){if(!e.outlineManager){const t=(0,l.createContext)(e,{list:c.list,paneForIcon:c.paneForIcon,paneForPredicate:c.paneForPredicate,register:c.register,byName:c.byName},a.store,a.solidLogicSingleton);e.outlineManager=new o.default(t)}return e.outlineManager}"undefined"!=typeof window&&d(window.document),(0,s.registerPanes)(e=>(0,c.register)(e.default||e)),"undefined"!=typeof window&&(window.panes={getOutliner:d})},4930(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(8230);const a={icon:r.icons.originalIconBase+"tango/22-emblem-system.png",name:"internal",label:function(){return"under the hood"},render:function(e,t){const n=t.dom,a=t.session.store,o=a.canon(e),s=a.findTypeURIs(o);function c(e){if(s["http://www.w3.org/2007/ont/link#ProtocolEvent"])return!0;const n=t.session.paneRegistry.byName("internal");return n&&n.predicates&&!(void 0===n.predicates[e.uri])}const l=n.createElement("div");function u(e,t){const n=e.fetcher;if(n)return new Promise(function(i,a){n.load(t).then(function(){const o=e.each(t,r.ns.ldp("contains")).map(t=>e.holds(t,r.ns.rdf("type"),r.ns.ldp("BasicContainer"))?u(e,t):n.webOperation("DELETE",t.uri));Promise.all(o).then(()=>{n.webOperation("DELETE",t.uri).then(()=>{i(void 0)}).catch(e=>{a(new Error("Unable to delete "+t+": "+e))}),i(void 0)},e=>{alert(e),a(e)})})})}l.setAttribute("class","internalPane"),l.setAttribute("style","background-color: #ddddff; padding: 0.5em; border-radius: 1em;");if(e.uri&&!e.uri.includes("#")){const t=l.appendChild(n.createElement("table"));t.style.width="100%",t.style.margin="1em";const i=t.appendChild(n.createElement("tr")),o=i.appendChild(n.createElement("td")),s=e.uri&&e.uri.endsWith("/")||a.holds(e,r.ns.rdf("type"),r.ns.ldp("Container")),c=s?"folder":"file";if(!function(e){const t=e.site().uri;return e.uri===t||e.uri===t+"profile/"||e.uri===t+"profile/card"||e.uri===t+"settings/"||e.uri===t+"settings/prefs.ttl"||e.uri===t+"settings/privateTypeIndex.ttl"||e.uri===t+"settings/publicTypeIndex.ttl"||e.uri===t+"settings/serverSide.ttl"}(e)){const t=r.widgets.deleteButtonWithCheck(n,o,c,function(){if(!confirm(`Are you sure you want to delete ${e}? This cannot be undone.`))return;if(!a.fetcher)throw new Error("Store has no fetcher");(s?u(a,e)||Promise.resolve():a.fetcher.webOperation("DELETE",e.uri)||Promise.resolve()).then(()=>{}).catch(t=>{alert("Unable to delete "+e+": "+t)})});t.style="height: 2em;",t.class="",o.appendChild(t)}const p=i.appendChild(n.createElement("td")),d=r.widgets.button(n,r.icons.iconBase+"noun_479395.svg","refresh");p.appendChild(d),d.addEventListener("click",()=>{if(!a.fetcher)throw new Error("Store has no fetcher");a.fetcher.refresh(e,function(t,n){let r;r=t?"Refreshed OK: "+e:"Error refreshing: "+e+": "+n,alert(r)})})}let p=a.statementsMatching(e),d="";if(!a.fetcher)throw new Error("Store has no fetcher");if(e.uri&&(p.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#uri"),e.uri,a.fetcher.appNode)),e.uri.indexOf("#")>=0?(d=e.uri.split("#")[0],p.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#documentURI"),e.uri.split("#")[0],a.fetcher.appNode)),p.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#document"),(0,i.sym)(e.uri.split("#")[0]),a.fetcher.appNode))):d=e.uri),d){if(!a.updater)throw new Error("Store has no updater");const t=a.updater.editable(d);t&&p.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/ns/rww#editable"),(0,i.literal)(t.toString()),a.fetcher.appNode))}const f=t.getOutliner(n);return f.appendPropertyTRs(l,p,!1,c),p=a.statementsMatching(void 0,void 0,e),f.appendPropertyTRs(l,p,!0,c),l},predicates:{"http://www.w3.org/2007/ont/link#request":1,"http://www.w3.org/2007/ont/link#requestedBy":1,"http://www.w3.org/2007/ont/link#source":1,"http://www.w3.org/2007/ont/link#session":2,"http://www.w3.org/2007/ont/link#uri":1,"http://www.w3.org/2007/ont/link#documentURI":1,"http://www.w3.org/2007/ont/link#document":1,"http://www.w3.org/2007/ont/link#all":1,"http://www.w3.org/2007/ont/link#Document":1,"http://www.w3.org/ns/rww#editable":1,"http://www.w3.org/2000/01/rdf-schema#seeAlso":1,"http://www.w3.org/2002/07/owl#":1},classes:{"http://www.w3.org/2007/ont/link#ProtocolEvent":1}};t.default=a},8399(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFooter=function(e){(0,r.initFooter)(e,{solidProjectUrl:i,solidProjectName:a})};var r=n(500);const i="https://solidproject.org",a="solidproject.org"},3469(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHeader=async function(e,t){(0,i.initHeader)(e,await async function(e){const t={label:l,onclick:()=>{r.authSession.logout()}};let n=[];return n=n.concat(await async function(e){const t=await e.getDashboardItems();return t.map(t=>({label:t.label,onclick:()=>async function(e,t){e.showDashboard({pane:t})}(e,t.tabName||t.paneName)}))}(e)),n.push(t),n}(t),{logo:o,helpIcon:a,helpMenuList:[{label:s,url:u,target:"_blank"},{label:c,url:p,target:"_blank"}]})};var r=n(9332),i=n(500);const a=i.icons.iconBase+"noun_help.svg",o="https://solidproject.org/assets/img/solid-emblem.svg",s="User guide",c="Report a problem",l="Log out",u="https://solidos.github.io/userguide/",p="https://github.com/solidos/solidos/issues"},5218(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t){const n=(0,r.getOutliner)(document);let o=t=t||window.location.href;"string"==typeof t&&(o=e.sym(t));n.GotoSubject(o,!0,void 0,!0,void 0);const s=await(0,i.createHeader)(e,n),c=(0,a.createFooter)(e);return Promise.all([s,c])};var r=n(7523),i=n(3469),a=n(8399)},7334(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.n3Pane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.n3Pane={icon:r.icons.originalIconBase+"w3c/n3_smaller.png",name:"n3",audience:[o.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const r=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===r?null:"Data ("+r+") as N3"},render:function(e,t){const n=t.dom,r=t.session.store,a=n.createElement("div");a.setAttribute("class","n3Pane");const o=r.statementsMatching(void 0,void 0,void 0,e),s=i.Serializer(r);s.suggestNamespaces(r.namespaces),s.setBase(e.uri);const c=s.statementsToN3(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(c)),a.appendChild(l),a}}},6813(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContext=function(e,t,n,i){return{dom:e,getOutliner:r.getOutliner,session:{paneRegistry:t,store:n,logic:i}}};var r=n(7523)},7981(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.dom;this.document=e.dom,this.outlineIcons=c.outlineIcons,this.labeller=this.labeller||{},this.labeller.LanguagePreference="";const p=this,d=this;let f=[];this.selection=f,this.ancestor=a.utils.ancestor,this.sparql=i.UpdateManager,this.kb=o.store;const h=o.store,m=o.store.fetcher;t.outline=this,this.qs=new u.QuerySource,this.UserInput=new l.UserInput(this),this.clipboardAddress="tabulator:clipboard",this.UserInput.clipboardInit(this.clipboardAddress);const g=this.outlineElement;async function v(e={}){const n=t.createElement("div"),i=o.authn.currentUser();if(!i)throw alert("Must be logged in for this"),new Error("Not logged in");const s=await b();return n.appendChild(a.tabs.tabWidget({dom:t,subject:i,items:s,renderMain:function(e,n){const i=r.byName(n.paneName);e.innerHTML="";const a=e.appendChild(t.createElement("table")),s=o.authn.currentUser();d.GotoSubject(n.subject||s,!0,i,!1,void 0,a)},renderTab:function(e,t){e.dataset.globalPaneName=t.tabName||t.paneName,e.textContent=t.label},ordered:!0,orientation:0,backgroundColor:"#eeeeee",selectedTab:e.selectedTab,onClose:e.onClose})),n}async function b(){const e=o.authn.currentUser();if(!e)return[];const n=t.createElement("div"),[r,i]=await Promise.all([async function(){try{return((await a.login.findAppInstances({me:e,div:n,dom:t},$.vcard("AddressBook"))).instances||[]).map((e,t)=>({paneName:"contact",tabName:`contact-${t}`,label:"Contacts",subject:e,icon:a.icons.iconBase+"noun_15695.svg"}))}catch(e){}return[]}(),async function(){async function t(e){return await x(e),!!h.holds(e,$.rdf("type"),$.space("Storage"),e.doc())&&(n.push(e),!0)}try{await h.fetcher.load(e.doc())}catch(e){return[]}let n=h.each(e,$.space("storage"),null,e.doc());n.map(async e=>{await x(e)});try{const e=new URL(window.location.href).searchParams.get("uri")||window.location.href;await async function(e){const n=new URL(e);let r=n.pathname;for(;r.length;)if(r=r.substring(0,r.lastIndexOf("/")),await t(h.sym(`${n.origin}${r}/`)))return}(e)}catch(e){}return n=function(e){const t=[];return e.forEach(e=>{t.find(t=>t.equals(e))||t.push(e)}),t}(n),n.length?n.map((t,n)=>{function r(e){return e.uri.split("//")[1].slice(0,-1)}return{paneName:"folder",tabName:`folder-${n}`,label:r(e).startsWith(r(t))?"Your storage":r(t),subject:t,icon:a.icons.iconBase+"noun_Cabinet_251723.svg"}}):[]}()]);return[{paneName:"home",label:"Your stuff",icon:a.icons.iconBase+"noun_547570.svg"},{paneName:"basicPreferences",label:"Preferences",icon:a.icons.iconBase+"noun_Sliders_341315_00000.svg"},{paneName:"profile",label:"Your Profile",icon:a.icons.iconBase+"noun_15059.svg"},{paneName:"editProfile",label:"Edit your Profile",icon:a.icons.iconBase+"noun_492246.svg"}].concat(r).concat(i)}function y(){return w("outline")}function w(e){return document.getElementById(e)||(()=>{const t=document.createElement("div");t.id=e;return(document.querySelector('[role="main"]')||document.body).appendChild(t)})()}async function x(e){if(!h.any(e,$.ldp("contains"),void 0,e.doc())){const t=(await h.fetcher.webOperation("GET",e.uri,h.fetcher.initFetchOptions(e.uri,{headers:{accept:"text/turtle"}}))).responseText;i.parse(t,h,e.uri,"text/turtle")}}async function k(n,r,i){const o=t.createElement("tr");i.hover&&o.setAttribute("class","hoverControl");const s=o.appendChild(t.createElement("td"));s.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;display:flex; justify-content: space-between; flex-direction: row;"),s.setAttribute("notSelectable","true"),s.setAttribute("about",n.toNT()),s.setAttribute("colspan","2");const c=s.appendChild(t.createElement("div"));c.style="display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;";const l=!!r;if(!i.solo&&!l){c.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-collapse.png","collapse",void 0,t)).addEventListener("click",O);const e=c.appendChild(t.createElement("h1"));e.appendChild(t.createTextNode(a.utils.label(n))),e.style="font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;",a.widgets.makeDraggable(e,n)}return c.appendChild(await async function(i,s={}){const c="width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;",l="width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px",u=i.appendChild(t.createElement("nav"));u.style="display:flex; justify-content: flex-start; align-items: center;";const p=s.hideList?[]:await async function(e,t){e.uri.endsWith("/")&&await x(e);const n=t.session.paneRegistry,r=n.list.filter(n=>n.label(e,t)&&!n.global);if(0===r.length)return[n.byName("internal")];const i=await a.login.filterAvailablePanes(r);return 0===i.length?[r[0]]:n.list.indexOf(r[0])<n.list.indexOf(i[0])?[r[0]].concat(i):i}(n,e);o.firstPane=r||function(e,t){return e.find(e=>e.shouldGetFocus&&e.shouldGetFocus(t))||e[0]}(p,n);const d=p.indexOf(o.firstPane);return 1!==p.length&&p.forEach((r,p)=>{const f=r.label(n,e),h="function"==typeof r.icon?r.icon(n,e):r.icon,m=a.utils.AJARImage(h,f,f,t);h instanceof Promise&&h.then(e=>{m.setAttribute("src",e)}).catch(e=>{}),m.style=r===o.firstPane?c:l;!function(r,o){r.addEventListener("click",function(u){let p;for(p=i;p.parentNode&&"TABLE"!==p.nodeName;p=p.parentNode);if("TABLE"!==p.nodeName)throw new Error("outline: internal error.");const d=function(e){for(let n=p.firstChild;n;n=n.nextSibling)void 0!==n.pane&&(e&&n.pane!==e||(n.paneButton&&(n.paneButton.setAttribute("class","paneHidden"),n.paneButton.style=l),_(n),n.pane.requireQueryButton&&p.parentNode.className&&1===f&&t.getElementById("queryButton")&&t.getElementById("queryButton").setAttribute("style","display:none;")))};"paneHidden"===r.getAttribute("class")?(u.shiftKey||d(),function(i){let o;a.log.info("outline: Rendering pane (2): "+i.name);try{o=i.render(n,e,s)}catch(e){o=t.createElement("div"),o.setAttribute("class","exceptionPane");const n=t.createElement("pre");o.appendChild(n),n.appendChild(t.createTextNode(a.utils.stackString(e)))}i.requireQueryButton&&t.getElementById("queryButton")&&t.getElementById("queryButton").removeAttribute("style");const c=p.firstChild.nextSibling,l=t.createElement("tr");l.appendChild(t.createElement("td")).appendChild(o),c?p.insertBefore(l,c):p.appendChild(l),l.pane=i,l.paneButton=r}(o),r.setAttribute("class","paneShown"),r.style=c):(d(o),r.setAttribute("class","paneHidden"),r.style=l);let f=0;for(let e=p.firstChild;e;e=e.nextSibling)e.pane&&e.pane.requireQueryButton&&f++},!1)}(m,r),m.setAttribute("class",p!==d?"paneHidden":"paneShown"),p===d&&(o.paneButton=m),u.appendChild(m)}),u}(s,{hideList:l})),o.firstChild.tabulatorSelect=function(){I(this,!0)},o.firstChild.tabulatorDeselect=function(){I(this,!1)},o}function _(e){const n=e.parentNode,r=n.parentNode,i=t.createElement("table");i.setAttribute("style","width: 100%;"),r.replaceChild(i,n),n.removeChild(e),r.replaceChild(n,i)}this.init=function(){y().outline=this},this.appendAccessIcons=function(e,t,n){if("NamedNode"!==n.termType)return;const r=e.uris(n);r.sort();let i=null;for(let e=0;e<r.length;e++)r[e]!==i&&(i=r[e],d.appendAccessIcon(t,i))},this.appendAccessIcon=function(e,n){if(!n)return"";const r=i.uri.docpart(n);if("http:"!==r.slice(0,5))return"";const o=m.getState(r);let s,l,u;switch(o){case"unrequested":s=c.outlineIcons.src.icon_unrequested,l="fetch",u=M;break;case"requested":s=c.outlineIcons.src.icon_requested,l="fetching",u=L;break;case"fetched":s=c.outlineIcons.src.icon_fetched,u=j,l="loaded";break;case"failed":s=c.outlineIcons.src.icon_failed,l="failed",u=L;break;case"unpermitted":s=c.outlineIcons.src.icon_failed,u=L,l="no perm";break;case"unfetchable":s=c.outlineIcons.src.icon_failed,u=L,l="cannot fetch";break;default:a.log.error("?? state = "+o)}const d=a.utils.AJARImage(s,l,c.outlineIcons.tooltips[s].replace(/[Tt]his resource/,r),t);return d.setAttribute("uri",n),d.addEventListener("click",u),function(e,t){a.log.debug("Button callbacks for "+t+" added");const n=function(n){return function(r){return r.indexOf("#"),!!e&&(!!p.ancestor(e,"DIV")&&(r===t&&(e.src=n,e.title=c.outlineIcons.tooltips[n]),!0))}};m.addCallback("request",n(c.outlineIcons.src.icon_requested)),m.addCallback("done",n(c.outlineIcons.src.icon_fetched)),m.addCallback("fail",n(c.outlineIcons.src.icon_failed))}(d,r),e.appendChild(d),d},this.outlineObjectTD=function(e,n,r,i){const o=t.createElement("td");o.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),o.setAttribute("notSelectable","false");return("NamedNode"===e.termType||"BlankNode"===e.termType||"Literal"===e.termType&&e.value.slice&&("ftp://"===e.value.slice(0,6)||"https://"===e.value.slice(0,8)||"http://"===e.value.slice(0,7)))&&(o.setAttribute("about",e.toNT()),o.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-expand-trans.png","expand",void 0,t)).addEventListener("click",N)),o.setAttribute("class","obj"),h.whether(e,a.ns.rdf("type"),a.ns.link("Request"))&&(o.className="undetermined"),n||(n=V),o.appendChild(n(e)),r&&function(e,n,r){const i=a.utils.AJARImage(c.outlineIcons.src.icon_remove_node,"remove",void 0,t);i.addEventListener("click",D),i.node=r,i.setAttribute("about",n.toNT()),i.style.marginLeft="5px",i.style.marginRight="10px",e.appendChild(i)}(o,e,r),o.tabulatorSelect=function(){I(this,!0)},o.tabulatorDeselect=function(){I(this,!1)},o.addEventListener("click",U),o},this.outlinePredicateTD=function(e,n,r,i){const o=t.createElement("TD");let s;switch(o.setAttribute("about",e.toNT()),o.setAttribute("class",i?"pred internal":"pred"),e.termType){case"BlankNode":o.className="undetermined";break;case"NamedNode":s=a.utils.predicateLabelForXML(e,r);break;case"Collection":s=a.utils.predicateLabelForXML(e.elements[0],r)}s=s?s.slice(0,1).toUpperCase()+s.slice(1):"...";const l=t.createElement("TD");l.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),l.setAttribute("notSelectable","true"),l.appendChild(t.createTextNode(s)),o.appendChild(l),l.style.width="100%",o.appendChild(S.construct(t));for(const e in c.outlineIcons.termWidgets){if(!n||!n.AJAR_statement)break;c.outlineIcons.termWidgets[e].filter&&c.outlineIcons.termWidgets[e].filter(n.AJAR_statement,"pred",r)&&S.addIcon(o,c.outlineIcons.termWidgets[e])}return o.tabulatorSelect=function(){I(this,!0)},o.tabulatorDeselect=function(){I(this,!1)},o.addEventListener("click",U),o},this.getDashboard=v,this.getDashboardItems=b,this.showDashboard=async function(e={}){const t=w("GlobalDashboard"),n=y();if(t.childNodes.length>0&&e.pane){n.style.display="none",t.style.display="inherit";const r=t.querySelector(`[data-global-pane-name="${e.pane}"]`);if(r)return void r.click()}const r=await v({selectedTab:e.pane,onClose:a});o.authSession.events.on("logout",a),n.style.display="none",t.appendChild(r);const i=t.querySelector(`[data-global-pane-name="${e.pane}"]`);function a(){t.style.display="none",n.style.display="inherit"}i&&i.click()};const E=this.propertyTable=function(n,r,i,o){return a.log.debug("Property table for: "+n),n=h.canon(n),r?(a.log.info("Re-expand: "+r),r):((r=t.createElement("table")).setAttribute("style","width: 100%;"),k(n,i,o).then(i=>{if(r.appendChild(i),i.firstPane){let s;try{a.log.info("outline: Rendering pane (1): "+i.firstPane.name),s=i.firstPane.render(n,e,o)}catch(e){s=t.createElement("div"),s.setAttribute("class","exceptionPane");const n=t.createElement("pre");s.appendChild(n),n.appendChild(t.createTextNode(a.utils.stackString(e)))}const c=t.createElement("tr");c.appendChild(t.createElement("td")).appendChild(s),i.firstPane.requireQueryButton&&t.getElementById("queryButton")&&t.getElementById("queryButton").removeAttribute("style"),r.appendChild(c),c.pane=i.firstPane,c.paneButton=i.paneButton}}),r)};function C(e,t,n){const r=e.createElement("TR");r.AJAR_statement=t,r.AJAR_inverse=n,r.setAttribute("predTR","true");const i=d.outlinePredicateTD(t.predicate,r,n);return r.appendChild(i),r}this.propertyTR=C,this.appendPropertyTRs=function(e,n,r,i){if(a.log.debug("Property list length = "+n.length),0===n.length)return"";let o,s,c;r?(o=function(e){return e.subject},n=n.sort(a.utils.RDFComparePredicateSubject)):(o=function(e){return e.object},n=n.sort(a.utils.RDFComparePredicateObject));const l=n.length;for(s=0;s<l;s++){let u=n[s];if(i&&!i(u.predicate,r))continue;const f=C(t,u,r);e.appendChild(f);const m=f.firstChild;let g=W.defaults[u.predicate.uri],v=0,b=0,y=0;for(c=0;c+s<l&&n[s+c].predicate.sameTerm(u.predicate);c++)c>0&&o(n[s+c]).sameTerm(o(n[s+c-1]))&&v++,o(n[s+c]).lang&&p.labeller.LanguagePreference&&(b+=1,o(n[s+c]).lang.indexOf(p.labeller.LanguagePreference)>=0&&y++);if(y>0&&b===v+1){for(let e=s;e<=s+v;e++)if(p.labeller.LanguagePreference&&o(n[e]).lang.indexOf(p.labeller.LanguagePreference)>=0){f.appendChild(d.outlineObjectTD(o(n[e]),g,void 0,u));break}s+=v}else f.appendChild(d.outlineObjectTD(o(u),g,void 0,u)),f.showNobj=function(i){const l=c-v,p=2*i<l?i:l,f=[];if(1!==l){let v;m.setAttribute("rowspan",p===l?l:i+1),p<l&&1===p&&m.setAttribute("rowspan",2);let b=0;for(v=1;v<c;v++)if(h.canon(o(n[s+v])).sameTerm(h.canon(o(n[s+v-1]))))a.log.info("there are duplicates here: %s",n[s+v-1]);else{b++,u=n[s+v],g=W.defaults[u.predicate.uri];const i=t.createElement("tr");i.style.colspan="1",i.appendChild(d.outlineObjectTD(o(n[s+v]),g,void 0,u)),i.AJAR_statement=u,i.AJAR_inverse=r,e.appendChild(i),b>=p&&(i.style.display="none",f.push(i))}p===l&&m.setAttribute("rowspan",b+1)}if(p<l){const n=t.createElement("tr"),r=n.appendChild(t.createElement("td"));if(r.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),r.setAttribute("notSelectable","false"),l>i){const e=t.createElement("a");r.appendChild(e);const n=function(n,r,i,o){return function(r){e.innerHTML="","none"===r?(e.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-more-trans.png","more","See all",t)),e.appendChild(t.createTextNode(l-o+" more...")),n.setAttribute("rowspan",o+1)):(e.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-shrink.png","(less)",void 0,t)),n.setAttribute("rowspan",l+1));for(let e=0;e<f.length;e++)f[e].style.display=r}}(m,0,0,i);let o="none";const s=function(e){return n(o),o="none"===o?"":"none",e&&e.stopPropagation(),!1};s(),e.addEventListener("click",s,!1)}e.appendChild(n)}},f.showAllobj=function(){f.showNobj(c-v)},f.showNobj(10),s+=c-1}};const S={};n.g.termWidget=S,S.construct=function(e){const t=(e=e||document).createElement("TD");return t.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),t.setAttribute("class","iconTD"),t.setAttribute("notSelectable","true"),t.style.width="0px",t},S.addIcon=function(e,n,r){const i=e.childNodes[1];if(!i)return;let o=i.style.width;const s=a.utils.AJARImage(n.src,n.alt,n.tooltip,t);o=parseInt(o),o+=n.width,i.style.width=o+"px",i.appendChild(s),r&&s.addEventListener("click",r)},S.removeIcon=function(e,n){const r=e.childNodes[1];let a;if(!r)return;let o=r.style.width;o=parseInt(o),o-=n.width,r.style.width=o+"px";for(let e=0;e<r.childNodes.length;e++){const o=r.childNodes[e],s=o.src;try{a=t.location.href.split("?")[0]}catch(e){a=""}s===i.uri.join(n.src,a)&&r.removeChild(o)}},S.replaceIcon=function(e,t,n,r){S.removeIcon(e,t),S.addIcon(e,n,r)};function A(e){const t=e.getAttribute("class");return!!(t&&t.indexOf("selected")>=0)}function T(e){const t=d.targetOf(e).parentNode;S.replaceIcon(t.parentNode,c.outlineIcons.termWidgets.optOn,c.outlineIcons.termWidgets.optOff,P),t.parentNode.parentNode.removeAttribute("optional")}function P(e){const t=d.targetOf(e).parentNode;S.replaceIcon(t.parentNode,c.outlineIcons.termWidgets.optOff,c.outlineIcons.termWidgets.optOn,T),t.parentNode.parentNode.setAttribute("optional","true")}function R(e,t){const n=c.outlineIcons.termWidgets.optOn,r=c.outlineIcons.termWidgets.optOff;for(let i=e;i.parentNode;i=i.parentNode)for(;;){if(i.getAttribute("predTR")){let e=i.getAttribute("parentOfSelected");e=e?parseInt(e):0,0===e&&t>0&&S.addIcon(i.childNodes[0],i.getAttribute("optional")?n:r,i.getAttribute("optional")?T:P),e+=t,i.setAttribute("parentOfSelected",e),0===e&&(i.removeAttribute("parentOfSelected"),S.removeIcon(i.childNodes[0],i.getAttribute("optional")?n:r));break}if(!i.previousSibling||"TR"!==i.previousSibling.nodeName)break;i=i.previousSibling}}function I(e,t){if("TD"!==e.nodeName)throw a.log.debug("down"+e.nodeName),new Error("Expected TD in setSelected: "+e.nodeName+" : "+e.textContent);a.log.debug("pass");let n=e.getAttribute("class");if(n||(n=""),t){n+=" selected",(n.indexOf("pred")>=0||n.indexOf("obj")>=0)&&R(e,1),f.push(e);const t=a.utils.getTerm(e);d.showURI(t);let r=e.AJAR_statement;if(void 0===r&&e.parentNode&&(r=e.parentNode.AJAR_statement),r){const t=r.why,i=o.store.updater.editable(t.uri,h);i&&n.indexOf("pred")>=0&&S.addIcon(e,c.outlineIcons.termWidgets.addTri)}}else a.log.debug("cla=$"+n+"$"),"selected"===n&&(n=""),n=n.replace(" selected",""),(n.indexOf("pred")>=0||n.indexOf("obj")>=0)&&R(e,-1),n.indexOf("pred")>=0&&S.removeIcon(e,c.outlineIcons.termWidgets.addTri),f=f.filter(function(t){return t===e}),a.log.info("Deselecting "+e.textContent);"undefined"!=typeof sourceWidget&&d.showSource(),e.setAttribute("class",n)}function F(){for(let e=f.length-1;e>=0;e--)I(f[e],!1);f=[]}function N(e){const t=d.targetOf(e),n=t.parentNode,i=a.utils.getAbout(h,t);e.altKey&&r.byName("internal");e.shiftKey?q(n,i):e.altKey?z(n,i,{pane:r.byName("internal"),immediate:!0}):z(n,i)}function O(e){const t=d.targetOf(e),n=a.utils.getAbout(h,t);e.altKey&&r.byName("internal");H(t.parentNode.parentNode,n)}function L(e){const t=d.targetOf(e).getAttribute("uri");e.altKey?m.fetch(i.uri.docpart(t),{force:!0}):m.refresh(h.sym(i.uri.docpart(t)))}function j(e){const t=d.targetOf(e).getAttribute("uri");e.altKey?m.fetch(i.uri.docpart(t),{force:!0}):m.refresh(h.sym(i.uri.docpart(t)))}function M(e){const t=d.targetOf(e).getAttribute("uri");m.fetch(i.uri.docpart(t))}function D(e){const t=d.targetOf(e);let n=t.node;n.childNodes.length>1&&(n=t.parentNode),_(n)}function U(e){if(d.UserInput._tabulatorMode)return d.UserInput.Click(e);const t=d.targetOf(e);let n;for(n=a.utils.ancestor(t,"TD");n&&"false"!==n.getAttribute("notSelectable");n=a.utils.ancestor(n.parentNode,"TD"));if(!n)return;const r=A(n);if(a.log.debug("Was node selected before: "+r),e.altKey)I(n,!A(n));else if(e.shiftKey)I(n,!0);else{if(F(),d.UserInput.clearInputAndSave(e),I(n,!0),2===e.detail)return void e.stopPropagation();let t;if(n.parentNode&&(t=n.parentNode.AJAR_statement),!t)return;const i=t.why,a=o.store.updater.editable(i.uri,h);r&&a&&d.UserInput.Click(e,f[0])}a.log.debug("Was node selected after: "+A(n)+", count="+f.length),e.stopPropagation()}function B(e){t.title=a.utils.label(e),t.location.href.startsWith(e.site().uri)}function z(e,n,r){const o=(r=r||{}).pane;let s=!!r.already;const c=r.immediate;a.log.info("@outlineExpand, dom is now "+t.location),m.removeCallback("done","expand"),m.removeCallback("fail","expand");let l=h.canon(n);function u(){if(l=h.canon(l),!e||!e.parentNode||!e.parentNode.parentNode)return!1;let t;if(a.log.info("@@ REPAINTING "),s){for(a.log.info(" ... p is "+e),t=e.firstChild;t.nextSibling&&(a.log.info(" ... checking node "+t),"table"!==t.nodeName);t=t.nextSibling);t=E(l,t,o,r)}else t=E(l,void 0,o,r);s=!0,a.utils.ancestor(e,"TABLE")&&"white"===a.utils.ancestor(e,"TABLE").style.backgroundColor?t.style.backgroundColor="#eee":t.style.backgroundColor="white",a.utils.emptyNode(e).appendChild(t),d.focusTd=e,a.log.debug("expand: Node for "+l+" expanded");const n=h.each(l,a.ns.rdfs("seeAlso"));for(let e=0;e<n.length;e++)25===e&&a.log.warn("expand: Warning: many ("+n.length+") seeAlso links for "+l),m.lookUpThing(n[e],l)}function p(e){if(arguments[3])return!0;const t=h.canon(l);a.log.info("@@ expand: relevant subject="+t+", uri="+e+", already="+s);const n=h.sym(i.uri.docpart(e));if(e.indexOf("#")>=0)throw new Error("Internal error: hash in "+e);return!function(){if(!t.uri)return!0;const r=h.uris(t);if(!r)return!1;for(let t=0;t<r.length;t++)for(let n=i.uri.docpart(r[t]);n;n=h.HTTPRedirects[n])if(e===n)return!0;return!!h.anyStatementMatching(t,void 0,void 0,n)}()||(a.log.success("@@ expand OK: relevant subject="+t+", uri="+e+", source="+s),u(),!1)}r.solo&&B(l),a.log.debug("outlineExpand: dereferencing "+l);const f=t.createElement("span");e.appendChild(f),m.addCallback("done",p),m.addCallback("fail",p);const v=[];if(l.uri&&"rdf"===l.uri.split(":")[0])u();else{for(let e=0;e<v.length;e++){let t;if(t===v[e](l))return u(),a.log.debug("outline 1815"),void(t[1]&&g.removeChild(g.lastChild))}if(!l.uri||c||a.widgets.isAudio(l)||a.widgets.isVideo(l))u();else{const n=l.doc()&&l.doc().uri?l.doc().uri:""+l.doc(),i=function(r,i){if(e.querySelector&&n){if(e.querySelector('[data-outline-error-for="'+n+'"]'))return}const o=a.widgets.errorMessageBlock(t,r,"#fee",i instanceof Error?i:void 0);n&&o.setAttribute("data-outline-error-for",n),e.appendChild(o)};let o=!1;const s=m.nowOrWhenFetched(l.doc(),void 0,function(e,t){e?(m.lookUpThing(l),u(),r.solo&&B(l)):(o=!0,i(t,void 0))});s&&"function"==typeof s.catch&&s.catch(function(e){o||(o=!0,i(e,e))})}}}function H(e,t){let n,r,i,o,s=a.utils.ancestor(e,"TR");for(s=a.utils.ancestor(s.parentNode,"TR"),s&&(n=s.AJAR_statement),r=e.parentNode;"TD"!==r.tagName;r=r.parentNode)if(void 0===r)return void alert("Not enclosed in TD!");a.log.debug("Collapsing subject "+t),n&&(a.log.debug("looking up pred "+n.predicate.uri+"in defaults"),i=W.defaults[n.predicate.uri]),a.log.debug("view= "+i),"outline"===r.parentNode.parentNode.id&&(o=r.parentNode),d.replaceTD(d.outlineObjectTD(t,i,o,n),r)}function q(e,t){let n=null;for(let t=e.parentNode;t;t=t.parentNode)a.log.debug("level "+t.tagName),"TD"===t.tagName&&(n=t);a.utils.emptyNode(n).appendChild(E(t)),B(t),n.setAttribute("about",t.toNT())}new function(){this.pat=h.formula(),this.vars=[]},this.statusBarClick=function(e){const t=a.utils.getTarget(e);t.label&&(window.content.location=t.label)},this.showURI=function(e){e&&t.getElementById("UserURI")&&(t.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")},this.showSource=function(){if("undefined"!=typeof sourceWidget){for(const e in sourceWidget.sources)sourceWidget.sources[e].setAttribute("class","");for(let e=0;e<f.length;e++){if(!f[e].parentNode)continue;const t=f[e].parentNode.AJAR_statement;if(!t)continue;const n=t.why;n&&n.uri&&sourceWidget.highlight(n,!0)}}},this.getSelection=function(){return f},this.targetOf=function(e){let t;if(e||(e=window.event),e.target)t=e.target;else{if(!e.srcElement)return a.log.error("can't get target for event "+e),!1;t=e.srcElement}return 3===t.nodeType&&(t=t.parentNode),t},this.walk=function(e,n){const r=n||f[0];let i;switch(e){case"down":try{i=r.parentNode.nextSibling.lastChild}catch(e){return void this.walk("up")}F(),I(i,!0);break;case"up":try{i=r.parentNode.previousSibling.lastChild}catch(e){return}F(),I(i,!0);break;case"right":if(F(),r.nextSibling||"strong"===r.lastChild.tagName)I(r.nextSibling,!0);else{I(t.evaluate("table/div/tr/td[2]",r,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,!0)}break;case"left":if(F(),r.previousSibling&&"undetermined"===r.previousSibling.className)return I(r.previousSibling,!0),!0;I(a.utils.ancestor(r.parentNode,"TD"),!0);break;case"moveTo":F(),I(n,!0)}"down"!==e&&"up"!==e||i.tabulatorSelect||this.walk(e)},this.OutlinerKeypressPanel=function(e){function n(e){e&&t.getElementById("UserURI")&&(t.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")}function i(e){return arguments[3]||(u("right",l),n(a.utils.getAbout(h,f[0]))),!0}let s,c;if(a.log.info("Key "+e.keyCode+" pressed"),"TEXTAREA"===a.utils.getTarget(e).tagName)return;if("UserURI"===a.utils.getTarget(e).id)return;if(f.length>1)return;if(0===f.length)return void(13!==e.keyCode&&38!==e.keyCode&&40!==e.keyCode&&37!==e.keyCode&&39!==e.keyCode||(this.walk("right",d.focusTd),n(a.utils.getAbout(h,f[0]))));const l=f[0];switch(m.removeCallback("done","setSelectedAfterward"),m.removeCallback("fail","setSelectedAfterward"),e.keyCode){case 13:if("HTML"===a.utils.getTarget(e).tagName){const e=a.utils.getAbout(h,l);s=l.parentNode.AJAR_statement.why,c=o.store.updater.editable(s.uri,h),e?p.GotoSubject(e,!0):c&&d.UserInput.Enter(l)}else this.UserInput.Keypress(e),this.walk("down"),e.stopPropagation();return;case 38:this.walk("up"),e.stopPropagation(),e.preventDefault();break;case 40:this.walk("down"),e.stopPropagation(),e.preventDefault()}if("INPUT"===a.utils.getTarget(e).tagName)return;let u;switch(e.keyCode){case 46:case 8:s=l.parentNode.AJAR_statement.why,c=o.store.updater.editable(s.uri,h),c&&(e.preventDefault(),this.UserInput.Delete(l));break;case 37:{if(this.walk("left"))return;const e=a.utils.ancestor(l.parentNode,"TD");H(l,a.utils.getAbout(h,e));break}case 39:{const e=a.utils.getAbout(h,l);if(e){if(u=this.walk,l.nextSibling)return void this.walk("right");"TABLE"!==l.firstChild.tagName&&(m.addCallback("done",i),m.addCallback("fail",i),z(l,e,{pane:r.byName("defaultPane")})),i()}}break;case 38:case 40:break;default:switch(e.charCode){case 99:if(e.ctrlKey){d.UserInput.copyToClipboard(d.clipboardAddress,l);break}break;case 118:case 112:if(e.ctrlKey){d.UserInput.pasteFromClipboard(d.clipboardAddress,l);break}break;default:a.utils.getTarget(e).tagName}}if(n(a.utils.getAbout(h,f[0])),f[0]){const e=a.utils.findPos(f[0])[1];e+f[0].clientHeight>window.scrollY+window.innerHeight&&a.utils.getEyeFocus(f[0],!0,!0,window),e<window.scrollY+54&&a.utils.getEyeFocus(f[0],!0,void 0,window)}},this.OutlinerMouseclickPanel=function(e){switch(d.UserInput._tabulatorMode){case 0:!function(e){a.log.info("@TabulatorMousedown, dom.location is now "+t.location);const n=d.targetOf(e);if(!n)return;const r=n.tagName;"INPUT"!==r&&"TEXTAREA"!==r&&(d.UserInput.clearMenu(),d.UserInput.lastModified&&d.UserInput.lastModified.parentNode.nextSibling&&d.UserInput.backOut(),(!n.src||n.src.slice(n.src.indexOf("/icons/")+1)!==c.outlineIcons.src.icon_show_choices&&n.src.slice(n.src.indexOf("/icons/")+1)!==c.outlineIcons.src.icon_add_triple)&&d.UserInput.clearInputAndSave(e),n.src&&n.src.slice(n.src.indexOf("/icons/")+1)===c.outlineIcons.src.icon_show_choices||d.UserInput.clearMenu(),e&&e.stopPropagation())}(e);break;case 1:d.UserInput.Click(e)}},this.replaceTD=function(e,t){let n;A(t)&&(n=!0);for(let e=f.length-1;e>-1;e--)for(let n=f[e];n.parentNode;n=n.parentNode)n===t&&I(f[e],!1);t.parentNode.replaceChild(e,t),n&&I(e,!0)},p.outlineRefocus=q,this.GotoFormURI_enterKey=function(e){13===e.keyCode&&p.GotoFormURI(e)},this.GotoFormURI=function(e){!function(e){const t=h.sym(e);this.GotoSubject(t,!0)}(t.getElementById("UserURI").value)},this.GotoURIinit=function(e){const t=h.sym(e);this.GotoSubject(t)},this.GotoSubject=function(e,n,r,i,o,s){s=s||t.getElementById("outline"),i&&(a.utils.emptyNode(s),s.style.width="100%");const c=function(){const n=t.createElement("TR");n.style.verticalAlign="top",s.appendChild(n);const r=d.outlineObjectTD(e,void 0,n);return n.appendChild(r),r}();if(i&&B(e),n){z(c,e,{pane:r,solo:i});const t=c.parentNode;a.utils.getEyeFocus(t,!1,void 0,window)}if(i&&t&&t.defaultView&&t.defaultView.history&&document.location.href!==e.uri){const n=r?{paneName:r.name}:{};try{t.defaultView.history.pushState(n,e.uri,e.uri)}catch(e){}}return e};const $=a.ns,W=(0,s.propertyViews)(t);function V(n){let i;if("Literal"===n.termType){const e={integer:"text-align: right;",decimal:"text-align: '.';",double:"text-align: '.';"};i=t.createElement("span"),i.textContent=n.value;let r="";if(n.datatype&&n.datatype.uri){const t=a.ns.xsd("").uri;n.datatype.uri.slice(0,t.length)===t&&(r=e[n.datatype.uri.slice(t.length)])}i.setAttribute("style",r||"white-space: pre-wrap;")}else if("NamedNode"===n.termType||"BlankNode"===n.termType)if(i=t.createElement("span"),i.setAttribute("about",n.toNT()),d.appendAccessIcons(h,i,n),"NamedNode"===n.termType)if("tel:"===n.uri.slice(0,4)){const e=n.uri.slice(4),r=t.createElement("a");i.appendChild(t.createTextNode(e)),r.setAttribute("href",n.uri),r.appendChild(a.utils.AJARImage(c.outlineIcons.src.icon_telephone,"phone","phone "+e,t)),i.appendChild(r),r.firstChild.setAttribute("class","phoneIcon")}else{i.appendChild(t.createTextNode(a.utils.label(n)));const e=a.widgets.linkIcon(t,n);i.appendChild(e),a.widgets.makeDraggable(i,n)}else i.appendChild(t.createTextNode(a.utils.label(n)));else if("Collection"===n.termType){i=t.createElement("table"),i.setAttribute("style","width: 100%;"),i.setAttribute("about",n.toNT());for(let e=0;e<n.elements.length;e++){const r=n.elements[e],a=i.appendChild(t.createElement("tr")),o=a.appendChild(t.createElement("td"));o.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),o.setAttribute("notSelectable","false"),o.setAttribute("about",n.toNT()),o.innerHTML=e+1+")",a.appendChild(d.outlineObjectTD(r))}}else"Graph"===n.termType?(i=r.byName("dataContentPane").statementsAsTables(n.statements,e),i.setAttribute("class","nestedFormula")):(a.log.error("Object "+n+" has unknown term type: "+n.termType),i=t.createTextNode("[unknownTermType:"+n.termType+"]"));return a.log.debug("contents: "+i.innerHTML),i}return this.createTabURI=function(){t.getElementById("UserURI").value=t.URL+"?uri="+t.getElementById("UserURI").value},this.UserInput.setSelected=I,this.UserInput.deselectAll=F,this.UserInput.views=W,this.outlineExpand=z,this};var r=p(n(4059)),i=p(n(8230)),a=p(n(500)),o=n(9332),s=n(8071),c=n(7132),l=n(7339),u=p(n(2697));function p(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(p=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}},7132(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outlineIcons=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));const i=t.outlineIcons={};i.src=[],i.tooltips=[],i.src.icon_expand=r.icons.originalIconBase+"tbl-expand-trans.png",i.src.icon_more=r.icons.originalIconBase+"tbl-more-trans.png",i.src.icon_collapse=r.icons.originalIconBase+"tbl-collapse.png",i.src.icon_internals=r.icons.originalIconBase+"tango/22-emblem-system.png",i.src.icon_instances=r.icons.originalIconBase+"tango/22-folder-open.png",i.src.icon_foaf=r.icons.originalIconBase+"foaf/foafTiny.gif",i.src.icon_social=r.icons.originalIconBase+"social/social.gif",i.src.icon_mb=r.icons.originalIconBase+"microblog/microblog.png",i.src.icon_shrink=r.icons.originalIconBase+"tbl-shrink.png",i.src.icon_rows=r.icons.originalIconBase+"tbl-rows.png",i.src.icon_unrequested=r.icons.originalIconBase+"16dot-blue.gif",i.src.icon_fetched=r.icons.originalIconBase+"16dot-green.gif",i.src.icon_failed=r.icons.originalIconBase+"16dot-red.gif",i.src.icon_requested=r.icons.originalIconBase+"16dot-yellow.gif",i.src.icon_CVPane=r.icons.originalIconBase+"CV.png",i.src.icon_defaultPane=r.icons.originalIconBase+"about.png",i.src.icon_visit=r.icons.originalIconBase+"tango/22-text-x-generic.png",i.src.icon_dataContents=r.icons.originalIconBase+"rdf_flyer.24.gif",i.src.icon_n3Pane=r.icons.originalIconBase+"w3c/n3_smaller.png",i.src.icon_RDFXMLPane=r.icons.originalIconBase+"22-text-xml4.png",i.src.icon_imageContents=r.icons.originalIconBase+"tango/22-image-x-generic.png",i.src.icon_airPane=r.icons.originalIconBase+"1pt5a.gif",i.src.icon_LawPane=r.icons.originalIconBase+"law.jpg",i.src.icon_pushbackPane=r.icons.originalIconBase+"pb-logo.png",i.src.icon_photoPane=r.icons.originalIconBase+"photo_small.png",i.src.icon_tagPane=r.icons.originalIconBase+"tag_small.png",i.src.icon_TinyTag=r.icons.originalIconBase+"tag_tiny.png",i.src.icon_photoBegin=r.icons.originalIconBase+"photo_begin.png",i.src.icon_photoNext=r.icons.originalIconBase+"photo_next.png",i.src.icon_photoBack=r.icons.originalIconBase+"photo_back.png",i.src.icon_photoEnd=r.icons.originalIconBase+"photo_end.png",i.src.icon_photoImportPane=r.icons.originalIconBase+"flickr_small.png",i.src.icon_retract=r.icons.originalIconBase+"retract.gif",i.src.icon_refresh=r.icons.originalIconBase+"refresh.gif",i.src.icon_optoff=r.icons.originalIconBase+"optional_off.PNG",i.src.icon_opton=r.icons.originalIconBase+"optional_on.PNG",i.src.icon_map=r.icons.originalIconBase+"compassrose.png",i.src.icon_retracted=i.src.icon_unrequested,i.src.icon_retracted=i.src.icon_unrequested,i.src.icon_time=r.icons.originalIconBase+"icons/Wclocksmall.png",i.src.icon_telephone=r.icons.originalIconBase+"silk/telephone.png",i.src.icon_time=r.icons.originalIconBase+"Wclocksmall.png",i.src.icon_remove_node=r.icons.originalIconBase+"tbl-x-small.png",i.src.icon_add_triple=r.icons.originalIconBase+"tango/22-list-add.png",i.src.icon_add_new_triple=r.icons.originalIconBase+"tango/22-list-add-new.png",i.src.icon_show_choices=r.icons.originalIconBase+"userinput_show_choices_temp.png",i.src.icon_display_reasons=r.icons.originalIconBase+"tango/22-help-browser.png",i.tooltips[i.src.icon_display_reasons]="Display explanations",i.tooltips[i.src.icon_add_triple]="Add more",i.tooltips[i.src.icon_add_new_triple]="Add one",i.tooltips[i.src.icon_remove_node]="Remove",i.tooltips[i.src.icon_expand]="View details.",i.tooltips[i.src.icon_collapse]="Hide details.",i.tooltips[i.src.icon_shrink]="Shrink list.",i.tooltips[i.src.icon_internals]="Under the hood",i.tooltips[i.src.icon_instances]="List",i.tooltips[i.src.icon_foaf]="Friends",i.tooltips[i.src.icon_rows]="Make a table of data like this",i.tooltips[i.src.icon_unrequested]="Fetch this.",i.tooltips[i.src.icon_fetched]="Fetched successfully.",i.tooltips[i.src.icon_failed]="Failed to load. Click to retry.",i.tooltips[i.src.icon_requested]="This is being fetched. Please wait...",i.tooltips[i.src.icon_visit]="View document",i.tooltips[i.src.icon_retract]="Remove this source and all its data from tabulator.",i.tooltips[i.src.icon_refresh]="Refresh this source and reload its triples.",i.OutlinerIcon=function(e,t,n,r,i){return this.src=e,this.alt=n,this.width=t,this.tooltip=r,this.filter=i,this},i.termWidgets={},i.termWidgets.optOn=new i.OutlinerIcon(i.src.icon_opton,20,"opt on","Make this branch of your query mandatory."),i.termWidgets.optOff=new i.OutlinerIcon(i.src.icon_optoff,20,"opt off","Make this branch of your query optional."),i.termWidgets.addTri=new i.OutlinerIcon(i.src.icon_add_triple,18,"add tri","Add one")},8071(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.propertyViews=function(e){const t={properties:[],defaults:[],classes:[]},n=(0,i.default)(e),o=(0,a.default)(e);return s(t,r.ns.foaf("depiction").uri,n,!0),s(t,r.ns.foaf("img").uri,n,!0),s(t,r.ns.foaf("thumbnail").uri,n,!0),s(t,r.ns.foaf("logo").uri,n,!0),s(t,r.ns.schema("image").uri,n,!0),s(t,r.ns.foaf("mbox").uri,o,!0),t},t.viewsAddPropertyView=s;var r=n(500),i=o(n(3660)),a=o(n(6357));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r){e.properties[t]||(e.properties[t]=[]),e.properties[t].push(n),r&&(e.defaults[t]=n)}},2697(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySource=function(){this.queries=[],this.listeners=[],this.addQuery=function(e){let t;for(null!==e.name&&""!==e.name||(e.name="Query #"+(this.queries.length+1)),e.id=this.queries.length,this.queries.push(e),t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].addQuery(e)},this.removeQuery=function(e){let t;for(t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].removeQuery(e);null!==this.queries[e.id]&&delete this.queries[e.id]},this.addListener=function(e){let t;for(this.listeners.push(e),t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.addQuery(this.queries[t])},this.removeListener=function(e){let t;for(t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.removeQuery(this.queries[t]);for(t=0;t<this.listeners.length;t++)this.listeners[t]===e&&delete this.listeners[t]}},t.makeQueryRow=l,t.viewAndSaveQuery=function(e,t){const n=e.qs;i.log.info("outline.doucment is now "+e.document.location);const r=function(e,t){const n=new a.Query,r=e.length;let o,s,c,u;for(o=0;o<r;o++)s=e[o],u=s.parentNode,c=u.AJAR_statement,i.log.debug("Statement "+c),s.getAttribute("class").indexOf("pred")>=0&&(i.log.info(" We have a predicate"),l(n,u)),s.getAttribute("class").indexOf("obj")>=0&&(i.log.info(" We have an object"),l(n,u,!0));function p(e){const t=e.statements.length;let n,r;for(let i=0;i<t;i++)n=e.statements[i],r=n.tr,void 0!==r&&(r.AJAR_pattern=null,r.AJAR_variable=null);for(const t in e.optional)p(e.optional[t])}return t.addQuery(n),p(n.pat),n}(t,n);for(let e=0;e<n.listeners.length;e++)n.listeners[e].getActiveView().view.drawQuery(r),n.listeners[e].updateQueryControls(n.listeners[e].getActiveView())};var r=n(9332),i=o(n(500)),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=[];function c(e){let t=e;for(;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return e;t=t.previousSibling}}function l(e,t,n){const o=t.AJAR_inverse;let u,p,d;let f=null;for(p=t.parentNode;p;p=p.parentNode)if(void 0!==p.AJAR_statement){p.setAttribute("bla",p.AJAR_statement),p.AJAR_variable||l(e,p),u=p.AJAR_variable;const t=c(p);t.getAttribute("optionalSubqueriesIndex")&&(f=t.getAttribute("optionalSubqueriesIndex"),d=s[f]);break}d||(d=e.pat);const h=c(t),m=h.getAttribute("optional");if(m||(f?h.setAttribute("optionalSubqueriesIndex",f):h.removeAttribute("optionalSubqueriesIndex")),m){const e=r.store.formula();s.push(e),h.setAttribute("optionalSubqueriesIndex",s.length-1),d.optional.push(e),d=e}const g=t.AJAR_statement,v=t.AJAR_inverse?g.subject:g.object;let b=!0;v.isBlank&&n&&window.alert("You cannot constrain a query with a blank node. No constraint will be added."),u||(b=!1,u=o?g.object:g.subject);const y=t.AJAR_variable?t.AJAR_variable:r.store.variable(i.utils.newVariableName());e.vars.push(y),y.label=b?u.label:i.utils.label(u),y.label+=" "+i.utils.predicateLabelForXML(g.predicate,o);const w=(x=y,k=u,o?new a.Statement(x,g.predicate,k):new a.Statement(k,g.predicate,x));var x,k;return y.label=y.label.slice(0,1).toUpperCase()+y.label.slice(1),n&&(d.constraints[y]=new function(e){return this.describe=function(t){return t+" = "+e.toNT()},this.test=function(t){return e.sameTerm(t)},this}(v)),i.log.info("Pattern: "+w),w.tr=t,t.AJAR_pattern=w,t.AJAR_variable=y,i.log.debug("Query pattern: "+w),d.statements.push(w),y}},7339(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInput=function e(t){const n=t.document;this.menuId="predicateMenu1";const s=function(e){},u=r.ns.rdf,p=o.Namespace("http://purl.org/ontology/bibo/"),d=o.Namespace("http://purl.org/dc/elements/1.1/");let f=!1;c||(c=new o.Formula,c.superFormula=i.store);l||(l=new o.IndexedFormula);l.name="TempFormula",i.store.updater||(i.store.updater=new o.UpdateManager(i.store));return{sparqler:i.store.updater,lastModified:null,lastModifiedStat:null,statIsInverse:!1,addNewPredicateObject:function(e){if("bottom-border-active"!==r.utils.getTarget(e).className)return;const a=t.UserInput,s=r.utils.getTarget(e),c=n.createElement("tr");r.utils.ancestor(s,"DIV").insertBefore(c,r.utils.ancestor(s,"TR"));const l=n.createElement("tr"),u=a.generateRequest("(TBD)",l,!0);c.appendChild(l.firstChild);const p=a.generateRequest("(Enter text or drag an object onto this field)",l,!1);if(c.appendChild(l.firstChild),r.utils.ancestor(s,"TR").previousSibling&&r.utils.ancestor(s,"TR").previousSibling.AJAR_statement){const e=r.utils.ancestor(s,"TR").previousSibling.AJAR_statement;a.formUndetStat(c,e.subject,u,p,e.why,!1)}else{const e=r.utils.getAbout(i.store,r.utils.ancestor(s.parentNode.parentNode,"TD")),t=i.store.sym(o.Util.uri.docpart(e.uri));a.formUndetStat(c,e,u,p,t,!1)}t.walk("moveTo",c.firstChild),r.log.info("addNewPredicateObject: selection = "+t.getSelection().map(function(e){return e.textContent}).join(", ")),this.startFillInText(t.getSelection()[0])},addNewObject:function(e){const n=r.utils.getTarget(e).parentNode.parentNode,i=n.parentNode.AJAR_inverse;this.lastModifiedStat=n.parentNode.AJAR_statement;const a=this.appendToPredicate(n),o=this.generateRequest(" (Error) ",a,!1),s=a.previousSibling.AJAR_statement;i?this.formUndetStat(a,o,s.predicate,s.object,s.why,!0):this.formUndetStat(a,s.subject,s.predicate,o,s.why,!1),t.walk("moveTo",a.lastChild),this.startFillInText(a.lastChild)},Delete:function(e){this.deleteTriple(e,!1)},Enter:function(e){this.literalModification(e)},Click:function(e){const t=r.utils.getTarget(e);"Literal"===r.utils.getTerm(t).termType&&(this.literalModification(t),e.preventDefault(),e.stopPropagation())},pasteFromClipboard:function(e,n){function i(e){const n=t.clipboard[e].shift();if(null!==n){switch(e){case"predicates":case"objects":{const e=t.clipboard.all;for(let t=0;;t++)if(n.sameTerm(e[t])){e.splice(t,1);break}break}case"all":throw new Error("hostorical code not understood - what is theCollection?")}return n}r.log.warn("no more element in clipboard!")}let a;switch(n.className){case"undetermined selected":if(a=n.nextSibling?i("predicates"):i("objects"),!a)return;break;case"pred selected":if(a=i("objects"),!a)return;break;case"selected":{const e=i("all");if(!e)return;return a=e[0],void this.insertTermTo(n,a,e[1])}}this.insertTermTo(n,a)},startFillInText:function(e){switch(this.whatSortOfEditCell(e)){case"DatatypeProperty-like":r.utils.emptyNode(e),this.lastModified=this.createInputBoxIn(e," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select();break;case"predicate":this.performAutoCompleteEdit(e,"PredicateAutoComplete");break;case"ObjectProperty-like":case"no-idea":this.performAutoCompleteEdit(e,"GeneralAutoComplete")}},literalModification:function(e){if(r.log.debug("entering literal Modification with "+e+e.textContent),-1!==e.className.indexOf(" pendingedit"))return r.log.warn("The node you attempted to edit has a request still pending.\nPlease wait for the request to finish (the text will turn black)\nbefore editing this node again."),!0;const t=e;if(!this.getStatementAbout(t))return;let a,o,s;try{a=r.utils.getTerm(t),o=r.utils.ancestor(t,"TR")}catch(n){r.log.warn("userinput.js: "+n+r.utils.getAbout(i.store,e)),r.log.error(t+" getStatement Error:"+n)}try{s=o.lastChild}catch(e){r.log.error(e+"@"+t)}if("Literal"===a.termType){if(s.removeChild(s.firstChild),a.value.match("\n")){const e=n.createElement("textarea");e.appendChild(n.createTextNode(a.value)),e.setAttribute("rows",(a.value.match(/\n/g).length+1).toString()),e.setAttribute("cols","100"),e.setAttribute("class","textinput"),s.appendChild(e),this.lastModified=e}else this.lastModified=this.createInputBoxIn(s,a.value);this.lastModified.isNew=!1,this.lastModified.select()}return!0},performAutoCompleteEdit:function(e,t){r.utils.emptyNode(e),this.lastModified=this.createInputBoxIn(e,""),this.lastModified.select(),this.lastModified.addEventListener("keypress",this.getAutoCompleteHandler(t),!1),this.getAutoCompleteHandler(t)(1)},backOut:function(){this.deleteTriple(this.lastModified.parentNode,!0),this.lastModified=null},clearMenu:function(){const e=n.getElementById(this.menuID);e&&e.parentNode.removeChild(e)},clearInputAndSave:function(e){let n;if(!this.lastModified)return;if(!this.lastModified.isNew)try{n=this.getStatementAbout(this.lastModified).object}catch(e){return}let s,c,l,p,d=this.lastModifiedStat;if(this.lastModified.value!==this.lastModified.defaultValue){let c;if(""===this.lastModified.value)return this.lastModified.value=this.lastModified.defaultValue,void this.clearInputAndSave();if(this.lastModified.isNew){d=new o.Statement(d.subject,d.predicate,i.store.literal(this.lastModified.value),d.why),s=this.views.defaults[d.predicate.uri],c=r.utils.ancestor(this.lastModified,"TR");try{i.store.updater.update([],[d],function(e,n,i){n||(r.log.error("Error occurs while inserting "+d+"\n\n"+i+"\n"),t.UserInput.deleteTriple(c.lastChild,!0))})}catch(e){return void r.log.error("Error inserting fact "+d+":\n\t"+e+"\n")}d=i.store.add(d.subject,d.predicate,i.store.literal(this.lastModified.value),d.why)}else{if(this.statIsInverse)return r.log.error("Invalid Input: a literal can't be a subject in RDF/XML"),void this.backOut();let s,l,p;switch(n.termType){case"Literal":{const t=this.lastModified.value;c=r.utils.ancestor(this.lastModified,"TR");const a=this.lastModified.defaultValue;l=o.st(d.subject,d.predicate,i.store.literal(this.lastModified.value),d.why);try{i.store.updater.update([d],[l],function(e,i,o){i?n.value=t:(r.log.warn("Error occurs while editing "+d+"\n\n"+o),c.lastChild.textContent=a),c.lastChild.className=c.lastChild.className.replace(/ pendingedit/g,"")})}catch(e){return void r.log.warn("Error occurs while editing "+d+":\n\t"+e)}break}case"BlankNode":{const n=i.store.literal(this.lastModified.value,"");if("Collection"!==d.predicate.termType)return void this.fillInRequest("object",this.lastModified.parentNode,i.store.literal(this.lastModified.value));{const f=d.predicate.elements[0];if(i.store.any(void 0,f,n)){if(!e){const t=this.lastModified.parentNode;(e={}).pageX=r.utils.findPos(t)[0],e.pageY=r.utils.findPos(t)[1]+t.clientHeight}this.showMenu(e,"DidYouMeanDialog",void 0,{dialogTerm:i.store.any(void 0,f,n),bnodeTerm:d.subject})}else{s=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR").parentNode,"TR").AJAR_statement,l=o.st(d.subject,f,n,d.why);const a=i.store.the(d.subject,u("type"));p=i.store.anyStatementMatching(d.subject,u("type"),a,d.why),c=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR"),"TD").parentNode;try{i.store.updater.update([],[s,l,p],function(e,n,r){n||t.UserInput.deleteTriple(c.lastChild,!0)})}catch(e){return}i.store.remove(d),i.store.add(d.subject,f,n,d.why)}const h=r.utils.ancestor(this.lastModified.parentNode.parentNode,"TD"),m=a.byName("default");t.outlineExpand(h,d.subject,{pane:m,already:!0}),t.walk("right",t.focusTd)}break}}}}else{if(this.lastModified.isNew)return c=r.utils.ancestor(this.lastModified,"TR"),l=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),p=c.previousSibling.AJAR_statement,this.formUndetStat(c,p.subject,p.predicate,l,p.why,!1),void(this.lastModified=null);if("Collection"===d.predicate.termType){i.store.removeMany(d.subject);const e=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR").parentNode,"TR");return p=e.AJAR_statement,l=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),this.formUndetStat(e,p.subject,p.predicate,l,p.why,!1),t.replaceTD(t.outlineObjectTD(l,s),e.lastChild),void(this.lastModified=null)}if(this.statIsInverse){if("BlankNode"===d.subject.termType)return void this.backOut()}else if("BlankNode"===d.object.termType)return void this.backOut()}c=r.utils.ancestor(this.lastModified,"TR"),this.statIsInverse?t.replaceTD(t.outlineObjectTD(d.subject,s),c.lastChild):t.replaceTD(t.outlineObjectTD(i.store.literal(this.lastModified.value),s),c.lastChild),this.lastModified.value!==this.lastModified.defaultValue&&(c.lastChild.className+=" pendingedit"),this.lastModified=null},deleteTriple:function(e,n){if(r.log.debug("deleteTriple entered"),!n&&-1!==e.className.indexOf(" pendingedit"))return void t.walk("up");const a=this.getStatementAbout(e);if(!(n||i.store.whether(a.object,u("type"),r.ns.link("Request"))||i.store.whether(a.predicate,u("type"),r.ns.link("Request"))||i.store.whether(a.subject,u("type"),r.ns.link("Request")))){r.log.debug("about to send SPARQLUpdate");try{i.store.updater.update([a],[],function(t,n,r){n?s():e.className=e.className.replace(/ pendingedit/g,"")}),e.className+=" pendingedit"}catch(e){return r.log.error(e),void r.log.warn("Error deleting statement "+a+":\n\t"+e)}r.log.debug("SPARQLUpdate sent")}r.log.debug("about to remove "+a),r.log.debug("removed"),t.walk("up");const o=e.parentNode;function s(){let e,t;for(e=o;1===e.childNodes.length;e=e.previousSibling);if(e===o){const n=e.nextSibling;n.nextSibling&&1===n.childNodes.length&&(t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),n.insertBefore(e.firstChild,n.firstChild)),o.parentNode.removeChild(o)}else t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),o.parentNode.removeChild(o)}n&&s()},clipboardInit:function(){t.clipboard={},t.clipboard.objects=[],t.clipboard.predicates=[],t.clipboard.all=[]},copyToClipboard:function(e,n){const i=r.utils.getTerm(n);switch(n.className){case"selected":case"obj selected":t.clipboard.objects.unshift(i);break;case"pred selected":case"pred internal selected":t.clipboard.predicates.unshift(i)}t.clipboard.all.unshift(i)},insertTermTo:function(e,a,o){let s,l;switch(e.className){case"undetermined selected":s=this.views.defaults[e.parentNode.AJAR_statement.predicate.uri],this.fillInRequest(e.nextSibling?"predicate":"object",e,a);break;case"pred selected":{const n=this.appendToPredicate(e);l=e.parentNode.AJAR_statement,s=this.views.defaults[l.predicate.uri],n.appendChild(t.outlineObjectTD(a,s));const o=e.parentNode.AJAR_inverse;o?n.AJAR_statemnet=i.store.add(a,l.predicate,l.object,l.why):n.AJAR_statement=i.store.add(l.subject,l.predicate,a,l.why);try{i.store.updater.update([],[n.AJAR_statement],function(e,t,i){t||r.log.error("userinput.js (pred selected): Fail trying to insert statement "+n.AJAR_statement+": "+i)})}catch(e){return void r.log.error("Exception trying to insert statement "+n.AJAR_statement+": "+r.utils.stackString(e))}n.AJAR_inverse=o,c.statements.push(n.AJAR_statement);break}case"selected":{const i=r.utils.ancestor(e,"TABLE").lastChild,s=i.insertBefore(n.createElement("tr"),i.lastChild);if(l=s.previousSibling.AJAR_statement,void 0===o&&(o=!0),o)this.formUndetStat(s,l.subject,this.generateRequest("(TBD)",s,!0),a,l.why,!1),s.appendChild(t.outlineObjectTD(a)),t.walk("moveTo",s.firstChild),this.startFillInText(s.firstChild);else{const e=this.generateRequest("(To be determined. Re-type of drag an object onto this field)",s);this.formUndetStat(s,l.subject,a,e,l.why,!1),s.insertBefore(t.outlinePredicateTD(a,s,!1,!1),s.firstChild),t.walk("moveTo",s.lastChild),this.startFillInText(s.lastChild)}break}}},Refill:function(e,t){r.log.info("Refill"+t.textContent);const n=t.nextSibling;let a;if(n){let s,c,l;if("undetermined"===t.nextSibling.className){s=r.utils.getAbout(i.store,r.utils.ancestor(t,"TABLE").parentNode),c=i.store.any(s,u("type")),l=[];const e=".\n";l[0]="SELECT ?pred WHERE{\n?pred "+u("type")+u("Property")+".\n?pred "+r.ns.rdfs("domain")+c+".}",l[1]="SELECT ?pred ?class\nWHERE{\n?pred "+u("type")+u("Property")+".\n"+c+r.ns.rdfs("subClassOf")+" ?class.\n?pred "+r.ns.rdfs("domain")+" ?class.\n}",l[2]="SELECT ?pred WHERE{\n"+s+u("type")+i.store.variable("subjectClass")+e+i.store.variable("pred")+r.ns.rdfs("domain")+i.store.variable("subjectClass")+e+"}",a=l.map(o.SPARQLToQuery)}else{s=r.utils.getAbout(i.store,r.utils.ancestor(t,"TABLE").parentNode),c=i.store.any(s,u("type"));const e=t.parentNode.AJAR_statement.object;l="SELECT ?pred WHERE{"+s+u("type")+"?subjectClass.\n"+e+u("type")+"?objectClass.\n?pred "+r.ns.rdfs("domain")+"?subjectClass.\n?pred "+r.ns.rdfs("range")+"?objectClass.\n}",a=o.SPARQLToQuery(l)}this.showMenu(e,"GeneralPredicateChoice",a,{isPredicate:n,selectedTd:t})}else{const a=t.parentNode.AJAR_statement.predicate;if((i.store.whether(a,u("type"),r.ns.owl("DatatypeProperty"))||"Collection"===a.termType||i.store.whether(a,r.ns.rdfs("range"),r.ns.rdfs("Literal")))&&(t.className="",r.utils.emptyNode(t),this.lastModified=this.createInputBoxIn(t," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select()),t.parentNode.AJAR_statement.predicate.sameTerm(u("type"))){const i="SELECT ?class WHERE{?class "+u("type")+r.ns.rdfs("Class")+".}",a=o.SPARQLToQuery(i);this.showMenu(e,"TypeChoice",a,{isPredicate:n,selectedTd:t})}}},getAutoCompleteHandler:function(e){let a;return"PredicateAutoComplete"===e?e="predicate":"JournalTAC"!==e&&(e="all"),a="JournalTAC"===e?n.getElementById("inpid_journal_title"):this.lastModified||t.getSelection()[0].firstChild,a.value,function(o){const s={},c=a.parentNode;e||(e=c.nextSibling?"predicate":"all"),s.pageX=r.utils.findPos(c)[0],s.pageY=r.utils.findPos(c)[1]+c.clientHeight,s.pageX,s.pageY;let l=n.getElementById(t.UserInput.menuID);function u(e){e&&(l.lastHighlight&&(l.lastHighlight.className=""),l.lastHighlight=e,l.lastHighlight.className="activeItem",t.showURI(r.utils.getAbout(i.store,l.lastHighlight)))}if(o){let p=a.value;if("object"==typeof o)switch(o.keyCode,o.stopPropagation(),l&&!l.lastHighlight&&u(l.firstChild.firstChild),o.keyCode){case 13:case 9:if(!l)return void t.UserInput.clearInputAndSave();if(!l.lastHighlight)return"JournalTAC"===e?(t.UserInput.clearMenu(),"no lastH"):void 0;if("INPUT"===l.lastHighlight.tagName)switch(l.lastHighlight.value){case"New...":t.UserInput.createNew();break;case"GiveURI":t.UserInput.inputURI()}else{if("JournalTAC"===e){if(f&&l.lastHighlight){const e=l.lastHighlight.firstChild.firstChild.innerHTML;let t=l.lastHighlight.firstChild.nextSibling.innerHTML;return t=t.slice(4,-4),["gotdptitle",e,t]}return"asGivenTxt"}const n=r.utils.getAbout(i.store,l.lastHighlight),o="predicate"===e?"predicate":"object";t.UserInput.clearMenu(),t.UserInput.fillInRequest(o,a.parentNode,n)}return;case 38:return f=!0,""!==p||"TR"!==l.lastHighlight.tagName||l.lastHighlight.previousSibling?u(l.lastHighlight.previousSibling):u(l.firstChild.firstChild),"I'm a little Arrow Up";case 40:return f=!0,"INPUT"===l.lastHighlight.tagName?u(l.childNodes[1].firstChild):u(l.lastHighlight.nextSibling),"I'm a little Down Arrow";case 37:case 39:return void("INPUT"===l.lastHighlight.tagName&&(37===o.keyCode?u(l.lastHighlight.previousSibling):u(l.lastHighlight.nextSibling)));case 8:p=p.slice(0,-1);break;case 27:return l?void t.UserInput.clearMenu():void t.UserInput.backOut();default:f=!1,p+=String.fromCharCode(o.charCode),o.charCode,String.fromCharCode(o.charCode)}if("all"===e?(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"GeneralAutoComplete",void 0,{inputText:p,selectedTd:c}),0===p.length&&t.UserInput.WildCardButtons()):"predicate"===e?(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"PredicateAutoComplete",void 0,{inputText:p,isPredicate:!0,selectedTd:c})):"JournalTAC"===e&&(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"JournalTitleAutoComplete",void 0,{inputText:p},"orderisuseless")),l=n.getElementById(t.UserInput.menuID),!l)return;return u(l.firstChild.firstChild),t.showURI(r.utils.getAbout(i.store,l.lastHighlight)),"nothing to return"}}},WildCardButtons:function(){const e=n.getElementById(t.UserInput.menuID),i=e.insertBefore(n.createElement("div"),e.firstChild),a=i.appendChild(n.createElement("input")),o=i.appendChild(n.createElement("input"));a.type="button",a.value="New...",o.type="button",o.value="Know its URI",i.addEventListener("mouseover",function(e){const i=n.getElementById(t.UserInput.menuID);i.lastHighlight&&(i.lastHighlight.className=""),i.lastHighlight=r.utils.ancestor(r.utils.getTarget(e),"INPUT"),i.lastHighlight&&(i.lastHighlight.className="activeItem")},!1),a.addEventListener("click",this.createNew,!1),o.addEventListener("click",this.inputURI,!1)},Keypress:function(e){if(13===e.keyCode)if("TEXTAREA"!==t.targetOf(e).tagName)this.clearInputAndSave();else{const t=parseInt(this.lastModified.getAttribute("rows"));this.lastModified.setAttribute("rows",(t+1).toString()),e.stopPropagation()}},Mousedown:function(t){window.addEventListener("keypress",function(t){!t.ctrlKey||115!==t.charCode&&113!==t.charCode||e.switchMode()},!1),window.addEventListener("mousedown",e.Mousedown,!1),document.getElementById("outline").oncontextmenu=function(){return!1},2===t.button&&(e.switchMode(),t&&(t.preventDefault(),t.stopPropagation()))},Mouseover:function(e){if(this.className="bottom-border-active",1===this._tabulatorMode)switch(r.utils.getTarget(e).tagName){case"TD":{const t=r.utils.getTarget(e);"pred"===t.className&&(t.style.cursor="copy");break}case"DIV":{const t=r.utils.getTarget(e);"bottom-border"===r.utils.getTarget(e).className&&(t.style.borderColor="rgb(100%,65%,0%)",t.style.cursor="copy");break}}},Mouseout:function(e){if(this.className="bottom-border",1===this._tabulatorMode){const t=r.utils.getTarget(e);"bottom-border"===r.utils.getTarget(e).className&&(t.style.borderColor="transparent",t.style.cursor="auto")}},whatSortOfEditCell:function(e){if(e.nextSibling)return"predicate";const t=this.getStatementAbout(e).predicate;return i.store.whether(t,r.ns.rdf("type"),r.ns.owl("DatatypeProperty"))||i.store.whether(t,r.ns.rdfs("range"),r.ns.rdfs("Literal"))||"Collection"===t.termType?"DatatypeProperty-like":i.store.whether(t,u("type"),r.ns.owl("ObjectProperty"))?"ObjectProperty-like":"no-idea"},getStatementAbout:function(e){const t=r.utils.ancestor(e,"TR");if(!t)throw new Error("No ancestor TR for the TD we clicked on:"+e);let n;try{n=t.AJAR_statement}catch(n){throw new Error("No AJAR_statement!"+e+e.textContent+" has ancestor "+t)}return this.lastModifiedStat=t.AJAR_statement,this.statIsInverse=t.AJAR_inverse,n},createInputBoxIn:function(e,i){r.log.info("myDocument in createInputBoxIn is now "+n.location),r.log.info("outline.document is now "+t.document.location);const a=n.createElement("input");return a.setAttribute("value",i),a.setAttribute("class","textinput"),"undetermined selected"!==e.className&&(a.setAttribute("size","100"),a.addEventListener("keypress",function(e){38!==e.keyCode&&40!==e.keyCode||(t.OutlinerKeypressPanel(e),t.UserInput.clearInputAndSave())},!1)),e.appendChild(a),a},createNew:function(e){t.UserInput.clearMenu();const n=t.getSelection()[0],r=n.parentNode.AJAR_statement.why,a=i.store.nextSymbol(r);t.UserInput.fillInRequest("object",n,a),t.outlineExpand(t.getSelection()[0],a)},inputURI:function(e){const n=t.UserInput;n.clearMenu();const a=t.getSelection()[0];r.utils.emptyNode(a);const o=" (Type a URI) ";n.lastModified=n.createInputBoxIn(a,o),n.lastModified.select(),n.lastModified.addEventListener("keypress",function(e){switch(e.stopPropagation(),e.keyCode){case 13:case 9:if(this.value!==o){const e=this.value;n.fillInRequest("object",a,i.store.sym(e))}}},!1)},appendToPredicate:function(e){let t,r=!1;try{for(t=e.parentNode.nextSibling;1===t.childNodes.length&&t.AJAR_statement;t=t.nextSibling);}catch(e){r=!0}const i=n.createElement("tr");if(i.style.colspan="1",i.style.display="block",i.style.display="",e.hasAttribute("rowspan")&&e.setAttribute("rowspan",parseInt(e.getAttribute("rowspan"))+1),e.hasAttribute("rowspan")||e.setAttribute("rowspan","2"),r){const t=e.parentNode.parentNode;"defaultPane"===t.className?t.insertBefore(i,t.lastChild):t.appendChild(i)}else t.parentNode.insertBefore(i,t);return i},bnode2symbol:function(e,t){i.store.copyTo(e,t,["two-direction","delete"])},generateRequest:function(e,n,i,a){let o;a||(o=n||r.utils.ancestor(this.lastModified,"TR"),r.utils.emptyNode(o));const s=l,c=s.bnode();if(s.add(c,r.ns.rdf("type"),r.ns.link("Request")),e.length,s.add(c,r.ns.link("message"),s.literal(e)),s.add(c,r.ns.link("to"),s.literal("The User")),s.add(c,r.ns.link("from"),s.literal("The User")),!a){let n;n=i?o.appendChild(t.outlinePredicateTD(c,o,!1,!1)):o.appendChild(t.outlineObjectTD(c)),n.className="undetermined",n.textContent=e}return c},showMenu:function(e,a,c,l,f){r.log.info("myDocument is now "+n.location),r.log.info("outline.doucment is now "+t.document.location);const h=this,m=n.createElement("div");if(l)for(const e in l);m.id=this.menuID,m.className="outlineMenu",m.style.top=e.pageY+"px",m.style.left=e.pageX+"px";if("JournalTitleAutoComplete"===a){const e=function(e){let t=0,n=0,r=0,i=0,a=0,o=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)a=e.offsetLeft,o=e.offsetTop,a!==r&&(t+=e.offsetLeft-e.scrollLeft),o!==i&&(n+=e.offsetTop-e.scrollTop),r=a,i=o,e=e.parentNode;return{top:n+54,left:t-38}}(n.getElementById("inpid_journal_title"));e.left-=n.getElementById("inpid_journal_title").scrollTop,m.style.top=e.top+"px",m.style.left=e.left+"px"}n.body.appendChild(m);const g=m.appendChild(n.createElement("table"));let v;switch(m.lastHighlight=null,g.addEventListener("mouseover",function(e){m.lastHighlight&&(m.lastHighlight.className=""),m.lastHighlight=r.utils.ancestor(r.utils.getTarget(e),"TR"),m.lastHighlight&&(m.lastHighlight.className="activeItem")},!1),a){case"DidYouMeanDialog":v=function(e){const n=r.utils.ancestor(r.utils.getTarget(e),"TR");2===n.childNodes.length&&n.nextSibling?(i.store.add(k,void 0,void 0),t.UserInput.clearMenu()):2===n.childNodes.length&&t.UserInput.clearMenu()};break;case"LimitedPredicateChoice":{const e=l.clickedTd;v=function(n){const a=r.utils.getAbout(i.store,r.utils.getTarget(n)),o=e.parentNode.AJAR_statement.predicate.elements;for(let e=0;e<o.length;e++)o[e].sameTerm(a)&&o.unshift(o.splice(e,1)[0]);t.UserInput.clearMenu();const s=e.parentNode,c=t.outlinePredicateTD(s.AJAR_statement.predicate,s);s.insertBefore(c,e),s.removeChild(e),h.lastModified.select()};break}case"PredicateAutoComplete":case"GeneralAutoComplete":case"GeneralPredicateChoice":case"JournalTitleAutoComplete":case"TypeChoice":{const e=l.isPredicate,n=l.selectedTd;v=function(a){const o=r.utils.getAbout(i.store,r.utils.getTarget(a));r.utils.getTarget(a),e?t.UserInput.fillInRequest("predicate",n,o)&&t.UserInput.clearMenu():t.UserInput.fillInRequest("object",n,o)&&t.UserInput.clearMenu()};break}default:throw new Error("userinput: unexpected mode")}g.addEventListener("click",v,!1);const b={};function y(e){g.firstChild&&"no-suggest"===g.firstChild.className&&g.removeChild(g.firstChild);const t=r.utils.predicateLabelForXML(e,!1);if(!e.uri)return;let i="??";for(const t in b)if(r.log.debug(b[t]),o.Util.string_startswith(e.uri,b[t])){i=t;break}const a=g.appendChild(n.createElement("tr"));a.setAttribute("about",e);a.appendChild(n.createElement("th")).appendChild(n.createElement("div")).appendChild(n.createTextNode(t)),a.appendChild(n.createElement("td")).appendChild(n.createTextNode(i.toUpperCase()))}function w(e){return function(t){y(t[e.vars[0]])}}let x,k,_,E;switch(i.store.each(void 0,r.ns.rdf("type"),r.ns.owl("Ontology")).forEach(function(e){const t=r.utils.label(e);if(!t)return;const n=t.value.match(/\((.+?)\)/);n?b[n[1]]=e.uri:b[t.value]=e.uri}),a){case"DidYouMeanDialog":{const e=l.dialogTerm;k=l.bnodeTerm,m.style.width="auto";const t=g.appendChild(n.createElement("tr")).appendChild(n.createElement("th"));t.appendChild(n.createTextNode("Did you mean..."));const a=i.store.statementsMatching(e);let o;for(o=0;o<a.length&&!i.store.whether(a[o].predicate,u("type"),r.ns.owl("InverseFunctionalProperty"));o++);const s=a[o].predicate,c=i.store.any(e,a[o].predicate),p=r.utils.label(e)+" who has "+r.utils.label(s)+" "+c+"?",d=g.appendChild(n.createElement("tr")).appendChild(n.createElement("th"));d.appendChild(n.createTextNode(p)),t.setAttribute("colspan","2"),d.setAttribute("colspan","2");const f=g.appendChild(n.createElement("tr"));f.appendChild(n.createElement("th")).appendChild(n.createTextNode("Yes")),f.appendChild(n.createElement("td")).appendChild(n.createTextNode("BOOLEAN"));const h=g.appendChild(n.createElement("tr"));h.appendChild(n.createElement("th")).appendChild(n.createTextNode("No")),h.appendChild(n.createElement("td")).appendChild(n.createTextNode("BOOLEAN"));break}case"PredicateAutoComplete":{x=l.inputText;const n=t.labeller.searchAdv(x,void 0,"predicate"),r=[];for(let t=0;t<n.length;t++){const r={vars:[]};r.vars.push("Kenny");const a={};a.Kenny=i.store.fromNT(n[t].NT);try{w(r)(a)}catch(e){throw new Error("I'll deal with bnodes later...[Kenny]"+e)}}const a=r[0];if(0===a.length)return void this.clearMenu();for(let e=0;e<a.length&&e<10;e++)y(a[e][1]);break}case"GeneralAutoComplete":{let i;x=l.inputText;try{i=t.labeller.search(x)}catch(e){}const a=i[0],o=i[1];if(0===a.length)return void this.clearMenu();for(let e=0;e<a.length&&e<10;e++){const t=a[e][1].toNT();_=g.appendChild(n.createElement("tr")),_.setAttribute("about",t),E=_.appendChild(n.createElement("th")),E.appendChild(n.createElement("div")).appendChild(n.createTextNode(a[e][0]));const i=o[e],s=i?r.utils.label(i):"";_.appendChild(n.createElement("td")).appendChild(n.createTextNode(s))}break}case"JournalTitleAutoComplete":{x=l.inputText;const e=i.store.each(void 0,u("type"),p("Journal")),t=[];for(let r=0;r<e.length;r++){const a=e[r],o=i.store.each(a,d("title"),void 0),c=o+"",l=x.toLowerCase();if(-1!==c.toLowerCase().search(l)){s(),t.push(o);const e=g.appendChild(n.createElement("tr"));e.setAttribute("about","journalTitle");e.appendChild(n.createElement("th")).appendChild(n.createElement("div")).appendChild(n.createTextNode(o)),e.appendChild(n.createElement("td")).appendChild(n.createTextNode(a))}}break}case"LimitedPredicateChoice":{const e=r.utils.getAbout(i.store,l.clickedTd);e.termType="Collection";const t=i.store.each(e,r.ns.link("element"));for(let e=0;e<t.length;e++)y(t[e]);break}default:{_=g.appendChild(n.createElement("tr")),_.className="no-suggest",E=_.appendChild(n.createElement("th")),E.appendChild(n.createElement("div")).appendChild(n.createTextNode("No suggested choices. Try to type instead.")),_.appendChild(n.createElement("td")).appendChild(n.createTextNode("OK")),_.addEventListener("click",function(e){h.clearMenu(),e.stopPropagation()},"false");const e=function(){};switch(c.constructor.name){case"Array":for(let t=0;t<c.length;t++)i.store.query(c[t],w(c[t]),e);break;case"undefined":throw new Error("addPredicateChoice: query is not defined");default:i.store.query(c,w(c),e)}}}},fillInRequest:function(e,n,a){const s=n.parentNode,u=s.AJAR_statement,p=s.AJAR_inverse,d="object"===e?u.object:u.predicate;let f,h=!1;if(i.store.any(d,r.ns.link("onfillin")),"predicate"===e){const e=t.outlinePredicateTD(a,s,!1,!1);if("undetermined"!==n.nextSibling.className){const t=new o.Statement(u.subject,a,u.object,u.why);try{i.store.updater.update([],[t],function(t,n,o){n?(f=i.store.anyStatementMatching(u.subject,a,u.object,u.why),s.AJAR_statement=f,e.className=e.className.replace(/ pendingedit/g,"")):r.log.warn("Failure occurs (#2) while inserting "+s.AJAR_statement+"\n\n"+o)})}catch(e){return r.log.error(e),void r.log.warn("Error when insert (#2) of statement "+t+":\n\t"+e)}e.className+=" pendingedit",this.lastModified=null}else this.formUndetStat(s,u.subject,a,u.object,u.why,!1),t.walk("right"),h=!0;t.replaceTD(e,n),l.remove(u)}else if("object"===e){const e=t.outlineObjectTD(a);if(t.replaceTD(e,n),n.previousSibling&&"undetermined"===n.previousSibling.className)t.walk("left"),h=!0;else{let t;t=p?new o.Statement(a,u.predicate,u.object,u.why):new o.Statement(u.subject,u.predicate,a,u.why);try{i.store.updater.update([],[t],function(n,o,c){let l;r.log.info("@@ usinput.js (object) callback ok="+o+" for statement:"+t+"\n "),o?(e.className=e.className.replace(/ pendingedit/g,""),l=p?i.store.statementsMatching(a,u.predicate,u.object,u.why):i.store.statementsMatching(u.subject,u.predicate,a,u.why),l.length||r.log.error("userinput.js 1711: Can't find statememt!"),s.AJAR_statement=l[0]):r.log.warn("userinput.js (object): Fail trying to insert statement "+t)})}catch(e){return r.log.error("userinput.js (object): exception trying to insert statement "+t+": "+r.utils.stackString(e)),void r.log.warn("Error trying to insert statement "+t+":\n"+e)}this.lastModified=null,e.className+=" pendingedit"}l.remove(u)}if(c.statements.push(f),!h)return!0;this.startFillInText(t.getSelection()[0])},formUndetStat:function(e,t,n,r,i,a){return e.AJAR_inverse=a,e.AJAR_statement=l.add(t,n,r,i),e.AJAR_statement}}};var r=s(n(500)),i=n(9332),a=s(n(4059)),o=s(n(8230));function s(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}let c,l},3660(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.default=e=>function(t){const n=r.utils.AJARImage(t.uri,r.utils.label(t),r.utils.label(t),e);return n.setAttribute("class","outlineImage"),n}},6357(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=e=>function(t){const n=e.createElement("a");let r="NamedNode"===t.termType?t.uri:t.value;const i=r.indexOf("mailto:");return r=i>=0?r.slice(i+7):r,n.setAttribute("href","mailto:"+r),n.appendChild(e.createTextNode(r)),n}},9370(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(9332),a=n(8230);const o={icon:r.icons.iconBase+"noun_79217.svg",name:"pad",audience:[r.ns.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/pad#Notepad"]?"pad":null},mintClass:r.ns.pad("Notepad"),mintNew:function(e,t){const n=e.session.store,i=n.updater;if(t.me&&!t.me.uri)throw new Error("notepad mintNew: Invalid userid");const a=t.newInstance=t.newInstance||n.sym(t.newBase+"index.ttl#this"),o=a.doc();n.add(a,r.ns.rdf("type"),r.ns.pad("Notepad"),o),n.add(a,r.ns.dc("title"),"Shared Notes",o),n.add(a,r.ns.dc("created"),new Date,o),t.me&&n.add(a,r.ns.dc("author"),t.me,o);const s=n.sym(a.uri+"_line0");return n.add(a,r.ns.pad("next"),s,o),n.add(s,r.ns.pad("next"),a,o),n.add(s,r.ns.dc("author"),t.me,o),n.add(s,r.ns.sioc("content"),"",o),new Promise(function(e,r){i?i.put(o,n.statementsMatching(void 0,void 0,void 0,o),"text/turtle",function(n,i,a){i?e(t):r(new Error("FAILED to save new tool at: "+n+" : "+a))}):r(new Error("Have no updater"))})},render:function(e,t,n){const o=t.dom,s=t.session.store,c=function(e,t){e||E.appendChild(r.widgets.errorMessageBlock(o,t,"pink"))},l=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},u=function(e,t,n){const i=(0,a.graph)(),o=(0,a.Namespace)("http://www.w3.org/ns/auth/acl#");let s=i.sym(t+"#a1");const c=i.sym(t),l=i.sym(e);return i.add(s,r.ns.rdf("type"),o("Authorization"),c),i.add(s,o("accessTo"),l,c),i.add(s,o("agent"),y,c),i.add(s,o("mode"),o("Read"),c),i.add(s,o("mode"),o("Write"),c),i.add(s,o("mode"),o("Control"),c),s=i.sym(t+"#a2"),i.add(s,r.ns.rdf("type"),o("Authorization"),c),i.add(s,o("accessTo"),l,c),i.add(s,o("agentClass"),r.ns.foaf("Agent"),c),i.add(s,o("mode"),o("Read"),c),n&&i.add(s,o("mode"),o("Write"),c),(0,a.serialize)(c,i,t,"text/turtle")},p=function(e,t,n){const r=s.any((0,a.sym)(e),(0,a.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!v)throw new Error("Have no fetcher");if(r){const i=u(e,r.uri,t);return v.webOperation("PUT",r.uri,{data:i,contentType:"text/turtle"}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})}return v.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=s.any((0,a.sym)(e),(0,a.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const r=u(e,n.uri,t);return v.webOperation("PUT",n.uri,{data:r,contentType:"text/turtle"})}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})},d=function(e,t,n){const i=l(t);i.appendChild(r.login.newAppInstance(o,{noun:"notepad"},(e,t)=>f(new a.NamedNode(e||t)))),i.appendChild(o.createElement("hr"));i.appendChild(o.createElement("p")).textContent="Where would you like to store the data for the "+n+"? Give the URL of the directory where you would like the data stored.";const s=i.appendChild(o.createElement("input"));s.setAttribute("type","text"),s.size=80,s.label="base URL",s.autocomplete="on",i.appendChild(o.createElement("br"));const c=i.appendChild(o.createElement("button"));c.textContent="Start new "+n+" at this URI",c.addEventListener("click",function(t){let n=s.value;"/"!==n.slice(-1)&&(n+="/"),h(e,n)})},f=function(e){let t=s.any(e,r.ns.space("uriPrefix"));t=t?t.value:e.uri.split("#")[0],"/"!==t.slice(-1)&&(a.log.error(g+": No / at end of uriPrefix "+t),t+="/");const n=new Date;t+=g+"/id"+n.getTime()+"/",h(x,t)},h=function(e,t){const n=(0,a.sym)(e.uri.split("#")[0]),l=s.sym(t+"pad.ttl"),u=s.sym(t+"index.html"),d=[{local:"index.html",contentType:"text/html"}],f=s.sym(l.uri+"#thisPad"),h=[];let m;for(m=0;m<d.length;m++){const e=function(e){h.push(function(){const r=t+e.local;if(!s.fetcher)throw new Error("Store has no fetcher");s.fetcher.webCopy(n+e.local,t+e.local,e.contentType).then(()=>i.authn.checkUser()).then(e=>{y=e,p(r,!1,function(e,t){e?h.shift()():c(e,"FAILED to set ACL "+r+" : "+t)})}).catch(t=>{c(!1,"FAILED to copy "+n+e.local+" : "+t.message)})})};e(d[m])}h.push(function(){if(s.add(f,r.ns.rdf("type"),w("Notepad"),l),s.add(f,r.ns.dc("created"),new Date,l),y&&s.add(f,r.ns.dc("author"),y,l),s.add(f,w("next"),f,l),s.add(f,r.ns.space("inspiration"),e,k),s.add(f,r.ns.space("inspiration"),e,l),!b)throw new Error("Have no updater");b.put(l,s.statementsMatching(void 0,void 0,void 0,l),"text/turtle",function(e,t,n){t?h.shift()():c(t,"FAILED to save new notepad at: "+l.uri+" : "+n)})}),h.push(function(){p(l.uri,!0,function(e,t){c(e,"Failed to set Read-Write ACL on pad data file: "+t),e&&h.shift()()})}),h.push(function(){const e=E.appendChild(o.createElement("p"));e.setAttribute("style","font-size: 140%;"),e.innerHTML="Your <a href='"+u.uri+"'><b>new notepad</b></a> is ready. <br/><br/><a href='"+u.uri+"'>Go to new pad</a>"}),h.shift()()},m=function(t){y=i.authn.currentUser(),i.authn.checkUser().then(e=>{y=e});const a=s.any(e,r.ns.dc("title"))||s.any(e,r.ns.vcard("fn"));n.solo&&"undefined"!=typeof window&&a&&(window.document.title=a.value),L.exists=t,_=r.pad.notepad(o,k,e,y,L),A.appendChild(_);const c=s.any(e,r.ns.meeting("parentMeeting"))||e;if(r.pad.manageParticipation(o,R,k,c,y,L),!s.updater)throw new Error("Store has no updater");s.updater.setRefreshHandler(k,_.reloadAndSync)},g="app-pad.timbl.com",v=s.fetcher,b=s.updater;let y;const w=(0,a.Namespace)("http://www.w3.org/ns/pim/pad#"),x=e,k=e.doc();let _;const E=o.createElement("div"),C=E.appendChild(o.createElement("table"));C.setAttribute("style","background-color: white; min-width: 94%; margin-right:3% margin-left: 3%; min-height: 13em;");const S=C.appendChild(o.createElement("tr"));S.appendChild(o.createElement("td")),S.appendChild(o.createElement("td")),S.appendChild(o.createElement("td"));const A=C.appendChild(o.createElement("tr")).appendChild(o.createElement("td"));A.setAttribute("colspan","3");const T=C.appendChild(o.createElement("tr")),P=T.appendChild(o.createElement("td")),R=T.appendChild(o.createElement("td")),I=T.appendChild(o.createElement("td")),F=C.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),N=C.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),O=C.appendChild(o.createElement("tr"));O.setAttribute("class","naviMenu"),O.appendChild(o.createElement("td")),O.appendChild(o.createElement("td")),O.appendChild(o.createElement("td"));const L={statusArea:F,timingArea:P};return function(){if(!v)throw new Error("Have no fetcher");v.nowOrWhenFetched(k.uri,void 0,function(t,n,i){if(t)l(A),s.holds(e,r.ns.rdf("type"),r.ns.wf("TemplateInstance"))&&d(e,A,"pad"),m(!0),I.appendChild(function(){const t=E.appendChild(o.createElement("button"));return t.textContent="Start another pad",t.addEventListener("click",function(){return d(e,N,"pad")}),t}());else if(404===i.status){if(!b)throw new Error("Have no updater");b.put(k,[],"text/turtle",function(e,t,n){t?(l(A),m(!1)):c(t,"FAILED to create results file at: "+k.uri+" : "+n)})}else c(t,"FAILED to read results file: "+n)})}(),E}};t.default=o},8912(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_1619.svg",name:"playlistSlot",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store;return n.anyStatementMatching(e,r.ns.rdf("type"),n.sym("http://purl.org/ontology/pbo/core#PlaylistSlot"))?"playlist slot":null},render:function(e,t){const n=t.dom;const a=function(e,t){if(!t)return e;const i=n.createElement("a");return i.setAttribute("href",t),i.appendChild(e),i.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),i},o=function(e){return n.createTextNode(e)},s=t.session.store,c=s.any(e,i.sym("http://purl.org/ontology/pbo/core#playlist_item"));let l=s.any(e,i.sym("http://purl.org/ontology/olo/core#index")),u=c.uri;const p=function(e){if(!e)return{html5:!0};const t=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-_%]+)/i),n=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),r=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),i=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return t?{youtube:t}:n?{vimeo:n}:r?{dailymotion:r}:i?{vk:i}:void 0}(u),d=n.createElement("div");let f,h;if(p&&p.youtube?(u=u.replace("watch?v=","embed/"),d.setAttribute("class","imageView"),f=n.createElement("IFRAME"),f.setAttribute("src",u),f.setAttribute("width",560),f.setAttribute("height",315),f.setAttribute("frameborder",0),f.setAttribute("style","max-width: 850px; max-height: 100%;"),f.setAttribute("allowfullscreen","true")):(d.setAttribute("class","imageView"),f=n.createElement("IMG"),f.setAttribute("src",c.value),f.setAttribute("width",560),f.setAttribute("height",315),f.setAttribute("style","max-width: 560; max-height: 315;")),l){const t=s.statementsMatching(null,i.sym("http://purl.org/ontology/olo/core#index")),r=[];for(let e=0;e<t.length;e++)t[e]&&r.push(parseInt(t[e].object.value,10));l=parseInt(l.value,10),h=n.createElement("div");const c=r[(r.indexOf(l)-1+r.length)%r.length],u=r[(r.indexOf(l)+1+r.length)%r.length],p=a(o("<<"),e.uri.split("#")[0]+"#"+c);h.appendChild(p);const d=n.createElement("span");d.innerHTML=" Playlist slot : "+l+" ",h.appendChild(d);const f=a(o(">>"),e.uri.split("#")[0]+"#"+u);h.appendChild(f)}const m=n.createElement("TR");return m.appendChild(f),h&&m.appendChild(h),d.appendChild(m),d}}},2371(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerPanes=function(e){e(r.default);const t=r.default.editor;e(t),e(i.default),e(a.default),e(o.default),e(s.default),e(c.default),e(l.default),e(u.default),e(p.default),e(d.default),e(f.default),e(h.default),e(m.longChatPane),e(m.shortChatPane),e(g.schedulePane),e(v.default),e(b.imagePane),e(y.default),e(w.default),e(x.default),e(k.default),e(_.default),e(E.classInstancePane),e(C.slideshowPane),e(S.socialPane),e(A.default),e(T.dataContentPane),e(P.default),e(R.n3Pane),e(I.RDFXMLPane),e(F.formPane),e(N.tableViewPane),e(O.defaultPane),e(L.default),e(j.default),e(M.default),e(D.default)};var r=U(n(2643)),i=U(n(1917)),a=U(n(5682)),o=U(n(6106)),s=U(n(3931)),c=U(n(3955)),l=U(n(8938)),u=U(n(9370)),p=U(n(2368)),d=U(n(8131)),f=U(n(1927)),h=U(n(4036)),m=n(7052),g=n(9814),v=U(n(5130)),b=n(2168),y=U(n(8912)),w=U(n(6778)),x=U(n(6686)),k=U(n(2970)),_=U(n(1838)),E=n(5382),C=n(7978),S=n(7350),A=U(n(6380)),T=n(1424),P=U(n(3385)),R=n(7334),I=n(8236),F=n(5238),N=n(3472),O=n(4064),L=U(n(6682)),j=U(n(6298)),M=U(n(4930)),D=U(n(8426));function U(e){return e&&e.__esModule?e:{default:e}}},9814(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=r.ns,c=[s.sched("No"),s.sched("Maybe"),s.sched("Yes")];t.schedulePane={icon:r.icons.iconBase+"noun_346777.svg",name:"schedule",audience:[s.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/schedule#SchedulableEvent"]?"Scheduling poll":null},mintClass:s.sched("SchedulableEvent"),mintNew:function(e,t){return new Promise(function(n,o){const s=r.ns,c=e.session.store;let l=t.newBase;const u=t.useExisting||a.sym(t.newBase+"index.ttl#this"),p=function(e,t){e||o(new Error(t))},d=function(e,t,n){const i=a.graph(),o=a.Namespace("http://www.w3.org/ns/auth/acl#");let c=i.sym(t+"#a1");const l=i.sym(t),u=i.sym(e);return i.add(c,r.ns.rdf("type"),o("Authorization"),l),i.add(c,o("accessTo"),u,l),i.add(c,o("agent"),g,l),i.add(c,o("mode"),o("Read"),l),i.add(c,o("mode"),o("Write"),l),i.add(c,o("mode"),o("Control"),l),c=i.sym(t+"#a2"),i.add(c,r.ns.rdf("type"),o("Authorization"),l),i.add(c,o("accessTo"),u,l),i.add(c,o("agentClass"),s.foaf("Agent"),l),i.add(c,o("mode"),o("Read"),l),n&&i.add(c,o("mode"),o("Write"),l),a.serialize(l,i,t,"text/turtle")},f=function(e,t,n){const r=c.any(c.sym(e),c.sym("http://www.iana.org/assignments/link-relations/acl"));if(r){const i=d(e,r.uri,t);return h.webOperation("PUT",r.uri,{data:i,contentType:"text/turtle"}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})}return h.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=c.any(c.sym(e),c.sym("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const r=d(e,n.uri,t);return h.webOperation("PUT",n.uri,{data:r,contentType:"text/turtle"})}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})},h=c.fetcher,m=c.updater;let g=t.me||i.authn.currentUser();if(!g)return void alert("NOT LOGGED IN");const v=u.dir().uri;let b,y;if(t.useExisting){if(y=t.useExisting,l=u.dir().uri,b=y.doc(),t.newBase)throw new Error("mint new scheduler: Illegal - have both new base and existing event")}else b=c.sym(l+"details.ttl"),y=c.sym(b.uri+"#event");const w=c.sym(l+"results.ttl"),x=t.noIndexHTML?{}:[{local:"index.html",contentType:"text/html"}],k=[];for(let e=0;e<x.length;e++){const t=function(e){k.push(function(){const t=l+e.local;c.fetcher.webCopy(v+e.local,l+e.local,e.contentType).then(()=>i.authn.checkUser()).then(e=>{g=e,f(t,!1,function(e,n){e?k.shift()():p(e,"FAILED to set ACL "+t+" : "+n)})}).catch(t=>{p(!1,"FAILED to copy "+v+e.local+" : "+t.message)})})};t(x[e])}k.push(function(){c.add(y,s.rdf("type"),s.sched("SchedulableEvent"),b),g&&(c.add(y,s.dc("author"),g,b),c.add(y,s.foaf("maker"),g,b)),c.add(y,s.dc("created"),new Date,b),c.add(y,s.sched("resultsDocument"),b),m.put(b,c.statementsMatching(void 0,void 0,void 0,b),"text/turtle",function(e,t,n){t?k.shift()():p(t,"FAILED to save new scheduler at: "+b+" : "+n)})}),k.push(function(){c.fetcher.webOperation("PUT",w.uri,{data:"",contentType:"text/turtle"}).then(()=>{k.shift()()}).catch(e=>{p(!1,"Failed to initialize empty results file: "+e.message)})}),k.push(function(){f(w.uri,!0,function(e,t){p(e,"Failed to set Read-Write ACL on results file: "+t),e&&k.shift()()})}),k.push(function(){f(b.uri,!1,function(e,t){p(e,"Failed to set read ACL on configuration file: "+t),e&&k.shift()()})}),k.push(function(){t.newInstance=y,n(t)}),k.shift()()})},render:function(e,t){const n=t.dom,o=t.session.store,s=r.ns,l=e,u="app-when-can-we.w3.org",p=o.fetcher,d=o.updater;let f=!1;const h=e,m=e.doc(),g=m.dir().uri,v=a.sym(g+"results.ttl"),b="https://solidos.github.io/solid-panes/schedule/formsForSchedule.ttl",y=o.sym(b+"#form1"),w=o.sym(b+"#form2"),x=o.sym(b+"#form3");a.parse('@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n "Schedule event (single form).";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n "Schedule an event (wizard)";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents "Schedule an event" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n "128";\n ui:property\n cal:summary;\n ui:size\n "40".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n "512";\n ui:property\n cal:location;\n ui:size\n "40".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label "How many days?";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label "Duration (mins)";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# "1048";\n# ui:size\n# "40".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title "Select possible days or times"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents "Time proposals" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label "date".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label "date and time".\n\n ##################################\n\n <#form3> dc:title "Select invited people"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents "Who to invite" .\n\n# ENDS\n',o,b,"text/turtle");const k="background-color: #eef; padding: 0.5em; border: .5em solid white; font-size: 100%",_="width: 1.8em; height: 1.8em;",E=function(e,t){e||D.appendChild(r.widgets.errorMessageBlock(n,t,"pink"))},C=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},S=function(e,t){const n=o.any(t,r.ns.ui("backgroundColor"));n&&e.setAttribute("style","padding: 0.3em; text-align: center; background-color: "+n+";")};let A;i.authn.checkUser().then(e=>{A=e,z&&z.refresh(),e&&f&&(f=!1,I())});const T=function(e){let t=o.any(e,s.space("uriPrefix"));t=t?t.value:e.uri.split("#")[0],"/"!==t.slice(-1)&&(a.log.error(u+": No / at end of uriPrefix "+t),t+="/");const n=new Date;t+=u+"/id"+n.getTime()+"/",P(h,t)},P=function(e,r){const i={thisInstance:e,newBase:r};this.mintNew(t,i).then(function(e){const t=D.appendChild(n.createElement("p"));t.setAttribute("style","font-size: 140%;"),t.innerHTML="Your <a href='"+e.newInstance.uri+"'><b>new scheduler</b></a> is ready to be set up. <br/><br/><a href='"+e.newInstance.uri+"'>Say when you what days work for you.</a>"}).catch(function(e){E(!1,"Error createing new scheduler at "+i.newInstance+": "+e)})},R=function(){p.nowOrWhenFetched(m.uri,void 0,function(e,t){if(!e)return E(e,t);I()})},I=function(){i.authn.checkUser().then(t=>{if(!t)return F();if(!o.updater.editable(m.uri,o)||o.holds(e,s.rdf("type"),s.wf("TemplateInstance")))return void N(D);o.any(e,s.sched("ready"))?j():L()})},F=function(){C(H);const e={div:D,dom:n};r.login.ensureLoggedIn(e).then(e=>{A=e.me,f=!1,I()})},N=function(){const e=C(H);e.appendChild(r.login.newAppInstance(n,{noun:"poll"},T)),e.appendChild(n.createElement("hr"));e.appendChild(n.createElement("p")).textContent="Where would you like to store the data for the poll? Give the URL of the directory where you would like the data stored.";const t=e.appendChild(n.createElement("input"));t.setAttribute("type","text"),t.size=80,t.label="base URL",t.autocomplete="on",e.appendChild(n.createElement("br"));const i=e.appendChild(n.createElement("button"));i.setAttribute("style",k),i.textContent="Start new poll at this URI",i.addEventListener("click",function(e){let n=t.value;"/"!==n.slice(-1)&&(n+="/"),P(h,n)})},O=n.createElement("button"),L=function(){C(W);let t=0,i=!1;{const a=[y,w,x],o=[];t=0;for(let t=0;t<a.length;t++){const i=n.createElement("div");r.widgets.appendForm(document,i,{},e,a[t],m,E),o.push(i)}const s=function(){C(H).appendChild(o[t]),0===t?c.setAttribute("disabled",""):c.removeAttribute("disabled"),t===o.length-1?(u.setAttribute("disabled",""),i||(W.appendChild(l),W.appendChild(O),i=!0)):u.removeAttribute("disabled")},c=C($).appendChild(n.createElement("button"));c.setAttribute("style",k),c.textContent="<- go back",c.addEventListener("click",function(e){t>0&&(t-=1,s())},!1);const u=C(V).appendChild(n.createElement("button"));u.setAttribute("style",k),u.textContent="continue ->",u.addEventListener("click",function(e){t<o.length-1&&(t+=1,s())},!1),s()}const c=[];c.push(a.st(e,s.sched("availabilityOptions"),s.sched("YesNoMaybe"),m)),c.push(a.st(e,s.sched("ready"),new Date,m)),c.push(a.st(e,s.sched("results"),v,m)),O.setAttribute("style",k),O.textContent="Go to poll",O.addEventListener("click",function(t){o.any(e,s.sched("ready"))?(j(),V.appendChild(l)):(V.appendChild(l),o.updater.update([],c,function(e,t,n){t?j():E(t,n)}))},!1);const l=n.createElement("button");l.setAttribute("style",k);const u=l.appendChild(n.createElement("img"));u.setAttribute("src",r.icons.iconBase+"noun_480183.svg"),u.setAttribute("style",_),l.addEventListener("click",function(t){const n=o.anyValue(e,s.cal("summary"))||o.anyValue(e,s.dc("title"))||"",r="mailto:"+o.each(e,s.sched("invitee")).map(function(e){const t=o.any(e,s.foaf("mbox"));return t?t.uri.replace("mailto:",""):""}).join(",")+"?subject="+encodeURIComponent(n+"-- When can we meet?")+"&body="+encodeURIComponent(n+"\n\nWhen can you?\n\nSee "+e+"\n");window.location.href=r},!1)};function j(){p.nowOrWhenFetched(v.uri,(e,t,n)=>{e?(C(H),M()):404===n.status?d.put(v,[],"text/turtle",function(e,t,n){t?(C(H),M()):E(t,"FAILED to create results file at: "+v.uri+" : "+n)}):E(e,"FAILED to read results file: "+t)})}function M(){const t=o.any(l,s.cal("summary")),i=o.any(l,s.cal("comment")),u=o.any(l,s.cal("location")),p=H;t&&(p.appendChild(n.createElement("h3")).textContent=t),u&&(p.appendChild(n.createElement("address")).textContent=u.value),i&&(p.appendChild(n.createElement("p")).textContent=i.value);const d=o.any(l,s.dc("author"));if(d){const e=o.any(d,s.foaf("name"));e&&(p.appendChild(n.createElement("p")).textContent=e)}const f=new a.Query("Responses"),h={};["time","author","value","resp","cell"].forEach(function(e){f.vars.push(h[e]=a.variable(e))}),f.pat.add(l,s.sched("response"),h.resp),f.pat.add(h.resp,s.dc("author"),h.author),f.pat.add(h.resp,s.sched("cell"),h.cell),f.pat.add(h.cell,s.sched("availabilty"),h.value),f.pat.add(h.cell,s.cal("dtstart"),h.time);const m={};m.set_x=o.each(e,s.sched("option")),m.set_x=m.set_x.map(function(e){return o.any(e,s.cal("dtstart"))}),m.set_y=o.each(e,s.sched("response")),m.set_y=m.set_y.map(function(e){return o.any(e,s.dc("author"))});const g=o.each(l,s.sched("option")).map(function(e){return o.any(e,s.cal("dtstart"))}),b=function(){const e=p.appendChild(r.matrix.matrixForQuery(n,f,h.time,h.author,h.value,m,function(){}));e.setAttribute("class","matrix");const t=n.createElement("button");t.setAttribute("style",k);const i=n.createElement("img");i.setAttribute("src",r.icons.iconBase+"noun_479395.svg"),i.setAttribute("style",_),t.appendChild(i),t.addEventListener("click",function(n){t.disabled=!0,o.fetcher.refresh(v,function(n,r){n&&(e.refresh(),t.disabled=!1)})},!1),C(W),W.appendChild(t)},y=[],w={div:W,dom:n};r.login.ensureLoggedIn(w).then(e=>{const t=e.me,i=v;m.set_y=m.set_y.filter(function(e){return!e.sameTerm(t)}),m.set_y.push(t),m.cellFunction=function(e,i,a,l){if(null!==l&&o.fetcher.nowOrWhenFetched(l.uri.split("#")[0],void 0,function(t,n){t&&S(e,l)}),a.sameTerm(t)){const t=function(){S(e,l)},a={},u=s.sched("availabilty"),p=y[i.toNT()],d=r.widgets.makeSelectForOptions(n,o,p,u,c,a,v,t);e.appendChild(d)}else null!==l&&(e.textContent=r.utils.label(l))};const u=o.each(l,s.sched("response"));let p=null;u.forEach(function(e){o.holds(e,s.dc("author"),t)&&(p=e)});const d=[],f=r.widgets.newThing(i).uri;if(null===p)p=a.sym(f+"_response"),d.push(a.st(l,s.sched("response"),p,i)),d.push(a.st(p,s.dc("author"),t,i));else{o.each(p,s.sched("cell")).forEach(function(e){const t=o.any(e,s.cal("dtstart"));y[t.toNT()]=e})}for(let e=0;e<g.length;e++){if(y[g[e].toNT()])continue;const t=a.sym(f+"_"+e);d.push(a.st(p,s.sched("cell"),t,i)),d.push(a.st(t,s.cal("dtstart"),g[e],i)),y[g[e].toNT()]=t}d.length?o.updater.update([],d,function(e,t,n){t?b():E(t,n)}):b()});const x=o.any(e,s.foaf("maker"));if(!x||x.sameTerm(A)){const e=n.createElement("button");e.setAttribute("style",k);const t=n.createElement("img");t.setAttribute("src",r.icons.iconBase+"noun_344563.svg"),t.setAttribute("style",_),e.appendChild(t),e.addEventListener("click",function(e){C(p),L()},!1),C($),$.appendChild(e)}C(V),V.appendChild(function(){const e=r.login.newAppInstance(n,{noun:"scheduler"},T);return e.firstChild.setAttribute("style",k),e}())}const D=n.createElement("div"),U=D.appendChild(n.createElement("table"));U.setAttribute("style","background-color: white; min-width: 40em; min-height: 13em;");const B=U.appendChild(n.createElement("tr"));B.appendChild(n.createElement("td")),B.appendChild(n.createElement("td")),B.appendChild(n.createElement("td"));const z=null,H=U.appendChild(n.createElement("tr")).appendChild(n.createElement("td"));H.setAttribute("colspan","3");const q=U.appendChild(n.createElement("tr"));q.setAttribute("class","naviMenu"),q.setAttribute("style"," text-align: middle; vertical-align: middle; padding-top: 4em; ");const $=q.appendChild(n.createElement("td")),W=q.appendChild(n.createElement("td")),V=q.appendChild(n.createElement("td"));return R(),D}}},6298(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500);const i={icon:r.icons.iconBase+"padlock-timbl.svg",name:"sharing",label:(e,t)=>{const n=t.session.store.findTypeURIs(e);return n[r.ns.ldp("Resource").uri]||n[r.ns.ldp("Container").uri]||n[r.ns.ldp("BasicContainer").uri]?"Sharing":null},render:(e,t)=>{const n=t.dom,i=t.session.store,a=function(){const t=i.findTypeURIs(e);if(t[r.ns.ldp("BasicContainer").uri]||t[r.ns.ldp("Container").uri])return"folder";return"file"}(),o=n.createElement("div");return o.classList.add("sharingPane"),r.aclControl.preventBrowserDropEvents(n),o.appendChild(r.aclControl.ACLControlBox5(e,t,a,i)),o}};t.default=i},7978(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.slideshowPane=void 0;var r,i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500)),a=(r=n(6305))&&r.__esModule?r:{default:r};const o=i.ns;t.slideshowPane={icon:i.icons.iconBase+"noun_138712.svg",name:"slideshow",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,r=i.ns,a=n.findTypeURIs(e);if(a[r.ldp("Container").uri]||a[r.ldp("BasicContainer").uri]){const t=n.each(e,r.ldp("contains"));let a=0;return t.forEach(function(e){i.widgets.isImage(e)&&a++}),a>0?"Slideshow":null}return null},render:function(e,t){const n=t.dom;i.widgets.addStyleSheet(n,"https://leemark.github.io/better-simple-slideshow/css/simple-slideshow-styles.css");const r=t.session.store,o=i.ns,s=n.createElement("div");s.setAttribute("class","bss-slides");const c=r.findTypeURIs(e);let l;(c[o.ldp("BasicContainer").uri]||c[o.ldp("Container").uri])&&(l=o.ldp("contains"));const u=r.each(e,l);u.sort();for(let e=0;e<u.length;e++){if(!i.widgets.isImage(u[e]))continue;const t=s.appendChild(n.createElement("figure")),a=t.appendChild(n.createElement("img"));r.fetcher._fetch(u[e].uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("width","100%"),t.appendChild(n.createElement("figcaption"))}const p={dom:n};return setTimeout(function(){(0,a.default)(".bss-slides",p)},1e3),s}}},7350(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.socialPane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.socialPane={icon:r.icons.originalIconBase+"foaf/foafTiny.gif",name:"social",label:function(e,t){const n=t.session.store.findTypeURIs(e);return n[r.ns.foaf("Person").uri]||n[r.ns.vcard("Individual").uri]?"Friends":null},render:function(e,t){const n=t.dom,o=function(e){const t=n.createElement("p");t.textContent=e,x.appendChild(t)},s=function(e,t){if(!t)return e;const r=n.createElement("a");return r.setAttribute("href",t),r.appendChild(e),r},c=function(e){return n.createTextNode(e)},l=t.getOutliner(n),u=t.session.store,p=n.createElement("div");p.setAttribute("class","socialPane");const d=r.ns.foaf,f=r.ns.vcard,h="background-color: #eee; width: 25%; border: 0; padding: 0.5em; margin: 0;",m=p.appendChild(n.createElement("table")).appendChild(n.createElement("tr")),g=m.appendChild(n.createElement("td")),v=m.appendChild(n.createElement("td")),b=m.appendChild(n.createElement("td")),y=g;y.style.cssText=h;const w=v.appendChild(n.createElement("table"));w.style.cssText="background-color: #fff; color: #000; width: 46%; margin: 0; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 0;";const x=b;x.style.cssText=h;const k=u.any(e,d("img"))||u.any(e,d("depiction"));if(k){const e=n.createElement("IMG");e.setAttribute("src",k.uri),e.style.cssText=" width: 100% ; border: none; margin: 0; padding: 0;",y.appendChild(e)}const _=u.anyValue(e,d("name"))||"???";let E=n.createElement("H3");E.appendChild(n.createTextNode(_));let C=i.authn.currentUser();const S=C?C.uri:null,A=r.login.loginStatusBox(n,e=>{C=u.sym(e),r.widgets.refreshTree(p)});x.appendChild(A);const T=C&&u.sameThings(C,e),P=d("knows"),R=u.anyValue(e,d("givenname"))||u.anyValue(e,d("firstName"))||u.anyValue(e,d("nick"))||u.anyValue(e,d("name"))||u.anyValue(e,f("fn")),I=u.each(e,P);let F,N,O=null,L=!1;if(C){const t=u.each(void 0,d("primaryTopic"),C);let i="";for(let e=0;e<t.length;e++)if(u.whether(t[e],r.ns.rdf("type"),d("PersonalProfileDocument"))){if(L=l.UserInput.sparqler.editable(t[e].uri,u),L){O=t[e];break}i+="Your profile <"+r.utils.escapeForXML(t[e].uri)+"> is not remotely editable."}if(O?(o("Editing your profile "+O+"."),L=l.UserInput.sparqler.editable(O.uri,u)):o(i+"\nI couldn't find your editable personal profile document."),T);else{E=n.createElement("h3"),E.appendChild(n.createTextNode("You and "+R)),y.appendChild(E);const t=u.canon(C);F=u.whether(e,P,t),N=!1;const i=u.statementsMatching(t,P,e);i.length&&(N=!0,O||(O=i[0].why));const o=n.createElement("tr");y.appendChild(o);const p=function(){o.appendChild(s(c("You"),S)),o.appendChild(c(" and ")),o.appendChild(s(c(R),e.uri))};if(F?N?(p(),o.appendChild(c(" say you know each other."))):(o.appendChild(s(c(R),e.uri)),o.appendChild(c(" knows ")),o.appendChild(s(c("you"),S)),o.appendChild(c(" (unconfirmed).")),o.appendChild(c(" confirm you know ")),o.appendChild(s(c(R),e.uri)),o.appendChild(c("."))):N?(o.appendChild(s(c("You"),S)),o.appendChild(c(" know ")),o.appendChild(s(c(R),e.uri)),o.appendChild(c(" (unconfirmed)"))):(p(),o.appendChild(c(" have not said you know each other."))),L){const t=function(e,t,i){const a=n.createElement("form"),o=n.createElement("input");a.appendChild(o);const s=n.createTextNode(e);return s.className="question",a.appendChild(s),o.setAttribute("type","checkbox"),o.checked=i,o.addEventListener("click",function(e){if(s.className="pendingedit",this.checked)try{l.UserInput.sparqler.insert_statement(t,function(e,n,i){if(s.className="question",!n)return r.log.alert(null,"Message","Error occurs while inserting "+t+"\n\n"+i),void(o.checked=!1);u.add(t.subject,t.predicate,t.object,t.why)})}catch(e){r.log.error("Data write fails:"+e),r.log.alert("Data write fails:"+e),o.checked=!1,s.className="question"}else try{l.UserInput.sparqler.delete_statement(t,function(e,n,i){s.className="question",n?u.removeMany(t.subject,t.predicate,t.object,t.why):(r.log.alert("Error occurs while deleting "+t+"\n\n"+i),this.checked=!0)})}catch(e){r.log.alert("Delete fails:"+e),this.checked=!0}},!1),a}("You know "+R,new a.Statement(C,P,e,O),N);y.appendChild(t)}if(I){const e=u.each(C,d("knows"));if(e.length){const t=function(e,t){const n=[];for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)if(t[i].sameTerm(e[r])){n.push(t[i]);break}return n}(I,e),i=n.createElement("tr");if(y.appendChild(i),i.appendChild(n.createTextNode("You"+(R?" and "+R:"")+" know"+function(e){let t=" ";return t+=e||"no",1===e?t+" person":t+" people"}(t.length)+" found in common")),t)for(let e=0;e<t.length;e++)i.appendChild(n.createTextNode(", "+r.utils.label(t[e])))}const t=n.createElement("tr");y.appendChild(t)}}}r.widgets.attachmentList(n,e,w,{doc:O,modify:!!L,predicate:d("knows"),noun:"friend"}),E=n.createElement("h3"),E.appendChild(n.createTextNode("Basic Information")),y.appendChild(E);const j=[r.ns.foaf("homepage"),r.ns.foaf("weblog"),r.ns.foaf("workplaceHomepage"),r.ns.foaf("schoolHomepage")];for(let t=0;t<j.length;t++){const i=j[t],a=u.statementsMatching(e,i);if(0===a.length);else{const e=[];for(let t=0;t<a.length;t++){const n=a[t];n.object.uri&&e.push(n.object.uri)}e.sort();let t,o="";for(let a=0;a<e.length;a++){const s=e[a];if(s===o)continue;o=s;let c="";if(t=r.utils.label(i),e.length>1){const e=s.indexOf("//");if(e>0){let t=s.indexOf("/",e+2);const n=s.lastIndexOf(".",t);n>0&&(t=n),c=s.slice(e+2,t)}}c&&(t=c+" "+t);const l=n.createTextNode(t),u=n.createElement("a");u.appendChild(l),u.setAttribute("href",s);const p=n.createElement("div");p.style.cssText="width: 80%; background-color: #fff; border: solid 0.05em #ccc; margin-top: 0.1em; margin-bottom: 0.1em; padding: 0.1em; text-align: center;",p.appendChild(u),y.appendChild(p)}}}const M=[r.ns.foaf("openid"),r.ns.foaf("nick")];for(let t=0;t<M.length;t++){const n=M[t],r=u.statementsMatching(e,n);0===r.length||l.appendPropertyTRs(y,r,!1,function(e){return!0})}return p}}},4036(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500);const i={icon:r.icons.iconBase+"noun_688606.svg",name:"tabbed",audience:[r.ns.solid("PowerUser")],label:(e,t)=>{const n=t.session.store.findTypeURIs(e);return r.ns.meeting("Cluster").uri in n?"Tabbed":null},render:(e,t)=>{const n=t.dom,i=t.session.store,a=n.createElement("div");return(async()=>{if(!i.fetcher)throw new Error("Store has no fetcher");await i.fetcher.load(e),a.appendChild(r.tabs.tabWidget({dom:n,subject:e,predicate:i.any(e,r.ns.meeting("predicate"))||r.ns.meeting("toolList"),ordered:!0,orientation:i.anyValue(e,r.ns.meeting("orientation"))||"0",renderMain:(e,n)=>{e.innerHTML="";const r=e.appendChild(t.dom.createElement("table"));t.getOutliner(t.dom).GotoSubject(n,!0,null,!1,void 0,r)},renderTab:(n,a)=>{const o=i.the(e,r.ns.meeting("predicate"));n.appendChild(r.widgets.personTR(t.dom,o,a,{}))},backgroundColor:i.anyValue(e,r.ns.ui("backgroundColor"))||"#ddddcc"}))})(),a}};t.default=i},3472(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableViewPane=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.tableViewPane={icon:r.icons.originalIconBase+"table.png",name:"tableOfClass",label:function(e,t){const n=t.session.store;if(!n.any(void 0,r.ns.rdf("type"),e))return null;const i=n.statementsMatching(void 0,r.ns.rdf("type"),e).length;return 0===i||i>15?null:r.utils.label(e)+" table"},render:function(e,t){const n=t.dom,i=n.createElement("div");return i.setAttribute("class","tablePane"),i.appendChild(r.table(n,{tableClass:e})),i}}},2368(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_106746.svg",name:"transaction",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,i=n.findTypeURIs(e);return i["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]?"$$":n.any(e,r.ns.qu("amount"))?"$$$":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(e,t){const n=t.dom,a=t.session.store,s=a.fetcher,c=i.Namespace("http://www.w3.org/2000/10/swap/pim/qif#"),l=i.Namespace("http://www.w3.org/ns/pim/trip#"),u=n.createElement("div");u.setAttribute("class","transactionPane");const p=function(e){return function(e,t){void 0===t&&(t="color: grey");const r=n.createElement("pre");r.setAttribute("style",t),u.appendChild(r),r.appendChild(n.createTextNode(e))}(e,"color: #100; background-color: #fee")},d=a.statementsMatching(e),f=a.statementsMatching(void 0,void 0,e),h=a.findTypeURIs(e),m={},g=function(e){m[e.uri]=!0},v=function(e){if(void 0===e)return"";const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"},b=function(e,t){const r=n.createElement("td");return 0+e===0&&t||(r.textContent=v(e)),r.setAttribute("style","width: 6em; text-align: right; "),r},y=function(e){const t=n.createElement("th");return t.textContent=e,t.setAttribute("style","text-align: right; "),t},w=function(e,t){const n=a.any(e,o.qu("date")),r=a.any(t,o.qu("date"));if(void 0!==n&&void 0!==r){if(n.value<r.value)return-1;if(n.value>r.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0},x=function(e,n,r,i,a){n.expanded?(n.parentNode.removeChild(n.expanded),n.expanded=!1):function(e,n,r,i,a){const o=n.parentNode.children;if(a)for(let e=o.length-1;e>=0;e--)o[e].expanded&&(o[e].parentNode.removeChild(o[e].expanded),o[e].expanded=!1);const s=e.createElement("tr"),c=s.appendChild(e.createElement("td"));c.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const l=n.children.length;n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),n.expanded=s,c.setAttribute("colspan",""+l),c.appendChild(function(e,t,n){const r=e.session.paneRegistry.byName(n).render(t,e);return r.setAttribute("style","border: 0.1em solid green;"),r}(t,r,i))}(e,n,r,i,a)};if(h["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]||a.any(e,o.qu("toAccount"))){g(o.rdf("type"));const h=a.any(e,r.ns.qu("toAccount"));!function(e){let t="padding: 0.5em 1.5em 1em 1.5em; ";if(e){const n=a.any(e,r.ns.ui("backgroundColor"));n&&(t+="background-color: "+n.value+"; ")}u.setAttribute("style",t)}(h),h||p("(Error: There is no bank account known for this transaction <"+e.uri+">,\n -- every transaction needs one.)");let v=null;const b=a.any(e,r.ns.qu("accordingTo"));void 0===b?p("(Error: There is no back link to the original data source foir this transaction <"+e.uri+">,\nso I can't tell how to annotate it.)"):(v=void 0!==b?a.any(b,r.ns.qu("annotationStore")):null,void 0===v&&p("(There is no annotation document for this statement\n<"+b.uri+">,\nso you cannot classify this transaction.)"));const y=n.createElement("div");y.setAttribute("style","float:right"),u.appendChild(y);const w=function(t,i){g(t);const o=a.any(e,t);if(!o)return;const s=n.createElement("a");s.setAttribute("href",o.uri),s.setAttribute("style","float:right"),y.appendChild(s).textContent=i||r.utils.label(o),y.appendChild(n.createElement("br"))};w(r.ns.qu("toAccount")),w(r.ns.qu("accordingTo"),"Statement"),w(l("trip"));const x=n.createElement("table");u.appendChild(x);const k=["date","payee","amount","in_USD","currency"].map(c).map(function(t){g(t);const n=a.any(e,t),i=n?r.utils.labelForXML(n):"";return'<tr><td style="text-align: right; padding-right: 0.6em">'+r.utils.labelForXML(t)+'</td><td style="font-weight: bold;">'+i+"</td></tr>"}).join("\n");x.innerHTML=k;const _=function(e,t){e||p("Sorry, failed to save your change:\n"+t)};v&&a.fetcher.nowOrWhenFetched(v.uri,e,function(c,h){c||p("Cannot load store "+v+" "+h);const b=a.any(v,o.qu("calendarYear")),y=function(){u.insertBefore(r.widgets.makeSelectForNestedCategory(n,a,e,r.ns.qu("Classified"),v,_),x.nextSibling)};a.any(void 0,o.rdfs("subClassOf"),o.qu.Classified)?y():b&&s.load(b).then(function(e){s.load(a.each(b,o.rdfs("seeAlso"))).then(function(){y()}).catch(function(e){})}).catch(function(e){}),u.appendChild(r.widgets.makeDescription(n,a,e,r.ns.rdfs("comment"),v,_));let w=a.statementsMatching(void 0,l("trip"),void 0,v).map(function(e){return e.object});const k=a.each(void 0,r.ns.rdf("type"),l("Trip"));w=w.concat(k).sort();w=function(e,t,n,r){const i=t.map(function(t){let r=e.any(t,n);return r=r?r.value:"9999-12-31",[r,t]});return i.sort(),r&&i.reverse(),i.map(function(e){return e[1]})}(a,w,r.ns.cal("dtstart"),!0),w.length>1&&u.appendChild(r.widgets.makeSelectForOptions(n,a,e,l("trip"),w,{multiple:!1,nullLabel:"-- what trip? --",mint:"New Trip *",mintClass:l("Trip"),mintStatementsFun:function(e){const t=[];return t.push(i.st(e,r.ns.rdf("type"),l("Trip"),e.doc())),t}},v,_)),u.appendChild(n.createElement("br"));const E=t.getOutliner(n);g(o.rdfs("comment")),r.widgets.attachmentList(n,e,u),g(o.wf("attachment")),u.appendChild(n.createElement("tr")).setAttribute("style","height: 1em"),E.appendPropertyTRs(u,d,!1,function(e,t){return!(e.uri in m)}),E.appendPropertyTRs(u,f,!0,function(e,t){return!(e.uri in m)})})}else if(h["http://www.w3.org/ns/pim/trip#Trip"]){const t=function(){const t={},i={},s={},c=a.each(void 0,l("trip"),e),d=c.map(function(e){return e.doc()});a.fetcher.load(d).then(function(){c.forEach(function(e){const n=a.the(e,o.qu("date")),c=n?(""+n.value).slice(0,4):"????";let l=a.the(e,o.rdf("type"));if(l||(l=r.ns.qu("ErrorNoType")),l&&l.uri){const n=l.uri;i[c]||(i[c]=0),s[c]||(s[c]={}),t[n]||(t[n]=0),s[c][n]||(s[c][n]=0);const o=a.any(e,r.ns.qu("in_USD"));if(o||p("@@ No amount in USD: "+o+" for "+e),o){const e=parseFloat(o.value);t[n]+=e,s[c][n]+=e,i[c]+=e}}});const l=[];let d=0;const f=[];let h;for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&f.push(e);f.sort();const m=f.length;let g;const k=u.appendChild(n.createElement("table"));if(k.setAttribute("style","font-size: 120%; margin-left:auto; margin-right:1em; margin-top: 1em; border: 0.05em solid gray; padding: 1em;"),m>1){const e=k.appendChild(n.createElement("tr"));for(e.appendChild(y("")),h=0;h<m;h++)e.appendChild(y(f[h]));e.appendChild(y("total"))}for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(l.push(e),d+=t[e]);let _,E,C;l.sort();for(let e=0;e<l.length;e++){const i=a.sym(l[e]);if(_=k.appendChild(n.createElement("tr")),E=_.appendChild(n.createElement("td")),E.textContent=r.utils.label(i),m>1)for(h=0;h<m;h++)C=s[f[h]][l[e]],g=_.appendChild(b(C,!0));_.appendChild(b(t[l[e]],!0))}if(l.length>1){if(_=k.appendChild(n.createElement("tr")),_.appendChild(y("total")),m>1)for(h=0;h<m;h++)C=i[f[h]],g=_.appendChild(b(C?v(C):""));g=_.appendChild(b(d)),g.setAttribute("style","font-weight: bold; text-align: right;")}const S=function(e,t,n){const i=e.createElement("table");i.setAttribute("style","padding-left: 0.5em; padding-right: 0.5em; font-size: 9pt; width: 85%;");const s=function(e,t){const n=e.createElement("tr"),i=a.any(t,o.qu("toAccount"));!function(e,t){let n="'padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.1em;";if(t){const e=a.any(t,r.ns.ui("backgroundColor"));e&&(n+="background-color: "+e.value+"; ")}e.setAttribute("style",n)}(n,i);const s=n.appendChild(e.createElement("td")),c=a.any(t,o.qu("date"));s.textContent=c?c.value.slice(0,10):"???",s.setAttribute("style","width: 7em;");const l=n.appendChild(e.createElement("td"));l.setAttribute("style","width: 36em;");const u=a.any(t,o.qu("payee"));l.textContent=u?u.value:"???";const p=l.appendChild(e.createElement("a"));p.textContent=" ➜",p.setAttribute("href",t.uri);const d=n.appendChild(e.createElement("td")),f=a.any(t,o.qu("in_USD"));return d.textContent=f?v(f.value):"???",d.setAttribute("style","width: 6em; text-align: right; "),n.addEventListener("click",function(r){x(e,n,t,"transaction",!r.shiftKey)},!1),n},c=n?t.filter(n):t.slice();c.sort(w);for(let t=0;t<c.length;t++)i.appendChild(s(e,c[t]));return i}(n,c);S.setAttribute("style","margin-left:auto; margin-right:1em; margin-top: 1em; border: padding: 1em;"),u.appendChild(S),r.widgets.attachmentList(n,e,u)}).catch(function(e){p("Error loading transactions: "+e)})};t()}return u}}},8131(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));const i=r.ns;t.default={icon:r.icons.iconBase+"noun_142708.svg",name:"period",audience:[i.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/2000/10/swap/pim/qif#Period"]?"period":null},render:function(e,t){const n=t.dom,i=t.session.store,a=r.ns,o=n.createElement("div");o.setAttribute("class","periodPane");const s=function(e,t){t||(t="color: grey;");const r=n.createElement("pre");r.setAttribute("style",t),o.appendChild(r),r.appendChild(n.createTextNode(e))},c=function(e){return s("✓ "+e,"color: #010; background-color: #efe")},l=function(e){return s(e,"color: #100; background-color: #fee")},u=function(){const s=i.any(e,a.cal("dtstart"));void 0===s&&l("(Error: There is no start date known for this period <"+e.uri+">,\n -- every period needs one.)");const u=i.any(e,a.cal("dtend"));void 0===u&&l("(Error: There is no end date known for this period <"+e.uri+">,\n -- every period needs one.)");const p={};var d;d=a.rdf("type"),p[d.uri]=!0;const f=function(e){return!!((t=i.any(e,a.qu("date")))&&t>=s&&t<u);var t},h=function(e,t){const n=i.any(e,a.qu("date")),r=i.any(t,a.qu("date"));if(void 0!==n&&void 0!==r){if(n.value<r.value)return-1;if(n.value>r.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0};o.appendChild(n.createElement("h2")).textContent="Period "+s.value.slice(0,10)+" - "+u.value.slice(0,10);const m=function(e,n,r,i,a){n.expanded?(n.parentNode.removeChild(n.expanded),n.expanded=!1):function(e,n,r,i,a){const o=n.parentNode.children;if(a)for(let e=o.length-1;e>=0;e--)o[e].expanded&&(o[e].parentNode.removeChild(o[e].expanded),o[e].expanded=!1);const s=e.createElement("tr"),c=s.appendChild(e.createElement("td"));c.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const l=n.children.length;n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),n.expanded=s,c.setAttribute("colspan",""+l),c.appendChild(function(e,t,n){const r=e.session.paneRegistry.byName(n).render(t,e);return r.setAttribute("style","border: 0.1em solid green;"),r}(t,r,i))}(e,n,r,i,a)},g=function(e,t){const n=e.createElement("table");n.setAttribute("style","margin-left: 100; font-size: 9pt; width: 85%;");const o=function(e,t){const n=e.createElement("tr"),o=i.any(t,a.qu("toAccount"));!function(e,t){let n="margin-left: 8em; padding-left: 5em;";if(t){const e=i.any(t,r.ns.ui("backgroundColor"));e&&(n+="background-color: "+e.value+"; ")}e.setAttribute("style",n)}(n,o);const s=n.appendChild(e.createElement("td")),c=i.any(t,a.qu("date"));s.textContent=c?c.value.slice(0,10):"???",s.setAttribute("style","width: 7em;");const l=n.appendChild(e.createElement("td"));l.setAttribute("style","width: 36em;");const u=i.any(t,a.qu("payee"));l.textContent=u?u.value:"???";const p=l.appendChild(e.createElement("a"));p.textContent=" ➜",p.setAttribute("href",t.uri);const d=n.appendChild(e.createElement("td")),f=i.any(t,a.qu("in_USD"));return d.textContent=f?function(e){const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"}(f.value):"???",d.setAttribute("style","width: 6em; text-align: right; "),n.addEventListener("click",function(r){m(e,n,t,"transaction",!r.shiftKey)},!1),n},s=t.filter(f);s.sort(h);for(let t=0;t<s.length;t++)n.appendChild(o(e,s[t]));return n},v={"http://www.w3.org/2000/10/swap/pim/qif#Transaction":!0,"http://www.w3.org/2000/10/swap/pim/qif#Unclassified":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedOutgoing":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedIncome":!0},b=i.findMemberURIs(a.qu("Transaction")),y=[],w=[];let x,k,_,E;for(const e in b)if(Object.prototype.hasOwnProperty.call(b,e)){k=i.sym(e);const t=i.each(k,a.rdf("type"));let n=!1;for(let e=0;e<t.length;e++){void 0===v[t[e].uri]&&(n=!0)}n||(x=i.any(k,a.qu("in_USD")),void 0===x&&(x=i.any(k,a.qu("amount"))),x&&(""+x.value).indexOf("-")>=0?w.push(i.sym(e)):y.push(i.sym(e)))}y.length?(_=g(n,y),E=_.children.length,o.appendChild(n.createElement("h3")).textContent="Unclassified Income"+(E<4?"":" ("+E+")"),o.appendChild(_)):c("No unclassified income"),w.length?(_=g(n,w),E=_.children.length,o.appendChild(n.createElement("h3")).textContent="Unclassified Outgoings"+(E<4?"":" ("+E+")"),o.appendChild(_)):c("No unclassified outgoings ");const C=function(e,t){const s=function(e){const t=i.findSubClassesNT(a.qu("Transaction"));for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n.slice(1,-1).split("#")[1]===e)return i.sym(n.slice(1,-1));return null}(e);let c;const u=[];let p=0;if(!s)return l("Error: No category correspnding to "+e),null;const d=i.each(void 0,a.rdf("type"),s);for(let e=0;e<d.length;e++)i.any(d[e],t)||u.push(d[e]);return u.length&&(c=g(n,u),p=c.children.length,o.appendChild(n.createElement("h3")).textContent=r.utils.label(s)+" with no "+r.utils.label(t)+(p<4?"":" ("+p+")"),o.appendChild(c)),p};0===C("Reimbursables",a.trip("trip"))&&c("Reimbursables all have trips"),0===C("Other_Inc_Speaking",a.trip("trip"))&&c("Speaking income all has trips")};if(i.findTypeURIs(e)["http://www.w3.org/2000/10/swap/pim/qif#Period"]){const t=i.each(e,a.rdfs("seeAlso"));i.fetcher.load(t).then(function(){u()})}return o}}},5130(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_62007.svg",name:"travel expenses",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,i=n.findTypeURIs(e);return r.ns.qu("Transaction")in n.findSuperClassesNT(e)?"by Trip":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(e,t){const n=t.dom,a=t.store,o=r.ns,s=i.Namespace("http://www.w3.org/2002/12/cal/ical#"),c=i.Namespace("http://www.w3.org/ns/pim/trip#"),l=n.createElement("div");l.setAttribute("class","transactionPane"),l.innerHTML="<h2>Trip transactions</h2>";const u=function(e,t){void 0===t&&(t="color: grey");const r=n.createElement("pre");r.setAttribute("style",t),l.appendChild(r),r.appendChild(n.createTextNode(e))},p=a.findTypeURIs(e),d=function(e,t){const s=new i.Query(r.utils.label(e)),l={};["date","transaction","comment","type","in_USD"].forEach(function(e){s.vars.push(l[e]=i.variable(e))}),s.pat.add(l.transaction,c("trip"),e);const p=a.formula();p.add(l.transaction,o.rdf("type"),l.type),s.pat.optional.push(p),s.pat.add(l.transaction,r.ns.qu("date"),l.date),p.add(l.transaction,o.rdfs("comment"),l.comment),s.pat.optional.push(p),s.pat.add(l.transaction,r.ns.qu("in_USD"),l.in_USD);const d=r.table(n,{query:s,onDone:function(){const t={},n=a.each(void 0,c("trip"),e);n.forEach(function(e){let n=a.the(e,o.rdf("type"));if(n||(n=r.ns.qu("ErrorNoType")),n&&n.uri){const i=n.uri;t[i]||(t[i]=0);const o=a.any(e,r.ns.qu("in_USD"));o||u(" @@ No amount in USD: "+o+" for "+e),o&&(t[i]=t[i]+parseFloat(o.value))}});let i="",s=0,l=0;for(const e in t)i+=r.utils.label(a.sym(e))+": "+t[e]+"; ",s++,l+=t[e];u("Totals of "+n.length+" transactions: "+i,""),s>1&&u("Overall net: "+l,"text-treatment: bold;")}});t.appendChild(d)};if(r.ns.qu("Transaction")in a.findSuperClassesNT(e)){const t=a.each(void 0,o.rdf("type"),e),n=[],i=[];for(let e=0;e<t.length;e++){const o=t[e],s=a.any(o,c("trip"));if(s){o in i||(i[s]={total:0,transactions:[]});const e=a.any(o,r.ns.qu("in_USD"));e&&(i[s].total+=e);const t=a.any(o,r.ns.qu("date"));i[s.toNT()].transactions.push([t,o])}else n.push(o)}const u=[];for(const e in i){const t=a.fromNT(e);u.push([a.any(t,s("dtstart")),t])}u.sort();for(let e=0;e<u.length;e++){d(u[e][1],l)}}else p["http://www.w3.org/ns/pim/trip#Trip"]&&d(e,l);return l}}},5438(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationTable=function e(t){const n=c("table",{class:"results"}),r=l("tr",[u("th","Application URL"),u("th","Access modes"),u("th","Actions")]);return n.appendChild(r),a.store.each(t,i.ns.acl("trustedApp"),void 0,void 0).flatMap(e=>a.store.each(e,i.ns.acl("origin"),void 0,void 0).map(t=>({appModes:a.store.each(e,i.ns.acl("mode"),void 0,void 0),origin:t}))).sort((e,t)=>e.origin.value<t.origin.value?-1:1).forEach(({appModes:e,origin:r})=>n.appendChild(s(t,r,e,o))),n.appendChild(s(t,null,[i.ns.acl("Read")],o)),n;function o(){n.parentElement.replaceChild(e(t),n)}},t.createContainer=l,t.createText=u;var r=n(8230),i=n(500),a=n(9332),o=n(8847);function s(e,t,n,s){const d={origin:t,appModes:n,formElements:{modes:[],origin:void 0}};return l("tr",[l("td",[l("form",[c("input",{class:"textinput",placeholder:"Write new URL here",value:t?t.value:""},{},e=>{d.formElements.origin=e})],{},{submit:f})]),l("td",[l("form",p(d),{},{submit:f})]),l("td",[l("form",t?[u("button","Update",{class:"controlButton",style:"background: LightGreen;"}),u("button","Delete",{class:"controlButton",style:"background: LightCoral;"},{click:function(t){let n;t.preventDefault();try{n=(0,r.sym)(d.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to remove trust from")}const s=(0,o.getStatementsToDelete)(n,e,a.store,i.ns);if(!a.store.updater)throw new Error("Store has no updater");a.store.updater.update(s,[],h)}})]:[u("button","Add",{class:"controlButton",style:"background: LightGreen;"})],{},{submit:f})])]);function f(t){let n;t.preventDefault();try{n=(0,r.sym)(d.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to trust")}const s=d.formElements.modes.filter(e=>e.checked).map(e=>e.value),c=(0,o.getStatementsToDelete)(d.origin||n,e,a.store,i.ns),l=(0,o.getStatementsToAdd)(n,(0,o.generateRandomString)(),s,e,i.ns);if(!a.store.updater)throw new Error("Store has no updater");a.store.updater.update(c,l,h)}function h(e,t,n){if(t)return s()}}function c(e,t={},n={},r=null){const i=document.createElement(e);return r&&r(i),Object.keys(t).forEach(e=>{i.setAttribute(e,t[e])}),Object.keys(n).forEach(e=>{i.addEventListener(e,n[e])}),i}function l(e,t,n={},r={},i=null){const a=c(e,n,r,i);return t.forEach(e=>a.appendChild(e)),a}function u(e,t,n={},r={},i=null){const a=c(e,n,r,i);return a.textContent=t,a}function p({appModes:e,formElements:t}){return["Read","Write","Append","Control"].map(n=>l("label",[c("input",{type:"checkbox",...e.some(e=>e.value===i.ns.acl(n).value)?{checked:""}:{},value:i.ns.acl(n).uri},{},e=>t.modes.push(e)),u("span",n)]))}},8847(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomString=function(){return Math.random().toString(36).substr(2,5)},t.getStatementsToAdd=function(e,t,n,i,a){const o=new r.BlankNode(`bn_${t}`);return[(0,r.st)(i,a.acl("trustedApp"),o,i.doc()),(0,r.st)(o,a.acl("origin"),e,i.doc()),...n.map(e=>(0,r.sym)(e)).map(e=>(0,r.st)(o,a.acl("mode"),e,i.doc()))]},t.getStatementsToDelete=function(e,t,n,r){const i=n.statementsMatching(null,r.acl("origin"),e);return i.reduce((e,i)=>e.concat(n.statementsMatching(t,r.acl("trustedApp"),i.subject)).concat(n.statementsMatching(i.subject)),[])};var r=n(8230)},1917(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(9332),a=n(5438);const o={global:!0,icon:`${r.icons.iconBase}noun_15177.svg`,name:"trustedApplications",label:()=>null,render:(e,t)=>{const n=t.dom,o=n.createElement("div");o.classList.add("trusted-applications-pane"),o.setAttribute("style","border: 0.3em solid #418d99; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;");const s=o.appendChild(n.createElement("table")),c=s.appendChild(n.createElement("tr")),l=s.appendChild(n.createElement("tr")).appendChild(n.createElement("div"));return l.setAttribute("style","padding: 0.7em;"),async function(e,t,n){const o=await r.login.ensureLoadedProfile({dom:e,div:t,statusArea:n,me:null}),s=o.me,c=s.doc();if(!i.store.updater)throw new Error("Store has no updater");const l=i.store.updater.editable(c.uri,i.store);if(t.appendChild((0,a.createText)("h3","Manage your trusted applications")),!l)return void t.appendChild(r.widgets.errorMessageBlock(e,`Your profile ${s.doc().uri} is not editable, so we cannot do much here.`));t.appendChild((0,a.createText)("p","Here you can manage the applications you trust."));const u=(0,a.createApplicationTable)(s);t.appendChild(u),t.appendChild((0,a.createText)("h4","Notes")),t.appendChild((0,a.createContainer)("ol",[t.appendChild((0,a.createText)("li","Trusted applications will get access to all resources that you have access to.")),t.appendChild((0,a.createText)("li","You can limit which modes they have by default.")),t.appendChild((0,a.createText)("li","They will not gain more access than you have."))])),t.appendChild((0,a.createText)("p","Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app."))}(n,c,l).catch(e=>l.appendChild(r.widgets.errorMessageBlock(n,e))),o}};t.default=o},6682(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_170702.svg",name:"ui",audience:[o.solid("PowerUser")],label:function(e,t){const n=r.ns,i=t.session.store.findTypeURIs(e);return i[n.rdfs("Class").uri]?"creation forms":i[n.ui("Form").uri]?"edit form":null},render:function(e,t){const n=t.dom,a=t.session.store,o=r.ns,s=n.createElement("div");s.setAttribute("class","formPane");const c=r.utils.label(e),l=function(e,t){const r=n.createElement("p");return r.setAttribute("style",t||"color: grey; background-color: white"),s.appendChild(r).textContent=e,r},u=function(e,t){l(e,"style")},p=function(e,t){e||u("Sorry, failed to save your change:\n"+t)},d=a.findTypeURIs(e);let f,h,m=null;e.uri&&(f=i.Util.uri.docpart(e.uri),e.uri!==f&&a.updater.editable(f)&&(m=a.sym(i.Util.uri.docpart(e.uri)))),m||(m=a.any(a.sym(f),o.link("annotationStore"))),m||(m=r.widgets.defaultAnnotationStore(e)),m||(m=a.sym("https://formsregistry.solid.community/public/formRegistry/")),d[o.rdfs("Class").uri];const g=l("(Loading data from: "+m+")");return a.fetcher.nowOrWhenFetched(m.uri,e,function(i,f){if(i)if(s.removeChild(g),d[o.rdfs("Class").uri]){const i=function(i,d){const f=a.statementsMatching(e,i),h=t.getOutliner(n);if(f.length){for(let t=0;t<f.length;t++){h.appendPropertyTRs(s,[f[t]]);const i=f[t].object,c=n.createElement("td");s.lastChild.appendChild(c),d&&c.appendChild(r.widgets.newButton(n,a,null,null,e,i,m,function(e,t){e||u("Sorry, failed to save your change:\n"+t)}));let l=a.statementsMatching(i,o.rdf("type"));l.length||(l=a.statementsMatching(i)),l.length?r.widgets.editFormButton(n,s,i,l[0].why,p):u("No data about form")}s.appendChild(n.createElement("hr"))}else l("There are currently no known forms to make a "+c+".")};h=o.ui("creationForm"),s.appendChild(n.createElement("h2")).textContent=r.utils.label(h),l("Creation forms allow you to add information about a new thing, in this case a new "+c+"."),i(h,!0),s.appendChild(n.createElement("hr")),l("You can make a new creation form:"),s.appendChild(r.widgets.newButton(n,a,e,h,o.ui("Form"),null,m,p)),s.appendChild(n.createElement("hr")),h=o.ui("annotationForm"),s.appendChild(n.createElement("h2")).textContent=r.utils.label(h),l("Annotaion forms allow you to add extra information about a ,"+c+" we already know about."),i(h,!1),s.appendChild(n.createElement("hr")),l("You can make a new annotation form:"),s.appendChild(r.widgets.newButton(n,a,e,h,o.ui("Form"),null,m,p)),l("(Storing new forms in: "+m+")")}else d[o.ui("Form").uri]?r.widgets.appendForm(n,s,a,e,o.ui("FormForm"),m,p):u("ui/pane internal error -- Eh?");else u("Cannot load store "+m+" :"+f)}),s}}},4959(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={buildTime:"2026-02-18T23:17:50Z",commit:"d6996b3053d1bbe21f817cbedfc67d5d9179fe51",npmInfo:{"solid-panes":"4.2.2",npm:"11.10.0",node:"20.20.0",acorn:"8.15.0",ada:"2.9.2",ares:"1.34.6",brotli:"1.1.0",cjs_module_lexer:"2.1.0",cldr:"47.0",icu:"77.1",llhttp:"9.3.0",modules:"115",napi:"9",nghttp2:"1.61.0",openssl:"3.0.17",simdutf:"6.4.2",tz:"2025b",undici:"6.23.0",unicode:"16.0",uv:"1.46.0",uvwasi:"0.0.23",v8:"11.3.244.8-node.33",zlib:"1.3.1-470d3a2"}}},6778(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.default={icon:r.icons.iconBase+"noun_1619.svg",name:"video",label:function(e,t){const n=t.session.store.findTypeURIs(e),r=i.Util.mediaTypeClass("video/*").uri.split("*")[0];for(const e in n)if(e.startsWith(r))return"Play video";return null},render:function(e,t){const n=t.session.store,r=t.dom,i=r.createElement("div"),a=i.appendChild(r.createElement("video"));return a.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("width","100%"),i}}},500(e,t,n){var r;r=(e,t)=>(()=>{var n={49(e,t,n){"use strict";
|
|
370
|
+
*/function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else{if(!(l<i&&0>a(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],p=1,d=null,f=3,h=!1,m=!1,g=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(l,t)}t=r(u)}}function k(e){if(g=!1,x(e),!m)if(null!==r(l))m=!0,E||(E=!0,_());else{var t=r(u);null!==t&&F(k,t.startTime-e)}}var _,E=!1,C=-1,S=5,A=-1;function T(){return!!v||!(t.unstable_now()-A<S)}function P(){if(v=!1,E){var e=t.unstable_now();A=e;var n=!0;try{e:{m=!1,g&&(g=!1,y(C),C=-1),h=!0;var a=f;try{t:{for(x(e),d=r(l);null!==d&&!(d.expirationTime>e&&T());){var o=d.callback;if("function"==typeof o){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){d.callback=s,x(e),n=!0;break t}d===r(l)&&i(l),x(e)}else i(l);d=r(l)}if(null!==d)n=!0;else{var c=r(u);null!==c&&F(k,c.startTime-e),n=!1}}break e}finally{d=null,f=a,h=!1}n=void 0}}finally{n?_():E=!1}}}if("function"==typeof w)_=function(){w(P)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=P,_=function(){I.postMessage(null)}}else _=function(){b(P,0)};function F(e,n){C=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e||(S=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:p++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(u,e),null===r(l)&&e===r(u)&&(g?(y(C),C=-1):g=!0,F(k,a-o))):(e.sortIndex=s,n(l,e),m||h||(m=!0,E||(E=!0,_()))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982(e,t,n){"use strict";e.exports=n(4477)},5386(e){const t={acl:"http://www.w3.org/ns/auth/acl#",arg:"http://www.w3.org/ns/pim/arg#",as:"https://www.w3.org/ns/activitystreams#",bookmark:"http://www.w3.org/2002/01/bookmark#",cal:"http://www.w3.org/2002/12/cal/ical#",cco:"http://www.ontologyrepository.com/CommonCoreOntologies/",cert:"http://www.w3.org/ns/auth/cert#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",doap:"http://usefulinc.com/ns/doap#",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",gpx:"http://www.w3.org/ns/pim/gpx#",gr:"http://purl.org/goodrelations/v1#",http:"http://www.w3.org/2007/ont/http#",httph:"http://www.w3.org/2007/ont/httph#",icalTZ:"http://www.w3.org/2002/12/cal/icaltzd#",ldp:"http://www.w3.org/ns/ldp#",link:"http://www.w3.org/2007/ont/link#",log:"http://www.w3.org/2000/10/swap/log#",meeting:"http://www.w3.org/ns/pim/meeting#",mo:"http://purl.org/ontology/mo/",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pad:"http://www.w3.org/ns/pim/pad#",patch:"http://www.w3.org/ns/pim/patch#",prov:"http://www.w3.org/ns/prov#",pto:"http://www.productontology.org/id/",qu:"http://www.w3.org/2000/10/swap/pim/qif#",trip:"http://www.w3.org/ns/pim/trip#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rss:"http://purl.org/rss/1.0/",sched:"http://www.w3.org/ns/pim/schedule#",schema:"http://schema.org/",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",solid:"http://www.w3.org/ns/solid/terms#",space:"http://www.w3.org/ns/pim/space#",stat:"http://www.w3.org/ns/posix/stat#",tab:"http://www.w3.org/2007/ont/link#",tabont:"http://www.w3.org/2007/ont/link#",ui:"http://www.w3.org/ns/ui#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",wf:"http://www.w3.org/2005/01/wf/flow#",xsd:"http://www.w3.org/2001/XMLSchema#"};e.exports=function(e={namedNode:e=>e}){const n={};for(const r in t){const i=t[r];n[r]=function(t=""){return e.namedNode(i+t)}}return n}},8236(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RDFXMLPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.RDFXMLPane={icon:r.icons.originalIconBase+"22-text-xml4.png",name:"RDFXML",audience:[o.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const r=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===r?null:"As RDF/XML ("+r+")"},render:function(e,t){const n=t.dom,r=t.session.store,a=n.createElement("div");a.setAttribute("class","RDFXMLPane");const o=r.statementsMatching(void 0,void 0,void 0,e),s=i.Serializer(r);s.suggestNamespaces(r.namespaces),s.setBase(e.uri);const c=s.statementsToXML(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(c)),a.appendChild(l),a}}},6686(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_534313.svg",name:"audio",label:function(e,t){const n=t.session.store.findTypeURIs(e),r=i.Util.mediaTypeClass("audio/*").uri.split("*")[0];for(const e in n)if(e.startsWith(r))return"Play audio";return null},render:function(e,t){const n=t.session.store,r=t.dom,i=!1,a=!0,s=!0,c=!1,l=function(e){const t=e.lastIndexOf(".");if(t<0)return e;return t<e.lastIndexOf("/")?e:e.slice(0,t)},u=function(e){const t=e.uri.split("/").slice(-3),n=function(e){try{return decodeURIComponent(e)}catch(t){return e}};v.textContent=n(t[0]),b.textContent=n(t[1]),y.textContent=n(l(t[2]))},p=function(e,t){return new Promise(function(r){if(t=t||0,!a)return r(null);const i=n.any(void 0,o.ldp("contains"),e)||e.dir();if(!i)return r(null);n.fetcher.load(i).then(function(a){const l=n.each(i,o.ldp("contains"));let u;l.sort();for(let a=0;a<l.length;a++)if(e.uri===l[a].uri){if(u=(a+1)%l.length,0!==u)return r(l[u]);if(!s)return r(c?l[u]:null);if(1===t||!s)return r(null);p(i,t+1).then(function(e){e&&n.fetcher.load(e).then(function(t){const i=n.each(e,o.ldp("contains"));return 0===i.length?r(null):(i.sort(),r(i[0]))})})}})})},d=function(e){const t=n.sym(e.target.getAttribute("src"));if(!a)return;const r=function(t){p(t).then(function(t){t&&(!function(e){const t=n.any(void 0,o.ldp("contains"),e);if(!t)return!1;const r=n.each(t,o.ldp("contains"));if(r.length<2)return!1;const i=e.uri;for(let e=0;e<r.length;e++){const t=r[e].uri;if(i.length>t.length&&i.startsWith(l(t)))return!0;if(i.endsWith(".m4a")&&t.endsWith(".mp3")&&l(i)===l(t))return!0}return!1}(t)?(u(t),w.appendChild(f(t,!0)),w.removeChild(e.target)):r(t))})};r(t)},f=function(e,t){const i=r.createElement("audio");return i.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);i.setAttribute("src",t)}),t&&i.setAttribute("autoplay","autoplay"),i.addEventListener("ended",d,!1),i},h=r.createElement("div"),m=h.appendChild(r.createElement("table")),g="padding: 0.3em; color:white; background-color: black;",v=m.appendChild(r.createElement("tr"));v.style.cssText=g;const b=m.appendChild(r.createElement("tr"));b.style.cssText=g;const y=m.appendChild(r.createElement("tr"));y.style.cssText=g;const w=m.appendChild(r.createElement("tr"));return u(e),w.appendChild(f(e,i)),!n.holds(void 0,o.ldp("contains"),e)&&e.dir()&&n.fetcher.load(e.dir()),h}}},5382(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classInstancePane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.classInstancePane={icon:r.icons.originalIconBase+"tango/22-folder-open.png",name:"classInstance",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store.each(void 0,o.rdf("type"),e).length;return n>0?"List ("+n+")":null},render:function(e,t){const n=t.dom,a=t.getOutliner(n),s=t.session.store,c=function(e,t){const r=n.createElement("pre");r.setAttribute("style","background-color: "+t||0),l.appendChild(r),r.appendChild(n.createTextNode(e))},l=n.createElement("div");l.setAttribute("class","instancePane"),l.setAttribute("style"," border-top: solid 1px #777; border-bottom: solid 1px #777; margin-top: 0.5em; margin-bottom: 0.5em ");const u=s.statementsMatching(void 0,o.rdf("type"),e);if(u.length>0){const t={},p=[];u.forEach(e=>{t[e.subject.toNT()]=e});for(const n in s.findMembersNT(e))t[n]||p.push(i.st(s.fromNT(n),o.rdf("type"),e));if(p.length&&c("There are "+u.length+" explicit and "+p.length+" implicit members of "+r.utils.label(e)),e.sameTerm(o.rdf("Property")));else if(e.sameTerm(o.rdfs("Class"))){const e=s.statementsMatching(void 0,o.rdf("type"),void 0),t={};e.forEach(function(e){t[e.object]=e});const n=[];for(const e in t)n.push(i.st(i.sym(e),o.rdf("type"),o.rdfs("Class")));c("Total of "+e.length+" type statements and "+n.length+" unique types.")}if(u.length>10){const e=n.createElement("TR");e.appendChild(n.createTextNode(""+u.length)),l.appendChild(e)}a.appendPropertyTRs(l,u,!0,function(e){return!0}),p.length&&(c("Implicit:"),a.appendPropertyTRs(l,p,!0,function(e){return!0}))}return l}}},6106(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.basicPreferencesPane=void 0;var r=n(8230),i=n(500);const a=t.basicPreferencesPane={icon:i.icons.iconBase+"noun_Sliders_341315_000000.svg",name:"basicPreferences",label:e=>null,render:(e,t)=>{const n=t.dom,a=t.session.store;function s(e,t){e||c.appendChild(i.widgets.errorMessageBlock(n,t,"#fee"))}const c=n.createElement("div"),l=function(e,t){const n=o(e,t,"User types"),r=n.appendChild(t.createElement("p"));r.innerText="Here you can self-assign user types to help the data browser know which views you would like to access.";const i=n.appendChild(t.createElement("a"));i.href="https://github.com/solidos/userguide/#role",i.innerText="Read more";const a=n.appendChild(t.createElement("div"));return a}(c,n);function u(e,t){e=e.doc(),a.holds(void 0,void 0,void 0,e)||(0,r.parse)(t,a,e.uri,"text/turtle",null)}const p=a.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597#this");u(p,'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix : <#>.\n\n:this <http://purl.org/dc/elements/1.1/title> "Basic preferences" ;\n a ui:Form ;\n ui:part :categorizeUser, :privateComment, :personalInformationHeading;\n ui:parts ( :personalInformationHeading :privateComment :categorizeUser ).\n\n:personalInformationHeading a ui:Heading;\n ui:contents "Personal information".\n\n:privateComment a ui:Comment;\n ui:contents "This information is private.".\n\n:categorizeUser a ui:Classifier;\n ui:label "Level of user"; ui:property rdf:type ; ui:category solid:User.\n');return u(a.sym("urn:uuid:93774ba1-d3b6-41f2-85b6-4ae27ffd2597-ONT"),'@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix solid: <http://www.w3.org/ns/solid/terms#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix schema: <http:/schema.org/>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix : <#>.\n\nsolid:User a rdfs:Class;\n rdfs:label "user"@en, "utilisateur"@fr;\n rdfs:comment """Any person who might use a Solid-based system""";\n rdfs:subClassOf foaf:Person, schema:Person, vcard:Individual.\n\n# Since these options are opt-in, it is a bit strange to have new users opt in\n# That they are new users - also we do not use this class for anything specific\n# yet\n# solid:NewUser a rdfs:Class;\n# rdfs:label "new user"@en;\n# rdfs:comment """A person who might use a Solid-based system who has a low\n# level of familiarity with technical details.""";\n# rdfs:subClassOf solid:User.\n\nsolid:PowerUser a rdfs:Class;\n rdfs:label "power user"@en;\n rdfs:comment """A person who might use a Solid-based system\n who is prepared to be given a more complex interface in order\n to be provided with more pwerful features.""";\n rdfs:subClassOf solid:User.\n\n solid:Developer a rdfs:Class;\n rdfs:label "Developer";\n rdfs:comment """Any person who might use a Solid-based system,\n who has software development skills.""";\n rdfs:subClassOf solid:User.\n'),async function(){const e=await i.login.ensureLoadedPreferences({dom:n,div:c});if(!e.preferencesFile)return;i.widgets.appendForm(n,l,{},e.me,p,e.preferencesFile,s).style.borderStyle="none";const r=t.session.paneRegistry.byName("trustedApplications");r&&c.appendChild(r.render(null,t)),function(e,t,n,r){const a=o(e,r,"Delete account"),s=t.each(n,i.ns.space("storage"),null,n.doc()),c=s.map(e=>e.value),l=a.appendChild(r.createElement("ul"));c.forEach(async e=>{const t=await async function(e,t){const n=t.createElement("a");n.textContent=`Delete your account at ${e}`;const r=await async function(e){const t=new URL(e),n=new URL(e);n.pathname=t.pathname="/account/delete";const r=n.hostname.split(".");n.hostname=r.slice(1).join(".");if((await fetch(n.href,{method:"HEAD"})).ok)return n.href;if((await fetch(t.href,{method:"HEAD"})).ok)return t.href;return null}(e);if("string"!=typeof r)return null;return n.href=r,n}(e,r);if(t){l.appendChild(r.createElement("li")).appendChild(t)}})}(c,a,e.me,n)}(),c}};t.default=a;function o(e,t,n){const r=e.appendChild(t.createElement("div"));r.style.border="0.3em solid #418d99",r.style.borderRadius="0.5em",r.style.padding="0.7em",r.style.marginTop="0.7em";return r.appendChild(t.createElement("h3")).innerText=n,r}},5682(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.dashboardPane=void 0;var r=n(500),i=n(9332),a=n(730);const o=t.dashboardPane={icon:r.icons.iconBase+"noun_547570.svg",name:"dashboard",label:e=>"NamedNode"===e.termType&&e.uri===e.site().uri?"Dashboard":null,render:(e,t)=>{const n=t.dom.createElement("div"),r=()=>{n.innerHTML="",function(e,t,n,r){const o=new URL(window.location.href).searchParams.get("uri");if(t&&(o||t.site().uri===r.site().uri))return function(e,t){const n=t.getOutliner(t.dom);n.getDashboard().then(t=>e.appendChild(t))}(e,n);(function(e,t){const n=document.createElement("div");e.appendChild(n);const r=n.attachShadow({mode:"open"}),o=document.createElement("link");o.rel="stylesheet",o.href="/common/css/bootstrap.min.css",r.appendChild(o),(0,a.generateHomepage)(t,i.store,i.store.fetcher).then(e=>r.appendChild(e))})(e,r)}(n,i.authn.currentUser()||null,t,e)};return i.authSession.events.on("login",()=>{r()}),i.authSession.events.on("sessionRestore",()=>{r()}),r(),n}};t.default=o},730(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateHomepage=async function(e,t,n){const a=await async function(e,t,n){const a=e.site().uri,o=(0,r.sym)(`${a}profile/card#me`);try{return await n.load(o),o}catch(e){}try{await n.load(e)}catch(t){return e}const s=t.any(e,i.ns.foaf("primaryTopic"),null,e.doc());if(s&&"NamedNode"===s.termType)try{return await n.load(s),s}catch(t){return e}return e}(e,t,n),o=function(e,t){return e.anyValue(t,i.ns.vcard("fn"),null,t.doc())||e.anyValue(t,i.ns.foaf("name"),null,t.doc())||new URL(t.uri).host.split(".")[0]}(t,a),s=document.createElement("div");return s.classList.add("container"),s.appendChild(function(e,t){const n=document.createElement("a");n.href=e,n.innerText=t;const r=document.createElement("span");r.innerText="'s Pod";const i=document.createElement("h1");return i.appendChild(n),i.appendChild(r),i}(a.uri,o)),s.appendChild(function(e){const t=document.createElement("section"),n=document.createElement("h2");n.innerText="Data",t.appendChild(n);const r=document.createElement("div");r.classList.add("list-group"),t.appendChild(r);const i=document.createElement("a");return i.classList.add("list-group-item"),i.href=window.document.location.href+"public/",i.innerText=`View ${e}'s files`,r.appendChild(i),t}(o)),s};var r=n(8230),i=n(500)},1424(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataContentPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.dataContentPane={icon:r.icons.originalIconBase+"rdf_flyer.24.gif",name:"dataContents",audience:[o.solid("Developer")],label:function(e,t){if("http://www.w3.org/2007/ont/link#ProtocolEvent"in t.session.store.findTypeURIs(e))return null;const n=t.session.store.statementsMatching(void 0,void 0,void 0,e).length;return 0===n?null:"Data ("+n+")"},statementsAsTables:function(e,t,n){const a=t.dom,o=a.createElement("table"),s=i.Serializer(t.session.store),c=s.rootSubjects(e);let l=c.roots;const u=c.subjects,p=c.loopBreakers;for(const e in p);const d={},f={};function h(e){const t=a.createElement("table");let n=null;const i=u[s.toStr(e)];if(!i)return t.appendChild(a.createTextNode("...")),t;i.sort();let o,c=0;for(let e=0;e<i.length;e++){const s=i[e],l=a.createElement("tr");if(s.predicate.uri!==n){n&&c>1&&o.setAttribute("rowspan",""+c),o=a.createElement("td"),o.setAttribute("class","pred");const e=a.createElement("a");e.setAttribute("href",s.predicate.uri),e.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),e.appendChild(a.createTextNode(r.utils.predicateLabelForXML(s.predicate))),o.appendChild(e),l.appendChild(o),n=s.predicate.uri,c=0}c++;const u=a.createElement("td");u.appendChild(m(s.object)),l.appendChild(u),t.appendChild(l)}return n&&c>1&&o.setAttribute("rowspan",""+c),t}function m(e){let n,i;switch(e.termType){case"NamedNode":return i=a.createElement("a"),i.setAttribute("href",e.uri),i.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),i.appendChild(a.createTextNode(r.utils.label(e))),i;case"Literal":return e.datatype&&e.datatype.uri?"http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral"===e.datatype.uri?(n=a.createElement("div"),n.setAttribute("class","embeddedXHTML"),n.innerHTML=e.value,n):a.createTextNode(e.value):(n=a.createElement("div"),n.setAttribute("style","white-space: pre-wrap;"),n.textContent=e.value,n);case"BlankNode":{if(e.toNT()in d){f[e.toNT()]=!0;const t=a.createElement("a");return t.setAttribute("href","#"+e.toNT().slice(2)),t.setAttribute("class","bnodeRef"),t.textContent="*"+e.toNT().slice(3),t}d[e.toNT()]=!0;const t=h(e);return d[e.toNT()]=t,r.utils.ancestor(t,"TABLE")&&"white"===r.utils.ancestor(t,"TABLE").style.backgroundColor?t.style.backgroundColor="#eee":t.style.backgroundColor="white",t}case"Collection":n=a.createElement("table"),n.setAttribute("class","collectionAsTables");for(let t=0;t<e.elements.length;t++){const r=a.createElement("tr");n.appendChild(r),r.appendChild(m(e.elements[t]))}return n;case"Graph":return n=t.session.paneRegistry.byName("dataContents").statementsAsTables(e.statements,t),n.setAttribute("class","nestedFormula"),n;case"Variable":return n=a.createTextNode("?"+e.uri),n}throw new Error("Unhandled node type: "+e.termType)}n&&(l=n.concat(l.filter(function(e){for(let t=0;t<n.length;t++)if(e.sameTerm(n[t]))return!1;return!0})));for(let e=0;e<l.length;e++){const t=a.createElement("tr");t.setAttribute("style",`background-color: ${e%2==0?"#f0f0f0":"white"};`),o.appendChild(t);const n=a.createElement("td");t.appendChild(n);const i=a.createElement("td");t.appendChild(i);const s=l[e];"BlankNode"===s.termType?n.appendChild(a.createTextNode(r.utils.label(s))):n.appendChild(m(s)),i.appendChild(h(s))}for(const e in f){const t=d[e],n=a.createElement("a");n.setAttribute("id",e.slice(2)),n.setAttribute("class","bnodeDef"),n.textContent=e.slice(3)+")",t.insertBefore(n,t.firstChild)}return o},render:function(e,t){const n=t.dom;t.getOutliner(n);const i=t.session.store,a=n.createElement("div");a.setAttribute("class","dataContentPane");const o=i.statementsMatching(void 0,void 0,void 0,e);return function(){const n=[];i.holds(e,void 0,void 0,e)&&n.push(e);const s=i.any(e,r.ns.foaf("primaryTopic"),void 0,e);s&&n.push(s),a.appendChild(t.session.paneRegistry.byName("dataContents").statementsAsTables(o,t,n))}(),a}}},4064(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.defaultPane={icon:r.icons.originalIconBase+"about.png",name:"default",audience:[o.solid("Developer")],label:function(e){return"about "},render:function(e,t){const n=t.dom,a=function(e,n){return void 0===t.session.paneRegistry.byName("internal").predicates[e.uri]&&(!n||"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"!==e.uri)},o=t.getOutliner(n),s=t.session.store;r.log.info("@defaultPane.render, dom is now "+n.location),e=s.canon(e);const c=n.createElement("div");c.setAttribute("class","defaultPane");let l=s.statementsMatching(e);if(o.appendPropertyTRs(c,l,!1,a),l=s.statementsMatching(void 0,void 0,e),o.appendPropertyTRs(c,l,!0,a),"Literal"===e.termType&&"http://"===e.value.slice(0,7)&&o.appendPropertyTRs(c,[i.st(s.sym(e.value),r.ns.link("uri"),e)],!0,a),"NamedNode"===e.termType&&s.updater.editable(i.Util.uri.docpart(e.uri),s)||"BlankNode"===e.termType&&s.anyStatementMatching(e)&&s.anyStatementMatching(e).why&&s.anyStatementMatching(e).why.uri&&s.updater.editable(s.anyStatementMatching(e).why.uri)){const e=n.createElement("tr"),t=n.createElement("td");t.setAttribute("colspan","2"),t.setAttribute("notSelectable","true");const i=n.createElement("img");i.src=r.icons.originalIconBase+"tango/22-list-add-new.png",i.addEventListener("click",function(e){o.UserInput.addNewPredicateObject(e),e.stopPropagation(),e.preventDefault()}),i.className="bottom-border-active",c.appendChild(e).appendChild(t).appendChild(i)}return c}}},2970(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=c(n(500)),a=c(n(8230)),o=c(n(6049)),s=(r=n(3505))&&r.__esModule?r:{default:r};function c(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.default={icon:i.icons.iconBase+"dokieli-logo.png",name:"Dokieli",mintClass:i.ns.solid("DokieliDocument"),label:function(e,t){return null},mintNew:function(e,t){const n=e.session.store;let r=t.newInstance;if(!r){let e=t.newBase;e.endsWith("/")&&(e=e.slice(0,-1),t.newBase=e),r=n.sym(e)}const i=o.lookup(r.uri);i&&i.includes("html")||(r=a.sym(r.uri+".html")),t.newInstance=r;let c=s.default,l=r.uri.split("/").slice(-1)[0];l=decodeURIComponent(l.split(".")[0]);const u=l.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");return c=c.replace("<title>","<title>"+u),c=c.replace("</article>","<h1>"+u+"</h1></article>"),new Promise(function(e){n.fetcher.webOperation("PUT",r.uri,{data:c,contentType:"text/html"}).then(function(){e(t)}).catch(function(e){})})}}},3505(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default='<!DOCTYPE html>\n<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">\n <head>\n <meta charset="utf-8" />\n <title></title>\n <meta content="width=device-width, initial-scale=1" name="viewport" />\n <link href="https://dokie.li/media/css/basic.css" media="all" rel="stylesheet" title="Basic" />\n <link href="https://dokie.li/media/css/dokieli.css" media="all" rel="stylesheet" />\n <script src="https://dokie.li/scripts/dokieli.js"><\/script>\n </head>\n\n <body about="" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# rdfa: http://www.w3.org/ns/rdfa# dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ foaf: http://xmlns.com/foaf/0.1/ pimspace: http://www.w3.org/ns/pim/space# skos: http://www.w3.org/2004/02/skos/core# prov: http://www.w3.org/ns/prov# mem: http://mementoweb.org/ns# qb: http://purl.org/linked-data/cube# schema: http://schema.org/ void: http://rdfs.org/ns/void# rsa: http://www.w3.org/ns/auth/rsa# cert: http://www.w3.org/ns/auth/cert# wgs: http://www.w3.org/2003/01/geo/wgs84_pos# bibo: http://purl.org/ontology/bibo/ sioc: http://rdfs.org/sioc/ns# doap: http://usefulinc.com/ns/doap# dbr: http://dbpedia.org/resource/ dbp: http://dbpedia.org/property/ sio: http://semanticscience.org/resource/ opmw: http://www.opmw.org/ontology/ deo: http://purl.org/spar/deo/ doco: http://purl.org/spar/doco/ cito: http://purl.org/spar/cito/ fabio: http://purl.org/spar/fabio/ oa: http://www.w3.org/ns/oa# as: https://www.w3.org/ns/activitystreams# ldp: http://www.w3.org/ns/ldp# solid: http://www.w3.org/ns/solid/terms# acl: http://www.w3.org/ns/auth/acl# earl: http://www.w3.org/ns/earl# spec: http://www.w3.org/ns/spec# odrl: http://www.w3.org/ns/odrl/2/ dio: https://w3id.org/dio# rel: https://www.w3.org/ns/iana/link-relations/relation#" typeof="schema:CreativeWork prov:Entity">\n <main>\n <article about="" typeof="schema:Article">\n\n </article>\n </main>\n </body>\n</html>\n'},5238(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formPane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=r.ns;t.formPane={icon:r.icons.iconBase+"noun_122196.svg",name:"form",audience:[s.solid("PowerUser")],label:function(e){const t=r.widgets.formsFor(e).length;return r.log.debug("Form pane: forms for "+e+": "+t),t?t+" forms":null},render:function(e,t){const n=t.session.store,o=t.dom,c=function(e,t){const n=o.createElement("p");return n.setAttribute("style",t||"color: grey; background-color: white"),d.appendChild(n).textContent=e,n},l=function(e,t){c(e,"style")},u=function(e,t){e||l("Sorry, failed to save your change:\n"+t)},p=i.authn.currentUser(),d=o.createElement("div");if(d.setAttribute("class","formPane"),p){0===n.each(p,s.ui("workspace")).length&&c("You don't seem to have any workspaces defined. A workspace is a place on the web (http://..) or in the file system (file:///) to store application data.\n")}else c("You are not logged in. If you log in and have workspaces then you would be able to select workspace in which to put this new information");const f=function(e,t){n.fetcher.nowOrWhenFetched(e.uri,t,function(n,i){if(!n)return l("Cannot load store "+e.uri+": "+i);const s=r.widgets.formsFor(t);for(let n=0;n<s.length;n++){const i=s[n],c=o.createElement("h4");if(d.appendChild(c),i.uri){const e=a.Util.uri.document(i.uri);if(e.uri!==i.uri){d.appendChild(r.widgets.editFormButton(o,d,i,e,u)).setAttribute("style","float: right;")}}const l=o.createElement("a");l.setAttribute("href",i.uri),c.appendChild(l),l.textContent=r.utils.label(i,!0),r.widgets.appendForm(o,d,{},t,i,e,u)}})};let h=null;const m=a.Util.uri.docpart(e.uri);if(e.uri!==m&&n.updater.editable(m,n)&&(h=e.doc()),h=h||n.any(n.sym(m),s.link("annotationStore")),!h){const t={},n=[];h.statementsMatching(e).forEach(function(e){t[e.why.uri]=1}),h.statementsMatching(void 0,void 0,e).forEach(function(e){t[e.why.uri]=2});for(const e in t)n.push(t[e],e);n.sort();for(let e=0;e<n.length;e++){const t=n[e][1];if(t&&h.updater.editable(t)){h=h.sym(t);break}}}const g="2014";if(h)f(h,e);else{l("No suitable store is known, to edit <"+e.uri+">.");const t=r.login.selectWorkspace(o,function(t){c("Workspace selected OK: "+t);const n=h.each(void 0,s.space("workspace"),t);for(let r=0;r<n.length;r++){const i=n[r],a=h.any(t,s.space("store")),o=h.any(t,s.cal("dtstart")).value(),c=h.any(t,s.cal("dtend")).value();if(a&&o&&c&&o<=g&&c>g){f(a,e);break}l("Note no suitable annotation store in activity: "+i)}});d.appendChild(t)}return d}}},8426(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(9332),i=n(500);const a={icon:i.icons.iconBase+"noun_547570.svg",global:!0,name:"home",label:function(){return"home"},render:function(e,t){const n=t.dom,a=n.createElement("div"),o=r.authn.currentUser();return async function(){const e={div:a,dom:n,statusArea:a,me:o};a.appendChild(n.createElement("h4")).textContent="Create new thing somewhere";const r={div:a.appendChild(n.createElement("div")),dom:n,statusArea:a,me:o},s=await i.login.filterAvailablePanes(t.session.paneRegistry.list);i.create.newThingUI(r,t,s),i.login.registrationList(e,{}).then(function(){})}(),a}};t.default=a},6380(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(500),a=n(8230),o=n(23),s=(r=n(5454))&&r.__esModule?r:{default:r};const c=e=>{if(!e)return!1;const t=e.split("?")[0].split("#")[0];return/\.(md|markdown|mdown|mkd|mkdn)$/i.test(t)},l=new Map,u={icon:function(e,t){if(e&&c(e.uri))return i.icons.iconBase+"markdown.svg";if(e){const n=t.session.store,r=l.get(e.uri);if("dokieli"===r)return i.icons.iconBase+"dokieli-logo.png";if("html"===r)return i.icons.originalIconBase+"tango/22-text-x-generic.png";const a=n.fetcher.getHeader(e.doc(),"content");if(a&&a.length>0){const t=a[0],n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");return l.set(e.uri,n?"dokieli":"html"),n?i.icons.iconBase+"dokieli-logo.png":i.icons.originalIconBase+"tango/22-text-x-generic.png"}const o=n.fetcher.getHeader(e.doc(),"content-type");if("text/html"===(o?o[0].split(";",1)[0].trim():null))return n.fetcher._fetch(e.uri).then(e=>e.text()).then(t=>{const n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");return l.set(e.uri,n?"dokieli":"html"),n?i.icons.iconBase+"dokieli-logo.png":i.icons.originalIconBase+"tango/22-text-x-generic.png"}).catch(()=>(l.set(e.uri,"html"),i.icons.originalIconBase+"tango/22-text-x-generic.png"))}return i.icons.originalIconBase+"tango/22-text-x-generic.png"},name:"humanReadable",label:function(e,t){const n=t.session.store,r=["text/plain","text/html","text/markdown","application/xhtml+xml","image/png","image/jpeg","application/pdf","video/mp4"];if(!e.uri)return null;if(n.findTypeURIs(e)[i.ns.link("WebPage").uri])return"view";if(c(e.uri))return"View";if(function(e,t,n){const r=e.fetcher.getHeader(t,"content-type");if(r)for(let e=0;e<r.length;e++)for(let t=0;t<n.length;t++)if(r[e].indexOf(n[t])>=0)return!0;return!1}(n,e,r)||function(e,t,n){const r=e.findTypeURIs(t);for(let e=0;e<n.length;e++)if(a.Util.mediaTypeClass(n[e]).uri in r)return!0;return!1}(n,e,r)){const t=n.fetcher.getHeader(e.doc(),"content-type");return"text/html"!==(t?t[0].split(";",1)[0].trim():null)||l.has(e.uri)||n.fetcher._fetch(e.uri).then(e=>e.text()).then(t=>{const n=t.includes('<script src="https://dokie.li/scripts/dokieli.js">')||t.includes("dokieli.css");l.set(e.uri,n?"dokieli":"html")}).catch(()=>{l.set(e.uri,"html")}),"View"}return null},render:function(e,t){const n=t.dom,r=n.createElement("div"),i=t.session.store,a=i.fetcher.getHeader(e.doc(),"content-type"),u=a?a[0].split(";",1)[0].trim():null,p="text/markdown"===u||c(e.uri);r.setAttribute("class","docView");const d=(t,n)=>{t.setAttribute("src",e.uri),t.setAttribute("class","doc"),t.setAttribute("style",`border: 1px solid; padding: 1em; height: ${n}em; width: 800px; resize: both; overflow: auto;`)};if(p){const t=n.createElement("DIV");!function(t){i.fetcher.webOperation("GET",e.uri).then(e=>{const n=e.responseText,r=Math.min(30,n.split(/\n/).length+5),i=o.marked.parse(n),a=s.default.sanitize(i);t.innerHTML=a,t.setAttribute("class","doc"),t.setAttribute("style",`border: 1px solid; padding: 1em; height: ${r}em; width: 800px; resize: both; overflow: auto;`)}).catch(e=>{t.innerHTML="<p>Error loading content</p>"})}(t);const a=n.createElement("TR");a.appendChild(t),r.appendChild(a)}else{const t=n.createElement("IFRAME");"text/html"!==u&&"application/xhtml+xml"!==u||t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),i.fetcher.webOperation("GET",e.uri).then(n=>{const r=n.responseText,i=r.includes('<script src="https://dokie.li/scripts/dokieli.js">')?-10:5,a=Math.min(30,r.split(/\n/).length+i),o=r.includes('<script src="https://dokie.li/scripts/dokieli.js">')||r.includes("dokieli.css");l.set(e.uri,o?"dokieli":"html"),d(t,a)}).catch(e=>{d(t,30)});const a=n.createElement("TR");a.appendChild(t),r.appendChild(a)}return r}};t.default=u},2168(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imagePane=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.imagePane={icon:r.icons.originalIconBase+"tango/22-image-x-generic.png",name:"image",label:function(e,t){const n=t.session.store;if(!n.anyStatementMatching(e,r.ns.rdf("type"),n.sym("http://purl.org/dc/terms/Image")))return null;return function(e,t,n){const r=e.fetcher.getHeader(t,"content-type");if(r)for(let e=0;e<r.length;e++)for(let t=0;t<n.length;t++)if(r[e].indexOf(n[t])>=0)return!0;return!1}(n,e,["application/pdf"])?null:"view"},render:function(e,t){const n=t.dom,r=t.session.store,i=n.createElement("div");i.setAttribute("class","imageView");const a=n.createElement("IMG");r.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("style","max-width: 100%; max-height: 100%;");const o=n.createElement("TR");return o.appendChild(a),i.appendChild(o),i}}},7523(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"OutlineManager",{enumerable:!0,get:function(){return o.default}}),t.UI=void 0,Object.defineProperty(t,"byName",{enumerable:!0,get:function(){return c.byName}}),t.getOutliner=d,Object.defineProperty(t,"initMainPage",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"list",{enumerable:!0,get:function(){return c.list}}),Object.defineProperty(t,"paneForIcon",{enumerable:!0,get:function(){return c.paneForIcon}}),Object.defineProperty(t,"paneForPredicate",{enumerable:!0,get:function(){return c.paneForPredicate}}),Object.defineProperty(t,"register",{enumerable:!0,get:function(){return c.register}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.default}});var r=p(n(4959)),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.UI=i;var a=n(9332),o=p(n(7981)),s=n(2371),c=n(4059),l=n(6813),u=p(n(5218));function p(e){return e&&e.__esModule?e:{default:e}}function d(e){if(!e.outlineManager){const t=(0,l.createContext)(e,{list:c.list,paneForIcon:c.paneForIcon,paneForPredicate:c.paneForPredicate,register:c.register,byName:c.byName},a.store,a.solidLogicSingleton);e.outlineManager=new o.default(t)}return e.outlineManager}"undefined"!=typeof window&&d(window.document),(0,s.registerPanes)(e=>(0,c.register)(e.default||e)),"undefined"!=typeof window&&(window.panes={getOutliner:d})},4930(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(8230);const a={icon:r.icons.originalIconBase+"tango/22-emblem-system.png",name:"internal",label:function(){return"under the hood"},render:function(e,t){const n=t.dom,a=t.session.store,o=a.canon(e),s=a.findTypeURIs(o);function c(e){if(s["http://www.w3.org/2007/ont/link#ProtocolEvent"])return!0;const n=t.session.paneRegistry.byName("internal");return n&&n.predicates&&!(void 0===n.predicates[e.uri])}const l=n.createElement("div");function u(e,t){const n=e.fetcher;if(n)return new Promise(function(i,a){n.load(t).then(function(){const o=e.each(t,r.ns.ldp("contains")).map(t=>e.holds(t,r.ns.rdf("type"),r.ns.ldp("BasicContainer"))?u(e,t):n.webOperation("DELETE",t.uri));Promise.all(o).then(()=>{n.webOperation("DELETE",t.uri).then(()=>{i(void 0)}).catch(e=>{a(new Error("Unable to delete "+t+": "+e))}),i(void 0)},e=>{alert(e),a(e)})})})}l.setAttribute("class","internalPane"),l.setAttribute("style","background-color: #ddddff; padding: 0.5em; border-radius: 1em;");if(e.uri&&!e.uri.includes("#")){const t=l.appendChild(n.createElement("table"));t.style.width="100%",t.style.margin="1em";const i=t.appendChild(n.createElement("tr")),o=i.appendChild(n.createElement("td")),s=e.uri&&e.uri.endsWith("/")||a.holds(e,r.ns.rdf("type"),r.ns.ldp("Container")),c=s?"folder":"file";if(!function(e){const t=e.site().uri;return e.uri===t||e.uri===t+"profile/"||e.uri===t+"profile/card"||e.uri===t+"settings/"||e.uri===t+"settings/prefs.ttl"||e.uri===t+"settings/privateTypeIndex.ttl"||e.uri===t+"settings/publicTypeIndex.ttl"||e.uri===t+"settings/serverSide.ttl"}(e)){const t=r.widgets.deleteButtonWithCheck(n,o,c,function(){if(!confirm(`Are you sure you want to delete ${e}? This cannot be undone.`))return;if(!a.fetcher)throw new Error("Store has no fetcher");(s?u(a,e)||Promise.resolve():a.fetcher.webOperation("DELETE",e.uri)||Promise.resolve()).then(()=>{}).catch(t=>{alert("Unable to delete "+e+": "+t)})});t.style="height: 2em;",t.class="",o.appendChild(t)}const p=i.appendChild(n.createElement("td")),d=r.widgets.button(n,r.icons.iconBase+"noun_479395.svg","refresh");p.appendChild(d),d.addEventListener("click",()=>{if(!a.fetcher)throw new Error("Store has no fetcher");a.fetcher.refresh(e,function(t,n){let r;r=t?"Refreshed OK: "+e:"Error refreshing: "+e+": "+n,alert(r)})})}let p=a.statementsMatching(e),d="";if(!a.fetcher)throw new Error("Store has no fetcher");if(e.uri&&(p.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#uri"),e.uri,a.fetcher.appNode)),e.uri.indexOf("#")>=0?(d=e.uri.split("#")[0],p.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#documentURI"),e.uri.split("#")[0],a.fetcher.appNode)),p.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/2007/ont/link#document"),(0,i.sym)(e.uri.split("#")[0]),a.fetcher.appNode))):d=e.uri),d){if(!a.updater)throw new Error("Store has no updater");const t=a.updater.editable(d);t&&p.push((0,i.st)(e,(0,i.sym)("http://www.w3.org/ns/rww#editable"),(0,i.literal)(t.toString()),a.fetcher.appNode))}const f=t.getOutliner(n);return f.appendPropertyTRs(l,p,!1,c),p=a.statementsMatching(void 0,void 0,e),f.appendPropertyTRs(l,p,!0,c),l},predicates:{"http://www.w3.org/2007/ont/link#request":1,"http://www.w3.org/2007/ont/link#requestedBy":1,"http://www.w3.org/2007/ont/link#source":1,"http://www.w3.org/2007/ont/link#session":2,"http://www.w3.org/2007/ont/link#uri":1,"http://www.w3.org/2007/ont/link#documentURI":1,"http://www.w3.org/2007/ont/link#document":1,"http://www.w3.org/2007/ont/link#all":1,"http://www.w3.org/2007/ont/link#Document":1,"http://www.w3.org/ns/rww#editable":1,"http://www.w3.org/2000/01/rdf-schema#seeAlso":1,"http://www.w3.org/2002/07/owl#":1},classes:{"http://www.w3.org/2007/ont/link#ProtocolEvent":1}};t.default=a},8399(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFooter=function(e){(0,r.initFooter)(e,{solidProjectUrl:i,solidProjectName:a})};var r=n(500);const i="https://solidproject.org",a="solidproject.org"},3469(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHeader=async function(e,t){(0,i.initHeader)(e,await async function(e){const t={label:l,onclick:()=>{r.authSession.logout()}};let n=[];return n=n.concat(await async function(e){const t=await e.getDashboardItems();return t.map(t=>({label:t.label,onclick:()=>async function(e,t){e.showDashboard({pane:t})}(e,t.tabName||t.paneName)}))}(e)),n.push(t),n}(t),{logo:o,helpIcon:a,helpMenuList:[{label:s,url:u,target:"_blank"},{label:c,url:p,target:"_blank"}]})};var r=n(9332),i=n(500);const a=i.icons.iconBase+"noun_help.svg",o="https://solidproject.org/assets/img/solid-emblem.svg",s="User guide",c="Report a problem",l="Log out",u="https://solidos.github.io/userguide/",p="https://github.com/solidos/solidos/issues"},5218(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t){const n=(0,r.getOutliner)(document);let o=t=t||window.location.href;"string"==typeof t&&(o=e.sym(t));n.GotoSubject(o,!0,void 0,!0,void 0);const s=await(0,i.createHeader)(e,n),c=(0,a.createFooter)(e);return Promise.all([s,c])};var r=n(7523),i=n(3469),a=n(8399)},7334(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.n3Pane=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.n3Pane={icon:r.icons.originalIconBase+"w3c/n3_smaller.png",name:"n3",audience:[o.solid("Developer")],label:function(e,t){const n=t.session.store;if("http://www.w3.org/2007/ont/link#ProtocolEvent"in n.findTypeURIs(e))return null;const r=n.statementsMatching(void 0,void 0,void 0,e).length;return 0===r?null:"Data ("+r+") as N3"},render:function(e,t){const n=t.dom,r=t.session.store,a=n.createElement("div");a.setAttribute("class","n3Pane");const o=r.statementsMatching(void 0,void 0,void 0,e),s=i.Serializer(r);s.suggestNamespaces(r.namespaces),s.setBase(e.uri);const c=s.statementsToN3(o),l=n.createElement("PRE");return l.appendChild(n.createTextNode(c)),a.appendChild(l),a}}},6813(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContext=function(e,t,n,i){return{dom:e,getOutliner:r.getOutliner,session:{paneRegistry:t,store:n,logic:i}}};var r=n(7523)},7981(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.dom;this.document=e.dom,this.outlineIcons=c.outlineIcons,this.labeller=this.labeller||{},this.labeller.LanguagePreference="";const p=this,d=this;let f=[];this.selection=f,this.ancestor=a.utils.ancestor,this.sparql=i.UpdateManager,this.kb=o.store;const h=o.store,m=o.store.fetcher;t.outline=this,this.qs=new u.QuerySource,this.UserInput=new l.UserInput(this),this.clipboardAddress="tabulator:clipboard",this.UserInput.clipboardInit(this.clipboardAddress);const g=this.outlineElement;async function v(e={}){const n=t.createElement("div"),i=o.authn.currentUser();if(!i)throw alert("Must be logged in for this"),new Error("Not logged in");const s=await b();return n.appendChild(a.tabs.tabWidget({dom:t,subject:i,items:s,renderMain:function(e,n){const i=r.byName(n.paneName);e.innerHTML="";const a=e.appendChild(t.createElement("table")),s=o.authn.currentUser();d.GotoSubject(n.subject||s,!0,i,!1,void 0,a)},renderTab:function(e,t){e.dataset.globalPaneName=t.tabName||t.paneName,e.textContent=t.label},ordered:!0,orientation:0,backgroundColor:"#eeeeee",selectedTab:e.selectedTab,onClose:e.onClose})),n}async function b(){const e=o.authn.currentUser();if(!e)return[];const n=t.createElement("div"),[r,i]=await Promise.all([async function(){try{return((await a.login.findAppInstances({me:e,div:n,dom:t},$.vcard("AddressBook"))).instances||[]).map((e,t)=>({paneName:"contact",tabName:`contact-${t}`,label:"Contacts",subject:e,icon:a.icons.iconBase+"noun_15695.svg"}))}catch(e){}return[]}(),async function(){async function t(e){return await x(e),!!h.holds(e,$.rdf("type"),$.space("Storage"),e.doc())&&(n.push(e),!0)}try{await h.fetcher.load(e.doc())}catch(e){return[]}let n=h.each(e,$.space("storage"),null,e.doc());n.map(async e=>{await x(e)});try{const e=new URL(window.location.href).searchParams.get("uri")||window.location.href;await async function(e){const n=new URL(e);let r=n.pathname;for(;r.length;)if(r=r.substring(0,r.lastIndexOf("/")),await t(h.sym(`${n.origin}${r}/`)))return}(e)}catch(e){}return n=function(e){const t=[];return e.forEach(e=>{t.find(t=>t.equals(e))||t.push(e)}),t}(n),n.length?n.map((t,n)=>{function r(e){return e.uri.split("//")[1].slice(0,-1)}return{paneName:"folder",tabName:`folder-${n}`,label:r(e).startsWith(r(t))?"Your storage":r(t),subject:t,icon:a.icons.iconBase+"noun_Cabinet_251723.svg"}}):[]}()]);return[{paneName:"home",label:"Your stuff",icon:a.icons.iconBase+"noun_547570.svg"},{paneName:"basicPreferences",label:"Preferences",icon:a.icons.iconBase+"noun_Sliders_341315_00000.svg"},{paneName:"profile",label:"Your Profile",icon:a.icons.iconBase+"noun_15059.svg"},{paneName:"editProfile",label:"Edit your Profile",icon:a.icons.iconBase+"noun_492246.svg"}].concat(r).concat(i)}function y(){return w("outline")}function w(e){return document.getElementById(e)||(()=>{const t=document.createElement("div");t.id=e;return(document.querySelector('[role="main"]')||document.body).appendChild(t)})()}async function x(e){if(!h.any(e,$.ldp("contains"),void 0,e.doc())){const t=(await h.fetcher.webOperation("GET",e.uri,h.fetcher.initFetchOptions(e.uri,{headers:{accept:"text/turtle"}}))).responseText;i.parse(t,h,e.uri,"text/turtle")}}async function k(n,r,i){const o=t.createElement("tr");i.hover&&o.setAttribute("class","hoverControl");const s=o.appendChild(t.createElement("td"));s.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;display:flex; justify-content: space-between; flex-direction: row;"),s.setAttribute("notSelectable","true"),s.setAttribute("about",n.toNT()),s.setAttribute("colspan","2");const c=s.appendChild(t.createElement("div"));c.style="display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;";const l=!!r;if(!i.solo&&!l){c.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-collapse.png","collapse",void 0,t)).addEventListener("click",O);const e=c.appendChild(t.createElement("h1"));e.appendChild(t.createTextNode(a.utils.label(n))),e.style="font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;",a.widgets.makeDraggable(e,n)}return c.appendChild(await async function(i,s={}){const c="width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;",l="width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px",u=i.appendChild(t.createElement("nav"));u.style="display:flex; justify-content: flex-start; align-items: center;";const p=s.hideList?[]:await async function(e,t){e.uri.endsWith("/")&&await x(e);const n=t.session.paneRegistry,r=n.list.filter(n=>n.label(e,t)&&!n.global);if(0===r.length)return[n.byName("internal")];const i=await a.login.filterAvailablePanes(r);return 0===i.length?[r[0]]:n.list.indexOf(r[0])<n.list.indexOf(i[0])?[r[0]].concat(i):i}(n,e);o.firstPane=r||function(e,t){return e.find(e=>e.shouldGetFocus&&e.shouldGetFocus(t))||e[0]}(p,n);const d=p.indexOf(o.firstPane);return 1!==p.length&&p.forEach((r,p)=>{const f=r.label(n,e),h="function"==typeof r.icon?r.icon(n,e):r.icon,m=a.utils.AJARImage(h,f,f,t);h instanceof Promise&&h.then(e=>{m.setAttribute("src",e)}).catch(e=>{}),m.style=r===o.firstPane?c:l;!function(r,o){r.addEventListener("click",function(u){let p;for(p=i;p.parentNode&&"TABLE"!==p.nodeName;p=p.parentNode);if("TABLE"!==p.nodeName)throw new Error("outline: internal error.");const d=function(e){for(let n=p.firstChild;n;n=n.nextSibling)void 0!==n.pane&&(e&&n.pane!==e||(n.paneButton&&(n.paneButton.setAttribute("class","paneHidden"),n.paneButton.style=l),_(n),n.pane.requireQueryButton&&p.parentNode.className&&1===f&&t.getElementById("queryButton")&&t.getElementById("queryButton").setAttribute("style","display:none;")))};"paneHidden"===r.getAttribute("class")?(u.shiftKey||d(),function(i){let o;a.log.info("outline: Rendering pane (2): "+i.name);try{o=i.render(n,e,s)}catch(e){o=t.createElement("div"),o.setAttribute("class","exceptionPane");const n=t.createElement("pre");o.appendChild(n),n.appendChild(t.createTextNode(a.utils.stackString(e)))}i.requireQueryButton&&t.getElementById("queryButton")&&t.getElementById("queryButton").removeAttribute("style");const c=p.firstChild.nextSibling,l=t.createElement("tr");l.appendChild(t.createElement("td")).appendChild(o),c?p.insertBefore(l,c):p.appendChild(l),l.pane=i,l.paneButton=r}(o),r.setAttribute("class","paneShown"),r.style=c):(d(o),r.setAttribute("class","paneHidden"),r.style=l);let f=0;for(let e=p.firstChild;e;e=e.nextSibling)e.pane&&e.pane.requireQueryButton&&f++},!1)}(m,r),m.setAttribute("class",p!==d?"paneHidden":"paneShown"),p===d&&(o.paneButton=m),u.appendChild(m)}),u}(s,{hideList:l})),o.firstChild.tabulatorSelect=function(){I(this,!0)},o.firstChild.tabulatorDeselect=function(){I(this,!1)},o}function _(e){const n=e.parentNode,r=n.parentNode,i=t.createElement("table");i.setAttribute("style","width: 100%;"),r.replaceChild(i,n),n.removeChild(e),r.replaceChild(n,i)}this.init=function(){y().outline=this},this.appendAccessIcons=function(e,t,n){if("NamedNode"!==n.termType)return;const r=e.uris(n);r.sort();let i=null;for(let e=0;e<r.length;e++)r[e]!==i&&(i=r[e],d.appendAccessIcon(t,i))},this.appendAccessIcon=function(e,n){if(!n)return"";const r=i.uri.docpart(n);if("http:"!==r.slice(0,5))return"";const o=m.getState(r);let s,l,u;switch(o){case"unrequested":s=c.outlineIcons.src.icon_unrequested,l="fetch",u=M;break;case"requested":s=c.outlineIcons.src.icon_requested,l="fetching",u=L;break;case"fetched":s=c.outlineIcons.src.icon_fetched,u=j,l="loaded";break;case"failed":s=c.outlineIcons.src.icon_failed,l="failed",u=L;break;case"unpermitted":s=c.outlineIcons.src.icon_failed,u=L,l="no perm";break;case"unfetchable":s=c.outlineIcons.src.icon_failed,u=L,l="cannot fetch";break;default:a.log.error("?? state = "+o)}const d=a.utils.AJARImage(s,l,c.outlineIcons.tooltips[s].replace(/[Tt]his resource/,r),t);return d.setAttribute("uri",n),d.addEventListener("click",u),function(e,t){a.log.debug("Button callbacks for "+t+" added");const n=function(n){return function(r){return r.indexOf("#"),!!e&&(!!p.ancestor(e,"DIV")&&(r===t&&(e.src=n,e.title=c.outlineIcons.tooltips[n]),!0))}};m.addCallback("request",n(c.outlineIcons.src.icon_requested)),m.addCallback("done",n(c.outlineIcons.src.icon_fetched)),m.addCallback("fail",n(c.outlineIcons.src.icon_failed))}(d,r),e.appendChild(d),d},this.outlineObjectTD=function(e,n,r,i){const o=t.createElement("td");o.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),o.setAttribute("notSelectable","false");return("NamedNode"===e.termType||"BlankNode"===e.termType||"Literal"===e.termType&&e.value.slice&&("ftp://"===e.value.slice(0,6)||"https://"===e.value.slice(0,8)||"http://"===e.value.slice(0,7)))&&(o.setAttribute("about",e.toNT()),o.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-expand-trans.png","expand",void 0,t)).addEventListener("click",N)),o.setAttribute("class","obj"),h.whether(e,a.ns.rdf("type"),a.ns.link("Request"))&&(o.className="undetermined"),n||(n=V),o.appendChild(n(e)),r&&function(e,n,r){const i=a.utils.AJARImage(c.outlineIcons.src.icon_remove_node,"remove",void 0,t);i.addEventListener("click",D),i.node=r,i.setAttribute("about",n.toNT()),i.style.marginLeft="5px",i.style.marginRight="10px",e.appendChild(i)}(o,e,r),o.tabulatorSelect=function(){I(this,!0)},o.tabulatorDeselect=function(){I(this,!1)},o.addEventListener("click",U),o},this.outlinePredicateTD=function(e,n,r,i){const o=t.createElement("TD");let s;switch(o.setAttribute("about",e.toNT()),o.setAttribute("class",i?"pred internal":"pred"),e.termType){case"BlankNode":o.className="undetermined";break;case"NamedNode":s=a.utils.predicateLabelForXML(e,r);break;case"Collection":s=a.utils.predicateLabelForXML(e.elements[0],r)}s=s?s.slice(0,1).toUpperCase()+s.slice(1):"...";const l=t.createElement("TD");l.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),l.setAttribute("notSelectable","true"),l.appendChild(t.createTextNode(s)),o.appendChild(l),l.style.width="100%",o.appendChild(S.construct(t));for(const e in c.outlineIcons.termWidgets){if(!n||!n.AJAR_statement)break;c.outlineIcons.termWidgets[e].filter&&c.outlineIcons.termWidgets[e].filter(n.AJAR_statement,"pred",r)&&S.addIcon(o,c.outlineIcons.termWidgets[e])}return o.tabulatorSelect=function(){I(this,!0)},o.tabulatorDeselect=function(){I(this,!1)},o.addEventListener("click",U),o},this.getDashboard=v,this.getDashboardItems=b,this.showDashboard=async function(e={}){const t=w("GlobalDashboard"),n=y();if(t.childNodes.length>0&&e.pane){n.style.display="none",t.style.display="inherit";const r=t.querySelector(`[data-global-pane-name="${e.pane}"]`);if(r)return void r.click()}const r=await v({selectedTab:e.pane,onClose:a});o.authSession.events.on("logout",a),n.style.display="none",t.appendChild(r);const i=t.querySelector(`[data-global-pane-name="${e.pane}"]`);function a(){t.style.display="none",n.style.display="inherit"}i&&i.click()};const E=this.propertyTable=function(n,r,i,o){return a.log.debug("Property table for: "+n),n=h.canon(n),r?(a.log.info("Re-expand: "+r),r):((r=t.createElement("table")).setAttribute("style","width: 100%;"),k(n,i,o).then(i=>{if(r.appendChild(i),i.firstPane){let s;try{a.log.info("outline: Rendering pane (1): "+i.firstPane.name),s=i.firstPane.render(n,e,o)}catch(e){s=t.createElement("div"),s.setAttribute("class","exceptionPane");const n=t.createElement("pre");s.appendChild(n),n.appendChild(t.createTextNode(a.utils.stackString(e)))}const c=t.createElement("tr");c.appendChild(t.createElement("td")).appendChild(s),i.firstPane.requireQueryButton&&t.getElementById("queryButton")&&t.getElementById("queryButton").removeAttribute("style"),r.appendChild(c),c.pane=i.firstPane,c.paneButton=i.paneButton}}),r)};function C(e,t,n){const r=e.createElement("TR");r.AJAR_statement=t,r.AJAR_inverse=n,r.setAttribute("predTR","true");const i=d.outlinePredicateTD(t.predicate,r,n);return r.appendChild(i),r}this.propertyTR=C,this.appendPropertyTRs=function(e,n,r,i){if(a.log.debug("Property list length = "+n.length),0===n.length)return"";let o,s,c;r?(o=function(e){return e.subject},n=n.sort(a.utils.RDFComparePredicateSubject)):(o=function(e){return e.object},n=n.sort(a.utils.RDFComparePredicateObject));const l=n.length;for(s=0;s<l;s++){let u=n[s];if(i&&!i(u.predicate,r))continue;const f=C(t,u,r);e.appendChild(f);const m=f.firstChild;let g=W.defaults[u.predicate.uri],v=0,b=0,y=0;for(c=0;c+s<l&&n[s+c].predicate.sameTerm(u.predicate);c++)c>0&&o(n[s+c]).sameTerm(o(n[s+c-1]))&&v++,o(n[s+c]).lang&&p.labeller.LanguagePreference&&(b+=1,o(n[s+c]).lang.indexOf(p.labeller.LanguagePreference)>=0&&y++);if(y>0&&b===v+1){for(let e=s;e<=s+v;e++)if(p.labeller.LanguagePreference&&o(n[e]).lang.indexOf(p.labeller.LanguagePreference)>=0){f.appendChild(d.outlineObjectTD(o(n[e]),g,void 0,u));break}s+=v}else f.appendChild(d.outlineObjectTD(o(u),g,void 0,u)),f.showNobj=function(i){const l=c-v,p=2*i<l?i:l,f=[];if(1!==l){let v;m.setAttribute("rowspan",p===l?l:i+1),p<l&&1===p&&m.setAttribute("rowspan",2);let b=0;for(v=1;v<c;v++)if(h.canon(o(n[s+v])).sameTerm(h.canon(o(n[s+v-1]))))a.log.info("there are duplicates here: %s",n[s+v-1]);else{b++,u=n[s+v],g=W.defaults[u.predicate.uri];const i=t.createElement("tr");i.style.colspan="1",i.appendChild(d.outlineObjectTD(o(n[s+v]),g,void 0,u)),i.AJAR_statement=u,i.AJAR_inverse=r,e.appendChild(i),b>=p&&(i.style.display="none",f.push(i))}p===l&&m.setAttribute("rowspan",b+1)}if(p<l){const n=t.createElement("tr"),r=n.appendChild(t.createElement("td"));if(r.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),r.setAttribute("notSelectable","false"),l>i){const e=t.createElement("a");r.appendChild(e);const n=function(n,r,i,o){return function(r){e.innerHTML="","none"===r?(e.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-more-trans.png","more","See all",t)),e.appendChild(t.createTextNode(l-o+" more...")),n.setAttribute("rowspan",o+1)):(e.appendChild(a.utils.AJARImage(a.icons.originalIconBase+"tbl-shrink.png","(less)",void 0,t)),n.setAttribute("rowspan",l+1));for(let e=0;e<f.length;e++)f[e].style.display=r}}(m,0,0,i);let o="none";const s=function(e){return n(o),o="none"===o?"":"none",e&&e.stopPropagation(),!1};s(),e.addEventListener("click",s,!1)}e.appendChild(n)}},f.showAllobj=function(){f.showNobj(c-v)},f.showNobj(10),s+=c-1}};const S={};n.g.termWidget=S,S.construct=function(e){const t=(e=e||document).createElement("TD");return t.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),t.setAttribute("class","iconTD"),t.setAttribute("notSelectable","true"),t.style.width="0px",t},S.addIcon=function(e,n,r){const i=e.childNodes[1];if(!i)return;let o=i.style.width;const s=a.utils.AJARImage(n.src,n.alt,n.tooltip,t);o=parseInt(o),o+=n.width,i.style.width=o+"px",i.appendChild(s),r&&s.addEventListener("click",r)},S.removeIcon=function(e,n){const r=e.childNodes[1];let a;if(!r)return;let o=r.style.width;o=parseInt(o),o-=n.width,r.style.width=o+"px";for(let e=0;e<r.childNodes.length;e++){const o=r.childNodes[e],s=o.src;try{a=t.location.href.split("?")[0]}catch(e){a=""}s===i.uri.join(n.src,a)&&r.removeChild(o)}},S.replaceIcon=function(e,t,n,r){S.removeIcon(e,t),S.addIcon(e,n,r)};function A(e){const t=e.getAttribute("class");return!!(t&&t.indexOf("selected")>=0)}function T(e){const t=d.targetOf(e).parentNode;S.replaceIcon(t.parentNode,c.outlineIcons.termWidgets.optOn,c.outlineIcons.termWidgets.optOff,P),t.parentNode.parentNode.removeAttribute("optional")}function P(e){const t=d.targetOf(e).parentNode;S.replaceIcon(t.parentNode,c.outlineIcons.termWidgets.optOff,c.outlineIcons.termWidgets.optOn,T),t.parentNode.parentNode.setAttribute("optional","true")}function R(e,t){const n=c.outlineIcons.termWidgets.optOn,r=c.outlineIcons.termWidgets.optOff;for(let i=e;i.parentNode;i=i.parentNode)for(;;){if(i.getAttribute("predTR")){let e=i.getAttribute("parentOfSelected");e=e?parseInt(e):0,0===e&&t>0&&S.addIcon(i.childNodes[0],i.getAttribute("optional")?n:r,i.getAttribute("optional")?T:P),e+=t,i.setAttribute("parentOfSelected",e),0===e&&(i.removeAttribute("parentOfSelected"),S.removeIcon(i.childNodes[0],i.getAttribute("optional")?n:r));break}if(!i.previousSibling||"TR"!==i.previousSibling.nodeName)break;i=i.previousSibling}}function I(e,t){if("TD"!==e.nodeName)throw a.log.debug("down"+e.nodeName),new Error("Expected TD in setSelected: "+e.nodeName+" : "+e.textContent);a.log.debug("pass");let n=e.getAttribute("class");if(n||(n=""),t){n+=" selected",(n.indexOf("pred")>=0||n.indexOf("obj")>=0)&&R(e,1),f.push(e);const t=a.utils.getTerm(e);d.showURI(t);let r=e.AJAR_statement;if(void 0===r&&e.parentNode&&(r=e.parentNode.AJAR_statement),r){const t=r.why,i=o.store.updater.editable(t.uri,h);i&&n.indexOf("pred")>=0&&S.addIcon(e,c.outlineIcons.termWidgets.addTri)}}else a.log.debug("cla=$"+n+"$"),"selected"===n&&(n=""),n=n.replace(" selected",""),(n.indexOf("pred")>=0||n.indexOf("obj")>=0)&&R(e,-1),n.indexOf("pred")>=0&&S.removeIcon(e,c.outlineIcons.termWidgets.addTri),f=f.filter(function(t){return t===e}),a.log.info("Deselecting "+e.textContent);"undefined"!=typeof sourceWidget&&d.showSource(),e.setAttribute("class",n)}function F(){for(let e=f.length-1;e>=0;e--)I(f[e],!1);f=[]}function N(e){const t=d.targetOf(e),n=t.parentNode,i=a.utils.getAbout(h,t);e.altKey&&r.byName("internal");e.shiftKey?q(n,i):e.altKey?z(n,i,{pane:r.byName("internal"),immediate:!0}):z(n,i)}function O(e){const t=d.targetOf(e),n=a.utils.getAbout(h,t);e.altKey&&r.byName("internal");H(t.parentNode.parentNode,n)}function L(e){const t=d.targetOf(e).getAttribute("uri");e.altKey?m.fetch(i.uri.docpart(t),{force:!0}):m.refresh(h.sym(i.uri.docpart(t)))}function j(e){const t=d.targetOf(e).getAttribute("uri");e.altKey?m.fetch(i.uri.docpart(t),{force:!0}):m.refresh(h.sym(i.uri.docpart(t)))}function M(e){const t=d.targetOf(e).getAttribute("uri");m.fetch(i.uri.docpart(t))}function D(e){const t=d.targetOf(e);let n=t.node;n.childNodes.length>1&&(n=t.parentNode),_(n)}function U(e){if(d.UserInput._tabulatorMode)return d.UserInput.Click(e);const t=d.targetOf(e);let n;for(n=a.utils.ancestor(t,"TD");n&&"false"!==n.getAttribute("notSelectable");n=a.utils.ancestor(n.parentNode,"TD"));if(!n)return;const r=A(n);if(a.log.debug("Was node selected before: "+r),e.altKey)I(n,!A(n));else if(e.shiftKey)I(n,!0);else{if(F(),d.UserInput.clearInputAndSave(e),I(n,!0),2===e.detail)return void e.stopPropagation();let t;if(n.parentNode&&(t=n.parentNode.AJAR_statement),!t)return;const i=t.why,a=o.store.updater.editable(i.uri,h);r&&a&&d.UserInput.Click(e,f[0])}a.log.debug("Was node selected after: "+A(n)+", count="+f.length),e.stopPropagation()}function B(e){t.title=a.utils.label(e),t.location.href.startsWith(e.site().uri)}function z(e,n,r){const o=(r=r||{}).pane;let s=!!r.already;const c=r.immediate;a.log.info("@outlineExpand, dom is now "+t.location),m.removeCallback("done","expand"),m.removeCallback("fail","expand");let l=h.canon(n);function u(){if(l=h.canon(l),!e||!e.parentNode||!e.parentNode.parentNode)return!1;let t;if(a.log.info("@@ REPAINTING "),s){for(a.log.info(" ... p is "+e),t=e.firstChild;t.nextSibling&&(a.log.info(" ... checking node "+t),"table"!==t.nodeName);t=t.nextSibling);t=E(l,t,o,r)}else t=E(l,void 0,o,r);s=!0,a.utils.ancestor(e,"TABLE")&&"white"===a.utils.ancestor(e,"TABLE").style.backgroundColor?t.style.backgroundColor="#eee":t.style.backgroundColor="white",a.utils.emptyNode(e).appendChild(t),d.focusTd=e,a.log.debug("expand: Node for "+l+" expanded");const n=h.each(l,a.ns.rdfs("seeAlso"));for(let e=0;e<n.length;e++)25===e&&a.log.warn("expand: Warning: many ("+n.length+") seeAlso links for "+l),m.lookUpThing(n[e],l)}function p(e){if(arguments[3])return!0;const t=h.canon(l);a.log.info("@@ expand: relevant subject="+t+", uri="+e+", already="+s);const n=h.sym(i.uri.docpart(e));if(e.indexOf("#")>=0)throw new Error("Internal error: hash in "+e);return!function(){if(!t.uri)return!0;const r=h.uris(t);if(!r)return!1;for(let t=0;t<r.length;t++)for(let n=i.uri.docpart(r[t]);n;n=h.HTTPRedirects[n])if(e===n)return!0;return!!h.anyStatementMatching(t,void 0,void 0,n)}()||(a.log.success("@@ expand OK: relevant subject="+t+", uri="+e+", source="+s),u(),!1)}r.solo&&B(l),a.log.debug("outlineExpand: dereferencing "+l);const f=t.createElement("span");e.appendChild(f),m.addCallback("done",p),m.addCallback("fail",p);const v=[];if(l.uri&&"rdf"===l.uri.split(":")[0])u();else{for(let e=0;e<v.length;e++){let t;if(t===v[e](l))return u(),a.log.debug("outline 1815"),void(t[1]&&g.removeChild(g.lastChild))}if(!l.uri||c||a.widgets.isAudio(l)||a.widgets.isVideo(l))u();else{const n=l.doc()&&l.doc().uri?l.doc().uri:""+l.doc(),i=function(r,i){if(e.querySelector&&n){if(e.querySelector('[data-outline-error-for="'+n+'"]'))return}const o=a.widgets.errorMessageBlock(t,r,"#fee",i instanceof Error?i:void 0);n&&o.setAttribute("data-outline-error-for",n),e.appendChild(o)};let o=!1;const s=m.nowOrWhenFetched(l.doc(),void 0,function(e,t){e?(m.lookUpThing(l),u(),r.solo&&B(l)):(o=!0,i(t,void 0))});s&&"function"==typeof s.catch&&s.catch(function(e){o||(o=!0,i(e,e))})}}}function H(e,t){let n,r,i,o,s=a.utils.ancestor(e,"TR");for(s=a.utils.ancestor(s.parentNode,"TR"),s&&(n=s.AJAR_statement),r=e.parentNode;"TD"!==r.tagName;r=r.parentNode)if(void 0===r)return void alert("Not enclosed in TD!");a.log.debug("Collapsing subject "+t),n&&(a.log.debug("looking up pred "+n.predicate.uri+"in defaults"),i=W.defaults[n.predicate.uri]),a.log.debug("view= "+i),"outline"===r.parentNode.parentNode.id&&(o=r.parentNode),d.replaceTD(d.outlineObjectTD(t,i,o,n),r)}function q(e,t){let n=null;for(let t=e.parentNode;t;t=t.parentNode)a.log.debug("level "+t.tagName),"TD"===t.tagName&&(n=t);a.utils.emptyNode(n).appendChild(E(t)),B(t),n.setAttribute("about",t.toNT())}new function(){this.pat=h.formula(),this.vars=[]},this.statusBarClick=function(e){const t=a.utils.getTarget(e);t.label&&(window.content.location=t.label)},this.showURI=function(e){e&&t.getElementById("UserURI")&&(t.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")},this.showSource=function(){if("undefined"!=typeof sourceWidget){for(const e in sourceWidget.sources)sourceWidget.sources[e].setAttribute("class","");for(let e=0;e<f.length;e++){if(!f[e].parentNode)continue;const t=f[e].parentNode.AJAR_statement;if(!t)continue;const n=t.why;n&&n.uri&&sourceWidget.highlight(n,!0)}}},this.getSelection=function(){return f},this.targetOf=function(e){let t;if(e||(e=window.event),e.target)t=e.target;else{if(!e.srcElement)return a.log.error("can't get target for event "+e),!1;t=e.srcElement}return 3===t.nodeType&&(t=t.parentNode),t},this.walk=function(e,n){const r=n||f[0];let i;switch(e){case"down":try{i=r.parentNode.nextSibling.lastChild}catch(e){return void this.walk("up")}F(),I(i,!0);break;case"up":try{i=r.parentNode.previousSibling.lastChild}catch(e){return}F(),I(i,!0);break;case"right":if(F(),r.nextSibling||"strong"===r.lastChild.tagName)I(r.nextSibling,!0);else{I(t.evaluate("table/div/tr/td[2]",r,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,!0)}break;case"left":if(F(),r.previousSibling&&"undetermined"===r.previousSibling.className)return I(r.previousSibling,!0),!0;I(a.utils.ancestor(r.parentNode,"TD"),!0);break;case"moveTo":F(),I(n,!0)}"down"!==e&&"up"!==e||i.tabulatorSelect||this.walk(e)},this.OutlinerKeypressPanel=function(e){function n(e){e&&t.getElementById("UserURI")&&(t.getElementById("UserURI").value="NamedNode"===e.termType?e.uri:"")}function i(e){return arguments[3]||(u("right",l),n(a.utils.getAbout(h,f[0]))),!0}let s,c;if(a.log.info("Key "+e.keyCode+" pressed"),"TEXTAREA"===a.utils.getTarget(e).tagName)return;if("UserURI"===a.utils.getTarget(e).id)return;if(f.length>1)return;if(0===f.length)return void(13!==e.keyCode&&38!==e.keyCode&&40!==e.keyCode&&37!==e.keyCode&&39!==e.keyCode||(this.walk("right",d.focusTd),n(a.utils.getAbout(h,f[0]))));const l=f[0];switch(m.removeCallback("done","setSelectedAfterward"),m.removeCallback("fail","setSelectedAfterward"),e.keyCode){case 13:if("HTML"===a.utils.getTarget(e).tagName){const e=a.utils.getAbout(h,l);s=l.parentNode.AJAR_statement.why,c=o.store.updater.editable(s.uri,h),e?p.GotoSubject(e,!0):c&&d.UserInput.Enter(l)}else this.UserInput.Keypress(e),this.walk("down"),e.stopPropagation();return;case 38:this.walk("up"),e.stopPropagation(),e.preventDefault();break;case 40:this.walk("down"),e.stopPropagation(),e.preventDefault()}if("INPUT"===a.utils.getTarget(e).tagName)return;let u;switch(e.keyCode){case 46:case 8:s=l.parentNode.AJAR_statement.why,c=o.store.updater.editable(s.uri,h),c&&(e.preventDefault(),this.UserInput.Delete(l));break;case 37:{if(this.walk("left"))return;const e=a.utils.ancestor(l.parentNode,"TD");H(l,a.utils.getAbout(h,e));break}case 39:{const e=a.utils.getAbout(h,l);if(e){if(u=this.walk,l.nextSibling)return void this.walk("right");"TABLE"!==l.firstChild.tagName&&(m.addCallback("done",i),m.addCallback("fail",i),z(l,e,{pane:r.byName("defaultPane")})),i()}}break;case 38:case 40:break;default:switch(e.charCode){case 99:if(e.ctrlKey){d.UserInput.copyToClipboard(d.clipboardAddress,l);break}break;case 118:case 112:if(e.ctrlKey){d.UserInput.pasteFromClipboard(d.clipboardAddress,l);break}break;default:a.utils.getTarget(e).tagName}}if(n(a.utils.getAbout(h,f[0])),f[0]){const e=a.utils.findPos(f[0])[1];e+f[0].clientHeight>window.scrollY+window.innerHeight&&a.utils.getEyeFocus(f[0],!0,!0,window),e<window.scrollY+54&&a.utils.getEyeFocus(f[0],!0,void 0,window)}},this.OutlinerMouseclickPanel=function(e){switch(d.UserInput._tabulatorMode){case 0:!function(e){a.log.info("@TabulatorMousedown, dom.location is now "+t.location);const n=d.targetOf(e);if(!n)return;const r=n.tagName;"INPUT"!==r&&"TEXTAREA"!==r&&(d.UserInput.clearMenu(),d.UserInput.lastModified&&d.UserInput.lastModified.parentNode.nextSibling&&d.UserInput.backOut(),(!n.src||n.src.slice(n.src.indexOf("/icons/")+1)!==c.outlineIcons.src.icon_show_choices&&n.src.slice(n.src.indexOf("/icons/")+1)!==c.outlineIcons.src.icon_add_triple)&&d.UserInput.clearInputAndSave(e),n.src&&n.src.slice(n.src.indexOf("/icons/")+1)===c.outlineIcons.src.icon_show_choices||d.UserInput.clearMenu(),e&&e.stopPropagation())}(e);break;case 1:d.UserInput.Click(e)}},this.replaceTD=function(e,t){let n;A(t)&&(n=!0);for(let e=f.length-1;e>-1;e--)for(let n=f[e];n.parentNode;n=n.parentNode)n===t&&I(f[e],!1);t.parentNode.replaceChild(e,t),n&&I(e,!0)},p.outlineRefocus=q,this.GotoFormURI_enterKey=function(e){13===e.keyCode&&p.GotoFormURI(e)},this.GotoFormURI=function(e){!function(e){const t=h.sym(e);this.GotoSubject(t,!0)}(t.getElementById("UserURI").value)},this.GotoURIinit=function(e){const t=h.sym(e);this.GotoSubject(t)},this.GotoSubject=function(e,n,r,i,o,s){s=s||t.getElementById("outline"),i&&(a.utils.emptyNode(s),s.style.width="100%");const c=function(){const n=t.createElement("TR");n.style.verticalAlign="top",s.appendChild(n);const r=d.outlineObjectTD(e,void 0,n);return n.appendChild(r),r}();if(i&&B(e),n){z(c,e,{pane:r,solo:i});const t=c.parentNode;a.utils.getEyeFocus(t,!1,void 0,window)}if(i&&t&&t.defaultView&&t.defaultView.history&&document.location.href!==e.uri){const n=r?{paneName:r.name}:{};try{t.defaultView.history.pushState(n,e.uri,e.uri)}catch(e){}}return e};const $=a.ns,W=(0,s.propertyViews)(t);function V(n){let i;if("Literal"===n.termType){const e={integer:"text-align: right;",decimal:"text-align: '.';",double:"text-align: '.';"};i=t.createElement("span"),i.textContent=n.value;let r="";if(n.datatype&&n.datatype.uri){const t=a.ns.xsd("").uri;n.datatype.uri.slice(0,t.length)===t&&(r=e[n.datatype.uri.slice(t.length)])}i.setAttribute("style",r||"white-space: pre-wrap;")}else if("NamedNode"===n.termType||"BlankNode"===n.termType)if(i=t.createElement("span"),i.setAttribute("about",n.toNT()),d.appendAccessIcons(h,i,n),"NamedNode"===n.termType)if("tel:"===n.uri.slice(0,4)){const e=n.uri.slice(4),r=t.createElement("a");i.appendChild(t.createTextNode(e)),r.setAttribute("href",n.uri),r.appendChild(a.utils.AJARImage(c.outlineIcons.src.icon_telephone,"phone","phone "+e,t)),i.appendChild(r),r.firstChild.setAttribute("class","phoneIcon")}else{i.appendChild(t.createTextNode(a.utils.label(n)));const e=a.widgets.linkIcon(t,n);i.appendChild(e),a.widgets.makeDraggable(i,n)}else i.appendChild(t.createTextNode(a.utils.label(n)));else if("Collection"===n.termType){i=t.createElement("table"),i.setAttribute("style","width: 100%;"),i.setAttribute("about",n.toNT());for(let e=0;e<n.elements.length;e++){const r=n.elements[e],a=i.appendChild(t.createElement("tr")),o=a.appendChild(t.createElement("td"));o.setAttribute("style","margin: 0.2em; border: none; padding: 0; vertical-align: top;"),o.setAttribute("notSelectable","false"),o.setAttribute("about",n.toNT()),o.innerHTML=e+1+")",a.appendChild(d.outlineObjectTD(r))}}else"Graph"===n.termType?(i=r.byName("dataContentPane").statementsAsTables(n.statements,e),i.setAttribute("class","nestedFormula")):(a.log.error("Object "+n+" has unknown term type: "+n.termType),i=t.createTextNode("[unknownTermType:"+n.termType+"]"));return a.log.debug("contents: "+i.innerHTML),i}return this.createTabURI=function(){t.getElementById("UserURI").value=t.URL+"?uri="+t.getElementById("UserURI").value},this.UserInput.setSelected=I,this.UserInput.deselectAll=F,this.UserInput.views=W,this.outlineExpand=z,this};var r=p(n(4059)),i=p(n(8230)),a=p(n(500)),o=n(9332),s=n(8071),c=n(7132),l=n(7339),u=p(n(2697));function p(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(p=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}},7132(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outlineIcons=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));const i=t.outlineIcons={};i.src=[],i.tooltips=[],i.src.icon_expand=r.icons.originalIconBase+"tbl-expand-trans.png",i.src.icon_more=r.icons.originalIconBase+"tbl-more-trans.png",i.src.icon_collapse=r.icons.originalIconBase+"tbl-collapse.png",i.src.icon_internals=r.icons.originalIconBase+"tango/22-emblem-system.png",i.src.icon_instances=r.icons.originalIconBase+"tango/22-folder-open.png",i.src.icon_foaf=r.icons.originalIconBase+"foaf/foafTiny.gif",i.src.icon_social=r.icons.originalIconBase+"social/social.gif",i.src.icon_mb=r.icons.originalIconBase+"microblog/microblog.png",i.src.icon_shrink=r.icons.originalIconBase+"tbl-shrink.png",i.src.icon_rows=r.icons.originalIconBase+"tbl-rows.png",i.src.icon_unrequested=r.icons.originalIconBase+"16dot-blue.gif",i.src.icon_fetched=r.icons.originalIconBase+"16dot-green.gif",i.src.icon_failed=r.icons.originalIconBase+"16dot-red.gif",i.src.icon_requested=r.icons.originalIconBase+"16dot-yellow.gif",i.src.icon_CVPane=r.icons.originalIconBase+"CV.png",i.src.icon_defaultPane=r.icons.originalIconBase+"about.png",i.src.icon_visit=r.icons.originalIconBase+"tango/22-text-x-generic.png",i.src.icon_dataContents=r.icons.originalIconBase+"rdf_flyer.24.gif",i.src.icon_n3Pane=r.icons.originalIconBase+"w3c/n3_smaller.png",i.src.icon_RDFXMLPane=r.icons.originalIconBase+"22-text-xml4.png",i.src.icon_imageContents=r.icons.originalIconBase+"tango/22-image-x-generic.png",i.src.icon_airPane=r.icons.originalIconBase+"1pt5a.gif",i.src.icon_LawPane=r.icons.originalIconBase+"law.jpg",i.src.icon_pushbackPane=r.icons.originalIconBase+"pb-logo.png",i.src.icon_photoPane=r.icons.originalIconBase+"photo_small.png",i.src.icon_tagPane=r.icons.originalIconBase+"tag_small.png",i.src.icon_TinyTag=r.icons.originalIconBase+"tag_tiny.png",i.src.icon_photoBegin=r.icons.originalIconBase+"photo_begin.png",i.src.icon_photoNext=r.icons.originalIconBase+"photo_next.png",i.src.icon_photoBack=r.icons.originalIconBase+"photo_back.png",i.src.icon_photoEnd=r.icons.originalIconBase+"photo_end.png",i.src.icon_photoImportPane=r.icons.originalIconBase+"flickr_small.png",i.src.icon_retract=r.icons.originalIconBase+"retract.gif",i.src.icon_refresh=r.icons.originalIconBase+"refresh.gif",i.src.icon_optoff=r.icons.originalIconBase+"optional_off.PNG",i.src.icon_opton=r.icons.originalIconBase+"optional_on.PNG",i.src.icon_map=r.icons.originalIconBase+"compassrose.png",i.src.icon_retracted=i.src.icon_unrequested,i.src.icon_retracted=i.src.icon_unrequested,i.src.icon_time=r.icons.originalIconBase+"icons/Wclocksmall.png",i.src.icon_telephone=r.icons.originalIconBase+"silk/telephone.png",i.src.icon_time=r.icons.originalIconBase+"Wclocksmall.png",i.src.icon_remove_node=r.icons.originalIconBase+"tbl-x-small.png",i.src.icon_add_triple=r.icons.originalIconBase+"tango/22-list-add.png",i.src.icon_add_new_triple=r.icons.originalIconBase+"tango/22-list-add-new.png",i.src.icon_show_choices=r.icons.originalIconBase+"userinput_show_choices_temp.png",i.src.icon_display_reasons=r.icons.originalIconBase+"tango/22-help-browser.png",i.tooltips[i.src.icon_display_reasons]="Display explanations",i.tooltips[i.src.icon_add_triple]="Add more",i.tooltips[i.src.icon_add_new_triple]="Add one",i.tooltips[i.src.icon_remove_node]="Remove",i.tooltips[i.src.icon_expand]="View details.",i.tooltips[i.src.icon_collapse]="Hide details.",i.tooltips[i.src.icon_shrink]="Shrink list.",i.tooltips[i.src.icon_internals]="Under the hood",i.tooltips[i.src.icon_instances]="List",i.tooltips[i.src.icon_foaf]="Friends",i.tooltips[i.src.icon_rows]="Make a table of data like this",i.tooltips[i.src.icon_unrequested]="Fetch this.",i.tooltips[i.src.icon_fetched]="Fetched successfully.",i.tooltips[i.src.icon_failed]="Failed to load. Click to retry.",i.tooltips[i.src.icon_requested]="This is being fetched. Please wait...",i.tooltips[i.src.icon_visit]="View document",i.tooltips[i.src.icon_retract]="Remove this source and all its data from tabulator.",i.tooltips[i.src.icon_refresh]="Refresh this source and reload its triples.",i.OutlinerIcon=function(e,t,n,r,i){return this.src=e,this.alt=n,this.width=t,this.tooltip=r,this.filter=i,this},i.termWidgets={},i.termWidgets.optOn=new i.OutlinerIcon(i.src.icon_opton,20,"opt on","Make this branch of your query mandatory."),i.termWidgets.optOff=new i.OutlinerIcon(i.src.icon_optoff,20,"opt off","Make this branch of your query optional."),i.termWidgets.addTri=new i.OutlinerIcon(i.src.icon_add_triple,18,"add tri","Add one")},8071(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.propertyViews=function(e){const t={properties:[],defaults:[],classes:[]},n=(0,i.default)(e),o=(0,a.default)(e);return s(t,r.ns.foaf("depiction").uri,n,!0),s(t,r.ns.foaf("img").uri,n,!0),s(t,r.ns.foaf("thumbnail").uri,n,!0),s(t,r.ns.foaf("logo").uri,n,!0),s(t,r.ns.schema("image").uri,n,!0),s(t,r.ns.foaf("mbox").uri,o,!0),t},t.viewsAddPropertyView=s;var r=n(500),i=o(n(3660)),a=o(n(6357));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r){e.properties[t]||(e.properties[t]=[]),e.properties[t].push(n),r&&(e.defaults[t]=n)}},2697(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySource=function(){this.queries=[],this.listeners=[],this.addQuery=function(e){let t;for(null!==e.name&&""!==e.name||(e.name="Query #"+(this.queries.length+1)),e.id=this.queries.length,this.queries.push(e),t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].addQuery(e)},this.removeQuery=function(e){let t;for(t=0;t<this.listeners.length;t++)null!==this.listeners[t]&&this.listeners[t].removeQuery(e);null!==this.queries[e.id]&&delete this.queries[e.id]},this.addListener=function(e){let t;for(this.listeners.push(e),t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.addQuery(this.queries[t])},this.removeListener=function(e){let t;for(t=0;t<this.queries.length;t++)null!==this.queries[t]&&e.removeQuery(this.queries[t]);for(t=0;t<this.listeners.length;t++)this.listeners[t]===e&&delete this.listeners[t]}},t.makeQueryRow=l,t.viewAndSaveQuery=function(e,t){const n=e.qs;i.log.info("outline.doucment is now "+e.document.location);const r=function(e,t){const n=new a.Query,r=e.length;let o,s,c,u;for(o=0;o<r;o++)s=e[o],u=s.parentNode,c=u.AJAR_statement,i.log.debug("Statement "+c),s.getAttribute("class").indexOf("pred")>=0&&(i.log.info(" We have a predicate"),l(n,u)),s.getAttribute("class").indexOf("obj")>=0&&(i.log.info(" We have an object"),l(n,u,!0));function p(e){const t=e.statements.length;let n,r;for(let i=0;i<t;i++)n=e.statements[i],r=n.tr,void 0!==r&&(r.AJAR_pattern=null,r.AJAR_variable=null);for(const t in e.optional)p(e.optional[t])}return t.addQuery(n),p(n.pat),n}(t,n);for(let e=0;e<n.listeners.length;e++)n.listeners[e].getActiveView().view.drawQuery(r),n.listeners[e].updateQueryControls(n.listeners[e].getActiveView())};var r=n(9332),i=o(n(500)),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=[];function c(e){let t=e;for(;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return e;t=t.previousSibling}}function l(e,t,n){const o=t.AJAR_inverse;let u,p,d;let f=null;for(p=t.parentNode;p;p=p.parentNode)if(void 0!==p.AJAR_statement){p.setAttribute("bla",p.AJAR_statement),p.AJAR_variable||l(e,p),u=p.AJAR_variable;const t=c(p);t.getAttribute("optionalSubqueriesIndex")&&(f=t.getAttribute("optionalSubqueriesIndex"),d=s[f]);break}d||(d=e.pat);const h=c(t),m=h.getAttribute("optional");if(m||(f?h.setAttribute("optionalSubqueriesIndex",f):h.removeAttribute("optionalSubqueriesIndex")),m){const e=r.store.formula();s.push(e),h.setAttribute("optionalSubqueriesIndex",s.length-1),d.optional.push(e),d=e}const g=t.AJAR_statement,v=t.AJAR_inverse?g.subject:g.object;let b=!0;v.isBlank&&n&&window.alert("You cannot constrain a query with a blank node. No constraint will be added."),u||(b=!1,u=o?g.object:g.subject);const y=t.AJAR_variable?t.AJAR_variable:r.store.variable(i.utils.newVariableName());e.vars.push(y),y.label=b?u.label:i.utils.label(u),y.label+=" "+i.utils.predicateLabelForXML(g.predicate,o);const w=(x=y,k=u,o?new a.Statement(x,g.predicate,k):new a.Statement(k,g.predicate,x));var x,k;return y.label=y.label.slice(0,1).toUpperCase()+y.label.slice(1),n&&(d.constraints[y]=new function(e){return this.describe=function(t){return t+" = "+e.toNT()},this.test=function(t){return e.sameTerm(t)},this}(v)),i.log.info("Pattern: "+w),w.tr=t,t.AJAR_pattern=w,t.AJAR_variable=y,i.log.debug("Query pattern: "+w),d.statements.push(w),y}},7339(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInput=function e(t){const n=t.document;this.menuId="predicateMenu1";const s=function(e){},u=r.ns.rdf,p=o.Namespace("http://purl.org/ontology/bibo/"),d=o.Namespace("http://purl.org/dc/elements/1.1/");let f=!1;c||(c=new o.Formula,c.superFormula=i.store);l||(l=new o.IndexedFormula);l.name="TempFormula",i.store.updater||(i.store.updater=new o.UpdateManager(i.store));return{sparqler:i.store.updater,lastModified:null,lastModifiedStat:null,statIsInverse:!1,addNewPredicateObject:function(e){if("bottom-border-active"!==r.utils.getTarget(e).className)return;const a=t.UserInput,s=r.utils.getTarget(e),c=n.createElement("tr");r.utils.ancestor(s,"DIV").insertBefore(c,r.utils.ancestor(s,"TR"));const l=n.createElement("tr"),u=a.generateRequest("(TBD)",l,!0);c.appendChild(l.firstChild);const p=a.generateRequest("(Enter text or drag an object onto this field)",l,!1);if(c.appendChild(l.firstChild),r.utils.ancestor(s,"TR").previousSibling&&r.utils.ancestor(s,"TR").previousSibling.AJAR_statement){const e=r.utils.ancestor(s,"TR").previousSibling.AJAR_statement;a.formUndetStat(c,e.subject,u,p,e.why,!1)}else{const e=r.utils.getAbout(i.store,r.utils.ancestor(s.parentNode.parentNode,"TD")),t=i.store.sym(o.Util.uri.docpart(e.uri));a.formUndetStat(c,e,u,p,t,!1)}t.walk("moveTo",c.firstChild),r.log.info("addNewPredicateObject: selection = "+t.getSelection().map(function(e){return e.textContent}).join(", ")),this.startFillInText(t.getSelection()[0])},addNewObject:function(e){const n=r.utils.getTarget(e).parentNode.parentNode,i=n.parentNode.AJAR_inverse;this.lastModifiedStat=n.parentNode.AJAR_statement;const a=this.appendToPredicate(n),o=this.generateRequest(" (Error) ",a,!1),s=a.previousSibling.AJAR_statement;i?this.formUndetStat(a,o,s.predicate,s.object,s.why,!0):this.formUndetStat(a,s.subject,s.predicate,o,s.why,!1),t.walk("moveTo",a.lastChild),this.startFillInText(a.lastChild)},Delete:function(e){this.deleteTriple(e,!1)},Enter:function(e){this.literalModification(e)},Click:function(e){const t=r.utils.getTarget(e);"Literal"===r.utils.getTerm(t).termType&&(this.literalModification(t),e.preventDefault(),e.stopPropagation())},pasteFromClipboard:function(e,n){function i(e){const n=t.clipboard[e].shift();if(null!==n){switch(e){case"predicates":case"objects":{const e=t.clipboard.all;for(let t=0;;t++)if(n.sameTerm(e[t])){e.splice(t,1);break}break}case"all":throw new Error("hostorical code not understood - what is theCollection?")}return n}r.log.warn("no more element in clipboard!")}let a;switch(n.className){case"undetermined selected":if(a=n.nextSibling?i("predicates"):i("objects"),!a)return;break;case"pred selected":if(a=i("objects"),!a)return;break;case"selected":{const e=i("all");if(!e)return;return a=e[0],void this.insertTermTo(n,a,e[1])}}this.insertTermTo(n,a)},startFillInText:function(e){switch(this.whatSortOfEditCell(e)){case"DatatypeProperty-like":r.utils.emptyNode(e),this.lastModified=this.createInputBoxIn(e," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select();break;case"predicate":this.performAutoCompleteEdit(e,"PredicateAutoComplete");break;case"ObjectProperty-like":case"no-idea":this.performAutoCompleteEdit(e,"GeneralAutoComplete")}},literalModification:function(e){if(r.log.debug("entering literal Modification with "+e+e.textContent),-1!==e.className.indexOf(" pendingedit"))return r.log.warn("The node you attempted to edit has a request still pending.\nPlease wait for the request to finish (the text will turn black)\nbefore editing this node again."),!0;const t=e;if(!this.getStatementAbout(t))return;let a,o,s;try{a=r.utils.getTerm(t),o=r.utils.ancestor(t,"TR")}catch(n){r.log.warn("userinput.js: "+n+r.utils.getAbout(i.store,e)),r.log.error(t+" getStatement Error:"+n)}try{s=o.lastChild}catch(e){r.log.error(e+"@"+t)}if("Literal"===a.termType){if(s.removeChild(s.firstChild),a.value.match("\n")){const e=n.createElement("textarea");e.appendChild(n.createTextNode(a.value)),e.setAttribute("rows",(a.value.match(/\n/g).length+1).toString()),e.setAttribute("cols","100"),e.setAttribute("class","textinput"),s.appendChild(e),this.lastModified=e}else this.lastModified=this.createInputBoxIn(s,a.value);this.lastModified.isNew=!1,this.lastModified.select()}return!0},performAutoCompleteEdit:function(e,t){r.utils.emptyNode(e),this.lastModified=this.createInputBoxIn(e,""),this.lastModified.select(),this.lastModified.addEventListener("keypress",this.getAutoCompleteHandler(t),!1),this.getAutoCompleteHandler(t)(1)},backOut:function(){this.deleteTriple(this.lastModified.parentNode,!0),this.lastModified=null},clearMenu:function(){const e=n.getElementById(this.menuID);e&&e.parentNode.removeChild(e)},clearInputAndSave:function(e){let n;if(!this.lastModified)return;if(!this.lastModified.isNew)try{n=this.getStatementAbout(this.lastModified).object}catch(e){return}let s,c,l,p,d=this.lastModifiedStat;if(this.lastModified.value!==this.lastModified.defaultValue){let c;if(""===this.lastModified.value)return this.lastModified.value=this.lastModified.defaultValue,void this.clearInputAndSave();if(this.lastModified.isNew){d=new o.Statement(d.subject,d.predicate,i.store.literal(this.lastModified.value),d.why),s=this.views.defaults[d.predicate.uri],c=r.utils.ancestor(this.lastModified,"TR");try{i.store.updater.update([],[d],function(e,n,i){n||(r.log.error("Error occurs while inserting "+d+"\n\n"+i+"\n"),t.UserInput.deleteTriple(c.lastChild,!0))})}catch(e){return void r.log.error("Error inserting fact "+d+":\n\t"+e+"\n")}d=i.store.add(d.subject,d.predicate,i.store.literal(this.lastModified.value),d.why)}else{if(this.statIsInverse)return r.log.error("Invalid Input: a literal can't be a subject in RDF/XML"),void this.backOut();let s,l,p;switch(n.termType){case"Literal":{const t=this.lastModified.value;c=r.utils.ancestor(this.lastModified,"TR");const a=this.lastModified.defaultValue;l=o.st(d.subject,d.predicate,i.store.literal(this.lastModified.value),d.why);try{i.store.updater.update([d],[l],function(e,i,o){i?n.value=t:(r.log.warn("Error occurs while editing "+d+"\n\n"+o),c.lastChild.textContent=a),c.lastChild.className=c.lastChild.className.replace(/ pendingedit/g,"")})}catch(e){return void r.log.warn("Error occurs while editing "+d+":\n\t"+e)}break}case"BlankNode":{const n=i.store.literal(this.lastModified.value,"");if("Collection"!==d.predicate.termType)return void this.fillInRequest("object",this.lastModified.parentNode,i.store.literal(this.lastModified.value));{const f=d.predicate.elements[0];if(i.store.any(void 0,f,n)){if(!e){const t=this.lastModified.parentNode;(e={}).pageX=r.utils.findPos(t)[0],e.pageY=r.utils.findPos(t)[1]+t.clientHeight}this.showMenu(e,"DidYouMeanDialog",void 0,{dialogTerm:i.store.any(void 0,f,n),bnodeTerm:d.subject})}else{s=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR").parentNode,"TR").AJAR_statement,l=o.st(d.subject,f,n,d.why);const a=i.store.the(d.subject,u("type"));p=i.store.anyStatementMatching(d.subject,u("type"),a,d.why),c=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR"),"TD").parentNode;try{i.store.updater.update([],[s,l,p],function(e,n,r){n||t.UserInput.deleteTriple(c.lastChild,!0)})}catch(e){return}i.store.remove(d),i.store.add(d.subject,f,n,d.why)}const h=r.utils.ancestor(this.lastModified.parentNode.parentNode,"TD"),m=a.byName("default");t.outlineExpand(h,d.subject,{pane:m,already:!0}),t.walk("right",t.focusTd)}break}}}}else{if(this.lastModified.isNew)return c=r.utils.ancestor(this.lastModified,"TR"),l=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),p=c.previousSibling.AJAR_statement,this.formUndetStat(c,p.subject,p.predicate,l,p.why,!1),void(this.lastModified=null);if("Collection"===d.predicate.termType){i.store.removeMany(d.subject);const e=r.utils.ancestor(r.utils.ancestor(this.lastModified,"TR").parentNode,"TR");return p=e.AJAR_statement,l=this.generateRequest("(To be determined. Re-type of drag an object onto this field)"),this.formUndetStat(e,p.subject,p.predicate,l,p.why,!1),t.replaceTD(t.outlineObjectTD(l,s),e.lastChild),void(this.lastModified=null)}if(this.statIsInverse){if("BlankNode"===d.subject.termType)return void this.backOut()}else if("BlankNode"===d.object.termType)return void this.backOut()}c=r.utils.ancestor(this.lastModified,"TR"),this.statIsInverse?t.replaceTD(t.outlineObjectTD(d.subject,s),c.lastChild):t.replaceTD(t.outlineObjectTD(i.store.literal(this.lastModified.value),s),c.lastChild),this.lastModified.value!==this.lastModified.defaultValue&&(c.lastChild.className+=" pendingedit"),this.lastModified=null},deleteTriple:function(e,n){if(r.log.debug("deleteTriple entered"),!n&&-1!==e.className.indexOf(" pendingedit"))return void t.walk("up");const a=this.getStatementAbout(e);if(!(n||i.store.whether(a.object,u("type"),r.ns.link("Request"))||i.store.whether(a.predicate,u("type"),r.ns.link("Request"))||i.store.whether(a.subject,u("type"),r.ns.link("Request")))){r.log.debug("about to send SPARQLUpdate");try{i.store.updater.update([a],[],function(t,n,r){n?s():e.className=e.className.replace(/ pendingedit/g,"")}),e.className+=" pendingedit"}catch(e){return r.log.error(e),void r.log.warn("Error deleting statement "+a+":\n\t"+e)}r.log.debug("SPARQLUpdate sent")}r.log.debug("about to remove "+a),r.log.debug("removed"),t.walk("up");const o=e.parentNode;function s(){let e,t;for(e=o;1===e.childNodes.length;e=e.previousSibling);if(e===o){const n=e.nextSibling;n.nextSibling&&1===n.childNodes.length&&(t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),n.insertBefore(e.firstChild,n.firstChild)),o.parentNode.removeChild(o)}else t=e.firstChild,t.setAttribute("rowspan",parseInt(t.getAttribute("rowspan"))-1),o.parentNode.removeChild(o)}n&&s()},clipboardInit:function(){t.clipboard={},t.clipboard.objects=[],t.clipboard.predicates=[],t.clipboard.all=[]},copyToClipboard:function(e,n){const i=r.utils.getTerm(n);switch(n.className){case"selected":case"obj selected":t.clipboard.objects.unshift(i);break;case"pred selected":case"pred internal selected":t.clipboard.predicates.unshift(i)}t.clipboard.all.unshift(i)},insertTermTo:function(e,a,o){let s,l;switch(e.className){case"undetermined selected":s=this.views.defaults[e.parentNode.AJAR_statement.predicate.uri],this.fillInRequest(e.nextSibling?"predicate":"object",e,a);break;case"pred selected":{const n=this.appendToPredicate(e);l=e.parentNode.AJAR_statement,s=this.views.defaults[l.predicate.uri],n.appendChild(t.outlineObjectTD(a,s));const o=e.parentNode.AJAR_inverse;o?n.AJAR_statemnet=i.store.add(a,l.predicate,l.object,l.why):n.AJAR_statement=i.store.add(l.subject,l.predicate,a,l.why);try{i.store.updater.update([],[n.AJAR_statement],function(e,t,i){t||r.log.error("userinput.js (pred selected): Fail trying to insert statement "+n.AJAR_statement+": "+i)})}catch(e){return void r.log.error("Exception trying to insert statement "+n.AJAR_statement+": "+r.utils.stackString(e))}n.AJAR_inverse=o,c.statements.push(n.AJAR_statement);break}case"selected":{const i=r.utils.ancestor(e,"TABLE").lastChild,s=i.insertBefore(n.createElement("tr"),i.lastChild);if(l=s.previousSibling.AJAR_statement,void 0===o&&(o=!0),o)this.formUndetStat(s,l.subject,this.generateRequest("(TBD)",s,!0),a,l.why,!1),s.appendChild(t.outlineObjectTD(a)),t.walk("moveTo",s.firstChild),this.startFillInText(s.firstChild);else{const e=this.generateRequest("(To be determined. Re-type of drag an object onto this field)",s);this.formUndetStat(s,l.subject,a,e,l.why,!1),s.insertBefore(t.outlinePredicateTD(a,s,!1,!1),s.firstChild),t.walk("moveTo",s.lastChild),this.startFillInText(s.lastChild)}break}}},Refill:function(e,t){r.log.info("Refill"+t.textContent);const n=t.nextSibling;let a;if(n){let s,c,l;if("undetermined"===t.nextSibling.className){s=r.utils.getAbout(i.store,r.utils.ancestor(t,"TABLE").parentNode),c=i.store.any(s,u("type")),l=[];const e=".\n";l[0]="SELECT ?pred WHERE{\n?pred "+u("type")+u("Property")+".\n?pred "+r.ns.rdfs("domain")+c+".}",l[1]="SELECT ?pred ?class\nWHERE{\n?pred "+u("type")+u("Property")+".\n"+c+r.ns.rdfs("subClassOf")+" ?class.\n?pred "+r.ns.rdfs("domain")+" ?class.\n}",l[2]="SELECT ?pred WHERE{\n"+s+u("type")+i.store.variable("subjectClass")+e+i.store.variable("pred")+r.ns.rdfs("domain")+i.store.variable("subjectClass")+e+"}",a=l.map(o.SPARQLToQuery)}else{s=r.utils.getAbout(i.store,r.utils.ancestor(t,"TABLE").parentNode),c=i.store.any(s,u("type"));const e=t.parentNode.AJAR_statement.object;l="SELECT ?pred WHERE{"+s+u("type")+"?subjectClass.\n"+e+u("type")+"?objectClass.\n?pred "+r.ns.rdfs("domain")+"?subjectClass.\n?pred "+r.ns.rdfs("range")+"?objectClass.\n}",a=o.SPARQLToQuery(l)}this.showMenu(e,"GeneralPredicateChoice",a,{isPredicate:n,selectedTd:t})}else{const a=t.parentNode.AJAR_statement.predicate;if((i.store.whether(a,u("type"),r.ns.owl("DatatypeProperty"))||"Collection"===a.termType||i.store.whether(a,r.ns.rdfs("range"),r.ns.rdfs("Literal")))&&(t.className="",r.utils.emptyNode(t),this.lastModified=this.createInputBoxIn(t," (Please Input) "),this.lastModified.isNew=!1,this.lastModified.select()),t.parentNode.AJAR_statement.predicate.sameTerm(u("type"))){const i="SELECT ?class WHERE{?class "+u("type")+r.ns.rdfs("Class")+".}",a=o.SPARQLToQuery(i);this.showMenu(e,"TypeChoice",a,{isPredicate:n,selectedTd:t})}}},getAutoCompleteHandler:function(e){let a;return"PredicateAutoComplete"===e?e="predicate":"JournalTAC"!==e&&(e="all"),a="JournalTAC"===e?n.getElementById("inpid_journal_title"):this.lastModified||t.getSelection()[0].firstChild,a.value,function(o){const s={},c=a.parentNode;e||(e=c.nextSibling?"predicate":"all"),s.pageX=r.utils.findPos(c)[0],s.pageY=r.utils.findPos(c)[1]+c.clientHeight,s.pageX,s.pageY;let l=n.getElementById(t.UserInput.menuID);function u(e){e&&(l.lastHighlight&&(l.lastHighlight.className=""),l.lastHighlight=e,l.lastHighlight.className="activeItem",t.showURI(r.utils.getAbout(i.store,l.lastHighlight)))}if(o){let p=a.value;if("object"==typeof o)switch(o.keyCode,o.stopPropagation(),l&&!l.lastHighlight&&u(l.firstChild.firstChild),o.keyCode){case 13:case 9:if(!l)return void t.UserInput.clearInputAndSave();if(!l.lastHighlight)return"JournalTAC"===e?(t.UserInput.clearMenu(),"no lastH"):void 0;if("INPUT"===l.lastHighlight.tagName)switch(l.lastHighlight.value){case"New...":t.UserInput.createNew();break;case"GiveURI":t.UserInput.inputURI()}else{if("JournalTAC"===e){if(f&&l.lastHighlight){const e=l.lastHighlight.firstChild.firstChild.innerHTML;let t=l.lastHighlight.firstChild.nextSibling.innerHTML;return t=t.slice(4,-4),["gotdptitle",e,t]}return"asGivenTxt"}const n=r.utils.getAbout(i.store,l.lastHighlight),o="predicate"===e?"predicate":"object";t.UserInput.clearMenu(),t.UserInput.fillInRequest(o,a.parentNode,n)}return;case 38:return f=!0,""!==p||"TR"!==l.lastHighlight.tagName||l.lastHighlight.previousSibling?u(l.lastHighlight.previousSibling):u(l.firstChild.firstChild),"I'm a little Arrow Up";case 40:return f=!0,"INPUT"===l.lastHighlight.tagName?u(l.childNodes[1].firstChild):u(l.lastHighlight.nextSibling),"I'm a little Down Arrow";case 37:case 39:return void("INPUT"===l.lastHighlight.tagName&&(37===o.keyCode?u(l.lastHighlight.previousSibling):u(l.lastHighlight.nextSibling)));case 8:p=p.slice(0,-1);break;case 27:return l?void t.UserInput.clearMenu():void t.UserInput.backOut();default:f=!1,p+=String.fromCharCode(o.charCode),o.charCode,String.fromCharCode(o.charCode)}if("all"===e?(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"GeneralAutoComplete",void 0,{inputText:p,selectedTd:c}),0===p.length&&t.UserInput.WildCardButtons()):"predicate"===e?(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"PredicateAutoComplete",void 0,{inputText:p,isPredicate:!0,selectedTd:c})):"JournalTAC"===e&&(t.UserInput.clearMenu(),t.UserInput.showMenu(s,"JournalTitleAutoComplete",void 0,{inputText:p},"orderisuseless")),l=n.getElementById(t.UserInput.menuID),!l)return;return u(l.firstChild.firstChild),t.showURI(r.utils.getAbout(i.store,l.lastHighlight)),"nothing to return"}}},WildCardButtons:function(){const e=n.getElementById(t.UserInput.menuID),i=e.insertBefore(n.createElement("div"),e.firstChild),a=i.appendChild(n.createElement("input")),o=i.appendChild(n.createElement("input"));a.type="button",a.value="New...",o.type="button",o.value="Know its URI",i.addEventListener("mouseover",function(e){const i=n.getElementById(t.UserInput.menuID);i.lastHighlight&&(i.lastHighlight.className=""),i.lastHighlight=r.utils.ancestor(r.utils.getTarget(e),"INPUT"),i.lastHighlight&&(i.lastHighlight.className="activeItem")},!1),a.addEventListener("click",this.createNew,!1),o.addEventListener("click",this.inputURI,!1)},Keypress:function(e){if(13===e.keyCode)if("TEXTAREA"!==t.targetOf(e).tagName)this.clearInputAndSave();else{const t=parseInt(this.lastModified.getAttribute("rows"));this.lastModified.setAttribute("rows",(t+1).toString()),e.stopPropagation()}},Mousedown:function(t){window.addEventListener("keypress",function(t){!t.ctrlKey||115!==t.charCode&&113!==t.charCode||e.switchMode()},!1),window.addEventListener("mousedown",e.Mousedown,!1),document.getElementById("outline").oncontextmenu=function(){return!1},2===t.button&&(e.switchMode(),t&&(t.preventDefault(),t.stopPropagation()))},Mouseover:function(e){if(this.className="bottom-border-active",1===this._tabulatorMode)switch(r.utils.getTarget(e).tagName){case"TD":{const t=r.utils.getTarget(e);"pred"===t.className&&(t.style.cursor="copy");break}case"DIV":{const t=r.utils.getTarget(e);"bottom-border"===r.utils.getTarget(e).className&&(t.style.borderColor="rgb(100%,65%,0%)",t.style.cursor="copy");break}}},Mouseout:function(e){if(this.className="bottom-border",1===this._tabulatorMode){const t=r.utils.getTarget(e);"bottom-border"===r.utils.getTarget(e).className&&(t.style.borderColor="transparent",t.style.cursor="auto")}},whatSortOfEditCell:function(e){if(e.nextSibling)return"predicate";const t=this.getStatementAbout(e).predicate;return i.store.whether(t,r.ns.rdf("type"),r.ns.owl("DatatypeProperty"))||i.store.whether(t,r.ns.rdfs("range"),r.ns.rdfs("Literal"))||"Collection"===t.termType?"DatatypeProperty-like":i.store.whether(t,u("type"),r.ns.owl("ObjectProperty"))?"ObjectProperty-like":"no-idea"},getStatementAbout:function(e){const t=r.utils.ancestor(e,"TR");if(!t)throw new Error("No ancestor TR for the TD we clicked on:"+e);let n;try{n=t.AJAR_statement}catch(n){throw new Error("No AJAR_statement!"+e+e.textContent+" has ancestor "+t)}return this.lastModifiedStat=t.AJAR_statement,this.statIsInverse=t.AJAR_inverse,n},createInputBoxIn:function(e,i){r.log.info("myDocument in createInputBoxIn is now "+n.location),r.log.info("outline.document is now "+t.document.location);const a=n.createElement("input");return a.setAttribute("value",i),a.setAttribute("class","textinput"),"undetermined selected"!==e.className&&(a.setAttribute("size","100"),a.addEventListener("keypress",function(e){38!==e.keyCode&&40!==e.keyCode||(t.OutlinerKeypressPanel(e),t.UserInput.clearInputAndSave())},!1)),e.appendChild(a),a},createNew:function(e){t.UserInput.clearMenu();const n=t.getSelection()[0],r=n.parentNode.AJAR_statement.why,a=i.store.nextSymbol(r);t.UserInput.fillInRequest("object",n,a),t.outlineExpand(t.getSelection()[0],a)},inputURI:function(e){const n=t.UserInput;n.clearMenu();const a=t.getSelection()[0];r.utils.emptyNode(a);const o=" (Type a URI) ";n.lastModified=n.createInputBoxIn(a,o),n.lastModified.select(),n.lastModified.addEventListener("keypress",function(e){switch(e.stopPropagation(),e.keyCode){case 13:case 9:if(this.value!==o){const e=this.value;n.fillInRequest("object",a,i.store.sym(e))}}},!1)},appendToPredicate:function(e){let t,r=!1;try{for(t=e.parentNode.nextSibling;1===t.childNodes.length&&t.AJAR_statement;t=t.nextSibling);}catch(e){r=!0}const i=n.createElement("tr");if(i.style.colspan="1",i.style.display="block",i.style.display="",e.hasAttribute("rowspan")&&e.setAttribute("rowspan",parseInt(e.getAttribute("rowspan"))+1),e.hasAttribute("rowspan")||e.setAttribute("rowspan","2"),r){const t=e.parentNode.parentNode;"defaultPane"===t.className?t.insertBefore(i,t.lastChild):t.appendChild(i)}else t.parentNode.insertBefore(i,t);return i},bnode2symbol:function(e,t){i.store.copyTo(e,t,["two-direction","delete"])},generateRequest:function(e,n,i,a){let o;a||(o=n||r.utils.ancestor(this.lastModified,"TR"),r.utils.emptyNode(o));const s=l,c=s.bnode();if(s.add(c,r.ns.rdf("type"),r.ns.link("Request")),e.length,s.add(c,r.ns.link("message"),s.literal(e)),s.add(c,r.ns.link("to"),s.literal("The User")),s.add(c,r.ns.link("from"),s.literal("The User")),!a){let n;n=i?o.appendChild(t.outlinePredicateTD(c,o,!1,!1)):o.appendChild(t.outlineObjectTD(c)),n.className="undetermined",n.textContent=e}return c},showMenu:function(e,a,c,l,f){r.log.info("myDocument is now "+n.location),r.log.info("outline.doucment is now "+t.document.location);const h=this,m=n.createElement("div");if(l)for(const e in l);m.id=this.menuID,m.className="outlineMenu",m.style.top=e.pageY+"px",m.style.left=e.pageX+"px";if("JournalTitleAutoComplete"===a){const e=function(e){let t=0,n=0,r=0,i=0,a=0,o=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)a=e.offsetLeft,o=e.offsetTop,a!==r&&(t+=e.offsetLeft-e.scrollLeft),o!==i&&(n+=e.offsetTop-e.scrollTop),r=a,i=o,e=e.parentNode;return{top:n+54,left:t-38}}(n.getElementById("inpid_journal_title"));e.left-=n.getElementById("inpid_journal_title").scrollTop,m.style.top=e.top+"px",m.style.left=e.left+"px"}n.body.appendChild(m);const g=m.appendChild(n.createElement("table"));let v;switch(m.lastHighlight=null,g.addEventListener("mouseover",function(e){m.lastHighlight&&(m.lastHighlight.className=""),m.lastHighlight=r.utils.ancestor(r.utils.getTarget(e),"TR"),m.lastHighlight&&(m.lastHighlight.className="activeItem")},!1),a){case"DidYouMeanDialog":v=function(e){const n=r.utils.ancestor(r.utils.getTarget(e),"TR");2===n.childNodes.length&&n.nextSibling?(i.store.add(k,void 0,void 0),t.UserInput.clearMenu()):2===n.childNodes.length&&t.UserInput.clearMenu()};break;case"LimitedPredicateChoice":{const e=l.clickedTd;v=function(n){const a=r.utils.getAbout(i.store,r.utils.getTarget(n)),o=e.parentNode.AJAR_statement.predicate.elements;for(let e=0;e<o.length;e++)o[e].sameTerm(a)&&o.unshift(o.splice(e,1)[0]);t.UserInput.clearMenu();const s=e.parentNode,c=t.outlinePredicateTD(s.AJAR_statement.predicate,s);s.insertBefore(c,e),s.removeChild(e),h.lastModified.select()};break}case"PredicateAutoComplete":case"GeneralAutoComplete":case"GeneralPredicateChoice":case"JournalTitleAutoComplete":case"TypeChoice":{const e=l.isPredicate,n=l.selectedTd;v=function(a){const o=r.utils.getAbout(i.store,r.utils.getTarget(a));r.utils.getTarget(a),e?t.UserInput.fillInRequest("predicate",n,o)&&t.UserInput.clearMenu():t.UserInput.fillInRequest("object",n,o)&&t.UserInput.clearMenu()};break}default:throw new Error("userinput: unexpected mode")}g.addEventListener("click",v,!1);const b={};function y(e){g.firstChild&&"no-suggest"===g.firstChild.className&&g.removeChild(g.firstChild);const t=r.utils.predicateLabelForXML(e,!1);if(!e.uri)return;let i="??";for(const t in b)if(r.log.debug(b[t]),o.Util.string_startswith(e.uri,b[t])){i=t;break}const a=g.appendChild(n.createElement("tr"));a.setAttribute("about",e);a.appendChild(n.createElement("th")).appendChild(n.createElement("div")).appendChild(n.createTextNode(t)),a.appendChild(n.createElement("td")).appendChild(n.createTextNode(i.toUpperCase()))}function w(e){return function(t){y(t[e.vars[0]])}}let x,k,_,E;switch(i.store.each(void 0,r.ns.rdf("type"),r.ns.owl("Ontology")).forEach(function(e){const t=r.utils.label(e);if(!t)return;const n=t.value.match(/\((.+?)\)/);n?b[n[1]]=e.uri:b[t.value]=e.uri}),a){case"DidYouMeanDialog":{const e=l.dialogTerm;k=l.bnodeTerm,m.style.width="auto";const t=g.appendChild(n.createElement("tr")).appendChild(n.createElement("th"));t.appendChild(n.createTextNode("Did you mean..."));const a=i.store.statementsMatching(e);let o;for(o=0;o<a.length&&!i.store.whether(a[o].predicate,u("type"),r.ns.owl("InverseFunctionalProperty"));o++);const s=a[o].predicate,c=i.store.any(e,a[o].predicate),p=r.utils.label(e)+" who has "+r.utils.label(s)+" "+c+"?",d=g.appendChild(n.createElement("tr")).appendChild(n.createElement("th"));d.appendChild(n.createTextNode(p)),t.setAttribute("colspan","2"),d.setAttribute("colspan","2");const f=g.appendChild(n.createElement("tr"));f.appendChild(n.createElement("th")).appendChild(n.createTextNode("Yes")),f.appendChild(n.createElement("td")).appendChild(n.createTextNode("BOOLEAN"));const h=g.appendChild(n.createElement("tr"));h.appendChild(n.createElement("th")).appendChild(n.createTextNode("No")),h.appendChild(n.createElement("td")).appendChild(n.createTextNode("BOOLEAN"));break}case"PredicateAutoComplete":{x=l.inputText;const n=t.labeller.searchAdv(x,void 0,"predicate"),r=[];for(let t=0;t<n.length;t++){const r={vars:[]};r.vars.push("Kenny");const a={};a.Kenny=i.store.fromNT(n[t].NT);try{w(r)(a)}catch(e){throw new Error("I'll deal with bnodes later...[Kenny]"+e)}}const a=r[0];if(0===a.length)return void this.clearMenu();for(let e=0;e<a.length&&e<10;e++)y(a[e][1]);break}case"GeneralAutoComplete":{let i;x=l.inputText;try{i=t.labeller.search(x)}catch(e){}const a=i[0],o=i[1];if(0===a.length)return void this.clearMenu();for(let e=0;e<a.length&&e<10;e++){const t=a[e][1].toNT();_=g.appendChild(n.createElement("tr")),_.setAttribute("about",t),E=_.appendChild(n.createElement("th")),E.appendChild(n.createElement("div")).appendChild(n.createTextNode(a[e][0]));const i=o[e],s=i?r.utils.label(i):"";_.appendChild(n.createElement("td")).appendChild(n.createTextNode(s))}break}case"JournalTitleAutoComplete":{x=l.inputText;const e=i.store.each(void 0,u("type"),p("Journal")),t=[];for(let r=0;r<e.length;r++){const a=e[r],o=i.store.each(a,d("title"),void 0),c=o+"",l=x.toLowerCase();if(-1!==c.toLowerCase().search(l)){s(),t.push(o);const e=g.appendChild(n.createElement("tr"));e.setAttribute("about","journalTitle");e.appendChild(n.createElement("th")).appendChild(n.createElement("div")).appendChild(n.createTextNode(o)),e.appendChild(n.createElement("td")).appendChild(n.createTextNode(a))}}break}case"LimitedPredicateChoice":{const e=r.utils.getAbout(i.store,l.clickedTd);e.termType="Collection";const t=i.store.each(e,r.ns.link("element"));for(let e=0;e<t.length;e++)y(t[e]);break}default:{_=g.appendChild(n.createElement("tr")),_.className="no-suggest",E=_.appendChild(n.createElement("th")),E.appendChild(n.createElement("div")).appendChild(n.createTextNode("No suggested choices. Try to type instead.")),_.appendChild(n.createElement("td")).appendChild(n.createTextNode("OK")),_.addEventListener("click",function(e){h.clearMenu(),e.stopPropagation()},"false");const e=function(){};switch(c.constructor.name){case"Array":for(let t=0;t<c.length;t++)i.store.query(c[t],w(c[t]),e);break;case"undefined":throw new Error("addPredicateChoice: query is not defined");default:i.store.query(c,w(c),e)}}}},fillInRequest:function(e,n,a){const s=n.parentNode,u=s.AJAR_statement,p=s.AJAR_inverse,d="object"===e?u.object:u.predicate;let f,h=!1;if(i.store.any(d,r.ns.link("onfillin")),"predicate"===e){const e=t.outlinePredicateTD(a,s,!1,!1);if("undetermined"!==n.nextSibling.className){const t=new o.Statement(u.subject,a,u.object,u.why);try{i.store.updater.update([],[t],function(t,n,o){n?(f=i.store.anyStatementMatching(u.subject,a,u.object,u.why),s.AJAR_statement=f,e.className=e.className.replace(/ pendingedit/g,"")):r.log.warn("Failure occurs (#2) while inserting "+s.AJAR_statement+"\n\n"+o)})}catch(e){return r.log.error(e),void r.log.warn("Error when insert (#2) of statement "+t+":\n\t"+e)}e.className+=" pendingedit",this.lastModified=null}else this.formUndetStat(s,u.subject,a,u.object,u.why,!1),t.walk("right"),h=!0;t.replaceTD(e,n),l.remove(u)}else if("object"===e){const e=t.outlineObjectTD(a);if(t.replaceTD(e,n),n.previousSibling&&"undetermined"===n.previousSibling.className)t.walk("left"),h=!0;else{let t;t=p?new o.Statement(a,u.predicate,u.object,u.why):new o.Statement(u.subject,u.predicate,a,u.why);try{i.store.updater.update([],[t],function(n,o,c){let l;r.log.info("@@ usinput.js (object) callback ok="+o+" for statement:"+t+"\n "),o?(e.className=e.className.replace(/ pendingedit/g,""),l=p?i.store.statementsMatching(a,u.predicate,u.object,u.why):i.store.statementsMatching(u.subject,u.predicate,a,u.why),l.length||r.log.error("userinput.js 1711: Can't find statememt!"),s.AJAR_statement=l[0]):r.log.warn("userinput.js (object): Fail trying to insert statement "+t)})}catch(e){return r.log.error("userinput.js (object): exception trying to insert statement "+t+": "+r.utils.stackString(e)),void r.log.warn("Error trying to insert statement "+t+":\n"+e)}this.lastModified=null,e.className+=" pendingedit"}l.remove(u)}if(c.statements.push(f),!h)return!0;this.startFillInText(t.getSelection()[0])},formUndetStat:function(e,t,n,r,i,a){return e.AJAR_inverse=a,e.AJAR_statement=l.add(t,n,r,i),e.AJAR_statement}}};var r=s(n(500)),i=n(9332),a=s(n(4059)),o=s(n(8230));function s(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}let c,l},3660(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.default=e=>function(t){const n=r.utils.AJARImage(t.uri,r.utils.label(t),r.utils.label(t),e);return n.setAttribute("class","outlineImage"),n}},6357(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=e=>function(t){const n=e.createElement("a");let r="NamedNode"===t.termType?t.uri:t.value;const i=r.indexOf("mailto:");return r=i>=0?r.slice(i+7):r,n.setAttribute("href","mailto:"+r),n.appendChild(e.createTextNode(r)),n}},9370(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(9332),a=n(8230);const o={icon:r.icons.iconBase+"noun_79217.svg",name:"pad",audience:[r.ns.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/pad#Notepad"]?"pad":null},mintClass:r.ns.pad("Notepad"),mintNew:function(e,t){const n=e.session.store,i=n.updater;if(t.me&&!t.me.uri)throw new Error("notepad mintNew: Invalid userid");const a=t.newInstance=t.newInstance||n.sym(t.newBase+"index.ttl#this"),o=a.doc();n.add(a,r.ns.rdf("type"),r.ns.pad("Notepad"),o),n.add(a,r.ns.dc("title"),"Shared Notes",o),n.add(a,r.ns.dc("created"),new Date,o),t.me&&n.add(a,r.ns.dc("author"),t.me,o);const s=n.sym(a.uri+"_line0");return n.add(a,r.ns.pad("next"),s,o),n.add(s,r.ns.pad("next"),a,o),n.add(s,r.ns.dc("author"),t.me,o),n.add(s,r.ns.sioc("content"),"",o),new Promise(function(e,r){i?i.put(o,n.statementsMatching(void 0,void 0,void 0,o),"text/turtle",function(n,i,a){i?e(t):r(new Error("FAILED to save new tool at: "+n+" : "+a))}):r(new Error("Have no updater"))})},render:function(e,t,n){const o=t.dom,s=t.session.store,c=function(e,t){e||E.appendChild(r.widgets.errorMessageBlock(o,t,"pink"))},l=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},u=function(e,t,n){const i=(0,a.graph)(),o=(0,a.Namespace)("http://www.w3.org/ns/auth/acl#");let s=i.sym(t+"#a1");const c=i.sym(t),l=i.sym(e);return i.add(s,r.ns.rdf("type"),o("Authorization"),c),i.add(s,o("accessTo"),l,c),i.add(s,o("agent"),y,c),i.add(s,o("mode"),o("Read"),c),i.add(s,o("mode"),o("Write"),c),i.add(s,o("mode"),o("Control"),c),s=i.sym(t+"#a2"),i.add(s,r.ns.rdf("type"),o("Authorization"),c),i.add(s,o("accessTo"),l,c),i.add(s,o("agentClass"),r.ns.foaf("Agent"),c),i.add(s,o("mode"),o("Read"),c),n&&i.add(s,o("mode"),o("Write"),c),(0,a.serialize)(c,i,t,"text/turtle")},p=function(e,t,n){const r=s.any((0,a.sym)(e),(0,a.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!v)throw new Error("Have no fetcher");if(r){const i=u(e,r.uri,t);return v.webOperation("PUT",r.uri,{data:i,contentType:"text/turtle"}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})}return v.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=s.any((0,a.sym)(e),(0,a.sym)("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const r=u(e,n.uri,t);return v.webOperation("PUT",n.uri,{data:r,contentType:"text/turtle"})}).then(()=>n(!0)).catch(e=>{n(!1,e.message)})},d=function(e,t,n){const i=l(t);i.appendChild(r.login.newAppInstance(o,{noun:"notepad"},(e,t)=>f(new a.NamedNode(e||t)))),i.appendChild(o.createElement("hr"));i.appendChild(o.createElement("p")).textContent="Where would you like to store the data for the "+n+"? Give the URL of the directory where you would like the data stored.";const s=i.appendChild(o.createElement("input"));s.setAttribute("type","text"),s.size=80,s.label="base URL",s.autocomplete="on",i.appendChild(o.createElement("br"));const c=i.appendChild(o.createElement("button"));c.textContent="Start new "+n+" at this URI",c.addEventListener("click",function(t){let n=s.value;"/"!==n.slice(-1)&&(n+="/"),h(e,n)})},f=function(e){let t=s.any(e,r.ns.space("uriPrefix"));t=t?t.value:e.uri.split("#")[0],"/"!==t.slice(-1)&&(a.log.error(g+": No / at end of uriPrefix "+t),t+="/");const n=new Date;t+=g+"/id"+n.getTime()+"/",h(x,t)},h=function(e,t){const n=(0,a.sym)(e.uri.split("#")[0]),l=s.sym(t+"pad.ttl"),u=s.sym(t+"index.html"),d=[{local:"index.html",contentType:"text/html"}],f=s.sym(l.uri+"#thisPad"),h=[];let m;for(m=0;m<d.length;m++){const e=function(e){h.push(function(){const r=t+e.local;if(!s.fetcher)throw new Error("Store has no fetcher");s.fetcher.webCopy(n+e.local,t+e.local,e.contentType).then(()=>i.authn.checkUser()).then(e=>{y=e,p(r,!1,function(e,t){e?h.shift()():c(e,"FAILED to set ACL "+r+" : "+t)})}).catch(t=>{c(!1,"FAILED to copy "+n+e.local+" : "+t.message)})})};e(d[m])}h.push(function(){if(s.add(f,r.ns.rdf("type"),w("Notepad"),l),s.add(f,r.ns.dc("created"),new Date,l),y&&s.add(f,r.ns.dc("author"),y,l),s.add(f,w("next"),f,l),s.add(f,r.ns.space("inspiration"),e,k),s.add(f,r.ns.space("inspiration"),e,l),!b)throw new Error("Have no updater");b.put(l,s.statementsMatching(void 0,void 0,void 0,l),"text/turtle",function(e,t,n){t?h.shift()():c(t,"FAILED to save new notepad at: "+l.uri+" : "+n)})}),h.push(function(){p(l.uri,!0,function(e,t){c(e,"Failed to set Read-Write ACL on pad data file: "+t),e&&h.shift()()})}),h.push(function(){const e=E.appendChild(o.createElement("p"));e.setAttribute("style","font-size: 140%;"),e.innerHTML="Your <a href='"+u.uri+"'><b>new notepad</b></a> is ready. <br/><br/><a href='"+u.uri+"'>Go to new pad</a>"}),h.shift()()},m=function(t){y=i.authn.currentUser(),i.authn.checkUser().then(e=>{y=e});const a=s.any(e,r.ns.dc("title"))||s.any(e,r.ns.vcard("fn"));n.solo&&"undefined"!=typeof window&&a&&(window.document.title=a.value),L.exists=t,_=r.pad.notepad(o,k,e,y,L),A.appendChild(_);const c=s.any(e,r.ns.meeting("parentMeeting"))||e;if(r.pad.manageParticipation(o,R,k,c,y,L),!s.updater)throw new Error("Store has no updater");s.updater.setRefreshHandler(k,_.reloadAndSync)},g="app-pad.timbl.com",v=s.fetcher,b=s.updater;let y;const w=(0,a.Namespace)("http://www.w3.org/ns/pim/pad#"),x=e,k=e.doc();let _;const E=o.createElement("div"),C=E.appendChild(o.createElement("table"));C.setAttribute("style","background-color: white; min-width: 94%; margin-right:3% margin-left: 3%; min-height: 13em;");const S=C.appendChild(o.createElement("tr"));S.appendChild(o.createElement("td")),S.appendChild(o.createElement("td")),S.appendChild(o.createElement("td"));const A=C.appendChild(o.createElement("tr")).appendChild(o.createElement("td"));A.setAttribute("colspan","3");const T=C.appendChild(o.createElement("tr")),P=T.appendChild(o.createElement("td")),R=T.appendChild(o.createElement("td")),I=T.appendChild(o.createElement("td")),F=C.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),N=C.appendChild(o.createElement("tr")).appendChild(o.createElement("div")),O=C.appendChild(o.createElement("tr"));O.setAttribute("class","naviMenu"),O.appendChild(o.createElement("td")),O.appendChild(o.createElement("td")),O.appendChild(o.createElement("td"));const L={statusArea:F,timingArea:P};return function(){if(!v)throw new Error("Have no fetcher");v.nowOrWhenFetched(k.uri,void 0,function(t,n,i){if(t)l(A),s.holds(e,r.ns.rdf("type"),r.ns.wf("TemplateInstance"))&&d(e,A,"pad"),m(!0),I.appendChild(function(){const t=E.appendChild(o.createElement("button"));return t.textContent="Start another pad",t.addEventListener("click",function(){return d(e,N,"pad")}),t}());else if(404===i.status){if(!b)throw new Error("Have no updater");b.put(k,[],"text/turtle",function(e,t,n){t?(l(A),m(!1)):c(t,"FAILED to create results file at: "+k.uri+" : "+n)})}else c(t,"FAILED to read results file: "+n)})}(),E}};t.default=o},8912(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_1619.svg",name:"playlistSlot",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store;return n.anyStatementMatching(e,r.ns.rdf("type"),n.sym("http://purl.org/ontology/pbo/core#PlaylistSlot"))?"playlist slot":null},render:function(e,t){const n=t.dom;const a=function(e,t){if(!t)return e;const i=n.createElement("a");return i.setAttribute("href",t),i.appendChild(e),i.addEventListener("click",r.widgets.openHrefInOutlineMode,!0),i},o=function(e){return n.createTextNode(e)},s=t.session.store,c=s.any(e,i.sym("http://purl.org/ontology/pbo/core#playlist_item"));let l=s.any(e,i.sym("http://purl.org/ontology/olo/core#index")),u=c.uri;const p=function(e){if(!e)return{html5:!0};const t=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-_%]+)/i),n=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),r=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),i=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return t?{youtube:t}:n?{vimeo:n}:r?{dailymotion:r}:i?{vk:i}:void 0}(u),d=n.createElement("div");let f,h;if(p&&p.youtube?(u=u.replace("watch?v=","embed/"),d.setAttribute("class","imageView"),f=n.createElement("IFRAME"),f.setAttribute("src",u),f.setAttribute("width",560),f.setAttribute("height",315),f.setAttribute("frameborder",0),f.setAttribute("style","max-width: 850px; max-height: 100%;"),f.setAttribute("allowfullscreen","true")):(d.setAttribute("class","imageView"),f=n.createElement("IMG"),f.setAttribute("src",c.value),f.setAttribute("width",560),f.setAttribute("height",315),f.setAttribute("style","max-width: 560; max-height: 315;")),l){const t=s.statementsMatching(null,i.sym("http://purl.org/ontology/olo/core#index")),r=[];for(let e=0;e<t.length;e++)t[e]&&r.push(parseInt(t[e].object.value,10));l=parseInt(l.value,10),h=n.createElement("div");const c=r[(r.indexOf(l)-1+r.length)%r.length],u=r[(r.indexOf(l)+1+r.length)%r.length],p=a(o("<<"),e.uri.split("#")[0]+"#"+c);h.appendChild(p);const d=n.createElement("span");d.innerHTML=" Playlist slot : "+l+" ",h.appendChild(d);const f=a(o(">>"),e.uri.split("#")[0]+"#"+u);h.appendChild(f)}const m=n.createElement("TR");return m.appendChild(f),h&&m.appendChild(h),d.appendChild(m),d}}},2371(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerPanes=function(e){e(r.default);const t=r.default.editor;e(t),e(i.default),e(a.default),e(o.default),e(s.default),e(c.default),e(l.default),e(u.default),e(p.default),e(d.default),e(f.default),e(h.default),e(m.longChatPane),e(m.shortChatPane),e(g.schedulePane),e(v.default),e(b.imagePane),e(y.default),e(w.default),e(x.default),e(k.default),e(_.default),e(E.classInstancePane),e(C.slideshowPane),e(S.socialPane),e(A.default),e(T.dataContentPane),e(P.default),e(R.n3Pane),e(I.RDFXMLPane),e(F.formPane),e(N.tableViewPane),e(O.defaultPane),e(L.default),e(j.default),e(M.default),e(D.default)};var r=U(n(2643)),i=U(n(1917)),a=U(n(5682)),o=U(n(6106)),s=U(n(3931)),c=U(n(3955)),l=U(n(8938)),u=U(n(9370)),p=U(n(2368)),d=U(n(8131)),f=U(n(1927)),h=U(n(4036)),m=n(7052),g=n(9814),v=U(n(5130)),b=n(2168),y=U(n(8912)),w=U(n(6778)),x=U(n(6686)),k=U(n(2970)),_=U(n(1838)),E=n(5382),C=n(7978),S=n(7350),A=U(n(6380)),T=n(1424),P=U(n(3385)),R=n(7334),I=n(8236),F=n(5238),N=n(3472),O=n(4064),L=U(n(6682)),j=U(n(6298)),M=U(n(4930)),D=U(n(8426));function U(e){return e&&e.__esModule?e:{default:e}}},9814(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const s=r.ns,c=[s.sched("No"),s.sched("Maybe"),s.sched("Yes")];t.schedulePane={icon:r.icons.iconBase+"noun_346777.svg",name:"schedule",audience:[s.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/ns/pim/schedule#SchedulableEvent"]?"Scheduling poll":null},mintClass:s.sched("SchedulableEvent"),mintNew:function(e,t){return new Promise(function(n,o){const s=r.ns,c=e.session.store;let l=t.newBase;const u=t.useExisting||a.sym(t.newBase+"index.ttl#this"),p=function(e,t){e||o(new Error(t))},d=function(e,t,n){const i=a.graph(),o=a.Namespace("http://www.w3.org/ns/auth/acl#");let c=i.sym(t+"#a1");const l=i.sym(t),u=i.sym(e);return i.add(c,r.ns.rdf("type"),o("Authorization"),l),i.add(c,o("accessTo"),u,l),i.add(c,o("agent"),g,l),i.add(c,o("mode"),o("Read"),l),i.add(c,o("mode"),o("Write"),l),i.add(c,o("mode"),o("Control"),l),c=i.sym(t+"#a2"),i.add(c,r.ns.rdf("type"),o("Authorization"),l),i.add(c,o("accessTo"),u,l),i.add(c,o("agentClass"),s.foaf("Agent"),l),i.add(c,o("mode"),o("Read"),l),n&&i.add(c,o("mode"),o("Write"),l),a.serialize(l,i,t,"text/turtle")},f=function(e,t,n){const r=c.any(c.sym(e),c.sym("http://www.iana.org/assignments/link-relations/acl"));if(r){const i=d(e,r.uri,t);return h.webOperation("PUT",r.uri,{data:i,contentType:"text/turtle"}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})}return h.load(e).catch(e=>{n(!1,"Getting headers for ACL: "+e)}).then(()=>{const n=c.any(c.sym(e),c.sym("http://www.iana.org/assignments/link-relations/acl"));if(!n)throw new Error("No Link rel=ACL header for "+e);const r=d(e,n.uri,t);return h.webOperation("PUT",n.uri,{data:r,contentType:"text/turtle"})}).then(e=>n(!0)).catch(e=>{n(!1,e.message)})},h=c.fetcher,m=c.updater;let g=t.me||i.authn.currentUser();if(!g)return void alert("NOT LOGGED IN");const v=u.dir().uri;let b,y;if(t.useExisting){if(y=t.useExisting,l=u.dir().uri,b=y.doc(),t.newBase)throw new Error("mint new scheduler: Illegal - have both new base and existing event")}else b=c.sym(l+"details.ttl"),y=c.sym(b.uri+"#event");const w=c.sym(l+"results.ttl"),x=t.noIndexHTML?{}:[{local:"index.html",contentType:"text/html"}],k=[];for(let e=0;e<x.length;e++){const t=function(e){k.push(function(){const t=l+e.local;c.fetcher.webCopy(v+e.local,l+e.local,e.contentType).then(()=>i.authn.checkUser()).then(e=>{g=e,f(t,!1,function(e,n){e?k.shift()():p(e,"FAILED to set ACL "+t+" : "+n)})}).catch(t=>{p(!1,"FAILED to copy "+v+e.local+" : "+t.message)})})};t(x[e])}k.push(function(){c.add(y,s.rdf("type"),s.sched("SchedulableEvent"),b),g&&(c.add(y,s.dc("author"),g,b),c.add(y,s.foaf("maker"),g,b)),c.add(y,s.dc("created"),new Date,b),c.add(y,s.sched("resultsDocument"),b),m.put(b,c.statementsMatching(void 0,void 0,void 0,b),"text/turtle",function(e,t,n){t?k.shift()():p(t,"FAILED to save new scheduler at: "+b+" : "+n)})}),k.push(function(){c.fetcher.webOperation("PUT",w.uri,{data:"",contentType:"text/turtle"}).then(()=>{k.shift()()}).catch(e=>{p(!1,"Failed to initialize empty results file: "+e.message)})}),k.push(function(){f(w.uri,!0,function(e,t){p(e,"Failed to set Read-Write ACL on results file: "+t),e&&k.shift()()})}),k.push(function(){f(b.uri,!1,function(e,t){p(e,"Failed to set read ACL on configuration file: "+t),e&&k.shift()()})}),k.push(function(){t.newInstance=y,n(t)}),k.shift()()})},render:function(e,t){const n=t.dom,o=t.session.store,s=r.ns,l=e,u="app-when-can-we.w3.org",p=o.fetcher,d=o.updater;let f=!1;const h=e,m=e.doc(),g=m.dir().uri,v=a.sym(g+"results.ttl"),b="https://solidos.github.io/solid-panes/schedule/formsForSchedule.ttl",y=o.sym(b+"#form1"),w=o.sym(b+"#form2"),x=o.sym(b+"#form3");a.parse('@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix sched: <http://www.w3.org/ns/pim/schedule#>.\n\n cal:Vevent ui:annotationForm <#form2>, <#form3>; ui:creationForm <#form1> .\n\n<#bigForm>\n dc:title\n "Schedule event (single form).";\n a ui:Group;\n ui:parts ( <#form1> <#form2> <#form3> ).\n\n<#form1>\n dc:title\n "Schedule an event (wizard)";\n a ui:Form;\n ui:parts (\n <#form1header>\n <#eventTitle>\n <#eventLocation>\n <#eventType>\n <#eventSwitch>\n <#eventComment>\n <#eventAuthor> ).\n\n<#form1header> a ui:Heading; ui:contents "Schedule an event" .\n\n<#eventTitle>\n a ui:SingleLineTextField;\n ui:maxLength\n "128";\n ui:property\n cal:summary;\n ui:size\n "40".\n\n<#eventLocation>\n a ui:SingleLineTextField;\n ui:maxLength\n "512";\n ui:property\n cal:location;\n ui:size\n "40".\n\n<#eventType> a ui:BooleanField;\n ui:property sched:allDay;\n ui:default true . # Used to be the only way\n\n<#eventSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm> ].\n\n <#AllDayForm> a ui:IntegerField ;\n ui:property sched:durationInDays;\n ui:label "How many days?";\n ui:min 1;\n ui:default 1 .\n\n <#NotAllDayForm> a ui:IntegerField ;\n ui:property sched:durationInMinutes;\n ui:label "Duration (mins)";\n ui:min 5;\n ui:default 55 .\n\n<#eventComment>\n a ui:MultiLineTextField;\n# ui:maxLength\n# "1048";\n# ui:size\n# "40".\n ui:property\n cal:comment.\n\n<#eventAuthor>\n a ui:Multiple; ui:min 1; ui:part <#eventAuthorGroup>; ui:property dc:author.\n\n <#eventAuthorGroup> a ui:Group; ui:parts ( <#authorName> <#authorEmail> ) .\n <#authorName> a ui:SingleLineTextField; ui:property foaf:name .\n <#authorEmail> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n\n\n#####################\n\n<#form2> dc:title "Select possible days or times"; a ui:Form;\n ui:parts ( <#id1118132113134> <#possibleSwitch> ).\n\n <#id1118132113134> a ui:Heading; ui:contents "Time proposals" .\n\n <#possibleSwitch> a ui:Options;\n ui:dependingOn sched:allDay;\n ui:case [ ui:for true; ui:use <#AllDayForm2> ];\n ui:case [ ui:for false; ui:use <#NotAllDayForm2> ].\n\n <#AllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleDate>; ui:property sched:option.\n <#posssibleDate> a ui:DateField; ui:property cal:dtstart; ui:label "date".\n\n <#NotAllDayForm2>\n a ui:Multiple; ui:min 2; ui:part <#posssibleTime>; ui:property sched:option.\n <#posssibleTime> a ui:DateTimeField; ui:property cal:dtstart; ui:label "date and time".\n\n ##################################\n\n <#form3> dc:title "Select invited people"; a ui:Form; ui:parts ( <#id1118132113135> <#id1417314641301b> ) .\n<#id1417314641301b>\n a ui:Multiple; ui:min 1; ui:part <#id1417314674292b>; ui:property sched:invitee.\n <#id1417314674292b> a ui:EmailField; ui:label "email"; ui:property foaf:mbox .\n <#id1118132113135> a ui:Heading; ui:contents "Who to invite" .\n\n# ENDS\n',o,b,"text/turtle");const k="background-color: #eef; padding: 0.5em; border: .5em solid white; font-size: 100%",_="width: 1.8em; height: 1.8em;",E=function(e,t){e||D.appendChild(r.widgets.errorMessageBlock(n,t,"pink"))},C=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},S=function(e,t){const n=o.any(t,r.ns.ui("backgroundColor"));n&&e.setAttribute("style","padding: 0.3em; text-align: center; background-color: "+n+";")};let A;i.authn.checkUser().then(e=>{A=e,z&&z.refresh(),e&&f&&(f=!1,I())});const T=function(e){let t=o.any(e,s.space("uriPrefix"));t=t?t.value:e.uri.split("#")[0],"/"!==t.slice(-1)&&(a.log.error(u+": No / at end of uriPrefix "+t),t+="/");const n=new Date;t+=u+"/id"+n.getTime()+"/",P(h,t)},P=function(e,r){const i={thisInstance:e,newBase:r};this.mintNew(t,i).then(function(e){const t=D.appendChild(n.createElement("p"));t.setAttribute("style","font-size: 140%;"),t.innerHTML="Your <a href='"+e.newInstance.uri+"'><b>new scheduler</b></a> is ready to be set up. <br/><br/><a href='"+e.newInstance.uri+"'>Say when you what days work for you.</a>"}).catch(function(e){E(!1,"Error createing new scheduler at "+i.newInstance+": "+e)})},R=function(){p.nowOrWhenFetched(m.uri,void 0,function(e,t){if(!e)return E(e,t);I()})},I=function(){i.authn.checkUser().then(t=>{if(!t)return F();if(!o.updater.editable(m.uri,o)||o.holds(e,s.rdf("type"),s.wf("TemplateInstance")))return void N(D);o.any(e,s.sched("ready"))?j():L()})},F=function(){C(H);const e={div:D,dom:n};r.login.ensureLoggedIn(e).then(e=>{A=e.me,f=!1,I()})},N=function(){const e=C(H);e.appendChild(r.login.newAppInstance(n,{noun:"poll"},T)),e.appendChild(n.createElement("hr"));e.appendChild(n.createElement("p")).textContent="Where would you like to store the data for the poll? Give the URL of the directory where you would like the data stored.";const t=e.appendChild(n.createElement("input"));t.setAttribute("type","text"),t.size=80,t.label="base URL",t.autocomplete="on",e.appendChild(n.createElement("br"));const i=e.appendChild(n.createElement("button"));i.setAttribute("style",k),i.textContent="Start new poll at this URI",i.addEventListener("click",function(e){let n=t.value;"/"!==n.slice(-1)&&(n+="/"),P(h,n)})},O=n.createElement("button"),L=function(){C(W);let t=0,i=!1;{const a=[y,w,x],o=[];t=0;for(let t=0;t<a.length;t++){const i=n.createElement("div");r.widgets.appendForm(document,i,{},e,a[t],m,E),o.push(i)}const s=function(){C(H).appendChild(o[t]),0===t?c.setAttribute("disabled",""):c.removeAttribute("disabled"),t===o.length-1?(u.setAttribute("disabled",""),i||(W.appendChild(l),W.appendChild(O),i=!0)):u.removeAttribute("disabled")},c=C($).appendChild(n.createElement("button"));c.setAttribute("style",k),c.textContent="<- go back",c.addEventListener("click",function(e){t>0&&(t-=1,s())},!1);const u=C(V).appendChild(n.createElement("button"));u.setAttribute("style",k),u.textContent="continue ->",u.addEventListener("click",function(e){t<o.length-1&&(t+=1,s())},!1),s()}const c=[];c.push(a.st(e,s.sched("availabilityOptions"),s.sched("YesNoMaybe"),m)),c.push(a.st(e,s.sched("ready"),new Date,m)),c.push(a.st(e,s.sched("results"),v,m)),O.setAttribute("style",k),O.textContent="Go to poll",O.addEventListener("click",function(t){o.any(e,s.sched("ready"))?(j(),V.appendChild(l)):(V.appendChild(l),o.updater.update([],c,function(e,t,n){t?j():E(t,n)}))},!1);const l=n.createElement("button");l.setAttribute("style",k);const u=l.appendChild(n.createElement("img"));u.setAttribute("src",r.icons.iconBase+"noun_480183.svg"),u.setAttribute("style",_),l.addEventListener("click",function(t){const n=o.anyValue(e,s.cal("summary"))||o.anyValue(e,s.dc("title"))||"",r="mailto:"+o.each(e,s.sched("invitee")).map(function(e){const t=o.any(e,s.foaf("mbox"));return t?t.uri.replace("mailto:",""):""}).join(",")+"?subject="+encodeURIComponent(n+"-- When can we meet?")+"&body="+encodeURIComponent(n+"\n\nWhen can you?\n\nSee "+e+"\n");window.location.href=r},!1)};function j(){p.nowOrWhenFetched(v.uri,(e,t,n)=>{e?(C(H),M()):404===n.status?d.put(v,[],"text/turtle",function(e,t,n){t?(C(H),M()):E(t,"FAILED to create results file at: "+v.uri+" : "+n)}):E(e,"FAILED to read results file: "+t)})}function M(){const t=o.any(l,s.cal("summary")),i=o.any(l,s.cal("comment")),u=o.any(l,s.cal("location")),p=H;t&&(p.appendChild(n.createElement("h3")).textContent=t),u&&(p.appendChild(n.createElement("address")).textContent=u.value),i&&(p.appendChild(n.createElement("p")).textContent=i.value);const d=o.any(l,s.dc("author"));if(d){const e=o.any(d,s.foaf("name"));e&&(p.appendChild(n.createElement("p")).textContent=e)}const f=new a.Query("Responses"),h={};["time","author","value","resp","cell"].forEach(function(e){f.vars.push(h[e]=a.variable(e))}),f.pat.add(l,s.sched("response"),h.resp),f.pat.add(h.resp,s.dc("author"),h.author),f.pat.add(h.resp,s.sched("cell"),h.cell),f.pat.add(h.cell,s.sched("availabilty"),h.value),f.pat.add(h.cell,s.cal("dtstart"),h.time);const m={};m.set_x=o.each(e,s.sched("option")),m.set_x=m.set_x.map(function(e){return o.any(e,s.cal("dtstart"))}),m.set_y=o.each(e,s.sched("response")),m.set_y=m.set_y.map(function(e){return o.any(e,s.dc("author"))});const g=o.each(l,s.sched("option")).map(function(e){return o.any(e,s.cal("dtstart"))}),b=function(){const e=p.appendChild(r.matrix.matrixForQuery(n,f,h.time,h.author,h.value,m,function(){}));e.setAttribute("class","matrix");const t=n.createElement("button");t.setAttribute("style",k);const i=n.createElement("img");i.setAttribute("src",r.icons.iconBase+"noun_479395.svg"),i.setAttribute("style",_),t.appendChild(i),t.addEventListener("click",function(n){t.disabled=!0,o.fetcher.refresh(v,function(n,r){n&&(e.refresh(),t.disabled=!1)})},!1),C(W),W.appendChild(t)},y=[],w={div:W,dom:n};r.login.ensureLoggedIn(w).then(e=>{const t=e.me,i=v;m.set_y=m.set_y.filter(function(e){return!e.sameTerm(t)}),m.set_y.push(t),m.cellFunction=function(e,i,a,l){if(null!==l&&o.fetcher.nowOrWhenFetched(l.uri.split("#")[0],void 0,function(t,n){t&&S(e,l)}),a.sameTerm(t)){const t=function(){S(e,l)},a={},u=s.sched("availabilty"),p=y[i.toNT()],d=r.widgets.makeSelectForOptions(n,o,p,u,c,a,v,t);e.appendChild(d)}else null!==l&&(e.textContent=r.utils.label(l))};const u=o.each(l,s.sched("response"));let p=null;u.forEach(function(e){o.holds(e,s.dc("author"),t)&&(p=e)});const d=[],f=r.widgets.newThing(i).uri;if(null===p)p=a.sym(f+"_response"),d.push(a.st(l,s.sched("response"),p,i)),d.push(a.st(p,s.dc("author"),t,i));else{o.each(p,s.sched("cell")).forEach(function(e){const t=o.any(e,s.cal("dtstart"));y[t.toNT()]=e})}for(let e=0;e<g.length;e++){if(y[g[e].toNT()])continue;const t=a.sym(f+"_"+e);d.push(a.st(p,s.sched("cell"),t,i)),d.push(a.st(t,s.cal("dtstart"),g[e],i)),y[g[e].toNT()]=t}d.length?o.updater.update([],d,function(e,t,n){t?b():E(t,n)}):b()});const x=o.any(e,s.foaf("maker"));if(!x||x.sameTerm(A)){const e=n.createElement("button");e.setAttribute("style",k);const t=n.createElement("img");t.setAttribute("src",r.icons.iconBase+"noun_344563.svg"),t.setAttribute("style",_),e.appendChild(t),e.addEventListener("click",function(e){C(p),L()},!1),C($),$.appendChild(e)}C(V),V.appendChild(function(){const e=r.login.newAppInstance(n,{noun:"scheduler"},T);return e.firstChild.setAttribute("style",k),e}())}const D=n.createElement("div"),U=D.appendChild(n.createElement("table"));U.setAttribute("style","background-color: white; min-width: 40em; min-height: 13em;");const B=U.appendChild(n.createElement("tr"));B.appendChild(n.createElement("td")),B.appendChild(n.createElement("td")),B.appendChild(n.createElement("td"));const z=null,H=U.appendChild(n.createElement("tr")).appendChild(n.createElement("td"));H.setAttribute("colspan","3");const q=U.appendChild(n.createElement("tr"));q.setAttribute("class","naviMenu"),q.setAttribute("style"," text-align: middle; vertical-align: middle; padding-top: 4em; ");const $=q.appendChild(n.createElement("td")),W=q.appendChild(n.createElement("td")),V=q.appendChild(n.createElement("td"));return R(),D}}},6298(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500);const i={icon:r.icons.iconBase+"padlock-timbl.svg",name:"sharing",label:(e,t)=>{const n=t.session.store.findTypeURIs(e);return n[r.ns.ldp("Resource").uri]||n[r.ns.ldp("Container").uri]||n[r.ns.ldp("BasicContainer").uri]?"Sharing":null},render:(e,t)=>{const n=t.dom,i=t.session.store,a=function(){const t=i.findTypeURIs(e);if(t[r.ns.ldp("BasicContainer").uri]||t[r.ns.ldp("Container").uri])return"folder";return"file"}(),o=n.createElement("div");return o.classList.add("sharingPane"),r.aclControl.preventBrowserDropEvents(n),o.appendChild(r.aclControl.ACLControlBox5(e,t,a,i)),o}};t.default=i},7978(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.slideshowPane=void 0;var r,i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500)),a=(r=n(6305))&&r.__esModule?r:{default:r};const o=i.ns;t.slideshowPane={icon:i.icons.iconBase+"noun_138712.svg",name:"slideshow",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,r=i.ns,a=n.findTypeURIs(e);if(a[r.ldp("Container").uri]||a[r.ldp("BasicContainer").uri]){const t=n.each(e,r.ldp("contains"));let a=0;return t.forEach(function(e){i.widgets.isImage(e)&&a++}),a>0?"Slideshow":null}return null},render:function(e,t){const n=t.dom;i.widgets.addStyleSheet(n,"https://leemark.github.io/better-simple-slideshow/css/simple-slideshow-styles.css");const r=t.session.store,o=i.ns,s=n.createElement("div");s.setAttribute("class","bss-slides");const c=r.findTypeURIs(e);let l;(c[o.ldp("BasicContainer").uri]||c[o.ldp("Container").uri])&&(l=o.ldp("contains"));const u=r.each(e,l);u.sort();for(let e=0;e<u.length;e++){if(!i.widgets.isImage(u[e]))continue;const t=s.appendChild(n.createElement("figure")),a=t.appendChild(n.createElement("img"));r.fetcher._fetch(u[e].uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("width","100%"),t.appendChild(n.createElement("figcaption"))}const p={dom:n};return setTimeout(function(){(0,a.default)(".bss-slides",p)},1e3),s}}},7350(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.socialPane=void 0;var r=o(n(500)),i=n(9332),a=o(n(8230));function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.socialPane={icon:r.icons.originalIconBase+"foaf/foafTiny.gif",name:"social",label:function(e,t){const n=t.session.store.findTypeURIs(e);return n[r.ns.foaf("Person").uri]||n[r.ns.vcard("Individual").uri]?"Friends":null},render:function(e,t){const n=t.dom,o=function(e){const t=n.createElement("p");t.textContent=e,x.appendChild(t)},s=function(e,t){if(!t)return e;const r=n.createElement("a");return r.setAttribute("href",t),r.appendChild(e),r},c=function(e){return n.createTextNode(e)},l=t.getOutliner(n),u=t.session.store,p=n.createElement("div");p.setAttribute("class","socialPane");const d=r.ns.foaf,f=r.ns.vcard,h="background-color: #eee; width: 25%; border: 0; padding: 0.5em; margin: 0;",m=p.appendChild(n.createElement("table")).appendChild(n.createElement("tr")),g=m.appendChild(n.createElement("td")),v=m.appendChild(n.createElement("td")),b=m.appendChild(n.createElement("td")),y=g;y.style.cssText=h;const w=v.appendChild(n.createElement("table"));w.style.cssText="background-color: #fff; color: #000; width: 46%; margin: 0; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 0;";const x=b;x.style.cssText=h;const k=u.any(e,d("img"))||u.any(e,d("depiction"));if(k){const e=n.createElement("IMG");e.setAttribute("src",k.uri),e.style.cssText=" width: 100% ; border: none; margin: 0; padding: 0;",y.appendChild(e)}const _=u.anyValue(e,d("name"))||"???";let E=n.createElement("H3");E.appendChild(n.createTextNode(_));let C=i.authn.currentUser();const S=C?C.uri:null,A=r.login.loginStatusBox(n,e=>{C=u.sym(e),r.widgets.refreshTree(p)});x.appendChild(A);const T=C&&u.sameThings(C,e),P=d("knows"),R=u.anyValue(e,d("givenname"))||u.anyValue(e,d("firstName"))||u.anyValue(e,d("nick"))||u.anyValue(e,d("name"))||u.anyValue(e,f("fn")),I=u.each(e,P);let F,N,O=null,L=!1;if(C){const t=u.each(void 0,d("primaryTopic"),C);let i="";for(let e=0;e<t.length;e++)if(u.whether(t[e],r.ns.rdf("type"),d("PersonalProfileDocument"))){if(L=l.UserInput.sparqler.editable(t[e].uri,u),L){O=t[e];break}i+="Your profile <"+r.utils.escapeForXML(t[e].uri)+"> is not remotely editable."}if(O?(o("Editing your profile "+O+"."),L=l.UserInput.sparqler.editable(O.uri,u)):o(i+"\nI couldn't find your editable personal profile document."),T);else{E=n.createElement("h3"),E.appendChild(n.createTextNode("You and "+R)),y.appendChild(E);const t=u.canon(C);F=u.whether(e,P,t),N=!1;const i=u.statementsMatching(t,P,e);i.length&&(N=!0,O||(O=i[0].why));const o=n.createElement("tr");y.appendChild(o);const p=function(){o.appendChild(s(c("You"),S)),o.appendChild(c(" and ")),o.appendChild(s(c(R),e.uri))};if(F?N?(p(),o.appendChild(c(" say you know each other."))):(o.appendChild(s(c(R),e.uri)),o.appendChild(c(" knows ")),o.appendChild(s(c("you"),S)),o.appendChild(c(" (unconfirmed).")),o.appendChild(c(" confirm you know ")),o.appendChild(s(c(R),e.uri)),o.appendChild(c("."))):N?(o.appendChild(s(c("You"),S)),o.appendChild(c(" know ")),o.appendChild(s(c(R),e.uri)),o.appendChild(c(" (unconfirmed)"))):(p(),o.appendChild(c(" have not said you know each other."))),L){const t=function(e,t,i){const a=n.createElement("form"),o=n.createElement("input");a.appendChild(o);const s=n.createTextNode(e);return s.className="question",a.appendChild(s),o.setAttribute("type","checkbox"),o.checked=i,o.addEventListener("click",function(e){if(s.className="pendingedit",this.checked)try{l.UserInput.sparqler.insert_statement(t,function(e,n,i){if(s.className="question",!n)return r.log.alert(null,"Message","Error occurs while inserting "+t+"\n\n"+i),void(o.checked=!1);u.add(t.subject,t.predicate,t.object,t.why)})}catch(e){r.log.error("Data write fails:"+e),r.log.alert("Data write fails:"+e),o.checked=!1,s.className="question"}else try{l.UserInput.sparqler.delete_statement(t,function(e,n,i){s.className="question",n?u.removeMany(t.subject,t.predicate,t.object,t.why):(r.log.alert("Error occurs while deleting "+t+"\n\n"+i),this.checked=!0)})}catch(e){r.log.alert("Delete fails:"+e),this.checked=!0}},!1),a}("You know "+R,new a.Statement(C,P,e,O),N);y.appendChild(t)}if(I){const e=u.each(C,d("knows"));if(e.length){const t=function(e,t){const n=[];for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)if(t[i].sameTerm(e[r])){n.push(t[i]);break}return n}(I,e),i=n.createElement("tr");if(y.appendChild(i),i.appendChild(n.createTextNode("You"+(R?" and "+R:"")+" know"+function(e){let t=" ";return t+=e||"no",1===e?t+" person":t+" people"}(t.length)+" found in common")),t)for(let e=0;e<t.length;e++)i.appendChild(n.createTextNode(", "+r.utils.label(t[e])))}const t=n.createElement("tr");y.appendChild(t)}}}r.widgets.attachmentList(n,e,w,{doc:O,modify:!!L,predicate:d("knows"),noun:"friend"}),E=n.createElement("h3"),E.appendChild(n.createTextNode("Basic Information")),y.appendChild(E);const j=[r.ns.foaf("homepage"),r.ns.foaf("weblog"),r.ns.foaf("workplaceHomepage"),r.ns.foaf("schoolHomepage")];for(let t=0;t<j.length;t++){const i=j[t],a=u.statementsMatching(e,i);if(0===a.length);else{const e=[];for(let t=0;t<a.length;t++){const n=a[t];n.object.uri&&e.push(n.object.uri)}e.sort();let t,o="";for(let a=0;a<e.length;a++){const s=e[a];if(s===o)continue;o=s;let c="";if(t=r.utils.label(i),e.length>1){const e=s.indexOf("//");if(e>0){let t=s.indexOf("/",e+2);const n=s.lastIndexOf(".",t);n>0&&(t=n),c=s.slice(e+2,t)}}c&&(t=c+" "+t);const l=n.createTextNode(t),u=n.createElement("a");u.appendChild(l),u.setAttribute("href",s);const p=n.createElement("div");p.style.cssText="width: 80%; background-color: #fff; border: solid 0.05em #ccc; margin-top: 0.1em; margin-bottom: 0.1em; padding: 0.1em; text-align: center;",p.appendChild(u),y.appendChild(p)}}}const M=[r.ns.foaf("openid"),r.ns.foaf("nick")];for(let t=0;t<M.length;t++){const n=M[t],r=u.statementsMatching(e,n);0===r.length||l.appendPropertyTRs(y,r,!1,function(e){return!0})}return p}}},4036(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500);const i={icon:r.icons.iconBase+"noun_688606.svg",name:"tabbed",audience:[r.ns.solid("PowerUser")],label:(e,t)=>{const n=t.session.store.findTypeURIs(e);return r.ns.meeting("Cluster").uri in n?"Tabbed":null},render:(e,t)=>{const n=t.dom,i=t.session.store,a=n.createElement("div");return(async()=>{if(!i.fetcher)throw new Error("Store has no fetcher");await i.fetcher.load(e),a.appendChild(r.tabs.tabWidget({dom:n,subject:e,predicate:i.any(e,r.ns.meeting("predicate"))||r.ns.meeting("toolList"),ordered:!0,orientation:i.anyValue(e,r.ns.meeting("orientation"))||"0",renderMain:(e,n)=>{e.innerHTML="";const r=e.appendChild(t.dom.createElement("table"));t.getOutliner(t.dom).GotoSubject(n,!0,null,!1,void 0,r)},renderTab:(n,a)=>{const o=i.the(e,r.ns.meeting("predicate"));n.appendChild(r.widgets.personTR(t.dom,o,a,{}))},backgroundColor:i.anyValue(e,r.ns.ui("backgroundColor"))||"#ddddcc"}))})(),a}};t.default=i},3472(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableViewPane=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));t.tableViewPane={icon:r.icons.originalIconBase+"table.png",name:"tableOfClass",label:function(e,t){const n=t.session.store;if(!n.any(void 0,r.ns.rdf("type"),e))return null;const i=n.statementsMatching(void 0,r.ns.rdf("type"),e).length;return 0===i||i>15?null:r.utils.label(e)+" table"},render:function(e,t){const n=t.dom,i=n.createElement("div");return i.setAttribute("class","tablePane"),i.appendChild(r.table(n,{tableClass:e})),i}}},2368(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_106746.svg",name:"transaction",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,i=n.findTypeURIs(e);return i["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]?"$$":n.any(e,r.ns.qu("amount"))?"$$$":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(e,t){const n=t.dom,a=t.session.store,s=a.fetcher,c=i.Namespace("http://www.w3.org/2000/10/swap/pim/qif#"),l=i.Namespace("http://www.w3.org/ns/pim/trip#"),u=n.createElement("div");u.setAttribute("class","transactionPane");const p=function(e){return function(e,t){void 0===t&&(t="color: grey");const r=n.createElement("pre");r.setAttribute("style",t),u.appendChild(r),r.appendChild(n.createTextNode(e))}(e,"color: #100; background-color: #fee")},d=a.statementsMatching(e),f=a.statementsMatching(void 0,void 0,e),h=a.findTypeURIs(e),m={},g=function(e){m[e.uri]=!0},v=function(e){if(void 0===e)return"";const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"},b=function(e,t){const r=n.createElement("td");return 0+e===0&&t||(r.textContent=v(e)),r.setAttribute("style","width: 6em; text-align: right; "),r},y=function(e){const t=n.createElement("th");return t.textContent=e,t.setAttribute("style","text-align: right; "),t},w=function(e,t){const n=a.any(e,o.qu("date")),r=a.any(t,o.qu("date"));if(void 0!==n&&void 0!==r){if(n.value<r.value)return-1;if(n.value>r.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0},x=function(e,n,r,i,a){n.expanded?(n.parentNode.removeChild(n.expanded),n.expanded=!1):function(e,n,r,i,a){const o=n.parentNode.children;if(a)for(let e=o.length-1;e>=0;e--)o[e].expanded&&(o[e].parentNode.removeChild(o[e].expanded),o[e].expanded=!1);const s=e.createElement("tr"),c=s.appendChild(e.createElement("td"));c.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const l=n.children.length;n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),n.expanded=s,c.setAttribute("colspan",""+l),c.appendChild(function(e,t,n){const r=e.session.paneRegistry.byName(n).render(t,e);return r.setAttribute("style","border: 0.1em solid green;"),r}(t,r,i))}(e,n,r,i,a)};if(h["http://www.w3.org/2000/10/swap/pim/qif#Transaction"]||a.any(e,o.qu("toAccount"))){g(o.rdf("type"));const h=a.any(e,r.ns.qu("toAccount"));!function(e){let t="padding: 0.5em 1.5em 1em 1.5em; ";if(e){const n=a.any(e,r.ns.ui("backgroundColor"));n&&(t+="background-color: "+n.value+"; ")}u.setAttribute("style",t)}(h),h||p("(Error: There is no bank account known for this transaction <"+e.uri+">,\n -- every transaction needs one.)");let v=null;const b=a.any(e,r.ns.qu("accordingTo"));void 0===b?p("(Error: There is no back link to the original data source foir this transaction <"+e.uri+">,\nso I can't tell how to annotate it.)"):(v=void 0!==b?a.any(b,r.ns.qu("annotationStore")):null,void 0===v&&p("(There is no annotation document for this statement\n<"+b.uri+">,\nso you cannot classify this transaction.)"));const y=n.createElement("div");y.setAttribute("style","float:right"),u.appendChild(y);const w=function(t,i){g(t);const o=a.any(e,t);if(!o)return;const s=n.createElement("a");s.setAttribute("href",o.uri),s.setAttribute("style","float:right"),y.appendChild(s).textContent=i||r.utils.label(o),y.appendChild(n.createElement("br"))};w(r.ns.qu("toAccount")),w(r.ns.qu("accordingTo"),"Statement"),w(l("trip"));const x=n.createElement("table");u.appendChild(x);const k=["date","payee","amount","in_USD","currency"].map(c).map(function(t){g(t);const n=a.any(e,t),i=n?r.utils.labelForXML(n):"";return'<tr><td style="text-align: right; padding-right: 0.6em">'+r.utils.labelForXML(t)+'</td><td style="font-weight: bold;">'+i+"</td></tr>"}).join("\n");x.innerHTML=k;const _=function(e,t){e||p("Sorry, failed to save your change:\n"+t)};v&&a.fetcher.nowOrWhenFetched(v.uri,e,function(c,h){c||p("Cannot load store "+v+" "+h);const b=a.any(v,o.qu("calendarYear")),y=function(){u.insertBefore(r.widgets.makeSelectForNestedCategory(n,a,e,r.ns.qu("Classified"),v,_),x.nextSibling)};a.any(void 0,o.rdfs("subClassOf"),o.qu.Classified)?y():b&&s.load(b).then(function(e){s.load(a.each(b,o.rdfs("seeAlso"))).then(function(){y()}).catch(function(e){})}).catch(function(e){}),u.appendChild(r.widgets.makeDescription(n,a,e,r.ns.rdfs("comment"),v,_));let w=a.statementsMatching(void 0,l("trip"),void 0,v).map(function(e){return e.object});const k=a.each(void 0,r.ns.rdf("type"),l("Trip"));w=w.concat(k).sort();w=function(e,t,n,r){const i=t.map(function(t){let r=e.any(t,n);return r=r?r.value:"9999-12-31",[r,t]});return i.sort(),r&&i.reverse(),i.map(function(e){return e[1]})}(a,w,r.ns.cal("dtstart"),!0),w.length>1&&u.appendChild(r.widgets.makeSelectForOptions(n,a,e,l("trip"),w,{multiple:!1,nullLabel:"-- what trip? --",mint:"New Trip *",mintClass:l("Trip"),mintStatementsFun:function(e){const t=[];return t.push(i.st(e,r.ns.rdf("type"),l("Trip"),e.doc())),t}},v,_)),u.appendChild(n.createElement("br"));const E=t.getOutliner(n);g(o.rdfs("comment")),r.widgets.attachmentList(n,e,u),g(o.wf("attachment")),u.appendChild(n.createElement("tr")).setAttribute("style","height: 1em"),E.appendPropertyTRs(u,d,!1,function(e,t){return!(e.uri in m)}),E.appendPropertyTRs(u,f,!0,function(e,t){return!(e.uri in m)})})}else if(h["http://www.w3.org/ns/pim/trip#Trip"]){const t=function(){const t={},i={},s={},c=a.each(void 0,l("trip"),e),d=c.map(function(e){return e.doc()});a.fetcher.load(d).then(function(){c.forEach(function(e){const n=a.the(e,o.qu("date")),c=n?(""+n.value).slice(0,4):"????";let l=a.the(e,o.rdf("type"));if(l||(l=r.ns.qu("ErrorNoType")),l&&l.uri){const n=l.uri;i[c]||(i[c]=0),s[c]||(s[c]={}),t[n]||(t[n]=0),s[c][n]||(s[c][n]=0);const o=a.any(e,r.ns.qu("in_USD"));if(o||p("@@ No amount in USD: "+o+" for "+e),o){const e=parseFloat(o.value);t[n]+=e,s[c][n]+=e,i[c]+=e}}});const l=[];let d=0;const f=[];let h;for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&f.push(e);f.sort();const m=f.length;let g;const k=u.appendChild(n.createElement("table"));if(k.setAttribute("style","font-size: 120%; margin-left:auto; margin-right:1em; margin-top: 1em; border: 0.05em solid gray; padding: 1em;"),m>1){const e=k.appendChild(n.createElement("tr"));for(e.appendChild(y("")),h=0;h<m;h++)e.appendChild(y(f[h]));e.appendChild(y("total"))}for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(l.push(e),d+=t[e]);let _,E,C;l.sort();for(let e=0;e<l.length;e++){const i=a.sym(l[e]);if(_=k.appendChild(n.createElement("tr")),E=_.appendChild(n.createElement("td")),E.textContent=r.utils.label(i),m>1)for(h=0;h<m;h++)C=s[f[h]][l[e]],g=_.appendChild(b(C,!0));_.appendChild(b(t[l[e]],!0))}if(l.length>1){if(_=k.appendChild(n.createElement("tr")),_.appendChild(y("total")),m>1)for(h=0;h<m;h++)C=i[f[h]],g=_.appendChild(b(C?v(C):""));g=_.appendChild(b(d)),g.setAttribute("style","font-weight: bold; text-align: right;")}const S=function(e,t,n){const i=e.createElement("table");i.setAttribute("style","padding-left: 0.5em; padding-right: 0.5em; font-size: 9pt; width: 85%;");const s=function(e,t){const n=e.createElement("tr"),i=a.any(t,o.qu("toAccount"));!function(e,t){let n="'padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.1em;";if(t){const e=a.any(t,r.ns.ui("backgroundColor"));e&&(n+="background-color: "+e.value+"; ")}e.setAttribute("style",n)}(n,i);const s=n.appendChild(e.createElement("td")),c=a.any(t,o.qu("date"));s.textContent=c?c.value.slice(0,10):"???",s.setAttribute("style","width: 7em;");const l=n.appendChild(e.createElement("td"));l.setAttribute("style","width: 36em;");const u=a.any(t,o.qu("payee"));l.textContent=u?u.value:"???";const p=l.appendChild(e.createElement("a"));p.textContent=" ➜",p.setAttribute("href",t.uri);const d=n.appendChild(e.createElement("td")),f=a.any(t,o.qu("in_USD"));return d.textContent=f?v(f.value):"???",d.setAttribute("style","width: 6em; text-align: right; "),n.addEventListener("click",function(r){x(e,n,t,"transaction",!r.shiftKey)},!1),n},c=n?t.filter(n):t.slice();c.sort(w);for(let t=0;t<c.length;t++)i.appendChild(s(e,c[t]));return i}(n,c);S.setAttribute("style","margin-left:auto; margin-right:1em; margin-top: 1em; border: padding: 1em;"),u.appendChild(S),r.widgets.attachmentList(n,e,u)}).catch(function(e){p("Error loading transactions: "+e)})};t()}return u}}},8131(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o}(e,t)}(n(500));const i=r.ns;t.default={icon:r.icons.iconBase+"noun_142708.svg",name:"period",audience:[i.solid("PowerUser")],label:function(e,t){return t.session.store.findTypeURIs(e)["http://www.w3.org/2000/10/swap/pim/qif#Period"]?"period":null},render:function(e,t){const n=t.dom,i=t.session.store,a=r.ns,o=n.createElement("div");o.setAttribute("class","periodPane");const s=function(e,t){t||(t="color: grey;");const r=n.createElement("pre");r.setAttribute("style",t),o.appendChild(r),r.appendChild(n.createTextNode(e))},c=function(e){return s("✓ "+e,"color: #010; background-color: #efe")},l=function(e){return s(e,"color: #100; background-color: #fee")},u=function(){const s=i.any(e,a.cal("dtstart"));void 0===s&&l("(Error: There is no start date known for this period <"+e.uri+">,\n -- every period needs one.)");const u=i.any(e,a.cal("dtend"));void 0===u&&l("(Error: There is no end date known for this period <"+e.uri+">,\n -- every period needs one.)");const p={};var d;d=a.rdf("type"),p[d.uri]=!0;const f=function(e){return!!((t=i.any(e,a.qu("date")))&&t>=s&&t<u);var t},h=function(e,t){const n=i.any(e,a.qu("date")),r=i.any(t,a.qu("date"));if(void 0!==n&&void 0!==r){if(n.value<r.value)return-1;if(n.value>r.value)return 1}return e.uri<t.uri?-1:e.uri>t.uri?1:0};o.appendChild(n.createElement("h2")).textContent="Period "+s.value.slice(0,10)+" - "+u.value.slice(0,10);const m=function(e,n,r,i,a){n.expanded?(n.parentNode.removeChild(n.expanded),n.expanded=!1):function(e,n,r,i,a){const o=n.parentNode.children;if(a)for(let e=o.length-1;e>=0;e--)o[e].expanded&&(o[e].parentNode.removeChild(o[e].expanded),o[e].expanded=!1);const s=e.createElement("tr"),c=s.appendChild(e.createElement("td"));c.setAttribute("style","width: 98%; padding: 1em; border: 0.1em solid grey;");const l=n.children.length;n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),n.expanded=s,c.setAttribute("colspan",""+l),c.appendChild(function(e,t,n){const r=e.session.paneRegistry.byName(n).render(t,e);return r.setAttribute("style","border: 0.1em solid green;"),r}(t,r,i))}(e,n,r,i,a)},g=function(e,t){const n=e.createElement("table");n.setAttribute("style","margin-left: 100; font-size: 9pt; width: 85%;");const o=function(e,t){const n=e.createElement("tr"),o=i.any(t,a.qu("toAccount"));!function(e,t){let n="margin-left: 8em; padding-left: 5em;";if(t){const e=i.any(t,r.ns.ui("backgroundColor"));e&&(n+="background-color: "+e.value+"; ")}e.setAttribute("style",n)}(n,o);const s=n.appendChild(e.createElement("td")),c=i.any(t,a.qu("date"));s.textContent=c?c.value.slice(0,10):"???",s.setAttribute("style","width: 7em;");const l=n.appendChild(e.createElement("td"));l.setAttribute("style","width: 36em;");const u=i.any(t,a.qu("payee"));l.textContent=u?u.value:"???";const p=l.appendChild(e.createElement("a"));p.textContent=" ➜",p.setAttribute("href",t.uri);const d=n.appendChild(e.createElement("td")),f=i.any(t,a.qu("in_USD"));return d.textContent=f?function(e){const t=""+e;return t.indexOf(".")>=0?t.split(".")[0]+"."+(t.split(".")[1]+"00").slice(0,2):t+".00"}(f.value):"???",d.setAttribute("style","width: 6em; text-align: right; "),n.addEventListener("click",function(r){m(e,n,t,"transaction",!r.shiftKey)},!1),n},s=t.filter(f);s.sort(h);for(let t=0;t<s.length;t++)n.appendChild(o(e,s[t]));return n},v={"http://www.w3.org/2000/10/swap/pim/qif#Transaction":!0,"http://www.w3.org/2000/10/swap/pim/qif#Unclassified":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedOutgoing":!0,"http://www.w3.org/2000/10/swap/pim/qif#UnclassifiedIncome":!0},b=i.findMemberURIs(a.qu("Transaction")),y=[],w=[];let x,k,_,E;for(const e in b)if(Object.prototype.hasOwnProperty.call(b,e)){k=i.sym(e);const t=i.each(k,a.rdf("type"));let n=!1;for(let e=0;e<t.length;e++){void 0===v[t[e].uri]&&(n=!0)}n||(x=i.any(k,a.qu("in_USD")),void 0===x&&(x=i.any(k,a.qu("amount"))),x&&(""+x.value).indexOf("-")>=0?w.push(i.sym(e)):y.push(i.sym(e)))}y.length?(_=g(n,y),E=_.children.length,o.appendChild(n.createElement("h3")).textContent="Unclassified Income"+(E<4?"":" ("+E+")"),o.appendChild(_)):c("No unclassified income"),w.length?(_=g(n,w),E=_.children.length,o.appendChild(n.createElement("h3")).textContent="Unclassified Outgoings"+(E<4?"":" ("+E+")"),o.appendChild(_)):c("No unclassified outgoings ");const C=function(e,t){const s=function(e){const t=i.findSubClassesNT(a.qu("Transaction"));for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n.slice(1,-1).split("#")[1]===e)return i.sym(n.slice(1,-1));return null}(e);let c;const u=[];let p=0;if(!s)return l("Error: No category correspnding to "+e),null;const d=i.each(void 0,a.rdf("type"),s);for(let e=0;e<d.length;e++)i.any(d[e],t)||u.push(d[e]);return u.length&&(c=g(n,u),p=c.children.length,o.appendChild(n.createElement("h3")).textContent=r.utils.label(s)+" with no "+r.utils.label(t)+(p<4?"":" ("+p+")"),o.appendChild(c)),p};0===C("Reimbursables",a.trip("trip"))&&c("Reimbursables all have trips"),0===C("Other_Inc_Speaking",a.trip("trip"))&&c("Speaking income all has trips")};if(i.findTypeURIs(e)["http://www.w3.org/2000/10/swap/pim/qif#Period"]){const t=i.each(e,a.rdfs("seeAlso"));i.fetcher.load(t).then(function(){u()})}return o}}},5130(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_62007.svg",name:"travel expenses",audience:[o.solid("PowerUser")],label:function(e,t){const n=t.session.store,i=n.findTypeURIs(e);return r.ns.qu("Transaction")in n.findSuperClassesNT(e)?"by Trip":i["http://www.w3.org/ns/pim/trip#Trip"]?"Trip $":null},render:function(e,t){const n=t.dom,a=t.store,o=r.ns,s=i.Namespace("http://www.w3.org/2002/12/cal/ical#"),c=i.Namespace("http://www.w3.org/ns/pim/trip#"),l=n.createElement("div");l.setAttribute("class","transactionPane"),l.innerHTML="<h2>Trip transactions</h2>";const u=function(e,t){void 0===t&&(t="color: grey");const r=n.createElement("pre");r.setAttribute("style",t),l.appendChild(r),r.appendChild(n.createTextNode(e))},p=a.findTypeURIs(e),d=function(e,t){const s=new i.Query(r.utils.label(e)),l={};["date","transaction","comment","type","in_USD"].forEach(function(e){s.vars.push(l[e]=i.variable(e))}),s.pat.add(l.transaction,c("trip"),e);const p=a.formula();p.add(l.transaction,o.rdf("type"),l.type),s.pat.optional.push(p),s.pat.add(l.transaction,r.ns.qu("date"),l.date),p.add(l.transaction,o.rdfs("comment"),l.comment),s.pat.optional.push(p),s.pat.add(l.transaction,r.ns.qu("in_USD"),l.in_USD);const d=r.table(n,{query:s,onDone:function(){const t={},n=a.each(void 0,c("trip"),e);n.forEach(function(e){let n=a.the(e,o.rdf("type"));if(n||(n=r.ns.qu("ErrorNoType")),n&&n.uri){const i=n.uri;t[i]||(t[i]=0);const o=a.any(e,r.ns.qu("in_USD"));o||u(" @@ No amount in USD: "+o+" for "+e),o&&(t[i]=t[i]+parseFloat(o.value))}});let i="",s=0,l=0;for(const e in t)i+=r.utils.label(a.sym(e))+": "+t[e]+"; ",s++,l+=t[e];u("Totals of "+n.length+" transactions: "+i,""),s>1&&u("Overall net: "+l,"text-treatment: bold;")}});t.appendChild(d)};if(r.ns.qu("Transaction")in a.findSuperClassesNT(e)){const t=a.each(void 0,o.rdf("type"),e),n=[],i=[];for(let e=0;e<t.length;e++){const o=t[e],s=a.any(o,c("trip"));if(s){o in i||(i[s]={total:0,transactions:[]});const e=a.any(o,r.ns.qu("in_USD"));e&&(i[s].total+=e);const t=a.any(o,r.ns.qu("date"));i[s.toNT()].transactions.push([t,o])}else n.push(o)}const u=[];for(const e in i){const t=a.fromNT(e);u.push([a.any(t,s("dtstart")),t])}u.sort();for(let e=0;e<u.length;e++){d(u[e][1],l)}}else p["http://www.w3.org/ns/pim/trip#Trip"]&&d(e,l);return l}}},5438(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationTable=function e(t){const n=c("table",{class:"results"}),r=l("tr",[u("th","Application URL"),u("th","Access modes"),u("th","Actions")]);return n.appendChild(r),a.store.each(t,i.ns.acl("trustedApp"),void 0,void 0).flatMap(e=>a.store.each(e,i.ns.acl("origin"),void 0,void 0).map(t=>({appModes:a.store.each(e,i.ns.acl("mode"),void 0,void 0),origin:t}))).sort((e,t)=>e.origin.value<t.origin.value?-1:1).forEach(({appModes:e,origin:r})=>n.appendChild(s(t,r,e,o))),n.appendChild(s(t,null,[i.ns.acl("Read")],o)),n;function o(){n.parentElement.replaceChild(e(t),n)}},t.createContainer=l,t.createText=u;var r=n(8230),i=n(500),a=n(9332),o=n(8847);function s(e,t,n,s){const d={origin:t,appModes:n,formElements:{modes:[],origin:void 0}};return l("tr",[l("td",[l("form",[c("input",{class:"textinput",placeholder:"Write new URL here",value:t?t.value:""},{},e=>{d.formElements.origin=e})],{},{submit:f})]),l("td",[l("form",p(d),{},{submit:f})]),l("td",[l("form",t?[u("button","Update",{class:"controlButton",style:"background: LightGreen;"}),u("button","Delete",{class:"controlButton",style:"background: LightCoral;"},{click:function(t){let n;t.preventDefault();try{n=(0,r.sym)(d.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to remove trust from")}const s=(0,o.getStatementsToDelete)(n,e,a.store,i.ns);if(!a.store.updater)throw new Error("Store has no updater");a.store.updater.update(s,[],h)}})]:[u("button","Add",{class:"controlButton",style:"background: LightGreen;"})],{},{submit:f})])]);function f(t){let n;t.preventDefault();try{n=(0,r.sym)(d.formElements.origin.value)}catch(e){return alert("Please provide an application URL you want to trust")}const s=d.formElements.modes.filter(e=>e.checked).map(e=>e.value),c=(0,o.getStatementsToDelete)(d.origin||n,e,a.store,i.ns),l=(0,o.getStatementsToAdd)(n,(0,o.generateRandomString)(),s,e,i.ns);if(!a.store.updater)throw new Error("Store has no updater");a.store.updater.update(c,l,h)}function h(e,t,n){if(t)return s()}}function c(e,t={},n={},r=null){const i=document.createElement(e);return r&&r(i),Object.keys(t).forEach(e=>{i.setAttribute(e,t[e])}),Object.keys(n).forEach(e=>{i.addEventListener(e,n[e])}),i}function l(e,t,n={},r={},i=null){const a=c(e,n,r,i);return t.forEach(e=>a.appendChild(e)),a}function u(e,t,n={},r={},i=null){const a=c(e,n,r,i);return a.textContent=t,a}function p({appModes:e,formElements:t}){return["Read","Write","Append","Control"].map(n=>l("label",[c("input",{type:"checkbox",...e.some(e=>e.value===i.ns.acl(n).value)?{checked:""}:{},value:i.ns.acl(n).uri},{},e=>t.modes.push(e)),u("span",n)]))}},8847(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomString=function(){return Math.random().toString(36).substr(2,5)},t.getStatementsToAdd=function(e,t,n,i,a){const o=new r.BlankNode(`bn_${t}`);return[(0,r.st)(i,a.acl("trustedApp"),o,i.doc()),(0,r.st)(o,a.acl("origin"),e,i.doc()),...n.map(e=>(0,r.sym)(e)).map(e=>(0,r.st)(o,a.acl("mode"),e,i.doc()))]},t.getStatementsToDelete=function(e,t,n,r){const i=n.statementsMatching(null,r.acl("origin"),e);return i.reduce((e,i)=>e.concat(n.statementsMatching(t,r.acl("trustedApp"),i.subject)).concat(n.statementsMatching(i.subject)),[])};var r=n(8230)},1917(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(500),i=n(9332),a=n(5438);const o={global:!0,icon:`${r.icons.iconBase}noun_15177.svg`,name:"trustedApplications",label:()=>null,render:(e,t)=>{const n=t.dom,o=n.createElement("div");o.classList.add("trusted-applications-pane"),o.setAttribute("style","border: 0.3em solid #418d99; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;");const s=o.appendChild(n.createElement("table")),c=s.appendChild(n.createElement("tr")),l=s.appendChild(n.createElement("tr")).appendChild(n.createElement("div"));return l.setAttribute("style","padding: 0.7em;"),async function(e,t,n){const o=await r.login.ensureLoadedProfile({dom:e,div:t,statusArea:n,me:null}),s=o.me,c=s.doc();if(!i.store.updater)throw new Error("Store has no updater");const l=i.store.updater.editable(c.uri,i.store);if(t.appendChild((0,a.createText)("h3","Manage your trusted applications")),!l)return void t.appendChild(r.widgets.errorMessageBlock(e,`Your profile ${s.doc().uri} is not editable, so we cannot do much here.`));t.appendChild((0,a.createText)("p","Here you can manage the applications you trust."));const u=(0,a.createApplicationTable)(s);t.appendChild(u),t.appendChild((0,a.createText)("h4","Notes")),t.appendChild((0,a.createContainer)("ol",[t.appendChild((0,a.createText)("li","Trusted applications will get access to all resources that you have access to.")),t.appendChild((0,a.createText)("li","You can limit which modes they have by default.")),t.appendChild((0,a.createText)("li","They will not gain more access than you have."))])),t.appendChild((0,a.createText)("p","Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app."))}(n,c,l).catch(e=>l.appendChild(r.widgets.errorMessageBlock(n,e))),o}};t.default=o},6682(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const o=r.ns;t.default={icon:r.icons.iconBase+"noun_170702.svg",name:"ui",audience:[o.solid("PowerUser")],label:function(e,t){const n=r.ns,i=t.session.store.findTypeURIs(e);return i[n.rdfs("Class").uri]?"creation forms":i[n.ui("Form").uri]?"edit form":null},render:function(e,t){const n=t.dom,a=t.session.store,o=r.ns,s=n.createElement("div");s.setAttribute("class","formPane");const c=r.utils.label(e),l=function(e,t){const r=n.createElement("p");return r.setAttribute("style",t||"color: grey; background-color: white"),s.appendChild(r).textContent=e,r},u=function(e,t){l(e,"style")},p=function(e,t){e||u("Sorry, failed to save your change:\n"+t)},d=a.findTypeURIs(e);let f,h,m=null;e.uri&&(f=i.Util.uri.docpart(e.uri),e.uri!==f&&a.updater.editable(f)&&(m=a.sym(i.Util.uri.docpart(e.uri)))),m||(m=a.any(a.sym(f),o.link("annotationStore"))),m||(m=r.widgets.defaultAnnotationStore(e)),m||(m=a.sym("https://formsregistry.solid.community/public/formRegistry/")),d[o.rdfs("Class").uri];const g=l("(Loading data from: "+m+")");return a.fetcher.nowOrWhenFetched(m.uri,e,function(i,f){if(i)if(s.removeChild(g),d[o.rdfs("Class").uri]){const i=function(i,d){const f=a.statementsMatching(e,i),h=t.getOutliner(n);if(f.length){for(let t=0;t<f.length;t++){h.appendPropertyTRs(s,[f[t]]);const i=f[t].object,c=n.createElement("td");s.lastChild.appendChild(c),d&&c.appendChild(r.widgets.newButton(n,a,null,null,e,i,m,function(e,t){e||u("Sorry, failed to save your change:\n"+t)}));let l=a.statementsMatching(i,o.rdf("type"));l.length||(l=a.statementsMatching(i)),l.length?r.widgets.editFormButton(n,s,i,l[0].why,p):u("No data about form")}s.appendChild(n.createElement("hr"))}else l("There are currently no known forms to make a "+c+".")};h=o.ui("creationForm"),s.appendChild(n.createElement("h2")).textContent=r.utils.label(h),l("Creation forms allow you to add information about a new thing, in this case a new "+c+"."),i(h,!0),s.appendChild(n.createElement("hr")),l("You can make a new creation form:"),s.appendChild(r.widgets.newButton(n,a,e,h,o.ui("Form"),null,m,p)),s.appendChild(n.createElement("hr")),h=o.ui("annotationForm"),s.appendChild(n.createElement("h2")).textContent=r.utils.label(h),l("Annotaion forms allow you to add extra information about a ,"+c+" we already know about."),i(h,!1),s.appendChild(n.createElement("hr")),l("You can make a new annotation form:"),s.appendChild(r.widgets.newButton(n,a,e,h,o.ui("Form"),null,m,p)),l("(Storing new forms in: "+m+")")}else d[o.ui("Form").uri]?r.widgets.appendForm(n,s,a,e,o.ui("FormForm"),m,p):u("ui/pane internal error -- Eh?");else u("Cannot load store "+m+" :"+f)}),s}}},4959(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={buildTime:"2026-02-23T18:23:25Z",commit:"aa09685725f8b4b928f10df372ae6422ca570082",npmInfo:{"solid-panes":"4.2.3",npm:"10.8.2",node:"20.20.0",acorn:"8.15.0",ada:"2.9.2",ares:"1.34.6",brotli:"1.1.0",cjs_module_lexer:"2.1.0",cldr:"47.0",icu:"77.1",llhttp:"9.3.0",modules:"115",napi:"9",nghttp2:"1.61.0",openssl:"3.0.17",simdutf:"6.4.2",tz:"2025b",undici:"6.23.0",unicode:"16.0",uv:"1.46.0",uvwasi:"0.0.23",v8:"11.3.244.8-node.33",zlib:"1.3.1-470d3a2"}}},6778(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(500)),i=a(n(8230));function a(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(a=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}t.default={icon:r.icons.iconBase+"noun_1619.svg",name:"video",label:function(e,t){const n=t.session.store.findTypeURIs(e),r=i.Util.mediaTypeClass("video/*").uri.split("*")[0];for(const e in n)if(e.startsWith(r))return"Play video";return null},render:function(e,t){const n=t.session.store,r=t.dom,i=r.createElement("div"),a=i.appendChild(r.createElement("video"));return a.setAttribute("controls","yes"),n.fetcher._fetch(e.uri).then(function(e){return e.blob()}).then(function(e){const t=URL.createObjectURL(e);a.setAttribute("src",t)}),a.setAttribute("width","100%"),i}}},500(e,t,n){var r;r=(e,t)=>(()=>{var n={49(e,t,n){"use strict";
|
|
371
371
|
/*!
|
|
372
372
|
* mime-types
|
|
373
373
|
* Copyright(c) 2014 Jonathan Ong
|
|
@@ -428,7 +428,7 @@ class g extends f{constructor(){super(...arguments),this._$CK=new h(this),this._
|
|
|
428
428
|
* Copyright 2017 Google LLC
|
|
429
429
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
430
430
|
*/
|
|
431
|
-
const r=globalThis,i=e=>e,a=r.trustedTypes,o=a?a.createPolicy("lit-html",{createHTML:e=>e}):void 0,s="$lit$",c=`lit$${Math.random().toFixed(9).slice(2)}$`,l="?"+c,u=`<${l}>`,p=document,d=()=>p.createComment(""),f=e=>null===e||"object"!=typeof e&&"function"!=typeof e,h=Array.isArray,m=e=>h(e)||"function"==typeof e?.[Symbol.iterator],g="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,y=/>/g,w=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,k=/"/g,_=/^(?:script|style|textarea|title)$/i,E=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),C=E(1),S=E(2),A=E(3),T=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),R=new WeakMap,I=p.createTreeWalker(p,129);function F(e,t){if(!h(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(t):t}const N=(e,t)=>{const n=e.length-1,r=[];let i,a=2===t?"<svg>":3===t?"<math>":"",o=v;for(let t=0;t<n;t++){const n=e[t];let l,p,d=-1,f=0;for(;f<n.length&&(o.lastIndex=f,p=o.exec(n),null!==p);)f=o.lastIndex,o===v?"!--"===p[1]?o=b:void 0!==p[1]?o=y:void 0!==p[2]?(_.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=w):void 0!==p[3]&&(o=w):o===w?">"===p[0]?(o=i??v,d=-1):void 0===p[1]?d=-2:(d=o.lastIndex-p[2].length,l=p[1],o=void 0===p[3]?w:'"'===p[3]?k:x):o===k||o===x?o=w:o===b||o===y?o=v:(o=w,i=void 0);const h=o===w&&e[t+1].startsWith("/>")?" ":"";a+=o===v?n+u:d>=0?(r.push(l),n.slice(0,d)+s+n.slice(d)+c+h):n+c+(-2===d?t:h)}return[F(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]};class O{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let i=0,o=0;const u=e.length-1,p=this.parts,[f,h]=N(e,t);if(this.el=O.createElement(f,n),I.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=I.nextNode())&&p.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const e of r.getAttributeNames())if(e.endsWith(s)){const t=h[o++],n=r.getAttribute(e).split(c),a=/([.?@])?(.*)/.exec(t);p.push({type:1,index:i,name:a[2],strings:n,ctor:"."===a[1]?U:"?"===a[1]?B:"@"===a[1]?z:D}),r.removeAttribute(e)}else e.startsWith(c)&&(p.push({type:6,index:i}),r.removeAttribute(e));if(_.test(r.tagName)){const e=r.textContent.split(c),t=e.length-1;if(t>0){r.textContent=a?a.emptyScript:"";for(let n=0;n<t;n++)r.append(e[n],d()),I.nextNode(),p.push({type:2,index:++i});r.append(e[t],d())}}}else if(8===r.nodeType)if(r.data===l)p.push({type:2,index:i});else{let e=-1;for(;-1!==(e=r.data.indexOf(c,e+1));)p.push({type:7,index:i}),e+=c.length-1}i++}}static createElement(e,t){const n=p.createElement("template");return n.innerHTML=e,n}}function L(e,t,n=e,r){if(t===T)return t;let i=void 0!==r?n._$Co?.[r]:n._$Cl;const a=f(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(e),i._$AT(e,n,r)),void 0!==r?(n._$Co??=[])[r]=i:n._$Cl=i),void 0!==i&&(t=L(e,i._$AS(e,t.values),i,r)),t}class j{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??p).importNode(t,!0);I.currentNode=r;let i=I.nextNode(),a=0,o=0,s=n[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new M(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new H(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=I.nextNode(),a++)}return I.currentNode=p,r}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=L(this,e,t),f(e)?e===P||null==e||""===e?(this._$AH!==P&&this._$AR(),this._$AH=P):e!==this._$AH&&e!==T&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):m(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==P&&f(this._$AH)?this._$AA.nextSibling.data=e:this.T(p.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,r="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=O.createElement(F(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{const e=new j(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=R.get(e.strings);return void 0===t&&R.set(e.strings,t=new O(e)),t}k(e){h(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const i of e)r===t.length?t.push(n=new M(this.O(d()),this.O(d()),this,this.options)):n=t[r],n._$AI(i),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=i(e).nextSibling;i(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=P,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=P}_$AI(e,t=this,n,r){const i=this.strings;let a=!1;if(void 0===i)e=L(this,e,t,0),a=!f(e)||e!==this._$AH&&e!==T,a&&(this._$AH=e);else{const r=e;let o,s;for(e=i[0],o=0;o<i.length-1;o++)s=L(this,r[n+o],t,o),s===T&&(s=this._$AH[o]),a||=!f(s)||s!==this._$AH[o],s===P?e=P:e!==P&&(e+=(s??"")+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class U extends D{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===P?void 0:e}}class B extends D{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==P)}}class z extends D{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=L(this,e,t,0)??P)===T)return;const n=this._$AH,r=e===P&&n!==P||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==P&&(n===P||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class H{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){L(this,e)}}const q={M:s,P:c,A:l,C:1,L:N,R:j,D:m,V:L,I:M,H:D,N:B,U:z,B:U,F:H},$=r.litHtmlPolyfillSupport;$?.(O,M),(r.litHtmlVersions??=[]).push("3.3.2");const W=(e,t,n)=>{const r=n?.renderBefore??t;let i=r._$litPart$;if(void 0===i){const e=n?.renderBefore??null;r._$litPart$=i=new M(t.insertBefore(d(),e),e,void 0,n??{})}return i._$AI(e),i}},23(e,t,n){"use strict";function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.r(t),n.d(t,{Hooks:()=>be,Lexer:()=>he,Marked:()=>ye,Parser:()=>ve,Renderer:()=>me,TextRenderer:()=>ge,Tokenizer:()=>fe,defaults:()=>i,getDefaults:()=>r,lexer:()=>Pe,marked:()=>xe,options:()=>ke,parse:()=>Ae,parseInline:()=>Se,parser:()=>Te,setOptions:()=>_e,use:()=>Ee,walkTokens:()=>Ce});var i={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function a(e){i=e}var o={exec:()=>null};function s(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(l.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var c=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),l={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,d=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=s(d).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),h=s(d).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),m=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,g=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,v=s(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",g).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=s(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),y="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",w=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,x=s("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",w).replace("tag",y).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),k=s(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),_={blockquote:s(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",k).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:v,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:x,lheading:f,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:k,table:o,text:/^[^\n]+/},E=s("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),C={..._,lheading:h,table:E,paragraph:s(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",E).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex()},S={..._,html:s("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",w).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:o,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:s(m).replace("hr",u).replace("heading"," *#{1,6} *[^\n]").replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},A=/^( {2,}|\\)\n(?!\s*$)/,T=/[\p{P}\p{S}]/u,P=/[\s\p{P}\p{S}]/u,R=/[^\s\p{P}\p{S}]/u,I=s(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,P).getRegex(),F=/(?!~)[\p{P}\p{S}]/u,N=/(?![*_])[\p{P}\p{S}]/u,O=s(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",c?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),L=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,j=s(L,"u").replace(/punct/g,T).getRegex(),M=s(L,"u").replace(/punct/g,F).getRegex(),D="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",U=s(D,"gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,P).replace(/punct/g,T).getRegex(),B=s(D,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,F).getRegex(),z=s("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,P).replace(/punct/g,T).getRegex(),H=s(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,N).getRegex(),q=s("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|[*_])/u).replace(/punctSpace/g,/(?![*_])[\s\p{P}\p{S}]/u).replace(/punct/g,N).getRegex(),$=s(/\\(punct)/,"gu").replace(/punct/g,T).getRegex(),W=s(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=s(w).replace("(?:--\x3e|$)","--\x3e").getRegex(),G=s("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),K=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,J=s(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",K).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Q=s(/^!?\[(label)\]\[(ref)\]/).replace("label",K).replace("ref",g).getRegex(),Y=s(/^!?\[(ref)\](?:\[\])?/).replace("ref",g).getRegex(),X=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Z={_backpedal:o,anyPunctuation:$,autolink:W,blockSkip:O,br:A,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:o,delLDelim:o,delRDelim:o,emStrongLDelim:j,emStrongRDelimAst:U,emStrongRDelimUnd:z,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:J,nolink:Y,punctuation:I,reflink:Q,reflinkSearch:s("reflink|nolink(?!\\()","g").replace("reflink",Q).replace("nolink",Y).getRegex(),tag:G,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:o},ee={...Z,link:s(/^!?\[(label)\]\((.*?)\)/).replace("label",K).getRegex(),reflink:s(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K).getRegex()},te={...Z,emStrongRDelimAst:B,emStrongLDelim:M,delLDelim:H,delRDelim:q,url:s(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",X).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:s(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",X).getRegex()},ne={...te,br:s(A).replace("{2,}","*").getRegex(),text:s(te.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},re={normal:_,gfm:C,pedantic:S},ie={normal:Z,gfm:te,breaks:ne,pedantic:ee},ae={"&":"&","<":"<",">":">",'"':""","'":"'"},oe=e=>ae[e];function se(e,t){if(t){if(l.escapeTest.test(e))return e.replace(l.escapeReplace,oe)}else if(l.escapeTestNoEncode.test(e))return e.replace(l.escapeReplaceNoEncode,oe);return e}function ce(e){try{e=encodeURI(e).replace(l.percentDecode,"%")}catch{return null}return e}function le(e,t){let n=e.replace(l.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(l.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(l.slashPipe,"|");return n}function ue(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n){if(a===t||!n)break;i++}else i++}return e.slice(0,r-i)}function pe(e,t=0){let n=t,r="";for(let t of e)if("\t"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function de(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}var fe=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ue(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ue(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ue(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ue(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t,a=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),a=!0;else{if(a)break;o.push(e[t])}e=e.slice(t);let s=o.join("\n"),c=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,0===e.length)break;let u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if("list"===u?.type){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=pe(t[2].split("\n",1)[0],t[1].length),l=e.split("\n",1)[0],u=!c.trim(),p=0;if(this.options.pedantic?(p=2,s=c.trimStart()):u?p=t[1].length+1:(p=c.search(this.rules.other.nonSpaceChar),p=p>4?1:p,s=c.slice(p),p+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+"\n",e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),i=this.rules.other.fencesBeginRegex(p),a=this.rules.other.headingBeginRegex(p),o=this.rules.other.htmlBeginRegex(p),d=this.rules.other.blockquoteBeginRegex(p);for(;e;){let f,h=e.split("\n",1)[0];if(l=h,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting," "),f=l):f=l.replace(this.rules.other.tabCharGlobal," "),i.test(l)||a.test(l)||o.test(l)||d.test(l)||t.test(l)||n.test(l))break;if(f.search(this.rules.other.nonSpaceChar)>=p||!l.trim())s+="\n"+f.slice(p);else{if(u||c.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+="\n"+l}u=!l.trim(),r+=h+"\n",e=e.substring(h.length+1),c=f.slice(p)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),"text"===e.tokens[0]?.type||"paragraph"===e.tokens[0]?.type){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=le(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(le(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ue(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),de(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return de(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,a=[...r[0]].length-1,o=a,s=0,c="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=c.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&a%3&&!((a+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);let t=[...r[0]][0].length,c=e.slice(0,a+r.index+t+i);if(Math.min(a,i)%2){let e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n,i,a=[...r[0]].length-1,o=a,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=s.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(i=[...n].length,i!==a))continue;if(r[3]||r[4]){o+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o);let t=[...r[0]][0].length,s=e.slice(0,a+r.index+t+i),c=s.slice(a,-a);return{type:"del",raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},he=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new fe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:l,block:re.normal,inline:ie.normal};this.options.pedantic?(t.block=re.pedantic,t.inline=ie.pedantic):this.options.gfm&&(t.block=re.gfm,this.options.breaks?t.inline=ie.breaks:t.inline=ie.gfm),this.tokenizer.rules=t}static get rules(){return{block:re,inline:ie}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(l.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(l.tabCharGlobal," ").replace(l.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&"paragraph"===a?.type?(a.raw+=(a.raw.endsWith("\n")?"":"\n")+r.raw,a.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,o="";for(;e;){let n;if(a||(o=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,o)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,r,o)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),a=!0;let r=t.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return t}},me=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(l.notSpaceStart)?.[0],i=e.replace(l.endingNewline,"")+"\n";return r?'<pre><code class="language-'+se(r)+'">'+(n?i:se(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:se(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${se(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=ce(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+se(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=ce(e);if(null===i)return se(n);let a=`<img src="${e=i}" alt="${n}"`;return t&&(a+=` title="${se(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:se(e.text)}},ge=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ve=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new me,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ge}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==n||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=n||"";continue}}let i=r;switch(i.type){case"space":t+=this.renderer.space(i);break;case"hr":t+=this.renderer.hr(i);break;case"heading":t+=this.renderer.heading(i);break;case"code":t+=this.renderer.code(i);break;case"table":t+=this.renderer.table(i);break;case"blockquote":t+=this.renderer.blockquote(i);break;case"list":t+=this.renderer.list(i);break;case"checkbox":t+=this.renderer.checkbox(i);break;case"html":t+=this.renderer.html(i);break;case"def":t+=this.renderer.def(i);break;case"paragraph":t+=this.renderer.paragraph(i);break;case"text":t+=this.renderer.text(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}let a=i;switch(a.type){case"escape":case"text":n+=t.text(a);break;case"html":n+=t.html(a);break;case"link":n+=t.link(a);break;case"image":n+=t.image(a);break;case"checkbox":n+=t.checkbox(a);break;case"strong":n+=t.strong(a);break;case"em":n+=t.em(a);break;case"codespan":n+=t.codespan(a);break;case"br":n+=t.br(a);break;case"del":n+=t.del(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return n}},be=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?he.lex:he.lexInline}provideParser(){return this.block?ve.parse:ve.parseInline}},ye=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ve;Renderer=me;TextRenderer=ge;Lexer=he;Tokenizer=fe;Hooks=be;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new me(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new fe(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new be;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];be.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&be.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return!1===n&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return he.lex(e,t??this.defaults)}parser(e,t){return ve.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?he.lex:he.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?ve.parse:ve.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?he.lex:he.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?ve.parse:ve.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+se(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},we=new ye;function xe(e,t){return we.parse(e,t)}xe.options=xe.setOptions=function(e){return we.setOptions(e),xe.defaults=we.defaults,a(xe.defaults),xe},xe.getDefaults=r,xe.defaults=i,xe.use=function(...e){return we.use(...e),xe.defaults=we.defaults,a(xe.defaults),xe},xe.walkTokens=function(e,t){return we.walkTokens(e,t)},xe.parseInline=we.parseInline,xe.Parser=ve,xe.parser=ve.parse,xe.Renderer=me,xe.TextRenderer=ge,xe.Lexer=he,xe.lexer=he.lex,xe.Tokenizer=fe,xe.Hooks=be,xe.parse=xe;var ke=xe.options,_e=xe.setOptions,Ee=xe.use,Ce=xe.walkTokens,Se=xe.parseInline,Ae=xe,Te=ve.parse,Pe=he.lex},9332(e,t,n){"use strict";n.r(t),n.d(t,{ACL_LINK:()=>nn,CrossOriginForbiddenError:()=>mn,FetchError:()=>wn,NotEditableError:()=>bn,NotFoundError:()=>vn,SameOriginForbiddenError:()=>gn,UnauthorizedError:()=>hn,WebOperationError:()=>yn,appContext:()=>an,authSession:()=>In,authn:()=>Rn,createTypeIndexLogic:()=>kn,getSuggestedIssuers:()=>Pn,offlineTestID:()=>on,solidLogicSingleton:()=>An,store:()=>Fn});var r=n(8230),i={516(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i={debug:function(){},info:function(){},warn:function(){},error:function(){}},a=void 0,o=void 0;(t.Log=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.reset=function(){o=3,a=i},e.debug=function(){if(o>=4){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.debug.apply(a,Array.from(t))}},e.info=function(){if(o>=3){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.info.apply(a,Array.from(t))}},e.warn=function(){if(o>=2){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.warn.apply(a,Array.from(t))}},e.error=function(){if(o>=1){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.error.apply(a,Array.from(t))}},r(e,null,[{key:"NONE",get:function(){return 0}},{key:"ERROR",get:function(){return 1}},{key:"WARN",get:function(){return 2}},{key:"INFO",get:function(){return 3}},{key:"DEBUG",get:function(){return 4}},{key:"level",get:function(){return o},set:function(e){if(!(0<=e&&e<=4))throw new Error("Invalid log level");o=e}},{key:"logger",get:function(){return a},set:function(e){if(!e.debug&&e.info&&(e.debug=e.info),!(e.debug&&e.info&&e.warn&&e.error))throw new Error("Invalid logger");a=e}}]),e}()).reset()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i={setInterval:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){return setInterval(e,t)}),clearInterval:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return clearInterval(e)})},a=!1,o=null;t.Global=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e._testing=function(){a=!0},e.setXMLHttpRequest=function(e){o=e},r(e,null,[{key:"location",get:function(){if(!a)return location}},{key:"localStorage",get:function(){if(!a&&"undefined"!=typeof window)return localStorage}},{key:"sessionStorage",get:function(){if(!a&&"undefined"!=typeof window)return sessionStorage}},{key:"XMLHttpRequest",get:function(){if(!a&&"undefined"!=typeof window)return o||XMLHttpRequest}},{key:"timer",get:function(){if(!a)return i}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataService=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(7),o=".well-known/openid-configuration";t.MetadataService=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.JsonService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=t,this._jsonService=new n(["application/jwk-set+json"])}return e.prototype.resetSigningKeys=function(){this._settings=this._settings||{},this._settings.signingKeys=void 0},e.prototype.getMetadata=function(){var e=this;return this._settings.metadata?(i.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(i.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(t){i.Log.debug("MetadataService.getMetadata: json received");var n=e._settings.metadataSeed||{};return e._settings.metadata=Object.assign({},n,t),e._settings.metadata})):(i.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},e.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},e.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},e.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},e.prototype.getTokenEndpoint=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",e)},e.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},e.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},e.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},e.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},e.prototype._getMetadataProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.Log.debug("MetadataService.getMetadataProperty for: "+e),this.getMetadata().then(function(n){if(i.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===n[e]){if(!0===t)return void i.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+e);throw i.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+e),new Error("Metadata does not contain property "+e)}return n[e]})},e.prototype.getSigningKeys=function(){var e=this;return this._settings.signingKeys?(i.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(t){return i.Log.debug("MetadataService.getSigningKeys: jwks_uri received",t),e._jsonService.getJson(t).then(function(t){if(i.Log.debug("MetadataService.getSigningKeys: key set received",t),!t.keys)throw i.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return e._settings.signingKeys=t.keys,e._settings.signingKeys})})},r(e,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(o)<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=o))),this._metadataUrl}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtility=void 0;var r=n(0),i=n(1);t.UrlUtility=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.addQueryParam=function(e,t,n){return e.indexOf("?")<0&&(e+="?"),"?"!==e[e.length-1]&&(e+="&"),e+=encodeURIComponent(t),(e+="=")+encodeURIComponent(n)},e.parseUrlFragment=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.Global;"string"!=typeof e&&(e=n.location.href);var a=e.lastIndexOf(t);a>=0&&(e=e.substr(a+1)),"?"===t&&(a=e.indexOf("#"))>=0&&(e=e.substr(0,a));for(var o,s={},c=/([^&=]+)=([^&]*)/g,l=0;o=c.exec(e);)if(s[decodeURIComponent(o[1])]=decodeURIComponent(o[2].replace(/\+/g," ")),l++>50)return r.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",e),{error:"Response exceeded expected number of parameters"};for(var u in s)return s;return{}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.JoseUtil=void 0;var r=n(26),i=function(e){return e&&e.__esModule?e:{default:e}}(n(33));t.JoseUtil=(0,i.default)({jws:r.jws,KeyUtil:r.KeyUtil,X509:r.X509,crypto:r.crypto,hextob64u:r.hextob64u,b64tohex:r.b64tohex,AllowedSigningAlgs:r.AllowedSigningAlgs})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClientSettings=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),o=n(23),s=n(6),c=n(24),l=n(2),u=".well-known/openid-configuration";t.OidcClientSettings=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.authority,i=t.metadataUrl,a=t.metadata,u=t.signingKeys,p=t.metadataSeed,d=t.client_id,f=t.client_secret,h=t.response_type,m=void 0===h?"id_token":h,g=t.scope,v=void 0===g?"openid":g,b=t.redirect_uri,y=t.post_logout_redirect_uri,w=t.client_authentication,x=void 0===w?"client_secret_post":w,k=t.prompt,_=t.display,E=t.max_age,C=t.ui_locales,S=t.acr_values,A=t.resource,T=t.response_mode,P=t.filterProtocolClaims,R=void 0===P||P,I=t.loadUserInfo,F=void 0===I||I,N=t.staleStateAge,O=void 0===N?900:N,L=t.clockSkew,j=void 0===L?300:L,M=t.clockService,D=void 0===M?new o.ClockService:M,U=t.userInfoJwtIssuer,B=void 0===U?"OP":U,z=t.mergeClaims,H=void 0!==z&&z,q=t.stateStore,$=void 0===q?new s.WebStorageStateStore:q,W=t.ResponseValidatorCtor,V=void 0===W?c.ResponseValidator:W,G=t.MetadataServiceCtor,K=void 0===G?l.MetadataService:G,J=t.extraQueryParams,Q=void 0===J?{}:J,Y=t.extraTokenParams,X=void 0===Y?{}:Y;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._authority=n,this._metadataUrl=i,this._metadata=a,this._metadataSeed=p,this._signingKeys=u,this._client_id=d,this._client_secret=f,this._response_type=m,this._scope=v,this._redirect_uri=b,this._post_logout_redirect_uri=y,this._client_authentication=x,this._prompt=k,this._display=_,this._max_age=E,this._ui_locales=C,this._acr_values=S,this._resource=A,this._response_mode=T,this._filterProtocolClaims=!!R,this._loadUserInfo=!!F,this._staleStateAge=O,this._clockSkew=j,this._clockService=D,this._userInfoJwtIssuer=B,this._mergeClaims=!!H,this._stateStore=$,this._validator=new V(this),this._metadataService=new K(this),this._extraQueryParams="object"===(void 0===Q?"undefined":r(Q))?Q:{},this._extraTokenParams="object"===(void 0===X?"undefined":r(X))?X:{}}return e.prototype.getEpochTime=function(){return this._clockService.getEpochTime()},i(e,[{key:"client_id",get:function(){return this._client_id},set:function(e){if(this._client_id)throw a.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=e}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"client_authentication",get:function(){return this._client_authentication}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(e){if(this._authority)throw a.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=e}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(u)<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=u)),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(e){this._metadata=e}},{key:"metadataSeed",get:function(){return this._metadataSeed},set:function(e){this._metadataSeed=e}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(e){this._signingKeys=e}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"mergeClaims",get:function(){return this._mergeClaims}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(e){"object"===(void 0===e?"undefined":r(e))?this._extraQueryParams=e:this._extraQueryParams={}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(e){"object"===(void 0===e?"undefined":r(e))?this._extraTokenParams=e:this._extraTokenParams={}}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WebStorageStateStore=void 0;var r=n(0),i=n(1);t.WebStorageStateStore=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,r=void 0===n?"oidc.":n,a=t.store,o=void 0===a?i.Global.localStorage:a;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._store=o,this._prefix=r}return e.prototype.set=function(e,t){return r.Log.debug("WebStorageStateStore.set",e),e=this._prefix+e,this._store.setItem(e,t),Promise.resolve()},e.prototype.get=function(e){r.Log.debug("WebStorageStateStore.get",e),e=this._prefix+e;var t=this._store.getItem(e);return Promise.resolve(t)},e.prototype.remove=function(e){r.Log.debug("WebStorageStateStore.remove",e),e=this._prefix+e;var t=this._store.getItem(e);return this._store.removeItem(e),Promise.resolve(t)},e.prototype.getAllKeys=function(){r.Log.debug("WebStorageStateStore.getAllKeys");for(var e=[],t=0;t<this._store.length;t++){var n=this._store.key(t);0===n.indexOf(this._prefix)&&e.push(n.substr(this._prefix.length))}return Promise.resolve(e)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.JsonService=void 0;var r=n(0),i=n(1);t.JsonService=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Global.XMLHttpRequest,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t&&Array.isArray(t)?this._contentTypes=t.slice():this._contentTypes=[],this._contentTypes.push("application/json"),r&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=n,this._jwtHandler=r}return e.prototype.getJson=function(e,t){var n=this;if(!e)throw r.Log.error("JsonService.getJson: No url passed"),new Error("url");return r.Log.debug("JsonService.getJson, url: ",e),new Promise(function(i,a){var o=new n._XMLHttpRequest;o.open("GET",e);var s=n._contentTypes,c=n._jwtHandler;o.onload=function(){if(r.Log.debug("JsonService.getJson: HTTP response received, status",o.status),200===o.status){var t=o.getResponseHeader("Content-Type");if(t){var n=s.find(function(e){if(t.startsWith(e))return!0});if("application/jwt"==n)return void c(o).then(i,a);if(n)try{return void i(JSON.parse(o.responseText))}catch(e){return r.Log.error("JsonService.getJson: Error parsing JSON response",e.message),void a(e)}}a(Error("Invalid response Content-Type: "+t+", from URL: "+e))}else a(Error(o.statusText+" ("+o.status+")"))},o.onerror=function(){r.Log.error("JsonService.getJson: network error"),a(Error("Network Error"))},t&&(r.Log.debug("JsonService.getJson: token passed, setting Authorization header"),o.setRequestHeader("Authorization","Bearer "+t)),o.send()})},e.prototype.postForm=function(e,t,n){var i=this;if(!e)throw r.Log.error("JsonService.postForm: No url passed"),new Error("url");return r.Log.debug("JsonService.postForm, url: ",e),new Promise(function(a,o){var s=new i._XMLHttpRequest;s.open("POST",e);var c=i._contentTypes;s.onload=function(){if(r.Log.debug("JsonService.postForm: HTTP response received, status",s.status),200!==s.status){if(400===s.status&&(n=s.getResponseHeader("Content-Type"))&&c.find(function(e){if(n.startsWith(e))return!0}))try{var t=JSON.parse(s.responseText);if(t&&t.error)return r.Log.error("JsonService.postForm: Error from server: ",t.error),void o(new Error(t.error))}catch(e){return r.Log.error("JsonService.postForm: Error parsing JSON response",e.message),void o(e)}o(Error(s.statusText+" ("+s.status+")"))}else{var n;if((n=s.getResponseHeader("Content-Type"))&&c.find(function(e){if(n.startsWith(e))return!0}))try{return void a(JSON.parse(s.responseText))}catch(e){return r.Log.error("JsonService.postForm: Error parsing JSON response",e.message),void o(e)}o(Error("Invalid response Content-Type: "+n+", from URL: "+e))}},s.onerror=function(){r.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var l="";for(var u in t){var p=t[u];p&&(l.length>0&&(l+="&"),l+=encodeURIComponent(u),l+="=",l+=encodeURIComponent(p))}s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),void 0!==n&&s.setRequestHeader("Authorization","Basic "+btoa(n)),s.send(l)})},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SigninRequest=void 0;var r=n(0),i=n(3),a=n(13);t.SigninRequest=function(){function e(t){var n=t.url,o=t.client_id,s=t.redirect_uri,c=t.response_type,l=t.scope,u=t.authority,p=t.data,d=t.prompt,f=t.display,h=t.max_age,m=t.ui_locales,g=t.id_token_hint,v=t.login_hint,b=t.acr_values,y=t.resource,w=t.response_mode,x=t.request,k=t.request_uri,_=t.extraQueryParams,E=t.request_type,C=t.client_secret,S=t.extraTokenParams,A=t.skipUserInfo;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!o)throw r.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw r.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw r.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!l)throw r.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!u)throw r.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var T=e.isOidc(c),P=e.isCode(c);w||(w=e.isCode(c)?"query":null),this.state=new a.SigninState({nonce:T,data:p,client_id:o,authority:u,redirect_uri:s,code_verifier:P,request_type:E,response_mode:w,client_secret:C,scope:l,extraTokenParams:S,skipUserInfo:A}),n=i.UrlUtility.addQueryParam(n,"client_id",o),n=i.UrlUtility.addQueryParam(n,"redirect_uri",s),n=i.UrlUtility.addQueryParam(n,"response_type",c),n=i.UrlUtility.addQueryParam(n,"scope",l),n=i.UrlUtility.addQueryParam(n,"state",this.state.id),T&&(n=i.UrlUtility.addQueryParam(n,"nonce",this.state.nonce)),P&&(n=i.UrlUtility.addQueryParam(n,"code_challenge",this.state.code_challenge),n=i.UrlUtility.addQueryParam(n,"code_challenge_method","S256"));var R={prompt:d,display:f,max_age:h,ui_locales:m,id_token_hint:g,login_hint:v,acr_values:b,resource:y,request:x,request_uri:k,response_mode:w};for(var I in R)R[I]&&(n=i.UrlUtility.addQueryParam(n,I,R[I]));for(var F in _)n=i.UrlUtility.addQueryParam(n,F,_[F]);this.url=n}return e.isOidc=function(e){return!!e.split(/\s+/g).filter(function(e){return"id_token"===e})[0]},e.isOAuth=function(e){return!!e.split(/\s+/g).filter(function(e){return"token"===e})[0]},e.isCode=function(e){return!!e.split(/\s+/g).filter(function(e){return"code"===e})[0]},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(n(14));t.State=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,r=t.data,i=t.created,o=t.request_type;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._id=n||(0,a.default)(),this._data=r,this._created="number"==typeof i&&i>0?i:parseInt(Date.now()/1e3),this._request_type=o}return e.prototype.toStorageString=function(){return i.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},e.fromStorageString=function(t){return i.Log.debug("State.fromStorageString"),new e(JSON.parse(t))},e.clearStaleState=function(t,n){var r=Date.now()/1e3-n;return t.getAllKeys().then(function(n){i.Log.debug("State.clearStaleState: got keys",n);for(var a=[],o=function(o){var s=n[o];c=t.get(s).then(function(n){var a=!1;if(n)try{var o=e.fromStorageString(n);i.Log.debug("State.clearStaleState: got item from key: ",s,o.created),o.created<=r&&(a=!0)}catch(e){i.Log.error("State.clearStaleState: Error parsing state for key",s,e.message),a=!0}else i.Log.debug("State.clearStaleState: no item in storage for key: ",s),a=!0;if(a)return i.Log.debug("State.clearStaleState: removed item for key: ",s),t.remove(s)}),a.push(c)},s=0;s<n.length;s++){var c;o(s)}return i.Log.debug("State.clearStaleState: waiting on promise count:",a.length),Promise.all(a)})},r(e,[{key:"id",get:function(){return this._id}},{key:"data",get:function(){return this._data}},{key:"created",get:function(){return this._created}},{key:"request_type",get:function(){return this._request_type}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClient=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(5),o=n(12),s=n(8),c=n(34),l=n(35),u=n(36),p=n(13),d=n(9);t.OidcClient=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t instanceof a.OidcClientSettings?this._settings=t:this._settings=new a.OidcClientSettings(t)}return e.prototype.createSigninRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.response_type,r=t.scope,a=t.redirect_uri,o=t.data,c=t.state,l=t.prompt,u=t.display,p=t.max_age,d=t.ui_locales,f=t.id_token_hint,h=t.login_hint,m=t.acr_values,g=t.resource,v=t.request,b=t.request_uri,y=t.response_mode,w=t.extraQueryParams,x=t.extraTokenParams,k=t.request_type,_=t.skipUserInfo,E=arguments[1];i.Log.debug("OidcClient.createSigninRequest");var C=this._settings.client_id;n=n||this._settings.response_type,r=r||this._settings.scope,a=a||this._settings.redirect_uri,l=l||this._settings.prompt,u=u||this._settings.display,p=p||this._settings.max_age,d=d||this._settings.ui_locales,m=m||this._settings.acr_values,g=g||this._settings.resource,y=y||this._settings.response_mode,w=w||this._settings.extraQueryParams,x=x||this._settings.extraTokenParams;var S=this._settings.authority;return s.SigninRequest.isCode(n)&&"code"!==n?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(t){i.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",t);var A=new s.SigninRequest({url:t,client_id:C,redirect_uri:a,response_type:n,scope:r,data:o||c,authority:S,prompt:l,display:u,max_age:p,ui_locales:d,id_token_hint:f,login_hint:h,acr_values:m,resource:g,request:v,request_uri:b,extraQueryParams:w,extraTokenParams:x,request_type:k,response_mode:y,client_secret:e._settings.client_secret,skipUserInfo:_}),T=A.state;return(E=E||e._stateStore).set(T.id,T.toStorageString()).then(function(){return A})})},e.prototype.readSigninResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSigninResponseState");var r="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",a=new c.SigninResponse(e,r);return a.state?(t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(a.state).then(function(e){if(!e)throw i.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:p.SigninState.fromStorageString(e),response:a}})):(i.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},e.prototype.processSigninResponse=function(e,t){var n=this;return i.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(e,t,!0).then(function(e){var t=e.state,r=e.response;return i.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),n._validator.validateSigninResponse(t,r)})},e.prototype.createSignoutRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id_token_hint,r=t.data,a=t.state,o=t.post_logout_redirect_uri,s=t.extraQueryParams,c=t.request_type,u=arguments[1];return i.Log.debug("OidcClient.createSignoutRequest"),o=o||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(t){if(!t)throw i.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");i.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",t);var p=new l.SignoutRequest({url:t,id_token_hint:n,post_logout_redirect_uri:o,data:r||a,extraQueryParams:s,request_type:c}),d=p.state;return d&&(i.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(u=u||e._stateStore).set(d.id,d.toStorageString())),p})},e.prototype.readSignoutResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSignoutResponseState");var r=new u.SignoutResponse(e);if(!r.state)return i.Log.debug("OidcClient.readSignoutResponseState: No state in response"),r.error?(i.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",r.error),Promise.reject(new o.ErrorResponse(r))):Promise.resolve({state:void 0,response:r});var a=r.state;return t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(a).then(function(e){if(!e)throw i.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(e),response:r}})},e.prototype.processSignoutResponse=function(e,t){var n=this;return i.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(e,t,!0).then(function(e){var t=e.state,r=e.response;return t?(i.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),n._validator.validateSignoutResponse(t,r)):(i.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),r)})},e.prototype.clearStaleState=function(e){return i.Log.debug("OidcClient.clearStaleState"),e=e||this._stateStore,d.State.clearStaleState(e,this.settings.staleStateAge)},r(e,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClient=void 0;var r=n(7),i=n(2),a=n(0);t.TokenClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.JsonService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw a.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n,this._metadataService=new o(this._settings)}return e.prototype.exchangeCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||"authorization_code",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret,t.redirect_uri=t.redirect_uri||this._settings.redirect_uri;var n=void 0,r=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.code?t.redirect_uri?t.code_verifier?t.client_id?t.client_secret||"client_secret_basic"!=r?("client_secret_basic"==r&&(n=t.client_id+":"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then(function(r){return a.Log.debug("TokenClient.exchangeCode: Received token endpoint"),e._jsonService.postForm(r,t,n).then(function(e){return a.Log.debug("TokenClient.exchangeCode: response received"),e})})):(a.Log.error("TokenClient.exchangeCode: No client_secret passed"),Promise.reject(new Error("A client_secret is required"))):(a.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(a.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(a.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(a.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},e.prototype.exchangeRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||"refresh_token",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret;var n=void 0,r=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.refresh_token?t.client_id?("client_secret_basic"==r&&(n=t.client_id+":"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then(function(r){return a.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),e._jsonService.postForm(r,t,n).then(function(e){return a.Log.debug("TokenClient.exchangeRefreshToken: response received"),e})})):(a.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(a.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorResponse=void 0;var r=n(0);t.ErrorResponse=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.error,a=n.error_description,o=n.error_uri,s=n.state,c=n.session_state;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw r.Log.error("No error passed to ErrorResponse"),new Error("error");var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,a||i));return l.name="ErrorResponse",l.error=i,l.error_description=a,l.error_uri=o,l.state=s,l.session_state=c,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SigninState=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(9),o=n(4),s=function(e){return e&&e.__esModule?e:{default:e}}(n(14));t.SigninState=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.nonce,i=n.authority,a=n.client_id,c=n.redirect_uri,l=n.code_verifier,u=n.response_mode,p=n.client_secret,d=n.scope,f=n.extraTokenParams,h=n.skipUserInfo;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var m=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));if(!0===r?m._nonce=(0,s.default)():r&&(m._nonce=r),!0===l?m._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():l&&(m._code_verifier=l),m.code_verifier){var g=o.JoseUtil.hashString(m.code_verifier,"SHA256");m._code_challenge=o.JoseUtil.hexToBase64Url(g)}return m._redirect_uri=c,m._authority=i,m._client_id=a,m._response_mode=u,m._client_secret=p,m._scope=d,m._extraTokenParams=f,m._skipUserInfo=h,m}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toStorageString=function(){return i.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},t.fromStorageString=function(e){return i.Log.debug("SigninState.fromStorageString"),new t(JSON.parse(e))},r(t,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),t}(a.State)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return("undefined"!=r&&null!==r&&void 0!==r.getRandomValues?i:a)().replace(/-/g,"")};var r="undefined"!=typeof window?window.crypto||window.msCrypto:null;function i(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^r.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})}function a(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^16*Math.random()>>e/4).toString(16)})}e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.User=function(){function e(t){var n=t.id_token,r=t.session_state,i=t.access_token,a=t.refresh_token,o=t.token_type,s=t.scope,c=t.profile,l=t.expires_at,u=t.state;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id_token=n,this.session_state=r,this.access_token=i,this.refresh_token=a,this.token_type=o,this.scope=s,this.profile=c,this.expires_at=l,this.state=u}return e.prototype.toStorageString=function(){return i.Log.debug("User.toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})},e.fromStorageString=function(t){return i.Log.debug("User.fromStorageString"),new e(JSON.parse(t))},r(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTokenEvents=void 0;var r=n(0),i=n(46);t.AccessTokenEvents=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.accessTokenExpiringNotificationTime,r=void 0===n?60:n,a=t.accessTokenExpiringTimer,o=void 0===a?new i.Timer("Access token expiring"):a,s=t.accessTokenExpiredTimer,c=void 0===s?new i.Timer("Access token expired"):s;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._accessTokenExpiringNotificationTime=r,this._accessTokenExpiring=o,this._accessTokenExpired=c}return e.prototype.load=function(e){if(e.access_token&&void 0!==e.expires_in){var t=e.expires_in;if(r.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",t),t>0){var n=t-this._accessTokenExpiringNotificationTime;n<=0&&(n=1),r.Log.debug("AccessTokenEvents.load: registering expiring timer in:",n),this._accessTokenExpiring.init(n)}else r.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var i=t+1;r.Log.debug("AccessTokenEvents.load: registering expired timer in:",i),this._accessTokenExpired.init(i)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.unload=function(){r.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.addAccessTokenExpiring=function(e){this._accessTokenExpiring.addHandler(e)},e.prototype.removeAccessTokenExpiring=function(e){this._accessTokenExpiring.removeHandler(e)},e.prototype.addAccessTokenExpired=function(e){this._accessTokenExpired.addHandler(e)},e.prototype.removeAccessTokenExpired=function(e){this._accessTokenExpired.removeHandler(e)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var r=n(0);t.Event=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._callbacks=[]}return e.prototype.addHandler=function(e){this._callbacks.push(e)},e.prototype.removeHandler=function(e){var t=this._callbacks.findIndex(function(t){return t===e});t>=0&&this._callbacks.splice(t,1)},e.prototype.raise=function(){r.Log.debug("Event: Raising event: "+this._name);for(var e=0;e<this._callbacks.length;e++){var t;(t=this._callbacks)[e].apply(t,arguments)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SessionMonitor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(19),o=n(1);t.SessionMonitor=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Global.timer;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=t,this._CheckSessionIFrameCtor=r,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),Promise.resolve(this._userManager.getUser().then(function(e){e?n._start(e):n._settings.monitorAnonymousSession&&n._userManager.querySessionStatus().then(function(e){var t={session_state:e.session_state};e.sub&&e.sid&&(t.profile={sub:e.sub,sid:e.sid}),n._start(t)}).catch(function(e){i.Log.error("SessionMonitor ctor: error from querySessionStatus:",e.message)})}).catch(function(e){i.Log.error("SessionMonitor ctor: error from getUser:",e.message)}))}return e.prototype._start=function(e){var t=this,n=e.session_state;n&&(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,i.Log.debug("SessionMonitor._start: session_state:",n,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,i.Log.debug("SessionMonitor._start: session_state:",n,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(n):this._metadataService.getCheckSessionIframe().then(function(e){if(e){i.Log.debug("SessionMonitor._start: Initializing check session iframe");var r=t._client_id,a=t._checkSessionInterval,o=t._stopCheckSessionOnError;t._checkSessionIFrame=new t._CheckSessionIFrameCtor(t._callback.bind(t),r,e,a,o),t._checkSessionIFrame.load().then(function(){t._checkSessionIFrame.start(n)})}else i.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(e){i.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",e.message)}))},e.prototype._stop=function(){var e=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(i.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var t=this._timer.setInterval(function(){e._timer.clearInterval(t),e._userManager.querySessionStatus().then(function(t){var n={session_state:t.session_state};t.sub&&t.sid&&(n.profile={sub:t.sub,sid:t.sid}),e._start(n)}).catch(function(e){i.Log.error("SessionMonitor: error from querySessionStatus:",e.message)})},1e3)},e.prototype._callback=function(){var e=this;this._userManager.querySessionStatus().then(function(t){var n=!0;t?t.sub===e._sub?(n=!1,e._checkSessionIFrame.start(t.session_state),t.sid===e._sid?i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",t.session_state):(i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",t.session_state),e._userManager.events._raiseUserSessionChanged())):i.Log.debug("SessionMonitor._callback: Different subject signed into OP:",t.sub):i.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),n&&(e._sub?(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),e._userManager.events._raiseUserSignedOut()):(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),e._userManager.events._raiseUserSignedIn()))}).catch(function(t){e._sub&&(i.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",t.message),e._userManager.events._raiseUserSignedOut())})},r(e,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CheckSessionIFrame=void 0;var r=n(0);t.CheckSessionIFrame=function(){function e(t,n,r,i){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._callback=t,this._client_id=n,this._url=r,this._interval=i||2e3,this._stopOnError=a;var o=r.indexOf("/",r.indexOf("//")+2);this._frame_origin=r.substr(0,o),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.width=0,this._frame.height=0,this._frame.src=r}return e.prototype.load=function(){var e=this;return new Promise(function(t){e._frame.onload=function(){t()},window.document.body.appendChild(e._frame),e._boundMessageEvent=e._message.bind(e),window.addEventListener("message",e._boundMessageEvent,!1)})},e.prototype._message=function(e){e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(r.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(r.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):r.Log.debug("CheckSessionIFrame: "+e.data+" message from check session op iframe"))},e.prototype.start=function(e){var t=this;if(this._session_state!==e){r.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=e;var n=function(){t._frame.contentWindow.postMessage(t._client_id+" "+t._session_state,t._frame_origin)};n(),this._timer=window.setInterval(n,this._interval)}},e.prototype.stop=function(){this._session_state=null,this._timer&&(r.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRevocationClient=void 0;var r=n(0),i=n(2),a=n(1);t.TokenRevocationClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Global.XMLHttpRequest,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=t,this._XMLHttpRequestCtor=n,this._metadataService=new o(this._settings)}return e.prototype.revoke=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!e)throw r.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==i&&"refresh_token"!=i)throw r.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(a){if(a){r.Log.debug("TokenRevocationClient.revoke: Revoking "+i);var o=n._settings.client_id,s=n._settings.client_secret;return n._revoke(a,o,s,e,i)}if(t)throw r.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},e.prototype._revoke=function(e,t,n,i,a){var o=this;return new Promise(function(s,c){var l=new o._XMLHttpRequestCtor;l.open("POST",e),l.onload=function(){r.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",l.status),200===l.status?s():c(Error(l.statusText+" ("+l.status+")"))},l.onerror=function(){r.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var u="client_id="+encodeURIComponent(t);n&&(u+="&client_secret="+encodeURIComponent(n)),u+="&token_type_hint="+encodeURIComponent(a),u+="&token="+encodeURIComponent(i),l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.send(u)})},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.CordovaPopupWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t}),this.features=t.popupWindowFeatures||"location=no,toolbar=no,zoom=no",this.target=t.popupWindowTarget||"_blank",this.redirect_uri=t.startUrl,i.Log.debug("CordovaPopupWindow.ctor: redirect_uri: "+this.redirect_uri)}return e.prototype._isInAppBrowserInstalled=function(e){return["cordova-plugin-inappbrowser","cordova-plugin-inappbrowser.inappbrowser","org.apache.cordova.inappbrowser"].some(function(t){return e.hasOwnProperty(t)})},e.prototype.navigate=function(e){if(e&&e.url){if(!window.cordova)return this._error("cordova is undefined");var t=window.cordova.require("cordova/plugin_list").metadata;if(!1===this._isInAppBrowserInstalled(t))return this._error("InAppBrowser plugin not found");this._popup=cordova.InAppBrowser.open(e.url,this.target,this.features),this._popup?(i.Log.debug("CordovaPopupWindow.navigate: popup successfully created"),this._exitCallbackEvent=this._exitCallback.bind(this),this._loadStartCallbackEvent=this._loadStartCallback.bind(this),this._popup.addEventListener("exit",this._exitCallbackEvent,!1),this._popup.addEventListener("loadstart",this._loadStartCallbackEvent,!1)):this._error("Error opening popup window")}else this._error("No url provided");return this.promise},e.prototype._loadStartCallback=function(e){0===e.url.indexOf(this.redirect_uri)&&this._success({url:e.url})},e.prototype._exitCallback=function(e){this._error(e)},e.prototype._success=function(e){this._cleanup(),i.Log.debug("CordovaPopupWindow: Successful response from cordova popup window"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._popup&&(i.Log.debug("CordovaPopupWindow: cleaning up popup"),this._popup.removeEventListener("exit",this._exitCallbackEvent,!1),this._popup.removeEventListener("loadstart",this._loadStartCallbackEvent,!1),this._popup.close()),this._popup=null},r(e,[{key:"promise",get:function(){return this._promise}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(10),a=n(5),o=n(6),s=n(37),c=n(38),l=n(16),u=n(2),p=n(48),d=n(49),f=n(19),h=n(20),m=n(18),g=n(1),v=n(15),b=n(50);t.default={Version:b.Version,Log:r.Log,OidcClient:i.OidcClient,OidcClientSettings:a.OidcClientSettings,WebStorageStateStore:o.WebStorageStateStore,InMemoryWebStorage:s.InMemoryWebStorage,UserManager:c.UserManager,AccessTokenEvents:l.AccessTokenEvents,MetadataService:u.MetadataService,CordovaPopupNavigator:p.CordovaPopupNavigator,CordovaIFrameNavigator:d.CordovaIFrameNavigator,CheckSessionIFrame:f.CheckSessionIFrame,TokenRevocationClient:h.TokenRevocationClient,SessionMonitor:m.SessionMonitor,Global:g.Global,User:v.User},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ClockService=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.getEpochTime=function(){return Promise.resolve(Date.now()/1e3|0)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseValidator=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(0),a=n(2),o=n(25),s=n(11),c=n(12),l=n(4),u=["nonce","at_hash","iat","nbf","exp","aud","iss","c_hash"];t.ResponseValidator=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.MetadataService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.JoseUtil,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=t,this._metadataService=new n(this._settings),this._userInfoService=new r(this._settings),this._joseUtil=c,this._tokenClient=new u(this._settings)}return e.prototype.validateSigninResponse=function(e,t){var n=this;return i.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(e,t).then(function(t){return i.Log.debug("ResponseValidator.validateSigninResponse: state processed"),n._validateTokens(e,t).then(function(t){return i.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),n._processClaims(e,t).then(function(e){return i.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),e})})})},e.prototype.validateSignoutResponse=function(e,t){return e.id!==t.state?(i.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(i.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),t.state=e.data,t.error?(i.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",t.error),Promise.reject(new c.ErrorResponse(t))):Promise.resolve(t))},e.prototype._processSigninParams=function(e,t){if(e.id!==t.state)return i.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!e.client_id)return i.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!e.authority)return i.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==e.authority)return i.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=e.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==e.client_id)return i.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=e.client_id;return i.Log.debug("ResponseValidator._processSigninParams: state validated"),t.state=e.data,t.error?(i.Log.warn("ResponseValidator._processSigninParams: Response was error",t.error),Promise.reject(new c.ErrorResponse(t))):e.nonce&&!t.id_token?(i.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!e.nonce&&t.id_token?(i.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):e.code_verifier&&!t.code?(i.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!e.code_verifier&&t.code?(i.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(t.scope||(t.scope=e.scope),Promise.resolve(t))},e.prototype._processClaims=function(e,t){var n=this;if(t.isOpenIdConnect){if(i.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),t.profile=this._filterProtocolClaims(t.profile),!0!==e.skipUserInfo&&this._settings.loadUserInfo&&t.access_token)return i.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(t.access_token).then(function(e){return i.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),e.sub!==t.profile.sub?(i.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in id_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in id_token"))):(t.profile=n._mergeClaims(t.profile,e),i.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",t.profile),t)});i.Log.debug("ResponseValidator._processClaims: not loading user info")}else i.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(t)},e.prototype._mergeClaims=function(e,t){var n=Object.assign({},e);for(var i in t){var a=t[i];Array.isArray(a)||(a=[a]);for(var o=0;o<a.length;o++){var s=a[o];n[i]?Array.isArray(n[i])?n[i].indexOf(s)<0&&n[i].push(s):n[i]!==s&&("object"===(void 0===s?"undefined":r(s))&&this._settings.mergeClaims?n[i]=this._mergeClaims(n[i],s):n[i]=[n[i],s]):n[i]=s}}return n},e.prototype._filterProtocolClaims=function(e){i.Log.debug("ResponseValidator._filterProtocolClaims, incoming claims:",e);var t=Object.assign({},e);return this._settings._filterProtocolClaims?(u.forEach(function(e){delete t[e]}),i.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims filtered",t)):i.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims not filtered"),t},e.prototype._validateTokens=function(e,t){return t.code?(i.Log.debug("ResponseValidator._validateTokens: Validating code"),this._processCode(e,t)):t.id_token?t.access_token?(i.Log.debug("ResponseValidator._validateTokens: Validating id_token and access_token"),this._validateIdTokenAndAccessToken(e,t)):(i.Log.debug("ResponseValidator._validateTokens: Validating id_token"),this._validateIdToken(e,t)):(i.Log.debug("ResponseValidator._validateTokens: No code to process or id_token to validate"),Promise.resolve(t))},e.prototype._processCode=function(e,t){var n=this,a={client_id:e.client_id,client_secret:e.client_secret,code:t.code,redirect_uri:e.redirect_uri,code_verifier:e.code_verifier};return e.extraTokenParams&&"object"===r(e.extraTokenParams)&&Object.assign(a,e.extraTokenParams),this._tokenClient.exchangeCode(a).then(function(r){for(var a in r)t[a]=r[a];return t.id_token?(i.Log.debug("ResponseValidator._processCode: token response successful, processing id_token"),n._validateIdTokenAttributes(e,t)):(i.Log.debug("ResponseValidator._processCode: token response successful, returning response"),t)})},e.prototype._validateIdTokenAttributes=function(e,t){var n=this;return this._metadataService.getIssuer().then(function(r){var a=e.client_id,o=n._settings.clockSkew;return i.Log.debug("ResponseValidator._validateIdTokenAttributes: Validaing JWT attributes; using clock skew (in seconds) of: ",o),n._settings.getEpochTime().then(function(s){return n._joseUtil.validateJwtAttributes(t.id_token,r,a,o,s).then(function(n){return e.nonce&&e.nonce!==n.nonce?(i.Log.error("ResponseValidator._validateIdTokenAttributes: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):n.sub?(t.profile=n,t):(i.Log.error("ResponseValidator._validateIdTokenAttributes: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},e.prototype._validateIdTokenAndAccessToken=function(e,t){var n=this;return this._validateIdToken(e,t).then(function(e){return n._validateAccessToken(e)})},e.prototype._getSigningKeyForJwt=function(e){var t=this;return this._metadataService.getSigningKeys().then(function(n){var r=e.header.kid;if(!n)return i.Log.error("ResponseValidator._validateIdToken: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));i.Log.debug("ResponseValidator._validateIdToken: Received signing keys");var a=void 0;if(r)a=n.filter(function(e){return e.kid===r})[0];else{if((n=t._filterByAlg(n,e.header.alg)).length>1)return i.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=n[0]}return Promise.resolve(a)})},e.prototype._getSigningKeyForJwtWithSingleRetry=function(e){var t=this;return this._getSigningKeyForJwt(e).then(function(n){return n?Promise.resolve(n):(t._metadataService.resetSigningKeys(),t._getSigningKeyForJwt(e))})},e.prototype._validateIdToken=function(e,t){var n=this;if(!e.nonce)return i.Log.error("ResponseValidator._validateIdToken: No nonce on state"),Promise.reject(new Error("No nonce on state"));var r=this._joseUtil.parseJwt(t.id_token);return r&&r.header&&r.payload?e.nonce!==r.payload.nonce?(i.Log.error("ResponseValidator._validateIdToken: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):this._metadataService.getIssuer().then(function(a){return i.Log.debug("ResponseValidator._validateIdToken: Received issuer"),n._getSigningKeyForJwtWithSingleRetry(r).then(function(o){if(!o)return i.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var s=e.client_id,c=n._settings.clockSkew;return i.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",c),n._joseUtil.validateJwt(t.id_token,o,a,s,c).then(function(){return i.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),r.payload.sub?(t.profile=r.payload,t):(i.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})}):(i.Log.error("ResponseValidator._validateIdToken: Failed to parse id_token",r),Promise.reject(new Error("Failed to parse id_token")))},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return i.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",t),[];n="EC"}return i.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",n),e=e.filter(function(e){return e.kty===n}),i.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",n,e.length),e},e.prototype._validateAccessToken=function(e){if(!e.profile)return i.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!e.profile.at_hash)return i.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!e.id_token)return i.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var t=this._joseUtil.parseJwt(e.id_token);if(!t||!t.header)return i.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",t),Promise.reject(new Error("Failed to parse id_token"));var n=t.header.alg;if(!n||5!==n.length)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n),Promise.reject(new Error("Unsupported alg: "+n));var r=n.substr(2,3);if(!r)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,r),Promise.reject(new Error("Unsupported alg: "+n));if(256!==(r=parseInt(r))&&384!==r&&512!==r)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,r),Promise.reject(new Error("Unsupported alg: "+n));var a="sha"+r,o=this._joseUtil.hashString(e.access_token,a);if(!o)return i.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",a),Promise.reject(new Error("Failed to validate at_hash"));var s=o.substr(0,o.length/2),c=this._joseUtil.hexToBase64Url(s);return c!==e.profile.at_hash?(i.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,e.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(i.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(e))},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserInfoService=void 0;var r=n(7),i=n(2),a=n(0),o=n(4);t.UserInfoService=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.JoseUtil;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw a.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=c}return e.prototype.getClaims=function(e){var t=this;return e?this._metadataService.getUserInfoEndpoint().then(function(n){return a.Log.debug("UserInfoService.getClaims: received userinfo url",n),t._jsonService.getJson(n,e).then(function(e){return a.Log.debug("UserInfoService.getClaims: claims received",e),e})}):(a.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},e.prototype._getClaimsFromJwt=function e(t){var n=this;try{var r=this._joseUtil.parseJwt(t.responseText);if(!r||!r.header||!r.payload)return a.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",r),Promise.reject(new Error("Failed to parse id_token"));var i=r.header.kid,o=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":o=this._metadataService.getIssuer();break;case"ANY":o=Promise.resolve(r.payload.iss);break;default:o=Promise.resolve(this._settings.userInfoJwtIssuer)}return o.then(function(e){return a.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+e),n._metadataService.getSigningKeys().then(function(o){if(!o)return a.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));a.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(i)s=o.filter(function(e){return e.kid===i})[0];else{if((o=n._filterByAlg(o,r.header.alg)).length>1)return a.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=o[0]}if(!s)return a.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=n._settings.client_id,l=n._settings.clockSkew;return a.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",l),n._joseUtil.validateJwt(t.responseText,s,e,c,l,void 0,!0).then(function(){return a.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),r.payload})})})}catch(e){return a.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",e.message),void reject(e)}},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return a.Log.debug("UserInfoService._filterByAlg: alg not supported: ",t),[];n="EC"}return a.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",n),e=e.filter(function(e){return e.kty===n}),a.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",n,e.length),e},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AllowedSigningAlgs=t.b64tohex=t.hextob64u=t.crypto=t.X509=t.KeyUtil=t.jws=void 0;var r=n(27);t.jws=r.jws,t.KeyUtil=r.KEYUTIL,t.X509=r.X509,t.crypto=r.crypto,t.hextob64u=r.hextob64u,t.b64tohex=r.b64tohex,t.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n,r,i,a,o,s,c,l,u,p,d,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h={userAgent:!1},m={},g=g||(n=Math,i=(r={}).lib={},a=i.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=n.ceil(t/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(4294967296*n.random()|0);return new o.init(t,e)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},p=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,i=t.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=e?n.ceil(s):n.max((0|s)-this._minBufferSize,0))*a,l=n.min(4*c,i);if(c){for(var u=0;u<c;u+=a)this._doProcessBlock(r,u);var p=r.splice(0,c);t.sigBytes-=l}return new o.init(p,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),i.Hasher=p.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}}),d=r.algo={},r);!function(){var e,t=(e=g).lib,n=t.Base,r=t.WordArray;(e=e.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),e.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i<t;i++){var a=e[i];n.push(a.high),n.push(a.low)}return r.create(n,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}})}(),function(){var e=g,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp(),e=[];for(var i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,o=0;4>o&&i+.75*o<n;o++)e.push(r.charAt(a>>>6*(3-o)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,r=this._map;(i=r.charAt(64))&&-1!=(i=e.indexOf(i))&&(n=i);for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r.indexOf(e.charAt(o-1))<<o%4*2,c=r.indexOf(e.charAt(o))>>>6-o%4*2;i[a>>>2]|=(s|c)<<24-a%4*8,a++}return t.create(i,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){for(var t=g,n=(i=t.lib).WordArray,r=i.Hasher,i=t.algo,a=[],o=[],s=function(e){return 4294967296*(e-(0|e))|0},c=2,l=0;64>l;){var u;e:{u=c;for(var p=e.sqrt(u),d=2;d<=p;d++)if(!(u%d)){u=!1;break e}u=!0}u&&(8>l&&(a[l]=s(e.pow(c,.5))),o[l]=s(e.pow(c,1/3)),l++),c++}var f=[];i=i.SHA256=r.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],c=n[4],l=n[5],u=n[6],p=n[7],d=0;64>d;d++){if(16>d)f[d]=0|e[t+d];else{var h=f[d-15],m=f[d-2];f[d]=((h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+f[d-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+f[d-16]}h=p+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&u)+o[d]+f[d],m=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&a^i&a),p=u,u=l,l=c,c=s+h|0,s=a,a=i,i=r,r=h+m|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0,n[5]=n[5]+l|0,n[6]=n[6]+u|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=r._createHelper(i),t.HmacSHA256=r._createHmacHelper(i)}(Math),function(){function e(){return r.create.apply(r,arguments)}for(var t=g,n=t.lib.Hasher,r=(a=t.x64).Word,i=a.WordArray,a=t.algo,o=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],s=[],c=0;80>c;c++)s[c]=e();a=a.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=(p=this._hash.words)[0],r=p[1],i=p[2],a=p[3],c=p[4],l=p[5],u=p[6],p=p[7],d=n.high,f=n.low,h=r.high,m=r.low,g=i.high,v=i.low,b=a.high,y=a.low,w=c.high,x=c.low,k=l.high,_=l.low,E=u.high,C=u.low,S=p.high,A=p.low,T=d,P=f,R=h,I=m,F=g,N=v,O=b,L=y,j=w,M=x,D=k,U=_,B=E,z=C,H=S,q=A,$=0;80>$;$++){var W=s[$];if(16>$)var V=W.high=0|e[t+2*$],G=W.low=0|e[t+2*$+1];else{V=((G=(V=s[$-15]).high)>>>1|(K=V.low)<<31)^(G>>>8|K<<24)^G>>>7;var K=(K>>>1|G<<31)^(K>>>8|G<<24)^(K>>>7|G<<25),J=((G=(J=s[$-2]).high)>>>19|(Q=J.low)<<13)^(G<<3|Q>>>29)^G>>>6,Q=(Q>>>19|G<<13)^(Q<<3|G>>>29)^(Q>>>6|G<<26),Y=(G=s[$-7]).high,X=(Z=s[$-16]).high,Z=Z.low;V=(V=(V=V+Y+((G=K+G.low)>>>0<K>>>0?1:0))+J+((G+=Q)>>>0<Q>>>0?1:0))+X+((G+=Z)>>>0<Z>>>0?1:0),W.high=V,W.low=G}Y=j&D^~j&B,Z=M&U^~M&z,W=T&R^T&F^R&F;var ee=P&I^P&N^I&N,te=(K=(T>>>28|P<<4)^(T<<30|P>>>2)^(T<<25|P>>>7),J=(P>>>28|T<<4)^(P<<30|T>>>2)^(P<<25|T>>>7),(Q=o[$]).high),ne=Q.low;X=H+((j>>>14|M<<18)^(j>>>18|M<<14)^(j<<23|M>>>9))+((Q=q+((M>>>14|j<<18)^(M>>>18|j<<14)^(M<<23|j>>>9)))>>>0<q>>>0?1:0),H=B,q=z,B=D,z=U,D=j,U=M,j=O+(X=(X=(X=X+Y+((Q+=Z)>>>0<Z>>>0?1:0))+te+((Q+=ne)>>>0<ne>>>0?1:0))+V+((Q+=G)>>>0<G>>>0?1:0))+((M=L+Q|0)>>>0<L>>>0?1:0)|0,O=F,L=N,F=R,N=I,R=T,I=P,T=X+(W=K+W+((G=J+ee)>>>0<J>>>0?1:0))+((P=Q+G|0)>>>0<Q>>>0?1:0)|0}f=n.low=f+P,n.high=d+T+(f>>>0<P>>>0?1:0),m=r.low=m+I,r.high=h+R+(m>>>0<I>>>0?1:0),v=i.low=v+N,i.high=g+F+(v>>>0<N>>>0?1:0),y=a.low=y+L,a.high=b+O+(y>>>0<L>>>0?1:0),x=c.low=x+M,c.high=w+j+(x>>>0<M>>>0?1:0),_=l.low=_+U,l.high=k+D+(_>>>0<U>>>0?1:0),C=u.low=C+z,u.high=E+B+(C>>>0<z>>>0?1:0),A=p.low=A+q,p.high=S+H+(A>>>0<q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(a),t.HmacSHA512=n._createHmacHelper(a)}(),function(){var e=g,t=(i=e.x64).Word,n=i.WordArray,r=(i=e.algo).SHA512,i=i.SHA384=r.extend({_doReset:function(){this._hash=new n.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=r._createHelper(i),e.HmacSHA384=r._createHmacHelper(i)}();
|
|
431
|
+
const r=globalThis,i=e=>e,a=r.trustedTypes,o=a?a.createPolicy("lit-html",{createHTML:e=>e}):void 0,s="$lit$",c=`lit$${Math.random().toFixed(9).slice(2)}$`,l="?"+c,u=`<${l}>`,p=document,d=()=>p.createComment(""),f=e=>null===e||"object"!=typeof e&&"function"!=typeof e,h=Array.isArray,m=e=>h(e)||"function"==typeof e?.[Symbol.iterator],g="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,y=/>/g,w=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,k=/"/g,_=/^(?:script|style|textarea|title)$/i,E=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),C=E(1),S=E(2),A=E(3),T=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),R=new WeakMap,I=p.createTreeWalker(p,129);function F(e,t){if(!h(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(t):t}const N=(e,t)=>{const n=e.length-1,r=[];let i,a=2===t?"<svg>":3===t?"<math>":"",o=v;for(let t=0;t<n;t++){const n=e[t];let l,p,d=-1,f=0;for(;f<n.length&&(o.lastIndex=f,p=o.exec(n),null!==p);)f=o.lastIndex,o===v?"!--"===p[1]?o=b:void 0!==p[1]?o=y:void 0!==p[2]?(_.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=w):void 0!==p[3]&&(o=w):o===w?">"===p[0]?(o=i??v,d=-1):void 0===p[1]?d=-2:(d=o.lastIndex-p[2].length,l=p[1],o=void 0===p[3]?w:'"'===p[3]?k:x):o===k||o===x?o=w:o===b||o===y?o=v:(o=w,i=void 0);const h=o===w&&e[t+1].startsWith("/>")?" ":"";a+=o===v?n+u:d>=0?(r.push(l),n.slice(0,d)+s+n.slice(d)+c+h):n+c+(-2===d?t:h)}return[F(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]};class O{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let i=0,o=0;const u=e.length-1,p=this.parts,[f,h]=N(e,t);if(this.el=O.createElement(f,n),I.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=I.nextNode())&&p.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const e of r.getAttributeNames())if(e.endsWith(s)){const t=h[o++],n=r.getAttribute(e).split(c),a=/([.?@])?(.*)/.exec(t);p.push({type:1,index:i,name:a[2],strings:n,ctor:"."===a[1]?U:"?"===a[1]?B:"@"===a[1]?z:D}),r.removeAttribute(e)}else e.startsWith(c)&&(p.push({type:6,index:i}),r.removeAttribute(e));if(_.test(r.tagName)){const e=r.textContent.split(c),t=e.length-1;if(t>0){r.textContent=a?a.emptyScript:"";for(let n=0;n<t;n++)r.append(e[n],d()),I.nextNode(),p.push({type:2,index:++i});r.append(e[t],d())}}}else if(8===r.nodeType)if(r.data===l)p.push({type:2,index:i});else{let e=-1;for(;-1!==(e=r.data.indexOf(c,e+1));)p.push({type:7,index:i}),e+=c.length-1}i++}}static createElement(e,t){const n=p.createElement("template");return n.innerHTML=e,n}}function L(e,t,n=e,r){if(t===T)return t;let i=void 0!==r?n._$Co?.[r]:n._$Cl;const a=f(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(e),i._$AT(e,n,r)),void 0!==r?(n._$Co??=[])[r]=i:n._$Cl=i),void 0!==i&&(t=L(e,i._$AS(e,t.values),i,r)),t}class j{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??p).importNode(t,!0);I.currentNode=r;let i=I.nextNode(),a=0,o=0,s=n[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new M(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new H(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=I.nextNode(),a++)}return I.currentNode=p,r}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=L(this,e,t),f(e)?e===P||null==e||""===e?(this._$AH!==P&&this._$AR(),this._$AH=P):e!==this._$AH&&e!==T&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):m(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==P&&f(this._$AH)?this._$AA.nextSibling.data=e:this.T(p.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,r="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=O.createElement(F(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{const e=new j(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=R.get(e.strings);return void 0===t&&R.set(e.strings,t=new O(e)),t}k(e){h(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const i of e)r===t.length?t.push(n=new M(this.O(d()),this.O(d()),this,this.options)):n=t[r],n._$AI(i),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=i(e).nextSibling;i(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=P,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=P}_$AI(e,t=this,n,r){const i=this.strings;let a=!1;if(void 0===i)e=L(this,e,t,0),a=!f(e)||e!==this._$AH&&e!==T,a&&(this._$AH=e);else{const r=e;let o,s;for(e=i[0],o=0;o<i.length-1;o++)s=L(this,r[n+o],t,o),s===T&&(s=this._$AH[o]),a||=!f(s)||s!==this._$AH[o],s===P?e=P:e!==P&&(e+=(s??"")+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class U extends D{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===P?void 0:e}}class B extends D{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==P)}}class z extends D{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=L(this,e,t,0)??P)===T)return;const n=this._$AH,r=e===P&&n!==P||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==P&&(n===P||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class H{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){L(this,e)}}const q={M:s,P:c,A:l,C:1,L:N,R:j,D:m,V:L,I:M,H:D,N:B,U:z,B:U,F:H},$=r.litHtmlPolyfillSupport;$?.(O,M),(r.litHtmlVersions??=[]).push("3.3.2");const W=(e,t,n)=>{const r=n?.renderBefore??t;let i=r._$litPart$;if(void 0===i){const e=n?.renderBefore??null;r._$litPart$=i=new M(t.insertBefore(d(),e),e,void 0,n??{})}return i._$AI(e),i}},23(e,t,n){"use strict";function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.r(t),n.d(t,{Hooks:()=>be,Lexer:()=>he,Marked:()=>ye,Parser:()=>ve,Renderer:()=>me,TextRenderer:()=>ge,Tokenizer:()=>fe,defaults:()=>i,getDefaults:()=>r,lexer:()=>Pe,marked:()=>xe,options:()=>ke,parse:()=>Ae,parseInline:()=>Se,parser:()=>Te,setOptions:()=>_e,use:()=>Ee,walkTokens:()=>Ce});var i={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function a(e){i=e}var o={exec:()=>null};function s(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(l.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var c=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),l={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,d=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=s(d).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),h=s(d).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),m=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,g=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,v=s(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",g).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=s(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),y="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",w=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,x=s("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",w).replace("tag",y).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),k=s(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),_={blockquote:s(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",k).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:v,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:x,lheading:f,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:k,table:o,text:/^[^\n]+/},E=s("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),C={..._,lheading:h,table:E,paragraph:s(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",E).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex()},S={..._,html:s("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",w).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:o,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:s(m).replace("hr",u).replace("heading"," *#{1,6} *[^\n]").replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},A=/^( {2,}|\\)\n(?!\s*$)/,T=/[\p{P}\p{S}]/u,P=/[\s\p{P}\p{S}]/u,R=/[^\s\p{P}\p{S}]/u,I=s(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,P).getRegex(),F=/(?!~)[\p{P}\p{S}]/u,N=/(?![*_])[\p{P}\p{S}]/u,O=s(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",c?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),L=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,j=s(L,"u").replace(/punct/g,T).getRegex(),M=s(L,"u").replace(/punct/g,F).getRegex(),D="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",U=s(D,"gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,P).replace(/punct/g,T).getRegex(),B=s(D,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,F).getRegex(),z=s("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,P).replace(/punct/g,T).getRegex(),H=s(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,N).getRegex(),q=s("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|[*_])/u).replace(/punctSpace/g,/(?![*_])[\s\p{P}\p{S}]/u).replace(/punct/g,N).getRegex(),$=s(/\\(punct)/,"gu").replace(/punct/g,T).getRegex(),W=s(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=s(w).replace("(?:--\x3e|$)","--\x3e").getRegex(),G=s("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),K=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,J=s(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",K).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Q=s(/^!?\[(label)\]\[(ref)\]/).replace("label",K).replace("ref",g).getRegex(),Y=s(/^!?\[(ref)\](?:\[\])?/).replace("ref",g).getRegex(),X=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Z={_backpedal:o,anyPunctuation:$,autolink:W,blockSkip:O,br:A,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:o,delLDelim:o,delRDelim:o,emStrongLDelim:j,emStrongRDelimAst:U,emStrongRDelimUnd:z,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:J,nolink:Y,punctuation:I,reflink:Q,reflinkSearch:s("reflink|nolink(?!\\()","g").replace("reflink",Q).replace("nolink",Y).getRegex(),tag:G,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:o},ee={...Z,link:s(/^!?\[(label)\]\((.*?)\)/).replace("label",K).getRegex(),reflink:s(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K).getRegex()},te={...Z,emStrongRDelimAst:B,emStrongLDelim:M,delLDelim:H,delRDelim:q,url:s(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",X).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:s(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",X).getRegex()},ne={...te,br:s(A).replace("{2,}","*").getRegex(),text:s(te.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},re={normal:_,gfm:C,pedantic:S},ie={normal:Z,gfm:te,breaks:ne,pedantic:ee},ae={"&":"&","<":"<",">":">",'"':""","'":"'"},oe=e=>ae[e];function se(e,t){if(t){if(l.escapeTest.test(e))return e.replace(l.escapeReplace,oe)}else if(l.escapeTestNoEncode.test(e))return e.replace(l.escapeReplaceNoEncode,oe);return e}function ce(e){try{e=encodeURI(e).replace(l.percentDecode,"%")}catch{return null}return e}function le(e,t){let n=e.replace(l.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(l.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(l.slashPipe,"|");return n}function ue(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n){if(a===t||!n)break;i++}else i++}return e.slice(0,r-i)}function pe(e,t=0){let n=t,r="";for(let t of e)if("\t"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function de(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}var fe=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ue(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ue(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ue(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ue(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t,a=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),a=!0;else{if(a)break;o.push(e[t])}e=e.slice(t);let s=o.join("\n"),c=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,0===e.length)break;let u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if("list"===u?.type){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=pe(t[2].split("\n",1)[0],t[1].length),l=e.split("\n",1)[0],u=!c.trim(),p=0;if(this.options.pedantic?(p=2,s=c.trimStart()):u?p=t[1].length+1:(p=c.search(this.rules.other.nonSpaceChar),p=p>4?1:p,s=c.slice(p),p+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+"\n",e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),i=this.rules.other.fencesBeginRegex(p),a=this.rules.other.headingBeginRegex(p),o=this.rules.other.htmlBeginRegex(p),d=this.rules.other.blockquoteBeginRegex(p);for(;e;){let f,h=e.split("\n",1)[0];if(l=h,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting," "),f=l):f=l.replace(this.rules.other.tabCharGlobal," "),i.test(l)||a.test(l)||o.test(l)||d.test(l)||t.test(l)||n.test(l))break;if(f.search(this.rules.other.nonSpaceChar)>=p||!l.trim())s+="\n"+f.slice(p);else{if(u||c.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+="\n"+l}u=!l.trim(),r+=h+"\n",e=e.substring(h.length+1),c=f.slice(p)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),"text"===e.tokens[0]?.type||"paragraph"===e.tokens[0]?.type){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=le(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(le(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ue(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),de(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return de(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,a=[...r[0]].length-1,o=a,s=0,c="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=c.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&a%3&&!((a+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);let t=[...r[0]][0].length,c=e.slice(0,a+r.index+t+i);if(Math.min(a,i)%2){let e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n,i,a=[...r[0]].length-1,o=a,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=s.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(i=[...n].length,i!==a))continue;if(r[3]||r[4]){o+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o);let t=[...r[0]][0].length,s=e.slice(0,a+r.index+t+i),c=s.slice(a,-a);return{type:"del",raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},he=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new fe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:l,block:re.normal,inline:ie.normal};this.options.pedantic?(t.block=re.pedantic,t.inline=ie.pedantic):this.options.gfm&&(t.block=re.gfm,this.options.breaks?t.inline=ie.breaks:t.inline=ie.gfm),this.tokenizer.rules=t}static get rules(){return{block:re,inline:ie}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(l.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(l.tabCharGlobal," ").replace(l.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&"paragraph"===a?.type?(a.raw+=(a.raw.endsWith("\n")?"":"\n")+r.raw,a.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,o="";for(;e;){let n;if(a||(o=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,o)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,r,o)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),a=!0;let r=t.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return t}},me=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(l.notSpaceStart)?.[0],i=e.replace(l.endingNewline,"")+"\n";return r?'<pre><code class="language-'+se(r)+'">'+(n?i:se(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:se(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${se(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=ce(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+se(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=ce(e);if(null===i)return se(n);let a=`<img src="${e=i}" alt="${se(n)}"`;return t&&(a+=` title="${se(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:se(e.text)}},ge=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ve=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new me,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ge}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==n||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=n||"";continue}}let i=r;switch(i.type){case"space":t+=this.renderer.space(i);break;case"hr":t+=this.renderer.hr(i);break;case"heading":t+=this.renderer.heading(i);break;case"code":t+=this.renderer.code(i);break;case"table":t+=this.renderer.table(i);break;case"blockquote":t+=this.renderer.blockquote(i);break;case"list":t+=this.renderer.list(i);break;case"checkbox":t+=this.renderer.checkbox(i);break;case"html":t+=this.renderer.html(i);break;case"def":t+=this.renderer.def(i);break;case"paragraph":t+=this.renderer.paragraph(i);break;case"text":t+=this.renderer.text(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}let a=i;switch(a.type){case"escape":case"text":n+=t.text(a);break;case"html":n+=t.html(a);break;case"link":n+=t.link(a);break;case"image":n+=t.image(a);break;case"checkbox":n+=t.checkbox(a);break;case"strong":n+=t.strong(a);break;case"em":n+=t.em(a);break;case"codespan":n+=t.codespan(a);break;case"br":n+=t.br(a);break;case"del":n+=t.del(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return n}},be=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?he.lex:he.lexInline}provideParser(){return this.block?ve.parse:ve.parseInline}},ye=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ve;Renderer=me;TextRenderer=ge;Lexer=he;Tokenizer=fe;Hooks=be;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new me(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new fe(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new be;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];be.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&be.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return!1===n&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return he.lex(e,t??this.defaults)}parser(e,t){return ve.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?he.lex:he.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?ve.parse:ve.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?he.lex:he.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?ve.parse:ve.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+se(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},we=new ye;function xe(e,t){return we.parse(e,t)}xe.options=xe.setOptions=function(e){return we.setOptions(e),xe.defaults=we.defaults,a(xe.defaults),xe},xe.getDefaults=r,xe.defaults=i,xe.use=function(...e){return we.use(...e),xe.defaults=we.defaults,a(xe.defaults),xe},xe.walkTokens=function(e,t){return we.walkTokens(e,t)},xe.parseInline=we.parseInline,xe.Parser=ve,xe.parser=ve.parse,xe.Renderer=me,xe.TextRenderer=ge,xe.Lexer=he,xe.lexer=he.lex,xe.Tokenizer=fe,xe.Hooks=be,xe.parse=xe;var ke=xe.options,_e=xe.setOptions,Ee=xe.use,Ce=xe.walkTokens,Se=xe.parseInline,Ae=xe,Te=ve.parse,Pe=he.lex},9332(e,t,n){"use strict";n.r(t),n.d(t,{ACL_LINK:()=>nn,CrossOriginForbiddenError:()=>mn,FetchError:()=>wn,NotEditableError:()=>bn,NotFoundError:()=>vn,SameOriginForbiddenError:()=>gn,UnauthorizedError:()=>hn,WebOperationError:()=>yn,appContext:()=>an,authSession:()=>In,authn:()=>Rn,createTypeIndexLogic:()=>kn,getSuggestedIssuers:()=>Pn,offlineTestID:()=>on,solidLogicSingleton:()=>An,store:()=>Fn});var r=n(8230),i={516(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i={debug:function(){},info:function(){},warn:function(){},error:function(){}},a=void 0,o=void 0;(t.Log=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.reset=function(){o=3,a=i},e.debug=function(){if(o>=4){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.debug.apply(a,Array.from(t))}},e.info=function(){if(o>=3){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.info.apply(a,Array.from(t))}},e.warn=function(){if(o>=2){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.warn.apply(a,Array.from(t))}},e.error=function(){if(o>=1){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];a.error.apply(a,Array.from(t))}},r(e,null,[{key:"NONE",get:function(){return 0}},{key:"ERROR",get:function(){return 1}},{key:"WARN",get:function(){return 2}},{key:"INFO",get:function(){return 3}},{key:"DEBUG",get:function(){return 4}},{key:"level",get:function(){return o},set:function(e){if(!(0<=e&&e<=4))throw new Error("Invalid log level");o=e}},{key:"logger",get:function(){return a},set:function(e){if(!e.debug&&e.info&&(e.debug=e.info),!(e.debug&&e.info&&e.warn&&e.error))throw new Error("Invalid logger");a=e}}]),e}()).reset()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i={setInterval:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){return setInterval(e,t)}),clearInterval:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return clearInterval(e)})},a=!1,o=null;t.Global=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e._testing=function(){a=!0},e.setXMLHttpRequest=function(e){o=e},r(e,null,[{key:"location",get:function(){if(!a)return location}},{key:"localStorage",get:function(){if(!a&&"undefined"!=typeof window)return localStorage}},{key:"sessionStorage",get:function(){if(!a&&"undefined"!=typeof window)return sessionStorage}},{key:"XMLHttpRequest",get:function(){if(!a&&"undefined"!=typeof window)return o||XMLHttpRequest}},{key:"timer",get:function(){if(!a)return i}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataService=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(7),o=".well-known/openid-configuration";t.MetadataService=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.JsonService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=t,this._jsonService=new n(["application/jwk-set+json"])}return e.prototype.resetSigningKeys=function(){this._settings=this._settings||{},this._settings.signingKeys=void 0},e.prototype.getMetadata=function(){var e=this;return this._settings.metadata?(i.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(i.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(t){i.Log.debug("MetadataService.getMetadata: json received");var n=e._settings.metadataSeed||{};return e._settings.metadata=Object.assign({},n,t),e._settings.metadata})):(i.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},e.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},e.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},e.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},e.prototype.getTokenEndpoint=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",e)},e.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},e.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},e.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},e.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},e.prototype._getMetadataProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.Log.debug("MetadataService.getMetadataProperty for: "+e),this.getMetadata().then(function(n){if(i.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===n[e]){if(!0===t)return void i.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+e);throw i.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+e),new Error("Metadata does not contain property "+e)}return n[e]})},e.prototype.getSigningKeys=function(){var e=this;return this._settings.signingKeys?(i.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(t){return i.Log.debug("MetadataService.getSigningKeys: jwks_uri received",t),e._jsonService.getJson(t).then(function(t){if(i.Log.debug("MetadataService.getSigningKeys: key set received",t),!t.keys)throw i.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return e._settings.signingKeys=t.keys,e._settings.signingKeys})})},r(e,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(o)<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=o))),this._metadataUrl}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtility=void 0;var r=n(0),i=n(1);t.UrlUtility=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.addQueryParam=function(e,t,n){return e.indexOf("?")<0&&(e+="?"),"?"!==e[e.length-1]&&(e+="&"),e+=encodeURIComponent(t),(e+="=")+encodeURIComponent(n)},e.parseUrlFragment=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.Global;"string"!=typeof e&&(e=n.location.href);var a=e.lastIndexOf(t);a>=0&&(e=e.substr(a+1)),"?"===t&&(a=e.indexOf("#"))>=0&&(e=e.substr(0,a));for(var o,s={},c=/([^&=]+)=([^&]*)/g,l=0;o=c.exec(e);)if(s[decodeURIComponent(o[1])]=decodeURIComponent(o[2].replace(/\+/g," ")),l++>50)return r.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",e),{error:"Response exceeded expected number of parameters"};for(var u in s)return s;return{}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.JoseUtil=void 0;var r=n(26),i=function(e){return e&&e.__esModule?e:{default:e}}(n(33));t.JoseUtil=(0,i.default)({jws:r.jws,KeyUtil:r.KeyUtil,X509:r.X509,crypto:r.crypto,hextob64u:r.hextob64u,b64tohex:r.b64tohex,AllowedSigningAlgs:r.AllowedSigningAlgs})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClientSettings=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),o=n(23),s=n(6),c=n(24),l=n(2),u=".well-known/openid-configuration";t.OidcClientSettings=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.authority,i=t.metadataUrl,a=t.metadata,u=t.signingKeys,p=t.metadataSeed,d=t.client_id,f=t.client_secret,h=t.response_type,m=void 0===h?"id_token":h,g=t.scope,v=void 0===g?"openid":g,b=t.redirect_uri,y=t.post_logout_redirect_uri,w=t.client_authentication,x=void 0===w?"client_secret_post":w,k=t.prompt,_=t.display,E=t.max_age,C=t.ui_locales,S=t.acr_values,A=t.resource,T=t.response_mode,P=t.filterProtocolClaims,R=void 0===P||P,I=t.loadUserInfo,F=void 0===I||I,N=t.staleStateAge,O=void 0===N?900:N,L=t.clockSkew,j=void 0===L?300:L,M=t.clockService,D=void 0===M?new o.ClockService:M,U=t.userInfoJwtIssuer,B=void 0===U?"OP":U,z=t.mergeClaims,H=void 0!==z&&z,q=t.stateStore,$=void 0===q?new s.WebStorageStateStore:q,W=t.ResponseValidatorCtor,V=void 0===W?c.ResponseValidator:W,G=t.MetadataServiceCtor,K=void 0===G?l.MetadataService:G,J=t.extraQueryParams,Q=void 0===J?{}:J,Y=t.extraTokenParams,X=void 0===Y?{}:Y;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._authority=n,this._metadataUrl=i,this._metadata=a,this._metadataSeed=p,this._signingKeys=u,this._client_id=d,this._client_secret=f,this._response_type=m,this._scope=v,this._redirect_uri=b,this._post_logout_redirect_uri=y,this._client_authentication=x,this._prompt=k,this._display=_,this._max_age=E,this._ui_locales=C,this._acr_values=S,this._resource=A,this._response_mode=T,this._filterProtocolClaims=!!R,this._loadUserInfo=!!F,this._staleStateAge=O,this._clockSkew=j,this._clockService=D,this._userInfoJwtIssuer=B,this._mergeClaims=!!H,this._stateStore=$,this._validator=new V(this),this._metadataService=new K(this),this._extraQueryParams="object"===(void 0===Q?"undefined":r(Q))?Q:{},this._extraTokenParams="object"===(void 0===X?"undefined":r(X))?X:{}}return e.prototype.getEpochTime=function(){return this._clockService.getEpochTime()},i(e,[{key:"client_id",get:function(){return this._client_id},set:function(e){if(this._client_id)throw a.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=e}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"client_authentication",get:function(){return this._client_authentication}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(e){if(this._authority)throw a.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=e}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(u)<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=u)),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(e){this._metadata=e}},{key:"metadataSeed",get:function(){return this._metadataSeed},set:function(e){this._metadataSeed=e}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(e){this._signingKeys=e}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"mergeClaims",get:function(){return this._mergeClaims}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(e){"object"===(void 0===e?"undefined":r(e))?this._extraQueryParams=e:this._extraQueryParams={}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(e){"object"===(void 0===e?"undefined":r(e))?this._extraTokenParams=e:this._extraTokenParams={}}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WebStorageStateStore=void 0;var r=n(0),i=n(1);t.WebStorageStateStore=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,r=void 0===n?"oidc.":n,a=t.store,o=void 0===a?i.Global.localStorage:a;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._store=o,this._prefix=r}return e.prototype.set=function(e,t){return r.Log.debug("WebStorageStateStore.set",e),e=this._prefix+e,this._store.setItem(e,t),Promise.resolve()},e.prototype.get=function(e){r.Log.debug("WebStorageStateStore.get",e),e=this._prefix+e;var t=this._store.getItem(e);return Promise.resolve(t)},e.prototype.remove=function(e){r.Log.debug("WebStorageStateStore.remove",e),e=this._prefix+e;var t=this._store.getItem(e);return this._store.removeItem(e),Promise.resolve(t)},e.prototype.getAllKeys=function(){r.Log.debug("WebStorageStateStore.getAllKeys");for(var e=[],t=0;t<this._store.length;t++){var n=this._store.key(t);0===n.indexOf(this._prefix)&&e.push(n.substr(this._prefix.length))}return Promise.resolve(e)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.JsonService=void 0;var r=n(0),i=n(1);t.JsonService=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Global.XMLHttpRequest,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t&&Array.isArray(t)?this._contentTypes=t.slice():this._contentTypes=[],this._contentTypes.push("application/json"),r&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=n,this._jwtHandler=r}return e.prototype.getJson=function(e,t){var n=this;if(!e)throw r.Log.error("JsonService.getJson: No url passed"),new Error("url");return r.Log.debug("JsonService.getJson, url: ",e),new Promise(function(i,a){var o=new n._XMLHttpRequest;o.open("GET",e);var s=n._contentTypes,c=n._jwtHandler;o.onload=function(){if(r.Log.debug("JsonService.getJson: HTTP response received, status",o.status),200===o.status){var t=o.getResponseHeader("Content-Type");if(t){var n=s.find(function(e){if(t.startsWith(e))return!0});if("application/jwt"==n)return void c(o).then(i,a);if(n)try{return void i(JSON.parse(o.responseText))}catch(e){return r.Log.error("JsonService.getJson: Error parsing JSON response",e.message),void a(e)}}a(Error("Invalid response Content-Type: "+t+", from URL: "+e))}else a(Error(o.statusText+" ("+o.status+")"))},o.onerror=function(){r.Log.error("JsonService.getJson: network error"),a(Error("Network Error"))},t&&(r.Log.debug("JsonService.getJson: token passed, setting Authorization header"),o.setRequestHeader("Authorization","Bearer "+t)),o.send()})},e.prototype.postForm=function(e,t,n){var i=this;if(!e)throw r.Log.error("JsonService.postForm: No url passed"),new Error("url");return r.Log.debug("JsonService.postForm, url: ",e),new Promise(function(a,o){var s=new i._XMLHttpRequest;s.open("POST",e);var c=i._contentTypes;s.onload=function(){if(r.Log.debug("JsonService.postForm: HTTP response received, status",s.status),200!==s.status){if(400===s.status&&(n=s.getResponseHeader("Content-Type"))&&c.find(function(e){if(n.startsWith(e))return!0}))try{var t=JSON.parse(s.responseText);if(t&&t.error)return r.Log.error("JsonService.postForm: Error from server: ",t.error),void o(new Error(t.error))}catch(e){return r.Log.error("JsonService.postForm: Error parsing JSON response",e.message),void o(e)}o(Error(s.statusText+" ("+s.status+")"))}else{var n;if((n=s.getResponseHeader("Content-Type"))&&c.find(function(e){if(n.startsWith(e))return!0}))try{return void a(JSON.parse(s.responseText))}catch(e){return r.Log.error("JsonService.postForm: Error parsing JSON response",e.message),void o(e)}o(Error("Invalid response Content-Type: "+n+", from URL: "+e))}},s.onerror=function(){r.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var l="";for(var u in t){var p=t[u];p&&(l.length>0&&(l+="&"),l+=encodeURIComponent(u),l+="=",l+=encodeURIComponent(p))}s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),void 0!==n&&s.setRequestHeader("Authorization","Basic "+btoa(n)),s.send(l)})},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SigninRequest=void 0;var r=n(0),i=n(3),a=n(13);t.SigninRequest=function(){function e(t){var n=t.url,o=t.client_id,s=t.redirect_uri,c=t.response_type,l=t.scope,u=t.authority,p=t.data,d=t.prompt,f=t.display,h=t.max_age,m=t.ui_locales,g=t.id_token_hint,v=t.login_hint,b=t.acr_values,y=t.resource,w=t.response_mode,x=t.request,k=t.request_uri,_=t.extraQueryParams,E=t.request_type,C=t.client_secret,S=t.extraTokenParams,A=t.skipUserInfo;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!o)throw r.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw r.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw r.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!l)throw r.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!u)throw r.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var T=e.isOidc(c),P=e.isCode(c);w||(w=e.isCode(c)?"query":null),this.state=new a.SigninState({nonce:T,data:p,client_id:o,authority:u,redirect_uri:s,code_verifier:P,request_type:E,response_mode:w,client_secret:C,scope:l,extraTokenParams:S,skipUserInfo:A}),n=i.UrlUtility.addQueryParam(n,"client_id",o),n=i.UrlUtility.addQueryParam(n,"redirect_uri",s),n=i.UrlUtility.addQueryParam(n,"response_type",c),n=i.UrlUtility.addQueryParam(n,"scope",l),n=i.UrlUtility.addQueryParam(n,"state",this.state.id),T&&(n=i.UrlUtility.addQueryParam(n,"nonce",this.state.nonce)),P&&(n=i.UrlUtility.addQueryParam(n,"code_challenge",this.state.code_challenge),n=i.UrlUtility.addQueryParam(n,"code_challenge_method","S256"));var R={prompt:d,display:f,max_age:h,ui_locales:m,id_token_hint:g,login_hint:v,acr_values:b,resource:y,request:x,request_uri:k,response_mode:w};for(var I in R)R[I]&&(n=i.UrlUtility.addQueryParam(n,I,R[I]));for(var F in _)n=i.UrlUtility.addQueryParam(n,F,_[F]);this.url=n}return e.isOidc=function(e){return!!e.split(/\s+/g).filter(function(e){return"id_token"===e})[0]},e.isOAuth=function(e){return!!e.split(/\s+/g).filter(function(e){return"token"===e})[0]},e.isCode=function(e){return!!e.split(/\s+/g).filter(function(e){return"code"===e})[0]},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(n(14));t.State=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,r=t.data,i=t.created,o=t.request_type;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._id=n||(0,a.default)(),this._data=r,this._created="number"==typeof i&&i>0?i:parseInt(Date.now()/1e3),this._request_type=o}return e.prototype.toStorageString=function(){return i.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},e.fromStorageString=function(t){return i.Log.debug("State.fromStorageString"),new e(JSON.parse(t))},e.clearStaleState=function(t,n){var r=Date.now()/1e3-n;return t.getAllKeys().then(function(n){i.Log.debug("State.clearStaleState: got keys",n);for(var a=[],o=function(o){var s=n[o];c=t.get(s).then(function(n){var a=!1;if(n)try{var o=e.fromStorageString(n);i.Log.debug("State.clearStaleState: got item from key: ",s,o.created),o.created<=r&&(a=!0)}catch(e){i.Log.error("State.clearStaleState: Error parsing state for key",s,e.message),a=!0}else i.Log.debug("State.clearStaleState: no item in storage for key: ",s),a=!0;if(a)return i.Log.debug("State.clearStaleState: removed item for key: ",s),t.remove(s)}),a.push(c)},s=0;s<n.length;s++){var c;o(s)}return i.Log.debug("State.clearStaleState: waiting on promise count:",a.length),Promise.all(a)})},r(e,[{key:"id",get:function(){return this._id}},{key:"data",get:function(){return this._data}},{key:"created",get:function(){return this._created}},{key:"request_type",get:function(){return this._request_type}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClient=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(5),o=n(12),s=n(8),c=n(34),l=n(35),u=n(36),p=n(13),d=n(9);t.OidcClient=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t instanceof a.OidcClientSettings?this._settings=t:this._settings=new a.OidcClientSettings(t)}return e.prototype.createSigninRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.response_type,r=t.scope,a=t.redirect_uri,o=t.data,c=t.state,l=t.prompt,u=t.display,p=t.max_age,d=t.ui_locales,f=t.id_token_hint,h=t.login_hint,m=t.acr_values,g=t.resource,v=t.request,b=t.request_uri,y=t.response_mode,w=t.extraQueryParams,x=t.extraTokenParams,k=t.request_type,_=t.skipUserInfo,E=arguments[1];i.Log.debug("OidcClient.createSigninRequest");var C=this._settings.client_id;n=n||this._settings.response_type,r=r||this._settings.scope,a=a||this._settings.redirect_uri,l=l||this._settings.prompt,u=u||this._settings.display,p=p||this._settings.max_age,d=d||this._settings.ui_locales,m=m||this._settings.acr_values,g=g||this._settings.resource,y=y||this._settings.response_mode,w=w||this._settings.extraQueryParams,x=x||this._settings.extraTokenParams;var S=this._settings.authority;return s.SigninRequest.isCode(n)&&"code"!==n?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(t){i.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",t);var A=new s.SigninRequest({url:t,client_id:C,redirect_uri:a,response_type:n,scope:r,data:o||c,authority:S,prompt:l,display:u,max_age:p,ui_locales:d,id_token_hint:f,login_hint:h,acr_values:m,resource:g,request:v,request_uri:b,extraQueryParams:w,extraTokenParams:x,request_type:k,response_mode:y,client_secret:e._settings.client_secret,skipUserInfo:_}),T=A.state;return(E=E||e._stateStore).set(T.id,T.toStorageString()).then(function(){return A})})},e.prototype.readSigninResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSigninResponseState");var r="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",a=new c.SigninResponse(e,r);return a.state?(t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(a.state).then(function(e){if(!e)throw i.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:p.SigninState.fromStorageString(e),response:a}})):(i.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},e.prototype.processSigninResponse=function(e,t){var n=this;return i.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(e,t,!0).then(function(e){var t=e.state,r=e.response;return i.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),n._validator.validateSigninResponse(t,r)})},e.prototype.createSignoutRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id_token_hint,r=t.data,a=t.state,o=t.post_logout_redirect_uri,s=t.extraQueryParams,c=t.request_type,u=arguments[1];return i.Log.debug("OidcClient.createSignoutRequest"),o=o||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(t){if(!t)throw i.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");i.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",t);var p=new l.SignoutRequest({url:t,id_token_hint:n,post_logout_redirect_uri:o,data:r||a,extraQueryParams:s,request_type:c}),d=p.state;return d&&(i.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(u=u||e._stateStore).set(d.id,d.toStorageString())),p})},e.prototype.readSignoutResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSignoutResponseState");var r=new u.SignoutResponse(e);if(!r.state)return i.Log.debug("OidcClient.readSignoutResponseState: No state in response"),r.error?(i.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",r.error),Promise.reject(new o.ErrorResponse(r))):Promise.resolve({state:void 0,response:r});var a=r.state;return t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(a).then(function(e){if(!e)throw i.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(e),response:r}})},e.prototype.processSignoutResponse=function(e,t){var n=this;return i.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(e,t,!0).then(function(e){var t=e.state,r=e.response;return t?(i.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),n._validator.validateSignoutResponse(t,r)):(i.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),r)})},e.prototype.clearStaleState=function(e){return i.Log.debug("OidcClient.clearStaleState"),e=e||this._stateStore,d.State.clearStaleState(e,this.settings.staleStateAge)},r(e,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClient=void 0;var r=n(7),i=n(2),a=n(0);t.TokenClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.JsonService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw a.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n,this._metadataService=new o(this._settings)}return e.prototype.exchangeCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||"authorization_code",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret,t.redirect_uri=t.redirect_uri||this._settings.redirect_uri;var n=void 0,r=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.code?t.redirect_uri?t.code_verifier?t.client_id?t.client_secret||"client_secret_basic"!=r?("client_secret_basic"==r&&(n=t.client_id+":"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then(function(r){return a.Log.debug("TokenClient.exchangeCode: Received token endpoint"),e._jsonService.postForm(r,t,n).then(function(e){return a.Log.debug("TokenClient.exchangeCode: response received"),e})})):(a.Log.error("TokenClient.exchangeCode: No client_secret passed"),Promise.reject(new Error("A client_secret is required"))):(a.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(a.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(a.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(a.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},e.prototype.exchangeRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||"refresh_token",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret;var n=void 0,r=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.refresh_token?t.client_id?("client_secret_basic"==r&&(n=t.client_id+":"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then(function(r){return a.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),e._jsonService.postForm(r,t,n).then(function(e){return a.Log.debug("TokenClient.exchangeRefreshToken: response received"),e})})):(a.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(a.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorResponse=void 0;var r=n(0);t.ErrorResponse=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.error,a=n.error_description,o=n.error_uri,s=n.state,c=n.session_state;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw r.Log.error("No error passed to ErrorResponse"),new Error("error");var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,a||i));return l.name="ErrorResponse",l.error=i,l.error_description=a,l.error_uri=o,l.state=s,l.session_state=c,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SigninState=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(9),o=n(4),s=function(e){return e&&e.__esModule?e:{default:e}}(n(14));t.SigninState=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.nonce,i=n.authority,a=n.client_id,c=n.redirect_uri,l=n.code_verifier,u=n.response_mode,p=n.client_secret,d=n.scope,f=n.extraTokenParams,h=n.skipUserInfo;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var m=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));if(!0===r?m._nonce=(0,s.default)():r&&(m._nonce=r),!0===l?m._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():l&&(m._code_verifier=l),m.code_verifier){var g=o.JoseUtil.hashString(m.code_verifier,"SHA256");m._code_challenge=o.JoseUtil.hexToBase64Url(g)}return m._redirect_uri=c,m._authority=i,m._client_id=a,m._response_mode=u,m._client_secret=p,m._scope=d,m._extraTokenParams=f,m._skipUserInfo=h,m}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toStorageString=function(){return i.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},t.fromStorageString=function(e){return i.Log.debug("SigninState.fromStorageString"),new t(JSON.parse(e))},r(t,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),t}(a.State)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return("undefined"!=r&&null!==r&&void 0!==r.getRandomValues?i:a)().replace(/-/g,"")};var r="undefined"!=typeof window?window.crypto||window.msCrypto:null;function i(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^r.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})}function a(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^16*Math.random()>>e/4).toString(16)})}e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.User=function(){function e(t){var n=t.id_token,r=t.session_state,i=t.access_token,a=t.refresh_token,o=t.token_type,s=t.scope,c=t.profile,l=t.expires_at,u=t.state;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id_token=n,this.session_state=r,this.access_token=i,this.refresh_token=a,this.token_type=o,this.scope=s,this.profile=c,this.expires_at=l,this.state=u}return e.prototype.toStorageString=function(){return i.Log.debug("User.toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})},e.fromStorageString=function(t){return i.Log.debug("User.fromStorageString"),new e(JSON.parse(t))},r(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTokenEvents=void 0;var r=n(0),i=n(46);t.AccessTokenEvents=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.accessTokenExpiringNotificationTime,r=void 0===n?60:n,a=t.accessTokenExpiringTimer,o=void 0===a?new i.Timer("Access token expiring"):a,s=t.accessTokenExpiredTimer,c=void 0===s?new i.Timer("Access token expired"):s;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._accessTokenExpiringNotificationTime=r,this._accessTokenExpiring=o,this._accessTokenExpired=c}return e.prototype.load=function(e){if(e.access_token&&void 0!==e.expires_in){var t=e.expires_in;if(r.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",t),t>0){var n=t-this._accessTokenExpiringNotificationTime;n<=0&&(n=1),r.Log.debug("AccessTokenEvents.load: registering expiring timer in:",n),this._accessTokenExpiring.init(n)}else r.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var i=t+1;r.Log.debug("AccessTokenEvents.load: registering expired timer in:",i),this._accessTokenExpired.init(i)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.unload=function(){r.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.addAccessTokenExpiring=function(e){this._accessTokenExpiring.addHandler(e)},e.prototype.removeAccessTokenExpiring=function(e){this._accessTokenExpiring.removeHandler(e)},e.prototype.addAccessTokenExpired=function(e){this._accessTokenExpired.addHandler(e)},e.prototype.removeAccessTokenExpired=function(e){this._accessTokenExpired.removeHandler(e)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var r=n(0);t.Event=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._callbacks=[]}return e.prototype.addHandler=function(e){this._callbacks.push(e)},e.prototype.removeHandler=function(e){var t=this._callbacks.findIndex(function(t){return t===e});t>=0&&this._callbacks.splice(t,1)},e.prototype.raise=function(){r.Log.debug("Event: Raising event: "+this._name);for(var e=0;e<this._callbacks.length;e++){var t;(t=this._callbacks)[e].apply(t,arguments)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SessionMonitor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(19),o=n(1);t.SessionMonitor=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Global.timer;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=t,this._CheckSessionIFrameCtor=r,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),Promise.resolve(this._userManager.getUser().then(function(e){e?n._start(e):n._settings.monitorAnonymousSession&&n._userManager.querySessionStatus().then(function(e){var t={session_state:e.session_state};e.sub&&e.sid&&(t.profile={sub:e.sub,sid:e.sid}),n._start(t)}).catch(function(e){i.Log.error("SessionMonitor ctor: error from querySessionStatus:",e.message)})}).catch(function(e){i.Log.error("SessionMonitor ctor: error from getUser:",e.message)}))}return e.prototype._start=function(e){var t=this,n=e.session_state;n&&(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,i.Log.debug("SessionMonitor._start: session_state:",n,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,i.Log.debug("SessionMonitor._start: session_state:",n,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(n):this._metadataService.getCheckSessionIframe().then(function(e){if(e){i.Log.debug("SessionMonitor._start: Initializing check session iframe");var r=t._client_id,a=t._checkSessionInterval,o=t._stopCheckSessionOnError;t._checkSessionIFrame=new t._CheckSessionIFrameCtor(t._callback.bind(t),r,e,a,o),t._checkSessionIFrame.load().then(function(){t._checkSessionIFrame.start(n)})}else i.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(e){i.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",e.message)}))},e.prototype._stop=function(){var e=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(i.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var t=this._timer.setInterval(function(){e._timer.clearInterval(t),e._userManager.querySessionStatus().then(function(t){var n={session_state:t.session_state};t.sub&&t.sid&&(n.profile={sub:t.sub,sid:t.sid}),e._start(n)}).catch(function(e){i.Log.error("SessionMonitor: error from querySessionStatus:",e.message)})},1e3)},e.prototype._callback=function(){var e=this;this._userManager.querySessionStatus().then(function(t){var n=!0;t?t.sub===e._sub?(n=!1,e._checkSessionIFrame.start(t.session_state),t.sid===e._sid?i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",t.session_state):(i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",t.session_state),e._userManager.events._raiseUserSessionChanged())):i.Log.debug("SessionMonitor._callback: Different subject signed into OP:",t.sub):i.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),n&&(e._sub?(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),e._userManager.events._raiseUserSignedOut()):(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),e._userManager.events._raiseUserSignedIn()))}).catch(function(t){e._sub&&(i.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",t.message),e._userManager.events._raiseUserSignedOut())})},r(e,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CheckSessionIFrame=void 0;var r=n(0);t.CheckSessionIFrame=function(){function e(t,n,r,i){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._callback=t,this._client_id=n,this._url=r,this._interval=i||2e3,this._stopOnError=a;var o=r.indexOf("/",r.indexOf("//")+2);this._frame_origin=r.substr(0,o),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.width=0,this._frame.height=0,this._frame.src=r}return e.prototype.load=function(){var e=this;return new Promise(function(t){e._frame.onload=function(){t()},window.document.body.appendChild(e._frame),e._boundMessageEvent=e._message.bind(e),window.addEventListener("message",e._boundMessageEvent,!1)})},e.prototype._message=function(e){e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(r.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(r.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):r.Log.debug("CheckSessionIFrame: "+e.data+" message from check session op iframe"))},e.prototype.start=function(e){var t=this;if(this._session_state!==e){r.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=e;var n=function(){t._frame.contentWindow.postMessage(t._client_id+" "+t._session_state,t._frame_origin)};n(),this._timer=window.setInterval(n,this._interval)}},e.prototype.stop=function(){this._session_state=null,this._timer&&(r.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRevocationClient=void 0;var r=n(0),i=n(2),a=n(1);t.TokenRevocationClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Global.XMLHttpRequest,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=t,this._XMLHttpRequestCtor=n,this._metadataService=new o(this._settings)}return e.prototype.revoke=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!e)throw r.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==i&&"refresh_token"!=i)throw r.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(a){if(a){r.Log.debug("TokenRevocationClient.revoke: Revoking "+i);var o=n._settings.client_id,s=n._settings.client_secret;return n._revoke(a,o,s,e,i)}if(t)throw r.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},e.prototype._revoke=function(e,t,n,i,a){var o=this;return new Promise(function(s,c){var l=new o._XMLHttpRequestCtor;l.open("POST",e),l.onload=function(){r.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",l.status),200===l.status?s():c(Error(l.statusText+" ("+l.status+")"))},l.onerror=function(){r.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var u="client_id="+encodeURIComponent(t);n&&(u+="&client_secret="+encodeURIComponent(n)),u+="&token_type_hint="+encodeURIComponent(a),u+="&token="+encodeURIComponent(i),l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.send(u)})},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.CordovaPopupWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t}),this.features=t.popupWindowFeatures||"location=no,toolbar=no,zoom=no",this.target=t.popupWindowTarget||"_blank",this.redirect_uri=t.startUrl,i.Log.debug("CordovaPopupWindow.ctor: redirect_uri: "+this.redirect_uri)}return e.prototype._isInAppBrowserInstalled=function(e){return["cordova-plugin-inappbrowser","cordova-plugin-inappbrowser.inappbrowser","org.apache.cordova.inappbrowser"].some(function(t){return e.hasOwnProperty(t)})},e.prototype.navigate=function(e){if(e&&e.url){if(!window.cordova)return this._error("cordova is undefined");var t=window.cordova.require("cordova/plugin_list").metadata;if(!1===this._isInAppBrowserInstalled(t))return this._error("InAppBrowser plugin not found");this._popup=cordova.InAppBrowser.open(e.url,this.target,this.features),this._popup?(i.Log.debug("CordovaPopupWindow.navigate: popup successfully created"),this._exitCallbackEvent=this._exitCallback.bind(this),this._loadStartCallbackEvent=this._loadStartCallback.bind(this),this._popup.addEventListener("exit",this._exitCallbackEvent,!1),this._popup.addEventListener("loadstart",this._loadStartCallbackEvent,!1)):this._error("Error opening popup window")}else this._error("No url provided");return this.promise},e.prototype._loadStartCallback=function(e){0===e.url.indexOf(this.redirect_uri)&&this._success({url:e.url})},e.prototype._exitCallback=function(e){this._error(e)},e.prototype._success=function(e){this._cleanup(),i.Log.debug("CordovaPopupWindow: Successful response from cordova popup window"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._popup&&(i.Log.debug("CordovaPopupWindow: cleaning up popup"),this._popup.removeEventListener("exit",this._exitCallbackEvent,!1),this._popup.removeEventListener("loadstart",this._loadStartCallbackEvent,!1),this._popup.close()),this._popup=null},r(e,[{key:"promise",get:function(){return this._promise}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(10),a=n(5),o=n(6),s=n(37),c=n(38),l=n(16),u=n(2),p=n(48),d=n(49),f=n(19),h=n(20),m=n(18),g=n(1),v=n(15),b=n(50);t.default={Version:b.Version,Log:r.Log,OidcClient:i.OidcClient,OidcClientSettings:a.OidcClientSettings,WebStorageStateStore:o.WebStorageStateStore,InMemoryWebStorage:s.InMemoryWebStorage,UserManager:c.UserManager,AccessTokenEvents:l.AccessTokenEvents,MetadataService:u.MetadataService,CordovaPopupNavigator:p.CordovaPopupNavigator,CordovaIFrameNavigator:d.CordovaIFrameNavigator,CheckSessionIFrame:f.CheckSessionIFrame,TokenRevocationClient:h.TokenRevocationClient,SessionMonitor:m.SessionMonitor,Global:g.Global,User:v.User},e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ClockService=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.getEpochTime=function(){return Promise.resolve(Date.now()/1e3|0)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseValidator=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(0),a=n(2),o=n(25),s=n(11),c=n(12),l=n(4),u=["nonce","at_hash","iat","nbf","exp","aud","iss","c_hash"];t.ResponseValidator=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.MetadataService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.JoseUtil,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=t,this._metadataService=new n(this._settings),this._userInfoService=new r(this._settings),this._joseUtil=c,this._tokenClient=new u(this._settings)}return e.prototype.validateSigninResponse=function(e,t){var n=this;return i.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(e,t).then(function(t){return i.Log.debug("ResponseValidator.validateSigninResponse: state processed"),n._validateTokens(e,t).then(function(t){return i.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),n._processClaims(e,t).then(function(e){return i.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),e})})})},e.prototype.validateSignoutResponse=function(e,t){return e.id!==t.state?(i.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(i.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),t.state=e.data,t.error?(i.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",t.error),Promise.reject(new c.ErrorResponse(t))):Promise.resolve(t))},e.prototype._processSigninParams=function(e,t){if(e.id!==t.state)return i.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!e.client_id)return i.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!e.authority)return i.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==e.authority)return i.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=e.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==e.client_id)return i.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=e.client_id;return i.Log.debug("ResponseValidator._processSigninParams: state validated"),t.state=e.data,t.error?(i.Log.warn("ResponseValidator._processSigninParams: Response was error",t.error),Promise.reject(new c.ErrorResponse(t))):e.nonce&&!t.id_token?(i.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!e.nonce&&t.id_token?(i.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):e.code_verifier&&!t.code?(i.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!e.code_verifier&&t.code?(i.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(t.scope||(t.scope=e.scope),Promise.resolve(t))},e.prototype._processClaims=function(e,t){var n=this;if(t.isOpenIdConnect){if(i.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),t.profile=this._filterProtocolClaims(t.profile),!0!==e.skipUserInfo&&this._settings.loadUserInfo&&t.access_token)return i.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(t.access_token).then(function(e){return i.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),e.sub!==t.profile.sub?(i.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in id_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in id_token"))):(t.profile=n._mergeClaims(t.profile,e),i.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",t.profile),t)});i.Log.debug("ResponseValidator._processClaims: not loading user info")}else i.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(t)},e.prototype._mergeClaims=function(e,t){var n=Object.assign({},e);for(var i in t){var a=t[i];Array.isArray(a)||(a=[a]);for(var o=0;o<a.length;o++){var s=a[o];n[i]?Array.isArray(n[i])?n[i].indexOf(s)<0&&n[i].push(s):n[i]!==s&&("object"===(void 0===s?"undefined":r(s))&&this._settings.mergeClaims?n[i]=this._mergeClaims(n[i],s):n[i]=[n[i],s]):n[i]=s}}return n},e.prototype._filterProtocolClaims=function(e){i.Log.debug("ResponseValidator._filterProtocolClaims, incoming claims:",e);var t=Object.assign({},e);return this._settings._filterProtocolClaims?(u.forEach(function(e){delete t[e]}),i.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims filtered",t)):i.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims not filtered"),t},e.prototype._validateTokens=function(e,t){return t.code?(i.Log.debug("ResponseValidator._validateTokens: Validating code"),this._processCode(e,t)):t.id_token?t.access_token?(i.Log.debug("ResponseValidator._validateTokens: Validating id_token and access_token"),this._validateIdTokenAndAccessToken(e,t)):(i.Log.debug("ResponseValidator._validateTokens: Validating id_token"),this._validateIdToken(e,t)):(i.Log.debug("ResponseValidator._validateTokens: No code to process or id_token to validate"),Promise.resolve(t))},e.prototype._processCode=function(e,t){var n=this,a={client_id:e.client_id,client_secret:e.client_secret,code:t.code,redirect_uri:e.redirect_uri,code_verifier:e.code_verifier};return e.extraTokenParams&&"object"===r(e.extraTokenParams)&&Object.assign(a,e.extraTokenParams),this._tokenClient.exchangeCode(a).then(function(r){for(var a in r)t[a]=r[a];return t.id_token?(i.Log.debug("ResponseValidator._processCode: token response successful, processing id_token"),n._validateIdTokenAttributes(e,t)):(i.Log.debug("ResponseValidator._processCode: token response successful, returning response"),t)})},e.prototype._validateIdTokenAttributes=function(e,t){var n=this;return this._metadataService.getIssuer().then(function(r){var a=e.client_id,o=n._settings.clockSkew;return i.Log.debug("ResponseValidator._validateIdTokenAttributes: Validaing JWT attributes; using clock skew (in seconds) of: ",o),n._settings.getEpochTime().then(function(s){return n._joseUtil.validateJwtAttributes(t.id_token,r,a,o,s).then(function(n){return e.nonce&&e.nonce!==n.nonce?(i.Log.error("ResponseValidator._validateIdTokenAttributes: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):n.sub?(t.profile=n,t):(i.Log.error("ResponseValidator._validateIdTokenAttributes: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},e.prototype._validateIdTokenAndAccessToken=function(e,t){var n=this;return this._validateIdToken(e,t).then(function(e){return n._validateAccessToken(e)})},e.prototype._getSigningKeyForJwt=function(e){var t=this;return this._metadataService.getSigningKeys().then(function(n){var r=e.header.kid;if(!n)return i.Log.error("ResponseValidator._validateIdToken: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));i.Log.debug("ResponseValidator._validateIdToken: Received signing keys");var a=void 0;if(r)a=n.filter(function(e){return e.kid===r})[0];else{if((n=t._filterByAlg(n,e.header.alg)).length>1)return i.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=n[0]}return Promise.resolve(a)})},e.prototype._getSigningKeyForJwtWithSingleRetry=function(e){var t=this;return this._getSigningKeyForJwt(e).then(function(n){return n?Promise.resolve(n):(t._metadataService.resetSigningKeys(),t._getSigningKeyForJwt(e))})},e.prototype._validateIdToken=function(e,t){var n=this;if(!e.nonce)return i.Log.error("ResponseValidator._validateIdToken: No nonce on state"),Promise.reject(new Error("No nonce on state"));var r=this._joseUtil.parseJwt(t.id_token);return r&&r.header&&r.payload?e.nonce!==r.payload.nonce?(i.Log.error("ResponseValidator._validateIdToken: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):this._metadataService.getIssuer().then(function(a){return i.Log.debug("ResponseValidator._validateIdToken: Received issuer"),n._getSigningKeyForJwtWithSingleRetry(r).then(function(o){if(!o)return i.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var s=e.client_id,c=n._settings.clockSkew;return i.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",c),n._joseUtil.validateJwt(t.id_token,o,a,s,c).then(function(){return i.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),r.payload.sub?(t.profile=r.payload,t):(i.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})}):(i.Log.error("ResponseValidator._validateIdToken: Failed to parse id_token",r),Promise.reject(new Error("Failed to parse id_token")))},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return i.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",t),[];n="EC"}return i.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",n),e=e.filter(function(e){return e.kty===n}),i.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",n,e.length),e},e.prototype._validateAccessToken=function(e){if(!e.profile)return i.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!e.profile.at_hash)return i.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!e.id_token)return i.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var t=this._joseUtil.parseJwt(e.id_token);if(!t||!t.header)return i.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",t),Promise.reject(new Error("Failed to parse id_token"));var n=t.header.alg;if(!n||5!==n.length)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n),Promise.reject(new Error("Unsupported alg: "+n));var r=n.substr(2,3);if(!r)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,r),Promise.reject(new Error("Unsupported alg: "+n));if(256!==(r=parseInt(r))&&384!==r&&512!==r)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,r),Promise.reject(new Error("Unsupported alg: "+n));var a="sha"+r,o=this._joseUtil.hashString(e.access_token,a);if(!o)return i.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",a),Promise.reject(new Error("Failed to validate at_hash"));var s=o.substr(0,o.length/2),c=this._joseUtil.hexToBase64Url(s);return c!==e.profile.at_hash?(i.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,e.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(i.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(e))},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserInfoService=void 0;var r=n(7),i=n(2),a=n(0),o=n(4);t.UserInfoService=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.JoseUtil;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw a.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=c}return e.prototype.getClaims=function(e){var t=this;return e?this._metadataService.getUserInfoEndpoint().then(function(n){return a.Log.debug("UserInfoService.getClaims: received userinfo url",n),t._jsonService.getJson(n,e).then(function(e){return a.Log.debug("UserInfoService.getClaims: claims received",e),e})}):(a.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},e.prototype._getClaimsFromJwt=function e(t){var n=this;try{var r=this._joseUtil.parseJwt(t.responseText);if(!r||!r.header||!r.payload)return a.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",r),Promise.reject(new Error("Failed to parse id_token"));var i=r.header.kid,o=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":o=this._metadataService.getIssuer();break;case"ANY":o=Promise.resolve(r.payload.iss);break;default:o=Promise.resolve(this._settings.userInfoJwtIssuer)}return o.then(function(e){return a.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+e),n._metadataService.getSigningKeys().then(function(o){if(!o)return a.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));a.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(i)s=o.filter(function(e){return e.kid===i})[0];else{if((o=n._filterByAlg(o,r.header.alg)).length>1)return a.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=o[0]}if(!s)return a.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=n._settings.client_id,l=n._settings.clockSkew;return a.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",l),n._joseUtil.validateJwt(t.responseText,s,e,c,l,void 0,!0).then(function(){return a.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),r.payload})})})}catch(e){return a.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",e.message),void reject(e)}},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return a.Log.debug("UserInfoService._filterByAlg: alg not supported: ",t),[];n="EC"}return a.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",n),e=e.filter(function(e){return e.kty===n}),a.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",n,e.length),e},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AllowedSigningAlgs=t.b64tohex=t.hextob64u=t.crypto=t.X509=t.KeyUtil=t.jws=void 0;var r=n(27);t.jws=r.jws,t.KeyUtil=r.KEYUTIL,t.X509=r.X509,t.crypto=r.crypto,t.hextob64u=r.hextob64u,t.b64tohex=r.b64tohex,t.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n,r,i,a,o,s,c,l,u,p,d,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h={userAgent:!1},m={},g=g||(n=Math,i=(r={}).lib={},a=i.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=n.ceil(t/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(4294967296*n.random()|0);return new o.init(t,e)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},p=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,i=t.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=e?n.ceil(s):n.max((0|s)-this._minBufferSize,0))*a,l=n.min(4*c,i);if(c){for(var u=0;u<c;u+=a)this._doProcessBlock(r,u);var p=r.splice(0,c);t.sigBytes-=l}return new o.init(p,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),i.Hasher=p.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}}),d=r.algo={},r);!function(){var e,t=(e=g).lib,n=t.Base,r=t.WordArray;(e=e.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),e.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i<t;i++){var a=e[i];n.push(a.high),n.push(a.low)}return r.create(n,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}})}(),function(){var e=g,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp(),e=[];for(var i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,o=0;4>o&&i+.75*o<n;o++)e.push(r.charAt(a>>>6*(3-o)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,r=this._map;(i=r.charAt(64))&&-1!=(i=e.indexOf(i))&&(n=i);for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r.indexOf(e.charAt(o-1))<<o%4*2,c=r.indexOf(e.charAt(o))>>>6-o%4*2;i[a>>>2]|=(s|c)<<24-a%4*8,a++}return t.create(i,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){for(var t=g,n=(i=t.lib).WordArray,r=i.Hasher,i=t.algo,a=[],o=[],s=function(e){return 4294967296*(e-(0|e))|0},c=2,l=0;64>l;){var u;e:{u=c;for(var p=e.sqrt(u),d=2;d<=p;d++)if(!(u%d)){u=!1;break e}u=!0}u&&(8>l&&(a[l]=s(e.pow(c,.5))),o[l]=s(e.pow(c,1/3)),l++),c++}var f=[];i=i.SHA256=r.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],c=n[4],l=n[5],u=n[6],p=n[7],d=0;64>d;d++){if(16>d)f[d]=0|e[t+d];else{var h=f[d-15],m=f[d-2];f[d]=((h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+f[d-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+f[d-16]}h=p+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&u)+o[d]+f[d],m=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&a^i&a),p=u,u=l,l=c,c=s+h|0,s=a,a=i,i=r,r=h+m|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0,n[5]=n[5]+l|0,n[6]=n[6]+u|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=r._createHelper(i),t.HmacSHA256=r._createHmacHelper(i)}(Math),function(){function e(){return r.create.apply(r,arguments)}for(var t=g,n=t.lib.Hasher,r=(a=t.x64).Word,i=a.WordArray,a=t.algo,o=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],s=[],c=0;80>c;c++)s[c]=e();a=a.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=(p=this._hash.words)[0],r=p[1],i=p[2],a=p[3],c=p[4],l=p[5],u=p[6],p=p[7],d=n.high,f=n.low,h=r.high,m=r.low,g=i.high,v=i.low,b=a.high,y=a.low,w=c.high,x=c.low,k=l.high,_=l.low,E=u.high,C=u.low,S=p.high,A=p.low,T=d,P=f,R=h,I=m,F=g,N=v,O=b,L=y,j=w,M=x,D=k,U=_,B=E,z=C,H=S,q=A,$=0;80>$;$++){var W=s[$];if(16>$)var V=W.high=0|e[t+2*$],G=W.low=0|e[t+2*$+1];else{V=((G=(V=s[$-15]).high)>>>1|(K=V.low)<<31)^(G>>>8|K<<24)^G>>>7;var K=(K>>>1|G<<31)^(K>>>8|G<<24)^(K>>>7|G<<25),J=((G=(J=s[$-2]).high)>>>19|(Q=J.low)<<13)^(G<<3|Q>>>29)^G>>>6,Q=(Q>>>19|G<<13)^(Q<<3|G>>>29)^(Q>>>6|G<<26),Y=(G=s[$-7]).high,X=(Z=s[$-16]).high,Z=Z.low;V=(V=(V=V+Y+((G=K+G.low)>>>0<K>>>0?1:0))+J+((G+=Q)>>>0<Q>>>0?1:0))+X+((G+=Z)>>>0<Z>>>0?1:0),W.high=V,W.low=G}Y=j&D^~j&B,Z=M&U^~M&z,W=T&R^T&F^R&F;var ee=P&I^P&N^I&N,te=(K=(T>>>28|P<<4)^(T<<30|P>>>2)^(T<<25|P>>>7),J=(P>>>28|T<<4)^(P<<30|T>>>2)^(P<<25|T>>>7),(Q=o[$]).high),ne=Q.low;X=H+((j>>>14|M<<18)^(j>>>18|M<<14)^(j<<23|M>>>9))+((Q=q+((M>>>14|j<<18)^(M>>>18|j<<14)^(M<<23|j>>>9)))>>>0<q>>>0?1:0),H=B,q=z,B=D,z=U,D=j,U=M,j=O+(X=(X=(X=X+Y+((Q+=Z)>>>0<Z>>>0?1:0))+te+((Q+=ne)>>>0<ne>>>0?1:0))+V+((Q+=G)>>>0<G>>>0?1:0))+((M=L+Q|0)>>>0<L>>>0?1:0)|0,O=F,L=N,F=R,N=I,R=T,I=P,T=X+(W=K+W+((G=J+ee)>>>0<J>>>0?1:0))+((P=Q+G|0)>>>0<Q>>>0?1:0)|0}f=n.low=f+P,n.high=d+T+(f>>>0<P>>>0?1:0),m=r.low=m+I,r.high=h+R+(m>>>0<I>>>0?1:0),v=i.low=v+N,i.high=g+F+(v>>>0<N>>>0?1:0),y=a.low=y+L,a.high=b+O+(y>>>0<L>>>0?1:0),x=c.low=x+M,c.high=w+j+(x>>>0<M>>>0?1:0),_=l.low=_+U,l.high=k+D+(_>>>0<U>>>0?1:0),C=u.low=C+z,u.high=E+B+(C>>>0<z>>>0?1:0),A=p.low=A+q,p.high=S+H+(A>>>0<q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(a),t.HmacSHA512=n._createHmacHelper(a)}(),function(){var e=g,t=(i=e.x64).Word,n=i.WordArray,r=(i=e.algo).SHA512,i=i.SHA384=r.extend({_doReset:function(){this._hash=new n.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=r._createHelper(i),e.HmacSHA384=r._createHmacHelper(i)}();
|
|
432
432
|
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
|
433
433
|
*/
|
|
434
434
|
var v,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function y(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=b.charAt(n>>6)+b.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=b.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=b.charAt(n>>2)+b.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function w(e){var t,n,r,i="",a=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t)(r=b.indexOf(e.charAt(t)))<0||(0==a?(i+=A(r>>2),n=3&r,a=1):1==a?(i+=A(n<<2|r>>4),n=15&r,a=2):2==a?(i+=A(n),i+=A(r>>2),n=3&r,a=3):(i+=A(n<<2|r>>4),i+=A(15&r),a=0));return 1==a&&(i+=A(n<<2)),i}function x(e){var t,n=w(e),r=new Array;for(t=0;2*t<n.length;++t)r[t]=parseInt(n.substring(2*t,2*t+2),16);return r}function k(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function _(){return new k(null)}"Microsoft Internet Explorer"==h.appName?(k.prototype.am=function(e,t,n,r,i,a){for(var o=32767&t,s=t>>15;--a>=0;){var c=32767&this[e],l=this[e++]>>15,u=s*c+l*o;i=((c=o*c+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*l+(i>>>30),n[r++]=1073741823&c}return i},v=30):"Netscape"!=h.appName?(k.prototype.am=function(e,t,n,r,i,a){for(;--a>=0;){var o=t*this[e++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},v=26):(k.prototype.am=function(e,t,n,r,i,a){for(var o=16383&t,s=t>>14;--a>=0;){var c=16383&this[e],l=this[e++]>>14,u=s*c+l*o;i=((c=o*c+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*l,n[r++]=268435455&c}return i},v=28),k.prototype.DB=v,k.prototype.DM=(1<<v)-1,k.prototype.DV=1<<v,k.prototype.FV=Math.pow(2,52),k.prototype.F1=52-v,k.prototype.F2=2*v-52;var E,C,S=new Array;for(E="0".charCodeAt(0),C=0;C<=9;++C)S[E++]=C;for(E="a".charCodeAt(0),C=10;C<36;++C)S[E++]=C;for(E="A".charCodeAt(0),C=10;C<36;++C)S[E++]=C;function A(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function T(e,t){var n=S[e.charCodeAt(t)];return null==n?-1:n}function P(e){var t=_();return t.fromInt(e),t}function R(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function I(e){this.m=e}function F(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function N(e,t){return e&t}function O(e,t){return e|t}function L(e,t){return e^t}function j(e,t){return e&~t}function M(e){if(0==e)return-1;var t=0;return!(65535&e)&&(e>>=16,t+=16),!(255&e)&&(e>>=8,t+=8),!(15&e)&&(e>>=4,t+=4),!(3&e)&&(e>>=2,t+=2),!(1&e)&&++t,t}function D(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function U(){}function B(e){return e}function z(e){this.r2=_(),this.q3=_(),k.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}I.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},I.prototype.revert=function(e){return e},I.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},I.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},I.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},F.prototype.convert=function(e){var t=_();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(k.ZERO)>0&&this.m.subTo(t,t),t},F.prototype.revert=function(e){var t=_();return e.copyTo(t),this.reduce(t),t},F.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},F.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},F.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},k.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},k.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},k.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,a=0;--r>=0;){var o=8==n?255&e[r]:T(e,r);o<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==a?this[this.t++]=o:a+n>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,(a+=n)>=this.DB&&(a-=this.DB))}8==n&&!!(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),i&&k.ZERO.subTo(this,this)},k.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},k.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},k.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},k.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+o+1]=this[n]>>i|s,s=(this[n]&a)<<r;for(n=o-1;n>=0;--n)t[n]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},k.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,a=(1<<r)-1;t[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)t[o-n-1]|=(this[o]&a)<<i,t[o-n]=this[o]>>r;r>0&&(t[this.t-n-1]|=(this.s&a)<<i),t.t=this.t-n,t.clamp()}},k.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},k.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&k.ZERO.subTo(t,t)},k.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},k.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=_());var a=_(),o=this.s,s=e.s,c=this.DB-R(r[r.t-1]);c>0?(r.lShiftTo(c,a),i.lShiftTo(c,n)):(r.copyTo(a),i.copyTo(n));var l=a.t,u=a[l-1];if(0!=u){var p=u*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),d=this.FV/p,f=(1<<this.F1)/p,h=1<<this.F2,m=n.t,g=m-l,v=null==t?_():t;for(a.dlShiftTo(g,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),k.ONE.dlShiftTo(l,v),v.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--g>=0;){var b=n[--m]==u?this.DM:Math.floor(n[m]*d+(n[m-1]+h)*f);if((n[m]+=a.am(0,b,n,g,0,l))<b)for(a.dlShiftTo(g,v),n.subTo(v,n);n[m]<--b;)n.subTo(v,n)}null!=t&&(n.drShiftTo(l,t),o!=s&&k.ZERO.subTo(t,t)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),o<0&&k.ZERO.subTo(n,n)}}},k.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},k.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},k.prototype.exp=function(e,t){if(e>4294967295||e<1)return k.ONE;var n=_(),r=_(),i=t.convert(this),a=R(e)-1;for(i.copyTo(n);--a>=0;)if(t.sqrTo(n,r),(e&1<<a)>0)t.mulTo(r,i,n);else{var o=n;n=r,r=o}return t.revert(n)},k.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%t;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=A(n));o>=0;)s<t?(n=(this[o]&(1<<s)-1)<<t-s,n|=this[--o]>>(s+=this.DB-t)):(n=this[o]>>(s-=t)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=A(n));return i?a:"0"},k.prototype.negate=function(){var e=_();return k.ZERO.subTo(this,e),e},k.prototype.abs=function(){return this.s<0?this.negate():this},k.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},k.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+R(this[this.t-1]^this.s&this.DM)},k.prototype.mod=function(e){var t=_();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(k.ZERO)>0&&e.subTo(t,t),t},k.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new I(t):new F(t),this.exp(e,n)},k.ZERO=P(0),k.ONE=P(1),U.prototype.convert=B,U.prototype.revert=B,U.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},U.prototype.sqrTo=function(e,t){e.squareTo(t)},z.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=_();return e.copyTo(t),this.reduce(t),t},z.prototype.revert=function(e){return e},z.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},z.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},z.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var H,q,$,W=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/W[W.length-1];
|
|
@@ -458,5 +458,5 @@ var se=function(){var e=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?
|
|
|
458
458
|
*/
|
|
459
459
|
var r=n(30),i=n(31),a=n(32);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var p=!0,d=0;d<c;d++)if(l(e,a+d)!==l(t,d)){p=!1;break}if(p)return a}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function w(e,t,n,r){return q(z(t,e.length-n),e,n,r)}function x(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return x(e,t,n,r)}function _(e,t,n,r){return q(H(t),e,n,r)}function E(e,t,n,r){return q(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,l=e[i],u=null,p=l>239?4:l>223?3:l>191?2:1;if(i+p<=n)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=p}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),p=0;p<s;++p)if(l[p]!==u[p]){a=l[p],o=u[p];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=B(e[a]);return i}function I(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function F(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function j(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,a){return a||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,a){return a||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=c.isBuffer(e)?e:z(new c(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(29))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,p=s>0?o-4:o;for(n=0;n<p;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,c=n-i;s<c;s+=o)a.push(l(e,s,s+o>c?c:s+o));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
|
|
460
460
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
461
|
-
t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,p=n?i-1:0,d=n?-1:1,f=e[t+p];for(p+=d,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+p],p+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+p],p+=d,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=l}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,p=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+p>=1?d/c:d*Math.pow(2,1-p))*c>=2&&(o++,c/=2),o+p>=u?(s=0,o=u):o+p>=1?(s=(t*c-1)*Math.pow(2,i),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+f]=255&o,f+=h,o/=256,l-=8);e[n+f-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.jws,n=e.KeyUtil,i=e.X509,a=e.crypto,o=e.hextob64u,s=e.b64tohex,c=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.parseJwt=function e(n){r.Log.debug("JoseUtil.parseJwt");try{var i=t.JWS.parse(n);return{header:i.headerObj,payload:i.payloadObj}}catch(e){r.Log.error(e)}},e.validateJwt=function(t,a,o,c,l,u,p){r.Log.debug("JoseUtil.validateJwt");try{if("RSA"===a.kty)if(a.e&&a.n)a=n.getKey(a);else{if(!a.x5c||!a.x5c.length)return r.Log.error("JoseUtil.validateJwt: RSA key missing key material",a),Promise.reject(new Error("RSA key missing key material"));var d=s(a.x5c[0]);a=i.getPublicKeyFromCertHex(d)}else{if("EC"!==a.kty)return r.Log.error("JoseUtil.validateJwt: Unsupported key type",a&&a.kty),Promise.reject(new Error(a.kty));if(!(a.crv&&a.x&&a.y))return r.Log.error("JoseUtil.validateJwt: EC key missing key material",a),Promise.reject(new Error("EC key missing key material"));a=n.getKey(a)}return e._validateJwt(t,a,o,c,l,u,p)}catch(e){return r.Log.error(e&&e.message||e),Promise.reject("JWT validation failed")}},e.validateJwtAttributes=function(t,n,i,a,o,s){a||(a=0),o||(o=parseInt(Date.now()/1e3));var c=e.parseJwt(t).payload;if(!c.iss)return r.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==n)return r.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return r.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===i||Array.isArray(c.aud)&&c.aud.indexOf(i)>=0))return r.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==i)return r.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!s){var l=o+a,u=o-a;if(!c.iat)return r.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(l<c.iat)return r.Log.error("JoseUtil._validateJwt: iat is in the future",c.iat),Promise.reject(new Error("iat is in the future: "+c.iat));if(c.nbf&&l<c.nbf)return r.Log.error("JoseUtil._validateJwt: nbf is in the future",c.nbf),Promise.reject(new Error("nbf is in the future: "+c.nbf));if(!c.exp)return r.Log.error("JoseUtil._validateJwt: exp was not provided"),Promise.reject(new Error("exp was not provided"));if(c.exp<u)return r.Log.error("JoseUtil._validateJwt: exp is in the past",c.exp),Promise.reject(new Error("exp is in the past:"+c.exp))}return Promise.resolve(c)},e._validateJwt=function(n,i,a,o,s,l,u){return e.validateJwtAttributes(n,a,o,s,l,u).then(function(e){try{return t.JWS.verify(n,i,c)?e:(r.Log.error("JoseUtil._validateJwt: signature validation failed"),Promise.reject(new Error("signature validation failed")))}catch(e){return r.Log.error(e&&e.message||e),Promise.reject(new Error("signature validation failed"))}})},e.hashString=function e(t,n){try{return a.Util.hashString(t,n)}catch(e){r.Log.error(e)}},e.hexToBase64Url=function e(t){try{return o(t)}catch(e){r.Log.error(e)}},e}()};var r=n(0);e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SigninResponse=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(3);t.SigninResponse=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.UrlUtility.parseUrlFragment(t,n);this.error=r.error,this.error_description=r.error_description,this.error_uri=r.error_uri,this.code=r.code,this.state=r.state,this.id_token=r.id_token,this.session_state=r.session_state,this.access_token=r.access_token,this.token_type=r.token_type,this.scope=r.scope,this.profile=void 0,this.expires_in=r.expires_in}return r(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutRequest=void 0;var r=n(0),i=n(3),a=n(9);t.SignoutRequest=function e(t){var n=t.url,o=t.id_token_hint,s=t.post_logout_redirect_uri,c=t.data,l=t.extraQueryParams,u=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var p in o&&(n=i.UrlUtility.addQueryParam(n,"id_token_hint",o)),s&&(n=i.UrlUtility.addQueryParam(n,"post_logout_redirect_uri",s),c&&(this.state=new a.State({data:c,request_type:u}),n=i.UrlUtility.addQueryParam(n,"state",this.state.id))),l)n=i.UrlUtility.addQueryParam(n,p,l[p]);this.url=n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutResponse=void 0;var r=n(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=r.UrlUtility.parseUrlFragment(t,"?");this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.state=n.state}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryWebStorage=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.InMemoryWebStorage=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data={}}return e.prototype.getItem=function(e){return i.Log.debug("InMemoryWebStorage.getItem",e),this._data[e]},e.prototype.setItem=function(e,t){i.Log.debug("InMemoryWebStorage.setItem",e),this._data[e]=t},e.prototype.removeItem=function(e){i.Log.debug("InMemoryWebStorage.removeItem",e),delete this._data[e]},e.prototype.key=function(e){return Object.getOwnPropertyNames(this._data)[e]},r(e,[{key:"length",get:function(){return Object.getOwnPropertyNames(this._data).length}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManager=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(10),o=n(39),s=n(15),c=n(45),l=n(47),u=n(18),p=n(8),d=n(20),f=n(11),h=n(4);t.UserManager=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SilentRenewService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.TokenClient,m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h.JoseUtil;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),n instanceof o.UserManagerSettings||(n=new o.UserManagerSettings(n));var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return g._events=new c.UserManagerEvents(n),g._silentRenewService=new r(g),g.settings.automaticSilentRenew&&(i.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),g.startSilentRenew()),g.settings.monitorSession&&(i.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),g._sessionMonitor=new a(g)),g._tokenRevocationClient=new s(g._settings),g._tokenClient=new p(g._settings),g._joseUtil=m,g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then(function(t){return t?(i.Log.info("UserManager.getUser: user loaded"),e._events.load(t,!1),t):(i.Log.info("UserManager.getUser: user not found in storage"),null)})},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then(function(){i.Log.info("UserManager.removeUser: user removed from storage"),e._events.unload()})},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:r";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then(function(){i.Log.info("UserManager.signinRedirect: successful")})},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then(function(e){return e.profile&&e.profile.sub?i.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinRedirectCallback: no sub"),e})},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:p";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display="popup",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopup: no sub")),e})):(i.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopupCallback: no sub")),e}).catch(function(e){i.Log.error(e.message)})},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},t),this._loadUser().then(function(n){return n&&n.refresh_token?(t.refresh_token=n.refresh_token,e._useRefreshToken(t)):(t.request_type="si:s",t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&n&&n.id_token,n&&e._settings.validateSubOnSilentRenew&&(i.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",n.profile.sub),t.current_sub=n.profile.sub),e._signinSilentIframe(t))})},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then(function(t){return t?t.access_token?e._loadUser().then(function(n){if(n){var r=Promise.resolve();return t.id_token&&(r=e._validateIdTokenFromTokenRefreshToken(n.profile,t.id_token)),r.then(function(){return i.Log.debug("UserManager._useRefreshToken: refresh token response success"),n.id_token=t.id_token||n.id_token,n.access_token=t.access_token,n.refresh_token=t.refresh_token||n.refresh_token,n.expires_in=t.expires_in,e.storeUser(n).then(function(){return e._events.load(n),n})})}return null}):(i.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(i.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var n=this;return this._metadataService.getIssuer().then(function(r){return n.settings.getEpochTime().then(function(a){return n._joseUtil.validateJwtAttributes(t,r,n._settings.client_id,n._settings.clockSkew,a).then(function(t){return t?t.sub!==e.sub?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):t.auth_time&&t.auth_time!==e.auth_time?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):t.azp&&t.azp!==e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!t.azp&&e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})})},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||"none",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilent: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilent: no sub")),e})):(i.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilentCallback: no sub")),e})},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then(function(n){var r=n.state;return n.response,"si:r"===r.request_type?t.signinRedirectCallback(e):"si:p"===r.request_type?t.signinPopupCallback(e):"si:s"===r.request_type?t.signinSilentCallback(e):Promise.reject(new Error("invalid response_type in state"))})},t.prototype.signoutCallback=function(e,t){var n=this;return this.readSignoutResponseState(e).then(function(r){var i=r.state,a=r.response;return i?"so:r"===i.request_type?n.signoutRedirectCallback(e):"so:p"===i.request_type?n.signoutPopupCallback(e,t):Promise.reject(new Error("invalid response_type in state")):a})},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:s";var n=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return n?(t.redirect_uri=n,t.prompt="none",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||"openid",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:n,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return e.processSigninResponse(t.url).then(function(e){if(i.Log.debug("UserManager.querySessionStatus: got signin response"),e.session_state&&e.profile.sub)return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};i.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&("login_required"==t.message||"consent_required"==t.message||"interaction_required"==t.message||"account_selection_required"==t.message))return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:t.session_state};throw t})})):(i.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype._signin=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,r).then(function(t){return n._signinEnd(t.url,e)})},t.prototype._signinStart=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(r).then(function(t){return i.Log.debug("UserManager._signinStart: got navigator window handle"),n.createSigninRequest(e).then(function(e){return i.Log.debug("UserManager._signinStart: got signin request"),r.url=e.url,r.id=e.state.id,t.navigate(r)}).catch(function(e){throw t.close&&(i.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),t.close()),e})})},t.prototype._signinEnd=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then(function(e){i.Log.debug("UserManager._signinEnd: got signin response");var r=new s.User(e);if(n.current_sub){if(n.current_sub!==r.profile.sub)return i.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",r.profile.sub),Promise.reject(new Error("login_required"));i.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return t.storeUser(r).then(function(){return i.Log.debug("UserManager._signinEnd: user stored"),t._events.load(r),r})})},t.prototype._signinCallback=function(e,t){i.Log.debug("UserManager._signinCallback");var n="query"===this._settings.response_mode||!this._settings.response_mode&&p.SigninRequest.isCode(this._settings.response_type)?"?":"#";return t.callback(e,void 0,n)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:r";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var n={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,n).then(function(){i.Log.info("UserManager.signoutRedirect: successful")})},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then(function(e){return i.Log.info("UserManager.signoutRedirectCallback: successful"),e})},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:p";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display="popup",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){i.Log.info("UserManager.signoutPopup: successful")})},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&"boolean"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,"?").then(function(){i.Log.info("UserManager.signoutPopupCallback: successful")})},t.prototype._signout=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,r).then(function(e){return n._signoutEnd(e.url)})},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return arguments[1].prepare(n).then(function(r){return i.Log.debug("UserManager._signoutStart: got navigator window handle"),t._loadUser().then(function(a){return i.Log.debug("UserManager._signoutStart: loaded current user from storage"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(a):Promise.resolve()).then(function(){var o=e.id_token_hint||a&&a.id_token;return o&&(i.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),e.id_token_hint=o),t.removeUser().then(function(){return i.Log.debug("UserManager._signoutStart: user removed, creating signout request"),t.createSignoutRequest(e).then(function(e){return i.Log.debug("UserManager._signoutStart: got signout request"),n.url=e.url,e.state&&(n.id=e.state.id),r.navigate(n)})})})}).catch(function(e){throw r.close&&(i.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),r.close()),e})})},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then(function(e){return i.Log.debug("UserManager._signoutEnd: got signout response"),e})},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then(function(t){return e._revokeInternal(t,!0).then(function(n){if(n)return i.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then(function(){i.Log.debug("UserManager.revokeAccessToken: user stored"),e._events.load(t)})})}).then(function(){i.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},t.prototype._revokeInternal=function(e,t){var n=this;if(e){var r=e.access_token,a=e.refresh_token;return this._revokeAccessTokenInternal(r,t).then(function(e){return n._revokeRefreshTokenInternal(a,t).then(function(t){return e||t||i.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),e||t})})}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then(function(){return!0})},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(e){return e?(i.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(e)):(i.Log.debug("UserManager._loadUser: no user storageString"),null)})},t.prototype.storeUser=function(e){if(e){i.Log.debug("UserManager.storeUser: storing user");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return i.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},r(t,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),t}(a.OidcClient)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerSettings=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(n(0),n(5)),a=n(40),o=n(41),s=n(43),c=n(6),l=n(1),u=n(8);t.UserManagerSettings=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.popup_redirect_uri,i=n.popup_post_logout_redirect_uri,p=n.popupWindowFeatures,d=n.popupWindowTarget,f=n.silent_redirect_uri,h=n.silentRequestTimeout,m=n.automaticSilentRenew,g=void 0!==m&&m,v=n.validateSubOnSilentRenew,b=void 0!==v&&v,y=n.includeIdTokenInSilentRenew,w=void 0===y||y,x=n.monitorSession,k=void 0===x||x,_=n.monitorAnonymousSession,E=void 0!==_&&_,C=n.checkSessionInterval,S=void 0===C?2e3:C,A=n.stopCheckSessionOnError,T=void 0===A||A,P=n.query_status_response_type,R=n.revokeAccessTokenOnSignout,I=void 0!==R&&R,F=n.accessTokenExpiringNotificationTime,N=void 0===F?60:F,O=n.redirectNavigator,L=void 0===O?new a.RedirectNavigator:O,j=n.popupNavigator,M=void 0===j?new o.PopupNavigator:j,D=n.iframeNavigator,U=void 0===D?new s.IFrameNavigator:D,B=n.userStore,z=void 0===B?new c.WebStorageStateStore({store:l.Global.sessionStorage}):B;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var H=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));return H._popup_redirect_uri=r,H._popup_post_logout_redirect_uri=i,H._popupWindowFeatures=p,H._popupWindowTarget=d,H._silent_redirect_uri=f,H._silentRequestTimeout=h,H._automaticSilentRenew=g,H._validateSubOnSilentRenew=b,H._includeIdTokenInSilentRenew=w,H._accessTokenExpiringNotificationTime=N,H._monitorSession=k,H._monitorAnonymousSession=E,H._checkSessionInterval=S,H._stopCheckSessionOnError=T,P?H._query_status_response_type=P:arguments[0]&&arguments[0].response_type?H._query_status_response_type=u.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":H._query_status_response_type="id_token",H._revokeAccessTokenOnSignout=I,H._redirectNavigator=L,H._popupNavigator=M,H._iframeNavigator=U,H._userStore=z,H}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),t}(i.OidcClientSettings)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectNavigator=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.RedirectNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(){return Promise.resolve(this)},e.prototype.navigate=function(e){return e&&e.url?(e.useReplaceToNavigate?window.location.replace(e.url):window.location=e.url,Promise.resolve()):(i.Log.error("RedirectNavigator.navigate: No url provided"),Promise.reject(new Error("No url provided")))},r(e,[{key:"url",get:function(){return window.location.href}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopupNavigator=void 0;var r=n(0),i=n(42);t.PopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.PopupWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t,n,a){r.Log.debug("PopupNavigator.callback");try{return i.PopupWindow.notifyOpener(t,n,a),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopupWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(3);t.PopupWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t});var r=t.popupWindowTarget||"_blank",a=t.popupWindowFeatures||"location=no,toolbar=no,width=500,height=500,left=100,top=100;";this._popup=window.open("",r,a),this._popup&&(i.Log.debug("PopupWindow.ctor: popup successfully created"),this._checkForPopupClosedTimer=window.setInterval(this._checkForPopupClosed.bind(this),500))}return e.prototype.navigate=function(e){return this._popup?e&&e.url?(i.Log.debug("PopupWindow.navigate: Setting URL in popup"),this._id=e.id,this._id&&(window["popupCallback_"+e.id]=this._callback.bind(this)),this._popup.focus(),this._popup.window.location=e.url):(this._error("PopupWindow.navigate: no url provided"),this._error("No url provided")):this._error("PopupWindow.navigate: Error opening popup window"),this.promise},e.prototype._success=function(e){i.Log.debug("PopupWindow.callback: Successful response from popup window"),this._cleanup(),this._resolve(e)},e.prototype._error=function(e){i.Log.error("PopupWindow.error: ",e),this._cleanup(),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup(!1)},e.prototype._cleanup=function(e){i.Log.debug("PopupWindow.cleanup"),window.clearInterval(this._checkForPopupClosedTimer),this._checkForPopupClosedTimer=null,delete window["popupCallback_"+this._id],this._popup&&!e&&this._popup.close(),this._popup=null},e.prototype._checkForPopupClosed=function(){this._popup&&!this._popup.closed||this._error("Popup window closed")},e.prototype._callback=function(e,t){this._cleanup(t),e?(i.Log.debug("PopupWindow.callback success"),this._success({url:e})):(i.Log.debug("PopupWindow.callback: Invalid response from popup"),this._error("Invalid response from popup"))},e.notifyOpener=function(e,t,n){if(window.opener){if(e=e||window.location.href){var r=a.UrlUtility.parseUrlFragment(e,n);if(r.state){var o="popupCallback_"+r.state,s=window.opener[o];s?(i.Log.debug("PopupWindow.notifyOpener: passing url message to opener"),s(e,t)):i.Log.warn("PopupWindow.notifyOpener: no matching callback found on opener")}else i.Log.warn("PopupWindow.notifyOpener: no state found in response url")}}else i.Log.warn("PopupWindow.notifyOpener: no window.opener. Can't complete notification.")},r(e,[{key:"promise",get:function(){return this._promise}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameNavigator=void 0;var r=n(0),i=n(44);t.IFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.IFrameWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t){r.Log.debug("IFrameNavigator.callback");try{return i.IFrameWindow.notifyParent(t),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.IFrameWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t}),this._boundMessageEvent=this._message.bind(this),window.addEventListener("message",this._boundMessageEvent,!1),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.width=0,this._frame.height=0,window.document.body.appendChild(this._frame)}return e.prototype.navigate=function(e){if(e&&e.url){var t=e.silentRequestTimeout||1e4;i.Log.debug("IFrameWindow.navigate: Using timeout of:",t),this._timer=window.setTimeout(this._timeout.bind(this),t),this._frame.src=e.url}else this._error("No url provided");return this.promise},e.prototype._success=function(e){this._cleanup(),i.Log.debug("IFrameWindow: Successful response from frame window"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._frame&&(i.Log.debug("IFrameWindow: cleanup"),window.removeEventListener("message",this._boundMessageEvent,!1),window.clearTimeout(this._timer),window.document.body.removeChild(this._frame),this._timer=null,this._frame=null,this._boundMessageEvent=null)},e.prototype._timeout=function(){i.Log.debug("IFrameWindow.timeout"),this._error("Frame window timed out")},e.prototype._message=function(e){if(i.Log.debug("IFrameWindow.message"),this._timer&&e.origin===this._origin&&e.source===this._frame.contentWindow&&"string"==typeof e.data&&(e.data.startsWith("http://")||e.data.startsWith("https://"))){var t=e.data;t?this._success({url:t}):this._error("Invalid response from frame")}},e.notifyParent=function(e){i.Log.debug("IFrameWindow.notifyParent"),(e=e||window.location.href)&&(i.Log.debug("IFrameWindow.notifyParent: posting url message to parent"),window.parent.postMessage(e,location.protocol+"//"+location.host))},r(e,[{key:"promise",get:function(){return this._promise}},{key:"_origin",get:function(){return location.protocol+"//"+location.host}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerEvents=void 0;var r=n(0),i=n(16),a=n(17);t.UserManagerEvents=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._userLoaded=new a.Event("User loaded"),r._userUnloaded=new a.Event("User unloaded"),r._silentRenewError=new a.Event("Silent renew error"),r._userSignedIn=new a.Event("User signed in"),r._userSignedOut=new a.Event("User signed out"),r._userSessionChanged=new a.Event("User session changed"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.load=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r.Log.debug("UserManagerEvents.load"),e.prototype.load.call(this,t),n&&this._userLoaded.raise(t)},t.prototype.unload=function(){r.Log.debug("UserManagerEvents.unload"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){r.Log.debug("UserManagerEvents._raiseSilentRenewError",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){r.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){r.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){r.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},t}(i.AccessTokenEvents)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(1),o=n(17);t.Timer=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Global.timer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return o._timer=r,o._nowFunc=i||function(){return Date.now()/1e3},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)i.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),i.Log.debug("Timer.init timer "+this._name+" for duration:",e),this._expiration=t;var n=5;e<n&&(n=e),this._timerHandle=this._timer.setInterval(this._callback.bind(this),1e3*n)}},t.prototype.cancel=function(){this._timerHandle&&(i.Log.debug("Timer.cancel: ",this._name),this._timer.clearInterval(this._timerHandle),this._timerHandle=null)},t.prototype._callback=function(){var t=this._expiration-this.now;i.Log.debug("Timer.callback; "+this._name+" timer expires in:",t),this._expiration<=this.now&&(this.cancel(),e.prototype.raise.call(this))},r(t,[{key:"now",get:function(){return parseInt(this._nowFunc())}},{key:"expiration",get:function(){return this._expiration}}]),t}(o.Event)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SilentRenewService=void 0;var r=n(0);t.SilentRenewService=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._userManager=t}return e.prototype.start=function(){this._callback||(this._callback=this._tokenExpiring.bind(this),this._userManager.events.addAccessTokenExpiring(this._callback),this._userManager.getUser().then(function(e){}).catch(function(e){r.Log.error("SilentRenewService.start: Error from getUser:",e.message)}))},e.prototype.stop=function(){this._callback&&(this._userManager.events.removeAccessTokenExpiring(this._callback),delete this._callback)},e.prototype._tokenExpiring=function(){var e=this;this._userManager.signinSilent().then(function(e){r.Log.debug("SilentRenewService._tokenExpiring: Silent token renewal successful")},function(t){r.Log.error("SilentRenewService._tokenExpiring: Error from signinSilent:",t.message),e._userManager.events._raiseSilentRenewError(t)})},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupNavigator=void 0;var r=n(21);t.CordovaPopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaIFrameNavigator=void 0;var r=n(21);t.CordovaIFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){e.popupWindowFeatures="hidden=yes";var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Version="1.11.6"}])},e.exports=t()},7(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,a,o;if(s(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=c(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,console&&console.warn}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=a[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,a,o;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},386(e){const t={acl:"http://www.w3.org/ns/auth/acl#",arg:"http://www.w3.org/ns/pim/arg#",as:"https://www.w3.org/ns/activitystreams#",bookmark:"http://www.w3.org/2002/01/bookmark#",cal:"http://www.w3.org/2002/12/cal/ical#",cco:"http://www.ontologyrepository.com/CommonCoreOntologies/",cert:"http://www.w3.org/ns/auth/cert#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",doap:"http://usefulinc.com/ns/doap#",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",gpx:"http://www.w3.org/ns/pim/gpx#",gr:"http://purl.org/goodrelations/v1#",http:"http://www.w3.org/2007/ont/http#",httph:"http://www.w3.org/2007/ont/httph#",icalTZ:"http://www.w3.org/2002/12/cal/icaltzd#",ldp:"http://www.w3.org/ns/ldp#",link:"http://www.w3.org/2007/ont/link#",log:"http://www.w3.org/2000/10/swap/log#",meeting:"http://www.w3.org/ns/pim/meeting#",mo:"http://purl.org/ontology/mo/",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pad:"http://www.w3.org/ns/pim/pad#",patch:"http://www.w3.org/ns/pim/patch#",prov:"http://www.w3.org/ns/prov#",pto:"http://www.productontology.org/id/",qu:"http://www.w3.org/2000/10/swap/pim/qif#",trip:"http://www.w3.org/ns/pim/trip#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rss:"http://purl.org/rss/1.0/",sched:"http://www.w3.org/ns/pim/schedule#",schema:"http://schema.org/",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",solid:"http://www.w3.org/ns/solid/terms#",space:"http://www.w3.org/ns/pim/space#",stat:"http://www.w3.org/ns/posix/stat#",tab:"http://www.w3.org/2007/ont/link#",tabont:"http://www.w3.org/2007/ont/link#",ui:"http://www.w3.org/ns/ui#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",wf:"http://www.w3.org/2005/01/wf/flow#",xsd:"http://www.w3.org/2001/XMLSchema#"};e.exports=function(e={namedNode:e=>e}){const n={};for(const r in t){const i=t[r];n[r]=function(t=""){return e.namedNode(i+t)}}return n}}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e].call(n.exports,n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const s=new TextEncoder,c=new TextDecoder;function l(...e){const t=e.reduce((e,{length:t})=>e+t,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}const u=e=>(e=>{let t=e;"string"==typeof t&&(t=s.encode(t));const n=[];for(let e=0;e<t.length;e+=32768)n.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(n.join(""))})(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),p=e=>{let t=e;t instanceof Uint8Array&&(t=c.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(e=>{const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n})(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class d extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}d.code="ERR_JOSE_GENERIC";class f extends d{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=t}}f.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class h extends d{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=t}}h.code="ERR_JWT_EXPIRED";class m extends d{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}m.code="ERR_JOSE_ALG_NOT_ALLOWED";class g extends d{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}g.code="ERR_JOSE_NOT_SUPPORTED";(class extends d{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}).code="ERR_JWE_DECRYPTION_FAILED";(class extends d{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}).code="ERR_JWE_INVALID";class v extends d{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}v.code="ERR_JWS_INVALID";class b extends d{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}b.code="ERR_JWT_INVALID";(class extends d{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}).code="ERR_JWK_INVALID";class y extends d{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}y.code="ERR_JWKS_INVALID";class w extends d{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}w.code="ERR_JWKS_NO_MATCHING_KEY";class x extends d{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Symbol.asyncIterator,x.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class k extends d{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}k.code="ERR_JWKS_TIMEOUT";class _ extends d{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function E(e,t){const n=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new g(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}_.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";const C=crypto,S=e=>e instanceof CryptoKey,A=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if("number"!=typeof n||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function T(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function P(e,t){return e.name===t}function R(e){return parseInt(e.name.slice(4),10)}function I(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();e+=`one of ${t.join(", ")}, or ${n}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw new TypeError(e)}}function F(e,t,...n){switch(t){case"HS256":case"HS384":case"HS512":{if(!P(e.algorithm,"HMAC"))throw T("HMAC");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw T(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!P(e.algorithm,"RSASSA-PKCS1-v1_5"))throw T("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw T(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!P(e.algorithm,"RSA-PSS"))throw T("RSA-PSS");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw T(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw T("Ed25519 or Ed448");break;case"Ed25519":if(!P(e.algorithm,"Ed25519"))throw T("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!P(e.algorithm,"ECDSA"))throw T("ECDSA");const n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw T(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}I(e,n)}function N(e,t,...n){if((n=n.filter(Boolean)).length>2){const t=n.pop();e+=`one of type ${n.join(", ")}, or ${t}.`}else 2===n.length?e+=`one of type ${n[0]} or ${n[1]}.`:e+=`of type ${n[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}const O=(e,...t)=>N("Key must be ",e,...t);function L(e,t,...n){return N(`Key for the ${e} algorithm must be `,t,...n)}const j=e=>!!S(e)||"KeyObject"===e?.[Symbol.toStringTag],M=["CryptoKey"];function D(e){if("object"!=typeof(t=e)||null===t||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function U(e){return D(e)&&"string"==typeof e.kty}const B=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:n}=function(e){let t,n;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},n=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new g('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},n=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},n=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new g('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"Ed25519":t={name:"Ed25519"},n=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new g('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new g('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:n}}(e),r=[t,e.ext??!1,e.key_ops??n],i={...e};return delete i.alg,delete i.use,C.subtle.importKey("jwk",i,...r)},z=e=>p(e);let H,q;const $=e=>"KeyObject"===e?.[Symbol.toStringTag],W=async(e,t,n,r,i=!1)=>{let a=e.get(t);if(a?.[r])return a[r];const o=await B({...n,alg:r});return i&&Object.freeze(t),a?a[r]=o:e.set(t,{[r]:o}),o},V=(e,t)=>{if($(e)){let n=e.export({format:"jwk"});return delete n.d,delete n.dp,delete n.dq,delete n.p,delete n.q,delete n.qi,n.k?z(n.k):(q||(q=new WeakMap),W(q,e,n,t))}if(U(e)){if(e.k)return p(e.k);q||(q=new WeakMap);return W(q,e,e,t,!0)}return e},G=(e,t)=>{if($(e)){let n=e.export({format:"jwk"});return n.k?z(n.k):(H||(H=new WeakMap),W(H,e,n,t))}if(U(e)){if(e.k)return p(e.k);H||(H=new WeakMap);return W(H,e,e,t,!0)}return e};async function K(e,t,n){if("sign"===n&&(t=await G(t,e)),"verify"===n&&(t=await V(t,e)),S(t))return F(t,e,n),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(O(t,...M));return C.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError(O(t,...M,"Uint8Array","JSON Web Key"))}const J=async(e,t,n,r)=>{const i=await K(e,t,"verify");A(e,i);const a=E(e,i.algorithm);try{return await C.subtle.verify(a,i,n,r)}catch{return!1}},Q=(...e)=>{const t=e.filter(Boolean);if(0===t.length||1===t.length)return!0;let n;for(const e of t){const t=Object.keys(e);if(n&&0!==n.size)for(const e of t){if(n.has(e))return!1;n.add(e)}else n=new Set(t)}return!0},Y=e=>e?.[Symbol.toStringTag],X=(e,t,n)=>{if(void 0!==t.use&&"sig"!==t.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&!0!==t.key_ops.includes?.(n))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${n}`);if(void 0!==t.alg&&t.alg!==e)throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},Z=(e,t,n,r)=>{if(!(t instanceof Uint8Array)){if(r&&U(t)){if(function(e){return U(e)&&"oct"===e.kty&&"string"==typeof e.k}(t)&&X(e,t,n))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!j(t))throw new TypeError(L(e,t,...M,"Uint8Array",r?"JSON Web Key":null));if("secret"!==t.type)throw new TypeError(`${Y(t)} instances for symmetric algorithms must be of type "secret"`)}};function ee(e,t,n,r){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?Z(t,n,r,e):((e,t,n,r)=>{if(r&&U(t))switch(n){case"sign":if(function(e){return"oct"!==e.kty&&"string"==typeof e.d}(t)&&X(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(e){return"oct"!==e.kty&&void 0===e.d}(t)&&X(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!j(t))throw new TypeError(L(e,t,...M,r?"JSON Web Key":null));if("secret"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===n&&"public"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===n&&"public"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===n&&"private"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===n&&"private"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithm encryption must be of type "public"`)})(t,n,r,e)}ee.bind(void 0,!1);const te=ee.bind(void 0,!0);const ne=function(e,t,n,r,i){if(void 0!==i.crit&&void 0===r?.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||void 0===r.crit)return new Set;if(!Array.isArray(r.crit)||0===r.crit.length||r.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let a;a=void 0!==n?new Map([...Object.entries(n),...t.entries()]):t;for(const t of r.crit){if(!a.has(t))throw new g(`Extension Header Parameter "${t}" is not recognized`);if(void 0===i[t])throw new e(`Extension Header Parameter "${t}" is missing`);if(a.get(t)&&void 0===r[t])throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(r.crit)},re=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw new TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function ie(e,t){if(!D(e))throw new TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw new TypeError('missing "k" (Key Value) Parameter value');return p(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new g('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return B({...e,alg:t});default:throw new g('Unsupported "kty" (Key Type) Parameter value')}}async function ae(e,t,n){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new v("Compact JWS must be a string or Uint8Array");const{0:r,1:i,2:a,length:o}=e.split(".");if(3!==o)throw new v("Invalid Compact JWS");const u=await async function(e,t,n){if(!D(e))throw new v("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new v('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new v("JWS Protected Header incorrect type");if(void 0===e.payload)throw new v("JWS Payload missing");if("string"!=typeof e.signature)throw new v("JWS Signature missing or incorrect type");if(void 0!==e.header&&!D(e.header))throw new v("JWS Unprotected Header incorrect type");let r={};if(e.protected)try{const t=p(e.protected);r=JSON.parse(c.decode(t))}catch{throw new v("JWS Protected Header is invalid")}if(!Q(r,e.header))throw new v("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const i={...r,...e.header};let a=!0;if(ne(v,new Map([["b64",!0]]),n?.crit,r,i).has("b64")&&(a=r.b64,"boolean"!=typeof a))throw new v('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:o}=i;if("string"!=typeof o||!o)throw new v('JWS "alg" (Algorithm) Header Parameter missing or invalid');const u=n&&re("algorithms",n.algorithms);if(u&&!u.has(o))throw new m('"alg" (Algorithm) Header Parameter value not allowed');if(a){if("string"!=typeof e.payload)throw new v("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new v("JWS Payload must be a string or an Uint8Array instance");let d=!1;"function"==typeof t?(t=await t(r,e),d=!0,te(o,t,"verify"),U(t)&&(t=await ie(t,o))):te(o,t,"verify");const f=l(s.encode(e.protected??""),s.encode("."),"string"==typeof e.payload?s.encode(e.payload):e.payload);let h,g;try{h=p(e.signature)}catch{throw new v("Failed to base64url decode the signature")}if(!await J(o,t,h,f))throw new _;if(a)try{g=p(e.payload)}catch{throw new v("Failed to base64url decode the payload")}else g="string"==typeof e.payload?s.encode(e.payload):e.payload;const b={payload:g};return void 0!==e.protected&&(b.protectedHeader=r),void 0!==e.header&&(b.unprotectedHeader=e.header),d?{...b,key:t}:b}({payload:i,protected:r,signature:a},t,n),d={payload:u.payload,protectedHeader:u.protectedHeader};return"function"==typeof t?{...d,key:u.key}:d}const oe=e=>Math.floor(e.getTime()/1e3),se=86400,ce=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,le=e=>{const t=ce.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]);let r;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":r=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":r=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":r=Math.round(3600*n);break;case"day":case"days":case"d":r=Math.round(n*se);break;case"week":case"weeks":case"w":r=Math.round(604800*n);break;default:r=Math.round(31557600*n)}return"-"===t[1]||"ago"===t[4]?-r:r},ue=e=>e.toLowerCase().replace(/^application\//,""),pe=(e,t,n={})=>{let r;try{r=JSON.parse(c.decode(t))}catch{}if(!D(r))throw new b("JWT Claims Set must be a top-level JSON object");const{typ:i}=n;if(i&&("string"!=typeof e.typ||ue(e.typ)!==ue(i)))throw new f('unexpected "typ" JWT header value',r,"typ","check_failed");const{requiredClaims:a=[],issuer:o,subject:s,audience:l,maxTokenAge:u}=n,p=[...a];void 0!==u&&p.push("iat"),void 0!==l&&p.push("aud"),void 0!==s&&p.push("sub"),void 0!==o&&p.push("iss");for(const e of new Set(p.reverse()))if(!(e in r))throw new f(`missing required "${e}" claim`,r,e,"missing");if(o&&!(Array.isArray(o)?o:[o]).includes(r.iss))throw new f('unexpected "iss" claim value',r,"iss","check_failed");if(s&&r.sub!==s)throw new f('unexpected "sub" claim value',r,"sub","check_failed");if(l&&(d=r.aud,m="string"==typeof l?[l]:l,!("string"==typeof d?m.includes(d):Array.isArray(d)&&m.some(Set.prototype.has.bind(new Set(d))))))throw new f('unexpected "aud" claim value',r,"aud","check_failed");var d,m;let g;switch(typeof n.clockTolerance){case"string":g=le(n.clockTolerance);break;case"number":g=n.clockTolerance;break;case"undefined":g=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:v}=n,y=oe(v||new Date);if((void 0!==r.iat||u)&&"number"!=typeof r.iat)throw new f('"iat" claim must be a number',r,"iat","invalid");if(void 0!==r.nbf){if("number"!=typeof r.nbf)throw new f('"nbf" claim must be a number',r,"nbf","invalid");if(r.nbf>y+g)throw new f('"nbf" claim timestamp check failed',r,"nbf","check_failed")}if(void 0!==r.exp){if("number"!=typeof r.exp)throw new f('"exp" claim must be a number',r,"exp","invalid");if(r.exp<=y-g)throw new h('"exp" claim timestamp check failed',r,"exp","check_failed")}if(u){const e=y-r.iat;if(e-g>("number"==typeof u?u:le(u)))throw new h('"iat" claim timestamp check failed (too far in the past)',r,"iat","check_failed");if(e<0-g)throw new f('"iat" claim timestamp check failed (it should be in the past)',r,"iat","check_failed")}return r};const de=async(e,t,n)=>{let r,i,a=!1;"function"==typeof AbortController&&(r=new AbortController,i=setTimeout(()=>{a=!0,r.abort()},t));const o=await fetch(e.href,{signal:r?r.signal:void 0,redirect:"manual",headers:n.headers}).catch(e=>{if(a)throw new k;throw e});if(void 0!==i&&clearTimeout(i),200!==o.status)throw new d("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await o.json()}catch{throw new d("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function fe(e){return D(e)}function he(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class me{constructor(e){if(this._cached=new WeakMap,!function(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(fe)}(e))throw new y("JSON Web Key Set malformed");this._jwks=he(e)}async getKey(e,t){const{alg:n,kid:r}={...e,...t?.header},i=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new g('Unsupported "alg" value for a JSON Web Key Set')}}(n),a=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof r&&(t=r===e.kid),t&&"string"==typeof e.alg&&(t=n===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t)switch(n){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv;break;case"Ed25519":t="Ed25519"===e.crv;break;case"EdDSA":t="Ed25519"===e.crv||"Ed448"===e.crv}return t}),{0:o,length:s}=a;if(0===s)throw new w;if(1!==s){const e=new x,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(const e of a)try{yield await ge(t,e,n)}catch{}},e}return ge(this._cached,o,n)}}async function ge(e,t,n){const r=e.get(t)||e.set(t,{}).get(t);if(void 0===r[n]){const e=await ie({...t,ext:!0},n);if(e instanceof Uint8Array||"public"!==e.type)throw new y("JSON Web Key Set members must be public keys");r[n]=e}return r[n]}function ve(e){const t=new me(e),n=async(e,n)=>t.getKey(e,n);return Object.defineProperties(n,{jwks:{value:()=>he(t._jwks),enumerable:!0,configurable:!1,writable:!1}}),n}let be;if("undefined"==typeof navigator||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){be=`${"jose"}/${"v5.10.0"}`}const ye=Symbol();class we{constructor(e,t){if(!(e instanceof URL))throw new TypeError("url must be an instance of URL");var n,r;this._url=new URL(e.href),this._options={agent:t?.agent,headers:t?.headers},this._timeoutDuration="number"==typeof t?.timeoutDuration?t?.timeoutDuration:5e3,this._cooldownDuration="number"==typeof t?.cooldownDuration?t?.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof t?.cacheMaxAge?t?.cacheMaxAge:6e5,void 0!==t?.[ye]&&(this._cache=t?.[ye],n=t?.[ye],r=this._cacheMaxAge,"object"==typeof n&&null!==n&&"uat"in n&&"number"==typeof n.uat&&!(Date.now()-n.uat>=r)&&"jwks"in n&&D(n.jwks)&&Array.isArray(n.jwks.keys)&&Array.prototype.every.call(n.jwks.keys,D)&&(this._jwksTimestamp=this._cache.uat,this._local=ve(this._cache.jwks)))}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._local&&this.fresh()||await this.reload();try{return await this._local(e,t)}catch(n){if(n instanceof w&&!1===this.coolingDown())return await this.reload(),this._local(e,t);throw n}}async reload(){this._pendingFetch&&("undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime)&&(this._pendingFetch=void 0);const e=new Headers(this._options.headers);be&&!e.has("User-Agent")&&(e.set("User-Agent",be),this._options.headers=Object.fromEntries(e.entries())),this._pendingFetch||(this._pendingFetch=de(this._url,this._timeoutDuration,this._options).then(e=>{this._local=ve(e),this._cache&&(this._cache.uat=Date.now(),this._cache.jwks=e),this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}const xe=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:u(e)};if(!S(e))throw new TypeError(O(e,...M,"Uint8Array"));if(!e.extractable)throw new TypeError("non-extractable CryptoKey cannot be exported as a JWK");const{ext:t,key_ops:n,alg:r,use:i,...a}=await C.subtle.exportKey("jwk",e);return a};async function ke(e){return xe(e)}const _e=async(e,t,n)=>{const r=await K(e,t,"sign");A(e,r);const i=await C.subtle.sign(E(e,r.algorithm),r,n);return new Uint8Array(i)};class Ee{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){if(!this._protectedHeader&&!this._unprotectedHeader)throw new v("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!Q(this._protectedHeader,this._unprotectedHeader))throw new v("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader};let r=!0;if(ne(v,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n).has("b64")&&(r=this._protectedHeader.b64,"boolean"!=typeof r))throw new v('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:i}=n;if("string"!=typeof i||!i)throw new v('JWS "alg" (Algorithm) Header Parameter missing or invalid');te(i,e,"sign");let a,o=this._payload;r&&(o=s.encode(u(o))),a=this._protectedHeader?s.encode(u(JSON.stringify(this._protectedHeader))):s.encode("");const p=l(a,s.encode("."),o),d=await _e(i,e,p),f={signature:u(d),payload:""};return r&&(f.payload=c.decode(o)),this._unprotectedHeader&&(f.header=this._unprotectedHeader),this._protectedHeader&&(f.protected=c.decode(a)),f}}class Ce{constructor(e){this._flattened=new Ee(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const n=await this._flattened.sign(e,t);if(void 0===n.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function Se(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class Ae{constructor(e={}){if(!D(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:Se("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:Se("setNotBefore",oe(e))}:this._payload={...this._payload,nbf:oe(new Date)+le(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:Se("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:Se("setExpirationTime",oe(e))}:this._payload={...this._payload,exp:oe(new Date)+le(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:oe(new Date)}:e instanceof Date?this._payload={...this._payload,iat:Se("setIssuedAt",oe(e))}:this._payload="string"==typeof e?{...this._payload,iat:Se("setIssuedAt",oe(new Date)+le(e))}:{...this._payload,iat:Se("setIssuedAt",e)},this}}class Te extends Ae{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new Ce(s.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new b("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}function Pe(e){const t=e?.modulusLength??2048;if("number"!=typeof t||t<2048)throw new g("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return t}async function Re(e,t){return async function(e,t){let n,r;switch(e){case"PS256":case"PS384":case"PS512":n={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Pe(t)},r=["sign","verify"];break;case"RS256":case"RS384":case"RS512":n={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Pe(t)},r=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":n={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Pe(t)},r=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":n={name:"ECDSA",namedCurve:"P-256"},r=["sign","verify"];break;case"ES384":n={name:"ECDSA",namedCurve:"P-384"},r=["sign","verify"];break;case"ES512":n={name:"ECDSA",namedCurve:"P-521"},r=["sign","verify"];break;case"Ed25519":n={name:"Ed25519"},r=["sign","verify"];break;case"EdDSA":{r=["sign","verify"];const e=t?.crv??"Ed25519";switch(e){case"Ed25519":case"Ed448":n={name:e};break;default:throw new g("Invalid or unsupported crv option provided")}break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{r=["deriveKey","deriveBits"];const e=t?.crv??"P-256";switch(e){case"P-256":case"P-384":case"P-521":n={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":n={name:e};break;default:throw new g("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new g('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return C.subtle.generateKey(n,t?.extractable??!1,r)}(e,t)}const Ie={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Fe;const Ne=new Uint8Array(16);const Oe=[];for(let e=0;e<256;++e)Oe.push((e+256).toString(16).slice(1));function Le(e,t=0){return(Oe[e[t+0]]+Oe[e[t+1]]+Oe[e[t+2]]+Oe[e[t+3]]+"-"+Oe[e[t+4]]+Oe[e[t+5]]+"-"+Oe[e[t+6]]+Oe[e[t+7]]+"-"+Oe[e[t+8]]+Oe[e[t+9]]+"-"+Oe[e[t+10]]+Oe[e[t+11]]+Oe[e[t+12]]+Oe[e[t+13]]+Oe[e[t+14]]+Oe[e[t+15]]).toLowerCase()}const je=function(e,t,n){if(Ie.randomUUID&&!t&&!e)return Ie.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!Fe){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fe=crypto.getRandomValues.bind(crypto)}return Fe(Ne)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Le(r)},Me="solidClientAuthn:",De=["ES256","RS256"],Ue="error",Be="login",ze="logout",He="newRefreshToken",qe="sessionExpired",$e="sessionExtended",We="sessionRestore",Ve="timeoutSet",Ge=["openid","offline_access","webid"];class Ke{handleables;constructor(e){this.handleables=e,this.handleables=e}async getProperHandler(e){const t=await Promise.all(this.handleables.map(t=>t.canHandle(...e)));for(let e=0;e<t.length;e+=1)if(t[e])return this.handleables[e];return null}async canHandle(...e){return null!==await this.getProperHandler(e)}async handle(...e){const t=await this.getProperHandler(e);if(t)return t.handle(...e);throw new Error(`[${this.constructor.name}] cannot find a suitable handler for: ${e.map(e=>{try{return JSON.stringify(e)}catch(t){return e.toString()}}).join(", ")}`)}}async function Je(e,t,n,r){let i,a;try{const{payload:a}=await async function(e,t,n){const r=await ae(e,t,n);if(r.protectedHeader.crit?.includes("b64")&&!1===r.protectedHeader.b64)throw new b("JWTs MUST NOT use unencoded payload");const i={payload:pe(r.protectedHeader,r.payload,n),protectedHeader:r.protectedHeader};return"function"==typeof t?{...i,key:r.key}:i}(e,function(e,t){const n=new we(e,t),r=async(e,t)=>n.getKey(e,t);return Object.defineProperties(r,{coolingDown:{get:()=>n.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>n.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>n.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>!!n._pendingFetch,enumerable:!0,configurable:!1},jwks:{value:()=>n._local?.jwks(),enumerable:!0,configurable:!1,writable:!1}}),r}(new URL(t)),{issuer:n,audience:r});i=a}catch(e){throw new Error(`Token verification failed: ${e.stack}`)}if("string"==typeof i.azp&&(a=i.azp),"string"==typeof i.webid)return{webId:i.webid,clientId:a};if("string"!=typeof i.sub)throw new Error(`The token ${JSON.stringify(i)} is invalid: it has no 'webid' claim and no 'sub' claim.`);try{return new URL(i.sub),{webId:i.sub,clientId:a}}catch(e){throw new Error(`The token has no 'webid' claim, and its 'sub' claim of [${i.sub}] is invalid as a URL - error [${e}].`)}}function Qe(e){try{const t=new URL(e),n=!t.searchParams.has("code")&&!t.searchParams.has("state"),r=""===t.hash;return n&&r}catch(e){return!1}}function Ye(e){const t=new URL(e);return t.searchParams.delete("state"),t.searchParams.delete("code"),t.searchParams.delete("error"),t.searchParams.delete("error_description"),t.searchParams.delete("iss"),t}class Xe{storageUtility;redirector;constructor(e,t){this.storageUtility=e,this.redirector=t,this.storageUtility=e,this.redirector=t}parametersGuard=e=>void 0!==e.issuerConfiguration.grantTypesSupported&&e.issuerConfiguration.grantTypesSupported.indexOf("authorization_code")>-1&&void 0!==e.redirectUrl;async canHandle(e){return this.parametersGuard(e)}async setupRedirectHandler({oidcLoginOptions:e,state:t,codeVerifier:n,targetUrl:r}){if(!this.parametersGuard(e))throw new Error("The authorization code grant requires a redirectUrl.");var i,a;await Promise.all([this.storageUtility.setForUser(t,{sessionId:e.sessionId}),this.storageUtility.setForUser(e.sessionId,{codeVerifier:n,issuer:e.issuer.toString(),redirectUrl:e.redirectUrl,dpop:Boolean(e.dpop).toString(),keepAlive:(i=e.keepAlive,a=!0,"boolean"==typeof i?Boolean(i):Boolean(a)).toString()})]),this.redirector.redirect(r,{handleRedirect:e.handleRedirect})}}class Ze{sessionInfoManager;constructor(e){this.sessionInfoManager=e,this.sessionInfoManager=e}async canHandle(){return!0}async handle(e){await this.sessionInfoManager.clear(e)}}class et{redirector;constructor(e){this.redirector=e,this.redirector=e}async canHandle(e,t){return"idp"===t?.logoutType}async handle(e,t){if("idp"!==t?.logoutType)throw new Error("Attempting to call idp logout handler to perform app logout");if(void 0===t.toLogoutUrl)throw new Error("Cannot perform IDP logout. Did you log in using the OIDC authentication flow?");this.redirector.redirect(t.toLogoutUrl(t),{handleRedirect:t.handleRedirect})}}class tt{handlers;constructor(e,t){this.handlers=[new Ze(e),new et(t)]}async canHandle(){return!0}async handle(e,t){for(const n of this.handlers)await n.canHandle(e,t)&&await n.handle(e,t)}}function nt(){return{isLoggedIn:!1,sessionId:je(),fetch:(...e)=>fetch(...e)}}async function rt(e,t){await Promise.all([t.deleteAllUserData(e,{secure:!1}),t.deleteAllUserData(e,{secure:!0})])}class it{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}update(e,t){throw new Error("Not Implemented")}set(e,t){throw new Error("Not Implemented")}get(e){throw new Error("Not implemented")}async getAll(){throw new Error("Not implemented")}async clear(e){return rt(e,this.storageUtility)}async register(e){throw new Error("Not implemented")}async getRegisteredSessionIdAll(){throw new Error("Not implemented")}async clearAll(){throw new Error("Not implemented")}async setOidcContext(e,t){throw new Error("Not implemented")}}function at({endSessionEndpoint:e,idTokenHint:t}){if(void 0!==e)return function({state:n,postLogoutUrl:r}){return function({endSessionEndpoint:e,idTokenHint:t,postLogoutRedirectUri:n,state:r}){const i=new URL(e);return void 0!==t&&i.searchParams.append("id_token_hint",t),void 0!==n&&(i.searchParams.append("post_logout_redirect_uri",n),void 0!==r&&i.searchParams.append("state",r)),i.toString()}({endSessionEndpoint:e,idTokenHint:t,state:n,postLogoutRedirectUri:r})}}function ot(e){try{return new URL(e),!0}catch{return!1}}async function st(e,t,n,r){let i;if(function(e,t){return t.scopesSupported.includes("webid")&&void 0!==e.clientId&&ot(e.clientId)}(e,t))i={clientId:e.clientId,clientName:e.clientName,clientType:"solid-oidc"};else{if(!function(e){return void 0!==e.clientId&&!ot(e.clientId)}(e))return r.getClient({sessionId:e.sessionId,clientName:e.clientName,redirectUrl:e.redirectUrl},t);i={clientId:e.clientId,clientSecret:e.clientSecret,clientName:e.clientName,clientType:"static"}}const a={clientId:i.clientId,clientType:i.clientType};return"static"===i.clientType&&(a.clientSecret=i.clientSecret),i.clientName&&(a.clientName=i.clientName),await n.setForUser(e.sessionId,a),i}const ct=(e,t)=>fetch(e,t);class lt{loginHandler;redirectHandler;logoutHandler;sessionInfoManager;issuerConfigFetcher;boundLogout;constructor(e,t,n,r,i){this.loginHandler=e,this.redirectHandler=t,this.logoutHandler=n,this.sessionInfoManager=r,this.issuerConfigFetcher=i,this.loginHandler=e,this.redirectHandler=t,this.logoutHandler=n,this.sessionInfoManager=r,this.issuerConfigFetcher=i}fetch=ct;logout=async(e,t)=>{await this.logoutHandler.handle(e,"idp"===t?.logoutType?{...t,toLogoutUrl:this.boundLogout}:t),this.fetch=ct,delete this.boundLogout};getSessionInfo=async e=>this.sessionInfoManager.get(e);getAllSessionInfo=async()=>this.sessionInfoManager.getAll()}async function ut(e,t,n){try{const[r,i,a,o,s]=await Promise.all([t.getForUser(e,"issuer",{errorIfNull:!0}),t.getForUser(e,"codeVerifier"),t.getForUser(e,"redirectUrl"),t.getForUser(e,"dpop",{errorIfNull:!0}),t.getForUser(e,"keepAlive")]);await t.deleteForUser(e,"codeVerifier");return{codeVerifier:i,redirectUrl:a,issuerConfig:await n.fetchConfig(r),dpop:"true"===o,keepAlive:"string"!=typeof s||"true"===s}}catch(t){throw new Error(`Failed to retrieve OIDC context from storage associated with session [${e}]: ${t}`)}}class pt{secureStorage;insecureStorage;constructor(e,t){this.secureStorage=e,this.insecureStorage=t,this.secureStorage=e,this.insecureStorage=t}getKey(e){return`solidClientAuthenticationUser:${e}`}async getUserData(e,t){const n=await(t?this.secureStorage:this.insecureStorage).get(this.getKey(e));if(void 0===n)return{};try{return JSON.parse(n)}catch(r){throw new Error(`Data for user [${e}] in [${t?"secure":"unsecure"}] storage is corrupted - expected valid JSON, but got: ${n}`)}}async setUserData(e,t,n){await(n?this.secureStorage:this.insecureStorage).set(this.getKey(e),JSON.stringify(t))}async get(e,t){const n=await(t?.secure?this.secureStorage:this.insecureStorage).get(e);if(void 0===n&&t?.errorIfNull)throw new Error(`[${e}] is not stored`);return n}async set(e,t,n){return(n?.secure?this.secureStorage:this.insecureStorage).set(e,t)}async delete(e,t){return(t?.secure?this.secureStorage:this.insecureStorage).delete(e)}async getForUser(e,t,n){const r=await this.getUserData(e,n?.secure);let i;if(r&&r[t]||(i=void 0),i=r[t],void 0===i&&n?.errorIfNull)throw new Error(`Field [${t}] for user [${e}] is not stored`);return i||void 0}async setForUser(e,t,n){let r;try{r=await this.getUserData(e,n?.secure)}catch{r={}}await this.setUserData(e,{...r,...t},n?.secure)}async deleteForUser(e,t,n){const r=await this.getUserData(e,n?.secure);delete r[t],await this.setUserData(e,r,n?.secure)}async deleteAllUserData(e,t){await(t?.secure?this.secureStorage:this.insecureStorage).delete(this.getKey(e))}}class dt{map={};async get(e){return this.map[e]||void 0}async set(e,t){this.map[e]=t}async delete(e){delete this.map[e]}}class ft extends Error{constructor(e){super(e)}}Error;class ht extends Error{missingFields;constructor(e){super(`Invalid response from OIDC provider: missing fields ${e}`),this.missingFields=e}}class mt extends Error{error;errorDescription;constructor(e,t,n){super(e),this.error=t,this.errorDescription=n}}function gt(e){const t=new URL(e);return new URL(t.pathname,t.origin).toString()}async function vt(e,t,n){return new Te({htu:gt(e),htm:t.toUpperCase(),jti:je()}).setProtectedHeader({alg:De[0],jwk:n.publicKey,typ:"dpop+jwt"}).setIssuedAt().sign(n.privateKey,{})}async function bt(e,t,n,r){if(void 0!==n)return async function(e,t,n,r){const i=new Headers(r?.headers);return i.set("Authorization",`DPoP ${t}`),i.set("DPoP",await vt(e,r?.method??"get",n)),{...r,headers:i}}(e,t,n,r);const i=new Headers(r?.headers);return i.set("Authorization",`Bearer ${t}`),{...r,headers:i}}async function yt(e,t,n,r,i=fetch){return i(t,await bt(t.toString(),e,r,n))}const wt=e=>void 0!==e?e-5>0?e-5:e:600;function xt(e,t){let n,r=e;const i=t?.refreshOptions;if(void 0!==i){const e=async()=>{try{const{accessToken:a,refreshToken:o,expiresIn:s}=await async function(e,t,n){const r=await e.tokenRefresher.refresh(e.sessionId,e.refreshToken,t);return n?.emit($e,r.expiresIn??600),{accessToken:r.accessToken,refreshToken:r.refreshToken,expiresIn:r.expiresIn}}(i,t.dpopKey,t.eventEmitter);r=a,void 0!==o&&(i.refreshToken=o),clearTimeout(n),n=setTimeout(e,1e3*wt(s)),t.eventEmitter?.emit(Ve,n)}catch(e){e instanceof mt&&(t?.eventEmitter?.emit(Ue,e.error,e.errorDescription),t?.eventEmitter?.emit(qe)),e instanceof ht&&e.missingFields.includes("access_token")&&t?.eventEmitter?.emit(qe)}};n=setTimeout(e,1e3*wt(t.expiresIn)),t.eventEmitter?.emit(Ve,n)}else if(void 0!==t&&void 0!==t.eventEmitter){const e=setTimeout(()=>{t.eventEmitter.emit(qe)},1e3*wt(t.expiresIn));t.eventEmitter.emit(Ve,e)}return async(e,n)=>{let i=await yt(r,e,n,t?.dpopKey,t?.fetch);const a=!i.ok&&(o=i.status,![401,403].includes(o));var o;if(i.ok||a)return i;return i.url!==e&&void 0!==t?.dpopKey&&(i=await yt(r,i.url,n,t.dpopKey,t.fetch)),i}}var kt=o(7),_t=o(516);function Et(e,t){if("string"!=typeof e.client_id)throw new Error(`Dynamic client registration failed: no client_id has been found on ${JSON.stringify(e)}`);if(t.redirectUrl&&function(e){return Array.isArray(e.redirect_uris)&&e.redirect_uris.every(e=>"string"==typeof e)}(e)&&e.redirect_uris[0]!==t.redirectUrl.toString())throw new Error(`Dynamic client registration failed: the returned redirect URIs ${JSON.stringify(e.redirect_uris)} don't match the provided ${JSON.stringify([t.redirectUrl.toString()])}`);return!0}async function Ct(e,t){if(!t.registrationEndpoint)throw new Error("Dynamic Registration could not be completed because the issuer has no registration endpoint.");if(!Array.isArray(t.idTokenSigningAlgValuesSupported))throw new Error("The OIDC issuer discovery profile is missing the 'id_token_signing_alg_values_supported' value, which is mandatory.");const n=(r=t.idTokenSigningAlgValuesSupported,De.find(e=>r.includes(e))??null);var r;const i={client_name:e.clientName,application_type:"web",redirect_uris:[e.redirectUrl?.toString()],subject_type:"public",token_endpoint_auth_method:"client_secret_basic",id_token_signed_response_alg:n,grant_types:["authorization_code","refresh_token"]},a=await fetch(t.registrationEndpoint.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(a.ok){const t=await a.json();return Et(t,e),{clientId:t.client_id,clientSecret:t.client_secret,expiresAt:t.client_secret_expires_at,idTokenSignedResponseAlg:t.id_token_signed_response_alg,clientType:"dynamic"}}throw 400===a.status&&function(e,t){if("invalid_redirect_uri"===e.error)throw new Error(`Dynamic client registration failed: the provided redirect uri [${t.redirectUrl?.toString()}] is invalid - ${e.error_description??""}`);if("invalid_client_metadata"===e.error)throw new Error(`Dynamic client registration failed: the provided client metadata ${JSON.stringify(t)} is invalid - ${e.error_description??""}`);throw new Error(`Dynamic client registration failed: ${e.error} - ${e.error_description??""}`)}(await a.json(),e),new Error(`Dynamic client registration failed: the server returned ${a.status} ${a.statusText} - ${await a.text()}`)}function St(e){return void 0!==e.error_description&&"string"==typeof e.error_description}function At(e,t){if(void 0!==(n=e).error&&"string"==typeof n.error)throw new mt(`Token endpoint returned error [${e.error}]${St(e)?`: ${e.error_description}`:""}${function(e){return void 0!==e.error_uri&&"string"==typeof e.error_uri}(e)?` (see ${e.error_uri})`:""}`,e.error,St(e)?e.error_description:void 0);var n;if(!function(e){return void 0!==e.access_token&&"string"==typeof e.access_token}(e))throw new ht(["access_token"]);if(!function(e){return void 0!==e.id_token&&"string"==typeof e.id_token}(e))throw new ht(["id_token"]);if(!function(e){return void 0!==e.token_type&&"string"==typeof e.token_type}(e))throw new ht(["token_type"]);if(!function(e){return void 0===e.expires_in||"number"==typeof e.expires_in}(e))throw new ht(["expires_in"]);if(!t&&"bearer"!==e.token_type.toLowerCase())throw new Error(`Invalid token endpoint response: requested a [Bearer] token, but got a 'token_type' value of [${e.token_type}].`);return e}async function Tt(e,t,n,r){!function(e,t){if(t.grantType&&(!e.grantTypesSupported||!e.grantTypesSupported.includes(t.grantType)))throw new Error(`The issuer [${e.issuer}] does not support the [${t.grantType}] grant`);if(!e.tokenEndpoint)throw new Error(`This issuer [${e.issuer}] does not have a token endpoint`)}(e,n);const i={"content-type":"application/x-www-form-urlencoded"};let a;r&&(a=await async function(){const{privateKey:e,publicKey:t}=await Re(De[0]),n={privateKey:e,publicKey:await ke(t)};return[n.publicKey.alg]=De,n}(),i.DPoP=await vt(e.tokenEndpoint,"POST",a)),t.clientSecret&&(i.Authorization=`Basic ${btoa(`${t.clientId}:${t.clientSecret}`)}`);const o={grant_type:n.grantType,redirect_uri:n.redirectUrl,code:n.code,code_verifier:n.codeVerifier,client_id:t.clientId},s={method:"POST",headers:i,body:new URLSearchParams(o).toString()},c=await fetch(e.tokenEndpoint,s),l=At(await c.json(),r),{webId:u,clientId:p}=await Je(l.id_token,e.jwksUri,e.issuer,t.clientId);return{accessToken:l.access_token,idToken:l.id_token,refreshToken:(d=l,void 0!==d.refresh_token&&"string"==typeof d.refresh_token?l.refresh_token:void 0),webId:u,clientId:p,dpopKey:a,expiresIn:l.expires_in};var d}async function Pt(e,t,n,r){if(void 0===n.clientId)throw new Error("No client ID available when trying to refresh the access token.");const i={grant_type:"refresh_token",refresh_token:e};let a={};void 0!==r&&(a={DPoP:await vt(t.tokenEndpoint,"POST",r)});let o={};void 0!==n.clientSecret?o={Authorization:`Basic ${btoa(`${n.clientId}:${n.clientSecret}`)}`}:(e=>{try{return new URL(e),!0}catch{return!1}})(n.clientId)&&(i.client_id=n.clientId);const s=await fetch(t.tokenEndpoint,{method:"POST",body:new URLSearchParams(i).toString(),headers:{...a,...o,"Content-Type":"application/x-www-form-urlencoded"}});let c;try{c=await s.json()}catch(e){throw new Error(`The token endpoint of issuer ${t.issuer} returned a malformed response.`)}const l=At(c,void 0!==r),{webId:u}=await Je(l.id_token,t.jwksUri,t.issuer,n.clientId);return{accessToken:l.access_token,idToken:l.id_token,refreshToken:"string"==typeof l.refresh_token?l.refresh_token:void 0,webId:u,dpopKey:r,expiresIn:l.expires_in}}class Rt extends pt{constructor(e,t){super(e,t)}}class It extends lt{login=async(e,t)=>{"none"!==e.prompt&&await this.sessionInfoManager.clear(e.sessionId);const n=e.redirectUrl??function(e){const t=Ye(e);return t.hash="",e.includes(`${t.origin}/`)?t.href:`${t.origin}${t.href.substring(t.origin.length+1)}`}(window.location.href);if(!Qe(n))throw new Error(`${n} is not a valid redirect URL, it is either a malformed IRI, includes a hash fragment, or reserved query parameters ('code' or 'state').`);await this.loginHandler.handle({...e,redirectUrl:n,clientName:e.clientName??e.clientId,eventEmitter:t})};validateCurrentSession=async e=>{const t=await this.sessionInfoManager.get(e);return void 0===t||void 0===t.clientAppId||void 0===t.issuer?null:t};handleIncomingRedirect=async(e,t)=>{try{const n=await this.redirectHandler.handle(e,t,void 0);return this.fetch=n.fetch.bind(window),this.boundLogout=n.getLogoutUrl,await this.cleanUrlAfterRedirect(e),{isLoggedIn:n.isLoggedIn,webId:n.webId,sessionId:n.sessionId,expirationDate:n.expirationDate,clientAppId:n.clientAppId}}catch(n){return await this.cleanUrlAfterRedirect(e),void t.emit(Ue,"redirect",n)}};async cleanUrlAfterRedirect(e){const t=Ye(e).href;for(window.history.replaceState(null,"",t);window.location.href!==t;)await new Promise(e=>{setTimeout(()=>e(),1)})}}function Ft(e){return"string"==typeof e.oidcIssuer}function Nt(e){return"string"==typeof e.redirectUrl}class Ot{storageUtility;oidcHandler;issuerConfigFetcher;clientRegistrar;constructor(e,t,n,r){this.storageUtility=e,this.oidcHandler=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.storageUtility=e,this.oidcHandler=t,this.issuerConfigFetcher=n,this.clientRegistrar=r}async canHandle(e){return Ft(e)&&Nt(e)}async handle(e){if(!Ft(e))throw new ft(`OidcLoginHandler requires an OIDC issuer: missing property 'oidcIssuer' in ${JSON.stringify(e)}`);if(!Nt(e))throw new ft(`OidcLoginHandler requires a redirect URL: missing property 'redirectUrl' in ${JSON.stringify(e)}`);const t=await this.issuerConfigFetcher.fetchConfig(e.oidcIssuer),n=await st(e,t,this.storageUtility,this.clientRegistrar),r={issuer:t.issuer,dpop:"dpop"===e.tokenType.toLowerCase(),...e,issuerConfiguration:t,client:n,scopes:(i=e.customScopes,Array.isArray(i)?Array.from(new Set([...Ge,...i.filter(e=>"string"==typeof e&&!e.includes(" "))])):Ge)};var i;return this.oidcHandler.handle(r)}}class Lt extends Xe{async handle(e){const t={authority:e.issuer.toString(),client_id:e.client.clientId,client_secret:e.client.clientSecret,redirect_uri:e.redirectUrl,response_type:"code",scope:e.scopes.join(" "),filterProtocolClaims:!0,loadUserInfo:!1,code_verifier:!0,prompt:e.prompt??"consent"},n=new _t.OidcClient(t);try{const t=await n.createSigninRequest();return await this.setupRedirectHandler({oidcLoginOptions:e,state:t.state._id,codeVerifier:t.state._code_verifier,targetUrl:t.url.toString()})}catch(e){}}}const jt={issuer:{toKey:"issuer",convertToUrl:!0},authorization_endpoint:{toKey:"authorizationEndpoint",convertToUrl:!0},token_endpoint:{toKey:"tokenEndpoint",convertToUrl:!0},userinfo_endpoint:{toKey:"userinfoEndpoint",convertToUrl:!0},jwks_uri:{toKey:"jwksUri",convertToUrl:!0},registration_endpoint:{toKey:"registrationEndpoint",convertToUrl:!0},end_session_endpoint:{toKey:"endSessionEndpoint",convertToUrl:!0},scopes_supported:{toKey:"scopesSupported"},response_types_supported:{toKey:"responseTypesSupported"},response_modes_supported:{toKey:"responseModesSupported"},grant_types_supported:{toKey:"grantTypesSupported"},acr_values_supported:{toKey:"acrValuesSupported"},subject_types_supported:{toKey:"subjectTypesSupported"},id_token_signing_alg_values_supported:{toKey:"idTokenSigningAlgValuesSupported"},id_token_encryption_alg_values_supported:{toKey:"idTokenEncryptionAlgValuesSupported"},id_token_encryption_enc_values_supported:{toKey:"idTokenEncryptionEncValuesSupported"},userinfo_signing_alg_values_supported:{toKey:"userinfoSigningAlgValuesSupported"},userinfo_encryption_alg_values_supported:{toKey:"userinfoEncryptionAlgValuesSupported"},userinfo_encryption_enc_values_supported:{toKey:"userinfoEncryptionEncValuesSupported"},request_object_signing_alg_values_supported:{toKey:"requestObjectSigningAlgValuesSupported"},request_object_encryption_alg_values_supported:{toKey:"requestObjectEncryptionAlgValuesSupported"},request_object_encryption_enc_values_supported:{toKey:"requestObjectEncryptionEncValuesSupported"},token_endpoint_auth_methods_supported:{toKey:"tokenEndpointAuthMethodsSupported"},token_endpoint_auth_signing_alg_values_supported:{toKey:"tokenEndpointAuthSigningAlgValuesSupported"},display_values_supported:{toKey:"displayValuesSupported"},claim_types_supported:{toKey:"claimTypesSupported"},claims_supported:{toKey:"claimsSupported"},service_documentation:{toKey:"serviceDocumentation"},claims_locales_supported:{toKey:"claimsLocalesSupported"},ui_locales_supported:{toKey:"uiLocalesSupported"},claims_parameter_supported:{toKey:"claimsParameterSupported"},request_parameter_supported:{toKey:"requestParameterSupported"},request_uri_parameter_supported:{toKey:"requestUriParameterSupported"},require_request_uri_registration:{toKey:"requireRequestUriRegistration"},op_policy_uri:{toKey:"opPolicyUri",convertToUrl:!0},op_tos_uri:{toKey:"opTosUri",convertToUrl:!0}};class Mt{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}static getLocalStorageKey(e){return`issuerConfig:${e}`}async fetchConfig(e){let t;const n=new URL(".well-known/openid-configuration",e.endsWith("/")?e:`${e}/`).href,r=await fetch(n);try{t=function(e){const t={};return Object.keys(e).forEach(n=>{jt[n]&&(t[jt[n].toKey]=e[n])}),Array.isArray(t.scopesSupported)||(t.scopesSupported=["openid"]),t}(await r.json())}catch(t){throw new ft(`[${e.toString()}] has an invalid configuration: ${t.message}`)}return await this.storageUtility.set(Mt.getLocalStorageKey(e),JSON.stringify(t)),t}}async function Dt(e,t){await rt(e,t),await async function(){const e=new _t.OidcClient({response_mode:"query"});await e.clearStaleState(new _t.WebStorageStateStore({}));const t=window.localStorage,n=[];for(let e=0;e<=t.length;e+=1){const r=t.key(e);r&&(r.match(/^oidc\..+$/)||r.match(/^solidClientAuthenticationUser:.+$/))&&n.push(r)}n.forEach(e=>t.removeItem(e))}()}class Ut extends it{async get(e){const[t,n,r,i,a,o,s,c]=await Promise.all([this.storageUtility.getForUser(e,"isLoggedIn",{secure:!0}),this.storageUtility.getForUser(e,"webId",{secure:!0}),this.storageUtility.getForUser(e,"clientId",{secure:!1}),this.storageUtility.getForUser(e,"clientSecret",{secure:!1}),this.storageUtility.getForUser(e,"redirectUrl",{secure:!1}),this.storageUtility.getForUser(e,"refreshToken",{secure:!0}),this.storageUtility.getForUser(e,"issuer",{secure:!1}),this.storageUtility.getForUser(e,"tokenType",{secure:!1})]);if("string"!=typeof a||Qe(a)){if(void 0!==c&&("string"!=typeof(l=c)||!["DPoP","Bearer"].includes(l)))throw new Error(`Tokens of type [${c}] are not supported.`);var l;if(void 0!==r||void 0!==t||void 0!==n||void 0!==o)return{sessionId:e,webId:n,isLoggedIn:"true"===t,redirectUrl:a,refreshToken:o,issuer:s,clientAppId:r,clientAppSecret:i,tokenType:c??"DPoP"}}else await Promise.all([this.storageUtility.deleteAllUserData(e,{secure:!1}),this.storageUtility.deleteAllUserData(e,{secure:!0})])}async clear(e){return Dt(e,this.storageUtility)}}class Bt{async canHandle(e){try{return new URL(e),!0}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e){return nt()}}class zt{storageUtility;sessionInfoManager;issuerConfigFetcher;clientRegistrar;tokerRefresher;constructor(e,t,n,r,i){this.storageUtility=e,this.sessionInfoManager=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.tokerRefresher=i,this.storageUtility=e,this.sessionInfoManager=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.tokerRefresher=i}async canHandle(e){try{const t=new URL(e);return null!==t.searchParams.get("code")&&null!==t.searchParams.get("state")}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e,t){if(!await this.canHandle(e))throw new Error(`AuthCodeRedirectHandler cannot handle [${e}]: it is missing one of [code, state].`);const n=new URL(e),r=n.searchParams.get("state"),i=await this.storageUtility.getForUser(r,"sessionId",{errorIfNull:!0}),{issuerConfig:a,codeVerifier:o,redirectUrl:s,dpop:c}=await ut(i,this.storageUtility,this.issuerConfigFetcher),l=n.searchParams.get("iss");if("string"==typeof l&&l!==a.issuer)throw new Error(`The value of the iss parameter (${l}) does not match the issuer identifier of the authorization server (${a.issuer}). See [rfc9207](https://www.rfc-editor.org/rfc/rfc9207.html#section-2.3-3.1.1)`);if(void 0===o)throw new Error(`The code verifier for session ${i} is missing from storage.`);if(void 0===s)throw new Error(`The redirect URL for session ${i} is missing from storage.`);const u=await this.clientRegistrar.getClient({sessionId:i},a),p=Date.now(),d=await Tt(a,u,{grantType:"authorization_code",code:n.searchParams.get("code"),codeVerifier:o,redirectUrl:s},c);let f;window.localStorage.removeItem(`oidc.${r}`),void 0!==d.refreshToken&&(f={sessionId:i,refreshToken:d.refreshToken,tokenRefresher:this.tokerRefresher});const h=xt(d.accessToken,{dpopKey:d.dpopKey,refreshOptions:f,eventEmitter:t,expiresIn:d.expiresIn});await async function(e,t,n,r,i,a,o,s){void 0!==a&&await e.setForUser(t,{refreshToken:a},{secure:o}),void 0!==n&&await e.setForUser(t,{webId:n},{secure:o}),void 0!==r&&await e.setForUser(t,{clientId:r},{secure:o}),void 0!==i&&await e.setForUser(t,{isLoggedIn:i},{secure:o}),void 0!==s&&await e.setForUser(t,{publicKey:JSON.stringify(s.publicKey),privateKey:JSON.stringify(await ke(s.privateKey))},{secure:o})}(this.storageUtility,i,d.webId,d.clientId,"true",void 0,!0);const m=await this.sessionInfoManager.get(i);if(!m)throw new Error(`Could not retrieve session: [${i}].`);return Object.assign(m,{fetch:h,getLogoutUrl:at({idTokenHint:d.idToken,endSessionEndpoint:a.endSessionEndpoint}),expirationDate:"number"==typeof d.expiresIn?p+1e3*d.expiresIn:void 0})}}class Ht extends Ke{constructor(e){super(e)}}class qt{get storage(){return window.localStorage}async get(e){return this.storage.getItem(e)||void 0}async set(e,t){this.storage.setItem(e,t)}async delete(e){this.storage.removeItem(e)}}class $t{redirect(e,t){t&&t.handleRedirect?t.handleRedirect(e):t&&t.redirectByReplacingState?window.history.replaceState({},"",e):window.location.href=e}}class Wt{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}async getClient(e,t){const[n,r,i,a,o]=await Promise.all([this.storageUtility.getForUser(e.sessionId,"clientId",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientSecret",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"expiresAt",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientName",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientType",{secure:!1})]),s=void 0!==i?Number.parseInt(i,10):-1,c=void 0!==r&&0!==s&&Math.floor(Date.now()/1e3)>s;if(n&&("string"==typeof(l=o)&&["dynamic","static","solid-oidc"].includes(l))&&!c)return void 0!==r?{clientId:n,clientSecret:r,clientName:a,clientType:"dynamic",expiresAt:s}:{clientId:n,clientName:a,clientType:o};var l;try{const n=await Ct(e,t),r={clientId:n.clientId,clientType:"dynamic"};return void 0!==n.clientSecret&&(r.clientSecret=n.clientSecret,r.expiresAt=String(n.expiresAt)),n.idTokenSignedResponseAlg&&(r.idTokenSignedResponseAlg=n.idTokenSignedResponseAlg),await this.storageUtility.setForUser(e.sessionId,r,{secure:!1}),n}catch(e){throw new Error("Client registration failed.",{cause:e})}}}class Vt{async canHandle(e){try{return new URL(e).searchParams.has("error")}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e,t){if(void 0!==t){const n=new URL(e),r=n.searchParams.get("error"),i=n.searchParams.get("error_description");t.emit(Ue,r,i)}return nt()}}class Gt{storageUtility;issuerConfigFetcher;clientRegistrar;constructor(e,t,n){this.storageUtility=e,this.issuerConfigFetcher=t,this.clientRegistrar=n,this.storageUtility=e,this.issuerConfigFetcher=t,this.clientRegistrar=n}async refresh(e,t,n,r){const i=await ut(e,this.storageUtility,this.issuerConfigFetcher),a=await this.clientRegistrar.getClient({sessionId:e},i.issuerConfig);if(void 0===t)throw new Error(`Session [${e}] has no refresh token to allow it to refresh its access token.`);if(i.dpop&&void 0===n)throw new Error(`For session [${e}], the key bound to the DPoP access token must be provided to refresh said access token.`);const o=await Pt(t,i.issuerConfig,a,n);return void 0!==o.refreshToken&&r?.emit(He,o.refreshToken),o}}function Kt(e){const t=new dt,n=e.secureStorage||t,r=e.insecureStorage||new qt,i=new Rt(n,r),a=new Mt(i),o=new Wt(i),s=new Ut(i),c=new Gt(i,a,o),l=new $t,u=new Ot(i,new Lt(i,l),a,o),p=new Ht([new Vt,new zt(i,s,a,o,c),new Bt]);return new It(u,p,new tt(s,l),s,a)}const Jt=`${Me}currentSession`,Qt=`${Me}currentUrl`;class Yt{info;events;clientAuthentication;tokenRequestInProgress=!1;constructor(e={},t=void 0){this.events=new kt,e.clientAuthentication?this.clientAuthentication=e.clientAuthentication:e.secureStorage&&e.insecureStorage?this.clientAuthentication=Kt({secureStorage:e.secureStorage,insecureStorage:e.insecureStorage}):this.clientAuthentication=Kt({}),e.sessionInfo?this.info={sessionId:e.sessionInfo.sessionId,isLoggedIn:!1,webId:e.sessionInfo.webId,clientAppId:e.sessionInfo.clientAppId}:this.info={sessionId:t??je(),isLoggedIn:!1},this.events.on(Be,()=>window.localStorage.setItem(Jt,this.info.sessionId)),this.events.on(qe,()=>this.internalLogout(!1)),this.events.on(Ue,()=>this.internalLogout(!1))}login=async e=>(await this.clientAuthentication.login({sessionId:this.info.sessionId,...e,tokenType:e.tokenType??"DPoP"},this.events),new Promise(()=>{}));fetch=(e,t)=>this.clientAuthentication.fetch(e,t);internalLogout=async(e,t)=>{window.localStorage.removeItem(Jt),await this.clientAuthentication.logout(this.info.sessionId,t),this.info.isLoggedIn=!1,e&&this.events.emit(ze)};logout=async e=>this.internalLogout(!0,e);handleIncomingRedirect=async(e={})=>{if(this.info.isLoggedIn)return this.info;if(this.tokenRequestInProgress)return;const t="string"==typeof e?{url:e}:e,n=t.url??window.location.href;this.tokenRequestInProgress=!0;const r=await this.clientAuthentication.handleIncomingRedirect(n,this.events);if(function(e){return!!e?.isLoggedIn}(r)){this.setSessionInfo(r);const e=window.localStorage.getItem(Qt);null===e?this.events.emit(Be):(window.localStorage.removeItem(Qt),this.events.emit(We,e))}else if(!0===t.restorePreviousSession){const e=window.localStorage.getItem(Jt);if(null!==e){if(await async function(e,t,n){const r=await t.validateCurrentSession(e);return null!==r&&(window.localStorage.setItem(Qt,window.location.href),await t.login({sessionId:e,prompt:"none",oidcIssuer:r.issuer,redirectUrl:r.redirectUrl,clientId:r.clientAppId,clientSecret:r.clientAppSecret,tokenType:r.tokenType??"DPoP"},n.events),!0)}(e,this.clientAuthentication,this))return new Promise(()=>{})}}return this.tokenRequestInProgress=!1,r};setSessionInfo(e){this.info.isLoggedIn=e.isLoggedIn,this.info.webId=e.webId,this.info.sessionId=e.sessionId,this.info.clientAppId=e.clientAppId,this.info.expirationDate=e.expirationDate,this.events.on($e,e=>{this.info.expirationDate=Date.now()+1e3*e})}}const Xt=new Yt,Zt=r;var en=o(386);const tn=o.n(en)()(Zt),nn=(0,Zt.sym)("http://www.iana.org/assignments/link-relations/acl");function rn(e){const t=tn;function n(e,n,r,i={}){const a=i.public||[],o=(0,Zt.graph)(),s=(0,Zt.Namespace)("http://www.w3.org/ns/auth/acl#");let c=o.sym(`${r}#a1`);const l=o.sym(r),u=o.sym(e);if(o.add(c,t.rdf("type"),s("Authorization"),l),o.add(c,s("accessTo"),u,l),i.defaultForNew&&o.add(c,s("default"),u,l),o.add(c,s("agent"),n,l),o.add(c,s("mode"),s("Read"),l),o.add(c,s("mode"),s("Write"),l),o.add(c,s("mode"),s("Control"),l),a.length){c=o.sym(`${r}#a2`),o.add(c,t.rdf("type"),s("Authorization"),l),o.add(c,s("accessTo"),u,l),o.add(c,s("agentClass"),t.foaf("Agent"),l);for(let e=0;e<a.length;e++)o.add(c,s("mode"),s(a[e]),l)}return(0,Zt.serialize)(l,o,r)}return{findAclDocUrl:async function(t){await e.fetcher.load(t);const n=e.any(t,nn);if(!n)throw new Error(`No ACL link discovered for ${t}`);return n.value},setACLUserPublic:function(t,r,i){const a=e.any(e.sym(t),nn);return Promise.resolve().then(()=>a||function(t){const n=e.fetcher;if(!n)throw new Error("Cannot fetch ACL rel, store has no fetcher");return n.load(t).then(n=>{if(!n.ok)throw new Error("fetchACLRel: While loading:"+n.error);const r=e.any(e.sym(t),nn);if(!r)throw new Error("fetchACLRel: No Link rel=ACL header for "+t);return r})}(t).catch(e=>{throw new Error(`Error fetching rel=ACL header for ${t}: ${e}`)})).then(a=>{const o=n(t,r,a.uri,i);if(!e.fetcher)throw new Error("Cannot PUT this, store has no fetcher");return e.fetcher.webOperation("PUT",a.uri,{data:o,contentType:"text/turtle"}).then(e=>{if(!e.ok)throw new Error("Error writing ACL text: "+e.error);return a})})},genACLText:n}}const an=()=>{let{SolidAppContext:e}=window;if(e||(e={}),e.viewingNoAuthPage=!1,e.noAuth&&window.document){if(window.document.location.href.startsWith(e.noAuth)){e.viewingNoAuthPage=!0;const t=new URLSearchParams(window.document.location.search);if(t){let n=e.viewedPage=t.get("uri")||null;if(n&&(n=decodeURI(n),!n.startsWith(e.noAuth))){const t=n.split(/\//);e.idp=t[0]+"//"+t[2],e.viewingNoAuthPage=!1}}}}return e};function on(){const{$SolidTestEnvironment:e}=window;if(void 0!==e&&e.username)return e.username,(0,Zt.sym)(e.username);if("undefined"!=typeof document&&document.location&&"http://localhost"===(""+document.location).slice(0,16)){const e=document.getElementById("appTarget");if(!e)return null;const t=e.getAttribute("testID");return t?(0,Zt.sym)(t):null}return null}class sn{constructor(e){this.session=e}get authSession(){return this.session}currentUser(){const e=an();return e.viewingNoAuthPage?(0,Zt.sym)(e.webId):this&&this.session&&this.session.info&&this.session.info.webId&&this.session.info.isLoggedIn?(0,Zt.sym)(this.session.info.webId):on()}async checkUser(e){const t=new URL(window.location.href).hash;t&&window.localStorage.setItem("preLoginRedirectHash",t),this.session.events.on(We,e=>{document.location.toString()!==e&&history.replaceState(null,"",e)});const n=new URL(window.location.href);n.hash="",await this.session.handleIncomingRedirect({restorePreviousSession:!0,url:n.href});const r=window.localStorage.getItem("preLoginRedirectHash");if(r){const e=new URL(window.location.href);e.hash!==r&&(history.pushState?history.pushState(null,document.title,r):location.hash=r,e.hash=r),window.localStorage.setItem("preLoginRedirectHash","")}let i=on();if(i)return Promise.resolve(e?e(i):i);const a=this.webIdFromSession(this.session.info);return a&&(i=this.saveUser(a)),Promise.resolve(e?e(i):i)}saveUser(e,t){let n;if(e){n="string"==typeof e?e:e.uri;const r=(0,Zt.namedNode)(n);return t&&(t.me=r),r}return null}webIdFromSession(e){return(null==e?void 0:e.webId)&&e.isLoggedIn?e.webId:null}}function cn(e){return(0,Zt.sym)(e.uri+"#id"+Date.now())}function ln(e){return!e||`${window.location.origin}/`!==new URL(e.value).origin}const un="index.ttl#this";function pn(e,t){const n=tn;async function r(t,n,r){await e.fetcher.load(t);const i=e.any(t,new Zt.NamedNode("http://www.iana.org/assignments/link-relations/acl"));if(!i)throw new Error("Chat ACL doc not found!");const a=`\n @prefix acl: <http://www.w3.org/ns/auth/acl#>.\n <#owner>\n a acl:Authorization;\n acl:agent <${n.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Write, acl:Control.\n <#invitee>\n a acl:Authorization;\n acl:agent <${r.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Append.\n `;await e.fetcher.webOperation("PUT",i.value,{data:a,contentType:"text/turtle"})}async function i(t,r){const i=e.any(r,n.solid("privateTypeIndex"));if(!i)throw new Error("Private type index not found!");await e.fetcher.load(i);const a=cn(i),o=[(0,Zt.st)(a,n.rdf("type"),n.solid("TypeRegistration"),i.doc()),(0,Zt.st)(a,n.solid("forClass"),n.meeting("LongChat"),i.doc()),(0,Zt.st)(a,n.solid("instance"),t,i.doc())];await new Promise((t,n)=>{e.updater.update([],o,function(e,r,i){r?t(null):n(new Error(i))})})}async function a(n){const r=await t.loadMe(),i=function(e,t){const n=new URL(`IndividualChats/${new URL(e.value).host}/`,t.value).toString();return new Zt.NamedNode(n)}(n,await t.getPodRoot(r));let a=!0;try{await e.fetcher.load(new Zt.NamedNode(i.value+"index.ttl#this"))}catch(e){a=!1}return{me:r,chatContainer:i,exists:a}}async function o(e,t){return(await s({me:t,newBase:e.value})).newInstance}function s(t){const r=e,i=r.updater;if(t.me&&!t.me.uri)throw new Error("chat mintNew: Invalid userid "+t.me);const a=t.newInstance=t.newInstance||r.sym(t.newBase+un),o=a.doc();return r.add(a,n.rdf("type"),n.meeting("LongChat"),o),r.add(a,n.dc("title"),"Chat channel",o),r.add(a,n.dc("created"),(0,Zt.term)(new Date(Date.now())),o),t.me&&r.add(a,n.dc("author"),t.me,o),new Promise(function(e,n){null==i||i.put(o,r.statementsMatching(void 0,void 0,void 0,o),"text/turtle",function(r,i,o){i?e({...t,newInstance:a}):n(new Error("FAILED to save new chat channel at: "+r+" : "+o))})})}async function c(t,r){var i;await e.fetcher.load(t.doc());const a=e.any(t,n.ldp("inbox"),void 0,t.doc());if(!a)throw new Error(`Invitee inbox not found! ${t.value}`);const o=`\n <> a <http://www.w3.org/ns/pim/meeting#LongChatInvite> ;\n ${n.rdf("seeAlso")} <${r.value}> .\n `,s=await(null===(i=e.fetcher)||void 0===i?void 0:i.webOperation("POST",a.value,{data:o,contentType:"text/turtle"}));if(!(null==s?void 0:s.headers.get("location")))throw new Error(`Invite sending returned a ${null==s?void 0:s.status}`)}return{setAcl:r,addToPrivateTypeIndex:i,findChat:a,createChatThing:o,getChat:async function(e,t=!0){const{me:n,chatContainer:s,exists:l}=await a(e);if(l)return new Zt.NamedNode(s.value+un);if(t){const t=await o(s,n);return await c(e,t),await r(s,n,e),await i(t,n),t}return null},sendInvite:c,mintNew:s}}function dn(e,t,n,r,i){return{createInboxFor:async function(e,i){const a=await t.loadMe(),o=`${(await t.getPodRoot(a)).value}p2p-inboxes/${encodeURIComponent(i)}/`;return await r.createContainer(o),await n.setSinglePeerAccess({ownerWebId:a.value,peerWebId:e,accessToModes:"acl:Append",target:o}),o},getNewMessages:async function(e){e||(e=await t.loadMe());const n=await t.getMainInbox(e);return(await r.getContainerMembers(n)).filter(e=>!r.isContainer(e))},markAsRead:async function(t,n){const r=await e.fetcher._fetch(t);if(200!==r.status)throw new Error(`Not OK! ${t}`);const i=function(e,t){const n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),i=("0"+t.getUTCDate()).slice(-2),a=e.split("/"),o=a[a.length-1];return new URL(`./archive/${n}/${r}/${i}/${o}`,e).toString()}(t,n),a={method:"PUT",body:await r.text(),headers:[["Content-Type",r.headers.get("Content-Type")||"application/octet-stream"]]};"2"===(await e.fetcher._fetch(i,a)).status.toString()[0]&&await e.fetcher._fetch(t,{method:"DELETE"})}}}class fn extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype),this.name=new.target.name}}class hn extends fn{}class mn extends fn{}class gn extends fn{}class vn extends fn{}class bn extends fn{}class yn extends fn{}class wn extends fn{constructor(e,t){super(t),this.status=e}}function xn(e,t,n){const r=tn;async function i(t){await a(t);const i=function(e){const t=e.uri.replace("/profile/","/").replace("/public/","/").split("/").slice(0,-1).join("/")+"/Settings/Preferences.ttl";return(0,Zt.sym)(t)}(t);let o;try{o=await n.followOrCreateLink(t,r.space("preferencesFile"),i,t.doc())}catch(e){if(e instanceof bn)throw e;if(e instanceof yn)throw e;if(e instanceof hn)throw e;if(e instanceof mn)throw e;if(e instanceof gn)throw e;if(e instanceof wn)throw e;throw e}try{await e.fetcher.load(o)}catch(e){const n=`Unable to load preference of user ${t}: ${e}`;if(401===e.response.status)throw new hn;if(403===e.response.status){if(ln(o))throw new mn;throw new gn}throw new Error(n)}return o}async function a(t){if(!t)throw new Error("loadProfile: no user given.");try{await e.fetcher.load(t.doc())}catch(e){throw new Error(`Unable to load profile of user ${t}: ${e}`)}return t.doc()}function o(t){return e.any(t,r.space("storage"),void 0,t.doc())}return{loadMe:async function(){const n=t.currentUser();if(null===n)throw new Error("Current user not found! Not logged in?");return await e.fetcher.load(n.doc()),n},getPodRoot:function(e){const t=o(e);if(!t)throw new Error("User pod root not found!");return t},getMainInbox:async function(t){await e.fetcher.load(t);const n=e.any(t,r.ldp("inbox"),void 0,t.doc());if(!n)throw new Error("User main inbox not found!");return n},findStorage:o,loadPreferences:i,loadProfile:a,silencedLoadPreferences:async function(e){try{return await i(e)}catch(e){return}}}}function kn(e,t,n,r){const i=tn;async function a(t){if(!t)throw new Error("loadTypeIndexesFor: No user given");const a=await n.loadProfile(t);let o,s=null;try{s=u(t)}catch(e){}try{o=e.any(t,i.solid("publicTypeIndex"),void 0,a)||(s?await r.followOrCreateLink(t,i.solid("publicTypeIndex"),s,a):null)}catch(e){}const c=o?[{label:"public",index:o,agent:t}]:[];let l,d;try{l=await n.silencedLoadPreferences(t)}catch(e){l=null}if(l){let n,o=null;try{o=p(l)}catch(e){}try{n=e.any(t,i.solid("privateTypeIndex"),void 0,a)||(o?await r.followOrCreateLink(t,i.solid("privateTypeIndex"),o,l):null)}catch(e){}d=n?[{label:"private",index:n,agent:t}]:[]}else d=[];const f=c.concat(d);if(0===f.length)return f;const h=f.map(e=>e.index);try{await e.fetcher.load(h)}catch(e){}return f}async function o(t){let r;try{r=await n.silencedLoadPreferences(t)}catch(e){}if(r){const n=e.each(t,i.solid("community"),void 0,r).concat(e.each(t,i.solid("community"),void 0,t.doc()));let o=[];for(const e of n)o=o.concat(await a(e));return o}return[]}async function s(e){return(await a(e)).concat((await o(e)).flat())}async function c(e,t){const n=await s(t);let r=[];for(const t of n){const n=await d(t,e);r=r.concat(n)}return r}function l(e){const t=e.doc(),n=t.dir();if(null==n?void 0:n.uri)return n.uri;const r=t.uri;if(!r)return null==e||e.uri,null;const i=r.split("#")[0],a=i.lastIndexOf("/");return-1===a?null:i.slice(0,a+1)}function u(e){const t=l(e);if(!t)throw new Error(`suggestPublicTypeIndex: Cannot derive directory for ${e.uri}`);return(0,Zt.sym)(t+"publicTypeIndex.ttl")}function p(e){const t=l(e);if(!t)throw new Error(`suggestPrivateTypeIndex: Cannot derive directory for ${e.uri}`);return(0,Zt.sym)(t+"privateTypeIndex.ttl")}async function d(t,n){const r=t.index,a=[],o=e.statementsMatching(null,i.solid("instance"),null,r).concat(e.statementsMatching(null,i.solid("instanceContainer"),null,r)).map(e=>e.subject);for(const s of o){const o=e.any(s,i.solid("forClass"),null,r);if(!n||o.sameTerm(n)){const n=e.each(s,i.solid("instance"),null,r);for(const e of n)a.push({instance:e,type:o,scope:t});const c=e.each(s,i.solid("instanceContainer"),null,r);for(const n of c)await e.fetcher.load(n),a.push({instance:(0,Zt.sym)(n.value),type:o,scope:t})}}return a}return{registerInTypeIndex:async function(t,n,r){const a=cn(n),o=[(0,Zt.st)(a,i.rdf("type"),i.solid("TypeRegistration"),n),(0,Zt.st)(a,i.solid("forClass"),r,n),(0,Zt.st)(a,i.solid("instance"),t,n)];try{await e.updater.update([],o)}catch(e){return null}return a},getRegistrations:function(t,n){return e.each(void 0,i.solid("instance"),t).filter(t=>e.holds(t,i.solid("forClass"),n))},loadTypeIndexesFor:a,loadCommunityTypeIndexes:o,loadAllTypeIndexes:s,getScopedAppInstances:c,getAppInstances:async function(e){const n=t.currentUser();if(!n)throw new Error("getAppInstances: Must be logged in to find apps.");return(await c(e,n)).map(e=>e.instance)},suggestPublicTypeIndex:u,suggestPrivateTypeIndex:p,deleteTypeIndexRegistration:async function(t){const n=e.the(null,i.solid("instance"),t.instance,t.scope.index);if(!n)throw new Error(`deleteTypeIndexRegistration: No registration found for ${t.instance}`);const r=e.statementsMatching(n,null,null,t.scope.index);await e.updater.update(r,[])},getScopedAppsFromIndex:d}}function _n(e,t){const n=Zt.graph();Zt.fetcher(n,{fetch:e.fetch}),n.updater=new Zt.UpdateManager(n),n.features=[];const r=new sn(t),i=rn(n),a=function(e){function t(t){return e.statementsMatching(t,(0,Zt.sym)("http://www.w3.org/ns/ldp#contains"),void 0).map(e=>e.object)}function n(e){const t=e.value;return"/"===t.charAt(t.length-1)}return{isContainer:n,createContainer:async function(t){if(!n((0,Zt.sym)(t)))throw new Error(`Not a container URL ${t}`);const r=await e.fetcher._fetch(t,{method:"PUT",headers:{"Content-Type":"text/turtle","If-None-Match":"*",Link:'<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"'},body:" "});if("2"!==r.status.toString()[0])throw new Error(`Not OK: got ${r.status} response while creating container at ${t}`)},getContainerElements:t,getContainerMembers:async function(n){return await e.fetcher.load(n),t(n)}}}(n),o=function(e,t,n){async function r(t){let n;try{n=await e.fetcher.load(t)}catch(n){if(404!==n.response.status){if(401===n.response.status)throw new hn;if(403===n.response.status){if(ln(t))throw new mn;throw new gn}const e="createIfNotExists doc load error NOT 404: "+t+": "+n;throw new wn(n.status,n.message+e)}try{await e.fetcher.webOperation("PUT",t,{data:"",contentType:"text/turtle"})}catch(e){throw new yn("createIfNotExists: PUT FAILED: "+t+": "+e)}await e.fetcher.load(t)}return n}return{recursiveDelete:async function r(i){try{if(n.isContainer(i)){const a=await t.findAclDocUrl(i);await e.fetcher._fetch(a,{method:"DELETE"});const o=await n.getContainerMembers(i);await Promise.all(o.map(e=>r(e)))}const a=i.value;return e.fetcher._fetch(a,{method:"DELETE"})}catch(e){i.value}},setSinglePeerAccess:async function(n){let r=["@prefix acl: <http://www.w3.org/ns/auth/acl#>.","",`<#alice> a acl:Authorization;\n acl:agent <${n.ownerWebId}>;`,` acl:accessTo <${n.target}>;`,` acl:default <${n.target}>;`," acl:mode acl:Read, acl:Write, acl:Control.",""].join("\n");n.accessToModes&&(r+=["<#bobAccessTo> a acl:Authorization;",` acl:agent <${n.peerWebId}>;`,` acl:accessTo <${n.target}>;`,` acl:mode ${n.accessToModes}.`,""].join("\n")),n.defaultModes&&(r+=["<#bobDefault> a acl:Authorization;",` acl:agent <${n.peerWebId}>;`,` acl:default <${n.target}>;`,` acl:mode ${n.defaultModes}.`,""].join("\n"));const i=await t.findAclDocUrl((0,Zt.sym)(n.target));return e.fetcher._fetch(i,{method:"PUT",body:r,headers:[["Content-Type","text/turtle"]]})},createEmptyRdfDoc:async function(t,n){await e.fetcher.webOperation("PUT",t.uri,{data:`# ${new Date} ${n}\n `,contentType:"text/turtle"})},followOrCreateLink:async function(t,n,i,a){await e.fetcher.load(a);const o=e.any(t,n,null,a);if(o)return o;if(!e.updater.editable(a)){const e=`followOrCreateLink: cannot edit ${a.value}`;throw new bn(e)}try{await e.updater.update([],[(0,Zt.st)(t,n,i,a)])}catch(e){throw new yn(e)}try{await r(i)}catch(e){throw e}return i},loadOrCreateIfNotExists:r}}(n,i,a),s=xn(n,r,o),c=pn(n,s),l=dn(n,s,o,a),u=kn(n,r,s,o);return{store:n,authn:r,acl:i,inbox:l,chat:c,profile:s,typeIndex:u,load:function(e){return n.fetcher.load(e)},updatePromise:function(e,t=[]){return new Promise((r,i)=>{n.updater.update(e,t,function(e,t,n){t?r():i(new Error(n))})})},clearStore:function(){n.statements.slice().forEach(n.remove.bind(n))}}}const En=async(e,t)=>{const n=t&&t.credentials&&"omit"==t.credentials;return Xt.info.webId&&!n?Xt.fetch(e,t):window.fetch(e,t)},Cn=Symbol.for("solid-logic-singleton"),Sn="undefined"!=typeof window?window:o.g;const An=(Sn[Cn]||(Sn[Cn]=_n({fetch:En},Xt)),Sn[Cn]),Tn=[{name:"Solid Community",uri:"https://solidcommunity.net"},{name:"Solid Web",uri:"https://solidweb.org"},{name:"Solid Web ME",uri:"https://solidweb.me"},{name:"Inrupt.com",uri:"https://login.inrupt.com"}];function Pn(){const e=[...Tn],{host:t,origin:n}=new URL(location.href),r=e.map(({uri:e})=>new URL(e).host);return r.includes(t)||r.some(e=>function(e,t){const n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(t,e))||e.unshift({name:t,uri:n}),e}const Rn=An.authn,In=An.authn.authSession,Fn=An.store},1813(e){"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/ace+json":{"source":"iana","compressible":true},"application/ace-groupcomm+cbor":{"source":"iana"},"application/ace-trl+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/aif+cbor":{"source":"iana"},"application/aif+json":{"source":"iana","compressible":true},"application/alto-cdni+json":{"source":"iana","compressible":true},"application/alto-cdnifilter+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-propmap+json":{"source":"iana","compressible":true},"application/alto-propmapparams+json":{"source":"iana","compressible":true},"application/alto-tips+json":{"source":"iana","compressible":true},"application/alto-tipsparams+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/appinstaller":{"compressible":false,"extensions":["appinstaller"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/appx":{"compressible":false,"extensions":["appx"]},"application/appxbundle":{"compressible":false,"extensions":["appxbundle"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/automationml-aml+xml":{"source":"iana","compressible":true,"extensions":["aml"]},"application/automationml-amlx+zip":{"source":"iana","compressible":false,"extensions":["amlx"]},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/bufr":{"source":"iana"},"application/c2pa":{"source":"iana"},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/ce+cbor":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/cid-edhoc+cbor-seq":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/city+json-seq":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-eap":{"source":"iana"},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/concise-problem-details+cbor":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cose-x509":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwl":{"source":"iana","extensions":["cwl"]},"application/cwl+json":{"source":"iana","compressible":true},"application/cwl+yaml":{"source":"iana"},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana","extensions":["dcm"]},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dpop+jwt":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/eat+cwt":{"source":"iana"},"application/eat+jwt":{"source":"iana"},"application/eat-bun+cbor":{"source":"iana"},"application/eat-bun+json":{"source":"iana","compressible":true},"application/eat-ucs+cbor":{"source":"iana"},"application/eat-ucs+json":{"source":"iana","compressible":true},"application/ecmascript":{"source":"apache","compressible":true,"extensions":["ecma"]},"application/edhoc+cbor-seq":{"source":"iana"},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.legacyesn+json":{"source":"iana","compressible":true},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/entity-statement+jwt":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdf":{"source":"iana","extensions":["fdf"]},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geopose+json":{"source":"iana","compressible":true},"application/geoxacml+json":{"source":"iana","compressible":true},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gnap-binding-jws":{"source":"iana"},"application/gnap-binding-jwsd":{"source":"iana"},"application/gnap-binding-rotation-jws":{"source":"iana"},"application/gnap-binding-rotation-jwsd":{"source":"iana"},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/grib":{"source":"iana"},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"iana","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"apache","charset":"UTF-8","compressible":true,"extensions":["js"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/jscontact+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jsonpath":{"source":"iana"},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwk-set+jwt":{"source":"iana"},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/linkset":{"source":"iana"},"application/linkset+json":{"source":"iana","compressible":true},"application/load-control+xml":{"source":"iana","compressible":true},"application/logout+jwt":{"source":"iana"},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msix":{"compressible":false,"extensions":["msix"]},"application/msixbundle":{"compressible":false,"extensions":["msixbundle"]},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":true,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/ohttp-keys":{"source":"iana"},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["sig","asc"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/private-token-issuer-directory":{"source":"iana"},"application/private-token-request":{"source":"iana"},"application/private-token-response":{"source":"iana"},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/provided-claims+jwt":{"source":"iana"},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.implied-document+xml":{"source":"iana","compressible":true},"application/prs.implied-executable":{"source":"iana"},"application/prs.implied-object+json":{"source":"iana","compressible":true},"application/prs.implied-object+json-seq":{"source":"iana"},"application/prs.implied-object+yaml":{"source":"iana"},"application/prs.implied-structure":{"source":"iana"},"application/prs.mayfile":{"source":"iana"},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.vcfbzip2":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true,"extensions":["xsf"]},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"apache"},"application/reputon+json":{"source":"iana","compressible":true},"application/resolve-response+jwt":{"source":"iana"},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-checklist":{"source":"iana"},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-signed-tal":{"source":"iana"},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"apache"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana","extensions":["sql"]},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/sslkeylogfile":{"source":"iana"},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/st2110-41":{"source":"iana"},"application/stix+json":{"source":"iana","compressible":true},"application/stratum":{"source":"iana"},"application/swid+cbor":{"source":"iana"},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tm+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toc+cbor":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"source":"iana","compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/trust-chain+json":{"source":"iana","compressible":true},"application/trust-mark+jwt":{"source":"iana"},"application/trust-mark-delegation+jwt":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/uccs+cbor":{"source":"iana"},"application/ujcs+json":{"source":"iana","compressible":true},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vc":{"source":"iana"},"application/vc+cose":{"source":"iana"},"application/vc+jwt":{"source":"iana"},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.1ob":{"source":"iana"},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3a+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ach+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc8+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.5gsa2x":{"source":"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gsv2x":{"source":"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.crs+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.current-location-discovery+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.seal-group-doc+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-network-qos-management-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-ue-config-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-unicast-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-user-profile-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.v2x":{"source":"iana"},"application/vnd.3gpp.vae-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acm.addressxfer+json":{"source":"iana","compressible":true},"application/vnd.acm.chatbot+json":{"source":"iana","compressible":true},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"apache","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"apache"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.parquet":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.apexlang":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"apache"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autodesk.fbx":{"extensions":["fbx"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.belightsoft.lhzd+zip":{"source":"iana","compressible":false},"application/vnd.belightsoft.lhzl+zip":{"source":"iana","compressible":false},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.bzip3":{"source":"iana"},"application/vnd.c3voc.schedule+xml":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{"source":"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{"source":"iana"},"application/vnd.cncf.helm.config.v1+json":{"source":"iana","compressible":true},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datalog":{"source":"iana"},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.dcmp+xml":{"source":"iana","compressible":true,"extensions":["dcmp"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.eln+zip":{"source":"iana","compressible":false},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.erofs":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"apache","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{"source":"iana","charset":"XML-BASED","compressible":true},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.freelog.comic":{"source":"iana"},"application/vnd.frogans.fnc":{"source":"apache","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"apache","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.ga4gh.passport+jwt":{"source":"iana"},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.genozip":{"source":"iana"},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.gentoo.catmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.ebuild":{"source":"iana"},"application/vnd.gentoo.eclass":{"source":"iana"},"application/vnd.gentoo.gpkg":{"source":"iana"},"application/vnd.gentoo.manifest":{"source":"iana"},"application/vnd.gentoo.pkgmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.xpak":{"source":"iana"},"application/vnd.geo+json":{"source":"apache","compressible":true},"application/vnd.geocube+xml":{"source":"apache","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.pinboard":{"source":"iana"},"application/vnd.geogebra.slides":{"source":"iana","extensions":["ggs"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.gnu.taler.exchange+json":{"source":"iana","compressible":true},"application/vnd.gnu.taler.merchant+json":{"source":"iana","compressible":true},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.drawing":{"compressible":false,"extensions":["gdraw"]},"application/vnd.google-apps.drive-sdk":{"compressible":false},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{"compressible":false},"application/vnd.google-apps.form":{"compressible":false,"extensions":["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{"compressible":false,"extensions":["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{"compressible":false,"extensions":["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.script":{"compressible":false,"extensions":["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{"compressible":false,"extensions":["gsite"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"apache","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true,"extensions":["xdcf"]},"application/vnd.gpxsee.map+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.hsl":{"source":"iana"},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"apache"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"apache","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"apache"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.ipfs.ipns-record":{"source":"iana"},"application/vnd.ipld.car":{"source":"iana"},"application/vnd.ipld.dag-cbor":{"source":"iana"},"application/vnd.ipld.dag-json":{"source":"iana"},"application/vnd.ipld.raw":{"source":"iana"},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kdl":{"source":"iana"},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.keyman.kmp+zip":{"source":"iana","compressible":false},"application/vnd.keyman.kmx":{"source":"iana"},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.ldev.productlicensing":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.mdl":{"source":"iana"},"application/vnd.mdl-mbsdf":{"source":"iana"},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.medicalholodeck.recordxr":{"source":"iana"},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mermaid":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.modl":{"source":"iana"},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-visio.viewer":{"extensions":["vdx"]},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msgpack":{"source":"iana"},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+cbor":{"source":"iana"},"application/vnd.nato.bindingdataobject+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+xml":{"source":"iana","compressible":true,"extensions":["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{"source":"iana","compressible":false},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"apache","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oai.workflows":{"source":"iana"},"application/vnd.oai.workflows+json":{"source":"iana","compressible":true},"application/vnd.oai.workflows+yaml":{"source":"iana"},"application/vnd.oasis.opendocument.base":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"apache","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-master-template":{"source":"iana"},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.onvif.metadata":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openvpi.dspx+json":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.procrate.brushset":{"extensions":["brushset"]},"application/vnd.procreate.brush":{"extensions":["brush"]},"application/vnd.procreate.dream":{"extensions":["drm"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.pt.mundusmundi":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true,"extensions":["xhtm"]},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.relpipe":{"source":"iana"},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.sketchometry":{"source":"iana"},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.smintio.portals.archive":{"source":"iana"},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sybyl.mol2":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uic.osdm+json":{"source":"iana","compressible":true},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml","uo"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.veraison.tsm-report+cbor":{"source":"iana"},"application/vnd.veraison.tsm-report+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vocalshaper.vsp4":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.wasmflow.wafl":{"source":"iana"},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordlift":{"source":"iana"},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xarin.cpj":{"source":"iana"},"application/vnd.xecrets-encrypted":{"source":"iana"},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/voucher-jws+json":{"source":"iana","compressible":true},"application/vp":{"source":"iana"},"application/vp+cose":{"source":"iana"},"application/vp+jwt":{"source":"iana"},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blender":{"extensions":["blend"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-compressed":{"extensions":["rar"]},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-ipynb+json":{"compressible":true,"extensions":["ipynb"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zip-compressed":{"extensions":["zip"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xfdf":{"source":"iana","extensions":["xfdf"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yaml":{"source":"iana"},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+cbor":{"source":"iana"},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yang-sid+json":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zip+dotlottie":{"extensions":["lottie"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana","extensions":["adts","aac"]},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flac":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/matroska":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/midi-clip":{"source":"iana"},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a","m4b"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"apache"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"source":"iana","compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp","dib"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/dpx":{"source":"iana","extensions":["dpx"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/j2c":{"source":"iana"},"image/jaii":{"source":"iana","extensions":["jaii"]},"image/jais":{"source":"iana","extensions":["jais"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpg","jpeg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm","jpgm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxl":{"source":"iana","extensions":["jxl"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false,"extensions":["jfif"]},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif","btf"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.clip":{"source":"iana"},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"iana","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-adobe-dng":{"extensions":["dng"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-emf":{"source":"iana"},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-wmf":{"source":"iana"},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/bhttp":{"source":"iana"},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/mls":{"source":"iana"},"message/news":{"source":"apache"},"message/ohttp-req":{"source":"iana"},"message/ohttp-res":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime","mht","mhtml"]},"message/s-http":{"source":"apache"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"apache"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/jt":{"source":"iana","extensions":["jt"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/prc":{"source":"iana","extensions":["prc"]},"model/step":{"source":"iana","extensions":["step","stp","stpnc","p21","210"]},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/u3d":{"source":"iana","extensions":["u3d"]},"model/vnd.bary":{"source":"iana","extensions":["bary"]},"model/vnd.cld":{"source":"iana","extensions":["cld"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana","extensions":["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usda":{"source":"iana","extensions":["usda"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"apache"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/hl7v2":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["md","markdown"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/prs.texi":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.exchangeable":{"source":"iana"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"apache"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.vcf":{"source":"iana"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vnd.zoo.kcl":{"source":"iana"},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/wgsl":{"source":"iana","extensions":["wgsl"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/evc":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/h266":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/lottie+json":{"source":"iana","compressible":true},"video/matroska":{"source":"iana"},"video/matroska-3d":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts","m2t","m2ts","mts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.planar":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"apache"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);s.r(i);var a={};t=t||[null,n({}),n([]),n(n)];for(var o=2&r&&e;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=n(o))Object.getOwnPropertyNames(o).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,s.d(i,a),i},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>e+".mashlib.min.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},i="Mashlib:",s.l=(e,t,n,a)=>{if(r[e])r[e].push(t);else{var o,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==i+n){o=p;break}}o||(c=!0,(o=document.createElement("script")).charset="utf-8",s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",i+n),o.src=e),r[e]=[t];var d=(t,n)=>{o.onerror=o.onload=null,clearTimeout(f);var i=r[e];if(delete r[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(n)),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),c&&document.head.appendChild(o)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="/",(()=>{var e={792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var a=s.p+s.u(t),o=new Error;s.l(a,n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,r[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,o,c]=n,l=0;if(a.some(t=>0!==e[t])){for(r in o)s.o(o,r)&&(s.m[r]=o[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)i=a[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkMashlib=self.webpackChunkMashlib||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c={};return(()=>{"use strict";s.r(c),s.d(c,{versionInfo:()=>r});var e=s(8230),t=s(7523),n=s(9332);const r={buildTime:"2026-02-18T23:18:37Z",commit:"2a60943d28cbee77f7a380d00ba4b7b3a7cc0166",npmInfo:{mashlib:"2.1.2",npm:"11.10.0",node:"20.20.0",acorn:"8.15.0",ada:"2.9.2",ares:"1.34.6",brotli:"1.1.0",cjs_module_lexer:"2.1.0",cldr:"47.0",icu:"77.1",llhttp:"9.3.0",modules:"115",napi:"9",nghttp2:"1.61.0",openssl:"3.0.17",simdutf:"6.4.2",tz:"2025b",undici:"6.23.0",unicode:"16.0",uv:"1.46.0",uvwasi:"0.0.23",v8:"11.3.244.8-node.33",zlib:"1.3.1-470d3a2"}},i=window,a=()=>{const e=localStorage.getItem("mashlib-theme"),t=window.matchMedia("(prefers-color-scheme: dark)").matches;"dark"===(e||(t?"dark":"light"))?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme")};a(),i.$rdf=e,i.panes=t,i.SolidLogic={authn:n.authn,authSession:n.authSession,store:n.store,solidLogicSingleton:n.solidLogicSingleton},i.mashlib={versionInfo:r,theme:{set:e=>{"dark"===e?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"),localStorage.setItem("mashlib-theme",e)},get:()=>"dark"===document.documentElement.getAttribute("data-theme")?"dark":"light",init:a}},i.panes.runDataBrowser=function(r){e.Fetcher.crossSiteProxyTemplate=window.origin+"/xss/?uri={uri}";try{const e=document.createElement("meta");e.setAttribute("name","monetization"),e.setAttribute("content",`$${window.location.host}`),document.head.appendChild(e)}catch(e){}n.authn.checkUser().then(function(e){return t.initMainPage(n.solidLogicSingleton.store,r)})},window.onpopstate=function(t){i.document.outline.GotoSubject(e.sym(window.document.location.href),!0,void 0,!0,void 0)},i.dump=function(e){}})(),c})());
|
|
461
|
+
t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,p=n?i-1:0,d=n?-1:1,f=e[t+p];for(p+=d,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+p],p+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+p],p+=d,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=l}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,p=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+p>=1?d/c:d*Math.pow(2,1-p))*c>=2&&(o++,c/=2),o+p>=u?(s=0,o=u):o+p>=1?(s=(t*c-1)*Math.pow(2,i),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+f]=255&o,f+=h,o/=256,l-=8);e[n+f-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.jws,n=e.KeyUtil,i=e.X509,a=e.crypto,o=e.hextob64u,s=e.b64tohex,c=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.parseJwt=function e(n){r.Log.debug("JoseUtil.parseJwt");try{var i=t.JWS.parse(n);return{header:i.headerObj,payload:i.payloadObj}}catch(e){r.Log.error(e)}},e.validateJwt=function(t,a,o,c,l,u,p){r.Log.debug("JoseUtil.validateJwt");try{if("RSA"===a.kty)if(a.e&&a.n)a=n.getKey(a);else{if(!a.x5c||!a.x5c.length)return r.Log.error("JoseUtil.validateJwt: RSA key missing key material",a),Promise.reject(new Error("RSA key missing key material"));var d=s(a.x5c[0]);a=i.getPublicKeyFromCertHex(d)}else{if("EC"!==a.kty)return r.Log.error("JoseUtil.validateJwt: Unsupported key type",a&&a.kty),Promise.reject(new Error(a.kty));if(!(a.crv&&a.x&&a.y))return r.Log.error("JoseUtil.validateJwt: EC key missing key material",a),Promise.reject(new Error("EC key missing key material"));a=n.getKey(a)}return e._validateJwt(t,a,o,c,l,u,p)}catch(e){return r.Log.error(e&&e.message||e),Promise.reject("JWT validation failed")}},e.validateJwtAttributes=function(t,n,i,a,o,s){a||(a=0),o||(o=parseInt(Date.now()/1e3));var c=e.parseJwt(t).payload;if(!c.iss)return r.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==n)return r.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return r.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===i||Array.isArray(c.aud)&&c.aud.indexOf(i)>=0))return r.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==i)return r.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!s){var l=o+a,u=o-a;if(!c.iat)return r.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(l<c.iat)return r.Log.error("JoseUtil._validateJwt: iat is in the future",c.iat),Promise.reject(new Error("iat is in the future: "+c.iat));if(c.nbf&&l<c.nbf)return r.Log.error("JoseUtil._validateJwt: nbf is in the future",c.nbf),Promise.reject(new Error("nbf is in the future: "+c.nbf));if(!c.exp)return r.Log.error("JoseUtil._validateJwt: exp was not provided"),Promise.reject(new Error("exp was not provided"));if(c.exp<u)return r.Log.error("JoseUtil._validateJwt: exp is in the past",c.exp),Promise.reject(new Error("exp is in the past:"+c.exp))}return Promise.resolve(c)},e._validateJwt=function(n,i,a,o,s,l,u){return e.validateJwtAttributes(n,a,o,s,l,u).then(function(e){try{return t.JWS.verify(n,i,c)?e:(r.Log.error("JoseUtil._validateJwt: signature validation failed"),Promise.reject(new Error("signature validation failed")))}catch(e){return r.Log.error(e&&e.message||e),Promise.reject(new Error("signature validation failed"))}})},e.hashString=function e(t,n){try{return a.Util.hashString(t,n)}catch(e){r.Log.error(e)}},e.hexToBase64Url=function e(t){try{return o(t)}catch(e){r.Log.error(e)}},e}()};var r=n(0);e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SigninResponse=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(3);t.SigninResponse=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.UrlUtility.parseUrlFragment(t,n);this.error=r.error,this.error_description=r.error_description,this.error_uri=r.error_uri,this.code=r.code,this.state=r.state,this.id_token=r.id_token,this.session_state=r.session_state,this.access_token=r.access_token,this.token_type=r.token_type,this.scope=r.scope,this.profile=void 0,this.expires_in=r.expires_in}return r(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutRequest=void 0;var r=n(0),i=n(3),a=n(9);t.SignoutRequest=function e(t){var n=t.url,o=t.id_token_hint,s=t.post_logout_redirect_uri,c=t.data,l=t.extraQueryParams,u=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var p in o&&(n=i.UrlUtility.addQueryParam(n,"id_token_hint",o)),s&&(n=i.UrlUtility.addQueryParam(n,"post_logout_redirect_uri",s),c&&(this.state=new a.State({data:c,request_type:u}),n=i.UrlUtility.addQueryParam(n,"state",this.state.id))),l)n=i.UrlUtility.addQueryParam(n,p,l[p]);this.url=n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutResponse=void 0;var r=n(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=r.UrlUtility.parseUrlFragment(t,"?");this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.state=n.state}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryWebStorage=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.InMemoryWebStorage=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data={}}return e.prototype.getItem=function(e){return i.Log.debug("InMemoryWebStorage.getItem",e),this._data[e]},e.prototype.setItem=function(e,t){i.Log.debug("InMemoryWebStorage.setItem",e),this._data[e]=t},e.prototype.removeItem=function(e){i.Log.debug("InMemoryWebStorage.removeItem",e),delete this._data[e]},e.prototype.key=function(e){return Object.getOwnPropertyNames(this._data)[e]},r(e,[{key:"length",get:function(){return Object.getOwnPropertyNames(this._data).length}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManager=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(10),o=n(39),s=n(15),c=n(45),l=n(47),u=n(18),p=n(8),d=n(20),f=n(11),h=n(4);t.UserManager=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SilentRenewService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.TokenClient,m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h.JoseUtil;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),n instanceof o.UserManagerSettings||(n=new o.UserManagerSettings(n));var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return g._events=new c.UserManagerEvents(n),g._silentRenewService=new r(g),g.settings.automaticSilentRenew&&(i.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),g.startSilentRenew()),g.settings.monitorSession&&(i.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),g._sessionMonitor=new a(g)),g._tokenRevocationClient=new s(g._settings),g._tokenClient=new p(g._settings),g._joseUtil=m,g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then(function(t){return t?(i.Log.info("UserManager.getUser: user loaded"),e._events.load(t,!1),t):(i.Log.info("UserManager.getUser: user not found in storage"),null)})},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then(function(){i.Log.info("UserManager.removeUser: user removed from storage"),e._events.unload()})},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:r";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then(function(){i.Log.info("UserManager.signinRedirect: successful")})},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then(function(e){return e.profile&&e.profile.sub?i.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinRedirectCallback: no sub"),e})},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:p";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display="popup",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopup: no sub")),e})):(i.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopupCallback: no sub")),e}).catch(function(e){i.Log.error(e.message)})},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},t),this._loadUser().then(function(n){return n&&n.refresh_token?(t.refresh_token=n.refresh_token,e._useRefreshToken(t)):(t.request_type="si:s",t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&n&&n.id_token,n&&e._settings.validateSubOnSilentRenew&&(i.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",n.profile.sub),t.current_sub=n.profile.sub),e._signinSilentIframe(t))})},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then(function(t){return t?t.access_token?e._loadUser().then(function(n){if(n){var r=Promise.resolve();return t.id_token&&(r=e._validateIdTokenFromTokenRefreshToken(n.profile,t.id_token)),r.then(function(){return i.Log.debug("UserManager._useRefreshToken: refresh token response success"),n.id_token=t.id_token||n.id_token,n.access_token=t.access_token,n.refresh_token=t.refresh_token||n.refresh_token,n.expires_in=t.expires_in,e.storeUser(n).then(function(){return e._events.load(n),n})})}return null}):(i.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(i.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var n=this;return this._metadataService.getIssuer().then(function(r){return n.settings.getEpochTime().then(function(a){return n._joseUtil.validateJwtAttributes(t,r,n._settings.client_id,n._settings.clockSkew,a).then(function(t){return t?t.sub!==e.sub?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):t.auth_time&&t.auth_time!==e.auth_time?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):t.azp&&t.azp!==e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!t.azp&&e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})})},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||"none",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilent: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilent: no sub")),e})):(i.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilentCallback: no sub")),e})},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then(function(n){var r=n.state;return n.response,"si:r"===r.request_type?t.signinRedirectCallback(e):"si:p"===r.request_type?t.signinPopupCallback(e):"si:s"===r.request_type?t.signinSilentCallback(e):Promise.reject(new Error("invalid response_type in state"))})},t.prototype.signoutCallback=function(e,t){var n=this;return this.readSignoutResponseState(e).then(function(r){var i=r.state,a=r.response;return i?"so:r"===i.request_type?n.signoutRedirectCallback(e):"so:p"===i.request_type?n.signoutPopupCallback(e,t):Promise.reject(new Error("invalid response_type in state")):a})},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:s";var n=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return n?(t.redirect_uri=n,t.prompt="none",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||"openid",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:n,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return e.processSigninResponse(t.url).then(function(e){if(i.Log.debug("UserManager.querySessionStatus: got signin response"),e.session_state&&e.profile.sub)return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};i.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&("login_required"==t.message||"consent_required"==t.message||"interaction_required"==t.message||"account_selection_required"==t.message))return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:t.session_state};throw t})})):(i.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype._signin=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,r).then(function(t){return n._signinEnd(t.url,e)})},t.prototype._signinStart=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(r).then(function(t){return i.Log.debug("UserManager._signinStart: got navigator window handle"),n.createSigninRequest(e).then(function(e){return i.Log.debug("UserManager._signinStart: got signin request"),r.url=e.url,r.id=e.state.id,t.navigate(r)}).catch(function(e){throw t.close&&(i.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),t.close()),e})})},t.prototype._signinEnd=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then(function(e){i.Log.debug("UserManager._signinEnd: got signin response");var r=new s.User(e);if(n.current_sub){if(n.current_sub!==r.profile.sub)return i.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",r.profile.sub),Promise.reject(new Error("login_required"));i.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return t.storeUser(r).then(function(){return i.Log.debug("UserManager._signinEnd: user stored"),t._events.load(r),r})})},t.prototype._signinCallback=function(e,t){i.Log.debug("UserManager._signinCallback");var n="query"===this._settings.response_mode||!this._settings.response_mode&&p.SigninRequest.isCode(this._settings.response_type)?"?":"#";return t.callback(e,void 0,n)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:r";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var n={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,n).then(function(){i.Log.info("UserManager.signoutRedirect: successful")})},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then(function(e){return i.Log.info("UserManager.signoutRedirectCallback: successful"),e})},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:p";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display="popup",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){i.Log.info("UserManager.signoutPopup: successful")})},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&"boolean"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,"?").then(function(){i.Log.info("UserManager.signoutPopupCallback: successful")})},t.prototype._signout=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,r).then(function(e){return n._signoutEnd(e.url)})},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return arguments[1].prepare(n).then(function(r){return i.Log.debug("UserManager._signoutStart: got navigator window handle"),t._loadUser().then(function(a){return i.Log.debug("UserManager._signoutStart: loaded current user from storage"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(a):Promise.resolve()).then(function(){var o=e.id_token_hint||a&&a.id_token;return o&&(i.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),e.id_token_hint=o),t.removeUser().then(function(){return i.Log.debug("UserManager._signoutStart: user removed, creating signout request"),t.createSignoutRequest(e).then(function(e){return i.Log.debug("UserManager._signoutStart: got signout request"),n.url=e.url,e.state&&(n.id=e.state.id),r.navigate(n)})})})}).catch(function(e){throw r.close&&(i.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),r.close()),e})})},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then(function(e){return i.Log.debug("UserManager._signoutEnd: got signout response"),e})},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then(function(t){return e._revokeInternal(t,!0).then(function(n){if(n)return i.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then(function(){i.Log.debug("UserManager.revokeAccessToken: user stored"),e._events.load(t)})})}).then(function(){i.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},t.prototype._revokeInternal=function(e,t){var n=this;if(e){var r=e.access_token,a=e.refresh_token;return this._revokeAccessTokenInternal(r,t).then(function(e){return n._revokeRefreshTokenInternal(a,t).then(function(t){return e||t||i.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),e||t})})}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then(function(){return!0})},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(e){return e?(i.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(e)):(i.Log.debug("UserManager._loadUser: no user storageString"),null)})},t.prototype.storeUser=function(e){if(e){i.Log.debug("UserManager.storeUser: storing user");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return i.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},r(t,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),t}(a.OidcClient)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerSettings=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(n(0),n(5)),a=n(40),o=n(41),s=n(43),c=n(6),l=n(1),u=n(8);t.UserManagerSettings=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.popup_redirect_uri,i=n.popup_post_logout_redirect_uri,p=n.popupWindowFeatures,d=n.popupWindowTarget,f=n.silent_redirect_uri,h=n.silentRequestTimeout,m=n.automaticSilentRenew,g=void 0!==m&&m,v=n.validateSubOnSilentRenew,b=void 0!==v&&v,y=n.includeIdTokenInSilentRenew,w=void 0===y||y,x=n.monitorSession,k=void 0===x||x,_=n.monitorAnonymousSession,E=void 0!==_&&_,C=n.checkSessionInterval,S=void 0===C?2e3:C,A=n.stopCheckSessionOnError,T=void 0===A||A,P=n.query_status_response_type,R=n.revokeAccessTokenOnSignout,I=void 0!==R&&R,F=n.accessTokenExpiringNotificationTime,N=void 0===F?60:F,O=n.redirectNavigator,L=void 0===O?new a.RedirectNavigator:O,j=n.popupNavigator,M=void 0===j?new o.PopupNavigator:j,D=n.iframeNavigator,U=void 0===D?new s.IFrameNavigator:D,B=n.userStore,z=void 0===B?new c.WebStorageStateStore({store:l.Global.sessionStorage}):B;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var H=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));return H._popup_redirect_uri=r,H._popup_post_logout_redirect_uri=i,H._popupWindowFeatures=p,H._popupWindowTarget=d,H._silent_redirect_uri=f,H._silentRequestTimeout=h,H._automaticSilentRenew=g,H._validateSubOnSilentRenew=b,H._includeIdTokenInSilentRenew=w,H._accessTokenExpiringNotificationTime=N,H._monitorSession=k,H._monitorAnonymousSession=E,H._checkSessionInterval=S,H._stopCheckSessionOnError=T,P?H._query_status_response_type=P:arguments[0]&&arguments[0].response_type?H._query_status_response_type=u.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":H._query_status_response_type="id_token",H._revokeAccessTokenOnSignout=I,H._redirectNavigator=L,H._popupNavigator=M,H._iframeNavigator=U,H._userStore=z,H}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),t}(i.OidcClientSettings)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectNavigator=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.RedirectNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(){return Promise.resolve(this)},e.prototype.navigate=function(e){return e&&e.url?(e.useReplaceToNavigate?window.location.replace(e.url):window.location=e.url,Promise.resolve()):(i.Log.error("RedirectNavigator.navigate: No url provided"),Promise.reject(new Error("No url provided")))},r(e,[{key:"url",get:function(){return window.location.href}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopupNavigator=void 0;var r=n(0),i=n(42);t.PopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.PopupWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t,n,a){r.Log.debug("PopupNavigator.callback");try{return i.PopupWindow.notifyOpener(t,n,a),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopupWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(3);t.PopupWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t});var r=t.popupWindowTarget||"_blank",a=t.popupWindowFeatures||"location=no,toolbar=no,width=500,height=500,left=100,top=100;";this._popup=window.open("",r,a),this._popup&&(i.Log.debug("PopupWindow.ctor: popup successfully created"),this._checkForPopupClosedTimer=window.setInterval(this._checkForPopupClosed.bind(this),500))}return e.prototype.navigate=function(e){return this._popup?e&&e.url?(i.Log.debug("PopupWindow.navigate: Setting URL in popup"),this._id=e.id,this._id&&(window["popupCallback_"+e.id]=this._callback.bind(this)),this._popup.focus(),this._popup.window.location=e.url):(this._error("PopupWindow.navigate: no url provided"),this._error("No url provided")):this._error("PopupWindow.navigate: Error opening popup window"),this.promise},e.prototype._success=function(e){i.Log.debug("PopupWindow.callback: Successful response from popup window"),this._cleanup(),this._resolve(e)},e.prototype._error=function(e){i.Log.error("PopupWindow.error: ",e),this._cleanup(),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup(!1)},e.prototype._cleanup=function(e){i.Log.debug("PopupWindow.cleanup"),window.clearInterval(this._checkForPopupClosedTimer),this._checkForPopupClosedTimer=null,delete window["popupCallback_"+this._id],this._popup&&!e&&this._popup.close(),this._popup=null},e.prototype._checkForPopupClosed=function(){this._popup&&!this._popup.closed||this._error("Popup window closed")},e.prototype._callback=function(e,t){this._cleanup(t),e?(i.Log.debug("PopupWindow.callback success"),this._success({url:e})):(i.Log.debug("PopupWindow.callback: Invalid response from popup"),this._error("Invalid response from popup"))},e.notifyOpener=function(e,t,n){if(window.opener){if(e=e||window.location.href){var r=a.UrlUtility.parseUrlFragment(e,n);if(r.state){var o="popupCallback_"+r.state,s=window.opener[o];s?(i.Log.debug("PopupWindow.notifyOpener: passing url message to opener"),s(e,t)):i.Log.warn("PopupWindow.notifyOpener: no matching callback found on opener")}else i.Log.warn("PopupWindow.notifyOpener: no state found in response url")}}else i.Log.warn("PopupWindow.notifyOpener: no window.opener. Can't complete notification.")},r(e,[{key:"promise",get:function(){return this._promise}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameNavigator=void 0;var r=n(0),i=n(44);t.IFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.IFrameWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t){r.Log.debug("IFrameNavigator.callback");try{return i.IFrameWindow.notifyParent(t),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameWindow=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);t.IFrameWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t}),this._boundMessageEvent=this._message.bind(this),window.addEventListener("message",this._boundMessageEvent,!1),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.width=0,this._frame.height=0,window.document.body.appendChild(this._frame)}return e.prototype.navigate=function(e){if(e&&e.url){var t=e.silentRequestTimeout||1e4;i.Log.debug("IFrameWindow.navigate: Using timeout of:",t),this._timer=window.setTimeout(this._timeout.bind(this),t),this._frame.src=e.url}else this._error("No url provided");return this.promise},e.prototype._success=function(e){this._cleanup(),i.Log.debug("IFrameWindow: Successful response from frame window"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._frame&&(i.Log.debug("IFrameWindow: cleanup"),window.removeEventListener("message",this._boundMessageEvent,!1),window.clearTimeout(this._timer),window.document.body.removeChild(this._frame),this._timer=null,this._frame=null,this._boundMessageEvent=null)},e.prototype._timeout=function(){i.Log.debug("IFrameWindow.timeout"),this._error("Frame window timed out")},e.prototype._message=function(e){if(i.Log.debug("IFrameWindow.message"),this._timer&&e.origin===this._origin&&e.source===this._frame.contentWindow&&"string"==typeof e.data&&(e.data.startsWith("http://")||e.data.startsWith("https://"))){var t=e.data;t?this._success({url:t}):this._error("Invalid response from frame")}},e.notifyParent=function(e){i.Log.debug("IFrameWindow.notifyParent"),(e=e||window.location.href)&&(i.Log.debug("IFrameWindow.notifyParent: posting url message to parent"),window.parent.postMessage(e,location.protocol+"//"+location.host))},r(e,[{key:"promise",get:function(){return this._promise}},{key:"_origin",get:function(){return location.protocol+"//"+location.host}}]),e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerEvents=void 0;var r=n(0),i=n(16),a=n(17);t.UserManagerEvents=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._userLoaded=new a.Event("User loaded"),r._userUnloaded=new a.Event("User unloaded"),r._silentRenewError=new a.Event("Silent renew error"),r._userSignedIn=new a.Event("User signed in"),r._userSignedOut=new a.Event("User signed out"),r._userSessionChanged=new a.Event("User session changed"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.load=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r.Log.debug("UserManagerEvents.load"),e.prototype.load.call(this,t),n&&this._userLoaded.raise(t)},t.prototype.unload=function(){r.Log.debug("UserManagerEvents.unload"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){r.Log.debug("UserManagerEvents._raiseSilentRenewError",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){r.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){r.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){r.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},t}(i.AccessTokenEvents)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=n(1),o=n(17);t.Timer=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Global.timer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return o._timer=r,o._nowFunc=i||function(){return Date.now()/1e3},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)i.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),i.Log.debug("Timer.init timer "+this._name+" for duration:",e),this._expiration=t;var n=5;e<n&&(n=e),this._timerHandle=this._timer.setInterval(this._callback.bind(this),1e3*n)}},t.prototype.cancel=function(){this._timerHandle&&(i.Log.debug("Timer.cancel: ",this._name),this._timer.clearInterval(this._timerHandle),this._timerHandle=null)},t.prototype._callback=function(){var t=this._expiration-this.now;i.Log.debug("Timer.callback; "+this._name+" timer expires in:",t),this._expiration<=this.now&&(this.cancel(),e.prototype.raise.call(this))},r(t,[{key:"now",get:function(){return parseInt(this._nowFunc())}},{key:"expiration",get:function(){return this._expiration}}]),t}(o.Event)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SilentRenewService=void 0;var r=n(0);t.SilentRenewService=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._userManager=t}return e.prototype.start=function(){this._callback||(this._callback=this._tokenExpiring.bind(this),this._userManager.events.addAccessTokenExpiring(this._callback),this._userManager.getUser().then(function(e){}).catch(function(e){r.Log.error("SilentRenewService.start: Error from getUser:",e.message)}))},e.prototype.stop=function(){this._callback&&(this._userManager.events.removeAccessTokenExpiring(this._callback),delete this._callback)},e.prototype._tokenExpiring=function(){var e=this;this._userManager.signinSilent().then(function(e){r.Log.debug("SilentRenewService._tokenExpiring: Silent token renewal successful")},function(t){r.Log.error("SilentRenewService._tokenExpiring: Error from signinSilent:",t.message),e._userManager.events._raiseSilentRenewError(t)})},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupNavigator=void 0;var r=n(21);t.CordovaPopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaIFrameNavigator=void 0;var r=n(21);t.CordovaIFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){e.popupWindowFeatures="hidden=yes";var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Version="1.11.6"}])},e.exports=t()},7(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,a,o;if(s(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=c(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,console&&console.warn}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=a[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,a,o;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},386(e){const t={acl:"http://www.w3.org/ns/auth/acl#",arg:"http://www.w3.org/ns/pim/arg#",as:"https://www.w3.org/ns/activitystreams#",bookmark:"http://www.w3.org/2002/01/bookmark#",cal:"http://www.w3.org/2002/12/cal/ical#",cco:"http://www.ontologyrepository.com/CommonCoreOntologies/",cert:"http://www.w3.org/ns/auth/cert#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",doap:"http://usefulinc.com/ns/doap#",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",gpx:"http://www.w3.org/ns/pim/gpx#",gr:"http://purl.org/goodrelations/v1#",http:"http://www.w3.org/2007/ont/http#",httph:"http://www.w3.org/2007/ont/httph#",icalTZ:"http://www.w3.org/2002/12/cal/icaltzd#",ldp:"http://www.w3.org/ns/ldp#",link:"http://www.w3.org/2007/ont/link#",log:"http://www.w3.org/2000/10/swap/log#",meeting:"http://www.w3.org/ns/pim/meeting#",mo:"http://purl.org/ontology/mo/",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pad:"http://www.w3.org/ns/pim/pad#",patch:"http://www.w3.org/ns/pim/patch#",prov:"http://www.w3.org/ns/prov#",pto:"http://www.productontology.org/id/",qu:"http://www.w3.org/2000/10/swap/pim/qif#",trip:"http://www.w3.org/ns/pim/trip#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rss:"http://purl.org/rss/1.0/",sched:"http://www.w3.org/ns/pim/schedule#",schema:"http://schema.org/",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",solid:"http://www.w3.org/ns/solid/terms#",space:"http://www.w3.org/ns/pim/space#",stat:"http://www.w3.org/ns/posix/stat#",tab:"http://www.w3.org/2007/ont/link#",tabont:"http://www.w3.org/2007/ont/link#",ui:"http://www.w3.org/ns/ui#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",wf:"http://www.w3.org/2005/01/wf/flow#",xsd:"http://www.w3.org/2001/XMLSchema#"};e.exports=function(e={namedNode:e=>e}){const n={};for(const r in t){const i=t[r];n[r]=function(t=""){return e.namedNode(i+t)}}return n}}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e].call(n.exports,n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const s=new TextEncoder,c=new TextDecoder;function l(...e){const t=e.reduce((e,{length:t})=>e+t,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}const u=e=>(e=>{let t=e;"string"==typeof t&&(t=s.encode(t));const n=[];for(let e=0;e<t.length;e+=32768)n.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(n.join(""))})(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),p=e=>{let t=e;t instanceof Uint8Array&&(t=c.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(e=>{const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n})(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class d extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}d.code="ERR_JOSE_GENERIC";class f extends d{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=t}}f.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class h extends d{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=t}}h.code="ERR_JWT_EXPIRED";class m extends d{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}m.code="ERR_JOSE_ALG_NOT_ALLOWED";class g extends d{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}g.code="ERR_JOSE_NOT_SUPPORTED";(class extends d{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}).code="ERR_JWE_DECRYPTION_FAILED";(class extends d{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}).code="ERR_JWE_INVALID";class v extends d{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}v.code="ERR_JWS_INVALID";class b extends d{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}b.code="ERR_JWT_INVALID";(class extends d{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}).code="ERR_JWK_INVALID";class y extends d{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}y.code="ERR_JWKS_INVALID";class w extends d{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}w.code="ERR_JWKS_NO_MATCHING_KEY";class x extends d{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Symbol.asyncIterator,x.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class k extends d{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}k.code="ERR_JWKS_TIMEOUT";class _ extends d{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function E(e,t){const n=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new g(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}_.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";const C=crypto,S=e=>e instanceof CryptoKey,A=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if("number"!=typeof n||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function T(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function P(e,t){return e.name===t}function R(e){return parseInt(e.name.slice(4),10)}function I(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();e+=`one of ${t.join(", ")}, or ${n}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw new TypeError(e)}}function F(e,t,...n){switch(t){case"HS256":case"HS384":case"HS512":{if(!P(e.algorithm,"HMAC"))throw T("HMAC");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw T(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!P(e.algorithm,"RSASSA-PKCS1-v1_5"))throw T("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw T(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!P(e.algorithm,"RSA-PSS"))throw T("RSA-PSS");const n=parseInt(t.slice(2),10);if(R(e.algorithm.hash)!==n)throw T(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw T("Ed25519 or Ed448");break;case"Ed25519":if(!P(e.algorithm,"Ed25519"))throw T("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!P(e.algorithm,"ECDSA"))throw T("ECDSA");const n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw T(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}I(e,n)}function N(e,t,...n){if((n=n.filter(Boolean)).length>2){const t=n.pop();e+=`one of type ${n.join(", ")}, or ${t}.`}else 2===n.length?e+=`one of type ${n[0]} or ${n[1]}.`:e+=`of type ${n[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}const O=(e,...t)=>N("Key must be ",e,...t);function L(e,t,...n){return N(`Key for the ${e} algorithm must be `,t,...n)}const j=e=>!!S(e)||"KeyObject"===e?.[Symbol.toStringTag],M=["CryptoKey"];function D(e){if("object"!=typeof(t=e)||null===t||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function U(e){return D(e)&&"string"==typeof e.kty}const B=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:n}=function(e){let t,n;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},n=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new g('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},n=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},n=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new g('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"Ed25519":t={name:"Ed25519"},n=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new g('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new g('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:n}}(e),r=[t,e.ext??!1,e.key_ops??n],i={...e};return delete i.alg,delete i.use,C.subtle.importKey("jwk",i,...r)},z=e=>p(e);let H,q;const $=e=>"KeyObject"===e?.[Symbol.toStringTag],W=async(e,t,n,r,i=!1)=>{let a=e.get(t);if(a?.[r])return a[r];const o=await B({...n,alg:r});return i&&Object.freeze(t),a?a[r]=o:e.set(t,{[r]:o}),o},V=(e,t)=>{if($(e)){let n=e.export({format:"jwk"});return delete n.d,delete n.dp,delete n.dq,delete n.p,delete n.q,delete n.qi,n.k?z(n.k):(q||(q=new WeakMap),W(q,e,n,t))}if(U(e)){if(e.k)return p(e.k);q||(q=new WeakMap);return W(q,e,e,t,!0)}return e},G=(e,t)=>{if($(e)){let n=e.export({format:"jwk"});return n.k?z(n.k):(H||(H=new WeakMap),W(H,e,n,t))}if(U(e)){if(e.k)return p(e.k);H||(H=new WeakMap);return W(H,e,e,t,!0)}return e};async function K(e,t,n){if("sign"===n&&(t=await G(t,e)),"verify"===n&&(t=await V(t,e)),S(t))return F(t,e,n),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(O(t,...M));return C.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError(O(t,...M,"Uint8Array","JSON Web Key"))}const J=async(e,t,n,r)=>{const i=await K(e,t,"verify");A(e,i);const a=E(e,i.algorithm);try{return await C.subtle.verify(a,i,n,r)}catch{return!1}},Q=(...e)=>{const t=e.filter(Boolean);if(0===t.length||1===t.length)return!0;let n;for(const e of t){const t=Object.keys(e);if(n&&0!==n.size)for(const e of t){if(n.has(e))return!1;n.add(e)}else n=new Set(t)}return!0},Y=e=>e?.[Symbol.toStringTag],X=(e,t,n)=>{if(void 0!==t.use&&"sig"!==t.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&!0!==t.key_ops.includes?.(n))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${n}`);if(void 0!==t.alg&&t.alg!==e)throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},Z=(e,t,n,r)=>{if(!(t instanceof Uint8Array)){if(r&&U(t)){if(function(e){return U(e)&&"oct"===e.kty&&"string"==typeof e.k}(t)&&X(e,t,n))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!j(t))throw new TypeError(L(e,t,...M,"Uint8Array",r?"JSON Web Key":null));if("secret"!==t.type)throw new TypeError(`${Y(t)} instances for symmetric algorithms must be of type "secret"`)}};function ee(e,t,n,r){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?Z(t,n,r,e):((e,t,n,r)=>{if(r&&U(t))switch(n){case"sign":if(function(e){return"oct"!==e.kty&&"string"==typeof e.d}(t)&&X(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(e){return"oct"!==e.kty&&void 0===e.d}(t)&&X(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!j(t))throw new TypeError(L(e,t,...M,r?"JSON Web Key":null));if("secret"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===n&&"public"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===n&&"public"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===n&&"private"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===n&&"private"===t.type)throw new TypeError(`${Y(t)} instances for asymmetric algorithm encryption must be of type "public"`)})(t,n,r,e)}ee.bind(void 0,!1);const te=ee.bind(void 0,!0);const ne=function(e,t,n,r,i){if(void 0!==i.crit&&void 0===r?.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||void 0===r.crit)return new Set;if(!Array.isArray(r.crit)||0===r.crit.length||r.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let a;a=void 0!==n?new Map([...Object.entries(n),...t.entries()]):t;for(const t of r.crit){if(!a.has(t))throw new g(`Extension Header Parameter "${t}" is not recognized`);if(void 0===i[t])throw new e(`Extension Header Parameter "${t}" is missing`);if(a.get(t)&&void 0===r[t])throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(r.crit)},re=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw new TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function ie(e,t){if(!D(e))throw new TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw new TypeError('missing "k" (Key Value) Parameter value');return p(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new g('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return B({...e,alg:t});default:throw new g('Unsupported "kty" (Key Type) Parameter value')}}async function ae(e,t,n){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new v("Compact JWS must be a string or Uint8Array");const{0:r,1:i,2:a,length:o}=e.split(".");if(3!==o)throw new v("Invalid Compact JWS");const u=await async function(e,t,n){if(!D(e))throw new v("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new v('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new v("JWS Protected Header incorrect type");if(void 0===e.payload)throw new v("JWS Payload missing");if("string"!=typeof e.signature)throw new v("JWS Signature missing or incorrect type");if(void 0!==e.header&&!D(e.header))throw new v("JWS Unprotected Header incorrect type");let r={};if(e.protected)try{const t=p(e.protected);r=JSON.parse(c.decode(t))}catch{throw new v("JWS Protected Header is invalid")}if(!Q(r,e.header))throw new v("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const i={...r,...e.header};let a=!0;if(ne(v,new Map([["b64",!0]]),n?.crit,r,i).has("b64")&&(a=r.b64,"boolean"!=typeof a))throw new v('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:o}=i;if("string"!=typeof o||!o)throw new v('JWS "alg" (Algorithm) Header Parameter missing or invalid');const u=n&&re("algorithms",n.algorithms);if(u&&!u.has(o))throw new m('"alg" (Algorithm) Header Parameter value not allowed');if(a){if("string"!=typeof e.payload)throw new v("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new v("JWS Payload must be a string or an Uint8Array instance");let d=!1;"function"==typeof t?(t=await t(r,e),d=!0,te(o,t,"verify"),U(t)&&(t=await ie(t,o))):te(o,t,"verify");const f=l(s.encode(e.protected??""),s.encode("."),"string"==typeof e.payload?s.encode(e.payload):e.payload);let h,g;try{h=p(e.signature)}catch{throw new v("Failed to base64url decode the signature")}if(!await J(o,t,h,f))throw new _;if(a)try{g=p(e.payload)}catch{throw new v("Failed to base64url decode the payload")}else g="string"==typeof e.payload?s.encode(e.payload):e.payload;const b={payload:g};return void 0!==e.protected&&(b.protectedHeader=r),void 0!==e.header&&(b.unprotectedHeader=e.header),d?{...b,key:t}:b}({payload:i,protected:r,signature:a},t,n),d={payload:u.payload,protectedHeader:u.protectedHeader};return"function"==typeof t?{...d,key:u.key}:d}const oe=e=>Math.floor(e.getTime()/1e3),se=86400,ce=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,le=e=>{const t=ce.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]);let r;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":r=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":r=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":r=Math.round(3600*n);break;case"day":case"days":case"d":r=Math.round(n*se);break;case"week":case"weeks":case"w":r=Math.round(604800*n);break;default:r=Math.round(31557600*n)}return"-"===t[1]||"ago"===t[4]?-r:r},ue=e=>e.toLowerCase().replace(/^application\//,""),pe=(e,t,n={})=>{let r;try{r=JSON.parse(c.decode(t))}catch{}if(!D(r))throw new b("JWT Claims Set must be a top-level JSON object");const{typ:i}=n;if(i&&("string"!=typeof e.typ||ue(e.typ)!==ue(i)))throw new f('unexpected "typ" JWT header value',r,"typ","check_failed");const{requiredClaims:a=[],issuer:o,subject:s,audience:l,maxTokenAge:u}=n,p=[...a];void 0!==u&&p.push("iat"),void 0!==l&&p.push("aud"),void 0!==s&&p.push("sub"),void 0!==o&&p.push("iss");for(const e of new Set(p.reverse()))if(!(e in r))throw new f(`missing required "${e}" claim`,r,e,"missing");if(o&&!(Array.isArray(o)?o:[o]).includes(r.iss))throw new f('unexpected "iss" claim value',r,"iss","check_failed");if(s&&r.sub!==s)throw new f('unexpected "sub" claim value',r,"sub","check_failed");if(l&&(d=r.aud,m="string"==typeof l?[l]:l,!("string"==typeof d?m.includes(d):Array.isArray(d)&&m.some(Set.prototype.has.bind(new Set(d))))))throw new f('unexpected "aud" claim value',r,"aud","check_failed");var d,m;let g;switch(typeof n.clockTolerance){case"string":g=le(n.clockTolerance);break;case"number":g=n.clockTolerance;break;case"undefined":g=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:v}=n,y=oe(v||new Date);if((void 0!==r.iat||u)&&"number"!=typeof r.iat)throw new f('"iat" claim must be a number',r,"iat","invalid");if(void 0!==r.nbf){if("number"!=typeof r.nbf)throw new f('"nbf" claim must be a number',r,"nbf","invalid");if(r.nbf>y+g)throw new f('"nbf" claim timestamp check failed',r,"nbf","check_failed")}if(void 0!==r.exp){if("number"!=typeof r.exp)throw new f('"exp" claim must be a number',r,"exp","invalid");if(r.exp<=y-g)throw new h('"exp" claim timestamp check failed',r,"exp","check_failed")}if(u){const e=y-r.iat;if(e-g>("number"==typeof u?u:le(u)))throw new h('"iat" claim timestamp check failed (too far in the past)',r,"iat","check_failed");if(e<0-g)throw new f('"iat" claim timestamp check failed (it should be in the past)',r,"iat","check_failed")}return r};const de=async(e,t,n)=>{let r,i,a=!1;"function"==typeof AbortController&&(r=new AbortController,i=setTimeout(()=>{a=!0,r.abort()},t));const o=await fetch(e.href,{signal:r?r.signal:void 0,redirect:"manual",headers:n.headers}).catch(e=>{if(a)throw new k;throw e});if(void 0!==i&&clearTimeout(i),200!==o.status)throw new d("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await o.json()}catch{throw new d("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function fe(e){return D(e)}function he(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class me{constructor(e){if(this._cached=new WeakMap,!function(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(fe)}(e))throw new y("JSON Web Key Set malformed");this._jwks=he(e)}async getKey(e,t){const{alg:n,kid:r}={...e,...t?.header},i=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new g('Unsupported "alg" value for a JSON Web Key Set')}}(n),a=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof r&&(t=r===e.kid),t&&"string"==typeof e.alg&&(t=n===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t)switch(n){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv;break;case"Ed25519":t="Ed25519"===e.crv;break;case"EdDSA":t="Ed25519"===e.crv||"Ed448"===e.crv}return t}),{0:o,length:s}=a;if(0===s)throw new w;if(1!==s){const e=new x,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(const e of a)try{yield await ge(t,e,n)}catch{}},e}return ge(this._cached,o,n)}}async function ge(e,t,n){const r=e.get(t)||e.set(t,{}).get(t);if(void 0===r[n]){const e=await ie({...t,ext:!0},n);if(e instanceof Uint8Array||"public"!==e.type)throw new y("JSON Web Key Set members must be public keys");r[n]=e}return r[n]}function ve(e){const t=new me(e),n=async(e,n)=>t.getKey(e,n);return Object.defineProperties(n,{jwks:{value:()=>he(t._jwks),enumerable:!0,configurable:!1,writable:!1}}),n}let be;if("undefined"==typeof navigator||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){be=`${"jose"}/${"v5.10.0"}`}const ye=Symbol();class we{constructor(e,t){if(!(e instanceof URL))throw new TypeError("url must be an instance of URL");var n,r;this._url=new URL(e.href),this._options={agent:t?.agent,headers:t?.headers},this._timeoutDuration="number"==typeof t?.timeoutDuration?t?.timeoutDuration:5e3,this._cooldownDuration="number"==typeof t?.cooldownDuration?t?.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof t?.cacheMaxAge?t?.cacheMaxAge:6e5,void 0!==t?.[ye]&&(this._cache=t?.[ye],n=t?.[ye],r=this._cacheMaxAge,"object"==typeof n&&null!==n&&"uat"in n&&"number"==typeof n.uat&&!(Date.now()-n.uat>=r)&&"jwks"in n&&D(n.jwks)&&Array.isArray(n.jwks.keys)&&Array.prototype.every.call(n.jwks.keys,D)&&(this._jwksTimestamp=this._cache.uat,this._local=ve(this._cache.jwks)))}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._local&&this.fresh()||await this.reload();try{return await this._local(e,t)}catch(n){if(n instanceof w&&!1===this.coolingDown())return await this.reload(),this._local(e,t);throw n}}async reload(){this._pendingFetch&&("undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime)&&(this._pendingFetch=void 0);const e=new Headers(this._options.headers);be&&!e.has("User-Agent")&&(e.set("User-Agent",be),this._options.headers=Object.fromEntries(e.entries())),this._pendingFetch||(this._pendingFetch=de(this._url,this._timeoutDuration,this._options).then(e=>{this._local=ve(e),this._cache&&(this._cache.uat=Date.now(),this._cache.jwks=e),this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}const xe=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:u(e)};if(!S(e))throw new TypeError(O(e,...M,"Uint8Array"));if(!e.extractable)throw new TypeError("non-extractable CryptoKey cannot be exported as a JWK");const{ext:t,key_ops:n,alg:r,use:i,...a}=await C.subtle.exportKey("jwk",e);return a};async function ke(e){return xe(e)}const _e=async(e,t,n)=>{const r=await K(e,t,"sign");A(e,r);const i=await C.subtle.sign(E(e,r.algorithm),r,n);return new Uint8Array(i)};class Ee{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){if(!this._protectedHeader&&!this._unprotectedHeader)throw new v("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!Q(this._protectedHeader,this._unprotectedHeader))throw new v("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader};let r=!0;if(ne(v,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n).has("b64")&&(r=this._protectedHeader.b64,"boolean"!=typeof r))throw new v('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:i}=n;if("string"!=typeof i||!i)throw new v('JWS "alg" (Algorithm) Header Parameter missing or invalid');te(i,e,"sign");let a,o=this._payload;r&&(o=s.encode(u(o))),a=this._protectedHeader?s.encode(u(JSON.stringify(this._protectedHeader))):s.encode("");const p=l(a,s.encode("."),o),d=await _e(i,e,p),f={signature:u(d),payload:""};return r&&(f.payload=c.decode(o)),this._unprotectedHeader&&(f.header=this._unprotectedHeader),this._protectedHeader&&(f.protected=c.decode(a)),f}}class Ce{constructor(e){this._flattened=new Ee(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const n=await this._flattened.sign(e,t);if(void 0===n.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function Se(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class Ae{constructor(e={}){if(!D(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:Se("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:Se("setNotBefore",oe(e))}:this._payload={...this._payload,nbf:oe(new Date)+le(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:Se("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:Se("setExpirationTime",oe(e))}:this._payload={...this._payload,exp:oe(new Date)+le(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:oe(new Date)}:e instanceof Date?this._payload={...this._payload,iat:Se("setIssuedAt",oe(e))}:this._payload="string"==typeof e?{...this._payload,iat:Se("setIssuedAt",oe(new Date)+le(e))}:{...this._payload,iat:Se("setIssuedAt",e)},this}}class Te extends Ae{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new Ce(s.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new b("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}function Pe(e){const t=e?.modulusLength??2048;if("number"!=typeof t||t<2048)throw new g("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return t}async function Re(e,t){return async function(e,t){let n,r;switch(e){case"PS256":case"PS384":case"PS512":n={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Pe(t)},r=["sign","verify"];break;case"RS256":case"RS384":case"RS512":n={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Pe(t)},r=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":n={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Pe(t)},r=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":n={name:"ECDSA",namedCurve:"P-256"},r=["sign","verify"];break;case"ES384":n={name:"ECDSA",namedCurve:"P-384"},r=["sign","verify"];break;case"ES512":n={name:"ECDSA",namedCurve:"P-521"},r=["sign","verify"];break;case"Ed25519":n={name:"Ed25519"},r=["sign","verify"];break;case"EdDSA":{r=["sign","verify"];const e=t?.crv??"Ed25519";switch(e){case"Ed25519":case"Ed448":n={name:e};break;default:throw new g("Invalid or unsupported crv option provided")}break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{r=["deriveKey","deriveBits"];const e=t?.crv??"P-256";switch(e){case"P-256":case"P-384":case"P-521":n={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":n={name:e};break;default:throw new g("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new g('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return C.subtle.generateKey(n,t?.extractable??!1,r)}(e,t)}const Ie={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Fe;const Ne=new Uint8Array(16);const Oe=[];for(let e=0;e<256;++e)Oe.push((e+256).toString(16).slice(1));function Le(e,t=0){return(Oe[e[t+0]]+Oe[e[t+1]]+Oe[e[t+2]]+Oe[e[t+3]]+"-"+Oe[e[t+4]]+Oe[e[t+5]]+"-"+Oe[e[t+6]]+Oe[e[t+7]]+"-"+Oe[e[t+8]]+Oe[e[t+9]]+"-"+Oe[e[t+10]]+Oe[e[t+11]]+Oe[e[t+12]]+Oe[e[t+13]]+Oe[e[t+14]]+Oe[e[t+15]]).toLowerCase()}const je=function(e,t,n){if(Ie.randomUUID&&!t&&!e)return Ie.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!Fe){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fe=crypto.getRandomValues.bind(crypto)}return Fe(Ne)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Le(r)},Me="solidClientAuthn:",De=["ES256","RS256"],Ue="error",Be="login",ze="logout",He="newRefreshToken",qe="sessionExpired",$e="sessionExtended",We="sessionRestore",Ve="timeoutSet",Ge=["openid","offline_access","webid"];class Ke{handleables;constructor(e){this.handleables=e,this.handleables=e}async getProperHandler(e){const t=await Promise.all(this.handleables.map(t=>t.canHandle(...e)));for(let e=0;e<t.length;e+=1)if(t[e])return this.handleables[e];return null}async canHandle(...e){return null!==await this.getProperHandler(e)}async handle(...e){const t=await this.getProperHandler(e);if(t)return t.handle(...e);throw new Error(`[${this.constructor.name}] cannot find a suitable handler for: ${e.map(e=>{try{return JSON.stringify(e)}catch(t){return e.toString()}}).join(", ")}`)}}async function Je(e,t,n,r){let i,a;try{const{payload:a}=await async function(e,t,n){const r=await ae(e,t,n);if(r.protectedHeader.crit?.includes("b64")&&!1===r.protectedHeader.b64)throw new b("JWTs MUST NOT use unencoded payload");const i={payload:pe(r.protectedHeader,r.payload,n),protectedHeader:r.protectedHeader};return"function"==typeof t?{...i,key:r.key}:i}(e,function(e,t){const n=new we(e,t),r=async(e,t)=>n.getKey(e,t);return Object.defineProperties(r,{coolingDown:{get:()=>n.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>n.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>n.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>!!n._pendingFetch,enumerable:!0,configurable:!1},jwks:{value:()=>n._local?.jwks(),enumerable:!0,configurable:!1,writable:!1}}),r}(new URL(t)),{issuer:n,audience:r});i=a}catch(e){throw new Error(`Token verification failed: ${e.stack}`)}if("string"==typeof i.azp&&(a=i.azp),"string"==typeof i.webid)return{webId:i.webid,clientId:a};if("string"!=typeof i.sub)throw new Error(`The token ${JSON.stringify(i)} is invalid: it has no 'webid' claim and no 'sub' claim.`);try{return new URL(i.sub),{webId:i.sub,clientId:a}}catch(e){throw new Error(`The token has no 'webid' claim, and its 'sub' claim of [${i.sub}] is invalid as a URL - error [${e}].`)}}function Qe(e){try{const t=new URL(e),n=!t.searchParams.has("code")&&!t.searchParams.has("state"),r=""===t.hash;return n&&r}catch(e){return!1}}function Ye(e){const t=new URL(e);return t.searchParams.delete("state"),t.searchParams.delete("code"),t.searchParams.delete("error"),t.searchParams.delete("error_description"),t.searchParams.delete("iss"),t}class Xe{storageUtility;redirector;constructor(e,t){this.storageUtility=e,this.redirector=t,this.storageUtility=e,this.redirector=t}parametersGuard=e=>void 0!==e.issuerConfiguration.grantTypesSupported&&e.issuerConfiguration.grantTypesSupported.indexOf("authorization_code")>-1&&void 0!==e.redirectUrl;async canHandle(e){return this.parametersGuard(e)}async setupRedirectHandler({oidcLoginOptions:e,state:t,codeVerifier:n,targetUrl:r}){if(!this.parametersGuard(e))throw new Error("The authorization code grant requires a redirectUrl.");var i,a;await Promise.all([this.storageUtility.setForUser(t,{sessionId:e.sessionId}),this.storageUtility.setForUser(e.sessionId,{codeVerifier:n,issuer:e.issuer.toString(),redirectUrl:e.redirectUrl,dpop:Boolean(e.dpop).toString(),keepAlive:(i=e.keepAlive,a=!0,"boolean"==typeof i?Boolean(i):Boolean(a)).toString()})]),this.redirector.redirect(r,{handleRedirect:e.handleRedirect})}}class Ze{sessionInfoManager;constructor(e){this.sessionInfoManager=e,this.sessionInfoManager=e}async canHandle(){return!0}async handle(e){await this.sessionInfoManager.clear(e)}}class et{redirector;constructor(e){this.redirector=e,this.redirector=e}async canHandle(e,t){return"idp"===t?.logoutType}async handle(e,t){if("idp"!==t?.logoutType)throw new Error("Attempting to call idp logout handler to perform app logout");if(void 0===t.toLogoutUrl)throw new Error("Cannot perform IDP logout. Did you log in using the OIDC authentication flow?");this.redirector.redirect(t.toLogoutUrl(t),{handleRedirect:t.handleRedirect})}}class tt{handlers;constructor(e,t){this.handlers=[new Ze(e),new et(t)]}async canHandle(){return!0}async handle(e,t){for(const n of this.handlers)await n.canHandle(e,t)&&await n.handle(e,t)}}function nt(){return{isLoggedIn:!1,sessionId:je(),fetch:(...e)=>fetch(...e)}}async function rt(e,t){await Promise.all([t.deleteAllUserData(e,{secure:!1}),t.deleteAllUserData(e,{secure:!0})])}class it{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}update(e,t){throw new Error("Not Implemented")}set(e,t){throw new Error("Not Implemented")}get(e){throw new Error("Not implemented")}async getAll(){throw new Error("Not implemented")}async clear(e){return rt(e,this.storageUtility)}async register(e){throw new Error("Not implemented")}async getRegisteredSessionIdAll(){throw new Error("Not implemented")}async clearAll(){throw new Error("Not implemented")}async setOidcContext(e,t){throw new Error("Not implemented")}}function at({endSessionEndpoint:e,idTokenHint:t}){if(void 0!==e)return function({state:n,postLogoutUrl:r}){return function({endSessionEndpoint:e,idTokenHint:t,postLogoutRedirectUri:n,state:r}){const i=new URL(e);return void 0!==t&&i.searchParams.append("id_token_hint",t),void 0!==n&&(i.searchParams.append("post_logout_redirect_uri",n),void 0!==r&&i.searchParams.append("state",r)),i.toString()}({endSessionEndpoint:e,idTokenHint:t,state:n,postLogoutRedirectUri:r})}}function ot(e){try{return new URL(e),!0}catch{return!1}}async function st(e,t,n,r){let i;if(function(e,t){return t.scopesSupported.includes("webid")&&void 0!==e.clientId&&ot(e.clientId)}(e,t))i={clientId:e.clientId,clientName:e.clientName,clientType:"solid-oidc"};else{if(!function(e){return void 0!==e.clientId&&!ot(e.clientId)}(e))return r.getClient({sessionId:e.sessionId,clientName:e.clientName,redirectUrl:e.redirectUrl},t);i={clientId:e.clientId,clientSecret:e.clientSecret,clientName:e.clientName,clientType:"static"}}const a={clientId:i.clientId,clientType:i.clientType};return"static"===i.clientType&&(a.clientSecret=i.clientSecret),i.clientName&&(a.clientName=i.clientName),await n.setForUser(e.sessionId,a),i}const ct=(e,t)=>fetch(e,t);class lt{loginHandler;redirectHandler;logoutHandler;sessionInfoManager;issuerConfigFetcher;boundLogout;constructor(e,t,n,r,i){this.loginHandler=e,this.redirectHandler=t,this.logoutHandler=n,this.sessionInfoManager=r,this.issuerConfigFetcher=i,this.loginHandler=e,this.redirectHandler=t,this.logoutHandler=n,this.sessionInfoManager=r,this.issuerConfigFetcher=i}fetch=ct;logout=async(e,t)=>{await this.logoutHandler.handle(e,"idp"===t?.logoutType?{...t,toLogoutUrl:this.boundLogout}:t),this.fetch=ct,delete this.boundLogout};getSessionInfo=async e=>this.sessionInfoManager.get(e);getAllSessionInfo=async()=>this.sessionInfoManager.getAll()}async function ut(e,t,n){try{const[r,i,a,o,s]=await Promise.all([t.getForUser(e,"issuer",{errorIfNull:!0}),t.getForUser(e,"codeVerifier"),t.getForUser(e,"redirectUrl"),t.getForUser(e,"dpop",{errorIfNull:!0}),t.getForUser(e,"keepAlive")]);await t.deleteForUser(e,"codeVerifier");return{codeVerifier:i,redirectUrl:a,issuerConfig:await n.fetchConfig(r),dpop:"true"===o,keepAlive:"string"!=typeof s||"true"===s}}catch(t){throw new Error(`Failed to retrieve OIDC context from storage associated with session [${e}]: ${t}`)}}class pt{secureStorage;insecureStorage;constructor(e,t){this.secureStorage=e,this.insecureStorage=t,this.secureStorage=e,this.insecureStorage=t}getKey(e){return`solidClientAuthenticationUser:${e}`}async getUserData(e,t){const n=await(t?this.secureStorage:this.insecureStorage).get(this.getKey(e));if(void 0===n)return{};try{return JSON.parse(n)}catch(r){throw new Error(`Data for user [${e}] in [${t?"secure":"unsecure"}] storage is corrupted - expected valid JSON, but got: ${n}`)}}async setUserData(e,t,n){await(n?this.secureStorage:this.insecureStorage).set(this.getKey(e),JSON.stringify(t))}async get(e,t){const n=await(t?.secure?this.secureStorage:this.insecureStorage).get(e);if(void 0===n&&t?.errorIfNull)throw new Error(`[${e}] is not stored`);return n}async set(e,t,n){return(n?.secure?this.secureStorage:this.insecureStorage).set(e,t)}async delete(e,t){return(t?.secure?this.secureStorage:this.insecureStorage).delete(e)}async getForUser(e,t,n){const r=await this.getUserData(e,n?.secure);let i;if(r&&r[t]||(i=void 0),i=r[t],void 0===i&&n?.errorIfNull)throw new Error(`Field [${t}] for user [${e}] is not stored`);return i||void 0}async setForUser(e,t,n){let r;try{r=await this.getUserData(e,n?.secure)}catch{r={}}await this.setUserData(e,{...r,...t},n?.secure)}async deleteForUser(e,t,n){const r=await this.getUserData(e,n?.secure);delete r[t],await this.setUserData(e,r,n?.secure)}async deleteAllUserData(e,t){await(t?.secure?this.secureStorage:this.insecureStorage).delete(this.getKey(e))}}class dt{map={};async get(e){return this.map[e]||void 0}async set(e,t){this.map[e]=t}async delete(e){delete this.map[e]}}class ft extends Error{constructor(e){super(e)}}Error;class ht extends Error{missingFields;constructor(e){super(`Invalid response from OIDC provider: missing fields ${e}`),this.missingFields=e}}class mt extends Error{error;errorDescription;constructor(e,t,n){super(e),this.error=t,this.errorDescription=n}}function gt(e){const t=new URL(e);return new URL(t.pathname,t.origin).toString()}async function vt(e,t,n){return new Te({htu:gt(e),htm:t.toUpperCase(),jti:je()}).setProtectedHeader({alg:De[0],jwk:n.publicKey,typ:"dpop+jwt"}).setIssuedAt().sign(n.privateKey,{})}async function bt(e,t,n,r){if(void 0!==n)return async function(e,t,n,r){const i=new Headers(r?.headers);return i.set("Authorization",`DPoP ${t}`),i.set("DPoP",await vt(e,r?.method??"get",n)),{...r,headers:i}}(e,t,n,r);const i=new Headers(r?.headers);return i.set("Authorization",`Bearer ${t}`),{...r,headers:i}}async function yt(e,t,n,r,i=fetch){return i(t,await bt(t.toString(),e,r,n))}const wt=e=>void 0!==e?e-5>0?e-5:e:600;function xt(e,t){let n,r=e;const i=t?.refreshOptions;if(void 0!==i){const e=async()=>{try{const{accessToken:a,refreshToken:o,expiresIn:s}=await async function(e,t,n){const r=await e.tokenRefresher.refresh(e.sessionId,e.refreshToken,t);return n?.emit($e,r.expiresIn??600),{accessToken:r.accessToken,refreshToken:r.refreshToken,expiresIn:r.expiresIn}}(i,t.dpopKey,t.eventEmitter);r=a,void 0!==o&&(i.refreshToken=o),clearTimeout(n),n=setTimeout(e,1e3*wt(s)),t.eventEmitter?.emit(Ve,n)}catch(e){e instanceof mt&&(t?.eventEmitter?.emit(Ue,e.error,e.errorDescription),t?.eventEmitter?.emit(qe)),e instanceof ht&&e.missingFields.includes("access_token")&&t?.eventEmitter?.emit(qe)}};n=setTimeout(e,1e3*wt(t.expiresIn)),t.eventEmitter?.emit(Ve,n)}else if(void 0!==t&&void 0!==t.eventEmitter){const e=setTimeout(()=>{t.eventEmitter.emit(qe)},1e3*wt(t.expiresIn));t.eventEmitter.emit(Ve,e)}return async(e,n)=>{let i=await yt(r,e,n,t?.dpopKey,t?.fetch);const a=!i.ok&&(o=i.status,![401,403].includes(o));var o;if(i.ok||a)return i;return i.url!==e&&void 0!==t?.dpopKey&&(i=await yt(r,i.url,n,t.dpopKey,t.fetch)),i}}var kt=o(7),_t=o(516);function Et(e,t){if("string"!=typeof e.client_id)throw new Error(`Dynamic client registration failed: no client_id has been found on ${JSON.stringify(e)}`);if(t.redirectUrl&&function(e){return Array.isArray(e.redirect_uris)&&e.redirect_uris.every(e=>"string"==typeof e)}(e)&&e.redirect_uris[0]!==t.redirectUrl.toString())throw new Error(`Dynamic client registration failed: the returned redirect URIs ${JSON.stringify(e.redirect_uris)} don't match the provided ${JSON.stringify([t.redirectUrl.toString()])}`);return!0}async function Ct(e,t){if(!t.registrationEndpoint)throw new Error("Dynamic Registration could not be completed because the issuer has no registration endpoint.");if(!Array.isArray(t.idTokenSigningAlgValuesSupported))throw new Error("The OIDC issuer discovery profile is missing the 'id_token_signing_alg_values_supported' value, which is mandatory.");const n=(r=t.idTokenSigningAlgValuesSupported,De.find(e=>r.includes(e))??null);var r;const i={client_name:e.clientName,application_type:"web",redirect_uris:[e.redirectUrl?.toString()],subject_type:"public",token_endpoint_auth_method:"client_secret_basic",id_token_signed_response_alg:n,grant_types:["authorization_code","refresh_token"]},a=await fetch(t.registrationEndpoint.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(a.ok){const t=await a.json();return Et(t,e),{clientId:t.client_id,clientSecret:t.client_secret,expiresAt:t.client_secret_expires_at,idTokenSignedResponseAlg:t.id_token_signed_response_alg,clientType:"dynamic"}}throw 400===a.status&&function(e,t){if("invalid_redirect_uri"===e.error)throw new Error(`Dynamic client registration failed: the provided redirect uri [${t.redirectUrl?.toString()}] is invalid - ${e.error_description??""}`);if("invalid_client_metadata"===e.error)throw new Error(`Dynamic client registration failed: the provided client metadata ${JSON.stringify(t)} is invalid - ${e.error_description??""}`);throw new Error(`Dynamic client registration failed: ${e.error} - ${e.error_description??""}`)}(await a.json(),e),new Error(`Dynamic client registration failed: the server returned ${a.status} ${a.statusText} - ${await a.text()}`)}function St(e){return void 0!==e.error_description&&"string"==typeof e.error_description}function At(e,t){if(void 0!==(n=e).error&&"string"==typeof n.error)throw new mt(`Token endpoint returned error [${e.error}]${St(e)?`: ${e.error_description}`:""}${function(e){return void 0!==e.error_uri&&"string"==typeof e.error_uri}(e)?` (see ${e.error_uri})`:""}`,e.error,St(e)?e.error_description:void 0);var n;if(!function(e){return void 0!==e.access_token&&"string"==typeof e.access_token}(e))throw new ht(["access_token"]);if(!function(e){return void 0!==e.id_token&&"string"==typeof e.id_token}(e))throw new ht(["id_token"]);if(!function(e){return void 0!==e.token_type&&"string"==typeof e.token_type}(e))throw new ht(["token_type"]);if(!function(e){return void 0===e.expires_in||"number"==typeof e.expires_in}(e))throw new ht(["expires_in"]);if(!t&&"bearer"!==e.token_type.toLowerCase())throw new Error(`Invalid token endpoint response: requested a [Bearer] token, but got a 'token_type' value of [${e.token_type}].`);return e}async function Tt(e,t,n,r){!function(e,t){if(t.grantType&&(!e.grantTypesSupported||!e.grantTypesSupported.includes(t.grantType)))throw new Error(`The issuer [${e.issuer}] does not support the [${t.grantType}] grant`);if(!e.tokenEndpoint)throw new Error(`This issuer [${e.issuer}] does not have a token endpoint`)}(e,n);const i={"content-type":"application/x-www-form-urlencoded"};let a;r&&(a=await async function(){const{privateKey:e,publicKey:t}=await Re(De[0]),n={privateKey:e,publicKey:await ke(t)};return[n.publicKey.alg]=De,n}(),i.DPoP=await vt(e.tokenEndpoint,"POST",a)),t.clientSecret&&(i.Authorization=`Basic ${btoa(`${t.clientId}:${t.clientSecret}`)}`);const o={grant_type:n.grantType,redirect_uri:n.redirectUrl,code:n.code,code_verifier:n.codeVerifier,client_id:t.clientId},s={method:"POST",headers:i,body:new URLSearchParams(o).toString()},c=await fetch(e.tokenEndpoint,s),l=At(await c.json(),r),{webId:u,clientId:p}=await Je(l.id_token,e.jwksUri,e.issuer,t.clientId);return{accessToken:l.access_token,idToken:l.id_token,refreshToken:(d=l,void 0!==d.refresh_token&&"string"==typeof d.refresh_token?l.refresh_token:void 0),webId:u,clientId:p,dpopKey:a,expiresIn:l.expires_in};var d}async function Pt(e,t,n,r){if(void 0===n.clientId)throw new Error("No client ID available when trying to refresh the access token.");const i={grant_type:"refresh_token",refresh_token:e};let a={};void 0!==r&&(a={DPoP:await vt(t.tokenEndpoint,"POST",r)});let o={};void 0!==n.clientSecret?o={Authorization:`Basic ${btoa(`${n.clientId}:${n.clientSecret}`)}`}:(e=>{try{return new URL(e),!0}catch{return!1}})(n.clientId)&&(i.client_id=n.clientId);const s=await fetch(t.tokenEndpoint,{method:"POST",body:new URLSearchParams(i).toString(),headers:{...a,...o,"Content-Type":"application/x-www-form-urlencoded"}});let c;try{c=await s.json()}catch(e){throw new Error(`The token endpoint of issuer ${t.issuer} returned a malformed response.`)}const l=At(c,void 0!==r),{webId:u}=await Je(l.id_token,t.jwksUri,t.issuer,n.clientId);return{accessToken:l.access_token,idToken:l.id_token,refreshToken:"string"==typeof l.refresh_token?l.refresh_token:void 0,webId:u,dpopKey:r,expiresIn:l.expires_in}}class Rt extends pt{constructor(e,t){super(e,t)}}class It extends lt{login=async(e,t)=>{"none"!==e.prompt&&await this.sessionInfoManager.clear(e.sessionId);const n=e.redirectUrl??function(e){const t=Ye(e);return t.hash="",e.includes(`${t.origin}/`)?t.href:`${t.origin}${t.href.substring(t.origin.length+1)}`}(window.location.href);if(!Qe(n))throw new Error(`${n} is not a valid redirect URL, it is either a malformed IRI, includes a hash fragment, or reserved query parameters ('code' or 'state').`);await this.loginHandler.handle({...e,redirectUrl:n,clientName:e.clientName??e.clientId,eventEmitter:t})};validateCurrentSession=async e=>{const t=await this.sessionInfoManager.get(e);return void 0===t||void 0===t.clientAppId||void 0===t.issuer?null:t};handleIncomingRedirect=async(e,t)=>{try{const n=await this.redirectHandler.handle(e,t,void 0);return this.fetch=n.fetch.bind(window),this.boundLogout=n.getLogoutUrl,await this.cleanUrlAfterRedirect(e),{isLoggedIn:n.isLoggedIn,webId:n.webId,sessionId:n.sessionId,expirationDate:n.expirationDate,clientAppId:n.clientAppId}}catch(n){return await this.cleanUrlAfterRedirect(e),void t.emit(Ue,"redirect",n)}};async cleanUrlAfterRedirect(e){const t=Ye(e).href;for(window.history.replaceState(null,"",t);window.location.href!==t;)await new Promise(e=>{setTimeout(()=>e(),1)})}}function Ft(e){return"string"==typeof e.oidcIssuer}function Nt(e){return"string"==typeof e.redirectUrl}class Ot{storageUtility;oidcHandler;issuerConfigFetcher;clientRegistrar;constructor(e,t,n,r){this.storageUtility=e,this.oidcHandler=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.storageUtility=e,this.oidcHandler=t,this.issuerConfigFetcher=n,this.clientRegistrar=r}async canHandle(e){return Ft(e)&&Nt(e)}async handle(e){if(!Ft(e))throw new ft(`OidcLoginHandler requires an OIDC issuer: missing property 'oidcIssuer' in ${JSON.stringify(e)}`);if(!Nt(e))throw new ft(`OidcLoginHandler requires a redirect URL: missing property 'redirectUrl' in ${JSON.stringify(e)}`);const t=await this.issuerConfigFetcher.fetchConfig(e.oidcIssuer),n=await st(e,t,this.storageUtility,this.clientRegistrar),r={issuer:t.issuer,dpop:"dpop"===e.tokenType.toLowerCase(),...e,issuerConfiguration:t,client:n,scopes:(i=e.customScopes,Array.isArray(i)?Array.from(new Set([...Ge,...i.filter(e=>"string"==typeof e&&!e.includes(" "))])):Ge)};var i;return this.oidcHandler.handle(r)}}class Lt extends Xe{async handle(e){const t={authority:e.issuer.toString(),client_id:e.client.clientId,client_secret:e.client.clientSecret,redirect_uri:e.redirectUrl,response_type:"code",scope:e.scopes.join(" "),filterProtocolClaims:!0,loadUserInfo:!1,code_verifier:!0,prompt:e.prompt??"consent"},n=new _t.OidcClient(t);try{const t=await n.createSigninRequest();return await this.setupRedirectHandler({oidcLoginOptions:e,state:t.state._id,codeVerifier:t.state._code_verifier,targetUrl:t.url.toString()})}catch(e){}}}const jt={issuer:{toKey:"issuer",convertToUrl:!0},authorization_endpoint:{toKey:"authorizationEndpoint",convertToUrl:!0},token_endpoint:{toKey:"tokenEndpoint",convertToUrl:!0},userinfo_endpoint:{toKey:"userinfoEndpoint",convertToUrl:!0},jwks_uri:{toKey:"jwksUri",convertToUrl:!0},registration_endpoint:{toKey:"registrationEndpoint",convertToUrl:!0},end_session_endpoint:{toKey:"endSessionEndpoint",convertToUrl:!0},scopes_supported:{toKey:"scopesSupported"},response_types_supported:{toKey:"responseTypesSupported"},response_modes_supported:{toKey:"responseModesSupported"},grant_types_supported:{toKey:"grantTypesSupported"},acr_values_supported:{toKey:"acrValuesSupported"},subject_types_supported:{toKey:"subjectTypesSupported"},id_token_signing_alg_values_supported:{toKey:"idTokenSigningAlgValuesSupported"},id_token_encryption_alg_values_supported:{toKey:"idTokenEncryptionAlgValuesSupported"},id_token_encryption_enc_values_supported:{toKey:"idTokenEncryptionEncValuesSupported"},userinfo_signing_alg_values_supported:{toKey:"userinfoSigningAlgValuesSupported"},userinfo_encryption_alg_values_supported:{toKey:"userinfoEncryptionAlgValuesSupported"},userinfo_encryption_enc_values_supported:{toKey:"userinfoEncryptionEncValuesSupported"},request_object_signing_alg_values_supported:{toKey:"requestObjectSigningAlgValuesSupported"},request_object_encryption_alg_values_supported:{toKey:"requestObjectEncryptionAlgValuesSupported"},request_object_encryption_enc_values_supported:{toKey:"requestObjectEncryptionEncValuesSupported"},token_endpoint_auth_methods_supported:{toKey:"tokenEndpointAuthMethodsSupported"},token_endpoint_auth_signing_alg_values_supported:{toKey:"tokenEndpointAuthSigningAlgValuesSupported"},display_values_supported:{toKey:"displayValuesSupported"},claim_types_supported:{toKey:"claimTypesSupported"},claims_supported:{toKey:"claimsSupported"},service_documentation:{toKey:"serviceDocumentation"},claims_locales_supported:{toKey:"claimsLocalesSupported"},ui_locales_supported:{toKey:"uiLocalesSupported"},claims_parameter_supported:{toKey:"claimsParameterSupported"},request_parameter_supported:{toKey:"requestParameterSupported"},request_uri_parameter_supported:{toKey:"requestUriParameterSupported"},require_request_uri_registration:{toKey:"requireRequestUriRegistration"},op_policy_uri:{toKey:"opPolicyUri",convertToUrl:!0},op_tos_uri:{toKey:"opTosUri",convertToUrl:!0}};class Mt{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}static getLocalStorageKey(e){return`issuerConfig:${e}`}async fetchConfig(e){let t;const n=new URL(".well-known/openid-configuration",e.endsWith("/")?e:`${e}/`).href,r=await fetch(n);try{t=function(e){const t={};return Object.keys(e).forEach(n=>{jt[n]&&(t[jt[n].toKey]=e[n])}),Array.isArray(t.scopesSupported)||(t.scopesSupported=["openid"]),t}(await r.json())}catch(t){throw new ft(`[${e.toString()}] has an invalid configuration: ${t.message}`)}return await this.storageUtility.set(Mt.getLocalStorageKey(e),JSON.stringify(t)),t}}async function Dt(e,t){await rt(e,t),await async function(){const e=new _t.OidcClient({response_mode:"query"});await e.clearStaleState(new _t.WebStorageStateStore({}));const t=window.localStorage,n=[];for(let e=0;e<=t.length;e+=1){const r=t.key(e);r&&(r.match(/^oidc\..+$/)||r.match(/^solidClientAuthenticationUser:.+$/))&&n.push(r)}n.forEach(e=>t.removeItem(e))}()}class Ut extends it{async get(e){const[t,n,r,i,a,o,s,c]=await Promise.all([this.storageUtility.getForUser(e,"isLoggedIn",{secure:!0}),this.storageUtility.getForUser(e,"webId",{secure:!0}),this.storageUtility.getForUser(e,"clientId",{secure:!1}),this.storageUtility.getForUser(e,"clientSecret",{secure:!1}),this.storageUtility.getForUser(e,"redirectUrl",{secure:!1}),this.storageUtility.getForUser(e,"refreshToken",{secure:!0}),this.storageUtility.getForUser(e,"issuer",{secure:!1}),this.storageUtility.getForUser(e,"tokenType",{secure:!1})]);if("string"!=typeof a||Qe(a)){if(void 0!==c&&("string"!=typeof(l=c)||!["DPoP","Bearer"].includes(l)))throw new Error(`Tokens of type [${c}] are not supported.`);var l;if(void 0!==r||void 0!==t||void 0!==n||void 0!==o)return{sessionId:e,webId:n,isLoggedIn:"true"===t,redirectUrl:a,refreshToken:o,issuer:s,clientAppId:r,clientAppSecret:i,tokenType:c??"DPoP"}}else await Promise.all([this.storageUtility.deleteAllUserData(e,{secure:!1}),this.storageUtility.deleteAllUserData(e,{secure:!0})])}async clear(e){return Dt(e,this.storageUtility)}}class Bt{async canHandle(e){try{return new URL(e),!0}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e){return nt()}}class zt{storageUtility;sessionInfoManager;issuerConfigFetcher;clientRegistrar;tokerRefresher;constructor(e,t,n,r,i){this.storageUtility=e,this.sessionInfoManager=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.tokerRefresher=i,this.storageUtility=e,this.sessionInfoManager=t,this.issuerConfigFetcher=n,this.clientRegistrar=r,this.tokerRefresher=i}async canHandle(e){try{const t=new URL(e);return null!==t.searchParams.get("code")&&null!==t.searchParams.get("state")}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e,t){if(!await this.canHandle(e))throw new Error(`AuthCodeRedirectHandler cannot handle [${e}]: it is missing one of [code, state].`);const n=new URL(e),r=n.searchParams.get("state"),i=await this.storageUtility.getForUser(r,"sessionId",{errorIfNull:!0}),{issuerConfig:a,codeVerifier:o,redirectUrl:s,dpop:c}=await ut(i,this.storageUtility,this.issuerConfigFetcher),l=n.searchParams.get("iss");if("string"==typeof l&&l!==a.issuer)throw new Error(`The value of the iss parameter (${l}) does not match the issuer identifier of the authorization server (${a.issuer}). See [rfc9207](https://www.rfc-editor.org/rfc/rfc9207.html#section-2.3-3.1.1)`);if(void 0===o)throw new Error(`The code verifier for session ${i} is missing from storage.`);if(void 0===s)throw new Error(`The redirect URL for session ${i} is missing from storage.`);const u=await this.clientRegistrar.getClient({sessionId:i},a),p=Date.now(),d=await Tt(a,u,{grantType:"authorization_code",code:n.searchParams.get("code"),codeVerifier:o,redirectUrl:s},c);let f;window.localStorage.removeItem(`oidc.${r}`),void 0!==d.refreshToken&&(f={sessionId:i,refreshToken:d.refreshToken,tokenRefresher:this.tokerRefresher});const h=xt(d.accessToken,{dpopKey:d.dpopKey,refreshOptions:f,eventEmitter:t,expiresIn:d.expiresIn});await async function(e,t,n,r,i,a,o,s){void 0!==a&&await e.setForUser(t,{refreshToken:a},{secure:o}),void 0!==n&&await e.setForUser(t,{webId:n},{secure:o}),void 0!==r&&await e.setForUser(t,{clientId:r},{secure:o}),void 0!==i&&await e.setForUser(t,{isLoggedIn:i},{secure:o}),void 0!==s&&await e.setForUser(t,{publicKey:JSON.stringify(s.publicKey),privateKey:JSON.stringify(await ke(s.privateKey))},{secure:o})}(this.storageUtility,i,d.webId,d.clientId,"true",void 0,!0);const m=await this.sessionInfoManager.get(i);if(!m)throw new Error(`Could not retrieve session: [${i}].`);return Object.assign(m,{fetch:h,getLogoutUrl:at({idTokenHint:d.idToken,endSessionEndpoint:a.endSessionEndpoint}),expirationDate:"number"==typeof d.expiresIn?p+1e3*d.expiresIn:void 0})}}class Ht extends Ke{constructor(e){super(e)}}class qt{get storage(){return window.localStorage}async get(e){return this.storage.getItem(e)||void 0}async set(e,t){this.storage.setItem(e,t)}async delete(e){this.storage.removeItem(e)}}class $t{redirect(e,t){t&&t.handleRedirect?t.handleRedirect(e):t&&t.redirectByReplacingState?window.history.replaceState({},"",e):window.location.href=e}}class Wt{storageUtility;constructor(e){this.storageUtility=e,this.storageUtility=e}async getClient(e,t){const[n,r,i,a,o]=await Promise.all([this.storageUtility.getForUser(e.sessionId,"clientId",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientSecret",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"expiresAt",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientName",{secure:!1}),this.storageUtility.getForUser(e.sessionId,"clientType",{secure:!1})]),s=void 0!==i?Number.parseInt(i,10):-1,c=void 0!==r&&0!==s&&Math.floor(Date.now()/1e3)>s;if(n&&("string"==typeof(l=o)&&["dynamic","static","solid-oidc"].includes(l))&&!c)return void 0!==r?{clientId:n,clientSecret:r,clientName:a,clientType:"dynamic",expiresAt:s}:{clientId:n,clientName:a,clientType:o};var l;try{const n=await Ct(e,t),r={clientId:n.clientId,clientType:"dynamic"};return void 0!==n.clientSecret&&(r.clientSecret=n.clientSecret,r.expiresAt=String(n.expiresAt)),n.idTokenSignedResponseAlg&&(r.idTokenSignedResponseAlg=n.idTokenSignedResponseAlg),await this.storageUtility.setForUser(e.sessionId,r,{secure:!1}),n}catch(e){throw new Error("Client registration failed.",{cause:e})}}}class Vt{async canHandle(e){try{return new URL(e).searchParams.has("error")}catch(t){throw new Error(`[${e}] is not a valid URL, and cannot be used as a redirect URL: ${t}`)}}async handle(e,t){if(void 0!==t){const n=new URL(e),r=n.searchParams.get("error"),i=n.searchParams.get("error_description");t.emit(Ue,r,i)}return nt()}}class Gt{storageUtility;issuerConfigFetcher;clientRegistrar;constructor(e,t,n){this.storageUtility=e,this.issuerConfigFetcher=t,this.clientRegistrar=n,this.storageUtility=e,this.issuerConfigFetcher=t,this.clientRegistrar=n}async refresh(e,t,n,r){const i=await ut(e,this.storageUtility,this.issuerConfigFetcher),a=await this.clientRegistrar.getClient({sessionId:e},i.issuerConfig);if(void 0===t)throw new Error(`Session [${e}] has no refresh token to allow it to refresh its access token.`);if(i.dpop&&void 0===n)throw new Error(`For session [${e}], the key bound to the DPoP access token must be provided to refresh said access token.`);const o=await Pt(t,i.issuerConfig,a,n);return void 0!==o.refreshToken&&r?.emit(He,o.refreshToken),o}}function Kt(e){const t=new dt,n=e.secureStorage||t,r=e.insecureStorage||new qt,i=new Rt(n,r),a=new Mt(i),o=new Wt(i),s=new Ut(i),c=new Gt(i,a,o),l=new $t,u=new Ot(i,new Lt(i,l),a,o),p=new Ht([new Vt,new zt(i,s,a,o,c),new Bt]);return new It(u,p,new tt(s,l),s,a)}const Jt=`${Me}currentSession`,Qt=`${Me}currentUrl`;class Yt{info;events;clientAuthentication;tokenRequestInProgress=!1;constructor(e={},t=void 0){this.events=new kt,e.clientAuthentication?this.clientAuthentication=e.clientAuthentication:e.secureStorage&&e.insecureStorage?this.clientAuthentication=Kt({secureStorage:e.secureStorage,insecureStorage:e.insecureStorage}):this.clientAuthentication=Kt({}),e.sessionInfo?this.info={sessionId:e.sessionInfo.sessionId,isLoggedIn:!1,webId:e.sessionInfo.webId,clientAppId:e.sessionInfo.clientAppId}:this.info={sessionId:t??je(),isLoggedIn:!1},this.events.on(Be,()=>window.localStorage.setItem(Jt,this.info.sessionId)),this.events.on(qe,()=>this.internalLogout(!1)),this.events.on(Ue,()=>this.internalLogout(!1))}login=async e=>(await this.clientAuthentication.login({sessionId:this.info.sessionId,...e,tokenType:e.tokenType??"DPoP"},this.events),new Promise(()=>{}));fetch=(e,t)=>this.clientAuthentication.fetch(e,t);internalLogout=async(e,t)=>{window.localStorage.removeItem(Jt),await this.clientAuthentication.logout(this.info.sessionId,t),this.info.isLoggedIn=!1,e&&this.events.emit(ze)};logout=async e=>this.internalLogout(!0,e);handleIncomingRedirect=async(e={})=>{if(this.info.isLoggedIn)return this.info;if(this.tokenRequestInProgress)return;const t="string"==typeof e?{url:e}:e,n=t.url??window.location.href;this.tokenRequestInProgress=!0;const r=await this.clientAuthentication.handleIncomingRedirect(n,this.events);if(function(e){return!!e?.isLoggedIn}(r)){this.setSessionInfo(r);const e=window.localStorage.getItem(Qt);null===e?this.events.emit(Be):(window.localStorage.removeItem(Qt),this.events.emit(We,e))}else if(!0===t.restorePreviousSession){const e=window.localStorage.getItem(Jt);if(null!==e){if(await async function(e,t,n){const r=await t.validateCurrentSession(e);return null!==r&&(window.localStorage.setItem(Qt,window.location.href),await t.login({sessionId:e,prompt:"none",oidcIssuer:r.issuer,redirectUrl:r.redirectUrl,clientId:r.clientAppId,clientSecret:r.clientAppSecret,tokenType:r.tokenType??"DPoP"},n.events),!0)}(e,this.clientAuthentication,this))return new Promise(()=>{})}}return this.tokenRequestInProgress=!1,r};setSessionInfo(e){this.info.isLoggedIn=e.isLoggedIn,this.info.webId=e.webId,this.info.sessionId=e.sessionId,this.info.clientAppId=e.clientAppId,this.info.expirationDate=e.expirationDate,this.events.on($e,e=>{this.info.expirationDate=Date.now()+1e3*e})}}const Xt=new Yt,Zt=r;var en=o(386);const tn=o.n(en)()(Zt),nn=(0,Zt.sym)("http://www.iana.org/assignments/link-relations/acl");function rn(e){const t=tn;function n(e,n,r,i={}){const a=i.public||[],o=(0,Zt.graph)(),s=(0,Zt.Namespace)("http://www.w3.org/ns/auth/acl#");let c=o.sym(`${r}#a1`);const l=o.sym(r),u=o.sym(e);if(o.add(c,t.rdf("type"),s("Authorization"),l),o.add(c,s("accessTo"),u,l),i.defaultForNew&&o.add(c,s("default"),u,l),o.add(c,s("agent"),n,l),o.add(c,s("mode"),s("Read"),l),o.add(c,s("mode"),s("Write"),l),o.add(c,s("mode"),s("Control"),l),a.length){c=o.sym(`${r}#a2`),o.add(c,t.rdf("type"),s("Authorization"),l),o.add(c,s("accessTo"),u,l),o.add(c,s("agentClass"),t.foaf("Agent"),l);for(let e=0;e<a.length;e++)o.add(c,s("mode"),s(a[e]),l)}return(0,Zt.serialize)(l,o,r)}return{findAclDocUrl:async function(t){await e.fetcher.load(t);const n=e.any(t,nn);if(!n)throw new Error(`No ACL link discovered for ${t}`);return n.value},setACLUserPublic:function(t,r,i){const a=e.any(e.sym(t),nn);return Promise.resolve().then(()=>a||function(t){const n=e.fetcher;if(!n)throw new Error("Cannot fetch ACL rel, store has no fetcher");return n.load(t).then(n=>{if(!n.ok)throw new Error("fetchACLRel: While loading:"+n.error);const r=e.any(e.sym(t),nn);if(!r)throw new Error("fetchACLRel: No Link rel=ACL header for "+t);return r})}(t).catch(e=>{throw new Error(`Error fetching rel=ACL header for ${t}: ${e}`)})).then(a=>{const o=n(t,r,a.uri,i);if(!e.fetcher)throw new Error("Cannot PUT this, store has no fetcher");return e.fetcher.webOperation("PUT",a.uri,{data:o,contentType:"text/turtle"}).then(e=>{if(!e.ok)throw new Error("Error writing ACL text: "+e.error);return a})})},genACLText:n}}const an=()=>{let{SolidAppContext:e}=window;if(e||(e={}),e.viewingNoAuthPage=!1,e.noAuth&&window.document){if(window.document.location.href.startsWith(e.noAuth)){e.viewingNoAuthPage=!0;const t=new URLSearchParams(window.document.location.search);if(t){let n=e.viewedPage=t.get("uri")||null;if(n&&(n=decodeURI(n),!n.startsWith(e.noAuth))){const t=n.split(/\//);e.idp=t[0]+"//"+t[2],e.viewingNoAuthPage=!1}}}}return e};function on(){const{$SolidTestEnvironment:e}=window;if(void 0!==e&&e.username)return e.username,(0,Zt.sym)(e.username);if("undefined"!=typeof document&&document.location&&"http://localhost"===(""+document.location).slice(0,16)){const e=document.getElementById("appTarget");if(!e)return null;const t=e.getAttribute("testID");return t?(0,Zt.sym)(t):null}return null}class sn{constructor(e){this.session=e}get authSession(){return this.session}currentUser(){const e=an();return e.viewingNoAuthPage?(0,Zt.sym)(e.webId):this&&this.session&&this.session.info&&this.session.info.webId&&this.session.info.isLoggedIn?(0,Zt.sym)(this.session.info.webId):on()}async checkUser(e){const t=new URL(window.location.href).hash;t&&window.localStorage.setItem("preLoginRedirectHash",t),this.session.events.on(We,e=>{document.location.toString()!==e&&history.replaceState(null,"",e)});const n=new URL(window.location.href);n.hash="",await this.session.handleIncomingRedirect({restorePreviousSession:!0,url:n.href});const r=window.localStorage.getItem("preLoginRedirectHash");if(r){const e=new URL(window.location.href);e.hash!==r&&(history.pushState?history.pushState(null,document.title,r):location.hash=r,e.hash=r),window.localStorage.setItem("preLoginRedirectHash","")}let i=on();if(i)return Promise.resolve(e?e(i):i);const a=this.webIdFromSession(this.session.info);return a&&(i=this.saveUser(a)),Promise.resolve(e?e(i):i)}saveUser(e,t){let n;if(e){n="string"==typeof e?e:e.uri;const r=(0,Zt.namedNode)(n);return t&&(t.me=r),r}return null}webIdFromSession(e){return(null==e?void 0:e.webId)&&e.isLoggedIn?e.webId:null}}function cn(e){return(0,Zt.sym)(e.uri+"#id"+Date.now())}function ln(e){return!e||`${window.location.origin}/`!==new URL(e.value).origin}const un="index.ttl#this";function pn(e,t){const n=tn;async function r(t,n,r){await e.fetcher.load(t);const i=e.any(t,new Zt.NamedNode("http://www.iana.org/assignments/link-relations/acl"));if(!i)throw new Error("Chat ACL doc not found!");const a=`\n @prefix acl: <http://www.w3.org/ns/auth/acl#>.\n <#owner>\n a acl:Authorization;\n acl:agent <${n.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Write, acl:Control.\n <#invitee>\n a acl:Authorization;\n acl:agent <${r.value}>;\n acl:accessTo <.>;\n acl:default <.>;\n acl:mode\n acl:Read, acl:Append.\n `;await e.fetcher.webOperation("PUT",i.value,{data:a,contentType:"text/turtle"})}async function i(t,r){const i=e.any(r,n.solid("privateTypeIndex"));if(!i)throw new Error("Private type index not found!");await e.fetcher.load(i);const a=cn(i),o=[(0,Zt.st)(a,n.rdf("type"),n.solid("TypeRegistration"),i.doc()),(0,Zt.st)(a,n.solid("forClass"),n.meeting("LongChat"),i.doc()),(0,Zt.st)(a,n.solid("instance"),t,i.doc())];await new Promise((t,n)=>{e.updater.update([],o,function(e,r,i){r?t(null):n(new Error(i))})})}async function a(n){const r=await t.loadMe(),i=function(e,t){const n=new URL(`IndividualChats/${new URL(e.value).host}/`,t.value).toString();return new Zt.NamedNode(n)}(n,await t.getPodRoot(r));let a=!0;try{await e.fetcher.load(new Zt.NamedNode(i.value+"index.ttl#this"))}catch(e){a=!1}return{me:r,chatContainer:i,exists:a}}async function o(e,t){return(await s({me:t,newBase:e.value})).newInstance}function s(t){const r=e,i=r.updater;if(t.me&&!t.me.uri)throw new Error("chat mintNew: Invalid userid "+t.me);const a=t.newInstance=t.newInstance||r.sym(t.newBase+un),o=a.doc();return r.add(a,n.rdf("type"),n.meeting("LongChat"),o),r.add(a,n.dc("title"),"Chat channel",o),r.add(a,n.dc("created"),(0,Zt.term)(new Date(Date.now())),o),t.me&&r.add(a,n.dc("author"),t.me,o),new Promise(function(e,n){null==i||i.put(o,r.statementsMatching(void 0,void 0,void 0,o),"text/turtle",function(r,i,o){i?e({...t,newInstance:a}):n(new Error("FAILED to save new chat channel at: "+r+" : "+o))})})}async function c(t,r){var i;await e.fetcher.load(t.doc());const a=e.any(t,n.ldp("inbox"),void 0,t.doc());if(!a)throw new Error(`Invitee inbox not found! ${t.value}`);const o=`\n <> a <http://www.w3.org/ns/pim/meeting#LongChatInvite> ;\n ${n.rdf("seeAlso")} <${r.value}> .\n `,s=await(null===(i=e.fetcher)||void 0===i?void 0:i.webOperation("POST",a.value,{data:o,contentType:"text/turtle"}));if(!(null==s?void 0:s.headers.get("location")))throw new Error(`Invite sending returned a ${null==s?void 0:s.status}`)}return{setAcl:r,addToPrivateTypeIndex:i,findChat:a,createChatThing:o,getChat:async function(e,t=!0){const{me:n,chatContainer:s,exists:l}=await a(e);if(l)return new Zt.NamedNode(s.value+un);if(t){const t=await o(s,n);return await c(e,t),await r(s,n,e),await i(t,n),t}return null},sendInvite:c,mintNew:s}}function dn(e,t,n,r,i){return{createInboxFor:async function(e,i){const a=await t.loadMe(),o=`${(await t.getPodRoot(a)).value}p2p-inboxes/${encodeURIComponent(i)}/`;return await r.createContainer(o),await n.setSinglePeerAccess({ownerWebId:a.value,peerWebId:e,accessToModes:"acl:Append",target:o}),o},getNewMessages:async function(e){e||(e=await t.loadMe());const n=await t.getMainInbox(e);return(await r.getContainerMembers(n)).filter(e=>!r.isContainer(e))},markAsRead:async function(t,n){const r=await e.fetcher._fetch(t);if(200!==r.status)throw new Error(`Not OK! ${t}`);const i=function(e,t){const n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),i=("0"+t.getUTCDate()).slice(-2),a=e.split("/"),o=a[a.length-1];return new URL(`./archive/${n}/${r}/${i}/${o}`,e).toString()}(t,n),a={method:"PUT",body:await r.text(),headers:[["Content-Type",r.headers.get("Content-Type")||"application/octet-stream"]]};"2"===(await e.fetcher._fetch(i,a)).status.toString()[0]&&await e.fetcher._fetch(t,{method:"DELETE"})}}}class fn extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype),this.name=new.target.name}}class hn extends fn{}class mn extends fn{}class gn extends fn{}class vn extends fn{}class bn extends fn{}class yn extends fn{}class wn extends fn{constructor(e,t){super(t),this.status=e}}function xn(e,t,n){const r=tn;async function i(t){await a(t);const i=function(e){const t=e.uri.replace("/profile/","/").replace("/public/","/").split("/").slice(0,-1).join("/")+"/Settings/Preferences.ttl";return(0,Zt.sym)(t)}(t);let o;try{o=await n.followOrCreateLink(t,r.space("preferencesFile"),i,t.doc())}catch(e){if(e instanceof bn)throw e;if(e instanceof yn)throw e;if(e instanceof hn)throw e;if(e instanceof mn)throw e;if(e instanceof gn)throw e;if(e instanceof wn)throw e;throw e}try{await e.fetcher.load(o)}catch(e){const n=`Unable to load preference of user ${t}: ${e}`;if(401===e.response.status)throw new hn;if(403===e.response.status){if(ln(o))throw new mn;throw new gn}throw new Error(n)}return o}async function a(t){if(!t)throw new Error("loadProfile: no user given.");try{await e.fetcher.load(t.doc())}catch(e){throw new Error(`Unable to load profile of user ${t}: ${e}`)}return t.doc()}function o(t){return e.any(t,r.space("storage"),void 0,t.doc())}return{loadMe:async function(){const n=t.currentUser();if(null===n)throw new Error("Current user not found! Not logged in?");return await e.fetcher.load(n.doc()),n},getPodRoot:function(e){const t=o(e);if(!t)throw new Error("User pod root not found!");return t},getMainInbox:async function(t){await e.fetcher.load(t);const n=e.any(t,r.ldp("inbox"),void 0,t.doc());if(!n)throw new Error("User main inbox not found!");return n},findStorage:o,loadPreferences:i,loadProfile:a,silencedLoadPreferences:async function(e){try{return await i(e)}catch(e){return}}}}function kn(e,t,n,r){const i=tn;async function a(t){if(!t)throw new Error("loadTypeIndexesFor: No user given");const a=await n.loadProfile(t);let o,s=null;try{s=u(t)}catch(e){}try{o=e.any(t,i.solid("publicTypeIndex"),void 0,a)||(s?await r.followOrCreateLink(t,i.solid("publicTypeIndex"),s,a):null)}catch(e){}const c=o?[{label:"public",index:o,agent:t}]:[];let l,d;try{l=await n.silencedLoadPreferences(t)}catch(e){l=null}if(l){let n,o=null;try{o=p(l)}catch(e){}try{n=e.any(t,i.solid("privateTypeIndex"),void 0,a)||(o?await r.followOrCreateLink(t,i.solid("privateTypeIndex"),o,l):null)}catch(e){}d=n?[{label:"private",index:n,agent:t}]:[]}else d=[];const f=c.concat(d);if(0===f.length)return f;const h=f.map(e=>e.index);try{await e.fetcher.load(h)}catch(e){}return f}async function o(t){let r;try{r=await n.silencedLoadPreferences(t)}catch(e){}if(r){const n=e.each(t,i.solid("community"),void 0,r).concat(e.each(t,i.solid("community"),void 0,t.doc()));let o=[];for(const e of n)o=o.concat(await a(e));return o}return[]}async function s(e){return(await a(e)).concat((await o(e)).flat())}async function c(e,t){const n=await s(t);let r=[];for(const t of n){const n=await d(t,e);r=r.concat(n)}return r}function l(e){const t=e.doc(),n=t.dir();if(null==n?void 0:n.uri)return n.uri;const r=t.uri;if(!r)return null==e||e.uri,null;const i=r.split("#")[0],a=i.lastIndexOf("/");return-1===a?null:i.slice(0,a+1)}function u(e){const t=l(e);if(!t)throw new Error(`suggestPublicTypeIndex: Cannot derive directory for ${e.uri}`);return(0,Zt.sym)(t+"publicTypeIndex.ttl")}function p(e){const t=l(e);if(!t)throw new Error(`suggestPrivateTypeIndex: Cannot derive directory for ${e.uri}`);return(0,Zt.sym)(t+"privateTypeIndex.ttl")}async function d(t,n){const r=t.index,a=[],o=e.statementsMatching(null,i.solid("instance"),null,r).concat(e.statementsMatching(null,i.solid("instanceContainer"),null,r)).map(e=>e.subject);for(const s of o){const o=e.any(s,i.solid("forClass"),null,r);if(!n||o.sameTerm(n)){const n=e.each(s,i.solid("instance"),null,r);for(const e of n)a.push({instance:e,type:o,scope:t});const c=e.each(s,i.solid("instanceContainer"),null,r);for(const n of c)await e.fetcher.load(n),a.push({instance:(0,Zt.sym)(n.value),type:o,scope:t})}}return a}return{registerInTypeIndex:async function(t,n,r){const a=cn(n),o=[(0,Zt.st)(a,i.rdf("type"),i.solid("TypeRegistration"),n),(0,Zt.st)(a,i.solid("forClass"),r,n),(0,Zt.st)(a,i.solid("instance"),t,n)];try{await e.updater.update([],o)}catch(e){return null}return a},getRegistrations:function(t,n){return e.each(void 0,i.solid("instance"),t).filter(t=>e.holds(t,i.solid("forClass"),n))},loadTypeIndexesFor:a,loadCommunityTypeIndexes:o,loadAllTypeIndexes:s,getScopedAppInstances:c,getAppInstances:async function(e){const n=t.currentUser();if(!n)throw new Error("getAppInstances: Must be logged in to find apps.");return(await c(e,n)).map(e=>e.instance)},suggestPublicTypeIndex:u,suggestPrivateTypeIndex:p,deleteTypeIndexRegistration:async function(t){const n=e.the(null,i.solid("instance"),t.instance,t.scope.index);if(!n)throw new Error(`deleteTypeIndexRegistration: No registration found for ${t.instance}`);const r=e.statementsMatching(n,null,null,t.scope.index);await e.updater.update(r,[])},getScopedAppsFromIndex:d}}function _n(e,t){const n=Zt.graph();Zt.fetcher(n,{fetch:e.fetch}),n.updater=new Zt.UpdateManager(n),n.features=[];const r=new sn(t),i=rn(n),a=function(e){function t(t){return e.statementsMatching(t,(0,Zt.sym)("http://www.w3.org/ns/ldp#contains"),void 0).map(e=>e.object)}function n(e){const t=e.value;return"/"===t.charAt(t.length-1)}return{isContainer:n,createContainer:async function(t){if(!n((0,Zt.sym)(t)))throw new Error(`Not a container URL ${t}`);const r=await e.fetcher._fetch(t,{method:"PUT",headers:{"Content-Type":"text/turtle","If-None-Match":"*",Link:'<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"'},body:" "});if("2"!==r.status.toString()[0])throw new Error(`Not OK: got ${r.status} response while creating container at ${t}`)},getContainerElements:t,getContainerMembers:async function(n){return await e.fetcher.load(n),t(n)}}}(n),o=function(e,t,n){async function r(t){let n;try{n=await e.fetcher.load(t)}catch(n){if(404!==n.response.status){if(401===n.response.status)throw new hn;if(403===n.response.status){if(ln(t))throw new mn;throw new gn}const e="createIfNotExists doc load error NOT 404: "+t+": "+n;throw new wn(n.status,n.message+e)}try{await e.fetcher.webOperation("PUT",t,{data:"",contentType:"text/turtle"})}catch(e){throw new yn("createIfNotExists: PUT FAILED: "+t+": "+e)}await e.fetcher.load(t)}return n}return{recursiveDelete:async function r(i){try{if(n.isContainer(i)){const a=await t.findAclDocUrl(i);await e.fetcher._fetch(a,{method:"DELETE"});const o=await n.getContainerMembers(i);await Promise.all(o.map(e=>r(e)))}const a=i.value;return e.fetcher._fetch(a,{method:"DELETE"})}catch(e){i.value}},setSinglePeerAccess:async function(n){let r=["@prefix acl: <http://www.w3.org/ns/auth/acl#>.","",`<#alice> a acl:Authorization;\n acl:agent <${n.ownerWebId}>;`,` acl:accessTo <${n.target}>;`,` acl:default <${n.target}>;`," acl:mode acl:Read, acl:Write, acl:Control.",""].join("\n");n.accessToModes&&(r+=["<#bobAccessTo> a acl:Authorization;",` acl:agent <${n.peerWebId}>;`,` acl:accessTo <${n.target}>;`,` acl:mode ${n.accessToModes}.`,""].join("\n")),n.defaultModes&&(r+=["<#bobDefault> a acl:Authorization;",` acl:agent <${n.peerWebId}>;`,` acl:default <${n.target}>;`,` acl:mode ${n.defaultModes}.`,""].join("\n"));const i=await t.findAclDocUrl((0,Zt.sym)(n.target));return e.fetcher._fetch(i,{method:"PUT",body:r,headers:[["Content-Type","text/turtle"]]})},createEmptyRdfDoc:async function(t,n){await e.fetcher.webOperation("PUT",t.uri,{data:`# ${new Date} ${n}\n `,contentType:"text/turtle"})},followOrCreateLink:async function(t,n,i,a){await e.fetcher.load(a);const o=e.any(t,n,null,a);if(o)return o;if(!e.updater.editable(a)){const e=`followOrCreateLink: cannot edit ${a.value}`;throw new bn(e)}try{await e.updater.update([],[(0,Zt.st)(t,n,i,a)])}catch(e){throw new yn(e)}try{await r(i)}catch(e){throw e}return i},loadOrCreateIfNotExists:r}}(n,i,a),s=xn(n,r,o),c=pn(n,s),l=dn(n,s,o,a),u=kn(n,r,s,o);return{store:n,authn:r,acl:i,inbox:l,chat:c,profile:s,typeIndex:u,load:function(e){return n.fetcher.load(e)},updatePromise:function(e,t=[]){return new Promise((r,i)=>{n.updater.update(e,t,function(e,t,n){t?r():i(new Error(n))})})},clearStore:function(){n.statements.slice().forEach(n.remove.bind(n))}}}const En=async(e,t)=>{const n=t&&t.credentials&&"omit"==t.credentials;return Xt.info.webId&&!n?Xt.fetch(e,t):window.fetch(e,t)},Cn=Symbol.for("solid-logic-singleton"),Sn="undefined"!=typeof window?window:o.g;const An=(Sn[Cn]||(Sn[Cn]=_n({fetch:En},Xt)),Sn[Cn]),Tn=[{name:"Solid Community",uri:"https://solidcommunity.net"},{name:"Solid Web",uri:"https://solidweb.org"},{name:"Solid Web ME",uri:"https://solidweb.me"},{name:"Inrupt.com",uri:"https://login.inrupt.com"}];function Pn(){const e=[...Tn],{host:t,origin:n}=new URL(location.href),r=e.map(({uri:e})=>new URL(e).host);return r.includes(t)||r.some(e=>function(e,t){const n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(t,e))||e.unshift({name:t,uri:n}),e}const Rn=An.authn,In=An.authn.authSession,Fn=An.store},1813(e){"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/ace+json":{"source":"iana","compressible":true},"application/ace-groupcomm+cbor":{"source":"iana"},"application/ace-trl+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/aif+cbor":{"source":"iana"},"application/aif+json":{"source":"iana","compressible":true},"application/alto-cdni+json":{"source":"iana","compressible":true},"application/alto-cdnifilter+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-propmap+json":{"source":"iana","compressible":true},"application/alto-propmapparams+json":{"source":"iana","compressible":true},"application/alto-tips+json":{"source":"iana","compressible":true},"application/alto-tipsparams+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/appinstaller":{"compressible":false,"extensions":["appinstaller"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/appx":{"compressible":false,"extensions":["appx"]},"application/appxbundle":{"compressible":false,"extensions":["appxbundle"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/automationml-aml+xml":{"source":"iana","compressible":true,"extensions":["aml"]},"application/automationml-amlx+zip":{"source":"iana","compressible":false,"extensions":["amlx"]},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/bufr":{"source":"iana"},"application/c2pa":{"source":"iana"},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/ce+cbor":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/cid-edhoc+cbor-seq":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/city+json-seq":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-eap":{"source":"iana"},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/concise-problem-details+cbor":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cose-x509":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwl":{"source":"iana","extensions":["cwl"]},"application/cwl+json":{"source":"iana","compressible":true},"application/cwl+yaml":{"source":"iana"},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana","extensions":["dcm"]},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dpop+jwt":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/eat+cwt":{"source":"iana"},"application/eat+jwt":{"source":"iana"},"application/eat-bun+cbor":{"source":"iana"},"application/eat-bun+json":{"source":"iana","compressible":true},"application/eat-ucs+cbor":{"source":"iana"},"application/eat-ucs+json":{"source":"iana","compressible":true},"application/ecmascript":{"source":"apache","compressible":true,"extensions":["ecma"]},"application/edhoc+cbor-seq":{"source":"iana"},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.legacyesn+json":{"source":"iana","compressible":true},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/entity-statement+jwt":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdf":{"source":"iana","extensions":["fdf"]},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geopose+json":{"source":"iana","compressible":true},"application/geoxacml+json":{"source":"iana","compressible":true},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gnap-binding-jws":{"source":"iana"},"application/gnap-binding-jwsd":{"source":"iana"},"application/gnap-binding-rotation-jws":{"source":"iana"},"application/gnap-binding-rotation-jwsd":{"source":"iana"},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/grib":{"source":"iana"},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"iana","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"apache","charset":"UTF-8","compressible":true,"extensions":["js"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/jscontact+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jsonpath":{"source":"iana"},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwk-set+jwt":{"source":"iana"},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/linkset":{"source":"iana"},"application/linkset+json":{"source":"iana","compressible":true},"application/load-control+xml":{"source":"iana","compressible":true},"application/logout+jwt":{"source":"iana"},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msix":{"compressible":false,"extensions":["msix"]},"application/msixbundle":{"compressible":false,"extensions":["msixbundle"]},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":true,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/ohttp-keys":{"source":"iana"},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["sig","asc"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/private-token-issuer-directory":{"source":"iana"},"application/private-token-request":{"source":"iana"},"application/private-token-response":{"source":"iana"},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/provided-claims+jwt":{"source":"iana"},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.implied-document+xml":{"source":"iana","compressible":true},"application/prs.implied-executable":{"source":"iana"},"application/prs.implied-object+json":{"source":"iana","compressible":true},"application/prs.implied-object+json-seq":{"source":"iana"},"application/prs.implied-object+yaml":{"source":"iana"},"application/prs.implied-structure":{"source":"iana"},"application/prs.mayfile":{"source":"iana"},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.vcfbzip2":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true,"extensions":["xsf"]},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"apache"},"application/reputon+json":{"source":"iana","compressible":true},"application/resolve-response+jwt":{"source":"iana"},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-checklist":{"source":"iana"},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-signed-tal":{"source":"iana"},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"apache"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana","extensions":["sql"]},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/sslkeylogfile":{"source":"iana"},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/st2110-41":{"source":"iana"},"application/stix+json":{"source":"iana","compressible":true},"application/stratum":{"source":"iana"},"application/swid+cbor":{"source":"iana"},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tm+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toc+cbor":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"source":"iana","compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/trust-chain+json":{"source":"iana","compressible":true},"application/trust-mark+jwt":{"source":"iana"},"application/trust-mark-delegation+jwt":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/uccs+cbor":{"source":"iana"},"application/ujcs+json":{"source":"iana","compressible":true},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vc":{"source":"iana"},"application/vc+cose":{"source":"iana"},"application/vc+jwt":{"source":"iana"},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.1ob":{"source":"iana"},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3a+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ach+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc8+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.5gsa2x":{"source":"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gsv2x":{"source":"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.crs+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.current-location-discovery+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.seal-group-doc+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-network-qos-management-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-ue-config-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-unicast-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-user-profile-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.v2x":{"source":"iana"},"application/vnd.3gpp.vae-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acm.addressxfer+json":{"source":"iana","compressible":true},"application/vnd.acm.chatbot+json":{"source":"iana","compressible":true},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"apache","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"apache"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.parquet":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.apexlang":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"apache"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autodesk.fbx":{"extensions":["fbx"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.belightsoft.lhzd+zip":{"source":"iana","compressible":false},"application/vnd.belightsoft.lhzl+zip":{"source":"iana","compressible":false},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.bzip3":{"source":"iana"},"application/vnd.c3voc.schedule+xml":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{"source":"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{"source":"iana"},"application/vnd.cncf.helm.config.v1+json":{"source":"iana","compressible":true},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datalog":{"source":"iana"},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.dcmp+xml":{"source":"iana","compressible":true,"extensions":["dcmp"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.eln+zip":{"source":"iana","compressible":false},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.erofs":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"apache","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{"source":"iana","charset":"XML-BASED","compressible":true},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.freelog.comic":{"source":"iana"},"application/vnd.frogans.fnc":{"source":"apache","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"apache","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.ga4gh.passport+jwt":{"source":"iana"},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.genozip":{"source":"iana"},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.gentoo.catmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.ebuild":{"source":"iana"},"application/vnd.gentoo.eclass":{"source":"iana"},"application/vnd.gentoo.gpkg":{"source":"iana"},"application/vnd.gentoo.manifest":{"source":"iana"},"application/vnd.gentoo.pkgmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.xpak":{"source":"iana"},"application/vnd.geo+json":{"source":"apache","compressible":true},"application/vnd.geocube+xml":{"source":"apache","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.pinboard":{"source":"iana"},"application/vnd.geogebra.slides":{"source":"iana","extensions":["ggs"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.gnu.taler.exchange+json":{"source":"iana","compressible":true},"application/vnd.gnu.taler.merchant+json":{"source":"iana","compressible":true},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.drawing":{"compressible":false,"extensions":["gdraw"]},"application/vnd.google-apps.drive-sdk":{"compressible":false},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{"compressible":false},"application/vnd.google-apps.form":{"compressible":false,"extensions":["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{"compressible":false,"extensions":["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{"compressible":false,"extensions":["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.script":{"compressible":false,"extensions":["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{"compressible":false,"extensions":["gsite"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"apache","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true,"extensions":["xdcf"]},"application/vnd.gpxsee.map+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.hsl":{"source":"iana"},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"apache"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"apache","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"apache"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.ipfs.ipns-record":{"source":"iana"},"application/vnd.ipld.car":{"source":"iana"},"application/vnd.ipld.dag-cbor":{"source":"iana"},"application/vnd.ipld.dag-json":{"source":"iana"},"application/vnd.ipld.raw":{"source":"iana"},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kdl":{"source":"iana"},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.keyman.kmp+zip":{"source":"iana","compressible":false},"application/vnd.keyman.kmx":{"source":"iana"},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.ldev.productlicensing":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.mdl":{"source":"iana"},"application/vnd.mdl-mbsdf":{"source":"iana"},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.medicalholodeck.recordxr":{"source":"iana"},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mermaid":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.modl":{"source":"iana"},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-visio.viewer":{"extensions":["vdx"]},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msgpack":{"source":"iana"},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+cbor":{"source":"iana"},"application/vnd.nato.bindingdataobject+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+xml":{"source":"iana","compressible":true,"extensions":["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{"source":"iana","compressible":false},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"apache","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oai.workflows":{"source":"iana"},"application/vnd.oai.workflows+json":{"source":"iana","compressible":true},"application/vnd.oai.workflows+yaml":{"source":"iana"},"application/vnd.oasis.opendocument.base":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"apache","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-master-template":{"source":"iana"},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.onvif.metadata":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openvpi.dspx+json":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.procrate.brushset":{"extensions":["brushset"]},"application/vnd.procreate.brush":{"extensions":["brush"]},"application/vnd.procreate.dream":{"extensions":["drm"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.pt.mundusmundi":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true,"extensions":["xhtm"]},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.relpipe":{"source":"iana"},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.sketchometry":{"source":"iana"},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.smintio.portals.archive":{"source":"iana"},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sybyl.mol2":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uic.osdm+json":{"source":"iana","compressible":true},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml","uo"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.veraison.tsm-report+cbor":{"source":"iana"},"application/vnd.veraison.tsm-report+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vocalshaper.vsp4":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.wasmflow.wafl":{"source":"iana"},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordlift":{"source":"iana"},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xarin.cpj":{"source":"iana"},"application/vnd.xecrets-encrypted":{"source":"iana"},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/voucher-jws+json":{"source":"iana","compressible":true},"application/vp":{"source":"iana"},"application/vp+cose":{"source":"iana"},"application/vp+jwt":{"source":"iana"},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blender":{"extensions":["blend"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-compressed":{"extensions":["rar"]},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-ipynb+json":{"compressible":true,"extensions":["ipynb"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zip-compressed":{"extensions":["zip"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xfdf":{"source":"iana","extensions":["xfdf"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yaml":{"source":"iana"},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+cbor":{"source":"iana"},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yang-sid+json":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zip+dotlottie":{"extensions":["lottie"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana","extensions":["adts","aac"]},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flac":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/matroska":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/midi-clip":{"source":"iana"},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a","m4b"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"apache"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"source":"iana","compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp","dib"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/dpx":{"source":"iana","extensions":["dpx"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/j2c":{"source":"iana"},"image/jaii":{"source":"iana","extensions":["jaii"]},"image/jais":{"source":"iana","extensions":["jais"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpg","jpeg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm","jpgm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxl":{"source":"iana","extensions":["jxl"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false,"extensions":["jfif"]},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif","btf"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.clip":{"source":"iana"},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"iana","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-adobe-dng":{"extensions":["dng"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-emf":{"source":"iana"},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-wmf":{"source":"iana"},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/bhttp":{"source":"iana"},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/mls":{"source":"iana"},"message/news":{"source":"apache"},"message/ohttp-req":{"source":"iana"},"message/ohttp-res":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime","mht","mhtml"]},"message/s-http":{"source":"apache"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"apache"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/jt":{"source":"iana","extensions":["jt"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/prc":{"source":"iana","extensions":["prc"]},"model/step":{"source":"iana","extensions":["step","stp","stpnc","p21","210"]},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/u3d":{"source":"iana","extensions":["u3d"]},"model/vnd.bary":{"source":"iana","extensions":["bary"]},"model/vnd.cld":{"source":"iana","extensions":["cld"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana","extensions":["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usda":{"source":"iana","extensions":["usda"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"apache"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/hl7v2":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["md","markdown"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/prs.texi":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.exchangeable":{"source":"iana"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"apache"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.vcf":{"source":"iana"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vnd.zoo.kcl":{"source":"iana"},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/wgsl":{"source":"iana","extensions":["wgsl"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/evc":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/h266":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/lottie+json":{"source":"iana","compressible":true},"video/matroska":{"source":"iana"},"video/matroska-3d":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts","m2t","m2ts","mts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.planar":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"apache"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);s.r(i);var a={};t=t||[null,n({}),n([]),n(n)];for(var o=2&r&&e;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=n(o))Object.getOwnPropertyNames(o).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,s.d(i,a),i},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>e+".mashlib.min.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},i="Mashlib:",s.l=(e,t,n,a)=>{if(r[e])r[e].push(t);else{var o,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==i+n){o=p;break}}o||(c=!0,(o=document.createElement("script")).charset="utf-8",s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",i+n),o.src=e),r[e]=[t];var d=(t,n)=>{o.onerror=o.onload=null,clearTimeout(f);var i=r[e];if(delete r[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(n)),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),c&&document.head.appendChild(o)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="/",(()=>{var e={792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var a=s.p+s.u(t),o=new Error;s.l(a,n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,r[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,o,c]=n,l=0;if(a.some(t=>0!==e[t])){for(r in o)s.o(o,r)&&(s.m[r]=o[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)i=a[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkMashlib=self.webpackChunkMashlib||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c={};return(()=>{"use strict";s.r(c),s.d(c,{versionInfo:()=>r});var e=s(8230),t=s(7523),n=s(9332);const r={buildTime:"2026-02-23T18:38:59Z",commit:"e1941a6329a0d2666cfebf1fca9a73fdd04fd20e",npmInfo:{mashlib:"2.1.3",npm:"10.8.2",node:"20.20.0",acorn:"8.15.0",ada:"2.9.2",ares:"1.34.6",brotli:"1.1.0",cjs_module_lexer:"2.1.0",cldr:"47.0",icu:"77.1",llhttp:"9.3.0",modules:"115",napi:"9",nghttp2:"1.61.0",openssl:"3.0.17",simdutf:"6.4.2",tz:"2025b",undici:"6.23.0",unicode:"16.0",uv:"1.46.0",uvwasi:"0.0.23",v8:"11.3.244.8-node.33",zlib:"1.3.1-470d3a2"}},i=window,a=()=>{const e=localStorage.getItem("mashlib-theme"),t=window.matchMedia("(prefers-color-scheme: dark)").matches;"dark"===(e||(t?"dark":"light"))?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme")};a(),i.$rdf=e,i.panes=t,i.SolidLogic={authn:n.authn,authSession:n.authSession,store:n.store,solidLogicSingleton:n.solidLogicSingleton},i.mashlib={versionInfo:r,theme:{set:e=>{"dark"===e?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"),localStorage.setItem("mashlib-theme",e)},get:()=>"dark"===document.documentElement.getAttribute("data-theme")?"dark":"light",init:a}},i.panes.runDataBrowser=function(r){e.Fetcher.crossSiteProxyTemplate=window.origin+"/xss/?uri={uri}";try{const e=document.createElement("meta");e.setAttribute("name","monetization"),e.setAttribute("content",`$${window.location.host}`),document.head.appendChild(e)}catch(e){}n.authn.checkUser().then(function(e){return t.initMainPage(n.solidLogicSingleton.store,r)})},window.onpopstate=function(t){i.document.outline.GotoSubject(e.sym(window.document.location.href),!0,void 0,!0,void 0)},i.dump=function(e){}})(),c})());
|
|
462
462
|
//# sourceMappingURL=mashlib.min.js.map
|