diff --git a/.gitignore b/.gitignore index 6002a4d..b02494a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ target/ +node/ *.iml .idea/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..11ced5f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,41 @@ +language: java + +jdk: + - openjdk8 + - openjdk11 + +addons: + apt: + packages: + - libgconf-2-4 + +services: + - docker + +env: + - img=existdb/existdb:latest + - img=existdb/existdb:release + +cache: + directories: + - $HOME/.m2 + +before_install: + - docker pull $img + - docker create --name exist-ci -p 8080:8080 -m 4500m $img + +install: + - mvn clean package -DskipTests -q + +before_script: + - docker cp ./target/*.xar exist-ci:exist/autodeploy/111.xar + - docker start exist-ci + # exist needs time + - sleep 30 + +script: + - mvn test + # - npm run cypress -- --record + +after_success: + - docker ps diff --git a/README.md b/README.md index 2f0fcd1..7585a35 100644 --- a/README.md +++ b/README.md @@ -4,97 +4,90 @@ author: 'Loren Cahlander North Carolina Unites States of America title: 'Stanford CoreNLP Wrapper for eXist-db' --- -Introduction -============ +# exist-stanford-nlp -This application is a wrapper around the Stanford CoreNLP pipeline. for -eXist-db (the Open Source Native XML Database) +[![Build Status](https://travis-ci.com/duncdrum/exist-stanford-nlp.svg?branch=master)](https://travis-ci.com/duncdrum/exist-stanford-nlp) -Why ---- +## Introduction +This application is a wrapper around the [Stanford CoreNLP](https://stanfordnlp.github.io/CoreNLP/) pipeline for +[eXist-db](https://www.exist-db.org) +### Why Loren was between projects and at an eXist-db weekly conference call it -came to light that the previous impementations of Stanford NLP and Named -Entity Recognition were not compatible with version 5.0 of eXist-db. +came to light that the previous implementations of Stanford NLP and Named +Entity Recognition were not compatible with version 5.x of eXist-db. Loren took this project on while looking for the next project, so please see the contributions section at the end of this article. -Getting Started -=============== +## Requirements +- eXist-db: `5.0.0` with min `4Gb` memory + +### For Building from Source +- maven: `3.6.0` +- java: `8` +- (node: `8`) +- (polymer-cli: `1.9.11`) + +## Building from Source +All dependencies including node.js and polymer dependencies are managed by maven. Simply, run `mvn clean package` to generate a `.xar` file inside the `target/` directory. Then follow the installation instructions below. -Install eXist-db ----------------- +When developing web-components you can navigate to the `src/main/polymer` directory and execute polymer-cli commands. -Go to and download version 5.2 or later. +For more information see the [polymer readme](./src/main/polymer/README.md) -Allocate at least 4GB memory for eXist-db +### Testing +To run unit tests(java, xquery, web-component) locally use: `mvn test`. -Installing the Application --------------------------- +Support for integration tests, namely, [Web Component Tester](https://polymer-library.polymer-project.org/3.0/docs/tools/tests) is TBD. +## Installing the Application 1. Open the eXist-db Dashboard 2. Login as the administrator 3. Select ***Stanford Natural Language Processing*** - ![](images/installlation.png) + ![GUI install](images/installlation.png) -Loading the Languages ---------------------- - -The application is installed without any of the language files OOTB. The -files need to be loaded after the installation, so there is an XQuery +### Loading Languages +The application is installed without language files OOTB. The +files need to be loaded after installation. There is an XQuery script that will load a language specific JAR file from an external webiste. The JAR file is expanded and the files are store in a relative path in the database from the data collection within the application. -Open ***/db/apps/stanford-nlp/modules/load-languages.xq*** in **eXide** -and run as administrator +As administrator open and run `/db/apps/stanford-nlp/modules/load-languages.xq` in **eXide**. ### Properties - The properties files within the JAR file are transformed to JSON documents where the entries pointing to the data files that have been loaded into the database are transformed to the URL to that resource. #### Defaults - The pipeline uses default properties that assume that the english jar file is loaded in the classpath. Since the english jar is loaded into the database it is important to have a defaults JSON document that points to the english files in the database. The defaults are loaded into -***/db/apps/stanford-nlp/data/StanfordCoreNLP-english.json*** - -User Interface -============== +`/db/apps/stanford-nlp/data/StanfordCoreNLP-english.json` -Named Entity Recognition ------------------------- +## User Interface +### Named Entity Recognition This user interface allows the user to enter text in the textbox, select the language and then after it is submitted the resulting NER has a color coded view of the text that identities the named entities. -NLP ---- - -API -=== +### NLP -RESTful API ------------ +### RESTful API +#### Natural Language Processing -### Natural Language Processing +#### Named Entity Recognition -### Named Entity Recognition - -XQuery Function Modules ------------------------ - -### Natural Language Processing +### XQuery Function Modules +#### Natural Language Processing ```xquery xquery version "3.1"; @@ -106,7 +99,7 @@ let $properties := json-doc("/db/apps/stanford-nlp/data/StanfordCoreNLP-german.j let $text := "Juliana kommt aus Paris. Das ist die Hauptstadt von Frankreich. " || "In diesem Sommer macht sie einen Sprachkurs in Freiburg. Das ist " || "eine Universitätsstadt im Süden von Deutschland." - + return nlp:parse($text, $properties) ``` @@ -405,7 +398,7 @@ This returns an XML document of the parsed text. ``` -### Named Entity Recognition +#### Named Entity Recognition There is an XQuery library module that takes the output of the NLP pipeline and surrounds the named entities with the appropriate tags. @@ -418,32 +411,24 @@ import module namespace ner = "http://exist-db.org/xquery/stanford-nlp/ner"; let $text := "Juliana kommt aus Paris. Das ist die Hauptstadt von Frankreich. " || "In diesem Sommer macht sie einen Sprachkurs in Freiburg. Das ist " || "eine Universitätsstadt im Süden von Deutschland." - + return ner:query-text($text, "de") ``` -With the results - +With the results: ```xml - Juliana kommt aus Paris. -Das ist die Hauptstadt von Frankreich. -In diesem Sommer macht sie einen Sprachkurs in Freiburg. + Juliana kommt aus Paris. +Das ist die Hauptstadt von Frankreich. +In diesem Sommer macht sie einen Sprachkurs in Freiburg. Das ist eine Universitätsstadt im Süden von Deutschland. ``` -Future Developments -=================== - +### Future Developments Any requests for features should be submitted to -About the Author -================ - -Contributions -------------- - +### About the Author Loren is an independent contractor, so his contributions to the Open Source community are on his own time. If you appreciate his contributions to the NoSQL and the Natural Language Processing diff --git a/README.xml b/README.xml deleted file mode 100644 index cb1ef55..0000000 --- a/README.xml +++ /dev/null @@ -1,468 +0,0 @@ - - - -
- - Stanford CoreNLP Wrapper for eXist-db - - - - - - - - Loren - Cahlander - -
- North Carolina - Unites States of America
- loren.cahlander@easymetahub.com -
-
-
- Introduction - This application is a wrapper around the Stanford CoreNLP pipeline. for - eXist-db (the Open Source Native XML Database) -
- Why - Loren was between projects and at an eXist-db weekly conference - call it came to light that the previous impementations of Stanford NLP and Named - Entity Recognition were not compatible with version 5.0 of eXist-db. Loren took - this project on while looking for the next project, so please see the contributions - section at the end of this article. -
-
-
- Getting Started - -
- Install eXist-db - Go to and download version 5.2 or - later. - Allocate at least 4GB memory for eXist-db -
-
- Installing the Application - - - Open the eXist-db Dashboard - - - Login as the administrator - - - Select Stanford Natural Language - Processing - - - - - - - - - -
-
- Loading the Languages - The application is installed without any of the language files OOTB. The files - need to be loaded after the installation, so there is an XQuery script that will - load a language specific JAR file from an external webiste. The JAR file is - expanded and the files are store in a relative path in the database from the data - collection within the application. - Open /db/apps/stanford-nlp/modules/load-languages.xq in - eXide and run as administrator -
- Properties - The properties files within the JAR file are transformed to JSON documents - where the entries pointing to the data files that have been loaded into the - database are transformed to the URL to that resource. -
- Defaults - The pipeline uses default properties that assume that the english jar file - is loaded in the classpath. Since the english jar is loaded into the - database it is important to have a defaults JSON document that points to the - english files in the database. - The defaults are loaded into /db/apps/stanford-nlp/data/StanfordCoreNLP-english.json -
-
-
-
-
- User Interface - -
- Named Entity Recognition - This user interface allows the user to enter text in the textbox, select the - language and then after it is submitted the resulting NER has a color coded view of - the text that identities the named entities. -
-
- NLP - -
-
-
- API - -
- RESTful API - -
- Natural Language Processing - -
-
- Named Entity Recognition - -
-
-
- XQuery Function Modules - -
- Natural Language Processing - - xquery version "3.1"; - -import module namespace nlp="http://exist-db.org/xquery/stanford-nlp"; - -let $properties := json-doc("/db/apps/stanford-nlp/data/StanfordCoreNLP-german.json") - -let $text := "Juliana kommt aus Paris. Das ist die Hauptstadt von Frankreich. " || - "In diesem Sommer macht sie einen Sprachkurs in Freiburg. Das ist " || - "eine Universitätsstadt im Süden von Deutschland." - -return nlp:parse($text, $properties) - The properties JSON document for German is: - { - "ner.applyNumericClassifiers": "false", - "depparse.language": "german", - "ner.useSUTime": "false", - "ner.applyFineGrained": "false", - "tokenize.language": "de", - "parse.model": "http://localhost:8080/exist/apps/stanford-nlp/data/edu/stanford/nlp/models/lexparser/germanFactored.ser.gz", - "pos.model": "http://localhost:8080/exist/apps/stanford-nlp/data/edu/stanford/nlp/models/pos-tagger/german/german-hgc.tagger", - "ner.model": "http://localhost:8080/exist/apps/stanford-nlp/data/edu/stanford/nlp/models/ner/german.conll.germeval2014.hgc_175m_600.crf.ser.gz", - "annotators": [ - "tokenize", - "ssplit", - "pos", - "ner", - "parse" - ], - "depparse.model": "http://localhost:8080/exist/apps/stanford-nlp/data/edu/stanford/nlp/models/parser/nndep/UD_German.gz" -} - This returns an XML document of the parsed text. - <StanfordNLP> - <sentences> - <sentence id="1"> - <tokens> - <token id="1"> - <word>Juliana</word> - <CharacterOffsetBegin>0</CharacterOffsetBegin> - <CharacterOffsetEnd>7</CharacterOffsetEnd> - <POS>NE</POS> - <NER>PERSON</NER> - </token> - <token id="2"> - <word>kommt</word> - <CharacterOffsetBegin>8</CharacterOffsetBegin> - <CharacterOffsetEnd>13</CharacterOffsetEnd> - <POS>VVFIN</POS> - <NER>O</NER> - </token> - <token id="3"> - <word>aus</word> - <CharacterOffsetBegin>14</CharacterOffsetBegin> - <CharacterOffsetEnd>17</CharacterOffsetEnd> - <POS>APPR</POS> - <NER>O</NER> - </token> - <token id="4"> - <word>Paris</word> - <CharacterOffsetBegin>18</CharacterOffsetBegin> - <CharacterOffsetEnd>23</CharacterOffsetEnd> - <POS>NE</POS> - <NER>LOCATION</NER> - </token> - <token id="5"> - <word>.</word> - <CharacterOffsetBegin>23</CharacterOffsetBegin> - <CharacterOffsetEnd>24</CharacterOffsetEnd> - <POS>$.</POS> - <NER>O</NER> - </token> - </tokens> - <parse>(ROOT - (S (NE Juliana) (VVFIN kommt) - (PP (APPR aus) (NE Paris)) - ($. .))) - -</parse> - </sentence> - <sentence id="2"> - <tokens> - <token id="1"> - <word>Das</word> - <CharacterOffsetBegin>25</CharacterOffsetBegin> - <CharacterOffsetEnd>28</CharacterOffsetEnd> - <POS>PDS</POS> - <NER>O</NER> - </token> - <token id="2"> - <word>ist</word> - <CharacterOffsetBegin>29</CharacterOffsetBegin> - <CharacterOffsetEnd>32</CharacterOffsetEnd> - <POS>VAFIN</POS> - <NER>O</NER> - </token> - <token id="3"> - <word>die</word> - <CharacterOffsetBegin>33</CharacterOffsetBegin> - <CharacterOffsetEnd>36</CharacterOffsetEnd> - <POS>ART</POS> - <NER>O</NER> - </token> - <token id="4"> - <word>Hauptstadt</word> - <CharacterOffsetBegin>37</CharacterOffsetBegin> - <CharacterOffsetEnd>47</CharacterOffsetEnd> - <POS>NN</POS> - <NER>O</NER> - </token> - <token id="5"> - <word>von</word> - <CharacterOffsetBegin>48</CharacterOffsetBegin> - <CharacterOffsetEnd>51</CharacterOffsetEnd> - <POS>APPR</POS> - <NER>O</NER> - </token> - <token id="6"> - <word>Frankreich</word> - <CharacterOffsetBegin>52</CharacterOffsetBegin> - <CharacterOffsetEnd>62</CharacterOffsetEnd> - <POS>NE</POS> - <NER>LOCATION</NER> - </token> - <token id="7"> - <word>.</word> - <CharacterOffsetBegin>62</CharacterOffsetBegin> - <CharacterOffsetEnd>63</CharacterOffsetEnd> - <POS>$.</POS> - <NER>O</NER> - </token> - </tokens> - <parse>(ROOT - (S (PDS Das) (VAFIN ist) - (NP (ART die) (NN Hauptstadt) - (PP (APPR von) (NE Frankreich))) - ($. .))) - -</parse> - </sentence> - <sentence id="3"> - <tokens> - <token id="1"> - <word>In</word> - <CharacterOffsetBegin>64</CharacterOffsetBegin> - <CharacterOffsetEnd>66</CharacterOffsetEnd> - <POS>APPR</POS> - <NER>O</NER> - </token> - <token id="2"> - <word>diesem</word> - <CharacterOffsetBegin>67</CharacterOffsetBegin> - <CharacterOffsetEnd>73</CharacterOffsetEnd> - <POS>PDAT</POS> - <NER>O</NER> - </token> - <token id="3"> - <word>Sommer</word> - <CharacterOffsetBegin>74</CharacterOffsetBegin> - <CharacterOffsetEnd>80</CharacterOffsetEnd> - <POS>NN</POS> - <NER>O</NER> - </token> - <token id="4"> - <word>macht</word> - <CharacterOffsetBegin>81</CharacterOffsetBegin> - <CharacterOffsetEnd>86</CharacterOffsetEnd> - <POS>VVFIN</POS> - <NER>O</NER> - </token> - <token id="5"> - <word>sie</word> - <CharacterOffsetBegin>87</CharacterOffsetBegin> - <CharacterOffsetEnd>90</CharacterOffsetEnd> - <POS>PPER</POS> - <NER>O</NER> - </token> - <token id="6"> - <word>einen</word> - <CharacterOffsetBegin>91</CharacterOffsetBegin> - <CharacterOffsetEnd>96</CharacterOffsetEnd> - <POS>ART</POS> - <NER>O</NER> - </token> - <token id="7"> - <word>Sprachkurs</word> - <CharacterOffsetBegin>97</CharacterOffsetBegin> - <CharacterOffsetEnd>107</CharacterOffsetEnd> - <POS>NN</POS> - <NER>O</NER> - </token> - <token id="8"> - <word>in</word> - <CharacterOffsetBegin>108</CharacterOffsetBegin> - <CharacterOffsetEnd>110</CharacterOffsetEnd> - <POS>APPR</POS> - <NER>O</NER> - </token> - <token id="9"> - <word>Freiburg</word> - <CharacterOffsetBegin>111</CharacterOffsetBegin> - <CharacterOffsetEnd>119</CharacterOffsetEnd> - <POS>NE</POS> - <NER>LOCATION</NER> - </token> - <token id="10"> - <word>.</word> - <CharacterOffsetBegin>119</CharacterOffsetBegin> - <CharacterOffsetEnd>120</CharacterOffsetEnd> - <POS>$.</POS> - <NER>O</NER> - </token> - </tokens> - <parse>(ROOT - (S - (PP (APPR In) (PDAT diesem) (NN Sommer)) - (VVFIN macht) (PPER sie) - (NP (ART einen) (NN Sprachkurs) - (PP (APPR in) (NE Freiburg))) - ($. .))) - -</parse> - </sentence> - <sentence id="4"> - <tokens> - <token id="1"> - <word>Das</word> - <CharacterOffsetBegin>121</CharacterOffsetBegin> - <CharacterOffsetEnd>124</CharacterOffsetEnd> - <POS>PDS</POS> - <NER>O</NER> - </token> - <token id="2"> - <word>ist</word> - <CharacterOffsetBegin>125</CharacterOffsetBegin> - <CharacterOffsetEnd>128</CharacterOffsetEnd> - <POS>VAFIN</POS> - <NER>O</NER> - </token> - <token id="3"> - <word>eine</word> - <CharacterOffsetBegin>129</CharacterOffsetBegin> - <CharacterOffsetEnd>133</CharacterOffsetEnd> - <POS>ART</POS> - <NER>O</NER> - </token> - <token id="4"> - <word>Universitätsstadt</word> - <CharacterOffsetBegin>134</CharacterOffsetBegin> - <CharacterOffsetEnd>151</CharacterOffsetEnd> - <POS>NN</POS> - <NER>O</NER> - </token> - <token id="5"> - <word>im</word> - <CharacterOffsetBegin>152</CharacterOffsetBegin> - <CharacterOffsetEnd>154</CharacterOffsetEnd> - <POS>APPRART</POS> - <NER>O</NER> - </token> - <token id="6"> - <word>Süden</word> - <CharacterOffsetBegin>155</CharacterOffsetBegin> - <CharacterOffsetEnd>160</CharacterOffsetEnd> - <POS>NN</POS> - <NER>O</NER> - </token> - <token id="7"> - <word>von</word> - <CharacterOffsetBegin>161</CharacterOffsetBegin> - <CharacterOffsetEnd>164</CharacterOffsetEnd> - <POS>APPR</POS> - <NER>O</NER> - </token> - <token id="8"> - <word>Deutschland</word> - <CharacterOffsetBegin>165</CharacterOffsetBegin> - <CharacterOffsetEnd>176</CharacterOffsetEnd> - <POS>NE</POS> - <NER>LOCATION</NER> - </token> - <token id="9"> - <word>.</word> - <CharacterOffsetBegin>176</CharacterOffsetBegin> - <CharacterOffsetEnd>177</CharacterOffsetEnd> - <POS>$.</POS> - <NER>O</NER> - </token> - </tokens> - <parse>(ROOT - (S (PDS Das) (VAFIN ist) - (NP (ART eine) (NN Universitätsstadt) - (PP (APPRART im) (NN Süden) - (PP (APPR von) (NE Deutschland)))) - ($. .))) - -</parse> - </sentence> - </sentences> -</StanfordNLP> -
-
- Named Entity Recognition - There is an XQuery library module that takes the output of the NLP pipeline - and surrounds the named entities with the appropriate tags. - xquery version "3.1"; - -import module namespace ner = "http://exist-db.org/xquery/stanford-nlp/ner"; - -let $text := "Juliana kommt aus Paris. Das ist die Hauptstadt von Frankreich. " || - "In diesem Sommer macht sie einen Sprachkurs in Freiburg. Das ist " || - "eine Universitätsstadt im Süden von Deutschland." - -return ner:query-text($text, "de") - With the results - <ner> - <PERSON>Juliana</PERSON> kommt aus <LOCATION>Paris</LOCATION>. -Das ist die Hauptstadt von <LOCATION>Frankreich</LOCATION>. -In diesem Sommer macht sie einen Sprachkurs in <LOCATION>Freiburg</LOCATION>. -Das ist eine Universitätsstadt im Süden von <LOCATION>Deutschland</LOCATION>.</ner> -
-
-
-
- Future Developments - Any requests for features should be submitted to -
-
- About the Author - -
- Contributions - Loren is an independent contractor, so his contributions to the Open Source - community are on his own time. If you appreciate his contributions to the NoSQL and - the Natural Language Processing communities, then please either contract him for a - project or submit a contribution to his company PayPal at - loren.cahlander@easymetahub.com. -
-
-
diff --git a/pom.xml b/pom.xml index 77c6332..bf488b4 100644 --- a/pom.xml +++ b/pom.xml @@ -1,257 +1,341 @@ - + - 4.0.0 - - - org.exist-db - exist-apps-parent - 1.9.1 - - + 4.0.0 + org.exist-db - stanford-nlp - 0.5.9 + exist-apps-parent + 1.9.1 + + - Stanford Natural Language Processing - Integrates the Stanford CoreNLP annotation pipeline library into eXist-db. - https://github.com/lcahlander/exist-stanford-nlp + org.exist-db + stanford-nlp + 0.6.0-SNAPSHOT - - - Loren Cahlander - loren.cahlander@gmail.com - - Creator - - - + Stanford Natural Language Processing + Integrates the Stanford CoreNLP annotation pipeline library into eXist-db. + https://github.com/lcahlander/exist-stanford-nlp - - eXist-db - http://exist-db.org - + + + Loren Cahlander + loren.cahlander@gmail.com + + Creator + + + + Duncan Paterson + duncan@exist-db.org + + - - - GNU Lesser General Public License, version 2.1 - http://opensource.org/licenses/LGPL-2.1 - repo - - + + eXist-db + http://exist-db.org + - - https://github.com/lcahlander/exist-stanford-nlp.git - scm:git:https://github.com/lcahlander/exist-stanford-nlp.git - scm:git:https://github.com/lcahlander/exist-stanford-nlp.git - + + + GNU Lesser General Public License, version 2.1 + http://opensource.org/licenses/LGPL-2.1 + repo + + - - GitHub - https://github.com/lcahlander/exist-stanford-nlp/issues - + + https://github.com/lcahlander/exist-stanford-nlp.git + scm:git:https://github.com/lcahlander/exist-stanford-nlp.git + scm:git:https://github.com/lcahlander/exist-stanford-nlp.git + - - UTF-8 - 1.8 - 1.8 + + GitHub + https://github.com/lcahlander/exist-stanford-nlp/issues + - 5.0.0 + + UTF-8 + 1.8 + 1.8 - - https://exist-db.org/exist-db/nlp + 5.0.0 + v12.16.1 + 6.14.1 + + es5-bundled - http://exist-db.org/xquery/stanford-nlp - StanfordNLPModule - + + https://exist-db.org/exist-db/nlp - - - org.exist-db - exist-core - ${exist.version} - - - edu.stanford.nlp - stanford-corenlp - 3.9.2 - - - edu.stanford.nlp - stanford-corenlp - 3.9.2 - javadoc - - - edu.stanford.nlp - stanford-corenlp - 3.9.2 - sources - - - edu.stanford.nlp - stanford-corenlp - 3.9.2 - models - - - edu.stanford.nlp - stanford-corenlp - 3.9.2 - models-english - - - edu.stanford.nlp - stanford-corenlp - 3.9.2 - models-english-kbp - + http://exist-db.org/xquery/stanford-nlp + StanfordNLPModule + - - - junit - junit - test - - - org.xmlunit - xmlunit-core - 2.6.3 - test - + + + org.exist-db + exist-core + ${exist.version} + + + edu.stanford.nlp + stanford-corenlp + 3.9.2 + + + edu.stanford.nlp + stanford-corenlp + 3.9.2 + javadoc + + + edu.stanford.nlp + stanford-corenlp + 3.9.2 + sources + + + edu.stanford.nlp + stanford-corenlp + 3.9.2 + models + + + edu.stanford.nlp + stanford-corenlp + 3.9.2 + models-english + + + edu.stanford.nlp + stanford-corenlp + 3.9.2 + models-english-kbp + - + + + junit + junit + test + + + org.xmlunit + xmlunit-core + 2.6.3 + test + - - - - org.apache.maven.plugins - maven-changes-plugin - - false - false - Type, Summary - ${project.basedir} - - - - - github-report - - - - - - + - - - - src/main/xar-resources - true - - templates/** - - - - src/main/xar-resources - false - - templates/** - - - + + + + org.apache.maven.plugins + maven-changes-plugin + + false + false + Type, Summary + ${project.basedir} + + + + + github-report + + + + + + - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - ${build-tag} - ${build-commit} - ${build-commit-abbrev} - ${build-version} - ${build-tstamp} - ${project.scm.connection} - ${project.description} - ${project.url} - - - - - - ro.kuberam.maven.plugins - kuberam-expath-plugin - 0.6.2 - - - create-xar - package - - make-xar - - - xar-assembly.xml - ${package-final-name} - - - - - - org.apache.maven.plugins - maven-gpg-plugin - - true - - - - org.apache.maven.plugins - maven-release-plugin - - forked-path - - true - @{project.version} - - - - + + + + src/main/xar-resources + true + + templates/** + + + + src/main/xar-resources + false + + templates/** + + + + + + maven-resources-plugin + 3.1.0 + + + copy-compiled-polymer + + compile + + copy-resources + + + ${basedir}/src/main/xar-resources + + + src/main/polymer/build/${browser.support} + false + + + + + + + + com.github.eirslett + frontend-maven-plugin + 1.9.1 + + src/main/polymer + ${node.version} + ${npm.version} + + + + + install node and npm + + install-node-and-npm + + + generate-resources + + + npm version bump + + npm + + generate-resources + + version --no-git-tag-version --allow-same-version=true ${project.version} + + + + npm install + + npm + + generate-resources + + + ci + + + + polymer build + + npm + + generate-resources + + run build + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + ${build-tag} + ${build-commit} + ${build-commit-abbrev} + ${build-version} + ${build-tstamp} + ${project.scm.connection} + ${project.description} + ${project.url} + + + + + + ro.kuberam.maven.plugins + kuberam-expath-plugin + 0.6.2 + + + create-xar + package + + make-xar + + + xar-assembly.xml + ${package-final-name} + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + true + + + + org.apache.maven.plugins + maven-release-plugin + + forked-path + + + true + @{project.version} + + + + - - - exist-db - http://repo.evolvedbinary.com/repository/exist-db/ - - true - - - false - - - - exist-db-snapshots - http://repo.evolvedbinary.com/repository/exist-db-snapshots/ - - false - - - true - - - + + + exist-db + http://repo.evolvedbinary.com/repository/exist-db/ + + true + + + false + + + + exist-db-snapshots + http://repo.evolvedbinary.com/repository/exist-db-snapshots/ + + false + + + true + + + - - - clojars.org - http://clojars.org/repo - - + + + clojars.org + http://clojars.org/repo + + diff --git a/src/main/polymer/.gitignore b/src/main/polymer/.gitignore index 3e2e84b..50da5c5 100644 --- a/src/main/polymer/.gitignore +++ b/src/main/polymer/.gitignore @@ -1,2 +1,4 @@ build/ +!build/polymer.json node_modules/ +node/ diff --git a/src/main/polymer/package-lock.json b/src/main/polymer/package-lock.json index 67b267c..6a26609 100644 --- a/src/main/polymer/package-lock.json +++ b/src/main/polymer/package-lock.json @@ -1,6 +1,6 @@ { "name": "polymer-starter-kit", - "version": "4.0.0", + "version": "0.6.0-SNAPSHOT", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/main/polymer/package.json b/src/main/polymer/package.json index 4787cb8..fd70a06 100644 --- a/src/main/polymer/package.json +++ b/src/main/polymer/package.json @@ -1,6 +1,6 @@ { "name": "polymer-starter-kit", - "version": "4.0.0", + "version": "0.6.0-SNAPSHOT", "description": "A starting point for Polymer apps", "author": "The Polymer Authors", "license": "BSD-3-Clause", diff --git a/src/main/xar-resources/.gitignore b/src/main/xar-resources/.gitignore new file mode 100644 index 0000000..d5faa95 --- /dev/null +++ b/src/main/xar-resources/.gitignore @@ -0,0 +1,8 @@ +images/ +index.html +manifest.json +node_modules/ +service-worker.js +src/ +polymer.json +sw-precache-config.js diff --git a/src/main/xar-resources/images/favicon.ico b/src/main/xar-resources/images/favicon.ico deleted file mode 100644 index ead7923..0000000 Binary files a/src/main/xar-resources/images/favicon.ico and /dev/null differ diff --git a/src/main/xar-resources/images/manifest/icon-144x144.png b/src/main/xar-resources/images/manifest/icon-144x144.png deleted file mode 100644 index 3b4e549..0000000 Binary files a/src/main/xar-resources/images/manifest/icon-144x144.png and /dev/null differ diff --git a/src/main/xar-resources/images/manifest/icon-192x192.png b/src/main/xar-resources/images/manifest/icon-192x192.png deleted file mode 100644 index 46b0ef3..0000000 Binary files a/src/main/xar-resources/images/manifest/icon-192x192.png and /dev/null differ diff --git a/src/main/xar-resources/images/manifest/icon-48x48.png b/src/main/xar-resources/images/manifest/icon-48x48.png deleted file mode 100644 index 9e15458..0000000 Binary files a/src/main/xar-resources/images/manifest/icon-48x48.png and /dev/null differ diff --git a/src/main/xar-resources/images/manifest/icon-512x512.png b/src/main/xar-resources/images/manifest/icon-512x512.png deleted file mode 100644 index bc7be8b..0000000 Binary files a/src/main/xar-resources/images/manifest/icon-512x512.png and /dev/null differ diff --git a/src/main/xar-resources/images/manifest/icon-72x72.png b/src/main/xar-resources/images/manifest/icon-72x72.png deleted file mode 100644 index 44fb3a0..0000000 Binary files a/src/main/xar-resources/images/manifest/icon-72x72.png and /dev/null differ diff --git a/src/main/xar-resources/images/manifest/icon-96x96.png b/src/main/xar-resources/images/manifest/icon-96x96.png deleted file mode 100644 index 4e7f03c..0000000 Binary files a/src/main/xar-resources/images/manifest/icon-96x96.png and /dev/null differ diff --git a/src/main/xar-resources/images/manifest/icon.svg b/src/main/xar-resources/images/manifest/icon.svg deleted file mode 100644 index b6ac166..0000000 --- a/src/main/xar-resources/images/manifest/icon.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - CoreNLP logo - - - - - - - - - - \ No newline at end of file diff --git a/src/main/xar-resources/index.html b/src/main/xar-resources/index.html deleted file mode 100644 index 5515183..0000000 --- a/src/main/xar-resources/index.html +++ /dev/null @@ -1,12 +0,0 @@ -Stanford Natural Language Processing \ No newline at end of file diff --git a/src/main/xar-resources/manifest.json b/src/main/xar-resources/manifest.json deleted file mode 100644 index 6e78569..0000000 --- a/src/main/xar-resources/manifest.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "My App", - "short_name": "My App", - "description": "My App description", - "icons": [ - { - "src": "images/manifest/icon-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "images/manifest/icon-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "start_url": "/", - "display": "standalone", - "theme_color": "#3f51b5", - "background_color": "#3f51b5" -} diff --git a/src/main/xar-resources/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js b/src/main/xar-resources/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js deleted file mode 100644 index 762aad4..0000000 --- a/src/main/xar-resources/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js +++ /dev/null @@ -1,56 +0,0 @@ -/** -@license @nocompile -Copyright (c) 2018 The Polymer Project Authors. All rights reserved. -This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -Code distributed by Google as part of the polymer project is also -subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt -*/ -(function(){'use strict';var aa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function g(b){var a=aa.has(b);b=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(b);return!a&&b}function l(b){var a=b.isConnected;if(void 0!==a)return a;for(;b&&!(b.__CE_isImportDocument||b instanceof Document);)b=b.parentNode||(window.ShadowRoot&&b instanceof ShadowRoot?b.host:void 0);return!(!b||!(b.__CE_isImportDocument||b instanceof Document))} -function n(b,a){for(;a&&a!==b&&!a.nextSibling;)a=a.parentNode;return a&&a!==b?a.nextSibling:null} -function p(b,a,d){d=void 0===d?new Set:d;for(var c=b;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;a(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)p(c,a,d);c=n(b,e);continue}else if("template"===f){c=n(b,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)p(e,a,d)}c=c.firstChild?c.firstChild:n(b,c)}}function r(b,a,d){b[a]=d};function u(){this.a=new Map;this.s=new Map;this.f=[];this.b=!1}function ba(b,a,d){b.a.set(a,d);b.s.set(d.constructor,d)}function v(b,a){b.b=!0;b.f.push(a)}function w(b,a){b.b&&p(a,function(a){return x(b,a)})}function x(b,a){if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var d=0;d"+this.innerHTML+""},set:function(a){if(this.parentNode){U.body.innerHTML=a;for(a=this.ownerDocument.createDocumentFragment();U.body.firstChild;)m.call(a,U.body.firstChild); -n.call(this.parentNode,a,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};p(a.prototype);Dc(a.prototype);a.b=function(c){c=b(c,"template");for(var d=0,e=c.length,f;d]/g, -l=function(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}};xa=function(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&kf[k.localName]?h:h.replace(jb,l);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),Error("not implemented");}}c+=h}return c}}if(c||v){a.a=function(a,b){var c=f.call(a,!1); -this.R&&this.R(c);b&&(m.call(c.content,f.call(a.content,!0)),kb(c.content,a.content));return c};var kb=function(c,d){if(d.querySelectorAll&&(d=b(d,"template"),0!==d.length)){c=b(c,"template");for(var e=0,f=c.length,g,h;e]/g;function mc(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function nc(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&pc[k.localName]?h:h.replace(lc,mc);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), -Error("not implemented");}}c+=h}return c};var E={},H=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),I=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function rc(a){var b=[];H.currentNode=a;for(a=H.firstChild();a;)b.push(a),a=H.nextSibling();return b}E.parentNode=function(a){H.currentNode=a;return H.parentNode()};E.firstChild=function(a){H.currentNode=a;return H.firstChild()};E.lastChild=function(a){H.currentNode=a;return H.lastChild()};E.previousSibling=function(a){H.currentNode=a;return H.previousSibling()}; -E.nextSibling=function(a){H.currentNode=a;return H.nextSibling()};E.childNodes=rc;E.parentElement=function(a){I.currentNode=a;return I.parentNode()};E.firstElementChild=function(a){I.currentNode=a;return I.firstChild()};E.lastElementChild=function(a){I.currentNode=a;return I.lastChild()};E.previousElementSibling=function(a){I.currentNode=a;return I.previousSibling()};E.nextElementSibling=function(a){I.currentNode=a;return I.nextSibling()}; -E.children=function(a){var b=[];I.currentNode=a;for(a=I.firstChild();a;)b.push(a),a=I.nextSibling();return b};E.innerHTML=function(a){return qc(a,function(a){return rc(a)})};E.textContent=function(a){switch(a.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b;default:return a.nodeValue}};var J={},sc=B.I,tc=[Node.prototype,Element.prototype,HTMLElement.prototype];function K(a){var b;a:{for(b=0;bd.assignedNodes.length&&(d.da=!0)}d.da&&(d.da=!1,Nd(this,b))}a=this.m;b=[];for(d=0;db.indexOf(c))||b.push(c);for(a=0;a "+b}))}a=a.replace(og,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Sa:b,stop:f}}function mg(a,b){a=a.split(pg);a[0]+=b;return a.join(pg)} -function lg(a,b){var c=a.match(qg);return(c=c&&c[2].trim()||"")?c[0].match(rg)?a.replace(qg,function(a,c,f){return b+f}):c.split(rg)[0]===b?c:sg:a.replace(hg,b)}function tg(a){a.selector===ug&&(a.selector="html")}Tf.prototype.c=function(a){return a.match(kg)?this.b(a,vg):mg(a.trim(),vg)};aa.Object.defineProperties(Tf.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); -var fg=/:(nth[-\w]+)\(([^)]+)\)/,vg=":not(.style-scope)",dg=",",ig=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,rg=/[[.:#*]/,hg=":host",ug=":root",kg="::slotted",gg=new RegExp("^("+kg+")"),qg=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ng=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,og=/(.*):dir\((?:(ltr|rtl))\)/,bg=".",pg=":",Yf="class",sg="should_not_match",Vf=new Tf;function wg(a,b,c,d){this.K=a||null;this.b=b||null;this.sa=c||[];this.T=null;this.X=d||"";this.a=this.H=this.O=null}function xg(a){return a?a.__styleInfo:null}function yg(a,b){return a.__styleInfo=b}wg.prototype.c=function(){return this.K};wg.prototype._getStyleRules=wg.prototype.c;function zg(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Ag=navigator.userAgent.match("Trident");function Bg(){}function Cg(a){var b={},c=[],d=0;Kf(a,function(a){Dg(a);a.index=d++;a=a.B.cssText;for(var c;c=Ef.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a} -function Dg(a){if(!a.B){var b={},c={};Eg(a,c)&&(b.J=c,a.rules=null);b.cssText=a.parsedCssText.replace(Hf,"").replace(Cf,"");a.B=b}}function Eg(a,b){var c=a.B;if(c){if(c.J)return Object.assign(b,c.J),!0}else{c=a.parsedCssText;for(var d;a=Cf.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} -function Fg(a,b,c){b&&(b=0<=b.indexOf(";")?Gg(a,b,c):Qf(b,function(b,e,f,g){if(!e)return b+g;(e=Fg(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Fg(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} -function Gg(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(b.G||(b.G=cg(Vf,b,Vf.b,a?bg+a:"",e)),c=b.G||e),d({Za:c,Wa:h,wb:g})}} -function Jg(a,b){var c={},d={},e=b&&b.__cssBuild;Kf(b,function(b){Ig(a,b,e,function(e){zg.call(a.kb||a,e.Za)&&(e.Wa?Eg(b,c):Eg(b,d))})},null,!0);return{Ya:d,Va:c}} -function Kg(a,b,c,d){var e=Sf(b),f=ag(e.is,e.X),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=xg(b).K;var h=Lg(e,d);return Zf(b,e,function(b){var e="";b.B||Dg(b);b.B.cssText&&(e=Gg(a,b.B.cssText,c));b.cssText=e;if(!T&&!Mf(b)&&b.cssText){var k=e=b.cssText;null==b.za&&(b.za=Ff.test(e));if(b.za)if(null==b.ea){b.ea=[];for(var r in h)k=h[r],k=k(e),e!==k&&(e=k,b.ea.push(r))}else{for(r=0;r=m._useCount&&m.parentNode&&m.parentNode.removeChild(m));T?f.a?(f.a.textContent=e,d=f.a):e&&(d=Nf(e,h,a.shadowRoot,f.b)):d?d.parentNode|| -(Ag&&-1b&&-1==[34,35,60,62,63,96].indexOf(b)?a:encodeURIComponent(a)}function d(a){var b=a.charCodeAt(0);return 32b&&-1==[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function e(a,e,g){function h(a){jb.push(a)}var k=e||"scheme start",v=0,p="",x=!1,U=!1,jb=[];a:for(;(void 0!=a[v-1]||0==v)&&!this.h;){var l=a[v];switch(k){case "scheme start":if(l&&r.test(l))p+= -l.toLowerCase(),k="scheme";else if(e){h("Invalid scheme.");break a}else{p="";k="no scheme";continue}break;case "scheme":if(l&&G.test(l))p+=l.toLowerCase();else if(":"==l){this.g=p;p="";if(e)break a;void 0!==m[this.g]&&(this.D=!0);k="file"==this.g?"relative":this.D&&g&&g.g==this.g?"relative or authority":this.D?"authority first slash":"scheme data"}else if(e){void 0!=l&&h("Code point not allowed in scheme: "+l);break a}else{p="";v=0;k="no scheme";continue}break;case "scheme data":"?"==l?(this.u="?", -k="query"):"#"==l?(this.C="#",k="fragment"):void 0!=l&&"\t"!=l&&"\n"!=l&&"\r"!=l&&(this.qa+=c(l));break;case "no scheme":if(g&&void 0!==m[g.g]){k="relative";continue}else h("Missing scheme."),f.call(this),this.h=!0;break;case "relative or authority":if("/"==l&&"/"==a[v+1])k="authority ignore slashes";else{h("Expected /, got: "+l);k="relative";continue}break;case "relative":this.D=!0;"file"!=this.g&&(this.g=g.g);if(void 0==l){this.i=g.i;this.s=g.s;this.j=g.j.slice();this.u=g.u;this.v=g.v;this.f=g.f; -break a}else if("/"==l||"\\"==l)"\\"==l&&h("\\ is an invalid code point."),k="relative slash";else if("?"==l)this.i=g.i,this.s=g.s,this.j=g.j.slice(),this.u="?",this.v=g.v,this.f=g.f,k="query";else if("#"==l)this.i=g.i,this.s=g.s,this.j=g.j.slice(),this.u=g.u,this.C="#",this.v=g.v,this.f=g.f,k="fragment";else{k=a[v+1];var F=a[v+2];if("file"!=this.g||!r.test(l)||":"!=k&&"|"!=k||void 0!=F&&"/"!=F&&"\\"!=F&&"?"!=F&&"#"!=F)this.i=g.i,this.s=g.s,this.v=g.v,this.f=g.f,this.j=g.j.slice(),this.j.pop();k= -"relative path";continue}break;case "relative slash":if("/"==l||"\\"==l)"\\"==l&&h("\\ is an invalid code point."),k="file"==this.g?"file host":"authority ignore slashes";else{"file"!=this.g&&(this.i=g.i,this.s=g.s,this.v=g.v,this.f=g.f);k="relative path";continue}break;case "authority first slash":if("/"==l)k="authority second slash";else{h("Expected '/', got: "+l);k="authority ignore slashes";continue}break;case "authority second slash":k="authority ignore slashes";if("/"!=l){h("Expected '/', got: "+ -l);continue}break;case "authority ignore slashes":if("/"!=l&&"\\"!=l){k="authority";continue}else h("Expected authority, got: "+l);break;case "authority":if("@"==l){x&&(h("@ already seen."),p+="%40");x=!0;for(l=0;l]/g;function eb(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function fb(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&hb[k.localName]?h:h.replace(db,eb);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), -Error("not implemented");}}c+=h}return c};var z={},A=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),B=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function jb(a){var b=[];A.currentNode=a;for(a=A.firstChild();a;)b.push(a),a=A.nextSibling();return b}z.parentNode=function(a){A.currentNode=a;return A.parentNode()};z.firstChild=function(a){A.currentNode=a;return A.firstChild()};z.lastChild=function(a){A.currentNode=a;return A.lastChild()};z.previousSibling=function(a){A.currentNode=a;return A.previousSibling()}; -z.nextSibling=function(a){A.currentNode=a;return A.nextSibling()};z.childNodes=jb;z.parentElement=function(a){B.currentNode=a;return B.parentNode()};z.firstElementChild=function(a){B.currentNode=a;return B.firstChild()};z.lastElementChild=function(a){B.currentNode=a;return B.lastChild()};z.previousElementSibling=function(a){B.currentNode=a;return B.previousSibling()};z.nextElementSibling=function(a){B.currentNode=a;return B.nextSibling()}; -z.children=function(a){var b=[];B.currentNode=a;for(a=B.firstChild();a;)b.push(a),a=B.nextSibling();return b};z.innerHTML=function(a){return ib(a,function(a){return jb(a)})};z.textContent=function(a){switch(a.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b;default:return a.nodeValue}};var C={},kb=u.o,lb=[Node.prototype,Element.prototype,HTMLElement.prototype];function D(a){var b;a:{for(b=0;bd.assignedNodes.length&&(d.N=!0)}d.N&&(d.N=!1,Ac(this,b))}a=this.f;b=[];for(d=0;db.indexOf(c))||b.push(c);for(a=0;a "+b}))}a=a.replace(Re,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,va:b,stop:f}}function Pe(a,b){a=a.split(Se);a[0]+=b;return a.join(Se)} -function Oe(a,b){var c=a.match(Te);return(c=c&&c[2].trim()||"")?c[0].match(Ue)?a.replace(Te,function(a,c,f){return b+f}):c.split(Ue)[0]===b?c:Ve:a.replace(Ke,b)}function We(a){a.selector===Xe&&(a.selector="html")}we.prototype.c=function(a){return a.match(Ne)?this.b(a,Ye):Pe(a.trim(),Ye)};p.Object.defineProperties(we.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); -var Ie=/:(nth[-\w]+)\(([^)]+)\)/,Ye=":not(.style-scope)",Ge=",",Le=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Ue=/[[.:#*]/,Ke=":host",Xe=":root",Ne="::slotted",Je=new RegExp("^("+Ne+")"),Te=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Qe=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Re=/(.*):dir\((?:(ltr|rtl))\)/,Ee=".",Se=":",Ae="class",Ve="should_not_match",W=new we;function Ze(a,b,c,d){this.u=a||null;this.b=b||null;this.ba=c||[];this.D=null;this.H=d||"";this.a=this.m=this.A=null}function X(a){return a?a.__styleInfo:null}function $e(a,b){return a.__styleInfo=b}Ze.prototype.c=function(){return this.u};Ze.prototype._getStyleRules=Ze.prototype.c;function af(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var bf=navigator.userAgent.match("Trident");function cf(){}function df(a){var b={},c=[],d=0;pe(a,function(a){ef(a);a.index=d++;a=a.i.cssText;for(var c;c=je.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a} -function ef(a){if(!a.i){var b={},c={};ff(a,c)&&(b.s=c,a.rules=null);b.cssText=a.parsedCssText.replace(me,"").replace(he,"");a.i=b}}function ff(a,b){var c=a.i;if(c){if(c.s)return Object.assign(b,c.s),!0}else{c=a.parsedCssText;for(var d;a=he.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} -function gf(a,b,c){b&&(b=0<=b.indexOf(";")?hf(a,b,c):ue(b,function(b,e,f,g){if(!e)return b+g;(e=gf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=gf(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} -function hf(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(b.l||(b.l=Fe(W,b,W.b,a?Ee+a:"",e)),c=b.l||e),d({Ca:c,za:h,Va:g})}} -function lf(a,b){var c={},d={},e=b&&b.__cssBuild;pe(b,function(b){kf(a,b,e,function(e){af.call(a.Ma||a,e.Ca)&&(e.za?ff(b,c):ff(b,d))})},null,!0);return{Ba:d,ya:c}} -function mf(a,b,c,d){var e=V(b),f=De(e.is,e.H),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=X(b).u;var h=nf(e,d);return Be(b,e,function(b){var e="";b.i||ef(b);b.i.cssText&&(e=hf(a,b.i.cssText,c));b.cssText=e;if(!S&&!re(b)&&b.cssText){var k=e=b.cssText;null==b.ga&&(b.ga=ke.test(e));if(b.ga)if(null==b.O){b.O=[];for(var q in h)k=h[q],k=k(e),e!==k&&(e=k,b.O.push(q))}else{for(q=0;q=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));S?f.a?(f.a.textContent=e,d=f.a):e&&(d=se(e,h,a.shadowRoot,f.b)):d?d.parentNode||(bf&& --1]/g;function cb(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function db(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&fb[k.localName]?h:h.replace(bb,cb);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), -Error("not implemented");}}c+=h}return c};var B={},C=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),D=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function hb(a){var b=[];C.currentNode=a;for(a=C.firstChild();a;)b.push(a),a=C.nextSibling();return b}B.parentNode=function(a){C.currentNode=a;return C.parentNode()};B.firstChild=function(a){C.currentNode=a;return C.firstChild()};B.lastChild=function(a){C.currentNode=a;return C.lastChild()};B.previousSibling=function(a){C.currentNode=a;return C.previousSibling()}; -B.nextSibling=function(a){C.currentNode=a;return C.nextSibling()};B.childNodes=hb;B.parentElement=function(a){D.currentNode=a;return D.parentNode()};B.firstElementChild=function(a){D.currentNode=a;return D.firstChild()};B.lastElementChild=function(a){D.currentNode=a;return D.lastChild()};B.previousElementSibling=function(a){D.currentNode=a;return D.previousSibling()};B.nextElementSibling=function(a){D.currentNode=a;return D.nextSibling()}; -B.children=function(a){var b=[];D.currentNode=a;for(a=D.firstChild();a;)b.push(a),a=D.nextSibling();return b};B.innerHTML=function(a){return gb(a,function(a){return hb(a)})};B.textContent=function(a){switch(a.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b;default:return a.nodeValue}};var E={},ib=u.l,jb=[Node.prototype,Element.prototype,HTMLElement.prototype];function F(a){var b;a:{for(b=0;bd.assignedNodes.length&&(d.J=!0)}d.J&&(d.J=!1,vc(this,b))}a=this.c;b=[];for(d=0;db.indexOf(c))||b.push(c);for(a=0;a "+b}))}a=a.replace(Id,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,ma:b,stop:f}}function Gd(a,b){a=a.split(Jd);a[0]+=b;return a.join(Jd)} -function Fd(a,b){var c=a.match(Kd);return(c=c&&c[2].trim()||"")?c[0].match(Ld)?a.replace(Kd,function(a,c,f){return b+f}):c.split(Ld)[0]===b?c:Md:a.replace(Bd,b)}function Nd(a){a.selector===Od&&(a.selector="html")}nd.prototype.f=function(a){return a.match(Ed)?this.b(a,Pd):Gd(a.trim(),Pd)};p.Object.defineProperties(nd.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); -var zd=/:(nth[-\w]+)\(([^)]+)\)/,Pd=":not(.style-scope)",xd=",",Cd=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Ld=/[[.:#*]/,Bd=":host",Od=":root",Ed="::slotted",Ad=new RegExp("^("+Ed+")"),Kd=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Hd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Id=/(.*):dir\((?:(ltr|rtl))\)/,vd=".",Jd=":",rd="class",Md="should_not_match",W=new nd;function Qd(a,b,c,d){this.o=a||null;this.b=b||null;this.U=c||[];this.A=null;this.D=d||"";this.a=this.j=this.v=null}function X(a){return a?a.__styleInfo:null}function Rd(a,b){return a.__styleInfo=b}Qd.prototype.f=function(){return this.o};Qd.prototype._getStyleRules=Qd.prototype.f;function Sd(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Td=navigator.userAgent.match("Trident");function Ud(){}function Vd(a){var b={},c=[],d=0;T(a,function(a){Wd(a);a.index=d++;a=a.h.cssText;for(var c;c=cd.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a} -function Wd(a){if(!a.h){var b={},c={};Xd(a,c)&&(b.m=c,a.rules=null);b.cssText=a.parsedCssText.replace(fd,"").replace(ad,"");a.h=b}}function Xd(a,b){var c=a.h;if(c){if(c.m)return Object.assign(b,c.m),!0}else{c=a.parsedCssText;for(var d;a=ad.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} -function Yd(a,b,c){b&&(b=0<=b.indexOf(";")?Zd(a,b,c):ld(b,function(b,e,f,g){if(!e)return b+g;(e=Yd(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Yd(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} -function Zd(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(b.i||(b.i=wd(W,b,W.b,a?vd+a:"",e)),c=b.i||e),d({sa:c,qa:h,Ja:g})}} -function be(a,b){var c={},d={},e=b&&b.__cssBuild;T(b,function(b){ae(a,b,e,function(e){Sd.call(a.T||a,e.sa)&&(e.qa?Xd(b,c):Xd(b,d))})},null,!0);return{ra:d,pa:c}} -function ce(a,b,c,d){var e=V(b),f=ud(e.is,e.D),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=X(b).o;var h=de(e,d);return sd(b,e,function(b){var e="";b.h||Wd(b);b.h.cssText&&(e=Zd(a,b.h.cssText,c));b.cssText=e;if(!Q&&!id(b)&&b.cssText){var k=e=b.cssText;null==b.Y&&(b.Y=dd.test(e));if(b.Y)if(null==b.L){b.L=[];for(var q in h)k=h[q],k=k(e),e!==k&&(e=k,b.L.push(q))}else{for(q=0;q=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));Q?f.a?(f.a.textContent=e,d=f.a):e&&(d=jd(e,h,a.shadowRoot,f.b)):d?d.parentNode||(Td&&-1< -e.indexOf("@media")&&(d.textContent=e),kd(d,null,f.b)):e&&(d=jd(e,h,null,f.b));d&&(d._useCount=d._useCount||0,f.a!=d&&d._useCount++,f.a=d);h=d;Q||(d=c.j,f=e=a.getAttribute("class")||"",g&&(f=e.replace(new RegExp("\\s*x-scope\\s*"+g+"\\s*","g")," ")),f+=(f?" ":"")+"x-scope "+d,e!==f&&md(a,f));b||we.store(k,c.v,h,c.j)}};function Ae(a,b){return(b=b.getRootNode().host)?X(b)?b:Ae(a,b):a.f} -function ze(a,b,c){a=Ae(a,b);var d=X(a);a=Object.create(d.v||null);var e=be(b,c.o);b=$d(d.o,b).m;Object.assign(a,e.pa,b,e.ra);b=c.A;for(var f in b)if((e=b[f])||0===e)a[f]=e;f=ge;b=Object.getOwnPropertyNames(a);for(e=0;e{if(!window.customElements)return;const a=window.HTMLElement,b=window.customElements.define,c=window.customElements.get,d=new Map,e=new Map;let f=!1,g=!1;window.HTMLElement=function(){if(!f){const a=d.get(this.constructor),b=c.call(window.customElements,a);g=!0;const e=new b;return e}f=!1;}, window.HTMLElement.prototype=a.prototype;Object.defineProperty(window,'customElements',{value:window.customElements,configurable:!0,writable:!0}), Object.defineProperty(window.customElements,'define',{value:(c,h)=>{const i=h.prototype,j=class extends a{constructor(){super(), Object.setPrototypeOf(this,i), g||(f=!0, h.call(this)), g=!1;}},k=j.prototype;j.observedAttributes=h.observedAttributes, k.connectedCallback=i.connectedCallback, k.disconnectedCallback=i.disconnectedCallback, k.attributeChangedCallback=i.attributeChangedCallback, k.adoptedCallback=i.adoptedCallback, d.set(h,c), e.set(c,h), b.call(window.customElements,c,j);},configurable:!0,writable:!0}), Object.defineProperty(window.customElements,'get',{value:a=>e.get(a),configurable:!0,writable:!0});})(); - -/** -@license -Copyright (c) 2017 The Polymer Project Authors. All rights reserved. -This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -Code distributed by Google as part of the polymer project is also -subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt -*/ - -}()); diff --git a/src/main/xar-resources/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js b/src/main/xar-resources/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js deleted file mode 100644 index a9f58c7..0000000 --- a/src/main/xar-resources/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +++ /dev/null @@ -1,235 +0,0 @@ -/** -@license @nocompile -Copyright (c) 2018 The Polymer Project Authors. All rights reserved. -This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -Code distributed by Google as part of the polymer project is also -subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt -*/ -(function(){/* - - Copyright (c) 2016 The Polymer Project Authors. All rights reserved. - This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt - The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt - The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt - Code distributed by Google as part of the polymer project is also - subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt -*/ -'use strict';var q,aa="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function ca(){ca=function(){};aa.Symbol||(aa.Symbol=da)}var da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(); -function ea(){ca();var a=aa.Symbol.iterator;a||(a=aa.Symbol.iterator=aa.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});ea=function(){}}function fa(a){var b=0;return ha(function(){return b"+this.innerHTML+""},set:function(a){if(this.parentNode){U.body.innerHTML=a;for(a=this.ownerDocument.createDocumentFragment();U.body.firstChild;)m.call(a,U.body.firstChild); -n.call(this.parentNode,a,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};p(a.prototype);Fc(a.prototype);a.b=function(c){c=b(c,"template");for(var d=0,e=c.length,f;d]/g, -l=function(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}};xa=function(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&of[k.localName]?h:h.replace(kb,l);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),Error("not implemented");}}c+=h}return c}}if(c||v){a.a=function(a,b){var c=f.call(a,!1); -this.R&&this.R(c);b&&(m.call(c.content,f.call(a.content,!0)),lb(c.content,a.content));return c};var lb=function(c,d){if(d.querySelectorAll&&(d=b(d,"template"),0!==d.length)){c=b(c,"template");for(var e=0,f=c.length,g,h;e]/g;function mc(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function nc(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&pc[k.localName]?h:h.replace(lc,mc);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), -Error("not implemented");}}c+=h}return c};var E={},H=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),I=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function rc(a){var b=[];H.currentNode=a;for(a=H.firstChild();a;)b.push(a),a=H.nextSibling();return b}E.parentNode=function(a){H.currentNode=a;return H.parentNode()};E.firstChild=function(a){H.currentNode=a;return H.firstChild()};E.lastChild=function(a){H.currentNode=a;return H.lastChild()};E.previousSibling=function(a){H.currentNode=a;return H.previousSibling()}; -E.nextSibling=function(a){H.currentNode=a;return H.nextSibling()};E.childNodes=rc;E.parentElement=function(a){I.currentNode=a;return I.parentNode()};E.firstElementChild=function(a){I.currentNode=a;return I.firstChild()};E.lastElementChild=function(a){I.currentNode=a;return I.lastChild()};E.previousElementSibling=function(a){I.currentNode=a;return I.previousSibling()};E.nextElementSibling=function(a){I.currentNode=a;return I.nextSibling()}; -E.children=function(a){var b=[];I.currentNode=a;for(a=I.firstChild();a;)b.push(a),a=I.nextSibling();return b};E.innerHTML=function(a){return qc(a,function(a){return rc(a)})};E.textContent=function(a){switch(a.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b;default:return a.nodeValue}};var J={},sc=B.I,tc=[Node.prototype,Element.prototype,HTMLElement.prototype];function K(a){var b;a:{for(b=0;bd.assignedNodes.length&&(d.da=!0)}d.da&&(d.da=!1,Nd(this,b))}a=this.m;b=[];for(d=0;db.indexOf(c))||b.push(c);for(a=0;a "+b}))}a=a.replace(og,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Sa:b,stop:f}}function mg(a,b){a=a.split(pg);a[0]+=b;return a.join(pg)} -function lg(a,b){var c=a.match(qg);return(c=c&&c[2].trim()||"")?c[0].match(rg)?a.replace(qg,function(a,c,f){return b+f}):c.split(rg)[0]===b?c:sg:a.replace(hg,b)}function tg(a){a.selector===ug&&(a.selector="html")}Tf.prototype.c=function(a){return a.match(kg)?this.b(a,vg):mg(a.trim(),vg)};aa.Object.defineProperties(Tf.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); -var fg=/:(nth[-\w]+)\(([^)]+)\)/,vg=":not(.style-scope)",dg=",",ig=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,rg=/[[.:#*]/,hg=":host",ug=":root",kg="::slotted",gg=new RegExp("^("+kg+")"),qg=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ng=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,og=/(.*):dir\((?:(ltr|rtl))\)/,bg=".",pg=":",Yf="class",sg="should_not_match",Vf=new Tf;function wg(a,b,c,d){this.K=a||null;this.b=b||null;this.sa=c||[];this.T=null;this.X=d||"";this.a=this.H=this.O=null}function xg(a){return a?a.__styleInfo:null}function yg(a,b){return a.__styleInfo=b}wg.prototype.c=function(){return this.K};wg.prototype._getStyleRules=wg.prototype.c;function zg(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Ag=navigator.userAgent.match("Trident");function Bg(){}function Cg(a){var b={},c=[],d=0;Kf(a,function(a){Dg(a);a.index=d++;a=a.B.cssText;for(var c;c=Ef.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a} -function Dg(a){if(!a.B){var b={},c={};Eg(a,c)&&(b.J=c,a.rules=null);b.cssText=a.parsedCssText.replace(Hf,"").replace(Cf,"");a.B=b}}function Eg(a,b){var c=a.B;if(c){if(c.J)return Object.assign(b,c.J),!0}else{c=a.parsedCssText;for(var d;a=Cf.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} -function Fg(a,b,c){b&&(b=0<=b.indexOf(";")?Gg(a,b,c):Qf(b,function(b,e,f,g){if(!e)return b+g;(e=Fg(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Fg(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} -function Gg(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(b.G||(b.G=cg(Vf,b,Vf.b,a?bg+a:"",e)),c=b.G||e),d({Za:c,Wa:h,wb:g})}} -function Jg(a,b){var c={},d={},e=b&&b.__cssBuild;Kf(b,function(b){Ig(a,b,e,function(e){zg.call(a.kb||a,e.Za)&&(e.Wa?Eg(b,c):Eg(b,d))})},null,!0);return{Ya:d,Va:c}} -function Kg(a,b,c,d){var e=Sf(b),f=ag(e.is,e.X),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=xg(b).K;var h=Lg(e,d);return Zf(b,e,function(b){var e="";b.B||Dg(b);b.B.cssText&&(e=Gg(a,b.B.cssText,c));b.cssText=e;if(!T&&!Mf(b)&&b.cssText){var k=e=b.cssText;null==b.za&&(b.za=Ff.test(e));if(b.za)if(null==b.ea){b.ea=[];for(var r in h)k=h[r],k=k(e),e!==k&&(e=k,b.ea.push(r))}else{for(r=0;r=m._useCount&&m.parentNode&&m.parentNode.removeChild(m));T?f.a?(f.a.textContent=e,d=f.a):e&&(d=Nf(e,h,a.shadowRoot,f.b)):d?d.parentNode|| -(Ag&&-1b&&-1==[34,35,60,62,63,96].indexOf(b)?a:encodeURIComponent(a)}function d(a){var b=a.charCodeAt(0);return 32b&&-1==[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function e(a,e,g){function h(a){kb.push(a)}var k=e||"scheme start",v=0,p="",x=!1,U=!1,kb=[];a:for(;(void 0!=a[v-1]||0==v)&&!this.h;){var l=a[v];switch(k){case "scheme start":if(l&&r.test(l))p+= -l.toLowerCase(),k="scheme";else if(e){h("Invalid scheme.");break a}else{p="";k="no scheme";continue}break;case "scheme":if(l&&G.test(l))p+=l.toLowerCase();else if(":"==l){this.g=p;p="";if(e)break a;void 0!==m[this.g]&&(this.D=!0);k="file"==this.g?"relative":this.D&&g&&g.g==this.g?"relative or authority":this.D?"authority first slash":"scheme data"}else if(e){void 0!=l&&h("Code point not allowed in scheme: "+l);break a}else{p="";v=0;k="no scheme";continue}break;case "scheme data":"?"==l?(this.u="?", -k="query"):"#"==l?(this.C="#",k="fragment"):void 0!=l&&"\t"!=l&&"\n"!=l&&"\r"!=l&&(this.qa+=c(l));break;case "no scheme":if(g&&void 0!==m[g.g]){k="relative";continue}else h("Missing scheme."),f.call(this),this.h=!0;break;case "relative or authority":if("/"==l&&"/"==a[v+1])k="authority ignore slashes";else{h("Expected /, got: "+l);k="relative";continue}break;case "relative":this.D=!0;"file"!=this.g&&(this.g=g.g);if(void 0==l){this.i=g.i;this.s=g.s;this.j=g.j.slice();this.u=g.u;this.v=g.v;this.f=g.f; -break a}else if("/"==l||"\\"==l)"\\"==l&&h("\\ is an invalid code point."),k="relative slash";else if("?"==l)this.i=g.i,this.s=g.s,this.j=g.j.slice(),this.u="?",this.v=g.v,this.f=g.f,k="query";else if("#"==l)this.i=g.i,this.s=g.s,this.j=g.j.slice(),this.u=g.u,this.C="#",this.v=g.v,this.f=g.f,k="fragment";else{k=a[v+1];var F=a[v+2];if("file"!=this.g||!r.test(l)||":"!=k&&"|"!=k||void 0!=F&&"/"!=F&&"\\"!=F&&"?"!=F&&"#"!=F)this.i=g.i,this.s=g.s,this.v=g.v,this.f=g.f,this.j=g.j.slice(),this.j.pop();k= -"relative path";continue}break;case "relative slash":if("/"==l||"\\"==l)"\\"==l&&h("\\ is an invalid code point."),k="file"==this.g?"file host":"authority ignore slashes";else{"file"!=this.g&&(this.i=g.i,this.s=g.s,this.v=g.v,this.f=g.f);k="relative path";continue}break;case "authority first slash":if("/"==l)k="authority second slash";else{h("Expected '/', got: "+l);k="authority ignore slashes";continue}break;case "authority second slash":k="authority ignore slashes";if("/"!=l){h("Expected '/', got: "+ -l);continue}break;case "authority ignore slashes":if("/"!=l&&"\\"!=l){k="authority";continue}else h("Expected authority, got: "+l);break;case "authority":if("@"==l){x&&(h("@ already seen."),p+="%40");x=!0;for(l=0;l elements before custom elements - if (window.HTMLTemplateElement && HTMLTemplateElement.bootstrap) { - HTMLTemplateElement.bootstrap(window.document); - } - polyfillsLoaded = true; - runWhenLoadedFns().then(fireEvent); - } - - function runWhenLoadedFns() { - allowUpgrades = false; - var done = function() { - allowUpgrades = true; - whenLoadedFns.length = 0; - flushFn && flushFn(); - }; - return Promise.all(whenLoadedFns.map(function(fn) { - return fn instanceof Function ? fn() : fn; - })).then(function() { - done(); - }).catch(function(err) { - console.error(err); - }); - } - - window.WebComponents = window.WebComponents || { - ready: false, - _batchCustomElements: batchCustomElements, - waitFor: function(waitFn) { - if (!waitFn) { - return; - } - whenLoadedFns.push(waitFn); - if (polyfillsLoaded) { - runWhenLoadedFns(); - } - } - }; - - var name = 'webcomponents-loader.js'; - // Feature detect which polyfill needs to be imported. - var polyfills = []; - if (!('attachShadow' in Element.prototype && 'getRootNode' in Element.prototype) || - (window.ShadyDOM && window.ShadyDOM.force)) { - polyfills.push('sd'); - } - if (!window.customElements || window.customElements.forcePolyfill) { - polyfills.push('ce'); - } - - var needsTemplate = (function() { - // no real