polymer-elements-rails 1.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (973) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +39 -0
  3. data/Rakefile +1 -0
  4. data/app/assets/components/gold-cc-cvc-input/README.md +24 -0
  5. data/app/assets/components/gold-cc-cvc-input/bower.json +39 -0
  6. data/app/assets/components/gold-cc-cvc-input/cvc_hint.png +0 -0
  7. data/app/assets/components/gold-cc-cvc-input/cvc_hint_amex.png +0 -0
  8. data/app/assets/components/gold-cc-cvc-input/demo/index.html +54 -0
  9. data/app/assets/components/gold-cc-cvc-input/gold-cc-cvc-input.html +195 -0
  10. data/app/assets/components/gold-cc-cvc-input/hero.svg +36 -0
  11. data/app/assets/components/gold-cc-cvc-input/index.html +26 -0
  12. data/app/assets/components/gold-cc-cvc-input/test/basic.html +125 -0
  13. data/app/assets/components/gold-cc-cvc-input/test/index.html +25 -0
  14. data/app/assets/components/gold-cc-expiration-input/README.md +10 -0
  15. data/app/assets/components/gold-cc-expiration-input/bower.json +40 -0
  16. data/app/assets/components/gold-cc-expiration-input/date-input.html +157 -0
  17. data/app/assets/components/gold-cc-expiration-input/date-validator.html +38 -0
  18. data/app/assets/components/gold-cc-expiration-input/demo/index.html +53 -0
  19. data/app/assets/components/gold-cc-expiration-input/gold-cc-expiration-input.html +131 -0
  20. data/app/assets/components/gold-cc-expiration-input/hero.svg +58 -0
  21. data/app/assets/components/gold-cc-expiration-input/index.html +28 -0
  22. data/app/assets/components/gold-cc-expiration-input/test/basic.html +126 -0
  23. data/app/assets/components/gold-cc-expiration-input/test/index.html +25 -0
  24. data/app/assets/components/gold-cc-input/README.md +9 -0
  25. data/app/assets/components/gold-cc-input/bower.json +39 -0
  26. data/app/assets/components/gold-cc-input/cc-validator.js +192 -0
  27. data/app/assets/components/gold-cc-input/demo/index.html +48 -0
  28. data/app/assets/components/gold-cc-input/gold-cc-input.html +215 -0
  29. data/app/assets/components/gold-cc-input/hero.svg +52 -0
  30. data/app/assets/components/gold-cc-input/images/amex.png +0 -0
  31. data/app/assets/components/gold-cc-input/images/diners_club.png +0 -0
  32. data/app/assets/components/gold-cc-input/images/discover.png +0 -0
  33. data/app/assets/components/gold-cc-input/images/jcb.png +0 -0
  34. data/app/assets/components/gold-cc-input/images/mastercard.png +0 -0
  35. data/app/assets/components/gold-cc-input/images/visa.png +0 -0
  36. data/app/assets/components/gold-cc-input/index.html +28 -0
  37. data/app/assets/components/gold-cc-input/test/basic.html +136 -0
  38. data/app/assets/components/gold-cc-input/test/index.html +25 -0
  39. data/app/assets/components/gold-elements/README.md +12 -0
  40. data/app/assets/components/gold-elements/bower.json +42 -0
  41. data/app/assets/components/gold-elements/demo/complex-form.html +127 -0
  42. data/app/assets/components/gold-elements/demo/index.html +94 -0
  43. data/app/assets/components/gold-elements/demo/item-card.html +59 -0
  44. data/app/assets/components/gold-elements/demo/simple-form.css +55 -0
  45. data/app/assets/components/gold-elements/demo/simple-form.html +93 -0
  46. data/app/assets/components/gold-elements/screenshot.png +0 -0
  47. data/app/assets/components/gold-email-input/README.md +8 -0
  48. data/app/assets/components/gold-email-input/bower.json +40 -0
  49. data/app/assets/components/gold-email-input/demo/index.html +46 -0
  50. data/app/assets/components/gold-email-input/email-validator.html +31 -0
  51. data/app/assets/components/gold-email-input/gold-email-input.html +108 -0
  52. data/app/assets/components/gold-email-input/hero.svg +59 -0
  53. data/app/assets/components/gold-email-input/index.html +28 -0
  54. data/app/assets/components/gold-email-input/test/basic.html +97 -0
  55. data/app/assets/components/gold-email-input/test/index.html +25 -0
  56. data/app/assets/components/gold-phone-input/README.md +13 -0
  57. data/app/assets/components/gold-phone-input/bower.json +39 -0
  58. data/app/assets/components/gold-phone-input/demo/index.html +53 -0
  59. data/app/assets/components/gold-phone-input/gold-phone-input.html +197 -0
  60. data/app/assets/components/gold-phone-input/hero.svg +63 -0
  61. data/app/assets/components/gold-phone-input/index.html +28 -0
  62. data/app/assets/components/gold-phone-input/test/basic.html +117 -0
  63. data/app/assets/components/gold-phone-input/test/index.html +25 -0
  64. data/app/assets/components/gold-zip-input/README.md +8 -0
  65. data/app/assets/components/gold-zip-input/bower.json +40 -0
  66. data/app/assets/components/gold-zip-input/demo/index.html +54 -0
  67. data/app/assets/components/gold-zip-input/gold-zip-input.html +113 -0
  68. data/app/assets/components/gold-zip-input/hero.svg +43 -0
  69. data/app/assets/components/gold-zip-input/index.html +28 -0
  70. data/app/assets/components/gold-zip-input/test/basic.html +116 -0
  71. data/app/assets/components/gold-zip-input/test/index.html +25 -0
  72. data/app/assets/components/gold-zip-input/zip-validator.html +32 -0
  73. data/app/assets/components/hydrolysis/API.md +360 -0
  74. data/app/assets/components/hydrolysis/LICENSE +5 -0
  75. data/app/assets/components/hydrolysis/README.md +36 -0
  76. data/app/assets/components/hydrolysis/bower.json +19 -0
  77. data/app/assets/components/hydrolysis/hydrolysis-analyzer.html +114 -0
  78. data/app/assets/components/hydrolysis/hydrolysis.html +10 -0
  79. data/app/assets/components/hydrolysis/hydrolysis.js +22258 -0
  80. data/app/assets/components/hydrolysis/index.js +27 -0
  81. data/app/assets/components/iron-a11y-announcer/README.md +29 -0
  82. data/app/assets/components/iron-a11y-announcer/bower.json +28 -0
  83. data/app/assets/components/iron-a11y-announcer/demo/index.html +40 -0
  84. data/app/assets/components/iron-a11y-announcer/demo/x-announces.html +50 -0
  85. data/app/assets/components/iron-a11y-announcer/index.html +28 -0
  86. data/app/assets/components/iron-a11y-announcer/iron-a11y-announcer.html +125 -0
  87. data/app/assets/components/iron-a11y-announcer/test/index.html +26 -0
  88. data/app/assets/components/iron-a11y-announcer/test/iron-a11y-announcer.html +59 -0
  89. data/app/assets/components/iron-a11y-keys-behavior/README.md +15 -0
  90. data/app/assets/components/iron-a11y-keys-behavior/bower.json +27 -0
  91. data/app/assets/components/iron-a11y-keys-behavior/demo/index.html +21 -0
  92. data/app/assets/components/iron-a11y-keys-behavior/demo/x-key-aware.html +69 -0
  93. data/app/assets/components/iron-a11y-keys-behavior/index.html +24 -0
  94. data/app/assets/components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html +418 -0
  95. data/app/assets/components/iron-a11y-keys-behavior/test/basic-test.html +248 -0
  96. data/app/assets/components/iron-a11y-keys-behavior/test/index.html +29 -0
  97. data/app/assets/components/iron-a11y-keys/README.md +3 -0
  98. data/app/assets/components/iron-a11y-keys/bower.json +28 -0
  99. data/app/assets/components/iron-a11y-keys/demo/index.html +21 -0
  100. data/app/assets/components/iron-a11y-keys/demo/x-key-aware.html +77 -0
  101. data/app/assets/components/iron-a11y-keys/index.html +24 -0
  102. data/app/assets/components/iron-a11y-keys/iron-a11y-keys.html +121 -0
  103. data/app/assets/components/iron-a11y-keys/test/basic-test.html +122 -0
  104. data/app/assets/components/iron-a11y-keys/test/index.html +29 -0
  105. data/app/assets/components/iron-ajax/README.md +23 -0
  106. data/app/assets/components/iron-ajax/bower.json +38 -0
  107. data/app/assets/components/iron-ajax/demo/index.html +45 -0
  108. data/app/assets/components/iron-ajax/index.html +26 -0
  109. data/app/assets/components/iron-ajax/iron-ajax.html +429 -0
  110. data/app/assets/components/iron-ajax/iron-request.html +272 -0
  111. data/app/assets/components/iron-ajax/test/index.html +25 -0
  112. data/app/assets/components/iron-ajax/test/iron-ajax.html +467 -0
  113. data/app/assets/components/iron-ajax/test/iron-request.html +175 -0
  114. data/app/assets/components/iron-autogrow-textarea/README.md +24 -0
  115. data/app/assets/components/iron-autogrow-textarea/bower.json +37 -0
  116. data/app/assets/components/iron-autogrow-textarea/demo/index.html +81 -0
  117. data/app/assets/components/iron-autogrow-textarea/hero.svg +33 -0
  118. data/app/assets/components/iron-autogrow-textarea/index.html +30 -0
  119. data/app/assets/components/iron-autogrow-textarea/iron-autogrow-textarea.html +263 -0
  120. data/app/assets/components/iron-autogrow-textarea/test/basic.html +94 -0
  121. data/app/assets/components/iron-autogrow-textarea/test/index.html +25 -0
  122. data/app/assets/components/iron-behaviors/README.md +4 -0
  123. data/app/assets/components/iron-behaviors/bower.json +26 -0
  124. data/app/assets/components/iron-behaviors/demo/index.html +47 -0
  125. data/app/assets/components/iron-behaviors/demo/simple-button.html +70 -0
  126. data/app/assets/components/iron-behaviors/index.html +27 -0
  127. data/app/assets/components/iron-behaviors/iron-button-state.html +186 -0
  128. data/app/assets/components/iron-behaviors/iron-control-state.html +107 -0
  129. data/app/assets/components/iron-behaviors/test/active-state.html +154 -0
  130. data/app/assets/components/iron-behaviors/test/disabled-state.html +85 -0
  131. data/app/assets/components/iron-behaviors/test/focused-state.html +120 -0
  132. data/app/assets/components/iron-behaviors/test/index.html +25 -0
  133. data/app/assets/components/iron-behaviors/test/test-elements.html +66 -0
  134. data/app/assets/components/iron-collapse/README.md +37 -0
  135. data/app/assets/components/iron-collapse/bower.json +31 -0
  136. data/app/assets/components/iron-collapse/demo/index.html +74 -0
  137. data/app/assets/components/iron-collapse/hero.svg +23 -0
  138. data/app/assets/components/iron-collapse/index.html +31 -0
  139. data/app/assets/components/iron-collapse/iron-collapse.html +196 -0
  140. data/app/assets/components/iron-collapse/test/basic.html +93 -0
  141. data/app/assets/components/iron-collapse/test/horizontal.html +91 -0
  142. data/app/assets/components/iron-collapse/test/index.html +31 -0
  143. data/app/assets/components/iron-component-page/README.md +6 -0
  144. data/app/assets/components/iron-component-page/bower.json +29 -0
  145. data/app/assets/components/iron-component-page/demo/index.html +27 -0
  146. data/app/assets/components/iron-component-page/demo/json-descriptor.json +1 -0
  147. data/app/assets/components/iron-component-page/index.html +25 -0
  148. data/app/assets/components/iron-component-page/iron-component-page.css +155 -0
  149. data/app/assets/components/iron-component-page/iron-component-page.html +440 -0
  150. data/app/assets/components/iron-component-page/test/index.html +28 -0
  151. data/app/assets/components/iron-component-page/test/iron-component-page.html +42 -0
  152. data/app/assets/components/iron-component-page/test/test-element.html +20 -0
  153. data/app/assets/components/iron-doc-viewer/README.md +3 -0
  154. data/app/assets/components/iron-doc-viewer/bower.json +34 -0
  155. data/app/assets/components/iron-doc-viewer/index.html +25 -0
  156. data/app/assets/components/iron-doc-viewer/iron-doc-property.css +158 -0
  157. data/app/assets/components/iron-doc-viewer/iron-doc-property.html +193 -0
  158. data/app/assets/components/iron-doc-viewer/iron-doc-viewer.css +151 -0
  159. data/app/assets/components/iron-doc-viewer/iron-doc-viewer.html +237 -0
  160. data/app/assets/components/iron-doc-viewer/test/index.html +28 -0
  161. data/app/assets/components/iron-doc-viewer/test/iron-doc-viewer.html +123 -0
  162. data/app/assets/components/iron-elements/README.md +34 -0
  163. data/app/assets/components/iron-elements/bower.json +59 -0
  164. data/app/assets/components/iron-fit-behavior/README.md +3 -0
  165. data/app/assets/components/iron-fit-behavior/bower.json +31 -0
  166. data/app/assets/components/iron-fit-behavior/demo/index.html +42 -0
  167. data/app/assets/components/iron-fit-behavior/demo/simple-fit.html +42 -0
  168. data/app/assets/components/iron-fit-behavior/index.html +30 -0
  169. data/app/assets/components/iron-fit-behavior/iron-fit-behavior.html +230 -0
  170. data/app/assets/components/iron-fit-behavior/test/index.html +34 -0
  171. data/app/assets/components/iron-fit-behavior/test/iron-fit-behavior.html +332 -0
  172. data/app/assets/components/iron-fit-behavior/test/test-fit.html +42 -0
  173. data/app/assets/components/iron-flex-layout/README.md +4 -0
  174. data/app/assets/components/iron-flex-layout/bower.json +21 -0
  175. data/app/assets/components/iron-flex-layout/classes/iron-flex-layout.html +307 -0
  176. data/app/assets/components/iron-flex-layout/classes/iron-shadow-flex-layout.html +302 -0
  177. data/app/assets/components/iron-flex-layout/demo/index.html +40 -0
  178. data/app/assets/components/iron-flex-layout/demo/x-app.html +106 -0
  179. data/app/assets/components/iron-flex-layout/iron-flex-layout.html +313 -0
  180. data/app/assets/components/iron-form-element-behavior/README.md +2 -0
  181. data/app/assets/components/iron-form-element-behavior/bower.json +27 -0
  182. data/app/assets/components/iron-form-element-behavior/demo/index.html +53 -0
  183. data/app/assets/components/iron-form-element-behavior/demo/simple-element.html +27 -0
  184. data/app/assets/components/iron-form-element-behavior/demo/simple-form.html +42 -0
  185. data/app/assets/components/iron-form-element-behavior/index.html +30 -0
  186. data/app/assets/components/iron-form-element-behavior/iron-form-element-behavior.html +50 -0
  187. data/app/assets/components/iron-form/README.md +2 -0
  188. data/app/assets/components/iron-form/bower.json +43 -0
  189. data/app/assets/components/iron-form/demo/index.html +121 -0
  190. data/app/assets/components/iron-form/index.html +30 -0
  191. data/app/assets/components/iron-form/iron-form.html +191 -0
  192. data/app/assets/components/iron-form/test/basic.html +228 -0
  193. data/app/assets/components/iron-form/test/index.html +24 -0
  194. data/app/assets/components/iron-form/test/simple-element.html +35 -0
  195. data/app/assets/components/iron-icon/README.md +56 -0
  196. data/app/assets/components/iron-icon/bower.json +29 -0
  197. data/app/assets/components/iron-icon/demo/index.html +28 -0
  198. data/app/assets/components/iron-icon/demo/location.png +0 -0
  199. data/app/assets/components/iron-icon/hero.svg +19 -0
  200. data/app/assets/components/iron-icon/index.html +26 -0
  201. data/app/assets/components/iron-icon/iron-icon.html +187 -0
  202. data/app/assets/components/iron-icon/test/index.html +31 -0
  203. data/app/assets/components/iron-icon/test/iron-icon.html +120 -0
  204. data/app/assets/components/iron-icons/README.md +8 -0
  205. data/app/assets/components/iron-icons/av-icons.html +73 -0
  206. data/app/assets/components/iron-icons/bower.json +37 -0
  207. data/app/assets/components/iron-icons/communication-icons.html +59 -0
  208. data/app/assets/components/iron-icons/demo/index.html +132 -0
  209. data/app/assets/components/iron-icons/device-icons.html +94 -0
  210. data/app/assets/components/iron-icons/editor-icons.html +70 -0
  211. data/app/assets/components/iron-icons/hardware-icons.html +61 -0
  212. data/app/assets/components/iron-icons/hero.svg +35 -0
  213. data/app/assets/components/iron-icons/image-icons.html +164 -0
  214. data/app/assets/components/iron-icons/index.html +25 -0
  215. data/app/assets/components/iron-icons/iron-icons.html +303 -0
  216. data/app/assets/components/iron-icons/maps-icons.html +71 -0
  217. data/app/assets/components/iron-icons/notification-icons.html +62 -0
  218. data/app/assets/components/iron-icons/social-icons.html +40 -0
  219. data/app/assets/components/iron-iconset-svg/README.md +4 -0
  220. data/app/assets/components/iron-iconset-svg/bower.json +27 -0
  221. data/app/assets/components/iron-iconset-svg/demo/index.html +65 -0
  222. data/app/assets/components/iron-iconset-svg/demo/svg-sample-icons.html +69 -0
  223. data/app/assets/components/iron-iconset-svg/index.html +26 -0
  224. data/app/assets/components/iron-iconset-svg/iron-iconset-svg.html +191 -0
  225. data/app/assets/components/iron-iconset-svg/test/index.html +30 -0
  226. data/app/assets/components/iron-iconset-svg/test/iron-iconset-svg.html +107 -0
  227. data/app/assets/components/iron-iconset/README.md +51 -0
  228. data/app/assets/components/iron-iconset/bower.json +21 -0
  229. data/app/assets/components/iron-iconset/demo/index.html +63 -0
  230. data/app/assets/components/iron-iconset/demo/my-icons-big.png +0 -0
  231. data/app/assets/components/iron-iconset/demo/my-icons.png +0 -0
  232. data/app/assets/components/iron-iconset/index.html +27 -0
  233. data/app/assets/components/iron-iconset/iron-iconset.html +336 -0
  234. data/app/assets/components/iron-iconset/test/index.html +30 -0
  235. data/app/assets/components/iron-iconset/test/iron-iconset.html +149 -0
  236. data/app/assets/components/iron-image/README.md +60 -0
  237. data/app/assets/components/iron-image/bower.json +25 -0
  238. data/app/assets/components/iron-image/demo/index.html +183 -0
  239. data/app/assets/components/iron-image/demo/polymer.svg +175 -0
  240. data/app/assets/components/iron-image/index.html +24 -0
  241. data/app/assets/components/iron-image/iron-image.html +394 -0
  242. data/app/assets/components/iron-image/test/index.html +25 -0
  243. data/app/assets/components/iron-image/test/iron-image.html +78 -0
  244. data/app/assets/components/iron-input/README.md +16 -0
  245. data/app/assets/components/iron-input/bower.json +36 -0
  246. data/app/assets/components/iron-input/demo/index.html +87 -0
  247. data/app/assets/components/iron-input/hero.svg +19 -0
  248. data/app/assets/components/iron-input/index.html +30 -0
  249. data/app/assets/components/iron-input/iron-input.html +235 -0
  250. data/app/assets/components/iron-input/test/index.html +24 -0
  251. data/app/assets/components/iron-input/test/iron-input.html +139 -0
  252. data/app/assets/components/iron-input/test/letters-only.html +30 -0
  253. data/app/assets/components/iron-jsonp-library/README.md +10 -0
  254. data/app/assets/components/iron-jsonp-library/bower.json +31 -0
  255. data/app/assets/components/iron-jsonp-library/hero.svg +31 -0
  256. data/app/assets/components/iron-jsonp-library/index.html +26 -0
  257. data/app/assets/components/iron-jsonp-library/iron-jsonp-library.html +257 -0
  258. data/app/assets/components/iron-localstorage/README.md +13 -0
  259. data/app/assets/components/iron-localstorage/bower.json +22 -0
  260. data/app/assets/components/iron-localstorage/demo/index.html +38 -0
  261. data/app/assets/components/iron-localstorage/hero.svg +37 -0
  262. data/app/assets/components/iron-localstorage/index.html +23 -0
  263. data/app/assets/components/iron-localstorage/iron-localstorage.html +196 -0
  264. data/app/assets/components/iron-localstorage/test/basic.html +88 -0
  265. data/app/assets/components/iron-localstorage/test/index.html +27 -0
  266. data/app/assets/components/iron-localstorage/test/raw.html +66 -0
  267. data/app/assets/components/iron-localstorage/test/value-binding.html +103 -0
  268. data/app/assets/components/iron-media-query/README.md +11 -0
  269. data/app/assets/components/iron-media-query/bower.json +30 -0
  270. data/app/assets/components/iron-media-query/demo/index.html +38 -0
  271. data/app/assets/components/iron-media-query/hero.svg +29 -0
  272. data/app/assets/components/iron-media-query/index.html +29 -0
  273. data/app/assets/components/iron-media-query/iron-media-query.html +84 -0
  274. data/app/assets/components/iron-media-query/test/basic.html +71 -0
  275. data/app/assets/components/iron-media-query/test/index.html +30 -0
  276. data/app/assets/components/iron-menu-behavior/README.md +3 -0
  277. data/app/assets/components/iron-menu-behavior/bower.json +32 -0
  278. data/app/assets/components/iron-menu-behavior/demo/index.html +100 -0
  279. data/app/assets/components/iron-menu-behavior/demo/simple-menu.html +50 -0
  280. data/app/assets/components/iron-menu-behavior/demo/simple-menubar.html +54 -0
  281. data/app/assets/components/iron-menu-behavior/index.html +30 -0
  282. data/app/assets/components/iron-menu-behavior/iron-menu-behavior.html +214 -0
  283. data/app/assets/components/iron-menu-behavior/iron-menubar-behavior.html +65 -0
  284. data/app/assets/components/iron-menu-behavior/test/index.html +35 -0
  285. data/app/assets/components/iron-menu-behavior/test/iron-menu-behavior.html +108 -0
  286. data/app/assets/components/iron-menu-behavior/test/iron-menubar-behavior.html +108 -0
  287. data/app/assets/components/iron-menu-behavior/test/test-menu.html +40 -0
  288. data/app/assets/components/iron-menu-behavior/test/test-menubar.html +40 -0
  289. data/app/assets/components/iron-meta/README.md +46 -0
  290. data/app/assets/components/iron-meta/bower.json +28 -0
  291. data/app/assets/components/iron-meta/demo/index.html +45 -0
  292. data/app/assets/components/iron-meta/hero.svg +33 -0
  293. data/app/assets/components/iron-meta/index.html +27 -0
  294. data/app/assets/components/iron-meta/iron-meta.html +352 -0
  295. data/app/assets/components/iron-meta/test/basic.html +48 -0
  296. data/app/assets/components/iron-meta/test/index.html +30 -0
  297. data/app/assets/components/iron-meta/test/iron-meta.html +186 -0
  298. data/app/assets/components/iron-overlay-behavior/README.md +11 -0
  299. data/app/assets/components/iron-overlay-behavior/bower.json +36 -0
  300. data/app/assets/components/iron-overlay-behavior/demo/index.html +149 -0
  301. data/app/assets/components/iron-overlay-behavior/demo/simple-overlay.html +50 -0
  302. data/app/assets/components/iron-overlay-behavior/index.html +30 -0
  303. data/app/assets/components/iron-overlay-behavior/iron-overlay-backdrop.html +132 -0
  304. data/app/assets/components/iron-overlay-behavior/iron-overlay-behavior.html +432 -0
  305. data/app/assets/components/iron-overlay-behavior/iron-overlay-manager.html +107 -0
  306. data/app/assets/components/iron-overlay-behavior/test/index.html +34 -0
  307. data/app/assets/components/iron-overlay-behavior/test/iron-overlay-behavior.html +314 -0
  308. data/app/assets/components/iron-overlay-behavior/test/test-overlay.html +49 -0
  309. data/app/assets/components/iron-pages/README.md +22 -0
  310. data/app/assets/components/iron-pages/bower.json +27 -0
  311. data/app/assets/components/iron-pages/demo/index.html +60 -0
  312. data/app/assets/components/iron-pages/hero.svg +22 -0
  313. data/app/assets/components/iron-pages/index.html +25 -0
  314. data/app/assets/components/iron-pages/iron-pages.html +83 -0
  315. data/app/assets/components/iron-pages/test/attr-for-selected.html +91 -0
  316. data/app/assets/components/iron-pages/test/basic.html +95 -0
  317. data/app/assets/components/iron-pages/test/index.html +32 -0
  318. data/app/assets/components/iron-range-behavior/README.md +4 -0
  319. data/app/assets/components/iron-range-behavior/bower.json +30 -0
  320. data/app/assets/components/iron-range-behavior/demo/index.html +76 -0
  321. data/app/assets/components/iron-range-behavior/index.html +24 -0
  322. data/app/assets/components/iron-range-behavior/iron-range-behavior.html +101 -0
  323. data/app/assets/components/iron-range-behavior/test/basic.html +119 -0
  324. data/app/assets/components/iron-range-behavior/test/index.html +25 -0
  325. data/app/assets/components/iron-resizable-behavior/README.md +16 -0
  326. data/app/assets/components/iron-resizable-behavior/bower.json +26 -0
  327. data/app/assets/components/iron-resizable-behavior/demo/index.html +29 -0
  328. data/app/assets/components/iron-resizable-behavior/demo/src/x-app.html +114 -0
  329. data/app/assets/components/iron-resizable-behavior/index.html +25 -0
  330. data/app/assets/components/iron-resizable-behavior/iron-resizable-behavior.html +139 -0
  331. data/app/assets/components/iron-resizable-behavior/test/basic.html +263 -0
  332. data/app/assets/components/iron-resizable-behavior/test/index.html +31 -0
  333. data/app/assets/components/iron-resizable-behavior/test/test-elements.html +143 -0
  334. data/app/assets/components/iron-selector/README.md +50 -0
  335. data/app/assets/components/iron-selector/bower.json +31 -0
  336. data/app/assets/components/iron-selector/demo/index.html +66 -0
  337. data/app/assets/components/iron-selector/index.html +28 -0
  338. data/app/assets/components/iron-selector/iron-multi-selectable.html +120 -0
  339. data/app/assets/components/iron-selector/iron-selectable.html +307 -0
  340. data/app/assets/components/iron-selector/iron-selection.html +115 -0
  341. data/app/assets/components/iron-selector/iron-selector.html +71 -0
  342. data/app/assets/components/iron-selector/test/activate-event.html +138 -0
  343. data/app/assets/components/iron-selector/test/basic.html +150 -0
  344. data/app/assets/components/iron-selector/test/content-element.html +43 -0
  345. data/app/assets/components/iron-selector/test/content.html +168 -0
  346. data/app/assets/components/iron-selector/test/index.html +36 -0
  347. data/app/assets/components/iron-selector/test/multi.html +135 -0
  348. data/app/assets/components/iron-selector/test/next-previous.html +134 -0
  349. data/app/assets/components/iron-selector/test/selected-attribute.html +72 -0
  350. data/app/assets/components/iron-selector/test/template-repeat.html +110 -0
  351. data/app/assets/components/iron-signals/README.md +26 -0
  352. data/app/assets/components/iron-signals/bower.json +20 -0
  353. data/app/assets/components/iron-signals/demo/index.html +40 -0
  354. data/app/assets/components/iron-signals/index.html +23 -0
  355. data/app/assets/components/iron-signals/iron-signals.html +81 -0
  356. data/app/assets/components/iron-test-helpers/README.md +23 -0
  357. data/app/assets/components/iron-test-helpers/bower.json +28 -0
  358. data/app/assets/components/iron-test-helpers/iron-test-helpers.html +22 -0
  359. data/app/assets/components/iron-test-helpers/mock-interactions.js +177 -0
  360. data/app/assets/components/iron-test-helpers/test-helpers.js +39 -0
  361. data/app/assets/components/iron-validatable-behavior/README.md +3 -0
  362. data/app/assets/components/iron-validatable-behavior/bower.json +35 -0
  363. data/app/assets/components/iron-validatable-behavior/demo/cats-only.html +46 -0
  364. data/app/assets/components/iron-validatable-behavior/demo/index.html +71 -0
  365. data/app/assets/components/iron-validatable-behavior/demo/validatable-input.html +46 -0
  366. data/app/assets/components/iron-validatable-behavior/index.html +30 -0
  367. data/app/assets/components/iron-validatable-behavior/iron-validatable-behavior.html +101 -0
  368. data/app/assets/components/iron-validatable-behavior/test/index.html +35 -0
  369. data/app/assets/components/iron-validatable-behavior/test/iron-validatable-behavior.html +52 -0
  370. data/app/assets/components/iron-validatable-behavior/test/test-validatable.html +28 -0
  371. data/app/assets/components/iron-validator-behavior/README.md +4 -0
  372. data/app/assets/components/iron-validator-behavior/bower.json +34 -0
  373. data/app/assets/components/iron-validator-behavior/demo/cats-only.html +46 -0
  374. data/app/assets/components/iron-validator-behavior/demo/index.html +144 -0
  375. data/app/assets/components/iron-validator-behavior/index.html +30 -0
  376. data/app/assets/components/iron-validator-behavior/iron-validator-behavior.html +61 -0
  377. data/app/assets/components/iron-validator-behavior/test/index.html +34 -0
  378. data/app/assets/components/iron-validator-behavior/test/iron-validator-behavior.html +47 -0
  379. data/app/assets/components/iron-validator-behavior/test/simple-validator.html +26 -0
  380. data/app/assets/components/marked-element/README.md +31 -0
  381. data/app/assets/components/marked-element/bower.json +33 -0
  382. data/app/assets/components/marked-element/demo/index.html +52 -0
  383. data/app/assets/components/marked-element/hero.svg +27 -0
  384. data/app/assets/components/marked-element/index.html +26 -0
  385. data/app/assets/components/marked-element/marked-element.html +145 -0
  386. data/app/assets/components/marked-element/marked-import.html +10 -0
  387. data/app/assets/components/marked-element/test/index.html +25 -0
  388. data/app/assets/components/marked-element/test/marked-element.html +112 -0
  389. data/app/assets/components/marked/LICENSE +19 -0
  390. data/app/assets/components/marked/Makefile +12 -0
  391. data/app/assets/components/marked/README.md +406 -0
  392. data/app/assets/components/marked/bin/marked +187 -0
  393. data/app/assets/components/marked/bower.json +24 -0
  394. data/app/assets/components/marked/component.json +10 -0
  395. data/app/assets/components/marked/doc/broken.md +426 -0
  396. data/app/assets/components/marked/doc/todo.md +2 -0
  397. data/app/assets/components/marked/index.js +1 -0
  398. data/app/assets/components/marked/lib/marked.js +1272 -0
  399. data/app/assets/components/marked/man/marked.1 +88 -0
  400. data/app/assets/components/marked/marked.min.js +6 -0
  401. data/app/assets/components/marked/package.json +22 -0
  402. data/app/assets/components/neon-animation/README.md +304 -0
  403. data/app/assets/components/neon-animation/animations/cascaded-animation.html +84 -0
  404. data/app/assets/components/neon-animation/animations/fade-in-animation.html +49 -0
  405. data/app/assets/components/neon-animation/animations/fade-out-animation.html +49 -0
  406. data/app/assets/components/neon-animation/animations/hero-animation.html +83 -0
  407. data/app/assets/components/neon-animation/animations/opaque-animation.html +46 -0
  408. data/app/assets/components/neon-animation/animations/ripple-animation.html +92 -0
  409. data/app/assets/components/neon-animation/animations/scale-down-animation.html +65 -0
  410. data/app/assets/components/neon-animation/animations/scale-up-animation.html +58 -0
  411. data/app/assets/components/neon-animation/animations/slide-down-animation.html +59 -0
  412. data/app/assets/components/neon-animation/animations/slide-from-left-animation.html +60 -0
  413. data/app/assets/components/neon-animation/animations/slide-from-right-animation.html +60 -0
  414. data/app/assets/components/neon-animation/animations/slide-left-animation.html +59 -0
  415. data/app/assets/components/neon-animation/animations/slide-right-animation.html +59 -0
  416. data/app/assets/components/neon-animation/animations/slide-up-animation.html +59 -0
  417. data/app/assets/components/neon-animation/animations/transform-animation.html +61 -0
  418. data/app/assets/components/neon-animation/bower.json +51 -0
  419. data/app/assets/components/neon-animation/demo/declarative/index.html +108 -0
  420. data/app/assets/components/neon-animation/demo/doc/basic.html +47 -0
  421. data/app/assets/components/neon-animation/demo/doc/my-animatable.html +73 -0
  422. data/app/assets/components/neon-animation/demo/doc/my-dialog.html +97 -0
  423. data/app/assets/components/neon-animation/demo/doc/types.html +53 -0
  424. data/app/assets/components/neon-animation/demo/dropdown/animated-dropdown.html +97 -0
  425. data/app/assets/components/neon-animation/demo/dropdown/index.html +54 -0
  426. data/app/assets/components/neon-animation/demo/grid/animated-grid.html +166 -0
  427. data/app/assets/components/neon-animation/demo/grid/fullsize-page-with-card.html +124 -0
  428. data/app/assets/components/neon-animation/demo/grid/index.html +70 -0
  429. data/app/assets/components/neon-animation/demo/index.html +6 -0
  430. data/app/assets/components/neon-animation/demo/list/full-view.html +122 -0
  431. data/app/assets/components/neon-animation/demo/list/index.html +29 -0
  432. data/app/assets/components/neon-animation/demo/list/list-demo.html +112 -0
  433. data/app/assets/components/neon-animation/demo/list/list-view.html +127 -0
  434. data/app/assets/components/neon-animation/demo/load/animated-grid.html +147 -0
  435. data/app/assets/components/neon-animation/demo/load/full-page.html +86 -0
  436. data/app/assets/components/neon-animation/demo/load/index.html +45 -0
  437. data/app/assets/components/neon-animation/demo/reprojection/animated-grid.html +166 -0
  438. data/app/assets/components/neon-animation/demo/reprojection/fullsize-page-with-card.html +124 -0
  439. data/app/assets/components/neon-animation/demo/reprojection/index.html +66 -0
  440. data/app/assets/components/neon-animation/demo/reprojection/reprojected-pages.html +42 -0
  441. data/app/assets/components/neon-animation/demo/shared.css +40 -0
  442. data/app/assets/components/neon-animation/demo/tiles/circles-page.html +110 -0
  443. data/app/assets/components/neon-animation/demo/tiles/index.html +77 -0
  444. data/app/assets/components/neon-animation/demo/tiles/squares-page.html +104 -0
  445. data/app/assets/components/neon-animation/guides/neon-animation.md +313 -0
  446. data/app/assets/components/neon-animation/index.html +30 -0
  447. data/app/assets/components/neon-animation/neon-animatable-behavior.html +156 -0
  448. data/app/assets/components/neon-animation/neon-animatable.html +54 -0
  449. data/app/assets/components/neon-animation/neon-animated-pages.html +208 -0
  450. data/app/assets/components/neon-animation/neon-animation-behavior.html +88 -0
  451. data/app/assets/components/neon-animation/neon-animation-runner-behavior.html +110 -0
  452. data/app/assets/components/neon-animation/neon-animation.html +17 -0
  453. data/app/assets/components/neon-animation/neon-animations.html +25 -0
  454. data/app/assets/components/neon-animation/neon-shared-element-animatable-behavior.html +37 -0
  455. data/app/assets/components/neon-animation/neon-shared-element-animation-behavior.html +66 -0
  456. data/app/assets/components/neon-animation/web-animations.html +11 -0
  457. data/app/assets/components/neon-elements/README.md +19 -0
  458. data/app/assets/components/neon-elements/bower.json +26 -0
  459. data/app/assets/components/paper-behaviors/README.md +4 -0
  460. data/app/assets/components/paper-behaviors/bower.json +39 -0
  461. data/app/assets/components/paper-behaviors/demo/index.html +57 -0
  462. data/app/assets/components/paper-behaviors/demo/paper-button.html +71 -0
  463. data/app/assets/components/paper-behaviors/demo/paper-radio-button.html +116 -0
  464. data/app/assets/components/paper-behaviors/index.html +26 -0
  465. data/app/assets/components/paper-behaviors/paper-button-behavior.html +55 -0
  466. data/app/assets/components/paper-behaviors/paper-inky-focus-behavior.html +44 -0
  467. data/app/assets/components/paper-behaviors/test/index.html +26 -0
  468. data/app/assets/components/paper-behaviors/test/paper-button-behavior.html +82 -0
  469. data/app/assets/components/paper-behaviors/test/paper-radio-button-behavior.html +62 -0
  470. data/app/assets/components/paper-behaviors/test/test-button.html +34 -0
  471. data/app/assets/components/paper-behaviors/test/test-radio-button.html +41 -0
  472. data/app/assets/components/paper-button/README.md +45 -0
  473. data/app/assets/components/paper-button/bower.json +39 -0
  474. data/app/assets/components/paper-button/demo/index.html +158 -0
  475. data/app/assets/components/paper-button/index.html +26 -0
  476. data/app/assets/components/paper-button/paper-button.html +177 -0
  477. data/app/assets/components/paper-button/test/index.html +25 -0
  478. data/app/assets/components/paper-button/test/paper-button.html +83 -0
  479. data/app/assets/components/paper-checkbox/README.md +31 -0
  480. data/app/assets/components/paper-checkbox/bower.json +37 -0
  481. data/app/assets/components/paper-checkbox/demo/index.html +94 -0
  482. data/app/assets/components/paper-checkbox/index.html +30 -0
  483. data/app/assets/components/paper-checkbox/metadata.html +17 -0
  484. data/app/assets/components/paper-checkbox/paper-checkbox.css +149 -0
  485. data/app/assets/components/paper-checkbox/paper-checkbox.html +163 -0
  486. data/app/assets/components/paper-checkbox/test/basic.html +101 -0
  487. data/app/assets/components/paper-checkbox/test/index.html +24 -0
  488. data/app/assets/components/paper-dialog-behavior/README.md +24 -0
  489. data/app/assets/components/paper-dialog-behavior/bower.json +37 -0
  490. data/app/assets/components/paper-dialog-behavior/demo/index.html +96 -0
  491. data/app/assets/components/paper-dialog-behavior/demo/simple-dialog.html +42 -0
  492. data/app/assets/components/paper-dialog-behavior/hero.svg +51 -0
  493. data/app/assets/components/paper-dialog-behavior/index.html +30 -0
  494. data/app/assets/components/paper-dialog-behavior/paper-dialog-behavior.html +236 -0
  495. data/app/assets/components/paper-dialog-behavior/paper-dialog-common.css +58 -0
  496. data/app/assets/components/paper-dialog-behavior/test/index.html +34 -0
  497. data/app/assets/components/paper-dialog-behavior/test/paper-dialog-behavior.html +217 -0
  498. data/app/assets/components/paper-dialog-behavior/test/test-dialog.html +42 -0
  499. data/app/assets/components/paper-dialog-scrollable/README.md +8 -0
  500. data/app/assets/components/paper-dialog-scrollable/bower.json +36 -0
  501. data/app/assets/components/paper-dialog-scrollable/demo/index.html +290 -0
  502. data/app/assets/components/paper-dialog-scrollable/hero.svg +69 -0
  503. data/app/assets/components/paper-dialog-scrollable/index.html +30 -0
  504. data/app/assets/components/paper-dialog-scrollable/paper-dialog-scrollable.html +150 -0
  505. data/app/assets/components/paper-dialog-scrollable/test/index.html +34 -0
  506. data/app/assets/components/paper-dialog-scrollable/test/paper-dialog-scrollable.html +171 -0
  507. data/app/assets/components/paper-dialog/README.md +3 -0
  508. data/app/assets/components/paper-dialog/bower.json +35 -0
  509. data/app/assets/components/paper-dialog/demo/index.html +158 -0
  510. data/app/assets/components/paper-dialog/hero.svg +58 -0
  511. data/app/assets/components/paper-dialog/index.html +30 -0
  512. data/app/assets/components/paper-dialog/paper-dialog.html +122 -0
  513. data/app/assets/components/paper-dialog/test/index.html +34 -0
  514. data/app/assets/components/paper-dialog/test/paper-dialog.html +53 -0
  515. data/app/assets/components/paper-drawer-panel/README.md +71 -0
  516. data/app/assets/components/paper-drawer-panel/bower.json +33 -0
  517. data/app/assets/components/paper-drawer-panel/demo/index.html +85 -0
  518. data/app/assets/components/paper-drawer-panel/hero.svg +21 -0
  519. data/app/assets/components/paper-drawer-panel/index.html +29 -0
  520. data/app/assets/components/paper-drawer-panel/paper-drawer-panel.css +142 -0
  521. data/app/assets/components/paper-drawer-panel/paper-drawer-panel.html +585 -0
  522. data/app/assets/components/paper-elements/README.md +21 -0
  523. data/app/assets/components/paper-elements/bower.json +51 -0
  524. data/app/assets/components/paper-fab/README.md +44 -0
  525. data/app/assets/components/paper-fab/bower.json +39 -0
  526. data/app/assets/components/paper-fab/demo/index.html +97 -0
  527. data/app/assets/components/paper-fab/index.html +24 -0
  528. data/app/assets/components/paper-fab/paper-fab.html +175 -0
  529. data/app/assets/components/paper-fab/test/a11y.html +71 -0
  530. data/app/assets/components/paper-fab/test/basic.html +76 -0
  531. data/app/assets/components/paper-fab/test/index.html +26 -0
  532. data/app/assets/components/paper-header-panel/README.md +105 -0
  533. data/app/assets/components/paper-header-panel/bower.json +28 -0
  534. data/app/assets/components/paper-header-panel/demo/index.html +148 -0
  535. data/app/assets/components/paper-header-panel/hero.svg +38 -0
  536. data/app/assets/components/paper-header-panel/index.html +36 -0
  537. data/app/assets/components/paper-header-panel/paper-header-panel.html +496 -0
  538. data/app/assets/components/paper-header-panel/test/basic.html +156 -0
  539. data/app/assets/components/paper-header-panel/test/index.html +34 -0
  540. data/app/assets/components/paper-icon-button/README.md +49 -0
  541. data/app/assets/components/paper-icon-button/bower.json +33 -0
  542. data/app/assets/components/paper-icon-button/demo/index.html +154 -0
  543. data/app/assets/components/paper-icon-button/index.html +23 -0
  544. data/app/assets/components/paper-icon-button/paper-icon-button.html +141 -0
  545. data/app/assets/components/paper-icon-button/test/a11y.html +69 -0
  546. data/app/assets/components/paper-icon-button/test/basic.html +77 -0
  547. data/app/assets/components/paper-icon-button/test/index.html +26 -0
  548. data/app/assets/components/paper-input/README.md +5 -0
  549. data/app/assets/components/paper-input/all-imports.html +12 -0
  550. data/app/assets/components/paper-input/bower.json +44 -0
  551. data/app/assets/components/paper-input/demo/index.html +96 -0
  552. data/app/assets/components/paper-input/demo/ssn-input.html +94 -0
  553. data/app/assets/components/paper-input/demo/ssn-validator.html +31 -0
  554. data/app/assets/components/paper-input/hero.svg +19 -0
  555. data/app/assets/components/paper-input/index.html +28 -0
  556. data/app/assets/components/paper-input/paper-input-addon-behavior.html +47 -0
  557. data/app/assets/components/paper-input/paper-input-behavior.html +317 -0
  558. data/app/assets/components/paper-input/paper-input-char-counter.html +95 -0
  559. data/app/assets/components/paper-input/paper-input-container.html +495 -0
  560. data/app/assets/components/paper-input/paper-input-error.html +99 -0
  561. data/app/assets/components/paper-input/paper-input.html +126 -0
  562. data/app/assets/components/paper-input/paper-textarea.html +106 -0
  563. data/app/assets/components/paper-input/test/index.html +28 -0
  564. data/app/assets/components/paper-input/test/letters-only.html +30 -0
  565. data/app/assets/components/paper-input/test/paper-input-char-counter.html +112 -0
  566. data/app/assets/components/paper-input/test/paper-input-container.html +237 -0
  567. data/app/assets/components/paper-input/test/paper-input-error.html +60 -0
  568. data/app/assets/components/paper-input/test/paper-input.html +213 -0
  569. data/app/assets/components/paper-input/test/paper-textarea.html +169 -0
  570. data/app/assets/components/paper-item/README.md +4 -0
  571. data/app/assets/components/paper-item/all-imports.html +13 -0
  572. data/app/assets/components/paper-item/bower.json +40 -0
  573. data/app/assets/components/paper-item/demo/index.html +285 -0
  574. data/app/assets/components/paper-item/index.html +30 -0
  575. data/app/assets/components/paper-item/paper-icon-item.html +86 -0
  576. data/app/assets/components/paper-item/paper-item-body.html +93 -0
  577. data/app/assets/components/paper-item/paper-item-shared.css +19 -0
  578. data/app/assets/components/paper-item/paper-item.html +95 -0
  579. data/app/assets/components/paper-item/test/index.html +34 -0
  580. data/app/assets/components/paper-item/test/paper-item.html +66 -0
  581. data/app/assets/components/paper-material/README.md +13 -0
  582. data/app/assets/components/paper-material/bower.json +36 -0
  583. data/app/assets/components/paper-material/demo/index.html +113 -0
  584. data/app/assets/components/paper-material/index.html +30 -0
  585. data/app/assets/components/paper-material/paper-material.html +98 -0
  586. data/app/assets/components/paper-material/test/index.html +25 -0
  587. data/app/assets/components/paper-material/test/paper-material.html +92 -0
  588. data/app/assets/components/paper-menu/README.md +3 -0
  589. data/app/assets/components/paper-menu/bower.json +32 -0
  590. data/app/assets/components/paper-menu/demo/index.html +81 -0
  591. data/app/assets/components/paper-menu/hero.svg +35 -0
  592. data/app/assets/components/paper-menu/index.html +30 -0
  593. data/app/assets/components/paper-menu/paper-menu.html +133 -0
  594. data/app/assets/components/paper-menu/test/index.html +34 -0
  595. data/app/assets/components/paper-menu/test/paper-menu.html +67 -0
  596. data/app/assets/components/paper-progress/README.md +47 -0
  597. data/app/assets/components/paper-progress/bower.json +31 -0
  598. data/app/assets/components/paper-progress/demo/index.html +122 -0
  599. data/app/assets/components/paper-progress/hero.svg +21 -0
  600. data/app/assets/components/paper-progress/index.html +28 -0
  601. data/app/assets/components/paper-progress/paper-progress.html +199 -0
  602. data/app/assets/components/paper-progress/test/basic.html +121 -0
  603. data/app/assets/components/paper-progress/test/index.html +25 -0
  604. data/app/assets/components/paper-radio-button/README.md +29 -0
  605. data/app/assets/components/paper-radio-button/bower.json +35 -0
  606. data/app/assets/components/paper-radio-button/demo/index.html +94 -0
  607. data/app/assets/components/paper-radio-button/hero.svg +22 -0
  608. data/app/assets/components/paper-radio-button/index.html +29 -0
  609. data/app/assets/components/paper-radio-button/paper-radio-button.css +109 -0
  610. data/app/assets/components/paper-radio-button/paper-radio-button.html +148 -0
  611. data/app/assets/components/paper-radio-button/test/basic.html +101 -0
  612. data/app/assets/components/paper-radio-button/test/index.html +24 -0
  613. data/app/assets/components/paper-radio-group/README.md +20 -0
  614. data/app/assets/components/paper-radio-group/bower.json +36 -0
  615. data/app/assets/components/paper-radio-group/demo/index.html +108 -0
  616. data/app/assets/components/paper-radio-group/hero.svg +25 -0
  617. data/app/assets/components/paper-radio-group/index.html +30 -0
  618. data/app/assets/components/paper-radio-group/paper-radio-group.html +186 -0
  619. data/app/assets/components/paper-radio-group/test/basic.html +167 -0
  620. data/app/assets/components/paper-radio-group/test/index.html +25 -0
  621. data/app/assets/components/paper-ripple/README.md +65 -0
  622. data/app/assets/components/paper-ripple/bower.json +29 -0
  623. data/app/assets/components/paper-ripple/demo/index.html +413 -0
  624. data/app/assets/components/paper-ripple/hero.svg +30 -0
  625. data/app/assets/components/paper-ripple/index.html +27 -0
  626. data/app/assets/components/paper-ripple/paper-ripple.html +716 -0
  627. data/app/assets/components/paper-ripple/test/index.html +25 -0
  628. data/app/assets/components/paper-ripple/test/paper-ripple.html +166 -0
  629. data/app/assets/components/paper-scroll-header-panel/README.md +56 -0
  630. data/app/assets/components/paper-scroll-header-panel/bower.json +38 -0
  631. data/app/assets/components/paper-scroll-header-panel/demo/demo1.html +81 -0
  632. data/app/assets/components/paper-scroll-header-panel/demo/demo2.html +78 -0
  633. data/app/assets/components/paper-scroll-header-panel/demo/demo3.html +79 -0
  634. data/app/assets/components/paper-scroll-header-panel/demo/demo4.html +108 -0
  635. data/app/assets/components/paper-scroll-header-panel/demo/demo5.html +107 -0
  636. data/app/assets/components/paper-scroll-header-panel/demo/demo6.html +112 -0
  637. data/app/assets/components/paper-scroll-header-panel/demo/demo7.html +114 -0
  638. data/app/assets/components/paper-scroll-header-panel/demo/demo8.html +125 -0
  639. data/app/assets/components/paper-scroll-header-panel/demo/demo9.html +105 -0
  640. data/app/assets/components/paper-scroll-header-panel/demo/images/bg2.jpg +0 -0
  641. data/app/assets/components/paper-scroll-header-panel/demo/images/bg3.jpg +0 -0
  642. data/app/assets/components/paper-scroll-header-panel/demo/images/bg5.jpg +0 -0
  643. data/app/assets/components/paper-scroll-header-panel/demo/images/bg6.jpg +0 -0
  644. data/app/assets/components/paper-scroll-header-panel/demo/images/bg9.jpg +0 -0
  645. data/app/assets/components/paper-scroll-header-panel/demo/index.html +107 -0
  646. data/app/assets/components/paper-scroll-header-panel/demo/lorem-ipsum.html +42 -0
  647. data/app/assets/components/paper-scroll-header-panel/demo/sample-content.html +72 -0
  648. data/app/assets/components/paper-scroll-header-panel/hero.svg +41 -0
  649. data/app/assets/components/paper-scroll-header-panel/index.html +28 -0
  650. data/app/assets/components/paper-scroll-header-panel/paper-scroll-header-panel.html +455 -0
  651. data/app/assets/components/paper-scroll-header-panel/test/basic.html +112 -0
  652. data/app/assets/components/paper-scroll-header-panel/test/index.html +25 -0
  653. data/app/assets/components/paper-slider/README.md +69 -0
  654. data/app/assets/components/paper-slider/bower.json +39 -0
  655. data/app/assets/components/paper-slider/demo/index.html +117 -0
  656. data/app/assets/components/paper-slider/hero.svg +20 -0
  657. data/app/assets/components/paper-slider/index.html +29 -0
  658. data/app/assets/components/paper-slider/paper-slider.css +256 -0
  659. data/app/assets/components/paper-slider/paper-slider.html +516 -0
  660. data/app/assets/components/paper-slider/test/basic.html +186 -0
  661. data/app/assets/components/paper-slider/test/index.html +25 -0
  662. data/app/assets/components/paper-spinner/README.md +45 -0
  663. data/app/assets/components/paper-spinner/bower.json +33 -0
  664. data/app/assets/components/paper-spinner/demo/index.html +98 -0
  665. data/app/assets/components/paper-spinner/hero.svg +27 -0
  666. data/app/assets/components/paper-spinner/index.html +30 -0
  667. data/app/assets/components/paper-spinner/paper-spinner.css +325 -0
  668. data/app/assets/components/paper-spinner/paper-spinner.html +222 -0
  669. data/app/assets/components/paper-spinner/test/index.html +34 -0
  670. data/app/assets/components/paper-spinner/test/paper-spinner.html +63 -0
  671. data/app/assets/components/paper-styles/README.md +3 -0
  672. data/app/assets/components/paper-styles/bower.json +27 -0
  673. data/app/assets/components/paper-styles/classes/global.html +96 -0
  674. data/app/assets/components/paper-styles/classes/shadow-layout.html +302 -0
  675. data/app/assets/components/paper-styles/classes/shadow.html +39 -0
  676. data/app/assets/components/paper-styles/classes/typography.html +171 -0
  677. data/app/assets/components/paper-styles/color.html +333 -0
  678. data/app/assets/components/paper-styles/default-theme.html +39 -0
  679. data/app/assets/components/paper-styles/demo-pages.html +72 -0
  680. data/app/assets/components/paper-styles/demo.css +25 -0
  681. data/app/assets/components/paper-styles/paper-styles-classes.html +14 -0
  682. data/app/assets/components/paper-styles/paper-styles.html +17 -0
  683. data/app/assets/components/paper-styles/shadow.html +61 -0
  684. data/app/assets/components/paper-styles/typography.html +240 -0
  685. data/app/assets/components/paper-tabs/README.md +56 -0
  686. data/app/assets/components/paper-tabs/bower.json +37 -0
  687. data/app/assets/components/paper-tabs/demo/index.html +177 -0
  688. data/app/assets/components/paper-tabs/hero.svg +23 -0
  689. data/app/assets/components/paper-tabs/index.html +25 -0
  690. data/app/assets/components/paper-tabs/paper-tab.html +158 -0
  691. data/app/assets/components/paper-tabs/paper-tabs-icons.html +18 -0
  692. data/app/assets/components/paper-tabs/paper-tabs.html +483 -0
  693. data/app/assets/components/paper-tabs/test/attr-for-selected.html +82 -0
  694. data/app/assets/components/paper-tabs/test/basic.html +157 -0
  695. data/app/assets/components/paper-tabs/test/index.html +32 -0
  696. data/app/assets/components/paper-toast/README.md +4 -0
  697. data/app/assets/components/paper-toast/bower.json +28 -0
  698. data/app/assets/components/paper-toast/demo/index.html +56 -0
  699. data/app/assets/components/paper-toast/hero.svg +20 -0
  700. data/app/assets/components/paper-toast/index.html +26 -0
  701. data/app/assets/components/paper-toast/paper-toast.html +164 -0
  702. data/app/assets/components/paper-toggle-button/README.md +26 -0
  703. data/app/assets/components/paper-toggle-button/bower.json +36 -0
  704. data/app/assets/components/paper-toggle-button/demo/index.html +106 -0
  705. data/app/assets/components/paper-toggle-button/hero.svg +22 -0
  706. data/app/assets/components/paper-toggle-button/index.html +26 -0
  707. data/app/assets/components/paper-toggle-button/paper-toggle-button.css +108 -0
  708. data/app/assets/components/paper-toggle-button/paper-toggle-button.html +183 -0
  709. data/app/assets/components/paper-toggle-button/test/basic.html +86 -0
  710. data/app/assets/components/paper-toggle-button/test/index.html +25 -0
  711. data/app/assets/components/paper-toolbar/README.md +51 -0
  712. data/app/assets/components/paper-toolbar/bower.json +35 -0
  713. data/app/assets/components/paper-toolbar/demo/index.html +81 -0
  714. data/app/assets/components/paper-toolbar/index.html +38 -0
  715. data/app/assets/components/paper-toolbar/paper-toolbar.html +375 -0
  716. data/app/assets/components/paper-toolbar/test/index.html +24 -0
  717. data/app/assets/components/paper-toolbar/test/paper-toolbar.html +147 -0
  718. data/app/assets/components/platinum-elements/LICENSE +202 -0
  719. data/app/assets/components/platinum-elements/README.md +2 -0
  720. data/app/assets/components/platinum-elements/bower.json +19 -0
  721. data/app/assets/components/platinum-push-messaging/README.md +4 -0
  722. data/app/assets/components/platinum-push-messaging/bower.json +37 -0
  723. data/app/assets/components/platinum-push-messaging/demo/index.html +130 -0
  724. data/app/assets/components/platinum-push-messaging/demo/manifest.json +4 -0
  725. data/app/assets/components/platinum-push-messaging/index.html +22 -0
  726. data/app/assets/components/platinum-push-messaging/platinum-push-messaging.html +427 -0
  727. data/app/assets/components/platinum-push-messaging/service-worker.js +151 -0
  728. data/app/assets/components/platinum-sw/README.md +43 -0
  729. data/app/assets/components/platinum-sw/bootstrap/sw-toolbox-setup.js +38 -0
  730. data/app/assets/components/platinum-sw/bower.json +37 -0
  731. data/app/assets/components/platinum-sw/demo/index.html +91 -0
  732. data/app/assets/components/platinum-sw/demo/sw-import.js +1 -0
  733. data/app/assets/components/platinum-sw/index.html +22 -0
  734. data/app/assets/components/platinum-sw/platinum-sw-cache.html +116 -0
  735. data/app/assets/components/platinum-sw/platinum-sw-elements.html +14 -0
  736. data/app/assets/components/platinum-sw/platinum-sw-fetch.html +130 -0
  737. data/app/assets/components/platinum-sw/platinum-sw-import-script.html +57 -0
  738. data/app/assets/components/platinum-sw/platinum-sw-register.html +342 -0
  739. data/app/assets/components/platinum-sw/service-worker.js +52 -0
  740. data/app/assets/components/polymer/LICENSE.txt +27 -0
  741. data/app/assets/components/polymer/bower.json +26 -0
  742. data/app/assets/components/polymer/build.log +27 -0
  743. data/app/assets/components/polymer/polymer-micro.html +523 -0
  744. data/app/assets/components/polymer/polymer-mini.html +1368 -0
  745. data/app/assets/components/polymer/polymer.html +3768 -0
  746. data/app/assets/components/prism-element/README.md +13 -0
  747. data/app/assets/components/prism-element/bower.json +29 -0
  748. data/app/assets/components/prism-element/prism-highlighter.html +95 -0
  749. data/app/assets/components/prism-element/prism-import.html +11 -0
  750. data/app/assets/components/prism/LICENSE +21 -0
  751. data/app/assets/components/prism/README.md +22 -0
  752. data/app/assets/components/prism/bower.json +26 -0
  753. data/app/assets/components/prism/components.js +362 -0
  754. data/app/assets/components/prism/components/prism-actionscript.js +20 -0
  755. data/app/assets/components/prism/components/prism-actionscript.min.js +1 -0
  756. data/app/assets/components/prism/components/prism-apacheconf.js +46 -0
  757. data/app/assets/components/prism/components/prism-apacheconf.min.js +1 -0
  758. data/app/assets/components/prism/components/prism-applescript.js +23 -0
  759. data/app/assets/components/prism/components/prism-applescript.min.js +1 -0
  760. data/app/assets/components/prism/components/prism-aspnet.js +49 -0
  761. data/app/assets/components/prism/components/prism-aspnet.min.js +1 -0
  762. data/app/assets/components/prism/components/prism-autohotkey.js +27 -0
  763. data/app/assets/components/prism/components/prism-autohotkey.min.js +1 -0
  764. data/app/assets/components/prism/components/prism-bash.js +31 -0
  765. data/app/assets/components/prism/components/prism-bash.min.js +1 -0
  766. data/app/assets/components/prism/components/prism-c.js +26 -0
  767. data/app/assets/components/prism/components/prism-c.min.js +1 -0
  768. data/app/assets/components/prism/components/prism-clike.js +32 -0
  769. data/app/assets/components/prism/components/prism-clike.min.js +1 -0
  770. data/app/assets/components/prism/components/prism-coffeescript.js +83 -0
  771. data/app/assets/components/prism/components/prism-coffeescript.min.js +1 -0
  772. data/app/assets/components/prism/components/prism-core.js +426 -0
  773. data/app/assets/components/prism/components/prism-core.min.js +1 -0
  774. data/app/assets/components/prism/components/prism-cpp.js +12 -0
  775. data/app/assets/components/prism/components/prism-cpp.min.js +1 -0
  776. data/app/assets/components/prism/components/prism-csharp.js +9 -0
  777. data/app/assets/components/prism/components/prism-csharp.min.js +1 -0
  778. data/app/assets/components/prism/components/prism-css-extras.js +15 -0
  779. data/app/assets/components/prism/components/prism-css-extras.min.js +1 -0
  780. data/app/assets/components/prism/components/prism-css.js +50 -0
  781. data/app/assets/components/prism/components/prism-css.min.js +1 -0
  782. data/app/assets/components/prism/components/prism-dart.js +18 -0
  783. data/app/assets/components/prism/components/prism-dart.min.js +1 -0
  784. data/app/assets/components/prism/components/prism-eiffel.js +24 -0
  785. data/app/assets/components/prism/components/prism-eiffel.min.js +1 -0
  786. data/app/assets/components/prism/components/prism-erlang.js +35 -0
  787. data/app/assets/components/prism/components/prism-erlang.min.js +1 -0
  788. data/app/assets/components/prism/components/prism-fortran.js +34 -0
  789. data/app/assets/components/prism/components/prism-fortran.min.js +1 -0
  790. data/app/assets/components/prism/components/prism-fsharp.js +21 -0
  791. data/app/assets/components/prism/components/prism-fsharp.min.js +1 -0
  792. data/app/assets/components/prism/components/prism-gherkin.js +78 -0
  793. data/app/assets/components/prism/components/prism-gherkin.min.js +1 -0
  794. data/app/assets/components/prism/components/prism-git.js +68 -0
  795. data/app/assets/components/prism/components/prism-git.min.js +1 -0
  796. data/app/assets/components/prism/components/prism-go.js +9 -0
  797. data/app/assets/components/prism/components/prism-go.min.js +1 -0
  798. data/app/assets/components/prism/components/prism-groovy.js +50 -0
  799. data/app/assets/components/prism/components/prism-groovy.min.js +1 -0
  800. data/app/assets/components/prism/components/prism-haml.js +161 -0
  801. data/app/assets/components/prism/components/prism-haml.min.js +1 -0
  802. data/app/assets/components/prism/components/prism-handlebars.js +82 -0
  803. data/app/assets/components/prism/components/prism-handlebars.min.js +1 -0
  804. data/app/assets/components/prism/components/prism-haskell.js +32 -0
  805. data/app/assets/components/prism/components/prism-haskell.min.js +1 -0
  806. data/app/assets/components/prism/components/prism-http.js +44 -0
  807. data/app/assets/components/prism/components/prism-http.min.js +1 -0
  808. data/app/assets/components/prism/components/prism-ini.js +11 -0
  809. data/app/assets/components/prism/components/prism-ini.min.js +1 -0
  810. data/app/assets/components/prism/components/prism-jade.js +196 -0
  811. data/app/assets/components/prism/components/prism-jade.min.js +1 -0
  812. data/app/assets/components/prism/components/prism-java.js +8 -0
  813. data/app/assets/components/prism/components/prism-java.min.js +1 -0
  814. data/app/assets/components/prism/components/prism-javascript.js +28 -0
  815. data/app/assets/components/prism/components/prism-javascript.min.js +1 -0
  816. data/app/assets/components/prism/components/prism-jsx.js +22 -0
  817. data/app/assets/components/prism/components/prism-jsx.min.js +1 -0
  818. data/app/assets/components/prism/components/prism-julia.js +12 -0
  819. data/app/assets/components/prism/components/prism-julia.min.js +1 -0
  820. data/app/assets/components/prism/components/prism-latex.js +6 -0
  821. data/app/assets/components/prism/components/prism-latex.min.js +1 -0
  822. data/app/assets/components/prism/components/prism-less.js +60 -0
  823. data/app/assets/components/prism/components/prism-less.min.js +1 -0
  824. data/app/assets/components/prism/components/prism-lolcode.js +54 -0
  825. data/app/assets/components/prism/components/prism-lolcode.min.js +1 -0
  826. data/app/assets/components/prism/components/prism-markdown.js +122 -0
  827. data/app/assets/components/prism/components/prism-markdown.min.js +1 -0
  828. data/app/assets/components/prism/components/prism-markup.js +41 -0
  829. data/app/assets/components/prism/components/prism-markup.min.js +1 -0
  830. data/app/assets/components/prism/components/prism-matlab.js +17 -0
  831. data/app/assets/components/prism/components/prism-matlab.min.js +1 -0
  832. data/app/assets/components/prism/components/prism-nasm.js +20 -0
  833. data/app/assets/components/prism/components/prism-nasm.min.js +1 -0
  834. data/app/assets/components/prism/components/prism-nsis.js +19 -0
  835. data/app/assets/components/prism/components/prism-nsis.min.js +1 -0
  836. data/app/assets/components/prism/components/prism-objectivec.js +5 -0
  837. data/app/assets/components/prism/components/prism-objectivec.min.js +1 -0
  838. data/app/assets/components/prism/components/prism-pascal.js +54 -0
  839. data/app/assets/components/prism/components/prism-pascal.min.js +1 -0
  840. data/app/assets/components/prism/components/prism-perl.js +112 -0
  841. data/app/assets/components/prism/components/prism-perl.min.js +1 -0
  842. data/app/assets/components/prism/components/prism-php-extras.js +11 -0
  843. data/app/assets/components/prism/components/prism-php-extras.min.js +1 -0
  844. data/app/assets/components/prism/components/prism-php.js +109 -0
  845. data/app/assets/components/prism/components/prism-php.min.js +1 -0
  846. data/app/assets/components/prism/components/prism-powershell.js +34 -0
  847. data/app/assets/components/prism/components/prism-powershell.min.js +1 -0
  848. data/app/assets/components/prism/components/prism-python.js +13 -0
  849. data/app/assets/components/prism/components/prism-python.min.js +1 -0
  850. data/app/assets/components/prism/components/prism-r.js +19 -0
  851. data/app/assets/components/prism/components/prism-r.min.js +1 -0
  852. data/app/assets/components/prism/components/prism-rest.js +204 -0
  853. data/app/assets/components/prism/components/prism-rest.min.js +1 -0
  854. data/app/assets/components/prism/components/prism-rip.js +29 -0
  855. data/app/assets/components/prism/components/prism-rip.min.js +1 -0
  856. data/app/assets/components/prism/components/prism-ruby.js +21 -0
  857. data/app/assets/components/prism/components/prism-ruby.min.js +1 -0
  858. data/app/assets/components/prism/components/prism-rust.js +53 -0
  859. data/app/assets/components/prism/components/prism-rust.min.js +1 -0
  860. data/app/assets/components/prism/components/prism-sas.js +35 -0
  861. data/app/assets/components/prism/components/prism-sas.min.js +1 -0
  862. data/app/assets/components/prism/components/prism-scala.js +9 -0
  863. data/app/assets/components/prism/components/prism-scala.min.js +1 -0
  864. data/app/assets/components/prism/components/prism-scheme.js +24 -0
  865. data/app/assets/components/prism/components/prism-scheme.min.js +1 -0
  866. data/app/assets/components/prism/components/prism-scss.js +36 -0
  867. data/app/assets/components/prism/components/prism-scss.min.js +1 -0
  868. data/app/assets/components/prism/components/prism-smalltalk.js +31 -0
  869. data/app/assets/components/prism/components/prism-smalltalk.min.js +1 -0
  870. data/app/assets/components/prism/components/prism-smarty.js +124 -0
  871. data/app/assets/components/prism/components/prism-smarty.min.js +1 -0
  872. data/app/assets/components/prism/components/prism-sql.js +17 -0
  873. data/app/assets/components/prism/components/prism-sql.min.js +1 -0
  874. data/app/assets/components/prism/components/prism-stylus.js +61 -0
  875. data/app/assets/components/prism/components/prism-stylus.min.js +1 -0
  876. data/app/assets/components/prism/components/prism-swift.js +8 -0
  877. data/app/assets/components/prism/components/prism-swift.min.js +1 -0
  878. data/app/assets/components/prism/components/prism-twig.js +46 -0
  879. data/app/assets/components/prism/components/prism-twig.min.js +1 -0
  880. data/app/assets/components/prism/components/prism-typescript.js +3 -0
  881. data/app/assets/components/prism/components/prism-typescript.min.js +1 -0
  882. data/app/assets/components/prism/components/prism-wiki.js +80 -0
  883. data/app/assets/components/prism/components/prism-wiki.min.js +1 -0
  884. data/app/assets/components/prism/components/prism-yaml.js +44 -0
  885. data/app/assets/components/prism/components/prism-yaml.min.js +1 -0
  886. data/app/assets/components/prism/examples.js +181 -0
  887. data/app/assets/components/prism/gulpfile.js +48 -0
  888. data/app/assets/components/prism/package.json +27 -0
  889. data/app/assets/components/prism/plugins/autolinker/prism-autolinker.css +3 -0
  890. data/app/assets/components/prism/plugins/autolinker/prism-autolinker.js +66 -0
  891. data/app/assets/components/prism/plugins/autolinker/prism-autolinker.min.js +1 -0
  892. data/app/assets/components/prism/plugins/file-highlight/prism-file-highlight.js +61 -0
  893. data/app/assets/components/prism/plugins/file-highlight/prism-file-highlight.min.js +1 -0
  894. data/app/assets/components/prism/plugins/highlight-keywords/prism-highlight-keywords.js +14 -0
  895. data/app/assets/components/prism/plugins/highlight-keywords/prism-highlight-keywords.min.js +1 -0
  896. data/app/assets/components/prism/plugins/ie8/prism-ie8.css +3 -0
  897. data/app/assets/components/prism/plugins/ie8/prism-ie8.js +42 -0
  898. data/app/assets/components/prism/plugins/ie8/prism-ie8.min.js +1 -0
  899. data/app/assets/components/prism/plugins/line-highlight/prism-line-highlight.css +47 -0
  900. data/app/assets/components/prism/plugins/line-highlight/prism-line-highlight.js +109 -0
  901. data/app/assets/components/prism/plugins/line-highlight/prism-line-highlight.min.js +1 -0
  902. data/app/assets/components/prism/plugins/line-numbers/prism-line-numbers.css +40 -0
  903. data/app/assets/components/prism/plugins/line-numbers/prism-line-numbers.js +38 -0
  904. data/app/assets/components/prism/plugins/line-numbers/prism-line-numbers.min.js +1 -0
  905. data/app/assets/components/prism/plugins/show-invisibles/prism-show-invisibles.css +20 -0
  906. data/app/assets/components/prism/plugins/show-invisibles/prism-show-invisibles.js +16 -0
  907. data/app/assets/components/prism/plugins/show-invisibles/prism-show-invisibles.min.js +1 -0
  908. data/app/assets/components/prism/plugins/show-language/prism-show-language.css +16 -0
  909. data/app/assets/components/prism/plugins/show-language/prism-show-language.js +20 -0
  910. data/app/assets/components/prism/plugins/show-language/prism-show-language.min.css +1 -0
  911. data/app/assets/components/prism/plugins/show-language/prism-show-language.min.js +1 -0
  912. data/app/assets/components/prism/plugins/wpd/prism-wpd.css +11 -0
  913. data/app/assets/components/prism/plugins/wpd/prism-wpd.js +163 -0
  914. data/app/assets/components/prism/plugins/wpd/prism-wpd.min.js +1 -0
  915. data/app/assets/components/prism/prism.js +672 -0
  916. data/app/assets/components/prism/themes/prism-coy.css +231 -0
  917. data/app/assets/components/prism/themes/prism-dark.css +126 -0
  918. data/app/assets/components/prism/themes/prism-funky.css +115 -0
  919. data/app/assets/components/prism/themes/prism-okaidia.css +119 -0
  920. data/app/assets/components/prism/themes/prism-tomorrow.css +119 -0
  921. data/app/assets/components/prism/themes/prism-twilight.css +199 -0
  922. data/app/assets/components/prism/themes/prism.css +135 -0
  923. data/app/assets/components/prism/vendor/promise.js +5 -0
  924. data/app/assets/components/promise-polyfill/Gruntfile.js +40 -0
  925. data/app/assets/components/promise-polyfill/LICENSE +20 -0
  926. data/app/assets/components/promise-polyfill/Promise-Statics.js +37 -0
  927. data/app/assets/components/promise-polyfill/Promise.js +128 -0
  928. data/app/assets/components/promise-polyfill/Promise.min.js +3 -0
  929. data/app/assets/components/promise-polyfill/README.md +13 -0
  930. data/app/assets/components/promise-polyfill/bower.json +31 -0
  931. data/app/assets/components/promise-polyfill/package.json +35 -0
  932. data/app/assets/components/promise-polyfill/promise-polyfill-lite.html +7 -0
  933. data/app/assets/components/promise-polyfill/promise-polyfill.html +2 -0
  934. data/app/assets/components/sw-toolbox/CONTRIBUTING.md +30 -0
  935. data/app/assets/components/sw-toolbox/LICENSE +201 -0
  936. data/app/assets/components/sw-toolbox/README.md +156 -0
  937. data/app/assets/components/sw-toolbox/bower.json +14 -0
  938. data/app/assets/components/sw-toolbox/companion.js +23 -0
  939. data/app/assets/components/sw-toolbox/package.json +21 -0
  940. data/app/assets/components/sw-toolbox/sw-toolbox.js +148 -0
  941. data/app/assets/components/sw-toolbox/sw-toolbox.map.json +1 -0
  942. data/app/assets/components/web-animations-js/COPYING +202 -0
  943. data/app/assets/components/web-animations-js/History.md +108 -0
  944. data/app/assets/components/web-animations-js/README.md +161 -0
  945. data/app/assets/components/web-animations-js/bower.json +31 -0
  946. data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +17 -0
  947. data/app/assets/components/web-animations-js/web-animations-next-lite.min.js.map +1 -0
  948. data/app/assets/components/web-animations-js/web-animations-next.min.js +17 -0
  949. data/app/assets/components/web-animations-js/web-animations-next.min.js.map +1 -0
  950. data/app/assets/components/web-animations-js/web-animations.html +50 -0
  951. data/app/assets/components/web-animations-js/web-animations.min.js +17 -0
  952. data/app/assets/components/web-animations-js/web-animations.min.js.gz +0 -0
  953. data/app/assets/components/web-animations-js/web-animations.min.js.map +1 -0
  954. data/app/assets/components/webcomponentsjs/CustomElements.js +956 -0
  955. data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
  956. data/app/assets/components/webcomponentsjs/HTMLImports.js +1078 -0
  957. data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
  958. data/app/assets/components/webcomponentsjs/MutationObserver.js +344 -0
  959. data/app/assets/components/webcomponentsjs/MutationObserver.min.js +11 -0
  960. data/app/assets/components/webcomponentsjs/README.md +125 -0
  961. data/app/assets/components/webcomponentsjs/ShadowDOM.js +4414 -0
  962. data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +15 -0
  963. data/app/assets/components/webcomponentsjs/bower.json +14 -0
  964. data/app/assets/components/webcomponentsjs/build.log +33 -0
  965. data/app/assets/components/webcomponentsjs/package.json +31 -0
  966. data/app/assets/components/webcomponentsjs/webcomponents-lite.js +2300 -0
  967. data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +13 -0
  968. data/app/assets/components/webcomponentsjs/webcomponents.js +7112 -0
  969. data/app/assets/components/webcomponentsjs/webcomponents.min.js +15 -0
  970. data/lib/polymer-elements-rails.rb +2 -0
  971. data/lib/polymer-elements-rails/engine.rb +4 -0
  972. data/lib/polymer-elements-rails/version.rb +3 -0
  973. metadata +1063 -0
@@ -0,0 +1,108 @@
1
+ ### 2.0.0 - *April 5 2015*
2
+
3
+ * Improve behavior of group Animation playback rate.
4
+ * Rename Animation to KeyframeEffect.
5
+ * Rename AnimationSequence to SequenceEffect.
6
+ * Rename AnimationGroup to GroupEffect.
7
+ * Rename AnimationPlayer to Animation.
8
+ * Remove KeyframeEffect.effect and add KeyframeEffect.getFrames.
9
+ * Rename Animation.source to Animation.effect.
10
+ * Rename Timeline.getAnimationPlayers to Timeline.getAnimations.
11
+ * Rename Element.getAnimationPlayers to Element.getAnimations.
12
+
13
+ ### 1.0.7 - *March 10 2015*
14
+
15
+ * Improve performance of constructing groups and sequences.
16
+ * Remove support for animating zoom.
17
+ * Add bower file.
18
+
19
+ ### 1.0.6 - *February 5 2015*
20
+
21
+ * Implement playbackRate setter for group players.
22
+ * Fix pausing a group player before its first tick.
23
+ * Fix cancelling a group player before its first tick.
24
+ * Fix excess CPU use on idle pages where custom effects and groups were used.
25
+ * Suppress AnimationTiming.playbackRate deprecation warning for cases where AnimationTiming.playbackRate == 1.
26
+
27
+ ### 1.0.5 - *January 6 2015*
28
+
29
+ * Fix loading the polyfill in an SVG document
30
+ * Fix a problem where groups didn't take effect in their first frame
31
+ * Don't rely on performance.now
32
+
33
+ ### 1.0.4 - *December 8 2014*
34
+
35
+ * Fix a critical bug where deprecation logic wasn't being loaded
36
+ when `web-animations-next` and `web-animations-next-lite` were
37
+ executed on top of a native `element.animate`.
38
+
39
+ ### 1.0.3 - *December 4 2014*
40
+
41
+ * Fix a critical bug on iOS 7 and Safari <= 6. Due to limitations,
42
+ inline style patching is not supported on these platforms.
43
+
44
+ ### 1.0.2 - *November 28 2014*
45
+
46
+ * Deprecated `AnimationTiming.playbackRate`.
47
+
48
+ For example, this is no longer supported:
49
+
50
+ var player = element.animate(
51
+ keyframes,
52
+ {duration: 1000, playbackRate: 2});
53
+
54
+ Use `AnimationPlayer.playbackRate` instead:
55
+
56
+ var player = element.animate(
57
+ keyframes,
58
+ {duration: 1000});
59
+ player.playbackRate = 2;
60
+
61
+ If you have any feedback on this change, please start a discussion
62
+ on the public-fx mailing list:
63
+ http://lists.w3.org/Archives/Public/public-fx/
64
+
65
+ Or file an issue against the specification on GitHub:
66
+ https://github.com/w3c/web-animations/issues/new
67
+
68
+ ### 1.0.1 - *November 26 2014*
69
+
70
+ * Players should be constructed in idle state
71
+ * `play()` and `reverse()` should not force a start times
72
+ * Add `requestAnimationFrame` ids and `cancelAnimationFrame`
73
+
74
+ ### 1.0.0 — *November 21 2014*
75
+
76
+ The web-animations-js hackers are pleased to announce the release of
77
+ a new codebase for the Web Animations Polyfill:
78
+ https://github.com/web-animations/web-animations-js
79
+
80
+ The previous polyfill has been moved to:
81
+ https://github.com/web-animations/web-animations-js-legacy
82
+
83
+ The new codebase is focused on code-size -- our smallest target is
84
+ now only 33kb or 11kb after gzip.
85
+
86
+ We've implemented native fallback. If the target browser provides
87
+ Web Animations features natively, the Polyfill will use them.
88
+
89
+ We now provide three different build targets:
90
+
91
+ `web-animations.min.js` - Tracks the Web Animations features that
92
+ are supported natively in browsers. Today that means Element.animate
93
+ and Playback Control in Chrome. If you’re not sure what features you
94
+ will need, start with this.
95
+
96
+ `web-animations-next.min.js` - All of web-animations.min.js plus
97
+ features that are still undergoing discussion or have yet to be
98
+ implemented natively.
99
+
100
+ `web-animations-next-lite.min.js` - A cut down version of
101
+ web-animations-next, removes several lesser used property handlers
102
+ and some of the larger and less used features such as matrix
103
+ interpolation/decomposition.
104
+
105
+ Not all features of the previous polyfill have been ported to the
106
+ new codebase; most notably mutation of Animations and Groups and
107
+ Additive Animations are not yet supported. These features are still
108
+ important and will be implemented in the coming weeks.
@@ -0,0 +1,161 @@
1
+
2
+ Quick Start
3
+ -----------
4
+
5
+ To provide native Chrome Web Animation features (`Element.animate` and Playback
6
+ Control) in other browsers, use `web-animations.min.js`. To explore all of the
7
+ proposed Web Animations API, use `web-animations-next.min.js`.
8
+
9
+ What is Web Animations?
10
+ -----------------------
11
+
12
+ Web Animations is a new JavaScript API for driving animated content on the web.
13
+ By unifying the animation features of SVG and CSS, Web Animations unlocks
14
+ features previously only usable declaratively, and exposes powerful,
15
+ high-performance animation capabilities to developers.
16
+
17
+ For more details see the
18
+ [W3C specification](http://w3c.github.io/web-animations/).
19
+
20
+ What is the polyfill?
21
+ ---------------------
22
+
23
+ The polyfill is a JavaScript implementation of the Web Animations API. It works
24
+ on modern versions of all major browsers. For more details about browser
25
+ support see <https://www.polymer-project.org/resources/compatibility.html>.
26
+
27
+ Getting Started
28
+ ---------------
29
+
30
+ Here's a simple example of an animation that scales and changes the opacity of
31
+ a `<div>` over 0.5 seconds. The animation alternates producing a pulsing
32
+ effect.
33
+
34
+ <script src="web-animations.min.js"></script>
35
+ <div class="pulse" style="width:150px;">Hello world!</div>
36
+ <script>
37
+ var elem = document.querySelector('.pulse');
38
+ var animation = elem.animate([
39
+ {opacity: 0.5, transform: "scale(0.5)"},
40
+ {opacity: 1.0, transform: "scale(1)"}
41
+ ], {
42
+ direction: 'alternate',
43
+ duration: 500,
44
+ iterations: Infinity
45
+ });
46
+ </script>
47
+
48
+ Web Animations supports off-main-thread animations, and also allows procedural
49
+ generation of animations and fine-grained control of animation playback. See
50
+ <http://web-animations.github.io> for ideas and inspiration!
51
+
52
+ Native Fallback
53
+ ---------------
54
+
55
+ When the polyfill runs on a browser that implements `Element.animate` and
56
+ `Animation` Playback Control it will detect and use the underlying native
57
+ features.
58
+
59
+ Different Build Targets
60
+ -----------------------
61
+
62
+ ### web-animations.min.js
63
+
64
+ Tracks the Web Animations features that are supported natively in browsers.
65
+ Today that means Element.animate and Playback Control in Chrome. If you’re not
66
+ sure what features you will need, start with this.
67
+
68
+ ### web-animations-next.min.js
69
+
70
+ Contains all of web-animations.min.js plus features that are still undergoing
71
+ discussion or have yet to be implemented natively.
72
+
73
+ ### web-animations-next-lite.min.js
74
+
75
+ A cut down version of web-animations-next, it removes several lesser used
76
+ property handlers and some of the larger and less used features such as matrix
77
+ interpolation/decomposition.
78
+
79
+ ### Build Target Comparison
80
+
81
+ | | web-animations | web-animations-next | web-animations-next-lite |
82
+ |------------------------|:--------------:|:-------------------:|:------------------------:|
83
+ |Size (gzipped) | 12.5kb | 14kb | 10.5kb |
84
+ |Element.animate | ✔ | ✔ | ✔ |
85
+ |Timing input (easings, duration, fillMode, etc.) for animation effects| ✔ | ✔ | ✔ |
86
+ |Playback control | ✔ | ✔ | ✔ |
87
+ |Support for animating lengths, transforms and opacity| ✔ | ✔ | ✔ |
88
+ |Support for animating other CSS properties| ✔ | ✔ | 🚫 |
89
+ |Matrix fallback for transform animations | ✔ | ✔ | 🚫 |
90
+ |KeyframeEffect constructor | 🚫 | ✔ | ✔ |
91
+ |Simple GroupEffects & SequenceEffects | 🚫 | ✔ | ✔ |
92
+ |Custom Effects | 🚫 | ✔ | ✔ |
93
+ |Timing input (easings, duration, fillMode, etc.) for groups</div>| 🚫 | 🚫\* | 🚫 |
94
+ |Additive animation | 🚫 | 🚫\* | 🚫 |
95
+ |Motion path | 🚫\* | 🚫\* | 🚫 |
96
+ |Modifiable keyframe effect timing| 🚫 | 🚫\* | 🚫\* |
97
+ |Modifiable group timing | 🚫 | 🚫\* | 🚫\* |
98
+ |Usable inline style\*\* | ✔ | ✔ | 🚫 |
99
+
100
+ \* support is planned for these features.
101
+ \*\* see inline style caveat below.
102
+
103
+ Caveats
104
+ -------
105
+
106
+ Some things won’t ever be faithful to the native implementation due to browser
107
+ and CSS API limitations. These include:
108
+
109
+ ### Inline Style
110
+
111
+ Inline style modification is the mechanism used by the polyfill to animate
112
+ properties. Both web-animations and web-animations-next incorporate a module
113
+ that emulates a vanilla inline style object, so that style modification from
114
+ JavaScript can still work in the presence of animations. However, to keep the
115
+ size of web-animations-next-lite as small as possible, the style emulation
116
+ module is not included. When using this version of the polyfill, JavaScript
117
+ inline style modification will be overwritten by animations.
118
+ Due to browser constraints inline style modification is not supported on iOS 7
119
+ or Safari 6 (or earlier versions).
120
+
121
+ ### Prefix handling
122
+
123
+ The polyfill will automatically detect the correctly prefixed name to use when
124
+ writing animated properties back to the platform. Where possible, the polyfill
125
+ will only accept unprefixed versions of experimental features. For example:
126
+
127
+ var effect = new KeyframeEffect(elem, {"transform": "translate(100px, 100px)"}, 2000);
128
+
129
+ will work in all browsers that implement a conforming version of transform, but
130
+
131
+ var effect = new KeyframeEffect(elem, {"-webkit-transform": "translate(100px, 100px)"}, 2000);
132
+
133
+ will not work anywhere.
134
+
135
+ API and Specification Feedback
136
+ ------------------------------
137
+
138
+ File an issue on GitHub: <https://github.com/w3c/web-animations/issues/new>.
139
+ Alternatively, send an email to <public-fx@w3.org> with subject line
140
+ “[web-animations] … message topic …”
141
+ ([archives](http://lists.w3.org/Archives/Public/public-fx/)).
142
+
143
+ Polyfill Issues
144
+ ---------------
145
+
146
+ Report any issues with this implementation on GitHub:
147
+ <https://github.com/web-animations/web-animations-next/issues/new>.
148
+
149
+ Breaking changes
150
+ ----------------
151
+
152
+ When we make a potentially breaking change to the polyfill's API
153
+ surface (like a rename) we will, where possible, continue supporting the
154
+ old version, deprecated, for three months, and ensure that there are
155
+ console warnings to indicate that a change is pending. After three
156
+ months, the old version of the API surface (e.g. the old version of a
157
+ function name) will be removed. *If you see deprecation warnings you
158
+ can't avoid it by not updating*.
159
+
160
+ We also announce anything that isn't a bug fix on
161
+ [web-animations-changes@googlegroups.com](https://groups.google.com/forum/#!forum/web-animations-changes).
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "web-animations-js",
3
+ "description": "JavaScript implementation of the Web Animations API",
4
+ "homepage": "https://github.com/web-animations/web-animations-js",
5
+ "main": "web-animations.min.js",
6
+ "moduleType": [
7
+ "globals"
8
+ ],
9
+ "keywords": [
10
+ "animations",
11
+ "polyfill"
12
+ ],
13
+ "license": "Apache-2.0",
14
+ "ignore": [
15
+ "**/.*",
16
+ "node_modules",
17
+ "templates",
18
+ "test",
19
+ "src",
20
+ "Gruntfile.js",
21
+ "package.json",
22
+ "target-config.js",
23
+ "target-loader.js",
24
+ "web-animations.dev.html",
25
+ "web-animations.dev.js",
26
+ "web-animations-next.dev.html",
27
+ "web-animations-next.dev.js",
28
+ "web-animations-next-lite.dev.html",
29
+ "web-animations-next-lite.dev.js"
30
+ ]
31
+ }
@@ -0,0 +1,17 @@
1
+ // Copyright 2014 Google Inc. All rights reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ !function(a,b){b["true"]=a;var c={},d={},e={},f=null;!function(a){function b(b,c){var d={delay:0,endDelay:0,fill:c?"both":"none",iterationStart:0,iterations:1,duration:c?"auto":0,playbackRate:1,direction:"normal",easing:"linear"};return"number"!=typeof b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNames(b).forEach(function(c){if("auto"!=b[c]){if(("number"==typeof d[c]||"duration"==c)&&("number"!=typeof b[c]||isNaN(b[c])))return;if("fill"==c&&-1==p.indexOf(b[c]))return;if("direction"==c&&-1==q.indexOf(b[c]))return;if("playbackRate"==c&&1!==b[c]&&a.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;d[c]=b[c]}}):d.duration=b,d}function c(a,c){var d=b(a,c);return d.easing=f(d.easing),d}function d(a,b,c,d){return 0>a||a>1||0>c||c>1?y:function(e){function f(a,b,c){return 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}for(var g=0,h=1;;){var i=(g+h)/2,j=f(a,c,i);if(Math.abs(e-j)<.001)return f(b,d,i);e>j?g=i:h=i}}}function e(a,b){return function(c){if(c>=1)return 1;var d=1/a;return c+=b*d,c-c%d}}function f(a){var b=w.exec(a);if(b)return d.apply(this,b.slice(1).map(Number));var c=x.exec(a);if(c)return e(Number(c[1]),{start:r,middle:s,end:t}[c[2]]);var f=u[a];return f?f:y}function g(a){return Math.abs(h(a)/a.playbackRate)}function h(a){return a.duration*a.iterations}function i(a,b,c){return null==b?z:b<c.delay?A:b>=c.delay+a?B:C}function j(a,b,c,d,e){switch(d){case A:return"backwards"==b||"both"==b?0:null;case C:return c-e;case B:return"forwards"==b||"both"==b?a:null;case z:return null}}function k(a,b,c,d){return(d.playbackRate<0?b-a:b)*d.playbackRate+c}function l(a,b,c,d,e){return 1/0===c||c===-1/0||c-d==b&&e.iterations&&(e.iterations+e.iterationStart)%1==0?a:c%a}function m(a,b,c,d){return 0===c?0:b==a?d.iterationStart+d.iterations-1:Math.floor(c/a)}function n(a,b,c,d){var e=a%2>=1,f="normal"==d.direction||d.direction==(e?"alternate-reverse":"alternate"),g=f?c:b-c,h=g/b;return b*d.easing(h)}function o(a,b,c){var d=i(a,b,c),e=j(a,c.fill,b,d,c.delay);if(null===e)return null;if(0===a)return d===A?0:1;var f=c.iterationStart*c.duration,g=k(a,e,f,c),o=l(c.duration,h(c),g,f,c),p=m(c.duration,o,g,c);return n(p,c.duration,o,c)/c.duration}var p="backwards|forwards|both|none".split("|"),q="reverse|alternate|alternate-reverse".split("|"),r=1,s=.5,t=0,u={ease:d(.25,.1,.25,1),"ease-in":d(.42,0,1,1),"ease-out":d(0,0,.58,1),"ease-in-out":d(.42,0,.58,1),"step-start":e(1,r),"step-middle":e(1,s),"step-end":e(1,t)},v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",w=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),x=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,y=function(a){return a},z=0,A=1,B=2,C=3;a.makeTiming=b,a.normalizeTimingInput=c,a.calculateActiveDuration=g,a.calculateTimeFraction=o,a.calculatePhase=i,a.toTimingFunction=f}(c,f),function(a){function b(a,b){return a in h?h[a][b]||b:b}function c(a,c,d){var g=e[a];if(g){f.style[a]=c;for(var h in g){var i=g[h],j=f.style[i];d[i]=b(i,j)}}else d[a]=b(a,c)}function d(b){function d(){var a=e.length;null==e[a-1].offset&&(e[a-1].offset=1),a>1&&null==e[0].offset&&(e[0].offset=0);for(var b=0,c=e[0].offset,d=1;a>d;d++){var f=e[d].offset;if(null!=f){for(var g=1;d-b>g;g++)e[b+g].offset=c+(f-c)*g/(d-b);b=d,c=f}}}if(!Array.isArray(b)&&null!==b)throw new TypeError("Keyframes must be null or an array of keyframes");if(null==b)return[];for(var e=b.map(function(b){var d={};for(var e in b){var f=b[e];if("offset"==e){if(null!=f&&(f=Number(f),!isFinite(f)))throw new TypeError("keyframe offsets must be numbers.")}else{if("composite"==e)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};f="easing"==e?a.toTimingFunction(f):""+f}c(e,f,d)}return void 0==d.offset&&(d.offset=null),void 0==d.easing&&(d.easing=a.toTimingFunction("linear")),d}),f=!0,g=-1/0,h=0;h<e.length;h++){var i=e[h].offset;if(null!=i){if(g>i)throw{code:DOMException.INVALID_MODIFICATION_ERR,name:"InvalidModificationError",message:"Keyframes are not loosely sorted by offset. Sort or specify offsets."};g=i}else f=!1}return e=e.filter(function(a){return a.offset>=0&&a.offset<=1}),f||d(),e}var e={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},f=document.createElementNS("http://www.w3.org/1999/xhtml","div"),g={thin:"1px",medium:"3px",thick:"5px"},h={borderBottomWidth:g,borderLeftWidth:g,borderRightWidth:g,borderTopWidth:g,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:g,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.normalizeKeyframes=d}(c,f),function(a){var b={};a.isDeprecated=function(a,c,d,e){var f=e?"are":"is",g=new Date,h=new Date(c);return h.setMonth(h.getMonth()+3),h>g?(a in b||console.warn("Web Animations: "+a+" "+f+" deprecated and will stop working on "+h.toDateString()+". "+d),b[a]=!0,!1):!0},a.deprecated=function(b,c,d,e){var f=e?"are":"is";if(a.isDeprecated(b,c,d,e))throw new Error(b+" "+f+" no longer supported. "+d)}}(c),function(){if(document.documentElement.animate){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(c){void 0===a[c]&&(b=!0)})),!b)return}!function(a,b){function c(a){for(var b={},c=0;c<a.length;c++)for(var d in a[c])if("offset"!=d&&"easing"!=d&&"composite"!=d){var e={offset:a[c].offset,easing:a[c].easing,value:a[c][d]};b[d]=b[d]||[],b[d].push(e)}for(var f in b){var g=b[f];if(0!=g[0].offset||1!=g[g.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return b}function d(a){var c=[];for(var d in a)for(var e=a[d],f=0;f<e.length-1;f++){var g=e[f].offset,h=e[f+1].offset,i=e[f].value,j=e[f+1].value;g==h&&(1==h?i=j:j=i),c.push({startTime:g,endTime:h,easing:e[f].easing,property:d,interpolation:b.propertyInterpolation(d,i,j)})}return c.sort(function(a,b){return a.startTime-b.startTime}),c}b.convertEffectInput=function(e){var f=a.normalizeKeyframes(e),g=c(f),h=d(g);return function(a,c){if(null!=c)h.filter(function(a){return 0>=c&&0==a.startTime||c>=1&&1==a.endTime||c>=a.startTime&&c<=a.endTime}).forEach(function(d){var e=c-d.startTime,f=d.endTime-d.startTime,g=0==f?0:d.easing(e/f);b.apply(a,d.property,d.interpolation(g))});else for(var d in g)"offset"!=d&&"easing"!=d&&"composite"!=d&&b.clear(a,d)}}}(c,d,f),function(a){function b(a,b,c){e[c]=e[c]||[],e[c].push([a,b])}function c(a,c,d){for(var e=0;e<d.length;e++){var f=d[e];b(a,c,f),/-/.test(f)&&b(a,c,f.replace(/-(.)/g,function(a,b){return b.toUpperCase()}))}}function d(b,c,d){for(var f=c==d?[]:e[b],g=0;f&&g<f.length;g++){var h=f[g][0](c),i=f[g][0](d);if(void 0!==h&&void 0!==i){var j=f[g][1](h,i);if(j){var k=a.Interpolation.apply(null,j);return function(a){return 0==a?c:1==a?d:k(a)}}}}return a.Interpolation(!1,!0,function(a){return a?d:c})}var e={};a.addPropertiesHandler=c,a.propertyInterpolation=d}(d,f),function(a,b){function c(b){var c=a.calculateActiveDuration(b),d=function(d){return a.calculateTimeFraction(c,d,b)};return d._totalDuration=b.delay+c+b.endDelay,d._isCurrent=function(d){var e=a.calculatePhase(c,d,b);return e===PhaseActive||e===PhaseBefore},d}b.KeyframeEffect=function(d,e,f){var g,h=c(a.normalizeTimingInput(f)),i=b.convertEffectInput(e),j=function(){i(d,g)};return j._update=function(a){return g=h(a),null!==g},j._clear=function(){i(d,null)},j._hasSameTarget=function(a){return d===a},j._isCurrent=h._isCurrent,j._totalDuration=h._totalDuration,j},b.NullEffect=function(a){var b=function(){a&&(a(),a=null)};return b._update=function(){return null},b._totalDuration=0,b._isCurrent=function(){return!1},b._hasSameTarget=function(){return!1},b}}(c,d,f),function(a){a.apply=function(b,c,d){b.style[a.propertyName(c)]=d},a.clear=function(b,c){b.style[a.propertyName(c)]=""}}(d,f),function(a){window.Element.prototype.animate=function(b,c){return a.timeline._play(a.KeyframeEffect(this,b,c))}}(d),function(a){function b(a,c,d){if("number"==typeof a&&"number"==typeof c)return a*(1-d)+c*d;if("boolean"==typeof a&&"boolean"==typeof c)return.5>d?a:c;if(a.length==c.length){for(var e=[],f=0;f<a.length;f++)e.push(b(a[f],c[f],d));return e}throw"Mismatched interpolation arguments "+a+":"+c}a.Interpolation=function(a,c,d){return function(e){return d(b(a,c,e))}}}(d,f),function(a){var b=0,c=function(a,b,c){this.target=a,this.currentTime=b,this.timelineTime=c,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};a.Animation=function(a){this._sequenceNumber=b++,this._currentTime=0,this._startTime=null,this.paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!1,this.onfinish=null,this._finishHandlers=[],this._effect=a,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},a.Animation.prototype={_ensureAlive:function(){this._inEffect=this._effect._update(this.playbackRate<0&&0===this.currentTime?-1:this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,a.timeline._animations.push(this))},_tickCurrentTime:function(a,b){a!=this._currentTime&&(this._currentTime=a,this.finished&&!b&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(b){b=+b,isNaN(b)||(a.restart(),this.paused||null==this._startTime||(this._startTime=this._timeline.currentTime-b/this._playbackRate),this._currentTimePending=!1,this._currentTime!=b&&(this._tickCurrentTime(b,!0),a.invalidateEffects()))},get startTime(){return this._startTime},set startTime(b){b=+b,isNaN(b)||this.paused||this._idle||(this._startTime=b,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),a.invalidateEffects())},get playbackRate(){return this._playbackRate},set playbackRate(a){if(a!=this._playbackRate){var b=this.currentTime;this._playbackRate=a,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&this.play(),null!=b&&(this.currentTime=b)}},get finished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this.paused&&0!=this.playbackRate||this._currentTimePending?"pending":this.paused?"paused":this.finished?"finished":"running"},play:function(){this.paused=!1,(this.finished||this._idle)&&(this._currentTime=this._playbackRate>0?0:this._totalDuration,this._startTime=null,a.invalidateEffects()),this._finishedFlag=!1,a.restart(),this._idle=!1,this._ensureAlive()},pause:function(){this.finished||this.paused||this._idle||(this._currentTimePending=!0),this._startTime=null,this.paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1)},cancel:function(){this._inEffect=!1,this._idle=!0,this.currentTime=0,this._startTime=null},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(a,b){"function"==typeof b&&"finish"==a&&this._finishHandlers.push(b)},removeEventListener:function(a,b){if("finish"==a){var c=this._finishHandlers.indexOf(b);c>=0&&this._finishHandlers.splice(c,1)}},_fireEvents:function(a){var b=this.finished;if((b||this._idle)&&!this._finishedFlag){var d=new c(this,this._currentTime,a),e=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){e.forEach(function(a){a.call(d.target,d)})},0)}this._finishedFlag=b},_tick:function(a){return this._idle||this.paused||(null==this._startTime?this.startTime=a-this._currentTime/this.playbackRate:this.finished||this._tickCurrentTime((a-this._startTime)*this.playbackRate)),this._currentTimePending=!1,this._fireEvents(a),!this._idle&&(this._inEffect||!this._finishedFlag)}}}(d,f),function(a,b){function c(a){var b=i;i=[],g(a),b.forEach(function(b){b[1](a)}),m&&g(a),f()}function d(a,b){return a._sequenceNumber-b._sequenceNumber}function e(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function f(){n.forEach(function(a){a()}),n.length=0}function g(a){l=!1;var c=b.timeline;c.currentTime=a,c._animations.sort(d),k=!1;var e=c._animations;c._animations=[];var f=[],g=[];e=e.filter(function(b){return b._inTimeline=b._tick(a),b._inEffect?g.push(b._effect):f.push(b._effect),b.finished||b.paused||b._idle||(k=!0),b._inTimeline}),n.push.apply(n,f),n.push.apply(n,g),c._animations.push.apply(c._animations,e),m=!1,k&&requestAnimationFrame(function(){})}var h=window.requestAnimationFrame,i=[],j=0;window.requestAnimationFrame=function(a){var b=j++;return 0==i.length&&h(c),i.push([b,a]),b},window.cancelAnimationFrame=function(a){i.forEach(function(b){b[0]==a&&(b[1]=function(){})})},e.prototype={_play:function(c){c._timing=a.normalizeTimingInput(c.timing);var d=new b.Animation(c);return d._idle=!1,d._timeline=this,this._animations.push(d),b.restart(),b.invalidateEffects(),d}};var k=!1,l=!1;b.restart=function(){return k||(k=!0,requestAnimationFrame(function(){}),l=!0),l};var m=!1;b.invalidateEffects=function(){m=!0};var n=[],o=window.getComputedStyle;Object.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value:function(){return m&&g(p.currentTime),f(),o.apply(this,arguments)}});var p=new e;b.timeline=p}(c,d,f),function(a){function b(a,b){var c=a.exec(b);return c?(c=a.ignoreCase?c[0].toLowerCase():c[0],[c,b.substr(c.length)]):void 0}function c(a,b){b=b.replace(/^\s*/,"");var c=a(b);return c?[c[0],c[1].replace(/^\s*/,"")]:void 0}function d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e);if(!g)return[f,e];if(f.push(g[0]),e=g[1],g=b(d,e),!g||""==g[1])return[f,e];e=g[1]}}function e(a,b){for(var c=0,d=0;d<b.length&&(!/\s|,/.test(b[d])||0!=c);d++)if("("==b[d])c++;else if(")"==b[d]&&(c--,0==c&&d++,0>=c))break;var e=a(b.substr(0,d));return void 0==e?void 0:[e,b.substr(d)]}function f(a,b){for(var c=a,d=b;c&&d;)c>d?c%=d:d%=c;return c=a*b/(c+d)}function g(a){return function(b){var c=a(b);return c&&(c[0]=void 0),c}}function h(a,b){return function(c){var d=a(c);return d?d:[b,c]}}function i(b,c){for(var d=[],e=0;e<b.length;e++){var f=a.consumeTrimmed(b[e],c);if(!f||""==f[0])return;void 0!==f[0]&&d.push(f[0]),c=f[1]}return""==c?d:void 0}function j(a,b,c,d,e){for(var g=[],h=[],i=[],j=f(d.length,e.length),k=0;j>k;k++){var l=b(d[k%d.length],e[k%e.length]);if(!l)return;g.push(l[0]),h.push(l[1]),i.push(l[2])}return[g,h,function(b){var d=b.map(function(a,b){return i[b](a)}).join(c);return a?a(d):d}]}function k(a,b,c){for(var d=[],e=[],f=[],g=0,h=0;h<c.length;h++)if("function"==typeof c[h]){var i=c[h](a[g],b[g++]);d.push(i[0]),e.push(i[1]),f.push(i[2])}else!function(a){d.push(!1),e.push(!1),f.push(function(){return c[a]})}(h);return[d,e,function(a){for(var b="",c=0;c<a.length;c++)b+=f[c](a[c]);return b}]}a.consumeToken=b,a.consumeTrimmed=c,a.consumeRepeated=d,a.consumeParenthesised=e,a.ignore=g,a.optional=h,a.consumeList=i,a.mergeNestedRepeated=j.bind(null,null),a.mergeWrappedNestedRepeated=j,a.mergeList=k}(d),function(a){function b(b){function c(b){var c=a.consumeToken(/^inset/i,b);if(c)return d.inset=!0,c;var c=a.consumeLengthOrPercent(b);if(c)return d.lengths.push(c[0]),c;var c=a.consumeColor(b);return c?(d.color=c[0],c):void 0}var d={inset:!1,lengths:[],color:null},e=a.consumeRepeated(c,/^/,b);return e&&e[0].length?[d,e[1]]:void 0}function c(c){var d=a.consumeRepeated(b,/^,/,c);return d&&""==d[1]?d[0]:void 0}function d(b,c){for(;b.lengths.length<Math.max(b.lengths.length,c.lengths.length);)b.lengths.push({px:0});for(;c.lengths.length<Math.max(b.lengths.length,c.lengths.length);)c.lengths.push({px:0});if(b.inset==c.inset&&!!b.color==!!c.color){for(var d,e=[],f=[[],0],g=[[],0],h=0;h<b.lengths.length;h++){var i=a.mergeDimensions(b.lengths[h],c.lengths[h],2==h);f[0].push(i[0]),g[0].push(i[1]),e.push(i[2])}if(b.color&&c.color){var j=a.mergeColors(b.color,c.color);f[1]=j[0],g[1]=j[1],d=j[2]}return[f,g,function(a){for(var c=b.inset?"inset ":" ",f=0;f<e.length;f++)c+=e[f](a[0][f])+" ";return d&&(c+=d(a[1])),c}]}}function e(b,c,d,e){function f(a){return{inset:a,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var g=[],h=[],i=0;i<d.length||i<e.length;i++){var j=d[i]||f(e[i].inset),k=e[i]||f(d[i].inset);g.push(j),h.push(k)}return a.mergeNestedRepeated(b,c,g,h)}var f=e.bind(null,d,", ");a.addPropertiesHandler(c,f,["box-shadow","text-shadow"])}(d),function(a){function b(a){return a.toFixed(3).replace(".000","")}function c(a,b,c){return Math.min(b,Math.max(a,c))}function d(a){return/^\s*[-+]?(\d*\.)?\d+\s*$/.test(a)?Number(a):void 0}function e(a,c){return[a,c,b]}function f(a,b){return 0!=a?h(0,1/0)(a,b):void 0}function g(a,b){return[a,b,function(a){return Math.round(c(1,1/0,a))}]}function h(a,d){return function(e,f){return[e,f,function(e){return b(c(a,d,e))}]}}function i(a,b){return[a,b,Math.round]}a.clamp=c,a.addPropertiesHandler(d,h(0,1/0),["border-image-width","line-height"]),a.addPropertiesHandler(d,h(0,1),["opacity","shape-image-threshold"]),a.addPropertiesHandler(d,f,["flex-grow","flex-shrink"]),a.addPropertiesHandler(d,g,["orphans","widows"]),a.addPropertiesHandler(d,i,["z-index"]),a.parseNumber=d,a.mergeNumbers=e,a.numberToString=b}(d,f),function(a){function b(a,b){return"visible"==a||"visible"==b?[0,1,function(c){return 0>=c?a:c>=1?b:"visible"}]:void 0}a.addPropertiesHandler(String,b,["visibility"])}(d),function(a){function b(a){a=a.trim(),e.fillStyle="#000",e.fillStyle=a;var b=e.fillStyle;if(e.fillStyle="#fff",e.fillStyle=a,b==e.fillStyle){e.fillRect(0,0,1,1);var c=e.getImageData(0,0,1,1).data;e.clearRect(0,0,1,1);var d=c[3]/255;return[c[0]*d,c[1]*d,c[2]*d,d]}}function c(b,c){return[b,c,function(b){function c(a){return Math.max(0,Math.min(255,a))}if(b[3])for(var d=0;3>d;d++)b[d]=Math.round(c(b[d]/b[3]));return b[3]=a.numberToString(a.clamp(0,1,b[3])),"rgba("+b.join(",")+")"}]}var d=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");d.width=d.height=1;var e=d.getContext("2d");a.addPropertiesHandler(b,c,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","outline-color","text-decoration-color"]),a.consumeColor=a.consumeParenthesised.bind(null,b),a.mergeColors=c}(d,f),function(a,b){function c(a,b){if(b=b.trim().toLowerCase(),"0"==b&&"px".search(a)>=0)return{px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\(/g,"(");var c={};b=b.replace(a,function(a){return c[a]=null,"U"+a});for(var d="U("+a.source+")",e=b.replace(/[-+]?(\d*\.)?\d+/g,"N").replace(new RegExp("N"+d,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),f=[/N\*(D)/g,/(N|D)[*/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],g=0;g<f.length;)f[g].test(e)?(e=e.replace(f[g],"$1"),g=0):g++;if("D"==e){for(var h in c){var i=eval(b.replace(new RegExp("U"+h,"g"),"").replace(new RegExp(d,"g"),"*0"));if(!isFinite(i))return;c[h]=i}return c}}}function d(a,b){return e(a,b,!0)}function e(b,c,d){var e,f=[];for(e in b)f.push(e);for(e in c)f.indexOf(e)<0&&f.push(e);return b=f.map(function(a){return b[a]||0}),c=f.map(function(a){return c[a]||0}),[b,c,function(b){var c=b.map(function(c,e){return 1==b.length&&d&&(c=Math.max(c,0)),a.numberToString(c)+f[e]}).join(" + ");return b.length>1?"calc("+c+")":c}]}var f="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",g=c.bind(null,new RegExp(f,"g")),h=c.bind(null,new RegExp(f+"|%","g")),i=c.bind(null,/deg|rad|grad|turn/g);a.parseLength=g,a.parseLengthOrPercent=h,a.consumeLengthOrPercent=a.consumeParenthesised.bind(null,h),a.parseAngle=i,a.mergeDimensions=e;var j=a.consumeParenthesised.bind(null,g),k=a.consumeRepeated.bind(void 0,j,/^/),l=a.consumeRepeated.bind(void 0,k,/^,/);a.consumeSizePairList=l;var m=function(a){var b=l(a);return b&&""==b[1]?b[0]:void 0},n=a.mergeNestedRepeated.bind(void 0,d," "),o=a.mergeNestedRepeated.bind(void 0,n,",");a.mergeNonNegativeSizePair=n,a.addPropertiesHandler(m,o,["background-size"]),a.addPropertiesHandler(h,d,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),a.addPropertiesHandler(h,e,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","text-indent","top","vertical-align","word-spacing"])}(d,f),function(a){function b(b){return a.consumeLengthOrPercent(b)||a.consumeToken(/^auto/,b)}function c(c){var d=a.consumeList([a.ignore(a.consumeToken.bind(null,/^rect/)),a.ignore(a.consumeToken.bind(null,/^\(/)),a.consumeRepeated.bind(null,b,/^,/),a.ignore(a.consumeToken.bind(null,/^\)/))],c);return d&&4==d[0].length?d[0]:void 0}function d(b,c){return"auto"==b||"auto"==c?[!0,!1,function(d){var e=d?b:c;if("auto"==e)return"auto";var f=a.mergeDimensions(e,e);return f[2](f[0])}]:a.mergeDimensions(b,c)}function e(a){return"rect("+a+")"}var f=a.mergeWrappedNestedRepeated.bind(null,e,d,", ");a.parseBox=c,a.mergeBoxes=f,a.addPropertiesHandler(c,f,["clip"])}(d,f),function(a){function b(a){return function(b){var c=0;return a.map(function(a){return a===j?b[c++]:a})}}function c(a){return a}function d(b){if(b=b.toLowerCase().trim(),"none"==b)return[];for(var c,d=/\s*(\w+)\(([^)]*)\)/g,e=[],f=0;c=d.exec(b);){if(c.index!=f)return;f=c.index+c[0].length;var g=c[1],h=m[g];if(!h)return;var i=c[2].split(","),j=h[0];if(j.length<i.length)return;for(var n=[],o=0;o<j.length;o++){var p,q=i[o],r=j[o];if(p=q?{A:function(b){return"0"==b.trim()?l:a.parseAngle(b)},N:a.parseNumber,T:a.parseLengthOrPercent,L:a.parseLength}[r.toUpperCase()](q):{a:l,n:n[0],t:k}[r],void 0===p)return;n.push(p)}if(e.push({t:g,d:n}),d.lastIndex==b.length)return e}}function e(a){return a.toFixed(6).replace(".000000","")}function f(b,c){if(b.decompositionPair!==c){b.decompositionPair=c;var d=a.makeMatrixDecomposition(b)}if(c.decompositionPair!==b){c.decompositionPair=b;var f=a.makeMatrixDecomposition(c)}return null==d[0]||null==f[0]?[[!1],[!0],function(a){return a?c[0].d:b[0].d}]:(d[0].push(0),f[0].push(1),[d,f,function(b){var c=a.quat(d[0][3],f[0][3],b[5]),g=a.composeMatrix(b[0],b[1],b[2],c,b[4]),h=g.map(e).join(",");return h}])}function g(a){return a.replace(/[xy]/,"")}function h(a){return a.replace(/(x|y|z|3d)?$/,"3d")}function i(b,c){var d=a.makeMatrixDecomposition&&!0,e=!1;if(!b.length||!c.length){b.length||(e=!0,b=c,c=[]);for(var i=0;i<b.length;i++){var j=b[i].t,k=b[i].d,l="scale"==j.substr(0,5)?1:0;c.push({t:j,d:k.map(function(a){if("number"==typeof a)return l;var b={};for(var c in a)b[c]=l;return b})})}}var n=function(a,b){return"perspective"==a&&"perspective"==b||("matrix"==a||"matrix3d"==a)&&("matrix"==b||"matrix3d"==b)},o=[],p=[],q=[];if(b.length!=c.length){if(!d)return;var r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]]}else for(var i=0;i<b.length;i++){var j,s=b[i].t,t=c[i].t,u=b[i].d,v=c[i].d,w=m[s],x=m[t];if(n(s,t)){if(!d)return;var r=f([b[i]],[c[i]]);o.push(r[0]),p.push(r[1]),q.push(["matrix",[r[2]]])}else{if(s==t)j=s;else if(w[2]&&x[2]&&g(s)==g(t))j=g(s),u=w[2](u),v=x[2](v);else{if(!w[1]||!x[1]||h(s)!=h(t)){if(!d)return;var r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]];break}j=h(s),u=w[1](u),v=x[1](v)}for(var y=[],z=[],A=[],B=0;B<u.length;B++){var C="number"==typeof u[B]?a.mergeNumbers:a.mergeDimensions,r=C(u[B],v[B]);y[B]=r[0],z[B]=r[1],A.push(r[2])}o.push(y),p.push(z),q.push([j,A])}}if(e){var D=o;o=p,p=D}return[o,p,function(a){return a.map(function(a,b){var c=a.map(function(a,c){return q[b][1][c](a)}).join(",");return"matrix"==q[b][0]&&16==c.split(",").length&&(q[b][0]="matrix3d"),q[b][0]+"("+c+")"}).join(" ")}]}var j=null,k={px:0},l={deg:0},m={matrix:["NNNNNN",[j,j,0,0,j,j,0,0,0,0,1,0,j,j,0,1],c],matrix3d:["NNNNNNNNNNNNNNNN",c],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",b([j,j,1]),c],scalex:["N",b([j,1,1]),b([j,1])],scaley:["N",b([1,j,1]),b([1,j])],scalez:["N",b([1,1,j])],scale3d:["NNN",c],skew:["Aa",null,c],skewx:["A",null,b([j,l])],skewy:["A",null,b([l,j])],translate:["Tt",b([j,j,k]),c],translatex:["T",b([j,k,k]),b([j,k])],translatey:["T",b([k,j,k]),b([k,j])],translatez:["L",b([k,k,j])],translate3d:["TTL",c]};a.addPropertiesHandler(d,i,["transform"])}(d,f),function(a){function b(a,b){b.concat([a]).forEach(function(b){b in document.documentElement.style&&(c[a]=b)})}var c={};b("transform",["webkitTransform","msTransform"]),b("transformOrigin",["webkitTransformOrigin"]),b("perspective",["webkitPerspective"]),b("perspectiveOrigin",["webkitPerspectiveOrigin"]),a.propertyName=function(a){return c[a]||a}}(d,f)}(),!function(a,b){function c(a){var b=window.document.timeline;b.currentTime=a,b._discardAnimations(),0==b._animations.length?d=!1:requestAnimationFrame(c)}b.AnimationTimeline=function(){this._animations=[],this.currentTime=void 0},b.AnimationTimeline.prototype={getAnimations:function(){return this._discardAnimations(),this._animations.slice()},getAnimationPlayers:function(){return a.deprecated("AnimationTimeline.getAnimationPlayers","2015-03-23","Use AnimationTimeline.getAnimations instead."),this.getAnimations()},_discardAnimations:function(){this._animations=this._animations.filter(function(a){return"finished"!=a.playState&&"idle"!=a.playState})},play:function(a){var c=new b.Animation(a);return this._animations.push(c),b.restartWebAnimationsNextTick(),c._animation.play(),c}};var d=!1;b.restartWebAnimationsNextTick=function(){d||(d=!0,requestAnimationFrame(c))};var e=new b.AnimationTimeline;b.timeline=e;try{Object.defineProperty(window.document,"timeline",{configurable:!0,get:function(){return e}})}catch(f){}try{window.document.timeline=e}catch(f){}}(c,e,f),function(a,b){b.Animation=function(a){this.effect=a,a&&(a.animation=this),this._isGroup=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._rebuildUnderlyingAnimation(),this._animation.cancel()},b.Animation.prototype={_rebuildUnderlyingAnimation:function(){this._animation&&(this._animation.cancel(),this._animation=null),(!this.effect||this.effect instanceof window.KeyframeEffect)&&(this._animation=b.newUnderlyingAnimationForKeyframeEffect(this.effect),b.bindAnimationForKeyframeEffect(this)),(this.effect instanceof window.SequenceEffect||this.effect instanceof window.GroupEffect)&&(this._animation=b.newUnderlyingAnimationForGroup(this.effect),b.bindAnimationForGroup(this))},_updateChildren:function(){if(this.effect&&"idle"!=this.playState){var a=this.effect._timing.delay;this._childAnimations.forEach(function(c){this._arrangeChildren(c,a),this.effect instanceof window.SequenceEffect&&(a+=b.groupChildDuration(c.effect))}.bind(this))}},_setExternalAnimation:function(a){if(this.effect&&this._isGroup)for(var b=0;b<this.effect.children.length;b++)this.effect.children[b].animation=a,this._childAnimations[b]._setExternalAnimation(a)},_constructChildren:function(){if(this.effect&&this._isGroup){var a=this.effect._timing.delay;this.effect.children.forEach(function(c){var d=window.document.timeline.play(c);this._childAnimations.push(d),d.playbackRate=this.playbackRate,this.paused&&d.pause(),c.animation=this.effect.animation,this._arrangeChildren(d,a),this.effect instanceof window.SequenceEffect&&(a+=b.groupChildDuration(c))}.bind(this))}},_arrangeChildren:function(a,b){null===this.startTime?(a.currentTime=this.currentTime-b/this.playbackRate,a._startTime=null):a.startTime!==this.startTime+b/this.playbackRate&&(a.startTime=this.startTime+b/this.playbackRate)},get paused(){return this._animation.paused},get playState(){return this._animation.playState},get onfinish(){return this._onfinish},set onfinish(a){"function"==typeof a?(this._onfinish=a,this._animation.onfinish=function(b){b.target=this,a.call(this,b)}.bind(this)):(this._animation.onfinish=a,this.onfinish=this._animation.onfinish)},get currentTime(){return this._animation.currentTime},set currentTime(a){this._animation.currentTime=a,this._register(),this._forEachChild(function(b,c){b.currentTime=a-c})},get startTime(){return this._animation.startTime},set startTime(a){this._animation.startTime=a,this._register(),this._forEachChild(function(b,c){b.startTime=a+c})},get playbackRate(){return this._animation.playbackRate},set playbackRate(a){var b=this.currentTime;this._animation.playbackRate=a,this._forEachChild(function(b){b.playbackRate=a}),"paused"!=this.playState&&"idle"!=this.playState&&this.play(),null!==b&&(this.currentTime=b)},get finished(){return this._animation.finished},get source(){return a.deprecated("Animation.source","2015-03-23","Use Animation.effect instead."),this.effect},play:function(){this._animation.play(),this._register(),b.awaitStartTime(this),this._forEachChild(function(a){var b=a.currentTime;a.play(),a.currentTime=b})},pause:function(){this._animation.pause(),this._register(),this._forEachChild(function(a){a.pause()})},finish:function(){this._animation.finish(),this._register()},cancel:function(){this._animation.cancel(),this._register(),this._removeChildren()},reverse:function(){var a=this.currentTime;this._animation.reverse(),this._forEachChild(function(a){a.reverse()}),null!==a&&(this.currentTime=a)},addEventListener:function(a,b){var c=b;"function"==typeof b&&(c=function(a){a.target=this,b.call(this,a)}.bind(this),b._wrapper=c),this._animation.addEventListener(a,c)},removeEventListener:function(a,b){this._animation.removeEventListener(a,b&&b._wrapper||b)},_removeChildren:function(){for(;this._childAnimations.length;)this._childAnimations.pop().cancel()},_forEachChild:function(b){var c=0;if(this.effect.children&&this._childAnimations.length<this.effect.children.length&&this._constructChildren(),this._childAnimations.forEach(function(a){b.call(this,a,c),this.effect instanceof window.SequenceEffect&&(c+=a.effect.activeDuration)}.bind(this)),"pending"!=this._animation.playState){var d=this.effect._timing,e=this._animation.currentTime;null!==e&&(e=a.calculateTimeFraction(a.calculateActiveDuration(d),e,d)),(null==e||isNaN(e))&&this._removeChildren()}}}}(c,e,f),function(a,b){function c(b){this._frames=a.normalizeKeyframes(b)}function d(){for(var a=!1;g.length;)g.shift()._updateChildren(),a=!0;return a}b.KeyframeEffect=function(b,d,e){return this.target=b,this._timingInput=e,this._timing=a.normalizeTimingInput(e),this.timing=a.makeTiming(e),this._normalizedKeyframes="function"==typeof d?d:new c(d),this._keyframes=d,this.activeDuration=a.calculateActiveDuration(this._timing),this
16
+ },b.KeyframeEffect.prototype={getFrames:function(){return"function"==typeof this._normalizedKeyframes?this._normalizedKeyframes:this._normalizedKeyframes._frames},get effect(){return a.deprecated("KeyframeEffect.effect","2015-03-23","Use KeyframeEffect.getFrames() instead."),this._normalizedKeyframes}};var e=Element.prototype.animate;Element.prototype.animate=function(a,c){return b.timeline.play(new b.KeyframeEffect(this,a,c))};var f=document.createElementNS("http://www.w3.org/1999/xhtml","div");b.newUnderlyingAnimationForKeyframeEffect=function(a){var b=a.target||f,c=a._keyframes;return"function"==typeof c&&(c=[]),e.apply(b,[c,a._timingInput])},b.bindAnimationForKeyframeEffect=function(a){a.effect&&"function"==typeof a.effect._normalizedKeyframes&&b.bindAnimationForCustomEffect(a)};var g=[];b.awaitStartTime=function(a){null===a.startTime&&a._isGroup&&(0==g.length&&requestAnimationFrame(d),g.push(a))};var h=window.getComputedStyle;Object.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value:function(){var a=h.apply(this,arguments);return d()&&(a=h.apply(this,arguments)),a}}),window.KeyframeEffect=b.KeyframeEffect,window.Element.prototype.getAnimations=function(){return document.timeline.getAnimations().filter(function(a){return null!==a.effect&&a.effect.target==this}.bind(this))},window.Element.prototype.getAnimationPlayers=function(){return a.deprecated("Element.getAnimationPlayers","2015-03-23","Use Element.getAnimations instead."),this.getAnimations()},window.Animation=function(){a.deprecated("window.Animation","2015-03-23","Use window.KeyframeEffect instead."),window.KeyframeEffect.apply(this,arguments)},window.Animation.prototype=Object.create(window.KeyframeEffect.prototype),window.Animation.prototype.constructor=window.Animation}(c,e,f),function(a,b){function c(a){a._registered||(a._registered=!0,f.push(a),g||(g=!0,requestAnimationFrame(d)))}function d(){var a=f;f=[],a.sort(function(a,b){return a._sequenceNumber-b._sequenceNumber}),a=a.filter(function(a){a();var b=a._animation?a._animation.playState:"idle";return"running"!=b&&"pending"!=b&&(a._registered=!1),a._registered}),f.push.apply(f,a),f.length?(g=!0,requestAnimationFrame(d)):g=!1}var e=(document.createElementNS("http://www.w3.org/1999/xhtml","div"),0);b.bindAnimationForCustomEffect=function(b){var d=b.effect.target,f=b.effect._normalizedKeyframes,g=b.effect.timing,h=null;g=a.normalizeTimingInput(g);var i=function(){var c=i._animation?i._animation.currentTime:null;null!==c&&(c=a.calculateTimeFraction(a.calculateActiveDuration(g),c,g),isNaN(c)&&(c=null)),c!==h&&f(c,d,b.effect),h=c};i._animation=b,i._registered=!1,i._sequenceNumber=e++,b._callback=i,c(i)};var f=[],g=!1;b.Animation.prototype._register=function(){this._callback&&c(this._callback)}}(c,e,f),function(a,b){function c(a){return a._timing.delay+a.activeDuration+a._timing.endDelay}function d(b,c){this.children=b||[],this._timing=a.normalizeTimingInput(c,!0),this.timing=a.makeTiming(c,!0),"auto"===this._timing.duration&&(this._timing.duration=this.activeDuration)}window.SequenceEffect=function(){d.apply(this,arguments)},window.GroupEffect=function(){d.apply(this,arguments)},window.SequenceEffect.prototype={get activeDuration(){var a=0;return this.children.forEach(function(b){a+=c(b)}),Math.max(a,0)}},window.GroupEffect.prototype={get activeDuration(){var a=0;return this.children.forEach(function(b){a=Math.max(a,c(b))}),a}},b.newUnderlyingAnimationForGroup=function(c){var d,e=null,f=function(b){var c=d._wrapper;return"pending"!=c.playState&&c.effect?null==b?void c._removeChildren():0==b&&c.playbackRate<0&&(e||(e=a.normalizeTimingInput(c.effect.timing)),b=a.calculateTimeFraction(a.calculateActiveDuration(e),-1,e),isNaN(b)||null==b)?(c._forEachChild(function(a){a.currentTime=-1}),void c._removeChildren()):void 0:void 0};return d=b.timeline.play(new b.KeyframeEffect(null,f,c._timing))},b.bindAnimationForGroup=function(a){a._animation._wrapper=a,a._isGroup=!0,b.awaitStartTime(a),a._constructChildren(),a._setExternalAnimation(a)},b.groupChildDuration=c,window.AnimationSequence=function(){a.deprecated("window.AnimationSequence","2015-03-23","Use window.SequenceEffect instead."),window.SequenceEffect.apply(this,arguments)},window.AnimationSequence.prototype=Object.create(window.SequenceEffect.prototype),window.AnimationSequence.prototype.constructor=window.AnimationSequence,window.AnimationGroup=function(){a.deprecated("window.AnimationGroup","2015-03-23","Use window.GroupEffect instead."),window.GroupEffect.apply(this,arguments)},window.AnimationGroup.prototype=Object.create(window.GroupEffect.prototype),window.AnimationGroup.prototype.constructor=window.AnimationGroup}(c,e,f)}({},function(){return this}());
17
+ //# sourceMappingURL=web-animations-next-lite.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-animations-next-lite.min.js","sources":["src/scope.js","src/timing-utilities.js","src/normalize-keyframes.js","src/deprecation.js","src/timeline.js","src/web-animations-next-animation.js","src/keyframe-effect-constructor.js","src/effect-callback.js","src/group-constructors.js"],"names":["webAnimationsShared","webAnimations1","webAnimationsNext","webAnimationsTesting","shared","makeTiming","timingInput","forGroup","timing","delay","endDelay","fill","iterationStart","iterations","duration","playbackRate","direction","easing","isNaN","undefined","Object","getOwnPropertyNames","forEach","property","fills","indexOf","directions","isDeprecated","normalizeTimingInput","toTimingFunction","cubic","a","b","c","d","linear","x","f","m","start","end","mid","xEst","Math","abs","step","count","pos","stepSize","cubicData","cubicBezierRe","exec","apply","this","slice","map","Number","stepData","stepRe","Start","middle","Middle","End","preset","presets","calculateActiveDuration","repeatedDuration","calculatePhase","activeDuration","localTime","PhaseNone","PhaseBefore","PhaseAfter","PhaseActive","calculateActiveTime","fillMode","phase","calculateScaledActiveTime","activeTime","startOffset","calculateIterationTime","iterationDuration","scaledActiveTime","Infinity","calculateCurrentIteration","iterationTime","floor","calculateTransformedTime","currentIteration","currentIterationIsOdd","currentDirectionIsForwards","directedTime","timeFraction","calculateTimeFraction","split","ease","ease-in","ease-out","ease-in-out","step-start","step-middle","step-end","numberString","RegExp","antiAlias","value","aliases","expandShorthandAndAntiAlias","result","longProperties","shorthandToLonghand","shorthandExpanderElem","style","i","longProperty","longhandValue","normalizeKeyframes","effectInput","spaceKeyframes","length","keyframes","offset","previousIndex","previousOffset","j","Array","isArray","TypeError","originalKeyframe","keyframe","member","memberValue","isFinite","type","DOMException","NOT_SUPPORTED_ERR","name","message","everyFrameHasOffset","code","INVALID_MODIFICATION_ERR","filter","background","border","borderBottom","borderColor","borderLeft","borderRadius","borderRight","borderTop","borderWidth","flex","font","margin","outline","padding","document","createElementNS","borderWidthAliases","thin","medium","thick","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","fontSize","xx-small","x-small","small","large","x-large","xx-large","fontWeight","normal","bold","outlineWidth","textShadow","none","boxShadow","silenced","feature","date","advice","plural","auxVerb","today","Date","expiry","setMonth","getMonth","console","warn","toDateString","deprecated","Error","scope","webAnimationsNextTick","t","timeline","window","currentTime","_discardAnimations","_animations","ticking","requestAnimationFrame","AnimationTimeline","prototype","getAnimations","getAnimationPlayers","animation","playState","play","effect","Animation","push","restartWebAnimationsNextTick","_animation","defineProperty","configurable","get","e","_isGroup","_childAnimations","_callback","_rebuildUnderlyingAnimation","cancel","KeyframeEffect","newUnderlyingAnimationForKeyframeEffect","bindAnimationForKeyframeEffect","SequenceEffect","GroupEffect","newUnderlyingAnimationForGroup","bindAnimationForGroup","_updateChildren","_timing","childAnimation","_arrangeChildren","groupChildDuration","bind","_setExternalAnimation","children","_constructChildren","child","paused","pause","startTime","_startTime",{"end":{"file":"src/animation.js","comments_before":[],"nlb":false,"endpos":2465,"pos":2454,"col":8,"line":72,"value":"currentTime","type":"name"},"start":{"file":"src/animation.js","comments_before":[],"nlb":false,"endpos":2465,"pos":2454,"col":8,"line":72,"value":"currentTime","type":"name"},"name":"currentTime"},"onfinish","_onfinish","v","target","call","_register","_forEachChild","oldCurrentTime","finished","source","awaitStartTime","time","finish","_removeChildren","reverse","addEventListener","handler","wrapped","_wrapper","removeEventListener","pop","KeyframeList","_frames","updatePendingGroups","updated","pendingGroups","shift","_timingInput","_normalizedKeyframes","_keyframes","getFrames","originalElementAnimate","Element","animate","nullTarget","keyframeEffect","bindAnimationForCustomEffect","groupAnimation","originalGetComputedStyle","getComputedStyle","enumerable","arguments","create","constructor","register","callback","_registered","callbacks","tick","updating","sort","left","right","_sequenceNumber","sequenceNumber","effectFunction","last","node","total","max","group","underlyingAnimation","ticker","tf","AnimationSequence","AnimationGroup"],"mappings":";;;;;;;;;;;;;;CAcA,SAAIA,EAAAA,GACAC,EAAAA,QACAC,CAFJ,IAAIF,MACAC,KACAC,KAGEC,EAAuB,MCL7B,SAAUC,GAKR,QAASC,GAAWC,EAAaC,GAC/B,GAAIC,IACFC,MAAO,EACPC,SAAU,EACVC,KAAMJ,EAAW,OAAS,OAC1BK,eAAgB,EAChBC,WAAY,EACZC,SAAUP,EAAW,OAAS,EAC9BQ,aAAc,EACdC,UAAW,SACXC,OAAQ,SAyBV,OAvB0B,gBAAfX,IAA4BY,MAAMZ,GAElBa,SAAhBb,GACTc,OAAOC,oBAAoBf,GAAagB,QAAQ,SAASC,GACvD,GAA6B,QAAzBjB,EAAYiB,GAAqB,CACnC,IAA+B,gBAApBf,GAAOe,IAAqC,YAAZA,KACL,gBAAzBjB,GAAYiB,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1
+ // Copyright 2014 Google Inc. All rights reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ !function(a,b){b["true"]=a;var c={},d={},e={},f=null;!function(a){function b(b,c){var d={delay:0,endDelay:0,fill:c?"both":"none",iterationStart:0,iterations:1,duration:c?"auto":0,playbackRate:1,direction:"normal",easing:"linear"};return"number"!=typeof b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNames(b).forEach(function(c){if("auto"!=b[c]){if(("number"==typeof d[c]||"duration"==c)&&("number"!=typeof b[c]||isNaN(b[c])))return;if("fill"==c&&-1==p.indexOf(b[c]))return;if("direction"==c&&-1==q.indexOf(b[c]))return;if("playbackRate"==c&&1!==b[c]&&a.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;d[c]=b[c]}}):d.duration=b,d}function c(a,c){var d=b(a,c);return d.easing=f(d.easing),d}function d(a,b,c,d){return 0>a||a>1||0>c||c>1?y:function(e){function f(a,b,c){return 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}for(var g=0,h=1;;){var i=(g+h)/2,j=f(a,c,i);if(Math.abs(e-j)<.001)return f(b,d,i);e>j?g=i:h=i}}}function e(a,b){return function(c){if(c>=1)return 1;var d=1/a;return c+=b*d,c-c%d}}function f(a){var b=w.exec(a);if(b)return d.apply(this,b.slice(1).map(Number));var c=x.exec(a);if(c)return e(Number(c[1]),{start:r,middle:s,end:t}[c[2]]);var f=u[a];return f?f:y}function g(a){return Math.abs(h(a)/a.playbackRate)}function h(a){return a.duration*a.iterations}function i(a,b,c){return null==b?z:b<c.delay?A:b>=c.delay+a?B:C}function j(a,b,c,d,e){switch(d){case A:return"backwards"==b||"both"==b?0:null;case C:return c-e;case B:return"forwards"==b||"both"==b?a:null;case z:return null}}function k(a,b,c,d){return(d.playbackRate<0?b-a:b)*d.playbackRate+c}function l(a,b,c,d,e){return 1/0===c||c===-1/0||c-d==b&&e.iterations&&(e.iterations+e.iterationStart)%1==0?a:c%a}function m(a,b,c,d){return 0===c?0:b==a?d.iterationStart+d.iterations-1:Math.floor(c/a)}function n(a,b,c,d){var e=a%2>=1,f="normal"==d.direction||d.direction==(e?"alternate-reverse":"alternate"),g=f?c:b-c,h=g/b;return b*d.easing(h)}function o(a,b,c){var d=i(a,b,c),e=j(a,c.fill,b,d,c.delay);if(null===e)return null;if(0===a)return d===A?0:1;var f=c.iterationStart*c.duration,g=k(a,e,f,c),o=l(c.duration,h(c),g,f,c),p=m(c.duration,o,g,c);return n(p,c.duration,o,c)/c.duration}var p="backwards|forwards|both|none".split("|"),q="reverse|alternate|alternate-reverse".split("|"),r=1,s=.5,t=0,u={ease:d(.25,.1,.25,1),"ease-in":d(.42,0,1,1),"ease-out":d(0,0,.58,1),"ease-in-out":d(.42,0,.58,1),"step-start":e(1,r),"step-middle":e(1,s),"step-end":e(1,t)},v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",w=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),x=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,y=function(a){return a},z=0,A=1,B=2,C=3;a.makeTiming=b,a.normalizeTimingInput=c,a.calculateActiveDuration=g,a.calculateTimeFraction=o,a.calculatePhase=i,a.toTimingFunction=f}(c,f),function(a){function b(a,b){return a in h?h[a][b]||b:b}function c(a,c,d){var g=e[a];if(g){f.style[a]=c;for(var h in g){var i=g[h],j=f.style[i];d[i]=b(i,j)}}else d[a]=b(a,c)}function d(b){function d(){var a=e.length;null==e[a-1].offset&&(e[a-1].offset=1),a>1&&null==e[0].offset&&(e[0].offset=0);for(var b=0,c=e[0].offset,d=1;a>d;d++){var f=e[d].offset;if(null!=f){for(var g=1;d-b>g;g++)e[b+g].offset=c+(f-c)*g/(d-b);b=d,c=f}}}if(!Array.isArray(b)&&null!==b)throw new TypeError("Keyframes must be null or an array of keyframes");if(null==b)return[];for(var e=b.map(function(b){var d={};for(var e in b){var f=b[e];if("offset"==e){if(null!=f&&(f=Number(f),!isFinite(f)))throw new TypeError("keyframe offsets must be numbers.")}else{if("composite"==e)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};f="easing"==e?a.toTimingFunction(f):""+f}c(e,f,d)}return void 0==d.offset&&(d.offset=null),void 0==d.easing&&(d.easing=a.toTimingFunction("linear")),d}),f=!0,g=-1/0,h=0;h<e.length;h++){var i=e[h].offset;if(null!=i){if(g>i)throw{code:DOMException.INVALID_MODIFICATION_ERR,name:"InvalidModificationError",message:"Keyframes are not loosely sorted by offset. Sort or specify offsets."};g=i}else f=!1}return e=e.filter(function(a){return a.offset>=0&&a.offset<=1}),f||d(),e}var e={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},f=document.createElementNS("http://www.w3.org/1999/xhtml","div"),g={thin:"1px",medium:"3px",thick:"5px"},h={borderBottomWidth:g,borderLeftWidth:g,borderRightWidth:g,borderTopWidth:g,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:g,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.normalizeKeyframes=d}(c,f),function(a){var b={};a.isDeprecated=function(a,c,d,e){var f=e?"are":"is",g=new Date,h=new Date(c);return h.setMonth(h.getMonth()+3),h>g?(a in b||console.warn("Web Animations: "+a+" "+f+" deprecated and will stop working on "+h.toDateString()+". "+d),b[a]=!0,!1):!0},a.deprecated=function(b,c,d,e){var f=e?"are":"is";if(a.isDeprecated(b,c,d,e))throw new Error(b+" "+f+" no longer supported. "+d)}}(c),function(){if(document.documentElement.animate){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(c){void 0===a[c]&&(b=!0)})),!b)return}!function(a,b){function c(a){for(var b={},c=0;c<a.length;c++)for(var d in a[c])if("offset"!=d&&"easing"!=d&&"composite"!=d){var e={offset:a[c].offset,easing:a[c].easing,value:a[c][d]};b[d]=b[d]||[],b[d].push(e)}for(var f in b){var g=b[f];if(0!=g[0].offset||1!=g[g.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return b}function d(a){var c=[];for(var d in a)for(var e=a[d],f=0;f<e.length-1;f++){var g=e[f].offset,h=e[f+1].offset,i=e[f].value,j=e[f+1].value;g==h&&(1==h?i=j:j=i),c.push({startTime:g,endTime:h,easing:e[f].easing,property:d,interpolation:b.propertyInterpolation(d,i,j)})}return c.sort(function(a,b){return a.startTime-b.startTime}),c}b.convertEffectInput=function(e){var f=a.normalizeKeyframes(e),g=c(f),h=d(g);return function(a,c){if(null!=c)h.filter(function(a){return 0>=c&&0==a.startTime||c>=1&&1==a.endTime||c>=a.startTime&&c<=a.endTime}).forEach(function(d){var e=c-d.startTime,f=d.endTime-d.startTime,g=0==f?0:d.easing(e/f);b.apply(a,d.property,d.interpolation(g))});else for(var d in g)"offset"!=d&&"easing"!=d&&"composite"!=d&&b.clear(a,d)}}}(c,d,f),function(a){function b(a,b,c){e[c]=e[c]||[],e[c].push([a,b])}function c(a,c,d){for(var e=0;e<d.length;e++){var f=d[e];b(a,c,f),/-/.test(f)&&b(a,c,f.replace(/-(.)/g,function(a,b){return b.toUpperCase()}))}}function d(b,c,d){for(var f=c==d?[]:e[b],g=0;f&&g<f.length;g++){var h=f[g][0](c),i=f[g][0](d);if(void 0!==h&&void 0!==i){var j=f[g][1](h,i);if(j){var k=a.Interpolation.apply(null,j);return function(a){return 0==a?c:1==a?d:k(a)}}}}return a.Interpolation(!1,!0,function(a){return a?d:c})}var e={};a.addPropertiesHandler=c,a.propertyInterpolation=d}(d,f),function(a,b){function c(b){var c=a.calculateActiveDuration(b),d=function(d){return a.calculateTimeFraction(c,d,b)};return d._totalDuration=b.delay+c+b.endDelay,d._isCurrent=function(d){var e=a.calculatePhase(c,d,b);return e===PhaseActive||e===PhaseBefore},d}b.KeyframeEffect=function(d,e,f){var g,h=c(a.normalizeTimingInput(f)),i=b.convertEffectInput(e),j=function(){i(d,g)};return j._update=function(a){return g=h(a),null!==g},j._clear=function(){i(d,null)},j._hasSameTarget=function(a){return d===a},j._isCurrent=h._isCurrent,j._totalDuration=h._totalDuration,j},b.NullEffect=function(a){var b=function(){a&&(a(),a=null)};return b._update=function(){return null},b._totalDuration=0,b._isCurrent=function(){return!1},b._hasSameTarget=function(){return!1},b}}(c,d,f),function(a){function b(a,b,c){c.enumerable=!0,c.configurable=!0,Object.defineProperty(a,b,c)}function c(a){this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=a.style,this._length=0,this._isAnimatedProperty={};for(var b=0;b<this._style.length;b++){var c=this._style[b];this._surrogateStyle[c]=this._style[c]}this._updateIndices()}function d(a){if(!a._webAnimationsPatchedStyle){var d=new c(a);try{b(a,"style",{get:function(){return d}})}catch(e){a.style._set=function(b,c){a.style[b]=c},a.style._clear=function(b){a.style[b]=""}}a._webAnimationsPatchedStyle=a.style}}var e={cssText:1,length:1,parentRule:1},f={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},g={removeProperty:1,setProperty:1};c.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(a){for(var b={},c=0;c<this._surrogateStyle.length;c++)b[this._surrogateStyle[c]]=!0;this._surrogateStyle.cssText=a,this._updateIndices();for(var c=0;c<this._surrogateStyle.length;c++)b[this._surrogateStyle[c]]=!0;for(var d in b)this._isAnimatedProperty[d]||this._style.setProperty(d,this._surrogateStyle.getPropertyValue(d))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(a){return function(){return this._surrogateStyle[a]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(a,b){this._style[a]=b,this._isAnimatedProperty[a]=!0},_clear:function(a){this._style[a]=this._surrogateStyle[a],delete this._isAnimatedProperty[a]}};for(var h in f)c.prototype[h]=function(a,b){return function(){var c=this._surrogateStyle[a].apply(this._surrogateStyle,arguments);return b&&(this._isAnimatedProperty[arguments[0]]||this._style[a].apply(this._style,arguments),this._updateIndices()),c}}(h,h in g);for(var i in document.documentElement.style)i in e||i in f||!function(a){b(c.prototype,a,{get:function(){return this._surrogateStyle[a]},set:function(b){this._surrogateStyle[a]=b,this._updateIndices(),this._isAnimatedProperty[a]||(this._style[a]=b)}})}(i);a.apply=function(b,c,e){d(b),b.style._set(a.propertyName(c),e)},a.clear=function(b,c){b._webAnimationsPatchedStyle&&b.style._clear(a.propertyName(c))}}(d,f),function(a){window.Element.prototype.animate=function(b,c){return a.timeline._play(a.KeyframeEffect(this,b,c))}}(d),function(a){function b(a,c,d){if("number"==typeof a&&"number"==typeof c)return a*(1-d)+c*d;if("boolean"==typeof a&&"boolean"==typeof c)return.5>d?a:c;if(a.length==c.length){for(var e=[],f=0;f<a.length;f++)e.push(b(a[f],c[f],d));return e}throw"Mismatched interpolation arguments "+a+":"+c}a.Interpolation=function(a,c,d){return function(e){return d(b(a,c,e))}}}(d,f),function(a){function b(a,b,c){return Math.max(Math.min(a,c),b)}function c(c,d,e){var f=a.dot(c,d);f=b(f,-1,1);var g=[];if(1===f)g=c;else for(var h=Math.acos(f),i=1*Math.sin(e*h)/Math.sqrt(1-f*f),j=0;4>j;j++)g.push(c[j]*(Math.cos(e*h)-f*i)+d[j]*i);return g}var d=function(){function a(a,b){for(var c=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],d=0;4>d;d++)for(var e=0;4>e;e++)for(var f=0;4>f;f++)c[d][e]+=b[d][f]*a[f][e];return c}function b(a){return 0==a[0][2]&&0==a[0][3]&&0==a[1][2]&&0==a[1][3]&&0==a[2][0]&&0==a[2][1]&&1==a[2][2]&&0==a[2][3]&&0==a[3][2]&&1==a[3][3]}function c(c,d,e,f,g){for(var h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],i=0;4>i;i++)h[i][3]=g[i];for(var i=0;3>i;i++)for(var j=0;3>j;j++)h[3][i]+=c[j]*h[j][i];var k=f[0],l=f[1],m=f[2],n=f[3],o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];o[0][0]=1-2*(l*l+m*m),o[0][1]=2*(k*l-m*n),o[0][2]=2*(k*m+l*n),o[1][0]=2*(k*l+m*n),o[1][1]=1-2*(k*k+m*m),o[1][2]=2*(l*m-k*n),o[2][0]=2*(k*m-l*n),o[2][1]=2*(l*m+k*n),o[2][2]=1-2*(k*k+l*l),h=a(h,o);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];e[2]&&(p[2][1]=e[2],h=a(h,p)),e[1]&&(p[2][1]=0,p[2][0]=e[0],h=a(h,p)),e[0]&&(p[2][0]=0,p[1][0]=e[0],h=a(h,p));for(var i=0;3>i;i++)for(var j=0;3>j;j++)h[i][j]*=d[i];return b(h)?[h[0][0],h[0][1],h[1][0],h[1][1],h[3][0],h[3][1]]:h[0].concat(h[1],h[2],h[3])}return c}();a.composeMatrix=d,a.quat=c}(d,f),function(a){var b=0,c=function(a,b,c){this.target=a,this.currentTime=b,this.timelineTime=c,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};a.Animation=function(a){this._sequenceNumber=b++,this._currentTime=0,this._startTime=null,this.paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!1,this.onfinish=null,this._finishHandlers=[],this._effect=a,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},a.Animation.prototype={_ensureAlive:function(){this._inEffect=this._effect._update(this.playbackRate<0&&0===this.currentTime?-1:this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,a.timeline._animations.push(this))},_tickCurrentTime:function(a,b){a!=this._currentTime&&(this._currentTime=a,this.finished&&!b&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(b){b=+b,isNaN(b)||(a.restart(),this.paused||null==this._startTime||(this._startTime=this._timeline.currentTime-b/this._playbackRate),this._currentTimePending=!1,this._currentTime!=b&&(this._tickCurrentTime(b,!0),a.invalidateEffects()))},get startTime(){return this._startTime},set startTime(b){b=+b,isNaN(b)||this.paused||this._idle||(this._startTime=b,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),a.invalidateEffects())},get playbackRate(){return this._playbackRate},set playbackRate(a){if(a!=this._playbackRate){var b=this.currentTime;this._playbackRate=a,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&this.play(),null!=b&&(this.currentTime=b)}},get finished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this.paused&&0!=this.playbackRate||this._currentTimePending?"pending":this.paused?"paused":this.finished?"finished":"running"},play:function(){this.paused=!1,(this.finished||this._idle)&&(this._currentTime=this._playbackRate>0?0:this._totalDuration,this._startTime=null,a.invalidateEffects()),this._finishedFlag=!1,a.restart(),this._idle=!1,this._ensureAlive()},pause:function(){this.finished||this.paused||this._idle||(this._currentTimePending=!0),this._startTime=null,this.paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1)},cancel:function(){this._inEffect=!1,this._idle=!0,this.currentTime=0,this._startTime=null},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(a,b){"function"==typeof b&&"finish"==a&&this._finishHandlers.push(b)},removeEventListener:function(a,b){if("finish"==a){var c=this._finishHandlers.indexOf(b);c>=0&&this._finishHandlers.splice(c,1)}},_fireEvents:function(a){var b=this.finished;if((b||this._idle)&&!this._finishedFlag){var d=new c(this,this._currentTime,a),e=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){e.forEach(function(a){a.call(d.target,d)})},0)}this._finishedFlag=b},_tick:function(a){return this._idle||this.paused||(null==this._startTime?this.startTime=a-this._currentTime/this.playbackRate:this.finished||this._tickCurrentTime((a-this._startTime)*this.playbackRate)),this._currentTimePending=!1,this._fireEvents(a),!this._idle&&(this._inEffect||!this._finishedFlag)}}}(d,f),function(a,b){function c(a){var b=i;i=[],g(a),b.forEach(function(b){b[1](a)}),m&&g(a),f()}function d(a,b){return a._sequenceNumber-b._sequenceNumber}function e(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function f(){n.forEach(function(a){a()}),n.length=0}function g(a){l=!1;var c=b.timeline;c.currentTime=a,c._animations.sort(d),k=!1;var e=c._animations;c._animations=[];var f=[],g=[];e=e.filter(function(b){return b._inTimeline=b._tick(a),b._inEffect?g.push(b._effect):f.push(b._effect),b.finished||b.paused||b._idle||(k=!0),b._inTimeline}),n.push.apply(n,f),n.push.apply(n,g),c._animations.push.apply(c._animations,e),m=!1,k&&requestAnimationFrame(function(){})}var h=window.requestAnimationFrame,i=[],j=0;window.requestAnimationFrame=function(a){var b=j++;return 0==i.length&&h(c),i.push([b,a]),b},window.cancelAnimationFrame=function(a){i.forEach(function(b){b[0]==a&&(b[1]=function(){})})},e.prototype={_play:function(c){c._timing=a.normalizeTimingInput(c.timing);var d=new b.Animation(c);return d._idle=!1,d._timeline=this,this._animations.push(d),b.restart(),b.invalidateEffects(),d}};var k=!1,l=!1;b.restart=function(){return k||(k=!0,requestAnimationFrame(function(){}),l=!0),l};var m=!1;b.invalidateEffects=function(){m=!0};var n=[],o=window.getComputedStyle;Object.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value:function(){return m&&g(p.currentTime),f(),o.apply(this,arguments)}});var p=new e;b.timeline=p}(c,d,f),function(a){function b(a,b){for(var c=0,d=0;d<a.length;d++)c+=a[d]*b[d];return c}function c(a,b){return[a[0]*b[0]+a[4]*b[1]+a[8]*b[2]+a[12]*b[3],a[1]*b[0]+a[5]*b[1]+a[9]*b[2]+a[13]*b[3],a[2]*b[0]+a[6]*b[1]+a[10]*b[2]+a[14]*b[3],a[3]*b[0]+a[7]*b[1]+a[11]*b[2]+a[15]*b[3],a[0]*b[4]+a[4]*b[5]+a[8]*b[6]+a[12]*b[7],a[1]*b[4]+a[5]*b[5]+a[9]*b[6]+a[13]*b[7],a[2]*b[4]+a[6]*b[5]+a[10]*b[6]+a[14]*b[7],a[3]*b[4]+a[7]*b[5]+a[11]*b[6]+a[15]*b[7],a[0]*b[8]+a[4]*b[9]+a[8]*b[10]+a[12]*b[11],a[1]*b[8]+a[5]*b[9]+a[9]*b[10]+a[13]*b[11],a[2]*b[8]+a[6]*b[9]+a[10]*b[10]+a[14]*b[11],a[3]*b[8]+a[7]*b[9]+a[11]*b[10]+a[15]*b[11],a[0]*b[12]+a[4]*b[13]+a[8]*b[14]+a[12]*b[15],a[1]*b[12]+a[5]*b[13]+a[9]*b[14]+a[13]*b[15],a[2]*b[12]+a[6]*b[13]+a[10]*b[14]+a[14]*b[15],a[3]*b[12]+a[7]*b[13]+a[11]*b[14]+a[15]*b[15]]}function d(a){switch(a.t){case"rotatex":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[1,0,0,0,0,Math.cos(d),Math.sin(d),0,0,-Math.sin(d),Math.cos(d),0,0,0,0,1];case"rotatey":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[Math.cos(d),0,-Math.sin(d),0,0,1,0,0,Math.sin(d),0,Math.cos(d),0,0,0,0,1];case"rotate":case"rotatez":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[Math.cos(d),Math.sin(d),0,0,-Math.sin(d),Math.cos(d),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var e=a.d[0],f=a.d[1],g=a.d[2],b=a.d[3].rad||0,c=a.d[3].deg||0,d=c*Math.PI/180+b,h=e*e+f*f+g*g;if(0===h)e=1,f=0,g=0;else if(1!==h){var i=Math.sqrt(h);e/=i,f/=i,g/=i}var j=Math.sin(d/2),k=j*Math.cos(d/2),l=j*j;return[1-2*(f*f+g*g)*l,2*(e*f*l+g*k),2*(e*g*l-f*k),0,2*(e*f*l-g*k),1-2*(e*e+g*g)*l,2*(f*g*l+e*k),0,2*(e*g*l+f*k),2*(f*g*l-e*k),1-2*(e*e+f*f)*l,0,0,0,0,1];case"scale":return[a.d[0],0,0,0,0,a.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[a.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,a.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,a.d[0],0,0,0,0,1];case"scale3d":return[a.d[0],0,0,0,0,a.d[1],0,0,0,0,a.d[2],0,0,0,0,1];case"skew":var m=a.d[0].deg||0,n=a.d[0].rad||0,o=a.d[1].deg||0,p=a.d[1].rad||0,q=m*Math.PI/180+n,r=o*Math.PI/180+p;return[1,Math.tan(r),0,0,Math.tan(q),1,0,0,0,0,1,0,0,0,0,1];case"skewx":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[1,0,0,0,Math.tan(d),1,0,0,0,0,1,0,0,0,0,1];case"skewy":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[1,Math.tan(d),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":var e=a.d[0].px||0,f=a.d[1].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,f,0,1];case"translatex":var e=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,0,0,1];case"translatey":var f=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,f,0,1];case"translatez":var g=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,g,1];case"translate3d":var e=a.d[0].px||0,f=a.d[1].px||0,g=a.d[2].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,f,g,1];case"perspective":var s=a.d[0].px?-1/a.d[0].px:0;return[1,0,0,0,0,1,0,0,0,0,1,s,0,0,0,1];case"matrix":return[a.d[0],a.d[1],0,0,a.d[2],a.d[3],0,0,0,0,1,0,a.d[4],a.d[5],0,1];case"matrix3d":return a.d}}function e(a){return 0===a.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:a.map(d).reduce(c)}function f(a){return[g(e(a))]}var g=function(){function a(a){return a[0][0]*a[1][1]*a[2][2]+a[1][0]*a[2][1]*a[0][2]+a[2][0]*a[0][1]*a[1][2]-a[0][2]*a[1][1]*a[2][0]-a[1][2]*a[2][1]*a[0][0]-a[2][2]*a[0][1]*a[1][0]}function c(b){for(var c=1/a(b),d=b[0][0],e=b[0][1],f=b[0][2],g=b[1][0],h=b[1][1],i=b[1][2],j=b[2][0],k=b[2][1],l=b[2][2],m=[[(h*l-i*k)*c,(f*k-e*l)*c,(e*i-f*h)*c,0],[(i*j-g*l)*c,(d*l-f*j)*c,(f*g-d*i)*c,0],[(g*k-h*j)*c,(j*e-d*k)*c,(d*h-e*g)*c,0]],n=[],o=0;3>o;o++){for(var p=0,q=0;3>q;q++)p+=b[3][q]*m[q][o];n.push(p)}return n.push(1),m.push(n),m}function d(a){return[[a[0][0],a[1][0],a[2][0],a[3][0]],[a[0][1],a[1][1],a[2][1],a[3][1]],[a[0][2],a[1][2],a[2][2],a[3][2]],[a[0][3],a[1][3],a[2][3],a[3][3]]]}function e(a,b){for(var c=[],d=0;4>d;d++){for(var e=0,f=0;4>f;f++)e+=a[f]*b[f][d];c.push(e)}return c}function f(a){var b=g(a);return[a[0]/b,a[1]/b,a[2]/b]}function g(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2])}function h(a,b,c,d){return[c*a[0]+d*b[0],c*a[1]+d*b[1],c*a[2]+d*b[2]]}function i(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function j(j){var k=[j.slice(0,4),j.slice(4,8),j.slice(8,12),j.slice(12,16)];if(1!==k[3][3])return null;for(var l=[],m=0;4>m;m++)l.push(k[m].slice());for(var m=0;3>m;m++)l[m][3]=0;if(0===a(l))return!1;var n,o=[];if(k[0][3]||k[1][3]||k[2][3]){o.push(k[0][3]),o.push(k[1][3]),o.push(k[2][3]),o.push(k[3][3]);var p=c(l),q=d(p);n=e(o,q)}else n=[0,0,0,1];var r=k[3].slice(0,3),s=[];s.push(k[0].slice(0,3));var t=[];t.push(g(s[0])),s[0]=f(s[0]);var u=[];s.push(k[1].slice(0,3)),u.push(b(s[0],s[1])),s[1]=h(s[1],s[0],1,-u[0]),t.push(g(s[1])),s[1]=f(s[1]),u[0]/=t[1],s.push(k[2].slice(0,3)),u.push(b(s[0],s[2])),s[2]=h(s[2],s[0],1,-u[1]),u.push(b(s[1],s[2])),s[2]=h(s[2],s[1],1,-u[2]),t.push(g(s[2])),s[2]=f(s[2]),u[1]/=t[2],u[2]/=t[2];var v=i(s[1],s[2]);if(b(s[0],v)<0)for(var m=0;3>m;m++)t[m]*=-1,s[m][0]*=-1,s[m][1]*=-1,s[m][2]*=-1;var w,x,y=s[0][0]+s[1][1]+s[2][2]+1;return y>1e-4?(w=.5/Math.sqrt(y),x=[(s[2][1]-s[1][2])*w,(s[0][2]-s[2][0])*w,(s[1][0]-s[0][1])*w,.25/w]):s[0][0]>s[1][1]&&s[0][0]>s[2][2]?(w=2*Math.sqrt(1+s[0][0]-s[1][1]-s[2][2]),x=[.25*w,(s[0][1]+s[1][0])/w,(s[0][2]+s[2][0])/w,(s[2][1]-s[1][2])/w]):s[1][1]>s[2][2]?(w=2*Math.sqrt(1+s[1][1]-s[0][0]-s[2][2]),x=[(s[0][1]+s[1][0])/w,.25*w,(s[1][2]+s[2][1])/w,(s[0][2]-s[2][0])/w]):(w=2*Math.sqrt(1+s[2][2]-s[0][0]-s[1][1]),x=[(s[0][2]+s[2][0])/w,(s[1][2]+s[2][1])/w,.25*w,(s[1][0]-s[0][1])/w]),[r,t,u,x,n]}return j}();a.dot=b,a.makeMatrixDecomposition=f}(d,f),function(a){function b(a,b){var c=a.exec(b);return c?(c=a.ignoreCase?c[0].toLowerCase():c[0],[c,b.substr(c.length)]):void 0}function c(a,b){b=b.replace(/^\s*/,"");var c=a(b);return c?[c[0],c[1].replace(/^\s*/,"")]:void 0}function d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e);if(!g)return[f,e];if(f.push(g[0]),e=g[1],g=b(d,e),!g||""==g[1])return[f,e];e=g[1]}}function e(a,b){for(var c=0,d=0;d<b.length&&(!/\s|,/.test(b[d])||0!=c);d++)if("("==b[d])c++;else if(")"==b[d]&&(c--,0==c&&d++,0>=c))break;var e=a(b.substr(0,d));return void 0==e?void 0:[e,b.substr(d)]}function f(a,b){for(var c=a,d=b;c&&d;)c>d?c%=d:d%=c;return c=a*b/(c+d)}function g(a){return function(b){var c=a(b);return c&&(c[0]=void 0),c}}function h(a,b){return function(c){var d=a(c);return d?d:[b,c]}}function i(b,c){for(var d=[],e=0;e<b.length;e++){var f=a.consumeTrimmed(b[e],c);if(!f||""==f[0])return;void 0!==f[0]&&d.push(f[0]),c=f[1]}return""==c?d:void 0}function j(a,b,c,d,e){for(var g=[],h=[],i=[],j=f(d.length,e.length),k=0;j>k;k++){var l=b(d[k%d.length],e[k%e.length]);if(!l)return;g.push(l[0]),h.push(l[1]),i.push(l[2])}return[g,h,function(b){var d=b.map(function(a,b){return i[b](a)}).join(c);return a?a(d):d}]}function k(a,b,c){for(var d=[],e=[],f=[],g=0,h=0;h<c.length;h++)if("function"==typeof c[h]){var i=c[h](a[g],b[g++]);d.push(i[0]),e.push(i[1]),f.push(i[2])}else!function(a){d.push(!1),e.push(!1),f.push(function(){return c[a]})}(h);return[d,e,function(a){for(var b="",c=0;c<a.length;c++)b+=f[c](a[c]);return b}]}a.consumeToken=b,a.consumeTrimmed=c,a.consumeRepeated=d,a.consumeParenthesised=e,a.ignore=g,a.optional=h,a.consumeList=i,a.mergeNestedRepeated=j.bind(null,null),a.mergeWrappedNestedRepeated=j,a.mergeList=k}(d),function(a){function b(b){function c(b){var c=a.consumeToken(/^inset/i,b);if(c)return d.inset=!0,c;var c=a.consumeLengthOrPercent(b);if(c)return d.lengths.push(c[0]),c;var c=a.consumeColor(b);return c?(d.color=c[0],c):void 0}var d={inset:!1,lengths:[],color:null},e=a.consumeRepeated(c,/^/,b);return e&&e[0].length?[d,e[1]]:void 0}function c(c){var d=a.consumeRepeated(b,/^,/,c);return d&&""==d[1]?d[0]:void 0}function d(b,c){for(;b.lengths.length<Math.max(b.lengths.length,c.lengths.length);)b.lengths.push({px:0});for(;c.lengths.length<Math.max(b.lengths.length,c.lengths.length);)c.lengths.push({px:0});if(b.inset==c.inset&&!!b.color==!!c.color){for(var d,e=[],f=[[],0],g=[[],0],h=0;h<b.lengths.length;h++){var i=a.mergeDimensions(b.lengths[h],c.lengths[h],2==h);f[0].push(i[0]),g[0].push(i[1]),e.push(i[2])}if(b.color&&c.color){var j=a.mergeColors(b.color,c.color);f[1]=j[0],g[1]=j[1],d=j[2]}return[f,g,function(a){for(var c=b.inset?"inset ":" ",f=0;f<e.length;f++)c+=e[f](a[0][f])+" ";return d&&(c+=d(a[1])),c}]}}function e(b,c,d,e){function f(a){return{inset:a,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var g=[],h=[],i=0;i<d.length||i<e.length;i++){var j=d[i]||f(e[i].inset),k=e[i]||f(d[i].inset);g.push(j),h.push(k)}return a.mergeNestedRepeated(b,c,g,h)}var f=e.bind(null,d,", ");a.addPropertiesHandler(c,f,["box-shadow","text-shadow"])}(d),function(a){function b(a){return a.toFixed(3).replace(".000","")}function c(a,b,c){return Math.min(b,Math.max(a,c))}function d(a){return/^\s*[-+]?(\d*\.)?\d+\s*$/.test(a)?Number(a):void 0}function e(a,c){return[a,c,b]}function f(a,b){return 0!=a?h(0,1/0)(a,b):void 0}function g(a,b){return[a,b,function(a){return Math.round(c(1,1/0,a))}]}function h(a,d){return function(e,f){return[e,f,function(e){return b(c(a,d,e))}]}}function i(a,b){return[a,b,Math.round]}a.clamp=c,a.addPropertiesHandler(d,h(0,1/0),["border-image-width","line-height"]),a.addPropertiesHandler(d,h(0,1),["opacity","shape-image-threshold"]),a.addPropertiesHandler(d,f,["flex-grow","flex-shrink"]),a.addPropertiesHandler(d,g,["orphans","widows"]),a.addPropertiesHandler(d,i,["z-index"]),a.parseNumber=d,a.mergeNumbers=e,a.numberToString=b}(d,f),function(a){function b(a,b){return"visible"==a||"visible"==b?[0,1,function(c){return 0>=c?a:c>=1?b:"visible"}]:void 0}a.addPropertiesHandler(String,b,["visibility"])}(d),function(a){function b(a){a=a.trim(),e.fillStyle="#000",e.fillStyle=a;var b=e.fillStyle;if(e.fillStyle="#fff",e.fillStyle=a,b==e.fillStyle){e.fillRect(0,0,1,1);var c=e.getImageData(0,0,1,1).data;e.clearRect(0,0,1,1);var d=c[3]/255;return[c[0]*d,c[1]*d,c[2]*d,d]}}function c(b,c){return[b,c,function(b){function c(a){return Math.max(0,Math.min(255,a))}if(b[3])for(var d=0;3>d;d++)b[d]=Math.round(c(b[d]/b[3]));return b[3]=a.numberToString(a.clamp(0,1,b[3])),"rgba("+b.join(",")+")"}]}var d=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");d.width=d.height=1;var e=d.getContext("2d");a.addPropertiesHandler(b,c,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","outline-color","text-decoration-color"]),a.consumeColor=a.consumeParenthesised.bind(null,b),a.mergeColors=c}(d,f),function(a,b){function c(a,b){if(b=b.trim().toLowerCase(),"0"==b&&"px".search(a)>=0)return{px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\(/g,"(");var c={};b=b.replace(a,function(a){return c[a]=null,"U"+a});for(var d="U("+a.source+")",e=b.replace(/[-+]?(\d*\.)?\d+/g,"N").replace(new RegExp("N"+d,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),f=[/N\*(D)/g,/(N|D)[*/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],g=0;g<f.length;)f[g].test(e)?(e=e.replace(f[g],"$1"),g=0):g++;if("D"==e){for(var h in c){var i=eval(b.replace(new RegExp("U"+h,"g"),"").replace(new RegExp(d,"g"),"*0"));if(!isFinite(i))return;c[h]=i}return c}}}function d(a,b){return e(a,b,!0)}function e(b,c,d){var e,f=[];for(e in b)f.push(e);for(e in c)f.indexOf(e)<0&&f.push(e);return b=f.map(function(a){return b[a]||0}),c=f.map(function(a){return c[a]||0}),[b,c,function(b){var c=b.map(function(c,e){return 1==b.length&&d&&(c=Math.max(c,0)),a.numberToString(c)+f[e]}).join(" + ");return b.length>1?"calc("+c+")":c}]}var f="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",g=c.bind(null,new RegExp(f,"g")),h=c.bind(null,new RegExp(f+"|%","g")),i=c.bind(null,/deg|rad|grad|turn/g);a.parseLength=g,a.parseLengthOrPercent=h,a.consumeLengthOrPercent=a.consumeParenthesised.bind(null,h),a.parseAngle=i,a.mergeDimensions=e;var j=a.consumeParenthesised.bind(null,g),k=a.consumeRepeated.bind(void 0,j,/^/),l=a.consumeRepeated.bind(void 0,k,/^,/);a.consumeSizePairList=l;var m=function(a){var b=l(a);return b&&""==b[1]?b[0]:void 0},n=a.mergeNestedRepeated.bind(void 0,d," "),o=a.mergeNestedRepeated.bind(void 0,n,",");a.mergeNonNegativeSizePair=n,a.addPropertiesHandler(m,o,["background-size"]),a.addPropertiesHandler(h,d,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),a.addPropertiesHandler(h,e,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","text-indent","top","vertical-align","word-spacing"])}(d,f),function(a){function b(b){return a.consumeLengthOrPercent(b)||a.consumeToken(/^auto/,b)}function c(c){var d=a.consumeList([a.ignore(a.consumeToken.bind(null,/^rect/)),a.ignore(a.consumeToken.bind(null,/^\(/)),a.consumeRepeated.bind(null,b,/^,/),a.ignore(a.consumeToken.bind(null,/^\)/))],c);return d&&4==d[0].length?d[0]:void 0}function d(b,c){return"auto"==b||"auto"==c?[!0,!1,function(d){var e=d?b:c;if("auto"==e)return"auto";var f=a.mergeDimensions(e,e);return f[2](f[0])}]:a.mergeDimensions(b,c)}function e(a){return"rect("+a+")"}var f=a.mergeWrappedNestedRepeated.bind(null,e,d,", ");a.parseBox=c,a.mergeBoxes=f,a.addPropertiesHandler(c,f,["clip"])
16
+ }(d,f),function(a){function b(a){return function(b){var c=0;return a.map(function(a){return a===j?b[c++]:a})}}function c(a){return a}function d(b){if(b=b.toLowerCase().trim(),"none"==b)return[];for(var c,d=/\s*(\w+)\(([^)]*)\)/g,e=[],f=0;c=d.exec(b);){if(c.index!=f)return;f=c.index+c[0].length;var g=c[1],h=m[g];if(!h)return;var i=c[2].split(","),j=h[0];if(j.length<i.length)return;for(var n=[],o=0;o<j.length;o++){var p,q=i[o],r=j[o];if(p=q?{A:function(b){return"0"==b.trim()?l:a.parseAngle(b)},N:a.parseNumber,T:a.parseLengthOrPercent,L:a.parseLength}[r.toUpperCase()](q):{a:l,n:n[0],t:k}[r],void 0===p)return;n.push(p)}if(e.push({t:g,d:n}),d.lastIndex==b.length)return e}}function e(a){return a.toFixed(6).replace(".000000","")}function f(b,c){if(b.decompositionPair!==c){b.decompositionPair=c;var d=a.makeMatrixDecomposition(b)}if(c.decompositionPair!==b){c.decompositionPair=b;var f=a.makeMatrixDecomposition(c)}return null==d[0]||null==f[0]?[[!1],[!0],function(a){return a?c[0].d:b[0].d}]:(d[0].push(0),f[0].push(1),[d,f,function(b){var c=a.quat(d[0][3],f[0][3],b[5]),g=a.composeMatrix(b[0],b[1],b[2],c,b[4]),h=g.map(e).join(",");return h}])}function g(a){return a.replace(/[xy]/,"")}function h(a){return a.replace(/(x|y|z|3d)?$/,"3d")}function i(b,c){var d=a.makeMatrixDecomposition&&!0,e=!1;if(!b.length||!c.length){b.length||(e=!0,b=c,c=[]);for(var i=0;i<b.length;i++){var j=b[i].t,k=b[i].d,l="scale"==j.substr(0,5)?1:0;c.push({t:j,d:k.map(function(a){if("number"==typeof a)return l;var b={};for(var c in a)b[c]=l;return b})})}}var n=function(a,b){return"perspective"==a&&"perspective"==b||("matrix"==a||"matrix3d"==a)&&("matrix"==b||"matrix3d"==b)},o=[],p=[],q=[];if(b.length!=c.length){if(!d)return;var r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]]}else for(var i=0;i<b.length;i++){var j,s=b[i].t,t=c[i].t,u=b[i].d,v=c[i].d,w=m[s],x=m[t];if(n(s,t)){if(!d)return;var r=f([b[i]],[c[i]]);o.push(r[0]),p.push(r[1]),q.push(["matrix",[r[2]]])}else{if(s==t)j=s;else if(w[2]&&x[2]&&g(s)==g(t))j=g(s),u=w[2](u),v=x[2](v);else{if(!w[1]||!x[1]||h(s)!=h(t)){if(!d)return;var r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]];break}j=h(s),u=w[1](u),v=x[1](v)}for(var y=[],z=[],A=[],B=0;B<u.length;B++){var C="number"==typeof u[B]?a.mergeNumbers:a.mergeDimensions,r=C(u[B],v[B]);y[B]=r[0],z[B]=r[1],A.push(r[2])}o.push(y),p.push(z),q.push([j,A])}}if(e){var D=o;o=p,p=D}return[o,p,function(a){return a.map(function(a,b){var c=a.map(function(a,c){return q[b][1][c](a)}).join(",");return"matrix"==q[b][0]&&16==c.split(",").length&&(q[b][0]="matrix3d"),q[b][0]+"("+c+")"}).join(" ")}]}var j=null,k={px:0},l={deg:0},m={matrix:["NNNNNN",[j,j,0,0,j,j,0,0,0,0,1,0,j,j,0,1],c],matrix3d:["NNNNNNNNNNNNNNNN",c],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",b([j,j,1]),c],scalex:["N",b([j,1,1]),b([j,1])],scaley:["N",b([1,j,1]),b([1,j])],scalez:["N",b([1,1,j])],scale3d:["NNN",c],skew:["Aa",null,c],skewx:["A",null,b([j,l])],skewy:["A",null,b([l,j])],translate:["Tt",b([j,j,k]),c],translatex:["T",b([j,k,k]),b([j,k])],translatey:["T",b([k,j,k]),b([k,j])],translatez:["L",b([k,k,j])],translate3d:["TTL",c]};a.addPropertiesHandler(d,i,["transform"])}(d,f),function(a){function b(a){var b=Number(a);return isNaN(b)||100>b||b>900||b%100!==0?void 0:b}function c(b){return b=100*Math.round(b/100),b=a.clamp(100,900,b),400===b?"normal":700===b?"bold":String(b)}function d(a,b){return[a,b,c]}a.addPropertiesHandler(b,d,["font-weight"])}(d),function(a){function b(a){var b={};for(var c in a)b[c]=-a[c];return b}function c(b){return a.consumeToken(/^(left|center|right|top|bottom)\b/i,b)||a.consumeLengthOrPercent(b)}function d(b,d){var e=a.consumeRepeated(c,/^/,d);if(e&&""==e[1]){var f=e[0];if(f[0]=f[0]||"center",f[1]=f[1]||"center",3==b&&(f[2]=f[2]||{px:0}),f.length==b){if(/top|bottom/.test(f[0])||/left|right/.test(f[1])){var h=f[0];f[0]=f[1],f[1]=h}if(/left|right|center|Object/.test(f[0])&&/top|bottom|center|Object/.test(f[1]))return f.map(function(a){return"object"==typeof a?a:g[a]})}}}function e(d){var e=a.consumeRepeated(c,/^/,d);if(e){for(var f=e[0],h=[{"%":50},{"%":50}],i=0,j=!1,k=0;k<f.length;k++){var l=f[k];"string"==typeof l?(j=/bottom|right/.test(l),i={left:0,right:0,center:i,top:1,bottom:1}[l],h[i]=g[l],"center"==l&&i++):(j&&(l=b(l),l["%"]=(l["%"]||0)+100),h[i]=l,i++,j=!1)}return[h,e[1]]}}function f(b){var c=a.consumeRepeated(e,/^,/,b);return c&&""==c[1]?c[0]:void 0}var g={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},h=a.mergeNestedRepeated.bind(null,a.mergeDimensions," ");a.addPropertiesHandler(d.bind(null,3),h,["transform-origin"]),a.addPropertiesHandler(d.bind(null,2),h,["perspective-origin"]),a.consumePosition=e,a.mergeOffsetList=h;var i=a.mergeNestedRepeated.bind(null,h,", ");a.addPropertiesHandler(f,i,["background-position","object-position"])}(d),function(a){function b(b){var c=a.consumeToken(/^circle/,b);if(c&&c[0])return["circle"].concat(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),d,a.ignore(a.consumeToken.bind(void 0,/^at/)),a.consumePosition,a.ignore(a.consumeToken.bind(void 0,/^\)/))],c[1]));var f=a.consumeToken(/^ellipse/,b);if(f&&f[0])return["ellipse"].concat(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),e,a.ignore(a.consumeToken.bind(void 0,/^at/)),a.consumePosition,a.ignore(a.consumeToken.bind(void 0,/^\)/))],f[1]));var g=a.consumeToken(/^polygon/,b);return g&&g[0]?["polygon"].concat(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),a.optional(a.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),a.consumeSizePairList,a.ignore(a.consumeToken.bind(void 0,/^\)/))],g[1])):void 0}function c(b,c){return b[0]===c[0]?"circle"==b[0]?a.mergeList(b.slice(1),c.slice(1),["circle(",a.mergeDimensions," at ",a.mergeOffsetList,")"]):"ellipse"==b[0]?a.mergeList(b.slice(1),c.slice(1),["ellipse(",a.mergeNonNegativeSizePair," at ",a.mergeOffsetList,")"]):"polygon"==b[0]&&b[1]==c[1]?a.mergeList(b.slice(2),c.slice(2),["polygon(",b[1],g,")"]):void 0:void 0}var d=a.consumeParenthesised.bind(null,a.parseLengthOrPercent),e=a.consumeRepeated.bind(void 0,d,/^/),f=a.mergeNestedRepeated.bind(void 0,a.mergeDimensions," "),g=a.mergeNestedRepeated.bind(void 0,f,",");a.addPropertiesHandler(b,c,["shape-outside"])}(d),function(a){function b(a,b){b.concat([a]).forEach(function(b){b in document.documentElement.style&&(c[a]=b)})}var c={};b("transform",["webkitTransform","msTransform"]),b("transformOrigin",["webkitTransformOrigin"]),b("perspective",["webkitPerspective"]),b("perspectiveOrigin",["webkitPerspectiveOrigin"]),a.propertyName=function(a){return c[a]||a}}(d,f)}(),!function(a,b){function c(a){var b=window.document.timeline;b.currentTime=a,b._discardAnimations(),0==b._animations.length?d=!1:requestAnimationFrame(c)}b.AnimationTimeline=function(){this._animations=[],this.currentTime=void 0},b.AnimationTimeline.prototype={getAnimations:function(){return this._discardAnimations(),this._animations.slice()},getAnimationPlayers:function(){return a.deprecated("AnimationTimeline.getAnimationPlayers","2015-03-23","Use AnimationTimeline.getAnimations instead."),this.getAnimations()},_discardAnimations:function(){this._animations=this._animations.filter(function(a){return"finished"!=a.playState&&"idle"!=a.playState})},play:function(a){var c=new b.Animation(a);return this._animations.push(c),b.restartWebAnimationsNextTick(),c._animation.play(),c}};var d=!1;b.restartWebAnimationsNextTick=function(){d||(d=!0,requestAnimationFrame(c))};var e=new b.AnimationTimeline;b.timeline=e;try{Object.defineProperty(window.document,"timeline",{configurable:!0,get:function(){return e}})}catch(f){}try{window.document.timeline=e}catch(f){}}(c,e,f),function(a,b){b.Animation=function(a){this.effect=a,a&&(a.animation=this),this._isGroup=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._rebuildUnderlyingAnimation(),this._animation.cancel()},b.Animation.prototype={_rebuildUnderlyingAnimation:function(){this._animation&&(this._animation.cancel(),this._animation=null),(!this.effect||this.effect instanceof window.KeyframeEffect)&&(this._animation=b.newUnderlyingAnimationForKeyframeEffect(this.effect),b.bindAnimationForKeyframeEffect(this)),(this.effect instanceof window.SequenceEffect||this.effect instanceof window.GroupEffect)&&(this._animation=b.newUnderlyingAnimationForGroup(this.effect),b.bindAnimationForGroup(this))},_updateChildren:function(){if(this.effect&&"idle"!=this.playState){var a=this.effect._timing.delay;this._childAnimations.forEach(function(c){this._arrangeChildren(c,a),this.effect instanceof window.SequenceEffect&&(a+=b.groupChildDuration(c.effect))}.bind(this))}},_setExternalAnimation:function(a){if(this.effect&&this._isGroup)for(var b=0;b<this.effect.children.length;b++)this.effect.children[b].animation=a,this._childAnimations[b]._setExternalAnimation(a)},_constructChildren:function(){if(this.effect&&this._isGroup){var a=this.effect._timing.delay;this.effect.children.forEach(function(c){var d=window.document.timeline.play(c);this._childAnimations.push(d),d.playbackRate=this.playbackRate,this.paused&&d.pause(),c.animation=this.effect.animation,this._arrangeChildren(d,a),this.effect instanceof window.SequenceEffect&&(a+=b.groupChildDuration(c))}.bind(this))}},_arrangeChildren:function(a,b){null===this.startTime?(a.currentTime=this.currentTime-b/this.playbackRate,a._startTime=null):a.startTime!==this.startTime+b/this.playbackRate&&(a.startTime=this.startTime+b/this.playbackRate)},get paused(){return this._animation.paused},get playState(){return this._animation.playState},get onfinish(){return this._onfinish},set onfinish(a){"function"==typeof a?(this._onfinish=a,this._animation.onfinish=function(b){b.target=this,a.call(this,b)}.bind(this)):(this._animation.onfinish=a,this.onfinish=this._animation.onfinish)},get currentTime(){return this._animation.currentTime},set currentTime(a){this._animation.currentTime=a,this._register(),this._forEachChild(function(b,c){b.currentTime=a-c})},get startTime(){return this._animation.startTime},set startTime(a){this._animation.startTime=a,this._register(),this._forEachChild(function(b,c){b.startTime=a+c})},get playbackRate(){return this._animation.playbackRate},set playbackRate(a){var b=this.currentTime;this._animation.playbackRate=a,this._forEachChild(function(b){b.playbackRate=a}),"paused"!=this.playState&&"idle"!=this.playState&&this.play(),null!==b&&(this.currentTime=b)},get finished(){return this._animation.finished},get source(){return a.deprecated("Animation.source","2015-03-23","Use Animation.effect instead."),this.effect},play:function(){this._animation.play(),this._register(),b.awaitStartTime(this),this._forEachChild(function(a){var b=a.currentTime;a.play(),a.currentTime=b})},pause:function(){this._animation.pause(),this._register(),this._forEachChild(function(a){a.pause()})},finish:function(){this._animation.finish(),this._register()},cancel:function(){this._animation.cancel(),this._register(),this._removeChildren()},reverse:function(){var a=this.currentTime;this._animation.reverse(),this._forEachChild(function(a){a.reverse()}),null!==a&&(this.currentTime=a)},addEventListener:function(a,b){var c=b;"function"==typeof b&&(c=function(a){a.target=this,b.call(this,a)}.bind(this),b._wrapper=c),this._animation.addEventListener(a,c)},removeEventListener:function(a,b){this._animation.removeEventListener(a,b&&b._wrapper||b)},_removeChildren:function(){for(;this._childAnimations.length;)this._childAnimations.pop().cancel()},_forEachChild:function(b){var c=0;if(this.effect.children&&this._childAnimations.length<this.effect.children.length&&this._constructChildren(),this._childAnimations.forEach(function(a){b.call(this,a,c),this.effect instanceof window.SequenceEffect&&(c+=a.effect.activeDuration)}.bind(this)),"pending"!=this._animation.playState){var d=this.effect._timing,e=this._animation.currentTime;null!==e&&(e=a.calculateTimeFraction(a.calculateActiveDuration(d),e,d)),(null==e||isNaN(e))&&this._removeChildren()}}}}(c,e,f),function(a,b){function c(b){this._frames=a.normalizeKeyframes(b)}function d(){for(var a=!1;g.length;)g.shift()._updateChildren(),a=!0;return a}b.KeyframeEffect=function(b,d,e){return this.target=b,this._timingInput=e,this._timing=a.normalizeTimingInput(e),this.timing=a.makeTiming(e),this._normalizedKeyframes="function"==typeof d?d:new c(d),this._keyframes=d,this.activeDuration=a.calculateActiveDuration(this._timing),this},b.KeyframeEffect.prototype={getFrames:function(){return"function"==typeof this._normalizedKeyframes?this._normalizedKeyframes:this._normalizedKeyframes._frames},get effect(){return a.deprecated("KeyframeEffect.effect","2015-03-23","Use KeyframeEffect.getFrames() instead."),this._normalizedKeyframes}};var e=Element.prototype.animate;Element.prototype.animate=function(a,c){return b.timeline.play(new b.KeyframeEffect(this,a,c))};var f=document.createElementNS("http://www.w3.org/1999/xhtml","div");b.newUnderlyingAnimationForKeyframeEffect=function(a){var b=a.target||f,c=a._keyframes;return"function"==typeof c&&(c=[]),e.apply(b,[c,a._timingInput])},b.bindAnimationForKeyframeEffect=function(a){a.effect&&"function"==typeof a.effect._normalizedKeyframes&&b.bindAnimationForCustomEffect(a)};var g=[];b.awaitStartTime=function(a){null===a.startTime&&a._isGroup&&(0==g.length&&requestAnimationFrame(d),g.push(a))};var h=window.getComputedStyle;Object.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value:function(){var a=h.apply(this,arguments);return d()&&(a=h.apply(this,arguments)),a}}),window.KeyframeEffect=b.KeyframeEffect,window.Element.prototype.getAnimations=function(){return document.timeline.getAnimations().filter(function(a){return null!==a.effect&&a.effect.target==this}.bind(this))},window.Element.prototype.getAnimationPlayers=function(){return a.deprecated("Element.getAnimationPlayers","2015-03-23","Use Element.getAnimations instead."),this.getAnimations()},window.Animation=function(){a.deprecated("window.Animation","2015-03-23","Use window.KeyframeEffect instead."),window.KeyframeEffect.apply(this,arguments)},window.Animation.prototype=Object.create(window.KeyframeEffect.prototype),window.Animation.prototype.constructor=window.Animation}(c,e,f),function(a,b){function c(a){a._registered||(a._registered=!0,f.push(a),g||(g=!0,requestAnimationFrame(d)))}function d(){var a=f;f=[],a.sort(function(a,b){return a._sequenceNumber-b._sequenceNumber}),a=a.filter(function(a){a();var b=a._animation?a._animation.playState:"idle";return"running"!=b&&"pending"!=b&&(a._registered=!1),a._registered}),f.push.apply(f,a),f.length?(g=!0,requestAnimationFrame(d)):g=!1}var e=(document.createElementNS("http://www.w3.org/1999/xhtml","div"),0);b.bindAnimationForCustomEffect=function(b){var d=b.effect.target,f=b.effect._normalizedKeyframes,g=b.effect.timing,h=null;g=a.normalizeTimingInput(g);var i=function(){var c=i._animation?i._animation.currentTime:null;null!==c&&(c=a.calculateTimeFraction(a.calculateActiveDuration(g),c,g),isNaN(c)&&(c=null)),c!==h&&f(c,d,b.effect),h=c};i._animation=b,i._registered=!1,i._sequenceNumber=e++,b._callback=i,c(i)};var f=[],g=!1;b.Animation.prototype._register=function(){this._callback&&c(this._callback)}}(c,e,f),function(a,b){function c(a){return a._timing.delay+a.activeDuration+a._timing.endDelay}function d(b,c){this.children=b||[],this._timing=a.normalizeTimingInput(c,!0),this.timing=a.makeTiming(c,!0),"auto"===this._timing.duration&&(this._timing.duration=this.activeDuration)}window.SequenceEffect=function(){d.apply(this,arguments)},window.GroupEffect=function(){d.apply(this,arguments)},window.SequenceEffect.prototype={get activeDuration(){var a=0;return this.children.forEach(function(b){a+=c(b)}),Math.max(a,0)}},window.GroupEffect.prototype={get activeDuration(){var a=0;return this.children.forEach(function(b){a=Math.max(a,c(b))}),a}},b.newUnderlyingAnimationForGroup=function(c){var d,e=null,f=function(b){var c=d._wrapper;return"pending"!=c.playState&&c.effect?null==b?void c._removeChildren():0==b&&c.playbackRate<0&&(e||(e=a.normalizeTimingInput(c.effect.timing)),b=a.calculateTimeFraction(a.calculateActiveDuration(e),-1,e),isNaN(b)||null==b)?(c._forEachChild(function(a){a.currentTime=-1}),void c._removeChildren()):void 0:void 0};return d=b.timeline.play(new b.KeyframeEffect(null,f,c._timing))},b.bindAnimationForGroup=function(a){a._animation._wrapper=a,a._isGroup=!0,b.awaitStartTime(a),a._constructChildren(),a._setExternalAnimation(a)},b.groupChildDuration=c,window.AnimationSequence=function(){a.deprecated("window.AnimationSequence","2015-03-23","Use window.SequenceEffect instead."),window.SequenceEffect.apply(this,arguments)},window.AnimationSequence.prototype=Object.create(window.SequenceEffect.prototype),window.AnimationSequence.prototype.constructor=window.AnimationSequence,window.AnimationGroup=function(){a.deprecated("window.AnimationGroup","2015-03-23","Use window.GroupEffect instead."),window.GroupEffect.apply(this,arguments)},window.AnimationGroup.prototype=Object.create(window.GroupEffect.prototype),window.AnimationGroup.prototype.constructor=window.AnimationGroup}(c,e,f)}({},function(){return this}());
17
+ //# sourceMappingURL=web-animations-next.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-animations-next.min.js","sources":["src/scope.js","src/timing-utilities.js","src/normalize-keyframes.js","src/deprecation.js","src/keyframe-interpolations.js","src/property-interpolation.js","src/keyframe-effect.js","src/apply-preserving-inline-style.js","src/element-animatable.js","src/interpolation.js","src/matrix-interpolation.js","src/animation.js","src/tick.js","src/timeline.js","src/web-animations-next-animation.js","src/keyframe-effect-constructor.js","src/effect-callback.js","src/group-constructors.js"],"names":["webAnimationsShared","webAnimations1","webAnimationsNext","webAnimationsTesting","shared","makeTiming","timingInput","forGroup","timing","delay","endDelay","fill","iterationStart","iterations","duration","playbackRate","direction","easing","isNaN","undefined","Object","getOwnPropertyNames","forEach","property","fills","indexOf","directions","isDeprecated","normalizeTimingInput","toTimingFunction","cubic","a","b","c","d","linear","x","f","m","start","end","mid","xEst","Math","abs","step","count","pos","stepSize","cubicData","cubicBezierRe","exec","apply","this","slice","map","Number","stepData","stepRe","Start","middle","Middle","End","preset","presets","calculateActiveDuration","repeatedDuration","calculatePhase","activeDuration","localTime","PhaseNone","PhaseBefore","PhaseAfter","PhaseActive","calculateActiveTime","fillMode","phase","calculateScaledActiveTime","activeTime","startOffset","calculateIterationTime","iterationDuration","scaledActiveTime","Infinity","calculateCurrentIteration","iterationTime","floor","calculateTransformedTime","currentIteration","currentIterationIsOdd","currentDirectionIsForwards","directedTime","timeFraction","calculateTimeFraction","split","ease","ease-in","ease-out","ease-in-out","step-start","step-middle","step-end","numberString","RegExp","antiAlias","value","aliases","expandShorthandAndAntiAlias","result","longProperties","shorthandToLonghand","shorthandExpanderElem","style","i","longProperty","longhandValue","normalizeKeyframes","effectInput","spaceKeyframes","length","keyframes","offset","previousIndex","previousOffset","j","Array","isArray","TypeError","originalKeyframe","keyframe","member","memberValue","isFinite","type","DOMException","NOT_SUPPORTED_ERR","name","message","everyFrameHasOffset","code","INVALID_MODIFICATION_ERR","filter","background","border","borderBottom","borderColor","borderLeft","borderRadius","borderRight","borderTop","borderWidth","flex","font","margin","outline","padding","document","createElementNS","borderWidthAliases","thin","medium","thick","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","fontSize","xx-small","x-small","small","large","x-large","xx-large","fontWeight","normal","bold","outlineWidth","textShadow","none","boxShadow","silenced","feature","date","advice","plural","auxVerb","today","Date","expiry","setMonth","getMonth","console","warn","toDateString","deprecated","Error","scope","makePropertySpecificKeyframeGroups","propertySpecificKeyframeGroups","propertySpecificKeyframe","push","groupName","group","makeInterpolations","interpolations","endTime","startValue","endValue","startTime","propertyInterpolation","leftInterpolation","rightInterpolation","convertEffectInput","target","fraction","interpolation","offsetFraction","localDuration","scaledLocalTime","clear","addPropertyHandler","parser","merger","propertyHandlers","addPropertiesHandler","properties","replace","toUpperCase","right","handlers","parsedLeft","parsedRight","interpolationArgs","Interpolation","t","interp","bool","left","testing","EffectTime","effectTime","keyframeEffect","_clear","_hasSameTarget","otherTarget","_isCurrent","_totalDuration","NullEffect","nullEffect","_update","configureProperty","descriptor","enumerable","configurable","defineProperty","object","AnimatedCSSStyleDeclaration","element","_surrogateStyle","_style","_isAnimatedProperty","_updateIndices","ensureStyleIsPatched","_webAnimationsPatchedStyle","animatedStyle","styleAttributes","cssText","parentRule","styleMethods","getPropertyCSSValue","getPropertyPriority","getPropertyValue","removeProperty","setProperty","styleMutatingMethods",{"end":{"file":"src/apply-preserving-inline-style.js","comments_before":[],"nlb":false,"endpos":2110,"pos":2103,"col":8,"line":64,"value":"cssText","type":"name"},"start":{"file":"src/apply-preserving-inline-style.js","comments_before":[],"nlb":false,"endpos":2110,"pos":2103,"col":8,"line":64,"value":"cssText","type":"name"},"name":"cssText"},"isAffectedProperty","text","_length","index","_set","method","prototype","modifiesStyle","arguments","documentElement","set","propertyName","window","Element","animate","timeline","_play","KeyframeEffect","interpolate","from","to","r","convertToString","clamp","max","fromQ","toQ","product","quat","acos","theta","sqrt","w","composeMatrix","multiply","k","is2D","translate","skew","matrix","perspective","z","rotMatrix","y","temp","scale","concat","sequenceNumber","AnimationEvent","currentTime","timelineTime","bubbles","cancelable","currentTarget","defaultPrevented","eventPhase","Event","AT_TARGET","timeStamp","now","Animation","effect","_sequenceNumber","_currentTime","_startTime","_playbackRate","_inTimeline","_finishedFlag","onfinish","_finishHandlers","_effect","_inEffect","_idle","_currentTimePending","_ensureAlive","_animations","_tickCurrentTime","newTime","ignoreLimit","finished","restart","_timeline","invalidateEffects","paused","oldCurrentTime","playState","play","pause","cancel","reverse","addEventListener","handler","removeEventListener","splice","_fireEvents","baseTime","event","setTimeout","_tick","processRafCallbacks","processing","rafCallbacks","tick","entry","needsRetick","applyPendingEffects","compareAnimations","leftAnimation","rightAnimation","InternalTimeline","performance","pendingEffects","hasRestartedThisFrame","updatingAnimations","newPendingClears","newPendingEffects","webAnimationsNextTick","_discardAnimations","ticking","requestAnimationFrame","AnimationTimeline","getAnimations","getAnimationPlayers","animation","restartWebAnimationsNextTick","_animation","get","e","_isGroup","_childAnimations","_callback","_rebuildUnderlyingAnimation","newUnderlyingAnimationForKeyframeEffect","bindAnimationForKeyframeEffect","SequenceEffect","GroupEffect","newUnderlyingAnimationForGroup","bindAnimationForGroup","_updateChildren","_timing","childAnimation","_arrangeChildren","groupChildDuration","bind","_setExternalAnimation","children","_constructChildren","child","_onfinish","v","call","_register","_forEachChild","source","awaitStartTime","time","finish","_removeChildren","wrapped","_wrapper","pop","KeyframeList","_frames","updatePendingGroups","updated","pendingGroups","shift","_timingInput","_normalizedKeyframes","_keyframes","getFrames","originalElementAnimate","nullTarget","bindAnimationForCustomEffect","groupAnimation","originalGetComputedStyle","getComputedStyle","create","constructor","register","callback","_registered","callbacks","updating","sort","effectFunction","last","node","total","underlyingAnimation","ticker","tf","AnimationSequence","AnimationGroup"],"mappings":";;;;;;;;;;;;;;CAcA,SAAIA,EAAAA,GACAC,EAAAA,QACAC,CAFJ,IAAIF,MACAC,KACAC,KAGEC,EAAuB,MCL7B,SAAUC,GAKR,QAASC,GAAWC,EAAaC,GAC/B,GAAIC,IACFC,MAAO,EACPC,SAAU,EACVC,KAAMJ,EAAW,OAAS,OAC1BK,eAAgB,EAChBC,WAAY,EACZC,SAAUP,EAAW,OAAS,EAC9BQ,aAAc,EACdC,UAAW,SACXC,OAAQ,SAyBV,OAvB0B,gBAAfX,IAA4BY,MAAMZ,GAElBa,SAAhBb,GACTc,OAAOC,oBAAoBf,GAAagB,QAAQ,SAASC,GACvD,GAA6B,QAAzBjB,EAA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GAAUkC,kBAQF,GAANkC,GAAWpE,EAAUhY,aAAe,IACjCP,IACHA,EAASJ,EAAOwB,qBAAqBmX,EAAU9D,OAAOzU,SAExD2c,EAAK/c,EAAOyF,sBAAsBzF,EAAO6D,wBAAwBzD,GAAS,GAAIA,GAC1EU,MAAMic,IAAa,MAANA,IACfpE,EAAU6B,cAAc,SAASL,GAC/BA,EAAMlG,YAAc,SAEtB0E,GAAUkC,mBATd,OAfA,OA+BF,OADAgC,GAAsB7Q,EAAM+F,SAASuE,KAAK,GAAItK,GAAMiG,eAAe,KAAM6K,EAAQxQ,EAAMqN,WAIzF3N,EAAMyN,sBAAwB,SAASd,GACrCA,EAAUE,WAAWkC,SAAWpC,EAChCA,EAAUK,UAAAA,EACVhN,EAAM0O,eAAe/B,GACrBA,EAAUuB,qBACVvB,EAAUqB,sBAAsBrB,IAGlC3M,EAAM8N,mBAAqBA,EAK3BlI,OAAOoL,kBAAoB,WACzBhd,EAAO8L,WAAW,2BAA4B,aAAc,sCAC5D8F,OAAO0H,eAAetW,MAAMC,KAAMuO,YAEpCI,OAAOoL,kBAAkB1L,UAAYtQ,OAAOib,OAAOrK,OAAO0H,eAAehI,WACzEM,OAAOoL,kBAAkB1L,UAAU4K,YAActK,OAAOoL,kBAExDpL,OAAOqL,eAAiB,WACtBjd,EAAO8L,WAAW,wBAAyB,aAAc,mCACzD8F,OAAO2H,YAAYvW,MAAMC,KAAMuO,YAEjCI,OAAOqL,eAAe3L,UAAYtQ,OAAOib,OAAOrK,OAAO2H,YAAYjI,WACnEM,OAAOqL,eAAe3L,UAAU4K,YAActK,OAAOqL,gBAEpDrd,EAAqBE,EAAmBC,OjBxGrCA,WAAAA,MAAuB"}
@@ -0,0 +1,50 @@
1
+ <!--
2
+ Copyright 2014 Google Inc. All rights reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+
17
+ <!-- WARNING: This file is DEPRECATED, for development purposes use
18
+ web-animations*.dev.html instead or depend on
19
+ web-animations*.min.js in the web-animations-js
20
+ repository -->
21
+
22
+ <script src="src/dev.js"></script>
23
+ <script src="src/scope.js"></script>
24
+ <script src="src/deprecation.js"></script>
25
+ <script src="src/timing-utilities.js"></script>
26
+ <script src="src/normalize-keyframes.js"></script>
27
+ <script src="src/animation-node.js"></script>
28
+ <script src="src/effect.js"></script>
29
+ <script src="src/property-interpolation.js"></script>
30
+ <script src="src/animation.js"></script>
31
+ <script src="src/apply.js"></script>
32
+ <script src="src/element-animatable.js"></script>
33
+ <script src="src/interpolation.js"></script>
34
+ <script src="src/player.js"></script>
35
+ <script src="src/tick.js"></script>
36
+ <script src="src/handler-utils.js"></script>
37
+ <script src="src/shadow-handler.js"></script>
38
+ <script src="src/number-handler.js"></script>
39
+ <script src="src/visibility-handler.js"></script>
40
+ <script src="src/color-handler.js"></script>
41
+ <script src="src/dimension-handler.js"></script>
42
+ <script src="src/box-handler.js"></script>
43
+ <script src="src/transform-handler.js"></script>
44
+ <script src="src/property-names.js"></script>
45
+ <script src="src/timeline.js"></script>
46
+ <script src="src/maxifill-player.js"></script>
47
+ <script src="src/animation-constructor.js"></script>
48
+ <script src="src/effect-callback.js"></script>
49
+ <script src="src/group-constructors.js"></script>
50
+
@@ -0,0 +1,17 @@
1
+ // Copyright 2014 Google Inc. All rights reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ !function(a,b){b["true"]=a,function(){if(document.documentElement.animate){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(c){void 0===a[c]&&(b=!0)})),!b)return}var c={},d={},e={},f=null;!function(a){function b(b,c){var d={delay:0,endDelay:0,fill:c?"both":"none",iterationStart:0,iterations:1,duration:c?"auto":0,playbackRate:1,direction:"normal",easing:"linear"};return"number"!=typeof b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNames(b).forEach(function(c){if("auto"!=b[c]){if(("number"==typeof d[c]||"duration"==c)&&("number"!=typeof b[c]||isNaN(b[c])))return;if("fill"==c&&-1==p.indexOf(b[c]))return;if("direction"==c&&-1==q.indexOf(b[c]))return;if("playbackRate"==c&&1!==b[c]&&a.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;d[c]=b[c]}}):d.duration=b,d}function c(a,c){var d=b(a,c);return d.easing=f(d.easing),d}function d(a,b,c,d){return 0>a||a>1||0>c||c>1?y:function(e){function f(a,b,c){return 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}for(var g=0,h=1;;){var i=(g+h)/2,j=f(a,c,i);if(Math.abs(e-j)<.001)return f(b,d,i);e>j?g=i:h=i}}}function e(a,b){return function(c){if(c>=1)return 1;var d=1/a;return c+=b*d,c-c%d}}function f(a){var b=w.exec(a);if(b)return d.apply(this,b.slice(1).map(Number));var c=x.exec(a);if(c)return e(Number(c[1]),{start:r,middle:s,end:t}[c[2]]);var f=u[a];return f?f:y}function g(a){return Math.abs(h(a)/a.playbackRate)}function h(a){return a.duration*a.iterations}function i(a,b,c){return null==b?z:b<c.delay?A:b>=c.delay+a?B:C}function j(a,b,c,d,e){switch(d){case A:return"backwards"==b||"both"==b?0:null;case C:return c-e;case B:return"forwards"==b||"both"==b?a:null;case z:return null}}function k(a,b,c,d){return(d.playbackRate<0?b-a:b)*d.playbackRate+c}function l(a,b,c,d,e){return 1/0===c||c===-1/0||c-d==b&&e.iterations&&(e.iterations+e.iterationStart)%1==0?a:c%a}function m(a,b,c,d){return 0===c?0:b==a?d.iterationStart+d.iterations-1:Math.floor(c/a)}function n(a,b,c,d){var e=a%2>=1,f="normal"==d.direction||d.direction==(e?"alternate-reverse":"alternate"),g=f?c:b-c,h=g/b;return b*d.easing(h)}function o(a,b,c){var d=i(a,b,c),e=j(a,c.fill,b,d,c.delay);if(null===e)return null;if(0===a)return d===A?0:1;var f=c.iterationStart*c.duration,g=k(a,e,f,c),o=l(c.duration,h(c),g,f,c),p=m(c.duration,o,g,c);return n(p,c.duration,o,c)/c.duration}var p="backwards|forwards|both|none".split("|"),q="reverse|alternate|alternate-reverse".split("|"),r=1,s=.5,t=0,u={ease:d(.25,.1,.25,1),"ease-in":d(.42,0,1,1),"ease-out":d(0,0,.58,1),"ease-in-out":d(.42,0,.58,1),"step-start":e(1,r),"step-middle":e(1,s),"step-end":e(1,t)},v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",w=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),x=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,y=function(a){return a},z=0,A=1,B=2,C=3;a.makeTiming=b,a.normalizeTimingInput=c,a.calculateActiveDuration=g,a.calculateTimeFraction=o,a.calculatePhase=i,a.toTimingFunction=f}(c,f),function(a){function b(a,b){return a in h?h[a][b]||b:b}function c(a,c,d){var g=e[a];if(g){f.style[a]=c;for(var h in g){var i=g[h],j=f.style[i];d[i]=b(i,j)}}else d[a]=b(a,c)}function d(b){function d(){var a=e.length;null==e[a-1].offset&&(e[a-1].offset=1),a>1&&null==e[0].offset&&(e[0].offset=0);for(var b=0,c=e[0].offset,d=1;a>d;d++){var f=e[d].offset;if(null!=f){for(var g=1;d-b>g;g++)e[b+g].offset=c+(f-c)*g/(d-b);b=d,c=f}}}if(!Array.isArray(b)&&null!==b)throw new TypeError("Keyframes must be null or an array of keyframes");if(null==b)return[];for(var e=b.map(function(b){var d={};for(var e in b){var f=b[e];if("offset"==e){if(null!=f&&(f=Number(f),!isFinite(f)))throw new TypeError("keyframe offsets must be numbers.")}else{if("composite"==e)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};f="easing"==e?a.toTimingFunction(f):""+f}c(e,f,d)}return void 0==d.offset&&(d.offset=null),void 0==d.easing&&(d.easing=a.toTimingFunction("linear")),d}),f=!0,g=-1/0,h=0;h<e.length;h++){var i=e[h].offset;if(null!=i){if(g>i)throw{code:DOMException.INVALID_MODIFICATION_ERR,name:"InvalidModificationError",message:"Keyframes are not loosely sorted by offset. Sort or specify offsets."};g=i}else f=!1}return e=e.filter(function(a){return a.offset>=0&&a.offset<=1}),f||d(),e}var e={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},f=document.createElementNS("http://www.w3.org/1999/xhtml","div"),g={thin:"1px",medium:"3px",thick:"5px"},h={borderBottomWidth:g,borderLeftWidth:g,borderRightWidth:g,borderTopWidth:g,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:g,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.normalizeKeyframes=d}(c,f),function(a){var b={};a.isDeprecated=function(a,c,d,e){var f=e?"are":"is",g=new Date,h=new Date(c);return h.setMonth(h.getMonth()+3),h>g?(a in b||console.warn("Web Animations: "+a+" "+f+" deprecated and will stop working on "+h.toDateString()+". "+d),b[a]=!0,!1):!0},a.deprecated=function(b,c,d,e){var f=e?"are":"is";if(a.isDeprecated(b,c,d,e))throw new Error(b+" "+f+" no longer supported. "+d)}}(c),function(a,b){function c(a){for(var b={},c=0;c<a.length;c++)for(var d in a[c])if("offset"!=d&&"easing"!=d&&"composite"!=d){var e={offset:a[c].offset,easing:a[c].easing,value:a[c][d]};b[d]=b[d]||[],b[d].push(e)}for(var f in b){var g=b[f];if(0!=g[0].offset||1!=g[g.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return b}function d(a){var c=[];for(var d in a)for(var e=a[d],f=0;f<e.length-1;f++){var g=e[f].offset,h=e[f+1].offset,i=e[f].value,j=e[f+1].value;g==h&&(1==h?i=j:j=i),c.push({startTime:g,endTime:h,easing:e[f].easing,property:d,interpolation:b.propertyInterpolation(d,i,j)})}return c.sort(function(a,b){return a.startTime-b.startTime}),c}b.convertEffectInput=function(e){var f=a.normalizeKeyframes(e),g=c(f),h=d(g);return function(a,c){if(null!=c)h.filter(function(a){return 0>=c&&0==a.startTime||c>=1&&1==a.endTime||c>=a.startTime&&c<=a.endTime}).forEach(function(d){var e=c-d.startTime,f=d.endTime-d.startTime,g=0==f?0:d.easing(e/f);b.apply(a,d.property,d.interpolation(g))});else for(var d in g)"offset"!=d&&"easing"!=d&&"composite"!=d&&b.clear(a,d)}}}(c,d,f),function(a){function b(a,b,c){e[c]=e[c]||[],e[c].push([a,b])}function c(a,c,d){for(var e=0;e<d.length;e++){var f=d[e];b(a,c,f),/-/.test(f)&&b(a,c,f.replace(/-(.)/g,function(a,b){return b.toUpperCase()}))}}function d(b,c,d){for(var f=c==d?[]:e[b],g=0;f&&g<f.length;g++){var h=f[g][0](c),i=f[g][0](d);if(void 0!==h&&void 0!==i){var j=f[g][1](h,i);if(j){var k=a.Interpolation.apply(null,j);return function(a){return 0==a?c:1==a?d:k(a)}}}}return a.Interpolation(!1,!0,function(a){return a?d:c})}var e={};a.addPropertiesHandler=c,a.propertyInterpolation=d}(d,f),function(a,b){function c(b){var c=a.calculateActiveDuration(b),d=function(d){return a.calculateTimeFraction(c,d,b)};return d._totalDuration=b.delay+c+b.endDelay,d._isCurrent=function(d){var e=a.calculatePhase(c,d,b);return e===PhaseActive||e===PhaseBefore},d}b.KeyframeEffect=function(d,e,f){var g,h=c(a.normalizeTimingInput(f)),i=b.convertEffectInput(e),j=function(){i(d,g)};return j._update=function(a){return g=h(a),null!==g},j._clear=function(){i(d,null)},j._hasSameTarget=function(a){return d===a},j._isCurrent=h._isCurrent,j._totalDuration=h._totalDuration,j},b.NullEffect=function(a){var b=function(){a&&(a(),a=null)};return b._update=function(){return null},b._totalDuration=0,b._isCurrent=function(){return!1},b._hasSameTarget=function(){return!1},b}}(c,d,f),function(a){function b(a,b,c){c.enumerable=!0,c.configurable=!0,Object.defineProperty(a,b,c)}function c(a){this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=a.style,this._length=0,this._isAnimatedProperty={};for(var b=0;b<this._style.length;b++){var c=this._style[b];this._surrogateStyle[c]=this._style[c]}this._updateIndices()}function d(a){if(!a._webAnimationsPatchedStyle){var d=new c(a);try{b(a,"style",{get:function(){return d}})}catch(e){a.style._set=function(b,c){a.style[b]=c},a.style._clear=function(b){a.style[b]=""}}a._webAnimationsPatchedStyle=a.style}}var e={cssText:1,length:1,parentRule:1},f={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},g={removeProperty:1,setProperty:1};c.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(a){for(var b={},c=0;c<this._surrogateStyle.length;c++)b[this._surrogateStyle[c]]=!0;this._surrogateStyle.cssText=a,this._updateIndices();for(var c=0;c<this._surrogateStyle.length;c++)b[this._surrogateStyle[c]]=!0;for(var d in b)this._isAnimatedProperty[d]||this._style.setProperty(d,this._surrogateStyle.getPropertyValue(d))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(a){return function(){return this._surrogateStyle[a]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(a,b){this._style[a]=b,this._isAnimatedProperty[a]=!0},_clear:function(a){this._style[a]=this._surrogateStyle[a],delete this._isAnimatedProperty[a]}};for(var h in f)c.prototype[h]=function(a,b){return function(){var c=this._surrogateStyle[a].apply(this._surrogateStyle,arguments);return b&&(this._isAnimatedProperty[arguments[0]]||this._style[a].apply(this._style,arguments),this._updateIndices()),c}}(h,h in g);for(var i in document.documentElement.style)i in e||i in f||!function(a){b(c.prototype,a,{get:function(){return this._surrogateStyle[a]},set:function(b){this._surrogateStyle[a]=b,this._updateIndices(),this._isAnimatedProperty[a]||(this._style[a]=b)}})}(i);a.apply=function(b,c,e){d(b),b.style._set(a.propertyName(c),e)},a.clear=function(b,c){b._webAnimationsPatchedStyle&&b.style._clear(a.propertyName(c))}}(d,f),function(a){window.Element.prototype.animate=function(b,c){return a.timeline._play(a.KeyframeEffect(this,b,c))}}(d),function(a){function b(a,c,d){if("number"==typeof a&&"number"==typeof c)return a*(1-d)+c*d;if("boolean"==typeof a&&"boolean"==typeof c)return.5>d?a:c;if(a.length==c.length){for(var e=[],f=0;f<a.length;f++)e.push(b(a[f],c[f],d));return e}throw"Mismatched interpolation arguments "+a+":"+c}a.Interpolation=function(a,c,d){return function(e){return d(b(a,c,e))}}}(d,f),function(a){function b(a,b,c){return Math.max(Math.min(a,c),b)}function c(c,d,e){var f=a.dot(c,d);f=b(f,-1,1);var g=[];if(1===f)g=c;else for(var h=Math.acos(f),i=1*Math.sin(e*h)/Math.sqrt(1-f*f),j=0;4>j;j++)g.push(c[j]*(Math.cos(e*h)-f*i)+d[j]*i);return g}var d=function(){function a(a,b){for(var c=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],d=0;4>d;d++)for(var e=0;4>e;e++)for(var f=0;4>f;f++)c[d][e]+=b[d][f]*a[f][e];return c}function b(a){return 0==a[0][2]&&0==a[0][3]&&0==a[1][2]&&0==a[1][3]&&0==a[2][0]&&0==a[2][1]&&1==a[2][2]&&0==a[2][3]&&0==a[3][2]&&1==a[3][3]}function c(c,d,e,f,g){for(var h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],i=0;4>i;i++)h[i][3]=g[i];for(var i=0;3>i;i++)for(var j=0;3>j;j++)h[3][i]+=c[j]*h[j][i];var k=f[0],l=f[1],m=f[2],n=f[3],o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];o[0][0]=1-2*(l*l+m*m),o[0][1]=2*(k*l-m*n),o[0][2]=2*(k*m+l*n),o[1][0]=2*(k*l+m*n),o[1][1]=1-2*(k*k+m*m),o[1][2]=2*(l*m-k*n),o[2][0]=2*(k*m-l*n),o[2][1]=2*(l*m+k*n),o[2][2]=1-2*(k*k+l*l),h=a(h,o);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];e[2]&&(p[2][1]=e[2],h=a(h,p)),e[1]&&(p[2][1]=0,p[2][0]=e[0],h=a(h,p)),e[0]&&(p[2][0]=0,p[1][0]=e[0],h=a(h,p));for(var i=0;3>i;i++)for(var j=0;3>j;j++)h[i][j]*=d[i];return b(h)?[h[0][0],h[0][1],h[1][0],h[1][1],h[3][0],h[3][1]]:h[0].concat(h[1],h[2],h[3])}return c}();a.composeMatrix=d,a.quat=c}(d,f),function(a){var b=0,c=function(a,b,c){this.target=a,this.currentTime=b,this.timelineTime=c,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};a.Animation=function(a){this._sequenceNumber=b++,this._currentTime=0,this._startTime=null,this.paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!1,this.onfinish=null,this._finishHandlers=[],this._effect=a,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},a.Animation.prototype={_ensureAlive:function(){this._inEffect=this._effect._update(this.playbackRate<0&&0===this.currentTime?-1:this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,a.timeline._animations.push(this))},_tickCurrentTime:function(a,b){a!=this._currentTime&&(this._currentTime=a,this.finished&&!b&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(b){b=+b,isNaN(b)||(a.restart(),this.paused||null==this._startTime||(this._startTime=this._timeline.currentTime-b/this._playbackRate),this._currentTimePending=!1,this._currentTime!=b&&(this._tickCurrentTime(b,!0),a.invalidateEffects()))},get startTime(){return this._startTime},set startTime(b){b=+b,isNaN(b)||this.paused||this._idle||(this._startTime=b,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),a.invalidateEffects())},get playbackRate(){return this._playbackRate},set playbackRate(a){if(a!=this._playbackRate){var b=this.currentTime;this._playbackRate=a,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&this.play(),null!=b&&(this.currentTime=b)}},get finished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this.paused&&0!=this.playbackRate||this._currentTimePending?"pending":this.paused?"paused":this.finished?"finished":"running"},play:function(){this.paused=!1,(this.finished||this._idle)&&(this._currentTime=this._playbackRate>0?0:this._totalDuration,this._startTime=null,a.invalidateEffects()),this._finishedFlag=!1,a.restart(),this._idle=!1,this._ensureAlive()},pause:function(){this.finished||this.paused||this._idle||(this._currentTimePending=!0),this._startTime=null,this.paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1)},cancel:function(){this._inEffect=!1,this._idle=!0,this.currentTime=0,this._startTime=null},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(a,b){"function"==typeof b&&"finish"==a&&this._finishHandlers.push(b)},removeEventListener:function(a,b){if("finish"==a){var c=this._finishHandlers.indexOf(b);c>=0&&this._finishHandlers.splice(c,1)}},_fireEvents:function(a){var b=this.finished;if((b||this._idle)&&!this._finishedFlag){var d=new c(this,this._currentTime,a),e=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){e.forEach(function(a){a.call(d.target,d)})},0)}this._finishedFlag=b},_tick:function(a){return this._idle||this.paused||(null==this._startTime?this.startTime=a-this._currentTime/this.playbackRate:this.finished||this._tickCurrentTime((a-this._startTime)*this.playbackRate)),this._currentTimePending=!1,this._fireEvents(a),!this._idle&&(this._inEffect||!this._finishedFlag)}}}(d,f),function(a,b){function c(a){var b=i;i=[],g(a),b.forEach(function(b){b[1](a)}),m&&g(a),f()}function d(a,b){return a._sequenceNumber-b._sequenceNumber}function e(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function f(){n.forEach(function(a){a()}),n.length=0}function g(a){l=!1;var c=b.timeline;c.currentTime=a,c._animations.sort(d),k=!1;var e=c._animations;c._animations=[];var f=[],g=[];e=e.filter(function(b){return b._inTimeline=b._tick(a),b._inEffect?g.push(b._effect):f.push(b._effect),b.finished||b.paused||b._idle||(k=!0),b._inTimeline}),n.push.apply(n,f),n.push.apply(n,g),c._animations.push.apply(c._animations,e),m=!1,k&&requestAnimationFrame(function(){})}var h=window.requestAnimationFrame,i=[],j=0;window.requestAnimationFrame=function(a){var b=j++;return 0==i.length&&h(c),i.push([b,a]),b},window.cancelAnimationFrame=function(a){i.forEach(function(b){b[0]==a&&(b[1]=function(){})})},e.prototype={_play:function(c){c._timing=a.normalizeTimingInput(c.timing);var d=new b.Animation(c);return d._idle=!1,d._timeline=this,this._animations.push(d),b.restart(),b.invalidateEffects(),d}};var k=!1,l=!1;b.restart=function(){return k||(k=!0,requestAnimationFrame(function(){}),l=!0),l};var m=!1;b.invalidateEffects=function(){m=!0};var n=[],o=window.getComputedStyle;Object.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value:function(){return m&&g(p.currentTime),f(),o.apply(this,arguments)}});var p=new e;b.timeline=p}(c,d,f),function(a){function b(a,b){for(var c=0,d=0;d<a.length;d++)c+=a[d]*b[d];return c}function c(a,b){return[a[0]*b[0]+a[4]*b[1]+a[8]*b[2]+a[12]*b[3],a[1]*b[0]+a[5]*b[1]+a[9]*b[2]+a[13]*b[3],a[2]*b[0]+a[6]*b[1]+a[10]*b[2]+a[14]*b[3],a[3]*b[0]+a[7]*b[1]+a[11]*b[2]+a[15]*b[3],a[0]*b[4]+a[4]*b[5]+a[8]*b[6]+a[12]*b[7],a[1]*b[4]+a[5]*b[5]+a[9]*b[6]+a[13]*b[7],a[2]*b[4]+a[6]*b[5]+a[10]*b[6]+a[14]*b[7],a[3]*b[4]+a[7]*b[5]+a[11]*b[6]+a[15]*b[7],a[0]*b[8]+a[4]*b[9]+a[8]*b[10]+a[12]*b[11],a[1]*b[8]+a[5]*b[9]+a[9]*b[10]+a[13]*b[11],a[2]*b[8]+a[6]*b[9]+a[10]*b[10]+a[14]*b[11],a[3]*b[8]+a[7]*b[9]+a[11]*b[10]+a[15]*b[11],a[0]*b[12]+a[4]*b[13]+a[8]*b[14]+a[12]*b[15],a[1]*b[12]+a[5]*b[13]+a[9]*b[14]+a[13]*b[15],a[2]*b[12]+a[6]*b[13]+a[10]*b[14]+a[14]*b[15],a[3]*b[12]+a[7]*b[13]+a[11]*b[14]+a[15]*b[15]]}function d(a){switch(a.t){case"rotatex":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[1,0,0,0,0,Math.cos(d),Math.sin(d),0,0,-Math.sin(d),Math.cos(d),0,0,0,0,1];case"rotatey":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[Math.cos(d),0,-Math.sin(d),0,0,1,0,0,Math.sin(d),0,Math.cos(d),0,0,0,0,1];case"rotate":case"rotatez":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[Math.cos(d),Math.sin(d),0,0,-Math.sin(d),Math.cos(d),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var e=a.d[0],f=a.d[1],g=a.d[2],b=a.d[3].rad||0,c=a.d[3].deg||0,d=c*Math.PI/180+b,h=e*e+f*f+g*g;if(0===h)e=1,f=0,g=0;else if(1!==h){var i=Math.sqrt(h);e/=i,f/=i,g/=i}var j=Math.sin(d/2),k=j*Math.cos(d/2),l=j*j;return[1-2*(f*f+g*g)*l,2*(e*f*l+g*k),2*(e*g*l-f*k),0,2*(e*f*l-g*k),1-2*(e*e+g*g)*l,2*(f*g*l+e*k),0,2*(e*g*l+f*k),2*(f*g*l-e*k),1-2*(e*e+f*f)*l,0,0,0,0,1];case"scale":return[a.d[0],0,0,0,0,a.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[a.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,a.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,a.d[0],0,0,0,0,1];case"scale3d":return[a.d[0],0,0,0,0,a.d[1],0,0,0,0,a.d[2],0,0,0,0,1];case"skew":var m=a.d[0].deg||0,n=a.d[0].rad||0,o=a.d[1].deg||0,p=a.d[1].rad||0,q=m*Math.PI/180+n,r=o*Math.PI/180+p;return[1,Math.tan(r),0,0,Math.tan(q),1,0,0,0,0,1,0,0,0,0,1];case"skewx":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[1,0,0,0,Math.tan(d),1,0,0,0,0,1,0,0,0,0,1];case"skewy":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[1,Math.tan(d),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":var e=a.d[0].px||0,f=a.d[1].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,f,0,1];case"translatex":var e=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,0,0,1];case"translatey":var f=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,f,0,1];case"translatez":var g=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,g,1];case"translate3d":var e=a.d[0].px||0,f=a.d[1].px||0,g=a.d[2].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,f,g,1];case"perspective":var s=a.d[0].px?-1/a.d[0].px:0;return[1,0,0,0,0,1,0,0,0,0,1,s,0,0,0,1];case"matrix":return[a.d[0],a.d[1],0,0,a.d[2],a.d[3],0,0,0,0,1,0,a.d[4],a.d[5],0,1];case"matrix3d":return a.d}}function e(a){return 0===a.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:a.map(d).reduce(c)}function f(a){return[g(e(a))]}var g=function(){function a(a){return a[0][0]*a[1][1]*a[2][2]+a[1][0]*a[2][1]*a[0][2]+a[2][0]*a[0][1]*a[1][2]-a[0][2]*a[1][1]*a[2][0]-a[1][2]*a[2][1]*a[0][0]-a[2][2]*a[0][1]*a[1][0]}function c(b){for(var c=1/a(b),d=b[0][0],e=b[0][1],f=b[0][2],g=b[1][0],h=b[1][1],i=b[1][2],j=b[2][0],k=b[2][1],l=b[2][2],m=[[(h*l-i*k)*c,(f*k-e*l)*c,(e*i-f*h)*c,0],[(i*j-g*l)*c,(d*l-f*j)*c,(f*g-d*i)*c,0],[(g*k-h*j)*c,(j*e-d*k)*c,(d*h-e*g)*c,0]],n=[],o=0;3>o;o++){for(var p=0,q=0;3>q;q++)p+=b[3][q]*m[q][o];n.push(p)}return n.push(1),m.push(n),m}function d(a){return[[a[0][0],a[1][0],a[2][0],a[3][0]],[a[0][1],a[1][1],a[2][1],a[3][1]],[a[0][2],a[1][2],a[2][2],a[3][2]],[a[0][3],a[1][3],a[2][3],a[3][3]]]}function e(a,b){for(var c=[],d=0;4>d;d++){for(var e=0,f=0;4>f;f++)e+=a[f]*b[f][d];c.push(e)}return c}function f(a){var b=g(a);return[a[0]/b,a[1]/b,a[2]/b]}function g(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2])}function h(a,b,c,d){return[c*a[0]+d*b[0],c*a[1]+d*b[1],c*a[2]+d*b[2]]}function i(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function j(j){var k=[j.slice(0,4),j.slice(4,8),j.slice(8,12),j.slice(12,16)];if(1!==k[3][3])return null;for(var l=[],m=0;4>m;m++)l.push(k[m].slice());for(var m=0;3>m;m++)l[m][3]=0;if(0===a(l))return!1;var n,o=[];if(k[0][3]||k[1][3]||k[2][3]){o.push(k[0][3]),o.push(k[1][3]),o.push(k[2][3]),o.push(k[3][3]);var p=c(l),q=d(p);n=e(o,q)}else n=[0,0,0,1];var r=k[3].slice(0,3),s=[];s.push(k[0].slice(0,3));var t=[];t.push(g(s[0])),s[0]=f(s[0]);var u=[];s.push(k[1].slice(0,3)),u.push(b(s[0],s[1])),s[1]=h(s[1],s[0],1,-u[0]),t.push(g(s[1])),s[1]=f(s[1]),u[0]/=t[1],s.push(k[2].slice(0,3)),u.push(b(s[0],s[2])),s[2]=h(s[2],s[0],1,-u[1]),u.push(b(s[1],s[2])),s[2]=h(s[2],s[1],1,-u[2]),t.push(g(s[2])),s[2]=f(s[2]),u[1]/=t[2],u[2]/=t[2];var v=i(s[1],s[2]);if(b(s[0],v)<0)for(var m=0;3>m;m++)t[m]*=-1,s[m][0]*=-1,s[m][1]*=-1,s[m][2]*=-1;var w,x,y=s[0][0]+s[1][1]+s[2][2]+1;return y>1e-4?(w=.5/Math.sqrt(y),x=[(s[2][1]-s[1][2])*w,(s[0][2]-s[2][0])*w,(s[1][0]-s[0][1])*w,.25/w]):s[0][0]>s[1][1]&&s[0][0]>s[2][2]?(w=2*Math.sqrt(1+s[0][0]-s[1][1]-s[2][2]),x=[.25*w,(s[0][1]+s[1][0])/w,(s[0][2]+s[2][0])/w,(s[2][1]-s[1][2])/w]):s[1][1]>s[2][2]?(w=2*Math.sqrt(1+s[1][1]-s[0][0]-s[2][2]),x=[(s[0][1]+s[1][0])/w,.25*w,(s[1][2]+s[2][1])/w,(s[0][2]-s[2][0])/w]):(w=2*Math.sqrt(1+s[2][2]-s[0][0]-s[1][1]),x=[(s[0][2]+s[2][0])/w,(s[1][2]+s[2][1])/w,.25*w,(s[1][0]-s[0][1])/w]),[r,t,u,x,n]}return j}();a.dot=b,a.makeMatrixDecomposition=f}(d,f),function(a){function b(a,b){var c=a.exec(b);return c?(c=a.ignoreCase?c[0].toLowerCase():c[0],[c,b.substr(c.length)]):void 0}function c(a,b){b=b.replace(/^\s*/,"");var c=a(b);return c?[c[0],c[1].replace(/^\s*/,"")]:void 0}function d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e);if(!g)return[f,e];if(f.push(g[0]),e=g[1],g=b(d,e),!g||""==g[1])return[f,e];e=g[1]}}function e(a,b){for(var c=0,d=0;d<b.length&&(!/\s|,/.test(b[d])||0!=c);d++)if("("==b[d])c++;else if(")"==b[d]&&(c--,0==c&&d++,0>=c))break;var e=a(b.substr(0,d));return void 0==e?void 0:[e,b.substr(d)]}function f(a,b){for(var c=a,d=b;c&&d;)c>d?c%=d:d%=c;return c=a*b/(c+d)}function g(a){return function(b){var c=a(b);return c&&(c[0]=void 0),c}}function h(a,b){return function(c){var d=a(c);return d?d:[b,c]}}function i(b,c){for(var d=[],e=0;e<b.length;e++){var f=a.consumeTrimmed(b[e],c);if(!f||""==f[0])return;void 0!==f[0]&&d.push(f[0]),c=f[1]}return""==c?d:void 0}function j(a,b,c,d,e){for(var g=[],h=[],i=[],j=f(d.length,e.length),k=0;j>k;k++){var l=b(d[k%d.length],e[k%e.length]);if(!l)return;g.push(l[0]),h.push(l[1]),i.push(l[2])}return[g,h,function(b){var d=b.map(function(a,b){return i[b](a)}).join(c);return a?a(d):d}]}function k(a,b,c){for(var d=[],e=[],f=[],g=0,h=0;h<c.length;h++)if("function"==typeof c[h]){var i=c[h](a[g],b[g++]);d.push(i[0]),e.push(i[1]),f.push(i[2])}else!function(a){d.push(!1),e.push(!1),f.push(function(){return c[a]})}(h);return[d,e,function(a){for(var b="",c=0;c<a.length;c++)b+=f[c](a[c]);return b}]}a.consumeToken=b,a.consumeTrimmed=c,a.consumeRepeated=d,a.consumeParenthesised=e,a.ignore=g,a.optional=h,a.consumeList=i,a.mergeNestedRepeated=j.bind(null,null),a.mergeWrappedNestedRepeated=j,a.mergeList=k}(d),function(a){function b(b){function c(b){var c=a.consumeToken(/^inset/i,b);if(c)return d.inset=!0,c;var c=a.consumeLengthOrPercent(b);if(c)return d.lengths.push(c[0]),c;var c=a.consumeColor(b);return c?(d.color=c[0],c):void 0}var d={inset:!1,lengths:[],color:null},e=a.consumeRepeated(c,/^/,b);return e&&e[0].length?[d,e[1]]:void 0}function c(c){var d=a.consumeRepeated(b,/^,/,c);return d&&""==d[1]?d[0]:void 0}function d(b,c){for(;b.lengths.length<Math.max(b.lengths.length,c.lengths.length);)b.lengths.push({px:0});for(;c.lengths.length<Math.max(b.lengths.length,c.lengths.length);)c.lengths.push({px:0});if(b.inset==c.inset&&!!b.color==!!c.color){for(var d,e=[],f=[[],0],g=[[],0],h=0;h<b.lengths.length;h++){var i=a.mergeDimensions(b.lengths[h],c.lengths[h],2==h);f[0].push(i[0]),g[0].push(i[1]),e.push(i[2])}if(b.color&&c.color){var j=a.mergeColors(b.color,c.color);f[1]=j[0],g[1]=j[1],d=j[2]}return[f,g,function(a){for(var c=b.inset?"inset ":" ",f=0;f<e.length;f++)c+=e[f](a[0][f])+" ";return d&&(c+=d(a[1])),c}]}}function e(b,c,d,e){function f(a){return{inset:a,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var g=[],h=[],i=0;i<d.length||i<e.length;i++){var j=d[i]||f(e[i].inset),k=e[i]||f(d[i].inset);g.push(j),h.push(k)}return a.mergeNestedRepeated(b,c,g,h)}var f=e.bind(null,d,", ");a.addPropertiesHandler(c,f,["box-shadow","text-shadow"])}(d),function(a){function b(a){return a.toFixed(3).replace(".000","")}function c(a,b,c){return Math.min(b,Math.max(a,c))}function d(a){return/^\s*[-+]?(\d*\.)?\d+\s*$/.test(a)?Number(a):void 0}function e(a,c){return[a,c,b]}function f(a,b){return 0!=a?h(0,1/0)(a,b):void 0}function g(a,b){return[a,b,function(a){return Math.round(c(1,1/0,a))}]}function h(a,d){return function(e,f){return[e,f,function(e){return b(c(a,d,e))}]}}function i(a,b){return[a,b,Math.round]}a.clamp=c,a.addPropertiesHandler(d,h(0,1/0),["border-image-width","line-height"]),a.addPropertiesHandler(d,h(0,1),["opacity","shape-image-threshold"]),a.addPropertiesHandler(d,f,["flex-grow","flex-shrink"]),a.addPropertiesHandler(d,g,["orphans","widows"]),a.addPropertiesHandler(d,i,["z-index"]),a.parseNumber=d,a.mergeNumbers=e,a.numberToString=b}(d,f),function(a){function b(a,b){return"visible"==a||"visible"==b?[0,1,function(c){return 0>=c?a:c>=1?b:"visible"}]:void 0}a.addPropertiesHandler(String,b,["visibility"])}(d),function(a){function b(a){a=a.trim(),e.fillStyle="#000",e.fillStyle=a;var b=e.fillStyle;if(e.fillStyle="#fff",e.fillStyle=a,b==e.fillStyle){e.fillRect(0,0,1,1);var c=e.getImageData(0,0,1,1).data;e.clearRect(0,0,1,1);var d=c[3]/255;return[c[0]*d,c[1]*d,c[2]*d,d]}}function c(b,c){return[b,c,function(b){function c(a){return Math.max(0,Math.min(255,a))}if(b[3])for(var d=0;3>d;d++)b[d]=Math.round(c(b[d]/b[3]));return b[3]=a.numberToString(a.clamp(0,1,b[3])),"rgba("+b.join(",")+")"}]}var d=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");d.width=d.height=1;var e=d.getContext("2d");a.addPropertiesHandler(b,c,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","outline-color","text-decoration-color"]),a.consumeColor=a.consumeParenthesised.bind(null,b),a.mergeColors=c}(d,f),function(a,b){function c(a,b){if(b=b.trim().toLowerCase(),"0"==b&&"px".search(a)>=0)return{px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\(/g,"(");var c={};b=b.replace(a,function(a){return c[a]=null,"U"+a});for(var d="U("+a.source+")",e=b.replace(/[-+]?(\d*\.)?\d+/g,"N").replace(new RegExp("N"+d,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),f=[/N\*(D)/g,/(N|D)[*/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],g=0;g<f.length;)f[g].test(e)?(e=e.replace(f[g],"$1"),g=0):g++;if("D"==e){for(var h in c){var i=eval(b.replace(new RegExp("U"+h,"g"),"").replace(new RegExp(d,"g"),"*0"));if(!isFinite(i))return;c[h]=i}return c}}}function d(a,b){return e(a,b,!0)}function e(b,c,d){var e,f=[];for(e in b)f.push(e);for(e in c)f.indexOf(e)<0&&f.push(e);return b=f.map(function(a){return b[a]||0}),c=f.map(function(a){return c[a]||0}),[b,c,function(b){var c=b.map(function(c,e){return 1==b.length&&d&&(c=Math.max(c,0)),a.numberToString(c)+f[e]}).join(" + ");return b.length>1?"calc("+c+")":c}]}var f="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",g=c.bind(null,new RegExp(f,"g")),h=c.bind(null,new RegExp(f+"|%","g")),i=c.bind(null,/deg|rad|grad|turn/g);a.parseLength=g,a.parseLengthOrPercent=h,a.consumeLengthOrPercent=a.consumeParenthesised.bind(null,h),a.parseAngle=i,a.mergeDimensions=e;var j=a.consumeParenthesised.bind(null,g),k=a.consumeRepeated.bind(void 0,j,/^/),l=a.consumeRepeated.bind(void 0,k,/^,/);a.consumeSizePairList=l;var m=function(a){var b=l(a);return b&&""==b[1]?b[0]:void 0},n=a.mergeNestedRepeated.bind(void 0,d," "),o=a.mergeNestedRepeated.bind(void 0,n,",");a.mergeNonNegativeSizePair=n,a.addPropertiesHandler(m,o,["background-size"]),a.addPropertiesHandler(h,d,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),a.addPropertiesHandler(h,e,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","text-indent","top","vertical-align","word-spacing"])}(d,f),function(a){function b(b){return a.consumeLengthOrPercent(b)||a.consumeToken(/^auto/,b)}function c(c){var d=a.consumeList([a.ignore(a.consumeToken.bind(null,/^rect/)),a.ignore(a.consumeToken.bind(null,/^\(/)),a.consumeRepeated.bind(null,b,/^,/),a.ignore(a.consumeToken.bind(null,/^\)/))],c);return d&&4==d[0].length?d[0]:void 0}function d(b,c){return"auto"==b||"auto"==c?[!0,!1,function(d){var e=d?b:c;if("auto"==e)return"auto";var f=a.mergeDimensions(e,e);return f[2](f[0])}]:a.mergeDimensions(b,c)}function e(a){return"rect("+a+")"}var f=a.mergeWrappedNestedRepeated.bind(null,e,d,", ");a.parseBox=c,a.mergeBoxes=f,a.addPropertiesHandler(c,f,["clip"])
16
+ }(d,f),function(a){function b(a){return function(b){var c=0;return a.map(function(a){return a===j?b[c++]:a})}}function c(a){return a}function d(b){if(b=b.toLowerCase().trim(),"none"==b)return[];for(var c,d=/\s*(\w+)\(([^)]*)\)/g,e=[],f=0;c=d.exec(b);){if(c.index!=f)return;f=c.index+c[0].length;var g=c[1],h=m[g];if(!h)return;var i=c[2].split(","),j=h[0];if(j.length<i.length)return;for(var n=[],o=0;o<j.length;o++){var p,q=i[o],r=j[o];if(p=q?{A:function(b){return"0"==b.trim()?l:a.parseAngle(b)},N:a.parseNumber,T:a.parseLengthOrPercent,L:a.parseLength}[r.toUpperCase()](q):{a:l,n:n[0],t:k}[r],void 0===p)return;n.push(p)}if(e.push({t:g,d:n}),d.lastIndex==b.length)return e}}function e(a){return a.toFixed(6).replace(".000000","")}function f(b,c){if(b.decompositionPair!==c){b.decompositionPair=c;var d=a.makeMatrixDecomposition(b)}if(c.decompositionPair!==b){c.decompositionPair=b;var f=a.makeMatrixDecomposition(c)}return null==d[0]||null==f[0]?[[!1],[!0],function(a){return a?c[0].d:b[0].d}]:(d[0].push(0),f[0].push(1),[d,f,function(b){var c=a.quat(d[0][3],f[0][3],b[5]),g=a.composeMatrix(b[0],b[1],b[2],c,b[4]),h=g.map(e).join(",");return h}])}function g(a){return a.replace(/[xy]/,"")}function h(a){return a.replace(/(x|y|z|3d)?$/,"3d")}function i(b,c){var d=a.makeMatrixDecomposition&&!0,e=!1;if(!b.length||!c.length){b.length||(e=!0,b=c,c=[]);for(var i=0;i<b.length;i++){var j=b[i].t,k=b[i].d,l="scale"==j.substr(0,5)?1:0;c.push({t:j,d:k.map(function(a){if("number"==typeof a)return l;var b={};for(var c in a)b[c]=l;return b})})}}var n=function(a,b){return"perspective"==a&&"perspective"==b||("matrix"==a||"matrix3d"==a)&&("matrix"==b||"matrix3d"==b)},o=[],p=[],q=[];if(b.length!=c.length){if(!d)return;var r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]]}else for(var i=0;i<b.length;i++){var j,s=b[i].t,t=c[i].t,u=b[i].d,v=c[i].d,w=m[s],x=m[t];if(n(s,t)){if(!d)return;var r=f([b[i]],[c[i]]);o.push(r[0]),p.push(r[1]),q.push(["matrix",[r[2]]])}else{if(s==t)j=s;else if(w[2]&&x[2]&&g(s)==g(t))j=g(s),u=w[2](u),v=x[2](v);else{if(!w[1]||!x[1]||h(s)!=h(t)){if(!d)return;var r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]];break}j=h(s),u=w[1](u),v=x[1](v)}for(var y=[],z=[],A=[],B=0;B<u.length;B++){var C="number"==typeof u[B]?a.mergeNumbers:a.mergeDimensions,r=C(u[B],v[B]);y[B]=r[0],z[B]=r[1],A.push(r[2])}o.push(y),p.push(z),q.push([j,A])}}if(e){var D=o;o=p,p=D}return[o,p,function(a){return a.map(function(a,b){var c=a.map(function(a,c){return q[b][1][c](a)}).join(",");return"matrix"==q[b][0]&&16==c.split(",").length&&(q[b][0]="matrix3d"),q[b][0]+"("+c+")"}).join(" ")}]}var j=null,k={px:0},l={deg:0},m={matrix:["NNNNNN",[j,j,0,0,j,j,0,0,0,0,1,0,j,j,0,1],c],matrix3d:["NNNNNNNNNNNNNNNN",c],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",b([j,j,1]),c],scalex:["N",b([j,1,1]),b([j,1])],scaley:["N",b([1,j,1]),b([1,j])],scalez:["N",b([1,1,j])],scale3d:["NNN",c],skew:["Aa",null,c],skewx:["A",null,b([j,l])],skewy:["A",null,b([l,j])],translate:["Tt",b([j,j,k]),c],translatex:["T",b([j,k,k]),b([j,k])],translatey:["T",b([k,j,k]),b([k,j])],translatez:["L",b([k,k,j])],translate3d:["TTL",c]};a.addPropertiesHandler(d,i,["transform"])}(d,f),function(a){function b(a){var b=Number(a);return isNaN(b)||100>b||b>900||b%100!==0?void 0:b}function c(b){return b=100*Math.round(b/100),b=a.clamp(100,900,b),400===b?"normal":700===b?"bold":String(b)}function d(a,b){return[a,b,c]}a.addPropertiesHandler(b,d,["font-weight"])}(d),function(a){function b(a){var b={};for(var c in a)b[c]=-a[c];return b}function c(b){return a.consumeToken(/^(left|center|right|top|bottom)\b/i,b)||a.consumeLengthOrPercent(b)}function d(b,d){var e=a.consumeRepeated(c,/^/,d);if(e&&""==e[1]){var f=e[0];if(f[0]=f[0]||"center",f[1]=f[1]||"center",3==b&&(f[2]=f[2]||{px:0}),f.length==b){if(/top|bottom/.test(f[0])||/left|right/.test(f[1])){var h=f[0];f[0]=f[1],f[1]=h}if(/left|right|center|Object/.test(f[0])&&/top|bottom|center|Object/.test(f[1]))return f.map(function(a){return"object"==typeof a?a:g[a]})}}}function e(d){var e=a.consumeRepeated(c,/^/,d);if(e){for(var f=e[0],h=[{"%":50},{"%":50}],i=0,j=!1,k=0;k<f.length;k++){var l=f[k];"string"==typeof l?(j=/bottom|right/.test(l),i={left:0,right:0,center:i,top:1,bottom:1}[l],h[i]=g[l],"center"==l&&i++):(j&&(l=b(l),l["%"]=(l["%"]||0)+100),h[i]=l,i++,j=!1)}return[h,e[1]]}}function f(b){var c=a.consumeRepeated(e,/^,/,b);return c&&""==c[1]?c[0]:void 0}var g={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},h=a.mergeNestedRepeated.bind(null,a.mergeDimensions," ");a.addPropertiesHandler(d.bind(null,3),h,["transform-origin"]),a.addPropertiesHandler(d.bind(null,2),h,["perspective-origin"]),a.consumePosition=e,a.mergeOffsetList=h;var i=a.mergeNestedRepeated.bind(null,h,", ");a.addPropertiesHandler(f,i,["background-position","object-position"])}(d),function(a){function b(b){var c=a.consumeToken(/^circle/,b);if(c&&c[0])return["circle"].concat(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),d,a.ignore(a.consumeToken.bind(void 0,/^at/)),a.consumePosition,a.ignore(a.consumeToken.bind(void 0,/^\)/))],c[1]));var f=a.consumeToken(/^ellipse/,b);if(f&&f[0])return["ellipse"].concat(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),e,a.ignore(a.consumeToken.bind(void 0,/^at/)),a.consumePosition,a.ignore(a.consumeToken.bind(void 0,/^\)/))],f[1]));var g=a.consumeToken(/^polygon/,b);return g&&g[0]?["polygon"].concat(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),a.optional(a.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),a.consumeSizePairList,a.ignore(a.consumeToken.bind(void 0,/^\)/))],g[1])):void 0}function c(b,c){return b[0]===c[0]?"circle"==b[0]?a.mergeList(b.slice(1),c.slice(1),["circle(",a.mergeDimensions," at ",a.mergeOffsetList,")"]):"ellipse"==b[0]?a.mergeList(b.slice(1),c.slice(1),["ellipse(",a.mergeNonNegativeSizePair," at ",a.mergeOffsetList,")"]):"polygon"==b[0]&&b[1]==c[1]?a.mergeList(b.slice(2),c.slice(2),["polygon(",b[1],g,")"]):void 0:void 0}var d=a.consumeParenthesised.bind(null,a.parseLengthOrPercent),e=a.consumeRepeated.bind(void 0,d,/^/),f=a.mergeNestedRepeated.bind(void 0,a.mergeDimensions," "),g=a.mergeNestedRepeated.bind(void 0,f,",");a.addPropertiesHandler(b,c,["shape-outside"])}(d),function(a){function b(a,b){b.concat([a]).forEach(function(b){b in document.documentElement.style&&(c[a]=b)})}var c={};b("transform",["webkitTransform","msTransform"]),b("transformOrigin",["webkitTransformOrigin"]),b("perspective",["webkitPerspective"]),b("perspectiveOrigin",["webkitPerspectiveOrigin"]),a.propertyName=function(a){return c[a]||a}}(d,f)}()}({},function(){return this}());
17
+ //# sourceMappingURL=web-animations.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-animations.min.js","sources":["src/scope.js","src/timing-utilities.js","src/normalize-keyframes.js","src/deprecation.js","src/keyframe-interpolations.js","src/property-interpolation.js","src/keyframe-effect.js","src/apply-preserving-inline-style.js","src/element-animatable.js","src/interpolation.js","src/matrix-interpolation.js","src/animation.js","src/tick.js"],"names":["webAnimationsShared","webAnimations1","webAnimationsNext","WEB_ANIMATIONS_TESTING","webAnimationsTesting","shared","testing","makeTiming","timingInput","timing","delay","endDelay","fill","forGroup","iterationStart","iterations","direction","isNaN","getOwnPropertyNames","forEach","property","fills","indexOf","directions","isDeprecated","duration","normalizeTimingInput","easing","toTimingFunction","cubic","c","a","linear","x","f","b","m","start","mid","end","xEst","Math","abs","step","count","pos","stepSize","cubicData","cubicBezierRe","exec","apply","Number","stepData","stepRe","Start","middle","Middle","End","preset","presets","calculateActiveDuration","repeatedDuration","playbackRate","calculatePhase","activeDuration","localTime","PhaseNone","PhaseBefore","PhaseAfter","calculateActiveTime","fillMode","PhaseActive","calculateScaledActiveTime","activeTime","startOffset","calculateIterationTime","iterationDuration","scaledActiveTime","Infinity","calculateCurrentIteration","iterationTime","floor","calculateTransformedTime","currentIteration","currentIterationIsOdd","currentDirectionIsForwards","directedTime","timeFraction","calculateTimeFraction","phase","split","ease","ease-in","ease-out","ease-in-out","step-start","step-middle","step-end","numberString","RegExp","antiAlias","value","aliases","expandShorthandAndAntiAlias","longProperties","shorthandToLonghand","shorthandExpanderElem","style","i","longProperty","longhandValue","result","normalizeKeyframes","effectInput","spaceKeyframes","length","keyframes","offset","previousIndex","previousOffset","j","isArray","TypeError","map","originalKeyframe","member","memberValue","type","DOMException","NOT_SUPPORTED_ERR","message","keyframe","undefined","everyFrameHasOffset","code","INVALID_MODIFICATION_ERR","name","filter","background","border","borderBottom","borderColor","borderRadius","borderRight","borderTop","borderWidth","flex","font","margin","document","createElementNS","borderWidthAliases","medium","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","fontSize","xx-small","small","x-large","xx-large","fontWeight","outlineWidth","textShadow","none","boxShadow","silenced","feature","date","advice","plural","today","Date","setMonth","getMonth","warn","expiry","toDateString","deprecated","auxVerb","Error","makePropertySpecificKeyframeGroups","propertySpecificKeyframeGroups","propertySpecificKeyframe","groupName","group","makeInterpolations","interpolations","startTime","endTime","startValue","endValue","push","interpolation","scope","propertyInterpolation","leftInterpolation","rightInterpolation","convertEffectInput","target","fraction","offsetFraction","localDuration","scaledLocalTime","clear","addPropertyHandler","parser","merger","propertyHandlers","addPropertiesHandler","properties","replace","toUpperCase","right","handlers","left","parsedLeft","parsedRight","interpolationArgs","interp","Interpolation","t","bool","effectTime","_totalDuration","_isCurrent","KeyframeEffect","keyframeEffect","_update","_hasSameTarget","otherTarget","nullEffect","configureProperty","object","descriptor","enumerable","configurable","Object","defineProperty","AnimatedCSSStyleDeclaration","element","_surrogateStyle","this","_style","_length","_isAnimatedProperty","_updateIndices","ensureStyleIsPatched","_webAnimationsPatchedStyle","animatedStyle","get","_set","styleAttributes","cssText","parentRule","styleMethods","getPropertyCSSValue","getPropertyPriority","getPropertyValue","removeProperty","setProperty","styleMutatingMethods","prototype","text","isAffectedProperty",{"end":{"file":"src/apply-preserving-inline-style.js","comments_before":[],"nlb":false,"endpos":2110,"pos":2103,"col":8,"line":64,"value":"cssText","type":"name"},"start":{"file":"src/apply-preserving-inline-style.js","comments_before":[],"nlb":false,"endpos":2110,"pos":2103,"col":8,"line":64,"value":"cssText","type":"name"},"name":"cssText"},"index","_clear","method","modifiesStyle","arguments","documentElement","set","propertyName","window","animate","timeline","_play","interpolate","from","r","to","convertToString","clamp","max","min","quat","toQ","dot","fromQ","product","theta","sin","sqrt","cos","composeMatrix","multiply","k","translate","scale","perspective","matrix","y","z","rotMatrix","w","temp","skew","is2D","concat","sequenceNumber","AnimationEvent","currentTime","timelineTime","bubbles","cancelable","currentTarget","defaultPrevented","eventPhase","Event","AT_TARGET","timeStamp","now","Animation","effect","_sequenceNumber","_currentTime","_startTime","paused","_playbackRate","_inTimeline","_finishedFlag","onfinish","_finishHandlers","_effect","_idle","_inEffect","_animations","_tickCurrentTime","newTime","ignoreLimit","finished","_ensureAlive","_currentTimePending","restart","_timeline","invalidateEffects","oldCurrentTime","playState","play","pause","finish","cancel","reverse","addEventListener","handler","removeEventListener","splice","_fireEvents","baseTime","setTimeout","call","event","processRafCallbacks","processing","rafCallbacks","tick","entry","needsRetick","applyPendingEffects","compareAnimations","leftAnimation","rightAnimation","InternalTimeline","performance","pendingEffects","hasRestartedThisFrame","sort","ticking","newPendingClears","newPendingEffects","updatingAnimations"],"mappings":";;;;;;;;;;;;;;+8pBAcA,KAAIA,SAAAA,OAAAA,EAAAA,EACAC,GAAAA,EAAAA,EAAAA,GAAAA,EAAAA,EAAAA,EACAC,EAAAA,GAAAA,EAAAA,EAAAA,GAAAA,EAEJ,EAAA,EAAKC,EACH,EAAIC,EAAAA,EAAAA,EAAAA,GAAAA,EAAAA,EAAAA,GAAuB,EAAA,EAAA,KCL7B,WAAUC,MAAQC,GAKhB,GAAA,QAASC,GAAWC,GAClB,MAAIC,KACFC,EACAC,QACAC,EAAMC,EAAAA,EAAAA,EAAAA,EAAW,EAAA,EAAA,EAAA,EAAS,EAAA,EAAA,EAC1BC,EAAAA,EAAAA,EAAAA,GAAAA,EACAC,IAAAA,GACqB,OAAS,GAE9BC,QAAW,GACH,GAEgB,OAAA,EAAaC,EAAMT,KAElCA,GAAAA,GACFU,WAAAA,QAAoBV,GAAaW,GAAAA,MAAQ,GAAA,GAASC,GAAAA,EAAAA,GACvD,GAA6B,EAAA,GAAA,GAAzBZ,EAAAA,GAAAA,GAAAA,EAAAA,GAAYY,GAAAA,EAAAA,GAAAA,GACd,EAAA,GAA+B,GAAA,EAAA,GAAA,GAAA,EAAA,GAApBX,GAAAA,EAAAA,GAAOW,GAAAA,EAAAA,GAAAA,GAAqC,EAAA,GAAA,GAAA,EAAZA,GAAAA,GAAAA,EAAAA,GAAAA,GACL,EAAA,GAAA,GAAA,EAAA,GAAA,GAAzBZ,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OT,gBACPU,EAAAA,mBACIpG,0BACJA,EAASoC,eACTpC,sBAAqBqG,EAAKP,qBAC1BQ,4BACyBtG,EAAAA,aACzBA,SAAAA,GAAS6D,MAET,GAAI0C,IAAAA,IACAC,EACJC"}
@@ -0,0 +1,956 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ * Code distributed by Google as part of the polymer project is also
8
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ // @version 0.7.3
11
+ if (typeof WeakMap === "undefined") {
12
+ (function() {
13
+ var defineProperty = Object.defineProperty;
14
+ var counter = Date.now() % 1e9;
15
+ var WeakMap = function() {
16
+ this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__");
17
+ };
18
+ WeakMap.prototype = {
19
+ set: function(key, value) {
20
+ var entry = key[this.name];
21
+ if (entry && entry[0] === key) entry[1] = value; else defineProperty(key, this.name, {
22
+ value: [ key, value ],
23
+ writable: true
24
+ });
25
+ return this;
26
+ },
27
+ get: function(key) {
28
+ var entry;
29
+ return (entry = key[this.name]) && entry[0] === key ? entry[1] : undefined;
30
+ },
31
+ "delete": function(key) {
32
+ var entry = key[this.name];
33
+ if (!entry || entry[0] !== key) return false;
34
+ entry[0] = entry[1] = undefined;
35
+ return true;
36
+ },
37
+ has: function(key) {
38
+ var entry = key[this.name];
39
+ if (!entry) return false;
40
+ return entry[0] === key;
41
+ }
42
+ };
43
+ window.WeakMap = WeakMap;
44
+ })();
45
+ }
46
+
47
+ (function(global) {
48
+ var registrationsTable = new WeakMap();
49
+ var setImmediate;
50
+ if (/Trident|Edge/.test(navigator.userAgent)) {
51
+ setImmediate = setTimeout;
52
+ } else if (window.setImmediate) {
53
+ setImmediate = window.setImmediate;
54
+ } else {
55
+ var setImmediateQueue = [];
56
+ var sentinel = String(Math.random());
57
+ window.addEventListener("message", function(e) {
58
+ if (e.data === sentinel) {
59
+ var queue = setImmediateQueue;
60
+ setImmediateQueue = [];
61
+ queue.forEach(function(func) {
62
+ func();
63
+ });
64
+ }
65
+ });
66
+ setImmediate = function(func) {
67
+ setImmediateQueue.push(func);
68
+ window.postMessage(sentinel, "*");
69
+ };
70
+ }
71
+ var isScheduled = false;
72
+ var scheduledObservers = [];
73
+ function scheduleCallback(observer) {
74
+ scheduledObservers.push(observer);
75
+ if (!isScheduled) {
76
+ isScheduled = true;
77
+ setImmediate(dispatchCallbacks);
78
+ }
79
+ }
80
+ function wrapIfNeeded(node) {
81
+ return window.ShadowDOMPolyfill && window.ShadowDOMPolyfill.wrapIfNeeded(node) || node;
82
+ }
83
+ function dispatchCallbacks() {
84
+ isScheduled = false;
85
+ var observers = scheduledObservers;
86
+ scheduledObservers = [];
87
+ observers.sort(function(o1, o2) {
88
+ return o1.uid_ - o2.uid_;
89
+ });
90
+ var anyNonEmpty = false;
91
+ observers.forEach(function(observer) {
92
+ var queue = observer.takeRecords();
93
+ removeTransientObserversFor(observer);
94
+ if (queue.length) {
95
+ observer.callback_(queue, observer);
96
+ anyNonEmpty = true;
97
+ }
98
+ });
99
+ if (anyNonEmpty) dispatchCallbacks();
100
+ }
101
+ function removeTransientObserversFor(observer) {
102
+ observer.nodes_.forEach(function(node) {
103
+ var registrations = registrationsTable.get(node);
104
+ if (!registrations) return;
105
+ registrations.forEach(function(registration) {
106
+ if (registration.observer === observer) registration.removeTransientObservers();
107
+ });
108
+ });
109
+ }
110
+ function forEachAncestorAndObserverEnqueueRecord(target, callback) {
111
+ for (var node = target; node; node = node.parentNode) {
112
+ var registrations = registrationsTable.get(node);
113
+ if (registrations) {
114
+ for (var j = 0; j < registrations.length; j++) {
115
+ var registration = registrations[j];
116
+ var options = registration.options;
117
+ if (node !== target && !options.subtree) continue;
118
+ var record = callback(options);
119
+ if (record) registration.enqueue(record);
120
+ }
121
+ }
122
+ }
123
+ }
124
+ var uidCounter = 0;
125
+ function JsMutationObserver(callback) {
126
+ this.callback_ = callback;
127
+ this.nodes_ = [];
128
+ this.records_ = [];
129
+ this.uid_ = ++uidCounter;
130
+ }
131
+ JsMutationObserver.prototype = {
132
+ observe: function(target, options) {
133
+ target = wrapIfNeeded(target);
134
+ if (!options.childList && !options.attributes && !options.characterData || options.attributeOldValue && !options.attributes || options.attributeFilter && options.attributeFilter.length && !options.attributes || options.characterDataOldValue && !options.characterData) {
135
+ throw new SyntaxError();
136
+ }
137
+ var registrations = registrationsTable.get(target);
138
+ if (!registrations) registrationsTable.set(target, registrations = []);
139
+ var registration;
140
+ for (var i = 0; i < registrations.length; i++) {
141
+ if (registrations[i].observer === this) {
142
+ registration = registrations[i];
143
+ registration.removeListeners();
144
+ registration.options = options;
145
+ break;
146
+ }
147
+ }
148
+ if (!registration) {
149
+ registration = new Registration(this, target, options);
150
+ registrations.push(registration);
151
+ this.nodes_.push(target);
152
+ }
153
+ registration.addListeners();
154
+ },
155
+ disconnect: function() {
156
+ this.nodes_.forEach(function(node) {
157
+ var registrations = registrationsTable.get(node);
158
+ for (var i = 0; i < registrations.length; i++) {
159
+ var registration = registrations[i];
160
+ if (registration.observer === this) {
161
+ registration.removeListeners();
162
+ registrations.splice(i, 1);
163
+ break;
164
+ }
165
+ }
166
+ }, this);
167
+ this.records_ = [];
168
+ },
169
+ takeRecords: function() {
170
+ var copyOfRecords = this.records_;
171
+ this.records_ = [];
172
+ return copyOfRecords;
173
+ }
174
+ };
175
+ function MutationRecord(type, target) {
176
+ this.type = type;
177
+ this.target = target;
178
+ this.addedNodes = [];
179
+ this.removedNodes = [];
180
+ this.previousSibling = null;
181
+ this.nextSibling = null;
182
+ this.attributeName = null;
183
+ this.attributeNamespace = null;
184
+ this.oldValue = null;
185
+ }
186
+ function copyMutationRecord(original) {
187
+ var record = new MutationRecord(original.type, original.target);
188
+ record.addedNodes = original.addedNodes.slice();
189
+ record.removedNodes = original.removedNodes.slice();
190
+ record.previousSibling = original.previousSibling;
191
+ record.nextSibling = original.nextSibling;
192
+ record.attributeName = original.attributeName;
193
+ record.attributeNamespace = original.attributeNamespace;
194
+ record.oldValue = original.oldValue;
195
+ return record;
196
+ }
197
+ var currentRecord, recordWithOldValue;
198
+ function getRecord(type, target) {
199
+ return currentRecord = new MutationRecord(type, target);
200
+ }
201
+ function getRecordWithOldValue(oldValue) {
202
+ if (recordWithOldValue) return recordWithOldValue;
203
+ recordWithOldValue = copyMutationRecord(currentRecord);
204
+ recordWithOldValue.oldValue = oldValue;
205
+ return recordWithOldValue;
206
+ }
207
+ function clearRecords() {
208
+ currentRecord = recordWithOldValue = undefined;
209
+ }
210
+ function recordRepresentsCurrentMutation(record) {
211
+ return record === recordWithOldValue || record === currentRecord;
212
+ }
213
+ function selectRecord(lastRecord, newRecord) {
214
+ if (lastRecord === newRecord) return lastRecord;
215
+ if (recordWithOldValue && recordRepresentsCurrentMutation(lastRecord)) return recordWithOldValue;
216
+ return null;
217
+ }
218
+ function Registration(observer, target, options) {
219
+ this.observer = observer;
220
+ this.target = target;
221
+ this.options = options;
222
+ this.transientObservedNodes = [];
223
+ }
224
+ Registration.prototype = {
225
+ enqueue: function(record) {
226
+ var records = this.observer.records_;
227
+ var length = records.length;
228
+ if (records.length > 0) {
229
+ var lastRecord = records[length - 1];
230
+ var recordToReplaceLast = selectRecord(lastRecord, record);
231
+ if (recordToReplaceLast) {
232
+ records[length - 1] = recordToReplaceLast;
233
+ return;
234
+ }
235
+ } else {
236
+ scheduleCallback(this.observer);
237
+ }
238
+ records[length] = record;
239
+ },
240
+ addListeners: function() {
241
+ this.addListeners_(this.target);
242
+ },
243
+ addListeners_: function(node) {
244
+ var options = this.options;
245
+ if (options.attributes) node.addEventListener("DOMAttrModified", this, true);
246
+ if (options.characterData) node.addEventListener("DOMCharacterDataModified", this, true);
247
+ if (options.childList) node.addEventListener("DOMNodeInserted", this, true);
248
+ if (options.childList || options.subtree) node.addEventListener("DOMNodeRemoved", this, true);
249
+ },
250
+ removeListeners: function() {
251
+ this.removeListeners_(this.target);
252
+ },
253
+ removeListeners_: function(node) {
254
+ var options = this.options;
255
+ if (options.attributes) node.removeEventListener("DOMAttrModified", this, true);
256
+ if (options.characterData) node.removeEventListener("DOMCharacterDataModified", this, true);
257
+ if (options.childList) node.removeEventListener("DOMNodeInserted", this, true);
258
+ if (options.childList || options.subtree) node.removeEventListener("DOMNodeRemoved", this, true);
259
+ },
260
+ addTransientObserver: function(node) {
261
+ if (node === this.target) return;
262
+ this.addListeners_(node);
263
+ this.transientObservedNodes.push(node);
264
+ var registrations = registrationsTable.get(node);
265
+ if (!registrations) registrationsTable.set(node, registrations = []);
266
+ registrations.push(this);
267
+ },
268
+ removeTransientObservers: function() {
269
+ var transientObservedNodes = this.transientObservedNodes;
270
+ this.transientObservedNodes = [];
271
+ transientObservedNodes.forEach(function(node) {
272
+ this.removeListeners_(node);
273
+ var registrations = registrationsTable.get(node);
274
+ for (var i = 0; i < registrations.length; i++) {
275
+ if (registrations[i] === this) {
276
+ registrations.splice(i, 1);
277
+ break;
278
+ }
279
+ }
280
+ }, this);
281
+ },
282
+ handleEvent: function(e) {
283
+ e.stopImmediatePropagation();
284
+ switch (e.type) {
285
+ case "DOMAttrModified":
286
+ var name = e.attrName;
287
+ var namespace = e.relatedNode.namespaceURI;
288
+ var target = e.target;
289
+ var record = new getRecord("attributes", target);
290
+ record.attributeName = name;
291
+ record.attributeNamespace = namespace;
292
+ var oldValue = e.attrChange === MutationEvent.ADDITION ? null : e.prevValue;
293
+ forEachAncestorAndObserverEnqueueRecord(target, function(options) {
294
+ if (!options.attributes) return;
295
+ if (options.attributeFilter && options.attributeFilter.length && options.attributeFilter.indexOf(name) === -1 && options.attributeFilter.indexOf(namespace) === -1) {
296
+ return;
297
+ }
298
+ if (options.attributeOldValue) return getRecordWithOldValue(oldValue);
299
+ return record;
300
+ });
301
+ break;
302
+
303
+ case "DOMCharacterDataModified":
304
+ var target = e.target;
305
+ var record = getRecord("characterData", target);
306
+ var oldValue = e.prevValue;
307
+ forEachAncestorAndObserverEnqueueRecord(target, function(options) {
308
+ if (!options.characterData) return;
309
+ if (options.characterDataOldValue) return getRecordWithOldValue(oldValue);
310
+ return record;
311
+ });
312
+ break;
313
+
314
+ case "DOMNodeRemoved":
315
+ this.addTransientObserver(e.target);
316
+
317
+ case "DOMNodeInserted":
318
+ var changedNode = e.target;
319
+ var addedNodes, removedNodes;
320
+ if (e.type === "DOMNodeInserted") {
321
+ addedNodes = [ changedNode ];
322
+ removedNodes = [];
323
+ } else {
324
+ addedNodes = [];
325
+ removedNodes = [ changedNode ];
326
+ }
327
+ var previousSibling = changedNode.previousSibling;
328
+ var nextSibling = changedNode.nextSibling;
329
+ var record = getRecord("childList", e.target.parentNode);
330
+ record.addedNodes = addedNodes;
331
+ record.removedNodes = removedNodes;
332
+ record.previousSibling = previousSibling;
333
+ record.nextSibling = nextSibling;
334
+ forEachAncestorAndObserverEnqueueRecord(e.relatedNode, function(options) {
335
+ if (!options.childList) return;
336
+ return record;
337
+ });
338
+ }
339
+ clearRecords();
340
+ }
341
+ };
342
+ global.JsMutationObserver = JsMutationObserver;
343
+ if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
344
+ })(this);
345
+
346
+ window.CustomElements = window.CustomElements || {
347
+ flags: {}
348
+ };
349
+
350
+ (function(scope) {
351
+ var flags = scope.flags;
352
+ var modules = [];
353
+ var addModule = function(module) {
354
+ modules.push(module);
355
+ };
356
+ var initializeModules = function() {
357
+ modules.forEach(function(module) {
358
+ module(scope);
359
+ });
360
+ };
361
+ scope.addModule = addModule;
362
+ scope.initializeModules = initializeModules;
363
+ scope.hasNative = Boolean(document.registerElement);
364
+ scope.useNative = !flags.register && scope.hasNative && !window.ShadowDOMPolyfill && (!window.HTMLImports || HTMLImports.useNative);
365
+ })(window.CustomElements);
366
+
367
+ window.CustomElements.addModule(function(scope) {
368
+ var IMPORT_LINK_TYPE = window.HTMLImports ? HTMLImports.IMPORT_LINK_TYPE : "none";
369
+ function forSubtree(node, cb) {
370
+ findAllElements(node, function(e) {
371
+ if (cb(e)) {
372
+ return true;
373
+ }
374
+ forRoots(e, cb);
375
+ });
376
+ forRoots(node, cb);
377
+ }
378
+ function findAllElements(node, find, data) {
379
+ var e = node.firstElementChild;
380
+ if (!e) {
381
+ e = node.firstChild;
382
+ while (e && e.nodeType !== Node.ELEMENT_NODE) {
383
+ e = e.nextSibling;
384
+ }
385
+ }
386
+ while (e) {
387
+ if (find(e, data) !== true) {
388
+ findAllElements(e, find, data);
389
+ }
390
+ e = e.nextElementSibling;
391
+ }
392
+ return null;
393
+ }
394
+ function forRoots(node, cb) {
395
+ var root = node.shadowRoot;
396
+ while (root) {
397
+ forSubtree(root, cb);
398
+ root = root.olderShadowRoot;
399
+ }
400
+ }
401
+ function forDocumentTree(doc, cb) {
402
+ _forDocumentTree(doc, cb, []);
403
+ }
404
+ function _forDocumentTree(doc, cb, processingDocuments) {
405
+ doc = wrap(doc);
406
+ if (processingDocuments.indexOf(doc) >= 0) {
407
+ return;
408
+ }
409
+ processingDocuments.push(doc);
410
+ var imports = doc.querySelectorAll("link[rel=" + IMPORT_LINK_TYPE + "]");
411
+ for (var i = 0, l = imports.length, n; i < l && (n = imports[i]); i++) {
412
+ if (n.import) {
413
+ _forDocumentTree(n.import, cb, processingDocuments);
414
+ }
415
+ }
416
+ cb(doc);
417
+ }
418
+ scope.forDocumentTree = forDocumentTree;
419
+ scope.forSubtree = forSubtree;
420
+ });
421
+
422
+ window.CustomElements.addModule(function(scope) {
423
+ var flags = scope.flags;
424
+ var forSubtree = scope.forSubtree;
425
+ var forDocumentTree = scope.forDocumentTree;
426
+ function addedNode(node) {
427
+ return added(node) || addedSubtree(node);
428
+ }
429
+ function added(node) {
430
+ if (scope.upgrade(node)) {
431
+ return true;
432
+ }
433
+ attached(node);
434
+ }
435
+ function addedSubtree(node) {
436
+ forSubtree(node, function(e) {
437
+ if (added(e)) {
438
+ return true;
439
+ }
440
+ });
441
+ }
442
+ function attachedNode(node) {
443
+ attached(node);
444
+ if (inDocument(node)) {
445
+ forSubtree(node, function(e) {
446
+ attached(e);
447
+ });
448
+ }
449
+ }
450
+ var hasPolyfillMutations = !window.MutationObserver || window.MutationObserver === window.JsMutationObserver;
451
+ scope.hasPolyfillMutations = hasPolyfillMutations;
452
+ var isPendingMutations = false;
453
+ var pendingMutations = [];
454
+ function deferMutation(fn) {
455
+ pendingMutations.push(fn);
456
+ if (!isPendingMutations) {
457
+ isPendingMutations = true;
458
+ setTimeout(takeMutations);
459
+ }
460
+ }
461
+ function takeMutations() {
462
+ isPendingMutations = false;
463
+ var $p = pendingMutations;
464
+ for (var i = 0, l = $p.length, p; i < l && (p = $p[i]); i++) {
465
+ p();
466
+ }
467
+ pendingMutations = [];
468
+ }
469
+ function attached(element) {
470
+ if (hasPolyfillMutations) {
471
+ deferMutation(function() {
472
+ _attached(element);
473
+ });
474
+ } else {
475
+ _attached(element);
476
+ }
477
+ }
478
+ function _attached(element) {
479
+ if (element.__upgraded__ && (element.attachedCallback || element.detachedCallback)) {
480
+ if (!element.__attached && inDocument(element)) {
481
+ element.__attached = true;
482
+ if (element.attachedCallback) {
483
+ element.attachedCallback();
484
+ }
485
+ }
486
+ }
487
+ }
488
+ function detachedNode(node) {
489
+ detached(node);
490
+ forSubtree(node, function(e) {
491
+ detached(e);
492
+ });
493
+ }
494
+ function detached(element) {
495
+ if (hasPolyfillMutations) {
496
+ deferMutation(function() {
497
+ _detached(element);
498
+ });
499
+ } else {
500
+ _detached(element);
501
+ }
502
+ }
503
+ function _detached(element) {
504
+ if (element.__upgraded__ && (element.attachedCallback || element.detachedCallback)) {
505
+ if (element.__attached && !inDocument(element)) {
506
+ element.__attached = false;
507
+ if (element.detachedCallback) {
508
+ element.detachedCallback();
509
+ }
510
+ }
511
+ }
512
+ }
513
+ function inDocument(element) {
514
+ var p = element;
515
+ var doc = wrap(document);
516
+ while (p) {
517
+ if (p == doc) {
518
+ return true;
519
+ }
520
+ p = p.parentNode || p.nodeType === Node.DOCUMENT_FRAGMENT_NODE && p.host;
521
+ }
522
+ }
523
+ function watchShadow(node) {
524
+ if (node.shadowRoot && !node.shadowRoot.__watched) {
525
+ flags.dom && console.log("watching shadow-root for: ", node.localName);
526
+ var root = node.shadowRoot;
527
+ while (root) {
528
+ observe(root);
529
+ root = root.olderShadowRoot;
530
+ }
531
+ }
532
+ }
533
+ function handler(mutations) {
534
+ if (flags.dom) {
535
+ var mx = mutations[0];
536
+ if (mx && mx.type === "childList" && mx.addedNodes) {
537
+ if (mx.addedNodes) {
538
+ var d = mx.addedNodes[0];
539
+ while (d && d !== document && !d.host) {
540
+ d = d.parentNode;
541
+ }
542
+ var u = d && (d.URL || d._URL || d.host && d.host.localName) || "";
543
+ u = u.split("/?").shift().split("/").pop();
544
+ }
545
+ }
546
+ console.group("mutations (%d) [%s]", mutations.length, u || "");
547
+ }
548
+ mutations.forEach(function(mx) {
549
+ if (mx.type === "childList") {
550
+ forEach(mx.addedNodes, function(n) {
551
+ if (!n.localName) {
552
+ return;
553
+ }
554
+ addedNode(n);
555
+ });
556
+ forEach(mx.removedNodes, function(n) {
557
+ if (!n.localName) {
558
+ return;
559
+ }
560
+ detachedNode(n);
561
+ });
562
+ }
563
+ });
564
+ flags.dom && console.groupEnd();
565
+ }
566
+ function takeRecords(node) {
567
+ node = wrap(node);
568
+ if (!node) {
569
+ node = wrap(document);
570
+ }
571
+ while (node.parentNode) {
572
+ node = node.parentNode;
573
+ }
574
+ var observer = node.__observer;
575
+ if (observer) {
576
+ handler(observer.takeRecords());
577
+ takeMutations();
578
+ }
579
+ }
580
+ var forEach = Array.prototype.forEach.call.bind(Array.prototype.forEach);
581
+ function observe(inRoot) {
582
+ if (inRoot.__observer) {
583
+ return;
584
+ }
585
+ var observer = new MutationObserver(handler);
586
+ observer.observe(inRoot, {
587
+ childList: true,
588
+ subtree: true
589
+ });
590
+ inRoot.__observer = observer;
591
+ }
592
+ function upgradeDocument(doc) {
593
+ doc = wrap(doc);
594
+ flags.dom && console.group("upgradeDocument: ", doc.baseURI.split("/").pop());
595
+ addedNode(doc);
596
+ observe(doc);
597
+ flags.dom && console.groupEnd();
598
+ }
599
+ function upgradeDocumentTree(doc) {
600
+ forDocumentTree(doc, upgradeDocument);
601
+ }
602
+ var originalCreateShadowRoot = Element.prototype.createShadowRoot;
603
+ if (originalCreateShadowRoot) {
604
+ Element.prototype.createShadowRoot = function() {
605
+ var root = originalCreateShadowRoot.call(this);
606
+ CustomElements.watchShadow(this);
607
+ return root;
608
+ };
609
+ }
610
+ scope.watchShadow = watchShadow;
611
+ scope.upgradeDocumentTree = upgradeDocumentTree;
612
+ scope.upgradeSubtree = addedSubtree;
613
+ scope.upgradeAll = addedNode;
614
+ scope.attachedNode = attachedNode;
615
+ scope.takeRecords = takeRecords;
616
+ });
617
+
618
+ window.CustomElements.addModule(function(scope) {
619
+ var flags = scope.flags;
620
+ function upgrade(node) {
621
+ if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
622
+ var is = node.getAttribute("is");
623
+ var definition = scope.getRegisteredDefinition(is || node.localName);
624
+ if (definition) {
625
+ if (is && definition.tag == node.localName) {
626
+ return upgradeWithDefinition(node, definition);
627
+ } else if (!is && !definition.extends) {
628
+ return upgradeWithDefinition(node, definition);
629
+ }
630
+ }
631
+ }
632
+ }
633
+ function upgradeWithDefinition(element, definition) {
634
+ flags.upgrade && console.group("upgrade:", element.localName);
635
+ if (definition.is) {
636
+ element.setAttribute("is", definition.is);
637
+ }
638
+ implementPrototype(element, definition);
639
+ element.__upgraded__ = true;
640
+ created(element);
641
+ scope.attachedNode(element);
642
+ scope.upgradeSubtree(element);
643
+ flags.upgrade && console.groupEnd();
644
+ return element;
645
+ }
646
+ function implementPrototype(element, definition) {
647
+ if (Object.__proto__) {
648
+ element.__proto__ = definition.prototype;
649
+ } else {
650
+ customMixin(element, definition.prototype, definition.native);
651
+ element.__proto__ = definition.prototype;
652
+ }
653
+ }
654
+ function customMixin(inTarget, inSrc, inNative) {
655
+ var used = {};
656
+ var p = inSrc;
657
+ while (p !== inNative && p !== HTMLElement.prototype) {
658
+ var keys = Object.getOwnPropertyNames(p);
659
+ for (var i = 0, k; k = keys[i]; i++) {
660
+ if (!used[k]) {
661
+ Object.defineProperty(inTarget, k, Object.getOwnPropertyDescriptor(p, k));
662
+ used[k] = 1;
663
+ }
664
+ }
665
+ p = Object.getPrototypeOf(p);
666
+ }
667
+ }
668
+ function created(element) {
669
+ if (element.createdCallback) {
670
+ element.createdCallback();
671
+ }
672
+ }
673
+ scope.upgrade = upgrade;
674
+ scope.upgradeWithDefinition = upgradeWithDefinition;
675
+ scope.implementPrototype = implementPrototype;
676
+ });
677
+
678
+ window.CustomElements.addModule(function(scope) {
679
+ var isIE11OrOlder = scope.isIE11OrOlder;
680
+ var upgradeDocumentTree = scope.upgradeDocumentTree;
681
+ var upgradeAll = scope.upgradeAll;
682
+ var upgradeWithDefinition = scope.upgradeWithDefinition;
683
+ var implementPrototype = scope.implementPrototype;
684
+ var useNative = scope.useNative;
685
+ function register(name, options) {
686
+ var definition = options || {};
687
+ if (!name) {
688
+ throw new Error("document.registerElement: first argument `name` must not be empty");
689
+ }
690
+ if (name.indexOf("-") < 0) {
691
+ throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '" + String(name) + "'.");
692
+ }
693
+ if (isReservedTag(name)) {
694
+ throw new Error("Failed to execute 'registerElement' on 'Document': Registration failed for type '" + String(name) + "'. The type name is invalid.");
695
+ }
696
+ if (getRegisteredDefinition(name)) {
697
+ throw new Error("DuplicateDefinitionError: a type with name '" + String(name) + "' is already registered");
698
+ }
699
+ if (!definition.prototype) {
700
+ definition.prototype = Object.create(HTMLElement.prototype);
701
+ }
702
+ definition.__name = name.toLowerCase();
703
+ definition.lifecycle = definition.lifecycle || {};
704
+ definition.ancestry = ancestry(definition.extends);
705
+ resolveTagName(definition);
706
+ resolvePrototypeChain(definition);
707
+ overrideAttributeApi(definition.prototype);
708
+ registerDefinition(definition.__name, definition);
709
+ definition.ctor = generateConstructor(definition);
710
+ definition.ctor.prototype = definition.prototype;
711
+ definition.prototype.constructor = definition.ctor;
712
+ if (scope.ready) {
713
+ upgradeDocumentTree(document);
714
+ }
715
+ return definition.ctor;
716
+ }
717
+ function overrideAttributeApi(prototype) {
718
+ if (prototype.setAttribute._polyfilled) {
719
+ return;
720
+ }
721
+ var setAttribute = prototype.setAttribute;
722
+ prototype.setAttribute = function(name, value) {
723
+ changeAttribute.call(this, name, value, setAttribute);
724
+ };
725
+ var removeAttribute = prototype.removeAttribute;
726
+ prototype.removeAttribute = function(name) {
727
+ changeAttribute.call(this, name, null, removeAttribute);
728
+ };
729
+ prototype.setAttribute._polyfilled = true;
730
+ }
731
+ function changeAttribute(name, value, operation) {
732
+ name = name.toLowerCase();
733
+ var oldValue = this.getAttribute(name);
734
+ operation.apply(this, arguments);
735
+ var newValue = this.getAttribute(name);
736
+ if (this.attributeChangedCallback && newValue !== oldValue) {
737
+ this.attributeChangedCallback(name, oldValue, newValue);
738
+ }
739
+ }
740
+ function isReservedTag(name) {
741
+ for (var i = 0; i < reservedTagList.length; i++) {
742
+ if (name === reservedTagList[i]) {
743
+ return true;
744
+ }
745
+ }
746
+ }
747
+ var reservedTagList = [ "annotation-xml", "color-profile", "font-face", "font-face-src", "font-face-uri", "font-face-format", "font-face-name", "missing-glyph" ];
748
+ function ancestry(extnds) {
749
+ var extendee = getRegisteredDefinition(extnds);
750
+ if (extendee) {
751
+ return ancestry(extendee.extends).concat([ extendee ]);
752
+ }
753
+ return [];
754
+ }
755
+ function resolveTagName(definition) {
756
+ var baseTag = definition.extends;
757
+ for (var i = 0, a; a = definition.ancestry[i]; i++) {
758
+ baseTag = a.is && a.tag;
759
+ }
760
+ definition.tag = baseTag || definition.__name;
761
+ if (baseTag) {
762
+ definition.is = definition.__name;
763
+ }
764
+ }
765
+ function resolvePrototypeChain(definition) {
766
+ if (!Object.__proto__) {
767
+ var nativePrototype = HTMLElement.prototype;
768
+ if (definition.is) {
769
+ var inst = document.createElement(definition.tag);
770
+ var expectedPrototype = Object.getPrototypeOf(inst);
771
+ if (expectedPrototype === definition.prototype) {
772
+ nativePrototype = expectedPrototype;
773
+ }
774
+ }
775
+ var proto = definition.prototype, ancestor;
776
+ while (proto && proto !== nativePrototype) {
777
+ ancestor = Object.getPrototypeOf(proto);
778
+ proto.__proto__ = ancestor;
779
+ proto = ancestor;
780
+ }
781
+ definition.native = nativePrototype;
782
+ }
783
+ }
784
+ function instantiate(definition) {
785
+ return upgradeWithDefinition(domCreateElement(definition.tag), definition);
786
+ }
787
+ var registry = {};
788
+ function getRegisteredDefinition(name) {
789
+ if (name) {
790
+ return registry[name.toLowerCase()];
791
+ }
792
+ }
793
+ function registerDefinition(name, definition) {
794
+ registry[name] = definition;
795
+ }
796
+ function generateConstructor(definition) {
797
+ return function() {
798
+ return instantiate(definition);
799
+ };
800
+ }
801
+ var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
802
+ function createElementNS(namespace, tag, typeExtension) {
803
+ if (namespace === HTML_NAMESPACE) {
804
+ return createElement(tag, typeExtension);
805
+ } else {
806
+ return domCreateElementNS(namespace, tag);
807
+ }
808
+ }
809
+ function createElement(tag, typeExtension) {
810
+ if (tag) {
811
+ tag = tag.toLowerCase();
812
+ }
813
+ if (typeExtension) {
814
+ typeExtension = typeExtension.toLowerCase();
815
+ }
816
+ var definition = getRegisteredDefinition(typeExtension || tag);
817
+ if (definition) {
818
+ if (tag == definition.tag && typeExtension == definition.is) {
819
+ return new definition.ctor();
820
+ }
821
+ if (!typeExtension && !definition.is) {
822
+ return new definition.ctor();
823
+ }
824
+ }
825
+ var element;
826
+ if (typeExtension) {
827
+ element = createElement(tag);
828
+ element.setAttribute("is", typeExtension);
829
+ return element;
830
+ }
831
+ element = domCreateElement(tag);
832
+ if (tag.indexOf("-") >= 0) {
833
+ implementPrototype(element, HTMLElement);
834
+ }
835
+ return element;
836
+ }
837
+ var domCreateElement = document.createElement.bind(document);
838
+ var domCreateElementNS = document.createElementNS.bind(document);
839
+ var isInstance;
840
+ if (!Object.__proto__ && !useNative) {
841
+ isInstance = function(obj, ctor) {
842
+ var p = obj;
843
+ while (p) {
844
+ if (p === ctor.prototype) {
845
+ return true;
846
+ }
847
+ p = p.__proto__;
848
+ }
849
+ return false;
850
+ };
851
+ } else {
852
+ isInstance = function(obj, base) {
853
+ return obj instanceof base;
854
+ };
855
+ }
856
+ function wrapDomMethodToForceUpgrade(obj, methodName) {
857
+ var orig = obj[methodName];
858
+ obj[methodName] = function() {
859
+ var n = orig.apply(this, arguments);
860
+ upgradeAll(n);
861
+ return n;
862
+ };
863
+ }
864
+ wrapDomMethodToForceUpgrade(Node.prototype, "cloneNode");
865
+ wrapDomMethodToForceUpgrade(document, "importNode");
866
+ if (isIE11OrOlder) {
867
+ (function() {
868
+ var importNode = document.importNode;
869
+ document.importNode = function() {
870
+ var n = importNode.apply(document, arguments);
871
+ if (n.nodeType == n.DOCUMENT_FRAGMENT_NODE) {
872
+ var f = document.createDocumentFragment();
873
+ f.appendChild(n);
874
+ return f;
875
+ } else {
876
+ return n;
877
+ }
878
+ };
879
+ })();
880
+ }
881
+ document.registerElement = register;
882
+ document.createElement = createElement;
883
+ document.createElementNS = createElementNS;
884
+ scope.registry = registry;
885
+ scope.instanceof = isInstance;
886
+ scope.reservedTagList = reservedTagList;
887
+ scope.getRegisteredDefinition = getRegisteredDefinition;
888
+ document.register = document.registerElement;
889
+ });
890
+
891
+ (function(scope) {
892
+ var useNative = scope.useNative;
893
+ var initializeModules = scope.initializeModules;
894
+ var isIE11OrOlder = /Trident/.test(navigator.userAgent);
895
+ if (useNative) {
896
+ var nop = function() {};
897
+ scope.watchShadow = nop;
898
+ scope.upgrade = nop;
899
+ scope.upgradeAll = nop;
900
+ scope.upgradeDocumentTree = nop;
901
+ scope.upgradeSubtree = nop;
902
+ scope.takeRecords = nop;
903
+ scope.instanceof = function(obj, base) {
904
+ return obj instanceof base;
905
+ };
906
+ } else {
907
+ initializeModules();
908
+ }
909
+ var upgradeDocumentTree = scope.upgradeDocumentTree;
910
+ if (!window.wrap) {
911
+ if (window.ShadowDOMPolyfill) {
912
+ window.wrap = ShadowDOMPolyfill.wrapIfNeeded;
913
+ window.unwrap = ShadowDOMPolyfill.unwrapIfNeeded;
914
+ } else {
915
+ window.wrap = window.unwrap = function(node) {
916
+ return node;
917
+ };
918
+ }
919
+ }
920
+ function bootstrap() {
921
+ upgradeDocumentTree(wrap(document));
922
+ if (window.HTMLImports) {
923
+ HTMLImports.__importsParsingHook = function(elt) {
924
+ upgradeDocumentTree(wrap(elt.import));
925
+ };
926
+ }
927
+ CustomElements.ready = true;
928
+ setTimeout(function() {
929
+ CustomElements.readyTime = Date.now();
930
+ if (window.HTMLImports) {
931
+ CustomElements.elapsed = CustomElements.readyTime - HTMLImports.readyTime;
932
+ }
933
+ document.dispatchEvent(new CustomEvent("WebComponentsReady", {
934
+ bubbles: true
935
+ }));
936
+ });
937
+ }
938
+ if (isIE11OrOlder && typeof window.CustomEvent !== "function") {
939
+ window.CustomEvent = function(inType, params) {
940
+ params = params || {};
941
+ var e = document.createEvent("CustomEvent");
942
+ e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
943
+ return e;
944
+ };
945
+ window.CustomEvent.prototype = window.Event.prototype;
946
+ }
947
+ if (document.readyState === "complete" || scope.flags.eager) {
948
+ bootstrap();
949
+ } else if (document.readyState === "interactive" && !window.attachEvent && (!window.HTMLImports || window.HTMLImports.ready)) {
950
+ bootstrap();
951
+ } else {
952
+ var loadEvent = window.HTMLImports && !HTMLImports.ready ? "HTMLImportsLoaded" : "DOMContentLoaded";
953
+ window.addEventListener(loadEvent, bootstrap);
954
+ }
955
+ scope.isIE11OrOlder = isIE11OrOlder;
956
+ })(window.CustomElements);