hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
e316397dcbcb285aeb989e642627282fecb64ffd
455
js
JavaScript
database/models/review.js
NestorRomeroUAndes/bicisoft-spl-back
409490d1baf6d4798bf023405344a37ff3ef5b84
[ "MIT" ]
null
null
null
database/models/review.js
NestorRomeroUAndes/bicisoft-spl-back
409490d1baf6d4798bf023405344a37ff3ef5b84
[ "MIT" ]
null
null
null
database/models/review.js
NestorRomeroUAndes/bicisoft-spl-back
409490d1baf6d4798bf023405344a37ff3ef5b84
[ "MIT" ]
1
2019-11-17T04:42:22.000Z
2019-11-17T04:42:22.000Z
'use strict'; module.exports = (sequelize, DataTypes) => { const Review = sequelize.define('Review', { comment: DataTypes.TEXT, score: DataTypes.INTEGER }, {}); Review.associate = function(models) { // associations can be defined here Review.belongsTo(models.Shop,{ foreignKey: 'shopId', as: 'shop', }); Review.belongsTo(models.User,{ foreignKey: 'userId', as: 'user', }); }; return Review; };
23.947368
45
0.606593
e31807f8184bec521132e2b6a98082dea2287d10
580
js
JavaScript
demo/src/index.js
univjun/WhoD
9c952d5911e0f95f902f73e691c8f5ecfa1809c5
[ "MIT" ]
null
null
null
demo/src/index.js
univjun/WhoD
9c952d5911e0f95f902f73e691c8f5ecfa1809c5
[ "MIT" ]
null
null
null
demo/src/index.js
univjun/WhoD
9c952d5911e0f95f902f73e691c8f5ecfa1809c5
[ "MIT" ]
null
null
null
import React, { Component } from 'react'; import ReactDOM from "react-dom"; import { HashRouter as Router, Route, Switch, Link } from "react-router-dom"; import "./index.css"; import FullPage from "./FullPage"; import Sanmin from "./Sanmin"; // import Sanmin from '../components/Sanmin'; import "./index.css"; import { StickyContainer, Sticky } from 'react-sticky'; ReactDOM.render( <Router basename="/demos"> <div> <Route exact path="/" component={FullPage}/> </div> </Router>, document.getElementById("root") );
20
60
0.627586
e3184eef9abb8392719c936e0a68f656efb29560
1,520
js
JavaScript
src/combinators.js
davidpricedev/importResolver
7a0518035b8a41eba85649f66d3c7b4bfbe8eb1e
[ "Apache-2.0" ]
2
2018-02-18T19:42:47.000Z
2018-05-27T20:28:00.000Z
src/combinators.js
davidpricedev/importResolver
7a0518035b8a41eba85649f66d3c7b4bfbe8eb1e
[ "Apache-2.0" ]
null
null
null
src/combinators.js
davidpricedev/importResolver
7a0518035b8a41eba85649f66d3c7b4bfbe8eb1e
[ "Apache-2.0" ]
null
null
null
const { inspectItem } = require('./spy'); const { has, pipe, both } = require('ramda'); // Standard (borrowed from https://gist.github.com/Avaq/1f0636ec5c8d6aed2e45) const I = x => x; const K = x => () => x; const A = f => x => f(x); const T = x => f => f(x); const W = f => x => f(x)(x); const C = f => y => x => f(x)(y); const B = f => g => x => f(g(x)); const S = f => g => x => f(x)(g(x)); const P = f => g => x => y => f(g(x))(g(y)); const Y = f => (g => g(g))(g => f(x => g(g)(x))); // ============== mine ================== /** * invoke the fstr method on x with any provided arguments - a tacit/point-free converter * JSON.stringify(myObj) -> invokeOn("stringify", myObj)(JSON) */ const invokeOn = (fstr, ...args) => x => { if (!x || !has(fstr, x)) throw new Error(fstr + ' not found on the ' + typeof x + ' object ' + x); return x[fstr].apply(x, args); }; /** * A mashup of the W and B converters */ const WB = f => g => x => f(g(x))(x); /** * This is an n-ary version of ramda's both function */ const allTrue = (...fns) => fns.reduce((f, g) => { if (typeof f !== 'function') { inspectItem('f is not a function')(f); throw new Error('f is not a function! ' + f.toString()); } if (typeof g !== 'function') { inspectItem('g is not a function')(g); throw new Error('g is not a function! ' + Object.keys(g)); } return both(f, g); }); module.exports = { I, K, A, T, W, C, B, S, P, Y, WB, pipe, invokeOn, allTrue, };
23.030303
89
0.508553
e31947775c9e3f67e6c499667c06cd7f706b36b9
3,691
js
JavaScript
spec/example/index.js
ZenyWay/pbkdf2-sha512
24cfd26c52e73660884e46da8348ba1761b5b001
[ "Apache-2.0" ]
1
2019-03-08T12:55:59.000Z
2019-03-08T12:55:59.000Z
spec/example/index.js
ZenyWay/pbkdf2sha512
24cfd26c52e73660884e46da8348ba1761b5b001
[ "Apache-2.0" ]
null
null
null
spec/example/index.js
ZenyWay/pbkdf2sha512
24cfd26c52e73660884e46da8348ba1761b5b001
[ "Apache-2.0" ]
null
null
null
!function(){return function t(e,n,r){function i(o,u){if(!n[o]){if(!e[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(a)return a(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var c=n[o]={exports:{}};e[o][0].call(c.exports,function(t){return i(e[o][1][t]||t)},c,c.exports,t,e,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}}()({1:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=new Terminal({cursorBlink:!0,rows:24,scrollback:48,tabStopWidth:2});r.open(document.querySelector("#terminal"));var i=JSON.stringify.bind(JSON);n.default=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.writeln([t].concat(e.map(i)).join(" "))}}},{}],2:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(3),i=t(1),a=r.default({iterations:8192,length:32}),o=r.default({encoding:"none",iterations:8192,length:32});i.default("example:")("digest passphrase..."),a("secret passphrase").then(i.default("example:digest:")),o("secret passphrase").then(i.default("example:raw-digest:"))},{1:1,3:3}],3:[function(t,e,n){(function(e){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var i=t(4),a={encoding:["base64","utf8","latin1","binary","ascii","hex","none"],salt:{default:64,min:32},iterations:{default:65536,min:8192},length:{default:64,min:32,max:64}};function o(t){try{return t&&i.isArrayBuffer(t.buffer)?e.from(t.buffer):t}catch(e){return t}}function u(t,n){return"none"!==n&&i.isString(t)?e.from(t.valueOf(),n):t}var s=function(){function n(t,e,n,r,i){this.pbkdf2=t,this.encoding=e,this.salt=n,this.iterations=r,this.length=i,this.hmac="sha512"}return n.prototype.hash=function(t){var e=this,n={encoding:this.encoding,salt:this.salt.chars||this.salt.bytes,iterations:this.iterations,length:this.length,hmac:this.hmac};return new Promise(function(r,i){e.pbkdf2(t,e.salt.bytes,e.iterations,e.length,e.hmac,function(t,a){t&&i(t);var o="none"===e.encoding?a:a.toString(e.encoding);r({value:o,spec:n})})})},n.getKdf=function(s){var f=s&&s.pbkdf2||t("pbkdf2").pbkdf2,c=function(t,n){var s=r({},n),f=function(t){var e=i.isString(t)&&t.valueOf();return a.encoding.indexOf(e)>=0?e:a.encoding[0]}(s.encoding),c=function(t,n,r){var s=o(function(t,e){return i.isNumber(e)?t(e.valueOf()):e}(t,u(n,r)));return e.isBuffer(s)&&s.length>=a.salt.min?e.from(s):t(a.salt.default)}(t,s.salt,f),l={encoding:f,salt:{bytes:c},iterations:function(t,e){var n=i.isNumber(t)&&Math.floor(t.valueOf());return t>=(e?1:a.iterations.min)?n:a.iterations.default}(s.iterations,s.relaxed),length:function(t){var e=i.isNumber(t)&&t.valueOf();return t>=a.length.min&&t<=a.length.max?e:a.length.default}(s.length)};return"none"!==f&&(l.salt.chars=c.toString(f)),l}(s&&s.randombytes||t("randombytes"),s),l=new n(f,c.encoding,c.salt,c.iterations,c.length);return function(t){var n=o(u(t,"utf8"));return e.isBuffer(n)?l.hash(n):Promise.reject(new TypeError("invalid password"))}},n}().getKdf;n.default=s}).call(this,t("buffer").Buffer)},{4:4,undefined:void 0}],4:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isString=function(t){return"string"==typeof(t&&t.valueOf())},n.isNumber=function(t){return"number"==typeof(t&&t.valueOf())},n.isArrayBuffer=function(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}},{}]},{},[2]);
3,691
3,691
0.700623
e31a70d39cdc7df5aec550adc280d4848b2a3453
16,022
js
JavaScript
Location.js
JoeGIS/Location-Widget
513c8b2d816484189ec717f8509964f1983ec836
[ "MIT" ]
null
null
null
Location.js
JoeGIS/Location-Widget
513c8b2d816484189ec717f8509964f1983ec836
[ "MIT" ]
null
null
null
Location.js
JoeGIS/Location-Widget
513c8b2d816484189ec717f8509964f1983ec836
[ "MIT" ]
null
null
null
///////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////------Location.js-------////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////// // // Version: 2.2 // Author: Joseph Rogan (joseph.rogan@forces.gc.ca canadajebus@gmail.com) // // // This reusable widget allows the user to Goto a map coordinate in MGRS, DD, DMS notation. // A point graphic can also be placed the input location. // // Location widget example // var location = new Location({ // map: mainMap // }, "LocationDiv"); // location.startup(); // // // Changes: // Version 2.2 // -Added .locationWidget { white-space: nowrap; } to css file // Version 2.1 // - Added what3words support. Requires API key and internet access. // Version 2.0 // - Major code structure, html template, and css changes. // - Removed default field strings. // - Combined Lat/Lon DD and DMS tabs. // - Added place holder for future UTM tab. // - Added constructor options to choose which tabs are shown. // - Added feature to fill all fields on map click event // ///////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////// define([ "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "dijit/layout/ContentPane", "dijit/layout/TabContainer", "dojo/_base/declare", "dojo/_base/lang", "dojo/on", "require", "esri/Color", "esri/graphic", "esri/request", "esri/SpatialReference", "esri/geometry/Point", "esri/geometry/webMercatorUtils", "esri/symbols/Font", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/symbols/TextSymbol", "./Location/libs/usng", "dojo/text!./Location/templates/Location.html", "dojo/domReady!" ], function(_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, ContentPane, TabContainer, declare, lang, on, require, Color, Graphic, request, SpatialReference, Point, webMercatorUtils, Font, SimpleMarkerSymbol, SimpleLineSymbol, TextSymbol, usng, dijitTemplate) { return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], { // Set the template .html file templateString: dijitTemplate, // Path to the templates .css file css_path: require.toUrl("./Location/css/Location.css"), // The defaults defaults: { map: null, markerSymbol: SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([0,0,0,1]), 1), new Color([0,0,0,1])), theme: "locationWidget", showLatLon: true, showMGRS: true, showUTM: false, showw3w: false, w3wAPIKey: "" }, // Called when the widget is declared as new object constructor: function(options) { // Mix in the given options with the defaults var properties = lang.mixin({}, this.defaults, options); this.set(properties); this.css = { tc: "tc", tab: "tab", label: "label", selectLatLonFormat: "selectLatLonFormat", inputMGRS: "inputMGRS", inputDD: "inputDD", inputDMS: "inputDMS", selectHemi: "selectHemi", inputw3w: "inputw3w", smallText: "smallText" }; }, // Called after the widget is created postCreate: function() { this.inherited(arguments); var _this = this; // Wire events to fill the fields on map clicks on(this.map, "click", function(evt, $_this) { // Get the map coordinates in lat/lon var mp = webMercatorUtils.webMercatorToGeographic(evt.mapPoint); // If there is a Lat/Lon tab if (_this.showLatLon) { if (mp.y > 0) { _this.inputLatDD.value = mp.y.toFixed(5); _this.selectLatDDHemi.value = "North"; _this.inputLatD.value = Math.floor(mp.y); _this.inputLatM.value = Math.floor((mp.y - Math.floor(mp.y)) * 60); _this.inputLatS.value = Math.round(((mp.y - Math.floor(mp.y) - Math.floor((mp.y - Math.floor(mp.y)) * 60)/60) * 3600) * 10) / 10; _this.selectLatDMSHemi.value = "North"; } else { _this.inputLatDD.value = (mp.y.toFixed(5) * -1); _this.selectLatDDHemi.value = "South"; _this.inputLatD.value = Math.floor(mp.y * -1); _this.inputLatM.value = Math.floor(((mp.y * -1) - Math.floor((mp.y * -1))) * 60); _this.inputLatS.value = Math.round((((mp.y * -1) - Math.floor((mp.y * -1)) - Math.floor(((mp.y * -1) - Math.floor((mp.y * -1))) * 60)/60) * 3600) * 10) / 10; _this.selectLatDMSHemi.value = "South"; } if (mp.x > 0) { _this.inputLonDD.value = mp.x.toFixed(5); _this.selectLonDDHemi.value = "East"; _this.inputLonD.value = Math.floor(mp.x); _this.inputLonM.value = Math.floor((mp.x - Math.floor(mp.x)) * 60); _this.inputLonS.value = Math.round(((mp.x - Math.floor(mp.x) - Math.floor((mp.x - Math.floor(mp.x)) * 60)/60) * 3600) * 10) / 10; _this.selectLonDMSHemi.value = "East"; } else { _this.inputLonDD.value = (mp.x.toFixed(5) * -1); _this.selectLonDDHemi.value = "West"; _this.inputLonD.value = Math.floor(mp.x * -1); _this.inputLonM.value = Math.floor(((mp.x * -1) - Math.floor((mp.x * -1))) * 60); _this.inputLonS.value = Math.round((((mp.x * -1) - Math.floor((mp.x * -1)) - Math.floor(((mp.x * -1) - Math.floor((mp.x * -1))) * 60)/60) * 3600) * 10) / 10; _this.selectLonDMSHemi.value = "West"; } } // If there is a MGRS tab if (_this.showMGRS) { // Get and format MGRS (Polar zones are not supported) var mgrs = usng.LLtoMGRS(mp.y, mp.x, 5); if (mgrs.indexOf("NaN") == -1) mgrs = _this._addSpacesToMGRS(mgrs); else mgrs = "Undetermined"; _this.inputMGRS.value = mgrs; } // If there is a UTM tab if (_this.showUTM) { // Get and format MGRS (Polar zones are not supported) var mgrs = usng.LLtoMGRS(mp.y, mp.x, 5); if (mgrs.indexOf("NaN") == -1) mgrs = _this._addSpacesToMGRS(mgrs); else mgrs = "Undetermined"; _this.inputUTM.value = mgrs; } // If there is a w3w tab if (_this.showw3w) { //Request the w3w var w3wRequest = request({ url: "http://api.what3words.com/position", handleAs: "json", content: { key: _this.w3wAPIKey, lang: "en", position: "'" + mp.y + "," + mp.x + "'" } }); // Handle the response w3wRequest.then( function(response){ _this.inputw3w.value = response.words[0] + "." + response.words[1] + '.' + response.words[2]; }); } }); // Remove tabs that have had showName set to false if (!this.showLatLon) this.tc.removeChild(this.tabLatLon); if (!this.showMGRS) this.tc.removeChild(this.tabMGRS); if (!this.showUTM) this.tc.removeChild(this.tabUTM); if (!this.showw3w) this.tc.removeChild(this.tabw3w); }, // Called when the widget resize event is fired (required for layout widgets within template) resize: function() { this.tc.resize(arguments); }, // Called when the widget.startup() is used to view the widget startup: function() { this.inherited(arguments); }, // Called when the lat/lon format is changed _changeLatLonFormat: function() { if (this.selectLatLonFormat.value == "DD") { this.divDD.style.display = ""; this.divDMS.style.display = "none"; } else if (this.selectLatLonFormat.value == "DMS") { this.divDD.style.display = "none"; this.divDMS.style.display = ""; } }, // Called when the Go To button is clicked _onGoTo: function() { this._onActionPoint("GoTo"); }, // Called when the Add Point button is clicked _onAddPoint: function() { this._onActionPoint("AddPoint"); }, // Called when an action needs to be performed on a point, either GoTo or AddPoint _onActionPoint: function(action) { // React based on the tab that is selected // MGRS tab if (this.tc.selectedChildWidget.title == "MGRS") { // Convert the MGRS back to latlng and set it to the features geometry var latlng = []; latlong = usng.USNGtoLL(this.inputMGRS.value, latlng); // Do the action if (action == "GoTo") this._goTo(latlng[0], latlng[1]); else if (action == "AddPoint") this._addPoint(latlng[0], latlng[1]); } // UTM tab else if (this.tc.selectedChildWidget.title == "UTM") { // Convert the MGRS back to latlng and set it to the features geometry var latlng = []; latlong = usng.USNGtoLL(this.inputUTM.value, latlng); // Do the action if (action == "GoTo") this._goTo(latlng[0], latlng[1]); else if (action == "AddPoint") this._addPoint(latlng[0], latlng[1]); } // Lat/Lon tab else if (this.tc.selectedChildWidget.title == "Lat/Lon") { // Format that is select if (this.selectLatLonFormat.value == "DD") { // Calculate the decimal degrees values var lat = Number(this.inputLatDD.value); if (this.selectLatDDHemi.value == "South") lat *= -1; var lon = Number(this.inputLonDD.value); if (this.selectLonDDHemi.value == "West") lon *= -1; // Do the action if (action == "GoTo") this._goTo(lat, lon); else if (action == "AddPoint") this._addPoint(lat, lon); } else if (this.selectLatLonFormat.value == "DMS") { // Calculate the decimal degrees values var lat = Number(this.inputLatD.value) + (Number(this.inputLatM.value) / 60) + (Number(this.inputLatS.value) / 3600); if (this.selectLatDMSHemi.value == "South") lat *= -1; var lon = Number(this.inputLonD.value) + (Number(this.inputLonM.value) / 60) + (Number(this.inputLonS.value) / 3600); if (this.selectLonDMSHemi.value == "West") lon *= -1; // Do the action if (action == "GoTo") this._goTo(lat, lon); else if (action == "AddPoint") this._addPoint(lat, lon); } } // w3w tab else if (this.tc.selectedChildWidget.title == "w3w") { //Request the w3w var w3wRequest = request({ url: "http://api.what3words.com/w3w", handleAs: "json", content: { key: this.w3wAPIKey, lang: "en", string: this.inputw3w.value } }); // Handle the response var _this = this; w3wRequest.then( function(response, $action, $_this){ // Do the action if (action == "GoTo") _this._goTo(response.position[0], response.position[1]); else if (action == "AddPoint") _this._addPoint(response.position[0], response.position[1]); }); } }, // Goes to a lat, lon location _goTo: function (lat, lon) { // Create a new point, wgs84 var newPoint = new Point(lon, lat, new SpatialReference({wkid: 4326})); // Create a feature (Graphic object) var newGraphic = new Graphic(newPoint, null, null); // Center and zoom on the new feature this.map.centerAndZoom(newGraphic.geometry, this.map.getMaxZoom() - 2); }, // Add the point to the map _addPoint: function (lat, lon) { // Text symbol // var symbol = new TextSymbol(this.inputMGRS.value).setColor( // new Color([0,0,0,1])).setAlign(Font.ALIGN_START).setAngle(0).setDecoration("none").setFont( // new Font("12pt").setWeight(Font.WEIGHT_NORMAL).setStyle(Font.STYLE_NORMAL).setFamily("Arial")); // Add to the map's graphics layer this.map.graphics.add(new Graphic(new Point(lon, lat, new SpatialReference({wkid: 4326})), this.markerSymbol)); }, // Clears all graphics _onClearGraphic: function () { this.map.graphics.clear(); }, // Adds spaces to an mgrs string _addSpacesToMGRS: function(mgrs) { if (mgrs.length == 14) mgrs = "0" + mgrs; return mgrs.substr(0, mgrs.length-12) + " " + mgrs.substr(mgrs.length-12, mgrs.length-13) + " " + mgrs.substr(mgrs.length-10, mgrs.length-10) + " " + mgrs.substr(mgrs.length-5); } }); });
41.507772
191
0.452565
e31aa3e7e6ef23a7890d729e98c2a1fdb1f819b4
348,834
js
JavaScript
public/assets/tinymce/themes/silver/theme-73b35fe534790e4dc52d959f44c5b3f8bdfec64234d57e01277b528cd94028dd.js
cristianmejia/comunidadmexico
eb24a6b01a6469fafac4baa8f60177374250a906
[ "Unlicense" ]
null
null
null
public/assets/tinymce/themes/silver/theme-73b35fe534790e4dc52d959f44c5b3f8bdfec64234d57e01277b528cd94028dd.js
cristianmejia/comunidadmexico
eb24a6b01a6469fafac4baa8f60177374250a906
[ "Unlicense" ]
null
null
null
public/assets/tinymce/themes/silver/theme-73b35fe534790e4dc52d959f44c5b3f8bdfec64234d57e01277b528cd94028dd.js
cristianmejia/comunidadmexico
eb24a6b01a6469fafac4baa8f60177374250a906
[ "Unlicense" ]
null
null
null
!function(b){"use strict";function h(o){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=r.concat(t);return o.apply(null,e)}}function v(t,n){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)n.indexOf(o[r])<0&&(e[o[r]]=t[o[r]])}return e}function o(t,n,e,o,r){return t(e,o)?tt.some(e):et(r)&&r(e)?tt.none():n(e,o,r)}function t(o,r){var t=function(t){var n=r(t);if(n<=0||null===n){var e=Ou(t,o);return parseFloat(e)||0}return n},i=function(r,t){return dt(t,function(t,n){var e=Ou(r,n),o=e===undefined?0:parseInt(e,10);return isNaN(o)?t:t+o},0)};return{set:function(t,n){if(!ot(n)&&!n.match(/^[0-9]+$/))throw new Error(o+".set accepts only positive integer values. Value was "+n);var e=t.dom();xu(e)&&(e.style[o]=n+"px")},get:t,getOuter:t,aggregate:i,max:function(t,n,e){var o=i(t,e);return o<n?n-o:0}}}function c(r,i,u){var a=i.backstage;return{open:function(t,n){var e=function(){n(),kg.hide(r)},o=ju(_g.sketch({text:t.text,level:it(["success","error","warning","info"],t.type)?t.type:undefined,progress:!0===t.progressBar,icon:tt.from(t.icon),onAction:e,iconProvider:a.shared.providers.icons,translationProvider:a.shared.providers.translate})),r=ju(kg.sketch({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:i.backstage.shared.getSink,fireDismissalEventInstead:{}}));return u.add(r),t.timeout&&Mg.setTimeout(function(){e()},t.timeout),{close:e,moveTo:function(t,n){kg.showAt(r,{anchor:"makeshift",x:t,y:n},Uu(o))},moveRel:function(){kg.showAt(r,i.backstage.shared.anchors.banner(),Uu(o))},text:function(t){_g.updateText(o,t)},settings:t,getEl:function(){},progressBar:{value:function(t){_g.updateProgress(o,t)}}}},close:function(t){t.close()},reposition:function(t){st(t,function(t){t.moveTo(0,0)}),function(e){if(0<e.length){var t=e.slice(0,1)[0],n=(o=r).inline?o.getElement():o.getContentAreaContainer();t.moveRel(n,"tc-tc"),st(e,function(t,n){0<n&&t.moveRel(e[n-1].getEl(),"bc-tc")})}var o}(t)},getArgs:function(t){return t.settings}}}function s(e,o){var r=null;return{cancel:function(){null!==r&&(b.clearTimeout(r),r=null)},schedule:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r=b.setTimeout(function(){e.apply(null,t),r=null},o)}}}function n(){var i={};return{registerId:function(o,r,t){Dt(t,function(t,n){var e=i[n]!==undefined?i[n]:{};e[r]=eu(t,o),i[n]=e})},unregisterId:function(n){Dt(i,function(t){t.hasOwnProperty(n)&&delete t[n]})},filterByType:function(t){return Jt(i,t).map(function(t){return Mt(t,function(t,n){return Kh(n,t)})}).getOr([])},find:function(t,n,e){var r=qt(n)(i);return yi(e,function(t){return e=r,ji(o=t).fold(function(){return tt.none()},function(t){var n=qt(t);return e.bind(n).map(function(t){return qh(o,t)})});var e,o},t)}}}function y(){var o=n(),r={},i=function(o){var t=o.element();return ji(t).fold(function(){return t="uid-",n=o.element(),e=Oo(zi+t),Li(n,e),e;var t,n,e},function(t){return t})},u=function(t){ji(t.element()).each(function(t){delete r[t],o.unregisterId(t)})};return{find:function(t,n,e){return o.find(t,n,e)},filter:function(t){return o.filterByType(t)},register:function(t){var n=i(t);tn(r,n)&&function(t,n){var e=r[n];if(e!==t)throw new Error('The tagId "'+n+'" is already used by: '+lo(e.element())+"\nCannot use it for: "+lo(t.element())+"\nThe conflicting element is"+(mi(e.element())?" ":" not ")+"already in the DOM");u(t)}(t,n);var e=[t];o.registerId(e,n,t.events()),r[n]=t},unregister:u,getById:function(t){return qt(t)(r)}}}function e(t,n){return i(b.document.createElement("canvas"),t,n)}function r(t){return t.getContext("2d")}function i(t,n,e){return t.width=n,t.height=e,t}function u(){return new(Te.getOrDie("FileReader"))}function a(a){return new Jw(function(t,n){function e(){u(),t(i)}function o(){u(),n("Unable to load data of type "+a.type+": "+r)}var r=b.URL.createObjectURL(a),i=new b.Image,u=function(){i.removeEventListener("load",e),i.removeEventListener("error",o)};i.addEventListener("load",e),i.addEventListener("error",o),i.src=r,i.complete&&e()})}function f(o){return new Jw(function(t,e){var n=new b.XMLHttpRequest;n.open("GET",o,!0),n.responseType="blob",n.onload=function(){200==this.status&&t(this.response)},n.onerror=function(){var t,n=this;e(0===this.status?((t=new Error("No access to download image")).code=18,t.name="SecurityError",t):new Error("Error "+n.status+" downloading image"))},n.send()})}function l(t){var n=t.split(","),e=/data:([^;]+)/.exec(n[0]);if(!e)return tt.none();for(var o,r=e[1],i=n[1],u=$w.atob(i),a=u.length,c=Math.ceil(a/1024),s=new Array(c),f=0;f<c;++f){for(var l=1024*f,d=Math.min(l+1024,a),m=new Array(d-l),g=l,p=0;g<d;++p,++g)m[p]=u[g].charCodeAt(0);s[f]=(o=m,new(Te.getOrDie("Uint8Array"))(o))}return tt.some(function h(t,n){return new(Te.getOrDie("Blob"))(t,n)}(s,{type:r}))}function d(e){return new Jw(function(t,n){l(e).fold(function(){n("uri is not base64: "+e)},t)})}function m(e){return new Jw(function(t){var n=u();n.onloadend=function(){t(n.result)},n.readAsDataURL(e)})}function g(t,n,e){function o(n,e){return t.then(function(t){return Qw.canvasToDataURL(t,n,e)})}var r=n.type;return{getType:Z(r),toBlob:function i(){return Jw.resolve(n)},toDataURL:function u(){return e},toBase64:function a(){return e.split(",")[1]},toAdjustedBlob:function c(n,e){return t.then(function(t){return Qw.canvasToBlob(t,n,e)})},toAdjustedDataURL:o,toAdjustedBase64:function s(t,n){return o(t,n).then(function(t){return t.split(",")[1]})},toCanvas:function f(){return t.then(qw.clone)}}}function p(n){return Qw.blobToDataUri(n).then(function(t){return g(Qw.blobToCanvas(n),n,t)})}function x(t,n,e){return e<(t=parseFloat(t))?t=e:t<n&&(t=n),t}function w(t,n){var e,o,r,i,u=[],a=new Array(10);for(e=0;e<5;e++){for(o=0;o<5;o++)u[o]=n[o+5*e];for(o=0;o<5;o++){for(r=i=0;r<5;r++)i+=t[o+5*r]*u[r];a[o+5*e]=i}}return a}function S(t,e){return e=x(e,0,1),t.map(function(t,n){return n%6==0?t=1-(1-t)*e:t*=e,x(t,0,1)})}function C(n,e){return n.toCanvas().then(function(t){return function i(t,n,e){var o,r=qw.get2dContext(t);return o=function B(t,n){var e,o,r,i,u,a=t.data,c=n[0],s=n[1],f=n[2],l=n[3],d=n[4],m=n[5],g=n[6],p=n[7],h=n[8],v=n[9],b=n[10],y=n[11],x=n[12],w=n[13],S=n[14],C=n[15],k=n[16],O=n[17],E=n[18],T=n[19];for(u=0;u<a.length;u+=4)e=a[u],o=a[u+1],r=a[u+2],i=a[u+3],a[u]=e*c+o*s+r*f+i*l+d,a[u+1]=e*m+o*g+r*p+i*h+v,a[u+2]=e*b+o*y+r*x+i*w+S,a[u+3]=e*C+o*k+r*O+i*E+T;return t}(r.getImageData(0,0,t.width,t.height),e),r.putImageData(o,0,0),Zw.fromCanvas(t,n)}(t,n.getType(),e)})}function k(n,e){return n.toCanvas().then(function(t){return function i(t,n,e){var o,r=qw.get2dContext(t);return o=function x(t,n,e){function o(t,n,e){return e<t?t=e:t<n&&(t=n),t}var r,i,u,a,c,s,f,l,d,m,g,p,h,v,b,y;for(u=Math.round(Math.sqrt(e.length)),a=Math.floor(u/2),r=t.data,i=n.data,b=t.width,y=t.height,s=0;s<y;s++)for(c=0;c<b;c++){for(f=l=d=0,g=0;g<u;g++)for(m=0;m<u;m++)p=o(c+m-a,0,b-1),h=4*(o(s+g-a,0,y-1)*b+p),v=e[g*u+m],f+=r[h]*v,l+=r[h+1]*v,d+=r[h+2]*v;i[h=4*(s*b+c)]=o(f,0,255),i[h+1]=o(l,0,255),i[h+2]=o(d,0,255)}return n}(r.getImageData(0,0,t.width,t.height),o=r.getImageData(0,0,t.width,t.height),e),r.putImageData(o,0,0),Zw.fromCanvas(t,n)}(t,n.getType(),e)})}function O(c){return function(n,e){return n.toCanvas().then(function(t){return function(t,n,e){var o,r,i=qw.get2dContext(t),u=new Array(256);for(r=0;r<u.length;r++)u[r]=c(r,e);return o=function a(t,n){var e,o=t.data;for(e=0;e<o.length;e+=4)o[e]=n[o[e]],o[e+1]=n[o[e+1]],o[e+2]=n[o[e+2]];return t}(i.getImageData(0,0,t.width,t.height),u),i.putImageData(o,0,0),Zw.fromCanvas(t,n)}(t,n.getType(),e)})}}function E(e){return function(t,n){return C(t,e(eS.identity(),n))}}function T(n){return function(t){return k(t,n)}}function B(t){var n,e;if(t.changedTouches)for(n="screenX screenY pageX pageY clientX clientY".split(" "),e=0;e<n.length;e++)t[n[e]]=t.changedTouches[0][n[e]]}function D(t,r){var i,u,n,a,c,f,l,d=r.document||b.document;r=r||{};var m=d.getElementById(r.handle||t);n=function(t){var n,e,o=function s(t){var n,e,o,r,i,u,a,c=Math.max;return n=t.documentElement,e=t.body,o=c(n.scrollWidth,e.scrollWidth),r=c(n.clientWidth,e.clientWidth),i=c(n.offsetWidth,e.offsetWidth),u=c(n.scrollHeight,e.scrollHeight),a=c(n.clientHeight,e.clientHeight),{width:o<i?r:o,height:u<c(n.offsetHeight,e.offsetHeight)?a:u}}(d);B(t),t.preventDefault(),u=t.button,n=m,f=t.screenX,l=t.screenY,e=b.window.getComputedStyle?b.window.getComputedStyle(n,null).getPropertyValue("cursor"):n.runtimeStyle.cursor,i=jS("<div></div>").css({position:"absolute",top:0,left:0,width:o.width,height:o.height,zIndex:2147483647,opacity:1e-4,cursor:e}).appendTo(d.body),jS(d).on("mousemove touchmove",c).on("mouseup touchend",a),r.start(t)},c=function(t){if(B(t),t.button!==u)return a(t);t.deltaX=t.screenX-f,t.deltaY=t.screenY-l,t.preventDefault(),r.drag(t)},a=function(t){B(t),jS(d).off("mousemove touchmove",c).off("mouseup touchend",a),i.remove(),r.stop&&r.stop(t)},this.destroy=function(){jS(m).off()},jS(m).on("mousedown touchstart",n)}var A,_,M,F,I,V,R,Q=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]},H=function(e,o){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(o.apply(null,t))}},Z=function(t){return function(){return t}},U=function(t){return t},N=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},z=function(t){return function(){throw new Error(t)}},P=Z(!1),L=Z(!0),j=P,W=L,G=function(){return X},X=(F={fold:function(t){return t()},is:j,isSome:j,isNone:W,getOr:M=function(t){return t},getOrThunk:_=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:M,orThunk:_,map:G,ap:G,each:function(){},bind:G,flatten:G,exists:j,forall:W,filter:G,equals:A=function(t){return t.isNone()},equals_:A,toArray:function(){return[]},toString:Z("none()")},Object.freeze&&Object.freeze(F),F),Y=function(e){var t=function(){return e},n=function(){return r},o=function(t){return t(e)},r={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:W,isNone:j,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return Y(t(e))},ap:function(t){return t.fold(G,function(t){return Y(t(e))})},each:function(t){t(e)},bind:o,flatten:t,exists:o,forall:o,filter:function(t){return t(e)?r:X},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(j,function(t){return n(e,t)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return r},tt={some:Y,none:G,from:function(t){return null===t||t===undefined?X:Y(t)}},q=function(n){return function(t){return function(t){if(null===t)return"null";var n=typeof t;return"object"===n&&Array.prototype.isPrototypeOf(t)?"array":"object"===n&&String.prototype.isPrototypeOf(t)?"string":n}(t)===n}},K=q("string"),J=q("object"),$=q("array"),nt=q("boolean"),et=q("function"),ot=q("number"),rt=(I=Array.prototype.indexOf)===undefined?function(t,n){return pt(t,n)}:function(t,n){return I.call(t,n)},it=function(t,n){return-1<rt(t,n)},ut=function(t,n){return gt(t,n).isSome()},at=function(t,n){for(var e=[],o=0;o<t.length;o+=n){var r=t.slice(o,o+n);e.push(r)}return e},ct=function(t,n){for(var e=t.length,o=new Array(e),r=0;r<e;r++){var i=t[r];o[r]=n(i,r,t)}return o},st=function(t,n){for(var e=0,o=t.length;e<o;e++)n(t[e],e,t)},ft=function(t,n){for(var e=[],o=0,r=t.length;o<r;o++){var i=t[o];n(i,o,t)&&e.push(i)}return e},lt=function(t,n,e){return function(t,n){for(var e=t.length-1;0<=e;e--)n(t[e],e,t)}(t,function(t){e=n(e,t)}),e},dt=function(t,n,e){return st(t,function(t){e=n(e,t)}),e},mt=function(t,n){for(var e=0,o=t.length;e<o;e++){var r=t[e];if(n(r,e,t))return tt.some(r)}return tt.none()},gt=function(t,n){for(var e=0,o=t.length;e<o;e++)if(n(t[e],e,t))return tt.some(e);return tt.none()},pt=function(t,n){for(var e=0,o=t.length;e<o;++e)if(t[e]===n)return e;return-1},ht=Array.prototype.push,vt=function(t){for(var n=[],e=0,o=t.length;e<o;++e){if(!Array.prototype.isPrototypeOf(t[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+t);ht.apply(n,t[e])}return n},bt=function(t,n){var e=ct(t,n);return vt(e)},yt=function(t,n){for(var e=0,o=t.length;e<o;++e)if(!0!==n(t[e],e,t))return!1;return!0},xt=Array.prototype.slice,wt=function(t){var n=xt.call(t,0);return n.reverse(),n},St=function(t,n){return ft(t,function(t){return!it(n,t)})},Ct=function(t){return[t]},kt=function(t){return 0===t.length?tt.none():tt.some(t[0])},Ot=function(t){return 0===t.length?tt.none():tt.some(t[t.length-1])},Et=et(Array.from)?Array.from:function(t){return xt.call(t)},Tt=Object.keys,Bt=Object.hasOwnProperty,Dt=function(t,n){for(var e=Tt(t),o=0,r=e.length;o<r;o++){var i=e[o];n(t[i],i,t)}},At=function(t,o){return _t(t,function(t,n,e){return{k:n,v:o(t,n,e)}})},_t=function(o,r){var i={};return Dt(o,function(t,n){var e=r(t,n,o);i[e.k]=e.v}),i},Mt=function(t,e){var o=[];return Dt(t,function(t,n){o.push(e(t,n))}),o},Ft=function(t){return Mt(t,function(t){return t})},It=function(t,n){return Vt(t,n)?tt.from(t[n]):tt.none()},Vt=function(t,n){return Bt.call(t,n)},Rt=function(n){return function(t){return Vt(t,n)?tt.from(t[n]):tt.none()}},Ht=function(t,n){return Rt(n)(t)},Nt=function(t,n){var e={};return e[t]=n,e},zt=function(e){return{is:function(t){return e===t},isValue:L,isError:P,getOr:Z(e),getOrThunk:Z(e),getOrDie:Z(e),or:function(){return zt(e)},orThunk:function(){return zt(e)},fold:function(t,n){return n(e)},map:function(t){return zt(t(e))},mapError:function(){return zt(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOption:function(){return tt.some(e)}}},Pt=function(n){return{is:P,isValue:P,isError:L,getOr:U,getOrThunk:function(t){return t()},getOrDie:function(){return z(String(n))()},or:function(t){return t},orThunk:function(t){return t()},fold:function(t){return t(n)},map:function(){return Pt(n)},mapError:function(t){return Pt(t(n))},each:Q,bind:function(){return Pt(n)},exists:P,forall:L,toOption:tt.none}},Lt={value:zt,error:Pt},jt=function(u){if(!$(u))throw new Error("cases must be an array");if(0===u.length)throw new Error("there must be at least one case");var a=[],e={};return st(u,function(t,o){var n=Tt(t);if(1!==n.length)throw new Error("one and only one name per case");var r=n[0],i=t[r];if(e[r]!==undefined)throw new Error("duplicate key detected:"+r);if("cata"===r)throw new Error("cannot have a case named cata (sorry)");if(!$(i))throw new Error("case arguments must be an array");a.push(r),e[r]=function(){var t=arguments.length;if(t!==i.length)throw new Error("Wrong number of arguments to case "+r+". Expected "+i.length+" ("+i+"), got "+t);for(var e=new Array(t),n=0;n<e.length;n++)e[n]=arguments[n];return{fold:function(){if(arguments.length!==u.length)throw new Error("Wrong number of arguments to fold. Expected "+u.length+", got "+arguments.length);return arguments[o].apply(null,e)},match:function(t){var n=Tt(t);if(a.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+a.join(",")+"\nActual: "+n.join(","));if(!yt(a,function(t){return it(n,t)}))throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+a.join(", "));return t[r].apply(null,e)},log:function(t){b.console.log(t,{constructors:a,constructor:r,params:e})}}}}),e},Ut=(jt([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),Object.prototype.hasOwnProperty),Wt=function(u){return function(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var e={},o=0;o<t.length;o++){var r=t[o];for(var i in r)Ut.call(r,i)&&(e[i]=u(e[i],r[i]))}return e}},Gt=Wt(function(t,n){return J(t)&&J(n)?Gt(t,n):n}),Xt=Wt(function(t,n){return n}),Yt=function(t,n){return e=n,o={},Dt(t,function(t,n){it(e,n)||(o[n]=t)}),o;var e,o},qt=function(t){return Rt(t)},Kt=function(t,n){return e=t,o=n,function(t){return Vt(t,e)?t[e]:o};var e,o},Jt=function(t,n){return Ht(t,n)},$t=function(t,n){return Nt(t,n)},Qt=function(t){return n={},st(t,function(t){n[t.key]=t.value}),n;var n},Zt=function(t,n){var e,o,r,i,u,a=(e=[],o=[],st(t,function(t){t.fold(function(t){e.push(t)},function(t){o.push(t)})}),{errors:e,values:o});return 0<a.errors.length?(u=a.errors,H(Lt.error,vt)(u)):(i=n,0===(r=a.values).length?Lt.value(i):Lt.value(Gt(i,Xt.apply(undefined,r))))},tn=function(t,n){return Vt(e=t,o=n)&&e[o]!==undefined&&null!==e[o];var e,o},nn=function(t){var n=t,e=function(){return n};return{get:e,set:function(t){n=t},clone:function(){return nn(e())}}},en=function(t){for(var n=[],e=function(t){n.push(t)},o=0;o<t.length;o++)t[o].each(e);return n},on=function(t,n){for(var e=0;e<t.length;e++){var o=n(t[e],e);if(o.isSome())return o}return tt.none()},rn=Z("touchstart"),un=Z("touchmove"),an=Z("touchend"),cn=Z("mousedown"),sn=Z("mousemove"),fn=Z("mouseout"),ln=Z("mouseup"),dn=Z("mouseover"),mn=Z("focusin"),gn=Z("focusout"),pn=Z("keydown"),hn=Z("keyup"),vn=Z("input"),bn=Z("change"),yn=Z("click"),xn=Z("transitionend"),wn=Z("selectstart"),Sn=function(e){var o,r=!1;return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r||(r=!0,o=e.apply(null,t)),o}},Cn=function(t,n){var e=function(t,n){for(var e=0;e<t.length;e++){var o=t[e];if(o.test(n))return o}return undefined}(t,n);if(!e)return{major:0,minor:0};var o=function(t){return Number(n.replace(e,"$"+t))};return On(o(1),o(2))},kn=function(){return On(0,0)},On=function(t,n){return{major:t,minor:n}},En={nu:On,detect:function(t,n){var e=String(n).toLowerCase();return 0===t.length?kn():Cn(t,e)},unknown:kn},Tn="Firefox",Bn=function(t,n){return function(){return n===t}},Dn=function(t){var n=t.current;return{current:n,version:t.version,isEdge:Bn("Edge",n),isChrome:Bn("Chrome",n),isIE:Bn("IE",n),isOpera:Bn("Opera",n),isFirefox:Bn(Tn,n),isSafari:Bn("Safari",n)}},An={unknown:function(){return Dn({current:undefined,version:En.unknown()})},nu:Dn,edge:Z("Edge"),chrome:Z("Chrome"),ie:Z("IE"),opera:Z("Opera"),firefox:Z(Tn),safari:Z("Safari")},_n="Windows",Mn="Android",Fn="Solaris",In="FreeBSD",Vn=function(t,n){return function(){return n===t}},Rn=function(t){var n=t.current;return{current:n,version:t.version,isWindows:Vn(_n,n),isiOS:Vn("iOS",n),isAndroid:Vn(Mn,n),isOSX:Vn("OSX",n),isLinux:Vn("Linux",n),isSolaris:Vn(Fn,n),isFreeBSD:Vn(In,n)}},Hn={unknown:function(){return Rn({current:undefined,version:En.unknown()})},nu:Rn,windows:Z(_n),ios:Z("iOS"),android:Z(Mn),linux:Z("Linux"),osx:Z("OSX"),solaris:Z(Fn),freebsd:Z(In)},Nn=function(t,n){var e=String(n).toLowerCase();return mt(t,function(t){return t.search(e)})},zn=function(t,e){return Nn(t,e).map(function(t){var n=En.detect(t.versionRegexes,e);return{current:t.name,version:n}})},Pn=function(t,e){return Nn(t,e).map(function(t){var n=En.detect(t.versionRegexes,e);return{current:t.name,version:n}})},Ln=function(t,n){return-1!==t.indexOf(n)},jn=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Un=function(n){return function(t){return Ln(t,n)}},Wn=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return Ln(t,"edge/")&&Ln(t,"chrome")&&Ln(t,"safari")&&Ln(t,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,jn],search:function(t){return Ln(t,"chrome")&&!Ln(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return Ln(t,"msie")||Ln(t,"trident")}},{name:"Opera",versionRegexes:[jn,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Un("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Un("firefox")},{name:"Safari",versionRegexes:[jn,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(Ln(t,"safari")||Ln(t,"mobile/"))&&Ln(t,"applewebkit")}}],Gn=[{name:"Windows",search:Un("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return Ln(t,"iphone")||Ln(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Un("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Un("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Un("linux"),versionRegexes:[]},{name:"Solaris",search:Un("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Un("freebsd"),versionRegexes:[]}],Xn={browsers:Z(Wn),oses:Z(Gn)},Yn=function(t){var n,e,o,r,i,u,a,c,s,f,l,d=Xn.browsers(),m=Xn.oses(),g=zn(d,t).fold(An.unknown,An.nu),p=Pn(m,t).fold(Hn.unknown,Hn.nu);return{browser:g,os:p,deviceType:(e=g,o=t,r=(n=p).isiOS()&&!0===/ipad/i.test(o),i=n.isiOS()&&!r,u=n.isAndroid()&&3===n.version.major,a=n.isAndroid()&&4===n.version.major,c=r||u||a&&!0===/mobile/i.test(o),s=n.isiOS()||n.isAndroid(),f=s&&!c,l=e.isSafari()&&n.isiOS()&&!1===/safari/i.test(o),{isiPad:Z(r),isiPhone:Z(i),isTablet:Z(c),isPhone:Z(f),isTouch:Z(s),isAndroid:n.isAndroid,isiOS:n.isiOS,isWebView:Z(l)})}},qn={detect:Sn(function(){var t=b.navigator.userAgent;return Yn(t)})},Kn={tap:Z("alloy.tap")},Jn=Z("alloy.focus"),$n=Z("alloy.blur.post"),Qn=Z("alloy.paste.post"),Zn=Z("alloy.receive"),te=Z("alloy.execute"),ne=Z("alloy.focus.item"),ee=Kn.tap,oe=qn.detect().deviceType.isTouch()?Kn.tap:yn,re=Z("alloy.longpress"),ie=Z("alloy.sandbox.close"),ue=Z("alloy.typeahead.cancel"),ae=Z("alloy.system.init"),ce=Z("alloy.system.scroll"),se=Z("alloy.system.resize"),fe=Z("alloy.system.attached"),le=Z("alloy.system.detached"),de=Z("alloy.system.dismissRequested"),me=Z("alloy.focusmanager.shifted"),ge=Z("alloy.slotcontainer.visibility"),pe=Z("alloy.change.tab"),he=Z("alloy.dismiss.tab"),ve=Z("alloy.highlight"),be=Z("alloy.dehighlight"),ye=function(t){if(null===t||t===undefined)throw new Error("Node cannot be null or undefined");return{dom:Z(t)}},xe={fromHtml:function(t,n){var e=(n||b.document).createElement("div");if(e.innerHTML=t,!e.hasChildNodes()||1<e.childNodes.length)throw b.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return ye(e.childNodes[0])},fromTag:function(t,n){var e=(n||b.document).createElement(t);return ye(e)},fromText:function(t,n){var e=(n||b.document).createTextNode(t);return ye(e)},fromDom:ye,fromPoint:function(t,n,e){var o=t.dom();return tt.from(o.elementFromPoint(n,e)).map(ye)}},we=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(n.length!==e.length)throw new Error('Wrong number of arguments to struct. Expected "['+n.length+']", got '+e.length+" arguments");var o={};return st(n,function(t,n){o[t]=Z(e[n])}),o}},Se=function(t){return t.slice(0).sort()},Ce=function(n,t){if(!$(t))throw new Error("The "+n+" fields must be an array. Was: "+t+".");st(t,function(t){if(!K(t))throw new Error("The value "+t+" in the "+n+" fields was not a string.")})},ke=function(r,i){var e,u=r.concat(i);if(0===u.length)throw new Error("You must specify at least one required or optional field.");return Ce("required",r),Ce("optional",i),e=Se(u),mt(e,function(t,n){return n<e.length-1&&t===e[n+1]}).each(function(t){throw new Error("The field: "+t+" occurs more than once in the combined fields: ["+e.join(", ")+"].")}),function(n){var e=Tt(n);yt(r,function(t){return it(e,t)})||function(t,n){throw new Error("All required keys ("+Se(r).join(", ")+") were not specified. Specified keys were: "+Se(n).join(", ")+".")}(0,e);var t=ft(e,function(t){return!it(u,t)});0<t.length&&function(){throw new Error("Unsupported keys for object: "+Se(t).join(", "))}();var o={};return st(r,function(t){o[t]=Z(n[t])}),st(i,function(t){o[t]=Z(Object.prototype.hasOwnProperty.call(n,t)?tt.some(n[t]):tt.none())}),o}},Oe="undefined"!=typeof b.window?b.window:Function("return this;")(),Ee=function(t,o){return function(t){for(var n=o!==undefined&&null!==o?o:Oe,e=0;e<t.length&&n!==undefined&&null!==n;++e)n=n[t[e]];return n}(t.split("."))},Te={getOrDie:function(t,n){var e=Ee(t,n);if(e===undefined||null===e)throw t+" not available on this browser";return e}},Be=(b.Node.ATTRIBUTE_NODE,b.Node.CDATA_SECTION_NODE,b.Node.COMMENT_NODE,b.Node.DOCUMENT_NODE),De=(b.Node.DOCUMENT_TYPE_NODE,b.Node.DOCUMENT_FRAGMENT_NODE,b.Node.ELEMENT_NODE),Ae=b.Node.TEXT_NODE,_e=(b.Node.PROCESSING_INSTRUCTION_NODE,b.Node.ENTITY_REFERENCE_NODE,b.Node.ENTITY_NODE,b.Node.NOTATION_NODE,De),Me=Be,Fe=function(t,n){var e=t.dom();if(e.nodeType!==_e)return!1;if(e.matches!==undefined)return e.matches(n);if(e.msMatchesSelector!==undefined)return e.msMatchesSelector(n);if(e.webkitMatchesSelector!==undefined)return e.webkitMatchesSelector(n);if(e.mozMatchesSelector!==undefined)return e.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")},Ie=function(t){return t.nodeType!==_e&&t.nodeType!==Me||0===t.childElementCount},Ve=function(t,n){var e=n===undefined?b.document:n.dom();return Ie(e)?[]:ct(e.querySelectorAll(t),xe.fromDom)},Re=function(t,n){return t.dom()===n.dom()},He=(qn.detect().browser.isIE(),function(t){return xe.fromDom(t.dom().ownerDocument)}),Ne=function(t){var n=t.dom().ownerDocument.defaultView;return xe.fromDom(n)},ze=function(t){var n=t.dom();return tt.from(n.parentNode).map(xe.fromDom)},Pe=function(t){var n=t.dom();return tt.from(n.offsetParent).map(xe.fromDom)},Le=function(t){var n=t.dom();return ct(n.childNodes,xe.fromDom)},je=function(t,n){var e=t.dom().childNodes;return tt.from(e[n]).map(xe.fromDom)},Ue=(we("element","offset"),function(n,e){ze(n).each(function(t){t.dom().insertBefore(e.dom(),n.dom())})}),We=function(t,n){var e;(e=t.dom(),tt.from(e.nextSibling).map(xe.fromDom)).fold(function(){ze(t).each(function(t){Xe(t,n)})},function(t){Ue(t,n)})},Ge=function(n,e){je(n,0).fold(function(){Xe(n,e)},function(t){n.dom().insertBefore(e.dom(),t.dom())})},Xe=function(t,n){t.dom().appendChild(n.dom())},Ye=function(n,t){st(t,function(t){Xe(n,t)})},qe=function(t){t.dom().textContent="",st(Le(t),function(t){Ke(t)})},Ke=function(t){var n=t.dom();null!==n.parentNode&&n.parentNode.removeChild(n)},Je=function(t){return t.dom().innerHTML},$e=function(t,n){var e,o,r=He(t).dom(),i=xe.fromDom(r.createDocumentFragment()),u=(e=n,(o=(r||b.document).createElement("div")).innerHTML=e,Le(xe.fromDom(o)));Ye(i,u),qe(t),Xe(t,i)},Qe=function(t){return t.dom().nodeName.toLowerCase()},Ze=function(n){return function(t){return t.dom().nodeType===n}},to=Ze(De),no=Ze(Ae),eo=Ze(Be),oo=function(t,n,e){if(!(K(e)||nt(e)||ot(e)))throw b.console.error("Invalid call to Attr.set. Key ",n,":: Value ",e,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,e+"")},ro=function(t,n,e){oo(t.dom(),n,e)},io=function(t,n){var e=t.dom();Dt(n,function(t,n){oo(e,n,t)})},uo=function(t,n){var e=t.dom().getAttribute(n);return null===e?undefined:e},ao=function(t,n){var e=t.dom();return!(!e||!e.hasAttribute)&&e.hasAttribute(n)},co=function(t,n){t.dom().removeAttribute(n)},so=function(t){return n=t,e=!1,xe.fromDom(n.dom().cloneNode(e));var n,e},fo=function(t){var n,e,o;return n=so(t),e=xe.fromTag("div"),o=xe.fromDom(n.dom().cloneNode(!0)),Xe(e,o),Je(e)},lo=function(t){return fo(t)},mo="unknown",go="__CHROME_INSPECTOR_CONNECTION_TO_ALLOY__";(R=V||(V={}))[R.STOP=0]="STOP",R[R.NORMAL=1]="NORMAL",R[R.LOGGING=2]="LOGGING";var po,ho,vo=nn({}),bo=function(n,t,e){var o,r,i,u;switch(Jt(vo.get(),n).orThunk(function(){var t=Tt(vo.get());return on(t,function(t){return-1<n.indexOf(t)?tt.some(vo.get()[t]):tt.none()})}).getOr(V.NORMAL)){case V.NORMAL:return e(Co());case V.LOGGING:var a=(o=n,r=t,i=[],u=(new Date).getTime(),{logEventCut:function(t,n,e){i.push({outcome:"cut",target:n,purpose:e})},logEventStopped:function(t,n,e){i.push({outcome:"stopped",target:n,purpose:e})},logNoParent:function(t,n,e){i.push({outcome:"no-parent",target:n,purpose:e})},logEventNoHandlers:function(t,n){i.push({outcome:"no-handlers-left",target:n})},logEventResponse:function(t,n,e){i.push({outcome:"response",purpose:e,target:n})},write:function(){var t=(new Date).getTime();it(["mousemove","mouseover","mouseout",ae()],o)||b.console.log(o,{event:o,time:t-u,target:r.dom(),sequence:ct(i,function(t){return it(["cut","stopped","response"],t.outcome)?"{"+t.purpose+"} "+t.outcome+" at ("+lo(t.target)+")":t.outcome})})}}),c=e(a);return a.write(),c;case V.STOP:return!0}},yo=["alloy/data/Fields","alloy/debugging/Debugging"],xo=function(t,n,e){return bo(t,n,e)},wo=function(){if(b.window[go]!==undefined)return b.window[go];var n=function(t,n){var e=vo.get();e[t]=n,vo.set(e)};return b.window[go]={systems:{},lookup:function(n){var e=b.window[go].systems,t=Tt(e);return on(t,function(t){return e[t].getByUid(n).toOption().map(function(t){return $t(lo(t.element()),(n=function(e){var t=e.spec();return{"(original.spec)":t,"(dom.ref)":e.element().dom(),"(element)":lo(e.element()),"(initComponents)":ct(t.components!==undefined?t.components:[],n),"(components)":ct(e.components(),n),"(bound.events)":Mt(e.events(),function(t,n){return[n]}).join(", "),"(behaviours)":t.behaviours!==undefined?At(t.behaviours,function(t,n){return t===undefined?"--revoked--":{config:t.configAsRaw(),"original-config":t.initialConfig,state:e.readState(n)}}):"none"}})(t));var n})}).orThunk(function(){return tt.some({error:"Systems ("+t.join(", ")+") did not contain uid: "+n})})},events:{setToNormal:function(t){n(t,V.NORMAL)},setToLogging:function(t){n(t,V.LOGGING)},setToStop:function(t){n(t,V.STOP)}}},b.window[go]},So=function(t,n){wo().systems[t]=n},Co=Z({logEventCut:Q,logEventStopped:Q,logNoParent:Q,logEventNoHandlers:Q,logEventResponse:Q,write:Q}),ko=0,Oo=function(t){var n=(new Date).getTime();return t+"_"+Math.floor(1e9*Math.random())+ ++ko+String(n)},Eo=tinymce.util.Tools.resolve("tinymce.ThemeManager"),To=function(){return(To=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)},Bo=jt([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),Do=function(t){return Bo.defaultedThunk(Z(t))},Ao=Bo.strict,_o=Bo.asOption,Mo=Bo.defaultedThunk,Fo=(Bo.asDefaultedOptionThunk,Bo.mergeWithThunk);(ho=po||(po={}))[ho.Error=0]="Error",ho[ho.Value=1]="Value";var Io,Vo,Ro,Ho,No,zo=function(t,n,e){return t.stype===po.Error?n(t.serror):e(t.svalue)},Po=function(t){return{stype:po.Value,svalue:t}},Lo=function(t){return{stype:po.Error,serror:t}},jo=function(t){return t.fold(Lo,Po)},Uo=function(t){return zo(t,Lt.error,Lt.value)},Wo=Po,Go=function(t){var n=[],e=[];return st(t,function(t){zo(t,function(t){return e.push(t)},function(t){return n.push(t)})}),{values:n,errors:e}},Xo=Lo,Yo=function(t,n){return t.stype===po.Value?n(t.svalue):t},qo=function(t,n){return t.stype===po.Error?n(t.serror):t},Ko=function(t,n){return t.stype===po.Value?{stype:po.Value,svalue:n(t.svalue)}:t},Jo=function(t,n){return t.stype===po.Error?{stype:po.Error,serror:n(t.serror)}:t},$o=function(t){return H(Xo,vt)(t)},Qo=function(t,n){var e,o,r=Go(t);return 0<r.errors.length?$o(r.errors):(o=n,0<(e=r.values).length?Wo(Gt(o,Xt.apply(undefined,e))):Wo(o))},Zo=function(t){var n=Go(t);return 0<n.errors.length?$o(n.errors):Wo(n.values)},tr=jt([{setOf:["validator","valueType"]},{arrOf:["valueType"]},{objOf:["fields"]},{itemOf:["validator"]},{choiceOf:["key","branches"]},{thunk:["description"]},{func:["args","outputSchema"]}]),nr=jt([{field:["name","presence","type"]},{state:["name"]}]),er=function(){return Te.getOrDie("JSON")},or=function(t,n,e){return er().stringify(t,n,e)},rr=function(t){return J(t)&&100<Tt(t).length?" removed due to size":or(t,null,2)},ir=function(t,n){return Xo([{path:t,getErrorInfo:n}])},ur=jt([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),ar=function(e,o,r){return Ht(o,r).fold(function(){return t=r,n=o,ir(e,function(){return'Could not find valid *strict* value for "'+t+'" in '+rr(n)});var t,n},Wo)},cr=function(t,n,e){var o=Ht(t,n).fold(function(){return e(t)},U);return Wo(o)},sr=function(a,c,t,s){return t.fold(function(r,e,t,o){var i=function(t){var n=o.extract(a.concat([r]),s,t);return Ko(n,function(t){return Nt(e,s(t))})},u=function(t){return t.fold(function(){var t=Nt(e,s(tt.none()));return Wo(t)},function(t){var n=o.extract(a.concat([r]),s,t);return Ko(n,function(t){return Nt(e,s(tt.some(t)))})})};return t.fold(function(){return Yo(ar(a,c,r),i) },function(t){return Yo(cr(c,r,t),i)},function(){return Yo(Wo(Ht(c,r)),u)},function(t){return Yo((e=t,o=Ht(n=c,r).map(function(t){return!0===t?e(n):t}),Wo(o)),u);var n,e,o},function(t){var n=t(c),e=Ko(cr(c,r,Z({})),function(t){return Gt(n,t)});return Yo(e,i)})},function(t,n){var e=n(c);return Wo(Nt(t,s(e)))})},fr=function(o){return{extract:function(e,t,n){return qo(o(n,t),function(t){return n=t,ir(e,function(){return n});var n})},toString:function(){return"val"},toDsl:function(){return tr.itemOf(o)}}},lr=function(t){var c=dr(t),s=lt(t,function(n,t){return t.fold(function(t){return Gt(n,$t(t,!0))},Z(n))},{});return{extract:function(t,n,e){var o,r,i,u=nt(e)?[]:(r=Tt(o=e),ft(r,function(t){return tn(o,t)})),a=ft(u,function(t){return!tn(s,t)});return 0===a.length?c.extract(t,n,e):(i=a,ir(t,function(){return"There are unsupported fields: ["+i.join(", ")+"] specified"}))},toString:c.toString,toDsl:c.toDsl}},dr=function(a){return{extract:function(t,n,e){return o=t,r=e,i=n,u=ct(a,function(t){return sr(o,r,t,i)}),Qo(u,{});var o,r,i,u},toString:function(){return"obj{\n"+ct(a,function(t){return t.fold(function(t,n,e,o){return t+" -> "+o.toString()},function(t){return"state("+t+")"})}).join("\n")+"}"},toDsl:function(){return tr.objOf(ct(a,function(t){return t.fold(function(t,n,e,o){return nr.field(t,e,o)},function(t){return nr.state(t)})}))}}},mr=function(r){return{extract:function(e,o,t){var n=ct(t,function(t,n){return r.extract(e.concat(["["+n+"]"]),o,t)});return Zo(n)},toString:function(){return"array("+r.toString()+")"},toDsl:function(){return tr.arrOf(r)}}},gr=function(a,c){return{extract:function(e,o,r){var t,n,i=Tt(r),u=(t=e,n=i,mr(fr(a)).extract(t,U,n));return Yo(u,function(t){var n=ct(t,function(t){return ur.field(t,t,Ao(),c)});return dr(n).extract(e,o,r)})},toString:function(){return"setOf("+c.toString()+")"},toDsl:function(){return tr.setOf(a,c)}}},pr=Z(fr(Wo)),hr=H(mr,dr),vr=ur.state,br=ur.field,yr=function(e,n,o,r,i){return Jt(r,i).fold(function(){return t=r,n=i,ir(e,function(){return'The chosen schema: "'+n+'" did not exist in branches: '+rr(t)});var t,n},function(t){return dr(t).extract(e.concat(["branch: "+i]),n,o)})},xr=function(r,i){return{extract:function(n,e,o){return Jt(o,r).fold(function(){return t=r,ir(n,function(){return'Choice schema did not contain choice key: "'+t+'"'});var t},function(t){return yr(n,e,o,i,t)})},toString:function(){return"chooseOn("+r+"). Possible values: "+Tt(i)},toDsl:function(){return tr.choiceOf(r,i)}}},wr=fr(Wo),Sr=function(n){return fr(function(t){return n(t).fold(Xo,Wo)})},Cr=function(n,t){return gr(function(t){return jo(n(t))},t)},kr=function(t,n,e){return Uo((o=t,r=U,i=e,u=n.extract([o],r,i),Jo(u,function(t){return{input:i,errors:t}})));var o,r,i,u},Or=function(t){return t.fold(function(t){throw new Error(Tr(t))},U)},Er=function(t,n,e){return Or(kr(t,n,e))},Tr=function(t){return"Errors: \n"+(e=10<(n=t.errors).length?n.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):n,ct(e,function(t){return"Failed path: ("+t.path.join(" > ")+")\n"+t.getErrorInfo()}))+"\n\nInput object: "+rr(t.input);var n,e},Br=function(t,n){return xr(t,n)},Dr=Z(wr),Ar=function(e,o){return fr(function(t){var n=typeof t;return e(t)?Wo(t):Xo("Expected type: "+o+" but got: "+n)})},_r=Ar(ot,"number"),Mr=Ar(K,"string"),Fr=Ar(nt,"boolean"),Ir=Ar(et,"function"),Vr=function(n){return Sr(function(t){return it(n,t)?Lt.value(t):Lt.error('Unsupported value: "'+t+'", choose one of "'+n.join(", ")+'".')})},Rr=function(t){return br(t,t,Ao(),pr())},Hr=function(t,n){return br(t,t,Ao(),n)},Nr=function(t){return Hr(t,Mr)},zr=function(t,n){return br(t,t,Ao(),Vr(n))},Pr=function(t){return Hr(t,Ir)},Lr=function(t,n){return br(t,t,Ao(),dr(n))},jr=function(t,n){return br(t,t,Ao(),hr(n))},Ur=function(t,n){return br(t,t,Ao(),mr(n))},Wr=function(t){return br(t,t,_o(),pr())},Gr=function(t,n){return br(t,t,_o(),n)},Xr=function(t){return Gr(t,Mr)},Yr=function(t){return Gr(t,Ir)},qr=function(t,n){return br(t,t,_o(),dr(n))},Kr=function(t,n){return br(t,t,Do(n),pr())},Jr=function(t,n,e){return br(t,t,Do(n),e)},$r=function(t,n){return Jr(t,n,_r)},Qr=function(t,n){return Jr(t,n,Mr)},Zr=function(t,n,e){return Jr(t,n,Vr(e))},ti=function(t,n){return Jr(t,n,Fr)},ni=function(t,n){return Jr(t,n,Ir)},ei=function(t,n,e){return br(t,t,Do(n),dr(e))},oi=function(t,n){return vr(t,n)},ri=function(t,n){return Re(t.element(),n.event().target())},ii=function(t){if(!tn(t,"can")&&!tn(t,"abort")&&!tn(t,"run"))throw new Error("EventHandler defined by: "+or(t,null,2)+" does not have can, abort, or run!");return Er("Extracting event.handler",lr([Kr("can",Z(!0)),Kr("abort",Z(!1)),Kr("run",Q)]),t)},ui=function(e){var n,o,r,i,t=(n=e,o=function(t){return t.can},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dt(n,function(t,n){return t&&o(n).apply(undefined,e)},!0)}),u=(r=e,i=function(t){return t.abort},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dt(r,function(t,n){return t||i(n).apply(undefined,e)},!1)});return ii({can:t,abort:u,run:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];st(e,function(t){t.run.apply(undefined,n)})}})},ai=function(t,n){li(t,t.element(),n,{})},ci=function(t,n,e){li(t,t.element(),n,e)},si=function(t){ai(t,te())},fi=function(t,n,e){li(t,n,e,{})},li=function(t,n,e,o){var r=To({target:n},o);t.getSystem().triggerEvent(e,n,At(r,Z))},di=function(t,n,e,o){t.getSystem().triggerEvent(e,n,o.event())},mi=function(t){var n=no(t)?t.dom().parentNode:t.dom();return n!==undefined&&null!==n&&n.ownerDocument.body.contains(n)},gi=Sn(function(){return pi(xe.fromDom(b.document))}),pi=function(t){var n=t.dom().body;if(null===n||n===undefined)throw new Error("Body is not available yet");return xe.fromDom(n)},hi=function(t,n,e){for(var o=t.dom(),r=et(e)?e:Z(!1);o.parentNode;){o=o.parentNode;var i=xe.fromDom(o);if(n(i))return tt.some(i);if(r(i))break}return tt.none()},vi=function(t,n,e){return o(function(t){return n(t)},hi,t,n,e)},bi=function(t,o){var r=function(t){for(var n=0;n<t.childNodes.length;n++){if(o(xe.fromDom(t.childNodes[n])))return tt.some(xe.fromDom(t.childNodes[n]));var e=r(t.childNodes[n]);if(e.isSome())return e}return tt.none()};return r(t.dom())},yi=function(t,n,e){return vi(t,function(t){return n(t).isSome()},e).bind(n)},xi=function(t){return Qt(t)},wi=function(t,n){return{key:t,value:ii({abort:n})}},Si=function(t){return{key:t,value:ii({run:function(t,n){n.event().prevent()}})}},Ci=function(t,n){return{key:t,value:ii({run:n})}},ki=function(t,n,e){return{key:t,value:ii({run:function(t){n.apply(undefined,[t].concat(e))}})}},Oi=function(t){return function(e){return{key:t,value:ii({run:function(t,n){ri(t,n)&&e(t,n)}})}}},Ei=function(t,n,e){var o,r,i=n.partUids[e];return r=i,Ci(o=t,function(t,n){t.getSystem().getByUid(r).each(function(t){di(t,t.element(),o,n)})})},Ti=function(t,r){return Ci(t,function(n,t){var e=t.event(),o=n.getSystem().getByDom(e.target()).fold(function(){return yi(e.target(),function(t){return n.getSystem().getByDom(t).toOption()},Z(!1)).getOr(n)},function(t){return t});r(n,o,t)})},Bi=function(t){return Ci(t,function(t,n){n.cut()})},Di=function(t){return Ci(t,function(t,n){n.stop()})},Ai=function(t,n){return Oi(t)(n)},_i=Oi(fe()),Mi=Oi(le()),Fi=Oi(ae()),Ii=(Io=te(),function(t){return Ci(Io,t)}),Vi=xi([(Vo=Jn(),Ro=function(t,n){var e,o,r=n.event().originator(),i=n.event().target();return o=i,!(Re(e=r,t.element())&&!Re(e,o)&&(b.console.warn(Jn()+" did not get interpreted by the desired target. \nOriginator: "+lo(r)+"\nTarget: "+lo(i)+"\nCheck the "+Jn()+" event handlers"),1))},{key:Vo,value:ii({can:Ro})})]),Ri=Object.freeze({events:Vi}),Hi=Z("alloy-id-"),Ni=Z("data-alloy-id"),zi=Hi(),Pi=Ni(),Li=function(t,n){Object.defineProperty(t.dom(),Pi,{value:n,writable:!0})},ji=function(t){var n=to(t)?t.dom()[Pi]:null;return tt.from(n)},Ui=function(t){return Oo(t)},Wi=U,Gi=function(n){var t=function(t){return function(){throw new Error("The component must be in a context to send: "+t+"\n"+lo(n().element())+" is not in context.")}};return{debugInfo:Z("fake"),triggerEvent:t("triggerEvent"),triggerFocus:t("triggerFocus"),triggerEscape:t("triggerEscape"),build:t("build"),addToWorld:t("addToWorld"),removeFromWorld:t("removeFromWorld"),addToGui:t("addToGui"),removeFromGui:t("removeFromGui"),getByUid:t("getByUid"),getByDom:t("getByDom"),broadcast:t("broadcast"),broadcastOn:t("broadcastOn"),broadcastEvent:t("broadcastEvent"),isConnected:Z(!1)}},Xi=Gi(),Yi=function(t){return ct(t,function(t){return o=n="/*",r=(e=t).length-n.length,""!==o&&(e.length<o.length||e.substr(r,r+o.length)!==o)?t:t.substring(0,t.length-"/*".length);var n,e,o,r})},qi=function(t,n){var e=t.toString(),o=e.indexOf(")")+1,r=e.indexOf("("),i=e.substring(r+1,o-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:n,parameters:Yi(i)}},t},Ki=Oo("alloy-premade"),Ji=function(t){return $t(Ki,t)},$i=function(o){return t=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return o.apply(undefined,[t.getApis()].concat([t].concat(n)))},e=(n=o.toString()).indexOf(")")+1,r=n.indexOf("("),i=n.substring(r+1,e-1).split(/,\s*/),t.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:Yi(i.slice(1))}},t;var t,n,e,r,i},Qi={init:function(){return Zi({readState:function(){return"No State required"}})}},Zi=function(t){return t},tu=function(t,r){var i={};return Dt(t,function(t,o){Dt(t,function(t,n){var e=Kt(n,[])(i);i[n]=e.concat([r(o,t)])})}),i},nu=function(t){return{classes:t.classes!==undefined?t.classes:[],attributes:t.attributes!==undefined?t.attributes:{},styles:t.styles!==undefined?t.styles:{}}},eu=function(t,n){return e=h.apply(undefined,[t.handler].concat(n)),o=t.purpose(),{cHandler:e,purpose:Z(o)};var e,o},ou=function(t){return t.cHandler},ru=function(t,n){return{name:Z(t),handler:Z(n)}},iu=function(t,n,e){var o,r,i=To({},e,(o=t,r={},st(n,function(t){r[t.name()]=t.handlers(o)}),r));return tu(i,ru)},uu=function(t){var n,i=et(n=t)?{can:Z(!0),abort:Z(!1),run:n}:n;return function(t,n){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];var r=[t,n].concat(e);i.abort.apply(undefined,r)?n.stop():i.can.apply(undefined,r)&&i.run.apply(undefined,r)}},au=function(o,t,n){var r,e,i=t[n];return i?function(u,a,t,c){var n=o.slice(0);try{var e=n.sort(function(t,n){var e=t[a](),o=n[a](),r=c.indexOf(e),i=c.indexOf(o);if(-1===r)throw new Error("The ordering for "+u+" does not have an entry for "+e+".\nOrder specified: "+or(c,null,2));if(-1===i)throw new Error("The ordering for "+u+" does not have an entry for "+o+".\nOrder specified: "+or(c,null,2));return r<i?-1:i<r?1:0});return Lt.value(e)}catch(r){return Lt.error([r])}}("Event: "+n,"name",0,i).map(function(t){var n=ct(t,function(t){return t.handler()});return ui(n)}):(r=n,e=o,Lt.error(["The event ("+r+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+or(ct(e,function(t){return t.name()}),null,2)]))},cu=function(t,i){var n=Mt(t,function(o,r){return(1===o.length?Lt.value(o[0].handler()):au(o,i,r)).map(function(t){var n=uu(t),e=1<o.length?ft(i,function(n){return it(o,function(t){return t.name()===n})}).join(" > "):o[0].name();return $t(r,{handler:n,purpose:Z(e)})})});return Zt(n,{})},su=function(t){return kr("custom.definition",dr([br("dom","dom",Ao(),dr([Rr("tag"),Kr("styles",{}),Kr("classes",[]),Kr("attributes",{}),Wr("value"),Wr("innerHtml")])),Rr("components"),Rr("uid"),Kr("events",{}),Kr("apis",{}),br("eventOrder","eventOrder",(n={"alloy.execute":["disabling","alloy.base.behaviour","toggling","typeaheadevents"],"alloy.focus":["alloy.base.behaviour","focusing","keying"],"alloy.system.init":["alloy.base.behaviour","disabling","toggling","representing"],input:["alloy.base.behaviour","representing","streaming","invalidating"],"alloy.system.detached":["alloy.base.behaviour","representing","item-events","tooltipping"],mousedown:["focusing","alloy.base.behaviour","item-type-events"],mouseover:["item-type-events","tooltipping"]},Bo.mergeWithThunk(Z(n))),Dr()),Wr("domModification")]),t);var n},fu=function(t,n){var e=uo(t,n);return e===undefined||""===e?[]:e.split(" ")},lu=function(t){return t.dom().classList!==undefined},du=function(t,n){return r=n,i=fu(e=t,o="class").concat([r]),ro(e,o,i.join(" ")),!0;var e,o,r,i},mu=function(t,n){return r=n,0<(i=ft(fu(e=t,o="class"),function(t){return t!==r})).length?ro(e,o,i.join(" ")):co(e,o),!1;var e,o,r,i},gu=function(t,n){lu(t)?t.dom().classList.add(n):du(t,n)},pu=function(t){0===(lu(t)?t.dom().classList:fu(t,"class")).length&&co(t,"class")},hu=function(t,n){lu(t)?t.dom().classList.remove(n):mu(t,n),pu(t)},vu=function(t,n){return lu(t)&&t.dom().classList.contains(n)},bu=function(n,t){st(t,function(t){gu(n,t)})},yu=function(n,t){st(t,function(t){hu(n,t)})},xu=function(t){return t.style!==undefined},wu=function(t,n,e){if(!K(e))throw b.console.error("Invalid call to CSS.set. Property ",n,":: Value ",e,":: Element ",t),new Error("CSS value must be a string: "+e);xu(t)&&t.style.setProperty(n,e)},Su=function(t,n){xu(t)&&t.style.removeProperty(n)},Cu=function(t,n,e){var o=t.dom();wu(o,n,e)},ku=function(t,n){var e=t.dom();Dt(n,function(t,n){wu(e,n,t)})},Ou=function(t,n){var e=t.dom(),o=b.window.getComputedStyle(e).getPropertyValue(n),r=""!==o||mi(t)?o:Eu(e,n);return null===r?undefined:r},Eu=function(t,n){return xu(t)?t.style.getPropertyValue(n):""},Tu=function(t,n){var e=t.dom(),o=Eu(e,n);return tt.from(o).filter(function(t){return 0<t.length})},Bu=function(t,n,e){var o=xe.fromTag(t);return Cu(o,n,e),Tu(o,n).isSome()},Du=function(t,n){var e=t.dom();Su(e,n),ao(t,"style")&&""===uo(t,"style").replace(/^\s+|\s+$/g,"")&&co(t,"style")},Au=function(t){return t.dom().offsetWidth},_u=function(t){return t.dom().value},Mu=function(t,n){if(n===undefined)throw new Error("Value.set was undefined");t.dom().value=n},Fu=function(t,n){return e=t,r=ct(o=n,function(t){return qr(t.name(),[Rr("config"),Kr("state",Qi)])}),i=kr("component.behaviours",dr(r),e.behaviours).fold(function(t){throw new Error(Tr(t)+"\nComplete spec:\n"+or(e,null,2))},function(t){return t}),{list:o,data:At(i,function(t){var n=t.map(function(t){return{config:t.config,state:t.state.init(t.config)}});return function(){return n}})};var e,o,r,i},Iu=function(t){var n,e,o,r=(n=t,e=Kt("behaviours",{})(n),o=ft(Tt(e),function(t){return e[t]!==undefined}),ct(o,function(t){return e[t].me}));return Fu(t,r)},Vu=function(t,n,e){var o,r,i,u=To({},(o=t).dom,{uid:o.uid,domChildren:ct(o.components,function(t){return t.element()})}),a=t.domModification.fold(function(){return nu({})},nu),f={"alloy.base.modification":a};return i=0<n.length?function(n,t,e,o){var r=To({},f);st(e,function(t){r[t.name()]=t.exhibit(n,o)});var i=tu(r,function(t,n){return{name:t,modification:n}}),u=function(t){return lt(t,function(t,n){return To({},n.modification,t)},{})},a=lt(i.classes,function(t,n){return n.modification.concat(t)},[]),c=u(i.attributes),s=u(i.styles);return nu({classes:a,attributes:c,styles:s})}(e,0,n,u):a,To({},r=u,{attributes:To({},r.attributes,i.attributes),styles:To({},r.styles,i.styles),classes:r.classes.concat(i.classes)})},Ru=function(t,n,e){var o,r,i,u,a,c,s={"alloy.base.behaviour":(o=t,o.events)};return(r=e,i=t.eventOrder,u=n,a=s,c=iu(r,u,a),cu(c,i)).getOrDie()},Hu=function(e){var t=function(){return f},o=nn(Xi),n=Or(su(e)),r=Iu(e),i=r.list,u=r.data,a=function(t){var n=xe.fromTag(t.tag);io(n,t.attributes),bu(n,t.classes),ku(n,t.styles),t.innerHtml.each(function(t){return $e(n,t)});var e=t.domChildren;return Ye(n,e),t.value.each(function(t){Mu(n,t)}),t.uid,Li(n,t.uid),n}(Vu(n,i,u)),c=Ru(n,i,u),s=nn(n.components),f={getSystem:o.get,config:function(t){var n=u;return(et(n[t.name()])?n[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+or(e,null,2))})()},hasConfigured:function(t){return et(u[t.name()])},spec:Z(e),readState:function(t){return u[t]().map(function(t){return t.state.readState()}).getOr("not enabled")},getApis:function(){return n.apis},connect:function(t){o.set(t)},disconnect:function(){o.set(Gi(t))},element:Z(a),syncComponents:function(){var t=Le(a),n=bt(t,function(t){return o.get().getByDom(t).fold(function(){return[]},function(t){return[t]})});s.set(n)},components:s.get,events:Z(c)};return f},Nu=function(t){var n,e,o=Wi(t),r=o.events,i=v(o,["events"]),u=(n=i,e=Kt("components",[])(n),ct(e,ju)),a=To({},i,{events:To({},Ri,r),components:u});return Lt.value(Hu(a))},zu=function(t){var n=xe.fromText(t);return Pu({element:n})},Pu=function(t){var n=Er("external.component",lr([Rr("element"),Wr("uid")]),t),e=nn(Gi());n.uid.each(function(t){Li(n.element,t)});var o={getSystem:e.get,config:tt.none,hasConfigured:Z(!1),connect:function(t){e.set(t)},disconnect:function(){e.set(Gi(function(){return o}))},getApis:function(){return{}},element:Z(n.element),spec:Z(t),readState:Z("No state"),syncComponents:Q,components:Z([]),events:Z({})};return Ji(o)},Lu=Ui,ju=function(n){return(t=n,Jt(t,Ki)).fold(function(){var t=n.hasOwnProperty("uid")?n:To({uid:Lu("")},n);return Nu(t).getOrDie()},function(t){return t});var t},Uu=Ji,Wu=function(t,n,e){return hi(t,function(t){return Fe(t,n)},e)},Gu=function(t,n){return e=n,r=(o=t)===undefined?b.document:o.dom(),Ie(r)?tt.none():tt.from(r.querySelector(e)).map(xe.fromDom);var e,o,r},Xu=function(t,n,e){return o(Fe,Wu,t,n,e)},Yu=function(n,t){return(e=t,vi(e,function(t){if(!to(t))return!1;var n=uo(t,"id");return n!==undefined&&-1<n.indexOf("aria-owns")}).bind(function(t){var n=uo(t,"id"),e=He(t);return Gu(e,'[aria-owns="'+n+'"]')})).exists(function(t){return qu(n,t)});var e},qu=function(n,t){return e=t,r=Z(!(o=function(t){return Re(t,n.element())})),vi(e,o,r).isSome()||Yu(n,t);var e,o,r},Ku=Z([Rr("menu"),Rr("selectedMenu")]),Ju=Z([Rr("item"),Rr("selectedItem")]),$u=(Z(dr(Ju().concat(Ku()))),Z(dr(Ju()))),Qu=Lr("initSize",[Rr("numColumns"),Rr("numRows")]),Zu=function(){return Lr("markers",[Rr("backgroundMenu")].concat(Ku()).concat(Ju()))},ta=function(t){return Lr("markers",ct(t,Rr))},na=function(t,n,e){return function(){var t=new Error;if(t.stack!==undefined){var n=t.stack.split("\n");mt(n,function(n){return 0<n.indexOf("alloy")&&!ut(yo,function(t){return-1<n.indexOf(t)})}).getOr(mo)}}(),br(n,n,e,Sr(function(e){return Lt.value(function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(undefined,t)})}))},ea=function(t){return na(0,t,Do(Q))},oa=function(t){return na(0,t,Do(tt.none))},ra=function(t){return na(0,t,Ao())},ia=function(t){return na(0,t,Ao())},ua=function(t,n){return oi(t,Z(n))},aa=function(t){return oi(t,U)},ca=Z(Qu),sa=function(n,e,o){return Fi(function(t){o(t,n,e)})},fa=function(t,n,e,o,r,i){var u,a,c=lr(t),s=qr(n,[(u="config",a=t,br(u,u,_o(),lr(a)))]);return ma(c,s,n,e,o,r,i)},la=function(r,i,u){var t,n,e,o,a,c;return t=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=[e].concat(t);return e.config({name:Z(r)}).fold(function(){throw new Error("We could not find any behaviour configuration for: "+r+". Using API: "+u)},function(t){var n=Array.prototype.slice.call(o,1);return i.apply(undefined,[e,t.config,t.state].concat(n))})},n=u,o=(e=i.toString()).indexOf(")")+1,a=e.indexOf("("),c=e.substring(a+1,o-1).split(/,\s*/),t.toFunctionAnnotation=function(){return{name:n,parameters:Yi(c.slice(0,1).concat(c.slice(3)))}},t},da=function(t){return{key:t,value:undefined}},ma=function(e,t,o,r,n,i,u){var a=function(t){return tn(t,o)?t[o]():tt.none()},c=At(n,function(t,n){return la(o,t,n)}),s=At(i,function(t,n){return qi(t,n)}),f=To({},s,c,{revoke:h(da,o),config:function(t){var n=Er(o+"-config",e,t);return{key:o,value:{config:n,me:f,configAsRaw:Sn(function(){return Er(o+"-config",e,t)}),initialConfig:t,state:u}}},schema:function(){return t},exhibit:function(t,e){return a(t).bind(function(n){return Jt(r,"exhibit").map(function(t){return t(e,n.config,n.state)})}).getOr(nu({}))},name:function(){return o},handlers:function(t){return a(t).map(function(t){return Kt("events",function(){return{}})(r)(t.config,t.state)}).getOr({})}});return f},ga=function(t){return Qt(t)},pa=lr([Rr("fields"),Rr("name"),Kr("active",{}),Kr("apis",{}),Kr("state",Qi),Kr("extra",{})]),ha=function(t){var n=Er("Creating behaviour: "+t.name,pa,t);return fa(n.fields,n.name,n.active,n.apis,n.extra,n.state)},va=lr([Rr("branchKey"),Rr("branches"),Rr("name"),Kr("active",{}),Kr("apis",{}),Kr("state",Qi),Kr("extra",{})]),ba=function(t){var n,e,o,r,i,u,a,c,s=Er("Creating behaviour: "+t.name,va,t);return n=Br(s.branchKey,s.branches),e=s.name,o=s.active,r=s.apis,i=s.extra,u=s.state,c=qr(e,[Gr("config",a=n)]),ma(a,c,e,o,r,i,u)},ya=Z(undefined),xa=Object.freeze({events:function(o){return xi([Ci(Zn(),function(r,i){var t,n,u=o.channels,e=(t=Tt(u),(n=i).universal()?t:ft(t,function(t){return it(n.channels(),t)}));st(e,function(t){var n=u[t],e=n.schema,o=Er("channel["+t+"] data\nReceiver: "+lo(r.element()),e,i.data());n.onReceive(r,o)})})])}}),wa=[Hr("channels",Cr(Lt.value,lr([ra("onReceive"),Kr("schema",Dr())])))],Sa=ha({fields:wa,name:"receiving",active:xa}),Ca=Object.freeze({exhibit:function(t,n){return nu({classes:[],styles:n.useFixed?{}:{position:"relative"}})}}),ka=function(e,o){return{left:Z(e),top:Z(o),translate:function(t,n){return ka(e+t,o+n)}}},Oa=ka,Ea=function(t,n){return t!==undefined?t:n!==undefined?n:0},Ta=function(t){var n,e,o=t.dom().ownerDocument,r=o.body,i=(e=(n=xe.fromDom(o)).dom())===e.window&&n instanceof b.Window?n:eo(n)?e.defaultView||e.parentWindow:null,u=o.documentElement,a=Ea(i.pageYOffset,u.scrollTop),c=Ea(i.pageXOffset,u.scrollLeft),s=Ea(u.clientTop,r.clientTop),f=Ea(u.clientLeft,r.clientLeft);return Ba(t).translate(c-f,a-s)},Ba=function(t){var n,e,o,r=t.dom(),i=r.ownerDocument,u=i.body,a=xe.fromDom(i.documentElement);return u===r?Oa(u.offsetLeft,u.offsetTop):(n=t,e=a||xe.fromDom(b.document.documentElement),hi(n,h(Re,e)).isSome()?(o=r.getBoundingClientRect(),Oa(o.left,o.top)):Oa(0,0))},Da=(qn.detect().browser.isSafari(),function(t){var n=t!==undefined?t.dom():b.document,e=n.body.scrollLeft||n.documentElement.scrollLeft,o=n.body.scrollTop||n.documentElement.scrollTop;return Oa(e,o)}),Aa=t("width",function(t){return t.dom().offsetWidth}),_a=function(t){return Aa.get(t)},Ma=function(t){return Aa.getOuter(t)},Fa=t("height",function(t){var n=t.dom();return mi(t)?n.getBoundingClientRect().height:n.offsetHeight}),Ia=function(t){return Fa.get(t)},Va=function(t){return Fa.getOuter(t)},Ra=ke(["x","y","width","height","maxHeight","direction","classes","label","candidateYforTest"],[]),Ha=we("position","left","top","right","bottom"),Na=jt([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),za=Na.southeast,Pa=Na.southwest,La=Na.northeast,ja=Na.northwest,Ua=Na.south,Wa=Na.north,Ga=Na.east,Xa=Na.west,Ya=we("point","width","height"),qa=we("x","y","width","height"),Ka=function(t,n,e,o){return{x:Z(t),y:Z(n),width:Z(e),height:Z(o),right:Z(t+e),bottom:Z(n+o)}},Ja=function(t){var n=Ta(t),e=Ma(t),o=Va(t);return Ka(n.left(),n.top(),e,o)},$a=function(o,t){return o.view(t).fold(Z([]),function(t){var n=o.owner(t),e=$a(o,n);return[t].concat(e)})},Qa=Object.freeze({view:function(t){return(t.dom()===b.document?tt.none():tt.from(t.dom().defaultView.frameElement)).map(xe.fromDom)},owner:function(t){return He(t)}}),Za=function(o){var t,n,e,r,i=xe.fromDom(b.document),u=Da(i);return(t=o,e=(n=Qa).owner(t),r=$a(n,e),tt.some(r)).fold(h(Ta,o),function(t){var n=Ba(o),e=lt(t,function(t,n){var e=Ba(n);return{left:t.left+e.left(),top:t.top+e.top()}},{left:0,top:0});return Oa(e.left+n.left()+u.left(),e.top+n.top()+u.top())})},tc=function(){var t=b.window.innerWidth,n=b.window.innerHeight,e=xe.fromDom(b.document),o=Da(e);return Ka(o.left(),o.top(),t,n)},nc=jt([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),ec=function(t,n,e,o,r,i){var u,a,c,s,f,l,d,m,g=n.x()-e,p=n.y()-o,h=r-(g+n.width()),v=i-(p+n.height()),b=tt.some(g),y=tt.some(p),x=tt.some(h),w=tt.some(v),S=tt.none();return u=function(){return Ha(t,b,y,S,S)},a=function(){return Ha(t,S,y,x,S)},c=function(){return Ha(t,b,S,S,w)},s=function(){return Ha(t,S,S,x,w)},f=function(){return Ha(t,b,y,S,S)},l=function(){return Ha(t,b,S,S,w)},d=function(){return Ha(t,b,y,S,S)},m=function(){return Ha(t,S,y,x,S)},n.direction().fold(u,a,c,s,f,l,d,m)},oc=function(t,n){var e=h(Za,n),o=t.fold(e,e,function(){var t=Da();return Za(n).translate(-t.left(),-t.top())}),r=Ma(n),i=Va(n);return Ka(o.left(),o.top(),r,i)},rc=nc.relative,ic=nc.fixed,uc=we("anchorBox","origin"),ac=jt([{fit:["reposition"]},{nofit:["reposition","deltaW","deltaH"]}]),cc=function(t,H,N,z,P){var L=N.width(),j=N.height(),o=function(t,o,r,i){var n,e,u,a,c,s,f,l,d,m,g,p,h,v,b,y,x,w,S,C,k,O,E,T,B,D,A,_,M,F,I,V,R=t(H,N,z);return(e=L,u=j,a=P,d=(n=R).x(),m=n.y(),g=n.bubble().offset().left(),p=n.bubble().offset().top(),h=a.x(),v=a.y(),b=a.width(),y=a.height(),C=v<=(w=m+p),k=(S=h<=(x=d+g))&&C,O=x+e<=h+b&&w+u<=v+y,E=S?Math.min(e,h+b-x):Math.abs(h-(x+e)),T=C?Math.min(u,v+y-w):Math.abs(v-(w+u)),B=a.x()+a.width(),D=Math.max(a.x(),x),A=Math.min(D,B),M=Z((_=C?w:w+(u-T))+T-v),F=Z(v+y-_),c=n.direction(),f=s=F,l=M,I=c.fold(s,s,l,l,s,l,f,f),V=Ra({x:A,y:_,width:E,height:T,maxHeight:I,direction:n.direction(),classes:{on:n.bubble().classesOn(),off:n.bubble().classesOff()},label:n.label(),candidateYforTest:w}),k&&O?ac.fit(V):ac.nofit(V,E,T)).fold(ac.fit,function(t,n,e){return i<e||r<n?ac.nofit(t,n,e):ac.nofit(o,r,i)})};return dt(t,function(t,n){var e=h(o,n);return t.fold(ac.fit,e)},ac.nofit(Ra({x:H.x(),y:H.y(),width:N.width(),height:N.height(),maxHeight:N.height(),direction:za(),classes:[],label:"none",candidateYforTest:H.y()}),-1,-1)).fold(U,U)},sc=function(t,n,e,o){Du(n,"max-height");var r,i={width:Z(Ma(r=n)),height:Z(Va(r))};return cc(o.preference(),t,i,e,o.bounds())},fc=function(t,n,e){var o,r,i,u,a,c=function(t){return t+"px"},s=(o=e.origin(),r=n,o.fold(function(){return Ha("absolute",tt.some(r.x()),tt.some(r.y()),tt.none(),tt.none())},function(t,n,e,o){return ec("absolute",r,t,n,e,o)},function(t,n,e,o){return ec("fixed",r,t,n,e,o)}));i=t,u={position:tt.some(s.position()),left:s.left().map(c),top:s.top().map(c),right:s.right().map(c),bottom:s.bottom().map(c)},a=i.dom(),Dt(u,function(t,n){t.fold(function(){Su(a,n)},function(t){wu(a,n,t)})})},lc=function(t,n){var e,o,r;e=t,o=Math.floor(n),r=Fa.max(e,o,["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"]),Cu(e,"max-height",r+"px")},dc=Z(function(t,n){lc(t,n),ku(t,{"overflow-x":"hidden","overflow-y":"auto"})}),mc=Z(function(t,n){lc(t,n)}),gc=ke(["bounds","origin","preference","maxHeightFunction"],[]),pc=function(t,n,e,o,r,i){var u,a,c,s,f,l=(u=i,a="maxHeightFunction",c=dc(),u[a]===undefined?c:u[a]),d=t.anchorBox(),m=t.origin(),g=gc({bounds:(s=m,f=r,f.fold(function(){return s.fold(tc,tc,Ka)},function(t){return s.fold(t,t,Ka)})),origin:m,preference:o,maxHeightFunction:l});hc(d,n,e,g)},hc=function(t,n,e,o){var r,i,u,a,c=sc(t,n,e,o);fc(n,c,o),r=n,i=c.classes(),yu(r,i.off),bu(r,i.on),u=n,a=c,o.maxHeightFunction()(u,a.maxHeight())},vc=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right"],bc=function(t,n,e){var r=function(t){return Jt(e,t).getOr([])},o=function(t,n,e){var o=St(vc,e);return{offset:function(){return Oa(t,n)},classesOn:function(){return bt(e,r)},classesOff:function(){return bt(o,r)}}};return{southeast:function(){return o(-t,n,["top","alignLeft"])},southwest:function(){return o(t,n,["top","alignRight"])},south:function(){return o(-t/2,n,["top","alignCentre"])},northeast:function(){return o(-t,-n,["bottom","alignLeft"])},northwest:function(){return o(t,-n,["bottom","alignRight"])},north:function(){return o(-t/2,-n,["bottom","alignCentre"])},east:function(){return o(t,-n/2,["valignCentre","left"])},west:function(){return o(-t,-n/2,["valignCentre","right"])}}},yc=function(){return bc(0,0,{})},xc=we("x","y","bubble","direction","label"),wc=function(t){return t.x()},Sc=function(t,n){return t.x()+t.width()/2-n.width()/2},Cc=function(t,n){return t.x()+t.width()-n.width()},kc=function(t,n){return t.y()-n.height()},Oc=function(t){return t.y()+t.height()},Ec=function(t,n){return t.y()+t.height()/2-n.height()/2},Tc=function(t,n,e){return xc(wc(t),Oc(t),e.southeast(),za(),"layout-se")},Bc=function(t,n,e){return xc(Cc(t,n),Oc(t),e.southwest(),Pa(),"layout-sw")},Dc=function(t,n,e){return xc(wc(t),kc(t,n),e.northeast(),La(),"layout-ne")},Ac=function(t,n,e){return xc(Cc(t,n),kc(t,n),e.northwest(),ja(),"layout-nw")},_c=function(t,n,e){return xc(Sc(t,n),kc(t,n),e.north(),Wa(),"layout-n")},Mc=function(t,n,e){return xc(Sc(t,n),Oc(t),e.south(),Ua(),"layout-s")},Fc=function(t,n,e){return xc((o=t).x()+o.width(),Ec(t,n),e.east(),Ga(),"layout-e");var o},Ic=function(t,n,e){return xc((o=n,t.x()-o.width()),Ec(t,n),e.west(),Xa(),"layout-w");var o},Vc=function(){return[Tc,Bc,Dc,Ac,Mc,_c,Fc,Ic]},Rc=function(){return[Bc,Tc,Ac,Dc,Mc,_c,Fc,Ic]},Hc=function(t){return t},Nc=function(n,e){return function(t){return"rtl"===zc(t)?e:n}},zc=function(t){return"rtl"===Ou(t,"direction")?"rtl":"ltr"},Pc=function(){return qr("layouts",[Rr("onLtr"),Rr("onRtl")])},Lc=function(n,t,e,o){var r=t.layouts.map(function(t){return t.onLtr(n)}).getOr(e),i=t.layouts.map(function(t){return t.onRtl(n)}).getOr(o);return Nc(r,i)(n)},jc=[Rr("hotspot"),Wr("bubble"),Pc(),ua("placement",function(t,n,e){var o=n.hotspot,r=oc(e,o.element()),i=Lc(t.element(),n,Vc(),Rc());return tt.some(Hc({anchorBox:r,bubble:n.bubble.getOr(yc()),overrides:{},layouts:i,placer:tt.none()}))})],Uc=[Rr("x"),Rr("y"),Kr("height",0),Kr("width",0),Kr("bubble",yc()),Pc(),ua("placement",function(t,n){var e=Ka(n.x,n.y,n.width,n.height),o=Lc(t.element(),n,Vc(),Rc());return tt.some(Hc({anchorBox:e,bubble:n.bubble,overrides:{},layouts:o,placer:tt.none()}))})],Wc=(jt([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),jt([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}])),Gc=we("start","soffset","finish","foffset"),Xc=(Wc.domRange,Wc.relative,Wc.exact),Yc=function(t,n,e,o){var r,i,u,a,c,s=(i=n,u=e,a=o,(c=He(r=t).dom().createRange()).setStart(r.dom(),i),c.setEnd(u.dom(),a),c),f=Re(t,e)&&n===o;return s.collapsed&&!f},qc=function(t,n,e){var o,r,i=t.document.createRange();return o=i,n.fold(function(t){o.setStartBefore(t.dom())},function(t,n){o.setStart(t.dom(),n)},function(t){o.setStartAfter(t.dom())}),r=i,e.fold(function(t){r.setEndBefore(t.dom())},function(t,n){r.setEnd(t.dom(),n)},function(t){r.setEndAfter(t.dom())}),i},Kc=function(t,n,e,o,r){var i=t.document.createRange();return i.setStart(n.dom(),e),i.setEnd(o.dom(),r),i},Jc=function(t){return{left:Z(t.left),top:Z(t.top),right:Z(t.right),bottom:Z(t.bottom),width:Z(t.width),height:Z(t.height)}},$c=jt([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Qc=function(t,n,e){return n(xe.fromDom(e.startContainer),e.startOffset,xe.fromDom(e.endContainer),e.endOffset)},Zc=function(t,n){var r,e,o,i=(r=t,n.match({domRange:function(t){return{ltr:Z(t),rtl:tt.none}},relative:function(t,n){return{ltr:Sn(function(){return qc(r,t,n)}),rtl:Sn(function(){return tt.some(qc(r,n,t))})}},exact:function(t,n,e,o){return{ltr:Sn(function(){return Kc(r,t,n,e,o)}),rtl:Sn(function(){return tt.some(Kc(r,e,o,t,n))})}}}));return(o=(e=i).ltr()).collapsed?e.rtl().filter(function(t){return!1===t.collapsed}).map(function(t){return $c.rtl(xe.fromDom(t.endContainer),t.endOffset,xe.fromDom(t.startContainer),t.startOffset)}).getOrThunk(function(){return Qc(0,$c.ltr,o)}):Qc(0,$c.ltr,o)},ts=function YD(e,o){var n=function(t){return e(t)?tt.from(t.dom().nodeValue):tt.none()},t=qn.detect().browser,r=t.isIE()&&10===t.version.major?function(t){try{return n(t)}catch(r){return tt.none()}}:n;return{get:function(t){if(!e(t))throw new Error("Can only get "+o+" value of a "+o+" node");return r(t).getOr("")},getOption:r,set:function(t,n){if(!e(t))throw new Error("Can only set raw "+o+" value of a "+o+" node");t.dom().nodeValue=n}}}(no,"text"),ns=function(t){return ts.get(t)},es=(document.caretPositionFromPoint||document.caretRangeFromPoint,function(t,n){return Ve(n,t)}),os=function(t){var n=xe.fromDom(t.anchorNode),e=xe.fromDom(t.focusNode);return Yc(n,t.anchorOffset,e,t.focusOffset)?tt.some(Gc(n,t.anchorOffset,e,t.focusOffset)):function(t){if(0<t.rangeCount){var n=t.getRangeAt(0),e=t.getRangeAt(t.rangeCount-1);return tt.some(Gc(xe.fromDom(n.startContainer),n.startOffset,xe.fromDom(e.endContainer),e.endOffset))}return tt.none()}(t)},rs=function(t,n){var i,e,o,r;return 0<(r=0<(o=(e=Zc(i=t,n).match({ltr:function(t,n,e,o){ var r=i.document.createRange();return r.setStart(t.dom(),n),r.setEnd(e.dom(),o),r},rtl:function(t,n,e,o){var r=i.document.createRange();return r.setStart(e.dom(),o),r.setEnd(t.dom(),n),r}})).getClientRects()).length?o[0]:e.getBoundingClientRect()).width||0<r.height?tt.some(r).map(Jc):tt.none()},is=we("element","offset"),us=jt([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),as=function(t){return t.fold(function(t){return t},function(t,n,e){return t.translate(-n,-e)})},cs=function(t){return t.fold(function(t){return t},function(t){return t})},ss=function(t){return dt(t,function(t,n){return t.translate(n.left(),n.top())},Oa(0,0))},fs=function(t){var n=ct(t,cs);return ss(n)},ls=us.screen,ds=us.absolute,ms=function(t,n,e){var o,r,i,u=He(t.element()),a=Da(u),c=(o=t,r=e,i=Ne(r.root).dom(),tt.from(i.frameElement).map(xe.fromDom).filter(function(t){var n=He(t),e=He(o.element());return Re(n,e)}).map(Ta)).getOr(a);return ds(c,a.left(),a.top())},gs=function(t,n,e,o){var r=t,i=n,u=e,a=o;t<0&&(r=0,u=e+t),n<0&&(i=0,a=o+n);var c=ls(Oa(r,i));return tt.some(Ya(c,u,a))},ps=function(t,c,s,f,l){return t.map(function(t){var n,e,o,r=[c,t.point()],i=(n=function(){return fs(r)},e=function(){return fs(r)},o=function(){return t=ct(r,as),ss(t);var t},f.fold(n,e,o)),u=qa(i.left(),i.top(),t.width(),t.height()),a=Lc(l,s,s.showAbove?[Dc,Ac,Tc,Bc,_c,Mc]:[Tc,Bc,Dc,Ac,Mc,Mc],s.showAbove?[Ac,Dc,Bc,Tc,_c,Mc]:[Bc,Tc,Ac,Dc,Mc,_c]);return Hc({anchorBox:u,bubble:s.bubble.getOr(yc()),overrides:s.overrides,layouts:a,placer:tt.none()})})},hs=we("element","offset"),vs=function(t,n){return no(t)?hs(t,n):function(t,n){var e=Le(t);if(0===e.length)return is(t,n);if(n<e.length)return is(e[n],0);var o=e[e.length-1],r=no(o)?ns(o).length:Le(o).length;return is(o,r)}(t,n)},bs=function(n,t){return t.getSelection.getOrThunk(function(){return function(){return t=n,tt.from(t.getSelection()).filter(function(t){return 0<t.rangeCount}).bind(os);var t}})().map(function(t){var n=vs(t.start(),t.soffset()),e=vs(t.finish(),t.foffset());return Gc(n.element(),n.offset(),e.element(),e.offset())})},ys=[Wr("getSelection"),Rr("root"),Wr("bubble"),Pc(),Kr("overrides",{}),Kr("showAbove",!1),ua("placement",function(t,n,e){var o=Ne(n.root).dom(),r=ms(t,0,n),i=bs(o,n).bind(function(t){var n;return rs(o,(n=t,Wc.exact(n.start(),n.soffset(),n.finish(),n.foffset()))).orThunk(function(){var n=xe.fromText("\ufeff");return Ue(t.start(),n),rs(o,Xc(n,0,n,1)).map(function(t){return Ke(n),t})}).bind(function(t){return gs(t.left(),t.top(),t.width(),t.height())})}),u=bs(o,n).bind(function(t){return to(t.start())?tt.some(t.start()):ze(t.start())}).getOr(t.element());return ps(i,r,n,e,u)})],xs=[Rr("node"),Rr("root"),Wr("bubble"),Pc(),Kr("overrides",{}),Kr("showAbove",!1),ua("placement",function(r,i,u){var a=ms(r,0,i);return i.node.bind(function(t){var n=t.dom().getBoundingClientRect(),e=gs(n.left,n.top,n.width,n.height),o=i.node.getOr(r.element());return ps(e,a,i,u,o)})})],ws=function(t){return t.x()+t.width()},Ss=function(t,n){return t.x()-n.width()},Cs=function(t,n){return t.y()-n.height()+t.height()},ks=function(t){return t.y()},Os=function(t,n,e){return xc(ws(t),ks(t),e.southeast(),za(),"link-layout-se")},Es=function(t,n,e){return xc(Ss(t,n),ks(t),e.southwest(),Pa(),"link-layout-sw")},Ts=function(t,n,e){return xc(ws(t),Cs(t,n),e.northeast(),La(),"link-layout-ne")},Bs=function(t,n,e){return xc(Ss(t,n),Cs(t,n),e.northwest(),ja(),"link-layout-nw")},Ds=[Rr("item"),Pc(),ua("placement",function(t,n,e){var o=oc(e,n.item.element()),r=Lc(t.element(),n,[Os,Es,Ts,Bs],[Es,Os,Bs,Ts]);return tt.some(Hc({anchorBox:o,bubble:yc(),overrides:{},layouts:r,placer:tt.none()}))})],As=Br("anchor",{selection:ys,node:xs,hotspot:jc,submenu:Ds,makeshift:Uc}),_s=function(t,n,e,o,r){var i,u=(i=e.anchorBox,uc(i,n));pc(u,r.element(),e.bubble,e.layouts,o,e.overrides)},Ms=function(n,t,e,o,r,i){var u=Er("positioning anchor.info",As,o);Cu(r.element(),"position","fixed");var a=Tu(r.element(),"visibility");Cu(r.element(),"visibility","hidden");var c,s,f,l=t.useFixed?ic(0,0,b.window.innerWidth,b.window.innerHeight):(s=Ta((c=n).element()),f=c.element().dom().getBoundingClientRect(),rc(s.left(),s.top(),f.width,f.height)),d=u.placement,m=i.map(function(t){return function(){return Ja(t)}}).or(t.getBounds);d(n,u,l).each(function(t){t.placer.getOr(_s)(n,l,t,m,r)}),a.fold(function(){Du(r.element(),"visibility")},function(t){Cu(r.element(),"visibility",t)}),Tu(r.element(),"left").isNone()&&Tu(r.element(),"top").isNone()&&Tu(r.element(),"right").isNone()&&Tu(r.element(),"bottom").isNone()&&Tu(r.element(),"position").is("fixed")&&Du(r.element(),"position")},Fs=Object.freeze({position:function(t,n,e,o,r){var i=tt.none();Ms(t,n,e,o,r,i)},positionWithin:Ms,getMode:function(t,n){return n.useFixed?"fixed":"absolute"}}),Is=[Kr("useFixed",!1),Wr("getBounds")],Vs=ha({fields:Is,name:"positioning",active:Ca,apis:Fs}),Rs=function(t){ai(t,le());var n=t.components();st(n,Rs)},Hs=function(t){var n=t.components();st(n,Hs),ai(t,fe())},Ns=function(t,n){zs(t,n,Xe)},zs=function(t,n,e){t.getSystem().addToWorld(n),e(t.element(),n.element()),mi(t.element())&&Hs(n),t.syncComponents()},Ps=function(t){Rs(t),Ke(t.element()),t.getSystem().removeFromWorld(t)},Ls=function(n){var t=ze(n.element()).bind(function(t){return n.getSystem().getByDom(t).fold(tt.none,tt.some)});Ps(n),t.each(function(t){t.syncComponents()})},js=function(t){var n=t.components();st(n,Ps),qe(t.element()),t.syncComponents()},Us=function(t,n){Ws(t,n,Xe)},Ws=function(t,n,e){e(t,n.element());var o=Le(n.element());st(o,function(t){n.getByDom(t).each(Hs)})},Gs=function(n){var t=Le(n.element());st(t,function(t){n.getByDom(t).each(Rs)}),Ke(n.element())},Xs=function(t,n,e,o){var r=function(t,n,e,o){e.get().each(function(){js(t)});var r=n.getAttachPoint(t);Ns(r,t);var i=t.getSystem().build(o);return Ns(t,i),e.set(i),i}(t,n,e,o);return n.onOpen(t,r),r},Ys=function(n,e,o){o.get().each(function(t){js(n),Ls(n),e.onClose(n,t),o.clear()})},qs=function(t,n,e){return e.isOpen()},Ks=function(t,n){var e,o,r,i,u=n.getAttachPoint(t);Cu(t.element(),"position",Vs.getMode(u)),e=t,o="visibility",r=n.cloakVisibilityAttr,i="hidden",Tu(e.element(),o).fold(function(){co(e.element(),r)},function(t){ro(e.element(),r,t)}),Cu(e.element(),o,i)},Js=function(t,n){var e;e=t.element(),ut(["top","left","right","bottom"],function(t){return Tu(e,t).isSome()})||Du(t.element(),"position"),function(t,n,e){if(ao(t.element(),e)){var o=uo(t.element(),e);Cu(t.element(),n,o)}else Du(t.element(),n)}(t,"visibility",n.cloakVisibilityAttr)},$s=Object.freeze({cloak:Ks,decloak:Js,open:Xs,openWhileCloaked:function(t,n,e,o,r){Ks(t,n,e),Xs(t,n,e,o),r(),Js(t,n,e)},close:Ys,isOpen:qs,isPartOf:function(n,e,t,o){return qs(0,0,t)&&t.get().exists(function(t){return e.isPartOf(n,t,o)})},getState:function(t,n,e){return e.get()}}),Qs=Object.freeze({events:function(n,e){return xi([Ci(ie(),function(t){Ys(t,n,e)})])}}),Zs=[ea("onOpen"),ea("onClose"),Rr("isPartOf"),Rr("getAttachPoint"),Kr("cloakVisibilityAttr","data-precloak-visibility")],tf=ha({fields:Zs,name:"sandboxing",active:Qs,apis:$s,state:Object.freeze({init:function(){var n=nn(tt.none()),t=Z("not-implemented");return Zi({readState:t,isOpen:function(){return n.get().isSome()},clear:function(){n.set(tt.none())},set:function(t){n.set(tt.some(t))},get:function(){return n.get()}})}})}),nf=Z("dismiss.popups"),ef=Z("mouse.released"),of=lr([Kr("isExtraPart",Z(!1)),qr("fireEventInstead",[Kr("event",de())])]),rf=function(t){var n=uf(t);return Sa.config(n)},uf=function(t){var e=Er("Dismissal",of,t);return{channels:$t(nf(),{schema:lr([Rr("target")]),onReceive:function(n,t){tf.isOpen(n)&&(tf.isPartOf(n,t.target)||e.isExtraPart(n,t.target)||e.fireEventInstead.fold(function(){return tf.close(n)},function(t){return ai(n,t.event)}))}})}},af=function(o,t){return ei(o,{},ct(t,function(t){return n=t.name(),e="Cannot configure "+t.name()+" for "+o,br(n,n,_o(),fr(function(){return Xo("The field: "+n+" is forbidden. "+e)}));var n,e}).concat([oi("dump",U)]))},cf=function(t){return t.dump},sf=function(t,n){return To({},t.dump,ga(n))},ff=af,lf=sf,df="placeholder",mf=jt([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),gf=function(t,n,e,o){return e.uiType===df?(i=e,u=o,(r=t).exists(function(t){return t!==i.owner})?mf.single(!0,Z(i)):Jt(u,i.name).fold(function(){throw new Error("Unknown placeholder component: "+i.name+"\nKnown: ["+Tt(u)+"]\nNamespace: "+r.getOr("none")+"\nSpec: "+or(i,null,2))},function(t){return t.replace()})):mf.single(!1,Z(e));var r,i,u},pf=function(i,u,a,c){return gf(i,0,a,c).fold(function(t,n){var e=n(u,a.config,a.validated),o=Jt(e,"components").getOr([]),r=bt(o,function(t){return pf(i,u,t,c)});return[To({},e,{components:r})]},function(t,n){var e=n(u,a.config,a.validated);return a.validated.preprocess.getOr(U)(e)})},hf=function(n,e,t,o){var r,i,u,a=At(o,function(t,n){return o=t,r=!1,{name:Z(e=n),required:function(){return o.fold(function(t){return t},function(t){return t})},used:function(){return r},replace:function(){if(!0===r)throw new Error("Trying to use the same placeholder more than once: "+e);return r=!0,o}};var e,o,r}),c=(r=n,i=e,u=a,bt(t,function(t){return pf(r,i,t,u)}));return Dt(a,function(t){if(!1===t.used()&&t.required())throw new Error("Placeholder: "+t.name()+" was not found in components list\nNamespace: "+n.getOr("none")+"\nComponents: "+or(e.components,null,2))}),c},vf=mf.single,bf=mf.multiple,yf=Z(df),xf=jt([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),wf=Kr("factory",{sketch:U}),Sf=Kr("schema",[]),Cf=Rr("name"),kf=br("pname","pname",Mo(function(t){return"<alloy."+Oo(t.name)+">"}),Dr()),Of=oi("schema",function(){return[Wr("preprocess")]}),Ef=Kr("defaults",Z({})),Tf=Kr("overrides",Z({})),Bf=dr([wf,Sf,Cf,kf,Ef,Tf]),Df=dr([wf,Sf,Cf,Ef,Tf]),Af=dr([wf,Sf,Cf,kf,Ef,Tf]),_f=dr([wf,Of,Cf,Rr("unit"),kf,Ef,Tf]),Mf=function(t){return t.fold(tt.some,tt.none,tt.some,tt.some)},Ff=function(t){var n=function(t){return t.name};return t.fold(n,n,n,n)},If=function(e,o){return function(t){var n=Er("Converting part type",o,t);return e(n)}},Vf=If(xf.required,Bf),Rf=If(xf.external,Df),Hf=If(xf.optional,Af),Nf=If(xf.group,_f),zf=Z("entirety"),Pf=Object.freeze({required:Vf,external:Rf,optional:Hf,group:Nf,asNamedPart:Mf,name:Ff,asCommon:function(t){return t.fold(U,U,U,U)},original:zf}),Lf=function(t,n,e,o){return Gt(n.defaults(t,e,o),e,{uid:t.partUids[n.name]},n.overrides(t,e,o))},jf=function(r,t){var n={};return st(t,function(t){Mf(t).each(function(e){var o=Uf(r,e.pname);n[e.name]=function(t){var n=Er("Part: "+e.name+" in "+r,dr(e.schema),t);return To({},o,{config:t,validated:n})}})}),n},Uf=function(t,n){return{uiType:yf(),owner:t,name:n}},Wf=function(t,n,e){return{uiType:yf(),owner:t,name:n,config:e,validated:{}}},Gf=function(t){return bt(t,function(t){return t.fold(tt.none,tt.some,tt.none,tt.none).map(function(t){return Lr(t.name,t.schema.concat([aa(zf())]))}).toArray()})},Xf=function(t){return ct(t,Ff)},Yf=function(t,n,e){return o=n,i={},r={},st(e,function(t){t.fold(function(o){i[o.pname]=vf(!0,function(t,n,e){return o.factory.sketch(Lf(t,o,n,e))})},function(t){var n=o.parts[t.name];r[t.name]=Z(t.factory.sketch(Lf(o,t,n[zf()]),n))},function(o){i[o.pname]=vf(!1,function(t,n,e){return o.factory.sketch(Lf(t,o,n,e))})},function(r){i[r.pname]=bf(!0,function(n,t,e){var o=n[r.name];return ct(o,function(t){return r.factory.sketch(Gt(r.defaults(n,t,e),t,r.overrides(n,t)))})})})}),{internals:Z(i),externals:Z(r)};var o,i,r},qf=function(t,n,e){return hf(tt.some(t),n,n.components,e)},Kf=function(t,n,e){var o=n.partUids[e];return t.getSystem().getByUid(o).toOption()},Jf=function(t,n,e){return Kf(t,n,e).getOrDie("Could not find part: "+e)},$f=function(t,n,e){var o={},r=n.partUids,i=t.getSystem();return st(e,function(t){o[t]=i.getByUid(r[t])}),At(o,Z)},Qf=function(t,n){var e=t.getSystem();return At(n.partUids,function(t){return Z(e.getByUid(t))})},Zf=function(t){return Tt(t.partUids)},tl=function(t,n,e){var o={},r=n.partUids,i=t.getSystem();return st(e,function(t){o[t]=i.getByUid(r[t]).getOrDie()}),At(o,Z)},nl=function(n,t){var e=Xf(t);return Qt(ct(e,function(t){return{key:t,value:n+"-"+t}}))},el=function(n){return br("partUids","partUids",Fo(function(t){return nl(t.uid,n)}),Dr())},ol=Object.freeze({generate:jf,generateOne:Wf,schemas:Gf,names:Xf,substitutes:Yf,components:qf,defaultUids:nl,defaultUidsSchema:el,getAllParts:Qf,getAllPartNames:Zf,getPart:Kf,getPartOrDie:Jf,getParts:$f,getPartsOrDie:tl}),rl=function(t,n,e,o,r){var i,u,a=(u=r,(0<(i=o).length?[Lr("parts",i)]:[]).concat([Rr("uid"),Kr("dom",{}),Kr("components",[]),aa("originalSpec"),Kr("debug.sketcher",{})]).concat(u));return Er(t+" [SpecSchema]",lr(a.concat(n)),e)},il=function(t,n,e,o,r){var i=ul(r),u=Gf(e),a=el(e),c=rl(t,n,i,u,[a]),s=Yf(0,c,e);return o(c,qf(t,c,s.internals()),i,s.externals())},ul=function(t){return t.hasOwnProperty("uid")?t:To({},t,{uid:Ui("uid")})},al=lr([Rr("name"),Rr("factory"),Rr("configFields"),Kr("apis",{}),Kr("extraApis",{})]),cl=lr([Rr("name"),Rr("factory"),Rr("configFields"),Rr("partFields"),Kr("apis",{}),Kr("extraApis",{})]),sl=function(t){var i=Er("Sketcher for "+t.name,al,t),n=At(i.apis,$i),e=At(i.extraApis,function(t,n){return qi(t,n)});return To({name:Z(i.name),partFields:Z([]),configFields:Z(i.configFields),sketch:function(t){return n=i.name,e=i.configFields,o=i.factory,r=ul(t),o(rl(n,e,r,[],[]),r);var n,e,o,r}},n,e)},fl=function(t){var n=Er("Sketcher for "+t.name,cl,t),e=jf(n.name,n.partFields),o=At(n.apis,$i),r=At(n.extraApis,function(t,n){return qi(t,n)});return To({name:Z(n.name),partFields:Z(n.partFields),configFields:Z(n.configFields),sketch:function(t){return il(n.name,n.configFields,n.partFields,n.factory,t)},parts:Z(e)},o,r)},ll=function(t){return"input"===Qe(t)&&"radio"!==uo(t,"type")||"textarea"===Qe(t)},dl=Object.freeze({getCurrent:function(t,n){return n.find(t)}}),ml=[Rr("find")],gl=ha({fields:ml,name:"composing",apis:dl}),pl=function(t,n,e,o){var r=t+n;return o<r?e:r<e?o:r},hl=function(t,n,e){return t<=n?n:e<=t?e:t},vl=function(e,o,t,r){var n=es(e.element(),"."+o.highlightClass);st(n,function(n){ut(r,function(t){return t.element()===n})||(hu(n,o.highlightClass),e.getSystem().getByDom(n).each(function(t){o.onDehighlight(e,t),ai(t,be())}))})},bl=function(t,n,e,o){vl(t,n,0,[o]),yl(t,n,e,o)||(gu(o.element(),n.highlightClass),n.onHighlight(t,o),ai(o,ve()))},yl=function(t,n,e,o){return vu(o.element(),n.highlightClass)},xl=function(t,n,e,o){var r=es(t.element(),"."+n.itemClass);return tt.from(r[o]).fold(function(){return Lt.error("No element found with index "+o)},t.getSystem().getByDom)},wl=function(n,t){return Gu(n.element(),"."+t.itemClass).bind(function(t){return n.getSystem().getByDom(t).toOption()})},Sl=function(n,t){var e=es(n.element(),"."+t.itemClass);return(0<e.length?tt.some(e[e.length-1]):tt.none()).bind(function(t){return n.getSystem().getByDom(t).toOption()})},Cl=function(e,n,t,o){var r=es(e.element(),"."+n.itemClass);return gt(r,function(t){return vu(t,n.highlightClass)}).bind(function(t){var n=pl(t,o,0,r.length-1);return e.getSystem().getByDom(r[n]).toOption()})},kl=function(n,t){var e=es(n.element(),"."+t.itemClass);return en(ct(e,function(t){return n.getSystem().getByDom(t).toOption()}))},Ol=Object.freeze({dehighlightAll:function(t,n){return vl(t,n,0,[])},dehighlight:function(t,n,e,o){yl(t,n,e,o)&&(hu(o.element(),n.highlightClass),n.onDehighlight(t,o),ai(o,be()))},highlight:bl,highlightFirst:function(n,e,o){wl(n,e,o).each(function(t){bl(n,e,o,t)})},highlightLast:function(n,e,o){Sl(n,e,o).each(function(t){bl(n,e,o,t)})},highlightAt:function(n,e,o,t){xl(n,e,o,t).fold(function(t){throw new Error(t)},function(t){bl(n,e,o,t)})},highlightBy:function(n,e,o,t){var r=kl(n,e,o);mt(r,t).each(function(t){bl(n,e,o,t)})},isHighlighted:yl,getHighlighted:function(n,t){return Gu(n.element(),"."+t.highlightClass).bind(function(t){return n.getSystem().getByDom(t).toOption()})},getFirst:wl,getLast:Sl,getPrevious:function(t,n){return Cl(t,n,0,-1)},getNext:function(t,n){return Cl(t,n,0,1)},getCandidates:kl}),El=[Rr("highlightClass"),Rr("itemClass"),ea("onHighlight"),ea("onDehighlight")],Tl=ha({fields:El,name:"highlighting",apis:Ol}),Bl=function(t,n,e){var o=wt(t.slice(0,n)),r=wt(t.slice(n+1));return mt(o.concat(r),e)},Dl=function(t,n,e){var o=wt(t.slice(0,n));return mt(o,e)},Al=function(t,n,e){var o=t.slice(0,n),r=t.slice(n+1);return mt(r.concat(o),e)},_l=function(t,n,e){var o=t.slice(n+1);return mt(o,e)},Ml=function(e){return function(t){var n=t.raw();return it(e,n.which)}},Fl=function(t){return function(n){return yt(t,function(t){return t(n)})}},Il=function(t){return!0===t.raw().shiftKey},Vl=function(t){return!0===t.raw().ctrlKey},Rl=N(Il),Hl=function(t,n){return{matches:t,classification:n}},Nl=function(t){t.dom().focus()},zl=function(t){var n=t!==undefined?t.dom():b.document;return tt.from(n.activeElement).map(xe.fromDom)},Pl=function(n){return zl(He(n)).filter(function(t){return n.dom().contains(t.dom())})},Ll=function(t,n,e){n.exists(function(n){return e.exists(function(t){return Re(t,n)})})||ci(t,me(),{prevFocus:n,newFocus:e})},jl=function(){var r=function(t){return Pl(t.element())};return{get:r,set:function(t,n){var e=r(t);t.getSystem().triggerFocus(n,t.element());var o=r(t);Ll(t,e,o)}}},Ul=function(){var r=function(t){return Tl.getHighlighted(t).map(function(t){return t.element()})};return{get:r,set:function(n,t){var e=r(n);n.getSystem().getByDom(t).fold(Q,function(t){Tl.highlight(n,t)});var o=r(n);Ll(n,e,o)}}};(No=Ho||(Ho={})).OnFocusMode="onFocus",No.OnEnterOrSpaceMode="onEnterOrSpace",No.OnApiMode="onApi";var Wl,Gl,Xl=function(t,n,e,o,a){var c=function(n,e,t,o,r){var i,u;return(i=t(n,e,o,r),u=e.event(),mt(i,function(t){return t.matches(u)}).map(function(t){return t.classification})).bind(function(t){return t(n,e,o,r)})},r={schema:function(){return t.concat([Kr("focusManager",jl()),Jr("focusInside","onFocus",Sr(function(t){return it(["onFocus","onEnterOrSpace","onApi"],t)?Lt.value(t):Lt.error("Invalid value for focusInside")})),ua("handler",r),ua("state",n),ua("sendFocusIn",a)])},processKey:c,toEvents:function(i,u){var t=i.focusInside!==Ho.OnFocusMode?tt.none():a(i).map(function(e){return Ci(Jn(),function(t,n){e(t,i,u),n.stop()})});return xi(t.toArray().concat([Ci(pn(),function(o,r){c(o,r,e,i,u).fold(function(){var n,e,t;n=o,e=r,t=Ml([32].concat([13]))(e.event()),i.focusInside===Ho.OnEnterOrSpaceMode&&t&&ri(n,e)&&a(i).each(function(t){t(n,i,u),e.stop()})},function(){r.stop()})}),Ci(hn(),function(t,n){c(t,n,o,i,u).each(function(){n.stop()})})]))}};return r},Yl=function(t){var n=[Wr("onEscape"),Wr("onEnter"),Kr("selector",'[data-alloy-tabstop="true"]'),Kr("firstTabstop",0),Kr("useTabstopAt",Z(!0)),Wr("visibilitySelector")].concat([t]),u=function(t,n){var e=t.visibilitySelector.bind(function(t){return Xu(n,t)}).getOr(n);return 0<Ia(e)},e=function(n,e){var t,o,r,i;(t=n,o=e,r=es(t.element(),o.selector),i=ft(r,function(t){return u(o,t)}),tt.from(i[o.firstTabstop])).each(function(t){e.focusManager.set(n,t)})},a=function(n,t,e,o,r){return r(t,e,function(t){return u(n=o,e=t)&&n.useTabstopAt(e);var n,e}).fold(function(){return o.cyclic?tt.some(!0):tt.none()},function(t){return o.focusManager.set(n,t),tt.some(!0)})},r=function(n,t,e,o){var r,i,u=es(n.element(),e.selector);return(r=n,i=e,i.focusManager.get(r).bind(function(t){return Xu(t,i.selector)})).bind(function(t){return gt(u,h(Re,t)).bind(function(t){return a(n,u,t,e,o)})})},o=Z([Hl(Fl([Il,Ml([9])]),function(t,n,e){var o=e.cyclic?Bl:Dl;return r(t,0,e,o)}),Hl(Ml([9]),function(t,n,e){var o=e.cyclic?Al:_l;return r(t,0,e,o)}),Hl(Ml([27]),function(n,e,t){return t.onEscape.bind(function(t){return t(n,e)})}),Hl(Fl([Rl,Ml([13])]),function(n,e,t){return t.onEnter.bind(function(t){return t(n,e)})})]),i=Z([]);return Xl(n,Qi.init,o,i,function(){return tt.some(e)})},ql=Yl(oi("cyclic",Z(!1))),Kl=Yl(oi("cyclic",Z(!0))),Jl=function(t,n,e){return ll(e)&&Ml([32])(n.event())?tt.none():(fi(t,e,te()),tt.some(!0))},$l=function(){return tt.some(!0)},Ql=[Kr("execute",Jl),Kr("useSpace",!1),Kr("useEnter",!0),Kr("useControlEnter",!1),Kr("useDown",!1)],Zl=function(t,n,e){return e.execute(t,n,t.element())},td=Xl(Ql,Qi.init,function(t,n,e){var o=e.useSpace&&!ll(t.element())?[32]:[],r=e.useEnter?[13]:[],i=e.useDown?[40]:[],u=o.concat(r).concat(i);return[Hl(Ml(u),Zl)].concat(e.useControlEnter?[Hl(Fl([Vl,Ml([13])]),Zl)]:[])},function(t,n,e){return e.useSpace&&!ll(t.element())?[Hl(Ml([32]),$l)]:[]},function(){return tt.none()}),nd=function(){var e=nn(tt.none());return Zi({readState:function(){return e.get().map(function(t){return{numRows:t.numRows(),numColumns:t.numColumns()}}).getOr({numRows:"?",numColumns:"?"})},setGridSize:function(t,n){e.set(tt.some({numRows:Z(t),numColumns:Z(n)}))},getNumRows:function(){return e.get().map(function(t){return t.numRows()})},getNumColumns:function(){return e.get().map(function(t){return t.numColumns()})}})},ed=Object.freeze({flatgrid:nd,init:function(t){return t.state(t)}}),od=function(i){return function(t,n,e,o){var r=i(t.element());return ad(r,t,n,e,o)}},rd=function(t,n){var e=Nc(t,n);return od(e)},id=function(t,n){var e=Nc(n,t);return od(e)},ud=function(r){return function(t,n,e,o){return ad(r,t,n,e,o)}},ad=function(n,e,t,o,r){return o.focusManager.get(e).bind(function(t){return n(e.element(),t,o,r)}).map(function(t){return o.focusManager.set(e,t),!0})},cd=ud,sd=ud,fd=ud,ld=function(t){var n;return!((n=t.dom()).offsetWidth<=0&&n.offsetHeight<=0)},dd=ke(["index","candidates"],[]),md=function(t,n,e){return gd(t,n,e,ld)},gd=function(t,n,e){var o,r=h(Re,n),i=es(t,e),u=ft(i,ld);return gt(o=u,r).map(function(t){return dd({index:t,candidates:o})})},pd=function(t,n){return gt(t,function(t){return Re(n,t)})},hd=function(e,t,o,n){return n(Math.floor(t/o),t%o).bind(function(t){var n=t.row()*o+t.column();return 0<=n&&n<e.length?tt.some(e[n]):tt.none()})},vd=function(r,t,i,u,a){return hd(r,t,u,function(t,n){var e=t===i-1?r.length-t*u:u,o=pl(n,a,0,e-1);return tt.some({row:Z(t),column:Z(o)})})},bd=function(i,t,u,a,c){return hd(i,t,a,function(t,n){var e=pl(t,c,0,u-1),o=e===u-1?i.length-e*a:a,r=hl(n,0,o-1);return tt.some({row:Z(e),column:Z(r)})})},yd=[Rr("selector"),Kr("execute",Jl),oa("onEscape"),Kr("captureTab",!1),ca()],xd=function(n,e){Gu(n.element(),e.selector).each(function(t){e.focusManager.set(n,t)})},wd=function(r){return function(t,n,e,o){return md(t,n,e.selector).bind(function(t){return r(t.candidates(),t.index(),o.getNumRows().getOr(e.initSize.numRows),o.getNumColumns().getOr(e.initSize.numColumns))})}},Sd=function(t,n,e){return e.captureTab?tt.some(!0):tt.none()},Cd=wd(function(t,n,e,o){return vd(t,n,e,o,-1)}),kd=wd(function(t,n,e,o){return vd(t,n,e,o,1)}),Od=wd(function(t,n,e,o){return bd(t,n,e,o,-1)}),Ed=wd(function(t,n,e,o){return bd(t,n,e,o,1)}),Td=Z([Hl(Ml([37]),rd(Cd,kd)),Hl(Ml([39]),id(Cd,kd)),Hl(Ml([38]),cd(Od)),Hl(Ml([40]),sd(Ed)),Hl(Fl([Il,Ml([9])]),Sd),Hl(Fl([Rl,Ml([9])]),Sd),Hl(Ml([27]),function(t,n,e){return e.onEscape(t,n)}),Hl(Ml([32].concat([13])),function(n,e,o){return(t=n,r=o,r.focusManager.get(t).bind(function(t){return Xu(t,r.selector)})).bind(function(t){return o.execute(n,e,t)});var t,r})]),Bd=Z([Hl(Ml([32]),$l)]),Dd=Xl(yd,nd,Td,Bd,function(){return tt.some(xd)}),Ad=function(t,n,e,i){var u=function(t,n,e){var o,r=pl(n,i,0,e.length-1);return r===t?tt.none():(o=e[r],"button"===Qe(o)&&"disabled"===uo(o,"disabled")?u(t,r,e):tt.from(e[r]))};return md(t,e,n).bind(function(t){var n=t.index(),e=t.candidates();return u(n,n,e)})},_d=[Rr("selector"),Kr("getInitial",tt.none),Kr("execute",Jl),oa("onEscape"),Kr("executeOnMove",!1),Kr("allowVertical",!0)],Md=function(n,e,o){return(t=n,r=o,r.focusManager.get(t).bind(function(t){return Xu(t,r.selector)})).bind(function(t){return o.execute(n,e,t)});var t,r},Fd=function(n,e){e.getInitial(n).orThunk(function(){return Gu(n.element(),e.selector)}).each(function(t){e.focusManager.set(n,t)})},Id=function(t,n,e){return Ad(t,e.selector,n,-1)},Vd=function(t,n,e){return Ad(t,e.selector,n,1)},Rd=function(o){return function(t,n,e){return o(t,n,e).bind(function(){return e.executeOnMove?Md(t,n,e):tt.some(!0)})}},Hd=function(t,n,e){return e.onEscape(t,n)},Nd=Z([Hl(Ml([32]),$l)]),zd=Xl(_d,Qi.init,function(t,n,e){var o=[37].concat(e.allowVertical?[38]:[]),r=[39].concat(e.allowVertical?[40]:[]);return[Hl(Ml(o),Rd(rd(Id,Vd))),Hl(Ml(r),Rd(id(Id,Vd))),Hl(Ml([13]),Md),Hl(Ml([32]),Md),Hl(Ml([27]),Hd)]},Nd,function(){return tt.some(Fd)}),Pd=ke(["rowIndex","columnIndex","cell"],[]),Ld=function(t,n,e){return tt.from(t[n]).bind(function(t){return tt.from(t[e]).map(function(t){return Pd({rowIndex:n,columnIndex:e,cell:t})})})},jd=function(t,n,e,o){var r=t[n].length,i=pl(e,o,0,r-1);return Ld(t,n,i)},Ud=function(t,n,e,o){var r=pl(e,o,0,t.length-1),i=t[r].length,u=hl(n,0,i-1);return Ld(t,r,u)},Wd=function(t,n,e,o){var r=t[n].length,i=hl(e+o,0,r-1);return Ld(t,n,i)},Gd=function(t,n,e,o){var r=hl(e+o,0,t.length-1),i=t[r].length,u=hl(n,0,i-1);return Ld(t,r,u)},Xd=[Lr("selectors",[Rr("row"),Rr("cell")]),Kr("cycles",!0),Kr("previousSelector",tt.none),Kr("execute",Jl)],Yd=function(n,e){e.previousSelector(n).orThunk(function(){var t=e.selectors;return Gu(n.element(),t.cell)}).each(function(t){e.focusManager.set(n,t)})},qd=function(t,n){return function(e,o,i){var u=i.cycles?t:n;return Xu(o,i.selectors.row).bind(function(t){var n=es(t,i.selectors.cell);return pd(n,o).bind(function(o){var r=es(e,i.selectors.row);return pd(r,t).bind(function(t){var n,e=(n=i,ct(r,function(t){return es(t,n.selectors.cell)}));return u(e,t,o).map(function(t){return t.cell()})})})})}},Kd=qd(function(t,n,e){return jd(t,n,e,-1)},function(t,n,e){return Wd(t,n,e,-1)}),Jd=qd(function(t,n,e){return jd(t,n,e,1)},function(t,n,e){return Wd(t,n,e,1)}),$d=qd(function(t,n,e){return Ud(t,e,n,-1)},function(t,n,e){return Gd(t,e,n,-1)}),Qd=qd(function(t,n,e){return Ud(t,e,n,1)},function(t,n,e){return Gd(t,e,n,1)}),Zd=Z([Hl(Ml([37]),rd(Kd,Jd)),Hl(Ml([39]),id(Kd,Jd)),Hl(Ml([38]),cd($d)),Hl(Ml([40]),sd(Qd)),Hl(Ml([32].concat([13])),function(n,e,o){return Pl(n.element()).bind(function(t){return o.execute(n,e,t)})})]),tm=Z([Hl(Ml([32]),$l)]),nm=Xl(Xd,Qi.init,Zd,tm,function(){return tt.some(Yd)}),em=[Rr("selector"),Kr("execute",Jl),Kr("moveOnTab",!1)],om=function(n,e,o){return o.focusManager.get(n).bind(function(t){return o.execute(n,e,t)})},rm=function(n,e){Gu(n.element(),e.selector).each(function(t){e.focusManager.set(n,t)})},im=function(t,n,e){return Ad(t,e.selector,n,-1)},um=function(t,n,e){return Ad(t,e.selector,n,1)},am=Z([Hl(Ml([38]),fd(im)),Hl(Ml([40]),fd(um)),Hl(Fl([Il,Ml([9])]),function(t,n,e){return e.moveOnTab?fd(im)(t,n,e):tt.none()}),Hl(Fl([Rl,Ml([9])]),function(t,n,e){return e.moveOnTab?fd(um)(t,n,e):tt.none()}),Hl(Ml([13]),om),Hl(Ml([32]),om)]),cm=Z([Hl(Ml([32]),$l)]),sm=Xl(em,Qi.init,am,cm,function(){return tt.some(rm)}),fm=[oa("onSpace"),oa("onEnter"),oa("onShiftEnter"),oa("onLeft"),oa("onRight"),oa("onTab"),oa("onShiftTab"),oa("onUp"),oa("onDown"),oa("onEscape"),Kr("stopSpaceKeyup",!1),Wr("focusIn")],lm=Xl(fm,Qi.init,function(t,n,e){return[Hl(Ml([32]),e.onSpace),Hl(Fl([Rl,Ml([13])]),e.onEnter),Hl(Fl([Il,Ml([13])]),e.onShiftEnter),Hl(Fl([Il,Ml([9])]),e.onShiftTab),Hl(Fl([Rl,Ml([9])]),e.onTab),Hl(Ml([38]),e.onUp),Hl(Ml([40]),e.onDown),Hl(Ml([37]),e.onLeft),Hl(Ml([39]),e.onRight),Hl(Ml([32]),e.onSpace),Hl(Ml([27]),e.onEscape)]},function(t,n,e){return e.stopSpaceKeyup?[Hl(Ml([32]),$l)]:[]},function(t){return t.focusIn}),dm=ql.schema(),mm=Kl.schema(),gm=zd.schema(),pm=Dd.schema(),hm=nm.schema(),vm=td.schema(),bm=sm.schema(),ym=lm.schema(),xm=ba({branchKey:"mode",branches:Object.freeze({acyclic:dm,cyclic:mm,flow:gm,flatgrid:pm,matrix:hm,execution:vm,menu:bm,special:ym}),name:"keying",active:{events:function(t,n){return t.handler.toEvents(t,n)}},apis:{focusIn:function(n,e,o){e.sendFocusIn(e).fold(function(){n.getSystem().triggerFocus(n.element(),n.element())},function(t){t(n,e,o)})},setGridSize:function(t,n,e,o,r){tn(e,"setGridSize")?e.setGridSize(o,r):b.console.error("Layout does not support setGridSize")}},state:ed}),wm=function(t,n,e,o){var r=t.getSystem().build(o);zs(t,r,e)},Sm=function(t,n,e,o){var r=Cm(t,n);mt(r,function(t){return Re(o.element(),t.element())}).each(Ls)},Cm=function(t){return t.components()},km=function(n,e,t,r,o){var i=Cm(n,e);return tt.from(i[r]).map(function(t){return Sm(n,e,0,t),o.each(function(t){wm(n,0,function(t,n){var e,o;o=n,je(e=t,r).fold(function(){Xe(e,o)},function(t){Ue(t,o)})},t)}),t})},Om=ha({fields:[],name:"replacing",apis:Object.freeze({append:function(t,n,e,o){wm(t,0,Xe,o)},prepend:function(t,n,e,o){wm(t,0,Ge,o)},remove:Sm,replaceAt:km,replaceBy:function(n,e,t,o,r){var i=Cm(n,e);return gt(i,o).bind(function(t){return km(n,e,0,t,r)})},set:function(n,t,e,o){var r,i,u,a;js(n),r=function(){var t=ct(o,n.getSystem().build);st(t,function(t){Ns(n,t)})},i=n.element(),u=He(i),a=zl(u).bind(function(n){var t=function(t){return Re(n,t)};return t(i)?tt.some(i):bi(i,t)}),r(i),a.each(function(n){zl(u).filter(function(t){return Re(t,n)}).fold(function(){Nl(n)},Q)})},contents:Cm})}),Em=function(t,n,e){n.store.manager.onLoad(t,n,e)},Tm=function(t,n,e){n.store.manager.onUnload(t,n,e)},Bm=Object.freeze({onLoad:Em,onUnload:Tm,setValue:function(t,n,e,o){n.store.manager.setValue(t,n,e,o)},getValue:function(t,n,e){return n.store.manager.getValue(t,n,e)},getState:function(t,n,e){return e}}),Dm=Object.freeze({events:function(n,e){var t=n.resetOnDom?[_i(function(t){Em(t,n,e)}),Mi(function(t){Tm(t,n,e)})]:[sa(n,e,Em)];return xi(t)}}),Am=function(){var t=nn(null);return Zi({set:t.set,get:t.get,isNotSet:function(){return null===t.get()},clear:function(){t.set(null)},readState:function(){return{mode:"memory",value:t.get()}}})},_m=function(){var i=nn({}),u=nn({});return Zi({readState:function(){return{mode:"dataset",dataByValue:i.get(),dataByText:u.get()}},lookup:function(t){return Jt(i.get(),t).orThunk(function(){return Jt(u.get(),t)})},update:function(t){var n=i.get(),e=u.get(),o={},r={};st(t,function(n){o[n.value]=n,Jt(n,"meta").each(function(t){Jt(t,"text").each(function(t){r[t]=n})})}),i.set(To({},n,o)),u.set(To({},e,r))},clear:function(){i.set({}),u.set({})}})},Mm=Object.freeze({memory:Am,dataset:_m,manual:function(){return Zi({readState:function(){}})},init:function(t){return t.store.manager.state(t)}}),Fm=function(t,n,e,o){var r=n.store;e.update([o]),r.setValue(t,o),n.onSetValue(t,o)},Im=[Wr("initialValue"),Rr("getFallbackEntry"),Rr("getDataKey"),Rr("setValue"),ua("manager",{setValue:Fm,getValue:function(t,n,e){var o=n.store,r=o.getDataKey(t);return e.lookup(r).fold(function(){return o.getFallbackEntry(r)},function(t){return t})},onLoad:function(n,e,o){e.store.initialValue.each(function(t){Fm(n,e,o,t)})},onUnload:function(t,n,e){e.clear()},state:_m})],Vm=[Rr("getValue"),Kr("setValue",Q),Wr("initialValue"),ua("manager",{setValue:function(t,n,e,o){n.store.setValue(t,o),n.onSetValue(t,o)},getValue:function(t,n){return n.store.getValue(t)},onLoad:function(n,e){e.store.initialValue.each(function(t){e.store.setValue(n,t)})},onUnload:Q,state:Qi.init})],Rm=[Wr("initialValue"),ua("manager",{setValue:function(t,n,e,o){e.set(o),n.onSetValue(t,o)},getValue:function(t,n,e){return e.get()},onLoad:function(t,n,e){n.store.initialValue.each(function(t){e.isNotSet()&&e.set(t)})},onUnload:function(t,n,e){e.clear()},state:Am})],Hm=[Jr("store",{mode:"memory"},Br("mode",{memory:Rm,manual:Vm,dataset:Im})),ea("onSetValue"),Kr("resetOnDom",!1)],Nm=ha({fields:Hm,name:"representing",active:Dm,apis:Bm,extra:{setValueFrom:function(t,n){var e=Nm.getValue(n);Nm.setValue(t,e)}},state:Mm}),zm=function(t,n){n.ignore||(Nl(t.element()),n.onFocus(t))},Pm=Object.freeze({focus:zm,blur:function(t,n){n.ignore||t.element().dom().blur()},isFocused:function(t){return n=t.element(),e=He(n).dom(),n.dom()===e.activeElement;var n,e}}),Lm=Object.freeze({exhibit:function(t,n){var e=n.ignore?{}:{attributes:{tabindex:"-1"}};return nu(e)},events:function(e){return xi([Ci(Jn(),function(t,n){zm(t,e),n.stop()})].concat(e.stopMousedown?[Ci(cn(),function(t,n){n.event().prevent()})]:[]))}}),jm=[ea("onFocus"),Kr("stopMousedown",!1),Kr("ignore",!1)],Um=ha({fields:jm,name:"focusing",active:Lm,apis:Pm}),Wm=function(t,n,e){var o=n.aria;o.update(t,o,e.get())},Gm=function(n,t,e){t.toggleClass.each(function(t){e.get()?gu(n.element(),t):hu(n.element(),t)})},Xm=function(t,n,e){Km(t,n,e,!e.get())},Ym=function(t,n,e){e.set(!0),Gm(t,n,e),Wm(t,n,e)},qm=function(t,n,e){e.set(!1),Gm(t,n,e),Wm(t,n,e)},Km=function(t,n,e,o){(o?Ym:qm)(t,n,e)},Jm=function(t,n,e){Km(t,n,e,n.selected)},$m=Object.freeze({onLoad:Jm,toggle:Xm,isOn:function(t,n,e){return e.get()},on:Ym,off:qm,set:Km}),Qm=Object.freeze({exhibit:function(){return nu({})},events:function(t,n){var e,o,r,i=(e=t,o=n,r=Xm,Ii(function(t){r(t,e,o)})),u=sa(t,n,Jm) ;return xi(vt([t.toggleOnExecute?[i]:[],[u]]))}}),Zm=Object.freeze({init:function(){var n=nn(!1);return{readState:function(){return n.get()},get:function(){return n.get()},set:function(t){return n.set(t)},clear:function(){return n.set(!1)}}}}),tg=function(t,n,e){ro(t.element(),"aria-expanded",e)},ng=[Kr("selected",!1),Wr("toggleClass"),Kr("toggleOnExecute",!0),Jr("aria",{mode:"none"},Br("mode",{pressed:[Kr("syncWithExpanded",!1),ua("update",function(t,n,e){ro(t.element(),"aria-pressed",e),n.syncWithExpanded&&tg(t,n,e)})],checked:[ua("update",function(t,n,e){ro(t.element(),"aria-checked",e)})],expanded:[ua("update",tg)],selected:[ua("update",function(t,n,e){ro(t.element(),"aria-selected",e)})],none:[ua("update",Q)]}))],eg=ha({fields:ng,name:"toggling",active:Qm,apis:$m,state:Zm}),og="alloy.item-hover",rg="alloy.item-focus",ig=function(t){(Pl(t.element()).isNone()||Um.isFocused(t))&&(Um.isFocused(t)||Um.focus(t),ci(t,og,{item:t}))},ug=function(t){ci(t,rg,{item:t})},ag=Z(og),cg=Z(rg),sg=function(t,n){var e,o;return{key:t,value:{config:{},me:(e=t,o=xi(n),ha({fields:[Rr("enabled")],name:e,active:{events:Z(o)}})),configAsRaw:Z({}),initialConfig:{},state:Qi}}},fg=[Rr("data"),Rr("components"),Rr("dom"),Kr("hasSubmenu",!1),Wr("toggling"),ff("itemBehaviours",[eg,Um,xm,Nm]),Kr("ignoreFocus",!1),Kr("domModification",{}),ua("builder",function(t){return{dom:t.dom,domModification:To({},t.domModification,{attributes:To({role:t.toggling.isSome()?"menuitemcheckbox":"menuitem"},t.domModification.attributes,{"aria-haspopup":t.hasSubmenu},t.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:lf(t.itemBehaviours,[t.toggling.fold(eg.revoke,function(t){return eg.config(To({aria:{mode:"checked"}},t))}),Um.config({ignore:t.ignoreFocus,stopMousedown:t.ignoreFocus,onFocus:function(t){ug(t)}}),xm.config({mode:"execution"}),Nm.config({store:{mode:"memory",initialValue:t.data}}),sg("item-type-events",[Ci(oe(),si),Bi(cn()),Ci(dn(),ig),Ci(ne(),Um.focus)])]),components:t.components,eventOrder:t.eventOrder}}),Kr("eventOrder",{})],lg=[Rr("dom"),Rr("components"),ua("builder",function(t){return{dom:t.dom,components:t.components,events:xi([Di(ne())])}})],dg=Z([Vf({name:"widget",overrides:function(t){return{behaviours:ga([Nm.config({store:{mode:"manual",getValue:function(){return t.data},setValue:function(){}}})])}}})]),mg=[Rr("uid"),Rr("data"),Rr("components"),Rr("dom"),Kr("autofocus",!1),Kr("ignoreFocus",!1),ff("widgetBehaviours",[Nm,Um,xm]),Kr("domModification",{}),el(dg()),ua("builder",function(e){var t=Yf(0,e,dg()),n=qf("item-widget",e,t.internals()),o=function(t){return Kf(t,e,"widget").map(function(t){return xm.focusIn(t),t})},r=function(t,n){return ll(n.event().target())||e.autofocus&&n.setSource(t.element()),tt.none()};return{dom:e.dom,components:n,domModification:e.domModification,events:xi([Ii(function(t,n){o(t).each(function(){n.stop()})}),Ci(dn(),ig),Ci(ne(),function(t){e.autofocus?o(t):Um.focus(t)})]),behaviours:lf(e.widgetBehaviours,[Nm.config({store:{mode:"memory",initialValue:e.data}}),Um.config({ignore:e.ignoreFocus,onFocus:function(t){ug(t)}}),xm.config({mode:"special",focusIn:e.autofocus?function(t){o(t)}:ya(),onLeft:r,onRight:r,onEscape:function(t,n){return Um.isFocused(t)||e.autofocus?(e.autofocus&&n.setSource(t.element()),tt.none()):(Um.focus(t),tt.some(!0))}})])}})],gg=Br("type",{widget:mg,item:fg,separator:lg}),pg=Z([Nf({factory:{sketch:function(t){var n=Er("menu.spec item",gg,t);return n.builder(n)}},name:"items",unit:"item",defaults:function(t,n){return n.hasOwnProperty("uid")?n:To({},n,{uid:Ui("item")})},overrides:function(t,n){return{type:n.type,ignoreFocus:t.fakeFocus,domModification:{classes:[t.markers.item]}}}})]),hg=Z([Rr("value"),Rr("items"),Rr("dom"),Rr("components"),Kr("eventOrder",{}),af("menuBehaviours",[Tl,Nm,gl,xm]),Jr("movement",{mode:"menu",moveOnTab:!0},Br("mode",{grid:[ca(),ua("config",function(t,n){return{mode:"flatgrid",selector:"."+t.markers.item,initSize:{numColumns:n.initSize.numColumns,numRows:n.initSize.numRows},focusManager:t.focusManager}})],matrix:[ua("config",function(t,n){return{mode:"matrix",selectors:{row:n.rowSelector,cell:"."+t.markers.item},focusManager:t.focusManager}}),Rr("rowSelector")],menu:[Kr("moveOnTab",!0),ua("config",function(t,n){return{mode:"menu",selector:"."+t.markers.item,moveOnTab:n.moveOnTab,focusManager:t.focusManager}})]})),Hr("markers",$u()),Kr("fakeFocus",!1),Kr("focusManager",jl()),ea("onHighlight")]),vg=Z("alloy.menu-focus"),bg=fl({name:"Menu",configFields:hg(),partFields:pg(),factory:function(t,n){return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:sf(t.menuBehaviours,[Tl.config({highlightClass:t.markers.selectedItem,itemClass:t.markers.item,onHighlight:t.onHighlight}),Nm.config({store:{mode:"memory",initialValue:t.value}}),gl.config({find:tt.some}),xm.config(t.movement.config(t,t.movement))]),events:xi([Ci(cg(),function(n,e){var t=e.event();n.getSystem().getByDom(t.target()).each(function(t){Tl.highlight(n,t),e.stop(),ci(n,vg(),{menu:n,item:t})})}),Ci(ag(),function(t,n){var e=n.event().item();Tl.highlight(t,e)})]),components:n,eventOrder:t.eventOrder,domModification:{attributes:{role:"menu"}}}}}),yg=function(e,o,r,t){return Jt(r,t).bind(function(t){return Jt(e,t).bind(function(t){var n=yg(e,o,r,t);return tt.some([t].concat(n))})}).getOr([])},xg=function(t,n){var e={};Dt(t,function(t,n){st(t,function(t){e[t]=n})});var o=n,r=_t(n,function(t,n){return{k:t,v:n}}),i=At(r,function(t,n){return[n].concat(yg(e,o,r,n))});return At(e,function(t){return Jt(i,t).getOr([t])})},wg=function(){var i=nn({}),u=nn({}),a=nn({}),c=nn(tt.none()),s=nn({}),n=function(t){return Jt(u.get(),t)};return{setMenuBuilt:function(t,n){var e;u.set(To({},u.get(),((e={})[t]={type:"prepared",menu:n},e)))},setContents:function(t,n,e,o){c.set(tt.some(t)),i.set(e),u.set(n),s.set(o);var r=xg(o,e);a.set(r)},expand:function(e){return Jt(i.get(),e).map(function(t){var n=Jt(a.get(),e).getOr([]);return[t].concat(n)})},refresh:function(t){return Jt(a.get(),t)},collapse:function(t){return Jt(a.get(),t).bind(function(t){return 1<t.length?tt.some(t.slice(1)):tt.none()})},lookupMenu:n,otherMenus:function(t){var n=s.get();return St(Tt(n),t)},getPrimary:function(){return c.get().bind(function(t){return n(t).bind(function(t){return"prepared"===t.type?tt.some(t.menu):tt.none()})})},getMenus:function(){return u.get()},clear:function(){i.set({}),u.set({}),a.set({}),c.set(tt.none())},isClear:function(){return c.get().isNone()}}},Sg=Z("collapse-item"),Cg=sl({name:"TieredMenu",configFields:[ia("onExecute"),ia("onEscape"),ra("onOpenMenu"),ra("onOpenSubmenu"),ea("onCollapseMenu"),Kr("highlightImmediately",!0),Lr("data",[Rr("primary"),Rr("menus"),Rr("expansions")]),Kr("fakeFocus",!1),ea("onHighlight"),ea("onHover"),Zu(),Rr("dom"),Kr("navigateOnHover",!0),Kr("stayInDom",!1),af("tmenuBehaviours",[xm,Tl,gl,Om]),Kr("eventOrder",{})],apis:{collapseMenu:function(t,n){t.collapseMenu(n)},highlightPrimary:function(t,n){t.highlightPrimary(n)}},factory:function(a){var c,t,i=nn(tt.none()),s=wg(),e=function(t){var o,r,n,e=(o=t,r=a.data.primary,n=a.data.menus,At(n,function(t,n){var e=function(){return bg.sketch(To({dom:t.dom},t,{value:n,items:t.items,markers:a.markers,fakeFocus:a.fakeFocus,onHighlight:a.onHighlight,focusManager:a.fakeFocus?Ul():jl()}))};return n===r?{type:"prepared",menu:o.getSystem().build(e())}:{type:"notbuilt",nbMenu:e}})),i=u(t);return s.setContents(a.data.primary,e,a.data.expansions,i),s.getPrimary()},f=function(t){return Nm.getValue(t).value},u=function(){return At(a.data.menus,function(t){return bt(t.items,function(t){return"separator"===t.type?[]:[t.data.value]})})},l=function(n,t){Tl.highlight(n,t),Tl.getHighlighted(t).orThunk(function(){return Tl.getFirst(t)}).each(function(t){fi(n,t.element(),ne())})},d=function(n,t){return en(ct(t,function(t){return n.lookupMenu(t).bind(function(t){return"prepared"===t.type?tt.some(t.menu):tt.none()})}))},m=function(n,t,e){var o=d(t,t.otherMenus(e));st(o,function(t){yu(t.element(),[a.markers.backgroundMenu]),a.stayInDom||Om.remove(n,t)})},g=function(t,o){var r,n=(r=t,i.get().getOrThunk(function(){var e={},t=es(r.element(),"."+a.markers.item),n=ft(t,function(t){return"true"===uo(t,"aria-haspopup")});return st(n,function(t){r.getSystem().getByDom(t).each(function(t){var n=f(t);e[n]=t})}),i.set(tt.some(e)),e}));Dt(n,function(t,n){var e=it(o,n);ro(t.element(),"aria-expanded",e)})},p=function(o,r,i){return tt.from(i[0]).bind(function(t){return r.lookupMenu(t).bind(function(t){if("notbuilt"===t.type)return tt.none();var n=t.menu,e=d(r,i.slice(1));return st(e,function(t){gu(t.element(),a.markers.backgroundMenu)}),mi(n.element())||Om.append(o,Uu(n)),yu(n.element(),[a.markers.backgroundMenu]),l(o,n),m(o,r,i),tt.some(n)})})};(t=c||(c={}))[t.HighlightSubmenu=0]="HighlightSubmenu",t[t.HighlightParent=1]="HighlightParent";var h=function(r,i,u){void 0===u&&(u=c.HighlightSubmenu);var t=f(i);return s.expand(t).bind(function(o){return g(r,o),tt.from(o[0]).bind(function(e){return s.lookupMenu(e).bind(function(t){var n=function(t,n,e){if("notbuilt"!==e.type)return e.menu;var o=t.getSystem().build(e.nbMenu());return s.setMenuBuilt(n,o),o}(r,e,t);return mi(n.element())||Om.append(r,Uu(n)),a.onOpenSubmenu(r,i,n),u===c.HighlightSubmenu?(Tl.highlightFirst(n),p(r,s,o)):(Tl.dehighlightAll(n),tt.some(i))})})})},o=function(n,e){var t=f(e);return s.collapse(t).bind(function(t){return g(n,t),p(n,s,t).map(function(t){return a.onCollapseMenu(n,e,t),t})})},n=function(e){return function(n,t){return Xu(t.getSource(),"."+a.markers.item).bind(function(t){return n.getSystem().getByDom(t).toOption().bind(function(t){return e(n,t).map(function(){return!0})})})}},r=xi([Ci(vg(),function(n,t){var e=t.event().menu();Tl.highlight(n,e);var o=f(t.event().item());s.refresh(o).each(function(t){return m(n,s,t)})}),Ii(function(n,t){var e=t.event().target();n.getSystem().getByDom(e).each(function(t){0===f(t).indexOf("collapse-item")&&o(n,t),h(n,t,c.HighlightSubmenu).fold(function(){a.onExecute(n,t)},function(){})})}),_i(function(n){e(n).each(function(t){Om.append(n,Uu(t)),a.onOpenMenu(n,t),a.highlightImmediately&&l(n,t)})})].concat(a.navigateOnHover?[Ci(ag(),function(t,n){var e,o,r=n.event().item();e=t,o=f(r),s.refresh(o).bind(function(t){return g(e,t),p(e,s,t)}),h(t,r,c.HighlightParent),a.onHover(t,r)})]:[])),v={collapseMenu:function(n){Tl.getHighlighted(n).each(function(t){Tl.getHighlighted(t).each(function(t){o(n,t)})})},highlightPrimary:function(n){s.getPrimary().each(function(t){l(n,t)})}};return{uid:a.uid,dom:a.dom,markers:a.markers,behaviours:sf(a.tmenuBehaviours,[xm.config({mode:"special",onRight:n(function(t,n){return ll(n.element())?tt.none():h(t,n,c.HighlightSubmenu)}),onLeft:n(function(t,n){return ll(n.element())?tt.none():o(t,n)}),onEscape:n(function(t,n){return o(t,n).orThunk(function(){return a.onEscape(t,n).map(function(){return t})})}),focusIn:function(n){s.getPrimary().each(function(t){fi(n,t.element(),ne())})}}),Tl.config({highlightClass:a.markers.selectedMenu,itemClass:a.markers.menu}),gl.config({find:function(t){return Tl.getHighlighted(t)}}),Om.config({})]),eventOrder:a.eventOrder,apis:v,events:r}},extraApis:{tieredData:function(t,n,e){return{primary:t,menus:n,expansions:e}},singleData:function(t,n){return{primary:t,menus:$t(t,n),expansions:{}}},collapseItem:function(t){return{value:Oo(Sg()),meta:{text:t}}}}}),kg=sl({name:"InlineView",configFields:[Rr("lazySink"),ea("onShow"),ea("onHide"),Yr("onEscape"),af("inlineBehaviours",[tf,Sa]),qr("fireDismissalEventInstead",[Kr("event",de())]),Kr("getRelated",tt.none),Kr("eventOrder",tt.none)],factory:function(s){var r=function(t,n,e,o){var r=s.lazySink(t).getOrDie();tf.openWhileCloaked(t,e,function(){return Vs.positionWithin(r,n,t,o)}),s.onShow(t)},t={setContent:function(t,n){tf.open(t,n)},showAt:function(t,n,e){var o=tt.none();r(t,n,e,o)},showWithin:r,showMenuAt:function(t,n,e){var o,r,i,u,a,c=(o=s,r=t,i=n,u=e,a=function(){return o.lazySink(r)},Cg.sketch({dom:{tag:"div"},data:u.data,markers:u.menu.markers,onEscape:function(){return tf.close(r),o.onEscape.map(function(t){return t(r)}),tt.some(!0)},onExecute:function(){return tt.some(!0)},onOpenMenu:function(t,n){Vs.position(a().getOrDie(),i,n)},onOpenSubmenu:function(t,n,e){var o=a().getOrDie();Vs.position(o,{anchor:"submenu",item:n},e)}}));tf.open(t,c),s.onShow(t)},hide:function(t){tf.close(t),s.onHide(t)},getContent:function(t){return tf.getState(t)},isOpen:tf.isOpen};return{uid:s.uid,dom:s.dom,behaviours:sf(s.inlineBehaviours,[tf.config({isPartOf:function(t,n,e){return qu(n,e)||(o=t,r=e,s.getRelated(o).exists(function(t){return qu(t,r)}));var o,r},getAttachPoint:function(t){return s.lazySink(t).getOrDie()}}),rf(To({isExtraPart:Z(!1)},s.fireDismissalEventInstead.map(function(t){return{fireEventInstead:{event:t.event}}}).getOr({})))]),eventOrder:s.eventOrder,apis:t}},apis:{showAt:function(t,n,e,o){t.showAt(n,e,o)},showWithin:function(t,n,e,o,r){t.showWithin(n,e,o,r)},showMenuAt:function(t,n,e,o){t.showMenuAt(n,e,o)},hide:function(t,n){t.hide(n)},isOpen:function(t,n){return t.isOpen(n)},getContent:function(t,n){return t.getContent(n)},setContent:function(t,n,e){t.setContent(n,e)}}}),Og=function(t){var n=function(t,n){n.stop(),si(t)},e=qn.detect().deviceType.isTouch()?[Ci(ee(),n)]:[Ci(yn(),n),Ci(cn(),function(t,n){n.cut()})];return xi(vt([t.map(function(e){return Ci(te(),function(t,n){e(t),n.stop()})}).toArray(),e]))},Eg=sl({name:"Button",factory:function(t){var n=Og(t.action),e=t.dom.tag,o=function(n){return Jt(t.dom,"attributes").bind(function(t){return Jt(t,n)})};return{uid:t.uid,dom:t.dom,components:t.components,events:n,behaviours:lf(t.buttonBehaviours,[Um.config({}),xm.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:function(){if("button"!==e)return{role:o("role").getOr("button")};var t=o("type").getOr("button"),n=o("role").map(function(t){return{role:t}}).getOr({});return To({type:t},n)}()},eventOrder:t.eventOrder}},configFields:[Kr("uid",undefined),Rr("dom"),Kr("components",[]),ff("buttonBehaviours",[Um,xm]),Wr("action"),Wr("role"),Kr("eventOrder",{})]}),Tg=function(t){var n=function M(n){return n.uid!==undefined}(t)&&tn(t,"uid")?t.uid:Ui("memento");return{get:function(t){return t.getSystem().getByUid(n).getOrDie()},getOpt:function(t){return t.getSystem().getByUid(n).fold(tt.none,tt.some)},asSpec:function(){return To({},t,{uid:n})}}},Bg=function(t){return tt.from(t()["temporary-placeholder"]).getOr("!not found!")},Dg=function(t,n){return tt.from(n()[t]).getOrThunk(function(){return Bg(n)})},Ag={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},_g=sl({name:"Notification",factory:function(n){var t,e,o=Tg({dom:{tag:"p",innerHtml:n.translationProvider(n.text)},behaviours:ga([Om.config({})])}),r=function(t){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+t+"%"}}}},i=function(t){return{dom:{tag:"div",classes:["tox-text"],innerHtml:t+"%"}}},u=Tg({dom:{tag:"div",classes:n.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[r(0)]},i(0)],behaviours:ga([Om.config({})])}),a={updateProgress:function(t,n){t.getSystem().isConnected()&&u.getOpt(t).each(function(t){Om.set(t,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[r(n)]},i(n)])})},updateText:function(t,n){if(t.getSystem().isConnected()){var e=o.get(t);Om.set(e,[zu(n)])}}},c=vt([n.icon.toArray(),n.level.toArray(),n.level.bind(function(t){return tt.from(Ag[t])}).toArray()]);return{uid:n.uid,dom:{tag:"div",attributes:{role:"alert"},classes:n.level.map(function(t){return["tox-notification","tox-notification--in","tox-notification--"+t]}).getOr(["tox-notification","tox-notification--in"])},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:(t=c,e=n.iconProvider,on(t,function(t){return tt.from(e()[t])}).getOrThunk(function(){return Bg(e)}))}},{dom:{tag:"div",classes:["tox-notification__body"]},components:[o.asSpec()],behaviours:ga([Om.config({})])}].concat(n.progress?[u.asSpec()]:[]).concat(Eg.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:Dg("close",n.iconProvider),attributes:{"aria-label":n.translationProvider("Close")}}}],action:function(t){n.onAction(t)}})),apis:a}},configFields:[Wr("level"),Rr("progress"),Rr("icon"),Rr("onAction"),Rr("text"),Rr("iconProvider"),Rr("translationProvider")],apis:{updateProgress:function(t,n,e){t.updateProgress(n,e)},updateText:function(t,n,e){t.updateText(n,e)}}}),Mg=tinymce.util.Tools.resolve("tinymce.util.Delay"),Fg=function(e,o){var r=null;return{cancel:function(){null!==r&&(b.clearTimeout(r),r=null)},throttle:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];null!==r&&b.clearTimeout(r),r=b.setTimeout(function(){e.apply(null,t),r=null},o)}}},Ig=/[\u00a0 \t\r\n]/,Vg=function(e,t,n,o,r){return void 0===r&&(r=0),(i=e).collapsed&&3===i.startContainer.nodeType?function(t,n,e,o){var r;for(r=n-1;0<=r;r--){if(Ig.test(t.charAt(r)))return tt.none();if(t.charAt(r)===e)break}return-1===r||n-r<o?tt.none():tt.some(t.substring(r+1,n))}(n,o,t,r).map(function(t){var n=e.cloneRange();return n.setStart(e.startContainer,e.startOffset-t.length-1),n.setEnd(e.startContainer,e.startOffset),{text:t,rng:n}}):tt.none();var i},Rg=function(e,t){t.on("keypress",e.onKeypress.throttle),t.on("remove",e.onKeypress.cancel);var o=function(t,n){ci(t,pn(),{raw:n})};t.on("keydown",function(n){var t=function(){return e.getView().bind(Tl.getHighlighted)};8===n.which&&e.onKeypress.throttle(n),e.isActive()&&(27===n.which?e.closeIfNecessary():32===n.which?e.closeIfNecessary():13===n.which?(t().each(si),n.preventDefault()):40===n.which?(t().fold(function(){e.getView().each(Tl.highlightFirst)},function(t){o(t,n)}),n.preventDefault()):37!==n.which&&38!==n.which&&39!==n.which||t().each(function(t){o(t,n),n.preventDefault()}))})},Hg=tinymce.util.Tools.resolve("tinymce.util.Promise"),Ng=function(t,n){return 0===t.startOffset||/\s/.test(n.charAt(t.startOffset-1))},zg=function(t,n){var e,o,r,i=n(),u=t.selection.getRng(),a=u.startContainer.nodeValue;return(e=u,o=a,r=i,on(r.triggerChars,function(n){return Vg(e,n,o,e.startOffset).map(function(t){return{range:t.rng,text:t.text,triggerChar:n}})})).map(function(e){var t=ft(i.lookupByChar(e.triggerChar),function(t){return e.text.length>=t.minChars&&t.matches.getOr(Ng)(e.range,a,e.text)});return{lookupData:Hg.all(ct(t,function(n){return n.fetch(e.text,n.maxResults).then(function(t){return{items:t,columns:n.columns,onAction:n.onAction}})})),triggerChar:e.triggerChar,range:e.range}})},Pg=dr([oi("type",function(){return"autocompleteitem"}),oi("active",function(){return!1}),oi("disabled",function(){return!1}),Kr("meta",{}),Nr("value"),Xr("text"),Xr("icon")]),Lg=dr([Nr("type"),Nr("ch"),$r("minChars",1),Kr("columns",1),$r("maxResults",10),Yr("matches"),Pr("fetch"),Pr("onAction")]),jg=function(t){var n,e,o=t.ui.registry.getAll().popups,r=At(o,function(t){return(n=t,kr("Autocompleter",Lg,n)).fold(function(t){throw new Error(Tr(t))},function(t){return t});var n}),i=(n=Mt(r,function(t){return t.ch}),e={},st(n,function(t){e[t]={}}),Tt(e)),u=Ft(r);return{dataset:r,triggerChars:i,lookupByChar:function(n){return ft(u,function(t){return t.ch===n})}}},Ug=[ti("disabled",!1),Xr("text"),Xr("shortcut"),br("value","value",Mo(function(){return Oo("menuitem-value")}),Dr()),Kr("meta",{})],Wg=dr([Nr("type"),ni("onSetup",function(){return Q}),ni("onAction",Q),Xr("icon")].concat(Ug)),Gg=dr([Nr("type"),Pr("getSubmenuItems"),ni("onSetup",function(){return Q}),Xr("icon")].concat(Ug)),Xg=dr([Nr("type"),ti("active",!1),ni("onSetup",function(){return Q}),Pr("onAction")].concat(Ug)),Yg=dr([Nr("type"),ti("active",!1),Xr("icon")].concat(Ug)),qg=dr([Nr("type"),Xr("text")]),Kg=dr([Nr("type"),zr("fancytype",["inserttable"]),ni("onAction",Q)]),Jg=function(t,o,n){var r=es(t.element(),"."+n);if(0<r.length){var e=gt(r,function(t){var n=t.dom().getBoundingClientRect().top,e=r[0].dom().getBoundingClientRect().top;return Math.abs(n-e)>o}).getOr(r.length);return tt.some({numColumns:e,numRows:Math.ceil(r.length/e)})}return tt.none()},$g=function(t,n){return ga([sg(t,n)])},Qg=function(t){return $g(Oo("unnamed-events"),t)},Zg=[Rr("lazySink"),Rr("tooltipDom"),Kr("exclusive",!0),Kr("tooltipComponents",[]),Kr("delay",300),Zr("mode","normal",["normal","follow-highlight"]),Kr("anchor",function(t){return{anchor:"hotspot",hotspot:t,layouts:{onLtr:Z([Mc,_c,Tc,Dc,Bc,Ac]),onRtl:Z([Mc,_c,Tc,Dc,Bc,Ac])}}}),ea("onHide"),ea("onShow")],tp=Object.freeze({init:function(){var e=nn(tt.none()),n=nn(tt.none()),o=function(){e.get().each(function(t){b.clearTimeout(t)})},t=Z("not-implemented");return Zi({getTooltip:function(){return n.get()},isShowing:function(){return n.get().isSome()},setTooltip:function(t){n.set(tt.some(t))},clearTooltip:function(){n.set(tt.none())},clearTimer:o,resetTimer:function(t,n){o(),e.set(tt.some(b.setTimeout(function(){t()},n)))},readState:t})}}),np=Oo("tooltip.exclusive"),ep=Oo("tooltip.show"),op=Oo("tooltip.hide"),rp=function(t){t.getSystem().broadcastOn([np],{})},ip=Object.freeze({hideAllExclusive:rp,setComponents:function(t,n,e,o){e.getTooltip().each(function(t){t.getSystem().isConnected()&&Om.set(t,o)})}}),up=ha({fields:Zg,name:"tooltipping",active:Object.freeze({events:function(o,r){var e=function(n){r.getTooltip().each(function(t){Ls(t),o.onHide(n,t),r.clearTooltip()}),r.clearTimer()};return xi(vt([[Ci(ep,function(t){r.resetTimer(function(){!function(t){if(!r.isShowing()){rp(t);var n=o.lazySink(t).getOrDie(),e=t.getSystem().build({dom:o.tooltipDom,components:o.tooltipComponents,events:xi("normal"===o.mode?[Ci(dn(),function(){ai(t,ep)}),Ci(fn(),function(){ai(t,op)})]:[]),behaviours:ga([Om.config({})])});r.setTooltip(e),Ns(n,e),o.onShow(t,e),Vs.position(n,o.anchor(t),e)}}(t)},o.delay)}),Ci(op,function(t){r.resetTimer(function(){e(t)},o.delay)}),Ci(Zn(),function(t,n){it(n.channels(),np)&&e(t)}),Mi(function(t){e(t)})],"normal"===o.mode?[Ci(mn(),function(t){ai(t,ep)}),Ci($n(),function(t){ai(t,op)}),Ci(dn(),function(t){ai(t,ep)}),Ci(fn(),function(t){ai(t,op)})]:[Ci(ve(),function(t){ai(t,ep)}),Ci(be(),function(t){ai(t,op)})]]))}}),state:tp,apis:ip}),ap=function(t){var n,e,o,r=xe.fromHtml(t),i=Le(r),u=(e=(n=r).dom().attributes!==undefined?n.dom().attributes:[],dt(e,function(t,n){var e;return"class"===n.name?t:To({},t,((e={})[n.name]=n.value,e))},{})),a=(o=r,Array.prototype.slice.call(o.dom().classList,0)),c=0===i.length?{}:{innerHtml:Je(r)};return To({tag:Qe(r),classes:a,attributes:u},c)},cp=tinymce.util.Tools.resolve("tinymce.util.I18n"),sp="tox-menu-nav__js",fp="tox-collection__item",lp="tox-swatch",dp={normal:sp,color:lp},mp="tox-collection__item--enabled",gp="tox-collection__item-icon",pp="tox-collection__item-label",hp="tox-collection__item--active",vp=function(t){return Jt(dp,t).getOr(sp)},bp=tinymce.util.Tools.resolve("tinymce.Env"),yp=function(t){var e=bp.mac?{alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"}:{meta:"Ctrl",access:"Shift+Alt"},n=t.split("+"),o=ct(n,function(t){var n=t.toLowerCase().trim();return Vt(e,n)?e[n]:t});return bp.mac?o.join(""):o.join("+")},xp=function(t){return{dom:{tag:"div",classes:[gp],innerHtml:t}}},wp=function(t){return{dom:{tag:"div",classes:[pp]},components:[zu(cp.translate(t))]}},Sp=function(t,n){return{dom:{tag:"div",classes:[pp]},components:[{dom:{tag:t.tag,attributes:{style:t.styleAttr}},components:[zu(cp.translate(n))]}]}},Cp=function(t){return{dom:{tag:"div",classes:["tox-collection__item-accessory"],innerHtml:yp(t)}}},kp=function(t){return{dom:{tag:"div",classes:[gp,"tox-collection__item-checkmark"],innerHtml:Dg("checkmark",t)}}},Op=function(t,r,n,i){void 0===i&&(i=tt.none());var e,o,u,a,c,s,f,l,d,m,g=t.iconContent.map(function(t){return n=t,e=r.icons,o=i,tt.from(e()[n]).or(o).getOrThunk(function(){return Bg(e)});var n,e,o}),p=tt.from(t.meta).fold(function(){return wp},function(t){return Vt(t,"style")?h(Sp,t.style):wp});return"color"===t.presets?(s=t.ariaLabel,f=t.value,{dom:(l=lp,d=g.getOr(""),m=s.map(function(t){return' title="'+t+'"'}).getOr(""),ap("custom"===f?'<button class="'+l+' tox-swatches__picker-btn"'+m+">"+d+"</button>":"remove"===f?'<div class="'+l+' tox-swatch--remove"'+m+">"+d+"</div>":'<div class="'+l+'" style="background-color: '+f+'" data-mce-color="'+f+'"'+m+"></div>")),optComponents:[]}):(e=t,o=g,u=p,a=n?e.checkMark.orThunk(function(){return o.or(tt.some("")).map(xp)}):tt.none(),c=e.ariaLabel.map(function(t){return{attributes:{title:cp.translate(t)}}}).getOr({}),{dom:Xt({tag:"div",classes:[sp,fp]},c),optComponents:[a,e.textContent.map(u),e.shortcutContent.map(Cp),e.caret]})},Ep=["input","button","textarea"],Tp=function(t,n,e){n.disabled&&Fp(t,n,e)},Bp=function(t){return it(Ep,Qe(t.element()))},Dp=function(t){ro(t.element(),"disabled","disabled")},Ap=function(t){co(t.element(),"disabled")},_p=function(t){ro(t.element(),"aria-disabled","true")},Mp=function(t){ro(t.element(),"aria-disabled","false")},Fp=function(n,t){t.disableClass.each(function(t){gu(n.element(),t)}),(Bp(n)?Dp:_p)(n)},Ip=function(t){return Bp(t)?ao(t.element(),"disabled"):"true"===uo(t.element(),"aria-disabled")},Vp=Object.freeze({enable:function(n,t){t.disableClass.each(function(t){hu(n.element(),t)}),(Bp(n)?Ap:Mp)(n)},disable:Fp,isDisabled:Ip,onLoad:Tp}),Rp=Object.freeze({exhibit:function(t,n){return nu({classes:n.disabled?n.disableClass.map(Ct).getOr([]):[]})},events:function(t,n){return xi([wi(te(),function(t){return Ip(t)}),sa(t,n,Tp)])}}),Hp=[Kr("disabled",!1),Wr("disableClass")],Np=ha({fields:Hp,name:"disabling",active:Rp,apis:Vp}),zp=function(t){return Np.config({disabled:t,disableClass:"tox-collection__item--state-disabled"})},Pp=function(t){return Np.config({disabled:t})},Lp=function(t){return Np.config({disabled:t,disableClass:"tox-tbtn--disabled"})},jp=function(t,n){var e=t.getApi(n);return function(t){t(e)}},Up=function(e,o){return _i(function(t){jp(e,t)(function(t){var n=e.onSetup(t);null!==n&&n!==undefined&&o.set(n)})})},Wp=function(n,e){return Mi(function(t){return jp(n,t)(e.get())})};(Gl=Wl||(Wl={}))[Gl.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",Gl[Gl.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX";var Gp,Xp,Yp=Wl,qp={"alloy.execute":["disabling","alloy.base.behaviour","toggling","item-events"]},Kp=function(t){return bt(t,function(t){return t.toArray()})},Jp=function(t,n,e){var o,r,i=nn(Q);return{type:"item",dom:n.dom,components:Kp(n.optComponents),data:t.data,eventOrder:qp,hasSubmenu:t.triggersSubmenu,itemBehaviours:ga([sg("item-events",[(o=t,r=e,Ii(function(t,n){jp(o,t)(o.onAction),o.triggersSubmenu||r!==Yp.CLOSE_ON_EXECUTE||(ai(t,ie()),n.stop())})),Up(t,i),Wp(t,i)]),zp(t.disabled),Om.config({})].concat(t.itemBehaviours))}},$p=function(t){return{value:t.value,meta:Xt({text:t.text.getOr("")},t.meta)}},Qp=Z(jf("item-widget",dg())),Zp=Oo("cell-over"),th=Oo("cell-execute"),nh=function(n,e,t){var o,r=function(t){return ci(t,th,{row:n,col:e})};return ju({dom:{tag:"div",attributes:(o={role:"button"},o["aria-labelledby"]=t,o)},behaviours:ga([sg("insert-table-picker-cell",[Ci(dn(),Um.focus),Ci(te(),r),Ci(oe(),r)]),eg.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Um.config({onFocus:function(t){return ci(t,Zp,{row:n,col:e})}})])})},eh={inserttable:function qD(o){var t,n=Oo("size-label"),a=function(t,n,e){for(var o=[],r=0;r<n;r++){for(var i=[],u=0;u<e;u++)i.push(nh(r,u,t));o.push(i)}return o}(n,10,10),c=Tg({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:n}},components:[zu("0x0")],behaviours:ga([Om.config({})])});return{type:"widget",data:{value:Oo("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[Qp().widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:(t=a,bt(t,function(t){return ct(t,Uu)})).concat(c.asSpec()),behaviours:ga([sg("insert-table-picker",[Ti(Zp,function(t,n,e){var o,r,i=e.event().row(),u=e.event().col();!function(t,n,e,o,r){for(var i=0;i<o;i++)for(var u=0;u<r;u++)eg.set(t[i][u],i<=n&&u<=e)}(a,i,u,10,10),Om.set(c.get(t),[(o=i,r=u,zu(r+1+"x"+(o+1)))])}),Ti(th,function(t,n,e){o.onAction({numRows:e.event().row()+1,numColumns:e.event().col()+1}),ai(t,ie())})]),xm.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}}},oh=function(t,n,e,o,r,i,u){var a=Op({presets:e,textContent:n?t.text:tt.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:n?t.shortcut:tt.none(),checkMark:n?tt.some(kp(u.icons)):tt.none(),caret:tt.none(),value:t.value},u,!0);return Gt(Jp({data:$p(t),disabled:t.disabled,getApi:function(n){return{setActive:function(t){eg.set(n,t)},isActive:function(){return eg.isOn(n)},isDisabled:function(){return Np.isDisabled(n)},setDisabled:function(t){return t?Np.disable(n):Np.enable(n)}}},onAction:function(){return o(t.value)},onSetup:function(t){return t.setActive(r),function(){}},triggersSubmenu:!1,itemBehaviours:[]},a,i),{toggling:{toggleClass:mp,toggleOnExecute:!1,selected:t.active}})},rh=function(t,n,e,o,r,i,u){void 0===u&&(u=!0);var a,c,s=Op({presets:e,textContent:n?t.text:tt.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:tt.none(),checkMark:tt.none(),caret:tt.none(),value:t.value},i.providers,u,t.icon);return Jp({data:$p(t),disabled:t.disabled,getApi:function(){return{}},onAction:function(){return o(t.value,t.meta)},onSetup:function(){return function(){}},triggersSubmenu:!1,itemBehaviours:(a=t.meta,c=i,It(a,"tooltipWorker").map(function(t){return[up.config({lazySink:c.getSink,tooltipDom:{tag:"div"},tooltipComponents:[],anchor:function(t){return{anchor:"submenu",item:t}},mode:"follow-highlight",onShow:function(n){t(function(t){up.setComponents(n,[Pu({element:xe.fromDom(t)})])})}})]}).getOr([]))},s,r)},ih=function(t){var n=t.text.fold(function(){return{}},function(t){return{innerHtml:t}});return{type:"separator",dom:To({tag:"div",classes:[fp,"tox-collection__group-heading"]},n),components:[]}},uh=function(t,n,e,o){void 0===o&&(o=!0);var r=Op({presets:"normal",iconContent:t.icon,textContent:t.text,ariaLabel:t.text,caret:tt.none(),checkMark:tt.none(),shortcutContent:t.shortcut},e,o);return Jp({data:$p(t),getApi:function(n){return{isDisabled:function(){return Np.isDisabled(n)},setDisabled:function(t){return t?Np.disable(n):Np.enable(n)}}},disabled:t.disabled,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},r,n)},ah=function(t,n,e,o){void 0===o&&(o=!0);var r,i=(r=e.icons,{dom:{tag:"div",classes:["tox-collection__item-caret"],innerHtml:Dg("chevron-right",r)}}),u=Op({presets:"normal",iconContent:t.icon,textContent:t.text,ariaLabel:t.text,caret:tt.some(i),checkMark:tt.none(),shortcutContent:t.shortcut},e,o);return Jp({data:$p(t),getApi:function(n){return{isDisabled:function(){return Np.isDisabled(n)},setDisabled:function(t){return t?Np.disable(n):Np.enable(n)}}},disabled:t.disabled,onAction:Q,onSetup:t.onSetup,triggersSubmenu:!0,itemBehaviours:[]},u,n)},ch=function(t,n,e){var o=Op({iconContent:tt.none(),textContent:t.text,ariaLabel:t.text,checkMark:tt.some(kp(e.icons)),caret:tt.none(),shortcutContent:t.shortcut,presets:"normal",meta:t.meta},e,!0);return Gt(Jp({data:$p(t),disabled:t.disabled,getApi:function(n){return{setActive:function(t){eg.set(n,t)},isActive:function(){return eg.isOn(n)},isDisabled:function(){return Np.isDisabled(n)},setDisabled:function(t){return t?Np.disable(n):Np.enable(n)}}},onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,n),{toggling:{toggleClass:mp,toggleOnExecute:!1,selected:t.active}})},sh=function(n){return(t=eh,e=n.fancytype,Object.prototype.hasOwnProperty.call(t,e)?tt.some(t[e]):tt.none()).map(function(t){return t(n)});var t,e},fh=function(t){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:(n=t,"color"===n?"tox-swatches":"tox-menu"),tieredMenu:"tox-tiered-menu"};var n},lh=function(t){var n=fh(t);return{backgroundMenu:n.backgroundMenu,selectedMenu:n.selectedMenu,menu:n.menu,selectedItem:n.selectedItem,item:vp(t)}},dh=[bg.parts().items({})],mh=function(t,n,e){var o=fh(e);return{dom:{tag:"div",classes:vt([[o.tieredMenu]])},markers:lh(e)}},gh=function(t,n){var e=lh(n);return 1===t?{mode:"menu",moveOnTab:!0}:"auto"===t?{mode:"grid",selector:"."+e.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+("color"===n?"tox-swatches__row":"tox-collection__group")}},ph=function(e,o){return function(t){var n=at(t,o);return ct(n,function(t){return{dom:e,components:t}})}},hh=function(n,i,t){return void 0===t&&(t=!0),{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===n?["tox-collection--list"]:[ "tox-collection--grid"])},components:[bg.parts().items({preprocess:function(t){return"auto"!==n&&1<n?ph({tag:"div",classes:["tox-collection__group"]},n)(t):(e=function(t,n){return"separator"===i[n].type},o=[],r=[],st(t,function(t,n){e(t,n)?(0<r.length&&o.push(r),r=[],Vt(t.dom,"innerHtml")&&r.push(t)):r.push(t)}),0<r.length&&o.push(r),ct(o,function(t){return{dom:{tag:"div",classes:["tox-collection__group"]},components:t}}));var e,o,r}})]}};(Xp=Gp||(Gp={}))[Xp.ContentFocus=0]="ContentFocus",Xp[Xp.UiFocus=1]="UiFocus";var vh,bh,yh=function(t){return b.console.error(Tr(t)),b.console.log(t),tt.none()},xh=function(t){return t.icon!==undefined||"togglemenuitem"===t.type||"choicemenuitem"===t.type},wh=function(t){return ut(t,xh)},Sh=function(t,n,e,o){switch(void 0===o&&(o=!0),t.type){case"menuitem":return(c=t,kr("menuitem",Wg,c)).fold(yh,function(t){return tt.some(uh(t,n,e,o))});case"nestedmenuitem":return(a=t,kr("nestedmenuitem",Gg,a)).fold(yh,function(t){return tt.some(ah(t,n,e,o))});case"togglemenuitem":return(u=t,kr("togglemenuitem",Xg,u)).fold(yh,function(t){return tt.some(ch(t,n,e))});case"separator":return(i=t,kr("separatormenuitem",qg,i)).fold(yh,function(t){return tt.some(ih(t))});case"fancymenuitem":return(r=t,kr("fancymenuitem",Kg,r)).fold(yh,function(t){return sh(t)});default:return b.console.error("Unknown item in general menu",t),tt.none()}var r,i,u,a,c},Ch=function(t,n,e,o,r){var i,u,a,c,s,f,l;return"color"===r?{value:t,dom:(i=o,l={dom:{tag:"div",classes:["tox-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[bg.parts().items({preprocess:"auto"!==i?ph({tag:"div",classes:["tox-swatches__row"]},i):U})]}]}).dom,components:l.components,items:e}:"normal"===r&&"auto"===o?{value:t,dom:(l=hh(o,e)).dom,components:l.components,items:e}:"normal"===r&&1===o?{value:t,dom:(l=hh(1,e)).dom,components:l.components,items:e}:"normal"===r?{value:t,dom:(l=hh(o,e)).dom,components:l.components,items:e}:"listpreview"!==r||"auto"===o?{value:t,dom:(a=n,c=o,s=r,f=fh(s),{tag:"div",classes:vt([[f.menu,"tox-menu-"+c+"-column"],a?[f.hasIcons]:[]])}),components:dh,items:e}:{value:t,dom:(u=o,l={dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[bg.parts().items({preprocess:ph({tag:"div",classes:["tox-collection__group"]},u)})]}).dom,components:l.components,items:e}},kh=function(t,e,o,r,i,u,a){return en(ct(t,function(n){return"choiceitem"===n.type?(t=n,kr("choicemenuitem",Yg,t)).fold(yh,function(t){return tt.some(oh(t,1===o,r,e,u(n.value),i,a))}):tt.none();var t}))},Oh=function(t,e,n,o,r){var i=1===n,u=!i||wh(t);return en(ct(t,function(t){return(n=t,kr("Autocompleter.Item",Pg,n)).fold(yh,function(t){return tt.some(rh(t,i,"normal",e,o,r,u))});var n}))},Eh=function(t,n,e,o,r,i,u,a){var c=wh(n),s=kh(n,e,o,"color"!==r?"normal":"color",i,u,a);return Ch(t,c,s,o,r)},Th=function(t,n,e,o){var r=wh(n),i=en(ct(n,function(t){var n=function(t){return Sh(t,e,o,r)};return"nestedmenuitem"===t.type&&t.getSubmenuItems().length<=0?n(Xt(t,{disabled:!0})):n(t)}));return Ch(t,r,i,1,"normal")},Bh=function(t){return Cg.singleData(t.value,t)},Dh=function(g,p){var h=ju(kg.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],lazySink:p.getSink})),t=function(){return kg.isOpen(h)},v=function(){t()&&kg.hide(h)},n=Sn(function(){return jg(g)}),e=Fg(function(t){(" "===t.key?tt.none():zg(g,n)).fold(v,function(m){m.lookupData.then(function(t){var e,n,o,r,i,u,a,c,s,f,l=(e=m.triggerChar,o=on(n=t,function(t){return tt.from(t.columns)}).getOr(1),bt(n,function(i){var t=i.items;return Oh(t,function(o,r){var t=g.selection.getRng(),n=t.startContainer;Vg(t,e,n.data,t.startOffset).fold(function(){return b.console.error("Lost context. Cursor probably moved")},function(t){var n=t.rng,e={hide:v};i.onAction(e,n,o,r)})},o,Yp.BUBBLE_TO_SANDBOX,p)}));if(0<l.length){var d=on(t,function(t){return tt.from(t.columns)}).getOr(1);kg.showAt(h,{anchor:"selection",root:xe.fromDom(g.getBody()),getSelection:function(){return tt.some({start:function(){return xe.fromDom(m.range.startContainer)},soffset:function(){return m.range.startOffset},finish:function(){return xe.fromDom(m.range.endContainer)},foffset:function(){return m.range.endOffset}})}},bg.sketch((r=Ch("autocompleter-value",!0,l,d,"normal"),i=d,a="normal",c=(u=Gp.ContentFocus)===Gp.ContentFocus?Ul():jl(),s=gh(i,a),f=lh(a),{dom:r.dom,components:r.components,items:r.items,value:r.value,markers:{selectedItem:f.selectedItem,item:f.item},movement:s,fakeFocus:u===Gp.ContentFocus,focusManager:c,menuBehaviours:Qg("auto"!==i?[]:[_i(function(o){Jg(o,4,f.item).each(function(t){var n=t.numColumns,e=t.numRows;xm.setGridSize(o,e,n)})})])}))),kg.getContent(h).each(Tl.highlightFirst)}else v()})})},50);Rg({onKeypress:e,closeIfNecessary:v,isActive:t,getView:function(){return kg.getContent(h)}},g)},Ah=function(m,g){return function(t){if(m(t)){var n,e,o,r,i,u,a,c=xe.fromDom(t.target),s=function(){t.stopPropagation()},f=function(){t.preventDefault()},l=H(f,s),d=(n=c,e=t.clientX,o=t.clientY,r=s,i=f,u=l,a=t,{target:Z(n),x:Z(e),y:Z(o),stop:r,prevent:i,kill:u,raw:Z(a)});g(d)}}},_h=function(t,n,e,o,r){var i=Ah(e,o);return t.dom().addEventListener(n,i,r),{unbind:h(Mh,t,n,i,r)}},Mh=function(t,n,e,o){t.dom().removeEventListener(n,e,o)},Fh=Z(!0),Ih=function(t,n,e){return _h(t,n,Fh,e,!1)},Vh=function(t,n,e){return _h(t,n,Fh,e,!0)},Rh=function(t,n,e){return Xu(t,n,e).isSome()},Hh=function(t){var n=t.raw();return n.touches===undefined||1!==n.touches.length?tt.none():tt.some(n.touches[0])},Nh=function(e){var u=nn(tt.none()),o=s(function(t){u.set(tt.none()),e.triggerEvent(re(),t)},400),r=Qt([{key:rn(),value:function(e){return Hh(e).each(function(t){o.cancel();var n={x:Z(t.clientX),y:Z(t.clientY),target:e.target};o.schedule(e),u.set(tt.some(n))}),tt.none()}},{key:un(),value:function(t){return o.cancel(),Hh(t).each(function(i){u.get().each(function(t){var n,e,o,r;n=i,e=t,o=Math.abs(n.clientX-e.x()),r=Math.abs(n.clientY-e.y()),(5<o||5<r)&&u.set(tt.none())})}),tt.none()}},{key:an(),value:function(n){return o.cancel(),u.get().filter(function(t){return Re(t.target(),n.target())}).map(function(){return e.triggerEvent(ee(),n)})}}]);return{fireIfReady:function(n,t){return Jt(r,t).bind(function(t){return t(n)})}}},zh=qn.detect().browser.isFirefox(),Ph=lr([Pr("triggerEvent"),Kr("stopBackspace",!0)]),Lh=function(n,t){var e,o,r,i,u=Er("Getting GUI events settings",Ph,t),a=qn.detect().deviceType.isTouch()?["touchstart","touchmove","touchend","gesturestart"]:["mousedown","mouseup","mouseover","mousemove","mouseout","click"],c=Nh(u),s=ct(a.concat(["selectstart","input","contextmenu","change","transitionend","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),function(t){return Ih(n,t,function(n){c.fireIfReady(n,t).each(function(t){t&&n.kill()}),u.triggerEvent(t,n)&&n.kill()})}),f=nn(tt.none()),l=Ih(n,"paste",function(n){c.fireIfReady(n,"paste").each(function(t){t&&n.kill()}),u.triggerEvent("paste",n)&&n.kill(),f.set(tt.some(b.setTimeout(function(){u.triggerEvent(Qn(),n)},0)))}),d=Ih(n,"keydown",function(t){var n;u.triggerEvent("keydown",t)?t.kill():!0!==u.stopBackspace||8!==(n=t).raw().which||it(["input","textarea"],Qe(n.target()))||Rh(n.target(),'[contenteditable="true"]')||t.prevent()}),m=(e=n,o=function(t){u.triggerEvent("focusin",t)&&t.kill()},zh?Vh(e,"focus",o):Ih(e,"focusin",o)),g=nn(tt.none()),p=(r=n,i=function(t){u.triggerEvent("focusout",t)&&t.kill(),g.set(tt.some(b.setTimeout(function(){u.triggerEvent($n(),t)},0)))},zh?Vh(r,"blur",i):Ih(r,"focusout",i));return{unbind:function(){st(s,function(t){t.unbind()}),d.unbind(),m.unbind(),p.unbind(),l.unbind(),f.get().each(b.clearTimeout),g.get().each(b.clearTimeout)}}},jh=function(t,n){var e=Jt(t,"target").map(function(t){return t()}).getOr(n);return nn(e)},Uh=jt([{stopped:[]},{resume:["element"]},{complete:[]}]),Wh=function(t,o,n,e,r,i){var u,a,c,s,f=t(o,e),l=(u=n,a=r,c=nn(!1),s=nn(!1),{stop:function(){c.set(!0)},cut:function(){s.set(!0)},isStopped:c.get,isCut:s.get,event:Z(u),setSource:a.set,getSource:a.get});return f.fold(function(){return i.logEventNoHandlers(o,e),Uh.complete()},function(n){var e=n.descHandler();return ou(e)(l),l.isStopped()?(i.logEventStopped(o,n.element(),e.purpose()),Uh.stopped()):l.isCut()?(i.logEventCut(o,n.element(),e.purpose()),Uh.complete()):ze(n.element()).fold(function(){return i.logNoParent(o,n.element(),e.purpose()),Uh.complete()},function(t){return i.logEventResponse(o,n.element(),e.purpose()),Uh.resume(t)})})},Gh=function(n,e,o,t,r,i){return Wh(n,e,o,t,r,i).fold(function(){return!0},function(t){return Gh(n,e,o,t,r,i)},function(){return!1})},Xh=function(t,n){var e,o,r=(e=n,o=nn(!1),{stop:function(){o.set(!0)},cut:Q,isStopped:o.get,isCut:Z(!1),event:Z(e),setSource:z("Cannot set source of a broadcasted event"),getSource:z("Cannot get source of a broadcasted event")});return st(t,function(t){var n=t.descHandler();ou(n)(r)}),r.isStopped()},Yh=function(t,n,e,o,r){var i=jh(e,o);return Gh(t,n,e,o,i,r)},qh=we("element","descHandler"),Kh=function(t,n){return{id:Z(t),descHandler:Z(n)}},Jh=sl({name:"Container",factory:function(t){var n=t.dom,e=n.attributes,o=v(n,["attributes"]);return{uid:t.uid,dom:To({tag:"div",attributes:To({role:"presentation"},e)},o),components:t.components,behaviours:cf(t.containerBehaviours),events:t.events,domModification:t.domModification,eventOrder:t.eventOrder}},configFields:[Kr("components",[]),af("containerBehaviours",[]),Kr("events",{}),Kr("domModification",{}),Kr("eventOrder",{})]}),$h=function(e){var o=function(n){return ze(e.element()).fold(function(){return!0},function(t){return Re(n,t)})},r=y(),s=function(t,n){return r.find(o,t,n)},t=Lh(e.element(),{triggerEvent:function(u,a){return xo(u,a.target(),function(t){return n=s,e=u,r=t,i=(o=a).target(),Yh(n,e,o,i,r);var n,e,o,r,i})}}),i={debugInfo:Z("real"),triggerEvent:function(n,e,o){xo(n,e,function(t){Yh(s,n,o,e,t)})},triggerFocus:function(a,c){ji(a).fold(function(){Nl(a)},function(){xo(Jn(),a,function(t){var n,e,o,r,i,u;n=s,e=Jn(),o={originator:Z(c),kill:Q,prevent:Q,target:Z(a)},i=t,u=jh(o,r=a),Wh(n,e,o,r,u,i)})})},triggerEscape:function(t,n){i.triggerEvent("keydown",t.element(),n.event())},getByUid:function(t){return g(t)},getByDom:function(t){return p(t)},build:ju,addToGui:function(t){a(t)},removeFromGui:function(t){c(t)},addToWorld:function(t){n(t)},removeFromWorld:function(t){u(t)},broadcast:function(t){l(t)},broadcastOn:function(t,n){d(t,n)},broadcastEvent:function(t,n){m(t,n)},isConnected:Z(!0)},n=function(t){t.connect(i),no(t.element())||(r.register(t),st(t.components(),n),i.triggerEvent(ae(),t.element(),{target:Z(t.element())}))},u=function(t){no(t.element())||(st(t.components(),u),r.unregister(t)),t.disconnect()},a=function(t){Ns(e,t)},c=function(t){Ls(t)},f=function(e){var t=r.filter(Zn());st(t,function(t){var n=t.descHandler();ou(n)(e)})},l=function(t){f({universal:Z(!0),data:Z(t)})},d=function(t,n){f({universal:Z(!1),channels:Z(t),data:Z(n)})},m=function(t,n){var e=r.filter(t);return Xh(e,n)},g=function(t){return r.getById(t).fold(function(){return Lt.error(new Error('Could not find component with uid: "'+t+'" in system.'))},Lt.value)},p=function(t){var n=ji(t).getOr("not found");return g(n)};return n(e),{root:Z(e),element:e.element,destroy:function(){t.unbind(),Ke(e.element())},add:a,remove:c,getByUid:g,getByDom:p,addToWorld:n,removeFromWorld:u,broadcast:l,broadcastOn:d,broadcastEvent:m}},Qh=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Zh=tinymce.util.Tools.resolve("tinymce.EditorManager"),tv=function(t){return tt.from(t.settings.min_width).filter(ot)},nv=function(t){return tt.from(t.settings.min_height).filter(ot)},ev=function(n){var t=Tt(n.settings),e=ft(t,function(t){return/^toolbar([1-9])$/.test(t)}),o=ct(e,function(t){return n.getParam(t,!1,"string")}),r=ft(o,function(t){return"string"==typeof t});return 0<r.length?tt.some(r):tt.none()};(bh=vh||(vh={}))["default"]="",bh.floating="floating",bh.sliding="sliding";var ov,rv,iv=function(t){return t.getParam("toolbar_drawer","","string")},uv=function(t){var n=t.getParam("fixed_toolbar_container","","string"),e=t.getParam("inline",!1,"boolean");return 0<n.length&&e?Gu(gi(),n):tt.none()},av=function(t){return t.getParam("inline",!1,"boolean")&&uv(t).isSome()},cv=Oo("form-component-change"),sv=Oo("form-close"),fv=Oo("form-cancel"),lv=Oo("form-action"),dv=Oo("form-submit"),mv=Oo("form-block"),gv=Oo("form-unblock"),pv=Oo("form-tabchange"),hv=Oo("form-resize"),vv=Z([Kr("prefix","form-field"),af("fieldBehaviours",[gl,Nm])]),bv=Z([Hf({schema:[Rr("dom")],name:"label"}),Hf({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[Rr("text")],name:"aria-descriptor"}),Vf({factory:{sketch:function(t){var n=Yt(t,["factory"]);return t.factory.sketch(n)}},schema:[Rr("factory")],name:"field"})]),yv=fl({name:"FormField",configFields:vv(),partFields:bv(),factory:function(r,t){var n=sf(r.fieldBehaviours,[gl.config({find:function(t){return Kf(t,r,"field")}}),Nm.config({store:{mode:"manual",getValue:function(t){return gl.getCurrent(t).bind(Nm.getValue)},setValue:function(t,n){gl.getCurrent(t).each(function(t){Nm.setValue(t,n)})}}})]),e=xi([_i(function(t){var o=$f(t,r,["label","field","aria-descriptor"]);o.field().each(function(e){var n=Oo(r.prefix);o.label().each(function(t){ro(t.element(),"for",n),ro(e.element(),"id",n)}),o["aria-descriptor"]().each(function(t){var n=Oo(r.prefix);ro(t.element(),"id",n),ro(e.element(),"aria-describedby",n)})})})]),o={getField:function(t){return Kf(t,r,"field")},getLabel:function(t){return Kf(t,r,"label")}};return{uid:r.uid,dom:r.dom,components:t,behaviours:n,events:e,apis:o}},apis:{getField:function(t,n){return t.getField(n)},getLabel:function(t,n){return t.getLabel(n)}}}),xv=Object.freeze({getCoupled:function(t,n,e,o){return e.getOrCreate(t,n,o)}}),wv=[Hr("others",Cr(Lt.value,Dr()))],Sv=ha({fields:wv,name:"coupling",apis:xv,state:Object.freeze({init:function(){var i={},t=Z({});return Zi({readState:t,getOrCreate:function(e,o,r){var t=Tt(o.others);if(t)return Jt(i,r).getOrThunk(function(){var t=Jt(o.others,r).getOrDie("No information found for coupled component: "+r)(e),n=e.getSystem().build(t);return i[r]=n});throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+or(t,null,2))}})}})}),Cv=Object.freeze({events:function(t,n){var e=t.stream.streams.setup(t,n);return xi([Ci(t.event,e),Mi(function(){return n.cancel()})].concat(t.cancelEvent.map(function(t){return[Ci(t,function(){return n.cancel()})]}).getOr([])))}}),kv=function(){var n=nn(null);return Zi({readState:function(){return{timer:null!==n.get()?"set":"unset"}},setTimer:function(t){n.set(t)},cancel:function(){var t=n.get();null!==t&&t.cancel()}})},Ov=Object.freeze({throttle:kv,init:function(t){return t.stream.streams.state(t)}}),Ev=[Hr("stream",Br("mode",{throttle:[Rr("delay"),Kr("stopEvent",!0),ua("streams",{setup:function(t,n){var e=t.stream,o=Fg(t.onStream,e.delay);return n.setTimer(o),function(t,n){o.throttle(t,n),e.stopEvent&&n.stop()}},state:kv})]})),Kr("event","input"),Wr("cancelEvent"),ra("onStream")],Tv=ha({fields:Ev,name:"streaming",active:Cv,state:Ov}),Bv=function(t){var e=tt.none(),n=[],o=function(t){r()?u(t):n.push(t)},r=function(){return e.isSome()},i=function(t){st(t,u)},u=function(n){e.each(function(t){b.setTimeout(function(){n(t)},0)})};return t(function(t){e=tt.some(t),i(n),n=[]}),{get:o,map:function(e){return Bv(function(n){o(function(t){n(e(t))})})},isReady:r}},Dv={nu:Bv,pure:function(n){return Bv(function(t){t(n)})}},Av=function(n){var r=function(t){var o;n((o=t,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=this;b.setTimeout(function(){o.apply(e,t)},0)}))},e=function(){return Dv.nu(r)};return{map:function(o){return Av(function(e){r(function(t){var n=o(t);e(n)})})},bind:function(e){return Av(function(n){r(function(t){e(t).get(n)})})},anonBind:function(n){return Av(function(t){r(function(){n.get(t)})})},toLazy:e,toCached:function(){var n=null;return Av(function(t){null===n&&(n=e()),n.get(t)})},get:r}},_v={nu:Av,pure:function(n){return Av(function(t){t(n)})}},Mv=Z("sink"),Fv=Z(Hf({name:Mv(),overrides:Z({dom:{tag:"div"},behaviours:ga([Vs.config({useFixed:!0})]),events:xi([Bi(pn()),Bi(cn()),Bi(yn())])})}));(rv=ov||(ov={}))[rv.HighlightFirst=0]="HighlightFirst",rv[rv.HighlightNone=1]="HighlightNone";var Iv,Vv,Rv,Hv=function(t,n){var e=t.getHotspot(n).getOr(n);return t.layouts.fold(function(){return{anchor:"hotspot",hotspot:e}},function(t){return{anchor:"hotspot",hotspot:e,layouts:t}})},Nv=function(t,n,e,o,r,i,u){var a,c,s,f,l,d,m,g,p,h,v=Hv(t,e);return(c=v,f=o,l=r,d=u,m=n,g=s=e,p=(0,(a=t).fetch)(g).map(m),h=jv(s,a),p.map(function(t){return t.bind(function(t){return tt.from(Cg.sketch(To({},l.menu(),{uid:Ui(""),data:t,highlightImmediately:d===ov.HighlightFirst,onOpenMenu:function(t,n){var e=h().getOrDie();Vs.position(e,c,n),tf.decloak(f)},onOpenSubmenu:function(t,n,e){var o=h().getOrDie();Vs.position(o,{anchor:"submenu",item:n},e),tf.decloak(f)},onEscape:function(){return Um.focus(s),tf.close(f),tt.some(!0)}})))})})).map(function(t){return t.fold(function(){tf.isOpen(o)&&tf.close(o)},function(t){tf.cloak(o),tf.open(o,t),i(o)}),o})},zv=function(t,n,e,o){return tf.close(o),_v.pure(o)},Pv=function(t,n,e,o,r,i){var u=Sv.getCoupled(e,"sandbox");return(tf.isOpen(u)?zv:Nv)(t,n,e,u,o,r,i)},Lv=function(t,n,e){var o,r,i=gl.getCurrent(n).getOr(n),u=_a(t.element());e?Cu(i.element(),"min-width",u+"px"):(o=i.element(),r=u,Aa.set(o,r))},jv=function(n,t){return n.getSystem().getByUid(t.uid+"-"+Mv()).map(function(t){return function(){return Lt.value(t)}}).getOrThunk(function(){return t.lazySink.fold(function(){return function(){return Lt.error(new Error("No internal sink is specified, nor could an external sink be found"))}},function(t){return function(){return t(n)}})})},Uv=function(o,r,i){var n,u=(n=Oo("aria-owns"),{id:Z(n),link:function(t){ro(t,"aria-owns",n)},unlink:function(t){co(t,"aria-owns")}}),t=jv(r,o);return{dom:{tag:"div",classes:o.sandboxClasses,attributes:{id:u.id()}},behaviours:lf(o.sandboxBehaviours,[Nm.config({store:{mode:"memory",initialValue:r}}),tf.config({onOpen:function(t,n){var e=Hv(o,r);u.link(r.element()),o.matchWidth&&Lv(e.hotspot,n,o.useMinWidth),o.onOpen(e,t,n),i!==undefined&&i.onOpen!==undefined&&i.onOpen(t,n)},onClose:function(t,n){u.unlink(r.element()),i!==undefined&&i.onClose!==undefined&&i.onClose(t,n)},isPartOf:function(t,n,e){return qu(n,e)||qu(r,e)},getAttachPoint:function(){return t().getOrDie()}}),gl.config({find:function(t){return tf.getState(t).bind(function(t){return gl.getCurrent(t)})}}),rf({isExtraPart:Z(!1)})])}},Wv=function(t,n,e){var o=Nm.getValue(e);Nm.setValue(n,o),Xv(n)},Gv=function(t,n){var e=t.element(),o=_u(e),r=e.dom();"number"!==uo(e,"type")&&n(r,o)},Xv=function(t){Gv(t,function(t,n){return t.setSelectionRange(n.length,n.length)})},Yv=function(t,n,o){if(t.selectsOver){var e=Nm.getValue(n),r=t.getDisplayText(e),i=Nm.getValue(o);return 0===t.getDisplayText(i).indexOf(r)?tt.some(function(){var t,e;Wv(0,n,o),t=n,e=r.length,Gv(t,function(t,n){return t.setSelectionRange(e,n.length)})}):tt.none()}return tt.none()},qv=Z([Wr("data"),Kr("inputAttributes",{}),Kr("inputStyles",{}),Kr("tag","input"),Kr("inputClasses",[]),ea("onSetValue"),Kr("styles",{}),Kr("eventOrder",{}),af("inputBehaviours",[Nm,Um]),Kr("selectOnFocus",!0)]),Kv=function(t){return ga([Um.config({onFocus:!1===t.selectOnFocus?Q:function(t){var n=t.element(),e=_u(n);n.dom().setSelectionRange(0,e.length)}})])},Jv=function(t){return{tag:t.tag,attributes:To({type:"text"},t.inputAttributes),styles:t.inputStyles,classes:t.inputClasses}},$v=Z("alloy.typeahead.itemexecute"),Qv=function(){return[Kr("sandboxClasses",[]),ff("sandboxBehaviours",[gl,Sa,tf,Nm])]},Zv=Z([Wr("lazySink"),Rr("fetch"),Kr("minChars",5),Kr("responseTime",1e3),ea("onOpen"),Kr("getHotspot",tt.some),Kr("layouts",tt.none()),Kr("eventOrder",{}),ei("model",{},[Kr("getDisplayText",function(t){return t.meta!==undefined&&t.meta.text!==undefined?t.meta.text:t.value}),Kr("selectsOver",!0),Kr("populateFromBrowse",!0)]),ea("onSetValue"),oa("onExecute"),ea("onItemExecute"),Kr("inputClasses",[]),Kr("inputAttributes",{}),Kr("inputStyles",{}),Kr("matchWidth",!0),Kr("useMinWidth",!1),Kr("dismissOnBlur",!0),ta(["openClass"]),Wr("initialData"),af("typeaheadBehaviours",[Um,Nm,Tv,xm,eg,Sv]),oi("previewing",function(){return nn(!0)})].concat(qv()).concat(Qv())),tb=Z([Rf({schema:[Zu()],name:"menu",overrides:function(o){return{fakeFocus:!0,onHighlight:function(n,e){o.previewing.get()?n.getSystem().getByUid(o.uid).each(function(t){Yv(o.model,t,e).fold(function(){return Tl.dehighlight(n,e)},function(t){return t()})}):n.getSystem().getByUid(o.uid).each(function(t){o.model.populateFromBrowse&&Wv(o.model,t,e)}),o.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(o.uid).toOption().map(function(t){return ci(t,$v(),{item:n}),!0})},onHover:function(t,n){o.previewing.set(!1),t.getSystem().getByUid(o.uid).each(function(t){o.model.populateFromBrowse&&Wv(o.model,t,n)})}}}})]),nb=fl({name:"Typeahead",configFields:Zv(),partFields:tb(),factory:function(r,t,n,i){var e=function(t,n,e){r.previewing.set(!1);var o=Sv.getCoupled(t,"sandbox");tf.isOpen(o)?gl.getCurrent(o).each(function(t){Tl.getHighlighted(t).fold(function(){e(t)},function(){di(o,t.element(),"keydown",n)})}):Nv(r,u(t),t,o,i,function(t){gl.getCurrent(t).each(e)},ov.HighlightFirst).get(Q)},o=Kv(r),u=function(o){return function(t){return t.map(function(t){var n=Ft(t.menus),e=bt(n,function(t){return ft(t.items,function(t){return"item"===t.type})});return Nm.getState(o).update(ct(e,function(t){return t.data})),t})}},a=[Um.config({}),Nm.config({onSetValue:r.onSetValue,store:To({mode:"dataset",getDataKey:function(t){return _u(t.element())},getFallbackEntry:function(t){return{value:t,meta:{}}},setValue:function(t,n){Mu(t.element(),r.model.getDisplayText(n))}},r.initialData.map(function(t){return $t("initialValue",t)}).getOr({}))}),Tv.config({stream:{mode:"throttle",delay:r.responseTime,stopEvent:!1},onStream:function(t){var n=Sv.getCoupled(t,"sandbox");if(Um.isFocused(t)&&_u(t.element()).length>=r.minChars){var e=gl.getCurrent(n).bind(function(t){return Tl.getHighlighted(t).map(Nm.getValue)});r.previewing.set(!0),Nv(r,u(t),t,n,i,function(){gl.getCurrent(n).each(function(t){e.fold(function(){r.model.selectsOver&&Tl.highlightFirst(t)},function(n){Tl.highlightBy(t,function(t){return Nm.getValue(t).value===n.value}),Tl.getHighlighted(t).orThunk(function(){return Tl.highlightFirst(t),tt.none()})})})},ov.HighlightFirst).get(Q)}},cancelEvent:ue()}),xm.config({mode:"special",onDown:function(t,n){return e(t,n,Tl.highlightFirst),tt.some(!0)},onEscape:function(t){var n=Sv.getCoupled(t,"sandbox");return tf.isOpen(n)?(tf.close(n),tt.some(!0)):tt.none()},onUp:function(t,n){return e(t,n,Tl.highlightLast),tt.some(!0)},onEnter:function(n){var t=Sv.getCoupled(n,"sandbox"),e=tf.isOpen(t);if(e&&!r.previewing.get())return gl.getCurrent(t).bind(function(t){return Tl.getHighlighted(t)}).map(function(t){return ci(n,$v(),{item:t}),!0});var o=Nm.getValue(n);return ai(n,ue()),r.onExecute(t,n,o),e&&tf.close(t),tt.some(!0)}}),eg.config({toggleClass:r.markers.openClass,aria:{mode:"pressed",syncWithExpanded:!0}}),Sv.config({others:{sandbox:function(t){return Uv(r,t,{onOpen:U,onClose:U})}}}),sg("typeaheadevents",[Ii(function(t){var n=Q;Pv(r,u(t),t,i,n,ov.HighlightFirst).get(Q)}),Ci($v(),function(t,n){var e=Sv.getCoupled(t,"sandbox");Wv(r.model,t,n.event().item()),ai(t,ue()),r.onItemExecute(t,e,n.event().item(),Nm.getValue(t)),tf.close(e),Xv(t)})].concat(r.dismissOnBlur?[Ci($n(),function(t){var n=Sv.getCoupled(t,"sandbox");Pl(n.element()).isNone()&&tf.close(n)})]:[]))];return{uid:r.uid,dom:Jv(r),behaviours:To({},o,sf(r.typeaheadBehaviours,a)),eventOrder:r.eventOrder}}}),eb=function(t,n,e){var o=rb(t,n,e);return yv.sketch(o)},ob=function(t,n){return eb(t,n,[])},rb=function(t,n,e){return{dom:ib(e),components:t.toArray().concat([n])}},ib=function(t){return{tag:"div",classes:["tox-form__group"].concat(t)}},ub=function(t,n){return yv.parts().label({dom:{tag:"label",classes:["tox-label"],innerHtml:n.translate(t)}})},ab=function(t){return"separator"===t.type},cb={type:"separator"},sb=function(t,e){var n=dt(t,function(t,n){return K(n)?""===n?t:"|"===n?0<t.length&&!ab(t[t.length-1])?t.concat([cb]):t:Vt(e,n.toLowerCase())?t.concat([e[n.toLowerCase()]]):t:t.concat([n])},[]);return 0<n.length&&ab(n[n.length-1])&&n.pop(),n},fb=function(t,n){return Vt(t,"getSubmenuItems")?(o=n,r=(e=t).getSubmenuItems(),i=lb(r,o),{item:e,menus:Gt(i.menus,$t(e.value,i.items)),expansions:Gt(i.expansions,$t(e.value,e.value))}):{item:t,menus:{},expansions:{}};var e,o,r,i},lb=function(t,r){var n=sb(K(t)?t.split(" "):t,r);return lt(n,function(t,n){var e=function(t){if(ab(t))return t;var n=Jt(t,"value").getOrThunk(function(){return Oo("generated-menu-item")});return Gt({value:n},t)}(n),o=fb(e,r);return{menus:Gt(t.menus,o.menus),items:[o.item].concat(t.items),expansions:Gt(t.expansions,o.expansions)}},{menus:{},expansions:{},items:[]})},db=function(t,e,o){var n=Oo("primary-menu"),r=lb(t,o.menuItems());if(0===r.items.length)return tt.none();var i=Th(n,r.items,e,o),u=At(r.menus,function(t,n){return Th(n,t,e,o)}),a=Gt(u,$t(n,i));return tt.from(Cg.tieredData(n,a,r.expansions))},mb=sl({name:"Input",configFields:qv(),factory:function(t){return{uid:t.uid,dom:Jv(t),components:[],behaviours:(n=t,To({},Kv(n),sf(n.inputBehaviours,[Nm.config({store:{mode:"manual",initialValue:n.data.getOr(undefined),getValue:function(t){return _u(t.element())},setValue:function(t,n){_u(t.element())!==n&&Mu(t.element(),n)}},onSetValue:n.onSetValue})]))),eventOrder:t.eventOrder};var n}}),gb=qn.detect().browser.isFirefox(),pb={position:"absolute",left:"-9999px"},hb=function(t,n,e){var o,r,i,u=function(t,n){var e=xe.fromTag("span",t.dom());ro(e,"role","presentation");var o=xe.fromText(n,t.dom());return Xe(e,o),e}(He(n),e);gb&&(o=n,r=u,i=Oo("ephox-alloy-aria-voice"),ro(r,"id",i),ro(o,"aria-describedby",i)),io(u,t(e)),ku(u,pb),Xe(n,u),b.setTimeout(function(){co(u,"aria-live"),Ke(u)},1e3)},vb=function(){return{"aria-live":"assertive","aria-atomic":"true",role:"alert"}},bb=["input","textarea"],yb=function(t){var n=Qe(t);return it(bb,n)},xb=function(t,n){var e=n.getRoot(t).getOr(t.element());hu(e,n.invalidClass),n.notify.each(function(n){yb(t.element())&&co(e,"title"),n.getContainer(t).each(function(t){$e(t,n.validHtml)}),n.onValid(t)})},wb=function(e,t,n,o){var r=t.getRoot(e).getOr(e.element());gu(r,t.invalidClass),t.notify.each(function(t){var n;yb(e.element())&&ro(e.element(),"title",o),n=gi(),hb(vb,n,o),t.getContainer(e).each(function(t){$e(t,o)}),t.onInvalid(e,o)})},Sb=function(n,t){return t.validator.fold(function(){return _v.pure(Lt.value(!0))},function(t){return t.validate(n)})},Cb=function(n,e){return e.notify.each(function(t){t.onValidate(n)}),Sb(n,e).map(function(t){return n.getSystem().isConnected()?t.fold(function(t){return wb(n,e,0,t),Lt.error(t)},function(t){return xb(n,e),Lt.value(t)}):Lt.error("No longer in system")})},kb=Object.freeze({markValid:xb,markInvalid:wb,query:Sb,run:Cb,isInvalid:function(t,n){var e=n.getRoot(t).getOr(t.element());return vu(e,n.invalidClass)}}),Ob=Object.freeze({events:function(n){return n.validator.map(function(t){return xi([Ci(t.onEvent,function(t){Cb(t,n).get(U)})].concat(t.validateOnLoad?[_i(function(t){Cb(t,n).get(Q)})]:[]))}).getOr({})}}),Eb=[Rr("invalidClass"),Kr("getRoot",tt.none),qr("notify",[Kr("aria","alert"),Kr("getContainer",tt.none),Kr("validHtml",""),ea("onValid"),ea("onInvalid"),ea("onValidate")]),qr("validator",[Rr("validate"),Kr("onEvent","input"),Kr("validateOnLoad",!0)])],Tb=ha({fields:Eb,name:"invalidating",active:Ob,apis:kb,extra:{validation:function(e){return function(t){var n=Nm.getValue(t);return _v.pure(e(n))}}}}),Bb=Object.freeze({exhibit:function(t,n){return nu({attributes:Qt([{key:n.tabAttr,value:"true"}])})}}),Db=[Kr("tabAttr","data-alloy-tabstop")],Ab=ha({fields:Db,name:"tabstopping",active:Bb}),_b=function(t){return{value:Z(t)}},Mb=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Fb=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ib=function(t){return Mb.test(t)||Fb.test(t)},Vb=function(t){var n,e=(n=t.value().replace(Mb,function(t,n,e,o){return n+n+e+e+o+o}),{value:Z(n)});return Fb.exec(e.value())},Rb=function(t){var n=t.toString(16);return 1==n.length?"0"+n:n},Hb=function(t){var n=Rb(t.red())+Rb(t.green())+Rb(t.blue());return _b(n)},Nb=Math.min,zb=Math.max,Pb=Math.round,Lb=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,jb=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Ub=function(t,n,e,o){return{red:Z(t),green:Z(n),blue:Z(e),alpha:Z(o)}},Wb=function(t){var n=parseInt(t,10);return n.toString()===t&&0<=n&&n<=255},Gb=function(t){var n,e,o,r,i,u,a,c,s,f;if(i=(t.hue()||0)%360,u=t.saturation()/100,a=t.value()/100,u=zb(0,Nb(u,1)),a=zb(0,Nb(a,1)),0===u)return c=s=f=Pb(255*a),Ub(c,s,f,1);switch(n=i/60,o=(e=a*u)*(1-Math.abs(n%2-1)),r=a-e,Math.floor(n)){case 0:c=e,s=o,f=0;break;case 1:c=o,s=e,f=0;break;case 2:c=0,s=e,f=o;break;case 3:c=0,s=o,f=e;break;case 4:c=o,s=0,f=e;break;case 5:c=e,s=0,f=o;break;default:c=s=f=0}return c=Pb(255*(c+r)),s=Pb(255*(s+r)),f=Pb(255*(f+r)),Ub(c,s,f,1)},Xb=function(t){var n=Vb(t),e=parseInt(n[1],16),o=parseInt(n[2],16),r=parseInt(n[3],16);return Ub(e,o,r,1)},Yb=function(t,n,e,o){var r=parseInt(t,10),i=parseInt(n,10),u=parseInt(e,10),a=parseFloat(o);return Ub(r,i,u,a)},qb=function(t){return"rgba("+t.red()+","+t.green()+","+t.blue()+","+t.alpha()+")"},Kb=Z(Ub(255,0,0,1)),Jb=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),$b="tinymce-custom-colors",Qb="choiceitem",Zb=[{type:Qb,text:"Turquoise",value:"#18BC9B"},{type:Qb,text:"Green",value:"#2FCC71"},{type:Qb,text:"Blue",value:"#3598DB"},{type:Qb,text:"Purple",value:"#9B59B6"},{type:Qb,text:"Navy Blue",value:"#34495E"},{type:Qb,text:"Dark Turquoise",value:"#18A085"},{type:Qb,text:"Dark Green",value:"#27AE60"},{type:Qb,text:"Medium Blue",value:"#2880B9"},{type:Qb,text:"Medium Purple",value:"#8E44AD"},{type:Qb,text:"Midnight Blue",value:"#2B3E50"},{type:Qb,text:"Yellow",value:"#F1C40F"},{type:Qb,text:"Orange",value:"#E67E23"},{type:Qb,text:"Red",value:"#E74C3C"},{type:Qb,text:"Light Gray",value:"#ECF0F1"},{type:Qb,text:"Gray",value:"#95A5A6"},{type:Qb,text:"Dark Yellow",value:"#F29D12"},{type:Qb,text:"Dark Orange",value:"#D35400"},{type:Qb,text:"Dark Red",value:"#E74C3C"},{type:Qb,text:"Medium Gray",value:"#BDC3C7"},{type:Qb,text:"Dark Gray",value:"#7E8C8D"},{type:Qb,text:"Black",value:"#000000"},{type:Qb,text:"White",value:"#ffffff"}],ty=function KD(r){void 0===r&&(r=10);var t,n=Jb.getItem($b),e=K(n)?JSON.parse(n):[],i=r-(t=e).length<0?t.slice(0,r):t,u=function(t){i.splice(t,1)};return{add:function(t){var n,e,o;(n=i,e=t,o=rt(n,e),-1===o?tt.none():tt.some(o)).each(u),i.unshift(t),i.length>r&&i.pop(),Jb.setItem($b,JSON.stringify(i))},state:function(){return i.slice(0)}}}(10),ny=function(t){var n,e=[];for(n=0;n<t.length;n+=2)e.push({text:t[n+1],value:"#"+t[n],type:"choiceitem"});return e},ey=function(t){return t.getParam("color_map")},oy=function(t,n){return t.getParam("color_cols",n,"number")},ry=function(t){return!1!==t.getParam("custom_colors")},iy=function(t){var n=ey(t);return n!==undefined?ny(n):Zb},uy=function(){return ct(ty.state(),function(t){return{type:Qb,text:t,value:t}})},ay=function(t){ty.add(t)},cy=function(t,e){var o;return t.dom.getParents(t.selection.getStart(),function(t){var n;(n=t.style["forecolor"===e?"color":"background-color"])&&(o=o||n)}),o},sy=function(t){return Math.max(5,Math.ceil(Math.sqrt(t)))},fy=function(t){var n=iy(t),e=sy(n.length);return oy(t,e)},ly=function(n,e,t,o){"custom"===t?py(n)(function(t){t.each(function(t){ay(t),n.execCommand("mceApplyTextcolor",e,t),o(t)})},"#000000"):"remove"===t?(o(""),n.execCommand("mceRemoveTextcolor",e)):(o(t),n.execCommand("mceApplyTextcolor",e,t))},dy=function(o,r){return function(t){var n,e;t(o.concat(uy().concat((e={type:n="choiceitem",text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r?[e,{type:n,text:"Custom color",icon:"color-picker",value:"custom"}]:[e]))))}},my=function(t,n,e){var o,r;o="forecolor"===n?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color",r=e,t.setIconFill(o,r),t.setIconStroke(o,r)},gy=function(o,e,r,t,i){o.ui.registry.addSplitButton(e,{tooltip:t,presets:"color",icon:"forecolor"===e?"text-color":"highlight-bg-color",select:function(e){return tt.from(cy(o,r)).bind(function(t){return function(t){if("transparent"===t)return tt.some(Ub(0,0,0,0));if(Lb.test(t)){var n=Lb.exec(t);return tt.some(Yb(n[1],n[2],n[3],"1"))}if(jb.test(t)){var e=Lb.exec(t);return tt.some(Yb(e[1],e[2],e[3],e[4]))}return tt.none()}(t).map( function(t){var n=Hb(t).value();return Ln(e.toLowerCase(),n)})}).getOr(!1)},columns:fy(o),fetch:dy(iy(o),ry(o)),onAction:function(){null!==i.get()&&ly(o,r,i.get(),function(){})},onItemAction:function(n,t){ly(o,r,t,function(t){i.set(t),my(n,e,t)})},onSetup:function(t){return null!==i.get()&&my(t,e,i.get()),function(){}}})},py=function(i){return function(t,n){var e,o={colorpicker:n},r=(e=t,function(t){var n=t.getData();e(tt.from(n.colorpicker)),t.close()});i.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o,onAction:function(t,n){"hex-valid"===n.name&&(n.value?t.enable("ok"):t.disable("ok"))},onSubmit:r,onClose:function(){},onCancel:function(){t(tt.none())}})}},hy={register:function(t){var i;(i=t).addCommand("mceApplyTextcolor",function(t,n){var e,o,r;o=t,r=n,(e=i).undoManager.transact(function(){e.focus(),e.formatter.apply(o,{value:r}),e.nodeChanged()})}),i.addCommand("mceRemoveTextcolor",function(t){var n,e;e=t,(n=i).undoManager.transact(function(){n.focus(),n.formatter.remove(e,{value:null},null,!0),n.nodeChanged()})});var n=nn(null),e=nn(null);gy(t,"forecolor","forecolor","Text color",n),gy(t,"backcolor","hilitecolor","Background color",e)},getFetch:dy,colorPickerDialog:py,getCurrentColor:cy,getColorCols:fy,calcCols:sy},vy=Z([Rr("dom"),Rr("fetch"),ea("onOpen"),oa("onExecute"),Kr("getHotspot",tt.some),Kr("layouts",tt.none()),af("dropdownBehaviours",[eg,Sv,xm,Um]),Rr("toggleClass"),Kr("eventOrder",{}),Wr("lazySink"),Kr("matchWidth",!1),Kr("useMinWidth",!1),Wr("role")].concat(Qv())),by=Z([Rf({schema:[Zu()],name:"menu",defaults:function(t){return{onExecute:t.onExecute}}}),Fv()]),yy=fl({name:"Dropdown",configFields:vy(),partFields:by(),factory:function(n,t,e,o){var r,i,u=function(t){tf.getState(t).each(function(t){Cg.highlightPrimary(t)})},a={expand:function(t){eg.isOn(t)||Pv(n,function(t){return t},t,o,Q,ov.HighlightNone).get(Q)},open:function(t){eg.isOn(t)||Pv(n,function(t){return t},t,o,Q,ov.HighlightFirst).get(Q)},isOpen:eg.isOn,close:function(t){eg.isOn(t)&&Pv(n,function(t){return t},t,o,Q,ov.HighlightFirst).get(Q)}},c=function(t){return si(t),tt.some(!0)};return{uid:n.uid,dom:n.dom,components:t,behaviours:sf(n.dropdownBehaviours,[eg.config({toggleClass:n.toggleClass,aria:{mode:"expanded"}}),Sv.config({others:{sandbox:function(t){return Uv(n,t,{onOpen:function(){eg.on(t)},onClose:function(){eg.off(t)}})}}}),xm.config({mode:"special",onSpace:c,onEnter:c,onDown:function(t){if(yy.isOpen(t)){var n=Sv.getCoupled(t,"sandbox");u(n)}else yy.open(t);return tt.some(!0)},onEscape:function(t){return yy.isOpen(t)?(yy.close(t),tt.some(!0)):tt.none()}}),Um.config({})]),events:Og(tt.some(function(t){Pv(n,function(t){return t},t,o,u,ov.HighlightFirst).get(Q)})),eventOrder:To({},n.eventOrder,(r={},r[te()]=["disabling","toggling","alloy.base.behaviour"],r)),apis:a,domModification:{attributes:To({"aria-haspopup":"true"},n.role.fold(function(){return{}},function(t){return{role:t}}),"button"===n.dom.tag?{type:(i="type",Jt(n.dom,"attributes").bind(function(t){return Jt(t,i)})).getOr("button")}:{})}}},apis:{open:function(t,n){return t.open(n)},expand:function(t,n){return t.expand(n)},close:function(t,n){return t.close(n)},isOpen:function(t,n){return t.isOpen(n)}}}),xy=ha({fields:[],name:"unselecting",active:Object.freeze({events:function(){return xi([wi(wn(),Z(!0))])},exhibit:function(){return nu({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})}})}),wy=Oo("color-input-change"),Sy=Oo("color-swatch-change"),Cy=Oo("color-picker-cancel"),ky=function(t,n,o){var e,r,i=yv.parts().field({factory:mb,inputClasses:["tox-textfield"],onSetValue:function(t){return Tb.run(t).get(function(){})},inputBehaviours:ga([Ab.config({}),Tb.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(t){return ze(t.element())},notify:{onValid:function(t){var n=Nm.getValue(t);ci(t,wy,{color:n})}},validator:{validateOnLoad:!1,validate:function(t){var n=Nm.getValue(t);if(0===n.length)return _v.pure(Lt.value(!0));var e=xe.fromTag("span");Cu(e,"background-color",n);var o=Tu(e,"background-color").fold(function(){return Lt.error("blah")},function(){return Lt.value(n)});return _v.pure(o)}}})]),selectOnFocus:!1}),u=t.label.map(function(t){return ub(t,n.providers)}),a=function(t,n){ci(t,Sy,{value:n})},c=Tg((e={dom:{tag:"span",attributes:{"aria-label":n.providers.translate("Color swatch")}},layouts:tt.some({onRtl:function(){return[Tc]},onLtr:function(){return[Bc]}}),components:[],fetch:hy.getFetch(o.getColors(),o.hasCustomColors()),onItemAction:function(e){n.getSink().each(function(t){c.getOpt(t).each(function(n){"custom"===e?o.colorPicker(function(t){t.fold(function(){return ai(n,Cy)},function(t){a(n,t),ay(t)})},"#ffffff"):a(n,"remove"===e?"":e)})})}},r=n,yy.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:ga([xy.config({}),Ab.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:r.getSink,fetch:function(){return _v.nu(function(t){return e.fetch(t)}).map(function(t){return tt.from(Bh(Gt(Eh(Oo("menu-value"),t,function(t){e.onItemAction(t)},5,"color",Yp.CLOSE_ON_EXECUTE,function(){return!1},r.providers),{movement:gh(5,"color")})))})},parts:{menu:mh(0,0,"color")}})));return yv.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:u.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[i,c.asSpec()]}]),fieldBehaviours:ga([sg("form-field-events",[Ci(wy,function(t,n){c.getOpt(t).each(function(t){Cu(t.element(),"background-color",n.event().color())})}),Ci(Sy,function(n,e){yv.getField(n).each(function(t){Nm.setValue(t,e.event().value()),gl.getCurrent(n).each(Um.focus)})}),Ci(Cy,function(t){yv.getField(t).each(function(){gl.getCurrent(t).each(Um.focus)})})])])})},Oy=qn.detect().deviceType.isTouch(),Ey=Hf({schema:[Rr("dom")],name:"label"}),Ty=function(t){return Hf({name:t+"-edge",overrides:function(o){return o.model.manager.edgeActions[t].fold(function(){return{}},function(e){var t=xi([ki(rn(),e,[o])]),n=xi([ki(cn(),e,[o]),ki(sn(),function(t,n){n.mouseIsDown.get()&&e(t,n)},[o])]);return{events:Oy?t:n}})}})},By=Ty("top-left"),Dy=Ty("top"),Ay=Ty("top-right"),_y=Ty("right"),My=Ty("bottom-right"),Fy=Ty("bottom"),Iy=Ty("bottom-left"),Vy=[Ey,Ty("left"),_y,Dy,Fy,By,Ay,Iy,My,Vf({name:"thumb",defaults:Z({dom:{styles:{position:"absolute"}}}),overrides:function(t){return{events:xi([Ei(rn(),t,"spectrum"),Ei(un(),t,"spectrum"),Ei(an(),t,"spectrum"),Ei(cn(),t,"spectrum"),Ei(sn(),t,"spectrum"),Ei(ln(),t,"spectrum")])}}}),Vf({schema:[oi("mouseIsDown",function(){return nn(!1)})],name:"spectrum",overrides:function(e){var o=e.model.manager,r=function(n,t){return o.getValueFromEvent(t).map(function(t){return o.setValueFrom(n,e,t)})},t=xi([Ci(rn(),r),Ci(un(),r)]),n=xi([Ci(cn(),r),Ci(sn(),function(t,n){e.mouseIsDown.get()&&r(t,n)})]);return{behaviours:ga(Oy?[]:[xm.config({mode:"special",onLeft:function(t){return o.onLeft(t,e)},onRight:function(t){return o.onRight(t,e)},onUp:function(t){return o.onUp(t,e)},onDown:function(t){return o.onDown(t,e)}}),Um.config({})]),events:Oy?t:n}}})],Ry=qn.detect().deviceType.isTouch(),Hy=Z("slider.change.value"),Ny=function(t){var n=t.event().raw();if(Ry){var e=n;return e.touches!==undefined&&1===e.touches.length?tt.some(e.touches[0]).map(function(t){return Oa(t.clientX,t.clientY)}):tt.none()}var o=n;return o.clientX!==undefined?tt.some(o).map(function(t){return Oa(t.clientX,t.clientY)}):tt.none()},zy=function(t,n,e,o){return t<n?t:e<t?e:t===n?n-1:Math.max(n,t-o)},Py=function(t,n,e,o){return e<t?t:t<n?n:t===e?e+1:Math.min(e,t+o)},Ly=function(t,n,e){return Math.max(n,Math.min(e,t))},jy=function(t){var n=t.min,e=t.max,o=t.range,r=t.value,i=t.step,u=t.snap,a=t.snapStart,c=t.rounded,s=t.hasMinEdge,f=t.hasMaxEdge,l=t.minBound,d=t.maxBound,m=t.screenRange,g=s?n-1:n,p=f?e+1:e;if(r<l)return g;if(d<r)return p;var h,v,b,y,x,w,S,C=(x=r,w=l,S=d,Math.min(S,Math.max(x,w))-w),k=Ly(C/m*o+n,g,p);return u&&n<=k&&k<=e?(h=k,v=n,b=e,y=i,a.fold(function(){var t=h-v,n=Math.round(t/y)*y;return Ly(v+n,v-1,b+1)},function(t){var n=(h-t)%y,e=Math.round(n/y),o=Math.floor((h-t)/y),r=Math.floor((b-t)/y),i=t+Math.min(r,o+e)*y;return Math.max(t,i)})):c?Math.round(k):k},Uy=function(t){var n=t.min,e=t.max,o=t.range,r=t.value,i=t.hasMinEdge,u=t.hasMaxEdge,a=t.maxBound,c=t.maxOffset,s=t.centerMinEdge,f=t.centerMaxEdge;return r<n?i?0:s:e<r?u?a:f:(r-n)/o*c},Wy=function(t){return t.model.minX},Gy=function(t){return t.model.minY},Xy=function(t){return t.model.minX-1},Yy=function(t){return t.model.minY-1},qy=function(t){return t.model.maxX},Ky=function(t){return t.model.maxY},Jy=function(t){return t.model.maxX+1},$y=function(t){return t.model.maxY+1},Qy=function(t,n,e){return n(t)-e(t)},Zy=function(t){return Qy(t,qy,Wy)},tx=function(t){return Qy(t,Ky,Gy)},nx=function(t){return Zy(t)/2},ex=function(t){return tx(t)/2},ox=function(t){return t.stepSize},rx=function(t){return t.snapToGrid},ix=function(t){return t.snapStart},ux=function(t){return t.rounded},ax=function(t,n){return t[n+"-edge"]!==undefined},cx=function(t){return ax(t,"left")},sx=function(t){return ax(t,"right")},fx=function(t){return ax(t,"top")},lx=function(t){return ax(t,"bottom")},dx=function(t){return t.model.value.get()},mx=function(t){return{x:Z(t)}},gx=function(t){return{y:Z(t)}},px=function(t,n){return{x:Z(t),y:Z(n)}},hx=function(t,n){ci(t,Hy(),{value:n})},vx="left",bx=function(t){return t.element().dom().getBoundingClientRect()},yx=function(t,n){return t[n]},xx=function(t){var n=bx(t);return yx(n,vx)},wx=function(t){var n=bx(t);return yx(n,"right")},Sx=function(t){var n=bx(t);return yx(n,"top")},Cx=function(t){var n=bx(t);return yx(n,"bottom")},kx=function(t){var n=bx(t);return yx(n,"width")},Ox=function(t){var n=bx(t);return yx(n,"height")},Ex=function(t,n,e){return(t+n)/2-e},Tx=function(t,n){var e=bx(t),o=bx(n),r=yx(e,vx),i=yx(e,"right"),u=yx(o,vx);return Ex(r,i,u)},Bx=function(t,n){var e=bx(t),o=bx(n),r=yx(e,"top"),i=yx(e,"bottom"),u=yx(o,"top");return Ex(r,i,u)},Dx=function(t,n){ci(t,Hy(),{value:n})},Ax=function(t){return{x:Z(t)}},_x=function(t,n,e){var o={min:Wy(n),max:qy(n),range:Zy(n),value:e,step:ox(n),snap:rx(n),snapStart:ix(n),rounded:ux(n),hasMinEdge:cx(n),hasMaxEdge:sx(n),minBound:xx(t),maxBound:wx(t),screenRange:kx(t)};return jy(o)},Mx=function(u){return function(t,n){return(e=u,o=t,r=n,i=(0<e?Py:zy)(dx(r).x(),Wy(r),qy(r),ox(r)),Dx(o,Ax(i)),tt.some(i)).map(function(){return!0});var e,o,r,i}},Fx=function(t,n,e,o,r,i){var u,a,c,s,f,l,d,m,g,p=(a=i,c=e,s=o,f=r,l=kx(u=n),d=s.bind(function(t){return tt.some(Tx(t,u))}).getOr(0),m=f.bind(function(t){return tt.some(Tx(t,u))}).getOr(l),g={min:Wy(a),max:qy(a),range:Zy(a),value:c,hasMinEdge:cx(a),hasMaxEdge:sx(a),minBound:xx(u),minOffset:0,maxBound:wx(u),maxOffset:l,centerMinEdge:d,centerMaxEdge:m},Uy(g));return xx(n)-xx(t)+p},Ix=Mx(-1),Vx=Mx(1),Rx=tt.none,Hx=tt.none,Nx={"top-left":tt.none(),top:tt.none(),"top-right":tt.none(),right:tt.some(function(t,n){hx(t,mx(Jy(n)))}),"bottom-right":tt.none(),bottom:tt.none(),"bottom-left":tt.none(),left:tt.some(function(t,n){hx(t,mx(Xy(n)))})},zx=Object.freeze({setValueFrom:function(t,n,e){var o=_x(t,n,e),r=Ax(o);return Dx(t,r),o},setToMin:function(t,n){var e=Wy(n);Dx(t,Ax(e))},setToMax:function(t,n){var e=qy(n);Dx(t,Ax(e))},findValueOfOffset:_x,getValueFromEvent:function(t){return Ny(t).map(function(t){return t.left()})},findPositionOfValue:Fx,setPositionFromValue:function(t,n,e,o){var r=dx(e),i=Fx(t,o.getSpectrum(t),r.x(),o.getLeftEdge(t),o.getRightEdge(t),e),u=_a(n.element())/2;Cu(n.element(),"left",i-u+"px")},onLeft:Ix,onRight:Vx,onUp:Rx,onDown:Hx,edgeActions:Nx}),Px=function(t,n){ci(t,Hy(),{value:n})},Lx=function(t){return{y:Z(t)}},jx=function(t,n,e){var o={min:Gy(n),max:Ky(n),range:tx(n),value:e,step:ox(n),snap:rx(n),snapStart:ix(n),rounded:ux(n),hasMinEdge:fx(n),hasMaxEdge:lx(n),minBound:Sx(t),maxBound:Cx(t),screenRange:Ox(t)};return jy(o)},Ux=function(u){return function(t,n){return(e=u,o=t,r=n,i=(0<e?Py:zy)(dx(r).y(),Gy(r),Ky(r),ox(r)),Px(o,Lx(i)),tt.some(i)).map(function(){return!0});var e,o,r,i}},Wx=function(t,n,e,o,r,i){var u,a,c,s,f,l,d,m,g,p=(a=i,c=e,s=o,f=r,l=Ox(u=n),d=s.bind(function(t){return tt.some(Bx(t,u))}).getOr(0),m=f.bind(function(t){return tt.some(Bx(t,u))}).getOr(l),g={min:Gy(a),max:Ky(a),range:tx(a),value:c,hasMinEdge:fx(a),hasMaxEdge:lx(a),minBound:Sx(u),minOffset:0,maxBound:Cx(u),maxOffset:l,centerMinEdge:d,centerMaxEdge:m},Uy(g));return Sx(n)-Sx(t)+p},Gx=tt.none,Xx=tt.none,Yx=Ux(-1),qx=Ux(1),Kx={"top-left":tt.none(),top:tt.some(function(t,n){hx(t,gx(Yy(n)))}),"top-right":tt.none(),right:tt.none(),"bottom-right":tt.none(),bottom:tt.some(function(t,n){hx(t,gx($y(n)))}),"bottom-left":tt.none(),left:tt.none()},Jx=Object.freeze({setValueFrom:function(t,n,e){var o=jx(t,n,e),r=Lx(o);return Px(t,r),o},setToMin:function(t,n){var e=Gy(n);Px(t,Lx(e))},setToMax:function(t,n){var e=Ky(n);Px(t,Lx(e))},findValueOfOffset:jx,getValueFromEvent:function(t){return Ny(t).map(function(t){return t.top()})},findPositionOfValue:Wx,setPositionFromValue:function(t,n,e,o){var r=dx(e),i=Wx(t,o.getSpectrum(t),r.y(),o.getTopEdge(t),o.getBottomEdge(t),e),u=Ia(n.element())/2;Cu(n.element(),"top",i-u+"px")},onLeft:Gx,onRight:Xx,onUp:Yx,onDown:qx,edgeActions:Kx}),$x=function(t,n){ci(t,Hy(),{value:n})},Qx=function(t,n){return{x:Z(t),y:Z(n)}},Zx=function(s,f){return function(t,n){return(e=s,o=f,r=t,i=n,u=0<e?Py:zy,a=o?dx(i).x():u(dx(i).x(),Wy(i),qy(i),ox(i)),c=o?u(dx(i).y(),Gy(i),Ky(i),ox(i)):dx(i).y(),$x(r,Qx(a,c)),tt.some(a)).map(function(){return!0});var e,o,r,i,u,a,c}},tw=Zx(-1,!1),nw=Zx(1,!1),ew=Zx(-1,!0),ow=Zx(1,!0),rw={"top-left":tt.some(function(t,n){hx(t,px(Xy(n),Yy(n)))}),top:tt.some(function(t,n){hx(t,px(nx(n),Yy(n)))}),"top-right":tt.some(function(t,n){hx(t,px(Jy(n),Yy(n)))}),right:tt.some(function(t,n){hx(t,px(Jy(n),ex(n)))}),"bottom-right":tt.some(function(t,n){hx(t,px(Jy(n),$y(n)))}),bottom:tt.some(function(t,n){hx(t,px(nx(n),$y(n)))}),"bottom-left":tt.some(function(t,n){hx(t,px(Xy(n),$y(n)))}),left:tt.some(function(t,n){hx(t,px(Xy(n),ex(n)))})},iw=Object.freeze({setValueFrom:function(t,n,e){var o=_x(t,n,e.left()),r=jx(t,n,e.top()),i=Qx(o,r);return $x(t,i),i},setToMin:function(t,n){var e=Wy(n),o=Gy(n);$x(t,Qx(e,o))},setToMax:function(t,n){var e=qy(n),o=Ky(n);$x(t,Qx(e,o))},getValueFromEvent:function(t){return Ny(t)},setPositionFromValue:function(t,n,e,o){var r=dx(e),i=Fx(t,o.getSpectrum(t),r.x(),o.getLeftEdge(t),o.getRightEdge(t),e),u=Wx(t,o.getSpectrum(t),r.y(),o.getTopEdge(t),o.getBottomEdge(t),e),a=_a(n.element())/2,c=Ia(n.element())/2;Cu(n.element(),"left",i-a+"px"),Cu(n.element(),"top",u-c+"px")},onLeft:tw,onRight:nw,onUp:ew,onDown:ow,edgeActions:rw}),uw=qn.detect().deviceType.isTouch(),aw=[Kr("stepSize",1),Kr("onChange",Q),Kr("onChoose",Q),Kr("onInit",Q),Kr("onDragStart",Q),Kr("onDragEnd",Q),Kr("snapToGrid",!1),Kr("rounded",!0),Wr("snapStart"),Hr("model",Br("mode",{x:[Kr("minX",0),Kr("maxX",100),oi("value",function(t){return nn(t.mode.minX)}),Rr("getInitialValue"),ua("manager",zx)],y:[Kr("minY",0),Kr("maxY",100),oi("value",function(t){return nn(t.mode.minY)}),Rr("getInitialValue"),ua("manager",Jx)],xy:[Kr("minX",0),Kr("maxX",100),Kr("minY",0),Kr("maxY",100),oi("value",function(t){return nn({x:Z(t.mode.minX),y:Z(t.mode.minY)})}),Rr("getInitialValue"),ua("manager",iw)]})),af("sliderBehaviours",[xm,Nm])].concat(uw?[]:[oi("mouseIsDown",function(){return nn(!1)})]),cw=qn.detect().deviceType.isTouch(),sw=fl({name:"Slider",configFields:aw,partFields:Vy,factory:function(r,t){var i=function(t){return Jf(t,r,"thumb")},u=function(t){return Jf(t,r,"spectrum")},e=function(t){return Kf(t,r,"left-edge")},o=function(t){return Kf(t,r,"right-edge")},a=function(t){return Kf(t,r,"top-edge")},c=function(t){return Kf(t,r,"bottom-edge")},s=r.model,f=s.manager,l=function(t,n){f.setPositionFromValue(t,n,r,{getLeftEdge:e,getRightEdge:o,getTopEdge:a,getBottomEdge:c,getSpectrum:u})},d=function(t,n){s.value.set(n);var e=i(t);return l(t,e),r.onChange(t,e,n),tt.some(!0)},n=[Ci(rn(),function(t){r.onDragStart(t,i(t))}),Ci(an(),function(t){r.onDragEnd(t,i(t))})],m=[Ci(cn(),function(t,n){n.stop(),r.onDragStart(t,i(t)),r.mouseIsDown.set(!0)}),Ci(ln(),function(t){r.onDragEnd(t,i(t))})],g=cw?n:m;return{uid:r.uid,dom:r.dom,components:t,behaviours:sf(r.sliderBehaviours,vt([cw?[]:[xm.config({mode:"special",focusIn:function(t){return Kf(t,r,"spectrum").map(xm.focusIn).map(Z(!0))}})],[Nm.config({store:{mode:"manual",getValue:function(){return s.value.get()}}}),Sa.config({channels:{"mouse.released":{onReceive:function(e){var t=r.mouseIsDown.get();r.mouseIsDown.set(!1),t&&Kf(e,r,"thumb").each(function(t){var n=s.value.get();r.onChoose(e,t,n)})}}}})]])),events:xi([Ci(Hy(),function(t,n){d(t,n.event().value())}),_i(function(t){var n=s.getInitialValue();s.value.set(n);var e=i(t);l(t,e);var o=u(t);r.onInit(t,e,o,s.value.get())})].concat(g)),apis:{resetToMin:function(t){f.setToMin(t,r)},resetToMax:function(t){f.setToMax(t,r)},changeValue:d,refresh:l},domModification:{styles:{position:"relative"}}}},apis:{resetToMin:function(t,n){t.resetToMin(n)},resetToMax:function(t,n){t.resetToMax(n)},refresh:function(t,n){t.refresh(n)}}}),fw=Z(Oo("rgb-hex-update")),lw=Z(Oo("slider-update")),dw=Z(Oo("palette-update")),mw=function(t,e){var o=sw.parts().spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[e("sv-palette-spectrum")]}}),r=sw.parts().thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette-thumb")],innerHtml:"<div class="+e("sv-palette-inner-thumb")+' role="presentation"></div>'}}),i=function(t,n){var e=t.width,o=t.height,r=t.getContext("2d");r.fillStyle=n,r.fillRect(0,0,e,o);var i=r.createLinearGradient(0,0,e,0);i.addColorStop(0,"rgba(255,255,255,1)"),i.addColorStop(1,"rgba(255,255,255,0)"),r.fillStyle=i,r.fillRect(0,0,e,o);var u=r.createLinearGradient(0,0,0,o);u.addColorStop(0,"rgba(0,0,0,0)"),u.addColorStop(1,"rgba(0,0,0,1)"),r.fillStyle=u,r.fillRect(0,0,e,o)};return sl({factory:function(){var t=Z({x:Z(0),y:Z(0)}),n=ga([gl.config({find:tt.some}),Um.config({})]);return sw.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette")]},model:{mode:"xy",getInitialValue:t},rounded:!1,components:[o,r],onChange:function(t,n,e){ci(t,dw(),{value:e})},onInit:function(t,n,e){i(e.element().dom(),qb(Kb()))},sliderBehaviours:n})},name:"SaturationBrightnessPalette",configFields:[],apis:{setRgba:function(t,n,e){var o,r;o=e,r=n.components()[0].element().dom(),i(r,qb(o))}},extraApis:{}})},gw=function(t,n){var e=sw.parts().spectrum({dom:{tag:"div",classes:[n("hue-slider-spectrum")],attributes:{role:"presentation"}}}),o=sw.parts().thumb({dom:{tag:"div",classes:[n("hue-slider-thumb")],attributes:{role:"presentation"}}});return sw.sketch({dom:{tag:"div",classes:[n("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:Z({y:Z(0)})},components:[e,o],sliderBehaviours:ga([Um.config({})]),onChange:function(t,n,e){ci(t,lw(),{value:e})}})},pw=[af("formBehaviours",[Nm])],hw=function(t){return"<alloy.field."+t+">"},vw=function(o,t){return{uid:o.uid,dom:o.dom,components:t,behaviours:sf(o.formBehaviours,[Nm.config({store:{mode:"manual",getValue:function(t){var n=Qf(t,o);return At(n,function(t){return t().bind(function(t){var n,e=gl.getCurrent(t);return n="missing current",e.fold(function(){return Lt.error(n)},Lt.value)}).map(Nm.getValue)})},setValue:function(e,t){Dt(t,function(n,t){Kf(e,o,t).each(function(t){gl.getCurrent(t).each(function(t){Nm.setValue(t,n)})})})}}})]),apis:{getField:function(t,n){return Kf(t,o,n).bind(gl.getCurrent)}}}},bw={getField:$i(function(t,n,e){return t.getField(n,e)}),sketch:function(t){var e,n=(e=[],{field:function(t,n){return e.push(t),Wf("form",hw(t),n)},record:function(){return e}}),o=t(n),r=n.record(),i=ct(r,function(t){return Vf({name:t,pname:hw(t)})});return il("form",pw,i,vw,o)}},yw=Oo("valid-input"),xw=Oo("invalid-input"),ww=Oo("validating-input"),Sw="colorcustom.rgb.",Cw=function(d,m,g,p){var h=function(t,n,e,o,r){var i,u,a=d(Sw+"range"),c=[yv.parts().label({dom:{tag:"label",innerHtml:e,attributes:{"aria-label":o}}}),yv.parts().field({data:r,factory:mb,inputAttributes:To({type:"text"},"hex"===n?{"aria-live":"polite"}:{}),inputClasses:[m("textfield")],inputBehaviours:ga([(i=n,u=t,Tb.config({invalidClass:m("invalid"),notify:{onValidate:function(t){ci(t,ww,{type:i})},onValid:function(t){ci(t,yw,{type:i,value:Nm.getValue(t)})},onInvalid:function(t){ci(t,xw,{type:i,value:Nm.getValue(t)})}},validator:{validate:function(t){var n=Nm.getValue(t),e=u(n)?Lt.value(!0):Lt.error(d("aria.input.invalid"));return _v.pure(e)},validateOnLoad:!1}})),Ab.config({})]),onSetValue:function(t){Tb.isInvalid(t)&&Tb.run(t).get(Q)}})],s="hex"!==n?[yv.parts()["aria-descriptor"]({text:a})]:[];return{dom:{tag:"div",attributes:{role:"presentation"}},components:c.concat(s)}},v=function(t,n){var e=n.red(),o=n.green(),r=n.blue();Nm.setValue(t,{red:e,green:o,blue:r})},b=Tg({dom:{tag:"div",classes:[m("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),y=function(t,n){b.getOpt(t).each(function(t){Cu(t.element(),"background-color","#"+n.value())})};return sl({factory:function(){var e={red:Z(nn(tt.some(255))),green:Z(nn(tt.some(255))),blue:Z(nn(tt.some(255))),hex:Z(nn(tt.some("ffffff")))},o=function(t){return e[t]().get()},i=function(t,n){e[t]().set(n)},r=function(t){var n=t.red(),e=t.green(),o=t.blue();i("red",tt.some(n)),i("green",tt.some(e)),i("blue",tt.some(o))},n=function(t,n){var e=n.event();"hex"!==e.type()?i(e.type(),tt.none()):p(t)},u=function(r,t,n){var e=parseInt(n,10);i(t,tt.some(e)),o("red").bind(function(e){return o("green").bind(function(n){return o("blue").map(function(t){return Ub(e,n,t,1)})})}).each(function(t){var n,e,o=(n=r,e=Hb(t),bw.getField(n,"hex").each(function(t){Um.isFocused(t)||Nm.setValue(n,{hex:e.value()})}),e);y(r,o)})},a=function(t,n){var e=n.event();"hex"===e.type()?function(t,n){g(t);var e=_b(n);i("hex",tt.some(n));var o=Xb(e);v(t,o),r(o),ci(t,fw(),{hex:e}),y(t,e)}(t,e.value()):u(t,e.type(),e.value())},t=function(t){return{label:d(Sw+t+".label"),description:d(Sw+t+".description")}},c=t("red"),s=t("green"),f=t("blue"),l=t("hex");return Gt(bw.sketch(function(t){return{dom:{tag:"form",classes:[m("rgb-form")],attributes:{"aria-label":d("aria.color.picker")}},components:[t.field("red",yv.sketch(h(Wb,"red",c.label,c.description,255))),t.field("green",yv.sketch(h(Wb,"green",s.label,s.description,255))),t.field("blue",yv.sketch(h(Wb,"blue",f.label,f.description,255))),t.field("hex",yv.sketch(h(Ib,"hex",l.label,l.description,"ffffff"))),b.asSpec()],formBehaviours:ga([Tb.config({invalidClass:m("form-invalid")}),sg("rgb-form-events",[Ci(yw,a),Ci(xw,n),Ci(ww,n)])])}}),{apis:{updateHex:function(t,n){var e,o;Nm.setValue(t,{hex:n.value()}),e=t,o=Xb(n),v(e,o),r(o),y(t,n)}}})},name:"RgbForm",configFields:[],apis:{updateHex:function(t,n,e){t.updateHex(n,e)}},extraApis:{}})},kw=function(t,n,e){return{hue:Z(t),saturation:Z(n),value:Z(e)}},Ow=function(c,s){return sl({name:"ColourPicker",configFields:[Kr("onValidHex",Q),Kr("onInvalidHex",Q),Xr("formChangeEvent")],factory:function(t){var u,h,e=Cw(c,s,t.onValidHex,t.onInvalidHex),o=mw(c,s),v={paletteRgba:Z(nn(Kb()))},n=Tg(o.sketch({})),r=Tg(e.sketch({})),i=function(t,e){n.getOpt(t).each(function(t){var n=Xb(e);v.paletteRgba().set(n),o.setRgba(t,n)})},a=function(t,n){r.getOpt(t).each(function(t){e.updateHex(t,n)})},b=function(n,e,t){st(t,function(t){t(n,e)})};return{uid:t.uid,dom:t.dom,components:[n.asSpec(),gw(c,s),r.asSpec()],behaviours:ga([sg("colour-picker-events",[Ci(dw(),(h=[a],function(t,n){var e,o,r,i,u,a,c,s,f,l=n.event().value(),d=(c=u=0,o=(e=v.paletteRgba().get()).red()/255,r=e.green()/255,i=e.blue()/255,(s=Math.min(o,Math.min(r,i)))===(f=Math.max(o,Math.max(r,i)))?kw(0,0,100*(c=s)):(u=60*((u=o===s?3:i===s?1:5)-(o===s?r-i:i===s?o-r:i-o)/(f-s)),a=(f-s)/f,c=f,kw(Math.round(u),Math.round(100*a),Math.round(100*c)))),m=kw(d.hue(),l.x(),100-l.y()),g=Gb(m),p=Hb(g);b(t,p,h)})),Ci(lw(),(u=[i,a],function(t,n){var e,o,r,i=(e=n.event().value().y(),o=kw(360*(100-e/100),100,100),r=Gb(o),Hb(r));b(t,i,u)}))]),gl.config({find:function(t){return r.getOpt(t)}}),xm.config({mode:"acyclic"})])}}})},Ew=function(){return gl.config({find:tt.some})},Tw=function(t){return gl.config({find:t.getOpt})},Bw=function(t){return gl.config({find:function(n){return je(n.element(),t).bind(function(t){return n.getSystem().getByDom(t).toOption()})}})},Dw={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},Aw=function(t){return Dw[t]},_w=dr([Kr("preprocess",U),Kr("postprocess",U)]),Mw=function(t,n,e){return Nm.config(Gt({store:{mode:"manual",getValue:n,setValue:e}},t.map(function(t){return{store:{initialValue:t}}}).getOr({})))},Fw=function(t,n,e){return Mw(t,function(t){return n(t.element())},function(t,n){return e(t.element(),n)})},Iw=function(r,t){var i=Er("RepresentingConfigs.memento processors",_w,t);return Nm.config({store:{mode:"manual",getValue:function(t){var n=r.get(t),e=Nm.getValue(n);return i.postprocess(e)},setValue:function(t,n){var e=i.preprocess(n),o=r.get(t);Nm.setValue(o,e)}}})},Vw=Mw,Rw=function(t){return Fw(t,Je,$e)},Hw=function(t){return Nm.config({store:{mode:"memory",initialValue:t}})},Nw=function(r,n){var e=function(t,n){n.stop()},o=function(t){return function(n,e){st(t,function(t){t(n,e)})}},i=function(t,n){if(!Np.isDisabled(t)){var e=n.event().raw();a(t,e.dataTransfer.files)}},u=function(t,n){var e=n.event().raw().target.files;a(t,e)},a=function(t,n){var e,o;Nm.setValue(t,(e=n,o=new RegExp("("+".jpg,.jpeg,.png,.gif".split(/\s*,\s*/).join("|")+")$","i"),ft(Et(e),function(t){return o.test(t.name)}))),ci(t,cv,{name:r.name})},c=Tg({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:ga([sg("input-file-events",[Bi(oe())])])}),t=r.label.map(function(t){return ub(t,n)}),s=yv.parts().field({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:ga([Hw([]),Ew(),Np.config({}),eg.config({toggleClass:"dragenter",toggleOnExecute:!1}),sg("dropzone-events",[Ci("dragenter",o([e,eg.toggle])),Ci("dragleave",o([e,eg.toggle])),Ci("dragover",e),Ci("drop",o([e,i])),Ci(bn(),u)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:n.translate("Drop an image here")}},Eg.sketch({dom:{tag:"button",innerHtml:n.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[c.asSpec()],action:function(t){c.get(t).element().dom().click()},buttonBehaviours:ga([Ab.config({})])})]}]}}}});return eb(t,s,["tox-form__group--stretched"])},zw=Oo("alloy-fake-before-tabstop"),Pw=Oo("alloy-fake-after-tabstop"),Lw=function(t){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:t},behaviours:ga([Um.config({ignore:!0}),Ab.config({})])}},jw=function(t,n){ci(t,pn(),{raw:{which:9,shiftKey:n}})},Uw=function(t){return Rh(t,["."+zw,"."+Pw].join(","),Z(!1))},Ww=function(t,n){var e=n.element();vu(e,zw)?jw(t,!0):vu(e,Pw)&&jw(t,!1)},Gw=function(t){return{dom:{tag:"div",classes:["tox-navobj"]},components:[Lw([zw]),t,Lw([Pw])],behaviours:ga([Bw(1)])}},Xw=!(qn.detect().browser.isIE()||qn.detect().browser.isEdge()),Yw=function(t,n){var o,r,e=Xw&&t.sandboxed,i=To({},t.label.map(function(t){return{title:t}}).getOr({}),e?{sandbox:"allow-scripts allow-same-origin"}:{}),u=(o=e,r=nn(""),{getValue:function(){return r.get()},setValue:function(t,n){if(o)ro(t.element(),"src","data:text/html;charset=utf-8,"+encodeURIComponent(n));else{ro(t.element(),"src","javascript:''");var e=t.element().dom().contentWindow.document;e.open(),e.write(n),e.close()}r.set(n)}}),a=t.label.map(function(t){return ub(t,n)}),c=yv.parts().field({factory:{sketch:function(t){return Gw({uid:t.uid,dom:{tag:"iframe",attributes:i},behaviours:ga([Ab.config({}),Um.config({}),Vw(tt.none(),u.getValue,u.setValue)])})}}});return eb(a,c,["tox-form__group--stretched"])},qw={create:e,clone:function JD(t){var n;return r(n=e(t.width,t.height)).drawImage(t,0,0),n},resize:i,get2dContext:r,get3dContext:function $D(t){var n=null;try{n=t.getContext("webgl")||t.getContext("experimental-webgl")}catch(M){}return n||(n=null),n}},Kw={getWidth:function QD(t){return t.naturalWidth||t.width},getHeight:function ZD(t){return t.naturalHeight||t.height}},Jw=window.Promise?window.Promise:function(){function c(t,n){return function(){t.apply(n,arguments)}}function i(e){var o=this;null!==this._state?t(function(){var t=o._state?e.onFulfilled:e.onRejected;if(null!==t){var n;try{n=t(o._value)}catch(f){return void e.reject(f)}e.resolve(n)}else(o._state?e.resolve:e.reject)(o._value)}):this._deferreds.push(e)}function r(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if("function"==typeof n)return void a(c(n,t),c(r,this),c(e,this))}this._state=!0,this._value=t,o.call(this)}catch(f){e.call(this,f)}}function e(t){this._state=!1,this._value=t,o.call(this)}function o(){for(var t=0,n=this._deferreds.length;t<n;t++)i.call(this,this._deferreds[t]);this._deferreds=null}function u(t,n,e,o){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.resolve=e,this.reject=o}function a(t,n,e){var o=!1;try{t(function(t){o||(o=!0,n(t))},function(t){o||(o=!0,e(t))})}catch(r){if(o)return;o=!0,e(r)}}var s=function(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],a(t,c(r,this),c(e,this))},t=s.immediateFn||"function"==typeof window.setImmediate&&window.setImmediate||function(t){b.setTimeout(t,1)},f=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};return s.prototype["catch"]=function(t){return this.then(null,t)},s.prototype.then=function(e,o){var r=this;return new s(function(t,n){i.call(r,new u(e,o,t,n))})},s.all=function(t){var a=Array.prototype.slice.call(1===arguments.length&&f(t)?arguments[0]:arguments);return new s(function(o,r){function i(n,t){try{if(t&&("object"==typeof t||"function"==typeof t)){var e=t.then;if("function"==typeof e)return void e.call(t,function(t){i(n,t)},r)}a[n]=t,0==--u&&o(a)}catch(c){r(c)}}if(0===a.length)return o([]);for(var u=a.length,t=0;t<a.length;t++)i(t,a[t])})},s.resolve=function(n){return n&&"object"==typeof n&&n.constructor===s?n:new s(function(t){t(n)})},s.reject=function(e){return new s(function(t,n){n(e)})},s.race=function(r){return new s(function(t,n){for(var e=0,o=r.length;e<o;e++)r[e].then(t,n)})},s}(),$w={atob:function(t){return Te.getOrDie("atob")(t)},requestAnimationFrame:function(t){Te.getOrDie("requestAnimationFrame")(t)}},Qw={blobToImage:a,imageToBlob:function tA(t){var n=t.src;return 0===n.indexOf("data:")?d(n):f(n)},blobToArrayBuffer:function nA(e){return new Jw(function(t){var n=u();n.onloadend=function(){t(n.result)},n.readAsArrayBuffer(e)})},blobToDataUri:m,blobToBase64:function eA(t){return m(t).then(function(t){return t.split(",")[1]})},dataUriToBlobSync:l,canvasToBlob:function oA(t,e,o){return e=e||"image/png",b.HTMLCanvasElement.prototype.toBlob?new Jw(function(n){t.toBlob(function(t){n(t)},e,o)}):d(t.toDataURL(e,o))},canvasToDataURL:function rA(t,n,e){return n=n||"image/png",t.then(function(t){return t.toDataURL(n,e)})},blobToCanvas:function iA(t){return a(t).then(function(t){var n;return function M(n){b.URL.revokeObjectURL(n.src)}(t),n=qw.create(Kw.getWidth(t),Kw.getHeight(t)),qw.get2dContext(n).drawImage(t,0,0),n})},uriToBlob:function uA(t ){return 0===t.indexOf("blob:")?f(t):0===t.indexOf("data:")?d(t):null}},Zw={fromBlob:p,fromCanvas:function aA(n,t){return Qw.canvasToBlob(n,t).then(function(t){return g(Jw.resolve(n),t,n.toDataURL())})},fromImage:function cA(t){return Qw.imageToBlob(t).then(function(t){return p(t)})},fromBlobAndUrlSync:function(t,n){return g(Qw.blobToCanvas(t),t,n)}},tS=function(t){return Zw.fromBlob(t)},nS=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],eS={identity:function sA(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]},adjust:S,multiply:w,adjustContrast:function fA(t,n){var e;return n=x(n,-1,1),w(t,[(e=(n*=100)<0?127+n/100*127:127*(e=0==(e=n%1)?nS[n]:nS[Math.floor(n)]*(1-e)+nS[Math.floor(n)+1]*e)+127)/127,0,0,0,.5*(127-e),0,e/127,0,0,.5*(127-e),0,0,e/127,0,.5*(127-e),0,0,0,1,0,0,0,0,0,1])},adjustBrightness:function lA(t,n){return w(t,[1,0,0,0,n=x(255*n,-255,255),0,1,0,0,n,0,0,1,0,n,0,0,0,1,0,0,0,0,0,1])},adjustSaturation:function dA(t,n){var e;return w(t,[.3086*(1-(e=1+(0<(n=x(n,-1,1))?3*n:n)))+e,.6094*(1-e),.082*(1-e),0,0,.3086*(1-e),.6094*(1-e)+e,.082*(1-e),0,0,.3086*(1-e),.6094*(1-e),.082*(1-e)+e,0,0,0,0,0,1,0,0,0,0,0,1])},adjustHue:function mA(t,n){var e,o;return n=x(n,-180,180)/180*Math.PI,w(t,[.213+.787*(e=Math.cos(n))+-.213*(o=Math.sin(n)),.715+-.715*e+-.715*o,.072+-.072*e+.928*o,0,0,.213+-.213*e+.143*o,.715+e*(1-.715)+.14*o,.072+-.072*e+-.283*o,0,0,.213+-.213*e+-.787*o,.715+-.715*e+.715*o,.072+.928*e+.072*o,0,0,0,0,0,1,0,0,0,0,0,1])},adjustColors:function gA(t,n,e,o){return w(t,[n=x(n,0,2),0,0,0,0,0,e=x(e,0,2),0,0,0,0,0,o=x(o,0,2),0,0,0,0,0,1,0,0,0,0,0,1])},adjustSepia:function pA(t,n){return w(t,S([.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0,0,0,0,0,1],n=x(n,0,1)))},adjustGrayscale:function hA(t,n){return w(t,S([.33,.34,.33,0,0,.33,.34,.33,0,0,.33,.34,.33,0,0,0,0,0,1,0,0,0,0,0,1],n=x(n,0,1)))}},oS={invert:function vA(n){return function(t){return C(t,n)}}([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0]),brightness:E(eS.adjustBrightness),hue:E(eS.adjustHue),saturate:E(eS.adjustSaturation),contrast:E(eS.adjustContrast),grayscale:E(eS.adjustGrayscale),sepia:E(eS.adjustSepia),colorize:function(t,n,e,o){return C(t,eS.adjustColors(eS.identity(),n,e,o))},sharpen:T([0,-1,0,-1,5,-1,0,-1,0]),emboss:T([-2,-1,0,-1,1,1,0,1,2]),gamma:O(function(t,n){return 255*Math.pow(t/255,1-n)}),exposure:O(function(t,n){return 255*(1-Math.exp(-t/255*n))}),colorFilter:C,convoluteFilter:k},rS={scale:function bA(t,n,e){var o=Kw.getWidth(t),r=Kw.getHeight(t),i=n/o,u=e/r,a=!1;(i<.5||2<i)&&(i=i<.5?.5:2,a=!0),(u<.5||2<u)&&(u=u<.5?.5:2,a=!0);var c=function s(u,a,c){return new Jw(function(t){var n=Kw.getWidth(u),e=Kw.getHeight(u),o=Math.floor(n*a),r=Math.floor(e*c),i=qw.create(o,r);qw.get2dContext(i).drawImage(u,0,0,n,e,0,0,o,r),t(i)})}(t,i,u);return a?c.then(function(t){return bA(t,n,e)}):c}},iS={rotate:function yA(n,e){return n.toCanvas().then(function(t){return function a(t,n,e){var o=qw.create(t.width,t.height),r=qw.get2dContext(o),i=0,u=0;return 90!=(e=e<0?360+e:e)&&270!=e||qw.resize(o,o.height,o.width),90!=e&&180!=e||(i=o.width),270!=e&&180!=e||(u=o.height),r.translate(i,u),r.rotate(e*Math.PI/180),r.drawImage(t,0,0),Zw.fromCanvas(o,n)}(t,n.getType(),e)})},flip:function xA(n,e){return n.toCanvas().then(function(t){return function i(t,n,e){var o=qw.create(t.width,t.height),r=qw.get2dContext(o);return"v"==e?(r.scale(1,-1),r.drawImage(t,0,-o.height)):(r.scale(-1,1),r.drawImage(t,-o.width,0)),Zw.fromCanvas(o,n)}(t,n.getType(),e)})},crop:function wA(n,e,o,r,i){return n.toCanvas().then(function(t){return function a(t,n,e,o,r,i){var u=qw.create(r,i);return qw.get2dContext(u).drawImage(t,-e,-o),Zw.fromCanvas(u,n)}(t,n.getType(),e,o,r,i)})},resize:function SA(n,e,o){return n.toCanvas().then(function(t){return rS.scale(t,e,o).then(function(t){return Zw.fromCanvas(t,n.getType())})})}},uS=(function(){function t(t){this.littleEndian=!1,this._dv=new DataView(t)}t.prototype.readByteAt=function(t){return this._dv.getUint8(t)},t.prototype.read=function(t,n){if(t+n>this.length())return null;for(var e=this.littleEndian?0:-8*(n-1),o=0,r=0;o<n;o++)r|=this.readByteAt(t+o)<<Math.abs(e+8*o);return r},t.prototype.BYTE=function(t){return this.read(t,1)},t.prototype.SHORT=function(t){return this.read(t,2)},t.prototype.LONG=function(t){return this.read(t,4)},t.prototype.SLONG=function(t){var n=this.read(t,4);return 2147483647<n?n-4294967296:n},t.prototype.CHAR=function(t){return String.fromCharCode(this.read(t,1))},t.prototype.STRING=function(t,n){return this.asArray("CHAR",t,n).join("")},t.prototype.SEGMENT=function(t,n){var e=this._dv.buffer;switch(arguments.length){case 2:return e.slice(t,t+n);case 1:return e.slice(t);default:return e}},t.prototype.asArray=function(t,n,e){for(var o=[],r=0;r<e;r++)o[r]=this[t](n+r);return o},t.prototype.length=function(){return this._dv?this._dv.byteLength:0}}(),function(t,n){return iS.rotate(t,n)}),aS=function(t){return oS.invert(t)},cS=function(t){return oS.sharpen(t)},sS=function(t,n){return oS.brightness(t,n)},fS=function(t,n){return oS.contrast(t,n)},lS=function(t,n,e,o){return oS.colorize(t,n,e,o)},dS=function(t,n){return oS.gamma(t,n)},mS=function(t,n){return iS.flip(t,n)},gS=function(t,n,e,o,r){return iS.crop(t,n,e,o,r)},pS=function(t,n,e){return iS.resize(t,n,e)},hS=uS,vS=function(t,n){return To({dom:{tag:"span",innerHtml:t,classes:["tox-icon","tox-tbtn__icon-wrap"]}},n)},bS=function(t,n){return vS(Dg(t,n),{})},yS=function(t,n){return vS(Dg(t,n),{behaviours:ga([Om.config({})])})},xS=function(t,n,e){return{dom:{tag:"span",innerHtml:e.translate(t),classes:[n+"__select-label"]},behaviours:ga([Om.config({})])}},wS=function(t,n,e,o,r){void 0===e&&(e=[]);var i=n.fold(function(){return{}},function(t){return{action:t}}),u=To({buttonBehaviours:ga([Pp(t.disabled),Ab.config({}),sg("button press",[Si("click"),Si("mousedown")])].concat(e)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},i),a=Gt(u,{dom:o});return Gt(a,{components:r})},SS=function(t,n,e,o){void 0===o&&(o=[]);var r={tag:"button",classes:["tox-tbtn"],attributes:t.tooltip.map(function(t){return{"aria-label":e.translate(t),title:e.translate(t)}}).getOr({})},i=t.icon.map(function(t){return bS(t,e.icons)}),u=Kp([i]);return wS(t,n,o,r,u)},CS=function(t,n,e,o){void 0===o&&(o=[]);var r=SS(t,tt.some(n),e,o);return Eg.sketch(r)},kS=function(t,n,e,o){void 0===o&&(o=[]);var r=e.translate(t.text),i=t.icon?t.icon.map(function(t){return bS(t,e.icons)}):tt.none(),u=i.isSome()?Kp([i]):[],a=i.isSome()?{}:{innerHtml:r},c=(t.primary?["tox-button"]:["tox-button","tox-button--secondary"]).concat(i.isSome()?["tox-button--icon"]:[]);return function(t,n,e,o,r){void 0===e&&(e=[]);var i=wS(t,tt.some(n),e,o,r);return Eg.sketch(i)}(t,n,o,To({tag:"button",classes:c},a,{attributes:{title:r}}),u)},OS=function(n,e){return function(t){"custom"===e?ci(t,lv,{name:n,value:{}}):"submit"===e?ai(t,dv):"cancel"===e?ai(t,fv):b.console.error("Unknown button type: ",e)}},ES=function(t,n,e){var o=OS(t.name,n);return kS(t,o,e,[])},TS=Z([Kr("field1Name","field1"),Kr("field2Name","field2"),ra("onLockedChange"),ta(["lockClass"]),Kr("locked",!1),ff("coupledFieldBehaviours",[gl,Nm])]),BS=function(t,i){return Vf({factory:yv,name:t,overrides:function(r){return{fieldBehaviours:ga([sg("coupled-input-behaviour",[Ci(vn(),function(e){var t,n,o;(t=e,n=r,o=i,Kf(t,n,o).bind(gl.getCurrent)).each(function(n){Kf(e,r,"lock").each(function(t){eg.isOn(t)&&r.onLockedChange(e,n,t)})})})])])}}})},DS=Z([BS("field1","field2"),BS("field2","field1"),Vf({factory:Eg,schema:[Rr("dom")],name:"lock",overrides:function(t){return{buttonBehaviours:ga([eg.config({selected:t.locked,toggleClass:t.markers.lockClass,aria:{mode:"pressed"}})])}}})]),AS=fl({name:"FormCoupledInputs",configFields:TS(),partFields:DS(),factory:function(o,t){return{uid:o.uid,dom:o.dom,components:t,behaviours:lf(o.coupledFieldBehaviours,[gl.config({find:tt.some}),Nm.config({store:{mode:"manual",getValue:function(t){var n,e=tl(t,o,["field1","field2"]);return(n={})[o.field1Name]=Nm.getValue(e.field1()),n[o.field2Name]=Nm.getValue(e.field2()),n},setValue:function(t,n){var e=tl(t,o,["field1","field2"]);tn(n,o.field1Name)&&Nm.setValue(e.field1(),n[o.field1Name]),tn(n,o.field2Name)&&Nm.setValue(e.field2(),n[o.field2Name])}}})]),apis:{getField1:function(t){return Kf(t,o,"field1")},getField2:function(t){return Kf(t,o,"field2")},getLock:function(t){return Kf(t,o,"lock")}}}},apis:{getField1:function(t,n){return t.getField1(n)},getField2:function(t,n){return t.getField2(n)},getLock:function(t,n){return t.getLock(n)}}}),_S=function(t){var n=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(t);if(null===n)return Lt.error(t);var e=parseFloat(n[1]),o=n[2];return Lt.value({value:e,unit:o})},MS=function(t,n){var e={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,"in":1},o=function(t){return Object.prototype.hasOwnProperty.call(e,t)};return t.unit===n?tt.some(t.value):o(t.unit)&&o(n)?e[t.unit]===e[n]?tt.some(t.value):tt.some(t.value/e[t.unit]*e[n]):tt.none()},FS=function(){return tt.none()},IS=function(t,n){return function(t,n){for(var e=[],o=0;o<t.length;o++){var r=t[o];if(!r.isSome())return tt.none();e.push(r.getOrDie())}return tt.some(n.apply(null,e))}([_S(t).toOption(),_S(n).toOption()],function(t,o){return MS(t,o.unit).map(function(t){return o.value/t}).map(function(t){return n=t,e=o.unit,function(t){return MS(t,e).map(function(t){return{value:t*n,unit:e}})};var n,e}).getOr(FS)}).getOr(FS)},VS=function(e,n){var a=FS,o=Oo("ratio-event"),t=AS.parts().lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:n.translate(e.label.getOr("Constrain proportions"))}},components:[{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__lock"],innerHtml:Dg("lock",n.icons)}},{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__unlock"],innerHtml:Dg("unlock",n.icons)}}],buttonBehaviours:ga([Ab.config({})])}),r=function(t){return{dom:{tag:"div",classes:["tox-form__group"]},components:t}},i=function(n){return yv.parts().field({factory:mb,inputClasses:["tox-textfield"],inputBehaviours:ga([Ab.config({}),sg("size-input-events",[Ci(mn(),function(t){ci(t,o,{isField1:n})}),Ci(bn(),function(t){ci(t,cv,{name:e.name})})])]),selectOnFocus:!1})},u=function(t){return{dom:{tag:"label",classes:["tox-label"],innerHtml:n.translate(t)}}},c=AS.parts().field1(r([yv.parts().label(u("Width")),i(!0)])),s=AS.parts().field2(r([yv.parts().label(u("Height")),i(!1)]));return AS.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[c,s,r([u("&nbsp;"),t])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(t,i){_S(Nm.getValue(t)).each(function(t){a(t).each(function(t){var n,e,o,r;Nm.setValue(i,(o={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,"in":4,"%":4},-1!==(r=(n=t).value.toFixed((e=n.unit)in o?o[e]:1)).indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+n.unit))})})},coupledFieldBehaviours:ga([Np.config({}),sg("size-input-events2",[Ci(o,function(t,n){var e=n.event().isField1(),o=e?AS.getField1(t):AS.getField2(t),r=e?AS.getField2(t):AS.getField1(t),i=o.map(Nm.getValue).getOr(""),u=r.map(Nm.getValue).getOr("");a=IS(i,u)})])])})},RS={undo:Z(Oo("undo")),redo:Z(Oo("redo")),zoom:Z(Oo("zoom")),back:Z(Oo("back")),apply:Z(Oo("apply")),swap:Z(Oo("swap")),transform:Z(Oo("transform")),tempTransform:Z(Oo("temp-transform")),transformApply:Z(Oo("transform-apply"))},HS=Z("save-state"),NS=Z("disable"),zS=Z("enable"),PS={formActionEvent:lv,saveState:HS,disable:NS,enable:zS},LS=function(r,c){var t=function(t,n,e,o){return Tg(kS({name:t,text:t,disabled:e,primary:o},n,c))},n=function(t,n,e,o){return Tg(CS({name:t,icon:tt.some(t),tooltip:tt.some(n),disabled:o},e,c))},u=function(t,e){t.map(function(t){var n=t.get(e);n.hasConfigured(Np)&&Np.disable(n)})},a=function(t,e){t.map(function(t){var n=t.get(e);n.hasConfigured(Np)&&Np.enable(n)})},s={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},e=tt.none(),o=Q,i=function(t,n,e){ci(t,n,e)},f=function(t){return ai(t,PS.disable())},l=function(t){return ai(t,PS.enable())},d=function(t,n){f(t),i(t,RS.transform(),{transform:n}),l(t)},m=function(t){return function(){$.getOpt(t).each(function(t){Om.set(t,[K])})}},g=function(t,n){f(t),i(t,RS.transformApply(),{transform:n,swap:m(t)}),l(t)},p=function(){return t("Back",function(t){return i(t,RS.back(),{swap:m(t)})},!1,!1)},h=function(){return Tg({dom:{tag:"div",classes:["tox-spacer"]},behaviours:ga([Np.config({})])})},v=function(){return t("Apply",function(t){return i(t,RS.apply(),{swap:m(t)})},!0,!0)},b=[p(),h(),t("Apply",function(t){g(t,function(t){var n=r.getRect();return gS(t,n.x,n.y,n.w,n.h)}),r.hideCrop()},!1,!0)],y=Jh.sketch({dom:s,components:b.map(function(t){return t.asSpec()}),containerBehaviours:ga([sg("image-tools-crop-buttons-events",[Ci(PS.disable(),function(t){u(b,t)}),Ci(PS.enable(),function(t){a(b,t)})])])}),x=Tg(VS({name:"size",label:e,type:"sizeinput",constrain:!0},c)),w=[p(),h(),x,h(),t("Apply",function(a){x.getOpt(a).each(function(t){var n,e,o=Nm.getValue(t),r=parseInt(o.width,10),i=parseInt(o.height,10),u=(n=r,e=i,function(t){return pS(t,n,e)});g(a,u)})},!1,!0)],S=Jh.sketch({dom:s,components:w.map(function(t){return t.asSpec()}),containerBehaviours:ga([sg("image-tools-resize-buttons-events",[Ci(PS.disable(),function(t){u(w,t)}),Ci(PS.enable(),function(t){a(w,t)})])])}),C=function(n,e){return function(t){return n(t,e)}},k=C(mS,"h"),O=C(mS,"v"),E=C(hS,-90),T=C(hS,90),B=function(t,n){var e,o;o=n,f(e=t),i(e,RS.tempTransform(),{transform:o}),l(e)},D=[p(),h(),n("flip-horizontally","Flip horizontally",function(t){B(t,k)},!1),n("flip-vertically","Flip vertically",function(t){B(t,O)},!1),n("rotate-left","Rotate counterclockwise",function(t){B(t,E)},!1),n("rotate-right","Rotate clockwise",function(t){B(t,T)},!1),h(),v()],A=Jh.sketch({dom:s,components:D.map(function(t){return t.asSpec()}),containerBehaviours:ga([sg("image-tools-fliprotate-buttons-events",[Ci(PS.disable(),function(t){u(D,t)}),Ci(PS.enable(),function(t){a(D,t)})])])}),_=function(t,n,e,o,r){var i=sw.parts().label({dom:{tag:"label",classes:["tox-label"],innerHtml:c.translate(t)}}),u=sw.parts().spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),a=sw.parts().thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Tg(sw.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:e,maxX:r,getInitialValue:Z({x:Z(o)})},components:[i,u,a],sliderBehaviours:ga([Um.config({})]),onChoose:n}))},M=function(t,n,e,o,r){return[p(),(i=t,u=n,a=e,c=o,s=r,_(i,function(t,n,e){var o=C(u,e.x()/100);d(t,o)},a,c,s)),v()];var i,u,a,c,s},F=function(t,n,e,o,r){var i=M(t,n,e,o,r);return Jh.sketch({dom:s,components:i.map(function(t){return t.asSpec()}),containerBehaviours:ga([sg("image-tools-filter-panel-buttons-events",[Ci(PS.disable(),function(t){u(i,t)}),Ci(PS.enable(),function(t){a(i,t)})])])})},I=[p(),h(),v()],V=Jh.sketch({dom:s,components:I.map(function(t){return t.asSpec()})}),R=F("Brightness",sS,-100,0,100),H=F("Contrast",fS,-100,0,100),N=F("Gamma",dS,-100,0,100),z=function(t){return _(t,function(f){var t=P.getOpt(f),n=j.getOpt(f),e=L.getOpt(f);t.each(function(s){n.each(function(c){e.each(function(t){var n,e,o,r=Nm.getValue(s).x()/100,i=Nm.getValue(t).x()/100,u=Nm.getValue(c).x()/100,a=(n=r,e=i,o=u,function(t){return lS(t,n,e,o)});d(f,a)})})})},0,100,200)},P=z("R"),L=z("G"),j=z("B"),U=[p(),P,L,j,v()],W=Jh.sketch({dom:s,components:U.map(function(t){return t.asSpec()})}),G=function(n,e,o){return function(t){i(t,RS.swap(),{transform:e,swap:function(){$.getOpt(t).each(function(t){Om.set(t,[n]),o(t)})}})}},X=tt.some(cS),Y=tt.some(aS),q=[n("crop","Crop",G(y,e,function(){r.showCrop()}),!1),n("resize","Resize",G(S,e,function(t){x.getOpt(t).each(function(t){var n=r.getMeasurements(),e=n.width,o=n.height;Nm.setValue(t,{width:e,height:o})})}),!1),n("orientation","Orientation",G(A,e,o),!1),n("brightness","Brightness",G(R,e,o),!1),n("sharpen","Sharpen",G(V,X,o),!1),n("contrast","Contrast",G(H,e,o),!1),n("color-levels","Color levels",G(W,e,o),!1),n("gamma","Gamma",G(N,e,o),!1),n("invert","Invert",G(V,Y,o),!1)],K=Jh.sketch({dom:s,components:q.map(function(t){return t.asSpec()})}),J=Jh.sketch({dom:{tag:"div"},components:[K],containerBehaviours:ga([Om.config({})])}),$=Tg(J);return{memContainer:$,getApplyButton:function(t){return $.getOpt(t).map(function(t){var n=t.components()[0];return n.components()[n.components().length-1]})}}},jS=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),US=tinymce.util.Tools.resolve("tinymce.geom.Rect"),WS=tinymce.util.Tools.resolve("tinymce.util.Observable"),GS=tinymce.util.Tools.resolve("tinymce.util.Tools"),XS=tinymce.util.Tools.resolve("tinymce.util.VK"),YS=0,qS=function(n){var f=Tg({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),l=nn(1),d=nn(tt.none()),m=nn({x:0,y:0,w:1,h:1}),c=nn({x:0,y:0,w:1,h:1}),s=function(t,s){g.getOpt(t).each(function(t){var e=l.get(),o=_a(t.element()),r=Ia(t.element()),i=s.dom().naturalWidth*e,u=s.dom().naturalHeight*e,a=Math.max(0,o/2-i/2),c=Math.max(0,r/2-u/2),n={left:a.toString()+"px",top:c.toString()+"px",width:i.toString()+"px",height:u.toString()+"px",position:"absolute"};ku(s,n),f.getOpt(t).each(function(t){ku(t.element(),n)}),d.get().each(function(t){var n=m.get();t.setRect({x:n.x*e+a,y:n.y*e+c,w:n.w*e,h:n.h*e}),t.setClampRect({x:a,y:c,w:i,h:u}),t.setViewPortRect({x:0,y:0,w:o,h:r})})})},e=function(t,n){var e,a=xe.fromTag("img");return ro(a,"src",n),(e=a.dom(),new Hg(function(t){var n=function(){e.removeEventListener("load",n),t(e)};e.complete?t(e):e.addEventListener("load",n)})).then(function(){return g.getOpt(t).map(function(t){var n=Pu({element:a});Om.replaceAt(t,1,tt.some(n));var e=c.get(),o={x:0,y:0,w:a.dom().naturalWidth,h:a.dom().naturalHeight};c.set(o);var r,u,i=US.inflate(o,-20,-20);return m.set(i),e.w===o.w&&e.h===o.h||(r=t,u=a,g.getOpt(r).each(function(t){var n=_a(t.element()),e=Ia(t.element()),o=u.dom().naturalWidth,r=u.dom().naturalHeight,i=Math.min(n/o,e/r);1<=i?l.set(1):l.set(i)})),s(t,a),a})})},t=Jh.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[f.asSpec(),{dom:{tag:"img",attributes:{src:n}}},{dom:{tag:"div"},behaviours:ga([sg("image-panel-crop-events",[_i(function(t){g.getOpt(t).each(function(t){var n=function S(s,e,f,o,r){function l(t,n){return{x:n.x-t.x,y:n.y-t.y,w:n.w,h:n.h}}function u(t,n,e,o){var r,i,u,a,c;r=n.x,i=n.y,u=n.w,a=n.h,r+=e*t.deltaX,i+=o*t.deltaY,(u+=e*t.deltaW)<20&&(u=20),(a+=o*t.deltaH)<20&&(a=20),c=s=US.clamp({x:r,y:i,w:u,h:a},f,"move"===t.name),c=l(f,c),m.fire("updateRect",{rect:c}),d(c)}function n(n){function t(t,n){n.h<0&&(n.h=0),n.w<0&&(n.w=0),jS("#"+h+"-"+t,o).css({left:n.x,top:n.y,width:n.w,height:n.h})}GS.each(a,function(t){jS("#"+h+"-"+t.name,o).css({left:n.w*t.xMul+n.x,top:n.h*t.yMul+n.y})}),t("top",{x:e.x,y:e.y,w:e.w,h:n.y-e.y}),t("right",{x:n.x+n.w,y:n.y,w:e.w-n.x-n.w+e.x,h:n.h}),t("bottom",{x:e.x,y:n.y+n.h,w:e.w,h:e.h-n.y-n.h+e.y}),t("left",{x:e.x,y:n.y,w:n.x-e.x,h:n.h}),t("move",n)}function i(t){n(s=t)}function d(t){i(function e(t,n){return{x:n.x+t.x,y:n.y+t.y,w:n.w,h:n.h}}(f,t))}var m,a,c,g,p="tox-",h="tox-crid-"+YS++;return a=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],g=["top","right","bottom","left"],function v(){jS('<div id="'+h+'" class="'+p+'croprect-container" role="grid" aria-dropeffect="execute">').appendTo(o),GS.each(g,function(t){jS("#"+h,o).append('<div id="'+h+"-"+t+'"class="'+p+'croprect-block" style="display: none" data-mce-bogus="all">')}),GS.each(a,function(t){jS("#"+h,o).append('<div id="'+h+"-"+t.name+'" class="'+p+"croprect-handle "+p+"croprect-handle-"+t.name+'"style="display: none" data-mce-bogus="all" role="gridcell" tabindex="-1" aria-label="'+t.label+'" aria-grabbed="false" title="'+t.label+'">')}),c=GS.map(a,function t(n){var e;return new D(h,{document:o.ownerDocument,handle:h+"-"+n.name,start:function(){e=s},drag:function(t){u(n,e,t.deltaX,t.deltaY)}})}),n(s),jS(o).on("focusin focusout",function(t){jS(t.target).attr("aria-grabbed","focus"===t.type)}),jS(o).on("keydown",function(n){function t(t,n,e,o,r){t.stopPropagation(),t.preventDefault(),u(i,e,o,r)}var i;switch(GS.each(a,function(t){if(n.target.id===h+"-"+t.name)return i=t,!1}),n.keyCode){case XS.LEFT:t(n,0,s,-10,0);break;case XS.RIGHT:t(n,0,s,10,0);break;case XS.UP:t(n,0,s,0,-10);break;case XS.DOWN:t(n,0,s,0,10);break;case XS.ENTER:case XS.SPACEBAR:n.preventDefault(),r()}})}(),m=GS.extend({toggleVisibility:function b(t){var n;n=GS.map(a,function(t){return"#"+h+"-"+t.name}).concat(GS.map(g,function(t){return"#"+h+"-"+t})).join(","),t?jS(n,o).show():jS(n,o).hide()},setClampRect:function y(t){f=t,n(s)},setRect:i,getInnerRect:function t(){return l(f,s)},setInnerRect:d,setViewPortRect:function x(t){e=t,n(s)},destroy:function w(){GS.each(c,function(t){t.destroy()}),c=[]}},WS)}({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},t.element().dom(),function(){});n.toggleVisibility(!1),n.on("updateRect",function(t){var n=t.rect,e=l.get(),o={x:Math.round(n.x/e),y:Math.round(n.y/e),w:Math.round(n.w/e),h:Math.round(n.h/e)};m.set(o)}),d.set(tt.some(n))})})])])}],containerBehaviours:ga([Om.config({}),sg("image-panel-events",[_i(function(t){e(t,n)})])])}),g=Tg(t);return{memContainer:g,updateSrc:e,zoom:function(t,n){var e=l.get(),o=0<n?Math.min(2,e+.1):Math.max(.1,e-.1);l.set(o),g.getOpt(t).each(function(t){var n=t.components()[1].element();s(t,n)})},showCrop:function(){d.get().each(function(t){t.toggleVisibility(!0)})},hideCrop:function(){d.get().each(function(t){t.toggleVisibility(!1)})},getRect:function(){return m.get()},getMeasurements:function(){var t=c.get();return{width:t.w,height:t.h}}}},KS=function(t,n,e,o,r){return CS({name:t,icon:tt.some(n),disabled:e,tooltip:tt.some(t)},o,r)},JS=function(t,n){n?Np.enable(t):Np.disable(t)},$S=function(){return Te.getOrDie("URL")},QS=function(t){return $S().createObjectURL(t)},ZS=function(t){$S().revokeObjectURL(t)},tC=function(t){var n=nn(t),e=nn(tt.none()),o=function s(){function t(){return 0<o}function n(){return-1!==o&&o<e.length-1}var e=[],o=-1;return{data:e,add:function r(t){var n;return n=e.splice(++o),e.push(t),{state:t,removed:n}},undo:function i(){if(t())return e[--o]},redo:function u(){if(n())return e[++o]},canUndo:t,canRedo:n}}();o.add(t);var r=function(t){n.set(t)},i=function(t){return{blob:t,url:QS(t)}},u=function(t){ZS(t.url)},a=function(){e.get().each(u),e.set(tt.none())},c=function(t){var n,e=i(t);return r(e),n=o.add(e).removed,GS.each(n,u),e.url};return{getBlobState:function(){return n.get()},setBlobState:r,addBlobState:c,getTempState:function(){return e.get().fold(function(){return n.get()},function(t){return t})},updateTempState:function(t){var n=i(t);return a(),e.set(tt.some(n)),n.url},addTempState:function(t){var n=i(t);return e.set(tt.some(n)),n.url},applyTempState:function(n){return e.get().fold(function(){},function(t){c(t.blob),n()})},destroyTempState:a,undo:function(){var t=o.undo();return r(t),t.url},redo:function(){var t=o.redo();return r(t),t.url},getHistoryStates:function(){return{undoEnabled:o.canUndo(),redoEnabled:o.canRedo()}}}},nC=function(t,n){var e,o,r,u=tC(t.currentState),i=function(t){var n=u.getHistoryStates();p.updateButtonUndoStates(t,n.undoEnabled,n.redoEnabled),ci(t,PS.formActionEvent,{name:PS.saveState(),value:n.undoEnabled})},a=function(t){return t.toBlob()},c=function(t){ci(t,PS.formActionEvent,{name:PS.disable(),value:{}})},s=function(t){h.getApplyButton(t).each(function(t){Np.enable(t)}),ci(t,PS.formActionEvent,{name:PS.enable(),value:{}})},f=function(t,n){return c(t),g.updateSrc(t,n)},l=function(n,t,e,o,r){return c(n),tS(t).then(e).then(a).then(o).then(function(t){return f(n,t).then(function(t){return i(n),r(),s(n),t})})["catch"](function(t){b.console.log(t),s(n)})},d=function(t,n,e){var o=u.getBlobState().blob;l(t,o,n,function(t){return u.updateTempState(t)},e)},m=function(t){var n=u.getBlobState().url;return u.destroyTempState(),i(t),n},g=qS(t.currentState.url),p=(o=Tg(KS("Undo","undo",!0,function(t){ci(t,RS.undo(),{direction:1})},e=n)),r=Tg(KS("Redo","redo",!0,function(t){ci(t,RS.redo(),{direction:1})},e)),{container:Jh.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[o.asSpec(),r.asSpec(),KS("Zoom in","zoom-in",!1,function(t){ci(t,RS.zoom(),{direction:1})},e),KS("Zoom out","zoom-out",!1,function(t){ci(t,RS.zoom(),{direction:-1})},e)]}),updateButtonUndoStates:function(t,n,e){o.getOpt(t).each(function(t){JS(t,n)}),r.getOpt(t).each(function(t){JS(t,e)})}}),h=LS(g,n);return{dom:{tag:"div",attributes:{role:"presentation"}},components:[h.memContainer.asSpec(),g.memContainer.asSpec(),p.container],behaviours:ga([Nm.config({store:{mode:"manual",getValue:function(){return u.getBlobState()}}}),sg("image-tools-events",[Ci(RS.undo(),function(t){var n=u.undo();f(t,n).then(function(){s(t),i(t)})}),Ci(RS.redo(),function(t){var n=u.redo();f(t,n).then(function(){s(t),i(t)})}),Ci(RS.zoom(),function(t,n){var e=n.event().direction();g.zoom(t,e)}),Ci(RS.back(),function(t,n){var e,o;o=m(e=t),f(e,o).then(function(){s(e)}),n.event().swap()(),g.hideCrop()}),Ci(RS.apply(),function(t,n){u.applyTempState(function(){m(t),n.event().swap()()})}),Ci(RS.transform(),function(t,n){return d(t,n.event().transform(),Q)}),Ci(RS.tempTransform(),function(t,n){return e=t,o=n.event().transform(),r=u.getTempState().blob,void l(e,r,o,function(t){return u.addTempState(t)},Q);var e,o,r}),Ci(RS.transformApply(),function(t,n){return e=t,o=n.event().transform(),r=n.event().swap(),i=u.getBlobState().blob,void l(e,i,o,function(t){var n=u.addBlobState(t);return m(e),n},r);var e,o,r,i}),Ci(RS.swap(),function(n,t){var e;e=n,p.updateButtonUndoStates(e,!1,!1);var o=t.event().transform(),r=t.event().swap();o.fold(function(){r()},function(t){d(n,t,r)})})]),Ew()])}},eC=sl({name:"HtmlSelect",configFields:[Rr("options"),af("selectBehaviours",[Um,Nm]),Kr("selectClasses",[]),Kr("selectAttributes",{}),Wr("data")],factory:function(e){var t=ct(e.options,function(t){return{dom:{tag:"option",value:t.value,innerHtml:t.text}}}),n=e.data.map(function(t){return $t("initialValue",t)}).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:t,behaviours:sf(e.selectBehaviours,[Um.config({}),Nm.config({store:To({mode:"manual",getValue:function(t){return _u(t.element())},setValue:function(t,n){mt(e.options,function(t){return t.value===n}).isSome()&&Mu(t.element(),n)}},n)})])}}}),oC=function(n,e){var t=n.label.map(function(t){return ub(t,e)}),o=[xm.config({mode:"execution",useEnter:!0!==n.multiline,useControlEnter:!0===n.multiline,execute:function(t){return ai(t,dv),tt.some(!0)}}),sg("textfield-change",[Ci(vn(),function(t){ci(t,cv,{name:n.name})}),Ci(Qn(),function(t){ci(t,cv,{name:n.name})})]),Ab.config({})],r=n.validation.map(function(o){return Tb.config({getRoot:function(t){return ze(t.element())},invalidClass:"tox-invalid",validator:{validate:function(t){var n=Nm.getValue(t),e=o.validator(n);return _v.pure(!0===e?Lt.value(n):Lt.error(e))},validateOnLoad:o.validateOnLoad}})}).toArray(),i=yv.parts().field({tag:!0===n.multiline?"textarea":"input",inputAttributes:n.placeholder.fold(function(){},function(t){return{placeholder:e.translate(t)}}),inputClasses:[n.classname],inputBehaviours:ga(vt([o,r])),selectOnFocus:!1,factory:mb}),u=n.flex?["tox-form__group--stretched"]:[];return eb(t,i,u)},rC=function(i){return To({},i,{toCached:function(){return rC(i.toCached())},bindFuture:function(n){return rC(i.bind(function(t){return t.fold(function(t){return _v.pure(Lt.error(t))},function(t){return n(t)})}))},bindResult:function(n){return rC(i.map(function(t){return t.bind(n)}))},mapResult:function(n){return rC(i.map(function(t){return t.map(n)}))},mapError:function(n){return rC(i.map(function(t){return t.mapError(n)}))},foldResult:function(n,e){return i.map(function(t){return t.fold(n,e)})},withTimeout:function(t,r){return rC(_v.nu(function(n){var e=!1,o=b.setTimeout(function(){e=!0,n(Lt.error(r()))},t);i.get(function(t){e||(b.clearTimeout(o),n(t))})}))}})},iC=function(t){return rC(_v.nu(t))},uC={type:"separator"},aC=function(t){return{type:"menuitem",value:t.url,text:t.title,meta:{attach:t.attach},onAction:function(){}}},cC=function(t,n){return{type:"menuitem",value:n,text:t,meta:{attach:undefined},onAction:function(){}}},sC=function(t,n){return o=t,e=ft(n,function(t){return t.type===o}),ct(e,aC);var e,o},fC=function(t,n){var e=t.toLowerCase();return ft(n,function(t){var n=t.meta!==undefined&&t.meta.text!==undefined?t.meta.text:t.text;return Ln(n.toLowerCase(),e)||Ln(t.value.toLowerCase(),e)})},lC=function(c,t,s){var n=Nm.getValue(t),f=n.meta.text!==undefined?n.meta.text:n.value;return s.getLinkInformation().fold(function(){return[]},function(t){var n,e,o,r,i,u,a=fC(f,(n=s.getHistory(c),ct(n,function(t){return cC(t,t)})));return"file"===c?(e=[a,fC(f,(u=t,sC("header",u.targets))),fC(f,vt([(i=t,tt.from(i.anchorTop).map(function(t){return cC("<top>",t)}).toArray()),(r=t,sC("anchor",r.targets)),(o=t,tt.from(o.anchorBottom).map(function(t){return cC("<bottom>",t)}).toArray())]))],dt(e,function(t,n){return 0===t.length||0===n.length?t.concat(n):t.concat(uC,n)},[])):a})},dC=function(i,u,o){var t,n=function(t){var n=Nm.getValue(t);o.addToHistory(n.value,i.filetype)},e=yv.parts().field({factory:nb,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],minChars:0,responseTime:0,fetch:function(t){var n=lC(i.filetype,t,o),e=db(n,Yp.BUBBLE_TO_SANDBOX,u.providers);return _v.pure(e)},getHotspot:function(t){return l.getOpt(t)},onSetValue:function(t){t.hasConfigured(Tb)&&Tb.run(t).get(Q)},typeaheadBehaviours:ga(vt([o.getValidationHandler().map(function(o){return Tb.config({getRoot:function(t){return ze(t.element())},invalidClass:"tox-control-wrap--status-invalid",notify:{},validator:{validate:function(n){var e=Nm.getValue(n);return iC(function(t){o({type:i.filetype,url:e.value},function(e){l.getOpt(n).each(function(t){var n=function(t,n,e){(e?gu:hu)(t.element(),n)};n(t,"tox-control-wrap--status-valid","valid"===e.status),n(t,"tox-control-wrap--status-unknown","unknown"===e.status)}),t(("invalid"===e.status?Lt.error:Lt.value)(e.message))})})},validateOnLoad:!1}})}).toArray(),[Ab.config({}),sg("urlinput-events",vt(["file"===i.filetype?[Ci(vn(),function(t){ci(t,cv,{name:i.name})})]:[],[Ci(bn(),function(t){ci(t,cv,{name:i.name}),n(t)}),Ci(Qn(),function(t){ci(t,cv,{name:i.name}),n(t)})]]))]])),eventOrder:(t={},t[vn()]=["streaming","urlinput-events","invalidating"],t),model:{getDisplayText:function(t){return t.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"dog"},lazySink:u.getSink,parts:{menu:mh(0,0,"normal")},onExecute:function(t,n){ci(n,dv,{})},onItemExecute:function(t){n(t),ci(t,cv,{name:i.name})}}),r=i.label.map(function(t){return ub(t,u.providers)}),a=function(t,n,e){return void 0===n&&(n=t),void 0===e&&(e=t),{dom:{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+t],innerHtml:Dg(n,u.providers.icons),attributes:{title:u.providers.translate(e)}}}},c=Tg({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[a("valid","checkmark","valid"),a("unknown","warning"),a("invalid","warning")]}),s=o.getUrlPicker(i.filetype),f=Oo("browser.url.event"),l=Tg({dom:{tag:"div",classes:["tox-control-wrap"]},components:[e,c.asSpec()]});return yv.sketch({dom:ib([]),components:r.toArray().concat([{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:vt([[l.asSpec()],s.map(function(){return t=i.label,n=f,e="tox-browse-url",o="browse",r=u.providers,Eg.sketch({dom:{tag:"button",classes:["tox-tbtn",e],innerHtml:Dg(o,r.icons),attributes:{title:r.translate(t.getOr(""))}},buttonBehaviours:ga([Ab.config({})]),action:function(t){ai(t,n)}});var t, n,e,o,r}).toArray()])}]),fieldBehaviours:ga([sg("url-input-events",[Ci(f,function(o){gl.getCurrent(o).each(function(n){var e=Nm.getValue(n);s.each(function(t){t(e).get(function(t){Nm.setValue(n,t),ci(o,cv,{name:i.name})})})})})])])})},mC=function(u,n){var t,e,o=u.label.map(function(t){return ub(t,n)}),r=function(e){return function(n,t){Xu(t.event().target(),"[data-collection-item-value]").each(function(t){e(n,t,uo(t,"data-collection-item-value"))})}},i=[Ci(dn(),r(function(t,n){Nl(n)})),Ci(oe(),r(function(t,n,e){ci(t,lv,{name:u.name,value:e})})),Ci(mn(),r(function(t,n){Gu(t.element(),"."+hp).each(function(t){hu(t,hp)}),gu(n,hp)})),Ci(gn(),r(function(t){Gu(t.element(),"."+hp).each(function(t){hu(t,hp)})})),Ii(r(function(t,n,e){ci(t,lv,{name:u.name,value:e})}))],a=yv.parts().field({dom:{tag:"div",classes:["tox-collection"].concat(1!==u.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:U},behaviours:ga([Om.config({}),Nm.config({store:{mode:"memory",initialValue:[]},onSetValue:function(o,t){var n,e,r,i;n=o,e=ct(t,function(t){var n,e=1===u.columns?'<div class="tox-collection__item-label">'+t.text+"</div>":"",o='<div class="tox-collection__item-icon">'+t.icon+"</div>",r={_:" "," - ":" ","-":" "},i=t.text.replace(/\_| \- |\-/g,function(t){return r[t]});return'<div class="tox-collection__item" tabindex="-1" data-collection-item-value="'+('"'===(n=t.value)?"&quot;":n)+'" title="'+i+'" aria-label="'+i+'">'+o+e+"</div>"}),r=1<u.columns&&"auto"!==u.columns?at(e,u.columns):[e],i=ct(r,function(t){return'<div class="tox-collection__group">'+t.join("")+"</div>"}),$e(n.element(),i.join("")),"auto"===u.columns&&Jg(o,5,"tox-collection__item").each(function(t){var n=t.numRows,e=t.numColumns;xm.setGridSize(o,n,e)}),ai(o,hv)}}),Ab.config({}),xm.config((t=u.columns,e="normal",1===t?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===t?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===e?".tox-swatches__row":".tox-collection__group",cell:"color"===e?"."+lp:"."+fp}})),sg("collection-events",i)])});return eb(o,a,["tox-form__group--collection"])},gC=function(r){return function(n,e,o){return Jt(e,"name").fold(function(){return r(e,o)},function(t){return n.field(t,r(e,o))})}},pC={bar:gC(function(t,n){return e=t,o=n.shared,{dom:{tag:"div",classes:["tox-bar"]},components:ct(e.items,o.interpreter)};var e,o}),collection:gC(function(t,n){return mC(t,n.shared.providers)}),alloy:gC(U),alertbanner:gC(function(t,n){return e=t,o=n.shared.providers,Jh.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[Eg.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:Dg(e.icon,o.icons),attributes:{title:o.translate(e.actionLabel)}},action:function(t){ci(t,lv,{name:"alert-banner",value:e.url})}})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:o.translate(e.text)}}]});var e,o}),input:gC(function(t,n){return e=t,o=n.shared.providers,oC({name:e.name,multiline:!1,label:e.label,placeholder:e.placeholder,flex:!1,classname:"tox-textfield",validation:tt.none()},o);var e,o}),textarea:gC(function(t,n){return e=t,o=n.shared.providers,oC({name:e.name,multiline:!0,label:e.label,placeholder:e.placeholder,flex:!0,classname:"tox-textarea",validation:tt.none()},o);var e,o}),listbox:gC(function(t,n){return e=t,o=n.shared.providers,r=ub(e.label,o),i=yv.parts().field({factory:eC,dom:{classes:["mce-select-field"]},selectBehaviours:ga([Ab.config({})]),options:e.values,data:e.initialValue.getOr(undefined)}),ob(tt.some(r),i);var e,o,r,i}),label:gC(function(t,n){return e=t,r={dom:{tag:"label",innerHtml:(o=n.shared).providers.translate(e.label),classes:["tox-label"]}},i=ct(e.items,o.interpreter),{dom:{tag:"div",classes:["tox-form__group"]},components:[r].concat(i),behaviours:ga([Ew(),Om.config({}),Rw(tt.none()),xm.config({mode:"acyclic"})])};var e,o,r,i}),iframe:(Iv=function(t,n){return Yw(t,n.shared.providers)},function(t,n,e){var o=Gt(n,{source:"dynamic"});return gC(Iv)(t,o,e)}),autocomplete:gC(function(t,n){return r=t,i=n.shared,e=ub(r.label.getOr("?"),i.providers),o=yv.parts().field({factory:nb,dismissOnBlur:!1,inputClasses:["tox-textfield"],minChars:1,fetch:function(t){var n=Nm.getValue(t),e=r.getItems(n),o=db(e,Yp.BUBBLE_TO_SANDBOX,i.providers);return _v.pure(o)},markers:{openClass:"dog"},lazySink:i.getSink,parts:{menu:mh(0,0,"normal")}}),ob(tt.some(e),o);var r,i,e,o}),button:gC(function(t,n){return e=t,o=n.shared.providers,r=OS(e.name,"custom"),kS(e,r,o,[Hw(""),Ew()]);var e,o,r}),checkbox:gC(function(t,n){return e=t,o=n.shared.providers,r=Nm.config({store:{mode:"manual",getValue:function(t){return t.element().dom().checked},setValue:function(t,n){t.element().dom().checked=n}}}),i=function(t){return t.element().dom().click(),tt.some(!0)},u=yv.parts().field({factory:{sketch:U},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:ga([Ew(),Ab.config({}),Um.config({}),r,xm.config({mode:"special",onEnter:i,onSpace:i,stopSpaceKeyup:!0}),sg("checkbox-events",[Ci(bn(),function(t){ci(t,cv,{name:e.name})})])])}),a=yv.parts().label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:o.translate(e.label)},behaviours:ga([xy.config({})])}),s=Tg({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[(c=function(t){return{dom:{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+t],innerHtml:Dg("checked"===t?"selected":"unselected",o.icons)}}})("checked"),c("unchecked")]}),yv.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[u,s.asSpec(),a]});var e,o,r,i,u,a,c,s}),colorinput:gC(function(t,n){return ky(t,n.shared,n.colorinput)}),colorpicker:gC(function(){var t=function(t){return"tox-"+t},n=Ow(Aw,t),r=Tg(n.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:function(t){ci(t,lv,{name:"hex-valid",value:!0})},onInvalidHex:function(t){ci(t,lv,{name:"hex-valid",value:!1})}}));return{dom:{tag:"div"},components:[r.asSpec()],behaviours:ga([Nm.config({store:{mode:"manual",getValue:function(t){var n=r.get(t);return gl.getCurrent(n).bind(function(t){return Nm.getValue(t).hex}).map(function(t){return"#"+t}).getOr("")},setValue:function(t,n){var e=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/.exec(n),o=r.get(t);gl.getCurrent(o).fold(function(){b.console.log("Can not find form")},function(t){Nm.setValue(t,{hex:tt.from(e[1]).getOr("")}),bw.getField(t,"hex").each(function(t){ai(t,vn())})})}}}),Ew()])}}),dropzone:gC(function(t,n){return Nw(t,n.shared.providers)}),grid:gC(function(t,n){return e=t,o=n.shared,{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:ct(e.items,o.interpreter)};var e,o}),selectbox:gC(function(t,n){return e=t,o=n.shared.providers,r=e.label.map(function(t){return ub(t,o)}),i=yv.parts().field({dom:{},selectAttributes:{size:e.size},options:e.items,factory:eC,selectBehaviours:ga([Ab.config({}),sg("selectbox-change",[Ci(bn(),function(t){ci(t,cv,{name:e.name})})])])}),u=1<e.size?tt.none():tt.some({dom:{tag:"div",classes:["tox-selectfield__icon-js"],innerHtml:Dg("chevron-down",o.icons)}}),a={dom:{tag:"div",classes:["tox-selectfield"]},components:vt([[i],u.toArray()])},yv.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:vt([r.toArray(),[a]])});var e,o,r,i,u,a}),sizeinput:gC(function(t,n){return VS(t,n.shared.providers)}),urlinput:gC(function(t,n){return dC(t,n.shared,n.urlinput)}),customeditor:gC(function(n){var e=nn(tt.none()),o=Tg({dom:{tag:n.tag}}),r=nn(tt.none());return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:ga([sg("editor-foo-events",[_i(function(t){o.getOpt(t).each(function(t){n.init(t.element().dom()).then(function(n){r.get().each(function(t){n.setValue(t)}),r.set(tt.none()),e.set(tt.some(n))})})})]),Nm.config({store:{mode:"manual",getValue:function(){return e.get().fold(function(){return r.get().getOr("")},function(t){return t.getValue()})},setValue:function(t,n){e.get().fold(function(){r.set(tt.some(n))},function(t){return t.setValue(n)})}}}),Ew()]),components:[o.asSpec()]}}),htmlpanel:gC(function(t){return"presentation"===t.presets?Jh.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html}}):Jh.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html,attributes:{role:"document"}},containerBehaviours:ga([Ab.config({}),Um.config({})])})}),imagetools:gC(function(t,n){return nC(t,n.shared.providers)}),table:gC(function(t,n){return e=t,o=n.shared.providers,u=function(t){return{dom:{tag:"th",innerHtml:o.translate(t)}}},a=function(t){return{dom:{tag:"td",innerHtml:o.translate(t)}}},c=function(t){return{dom:{tag:"tr"},components:ct(t,a)}},{dom:{tag:"table",classes:["tox-dialog__table"]},components:[(i=e.header,{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:ct(i,u)}]}),(r=e.cells,{dom:{tag:"tbody"},components:ct(r,c)})],behaviours:ga([Ab.config({}),Um.config({})])};var e,o,r,i,u,a,c})},hC={field:function(t,n){return n}},vC=function(n,t,e){var o=Gt(e,{shared:{interpreter:function(t){return bC(n,t,o)}}});return bC(n,t,o)},bC=function(n,e,o){return Jt(pC,e.type).fold(function(){return b.console.error('Unknown factory type "'+e.type+'", defaulting to container: ',e),e},function(t){return t(n,e,o)})},yC=function(t){return t.y()},xC=function(t,n,e){return xc(t.x(),yC(t),e.northeast(),La(),"layout-ne")},wC=function(t,n,e){return xc((r=n,(o=t).x()+o.width()-r.width()),yC(t),e.northwest(),ja(),"layout-nw");var o,r},SC=function(t,n,e){return xc((r=n,(o=t).x()+o.width()/2-r.width()/2),yC(t),e.north(),Wa(),"layout-n");var o,r},CC={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},kC=function(t,n,e){var o,r,i,u,a,c,s,f,l,d,m=av(t),g=function(){return xe.fromDom(t.getBody())};return{toolbar:(f=g,l=n,d=m,d?function(){return{anchor:"node",root:f(),node:tt.from(f()),bubble:bc(-12,-12,CC),layouts:{onRtl:function(){return[xC]},onLtr:function(){return[wC]}}}}:function(){return{anchor:"hotspot",hotspot:l(),bubble:bc(-12,12,CC),layouts:{onRtl:function(){return[Tc]},onLtr:function(){return[Bc]}}}}),toolbarOverflow:(s=e,function(){return{anchor:"hotspot",hotspot:s(),layouts:{onRtl:function(){return[Tc]},onLtr:function(){return[Bc]}}}}),banner:(u=g,a=n,c=e,c?function(){return{anchor:"node",root:u(),node:tt.from(u()),layouts:{onRtl:function(){return[SC]},onLtr:function(){return[SC]}}}}:function(){return{anchor:"hotspot",hotspot:a(),layouts:{onRtl:function(){return[Mc]},onLtr:function(){return[Mc]}}}}),cursor:(r=t,i=g,function(){return{anchor:"selection",root:i(),getSelection:function(){var t=r.selection.getRng();return tt.some(Gc(xe.fromDom(t.startContainer),t.startOffset,xe.fromDom(t.endContainer),t.endOffset))}}}),node:(o=g,function(t){return{anchor:"node",root:o(),node:t}})}},OC=function(t){return{colorPicker:(o=t,function(t,n){hy.colorPickerDialog(o)(t,n)}),hasCustomColors:(e=t,function(){return ry(e)}),getColors:(n=t,function(){return iy(n)})};var n,e,o},EC=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strike-through",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",icon:"align-left",format:"alignleft"},{title:"Center",icon:"align-center",format:"aligncenter"},{title:"Right",icon:"align-right",format:"alignright"},{title:"Justify",icon:"align-justify",format:"alignjustify"}]}],TC=function(t){return dt(t,function(t,n){if(Vt(n,"items")){var e=TC(n.items);return{customFormats:t.customFormats.concat(e.customFormats),formats:t.formats.concat([{title:n.title,items:e.formats}])}}if(Vt(n,"inline")||Vt(n,"block")||Vt(n,"selector")){var o="custom-"+n.title.toLowerCase();return{customFormats:t.customFormats.concat([{name:o,format:n}]),formats:t.formats.concat([{title:n.title,format:o,icon:n.icon}])}}return To({},t,{formats:t.formats.concat(n)})},{customFormats:[],formats:[]})},BC=function(i){return(t=i,tt.from(t.getParam("style_formats")).filter($)).map(function(t){var n,e,o,r=(n=i,e=TC(t),o=function(t){st(t,function(t){n.formatter.has(t.name)||n.formatter.register(t.name,t.format)})},n.formatter?o(e.customFormats):n.on("init",function(){o(e.customFormats)}),e.formats);return i.getParam("style_formats_merge",!1,"boolean")?EC.concat(r):r}).getOr(EC);var t},DC=function(t,n,e){var o={type:"formatter",isSelected:n(t.format),getStylePreview:e(t.format)};return Gt(t,o)},AC=function(s,t,f,l){var d=function(t){return ct(t,function(t){var n,e,o,r,i,u,a=Tt(t);if(tn(t,"items")){var c=d(t.items);return Gt((i=t,u={type:"submenu",isSelected:Z(!1),getStylePreview:function(){return tt.none()}},Gt(i,u)),{getStyleItems:function(){return c}})}return tn(t,"format")?DC(t,f,l):1===a.length&&it(a,"title")?Gt(t,{type:"separator"}):(o={type:"formatter",format:e=Oo((n=t).title),isSelected:f(e),getStylePreview:l(e)},r=Gt(n,o),s.formatter.register(e,r),r)})};return d(t)},_C=GS.trim,MC=function(n){return function(t){if(t&&1===t.nodeType){if(t.contentEditable===n)return!0;if(t.getAttribute("data-mce-contenteditable")===n)return!0}return!1}},FC=MC("true"),IC=MC("false"),VC=function(t,n,e,o,r){return{type:t,title:n,url:e,level:o,attach:r}},RC=function(t){return t.innerText||t.textContent},HC=function(t){return(n=t)&&"A"===n.nodeName&&(n.id||n.name)!==undefined&&zC(t);var n},NC=function(t){return t&&/^(H[1-6])$/.test(t.nodeName)},zC=function(t){return function(t){for(;t=t.parentNode;){var n=t.contentEditable;if(n&&"inherit"!==n)return FC(t)}return!1}(t)&&!IC(t)},PC=function(t){return NC(t)&&zC(t)},LC=function(t){var n,e,o=(n=t).id?n.id:Oo("h");return VC("header",RC(t),"#"+o,NC(e=t)?parseInt(e.nodeName.substr(1),10):0,function(){t.id=o})},jC=function(t){var n=t.id||t.name,e=RC(t);return VC("anchor",e||"#"+n,"#"+n,0,Q)},UC=function(t){var n,e;return n="h1,h2,h3,h4,h5,h6,a:not([href])",e=t,ct(es(xe.fromDom(e),n),function(t){return t.dom()})},WC=function(t){return 0<_C(t.title).length},GC=function(t){var n,e=UC(t);return ft((n=e,ct(ft(n,PC),LC)).concat(ct(ft(e,HC),jC)),WC)},XC="tinymce-url-history",YC=function(t){return K(t)&&/^https?/.test(t)},qC=function(t){return J(t)&&function(t,n){for(var e=Tt(t),o=0,r=e.length;o<r;o++){var i=e[o],u=t[i];if(n(u,i,t))return tt.some(u)}return tt.none()}(t,function(t){return!($(n=t)&&n.length<=5&&yt(n,YC));var n}).isNone()},KC=function(){var t,n=b.localStorage.getItem(XC);if(null===n)return{};try{t=JSON.parse(n)}catch(M){if(M instanceof SyntaxError)return b.console.log("Local storage "+XC+" was not valid JSON",M),{};throw M}return qC(t)?t:(b.console.log("Local storage "+XC+" was not valid format",t),{})},JC=function(t){var n=KC();return Object.prototype.hasOwnProperty.call(n,t)?n[t]:[]},$C=function(n,t){if(YC(n)){var e=KC(),o=Object.prototype.hasOwnProperty.call(e,t)?e[t]:[],r=ft(o,function(t){return t!==n});e[t]=[n].concat(r).slice(0,5),function(t){if(!qC(t))throw new Error("Bad format for history:\n"+JSON.stringify(t));b.localStorage.setItem(XC,JSON.stringify(t))}(e)}},QC=Object.prototype.hasOwnProperty,ZC=function(t){return!!t},tk=function(t){return At(GS.makeMap(t,/[, ]/),ZC)},nk=function(t,n,e){var o,r,i=(o=t,r=n,QC.call(o,r)?tt.some(o[r]):tt.none()).getOr(e);return K(i)?tt.some(i):tt.none()},ek=function(t){return tt.some(t.file_picker_callback).filter(et)},ok=function(t,n){var e,o,r,i,u=(e=t,o=tt.some(e.file_picker_types).filter(ZC),r=tt.some(e.file_browser_callback_types).filter(ZC),i=o.or(r).map(tk),ek(e).fold(function(){return!1},function(){return i.fold(function(){return!0},function(t){return 0<Tt(t).length&&t})}));return nt(u)?u?ek(t):tt.none():u[n]?ek(t):tt.none()},rk=function(n){return{getHistory:JC,addToHistory:$C,getLinkInformation:function(){return!1===(t=n).settings.typeahead_urls?tt.none():tt.some({targets:GC(t.getBody()),anchorTop:nk(t.settings,"anchor_top","#top").getOrUndefined(),anchorBottom:nk(t.settings,"anchor_bottom","#bottom").getOrUndefined()});var t},getValidationHandler:function(){return t=n.settings.filepicker_validator_handler,et(t)?tt.some(t):tt.none();var t},getUrlPicker:function(t){return i=t,ok((r=n).settings,i).map(function(o){return function(n){return _v.nu(function(e){var t=GS.extend({filetype:i},tt.from(n.meta).getOr({}));o.call(r,function(t,n){if(!K(t))throw new Error("Expected value to be string");if(n!==undefined&&!J(n))throw new Error("Expected meta to be a object");e({value:t,meta:n})},n.value,t)})}});var r,i}}},ik=function(t,n,e,o){var r,i,u,a,c,s,f,l,d,m={shared:{providers:{icons:function(){return n.ui.registry.getAll().icons},menuItems:function(){return n.ui.registry.getAll().menuItems},translate:cp.translate},interpreter:function(t){return bC(hC,t,m)},anchors:kC(n,e,o),getSink:function(){return Lt.value(t)}},urlinput:rk(n),styleselect:(r=n,i=function(t){return function(){return r.formatter.match(t)}},u=function(n){return function(){var t=r.formatter.get(n);return t!==undefined?tt.some({tag:0<t.length&&(t[0].inline||t[0].block)||"div",styleAttr:r.formatter.getCssText(n)}):tt.none()}},a=function(t){var n=t.items;return n!==undefined&&0<n.length?bt(n,a):[t.format]},c=nn([]),s=nn([]),f=nn([]),l=nn([]),d=nn(!1),r.on("init",function(){var t=BC(r),n=AC(r,t,i,u);c.set(n),s.set(bt(n,a))}),r.on("addStyleModifications",function(t){var n=AC(r,t.items,i,u);f.set(n),d.set(t.replace),l.set(bt(n,a))}),{getData:function(){var t=d.get()?[]:c.get(),n=f.get();return t.concat(n)},getFlattenedKeys:function(){var t=d.get()?[]:s.get(),n=l.get();return t.concat(n)}}),colorinput:OC(n)};return m},uk=we("within","extra","withinWidth"),ak=function(t,n,o){var e,r=(e=function(t,n){var e=o(t);return tt.some({element:Z(t),start:Z(n),finish:Z(n+e),width:Z(e)})},dt(t,function(n,t){return e(t,n.len).fold(Z(n),function(t){return{len:t.finish(),list:n.list.concat([t])}})},{len:0,list:[]}).list),i=ft(r,function(t){return t.finish()<=n}),u=lt(i,function(t,n){return t+n.width()},0),a=r.slice(i.length);return{within:Z(i),extra:Z(a),withinWidth:Z(u)}},ck=function(t){return ct(t,function(t){return t.element()})},sk=function(t,n,e,o){var r,i,u,a,c,s,f,l,d,m,g,p,h=(r=t,i=n,u=e,a=ak(i,r,u),0===a.extra().length?tt.some(a):tt.none()).getOrThunk(function(){return ak(n,t-e(o),e)}),v=h.within(),b=h.extra(),y=h.withinWidth();return 1===b.length&&b[0].width()<=e(o)?(m=b,g=y,p=ck(v.concat(m)),uk(p,[],g)):1<=b.length?(s=b,f=o,l=y,d=ck(v).concat([f]),uk(d,ck(s),l)):(c=y,uk(ck(v),[],c))},fk=function(n,t){return t.getAnimationRoot.fold(function(){return n.element()},function(t){return t(n)})},lk=function(t){return t.dimension.property},dk=function(t,n){return t.dimension.getDimension(n)},mk=function(t,n){var e=fk(t,n);yu(e,[n.shrinkingClass,n.growingClass])},gk=function(t,n){hu(t.element(),n.openClass),gu(t.element(),n.closedClass),Cu(t.element(),lk(n),"0px"),Au(t.element())},pk=function(t,n){hu(t.element(),n.closedClass),gu(t.element(),n.openClass),Du(t.element(),lk(n))},hk=function(t,n,e){e.setCollapsed(),Cu(t.element(),lk(n),dk(n,t.element())),Au(t.element()),mk(t,n),gk(t,n),n.onStartShrink(t),n.onShrunk(t)},vk=function(t,n,e,o){var r=o.getOrThunk(function(){return dk(n,t.element())});e.setCollapsed(),Cu(t.element(),lk(n),r),Au(t.element());var i=fk(t,n);hu(i,n.growingClass),gu(i,n.shrinkingClass),gk(t,n),n.onStartShrink(t)},bk=function(t,n,e){var o=dk(n,t.element());("0px"===o?hk:vk)(t,n,e,tt.some(o))},yk=function(t,n,e){var o=fk(t,n),r=vu(o,n.shrinkingClass),i=dk(n,t.element());pk(t,n);var u=dk(n,t.element());(r?function(){Cu(t.element(),lk(n),i),Au(t.element())}:function(){gk(t,n)})(),hu(o,n.shrinkingClass),gu(o,n.growingClass),pk(t,n),Cu(t.element(),lk(n),u),e.setExpanded(),n.onStartGrow(t)},xk=function(t,n){var e=fk(t,n);return!0===vu(e,n.growingClass)},wk=function(t,n){var e=fk(t,n);return!0===vu(e,n.shrinkingClass)},Sk=Object.freeze({refresh:function(t,n,e){if(e.isExpanded()){Du(t.element(),lk(n));var o=dk(n,t.element());Cu(t.element(),lk(n),o)}},grow:function(t,n,e){e.isExpanded()||yk(t,n,e)},shrink:function(t,n,e){e.isExpanded()&&bk(t,n,e)},immediateShrink:function(t,n,e){e.isExpanded()&&hk(t,n,e,tt.none())},hasGrown:function(t,n,e){return e.isExpanded()},hasShrunk:function(t,n,e){return e.isCollapsed()},isGrowing:xk,isShrinking:wk,isTransitioning:function(t,n){return!0===xk(t,n)||!0===wk(t,n)},toggleGrow:function(t,n,e){(e.isExpanded()?bk:yk)(t,n,e)},disableTransitions:mk}),Ck=Object.freeze({exhibit:function(t,n){var e=n.expanded;return nu(e?{classes:[n.openClass],styles:{}}:{classes:[n.closedClass],styles:$t(n.dimension.property,"0px")})},events:function(e,o){return xi([Ai(xn(),function(t,n){n.event().raw().propertyName===e.dimension.property&&(mk(t,e),o.isExpanded()&&Du(t.element(),e.dimension.property),(o.isExpanded()?e.onGrown:e.onShrunk)(t))})])}}),kk=[Rr("closedClass"),Rr("openClass"),Rr("shrinkingClass"),Rr("growingClass"),Wr("getAnimationRoot"),ea("onShrunk"),ea("onStartShrink"),ea("onGrown"),ea("onStartGrow"),Kr("expanded",!1),Hr("dimension",Br("property",{width:[ua("property","width"),ua("getDimension",function(t){return _a(t)+"px"})],height:[ua("property","height"),ua("getDimension",function(t){return Ia(t)+"px"})]}))],Ok=ha({fields:kk,name:"sliding",active:Ck,apis:Sk,state:Object.freeze({init:function(t){var n=nn(t.expanded);return Zi({isExpanded:function(){return!0===n.get()},isCollapsed:function(){return!1===n.get()},setCollapsed:h(n.set,!1),setExpanded:h(n.set,!0),readState:function(){return"expanded: "+n.get()}})}})}),Ek=Z([Kr("shell",!0),af("toolbarBehaviours",[Om])]),Tk=Z([Hf({name:"groups",overrides:function(){return{behaviours:ga([Om.config({})])}}})]),Bk=fl({name:"Toolbar",configFields:Ek(),partFields:Tk(),factory:function(n,t){var e=function(t){return n.shell?tt.some(t):Kf(t,n,"groups")},o=n.shell?{behaviours:[Om.config({})],components:[]}:{behaviours:[],components:t};return{uid:n.uid,dom:n.dom,components:o.components,behaviours:sf(n.toolbarBehaviours,o.behaviours),apis:{setGroups:function(t,n){e(t).fold(function(){throw b.console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},function(t){Om.set(t,n)})}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(t,n,e){t.setGroups(n,e)}}}),Dk=Z([ta(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),af("splitToolbarBehaviours",[]),oi("builtGroups",function(){return nn([])}),Kr("overflow",function(){return tt.none()}),ti("floating",!1)]),Ak=[Rr("dom"),Kr("overflow",function(){return tt.none()}),ti("floating",!1)],_k=Z([Vf({factory:Bk,schema:Ak,name:"primary"}),Hf({factory:Bk,schema:Ak,name:"overflow",overrides:function(n){return{toolbarBehaviours:ga([Ok.config({dimension:{property:"height"},closedClass:n.markers.closedClass,openClass:n.markers.openClass,shrinkingClass:n.markers.shrinkingClass,growingClass:n.markers.growingClass}),xm.config({mode:"acyclic",onEscape:function(t){return Kf(t,n,"overflow-button").each(xm.focusIn),tt.some(!0)}})])}}}),Rf({name:"overflow-button",overrides:function(t){return{buttonBehaviours:ga([eg.config({toggleClass:t.markers.overflowToggledClass,aria:{mode:"pressed"}})])}}}),Rf({name:"overflow-group"})]),Mk=Z([Rr("items"),ta(["itemSelector"]),af("tgroupBehaviours",[xm])]),Fk=Z([Nf({name:"items",unit:"item"})]),Ik=fl({name:"ToolbarGroup",configFields:Mk(),partFields:Fk(),factory:function(t,n){return{uid:t.uid,dom:t.dom,components:n,behaviours:sf(t.tgroupBehaviours,[xm.config({mode:"flow",selector:t.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}}}),Vk=function(t,n){var e=ct(n,function(t){return Uu(t)});Bk.setGroups(t,e)},Rk=function(t,e,n,o){var r=Jf(t,e,"primary"),i=Kf(t,e,"overflow").orThunk(function(){return e.overflow(t)});Cu(r.element(),"visibility","hidden"),i.each(function(t){Bk.setGroups(t,[])});var u=e.builtGroups.get(),a=Ik.sketch(To({},n["overflow-group"](),{items:[Eg.sketch(To({},n["overflow-button"](),{action:function(){!0===e.floating?ai(t,o):i.each(function(t){Ok.toggleGrow(t)})}}))]})),c=t.getSystem().build(a);Vk(r,u.concat([c]));var s=_a(r.element()),f=sk(s,u,function(t){return _a(t.element())},c);0===f.extra().length?(Om.remove(r,c),i.each(function(t){Bk.setGroups(t,[])})):(Vk(r,f.within()),i.each(function(t){Vk(t,f.extra())})),Du(r.element(),"visibility"),Au(r.element()),i.each(function(n){e.floating||Ok.refresh(n),Kf(t,e,"overflow-button").each(function(t){e.floating?eg.set(t,n.getSystem().isConnected()):(eg.set(t,Ok.hasGrown(n)),xm.focusIn(n))})})},Hk=fl({name:"SplitToolbar",configFields:Dk(),partFields:_k(),factory:function(o,t,n,r){var i="alloy.toolbar.toggle";return{uid:o.uid,dom:o.dom,components:t,behaviours:sf(o.splitToolbarBehaviours,[]),apis:{setGroups:function(t,n){var e;e=ct(n,t.getSystem().build),o.builtGroups.set(e),Rk(t,o,r,i)},refresh:function(t){Rk(t,o,r,i)},getMoreButton:function(t){return Kf(t,o,"overflow-button")},getOverflow:function(t){return Kf(n=t,o,"overflow").orThunk(function(){return o.overflow(n)});var n}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(t,n,e){t.setGroups(n,e)},refresh:function(t,n){t.refresh(n)},getMoreButton:function(t,n){return t.getMoreButton(n)},getOverflow:function(t,n){return t.getOverflow(n)}}}),Nk=function(t){var n=t.title.fold(function(){return{}},function(t){return{attributes:{title:t}}});return{dom:To({tag:"div",classes:["tox-toolbar__group"]},n),components:[Ik.parts().items({})],items:t.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:ga([Ab.config({}),Um.config({})])}},zk=function(t){return Ik.sketch(Nk(t))},Pk=function(r,t,n){var e=_i(function(t){var n=ct(r.initGroups,zk);Bk.setGroups(t,n)}),o=n.fold(function(){return[e]},function(o){return[e,Ci("alloy.toolbar.toggle",function(e){r.getSink().toOption().each(function(n){o.getOpt(n).fold(function(){var t=ju(o.asSpec());Ns(n,t),Vs.position(n,r.backstage.shared.anchors.toolbarOverflow(),t),Hk.refresh(e),Hk.getMoreButton(e).each(Um.focus),xm.focusIn(t)},function(t){Ls(t)})})})]});return ga([xm.config({mode:t,onEscape:r.onEscape,selector:".tox-toolbar__group"}),sg("toolbar-events",o)])},Lk=function(o){var t=o.cyclicKeying?"cyclic":"acyclic",r=Tg(Bk.sketch({dom:{tag:"div",classes:["tox-toolbar__overflow"]},toolbarBehaviours:ga([xm.config({mode:"cyclic",onEscape:function(){return ai(o.moreDrawerData.lazyToolbar(),"alloy.toolbar.toggle"),xm.focusIn(o.moreDrawerData.lazyMoreButton()),tt.some(!0)}})])})),n=Hk.parts().primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),e=o.moreDrawerData.floating?[n]:[n,Hk.parts().overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}})];return Hk.sketch({uid:o.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},floating:o.moreDrawerData.floating,overflow:function(e){return o.getSink().toOption().bind(function(n){return r.getOpt(n).bind(function(t){return Hk.getMoreButton(e).bind(function(){return t.getSystem().isConnected()?(Vs.position(n,o.backstage.shared.anchors.toolbarOverflow(),t),tt.some(t)):tt.none()})})})},parts:{"overflow-group":Nk({title:tt.none(),items:[]}),"overflow-button":SS({name:"more",icon:tt.some("more-drawer"),disabled:!1,tooltip:tt.some("More...")},tt.none(),o.backstage.shared.providers)},components:e,markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},splitToolbarBehaviours:Pk(o,t,tt.some(r))})},jk=function(t){var n=t.cyclicKeying?"cyclic":"acyclic";return Bk.sketch({uid:t.uid,dom:{tag:"div",classes:["tox-toolbar"]},components:[Bk.parts().groups({})],toolbarBehaviours:Pk(t,n,tt.none())})},Uk=[ti("disabled",!1),Xr("tooltip"),Xr("icon"),Xr("text"),ni("onSetup",function(){return Q})],Wk=dr([Nr("type"),Pr("onAction")].concat(Uk)),Gk=function(t){return kr("toolbarbutton",Wk,t)},Xk=dr([Nr("type"),Xr("tooltip"),Xr("icon"),Xr("text"),Pr("fetch"),ni("onSetup",function(){return Q})]),Yk=dr([Nr("type"),Xr("tooltip"),Xr("icon"),Xr("text"),Yr("select"),Pr("fetch"),ni("onSetup",function(){return Q}),Zr("presets","normal",["normal","color","listpreview"]),Kr("columns",1),Pr("onAction"),Pr("onItemAction")]),qk=[ti("active",!1)].concat(Uk),Kk=dr(qk.concat([Nr("type"),Pr("onAction")])),Jk=function(t){return kr("ToggleButton",Kk,t)},$k=[ni("predicate",function(){return!1}),Zr("scope","node",["node","editor"]),Zr("position","selection",["node","selection","line"])],Qk=Uk.concat([Kr("type","contextformbutton"),Kr("primary",!1),Pr("onAction"),oi("original",U)]),Zk=qk.concat([Kr("type","contextformbutton"),Kr("primary",!1),Pr("onAction"),oi("original",U)]),tO=Uk.concat([Kr("type","contextformbutton")]),nO=qk.concat([Kr("type","contextformtogglebutton")]),eO=Br("type",{contextformbutton:Qk,contextformtogglebutton:Zk}),oO=dr([Kr("type","contextform"),ni("initValue",function(){return""}),Xr("label"),Ur("commands",eO),Gr("launch",Br("type",{contextformbutton:tO,contextformtogglebutton:nO}))].concat($k)),rO=dr([Kr("type","contexttoolbar"),Nr("items")].concat($k)),iO=Oo("toolbar.button.execute"),uO={"alloy.execute":["disabling","alloy.base.behaviour","toggling","toolbar-button-events"]},aO=Object.freeze({getState:function(t,n,e){return e}}),cO=Object.freeze({events:function(r,i){var o=function(e,o){r.updateState.each(function(t){var n=t(e,o);i.set(n)}),r.renderComponents.each(function(t){var n=t(o,i.get());js(e),st(n,function(t){Ns(e,e.getSystem().build(t))})})};return xi([Ci(Zn(),function(t,n){var e=r.channel;it(n.channels(),e)&&o(t,n.data())}),_i(function(n){r.initialData.each(function(t){o(n,t)})})])}}),sO=Object.freeze({init:function(){var n=nn(tt.none());return{readState:function(){return n.get().getOr("none")},get:function(){return n.get()},set:function(t){return n.set(t)},clear:function(){return n.set(tt.none())}}}}),fO=[Rr("channel"),Wr("renderComponents"),Wr("updateState"),Wr("initialData")],lO=ha({fields:fO,name:"reflecting",active:cO,apis:aO,state:sO}),dO=Z([Rr("toggleClass"),Rr("fetch"),ra("onExecute"),Kr("getHotspot",tt.some),Kr("layouts",tt.none()),ra("onItemExecute"),Wr("lazySink"),Rr("dom"),ea("onOpen"),af("splitDropdownBehaviours",[Sv,xm,Um]),Kr("matchWidth",!1),Kr("useMinWidth",!1),Kr("eventOrder",{}),Wr("role")].concat(Qv())),mO=Vf({factory:Eg,schema:[Rr("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:ga([Um.revoke()])}},overrides:function(n){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(n.uid).each(si)},buttonBehaviours:ga([eg.config({toggleOnExecute:!1,toggleClass:n.toggleClass})])}}}),gO=Vf({factory:Eg,schema:[Rr("dom")],name:"button",defaults:function(){return{buttonBehaviours:ga([Um.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(n){n.getSystem().getByUid(e.uid).each(function(t){e.onExecute(t,n)})}}}}),pO=Z([mO,gO,Hf({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[Rr("text")],name:"aria-descriptor"}),Rf({schema:[Zu()],name:"menu",defaults:function(o){return{onExecute:function(n,e){n.getSystem().getByUid(o.uid).each(function(t){o.onItemExecute(t,n,e)})}}}}),Fv()]),hO=fl({name:"SplitDropdown",configFields:dO(),partFields:pO(),factory:function(o,t,n,e){var r=function(t){gl.getCurrent(t).each(function(t){Tl.highlightFirst(t),xm.focusIn(t)})},i=function(t){Pv(o,function(t){return t},t,e,r,ov.HighlightFirst).get(Q)},u=function(t){var n=Jf(t,o,"button");return si(n),tt.some(!0)},a=Xt(xi([_i(function(e){Kf(e,o,"aria-descriptor").each(function(t){var n=Oo("aria");ro(t.element(),"id",n),ro(e.element(),"aria-describedby",n)})})]),Og(tt.some(i)));return{uid:o.uid,dom:o.dom,components:t,eventOrder:To({},o.eventOrder,{"alloy.execute":["disabling","toggling","alloy.base.behaviour"]}),events:a,behaviours:sf(o.splitDropdownBehaviours,[Sv.config({ others:{sandbox:function(t){var n=Jf(t,o,"arrow");return Uv(o,t,{onOpen:function(){eg.on(n),eg.on(t)},onClose:function(){eg.off(n),eg.off(t)}})}}}),xm.config({mode:"special",onSpace:u,onEnter:u,onDown:function(t){return i(t),tt.some(!0)}}),Um.config({}),eg.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:o.role.getOr("button"),"aria-haspopup":!0}}}}}),vO=function(n){return{isDisabled:function(){return Np.isDisabled(n)},setDisabled:function(t){return t?Np.disable(n):Np.enable(n)}}},bO=function(n){return{setActive:function(t){eg.set(n,t)},isActive:function(){return eg.isOn(n)},isDisabled:function(){return Np.isDisabled(n)},setDisabled:function(t){return t?Np.disable(n):Np.enable(n)}}},yO=function(t,n){return t.map(function(t){return{"aria-label":n.translate(t),title:n.translate(t)}}).getOr({})},xO=Oo("focus-button"),wO=function(n,e,t,o,r,i){var u;return{dom:{tag:"button",classes:["tox-tbtn"].concat(e.isSome()?["tox-tbtn--select"]:[]),attributes:yO(t,i)},components:Kp([n.map(function(t){return bS(t,i.icons)}),e.map(function(t){return xS(t,"tox-tbtn",i)})]),eventOrder:(u={},u[cn()]=["focusing","alloy.base.behaviour","common-button-display-events"],u),buttonBehaviours:ga([sg("common-button-display-events",[Ci(cn(),function(t,n){n.event().prevent(),ai(t,xO)})])].concat(o.map(function(t){return lO.config({channel:t,initialData:{icon:n,text:e},renderComponents:function(t){return Kp([t.icon.map(function(t){return bS(t,i.icons)}),t.text.map(function(t){return xS(t,"tox-tbtn",i)})])}})}).toArray()).concat(r.getOr([])))}},SO=function(t,n,e){var o,r=nn(Q),i=wO(t.icon,t.text,t.tooltip,tt.none(),tt.none(),e);return Eg.sketch({dom:i.dom,components:i.components,eventOrder:uO,buttonBehaviours:ga([sg("toolbar-button-events",[(o={onAction:t.onAction,getApi:n.getApi},Ii(function(n){jp(o,n)(function(t){ci(n,iO,{buttonApi:t}),o.onAction(t)})})),Up(n,r),Wp(n,r)]),Pp(t.disabled)].concat(n.toolbarButtonBehaviours))})},CO=function(t,n,e){return SO(t,{toolbarButtonBehaviours:[].concat(0<e.length?[sg("toolbarButtonWith",e)]:[]),getApi:vO,onSetup:t.onSetup},n)},kO=function(t,n,e){return Gt(SO(t,{toolbarButtonBehaviours:[Om.config({}),eg.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(0<e.length?[sg("toolbarToggleButtonWith",e)]:[]),getApi:bO,onSetup:t.onSetup},n))},OO=function(n,t){var e,o,r,i,u=Oo("channel-update-split-dropdown-display"),a=function(e){return{isDisabled:function(){return Np.isDisabled(e)},setDisabled:function(t){return t?Np.disable(e):Np.enable(e)},setIconFill:function(t,n){Gu(e.element(),'svg path[id="'+t+'"], rect[id="'+t+'"]').each(function(t){ro(t,"fill",n)})},setIconStroke:function(t,n){Gu(e.element(),'svg path[id="'+t+'"], rect[id="'+t+'"]').each(function(t){ro(t,"stroke",n)})},setActive:function(n){ro(e.element(),"aria-pressed",n),Gu(e.element(),"span").each(function(t){e.getSystem().getByDom(t).each(function(t){return eg.set(t,n)})})},isActive:function(){return Gu(e.element(),"span").exists(function(t){return e.getSystem().getByDom(t).exists(eg.isOn)})}}},c=nn(Q),s={getApi:a,onSetup:n.onSetup};return hO.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:Xt({"aria-pressed":!1},yO(n.tooltip,t.providers))},onExecute:function(t){n.onAction(a(t))},onItemExecute:function(){},splitDropdownBehaviours:ga([Lp(!1),sg("split-dropdown-events",[Ci(xO,Um.focus),Up(s,c),Wp(s,c)])]),eventOrder:(e={},e[fe()]=["alloy.base.behaviour","split-dropdown-events"],e),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:(o=a,r=n,i=t.providers,function(n){return _v.nu(function(t){return r.fetch(t)}).map(function(t){return tt.from(Bh(Gt(Eh(Oo("menu-value"),t,function(t){r.onItemAction(o(n),t)},r.columns,r.presets,Yp.CLOSE_ON_EXECUTE,r.select.getOr(function(){return!1}),i),{movement:gh(r.columns,r.presets),menuBehaviours:Qg("auto"!==r.columns?[]:[_i(function(o){Jg(o,4,vp(r.presets)).each(function(t){var n=t.numRows,e=t.numColumns;xm.setGridSize(o,n,e)})})])})))})}),parts:{menu:mh(0,n.columns,n.presets)},components:[hO.parts().button(wO(n.icon,n.text,tt.none(),tt.some(u),tt.some([eg.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),hO.parts().arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Dg("chevron-down",t.providers.icons)}}),hO.parts()["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},EO=function(i,u){return Ci(iO,function(t,n){var e,o=i.get(t),r=(e=o,{hide:function(){return ai(e,ie())},getValue:function(){return Nm.getValue(e)}});u.onAction(r,n.event().buttonApi())})},TO=function(t,n,e){var o,r,i,u,a,c,s,f,l,d,m,g,p={backstage:{shared:{providers:e}}};return"contextformtogglebutton"===n.type?(s=t,l=p,(d=(f=n).original).primary,m=v(d,["primary"]),g=Or(Jk(To({},m,{type:"togglebutton",onAction:function(){}}))),kO(g,l.backstage.shared.providers,[EO(s,f)])):(o=t,i=p,(u=(r=n).original).primary,a=v(u,["primary"]),c=Or(Gk(To({},a,{type:"button",onAction:function(){}}))),CO(c,i.backstage.shared.providers,[EO(o,r)]))},BO=function(t,n){var e,o,r,i,u=t.label.fold(function(){return{}},function(t){return{"aria-label":t}}),a=Tg(mb.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:t.initValue(),inputAttributes:u,selectOnFocus:!0,inputBehaviours:ga([xm.config({mode:"special",onEnter:function(t){return c.findPrimary(t).map(function(t){return si(t),!0})},onLeft:function(t,n){return n.cut(),tt.none()},onRight:function(t,n){return n.cut(),tt.none()}})])})),c=(e=a,o=t.commands,r=n.shared.providers,i=ct(o,function(t){return Tg(TO(e,t,r))}),{asSpecs:function(){return ct(i,function(t){return t.asSpec()})},findPrimary:function(e){return on(o,function(t,n){return t.primary?tt.from(i[n]).bind(function(t){return t.getOpt(e)}).filter(N(Np.isDisabled)):tt.none()})}});return jk({uid:Oo("context-toolbar"),initGroups:[{title:tt.none(),items:[a.asSpec()]},{title:tt.none(),items:c.asSpecs()}],onEscape:tt.none,cyclicKeying:!0,backstage:n,getSink:function(){return Lt.error("")}})},DO=Oo("forward-slide"),AO=Oo("backward-slide"),_O=Oo("change-slide-event"),MO="tox-pop--resizing",FO=function(n,t){return on(t,function(t){return t.predicate(n.dom())?tt.some({toolbarApi:t,elem:n}):tt.none()})},IO=function(n,e){var t=function(t){return t.dom()===e.getBody()},a=xe.fromDom(e.selection.getNode());return FO(a,n.inNodeScope).orThunk(function(){return FO(a,n.inEditorScope).orThunk(function(){return function(t,n,e){for(var o=a.dom(),r=et(e)?e:Z(!1);o.parentNode;){o=o.parentNode;var i=xe.fromDom(o),u=n(i);if(u.isSome())return u;if(r(i))break}return tt.none()}(0,function(t){return FO(t,n.inNodeScope)},t)})})},VO=function(e,r){var t={},i=[],u=[],a={},c={},o=function(n,e){var o=Or(kr("ContextForm",oO,e));(t[n]=o).launch.map(function(t){a["form:"+n]=To({},e.launch,{type:"contextformtogglebutton"===t.type?"togglebutton":"button",onAction:function(){r(o)}})}),"editor"===o.scope?u.push(o):i.push(o),c[n]=o},s=function(n,e){var t;(t=e,kr("ContextToolbar",rO,t)).each(function(t){"editor"===e.scope?u.push(t):i.push(t),c[n]=t})},n=Tt(e);return st(n,function(t){var n=e[t];"contextform"===n.type?o(t,n):"contexttoolbar"===n.type&&s(t,n)}),{forms:t,inNodeScope:i,inEditorScope:u,lookupTable:c,formNavigators:a}},RO=Oo("update-menu-text"),HO=Oo("update-menu-icon"),NO=function(t,n,o){var r=t.text.map(function(t){return Tg(xS(t,n,o.providers))}),i=t.icon.map(function(t){return Tg(yS(t,o.providers.icons))}),e=function(t,n){var e=Nm.getValue(t);return Um.focus(e),ci(e,"keydown",{raw:n.event().raw()}),yy.close(e),tt.some(!0)},u=t.role.fold(function(){return{}},function(t){return{role:t}}),a=t.tooltip.fold(function(){return{}},function(t){var n=o.providers.translate(t);return{title:n,"aria-label":n}});return Tg(yy.sketch(To({},u,{dom:{tag:"button",classes:[n,n+"--select"].concat(ct(t.classes,function(t){return n+"--"+t})),attributes:To({},a)},components:Kp([i.map(function(t){return t.asSpec()}),r.map(function(t){return t.asSpec()}),tt.some({dom:{tag:"div",classes:[n+"__select-chevron"],innerHtml:Dg("chevron-down",o.providers.icons)}})]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:ga([Pp(t.disabled),xy.config({}),Om.config({}),sg("menubutton-update-display-text",[_i(t.onAttach),Mi(t.onDetach),Ci(RO,function(n,e){r.bind(function(t){return t.getOpt(n)}).each(function(t){Om.set(t,[zu(o.providers.translate(e.event().text()))])})}),Ci(HO,function(n,e){i.bind(function(t){return t.getOpt(n)}).each(function(t){Om.set(t,[yS(e.event().icon(),o.providers.icons)])})})])]),eventOrder:Gt(uO,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:ga([xm.config({mode:"special",onLeft:e,onRight:e})]),lazySink:o.getSink,toggleClass:n+"--active",parts:{menu:mh(0,t.columns,t.presets)},fetch:function(){return _v.nu(t.fetch)}}))).asSpec()},zO=function(o,r){return function(n){var e=nn(tt.none()),t=function(){n.setActive(o.formatter.match(r));var t=o.formatter.formatChanged(r,n.setActive).unbind;e.set(tt.some(t))};return o.initialized?t():o.on("init",t),function(){return e.get().each(function(t){return t()})}}},PO=function(n){return function(t){return function(){n.undoManager.transact(function(){n.focus(),n.execCommand("mceToggleFormat",!1,t.format)})}}},LO=function(t,n,e,o){var i,u,r,a,c,s="basic"===e.type?function(){return ct(e.data,function(t){return DC(t,o.isSelectedFor,o.getPreviewFor)})}:e.getData;return{items:(i=n,u=o,r=function(t,n,e){var o=i.shared.providers.translate(t.title);if("separator"===t.type)return tt.some({type:"separator",text:o});if("submenu"!==t.type)return tt.some(To({type:"togglemenuitem",text:o,active:t.isSelected(),disabled:e,onAction:u.onAction(t)},t.getStylePreview().fold(function(){return{}},function(t){return{meta:{style:t}}})));var r=bt(t.getStyleItems(),function(t){return a(t,n)});return 0===n&&r.length<=0?tt.none():tt.some({type:"nestedmenuitem",text:o,disabled:r.length<=0,getSubmenuItems:function(){return bt(t.getStyleItems(),function(t){return a(t,n)})}})},a=function(t,n){var e="formatter"===t.type&&u.isInvalid(t);return 0===n?e?[]:r(t,n,!1).toArray():r(t,n,e).toArray()},c=function(t){var n=u.shouldHide?0:1;return bt(t,function(t){return a(t,n)})},{validateItems:c,getFetch:function(o,r){return function(t){var n=r(),e=c(n);t(db(e,Yp.CLOSE_ON_EXECUTE,o.shared.providers))}}}),getStyleItems:s}},jO=function(o,t,n,e){var r=LO(0,t,n,e),i=r.items,u=r.getStyleItems,a=nn(undefined),c=e.nodeChangeHandler.map(function(e){return function(t){var n=e(t);a.set(n),o.on("nodeChange",n)}}).getOr(Q),s=e.nodeChangeHandler.map(function(){return function(){var t=a.get();t!==undefined&&o.off("nodeChange",t)}}).getOr(Q);return NO({text:e.icon.isSome()?tt.none():tt.some(""),icon:e.icon,tooltip:tt.from(e.tooltip),role:tt.none(),fetch:i.getFetch(t,u),onAttach:c,onDetach:s,columns:1,presets:"normal",classes:e.icon.isSome()?[]:["bespoke"]},"tox-tbtn",t.shared)};(Rv=Vv||(Vv={}))[Rv.SemiColon=0]="SemiColon",Rv[Rv.Space=1]="Space";var UO,WO,GO=function(t,n,e,o){var r,i;return{type:"basic",data:(i=Jt(t.settings,n).getOr(e),r=o===Vv.SemiColon?i.replace(/;$/,"").split(";"):i.split(" "),ct(r,function(t){var n=t,e=t,o=t.split("=");return 1<o.length&&(n=o[0],e=o[1]),{title:n,format:e}}))}},XO=[{title:"Left",icon:"align-left",format:"alignleft"},{title:"Center",icon:"align-center",format:"aligncenter"},{title:"Right",icon:"align-right",format:"alignright"},{title:"Justify",icon:"align-justify",format:"alignjustify"}],YO=function(e){var t=tt.some(function(n){return function(){var t=mt(XO,function(t){return e.formatter.match(t.format)}).fold(function(){return"left"},function(t){return t.title.toLowerCase()});ci(n,HO,{icon:"align-"+t})}}),n={type:"basic",data:XO};return{tooltip:"Align",icon:tt.some("align-left"),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getPreviewFor:function(){return function(){return tt.none()}},onAction:PO(e),nodeChangeHandler:t,dataset:n,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},qO=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],KO=function(r){var o=function(){var e=function(t){return t?t.split(",")[0]:""},t=r.queryCommandValue("FontName"),n=i.data,o=t?t.toLowerCase():"";return mt(n,function(t){var n=t.format;return n.toLowerCase()===o||e(n).toLowerCase()===e(o).toLowerCase()}).orThunk(function(){return 0===(t=o).indexOf("-apple-system")&&(n=t.toLowerCase().split(/['"]?\s*,\s*['"]?/),yt(qO,function(t){return-1<n.indexOf(t.toLowerCase())}))?tt.from({title:"System Font",format:o}):tt.none();var t,n})},t=tt.some(function(e){return function(){var t=r.queryCommandValue("FontName"),n=o().fold(function(){return t},function(t){return t.title});ci(e,RO,{text:n})}}),i=GO(r,"font_formats","Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",Vv.SemiColon);return{tooltip:"Fonts",icon:tt.none(),isSelectedFor:function(n){return function(){return o().exists(function(t){return t.format===n})}},getPreviewFor:function(t){return function(){return tt.some({tag:"div",styleAttr:-1===t.indexOf("dings")?"font-family:"+t:""})}},onAction:function(t){return function(){r.undoManager.transact(function(){r.focus(),r.execCommand("FontName",!1,t.format)})}},nodeChangeHandler:t,dataset:i,shouldHide:!1,isInvalid:function(){return!1}}},JO=function(t,n){return/[0-9.]+px$/.test(t)?(e=72*parseInt(t,10)/96,o=n||0,r=Math.pow(10,o),Math.round(e*r)/r+"pt"):t;var e,o,r},$O=function(i){var u=function(){var e=tt.none(),o=a.data,r=i.queryCommandValue("FontSize");if(r)for(var t=function(t){var n=JO(r,t);e=mt(o,function(t){return t.format===r||t.format===n})},n=3;e.isNone()&&0<=n;n--)t(n);return{matchOpt:e,px:r}},t=tt.some(function(r){return function(){var t=u(),n=t.matchOpt,e=t.px,o=n.fold(function(){return e},function(t){return t.title});ci(r,RO,{text:o})}}),a=GO(i,"fontsize_formats","8pt 10pt 12pt 14pt 18pt 24pt 36pt",Vv.Space);return{tooltip:"Font sizes",icon:tt.none(),isSelectedFor:function(n){return function(){return u().matchOpt.exists(function(t){return t.format===n})}},getPreviewFor:function(){return function(){return tt.none()}},onAction:function(t){return function(){i.undoManager.transact(function(){i.focus(),i.execCommand("FontSize",!1,t.format)})}},nodeChangeHandler:t,dataset:a,shouldHide:!1,isInvalid:function(){return!1}}},QO=function(e,t,n){var o=n.parents,r=t();return on(o,function(n){return mt(r,function(t){return e.formatter.matchNode(n,t.format)})}).orThunk(function(){return e.formatter.match("p")?tt.some({title:"Paragraph",format:"p"}):tt.none()})},ZO=function(o){var t=tt.some(function(e){return function(t){var n=QO(o,function(){return r.data},t).fold(function(){return"Paragraph"},function(t){return t.title});ci(e,RO,{text:n})}}),r=GO(o,"block_formats","Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",Vv.SemiColon);return{tooltip:"Blocks",icon:tt.none(),isSelectedFor:function(t){return function(){return o.formatter.match(t)}},getPreviewFor:function(n){return function(){var t=o.formatter.get(n);return tt.some({tag:0<t.length&&(t[0].inline||t[0].block)||"div",styleAttr:o.formatter.getCssText(n)})}},onAction:PO(o),nodeChangeHandler:t,dataset:r,shouldHide:!1,isInvalid:function(t){return!o.formatter.canApply(t.format)}}},tE=function(i){var t=tt.some(function(e){var o=function(t){var n=t.items;return n!==undefined&&0<n.length?bt(n,o):[{title:t.title,format:t.format}]},r=bt(BC(i),o);return function(t){var n=QO(i,function(){return r},t).fold(function(){return"Paragraph"},function(t){return t.title});ci(e,RO,{text:n})}});return{tooltip:"Formats",icon:tt.none(),isSelectedFor:function(t){return function(){return i.formatter.match(t)}},getPreviewFor:function(n){return function(){var t=i.formatter.get(n);return t!==undefined?tt.some({tag:0<t.length&&(t[0].inline||t[0].block)||"div",styleAttr:i.formatter.getCssText(n)}):tt.none()}},onAction:PO(i),nodeChangeHandler:t,shouldHide:i.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!i.formatter.canApply(t.format)}}},nE={file:{title:"File",items:"newdocument restoredraft | preview | print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable tableprops deletetable row column cell"},help:{title:"Help",items:"help"}},eE=function(t,n,e,o){return NO({text:t.text,icon:t.icon,tooltip:t.tooltip,role:o,fetch:function(n){t.fetch(function(t){n(db(t,Yp.CLOSE_ON_EXECUTE,e.providers))})},onAttach:function(){},onDetach:function(){},columns:1,presets:"normal",classes:[]},n,e)},oE=function(t){return"string"==typeof t?t.split(" "):t},rE=function(u,a){var c=Xt(nE,a.menus),n=0<Tt(a.menus).length,t=a.menubar===undefined||!0===a.menubar?oE("file edit view insert format tools table help"):oE(!1===a.menubar?"":a.menubar),e=ft(t,function(t){return n&&a.menus.hasOwnProperty(t)&&a.menus[t].hasOwnProperty("items")||nE.hasOwnProperty(t)}),o=ct(e,function(t){var n,e,o,r,i=c[t];return n={title:i.title,items:oE(i.items)},e=a,r=(o=u,o.getParam("removed_menuitems","")).split(/[ ,]/),{text:n.title,getItems:function(){return bt(n.items,function(t){var n=t.toLowerCase();return 0===n.trim().length?[]:ut(r,function(t){return t===n})?[]:"separator"===n||"|"===n?[{type:"separator"}]:e.menuItems[n]?[e.menuItems[n]]:[]})}}});return ft(o,function(t){return 0<t.getItems().length&&ut(t.getItems(),function(t){return"separator"!==t.type})})},iE=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],uE=function(o,r){return function(t,n){var e=o(t).fold(H(Lt.error,Tr),Lt.value).getOrDie();return r(e,n)}},aE={button:uE(Gk,function(t,n){return e=t,o=n.backstage.shared.providers,CO(e,o,[]);var e,o}),togglebutton:uE(Jk,function(t,n){return e=t,o=n.backstage.shared.providers,kO(e,o,[]);var e,o}),menubutton:uE(function(t){return kr("menubutton",Xk,t)},function(t,n){return eE(t,"tox-tbtn",n.backstage.shared,tt.none())}),splitbutton:uE(function(t){return kr("SplitButton",Yk,t)},function(t,n){return OO(t,n.backstage.shared)}),styleSelectButton:function(t,n){return e=t,r=(o=n.backstage).styleselect,jO(e,o,r,tE(e));var e,o,r},fontsizeSelectButton:function(t,n){return e=t,o=n.backstage,r=$O(e),jO(e,o,r.dataset,r);var e,o,r},fontSelectButton:function(t,n){return e=t,o=n.backstage,r=KO(e),jO(e,o,r.dataset,r);var e,o,r},formatButton:function(t,n){return e=t,o=n.backstage,r=ZO(e),jO(e,o,r.dataset,r);var e,o,r},alignMenuButton:function(t,n){return e=t,o=n.backstage,r=YO(e),jO(e,o,r.dataset,r);var e,o,r}},cE={styleselect:aE.styleSelectButton,fontsizeselect:aE.fontsizeSelectButton,fontselect:aE.fontSelectButton,formatselect:aE.formatButton,align:aE.alignMenuButton},sE=function(t){var n=t.split("|");return ct(n,function(t){return{items:t.trim().split(" ")}})},fE=function(t){return!1===t.toolbar?[]:t.toolbar===undefined||!0===t.toolbar?(e=t.buttons,n=ct(iE,function(t){var n=ft(t.items,function(t){return Vt(e,t)||Vt(cE,t)});return{name:t.name,items:n}}),ft(n,function(t){return 0<t.items.length})):K(t.toolbar)?sE(t.toolbar):$(t.toolbar)&&K(t.toolbar[0])?sE(t.toolbar.join(" | ")):t.toolbar;var e,n},lE=function(n,e,o,r,t){return It(e,o.toLowerCase()).orThunk(function(){return t.bind(function(t){return on(t,function(t){return It(e,t+o.toLowerCase())})})}).fold(function(){return It(cE,o.toLowerCase()).map(function(t){return t(n,r)}).orThunk(function(){return tt.none()})},function(t){return e=r,It(aE,(n=t).type).fold(function(){return b.console.error("skipping button defined by",n),tt.none()},function(t){return tt.some(t(n,e))});var n,e})},dE=function(e,o,r,i){var t=fE(o),n=ct(t,function(t){var n=bt(t.items,function(t){return 0===t.trim().length?[]:lE(e,o.buttons,t,r,i).toArray()});return{title:tt.from(e.translate(t.name)),items:n}});return ft(n,function(t){return 0<t.items.length})},mE=function(i,t,u,a){var n,e,c=ju((n={sink:u,onEscape:function(){return i.focus(),tt.some(!0)}},e=nn([]),kg.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(t){e.set([]),kg.getContent(t).each(function(t){Du(t.element(),"visibility")}),hu(t.element(),MO),Du(t.element(),"width")},inlineBehaviours:ga([sg("context-toolbar-events",[Ai(xn(),function(t){kg.getContent(t).each(function(){}),hu(t.element(),MO),Du(t.element(),"width")}),Ci(_O,function(n,e){Du(n.element(),"width");var t=_a(n.element());kg.setContent(n,e.event().contents()),gu(n.element(),MO);var o=_a(n.element());Cu(n.element(),"width",t+"px"),kg.getContent(n).each(function(t){e.event().focus().bind(function(t){return Nl(t),Pl(n.element())}).orThunk(function(){return xm.focusIn(t),zl()})}),Mg.setTimeout(function(){Cu(n.element(),"width",o+"px")},0)}),Ci(DO,function(t,n){kg.getContent(t).each(function(t){e.set(e.get().concat([{bar:t,focus:zl()}]))}),ci(t,_O,{contents:n.event().forwardContents(),focus:tt.none()})}),Ci(AO,function(n){Ot(e.get()).each(function(t){e.set(e.get().slice(0,e.get().length-1)),ci(n,_O,{contents:Uu(t.bar),focus:t.focus})})})]),xm.config({mode:"special",onEscape:function(t){return Ot(e.get()).fold(function(){return n.onEscape()},function(){return ai(t,AO),tt.some(!0)})}})]),lazySink:function(){return Lt.value(n.sink)}}))),s=function(){return tt.some(xe.fromDom(i.contentAreaContainer))};i.on("init",function(){var t=i.getBody().ownerDocument.defaultView,n=Ih(xe.fromDom(t),"scroll",function(){f.get().each(function(t){var n=l.get().getOr(i.selection.getNode()).getBoundingClientRect(),e=i.contentAreaContainer.getBoundingClientRect(),o=n.bottom<0,r=n.top>e.height;o||r?Cu(c.element(),"display","none"):(Du(c.element(),"display"),Vs.positionWithin(u,t,c,s()))})});i.on("remove",function(){n.unbind()})});var f=nn(tt.none()),l=nn(tt.none()),o=nn(null),d=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:ga([xm.config({mode:"acyclic"}),sg("pop-dialog-wrap-events",[_i(function(t){i.shortcuts.add("ctrl+F9","focus statusbar",function(){return xm.focusIn(t)})}),Mi(function(){i.shortcuts.remove("ctrl+F9")})])])}},m=Sn(function(){return VO(t,function(t){var n=g(t);ci(c,DO,{forwardContents:d(n)})})}),g=function(t){var n,e,o=i.ui.registry.getAll().buttons,r=m();return"contexttoolbar"===t.type?(n=Xt(o,r.formNavigators),e=dE(i,{buttons:n,toolbar:t.items},a,tt.some(["form:"])),jk({uid:Oo("context-toolbar"),initGroups:e,onEscape:tt.none,cyclicKeying:!0,backstage:a.backstage,getSink:function(){return Lt.error("")}})):BO(t,a.backstage)};i.on("contexttoolbar-show",function(n){var t=m();Jt(t.lookupTable,n.toolbarKey).each(function(t){b(t,n.target===i?tt.none():tt.some(n)),kg.getContent(c).each(xm.focusIn)})});var r={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},p={maxHeightFunction:mc()},h={bubble:bc(12,0,r),layouts:{onLtr:function(){return[Fc]},onRtl:function(){return[Ic]}},overrides:p},v={bubble:bc(0,12,r),layouts:{onLtr:function(){return[_c,Mc,Dc,Tc,Ac,Bc]},onRtl:function(){return[_c,Mc,Ac,Bc,Dc,Tc]}},overrides:p},b=function(t,n){x();var e,o,r,i=g(t),u=(o=n.map(xe.fromDom),r="node"===(e=t.position)?a.backstage.shared.anchors.node(o):a.backstage.shared.anchors.cursor(),Gt(r,"line"===e?h:v));f.set(tt.some(u)),l.set(n),kg.showWithin(c,u,d(i),s()),Du(c.element(),"display")},y=function(){var t=m();IO(t,i).fold(function(){f.set(tt.none()),kg.hide(c)},function(t){b(t.toolbarApi,tt.some(t.elem.dom()))})},x=function(){var t=o.get();null!==t&&(Mg.clearTimeout(t),o.set(null))},w=function(t){x(),o.set(t)};i.on("init",function(){i.on("click keyup setContent ObjectResized ResizeEditor",function(){w(Mg.setEditorTimeout(i,y,0))}),i.on("focusout",function(){Mg.setEditorTimeout(i,function(){Pl(u.element()).isNone()&&Pl(c.element()).isNone()&&(f.set(tt.none()),kg.hide(c))},0)}),i.on("nodeChange",function(){Pl(c.element()).fold(function(){w(Mg.setEditorTimeout(i,y,0))},function(){})})})},gE=function(t,e,o){var n=Ih(xe.fromDom(b.document),"mousedown",function(n){st([e,o],function(t){t.broadcastOn([nf()],{target:n.target()})})}),r=Ih(xe.fromDom(b.document),"touchstart",function(n){st([e,o],function(t){t.broadcastOn([nf()],{target:n.target()})})}),i=Ih(xe.fromDom(b.document),"mouseup",function(n){0===n.raw().button&&st([e,o],function(t){t.broadcastOn([ef()],{target:n.target()})})}),u=function(n){st([e,o],function(t){t.broadcastOn([nf()],{target:xe.fromDom(n.target)})})};t.on("mousedown",u),t.on("touchstart",u);var a=function(n){0===n.button&&st([e,o],function(t){t.broadcastOn([ef()],{target:xe.fromDom(n.target)})})};t.on("mouseup",a);var c=function(n){st([e,o],function(t){t.broadcastEvent(ce(),n)})};t.on("ScrollWindow",c);var s=function(n){st([e,o],function(t){t.broadcastEvent(se(),n)})};t.on("ResizeWindow",s),t.on("remove",function(){t.off("mousedown",u),t.off("touchstart",u),t.off("mouseup",a),t.off("ResizeWindow",s),t.off("ScrollWindow",c),n.unbind(),r.unbind(),i.unbind()}),t.on("detach",function(){Gs(e),Gs(o),e.destroy(),o.destroy()})},pE=ol,hE=Pf,vE=sl({factory:function(o){var t={focus:xm.focusIn,setMenus:function(t,n){var e=ct(n,function(n){var t={text:tt.some(n.text),icon:tt.none(),tooltip:tt.none(),fetch:function(t){t(n.getItems())}};return eE(t,"tox-mbtn",{getSink:o.getSink,providers:o.providers},tt.some("menuitem"))});Om.set(t,e)}};return{uid:o.uid,dom:o.dom,components:[],behaviours:ga([Om.config({}),sg("menubar-events",[_i(function(t){o.onSetup(t)}),Ci(dn(),function(e,t){Gu(e.element(),".tox-mbtn--active").each(function(n){Xu(t.event().target(),".tox-mbtn").each(function(t){Re(n,t)||e.getSystem().getByDom(n).each(function(n){e.getSystem().getByDom(t).each(function(t){yy.expand(t),yy.close(n),Um.focus(t)})})})})}),Ci(me(),function(e,t){t.event().prevFocus().bind(function(t){return e.getSystem().getByDom(t).toOption()}).each(function(n){t.event().newFocus().bind(function(t){return e.getSystem().getByDom(t).toOption()}).each(function(t){yy.isOpen(n)&&(yy.expand(t),yy.close(n))})})})]),xm.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return o.onEscape(t),tt.some(!0)}}),Ab.config({})]),apis:t,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[Rr("dom"),Rr("uid"),Rr("onEscape"),Rr("getSink"),Rr("providers"),Kr("onSetup",Q)],apis:{focus:function(t,n){t.focus(n)},setMenus:function(t,n,e){t.setMenus(n,e)}}}),bE="container",yE=[af("slotBehaviours",[])],xE=function(t){return"<alloy.field."+t+">"},wE=function(r,t){var e,n=function(){return Zf(r)},o=function(e,o){return void 0===o&&(o=undefined),function(t,n){return Kf(t,r,n).map(function(t){return e(t,n)}).getOr(o)}},i=function(t){return"true"!==uo(t.element(),"aria-hidden")},u=o(i,!1),a=o(function(t,n){if(i(t)){var e=t.element();Cu(e,"display","none"),ro(e,"aria-hidden","true"),ci(t,ge(),{name:n,visible:!1})}}),c=(e=a,function(n,t){st(t,function(t){return e(n,t)})}),s=o(function(t,n){if(!i(t)){var e=t.element();Du(e,"display"),co(e,"aria-hidden"),ci(t,ge(),{name:n,visible:!0})}}),f={getSlotNames:n,getSlot:function(t,n){return Kf(t,r,n)},isShowing:u,hideSlot:a,hideAllSlots:function(t){return c(t,n())},showSlot:s};return{uid:r.uid,dom:r.dom,components:t,behaviours:cf(r.slotBehaviours),apis:f}},SE=At({getSlotNames:function(t,n){return t.getSlotNames(n)},getSlot:function(t,n,e){return t.getSlot(n,e)},isShowing:function(t,n,e){return t.isShowing(n,e)},hideSlot:function(t,n,e){return t.hideSlot(n,e)},hideAllSlots:function(t,n){return t.hideAllSlots(n)},showSlot:function(t,n,e){return t.showSlot(n,e)}},$i),CE=To({},SE,{sketch:function(t){var e,n=(e=[],{slot:function(t,n){return e.push(t),Wf(bE,xE(t),n)},record:function(){return e}}),o=t(n),r=n.record(),i=ct(r,function(t){return Vf({name:t,pname:xE(t)})});return il(bE,yE,i,wE,o)}}),kE=dr([Xr("icon"),Xr("tooltip"),ni("onShow",Q),ni("onHide",Q),ni("onSetup",function(){return Q})]),OE=function(t){return{element:function(){return t.element().dom()}}},EE=function(e,o){var r=ct(Tt(o),function(t){var n=o[t],e=Or(kr("sidebar",kE,n));return{name:t,getApi:OE,onSetup:e.onSetup,onShow:e.onShow,onHide:e.onHide}});return ct(r,function(t){var n=nn(Q);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:Qg([Up(t,n),Wp(t,n),Ci(ge(),function(n,t){var e=t.event();mt(r,function(t){return t.name===e.name()}).each(function(t){(e.visible()?t.onShow:t.onHide)(t.getApi(n))})})])})})},TE=function(t,e){gl.getCurrent(t).each(function(t){return Om.set(t,[(n=e,CE.sketch(function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:EE(t,n),slotBehaviours:Qg([_i(function(t){return CE.hideAllSlots(t)})])}}))]);var n})},BE=function(t){return gl.getCurrent(t).bind(function(t){return Ok.isGrowing(t)||Ok.hasGrown(t)?gl.getCurrent(t).bind(function(n){return mt(CE.getSlotNames(n),function(t){return CE.isShowing(n,t)})}):tt.none()})},DE=Oo("FixSizeEvent"),AE=Oo("AutoSizeEvent"),_E=hE.optional({factory:vE,name:"menubar",schema:[Rr("dom"),Rr("getSink")]}),ME=hE.optional({factory:{sketch:function(t){return(t.split===vh.sliding||t.split===vh.floating?Lk:jk)({uid:t.uid,onEscape:function(){return t.onEscape(),tt.some(!0)},cyclicKeying:!1,initGroups:[],getSink:t.getSink,backstage:t.backstage,moreDrawerData:{floating:t.split===vh.floating,lazyToolbar:t.lazyToolbar,lazyMoreButton:t.lazyMoreButton}})}},name:"toolbar",schema:[Rr("dom"),Rr("onEscape"),Rr("getSink")]}),FE=hE.optional({name:"socket",schema:[Rr("dom")]}),IE=hE.optional({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:ga([Ab.config({}),Um.config({}),Ok.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(t){gl.getCurrent(t).each(CE.hideAllSlots),ai(t,AE)},onGrown:function(t){ai(t,AE)},onStartGrow:function(t){ci(t,DE,{width:Tu(t.element(),"width").getOr("")})},onStartShrink:function(t){ci(t,DE,{width:_a(t.element())+"px"})}}),Om.config({}),gl.config({find:function(t){var n=Om.contents(t);return kt(n)}})])}],behaviours:ga([Bw(0),sg("sidebar-sliding-events",[Ci(DE,function(t,n){Cu(t.element(),"width",n.event().width())}),Ci(AE,function(t){Du(t.element(),"width")})])])}}},name:"sidebar",schema:[Rr("dom")]}),VE=fl({name:"OuterContainer",factory:function(e,t){var n={getSocket:function(t){return pE.getPart(t,e,"socket")},setSidebar:function(t,n){pE.getPart(t,e,"sidebar").each(function(t){return TE(t,n)})},toggleSidebar:function(t,o){pE.getPart(t,e,"sidebar").each(function(t){return n=t,e=o,void gl.getCurrent(n).each(function(n){gl.getCurrent(n).each(function(t){Ok.hasGrown(n)?CE.isShowing(t,e)?Ok.shrink(n):(CE.hideAllSlots(t),CE.showSlot(t,e)):(CE.hideAllSlots(t),CE.showSlot(t,e),Ok.grow(n))})});var n,e})},whichSidebar:function(t){return pE.getPart(t,e,"sidebar").bind(BE).getOrNull()},getToolbar:function(t){return pE.getPart(t,e,"toolbar")},setToolbar:function(t,n){pE.getPart(t,e,"toolbar").each(function(t){Bk.setGroups(t,n)})},getMoreButton:function(t){return pE.getPart(t,e,"toolbar").bind(function(t){return Hk.getMoreButton(t)})},focusToolbar:function(t){pE.getPart(t,e,"toolbar").each(function(t){xm.focusIn(t)})},setMenubar:function(t,n){pE.getPart(t,e, "menubar").each(function(t){vE.setMenus(t,n)})},focusMenubar:function(t){pE.getPart(t,e,"menubar").each(function(t){vE.focus(t)})}};return{uid:e.uid,dom:e.dom,components:t,apis:n,behaviours:e.behaviours}},configFields:[Rr("dom"),Rr("behaviours")],partFields:[_E,ME,FE,IE],apis:{getSocket:function(t,n){return t.getSocket(n)},setSidebar:function(t,n,e){t.setSidebar(n,e)},toggleSidebar:function(t,n,e){t.toggleSidebar(n,e)},whichSidebar:function(t,n){return t.whichSidebar(n)},getToolbar:function(t,n){return t.getToolbar(n)},setToolbar:function(t,n,e){var o=ct(e,function(t){return zk(t)});t.setToolbar(n,o)},getMoreButton:function(t,n){return t.getMoreButton(n)},setMenubar:function(t,n,e){t.setMenubar(n,e)},focusMenubar:function(t,n){t.focusMenubar(n)},focusToolbar:function(t,n){t.focusToolbar(n)}}}),RE=function(t){return t.fire("SkinLoaded")},HE=function(t){return t.fire("ResizeEditor")},NE=function(t){return t.fire("ResizeContent")},zE=function(t){var n=function(){t._skinLoaded=!0,RE(t)};return function(){t.initialized?n():t.on("init",n)}},PE=function(t,n){var e,o=function(t){var n=t.settings,e=n.skin,o=n.skin_url;if(!1!==e){var r=e||"oxide";o=o?t.documentBaseURI.toAbsolute(o):Zh.baseURL+"/skins/ui/"+r}return o}(n);o&&(e=o+"/skin.min.css",n.contentCSS.push(o+(t?"/content.inline":"/content")+".min.css")),0==(!1===n.getParam("skin"))&&e?Qh.DOM.styleSheetLoader.load(e,zE(n)):zE(n)()},LE=h(PE,!1),jE=h(PE,!0),UE=Qh.DOM,WE=function(t){return function(n){var e=t.outerContainer;Ve("*",e.element()).forEach(function(t){e.getSystem().getByDom(t).each(function(t){t.hasConfigured(Np)&&("readonly"===n.mode?Np.disable(t):Np.enable(t))})})}},GE={render:function(r,i,n,u,t){var e,o;LE(r),e=xe.fromDom(t.targetNode),o=i.mothership,Ws(e,o,We),Us(gi(),i.uiMothership),r.on("init",function(){VE.setToolbar(i.outerContainer,dE(r,n,{backstage:u},tt.none())),VE.setMenubar(i.outerContainer,rE(r,n)),VE.setSidebar(i.outerContainer,n.sidebar),r.readonly&&WE(i)({mode:"readonly"});var e=nn(Oa(0,0)),o=r.contentWindow,t=function(){var t=e.get();if(t.left()!==o.innerWidth||t.top()!==o.innerHeight){var n=Oa(o.innerWidth,o.innerHeight);e.set(n),NE(r)}};UE.bind(o,"resize",t),r.on("remove",function(){UE.unbind(o,"resize",t)})});var a=VE.getSocket(i.outerContainer).getOrDie("Could not find expected socket element");r.on("SwitchMode",WE(i)),r.getParam("readonly",!1,"boolean")&&r.setMode("readonly"),r.addCommand("ToggleSidebar",function(t,n){VE.toggleSidebar(i.outerContainer,n),r.fire("ToggleSidebar")}),r.addQueryValueHandler("ToggleSidebar",function(){return VE.whichSidebar(i.outerContainer)});var c=iv(r);return c!==vh.sliding&&c!==vh.floating||r.on("ResizeContent",function(){VE.getToolbar(i.outerContainer).each(Hk.refresh)}),{iframeContainer:a.element().dom(),editorContainer:i.outerContainer.element().dom()}},getBehaviours:function(){return[]}},XE=function(e,n){return Pe(e).orThunk(function(){var t=xe.fromTag("span");Ue(e,t);var n=Pe(t);return Ke(t),n}).map(function(t){return Ta(t).translate(-n.left(),-n.top())}).getOrThunk(function(){return Oa(0,0)})},YE=jt([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),qE=function(n){return function(t){return t.translate(-n.left(),-n.top())}},KE=function(n){return function(t){return t.translate(n.left(),n.top())}},JE=function(e){return function(t,n){return dt(e,function(t,n){return n(t)},Oa(t,n))}},$E=function(t,n,e){return t.fold(JE([KE(e),qE(n)]),JE([qE(n)]),JE([]))},QE=function(t,n,e){return t.fold(JE([KE(e)]),JE([]),JE([KE(n)]))},ZE=function(t,n,e){return t.fold(JE([]),JE([qE(e)]),JE([KE(n),qE(e)]))},tT=function(t,n,e){return t.fold(function(t,n){return{position:"absolute",left:t+"px",top:n+"px"}},function(t,n){return{position:"absolute",left:t-e.left()+"px",top:n-e.top()+"px"}},function(t,n){return{position:"fixed",left:t+"px",top:n+"px"}})},nT=YE.offset,eT=YE.absolute,oT=YE.fixed,rT=function(t,n){gu(t.element(),n.transitionClass),hu(t.element(),n.fadeOutClass),gu(t.element(),n.fadeInClass)},iT=function(t,n){gu(t.element(),n.transitionClass),hu(t.element(),n.fadeInClass),gu(t.element(),n.fadeOutClass)},uT=function(t,n){return t.y()>=n.y()&&t.bottom()<=n.bottom()},aT=function(t,n){return ao(t,n)?tt.some(parseInt(uo(t,n),10)):tt.none()},cT=function(o,r,i){return(u=o,t=r,n=u.element(),aT(n,t.leftAttr).bind(function(o){return aT(n,t.topAttr).map(function(t){var n=_a(u.element()),e=Ia(u.element());return Ka(o,t,n,e)})})).bind(function(t){return uT(t,i)?(n=r,e=o.element(),co(e,n.leftAttr),co(e,n.topAttr),tt.some(eT(t.x(),t.y()))):tt.none();var n,e});var u,t,n},sT=function(t,n,e,o,r){var i=Ta(t.element()),u=Ka(i.left(),i.top(),_a(t.element()),Ia(t.element()));if(uT(u,e))return tt.none();a=t,c=n,s=i.left(),f=i.top(),l=a.element(),ro(l,c.leftAttr,s),ro(l,c.topAttr,f);var a,c,s,f,l,d=eT(i.left(),i.top()),m=$E(d,o,r),g=eT(e.x(),e.y()),p=$E(g,o,r),h=u.y()<=e.y()?p.top():p.top()+e.height()-u.height();return tt.some(oT(m.left(),h))},fT=function(i,t){var u=t.lazyViewport(i);t.contextual.each(function(r){r.lazyContext(i).each(function(t){var n,e,o=Ja(t);e=u,((n=o).y()<e.bottom()&&n.bottom()>e.y()?rT:iT)(i,r)})});var n,e,o,r,a,c=He(i.element()),s=Da(c),f=XE(i.element(),s);(n=i,e=t,o=u,r=s,a=f,Tu(n.element(),"position").is("fixed")?cT(n,e,o):sT(n,e,o,r,a)).each(function(t){var n=tT(t,0,f);ku(i.element(),n)})},lT=Object.freeze({refresh:fT}),dT=Object.freeze({events:function(o){return xi([Ci(xn(),function(n,e){o.contextual.each(function(t){Re(n.element(),e.event().target())&&(hu(n.element(),t.transitionClass),e.stop())})}),Ci(ce(),function(t){fT(t,o)})])}}),mT=[qr("contextual",[Rr("fadeInClass"),Rr("fadeOutClass"),Rr("transitionClass"),Rr("lazyContext")]),Kr("lazyViewport",function(){var t=Da();return Ka(t.left(),t.top(),b.window.innerWidth,b.window.innerHeight)}),Rr("leftAttr"),Rr("topAttr")],gT=ha({fields:mT,name:"docking",active:dT,apis:lT}),pT={render:function(e,n,o,r){var i,t=Qh.DOM,u=av(e),a=iv(e),c=a===vh.sliding||a===vh.floating,s=a===vh.floating;jE(e);var f=function(t){var n=c?t.fold(function(){return 0},function(t){return 1<t.components().length?Ia(t.components()[1].element()):0}):0;ku(i.element(),function(t){void 0===t&&(t=0);var n=Ta(xe.fromDom(e.getBody()));return{top:Math.round(n.top()-Ia(i.element()))+t+"px",left:Math.round(n.left())+"px"}}(n)),gT.refresh(i)},l=function(){var t=VE.getToolbar(n.outerContainer);c&&t.each(Hk.refresh),u||f(t)},d=function(){Cu(n.outerContainer.element(),"display","flex"),t.addClass(e.getBody(),"mce-edit-focus"),l(),s&&VE.getToolbar(n.outerContainer).each(function(t){Hk.getOverflow(t).each(function(t){hu(t.element(),"tox-toolbar__overflow--closed")})})},m=function(){n.outerContainer&&(Cu(n.outerContainer.element(),"display","none"),t.removeClass(e.getBody(),"mce-edit-focus"),s&&VE.getToolbar(n.outerContainer).each(function(t){Hk.getOverflow(t).each(function(t){gu(t.element(),"tox-toolbar__overflow--closed")})}))},g=function(){if(i)d();else{i=n.outerContainer;var t=uv(e).getOr(gi());Us(t,n.mothership),Us(t,n.uiMothership),VE.setToolbar(n.outerContainer,dE(e,o,{backstage:r},tt.none())),VE.setMenubar(n.outerContainer,rE(e,o)),u||Cu(i.element(),"position","absolute"),l(),d(),e.on("nodeChange ResizeWindow",l),e.on("activate",d),e.on("deactivate",m),e.nodeChanged()}};return e.on("focus",g),e.on("blur hide",m),e.on("init",function(){e.hasFocus()&&g()}),{editorContainer:n.outerContainer.element().dom()}},getBehaviours:function(t){return av(t)?[]:[gT.config({leftAttr:"data-dock-left",topAttr:"data-dock-top",contextual:{lazyContext:function(){return tt.from(t).map(function(t){return xe.fromDom(t.getBody())})},fadeInClass:"tox-toolbar-dock-fadein",fadeOutClass:"tox-toolbar-dock-fadeout",transitionClass:"tox-toolbar-dock-transition"}}),Um.config({})]}},hT=function(t,n){return{anchor:"makeshift",x:t,y:n}},vT=function(t,n){var e,o,r,i=Qh.DOM.getPos(t);return e=n,o=i.x,r=i.y,hT(e.x+o,e.y+r)},bT=function(t,n){return"contextmenu"===n.type?t.inline?hT((o=n).pageX,o.pageY):vT(t.getContentAreaContainer(),hT((e=n).clientX,e.clientY)):yT(t);var e,o},yT=function(t){return{anchor:"selection",root:xe.fromDom(t.selection.getNode())}},xT=function(t){return"string"==typeof t?t.split(/[ ,]/):t},wT=function(t){return t.settings.contextmenu_never_use_native||!1},ST=function(t){return e="contextmenu",o="link image imagetools table spellchecker configurepermanentpen",r=(n=t).ui.registry.getAll().contextMenus,It(n.settings,e).map(xT).getOrThunk(function(){return ft(xT(o),function(t){return Vt(r,t)})});var n,e,o,r},CT=function(t){return K(t)?"|"===t:"separator"===t.type},kT={type:"separator"},OT=function(n){if(K(n))return n;switch(n.type){case"separator":return kT;case"submenu":return{type:"nestedmenuitem",text:n.text,icon:n.icon,getSubmenuItems:function(){var t=n.getSubmenuItems();return K(t)?t:ct(t,OT)}};default:return{type:"menuitem",text:n.text,icon:n.icon,onAction:(e=n.onAction,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e()})}}var e},ET=function(t,n){if(0===n.length)return t;var e=Ot(t).filter(function(t){return!CT(t)}).fold(function(){return[]},function(){return[kT]});return t.concat(e).concat(n).concat([kT])},TT=function(d,t,m){var g=ju(kg.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return d.focus()},fireDismissalEventInstead:{},inlineBehaviours:ga([sg("dismissContextMenu",[Ci(de(),function(t){tf.close(t),d.focus()})])])}));d.on("init",function(){d.on("contextmenu",function(n){if(t=d,!n.ctrlKey||wT(t)){var t,e,r,i,o,u=2!==n.button||n.target===d.getBody(),a=u?(e=d,{anchor:"node",node:tt.some(xe.fromDom(e.selection.getNode())),root:xe.fromDom(e.getBody())}):bT(d,n),c=d.ui.registry.getAll(),s=ST(d),f=u?d.selection.getStart(!0):n.target,l=(r=c.contextMenus,i=f,0<(o=dt(s,function(t,n){if(Vt(r,n)){var e=r[n].update(i);if(K(e))return ET(t,e.split(" "));if(0<e.length){var o=ct(e,OT);return ET(t,o)}return t}return t.concat([n])},[])).length&&CT(o[o.length-1])&&o.pop(),o);db(l,Yp.CLOSE_ON_EXECUTE,m.providers).map(function(t){n.preventDefault(),kg.showMenuAt(g,a,{menu:{markers:lh("normal")},data:t})})}})})},BT=function(t){return/^[0-9\.]+(|px)$/i.test(""+t)?tt.some(parseInt(t,10)):tt.none()},DT=function(t){return ot(t)?t+"px":t},AT="data-initial-z-index",_T=function(t,n){var e;t.getSystem().addToGui(n),ze((e=n).element()).each(function(n){Tu(n,"z-index").each(function(t){ro(n,AT,t)}),Cu(n,"z-index",Ou(e.element(),"z-index"))})},MT=function(t){ze(t.element()).each(function(t){var n=uo(t,AT);ao(t,AT)?Cu(t,"z-index",n):Du(t,"z-index"),co(t,AT)}),t.getSystem().removeFromGui(t)},FT=function(t,n,e,o){return(r=t,i=n,u=r.element(),a=parseInt(uo(u,i.leftAttr),10),c=parseInt(uo(u,i.topAttr),10),isNaN(a)||isNaN(c)?tt.none():tt.some(Oa(a,c))).fold(function(){return e},function(t){return oT(t.left()+o.left(),t.top()+o.top())});var r,i,u,a,c},IT=function(t,n,e,o,r,i){var u,a,c,s=FT(t,n,e,o),f=RT(t,n,s,r,i),l=$E(s,r,i);return u=n,a=l,c=t.element(),ro(c,u.leftAttr,a.left()+"px"),ro(c,u.topAttr,a.top()+"px"),f.fold(function(){return{coord:oT(l.left(),l.top()),extra:tt.none()}},function(t){return{coord:t.output(),extra:t.extra()}})},VT=function(t,n){var e,o;e=n,o=t.element(),co(o,e.leftAttr),co(o,e.topAttr)},RT=function(t,n,p,h,v){var e=n.getSnapPoints(t);return on(e,function(t){var n,e,o,r,i,u,a,c,s,f,l,d,m,g=t.sensor();return n=p,e=g,o=t.range().left(),r=t.range().top(),a=QE(n,i=h,u=v),c=QE(e,i,u),Math.abs(a.left()-c.left())<=o&&Math.abs(a.top()-c.top())<=r?tt.some({output:Z((s=t.output(),f=p,l=h,d=v,m=function(o,r){return function(t,n){var e=o(f,l,d);return r(t.getOr(e.left()),n.getOr(e.top()))}},s.fold(m(ZE,YE.offset),m(QE,YE.absolute),m($E,YE.fixed)))),extra:t.extra}):tt.none()})},HT=function(e,t,i,u,a,c){return t.fold(function(){var t,e,o,n=(t=i,e=c.left(),o=c.top(),t.fold(function(t,n){return YE.offset(t+e,n+o)},function(t,n){return YE.absolute(t+e,n+o)},function(t,n){return YE.fixed(t+e,n+o)})),r=$E(n,u,a);return oT(r.left(),r.top())},function(n){var t=IT(e,n,i,c,u,a);return t.extra.each(function(t){n.onSensor(e,t)}),t.coord})},NT=function(t,n,e){var o,r=n.getTarget(t.element());if(n.repositionTarget){var i=He(t.element()),u=Da(i),a=XE(r,u),c=Tu(o=r,"left").bind(function(e){return Tu(o,"top").bind(function(n){return Tu(o,"position").map(function(t){return("fixed"===t?oT:nT)(parseInt(e,10),parseInt(n,10))})})}).getOrThunk(function(){var t=Ta(o);return eT(t.left(),t.top())}),s=HT(t,n.snaps,c,u,a,e),f=tT(s,0,a);ku(r,f)}n.onDrag(t,r,e)},zT=qr("snaps",[Rr("getSnapPoints"),ea("onSensor"),Rr("leftAttr"),Rr("topAttr"),Kr("lazyViewport",function(){var t=Da();return{x:t.left,y:t.top,width:Z(b.window.innerWidth),height:Z(b.window.innerHeight),bottom:Z(t.top()+b.window.innerHeight),right:Z(t.left()+b.window.innerWidth)}})]),PT=Object.freeze({getData:function(t){return tt.from(Oa(t.x(),t.y()))},getDelta:function(t,n){return Oa(n.left()-t.left(),n.top()-t.top())}}),LT=[Kr("useFixed",!1),Rr("blockerClass"),Kr("getTarget",U),Kr("onDrag",Q),Kr("repositionTarget",!0),ea("onDrop"),zT,ua("dragger",{handlers:function(a,c){return xi([Ci(cn(),function(n,t){if(0===t.event().raw().button){t.stop();var e,o={drop:function(){i()},delayDrop:function(){u.schedule()},forceDrop:function(){i()},move:function(t){u.cancel(),c.update(PT,t).each(function(t){NT(n,a,t)})}},r=n.getSystem().build(Jh.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[a.blockerClass]},events:(e=o,xi([Ci(cn(),e.forceDrop),Ci(ln(),e.drop),Ci(sn(),function(t,n){e.move(n.event())}),Ci(fn(),e.delayDrop)]))})),i=function(){MT(r),a.snaps.each(function(t){VT(n,t)});var t=a.getTarget(n.element());a.onDrop(n,t)},u=s(i,200);c.reset(),_T(n,r)}})])}})],jT=Object.freeze({getData:function(t){var n,e=t.raw().touches;return 1===e.length?(n=e[0],tt.some(Oa(n.clientX,n.clientY))):tt.none()},getDelta:function(t,n){return Oa(n.left()-t.left(),n.top()-t.top())}}),UT=LT,WT=[Kr("useFixed",!1),Kr("getTarget",U),Kr("onDrag",Q),Kr("repositionTarget",!0),Kr("onDrop",Q),zT,ua("dragger",{handlers:function(e,o){return xi([Di(rn()),Ci(un(),function(n,t){t.stop(),o.update(jT,t.event()).each(function(t){NT(n,e,t)})}),Ci(an(),function(n){e.snaps.each(function(t){VT(n,t)});var t=e.getTarget(n.element());o.reset(),e.onDrop(n,t)})])}})],GT=Object.freeze({mouse:UT,touch:WT}),XT=Object.freeze({init:function(){var i=tt.none(),t=Z({});return Zi({readState:t,reset:function(){i=tt.none()},update:function(r,t){return r.getData(t).bind(function(t){return n=r,e=t,o=i.map(function(t){return n.getDelta(t,e)}),i=tt.some(e),o;var n,e,o})}})}}),YT=ba({branchKey:"mode",branches:GT,name:"dragging",active:{events:function(t,n){return t.dragger.handlers(t,n)}},extra:{snap:ke(["sensor","range","output"],["extra"])},state:XT});(WO=UO||(UO={}))[WO.None=0]="None",WO[WO.Both=1]="Both",WO[WO.Vertical=2]="Vertical";var qT,KT,JT,$T,QT,ZT=function(t,n,e,o){var r=t+n,i=e.filter(function(t){return r<t}),u=o.filter(function(t){return t<r});return i.or(u).getOr(r)},tB=function(t,n,e,o,r){var i,u,a={};return a.height=ZT(o,n.top(),nv(t),(i=t,tt.from(i.getParam("max_height")).filter(ot))),e===UO.Both&&(a.width=ZT(r,n.left(),tv(t),(u=t,tt.from(u.getParam("max_width")).filter(ot)))),a},nB=function(t){if(1===t.nodeType){if("BR"===t.nodeName||t.getAttribute("data-mce-bogus"))return!0;if("bookmark"===t.getAttribute("data-mce-type"))return!0}return!1},eB=function(i,u){return u.delimiter||(u.delimiter="\xbb"),{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:ga([xm.config({mode:"flow",selector:"div[role=button]"}),Ab.config({}),Om.config({}),sg("elementPathEvents",[_i(function(r){i.shortcuts.add("alt+F11","focus statusbar elementpath",function(){return xm.focusIn(r)}),i.on("nodeChange",function(t){var n,o,e=function(t){for(var n=[],e=t.length;0<e--;){var o=t[e];if(1===o.nodeType&&!nB(o)){var r=i.fire("ResolveName",{name:o.nodeName.toLowerCase(),target:o});if(r.isDefaultPrevented()||n.push({name:r.name,element:o}),r.isPropagationStopped())break}}return n}(t.parents);0<e.length&&Om.set(r,(n=ct(e||[],function(t,n){return Eg.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":n,"tab-index":-1,"aria-level":n+1},innerHtml:t.name},action:function(){i.focus(),i.selection.select(t.element),i.nodeChanged()}})}),o={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+u.delimiter+" "}},dt(n.slice(1),function(t,n){var e=t;return e.push(o),e.push(n),e},[n[0]])))})})])]),components:[]}},oB=function(s,t){var n,e,o,r,i,u,a,c,f,l,d,m=function(c){return{dom:{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize")},innerHtml:Dg("resize-handle",t.icons)},behaviours:ga([YT.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,n,e){var o,r,i,u,a;o=s,r=e,i=c,u=xe.fromDom(o.getContainer()),a=tB(o,r,i,Ia(u),_a(u)),Dt(a,function(t,n){return Cu(u,n,DT(t))}),HE(o)},blockerClass:"tox-blocker"})])}};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(d=[],s.getParam("elementpath",!0,"boolean")&&d.push(eB(s,{})),Ln(s.settings.plugins,"wordcount")&&d.push((u=s,a=t,f=function(t,n,e){return Om.set(t,[zu(a.translate(["{0} "+e,n[e]]))])},Eg.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:ga([Ab.config({}),Om.config({}),Nm.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),sg("wordcount-events",[Ci(oe(),function(t){var n=Nm.getValue(t),e="words"===n.mode?"characters":"words";Nm.setValue(t,{mode:e,count:n.count}),f(t,n.count,e)}),_i(function(e){u.on("wordCountUpdate",function(t){var n=Nm.getValue(e).mode;Nm.setValue(e,{mode:n,count:t.wordCount}),f(e,t.wordCount,n)})})])]),eventOrder:(c={},c[oe()]=["wordcount-events","alloy.base.behaviour"],c)}))),s.getParam("branding",!0,"boolean")&&d.push({dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:'<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce&amp;utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+(l=cp.translate(["Powered by {0}","Tiny"]))+'">'+l+"</a>"}}),r=0<d.length?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:d}]:[],e=!Ln((n=s).settings.plugins,"autoresize"),i=!1===(o=n.getParam("resize",e))?UO.None:"both"===o?UO.Both:UO.Vertical,i!==UO.None&&r.push(m(i)),r)}},rB=function(d){var t,n,e=d.getParam("inline",!1,"boolean"),m=e?pT:GE,o=tt.none(),r=cp.isRtl()?{attributes:{dir:"rtl"}}:{},g=ju({dom:To({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"]},r),behaviours:ga([Vs.config({useFixed:!1})])}),i=Tg({dom:{tag:"div",classes:["tox-anchorbar"]}}),u=function(){return o.bind(function(t){return VE.getMoreButton(t)}).getOrDie("Could not find more button element")},p=ik(g,d,function(){return o.bind(function(t){return i.getOpt(t)}).getOrDie("Could not find a anchor bar element")},u),h=function(){return Lt.value(g)},a=VE.parts().menubar({dom:{tag:"div",classes:["tox-menubar"]},getSink:h,providers:p.shared.providers,onEscape:function(){d.focus()}}),c=VE.parts().toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:h,backstage:p,onEscape:function(){d.focus()},split:iv(d),lazyToolbar:function(){return o.bind(function(t){return VE.getToolbar(t)}).getOrDie("Could not find more toolbar element")},lazyMoreButton:u}),s=VE.parts().socket({dom:{tag:"div",classes:["tox-edit-area"]}}),f=VE.parts().sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),l=d.getParam("statusbar",!0,"boolean")&&!e?tt.some(oB(d,p.shared.providers)):tt.none(),v={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[s,f]},b=(n=(t=d).getParam("toolbar"),($(n)?0<n.length:!1!==t.getParam("toolbar",!0,"boolean"))||ev(d).isSome()),y=!1!==d.getParam("menubar",!0,"boolean"),x=vt([y?[a]:[],b?[c]:[],av(d)?[]:[i.asSpec()],e?[]:[v]]),w=vt([[{dom:{tag:"div",classes:["tox-editor-container"]},components:x}],e?[]:l.toArray()]),S=To({role:"application"},cp.isRtl()?{dir:"rtl"}:{}),C=ju(VE.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(e?["tox-tinymce-inline"]:[]),styles:{visibility:"hidden"},attributes:S},components:w,behaviours:ga(m.getBehaviours(d).concat([xm.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a"})]))}));o=tt.some(C),d.shortcuts.add("alt+F9","focus menubar",function(){VE.focusMenubar(C)}),d.shortcuts.add("alt+F10","focus toolbar",function(){VE.focusToolbar(C)});var k=$h(C),O=$h(g);gE(d,k,O);var E=function(t){var n,e=Qh.DOM,o=d.getParam("width",e.getStyle(t,"width")),r=(n=d).getParam("height",Math.max(n.getElement().offsetHeight,200)),i=tv(d),u=nv(d),a=BT(o).bind(function(n){return DT(i.map(function(t){return Math.max(n,t)}))}).getOr(DT(o)),c=BT(r).bind(function(n){return u.map(function(t){return Math.max(n,t)})}).getOr(r),s=DT(a);if(Bu("div","width",s)&&Cu(C.element(),"width",s),!d.inline){var f=DT(c);Bu("div","height",f)?Cu(C.element(),"height",f):Cu(C.element(),"height","200px")}return c};return{mothership:k,uiMothership:O,backstage:p,renderUI:function(){var o,r;TT(d,h,p.shared),r=(o=d).ui.registry.getAll().sidebars,st(Tt(r),function(n){var t=r[n],e=function(){return tt.from(o.queryCommandValue("ToggleSidebar")).is(n)};o.ui.registry.addToggleButton(n,{icon:t.icon,tooltip:t.tooltip,onAction:function(t){o.execCommand("ToggleSidebar",!1,n),t.setActive(e())},onSetup:function(t){var n=function(){return t.setActive(e())};return o.on("ToggleSidebar",n),function(){o.off("ToggleSidebar",n)}}})});var t=d.ui.registry.getAll(),n=t.buttons,e=t.menuItems,i=t.contextToolbars,u=t.sidebars,a={menuItems:e,buttons:n,menus:d.settings.menu?At(d.settings.menu,function(t){return Xt(t,{items:t.items})}):{},menubar:d.settings.menubar,toolbar:ev(d).getOr(d.getParam("toolbar",!0)),sidebar:u};mE(d,i,g,{backstage:p});var c=d.getElement(),s=E(c),f={mothership:k,uiMothership:O,outerContainer:C},l={targetNode:c,height:s};return m.render(d,f,a,p,l)},getUi:function(){return{channels:{broadcastAll:O.broadcast,broadcastOn:O.broadcastOn,register:function(){}}}}}},iB=function(n){GS.each([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],function(t){n.ui.registry.addToggleButton(t.name,{tooltip:t.text,onAction:function(){return n.execCommand(t.cmd)},icon:t.icon,onSetup:zO(n,t.name)})});var t="alignnone",e="No alignment",o="JustifyNone",r="align-none";n.ui.registry.addButton(t,{tooltip:e,onAction:function(){return n.execCommand(o)},icon:r})},uB=function(t,n){return function(){t.execCommand("mceToggleFormat",!1,n)}},aB=function(t){var n,e;!function(n){GS.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],function(t){n.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:zO(n,t.name),onAction:uB(n,t.name)})});for(var t=1;t<=6;t++){var e="h"+t;n.ui.registry.addToggleButton(e,{text:e.toUpperCase(),tooltip:"Heading "+t,onSetup:zO(n,e),onAction:uB(n,e)})}}(t),n=t,GS.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],function(t){n.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return n.execCommand(t.action)}})}),e=t,GS.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return e.execCommand(t.action)},onSetup:zO(e,t.name)})})},cB=function(t){var n;aB(t),n=t,GS.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],function(t){n.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:function(){return n.execCommand(t.action)}})}),n.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:uB(n,"code")})},sB=function(t,n,e){var o=function(){return!!n.undoManager&&n.undoManager[e]()},r=function(){t.setDisabled(n.readonly||!o())};return t.setDisabled(!o()),n.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",r),function(){return n.off("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",r)}},fB=function(t){var n,e;(n=t).ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:function(t){return sB(t,n,"hasUndo")},onAction:function(){return n.execCommand("undo")}}),n.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:function(t){return sB(t,n,"hasRedo")},onAction:function(){return n.execCommand("redo")}}),(e=t).ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",onSetup:function(t){return sB(t,e,"hasUndo")},onAction:function(){return e.execCommand("undo")}}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",onSetup:function(t){return sB(t,e,"hasRedo")},onAction:function(){return e.execCommand("redo")}})},lB=function(t){var n,e;(n=t).ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:function(){return n.execCommand("mceToggleVisualAid")}}),(e=t).ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:function(t){return function(n,t){n.setActive(t.hasVisual);var e=function(t){n.setActive(t.hasVisual)};return t.on("VisualAid",e),function(){return t.off("VisualAid",e)}}(t,e)},onAction:function(){e.execCommand("mceToggleVisualAid")}})},dB=function(t){var n;(n=t).ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:function(t){return function(t,n){t.setDisabled(!n.queryCommandState("outdent"));var e=function(){t.setDisabled(!n.queryCommandState("outdent"))};return n.on("NodeChange",e),function(){return n.off("NodeChange",e)}}(t,n)},onAction:function(){return n.execCommand("outdent")}}),n.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:function(){return n.execCommand("indent")}})},mB=function(t,n){var e,o,r,i,u,a,c,s,f,l,d,m,g,p,h,v,b,y,x,w;o=n,r=YO(e=t),i=LO(0,o,r.dataset,r),e.ui.registry.addNestedMenuItem("align",{text:o.shared.providers.translate("Align"),getSubmenuItems:function(){return i.items.validateItems(i.getStyleItems())}}),a=n,c=KO(u=t),s=LO(0,a,c.dataset,c),u.ui.registry.addNestedMenuItem("fontformats",{text:a.shared.providers.translate("Fonts"),getSubmenuItems:function(){return s.items.validateItems(s.getStyleItems())}}),f=t,d=(l=n).styleselect,m=LO(0,l,d,tE(f)),f.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return m.items.validateItems(m.getStyleItems())}}),p=n,h=ZO(g=t),v=LO(0,p,h.dataset,h),g.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return v.items.validateItems(v.getStyleItems())}}),y=n,x=$O(b=t),w=LO(0,y,x.dataset,x),b.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return w.items.validateItems(w.getStyleItems())}})},gB=function(t,n){iB(t),cB(t),mB(t,n),fB(t),hy.register(t),lB(t),dB(t)},pB=function(t,n){var e=tt.from(uo(t,"id")).fold(function(){var t=Oo("dialog-label");return ro(n,"id",t),t},U);ro(t,"aria-labelledby",e)},hB=Z([Rr("lazySink"),Wr("dragBlockClass"),Kr("useTabstopAt",Z(!0)),Kr("eventOrder",{}),af("modalBehaviours",[xm]),oa("onExecute"),ia("onEscape")]),vB={sketch:U},bB=Z([Hf({name:"draghandle",overrides:function(t,n){return{behaviours:ga([YT.config({mode:"mouse",getTarget:function(t){return Wu(t,'[role="dialog"]').getOr(t)},blockerClass:t.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+or(n,null,2)).message)})])}}}),Vf({schema:[Rr("dom")],name:"title"}),Vf({factory:vB,schema:[Rr("dom")],name:"close"}),Vf({factory:vB,schema:[Rr("dom")],name:"body"}),Vf({factory:vB,schema:[Rr("dom")],name:"footer"}),Rf({factory:{sketch:function(t,n){return To({},t,{dom:n.dom,components:n.components})}},schema:[Kr("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Kr("components",[])],name:"blocker"})]),yB=fl({name:"ModalDialog",configFields:hB(),partFields:bB(),factory:function(r,t,n,o){var a=Oo("alloy.dialog.busy"),c=Oo("alloy.dialog.idle"),s=ga([xm.config({mode:"special",onTab:function(){return tt.some(!0)},onShiftTab:function(){return tt.some(!0)}}),Um.config({})]),e=Oo("modal-events"),i=To({},r.eventOrder,{"alloy.system.attached":[e].concat(r.eventOrder["alloy.system.attached"]||[])});return{uid:r.uid,dom:r.dom,components:t,apis:{show:function(i){var t=r.lazySink(i).getOrDie(),u=nn(tt.none()),n=o.blocker(),e=t.getSystem().build(To({},n,{components:n.components.concat([Uu(i)]),behaviours:ga([sg("dialog-blocker-events",[Ci(c,function(){ao(i.element(),"aria-busy")&&(co(i.element(),"aria-busy"),u.get().each(function(t){return Om.remove(i,t)}))}),Ci(a,function(t,n){ro(i.element(),"aria-busy","true");var e=n.event().getBusySpec();u.get().each(function(t){Om.remove(i,t)});var o=e(i,s),r=t.getSystem().build(o);u.set(tt.some(r)),Om.append(i,Uu(r)),r.hasConfigured(xm)&&xm.focusIn(r)})])])}));Ns(t,e),xm.focusIn(i)},hide:function(n){ze(n.element()).each(function(t){n.getSystem().getByDom(t).each(function(t){Ls(t)})})},getBody:function(t){return Jf(t,r,"body")},getFooter:function(t){return Jf(t,r,"footer")},setIdle:function(t){ai(t,c)},setBusy:function(t,n){ci(t,a,{getBusySpec:n})}},eventOrder:i,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:sf(r.modalBehaviours,[Om.config({}),xm.config({mode:"cyclic",onEnter:r.onExecute,onEscape:r.onEscape,useTabstopAt:r.useTabstopAt}),sg(e,[_i(function(t){var n,e,o;pB(t.element(),Jf(t,r,"title").element()),n=t.element(),e=Jf(t,r,"body").element(),o=tt.from(uo(n,"id")).fold(function(){var t=Oo("dialog-describe");return ro(e,"id",t),t},U),ro(n,"aria-describedby",o)})])])}},apis:{show:function(t,n){t.show(n)},hide:function(t,n){t.hide(n)},getBody:function(t,n){return t.getBody(n)},getFooter:function(t,n){return t.getFooter(n)},setBusy:function(t,n,e){t.setBusy(n,e)},setIdle:function(t,n){t.setIdle(n)}}}),xB=[Nr("type"),Nr("text"),zr("level",["info","warn","error","success"]),Nr("icon"),Kr("url","")],wB=[Nr("type"),Nr("text"),ti("primary",!1),br("name","name",Mo(function(){return Oo("button-name")}),Mr),Xr("icon")],SB=[Nr("type"),Nr("name"),Nr("label")],CB=Fr,kB=[Nr("type"),Nr("name"),Xr("label")],OB=kB,EB=Mr,TB=kB,BB=Mr,DB=kB,AB=mr(wr),_B=kB.concat([ti("sandboxed",!0)]),MB=Mr,FB=kB.concat([Xr("placeholder")]),IB=Mr,VB=kB.concat([jr("items",[Nr("text"),Nr("value")]),$r("size",1)]),RB=Mr,HB=kB.concat([ti("constrain",!0)]),NB=dr([Nr("width"),Nr("height")]),zB=kB.concat([Xr("placeholder")]),PB=Mr,LB=kB.concat([Zr("filetype","file",["image","media","file"])]),jB=dr([Nr("value"),Kr("meta",{})]),UB=kB.concat([Nr("type"),Qr("tag","textarea"),Pr("init")]),WB=Mr,GB=[Nr("type"),Nr("html"),Zr("presets","presentation",["presentation","document"])],XB=kB.concat([Hr("currentState",dr([Rr("blob"),Nr("url")]))]),YB=kB.concat([Kr("columns","auto")]),qB=(qT=[Nr("value"),Nr("text"),Nr("icon")],hr(qT)),KB=[Nr( "type"),Ur("header",Mr),Ur("cells",mr(Mr))],JB=function(n){return br("items","items",Ao(),mr(Sr(function(t){return kr("Checking item of "+n,$B,t).fold(function(t){return Lt.error(Tr(t))},function(t){return Lt.value(t)})})))},$B=Br("type",{alertbanner:xB,bar:(QT=JB("bar"),[Nr("type"),QT]),button:wB,checkbox:SB,colorinput:OB,colorpicker:TB,dropzone:DB,grid:(JT=JB("grid"),[Nr("type"),($T="columns",Hr($T,_r)),JT]),iframe:_B,input:FB,selectbox:VB,sizeinput:HB,textarea:zB,urlinput:LB,customeditor:UB,htmlpanel:GB,imagetools:XB,collection:YB,label:(KT=JB("label"),[Nr("type"),Nr("label"),KT]),table:KB}),QB=[Nr("type"),Ur("items",$B)],ZB=[Nr("title"),Ur("items",$B)],tD=[Nr("type"),jr("tabs",ZB)],nD=dr([zr("type",["submit","cancel","custom"]),br("name","name",Mo(function(){return Oo("button-name")}),Mr),Nr("text"),Xr("icon"),Zr("align","end",["start","end"]),ti("primary",!1),ti("disabled",!1)]),eD=dr([Nr("title"),Hr("body",Br("type",{panel:QB,tabpanel:tD})),Qr("size","normal"),Ur("buttons",nD),Kr("initialData",{}),ni("onAction",Q),ni("onChange",Q),ni("onSubmit",Q),ni("onClose",Q),ni("onCancel",Q),Kr("onTabChange",Q)]),oD=function(t){return J(t)?[t].concat(bt(Ft(t),oD)):$(t)?bt(t,oD):[]},rD=function(t){return K(t.type)&&K(t.name)},iD={checkbox:CB,colorinput:EB,colorpicker:BB,dropzone:AB,input:IB,iframe:MB,sizeinput:NB,selectbox:RB,size:NB,textarea:PB,urlinput:jB,customeditor:WB,collection:qB},uD=function(t){var n=bt(ft(oD(t),rD),function(n){return(t=n,tt.from(iD[t.type])).fold(function(){return[]},function(t){return[Hr(n.name,t)]});var t});return dr(n)},aD=function(t){return{internalDialog:Or(kr("dialog",eD,t)),dataValidator:uD(t),initialData:t.initialData}},cD={open:function(t,n){var e=aD(n);return t(e.internalDialog,e.initialData,e.dataValidator)},redial:function(t){return aD(t)}},sD=Oo("update-dialog"),fD=Oo("update-title"),lD=Oo("update-body"),dD=Oo("update-footer"),mD=function(t){var e=[],o={};return Dt(t,function(t,n){t.fold(function(){e.push(n)},function(t){o[n]=t})}),0<e.length?Lt.error(e):Lt.value(o)},gD=sl({name:"TabButton",configFields:[Kr("uid",undefined),Rr("value"),br("dom","dom",Fo(function(){return{attributes:{role:"tab",id:Oo("aria"),"aria-selected":"false"}}}),Dr()),Wr("action"),Kr("domModification",{}),af("tabButtonBehaviours",[Um,xm,Nm]),Rr("view")],factory:function(t){return{uid:t.uid,dom:t.dom,components:t.components,events:Og(t.action),behaviours:sf(t.tabButtonBehaviours,[Um.config({}),xm.config({mode:"execution",useSpace:!0,useEnter:!0}),Nm.config({store:{mode:"memory",initialValue:t.value}})]),domModification:t.domModification}}}),pD=Z([Rr("tabs"),Rr("dom"),Kr("clickToDismiss",!1),af("tabbarBehaviours",[Tl,xm]),ta(["tabClass","selectedClass"])]),hD=Nf({factory:gD,name:"tabs",unit:"tab",overrides:function(o){var r=function(t,n){Tl.dehighlight(t,n),ci(t,he(),{tabbar:t,button:n})},i=function(t,n){Tl.highlight(t,n),ci(t,pe(),{tabbar:t,button:n})};return{action:function(t){var n=t.getSystem().getByUid(o.uid).getOrDie(),e=Tl.isHighlighted(n,t);(e&&o.clickToDismiss?r:e?Q:i)(n,t)},domModification:{classes:[o.markers.tabClass]}}}}),vD=Z([hD]),bD=fl({name:"Tabbar",configFields:pD(),partFields:vD(),factory:function(t,n){return{uid:t.uid,dom:t.dom,components:n,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:sf(t.tabbarBehaviours,[Tl.config({highlightClass:t.markers.selectedClass,itemClass:t.markers.tabClass,onHighlight:function(t,n){ro(n.element(),"aria-selected","true")},onDehighlight:function(t,n){ro(n.element(),"aria-selected","false")}}),xm.config({mode:"flow",getInitial:function(t){return Tl.getHighlighted(t).map(function(t){return t.element()})},selector:"."+t.markers.tabClass,executeOnMove:!0})])}}}),yD=sl({name:"Tabview",configFields:[af("tabviewBehaviours",[Om])],factory:function(t){return{uid:t.uid,dom:t.dom,behaviours:sf(t.tabviewBehaviours,[Om.config({})]),domModification:{attributes:{role:"tabpanel"}}}}}),xD=Z([Kr("selectFirst",!0),ea("onChangeTab"),ea("onDismissTab"),Kr("tabs",[]),af("tabSectionBehaviours",[])]),wD=Vf({factory:bD,schema:[Rr("dom"),Lr("markers",[Rr("tabClass"),Rr("selectedClass")])],name:"tabbar",defaults:function(t){return{tabs:t.tabs}}}),SD=Vf({factory:yD,name:"tabview"}),CD=Z([wD,SD]),kD=fl({name:"TabSection",configFields:xD(),partFields:CD(),factory:function(i,t){var n=function(t,n){Kf(t,i,"tabbar").each(function(t){n(t).each(si)})};return{uid:i.uid,dom:i.dom,components:t,behaviours:cf(i.tabSectionBehaviours),events:xi(vt([i.selectFirst?[_i(function(t){n(t,Tl.getFirst)})]:[],[Ci(pe(),function(t,n){var o,r,e=n.event().button();o=e,r=Nm.getValue(o),Kf(o,i,"tabview").each(function(e){mt(i.tabs,function(t){return t.value===r}).each(function(t){var n=t.view();ro(e.element(),"aria-labelledby",uo(o.element(),"id")),Om.set(e,n),i.onChangeTab(e,o,n)})})}),Ci(he(),function(t,n){var e=n.event().button();i.onDismissTab(t,e)})]])),apis:{getViewItems:function(t){return Kf(t,i,"tabview").map(function(t){return Om.contents(t)}).getOr([])},showTab:function(t,e){n(t,function(n){var t=Tl.getCandidates(n);return mt(t,function(t){return Nm.getValue(t)===e}).filter(function(t){return!Tl.isHighlighted(n,t)})})}}}},apis:{getViewItems:function(t,n){return t.getViewItems(n)},showTab:function(t,n,e){t.showTab(n,e)}}}),OD=function(t){return kt((n=t,e=function(t,n){return n<t?-1:t<n?1:0},(o=xt.call(n,0)).sort(e),o));var n,e,o},ED=function(i,u,t){Wu(i,'[role="dialog"]').each(function(r){t.get().map(function(t){return Cu(u,"height","0"),Math.min(t,(e=i,o=Wu(n=r,".tox-dialog-wrap").getOr(n),("fixed"===Ou(o,"position")?Math.max(b.document.documentElement.clientHeight,b.window.innerHeight):Math.max(b.document.documentElement.offsetHeight,b.document.documentElement.scrollHeight))-(n.dom().getBoundingClientRect().height-e.dom().getBoundingClientRect().height)));var n,e,o}).each(function(t){Cu(u,"height",t+"px")})})},TD=function(a){var c;return{smartTabHeight:(c=nn(tt.none()),{extraEvents:[_i(function(t){Gu(t.element(),'[role="tabpanel"]').each(function(u){var n;Cu(u,"visibility","hidden"),t.getSystem().getByDom(u).toOption().each(function(t){var o,r,i,n=(r=u,i=t,ct(o=a,function(t,n){Om.set(i,o[n].view());var e=r.dom().getBoundingClientRect();return Om.set(i,[]),e.height})),e=OD(n);c.set(e)}),ED(t.element(),u,c),Du(u,"visibility"),n=t,kt(a).each(function(t){return kD.showTab(n,t.value)}),Mg.requestAnimationFrame(function(){ED(t.element(),u,c)})})}),Ci(se(),function(n){Gu(n.element(),'[role="tabpanel"]').each(function(t){ED(n.element(),t,c)})}),Ci(hv,function(r){Gu(r.element(),'[role="tabpanel"]').each(function(n){var t=zl();Cu(n,"visibility","hidden");var e=Tu(n,"height").map(function(t){return parseInt(t,10)});Du(n,"height");var o=n.dom().getBoundingClientRect().height;e.forall(function(t){return t<o})?(c.set(tt.from(o)),ED(r.element(),n,c)):e.each(function(t){Cu(n,"height",t+"px")}),Du(n,"visibility"),t.each(Nl)})})],selectFirst:!1}),naiveTabHeight:{extraEvents:[],selectFirst:!0}}},BD="send-data-to-section",DD="send-data-to-view",AD=function(t,n,d,e){return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:To({},n.map(function(t){return{id:t}}).getOr({}),e?{"aria-live":"polite"}:{})},components:[],behaviours:ga([Bw(0),lO.config({channel:lD,updateState:function(t,n){return tt.some({isTabPanel:function(){return"tabpanel"===n.body.type}})},renderComponents:function(t){switch(t.body.type){case"tabpanel":return[(r={tabs:t.body.tabs},i=d,u=nn({}),a=function(t){var n=Nm.getValue(t),e=mD(n).getOr({}),o=u.get(),r=Gt(o,e);u.set(r)},c=function(t){var n=u.get();Nm.setValue(t,n)},s=nn(null),f=ct(r.tabs,function(t){return{value:t.title,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:i.shared.providers.translate(t.title)},view:function(){return[bw.sketch(function(n){return{dom:{tag:"div",classes:["tox-form"]},components:ct(t.items,function(t){return vC(n,t,i)}),formBehaviours:ga([xm.config({mode:"acyclic",useTabstopAt:N(Uw)}),sg("TabView.form.events",[_i(c),Mi(a)]),Sa.config({channels:Qt([{key:BD,value:{onReceive:a}},{key:DD,value:{onReceive:c}}])})])}})]}}}),l=TD(f).smartTabHeight,kD.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(t,n){var e=Nm.getValue(n);ci(t,pv,{title:e,oldTitle:s.get()}),s.set(e)},tabs:f,components:[kD.parts().tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[bD.parts().tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:ga([Ab.config({})])}),kD.parts().tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:l.selectFirst,tabSectionBehaviours:ga([sg("tabpanel",l.extraEvents),xm.config({mode:"acyclic"}),gl.config({find:function(t){return kt(kD.getViewItems(t))}}),Nm.config({store:{mode:"manual",getValue:function(t){return t.getSystem().broadcastOn([BD],{}),u.get()},setValue:function(t,n){u.set(n),t.getSystem().broadcastOn([DD],{})}}})])}))];default:return[(e={items:t.body.items},o=d,n=Tg(bw.sketch(function(n){return{dom:{tag:"div",classes:["tox-form"]},components:ct(e.items,function(t){return vC(n,t,o)})}})),{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:ga([xm.config({mode:"acyclic",useTabstopAt:N(Uw)}),Tw(n),Iw(n,{postprocess:function(t){return mD(t).fold(function(t){return b.console.error(t),{}},function(t){return t})}})])})]}var e,o,n,r,i,u,a,c,s,f,l},initialData:t})])}},_D=function(o,e){var t=function(t,o){return Ci(t,function(n,e){r(n,function(t){o(t,e.event(),n)})})},r=function(n,e){lO.getState(n).get().each(function(t){e(t.internalDialog,n)})};return[Ti(mn(),Ww),t(dv,function(t){return t.onSubmit(o())}),t(cv,function(t,n){t.onChange(o(),{name:n.name()})}),t(lv,function(t,n){t.onAction(o(),{name:n.name(),value:n.value()})}),t(pv,function(t,n){t.onTabChange(o(),n.title())}),t(sv,function(t){e.onClose(),t.onClose()}),t(fv,function(t,n,e){t.onCancel(o()),ai(e,sv)}),Mi(function(t){var n=o();Nm.setValue(t,n.getData())}),Ci(gv,function(){return e.onUnblock()}),Ci(mv,function(t,n){return e.onBlock(n.event())})]},MD=function(t,n){var e=function(t,n){for(var e=[],o=[],r=0,i=t.length;r<i;r++){var u=t[r];(n(u,r,t)?e:o).push(u)}return{pass:e,fail:o}}(n.map(function(t){return t.footerButtons}).getOr([]),function(t){return"start"===t.align}),o=function(t,n){return Jh.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+t]},components:ct(n,function(t){return t.memento.asSpec()})})};return[o("start",e.pass),o("end",e.fail)]},FD=function(t,i){return{dom:ap('<div class="tox-dialog__footer"></div>'),components:[],behaviours:ga([lO.config({channel:dD,initialData:t,updateState:function(t,n){var r=ct(n.buttons,function(t){var n,e,o=Tg((e=i,ES(n=t,n.type,e)));return{name:t.name,align:t.align,memento:o}});return tt.some({lookupByName:function(t,n){return e=t,o=n,mt(r,function(t){return t.name===o}).bind(function(t){return t.memento.getOpt(e)});var e,o},footerButtons:r})},renderComponents:MD})])}},ID=function(t){return Eg.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close"),title:t.translate("Close")}},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M17.953 7.453L13.422 12l4.531 4.547-1.406 1.406L12 13.422l-4.547 4.531-1.406-1.406L10.578 12 6.047 7.453l1.406-1.406L12 10.578l4.547-4.531z" fill-rule="evenodd"></path></svg>'}}],action:function(t){ai(t,fv)}})},VD=function(t,n,e){var o=function(t){return[zu(e.translate(t.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:To({},n.map(function(t){return{id:t}}).getOr({}))},components:o(t),behaviours:ga([lO.config({channel:fD,renderComponents:o})])}},RD=function(n,e){if(n.getRoot().getSystem().isConnected()){var o=gl.getCurrent(n.getFormWrapper()).getOr(n.getFormWrapper());return bw.getField(o,e).fold(function(){var t=n.getFooter();return lO.getState(t).get().bind(function(t){return t.lookupByName(o,e)})},function(t){return tt.some(t)})}return tt.none()},HD=function(a,o){var t=function(t){var n=a.getRoot();n.getSystem().isConnected()&&t(n)},c={getData:function(){var t=a.getRoot(),n=t.getSystem().isConnected()?a.getFormWrapper():t;return Nm.getValue(n)},setData:function(u){t(function(){var n,t,e=c.getData(),o=Xt(e,u),r=(n=o,t=a.getRoot(),lO.getState(t).get().map(function(t){return Or(kr("data",t.dataValidator,n))}).getOr(n)),i=a.getFormWrapper();Nm.setValue(i,r)})},disable:function(t){RD(a,t).each(Np.disable)},enable:function(t){RD(a,t).each(Np.enable)},focus:function(t){RD(a,t).each(Um.focus)},block:function(n){if(!K(n))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t(function(t){ci(t,mv,{message:n})})},unblock:function(){t(function(t){ai(t,gv)})},showTab:function(n){t(function(){var t=a.getBody();lO.getState(t).get().exists(function(t){return t.isTabPanel()})&&gl.getCurrent(t).each(function(t){kD.showTab(t,n)})})},redial:function(e){t(function(t){var n=o(e);t.getSystem().broadcastOn([sD],n),t.getSystem().broadcastOn([fD],n.internalDialog),t.getSystem().broadcastOn([lD],n.internalDialog),t.getSystem().broadcastOn([dD],n.internalDialog),c.setData(n.initialData)})},close:function(){t(function(t){ai(t,sv)})}};return c},ND=function(t,n,e){var o,r,i,u,a,c,s,f,l,d,m,g=(r={title:e.shared.providers.translate(t.internalDialog.title),draggable:!0},i=e.shared.providers,u=yB.parts().title(VD(r,tt.none(),i)),a=yB.parts().draghandle({dom:ap('<div class="tox-dialog__draghandle"></div>')}),c=yB.parts().close(ID(i)),s=[u].concat(r.draggable?[a]:[]).concat([c]),Jh.sketch({dom:ap('<div class="tox-dialog__header"></div>'),components:s})),p=(f={body:t.internalDialog.body},l=e,yB.parts().body(AD(f,tt.none(),l,!1))),h=(d={buttons:t.internalDialog.buttons},m=e.shared.providers,yB.parts().footer(FD(d,m))),v=_D(function(){return x},{onClose:function(){return n.closeWindow()},onBlock:function(e){yB.setBusy(y,function(t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":e.message()},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:n,components:[{dom:ap('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}})},onUnblock:function(){yB.setIdle(y)}}),b="normal"!==t.internalDialog.size?"large"===t.internalDialog.size?"tox-dialog--width-lg":"tox-dialog--width-md":[],y=ju(yB.sketch({lazySink:e.shared.getSink,onEscape:function(t){return ai(t,fv),tt.some(!0)},useTabstopAt:function(t){return!Uw(t)&&("button"!==Qe(t)||"disabled"!==uo(t,"disabled"))},modalBehaviours:ga([lO.config({channel:sD,updateState:function(t,n){return tt.some(n)},initialData:t}),Um.config({}),sg("execute-on-form",v.concat([Ai(mn(),function(t){xm.focusIn(t)})])),sg("scroll-lock",[_i(function(){gu(gi(),"tox-dialog__disable-scroll")}),Mi(function(){hu(gi(),"tox-dialog__disable-scroll")})]),Hw({})]),eventOrder:(o={},o[te()]=["execute-on-form"],o[fe()]=["scroll-lock","reflecting","execute-on-form","alloy.base.behaviour"],o[le()]=["alloy.base.behaviour","execute-on-form","reflecting","scroll-lock"],o),dom:{tag:"div",classes:["tox-dialog"].concat(b),styles:{position:"relative"}},components:[g,p,h],dragBlockClass:"tox-dialog-wrap",parts:{blocker:{dom:ap('<div class="tox-dialog-wrap"></div>'),components:[{dom:{tag:"div",classes:["tox-dialog-wrap__backdrop"]}}]}}})),x=HD({getRoot:function(){return y},getBody:function(){return yB.getBody(y)},getFooter:function(){return yB.getFooter(y)},getFormWrapper:function(){var t=yB.getBody(y);return gl.getCurrent(t).getOr(t)}},n.redial);return{dialog:y,instanceApi:x}},zD=function(t,n,e,o){var r,i,u,a,c,s,f,l,d,m,g,p=Oo("dialog-label"),h=Oo("dialog-content"),v=Tg((u={title:t.internalDialog.title,draggable:!0},a=p,c=e.shared.providers,Jh.sketch({dom:ap('<div class="tox-dialog__header"></div>'),components:[VD(u,tt.some(a),c),ID(c)],containerBehaviours:ga([YT.config({mode:"mouse",blockerClass:"blocker",getTarget:function(t){return Xu(t,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}))),b=Tg((s={body:t.internalDialog.body},f=h,l=e,d=o,AD(s,tt.some(f),l,d))),y=Tg((m={buttons:t.internalDialog.buttons},g=e.shared.providers,FD(m,g))),x=_D(function(){return S},{onBlock:function(){},onUnblock:function(){},onClose:function(){return n.closeWindow()}}),w=ju({dom:{tag:"div",classes:["tox-dialog"],attributes:(r={role:"dialog"},r["aria-labelledby"]=p,r["aria-describedby"]=""+h,r)},eventOrder:(i={},i[Zn()]=[lO.name(),Sa.name()],i[te()]=["execute-on-form"],i[fe()]=["reflecting","execute-on-form"],i),behaviours:ga([xm.config({mode:"cyclic",onEscape:function(t){return ai(t,sv),tt.some(!0)},useTabstopAt:function(t){return!Uw(t)&&("button"!==Qe(t)||"disabled"!==uo(t,"disabled"))}}),lO.config({channel:sD,updateState:function(t,n){return tt.some(n)},initialData:t}),sg("execute-on-form",x),Hw({})]),components:[v.asSpec(),b.asSpec(),y.asSpec()]}),S=HD({getRoot:function(){return w},getFooter:function(){return y.get(w)},getBody:function(){return b.get(w)},getFormWrapper:function(){var t=b.get(w);return gl.getCurrent(t).getOr(t)}},n.redial);return{dialog:w,instanceApi:S}},PD=function(t,n){return yB.parts().close(Eg.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":n.translate("Close")}},action:t,buttonBehaviours:ga([Ab.config({})])}))},LD=function(){return yB.parts().title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},jD=function(t,n){return yB.parts().body({dom:{tag:"div",classes:["tox-dialog__body","todo-tox-fit"]},components:[{dom:ap("<p>"+n.translate(t)+"</p>")}]})},UD=function(t){return yB.parts().footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:t})},WD=function(t,n){return[Jh.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:t}),Jh.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:n})]},GD=function(t){return yB.sketch({lazySink:t.lazySink,onEscape:function(){return t.onCancel(),tt.some(!0)},dom:{tag:"div",classes:["tox-dialog"].concat(t.extraClasses)},components:[{dom:{tag:"div",classes:["tox-dialog__header"]},components:[t.partSpecs.title,t.partSpecs.close]},t.partSpecs.body,t.partSpecs.footer],parts:{blocker:{dom:ap('<div class="tox-dialog-wrap"></div>'),components:[{dom:{tag:"div",classes:["tox-dialog-wrap__backdrop"]}}]}},modalBehaviours:ga([sg("basic-dialog-events",[Ci(fv,function(){t.onCancel()}),Ci(dv,function(){t.onSubmit()})])])})},XD=function(s){var u,a,e=(u=s.backstage.shared,{open:function(t,n){var e=function(){yB.hide(r),n()},o=Tg(ES({name:"close-alert",text:"OK",primary:!0,icon:tt.none()},"cancel",u.providers)),r=ju(GD({lazySink:function(){return u.getSink()},partSpecs:{title:LD(),close:PD(function(){e()},u.providers),body:jD(t,u.providers),footer:UD(WD([],[o.asSpec()]))},onCancel:function(){return e()},onSubmit:Q,extraClasses:["tox-alert-dialog"]}));yB.show(r);var i=o.get(r);Um.focus(i)}}),o=(a=s.backstage.shared,{open:function(t,n){var e=function(t){yB.hide(i),n(t)},o=Tg(ES({name:"yes",text:"Yes",primary:!0,icon:tt.none()},"submit",a.providers)),r=ES({name:"no",text:"No",primary:!0,icon:tt.none()},"cancel",a.providers),i=ju(GD({lazySink:function(){return a.getSink()},partSpecs:{title:LD(),close:PD(function(){e(!1)},a.providers),body:jD(t,a.providers),footer:UD(WD([],[r,o.asSpec()]))},onCancel:function(){return e(!1)},onSubmit:function(){return e(!0)},extraClasses:["tox-confirm-dialog"]}));yB.show(i);var u=o.get(i);Um.focus(u)}}),r=function(t,i){return cD.open(function(t,n,e){var o=n,r=ND({dataValidator:e,initialData:o,internalDialog:t},{redial:cD.redial,closeWindow:function(){yB.hide(r.dialog),i(r.instanceApi)}},s.backstage);return yB.show(r.dialog),r.instanceApi.setData(o),r.instanceApi},t)},i=function(t,u,a,c){return cD.open(function(t,n,e){var o=Or(kr("data",e,n)),r=zD({dataValidator:e,initialData:o,internalDialog:t},{redial:cD.redial,closeWindow:function(){kg.hide(i),a(r.instanceApi)}},s.backstage,c),i=ju(kg.sketch({lazySink:s.backstage.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{},inlineBehaviours:ga([sg("window-manager-inline-events",[Ci(de(),function(){ai(r.dialog,fv)})])])}));return kg.showAt(i,u,Uu(r.dialog)),r.instanceApi.setData(o),xm.focusIn(r.dialog),r.instanceApi},t)};return{open:function(t,n,e){return n!==undefined&&"toolbar"===n.inline?i(t,s.backstage.shared.anchors.toolbar(),e,n.ariaAttrs):n!==undefined&&"cursor"===n.inline?i(t,s.backstage.shared.anchors.cursor(),e,n.ariaAttrs):r(t,e)},alert:function(t,n){e.open(t,function(){n()})},close:function(t){t.close()},confirm:function(t,n){o.open(t,function(t){n(t)})}}};Eo.add("silver",function(t){var n=rB(t),e=n.mothership,o=n.uiMothership,r=n.backstage,i=n.renderUI,u=n.getUi;gB(t,r),So(Oo("silver-demo"),e),So(Oo("silver-ui-demo"),o),Dh(t,r.shared);var a=XD({backstage:r});return{renderUI:i,getWindowManagerImpl:Z(a),getNotificationManagerImpl:function(){return c(t,{backstage:r},o)},ui:u()}}),function CA(){}}(window);
31,712.181818
32,768
0.6793
e31b0812b719f428b61f48029ce3b25ab2b5f134
6,019
js
JavaScript
resources/js/components/Pages/Auth/Register.js
looko8/radiance
95461313e777541c7083f01d07d31147f25c50d9
[ "MIT" ]
null
null
null
resources/js/components/Pages/Auth/Register.js
looko8/radiance
95461313e777541c7083f01d07d31147f25c50d9
[ "MIT" ]
5
2021-02-02T17:39:36.000Z
2022-02-27T02:27:20.000Z
resources/js/components/Pages/Auth/Register.js
looko8/chats
95461313e777541c7083f01d07d31147f25c50d9
[ "MIT" ]
null
null
null
import React from 'react'; import { Link } from 'react-router-dom'; import { TextField, InputLabel, FilledInput, InputAdornment, IconButton, FormControl, FormGroup, Button, FormHelperText } from "@material-ui/core"; import Visibility from '@material-ui/icons/Visibility'; import VisibilityOff from '@material-ui/icons/VisibilityOff'; import {makeStyles} from "@material-ui/core/styles"; import AuthLayout from "../../layout/AuthLayout"; import Alert from '@material-ui/lab/Alert' import {getErrors, getLoading, userIsRegistered} from "../../../store/selectors/auth"; import {registerRequest} from "../../../store/auth"; import {connect} from 'react-redux'; const useStyles = makeStyles(theme => ({ root: { display: 'flex', flexWrap: 'wrap', }, margin: { margin: theme.spacing(1), }, withoutLabel: { marginTop: theme.spacing(3), } })); const Register = (props) => { const classes = useStyles(); const [values, setValues] = React.useState({ name: '', email: '', password: '', password_confirmation: '', showPassword: false, }); const handleChange = prop => event => { setValues({ ...values, [prop]: event.target.value }); }; const handleClickShowPassword = () => { setValues({ ...values, showPassword: !values.showPassword }); }; const handleMouseDownPassword = event => { event.preventDefault(); }; const handleRegister = () => { const data = { name: values.name, email: values.email, password: values.password, password_confirmation: values.password_confirmation }; props.register(data); }; React.useEffect(() => { props.registered && props.history.push('/login'); },[props.registered]); return ( <AuthLayout title="Регистрация"> {props.errors.message && <Alert severity="error">{props.errors.message}</Alert>} <FormGroup> <TextField required id="name" label="Name" variant="filled" className={classes.margin} onChange={handleChange('name')} error={Boolean(props.errors.name)} helperText={props.errors.name} /> <TextField required id="email" label="Email" variant="filled" className={classes.margin} onChange={handleChange('email')} error={Boolean(props.errors.email)} helperText={props.errors.email} /> <FormControl className={classes.margin} variant="filled" error={Boolean(props.errors.password)}> <InputLabel htmlFor="password">Password</InputLabel> <FilledInput id="password" required type={values.showPassword ? 'text' : 'password'} value={values.password} onChange={handleChange('password')} endAdornment={ <InputAdornment position="end"> <IconButton aria-label="toggle password visibility" onClick={handleClickShowPassword} onMouseDown={handleMouseDownPassword} edge="end" > {values.showPassword ? <Visibility /> : <VisibilityOff />} </IconButton> </InputAdornment> } aria-describedby="password" /> <FormHelperText>{props.errors.password}</FormHelperText> </FormControl> <FormControl className={classes.margin} variant="filled" error={Boolean(props.errors.password)}> <InputLabel htmlFor="password_confirmation">Password confirm</InputLabel> <FilledInput id="password_confirmation" required type={values.showPassword ? 'text' : 'password'} value={values.password_confirmation} onChange={handleChange('password_confirmation')} endAdornment={ <InputAdornment position="end"> <IconButton aria-label="toggle password visibility" onClick={handleClickShowPassword} onMouseDown={handleMouseDownPassword} edge="end" > {values.showPassword ? <Visibility /> : <VisibilityOff />} </IconButton> </InputAdornment> } aria-describedby="password" /> <FormHelperText>{props.errors.password}</FormHelperText> </FormControl> <Button onClick={handleRegister} variant="contained" color="primary">Register</Button> <Link to="/login">Login</Link> </FormGroup> </AuthLayout> ); }; const mapStateToProps = (state) => { return { loading: getLoading(state), errors: getErrors(state), registered: userIsRegistered(state), } }; const mapDispatchToProps = { register: registerRequest }; export default connect(mapStateToProps, mapDispatchToProps)(Register);
36.70122
112
0.491111
e31b958aadb3b18d0960d284b60ef1b3f9a6a24f
2,035
js
JavaScript
blueprints/maverick-implement-core/src/adapter-application.js
bryanmc/maverick-cli
b4054074d60c662ac8af7081a9c0ce4983b4fde8
[ "MIT" ]
null
null
null
blueprints/maverick-implement-core/src/adapter-application.js
bryanmc/maverick-cli
b4054074d60c662ac8af7081a9c0ce4983b4fde8
[ "MIT" ]
null
null
null
blueprints/maverick-implement-core/src/adapter-application.js
bryanmc/maverick-cli
b4054074d60c662ac8af7081a9c0ce4983b4fde8
[ "MIT" ]
null
null
null
/*jshint unused:false*/ import Ember from 'ember'; import DS from 'ember-data'; import maverick from '../utils/maverick'; var mav = maverick('production'); export default DS.RESTAdapter.extend({ host: 'https://api.parse.com', namespace: '1', pathForType: function(type) { if ( type === 'user' ){ return this._super(...arguments); }else{ let path = Ember.String.pluralize(type); path = 'classes/' + Ember.String.classify(path); return path; } }, headers: Ember.computed(function() { return { 'X-Parse-Application-Id': mav.parse.appId, 'X-Parse-REST-API-Key': mav.parse.apiKey, 'X-Parse-Session-Token': DS.Store.currentUser.sessionToken }; }).volatile(), buildURL: function (modelName, id, snapshot, requestType, query) { return this._super(...arguments); }, urlForQuery: function (query, modelName) { //Check to see if it is a valid query set in the model //And if so, build the proper Parse endpoint URL if (query.hasOwnProperty('filter')) { //Parse the query which should be an object with a root of 'filter' //This is passed in from the model when using the query function let queryString = JSON.stringify(query.filter); //Set up paramater 'where=' required to query Parse endpoint //https://parse.com/docs/rest/guide#queries let parseUrlQuery = `where=${queryString}`; //output: https://api.parse.com/1/<modelName> let buildUrl = this._super(...arguments); //Build full, final URL for point query endpoint let fullUrl = `${buildUrl}?${parseUrlQuery}`; //console.log('FULL URL >>>', fullUrl); return fullUrl; //If not, just return the default build URL via super } else { return this._super(...arguments); } } });
33.360656
79
0.573464
e31c2a389000fdad876ace6cd04df6e9275f1977
720
js
JavaScript
2018/javascript/day-6/part-2.js
gregorybarale/advent_of_code
d1f7e8db643f253473d127b97f8ec893f0273b30
[ "MIT" ]
5
2018-12-03T08:18:14.000Z
2022-01-04T10:48:50.000Z
2018/javascript/day-6/part-2.js
gregorybarale/advent_of_code
d1f7e8db643f253473d127b97f8ec893f0273b30
[ "MIT" ]
null
null
null
2018/javascript/day-6/part-2.js
gregorybarale/advent_of_code
d1f7e8db643f253473d127b97f8ec893f0273b30
[ "MIT" ]
null
null
null
const input = require("./input"); const utils = require("./utils"); // TODO REFACTOR IT const pointArr = utils.processPoint(input); const [minX, maxX, minY, maxY] = utils.getMinMaxGlobalArea(pointArr); const coordInAreaRaw = []; for (let x = minX; x <= maxX; x++) { for (let y = minY; y <= maxY; y++) { coordInAreaRaw.push({ x, y, }); } } const coordInArea = coordInAreaRaw.map((coord) => { const totalDistance = pointArr .map((point) => utils.computeDistance(coord, point)).reduce( (acc, distance) => acc + distance, 0, ); return totalDistance; }); const regionSize = coordInArea.filter((totalDistance) => totalDistance < 10000).length; console.log(regionSize);
21.818182
70
0.636111
e31c8ee0e8abd8c4b26db654c455d62d721d3c98
475
js
JavaScript
src/SongRow.js
jitokj/spotify
cd11134508380bd7d089ac8a94e54fd7befcca22
[ "MIT" ]
null
null
null
src/SongRow.js
jitokj/spotify
cd11134508380bd7d089ac8a94e54fd7befcca22
[ "MIT" ]
null
null
null
src/SongRow.js
jitokj/spotify
cd11134508380bd7d089ac8a94e54fd7befcca22
[ "MIT" ]
null
null
null
import React from 'react'; import "./SongRow.css"; const SongRow = ({track}) => { return ( <div className="songrow"> <img className="songrow__album" src={track.album.images[0].url} alt="album"/> <div className="songrow__info"> <h1>{track.name}</h1> {track.artists.map((artist)=> artist.name).join(",")} {track.album.name} </div> </div> ); }; export default SongRow;
27.941176
89
0.522105
e31da97cc4efd3aa717ea00b9f5a1ff5f69a058a
2,872
js
JavaScript
NextGenSoftware.OASIS.API.ONODE.WebUI.HTML/react-app/src/components/pages/seeds/PayWithSeeds.js
neurip/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK
310c867f6664494c33c8a41c1f1d0d026cba2b22
[ "CC0-1.0" ]
null
null
null
NextGenSoftware.OASIS.API.ONODE.WebUI.HTML/react-app/src/components/pages/seeds/PayWithSeeds.js
neurip/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK
310c867f6664494c33c8a41c1f1d0d026cba2b22
[ "CC0-1.0" ]
null
null
null
NextGenSoftware.OASIS.API.ONODE.WebUI.HTML/react-app/src/components/pages/seeds/PayWithSeeds.js
neurip/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK
310c867f6664494c33c8a41c1f1d0d026cba2b22
[ "CC0-1.0" ]
null
null
null
import React from 'react' import { Component } from 'react' import { Modal } from 'react-bootstrap' import { Link } from 'react-router-dom' export default class PayWithSeeds extends Component { constructor(props) { super(props) this.handleSeedType = this.handleSeedType.bind(this) this.state = { seedType: this.props.seedType || "Pay" } } handleSeedType(e) { this.setState({ seedType: e.target.value }) } componentDidUpdate(prevProps) { if (this.props.seedType !== prevProps.seedType) // Check if it's a new user, you can also use some unique property, like the ID (this.props.user.id !== prevProps.user.id) { this.setState({ seedType: this.props.seedType }) } } render() { return ( <Modal centered className="popup-container custom-modal" show={true}> <div className="popup"> <Link to="/" className="popup-cancel"> <span className="form-cross-icon"> <i className="fa fa-times"></i> </span> </Link> <h1> <select className="payWithSeeds-select" value={this.state.seedType} onChange={this.handleSeedType} > <option value="Pay">Pay</option> <option value="Donate">Donate</option> <option value="Reward">Reward</option> </select> with Seeds </h1> <div className="payWithSeeds-field-group"> <label className="payWithSeeds-label">FROM: Avatar or Seed Username</label> <input type="text" placeholder="username" /> </div> <div className="payWithSeeds-field-group"> <label className="payWithSeeds-label">TO: Avatar or Seed Username</label> <input type="text" placeholder="username" /> </div> <div className="payWithSeeds-field-group"> <label className="payWithSeeds-label">Amount</label> <input type="number" /> </div> <div className="payWithSeeds-field-group"> <label className="payWithSeeds-label">Note</label> <input type="text" /> </div> <button className="popup-submit-button button">{this.state.seedType}</button> </div> </Modal> ); } }
38.810811
179
0.467618
e31e5fba78003fbe1a06181c86b64f59500deec0
663
js
JavaScript
src/cli/__tests__/env.js
Skandar-Ln/mock-server
b45b80a6874ab711342f5a8636137f01ee624b9a
[ "MIT" ]
1
2018-08-22T06:58:31.000Z
2018-08-22T06:58:31.000Z
src/cli/__tests__/env.js
Skandar-Ln/mock-server
b45b80a6874ab711342f5a8636137f01ee624b9a
[ "MIT" ]
null
null
null
src/cli/__tests__/env.js
Skandar-Ln/mock-server
b45b80a6874ab711342f5a8636137f01ee624b9a
[ "MIT" ]
2
2018-08-22T07:00:51.000Z
2018-08-22T07:33:06.000Z
const temp = {}; describe('', () => { test('should have target env mockPath', () => { temp.argv2 = process.argv[2]; process.argv[2] = 'targetMockPath'; require('../env').setMockPath(); expect(process.env.mockPath).toEqual( expect.stringContaining('targetMockPath') ); delete require.cache[require.resolve('../env')]; process.argv[2] = temp.argv2; }); }); describe('', () => { test('should have default env mockPath', () => { require('../env').setMockPath(); expect(process.env.mockPath).toEqual( expect.stringMatching(/mock$/) ); }); });
24.555556
56
0.535445
e31fade381cf4c90b7868d03c5eb88ab232f1d26
1,230
js
JavaScript
repository.js
onihei/msolitairejs
1c6f7a45b532d342f0c860b2bc066d981edc0ba7
[ "MIT" ]
1
2021-08-28T16:23:31.000Z
2021-08-28T16:23:31.000Z
repository.js
onihei/msolitairejs
1c6f7a45b532d342f0c860b2bc066d981edc0ba7
[ "MIT" ]
1
2022-02-13T03:32:53.000Z
2022-02-13T03:32:53.000Z
repository.js
onihei/msolitairejs
1c6f7a45b532d342f0c860b2bc066d981edc0ba7
[ "MIT" ]
1
2021-08-28T16:23:34.000Z
2021-08-28T16:23:34.000Z
import Address from "./address.js"; const prefix = 'msolitairejs'; export default class Repository { static getCurrentLevel() { return Number(localStorage.getItem(`${prefix}.currentLevel`) || '0'); } static setCurrentLevel(level) { localStorage.setItem(`${prefix}.currentLevel`, level); this.setSteps([]); let reached = this.getReachedLevel(); if (level > reached) { this.setReachedLevel(level); } } static getReachedLevel() { return Number(localStorage.getItem(`${prefix}.reachedLevel`) || '0'); } static setReachedLevel(level) { localStorage.setItem(`${prefix}.reachedLevel`, level); } static getSteps() { let steps = localStorage.getItem(`${prefix}.steps`); if (!steps) { return []; } return steps.split(',').map(s => Address.unmarshal(s)); } static setSteps(addresses) { let serialized = addresses.map(address => address.marshal()).join(','); localStorage.setItem(`${prefix}.steps`, serialized); } static addStep(address) { let steps = this.getSteps(); steps.push(address); this.setSteps(steps); } }
25.625
79
0.586992
e3200ab9e63f9dd7aefd8ca3f3c2662cdc8bef58
535
js
JavaScript
index.js
misanche/rhmap-swagger
ef81b20855ecc4fa64633f4a01000f385e1fd1e5
[ "MIT" ]
null
null
null
index.js
misanche/rhmap-swagger
ef81b20855ecc4fa64633f4a01000f385e1fd1e5
[ "MIT" ]
null
null
null
index.js
misanche/rhmap-swagger
ef81b20855ecc4fa64633f4a01000f385e1fd1e5
[ "MIT" ]
null
null
null
const swaggerJSDoc = require('swagger-jsdoc'); const swaggerUI = require('swagger-ui-express'); /** * Exposes a route automatically at <host>/params * @param app Express app * @param apiKey RHMAP Platform */ module.exports = function(app, options) { var swaggerSpec = swaggerJSDoc(options); app.use('/api-docs', swaggerUI.serve); app.use('/api-docs', swaggerUI.setup(swaggerSpec)); app.get('/api-docs.json', function(req, res) { res.setHeader('Content-Type', 'application/json'); res.send(swaggerSpec); }); }
26.75
54
0.68972
e32041623e99dba349bd2f03bd85fa1b5be19c3e
292
js
JavaScript
plugins/links/hosted/promo-link.js
jktzes/iframely
8cd9168e80d9ffe85a1b7028d247c4851ec04420
[ "MIT" ]
2,162
2016-09-17T09:09:04.000Z
2022-03-31T14:39:42.000Z
plugins/links/hosted/promo-link.js
jktzes/iframely
8cd9168e80d9ffe85a1b7028d247c4851ec04420
[ "MIT" ]
561
2015-04-30T11:44:56.000Z
2016-08-24T15:46:50.000Z
plugins/links/hosted/promo-link.js
jktzes/iframely
8cd9168e80d9ffe85a1b7028d247c4851ec04420
[ "MIT" ]
274
2015-01-08T11:18:29.000Z
2022-03-05T03:49:31.000Z
module.exports = { provides: '__promoUri', getData: function(meta, whitelistRecord) { if (meta.promo && whitelistRecord.isAllowed && whitelistRecord.isAllowed('html-meta.promo')) { return { __promoUri: meta.promo }; } } };
24.333333
102
0.554795
e320a211ca9c9ac833ccd8442ff4b0fe380719ae
494
js
JavaScript
App/Components/ConnectionHeader/styles.js
CCRHackathon/app
0ba9f069220ab4cec73175cc3ebbe33b4cf89c27
[ "MIT" ]
null
null
null
App/Components/ConnectionHeader/styles.js
CCRHackathon/app
0ba9f069220ab4cec73175cc3ebbe33b4cf89c27
[ "MIT" ]
null
null
null
App/Components/ConnectionHeader/styles.js
CCRHackathon/app
0ba9f069220ab4cec73175cc3ebbe33b4cf89c27
[ "MIT" ]
null
null
null
import styled from 'styled-components/native'; export const Container = styled.View` background-color: #fff; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; height: 50px; flex-direction: row; justify-content: center; align-items: center; elevation: 5; `; export const ConnectionStatus = styled.View` background-color: ${props => props.color}; margin-left: 10px; width: 15px; height: 15px; border-radius: 15px; `
19
46
0.661943
e320ff5a596b4feb79ed89ba3f030e7fa52eb66d
708
js
JavaScript
alien4cloud-ui/src/main/webapp/scripts/alien4cloud-bootstrap.js
OresteVisari/alien4cloud
260771f575e9628861e55ef9c731907bfa509b90
[ "Apache-2.0" ]
null
null
null
alien4cloud-ui/src/main/webapp/scripts/alien4cloud-bootstrap.js
OresteVisari/alien4cloud
260771f575e9628861e55ef9c731907bfa509b90
[ "Apache-2.0" ]
null
null
null
alien4cloud-ui/src/main/webapp/scripts/alien4cloud-bootstrap.js
OresteVisari/alien4cloud
260771f575e9628861e55ef9c731907bfa509b90
[ "Apache-2.0" ]
null
null
null
define(function (require) { 'use strict'; // require jquery and load plugins from the server var plugins = require('plugins'); var mods = { 'nativeModules': require('a4c-native') }; var alien4cloud = require('alien4cloud'); return { startup: function() { //some common directives directives require(mods.nativeModules , function() { window.alienLoadingBar.className = 'progress-bar progress-bar-success'; window.alienLoadingBar = undefined; window.alienLoadingFile = undefined; // load all plugins and then start alien 4 cloud. plugins.init().then(function() { alien4cloud.startup(); }); }); } }; });
26.222222
79
0.625706
e321167eb4b86f5a853e2567c25f56ccadd93e32
1,535
js
JavaScript
legacy/packages/gamedirector/main.js
Truemedia/regeneration-controls
5d627e198952db030d48d5101dd590d61954ca54
[ "MIT" ]
null
null
null
legacy/packages/gamedirector/main.js
Truemedia/regeneration-controls
5d627e198952db030d48d5101dd590d61954ca54
[ "MIT" ]
null
null
null
legacy/packages/gamedirector/main.js
Truemedia/regeneration-controls
5d627e198952db030d48d5101dd590d61954ca54
[ "MIT" ]
null
null
null
/** * @file Game director PACKAGE * @author Wade Penistone (Truemedia) * @overview Core Regeneration Primer package used for balancing the difficultly of the game where implemented to a reasonable level where the difficulty can gradually progress * @copyright Wade Penistone 2014 * @license MIT license ({@link http://opensource.org/licenses/MIT| See here}) * Git repo: {@link http://www.github.com/Truemedia/Regeneration-Primer| Regeneration Primer github repository} * Author links: {@link http://youtube.com/MCOMediaCityOnline| YouTube} and {@link http://github.com/Truemedia| Github} */ define(["Toastr"], function(toastr) { /** * Game Director package * @namespace gamedirector */ gamedirector = { // Translations trans: {}, // Package options settings: null, // Round/Wave number round_number: 0, /* Initial load-up procedure if first time package is loaded */ init: function(options) { // Register package Package.register('gamedirector'); }, /* Autoloading hook */ load: function(element, options) { // Load the package onto current web-page this.init(options); this.roundCall(); }, /* Warn player that next round is commencing */ roundCall: function() { // Increment round number gamedirector.round_number++; // Display notification toastr.options = Config.get('gamedirector::toastr'); toastr.error("Prepare to fight", "Round "+gamedirector.round_number); } }; return gamedirector; });
27.909091
176
0.68013
e325eabe3d347530f7554fd53fb4169aae21f09e
1,561
js
JavaScript
commands/fun/quiz.js
fudgepop01/Floofy-Bot
b8b8a0de00775323812a3ad5b28a30454f0e2ae1
[ "MIT" ]
2
2019-08-25T15:33:43.000Z
2021-07-11T06:16:10.000Z
commands/fun/quiz.js
dar2355/Floofy-Bot
b8b8a0de00775323812a3ad5b28a30454f0e2ae1
[ "MIT" ]
null
null
null
commands/fun/quiz.js
dar2355/Floofy-Bot
b8b8a0de00775323812a3ad5b28a30454f0e2ae1
[ "MIT" ]
null
null
null
const { Command } = require('discord.js-commando'); const fs = require('fs'); const path = require('path'); // const config = require('../../settings'); module.exports = class QuizCommand extends Command { constructor(client) { super(client, { name: 'quiz', group: 'fun', memberName: 'quiz', description: 'Sends a random question an expects a correct answer.' }); } async run(msg) { const quiz = await JSON.parse(fs.readFileSync(path.join(__dirname, '../../assets/quiz/quiz.json'), 'utf-8')); // jsonfile.readFile(path.join(__dirname, '../../config/user/uconfig.json'), (err, data) => { const item = quiz[Math.floor(Math.random() * quiz.length)]; msg.say(item.q) .then(() => { msg.channel.awaitMessages(answer => item.a.join('|').toLowerCase().includes(answer.content.toLowerCase()), { max: 1, time: 30000, errors: ['time'] }) .then((collected) => { /* let user = collected.first().author.id; if (!uconfig[user]) uconfig[user] = {}; if (!uconfig[user].points) { uconfig[user].points = 100; } uconfig[user].points += 10; jsonfile.writeFileSync(path.join(__dirname, '../../config/user/uconfig.json'), uconfig, { spaces: 4 });*/ msg.say(`We have a winner! *${collected.first().author.username}* had a right answer with \`${collected.first().content}\`!\n10 points have bene awarded!`); // make dougnut currency system instead? }) .catch(() => { msg.say('Seems no one got it! Oh well.'); }); }).catch(error => msg.say(error.text)); } };
36.302326
162
0.61435
e3265f1e99403e84b36cd5142b90ba0b197f3c82
4,238
js
JavaScript
MobileApp/src/Routes/Main/Components/SearchForm.js
StYankov/MyTravel
15ab9ae06d9baf8ebbdabdd3b1b8ac28f48849f7
[ "MIT" ]
null
null
null
MobileApp/src/Routes/Main/Components/SearchForm.js
StYankov/MyTravel
15ab9ae06d9baf8ebbdabdd3b1b8ac28f48849f7
[ "MIT" ]
null
null
null
MobileApp/src/Routes/Main/Components/SearchForm.js
StYankov/MyTravel
15ab9ae06d9baf8ebbdabdd3b1b8ac28f48849f7
[ "MIT" ]
null
null
null
import React, { Component } from 'react'; import { View, Text, StyleSheet, TextInput, Keyboard } from 'react-native'; import { Form, Button } from 'native-base'; import EntypoIcon from 'react-native-vector-icons/Entypo'; import EvilIcons from 'react-native-vector-icons/EvilIcons'; import { Actions } from 'react-native-router-flux'; import { connect } from 'react-redux'; import { fetchData } from '../../../Actions/SearchActions'; import { INPUT_DARK_PURPLE, COLOR_SILVER } from '../../../Configuration/colors'; class SearchForm extends Component { constructor(props) { super(props); this.state = { start: '', end: '' }; this.handleSubmit = this.handleSubmit.bind(this); } handleSubmit() { if (this.state.end !== '' && this.state.start !== '') { Keyboard.dismiss(); this.props.onSearch(this.state.start, this.state.end); Actions.search(); } } render() { return ( <View style={styles.formContainer}> <Form style={styles.formStyles}> <View style={styles.inputContainer}> <EntypoIcon name="location" size={20} style={styles.iconStyle} /> <TextInput multiline={false} placeholderTextColor={COLOR_SILVER} underlineColorAndroid="rgba(0,0,0,0)" style={styles.input} placeholder="Начало" name="start" value={this.state.start} onChangeText={text => this.setState({ start: text })} autoCorrect /> </View> <View style={styles.inputContainer}> <EvilIcons name="location" size={25} style={styles.iconStyle} /> <TextInput multiline={false} placeholderTextColor={COLOR_SILVER} underlineColorAndroid="rgba(0,0,0,0)" style={styles.input} placeholder="Крайна спирка" name="end" value={this.state.end} onChangeText={text => this.setState({ end: text })} /> </View> <Button block activeOpacity={0.7} transparent style={styles.buttonStyle} onPress={this.handleSubmit} > <Text style={[styles.input, { textAlign: 'center' }]}> Търси! </Text> </Button> </Form> </View> ); } } const styles = StyleSheet.create({ input: { flex: 0.9, color: COLOR_SILVER, fontSize: 17, fontWeight: 'bold', paddingLeft: 10 }, inputContainer: { flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'center', backgroundColor: INPUT_DARK_PURPLE, borderRadius: 10, borderWidth: 0, paddingHorizontal: 7 }, inputIcon: { flex: 0.1, paddingLeft: 10 }, iconStyle: { color: '#FF4500', fontWeight: 'bold' }, formContainer: { flex: 1.1, justifyContent: 'center', flexDirection: 'row' }, formStyles: { flex: 0.8, flexDirection: 'column', justifyContent: 'space-around', paddingTop: 13 }, buttonStyle: { borderWidth: 2, borderColor: '#634c75', borderRadius: 2, marginBottom: 15 } }); const mapDispatchToProps = dispatch => ( { onSearch: (start, end) => { dispatch(fetchData(start, end)); } } ); SearchForm = connect(null, mapDispatchToProps)(SearchForm); export default SearchForm;
29.227586
89
0.46673
e32743b146f2d796cbc024c3cf9fa2a2d0975468
350
js
JavaScript
test/regressions/tests/TextField/TextFieldMargin.js
ghondar/krowdy-ghondar
662a3f7e553345cb63bad06f049732aa286a85b8
[ "MIT" ]
10
2019-11-25T21:02:39.000Z
2020-02-13T05:10:26.000Z
test/regressions/tests/TextField/TextFieldMargin.js
ghondar/krowdy-ghondar
662a3f7e553345cb63bad06f049732aa286a85b8
[ "MIT" ]
15
2020-04-17T00:26:43.000Z
2022-02-26T19:48:46.000Z
test/regressions/tests/TextField/TextFieldMargin.js
ghondar/krowdy-ghondar
662a3f7e553345cb63bad06f049732aa286a85b8
[ "MIT" ]
1
2020-03-05T21:23:18.000Z
2020-03-05T21:23:18.000Z
import React from 'react' import TextField from '@material-ui/core/TextField' export default function TextFieldMargin() { return ( <div style={{ display: 'flex' }}> <TextField defaultValue='Default Value' label='Dense' margin='dense' /> <TextField label='Dense' margin='dense' style={{ position: 'absolute ' }} /> </div> ) }
29.166667
82
0.66
e327cfc597de68890889e5cdbdafa26613a64a89
255
js
JavaScript
docs/search/classes_0.js
starix/libsaltpack
23944aeb2b3c06759e0729fe015120f46efac17a
[ "Apache-2.0" ]
2
2019-09-11T14:59:30.000Z
2019-09-12T03:48:57.000Z
docs/search/classes_0.js
starix/libsaltpack
23944aeb2b3c06759e0729fe015120f46efac17a
[ "Apache-2.0" ]
4
2020-05-13T07:27:45.000Z
2020-08-09T16:34:05.000Z
docs/search/classes_0.js
Gherynos/libsaltpack
207486958237f9be62c9b41877a8a518acae7d14
[ "Apache-2.0" ]
2
2020-07-17T14:09:54.000Z
2022-03-04T18:56:40.000Z
var searchData= [ ['armoredinputstream_37',['ArmoredInputStream',['../classsaltpack_1_1_armored_input_stream.html',1,'saltpack']]], ['armoredoutputstream_38',['ArmoredOutputStream',['../classsaltpack_1_1_armored_output_stream.html',1,'saltpack']]] ];
42.5
117
0.768627
e329c1336682108aa76da6440a74da02942ea4d4
548
js
JavaScript
packages/web/src/features/Document/view/Positions/view/Alternatives/AlternativeRows/HeaderRow.js
estallio/haustechnik-esterbauer-invoice-management
850029df488e524c5e51f822193b8a423c387741
[ "MIT" ]
3
2020-11-15T21:34:12.000Z
2021-05-03T10:20:47.000Z
packages/web/src/features/Document/view/Positions/view/Alternatives/AlternativeRows/HeaderRow.js
estallio/haustechnik-esterbauer-invoice-management
850029df488e524c5e51f822193b8a423c387741
[ "MIT" ]
null
null
null
packages/web/src/features/Document/view/Positions/view/Alternatives/AlternativeRows/HeaderRow.js
estallio/haustechnik-esterbauer-invoice-management
850029df488e524c5e51f822193b8a423c387741
[ "MIT" ]
null
null
null
import React from 'react'; import PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import { Text } from '@fluentui/react/lib/Text'; import { selectAlternativeById } from '../../../../../redux/Alternatives'; const HeaderRow = ({ alternativeId }) => { const pos = useSelector( (state) => selectAlternativeById(state, alternativeId).pos, ); return <Text variant="medium">Alternative {pos}</Text>; }; HeaderRow.propTypes = { alternativeId: PropTypes.string.isRequired, }; export default React.memo(HeaderRow);
23.826087
74
0.69708
e329f006f63fc1198fb4ee94aea221cae94c151f
843
js
JavaScript
sattolo.js
hville/array-order
d678602614d72d188bfd5f8148f1a0d68145a823
[ "MIT" ]
1
2017-03-19T15:41:33.000Z
2017-03-19T15:41:33.000Z
sattolo.js
hville/array-order
d678602614d72d188bfd5f8148f1a0d68145a823
[ "MIT" ]
null
null
null
sattolo.js
hville/array-order
d678602614d72d188bfd5f8148f1a0d68145a823
[ "MIT" ]
null
null
null
/** * in-place random single cycle derangement * https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Sattolo's_algorithm * * @example * const arr = [1, 0, 2] * sattolo(arr) // arr is now deranged * * @typedef {Array|Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Uint8ClampedArray|Float32Array|Float64Array} ArrayLike * @param {ArrayLike} src * @param {ArrayLike} [tgt] * @return {ArrayLike} */ export default function(src, tgt) { if (tgt) { // inside-out tgt[0] = src[0] for (let j=1; j<src.length; ++j) { let i = Math.floor(Math.random() * j) if (i !== j) tgt[j] = tgt[i] tgt[i] = src[j] } return tgt } // in-place let j = src.length while (--j) { const i = Math.floor(Math.random() * j), // i<j always deranged t = src[i] src[i] = src[j] src[j] = t } return src }
24.794118
140
0.632266
e32a190d0f8830475f5846f88b1b4b2a3ae858d2
505
js
JavaScript
WebApp/Content/index.js
caphindsight/TrulyQuantumChess
041b6dff3ceec1415cb086c38c11ec39d4e4eb60
[ "WTFPL" ]
80
2017-02-25T09:31:08.000Z
2022-03-16T14:39:00.000Z
WebApp/Content/index.js
caphindsight/TrulyQuantumChess
041b6dff3ceec1415cb086c38c11ec39d4e4eb60
[ "WTFPL" ]
18
2017-02-17T21:40:56.000Z
2021-06-22T18:24:09.000Z
WebApp/Content/index.js
caphindsight/TrulyQuantumChess
041b6dff3ceec1415cb086c38c11ec39d4e4eb60
[ "WTFPL" ]
13
2018-01-01T06:28:00.000Z
2022-01-04T08:26:21.000Z
var g_captcha_response = ""; function captcha_callback(captcha_response) { g_captcha_response = captcha_response; $("#launch_new_game_btn").prop("disabled", false); } $(function() { $("#launch_new_game_btn").click(function() { $.get(prefix + "/api/new_game", { "captcha_response": g_captcha_response }, function(data) { var gameId = data.gameId; window.location = prefix + "/play?gameId=" + gameId; }); }); });
26.578947
64
0.578218
e32aa74cfb32d830b5f2d49e486030ea07e665e7
1,012
js
JavaScript
src/constants/ws-constants.js
instaloper/storejs-lib
e842b51b79d59bf1dce700b05658fc3c70891e97
[ "MIT" ]
20
2019-02-08T12:44:49.000Z
2021-07-07T08:56:24.000Z
src/constants/ws-constants.js
instaloper/storejs-lib
e842b51b79d59bf1dce700b05658fc3c70891e97
[ "MIT" ]
13
2019-08-07T14:35:07.000Z
2020-04-13T13:22:18.000Z
src/constants/ws-constants.js
instaloper/storejs-lib
e842b51b79d59bf1dce700b05658fc3c70891e97
[ "MIT" ]
4
2019-03-11T15:44:02.000Z
2019-08-13T11:12:53.000Z
export const CONNECTION_TIMEOUT = 30e3; export const MAX_RETRIES = 1000; export const PING_TIMEOUT = 10 * 1000; export const PING_DELAY = 10 * 1000; export const DEBUG = false; export const CONNECTION_CLOSED_ERROR_MESSAGE = 'connection closed'; export const CHAIN_API = { DATABASE_API: 'database', NETWORK_BROADCAST_API: 'network_broadcast', HISTORY_API: 'history', REGISTRATION_API: 'registration', ASSET_API: 'asset', LOGIN_API: 'login', NETWORK_NODE_API: 'network_node', ECHORAND_API: 'echorand', DID_API: 'did', }; export const CHAIN_APIS = [ CHAIN_API.DATABASE_API, CHAIN_API.NETWORK_BROADCAST_API, CHAIN_API.HISTORY_API, CHAIN_API.REGISTRATION_API, CHAIN_API.ASSET_API, CHAIN_API.LOGIN_API, CHAIN_API.NETWORK_NODE_API, CHAIN_API.ECHORAND_API, CHAIN_API.DID_API, ]; export const DEFAULT_CHAIN_APIS = [ CHAIN_API.DATABASE_API, CHAIN_API.NETWORK_BROADCAST_API, CHAIN_API.HISTORY_API, CHAIN_API.LOGIN_API, ]; export const STATUS = { OPEN: 'OPEN', ERROR: 'ERROR', CLOSE: 'CLOSE', };
23.534884
67
0.772727
e32ac0c8f40d58ef8785933d4275945bdf07a47b
4,723
js
JavaScript
test/boundingBox.js
mkhalila/nearest-roads
dab8a339a000021e7a8885f6d5e26796c7d19176
[ "MIT" ]
1
2018-06-06T01:51:36.000Z
2018-06-06T01:51:36.000Z
test/boundingBox.js
mkhalila/nearest-roads
dab8a339a000021e7a8885f6d5e26796c7d19176
[ "MIT" ]
1
2018-01-17T07:21:10.000Z
2018-05-12T20:41:21.000Z
test/boundingBox.js
mkhalila/nearest-roads
dab8a339a000021e7a8885f6d5e26796c7d19176
[ "MIT" ]
null
null
null
const should = require('chai').should(); const nearestRoads = require('../index'); const { boundingBox } = nearestRoads; const northLat = 51.4279553567; const eastLong = -0.1409986702; const southLat = 51.4201937049; const westLong = -0.1537517291; describe('#boundingBox', () => { it('returns error when northLat is not a number', (done) => { boundingBox('northLat', eastLong, southLat, westLong, (err, roads) => { should.exist(err); should.not.exist(roads); err.message.should.equal('northLat, eastLong, southLat and westLong must all be numbers.'); done(); }); }); it('returns error when eastLong is not a number', (done) => { boundingBox(northLat, false, southLat, westLong, (err, roads) => { should.exist(err); should.not.exist(roads); err.message.should.equal('northLat, eastLong, southLat and westLong must all be numbers.'); done(); }); }); it('returns error when southLat is not a number', (done) => { boundingBox(northLat, eastLong, [], westLong, (err, roads) => { should.exist(err); should.not.exist(roads); err.message.should.equal('northLat, eastLong, southLat and westLong must all be numbers.'); done(); }); }); it('returns error when westLong is not a number', (done) => { boundingBox(northLat, eastLong, southLat, {}, (err, roads) => { should.exist(err); should.not.exist(roads); err.message.should.equal('northLat, eastLong, southLat and westLong must all be numbers.'); done(); }); }); it('returns error when northLat is an invalid latitude', (done) => { boundingBox(91.01111111, eastLong, southLat, westLong, (err, roads) => { should.exist(err); should.not.exist(roads); err.message.should.equal('Latitude must be between -90 and 90'); done(); }); }); it('returns error when southLat is an invalid latitude', (done) => { boundingBox(northLat, eastLong, 178.123456789, westLong, (err, roads) => { should.exist(err); should.not.exist(roads); err.message.should.equal('Latitude must be between -90 and 90'); done(); }); }); it('returns error when eastLong is an invalid longitude', (done) => { boundingBox(northLat, 231.123456789, southLat, westLong, (err, roads) => { should.exist(err); should.not.exist(roads); err.message.should.equal('Longitude must be between -180 and 180'); done(); }); }); it('returns error when westLong is an invalid longitude', (done) => { boundingBox(northLat, eastLong, southLat, 181.987654321, (err, roads) => { should.exist(err); should.not.exist(roads); err.message.should.equal('Longitude must be between -180 and 180'); done(); }); }); it('returns error when northLat is smaller than southLat', (done) => { boundingBox(northLat - southLat, eastLong, southLat, westLong, (err, roads) => { should.exist(err); should.not.exist(roads); err.message.should.equal('northLat must be greater than southLat.'); done(); }); }); it('returns correct roads when northLat and southLat are equal', (done) => { boundingBox(northLat, eastLong, northLat, westLong, (err, roads) => { should.not.exist(err); should.exist(roads); roads.should.be.an('array'); roads[0].should.be.an('object'); roads[0].should.have.property('name'); roads[0].should.have.property('type'); done(); }); }); it('returns empty array when bounding box is all ocean', (done) => { boundingBox(14.7898478659, -38.1601217896, 14.0850962343, -39.5743702909, (err, roads) => { should.not.exist(err); should.exist(roads); roads.should.be.an('array'); roads.should.have.length(0); done(); }); }); it('returns roads when bounding box is part ocean', (done) => { boundingBox(51.5707755427, 0.922651543, 51.5046221724, 0.6790402342, (err, roads) => { should.not.exist(err); should.exist(roads); roads.should.be.an('array'); roads.length.should.be.greaterThan(0); roads[0].should.be.an('object'); roads[0].should.have.property('name'); roads[0].should.have.property('type'); done(); }); }); it('returns correct roads within small local bounding box', (done) => { boundingBox(northLat, eastLong, southLat, westLong, (err, roads) => { should.not.exist(err); should.exist(roads); roads.should.be.an('array'); roads.length.should.be.greaterThan(0); roads[0].should.be.an('object'); roads[0].should.have.property('name'); roads[0].should.have.property('type'); done(); }); }); });
33.735714
97
0.621851
e32ac9a00da4bd2d0b673d2bf2530737db50c6a2
3,823
js
JavaScript
src/js/main.js
PIWEEK/kuokko
269f1c29b6f21883ec8cf64110712e461f3248bd
[ "MIT" ]
2
2019-01-17T07:21:57.000Z
2022-01-05T05:38:45.000Z
src/js/main.js
PIWEEK/kuokko
269f1c29b6f21883ec8cf64110712e461f3248bd
[ "MIT" ]
null
null
null
src/js/main.js
PIWEEK/kuokko
269f1c29b6f21883ec8cf64110712e461f3248bd
[ "MIT" ]
null
null
null
import { debounceTime } from 'rxjs/operators'; import * as l from "lodash"; import * as sr from "./speechRecognition"; import * as synth from "./speechSynthesis"; import * as handlers from "./handlers"; import StateMachine from "./stm"; // Test the 'speak' UI button // const button = document.getElementById('speak-btn'); // button.addEventListener('click', (event) => { // synth.speak('Hey, Fermati!'); // }); async function onEvent(event) { const text = l.trim(event[0].transcript); console.log(`[listen] Escuchado: "${text}"`); console.log(`[state] ${this.current.name}, steps: ${this.steps.join("->")}`); const handler = await this.matches(text); if (handler) { this.transitionToHandler(handler, text); } } (async function() { const stm = new StateMachine(); stm.add("", { handler: handlers.initialHandler, choices: ["search"] }); stm.add("hear", { global: true, hidden: true, handler: handlers.doYouHearMeHandler }); stm.add("howareyou", { global: true, hidden: true, handler: handlers.howAreYouHandler }); stm.add("ihaveonequestion", { global: true, hidden: true, handler: handlers.iHaveOneQuestionHandler }); stm.add("terminate", { global: true, hidden: true, handler: handlers.terminateHandler }); stm.add("search", { handler: handlers.searchHandler, choices: ["search/next", "search/info", "search/info/*", "start"], global: true }); stm.add("search/next", { handler: handlers.searchNextResultHandler, choices: ["search", "search/next", "start"] }); stm.add("search/next/not-found", { handler: handlers.searchNextResultNotFoundHandler, choices: ["search/next/not-found/go-to-first", "search/next/not-found/terminate"] }); stm.add("search/next/not-found/go-to-first", { handler: handlers.searchNextResultNotFoundGoToFirstHandler, hidden: true, }); stm.add("search/next/not-found/terminate", { handler: handlers.searchNextResultNotFoundTerminateHandler, hidden: true, }); stm.add("search/info", { handler: handlers.searchInfoHandler, choices: ["search/info/*", "search/next", "start"] }); stm.add("search/info/time", { handler: handlers.searchInfoTimeHandler, choices: ["search/info/*", "search/info"], }); stm.add("search/info/guests", { handler: handlers.searchInfoGuestsHandler, choices: ["search/info/*", "search/info"] }); stm.add("search/info/difficulty", { handler: handlers.searchInfoDifficultyHandler, choices: ["search/info/*", "search/info"] }); stm.add("search/info/no-more", { handler: handlers.searchInfoNoMoreHandler, choices: ["start", "search/next"] }); stm.add("recipe/ingredients", { handler: handlers.recipeIngredientsHandler, choices: ["recipe/ready"] }); stm.add("recipe/ready", { handler: handlers.recipeIngredientsReadyHandler, choices: ["recipe/preparation/nextstep"], }); stm.add("recipe/preparation/nextstep", { handler: handlers.recipePreparationNextStep, choices: ["recipe/preparation/nextstep", "recipe/preparation/repeatstep"], }); stm.add("recipe/preparation/repeatstep", { // hidden: true, handler: handlers.recipePreparationRepeatStep, choices: [], }); stm.add("start", { handler: handlers.startHandler, choices: ["recipe/ingredients"] }); stm.add("timer", { hidden: true, global: true, handler: handlers.globalTimerHandler }); stm.add("fallback", { global: true, handler: handlers.fallback, }); document.addEventListener("kuokko:start", async (event) => { const subscription = sr.create().pipe(debounceTime(100)).subscribe(onEvent.bind(stm)); await stm.start(subscription); window.stm = stm; }); })();
24.196203
90
0.652367
e32b6ad3497d30413b4b3d51c64004d220ae6c49
1,058
js
JavaScript
src/LocationItem.js
cixs/my-neighborhood
c0c558a6d6b82d6be28e51bf79429f5fa8f35ba2
[ "CC-BY-3.0" ]
null
null
null
src/LocationItem.js
cixs/my-neighborhood
c0c558a6d6b82d6be28e51bf79429f5fa8f35ba2
[ "CC-BY-3.0" ]
null
null
null
src/LocationItem.js
cixs/my-neighborhood
c0c558a6d6b82d6be28e51bf79429f5fa8f35ba2
[ "CC-BY-3.0" ]
null
null
null
import React from "react"; import PropTypes from "prop-types"; const LocationItem = props => { /* * @desc handler for mouse click on this list item * call the parent setActiveItem with props.index as parameter */ /* * @desc event handler for keydown event */ this.onKeyDown = event => { if (event.keyCode === 13) { // enter key was pressed event.preventDefault(); props.setActiveMarker(props.marker); } }; this.onClick = () => { props.setActiveMarker(props.marker); }; let strClass = "location-item"; if (!props.filtered) { strClass += " no-display"; } if (props.active) { strClass += " active-location"; } return ( <li className={strClass} tabIndex="0"aria-label="location"onClick={this.onClick} onKeyDown={this.onKeyDown}> {props.marker.name} </li> ); }; LocationItem.propTypes = { marker: PropTypes.object.isRequired, active: PropTypes.bool.isRequired, filtered: PropTypes.bool.isRequired, setActiveMarker: PropTypes.func.isRequired }; export default LocationItem;
22.510638
112
0.668242
e32deefe3298cfe1ef7b702336081249eb24de16
1,744
js
JavaScript
src/components/UI/Select/Select.js
verbindingsfout/bootboys
cf656dea55be8bc9596a46d02d05a9a011875bec
[ "MIT" ]
null
null
null
src/components/UI/Select/Select.js
verbindingsfout/bootboys
cf656dea55be8bc9596a46d02d05a9a011875bec
[ "MIT" ]
null
null
null
src/components/UI/Select/Select.js
verbindingsfout/bootboys
cf656dea55be8bc9596a46d02d05a9a011875bec
[ "MIT" ]
null
null
null
import React, { useState } from "react"; import classes from "./Select.module.css"; const Select = ({ id, label, value, invalidMessage, placeholder, options, notifyParentOfChange, className, ...props }) => { const [touched, setTouched] = useState(false); const [valid, setValid] = useState(true); function inputChanged(event) { setTouched(true); setValid(event.target.value !== ""); notifyParentOfChange(id, event.target.value, event.target.value !== ""); } const selectClasses = [classes.SelectElement]; if (!valid && touched) { selectClasses.push(classes.Invalid); } let validationWarning = null; if (!valid && touched) { validationWarning = ( <p className={classes.validationWarning}> {invalidMessage ? invalidMessage : "*Please enter a valid value"} </p> ); } return ( <div className={className}> <label className={classes.Label}>{label}</label> <select onChange={inputChanged} value={value} className={selectClasses.join(" ")} > <option value="" > {placeholder ? placeholder : "Select a value"} </option> {options?.map((option) => { return ( <option key={option.value} value={option.value}> {option.displayValue} </option> ); })} </select> {validationWarning} </div> ); }; export default Select;
26.424242
80
0.491399
e32e02a474be2c528fdb48eb02a04a5334db0c30
2,972
js
JavaScript
src/organisms/wizard/wizard.js
cheesebit/ui
20a5566cfdc9db4ade3c8d3266a8a7254b055c92
[ "MIT" ]
null
null
null
src/organisms/wizard/wizard.js
cheesebit/ui
20a5566cfdc9db4ade3c8d3266a8a7254b055c92
[ "MIT" ]
11
2020-02-03T16:29:39.000Z
2022-03-12T21:58:38.000Z
src/organisms/wizard/wizard.js
cheesebit/ui
20a5566cfdc9db4ade3c8d3266a8a7254b055c92
[ "MIT" ]
null
null
null
import React from 'react'; import clsx from 'clsx'; import { Button } from 'atoms/button'; import { Icon } from 'atoms/icon'; import { isNil, getID } from 'common/toolset'; import { Panels } from 'atoms/panels'; import { resolveProp } from 'common/props-toolset'; import logger from 'common/logger'; import selectors from './selectors'; import Step from './wizard-step'; import useWizard from './use-wizard'; import WizardContext from './wizard.context'; import './wizard.scss'; function hashed(id) { id = String(id || ''); if (id.startsWith('#')) { return id; } return `#${id}`; } function unhashed(id) { id = String(id || ''); if (id.startsWith('#')) { return id.slice(1); } return id; } /** * * @template T * @param {WizardProps<T>} props * @returns */ function Wizard(props) { const { id, className, children, title, flow, ...others } = props; const { transition, states, current, contextValue } = useWizard({ current: unhashed(selectors.getActive(props)), id, flow, }); /** @type {React.MutableRefObject<HTMLElement>}*/ const selfRef = React.useRef(); const transitionToPrevious = React.useCallback(() => { transition('previous'); }, [transition]); const transitionToNext = React.useCallback(() => { transition('next'); }, [transition]); React.useEffect(() => { logger.debug('wizard', 'navivating to', hashed(current)); location.href = `${location.origin}${location.pathname}${ location.search }${hashed(current)}`; }, [current]); return ( <article ref={selfRef} id={id} className={clsx('cc-wizard', className)} {...others} > <header className="header"> <Button emphasis="text" onClick={transitionToPrevious} paddingless={['vertical']} className={clsx({ 'cb-is-invisible': isNil(states?.previous), })} > <Icon name="arrow-back" /> </Button> <span className="title" {...resolveProp(title, 'children')} /> <Button emphasis="text" onClick={transitionToNext} paddingless={['vertical']} className={clsx({ 'cb-is-invisible': isNil(states?.next), })} > <Icon name="arrow-forward" /> </Button> </header> <WizardContext.Provider value={contextValue}> <Panels>{children}</Panels> </WizardContext.Provider> </article> ); } Wizard.defaultProps = { id: getID(), }; Wizard.Step = Step; export default Wizard; /** * @typedef {import('common/prop-types').IconProp} IconProp * @typedef {import('common/prop-types').PaddinglessProp} PaddinglessProp */ /** * @typedef {React.HTMLAttributes<HTMLElement>} DefaultElementProps */ /** * @template T * @typedef {Object} CustomWizardProps * @property {string} [title] - Wizard title * @property {keyof T} [current] - Initial step * @property {import('@cheesebit/use-automaton').AutomatonStates<T>} flow - Wizard steps configuration */ /** * @template T * @typedef {DefaultElementProps & CustomWizardProps<T>} WizardProps */
22.179104
102
0.645693
e32e1fa039da4242de29e6546d4e0fa264ac023a
29,994
js
JavaScript
static/main/js/game.js
zypangpang/pubgsite
234b3fe39239ed6d292032a2882feba58a275a6b
[ "MIT" ]
null
null
null
static/main/js/game.js
zypangpang/pubgsite
234b3fe39239ed6d292032a2882feba58a275a6b
[ "MIT" ]
6
2021-03-19T08:42:58.000Z
2022-02-10T14:15:09.000Z
static/main/js/game.js
zypangpang/pubgsite
234b3fe39239ed6d292032a2882feba58a275a6b
[ "MIT" ]
null
null
null
const config = { type: Phaser.AUTO, width: 1600, height: 800, backgroundColor: '#1c2b31', //backgroundColor: '#244d1b', //parent: 'phaser-example', physics: { default: 'arcade', arcade: { gravity: { y: 0 } } }, /*plugins: { global: [ { key: 'DialogModalPlugin', plugin: DialogModalPlugin, start: true } ] },*/ scene: { preload: preload, create: create, update: update } }; /**************** global variables ************************/ let game = new Phaser.Game(config); let dX=0,dY=0; let heroMapPos; let heroSpeed=2; let facing='south';//direction the character faces let layer,mapwidth,mapheight; //let heroWidth=128; let player; let heroMapTile; let skeletons = {}; let tileWidthHalf; let scene; let tilesets; let centerX,centerY; //let first=true; let gameOver=false; let parachuting=true; let keys; /**************** global variables ************************/ const directions = { still:{offset:224,x:0,y:0,opposite:'still'}, west: { offset: 0, x: -2, y: 0, opposite: 'east' }, northWest: { offset: 32, x: -2, y: -1, opposite: 'southEast' }, north: { offset: 64, x: 0, y: -2, opposite: 'south' }, northEast: { offset: 96, x: 2, y: -1, opposite: 'southWest' }, east: { offset: 128, x: 2, y: 0, opposite: 'west' }, southEast: { offset: 160, x: 2, y: 1, opposite: 'northWest' }, south: { offset: 192, x: 0, y: 2, opposite: 'north' }, southWest: { offset: 224, x: -2, y: 1, opposite: 'northEast' } }; let anims = { idle: { startFrame: 0, endFrame: 4, speed: 0.2 }, known_idle: { startFrame:96, endFrame:100, }, walk: { startFrame: 4, endFrame: 12, speed: 0.15 }, attack: { startFrame: 12, endFrame: 20, speed: 0.11 }, die: { startFrame: 20, endFrame: 28, speed: 0.2 }, shoot: { startFrame: 28, endFrame: 32, speed: 0.1 } }; let base_path='/static/main/'; function preload () { //this.load.image('sky', base_path+'assets/sky.png'); this.load.json('map', base_path+'assets/isometric-grass-and-water.json'); this.load.spritesheet('tiles', base_path+'assets/isometric-grass-and-water.png', { frameWidth: 64, frameHeight: 64 }); this.load.spritesheet('skeleton', base_path+'assets/skeleton.png', { frameWidth: 128, frameHeight: 128 }); this.load.image('house', base_path+'assets/rem_0002.png'); this.load.image('background', base_path+'assets/background-2.jpg'); this.load.image('goodend', base_path+'assets/goodend.jpg'); this.load.image('badend', base_path+'assets/badend.png'); this.load.spritesheet('helicopter', base_path+'assets/helicopter-spritesheet.png', { frameWidth: 423, frameHeight: 150 } ); this.load.scenePlugin('DialogModalPlugin', base_path+'js/dialog_plugin.js','dialogModalPlugin','dialogModal'); } let userid; class Skeleton extends Phaser.GameObjects.Sprite { constructor(scene, x, y,user_name,anim_name){ super(scene, x, y-16, 'skeleton', 224); if(anim_name) this.anim_name=anim_name; else this.anim_name='idle'; this.TEXT_X_OFFSET=0; this.TEXT_Y_OFFSET=45; this.OBJECT_Y_OFFSET=16; this.name_text=scene.add.text(x-this.TEXT_X_OFFSET, y-this.TEXT_Y_OFFSET, user_name, { fontSize: '16px', color: '#ffffff', fontStyle: 'bold'}); this.name_text.setOrigin(0.5); this.user_id=user_name; this.x = x; this.y = y; this.depth = y + 64; this.name_text.depth=y+64; } move(next_x,next_y){ this.x=next_x; this.y=next_y-this.OBJECT_Y_OFFSET; this.name_text.x=next_x-this.TEXT_X_OFFSET; this.name_text.y=next_y-this.OBJECT_Y_OFFSET-this.TEXT_Y_OFFSET; this.depth=next_y+64; this.name_text.depth=next_y+64; } setVisible(visible){ this.name_text.setVisible(visible); super.setVisible(visible); } setTextTint(tint){ this.name_text.setTint(tint); } } let dialog; let helicopter; let mapGroup; let houseGroup; let jumpSkeleton; let test_parachting=false; function create () { scene = this; createAnims(); //add background this.add.image(800,400,'background'); /**************** create objects for parachuting **********************/ if(test_parachting) { helicopter = this.physics.add.sprite(0, 100, 'helicopter', 0); helicopter.depth = 1200; helicopter.setVelocityX(200); jumpSkeleton = this.physics.add.sprite(800, 150, 'skeleton', 224); jumpSkeleton.depth = 1500; jumpSkeleton.setVisible(false); } /**************** create objects for parachuting **********************/ /**************** create dialog modal to show message **********************/ dialog=this.dialogModal; dialog.init(); dialog.toggleWindow(); /**************** create dialog modal to show message **********************/ /**************** create cursor key for movement **********************/ cursors = this.input.keyboard.createCursorKeys(); /**************** create cursor key for movement **********************/ /**************** create group for convenience **********************/ mapGroup=this.add.group(); houseGroup=this.add.group(); /**************** create group for convenience **********************/ /**************** build map and house **********************/ buildMap(); placeHouses(); /**************** build map and house **********************/ mapGroup.toggleVisible(); houseGroup.toggleVisible(); heroMapTile=new Phaser.Geom.Point(0,0); /**************** put player **********************/ //requestAndRefreshPlayerInfo(); get_cur_state(INIT_URL); /**************** put player **********************/ keys = this.input.keyboard.addKeys('ESC,SPACE'); /**************ONLY FOR DEBUG**************************/ setAllVisible(true); showMessage('game begin'); /**************ONLY FOR DEBUG**************************/ this.cameras.main.setSize(1600, 800); /*this.input.on('pointerdown',function (pointer) { console.log(pointer.x,pointer.y); skeletons[0].setDestination(pointer.x,pointer.y) },this);*/ // this.cameras.main.scrollX = 800; } function createAnims() { /*still:{offset:224,x:0,y:0,opposite:'still'}, west: { offset: 0, x: -2, y: 0, opposite: 'east' }, northWest: { offset: 32, x: -2, y: -1, opposite: 'southEast' }, north: { offset: 64, x: 0, y: -2, opposite: 'south' }, northEast: { offset: 96, x: 2, y: -1, opposite: 'southWest' }, east: { offset: 128, x: 2, y: 0, opposite: 'west' }, southEast: { offset: 160, x: 2, y: 1, opposite: 'northWest' }, south: { offset: 192, x: 0, y: 2, opposite: 'north' }, southWest: { offset: 224, x: -2, y: 1, opposite: 'northEast' }*/ scene.anims.create({ key: 'heli-fly', frames: scene.anims.generateFrameNumbers('helicopter', { start: 0, end: 3 }), frameRate:20 }); scene.anims.create({ key: 'idle', frames: scene.anims.generateFrameNumbers('skeleton', { start: 224, end: 227 }), frameRate:5 }); scene.anims.create({ key: 'die', frames: scene.anims.generateFrameNumbers('skeleton', { start: 212, end: 219 }), frameRate:5 }); scene.anims.create({ key: 'known-idle', frames: scene.anims.generateFrameNumbers('skeleton', { start: 192, end: 195 }), frameRate:5 }); scene.anims.create({ key: 'west', frames: scene.anims.generateFrameNumbers('skeleton', { start: 4, end: 11 }), frameRate:10 }); scene.anims.create({ key: 'northwest', frames: scene.anims.generateFrameNumbers('skeleton', { start: 36, end: 43 }), frameRate:10 }); scene.anims.create({ key: 'north', frames: scene.anims.generateFrameNumbers('skeleton', { start: 68, end: 75 }), frameRate:10 }); scene.anims.create({ key: 'northeast', frames: scene.anims.generateFrameNumbers('skeleton', { start: 100, end: 107 }), frameRate:10 }); scene.anims.create({ key: 'east', frames: scene.anims.generateFrameNumbers('skeleton', { start: 132, end: 139 }), frameRate:10 }); scene.anims.create({ key: 'southeast', frames: scene.anims.generateFrameNumbers('skeleton', { start: 164, end: 171 }), frameRate:10 }); scene.anims.create({ key: 'south', frames: scene.anims.generateFrameNumbers('skeleton', { start: 196, end: 203 }), frameRate:10 }); scene.anims.create({ key: 'southwest', frames: scene.anims.generateFrameNumbers('skeleton', { start: 228, end: 235 }), frameRate:10 }); } /*function myBuildMap() { const map = scene.make.tilemap({ key: "map" }); // Parameters are the name you gave the tileset in Tiled and then the key of the tileset image in // Phaser's cache (i.e. the name you used in preload) const tileset = map.addTilesetImage("isometric_grass_and_water", "tiles"); // Parameters: layer name (or index) from Tiled, tileset, x, y const Layer = map.createStaticLayer("Tile Layer 1", tileset, 0, 0); }*/ /****************** auxiliary function to get map tile property*********************/ Array.prototype.containsArray = function(val) { let hash = {}; for(let i=0; i<this.length; i++) { hash[this[i]] = i; } return hash.hasOwnProperty(val); }; function checkProperty(name) { return function (prpty) { return prpty.name===name; } } function getProperty(tile,name) { return tile.properties.find(checkProperty(name)).value; } /****************** auxiliary function to get map tile property*********************/ function drawTileIso(x,y,tileId) { /*********function to draw map tile on the scene*************/ let cartPt=new Phaser.Geom.Point();//This is here for better code readability. cartPt.x=x*tileWidthHalf; cartPt.y=y*tileWidthHalf; let isoPt=cartesianToIsometric(cartPt); //let tx = (x - y) * tileWidthHalf; //let ty = (x + y) * tileHeightHalf; let tx=isoPt.x; let ty=isoPt.y; let tile = scene.add.image(tx, ty, 'tiles', tileId); //tile.depth = centerY + ty; tile.depth = 16; mapGroup.add(tile); } function buildMap () { // Parse the data out of the map const data = scene.cache.json.get('map'); tileWidthHalf = data.tilewidth / 2; //tileHeightHalf = data.tileheight / 2; layer = data.layers[0].data; tilesets= data.tilesets[0].tiles; mapwidth = data.layers[0].width; //tile count mapheight = data.layers[0].height;//tile count centerX = mapwidth * tileWidthHalf; //pixel centerY = 20; //pixel let i = 0; for (let y = 0; y < mapheight; y++) { for (let x = 0; x < mapwidth; x++) { drawTileIso(x,y,layer[i]-1); i++; } } } /********************* place house related ******************************/ let HouseCoords=[[3,21],[21,3]]; let HouseCollidesCoords={}; let houseAuxArrayX= [ 0,1,2,3 ]; let houseAuxArrayY= [ 1,2,3 ]; let houseNames=['good','bad']; let Houses={}; function placeHouses () { let len=HouseCoords.length; for(let i=0;i<len;++i) { let point=HouseCoords[i]; console.log(point); HouseCollidesCoords[houseNames[i]]=[]; for(let j=0;j<houseAuxArrayX.length;++j) { for(let k=0;k<houseAuxArrayY.length;++k) { HouseCollidesCoords[houseNames[i]].push([point[0]+houseAuxArrayX[j],point[1]+houseAuxArrayY[k]]); } } let tmpPos = getCenterXYFromTileCoord(point[0],point[1]); //let house = scene.physics.add.staticImage(tmpPos.x,tmpPos.y, 'house'); let house = scene.add.image(tmpPos.x, tmpPos.y, 'house'); house.depth = house.y + 96; houseGroup.add(house); Houses[houseNames[i]]=house; } console.log(HouseCollidesCoords); } /********************* place house related ******************************/ function setAllVisible(visible){ mapGroup.children.iterate(function (child) { child.setVisible(visible); }); houseGroup.children.iterate(function (child) { child.setVisible(visible); }); for (let plyer in skeletons) { skeletons[plyer].setVisible(visible); } } /******************** auxiliary function for parachuting ****************/ function jump() { jumpSkeleton.setVisible(true); jumpSkeleton.setGravityY(150); scene.time.delayedCall(1000,heliFlyOut,[],scene); } function heliDestroy() { helicopter.destroy(); console.log('heli destroy'); } function heliFlyOut() { helicopter.setVelocityX(100); mapGroup.toggleVisible(); houseGroup.toggleVisible(); scene.time.delayedCall(10000,heliDestroy,[],scene); //dialog.toggleWindow(); //dialog.setText('hello world ljdlshflsdl'); } function showMessage(message,time_out,call_back) { dialog.setVisible(true); dialog.setText(message,true); if(time_out) { scene.time.delayedCall(time_out,function () { dialog.setVisible(false); }) } if(call_back) call_back(); } let waitingKey=true; /******************** auxiliary function for parachuting ****************/ function update () { if(gameOver) return; if(init_scene) return; for(let plyer in skeletons) { skeletons[plyer].play(skeletons[plyer].anim_name,true); } /***************** parachuting animation ********************/ if(test_parachting) { if (helicopter.anims) helicopter.anims.play('heli-fly', true); if (parachuting && Math.round(helicopter.x) >= 800) { parachuting = false; helicopter.setVelocityX(0); scene.time.delayedCall(1000, jump, [], scene); } if (jumpSkeleton && jumpSkeleton.y > 500) { jumpSkeleton.destroy(); for (let plyer in skeletons) { skeletons[plyer].setVisible(true); } } } /***************** parachuting animation ********************/ if(authenticationState) { return; } if(openHouseState) { if(!waitingKey) return; if(keys.ESC.isDown) { dialog.setVisible(false); openHouseState=false; } else if(keys.SPACE.isDown){ waitingKey=false; showMessage('opening house'); openHouse(openHouseId); } return; } if(choose_commander) { if(vote_commander) { } return; } houseGroup.children.iterate(function (child) { child.clearTint(); }); /***************** hero move ********************/ detectKeyInput(); //if no key is pressed then stop else play walking animation if (dY === 0 && dX === 0) { player.anims.stop(); player.anims.setCurrentFrame(player.anims.currentAnim.frames[0]); }else{ player.anims.play(facing,true); } //check if we are walking into an object else move hero in 2D if (isWalkableSimple()) { heroMapPos.x += heroSpeed * dX; heroMapPos.y += heroSpeed * dY; let heroIsoPos= cartesianToIsometric(heroMapPos); //console.log(heroIsoPos); //console.log(heroMapPos); player.move(heroIsoPos.x,heroIsoPos.y); //player.x=heroIsoPos.x; //player.y=heroIsoPos.y-16; //depth correct //player.depth=heroIsoPos.y+64; //get the new hero map tile heroMapTile=getTileCoordinates(heroMapPos,tileWidthHalf); } /***************** hero move ********************/ } let authenticationState=false; let openHouseState=false; let openHouseId; function isWalkableSimple() { //let heroCoordinate=getTileCoordinates(heroMapPos,tileWidthHalf); let tdX=dX,tdY=dY; if(tdX===0.5) tdX=1; else if(tdX===-0.5) tdX=-1; if(tdY===0.5) tdY=1; else if(tdY===-0.5) tdY=-1; let nextX=heroMapTile.x+tdX+1; let nextY=heroMapTile.y+tdY+1; if(nextX<0 || nextY<0 || nextX>=mapwidth || nextY>=mapheight) { console.log(nextX,nextY); return false; } for(let plyer in playerCollides) { if (playerCollides[plyer].containsArray([nextX, nextY])) { console.log(nextX, nextY,plyer); //skeletons[plyer].setTint(0xff0000); if(skeletons[plyer].anim_name === 'idle') { showMessage('authenticating ' + plyer, undefined, function () { authenticationState = true; processAuthentication(plyer); }); } return false; } } for(let house in HouseCollidesCoords) { if (HouseCollidesCoords[house].containsArray([nextX, nextY])) { Houses[house].setTint(0x00ff00); showMessage('Do you want to open this house?',undefined,function () { openHouseState=true; openHouseId=house; }); console.log(nextX, nextY); return false; } } let id=layer[nextY*mapheight+nextX]-1; //if(layer[newTileCorner1.y*mapheight+newTileCorner1.x==1){ if(getProperty(tilesets[id],'collides')===true){ console.log(nextX,nextY); return false; } return true; } function detectKeyInput(){//assign direction for character & set x,y speed components if (cursors.up.isDown) { dY = -1; } else if (cursors.down.isDown) { dY = 1; } else { dY = 0; } if (cursors.right.isDown) { dX = 1; if (dY === 0) { facing = "southeast"; } else if (dY===1) { facing = "south"; dX = dY=0.5; } else { facing = "east"; dX=0.5; dY=-0.5; } } else if (cursors.left.isDown) { dX = -1; if (dY === 0) { facing = "northwest"; } else if (dY===1) { facing = "west"; dY=0.5; dX=-0.5; } else { facing = "north"; dX = dY=-0.5; } } else { dX = 0; if (dY === 0) { //facing="west"; } else if (dY===1) { facing = "southwest"; } else { facing = "northeast"; } } } /******************** auxiliary function to deal with isometric projection *********************/ function getCartesianFromTileCoordinates(tilePt, tileHeight){ let tempPt=new Phaser.Geom.Point(); tempPt.x=tilePt.x*tileHeight; tempPt.y=tilePt.y*tileHeight; return(tempPt); } function cartesianToIsometric(cartPt){ let tempPt=new Phaser.Geom.Point(); tempPt.x=centerX+cartPt.x-cartPt.y; tempPt.y=centerY+(cartPt.x+cartPt.y)/2; return (tempPt); } function isometricToCartesian(isoPt){ let tempPt=new Phaser.Geom.Point(); tempPt.x=(2*isoPt.y+isoPt.x)/2; tempPt.y=(2*isoPt.y-isoPt.x)/2; return (tempPt); } function getTileCoordinates(cartPt, tileHeight){ let tempPt=new Phaser.Geom.Point(); tempPt.x=Math.floor(cartPt.x/tileHeight); tempPt.y=Math.floor(cartPt.y/tileHeight); return(tempPt); } function getCenterXYFromTileCoord(tx,ty) { return cartesianToIsometric(getCartesianFromTileCoordinates(new Phaser.Geom.Point(tx,ty),tileWidthHalf)); } /******************** auxiliary function to deal with isometric projection *********************/ /******************** player related functions *********************/ function requestAndRefreshPlayerInfo() { // Add current player heroMapTile=new Phaser.Geom.Point(3,15); heroMapPos=getCartesianFromTileCoordinates(heroMapTile,tileWidthHalf); let heroIsoPos=cartesianToIsometric(heroMapPos); skeletons[userid]=scene.add.existing(new Skeleton(scene, heroIsoPos.x, heroIsoPos.y,userid)); player=skeletons[userid]; player.name_text.setColor('#ff0000'); let playerInfos={ p1:{ position:[2,5] }, p2:{ position: [9,21] } }; addOtherPlayers(playerInfos); for(let plyer in skeletons) { skeletons[plyer].setVisible(false); } } function addOtherPlayers(playerInfos) { for(plyerId in playerInfos) { let plyerCoord=playerInfos[plyerId].position; let playerIsoPos=cartesianToIsometric(getCartesianFromTileCoordinates(new Phaser.Geom.Point(plyerCoord[0],plyerCoord[1]),tileWidthHalf)); if(playerInfos[plyerId].known) skeletons[plyerId]=scene.add.existing(new Skeleton(scene, playerIsoPos.x, playerIsoPos.y,plyerId,'known-idle')); else skeletons[plyerId]=scene.add.existing(new Skeleton(scene, playerIsoPos.x, playerIsoPos.y,plyerId)); } refreshOtherPlayers(playerInfos); } let playerCollides={}; let playerAuxArrayX= [ 0,1 ]; let playerAuxArrayY= [ 0,1 ]; function refreshOtherPlayers(playerInfos) { for(plyerId in playerInfos) { let plyerCoord=playerInfos[plyerId].position; let playerIsoPos=cartesianToIsometric(getCartesianFromTileCoordinates(new Phaser.Geom.Point(plyerCoord[0],plyerCoord[1]),tileWidthHalf)); skeletons[plyerId].move(playerIsoPos.x,playerIsoPos.y); for (let j = 0; j < playerAuxArrayX.length; ++j) { for (let k = 0; k < playerAuxArrayY.length; ++k) { playerCollides[plyerId]=[]; playerCollides[plyerId].push([plyerCoord[0] + playerAuxArrayX[j], plyerCoord[1] + playerAuxArrayY[k]]); } } } } /******************** player related functions *********************/ let cur_state; let init_scene=true; let choose_commander=false; let vote_commander=false; function get_cur_state(url){ $.ajax({ method: 'post', url: url, data: { user_id:'zypang', position_x:heroMapTile.x, position_y:heroMapTile.y, csrfmiddlewaretoken: window.CSRF_TOKEN }, // serializes the form's elements. success: function(data) { cur_state=JSON.parse(data); refreshScene(init_scene); if(cur_state['event']) processEvent(cur_state['event']); if(cur_state['can_choose_commander']) { choose_commander=true; chooseCommander(); } init_scene=false; }, error:function (data) { console.log('ajax error'); } }); /*scene.time.delayedCall(1000,function () { get_cur_state(STATE_URL); });*/ } function refreshScene(first) { if(first) { userid=cur_state['player']; // Add current player heroMapTile=new Phaser.Geom.Point(cur_state['position'][0],cur_state['position'][1]); heroMapPos=getCartesianFromTileCoordinates(heroMapTile,tileWidthHalf); let heroIsoPos=cartesianToIsometric(heroMapPos); player=scene.add.existing(new Skeleton(scene, heroIsoPos.x, heroIsoPos.y,userid)); player.name_text.setColor('#00ff00'); player.play('idle'); addOtherPlayers(cur_state['otherPlayers']); //console.log('length:'+Object.keys(skeletons).length); } else { refreshOtherPlayers(cur_state['otherPlayers']); } } function processEvent(event) { console.log('process event'); showMessage(event.info); if(event.name=='vote_commander'){ processVoteCommander(event.candidates); } else if(event.name=='auth'){ } else if(event.name=='open_house'){ openHouseState=true; } else if(event.name=='game_over'){ gameOver=true; processGameOver(event.end); } } function processAuthentication(userBId) { console.log('auth'); $.ajax({ method: 'post', url: AUTH_URL, data: { userA_id:userid, userB_id:userBId, csrfmiddlewaretoken: window.CSRF_TOKEN }, // serializes the form's elements. success: function(data) { let auth_result=JSON.parse(data); showMessage(auth_result.info); if(auth_result.success) { skeletons[userBId].anim_name='known-idle'; } else skeletons[userBId].setTint(0xff0000); scene.time.delayedCall(1000,function () { authenticationState=false; }); }, error:function (data) { console.log('ajax error'); } }); } let commander_candidates; function processVoteCommander(candidates) { choose_commander=true; vote_commander=true; commander_candidates=candidates; candidates.forEach(function (userid) { let sprite=skeletons[userid]; sprite.setInteractive(); //sprite.setTextTint(0x00ff00); sprite.on('pointerover', function () { sprite.setTint(0xff00ff); }); sprite.on('pointerout', function () { sprite.clearTint(); }); sprite.on('pointerdown',function () { vote_for_commander(sprite.user_id); }); }); } function chooseCommander() { console.log('choose commander'); $.ajax({ method: 'post', url: COMMANDER_URL, data: { user_id:userid, vote:0, csrfmiddlewaretoken: window.CSRF_TOKEN }, // serializes the form's elements. success: function(data) { let result=JSON.parse(data); showMessage(result.info); if(result.success) { skeletons[result.commander].setTint(0xffd700); scene.time.delayedCall(1000,function () { choose_commander=false; }); } else { if(result.need_vote) { vote_commander=true; processVoteCommander(result.candidates); } } }, error:function (data) { console.log('ajax error'); } }); } function vote_for_commander(commanderId) { console.log(commanderId); $.ajax({ method: 'post', url: COMMANDER_URL, data: { user_id:userid, vote:1, vote_commander:commanderId, csrfmiddlewaretoken: window.CSRF_TOKEN }, // serializes the form's elements. success: function(data) { let result=JSON.parse(data); showMessage(result.info); if(result.success) { skeletons[result.commander].setTextTint(0xff6347); skeletons[result.commander].setTint(0xff6347); } commander_candidates.forEach(function (candidate) { skeletons[candidate].removeInteractive(); }); scene.time.delayedCall(1000,function () { choose_commander=false; }); }, error:function (data) { console.log('ajax error'); } }); } function processGameOver(goodend) { gameOver=true; dialog.setVisible(false); if(goodend) { scene.add.image(800,400,'goodend').depth=1500; } else { scene.add.image(800,400,'badend').depth=1500; for(let plyer in skeletons) { skeletons[plyer].play('die',true); } player.play('die',true); } } function openHouse(houseName) { console.log('opening house '+houseName); $.ajax({ method: 'post', url: OPEN_HOUSE_URL, data: { user_id:userid, house_name:houseName, csrfmiddlewaretoken: window.CSRF_TOKEN }, // serializes the form's elements. success: function(data) { let ending=getRndInteger(0,2); let result=JSON.parse(data); showMessage(result.info); if(result.success) { gameOver=true; $.ajax({ method:'post', url: GAME_OVER_URL, data:{ user_id:userid, ending:ending, csrfmiddlewaretoken: window.CSRF_TOKEN }, success: function (data) { console.log('game over sent'); }, error: function (data) { console.log('game over ajax error: '+data); } }); scene.time.delayedCall(5000,function(){ processGameOver(ending); }); } scene.time.delayedCall(1000,function () { openHouseState=false; }); }, error:function (data) { console.log('ajax error'); } }); } function wait(ms){ let start = new Date().getTime(); let end = start; while(end < start + ms) { end = new Date().getTime(); } } function getRndInteger(min, max) { return Math.floor(Math.random() * (max - min) ) + min; }
28.403409
151
0.551544
e32f485a32b92b50c6b6e178c391e68d00e51084
339
js
JavaScript
js/main.js
kasunramkr/eudrakaWebDevolopments
5d28a478cec86f2cc751be020abfaa49a52f7d43
[ "MIT" ]
null
null
null
js/main.js
kasunramkr/eudrakaWebDevolopments
5d28a478cec86f2cc751be020abfaa49a52f7d43
[ "MIT" ]
null
null
null
js/main.js
kasunramkr/eudrakaWebDevolopments
5d28a478cec86f2cc751be020abfaa49a52f7d43
[ "MIT" ]
null
null
null
function submitClick() { alert('Submit : ' + $('#name').val()); } function hideImg() { $('#back_img').hide(); } function showImg() { $('#back_img').show(); } function toggleImg() { $('#back_img').toggle(); } function fadeOutImg() { $('#back_img').fadeOut('slow'); } function fadeInImg() { $('#back_img').fadeIn('slow'); }
14.125
40
0.572271
e32f604ff5f56e641ff78739fcba12ec5491e052
297,567
js
JavaScript
frontend/js/yelp/data/EvolutionData.js
Jerold25/textanalysis_yelp
6097f1dd2e8009434b20d8f9dd7ee64d1d8d43d6
[ "Apache-2.0" ]
null
null
null
frontend/js/yelp/data/EvolutionData.js
Jerold25/textanalysis_yelp
6097f1dd2e8009434b20d8f9dd7ee64d1d8d43d6
[ "Apache-2.0" ]
null
null
null
frontend/js/yelp/data/EvolutionData.js
Jerold25/textanalysis_yelp
6097f1dd2e8009434b20d8f9dd7ee64d1d8d43d6
[ "Apache-2.0" ]
null
null
null
var evolutionData = [ { "date": 19740901, "Ageing": 7, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": 1, "Crime": 15, "Defence": 5, "Drug Abuse": 4, "Economy": 52, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 14, "Inner Cities": null, "Local Govt": 2, "Low Pay": 6, "Morality": 7, "NHS": 27, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 7, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 11, "Privatisation": 1, "Public Services": 6, "Immigration": 29, "Scots/Welsh Assembly": 1, "Taxation": 6, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 28 }, { "date": 19741001, "Ageing": 4, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": 1, "Crime": 14, "Defence": 9, "Drug Abuse": 4, "Economy": 52, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 13, "Inner Cities": null, "Local Govt": 3, "Low Pay": 8, "Morality": 7, "NHS": 19, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": 4, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 14, "Privatisation": 1, "Public Services": 5, "Immigration": 26, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 27 }, { "date": 19771101, "Ageing": 8, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": 2, "Crime": 18, "Defence": 4, "Drug Abuse": 5, "Economy": 52, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 14, "Inner Cities": null, "Local Govt": 3, "Low Pay": 7, "Morality": 7, "NHS": 21, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 4, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 11, "Privatisation": 1, "Public Services": 5, "Immigration": 22, "Scots/Welsh Assembly": 1, "Taxation": 2, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 23 }, { "date": 19780801, "Ageing": 6, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": 1, "Crime": 19, "Defence": 5, "Drug Abuse": 3, "Economy": 55, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": 3, "Low Pay": 7, "Morality": 7, "NHS": 15, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 5, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 13, "Privatisation": 1, "Public Services": 5, "Immigration": 22, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 30 }, { "date": 19790201, "Ageing": 6, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": 2, "Crime": 17, "Defence": 6, "Drug Abuse": 3, "Economy": 55, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 16, "Inner Cities": null, "Local Govt": 4, "Low Pay": 8, "Morality": 7, "NHS": 20, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": 5, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 13, "Privatisation": 1, "Public Services": 4, "Immigration": 19, "Scots/Welsh Assembly": 1, "Taxation": 2, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 33 }, { "date": 19790401, "Ageing": 9, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": 3, "Crime": 18, "Defence": 6, "Drug Abuse": 5, "Economy": 52, "Education": 10, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": 4, "Low Pay": 8, "Morality": 6, "NHS": 19, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": 6, "Environment": 6, "The Pound": 2, "Poverty/Inequality": 11, "Privatisation": 1, "Public Services": 5, "Immigration": 21, "Scots/Welsh Assembly": 1, "Taxation": 2, "Trade Unions": 1, "Transport": 4, "Tsunami": null, "Unemployment": 32 }, { "date": 19800201, "Ageing": 6, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 17, "Defence": 5, "Drug Abuse": 5, "Economy": 54, "Education": 13, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": 5, "Low Pay": 8, "Morality": 8, "NHS": 20, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 8, "Fuel Prices": 7, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 12, "Privatisation": 2, "Public Services": 5, "Immigration": 20, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 5, "Tsunami": null, "Unemployment": 34 }, { "date": 19800401, "Ageing": 6, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": 1, "Crime": 14, "Defence": 7, "Drug Abuse": 4, "Economy": 61, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": 4, "Low Pay": 5, "Morality": 9, "NHS": 18, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 4, "Environment": 3, "The Pound": 2, "Poverty/Inequality": 10, "Privatisation": 1, "Public Services": 6, "Immigration": 23, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 5, "Tsunami": null, "Unemployment": 35 }, { "date": 19820901, "Ageing": 6, "Aids": null, "Animal Welfare": 1, "Bird Flu": 0, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": 1, "Crime": 18, "Defence": 9, "Drug Abuse": 4, "Economy": 59, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 14, "Inner Cities": null, "Local Govt": 3, "Low Pay": 7, "Morality": 8, "NHS": 22, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 6, "Environment": 4, "The Pound": 2, "Poverty/Inequality": 11, "Privatisation": 2, "Public Services": 4, "Immigration": 26, "Scots/Welsh Assembly": 1, "Taxation": 5, "Trade Unions": 1, "Transport": 4, "Tsunami": null, "Unemployment": 34 }, { "date": 19821001, "Ageing": 4, "Aids": 1, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": 1, "Crime": 14, "Defence": 7, "Drug Abuse": 3, "Economy": 58, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": 3, "Low Pay": 6, "Morality": 7, "NHS": 16, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 7, "Fuel Prices": 4, "Environment": 3, "The Pound": 2, "Poverty/Inequality": 10, "Privatisation": 2, "Public Services": 4, "Immigration": 19, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": 1, "Transport": 4, "Tsunami": null, "Unemployment": 37 }, { "date": 19821101, "Ageing": 7, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": 1, "Crime": 15, "Defence": 6, "Drug Abuse": 3, "Economy": 61, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": 3, "Low Pay": 8, "Morality": 8, "NHS": 16, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": 8, "Environment": 3, "The Pound": 2, "Poverty/Inequality": 9, "Privatisation": 1, "Public Services": 3, "Immigration": 20, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": 1, "Transport": 4, "Tsunami": null, "Unemployment": 34 }, { "date": 19830301, "Ageing": 6, "Aids": 1, "Animal Welfare": 2, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 20, "Defence": 9, "Drug Abuse": 6, "Economy": 55, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 18, "Inner Cities": null, "Local Govt": 3, "Low Pay": 7, "Morality": 6, "NHS": 20, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 15, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 10, "Privatisation": 2, "Public Services": 4, "Immigration": 21, "Scots/Welsh Assembly": 1, "Taxation": 5, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 40 }, { "date": 19830401, "Ageing": 4, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": 1, "Crime": 18, "Defence": 9, "Drug Abuse": 4, "Economy": 57, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": 2, "Low Pay": 5, "Morality": 7, "NHS": 22, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": 13, "Environment": 3, "The Pound": 2, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": 3, "Immigration": 23, "Scots/Welsh Assembly": 2, "Taxation": 3, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 36 }, { "date": 19830601, "Ageing": 4, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": 1, "Crime": 20, "Defence": 9, "Drug Abuse": 4, "Economy": 64, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": 2, "Low Pay": 6, "Morality": 6, "NHS": 22, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 6, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": 4, "Immigration": 24, "Scots/Welsh Assembly": 2, "Taxation": 2, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 38 }, { "date": 19830701, "Ageing": 5, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": 2, "Crime": 21, "Defence": 7, "Drug Abuse": 5, "Economy": 61, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": 3, "Low Pay": 6, "Morality": 7, "NHS": 17, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": 6, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 10, "Privatisation": 1, "Public Services": 3, "Immigration": 20, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": 1, "Transport": 3, "Tsunami": null, "Unemployment": 33 }, { "date": 19830801, "Ageing": 4, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": 2, "Crime": 19, "Defence": 8, "Drug Abuse": 5, "Economy": 66, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": 2, "Low Pay": 6, "Morality": 7, "NHS": 17, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 8, "Environment": 4, "The Pound": 2, "Poverty/Inequality": 10, "Privatisation": 1, "Public Services": 5, "Immigration": 22, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": 1, "Transport": 3, "Tsunami": null, "Unemployment": 33 }, { "date": 19830901, "Ageing": 5, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": 2, "Crime": 23, "Defence": 9, "Drug Abuse": 6, "Economy": 62, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 7, "NHS": 16, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 9, "Environment": 4, "The Pound": 2, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": 3, "Immigration": 23, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 32 }, { "date": 19831001, "Ageing": 3, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 24, "Defence": 10, "Drug Abuse": 5, "Economy": 68, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": 3, "Low Pay": 4, "Morality": 5, "NHS": 21, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": 5, "Environment": 3, "The Pound": 2, "Poverty/Inequality": 9, "Privatisation": 1, "Public Services": 5, "Immigration": 24, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": 1, "Transport": 2, "Tsunami": null, "Unemployment": 30 }, { "date": 19840101, "Ageing": 5, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 29, "Defence": 13, "Drug Abuse": 7, "Economy": 59, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 13, "Inner Cities": null, "Local Govt": 2, "Low Pay": 7, "Morality": 11, "NHS": 17, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 6, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": 1, "Public Services": 6, "Immigration": 21, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 30 }, { "date": 19840201, "Ageing": 5, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 31, "Defence": 11, "Drug Abuse": 5, "Economy": 61, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": 3, "Low Pay": 3, "Morality": 6, "NHS": 17, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": 5, "Environment": 3, "The Pound": 2, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": 4, "Immigration": 23, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 26 }, { "date": 19840301, "Ageing": 8, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 17, "Defence": 13, "Drug Abuse": 3, "Economy": 57, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": 1, "Low Pay": 5, "Morality": 6, "NHS": 19, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 7, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": 5, "Immigration": 27, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": 1, "Transport": 1, "Tsunami": null, "Unemployment": 29 }, { "date": 19840401, "Ageing": 6, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 22, "Defence": 15, "Drug Abuse": 4, "Economy": 51, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 14, "Inner Cities": null, "Local Govt": 3, "Low Pay": 6, "Morality": 6, "NHS": 26, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 7, "Environment": 5, "The Pound": 2, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 5, "Immigration": 31, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 28 }, { "date": 19840601, "Ageing": 3, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 2, "Crime": 17, "Defence": 18, "Drug Abuse": 3, "Economy": 55, "Education": 20, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 6, "NHS": 26, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 7, "Fuel Prices": 11, "Environment": 3, "The Pound": 2, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": 6, "Immigration": 26, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 27 }, { "date": 19840801, "Ageing": 4, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": 2, "Crime": 22, "Defence": 22, "Drug Abuse": 4, "Economy": 62, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 16, "Inner Cities": null, "Local Govt": 3, "Low Pay": 5, "Morality": 5, "NHS": 20, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 9, "Fuel Prices": 9, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 6, "Immigration": 17, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 24 }, { "date": 19840901, "Ageing": 4, "Aids": null, "Animal Welfare": null, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 18, "Defence": 16, "Drug Abuse": 4, "Economy": 54, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 18, "Inner Cities": null, "Local Govt": 4, "Low Pay": 5, "Morality": 6, "NHS": 19, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 6, "Fuel Prices": 15, "Environment": 4, "The Pound": 2, "Poverty/Inequality": 8, "Privatisation": 2, "Public Services": 5, "Immigration": 26, "Scots/Welsh Assembly": 1, "Taxation": 7, "Trade Unions": 1, "Transport": 3, "Tsunami": null, "Unemployment": 25 }, { "date": 19841001, "Ageing": null, "Aids": null, "Animal Welfare": 1, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 23, "Defence": 12, "Drug Abuse": 5, "Economy": 60, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 16, "Inner Cities": null, "Local Govt": 3, "Low Pay": 5, "Morality": 5, "NHS": 19, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 6, "Fuel Prices": 8, "Environment": 5, "The Pound": 3, "Poverty/Inequality": 6, "Privatisation": 2, "Public Services": 6, "Immigration": 25, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 28 }, { "date": 19841101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": 2, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 22, "Defence": 14, "Drug Abuse": 6, "Economy": 60, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": 0, "Housing": 6, "Inflation/Prices": 14, "Inner Cities": null, "Local Govt": 4, "Low Pay": 5, "Morality": 7, "NHS": 19, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 7, "Fuel Prices": 8, "Environment": 7, "The Pound": 2, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": 6, "Immigration": 26, "Scots/Welsh Assembly": 1, "Taxation": 7, "Trade Unions": 1, "Transport": 2, "Tsunami": null, "Unemployment": 27 }, { "date": 19841201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 18, "Defence": 15, "Drug Abuse": 5, "Economy": 61, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": 4, "Low Pay": 6, "Morality": 6, "NHS": 18, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": 4, "Environment": 4, "The Pound": 2, "Poverty/Inequality": 9, "Privatisation": 1, "Public Services": 6, "Immigration": 25, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": 1, "Transport": 2, "Tsunami": null, "Unemployment": 27 }, { "date": 19850101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 23, "Defence": 17, "Drug Abuse": 4, "Economy": 54, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 8, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": 3, "Low Pay": 5, "Morality": 6, "NHS": 18, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": 2, "Environment": 5, "The Pound": 2, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": 6, "Immigration": 27, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 1, "Tsunami": null, "Unemployment": 28 }, { "date": 19850201, "Ageing": null, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": 1, "Crime": 23, "Defence": 16, "Drug Abuse": 6, "Economy": 59, "Education": 18, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": 4, "Low Pay": 5, "Morality": 7, "NHS": 21, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 3, "Environment": 6, "The Pound": 2, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": 6, "Immigration": 27, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 29 }, { "date": 19850301, "Ageing": null, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": 1, "Crime": 24, "Defence": 12, "Drug Abuse": 5, "Economy": 57, "Education": 18, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 13, "Inner Cities": null, "Local Govt": 3, "Low Pay": 5, "Morality": 6, "NHS": 19, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": 4, "Environment": 4, "The Pound": null, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": 5, "Immigration": 31, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 1, "Tsunami": null, "Unemployment": 26 }, { "date": 19850401, "Ageing": null, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": 1, "Crime": 19, "Defence": 17, "Drug Abuse": 5, "Economy": 61, "Education": 18, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": 4, "Low Pay": 4, "Morality": 6, "NHS": 18, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 3, "Environment": 6, "The Pound": 2, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 5, "Immigration": 30, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": 1, "Transport": 2, "Tsunami": null, "Unemployment": 24 }, { "date": 19850501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": 1, "Crime": 24, "Defence": 15, "Drug Abuse": 7, "Economy": 63, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 10, "Inner Cities": null, "Local Govt": 3, "Low Pay": 5, "Morality": 6, "NHS": 16, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": 3, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": null, "Public Services": 3, "Immigration": 28, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": 1, "Tsunami": null, "Unemployment": 26 }, { "date": 19850601, "Ageing": null, "Aids": null, "Animal Welfare": 1, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": 1, "Crime": 26, "Defence": 12, "Drug Abuse": 7, "Economy": 65, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": 3, "Low Pay": 5, "Morality": 4, "NHS": 19, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 5, "Fuel Prices": 4, "Environment": 5, "The Pound": 2, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": 3, "Immigration": 29, "Scots/Welsh Assembly": 1, "Taxation": 5, "Trade Unions": 0, "Transport": 2, "Tsunami": null, "Unemployment": 21 }, { "date": 19850701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": 1, "Crime": 20, "Defence": 11, "Drug Abuse": 5, "Economy": 71, "Education": 23, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 4, "Low Pay": 5, "Morality": 6, "NHS": 22, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": 6, "Environment": 5, "The Pound": 3, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": 5, "Immigration": 38, "Scots/Welsh Assembly": 1, "Taxation": 7, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 22 }, { "date": 19850801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 25, "Defence": 11, "Drug Abuse": 7, "Economy": 55, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": 4, "Low Pay": 4, "Morality": 8, "NHS": 24, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": 7, "Environment": 5, "The Pound": 2, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 4, "Immigration": 29, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 24 }, { "date": 19850901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 25, "Defence": 14, "Drug Abuse": 8, "Economy": 55, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": 4, "Low Pay": 5, "Morality": 8, "NHS": 20, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": 4, "Environment": 6, "The Pound": 2, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 4, "Immigration": 33, "Scots/Welsh Assembly": 0, "Taxation": 5, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 21 }, { "date": 19851001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": 1, "Crime": 25, "Defence": 19, "Drug Abuse": 4, "Economy": 48, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": 3, "Low Pay": 5, "Morality": 9, "NHS": 17, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 5, "Fuel Prices": 2, "Environment": 7, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": 4, "Immigration": 29, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": 0, "Transport": 2, "Tsunami": null, "Unemployment": 20 }, { "date": 19851101, "Ageing": null, "Aids": 0, "Animal Welfare": null, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 24, "Defence": 25, "Drug Abuse": 3, "Economy": 49, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 11, "NHS": 20, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 5, "Fuel Prices": 2, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 4, "Immigration": 33, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 27 }, { "date": 19851201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 26, "Defence": 15, "Drug Abuse": 4, "Economy": 52, "Education": 14, "Farming": 0, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 10, "Inner Cities": null, "Local Govt": 3, "Low Pay": 4, "Morality": 9, "NHS": 16, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 6, "Fuel Prices": 2, "Environment": 9, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 2, "Immigration": 24, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": 1, "Tsunami": null, "Unemployment": 22 }, { "date": 19860101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": 4, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 32, "Defence": 17, "Drug Abuse": 7, "Economy": 54, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 2, "Low Pay": 1, "Morality": 10, "NHS": 16, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 3, "Fuel Prices": 1, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 3, "Immigration": 25, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": 1, "Tsunami": null, "Unemployment": 30 }, { "date": 19860201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": 6, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 24, "Defence": 20, "Drug Abuse": 4, "Economy": 55, "Education": 11, "Farming": 0, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 6, "NHS": 24, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 4, "Fuel Prices": 4, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 2, "Immigration": 27, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": 0, "Transport": 1, "Tsunami": null, "Unemployment": 25 }, { "date": 19860301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 28, "Defence": 10, "Drug Abuse": 10, "Economy": 54, "Education": 12, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": 6, "Low Pay": 3, "Morality": 11, "NHS": 16, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 5, "Fuel Prices": 4, "Environment": 9, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 5, "Immigration": 25, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": 0, "Transport": 2, "Tsunami": null, "Unemployment": 28 }, { "date": 19860401, "Ageing": null, "Aids": null, "Animal Welfare": 1, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 30, "Defence": 7, "Drug Abuse": 5, "Economy": 59, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 10, "Inner Cities": null, "Local Govt": 4, "Low Pay": 3, "Morality": 14, "NHS": 13, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 3, "Fuel Prices": 1, "Environment": 8, "The Pound": 2, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 4, "Immigration": 30, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 20 }, { "date": 19860501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": 1, "Crime": 28, "Defence": 9, "Drug Abuse": 5, "Economy": 65, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 13, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 8, "NHS": 15, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 4, "Fuel Prices": 2, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": 3, "Immigration": 29, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 1, "Tsunami": null, "Unemployment": 23 }, { "date": 19860601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 32, "Defence": 10, "Drug Abuse": 4, "Economy": 67, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": 0, "Housing": 8, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 9, "NHS": 12, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 3, "Fuel Prices": 1, "Environment": 7, "The Pound": 2, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 3, "Immigration": 25, "Scots/Welsh Assembly": 1, "Taxation": 2, "Trade Unions": 0, "Transport": 2, "Tsunami": null, "Unemployment": 23 }, { "date": 19860701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": 1, "Crime": 34, "Defence": 11, "Drug Abuse": 5, "Economy": 70, "Education": 10, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 13, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 7, "NHS": 14, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 3, "Fuel Prices": 2, "Environment": 6, "The Pound": 3, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 3, "Immigration": 21, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 24 }, { "date": 19860801, "Ageing": null, "Aids": null, "Animal Welfare": 1, "Bird Flu": 0, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": 1, "Crime": 35, "Defence": 13, "Drug Abuse": 6, "Economy": 66, "Education": 10, "Farming": 0, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 7, "NHS": 12, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 4, "Fuel Prices": 2, "Environment": 6, "The Pound": 3, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": 1, "Immigration": 22, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 15 }, { "date": 19860901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": 0, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 38, "Defence": 13, "Drug Abuse": 5, "Economy": 62, "Education": 9, "Farming": 0, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 18, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 8, "NHS": 13, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 4, "Fuel Prices": 3, "Environment": 7, "The Pound": 2, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 2, "Immigration": 22, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 15 }, { "date": 19861001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": 1, "Crime": 33, "Defence": 10, "Drug Abuse": 6, "Economy": 58, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 21, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 7, "NHS": 18, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 0, "Pensions": 4, "Fuel Prices": 4, "Environment": 6, "The Pound": 2, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": 3, "Immigration": 27, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": 0, "Transport": 2, "Tsunami": null, "Unemployment": 14 }, { "date": 19861101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": 1, "Crime": 40, "Defence": 12, "Drug Abuse": 7, "Economy": 55, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 22, "Inner Cities": null, "Local Govt": 3, "Low Pay": 4, "Morality": 7, "NHS": 17, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 5, "Fuel Prices": 8, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 3, "Immigration": 27, "Scots/Welsh Assembly": 1, "Taxation": 6, "Trade Unions": null, "Transport": 1, "Tsunami": null, "Unemployment": 11 }, { "date": 19861201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 47, "Defence": 15, "Drug Abuse": 7, "Economy": 41, "Education": 12, "Farming": 0, "German Reunification": null, "GM foods": null, "Housing": 13, "Inflation/Prices": 26, "Inner Cities": null, "Local Govt": 3, "Low Pay": 4, "Morality": 9, "NHS": 15, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 4, "Fuel Prices": 10, "Environment": 7, "The Pound": null, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 2, "Immigration": 25, "Scots/Welsh Assembly": 1, "Taxation": 5, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 7 }, { "date": 19870101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 2, "Crime": 39, "Defence": 15, "Drug Abuse": 6, "Economy": 42, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 23, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 6, "NHS": 16, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 4, "Fuel Prices": 15, "Environment": 7, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": 2, "Immigration": 26, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 9 }, { "date": 19870201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 2, "Crime": 38, "Defence": 20, "Drug Abuse": 6, "Economy": 32, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 12, "Inflation/Prices": 22, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 6, "NHS": 19, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": 16, "Environment": 9, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 3, "Immigration": 30, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 6 }, { "date": 19870301, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": 1, "Crime": 41, "Defence": 13, "Drug Abuse": 6, "Economy": 34, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 15, "Inflation/Prices": 21, "Inner Cities": null, "Local Govt": 2, "Low Pay": 5, "Morality": 7, "NHS": 19, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": 9, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": 4, "Immigration": 37, "Scots/Welsh Assembly": 1, "Taxation": 9, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 6 }, { "date": 19870401, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 35, "Defence": 20, "Drug Abuse": 8, "Economy": 33, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 13, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": 3, "Low Pay": 4, "Morality": 7, "NHS": 23, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 6, "Fuel Prices": 6, "Environment": 7, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 3, "Immigration": 42, "Scots/Welsh Assembly": 1, "Taxation": 11, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 6 }, { "date": 19870701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 40, "Defence": 17, "Drug Abuse": 7, "Economy": 23, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": 4, "Low Pay": 4, "Morality": 9, "NHS": 24, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 6, "Fuel Prices": 6, "Environment": 10, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 4, "Immigration": 44, "Scots/Welsh Assembly": 1, "Taxation": 11, "Trade Unions": 0, "Transport": 3, "Tsunami": null, "Unemployment": 6 }, { "date": 19870801, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 50, "Defence": 16, "Drug Abuse": 8, "Economy": 18, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 12, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 3, "Low Pay": 4, "Morality": 10, "NHS": 25, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 6, "Fuel Prices": 4, "Environment": 7, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": 3, "Immigration": 44, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 6 }, { "date": 19870901, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": 1, "Crime": 47, "Defence": 20, "Drug Abuse": 7, "Economy": 20, "Education": 18, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": 3, "Low Pay": 4, "Morality": 8, "NHS": 33, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 5, "Fuel Prices": 5, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 3, "Immigration": 40, "Scots/Welsh Assembly": 1, "Taxation": 7, "Trade Unions": null, "Transport": 4, "Tsunami": 0, "Unemployment": 9 }, { "date": 19871001, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 2, "Crime": 37, "Defence": 21, "Drug Abuse": 6, "Economy": 13, "Education": 21, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 15, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 8, "NHS": 33, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 6, "Fuel Prices": 6, "Environment": 10, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": 4, "Immigration": 46, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": 1, "Transport": 4, "Tsunami": null, "Unemployment": 7 }, { "date": 19871101, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": 1, "Crime": 38, "Defence": 20, "Drug Abuse": 9, "Economy": 11, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 12, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 7, "NHS": 40, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 6, "Fuel Prices": 2, "Environment": 6, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": 3, "Immigration": 41, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 3, "Tsunami": 0, "Unemployment": 6 }, { "date": 19871201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 41, "Defence": 22, "Drug Abuse": 7, "Economy": 10, "Education": 17, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 7, "NHS": 36, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 6, "Fuel Prices": null, "Environment": 7, "The Pound": 0, "Poverty/Inequality": 3, "Privatisation": 1, "Public Services": 3, "Immigration": 43, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": 0, "Transport": 2, "Tsunami": null, "Unemployment": 8 }, { "date": 19880101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 55, "Defence": 25, "Drug Abuse": 8, "Economy": 9, "Education": 19, "Farming": 1, "German Reunification": null, "GM foods": 1, "Housing": 9, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 9, "NHS": 26, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 5, "Fuel Prices": 1, "Environment": 8, "The Pound": "-", "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 4, "Immigration": 35, "Scots/Welsh Assembly": 1, "Taxation": 6, "Trade Unions": 0, "Transport": 3, "Tsunami": 0, "Unemployment": 7 }, { "date": 19880201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 35, "Defence": 39, "Drug Abuse": 7, "Economy": 7, "Education": 22, "Farming": 0, "German Reunification": null, "GM foods": null, "Housing": 16, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 8, "NHS": 30, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 6, "Fuel Prices": 1, "Environment": 9, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 3, "Immigration": 40, "Scots/Welsh Assembly": 1, "Taxation": 7, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 7 }, { "date": 19880301, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 2, "Crime": 35, "Defence": 27, "Drug Abuse": 6, "Economy": 10, "Education": 22, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 7, "NHS": 37, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 8, "Fuel Prices": 1, "Environment": 13, "The Pound": null, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": 3, "Immigration": 40, "Scots/Welsh Assembly": 1, "Taxation": 6, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 8 }, { "date": 19880401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 36, "Defence": 27, "Drug Abuse": 7, "Economy": 9, "Education": 23, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 3, "Low Pay": 3, "Morality": 6, "NHS": 37, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 7, "Fuel Prices": 1, "Environment": 10, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 3, "Immigration": 38, "Scots/Welsh Assembly": 1, "Taxation": 6, "Trade Unions": null, "Transport": 3, "Tsunami": 0, "Unemployment": 7 }, { "date": 19880501, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": 1, "Crime": 40, "Defence": 27, "Drug Abuse": 9, "Economy": 10, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 8, "NHS": 36, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 1, "Environment": 12, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 4, "Immigration": 36, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": 1, "Transport": 4, "Tsunami": null, "Unemployment": 8 }, { "date": 19880601, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": 2, "Crime": 37, "Defence": 36, "Drug Abuse": 11, "Economy": 14, "Education": 22, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 8, "Inflation/Prices": 7, "Inner Cities": null, "Local Govt": 4, "Low Pay": 3, "Morality": 6, "NHS": 27, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 8, "Fuel Prices": 2, "Environment": 19, "The Pound": 1, "Poverty/Inequality": 4, "Privatisation": null, "Public Services": 3, "Immigration": 25, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 6 }, { "date": 19880701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 33, "Defence": 35, "Drug Abuse": 5, "Economy": 9, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 6, "NHS": 32, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": 2, "Environment": 13, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 3, "Immigration": 38, "Scots/Welsh Assembly": 1, "Taxation": 9, "Trade Unions": null, "Transport": 3, "Tsunami": 1, "Unemployment": 6 }, { "date": 19880801, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 32, "Defence": 40, "Drug Abuse": 6, "Economy": 9, "Education": 18, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 6, "NHS": 31, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": 2, "Environment": 11, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 3, "Immigration": 38, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 2, "Tsunami": 1, "Unemployment": 6 }, { "date": 19880901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 2, "Crime": 30, "Defence": 37, "Drug Abuse": 5, "Economy": 8, "Education": 20, "Farming": 1, "German Reunification": null, "GM foods": 1, "Housing": 5, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 5, "NHS": 38, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 7, "Fuel Prices": 1, "Environment": 8, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 2, "Immigration": 40, "Scots/Welsh Assembly": 0, "Taxation": 7, "Trade Unions": 0, "Transport": 3, "Tsunami": null, "Unemployment": 6 }, { "date": 19881001, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 26, "Defence": 38, "Drug Abuse": 6, "Economy": 8, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 8, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 4, "NHS": 32, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 7, "Fuel Prices": 3, "Environment": 10, "The Pound": 1, "Poverty/Inequality": 4, "Privatisation": null, "Public Services": 2, "Immigration": 45, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 5 }, { "date": 19881101, "Ageing": null, "Aids": 0, "Animal Welfare": 0, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 37, "Defence": 36, "Drug Abuse": 4, "Economy": 9, "Education": 20, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 1, "Morality": 5, "NHS": 35, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": 6, "Environment": 10, "The Pound": null, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": 3, "Immigration": 38, "Scots/Welsh Assembly": 1, "Taxation": 7, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 6 }, { "date": 19881201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 2, "Crime": 41, "Defence": 25, "Drug Abuse": 5, "Economy": 8, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 6, "NHS": 35, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": 3, "Environment": 10, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 2, "Immigration": 35, "Scots/Welsh Assembly": 1, "Taxation": 6, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 6 }, { "date": 19890101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 36, "Defence": 27, "Drug Abuse": 5, "Economy": 10, "Education": 25, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 5, "NHS": 38, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 20, "Fuel Prices": 4, "Environment": 12, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": 2, "Immigration": 41, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": 0, "Transport": 2, "Tsunami": null, "Unemployment": 6 }, { "date": 19890201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": 2, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 2, "Crime": 30, "Defence": 23, "Drug Abuse": 3, "Economy": 9, "Education": 28, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 5, "NHS": 47, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 12, "Fuel Prices": 5, "Environment": 11, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": 3, "Immigration": 35, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 7 }, { "date": 19890301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": 1, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 2, "Crime": 26, "Defence": 29, "Drug Abuse": 5, "Economy": 9, "Education": 28, "Farming": 0, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 6, "NHS": 37, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 13, "Fuel Prices": 2, "Environment": 9, "The Pound": null, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": 3, "Immigration": 30, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 3, "Tsunami": 0, "Unemployment": 5 }, { "date": 19890401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 28, "Defence": 34, "Drug Abuse": 6, "Economy": 11, "Education": 25, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 5, "NHS": 33, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 13, "Fuel Prices": 3, "Environment": 8, "The Pound": null, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 30, "Scots/Welsh Assembly": 1, "Taxation": 7, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 9 }, { "date": 19890501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 2, "Crime": 36, "Defence": 26, "Drug Abuse": 7, "Economy": 10, "Education": 28, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 7, "NHS": 30, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 11, "Fuel Prices": 4, "Environment": 9, "The Pound": null, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 2, "Immigration": 28, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 7 }, { "date": 19890601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": 1, "Crime": 34, "Defence": 41, "Drug Abuse": 7, "Economy": 13, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 4, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 1, "Morality": 5, "NHS": 29, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 14, "Fuel Prices": 1, "Environment": 6, "The Pound": null, "Poverty/Inequality": 4, "Privatisation": 1, "Public Services": 2, "Immigration": 25, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 7 }, { "date": 19890701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": 1, "Crime": 31, "Defence": 31, "Drug Abuse": 6, "Economy": 10, "Education": 26, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 4, "Low Pay": 1, "Morality": 5, "NHS": 34, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 12, "Fuel Prices": 3, "Environment": 6, "The Pound": null, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 3, "Immigration": 30, "Scots/Welsh Assembly": 0, "Taxation": 7, "Trade Unions": 0, "Transport": 4, "Tsunami": 1, "Unemployment": 6 }, { "date": 19890801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": 1, "Crime": 25, "Defence": 46, "Drug Abuse": 5, "Economy": 11, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 7, "NHS": 28, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": 5, "Environment": 6, "The Pound": null, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 2, "Immigration": 32, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": 0, "Transport": 4, "Tsunami": null, "Unemployment": 7 }, { "date": 19890901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 24, "Defence": 56, "Drug Abuse": 4, "Economy": 13, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 1, "Morality": 4, "NHS": 28, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 4, "Environment": 4, "The Pound": null, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": 1, "Immigration": 35, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 7 }, { "date": 19891001, "Ageing": null, "Aids": 0, "Animal Welfare": 0, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": 1, "Crime": 25, "Defence": 58, "Drug Abuse": 3, "Economy": 10, "Education": 20, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 1, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 5, "NHS": 29, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": 2, "Environment": 7, "The Pound": null, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": 2, "Immigration": 32, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": 0, "Transport": 5, "Tsunami": 1, "Unemployment": 8 }, { "date": 19891101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 19, "Countryside": 1, "Crime": 30, "Defence": 16, "Drug Abuse": 4, "Economy": 11, "Education": 24, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 1, "Morality": 4, "NHS": 36, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": 1, "Environment": 7, "The Pound": null, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": 2, "Immigration": 33, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 5, "Tsunami": 1, "Unemployment": 8 }, { "date": 19891201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": 1, "Crime": 40, "Defence": 14, "Drug Abuse": 7, "Economy": 11, "Education": 26, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 1, "Morality": 10, "NHS": 36, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 14, "Fuel Prices": 2, "Environment": 6, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": 3, "Immigration": 27, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 7 }, { "date": 19900101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 0, "Coal Pits": null, "EU": 5, "Countryside": 2, "Crime": 29, "Defence": 24, "Drug Abuse": 6, "Economy": 12, "Education": 30, "Farming": 1, "German Reunification": null, "GM foods": 1, "Housing": 9, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 6, "NHS": 44, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": 2, "Environment": 4, "The Pound": null, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": 3, "Immigration": 33, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 8 }, { "date": 19900201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": 1, "Crime": 29, "Defence": 25, "Drug Abuse": 5, "Economy": 10, "Education": 26, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 6, "NHS": 38, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 14, "Fuel Prices": 1, "Environment": 6, "The Pound": null, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 3, "Immigration": 40, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 8 }, { "date": 19900301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 0, "Coal Pits": null, "EU": 7, "Countryside": 2, "Crime": 26, "Defence": 34, "Drug Abuse": 5, "Economy": 10, "Education": 24, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 8, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 6, "NHS": 34, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 11, "Fuel Prices": 1, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": 3, "Immigration": 26, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": 0, "Transport": 4, "Tsunami": 3, "Unemployment": 7 }, { "date": 19900401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": 1, "Crime": 30, "Defence": 40, "Drug Abuse": 5, "Economy": 10, "Education": 25, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 6, "NHS": 33, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 13, "Fuel Prices": 2, "Environment": 4, "The Pound": null, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": 4, "Immigration": 25, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": null, "Transport": 7, "Tsunami": null, "Unemployment": 6 }, { "date": 19900501, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": 1, "Crime": 27, "Defence": 47, "Drug Abuse": 6, "Economy": 10, "Education": 22, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 5, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 5, "NHS": 32, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 12, "Fuel Prices": 2, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": 3, "Immigration": 24, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": 0, "Transport": 6, "Tsunami": null, "Unemployment": 6 }, { "date": 19900601, "Ageing": null, "Aids": 0, "Animal Welfare": 0, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": 2, "Crime": 28, "Defence": 47, "Drug Abuse": 7, "Economy": 11, "Education": 26, "Farming": 0, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 1, "Morality": 4, "NHS": 36, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 20, "Fuel Prices": 1, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": 3, "Immigration": 25, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": 0, "Transport": 4, "Tsunami": null, "Unemployment": 7 }, { "date": 19900701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": 1, "Crime": 27, "Defence": 36, "Drug Abuse": 6, "Economy": 10, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 5, "NHS": 34, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 15, "Fuel Prices": 2, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 4, "Privatisation": null, "Public Services": 4, "Immigration": 26, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 5, "Tsunami": null, "Unemployment": 8 }, { "date": 19900801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": null, "Crime": 28, "Defence": 38, "Drug Abuse": 6, "Economy": 10, "Education": 23, "Farming": 0, "German Reunification": null, "GM foods": 1, "Housing": 6, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 4, "Low Pay": 1, "Morality": 4, "NHS": 34, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 8, "Fuel Prices": 3, "Environment": 4, "The Pound": null, "Poverty/Inequality": 3, "Privatisation": 1, "Public Services": 2, "Immigration": 30, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 6, "Tsunami": null, "Unemployment": 7 }, { "date": 19900901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 11, "Countryside": 1, "Crime": 28, "Defence": 34, "Drug Abuse": 4, "Economy": 10, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 4, "NHS": 40, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 12, "Fuel Prices": 2, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 5, "Immigration": 31, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": null, "Transport": 8, "Tsunami": null, "Unemployment": 7 }, { "date": 19901001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 0, "Coal Pits": null, "EU": 16, "Countryside": 1, "Crime": 20, "Defence": 35, "Drug Abuse": 5, "Economy": 7, "Education": 28, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 1, "Morality": 4, "NHS": 44, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 3, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 4, "Privatisation": 0, "Public Services": 3, "Immigration": 28, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 7, "Tsunami": null, "Unemployment": 6 }, { "date": 19901101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 17, "Countryside": 1, "Crime": 21, "Defence": 47, "Drug Abuse": 6, "Economy": 9, "Education": 25, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 8, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 4, "NHS": 34, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 9, "Fuel Prices": 3, "Environment": 4, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": 3, "Immigration": 30, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 7, "Tsunami": null, "Unemployment": 7 }, { "date": 19901201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 0, "Coal Pits": null, "EU": 9, "Countryside": 1, "Crime": 19, "Defence": 47, "Drug Abuse": 3, "Economy": 9, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 4, "NHS": 34, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 10, "Fuel Prices": 1, "Environment": 2, "The Pound": null, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": 3, "Immigration": 36, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 5, "Tsunami": null, "Unemployment": 7 }, { "date": 19910101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 0, "Coal Pits": null, "EU": 5, "Countryside": 1, "Crime": 22, "Defence": 41, "Drug Abuse": 6, "Economy": 11, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": 2, "Housing": 6, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 4, "Low Pay": 2, "Morality": 7, "NHS": 35, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 12, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": 5, "Immigration": 31, "Scots/Welsh Assembly": 1, "Taxation": 10, "Trade Unions": null, "Transport": 7, "Tsunami": null, "Unemployment": 8 }, { "date": 19910201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": 1, "Crime": 26, "Defence": 28, "Drug Abuse": 6, "Economy": 9, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 5, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 4, "Low Pay": 2, "Morality": 5, "NHS": 37, "Northern Ireland": 0, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 13, "Fuel Prices": 1, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 3, "Immigration": 35, "Scots/Welsh Assembly": 1, "Taxation": 10, "Trade Unions": 0, "Transport": 6, "Tsunami": null, "Unemployment": 8 }, { "date": 19910301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": 2, "Crime": 23, "Defence": 26, "Drug Abuse": 4, "Economy": 10, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 4, "Low Pay": 2, "Morality": 4, "NHS": 36, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 13, "Fuel Prices": 1, "Environment": 4, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": 4, "Immigration": 29, "Scots/Welsh Assembly": 1, "Taxation": 11, "Trade Unions": null, "Transport": 9, "Tsunami": null, "Unemployment": 8 }, { "date": 19910401, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 12, "Countryside": 1, "Crime": 22, "Defence": 26, "Drug Abuse": 5, "Economy": 12, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 4, "Low Pay": 2, "Morality": 4, "NHS": 41, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 11, "Fuel Prices": 1, "Environment": 4, "The Pound": null, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": null, "Immigration": 29, "Scots/Welsh Assembly": 1, "Taxation": 10, "Trade Unions": null, "Transport": 8, "Tsunami": null, "Unemployment": 7 }, { "date": 19910501, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": 1, "Crime": 29, "Defence": 40, "Drug Abuse": 4, "Economy": 11, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 3, "Low Pay": 2, "Morality": 6, "NHS": 46, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 10, "Fuel Prices": 1, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": null, "Immigration": 26, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": 1, "Transport": 7, "Tsunami": null, "Unemployment": 8 }, { "date": 19910601, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 12, "Countryside": 1, "Crime": 25, "Defence": 21, "Drug Abuse": 6, "Economy": 10, "Education": 26, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 5, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 4, "NHS": 40, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 11, "Fuel Prices": 1, "Environment": 2, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": null, "Immigration": 34, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": 8, "Tsunami": null, "Unemployment": 7 }, { "date": 19910701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 13, "Countryside": 1, "Crime": 24, "Defence": 37, "Drug Abuse": 6, "Economy": 14, "Education": 28, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 5, "NHS": 40, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 12, "Fuel Prices": 1, "Environment": 2, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": null, "Immigration": 29, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": 1, "Transport": 7, "Tsunami": null, "Unemployment": 9 }, { "date": 19910801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": 1, "Crime": 24, "Defence": 20, "Drug Abuse": 6, "Economy": 12, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 3, "Low Pay": 3, "Morality": 5, "NHS": 45, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 10, "Fuel Prices": 1, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": null, "Immigration": 35, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 10, "Tsunami": null, "Unemployment": 10 }, { "date": 19910901, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 11, "Countryside": 1, "Crime": 26, "Defence": 24, "Drug Abuse": 4, "Economy": 9, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 6, "NHS": 43, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 11, "Fuel Prices": 1, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": null, "Immigration": 29, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": 1, "Transport": 9, "Tsunami": null, "Unemployment": 10 }, { "date": 19911001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 26, "Countryside": 1, "Crime": 22, "Defence": 21, "Drug Abuse": 6, "Economy": 10, "Education": 27, "Farming": 0, "German Reunification": null, "GM foods": 1, "Housing": 6, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 3, "Low Pay": 1, "Morality": 5, "NHS": 41, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 9, "Fuel Prices": 1, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 29, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 9, "Tsunami": null, "Unemployment": 7 }, { "date": 19911101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 22, "Countryside": 1, "Crime": 25, "Defence": 24, "Drug Abuse": 5, "Economy": 13, "Education": 30, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 3, "NHS": 39, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 10, "Fuel Prices": 1, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 33, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 5, "Tsunami": null, "Unemployment": 8 }, { "date": 19911201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": 2, "Crime": 19, "Defence": 26, "Drug Abuse": 5, "Economy": 15, "Education": 32, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 3, "NHS": 49, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 9, "Fuel Prices": 1, "Environment": 3, "The Pound": null, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": null, "Immigration": 27, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 6, "Tsunami": null, "Unemployment": 10 }, { "date": 19920101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": 1, "Crime": 18, "Defence": 64, "Drug Abuse": 2, "Economy": 13, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 3, "NHS": 42, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 9, "Pensions": 9, "Fuel Prices": 1, "Environment": 2, "The Pound": null, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": null, "Immigration": 26, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": 2, "Transport": 9, "Tsunami": null, "Unemployment": 8 }, { "date": 19920201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": 1, "Crime": 20, "Defence": 69, "Drug Abuse": 5, "Economy": 10, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 4, "Morality": 4, "NHS": 44, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 11, "Pensions": 11, "Fuel Prices": 2, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": null, "Immigration": 27, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": 1, "Transport": 11, "Tsunami": null, "Unemployment": 9 }, { "date": 19920401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": 1, "Crime": 21, "Defence": 64, "Drug Abuse": 6, "Economy": 12, "Education": 27, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 4, "NHS": 35, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 9, "Pensions": 6, "Fuel Prices": 1, "Environment": 1, "The Pound": 0, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": null, "Immigration": 34, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": 2, "Transport": 6, "Tsunami": null, "Unemployment": 6 }, { "date": 19920501, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": 1, "Crime": 23, "Defence": 35, "Drug Abuse": 6, "Economy": 12, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": 5, "Morality": 4, "NHS": 38, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 7, "Pensions": 13, "Fuel Prices": 1, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": null, "Immigration": 23, "Scots/Welsh Assembly": 0, "Taxation": 5, "Trade Unions": 4, "Transport": 12, "Tsunami": null, "Unemployment": 9 }, { "date": 19920601, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": 1, "Crime": 30, "Defence": 40, "Drug Abuse": 6, "Economy": 10, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 5, "Morality": 5, "NHS": 42, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 10, "Pensions": 12, "Fuel Prices": null, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": null, "Immigration": 18, "Scots/Welsh Assembly": 0, "Taxation": 3, "Trade Unions": 11, "Transport": 8, "Tsunami": null, "Unemployment": 9 }, { "date": 19920701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": 1, "Crime": 28, "Defence": 35, "Drug Abuse": 7, "Economy": 7, "Education": 32, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 3, "NHS": 45, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 8, "Pensions": 9, "Fuel Prices": 1, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": null, "Immigration": 18, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": 2, "Transport": 11, "Tsunami": null, "Unemployment": 10 }, { "date": 19920801, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 8, "Countryside": 3, "Crime": 28, "Defence": 34, "Drug Abuse": 7, "Economy": 10, "Education": 34, "Farming": 1, "German Reunification": null, "GM foods": 1, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 5, "NHS": 41, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 9, "Pensions": 9, "Fuel Prices": 1, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": 1, "Public Services": null, "Immigration": 21, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 8 }, { "date": 19920901, "Ageing": null, "Aids": 1, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 11, "Countryside": 2, "Crime": 31, "Defence": 10, "Drug Abuse": 9, "Economy": 12, "Education": 37, "Farming": 0, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": 3, "Morality": 4, "NHS": 55, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 11, "Fuel Prices": 1, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 4, "Privatisation": 1, "Public Services": null, "Immigration": 22, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 10 }, { "date": 19921001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 14, "Countryside": 1, "Crime": 31, "Defence": 13, "Drug Abuse": 10, "Economy": 9, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 4, "NHS": 54, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 11, "Fuel Prices": 1, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": null, "Immigration": 32, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 17, "Tsunami": null, "Unemployment": 10 }, { "date": 19921101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 14, "Countryside": 3, "Crime": 34, "Defence": 13, "Drug Abuse": 13, "Economy": 8, "Education": 32, "Farming": 1, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 1, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 5, "NHS": 50, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 9, "Fuel Prices": 1, "Environment": 3, "The Pound": 2, "Poverty/Inequality": 4, "Privatisation": null, "Public Services": null, "Immigration": 39, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 16, "Tsunami": null, "Unemployment": 6 }, { "date": 19921201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 10, "Countryside": 1, "Crime": 29, "Defence": 19, "Drug Abuse": 6, "Economy": 8, "Education": 28, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 1, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 6, "NHS": 66, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 9, "Fuel Prices": 2, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": 1, "Public Services": null, "Immigration": 13, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 12, "Tsunami": null, "Unemployment": 8 }, { "date": 19930101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 11, "Countryside": 1, "Crime": 37, "Defence": 18, "Drug Abuse": 7, "Economy": 8, "Education": 30, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 4, "NHS": 58, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 10, "Fuel Prices": 1, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": 1, "Public Services": null, "Immigration": 15, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": 14, "Tsunami": null, "Unemployment": 8 }, { "date": 19930201, "Ageing": null, "Aids": null, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 13, "Countryside": 1, "Crime": 28, "Defence": 11, "Drug Abuse": 5, "Economy": 7, "Education": 28, "Farming": 1, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 1, "Morality": 4, "NHS": 72, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 1, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": null, "Immigration": 18, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 18, "Tsunami": null, "Unemployment": 10 }, { "date": 19930301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 13, "Countryside": 1, "Crime": 23, "Defence": 13, "Drug Abuse": 5, "Economy": 12, "Education": 32, "Farming": 2, "German Reunification": null, "GM foods": null, "Housing": 3, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 4, "NHS": 66, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 6, "Fuel Prices": 2, "Environment": 2, "The Pound": 2, "Poverty/Inequality": 6, "Privatisation": 2, "Public Services": null, "Immigration": 16, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 22, "Tsunami": null, "Unemployment": 9 }, { "date": 19930401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 19, "Countryside": 2, "Crime": 19, "Defence": 40, "Drug Abuse": 4, "Economy": 15, "Education": 29, "Farming": 2, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 1, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 3, "NHS": 49, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 8, "Fuel Prices": 2, "Environment": 2, "The Pound": null, "Poverty/Inequality": 4, "Privatisation": null, "Public Services": null, "Immigration": 12, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": 0, "Transport": 10, "Tsunami": null, "Unemployment": 14 }, { "date": 19930501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 7, "Countryside": 1, "Crime": 14, "Defence": 57, "Drug Abuse": 3, "Economy": 12, "Education": 31, "Farming": 3, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 4, "NHS": 49, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 7, "Fuel Prices": null, "Environment": 2, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": null, "Immigration": 17, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": 8, "Tsunami": null, "Unemployment": 12 }, { "date": 19930601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 9, "Countryside": 1, "Crime": 15, "Defence": 60, "Drug Abuse": 4, "Economy": 15, "Education": 30, "Farming": 3, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 2, "NHS": 43, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 7, "Fuel Prices": 2, "Environment": 3, "The Pound": 1, "Poverty/Inequality": 4, "Privatisation": 1, "Public Services": null, "Immigration": 27, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 5, "Tsunami": null, "Unemployment": 11 }, { "date": 19930701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 22, "Countryside": 2, "Crime": 22, "Defence": 2, "Drug Abuse": 4, "Economy": 13, "Education": 35, "Farming": 7, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 4, "NHS": 54, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 8, "Fuel Prices": 3, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": null, "Immigration": 23, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 9, "Tsunami": null, "Unemployment": 13 }, { "date": 19930801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 20, "Countryside": 3, "Crime": 32, "Defence": 2, "Drug Abuse": 5, "Economy": 12, "Education": 34, "Farming": 4, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 4, "NHS": 52, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": 3, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 17, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 11, "Tsunami": null, "Unemployment": 11 }, { "date": 19930901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 24, "Countryside": 2, "Crime": 29, "Defence": 2, "Drug Abuse": 9, "Economy": 10, "Education": 44, "Farming": 7, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 4, "NHS": 58, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": 4, "Environment": 6, "The Pound": 2, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 14, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": 11, "Tsunami": null, "Unemployment": 10 }, { "date": 19931001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 4, "Coal Pits": null, "EU": 14, "Countryside": 3, "Crime": 19, "Defence": 3, "Drug Abuse": 6, "Economy": 10, "Education": 32, "Farming": 41, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 1, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 3, "NHS": 41, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 8, "Fuel Prices": 7, "Environment": 5, "The Pound": null, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 16, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 12 }, { "date": 19931101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 5, "Coal Pits": null, "EU": 17, "Countryside": 3, "Crime": 16, "Defence": 1, "Drug Abuse": 5, "Economy": 9, "Education": 29, "Farming": 49, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 2, "NHS": 37, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 8, "Fuel Prices": 4, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": null, "Immigration": 10, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 6, "Tsunami": null, "Unemployment": 10 }, { "date": 19931201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 23, "Countryside": 1, "Crime": 25, "Defence": 5, "Drug Abuse": 5, "Economy": 11, "Education": 37, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": 3, "Morality": 3, "NHS": 48, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": 8, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 18, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 9, "Tsunami": null, "Unemployment": 12 }, { "date": 19940101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 21, "Countryside": 2, "Crime": 30, "Defence": 3, "Drug Abuse": 6, "Economy": 11, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 4, "NHS": 50, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 8, "Fuel Prices": 8, "Environment": 6, "The Pound": 2, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 11, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 9, "Tsunami": null, "Unemployment": 12 }, { "date": 19940201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 26, "Countryside": 2, "Crime": 26, "Defence": 3, "Drug Abuse": 7, "Economy": 10, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 5, "NHS": 45, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": 11, "Environment": 9, "The Pound": 2, "Poverty/Inequality": 5, "Privatisation": null, "Public Services": null, "Immigration": 8, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": 14, "Tsunami": null, "Unemployment": 7 }, { "date": 19940301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 3, "Coal Pits": null, "EU": 27, "Countryside": 2, "Crime": 13, "Defence": 6, "Drug Abuse": 5, "Economy": 12, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": 2, "Housing": 6, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 4, "NHS": 46, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 14, "Fuel Prices": 17, "Environment": 14, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 6, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": null, "Transport": 9, "Tsunami": null, "Unemployment": 10 }, { "date": 19940401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 24, "Countryside": 1, "Crime": 19, "Defence": 4, "Drug Abuse": 7, "Economy": 9, "Education": 25, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 5, "NHS": 44, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 19, "Fuel Prices": 22, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": null, "Immigration": 10, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": null, "Transport": 12, "Tsunami": null, "Unemployment": 10 }, { "date": 19940501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 21, "Countryside": 2, "Crime": 13, "Defence": 2, "Drug Abuse": 3, "Economy": 10, "Education": 30, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 5, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 3, "NHS": 46, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 23, "Fuel Prices": 31, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": null, "Immigration": 6, "Scots/Welsh Assembly": null, "Taxation": 13, "Trade Unions": null, "Transport": 7, "Tsunami": null, "Unemployment": 10 }, { "date": 19940601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 24, "Countryside": 1, "Crime": 26, "Defence": 2, "Drug Abuse": 6, "Economy": 11, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 5, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": 3, "Morality": 5, "NHS": 49, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 15, "Fuel Prices": null, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 6, "Privatisation": null, "Public Services": null, "Immigration": 11, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": 8, "Tsunami": null, "Unemployment": 16 }, { "date": 19940701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 19, "Countryside": 1, "Crime": 34, "Defence": 2, "Drug Abuse": 6, "Economy": 12, "Education": 34, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 5, "NHS": 51, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 14, "Fuel Prices": null, "Environment": 5, "The Pound": 2, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": null, "Immigration": 11, "Scots/Welsh Assembly": null, "Taxation": 11, "Trade Unions": null, "Transport": 13, "Tsunami": null, "Unemployment": 17 }, { "date": 19940801, "Ageing": null, "Aids": 0, "Animal Welfare": 0, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 24, "Countryside": 1, "Crime": 23, "Defence": 3, "Drug Abuse": 8, "Economy": 9, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 7, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": 4, "Morality": 4, "NHS": 55, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 12, "Fuel Prices": null, "Environment": 4, "The Pound": 2, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": null, "Immigration": 17, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": 0, "Transport": 4, "Tsunami": null, "Unemployment": 17 }, { "date": 19940901, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 19, "Countryside": 2, "Crime": 34, "Defence": 4, "Drug Abuse": 10, "Economy": 11, "Education": 30, "Farming": null, "German Reunification": null, "GM foods": 3, "Housing": 9, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": 2, "Morality": 6, "NHS": 45, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 15, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": 1, "Public Services": null, "Immigration": 16, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 6, "Tsunami": null, "Unemployment": 23 }, { "date": 19941001, "Ageing": null, "Aids": 0, "Animal Welfare": 0, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 17, "Countryside": 2, "Crime": 16, "Defence": 3, "Drug Abuse": 7, "Economy": 11, "Education": 35, "Farming": null, "German Reunification": null, "GM foods": 2, "Housing": 10, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": null, "Low Pay": 2, "Morality": 5, "NHS": 53, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 14, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": null, "Public Services": null, "Immigration": 19, "Scots/Welsh Assembly": 1, "Taxation": 6, "Trade Unions": 0, "Transport": 6, "Tsunami": null, "Unemployment": 21 }, { "date": 19941101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 20, "Countryside": 1, "Crime": 20, "Defence": 2, "Drug Abuse": 10, "Economy": 7, "Education": 37, "Farming": null, "German Reunification": null, "GM foods": 2, "Housing": 9, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": 4, "Morality": 5, "NHS": 57, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 12, "Fuel Prices": null, "Environment": 6, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": null, "Public Services": null, "Immigration": 13, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 18 }, { "date": 19941201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 25, "Countryside": 2, "Crime": 18, "Defence": 3, "Drug Abuse": 6, "Economy": 11, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 6, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 4, "NHS": 54, "Northern Ireland": 6, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": null, "Environment": 3, "The Pound": 2, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": null, "Immigration": 12, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 5, "Tsunami": null, "Unemployment": 19 }, { "date": 19950101, "Ageing": null, "Aids": 0, "Animal Welfare": 0, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 22, "Countryside": 1, "Crime": 24, "Defence": 4, "Drug Abuse": 8, "Economy": 11, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 9, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": 4, "Morality": 5, "NHS": 70, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 12, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": null, "Immigration": 7, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 7, "Tsunami": null, "Unemployment": 20 }, { "date": 19950201, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": null, "BSE": 5, "Coal Pits": null, "EU": 32, "Countryside": 2, "Crime": 15, "Defence": 4, "Drug Abuse": 6, "Economy": 10, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 8, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": 4, "Morality": 5, "NHS": 41, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": null, "Environment": 6, "The Pound": 1, "Poverty/Inequality": 10, "Privatisation": 1, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": 1, "Taxation": 5, "Trade Unions": 0, "Transport": 14, "Tsunami": null, "Unemployment": 18 }, { "date": 19950301, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 4, "Coal Pits": null, "EU": 23, "Countryside": 2, "Crime": 24, "Defence": 5, "Drug Abuse": 8, "Economy": 13, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 11, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": 5, "Morality": 5, "NHS": 40, "Northern Ireland": 4, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 14, "Fuel Prices": null, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 10, "Privatisation": null, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": 12, "Tsunami": null, "Unemployment": 21 }, { "date": 19950401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 4, "Coal Pits": null, "EU": 34, "Countryside": 3, "Crime": 16, "Defence": 5, "Drug Abuse": 7, "Economy": 9, "Education": 31, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 9, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 3, "NHS": 41, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 12, "Fuel Prices": null, "Environment": 7, "The Pound": 2, "Poverty/Inequality": 11, "Privatisation": null, "Public Services": null, "Immigration": 8, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 10, "Tsunami": null, "Unemployment": 17 }, { "date": 19950501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 23, "Countryside": 3, "Crime": 21, "Defence": 5, "Drug Abuse": 12, "Economy": 11, "Education": 31, "Farming": null, "German Reunification": null, "GM foods": 2, "Housing": 8, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": 3, "Morality": 6, "NHS": 39, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 14, "Fuel Prices": null, "Environment": 7, "The Pound": 1, "Poverty/Inequality": 14, "Privatisation": null, "Public Services": null, "Immigration": 7, "Scots/Welsh Assembly": 1, "Taxation": 2, "Trade Unions": null, "Transport": 5, "Tsunami": null, "Unemployment": 22 }, { "date": 19950601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 25, "Countryside": 2, "Crime": 19, "Defence": 5, "Drug Abuse": 5, "Economy": 13, "Education": 30, "Farming": null, "German Reunification": null, "GM foods": 3, "Housing": 8, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 1, "Low Pay": 3, "Morality": 4, "NHS": 41, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": null, "Environment": 6, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": 1, "Public Services": null, "Immigration": 10, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": 0, "Transport": 7, "Tsunami": null, "Unemployment": 24 }, { "date": 19950701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 30, "Countryside": 1, "Crime": 16, "Defence": 7, "Drug Abuse": 6, "Economy": 13, "Education": 30, "Farming": null, "German Reunification": null, "GM foods": 1, "Housing": 8, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": 2, "Morality": 3, "NHS": 39, "Northern Ireland": 10, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": null, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": null, "Immigration": 7, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 11, "Tsunami": null, "Unemployment": 21 }, { "date": 19950801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 37, "Countryside": 1, "Crime": 18, "Defence": 16, "Drug Abuse": 7, "Economy": 16, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": 3, "Morality": 6, "NHS": 35, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": 1, "Public Services": null, "Immigration": 7, "Scots/Welsh Assembly": 2, "Taxation": 3, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 19 }, { "date": 19950901, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 26, "Countryside": 1, "Crime": 18, "Defence": 28, "Drug Abuse": 6, "Economy": 15, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": 3, "Morality": 5, "NHS": 33, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 11, "Fuel Prices": null, "Environment": 6, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": null, "Immigration": 6, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": 1, "Transport": 3, "Tsunami": null, "Unemployment": 23 }, { "date": 19951001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 15, "Countryside": 1, "Crime": 20, "Defence": 28, "Drug Abuse": 9, "Economy": 13, "Education": 31, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": 4, "Morality": 3, "NHS": 34, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 7, "Fuel Prices": null, "Environment": 4, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": null, "Public Services": null, "Immigration": 8, "Scots/Welsh Assembly": 2, "Taxation": 5, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 27 }, { "date": 19951101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 32, "Countryside": 1, "Crime": 16, "Defence": 4, "Drug Abuse": 5, "Economy": 15, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": 3, "Morality": 5, "NHS": 37, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 10, "Privatisation": null, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": 1, "Taxation": 5, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 25 }, { "date": 19951201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 3, "Coal Pits": null, "EU": 30, "Countryside": 2, "Crime": 19, "Defence": 8, "Drug Abuse": 6, "Economy": 13, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": 4, "Morality": 4, "NHS": 39, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 11, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": null, "Public Services": null, "Immigration": 7, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 26 }, { "date": 19960101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 27, "Countryside": 2, "Crime": 17, "Defence": 7, "Drug Abuse": 5, "Economy": 19, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 5, "NHS": 49, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": null, "Environment": 6, "The Pound": 1, "Poverty/Inequality": 5, "Privatisation": 1, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 26 }, { "date": 19960201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 32, "Countryside": 1, "Crime": 17, "Defence": 5, "Drug Abuse": 6, "Economy": 18, "Education": 26, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 1, "Low Pay": 3, "Morality": 5, "NHS": 34, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": null, "Environment": 3, "The Pound": null, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": null, "Immigration": 7, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 30 }, { "date": 19960301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 26, "Countryside": 2, "Crime": 17, "Defence": 8, "Drug Abuse": 6, "Economy": 21, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": 4, "Morality": 4, "NHS": 37, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 11, "Fuel Prices": null, "Environment": 5, "The Pound": 2, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": null, "Immigration": 6, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 35 }, { "date": 19960401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 23, "Countryside": 2, "Crime": 20, "Defence": 4, "Drug Abuse": 8, "Economy": 30, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 5, "NHS": 38, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 12, "Fuel Prices": null, "Environment": 5, "The Pound": 3, "Poverty/Inequality": 10, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 43 }, { "date": 19960501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 20, "Countryside": 1, "Crime": 17, "Defence": 3, "Drug Abuse": 5, "Economy": 27, "Education": 31, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 40, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": null, "Environment": 4, "The Pound": 3, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": null, "Immigration": 6, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 44 }, { "date": 19960601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 13, "Countryside": 1, "Crime": 21, "Defence": 7, "Drug Abuse": 8, "Economy": 26, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 41, "Northern Ireland": 11, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 12, "Fuel Prices": null, "Environment": 7, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 36 }, { "date": 19960701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 22, "Countryside": 1, "Crime": 19, "Defence": 3, "Drug Abuse": 7, "Economy": 17, "Education": 40, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 5, "NHS": 45, "Northern Ireland": 5, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": null, "Environment": 8, "The Pound": 2, "Poverty/Inequality": 9, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 8, "Tsunami": null, "Unemployment": 28 }, { "date": 19960801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 33, "Countryside": 1, "Crime": 21, "Defence": 5, "Drug Abuse": 8, "Economy": 13, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 6, "NHS": 44, "Northern Ireland": 5, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": null, "Environment": 8, "The Pound": 2, "Poverty/Inequality": 9, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 5, "Tsunami": null, "Unemployment": 33 }, { "date": 19960901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 22, "Countryside": 1, "Crime": 20, "Defence": 4, "Drug Abuse": 5, "Economy": 13, "Education": 39, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 3, "NHS": 49, "Northern Ireland": 11, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 12, "Fuel Prices": null, "Environment": 6, "The Pound": 1, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 30 }, { "date": 19961001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 23, "Countryside": null, "Crime": 21, "Defence": 5, "Drug Abuse": 9, "Economy": 14, "Education": 39, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 6, "NHS": 35, "Northern Ireland": 10, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 13, "Fuel Prices": null, "Environment": 8, "The Pound": 1, "Poverty/Inequality": 9, "Privatisation": null, "Public Services": null, "Immigration": 6, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 31 }, { "date": 19961101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 22, "Countryside": null, "Crime": 13, "Defence": 4, "Drug Abuse": 5, "Economy": 19, "Education": 42, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 4, "NHS": 47, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 17, "Fuel Prices": null, "Environment": 7, "The Pound": 2, "Poverty/Inequality": 7, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": 1, "Taxation": 4, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 34 }, { "date": 19961201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 16, "Countryside": null, "Crime": 14, "Defence": 26, "Drug Abuse": 3, "Economy": 14, "Education": 37, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 3, "NHS": 50, "Northern Ireland": 5, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 19, "Fuel Prices": null, "Environment": 6, "The Pound": 1, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 31 }, { "date": 19970101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 3, "Coal Pits": null, "EU": 23, "Countryside": null, "Crime": 19, "Defence": 4, "Drug Abuse": 5, "Economy": 14, "Education": 37, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 5, "NHS": 42, "Northern Ireland": 8, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 23, "Fuel Prices": null, "Environment": 7, "The Pound": null, "Poverty/Inequality": 9, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": 1, "Taxation": 3, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 32 }, { "date": 19970201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 7, "Coal Pits": null, "EU": 28, "Countryside": 1, "Crime": 16, "Defence": 2, "Drug Abuse": 5, "Economy": 14, "Education": 31, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 42, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 20, "Fuel Prices": null, "Environment": 9, "The Pound": null, "Poverty/Inequality": 8, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": 1, "Taxation": 2, "Trade Unions": null, "Transport": 2, "Tsunami": null, "Unemployment": 31 }, { "date": 19970301, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 31, "Countryside": 1, "Crime": 22, "Defence": 4, "Drug Abuse": 5, "Economy": 16, "Education": 36, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 47, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": null, "Environment": 7, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 34 }, { "date": 19970401, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 35, "Countryside": null, "Crime": 26, "Defence": 2, "Drug Abuse": 6, "Economy": 14, "Education": 36, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 47, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 12, "Fuel Prices": null, "Environment": 7, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 8, "Scots/Welsh Assembly": 1, "Taxation": 2, "Trade Unions": null, "Transport": 3, "Tsunami": null, "Unemployment": 32 }, { "date": 19970601, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 21, "Countryside": 1, "Crime": 28, "Defence": 2, "Drug Abuse": 7, "Economy": 17, "Education": 45, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 6, "NHS": 45, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 12, "Fuel Prices": null, "Environment": 7, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": 2, "Taxation": 2, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 35 }, { "date": 19970701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 16, "Countryside": 1, "Crime": 27, "Defence": 2, "Drug Abuse": 9, "Economy": 18, "Education": 39, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 5, "NHS": 47, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": null, "Environment": 11, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": 1, "Taxation": 2, "Trade Unions": null, "Transport": 7, "Tsunami": null, "Unemployment": 35 }, { "date": 19970801, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 23, "Countryside": 1, "Crime": 23, "Defence": 2, "Drug Abuse": 6, "Economy": 19, "Education": 49, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 6, "NHS": 46, "Northern Ireland": 4, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": null, "Environment": 7, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": 2, "Taxation": 2, "Trade Unions": null, "Transport": 4, "Tsunami": null, "Unemployment": 34 }, { "date": 19970901, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 1, "Coal Pits": null, "EU": 30, "Countryside": null, "Crime": 24, "Defence": 2, "Drug Abuse": 6, "Economy": 14, "Education": 45, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 5, "NHS": 51, "Northern Ireland": 4, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": null, "Environment": 10, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 39 }, { "date": 19971001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 43, "Countryside": null, "Crime": 27, "Defence": 2, "Drug Abuse": 3, "Economy": 22, "Education": 54, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 5, "NHS": 63, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 17, "Fuel Prices": null, "Environment": 2, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 28 }, { "date": 19971101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 33, "Countryside": null, "Crime": 28, "Defence": 1, "Drug Abuse": 3, "Economy": 18, "Education": 43, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 5, "NHS": 49, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 15, "Fuel Prices": null, "Environment": 6, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 39 }, { "date": 19971201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 35, "Countryside": null, "Crime": 27, "Defence": 2, "Drug Abuse": 5, "Economy": 18, "Education": 45, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 8, "NHS": 48, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 38 }, { "date": 19980101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 29, "Countryside": null, "Crime": 22, "Defence": 2, "Drug Abuse": 4, "Economy": 19, "Education": 43, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 5, "NHS": 49, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 12, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 36 }, { "date": 19980201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 38, "Countryside": null, "Crime": 37, "Defence": 2, "Drug Abuse": 6, "Economy": 24, "Education": 38, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 7, "NHS": 42, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 14, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 35 }, { "date": 19980301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 2, "Coal Pits": null, "EU": 23, "Countryside": null, "Crime": 37, "Defence": 3, "Drug Abuse": 7, "Economy": 19, "Education": 42, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 9, "NHS": 43, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 13, "Fuel Prices": null, "Environment": 3, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 41 }, { "date": 19980401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 3, "Coal Pits": null, "EU": 20, "Countryside": null, "Crime": 41, "Defence": 2, "Drug Abuse": 6, "Economy": 13, "Education": 39, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 7, "NHS": 36, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 11, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 37 }, { "date": 19980501, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 8, "Coal Pits": null, "EU": 23, "Countryside": null, "Crime": 27, "Defence": 3, "Drug Abuse": 6, "Economy": 14, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 35, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": null, "Environment": 5, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 43 }, { "date": 19980601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": 3, "Coal Pits": null, "EU": 20, "Countryside": null, "Crime": 30, "Defence": 2, "Drug Abuse": 5, "Economy": 15, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 5, "NHS": 33, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 10, "Fuel Prices": null, "Environment": 7, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 44 }, { "date": 19980701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 5, "Coal Pits": null, "EU": 25, "Countryside": null, "Crime": 29, "Defence": 2, "Drug Abuse": 6, "Economy": 14, "Education": 31, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 35, "Northern Ireland": 4, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 43 }, { "date": 19980801, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 15, "Coal Pits": null, "EU": 28, "Countryside": null, "Crime": 22, "Defence": 1, "Drug Abuse": 4, "Economy": 13, "Education": 28, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 33, "Northern Ireland": 4, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": null, "Environment": 3, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 44 }, { "date": 19980901, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": 18, "Coal Pits": null, "EU": 29, "Countryside": null, "Crime": 29, "Defence": 2, "Drug Abuse": 5, "Economy": 16, "Education": 30, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 2, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 39, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 42 }, { "date": 19981001, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 20, "Countryside": null, "Crime": 24, "Defence": 2, "Drug Abuse": 5, "Economy": 17, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 34, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 46 }, { "date": 19981101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 0, "EU": 16, "Countryside": null, "Crime": 24, "Defence": 3, "Drug Abuse": 5, "Economy": 16, "Education": 31, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 3, "NHS": 36, "Northern Ireland": 5, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 8, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 44 }, { "date": 19981201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 11, "Countryside": null, "Crime": 24, "Defence": 2, "Drug Abuse": 6, "Economy": 18, "Education": 30, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 39, "Northern Ireland": 12, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 10, "Fuel Prices": null, "Environment": 7, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 4, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 48 }, { "date": 19990101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 14, "Countryside": null, "Crime": 27, "Defence": 3, "Drug Abuse": 7, "Economy": 20, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 3, "NHS": 41, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 8, "Fuel Prices": null, "Environment": 4, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 49 }, { "date": 19990201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 10, "Countryside": null, "Crime": 23, "Defence": 2, "Drug Abuse": 6, "Economy": 19, "Education": 32, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": 4, "NHS": 40, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 10, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 51 }, { "date": 19990301, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 11, "Countryside": null, "Crime": 25, "Defence": 3, "Drug Abuse": 10, "Economy": 19, "Education": 31, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 5, "NHS": 39, "Northern Ireland": 1, "Nuclear Power": 1, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": null, "Environment": 5, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 52 }, { "date": 19990401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 17, "Countryside": null, "Crime": 22, "Defence": 2, "Drug Abuse": 5, "Economy": 18, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 12, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": 2, "NHS": 45, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 10, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 4, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 51 }, { "date": 19990501, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 13, "Countryside": null, "Crime": 24, "Defence": 3, "Drug Abuse": 4, "Economy": 20, "Education": 30, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 44, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": null, "Environment": 5, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 48 }, { "date": 19990601, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 12, "Countryside": null, "Crime": 24, "Defence": 3, "Drug Abuse": 4, "Economy": 20, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 5, "NHS": 39, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": null, "Environment": 6, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 5, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 52 }, { "date": 19990701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 12, "Countryside": null, "Crime": 23, "Defence": 6, "Drug Abuse": 3, "Economy": 20, "Education": 28, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 12, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 3, "NHS": 39, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 51 }, { "date": 19990801, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 26, "Countryside": null, "Crime": 22, "Defence": 4, "Drug Abuse": 3, "Economy": 17, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 3, "NHS": 38, "Northern Ireland": 1, "Nuclear Power": 1, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 47 }, { "date": 19990901, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 15, "Countryside": null, "Crime": 25, "Defence": 2, "Drug Abuse": 4, "Economy": 19, "Education": 29, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 44, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 53 }, { "date": 19991001, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 12, "Countryside": null, "Crime": 25, "Defence": 2, "Drug Abuse": 3, "Economy": 21, "Education": 33, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 3, "NHS": 41, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 3, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 51 }, { "date": 19991101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 16, "Countryside": null, "Crime": 24, "Defence": 2, "Drug Abuse": 4, "Economy": 20, "Education": 25, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 3, "NHS": 43, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 51 }, { "date": 19991201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 25, "Countryside": null, "Crime": 26, "Defence": 2, "Drug Abuse": 4, "Economy": 20, "Education": 26, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 5, "NHS": 36, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 52 }, { "date": 20000101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 22, "Countryside": null, "Crime": 23, "Defence": 3, "Drug Abuse": 3, "Economy": 22, "Education": 22, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 3, "NHS": 38, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 10, "Fuel Prices": null, "Environment": 5, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 4, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 52 }, { "date": 20000201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 17, "Countryside": null, "Crime": 22, "Defence": 2, "Drug Abuse": 3, "Economy": 22, "Education": 18, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 3, "NHS": 34, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 12, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 5, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 55 }, { "date": 20000301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 14, "Countryside": null, "Crime": 25, "Defence": 2, "Drug Abuse": 4, "Economy": 17, "Education": 20, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 40, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 11, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 58 }, { "date": 20000401, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 11, "Countryside": null, "Crime": 37, "Defence": 3, "Drug Abuse": 7, "Economy": 19, "Education": 22, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 34, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 5, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 62 }, { "date": 20000501, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": null, "Crime": 33, "Defence": 3, "Drug Abuse": 3, "Economy": 20, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 6, "NHS": 34, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 4, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 59 }, { "date": 20000601, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": null, "Crime": 33, "Defence": 5, "Drug Abuse": 4, "Economy": 19, "Education": 23, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 36, "Northern Ireland": 2, "Nuclear Power": 1, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": null, "Environment": 6, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 62 }, { "date": 20000701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 12, "Countryside": null, "Crime": 23, "Defence": 7, "Drug Abuse": 4, "Economy": 18, "Education": 20, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 35, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 7, "Fuel Prices": null, "Environment": 7, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 4, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 5, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 65 }, { "date": 20000801, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 13, "Countryside": null, "Crime": 30, "Defence": 2, "Drug Abuse": 4, "Economy": 22, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 4, "NHS": 29, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": 0, "Taxation": 11, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 66 }, { "date": 20000901, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 12, "Countryside": null, "Crime": 32, "Defence": 3, "Drug Abuse": 3, "Economy": 24, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 4, "NHS": 35, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 5, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 8, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 60 }, { "date": 20001001, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 7, "Countryside": null, "Crime": 33, "Defence": 7, "Drug Abuse": 4, "Economy": 24, "Education": 24, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 4, "NHS": 38, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 6, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 9, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 60 }, { "date": 20001101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 12, "Countryside": null, "Crime": 34, "Defence": 5, "Drug Abuse": 4, "Economy": 21, "Education": 25, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 5, "NHS": 35, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 11, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 59 }, { "date": 20001201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 26, "Defence": 9, "Drug Abuse": 5, "Economy": 23, "Education": 22, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": 5, "NHS": 40, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": null, "Environment": 3, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 61 }, { "date": 20010101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 31, "Defence": 6, "Drug Abuse": 4, "Economy": 30, "Education": 22, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 14, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": 6, "NHS": 32, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 5, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 6, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 61 }, { "date": 20010201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 6, "Countryside": null, "Crime": 23, "Defence": 4, "Drug Abuse": 2, "Economy": 28, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 34, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 15, "Fuel Prices": null, "Environment": 4, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 66 }, { "date": 20010301, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 6, "Countryside": null, "Crime": 28, "Defence": 4, "Drug Abuse": 3, "Economy": 30, "Education": 23, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 9, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 35, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 61 }, { "date": 20010401, "Ageing": null, "Aids": 0, "Animal Welfare": 0, "Bird Flu": null, "BSE": null, "Coal Pits": 2, "EU": 6, "Countryside": null, "Crime": 33, "Defence": 6, "Drug Abuse": 2, "Economy": 30, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 7, "Inner Cities": null, "Local Govt": 3, "Low Pay": null, "Morality": null, "NHS": 32, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 13, "Fuel Prices": null, "Environment": 3, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": 7, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 61 }, { "date": 20010601, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": null, "Crime": 29, "Defence": 4, "Drug Abuse": 2, "Economy": 32, "Education": 19, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 9, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 32, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": null, "Environment": 3, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 8, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 61 }, { "date": 20010701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 10, "Countryside": null, "Crime": 25, "Defence": 6, "Drug Abuse": 2, "Economy": 32, "Education": 21, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 8, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": null, "NHS": 36, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 5, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 63 }, { "date": 20010801, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": null, "BSE": null, "Coal Pits": 0, "EU": 19, "Countryside": null, "Crime": 24, "Defence": 4, "Drug Abuse": 3, "Economy": 31, "Education": 18, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 8, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": null, "NHS": 32, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 11, "Fuel Prices": null, "Environment": 7, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 66 }, { "date": 20010901, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 9, "Countryside": null, "Crime": 20, "Defence": 6, "Drug Abuse": 2, "Economy": 36, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 37, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 10, "Fuel Prices": null, "Environment": 4, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 69 }, { "date": 20011001, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 13, "Countryside": null, "Crime": 24, "Defence": 5, "Drug Abuse": 2, "Economy": 30, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 41, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 12, "Fuel Prices": null, "Environment": 3, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 4, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 68 }, { "date": 20011101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 9, "Countryside": null, "Crime": 26, "Defence": 8, "Drug Abuse": 2, "Economy": 36, "Education": 19, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 10, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 24, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": null, "Environment": 5, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 73 }, { "date": 20020101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 2, "EU": 10, "Countryside": null, "Crime": 34, "Defence": 3, "Drug Abuse": 2, "Economy": 33, "Education": 18, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 10, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": 3, "Low Pay": null, "Morality": null, "NHS": 24, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": null, "Environment": 4, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 78 }, { "date": 20020201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": 1, "EU": 10, "Countryside": null, "Crime": 33, "Defence": 3, "Drug Abuse": 2, "Economy": 31, "Education": 20, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 9, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 30, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 7, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 81 }, { "date": 20020301, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": null, "BSE": null, "Coal Pits": 3, "EU": 8, "Countryside": null, "Crime": 17, "Defence": 9, "Drug Abuse": 2, "Economy": 37, "Education": 16, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 10, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": 3, "Low Pay": null, "Morality": null, "NHS": 28, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": null, "Environment": 4, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 79 }, { "date": 20020401, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 24, "Countryside": null, "Crime": 12, "Defence": 3, "Drug Abuse": 2, "Economy": 41, "Education": 15, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 17, "Inflation/Prices": 7, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 24, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 7, "Fuel Prices": null, "Environment": 3, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": 0, "Taxation": 1, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 72 }, { "date": 20020501, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 19, "Countryside": null, "Crime": 12, "Defence": 2, "Drug Abuse": null, "Economy": 47, "Education": 16, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 15, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": 5, "Low Pay": null, "Morality": null, "NHS": 27, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 7, "Fuel Prices": null, "Environment": 5, "The Pound": 3, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 71 }, { "date": 20020601, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 19, "Countryside": null, "Crime": 9, "Defence": 2, "Drug Abuse": 1, "Economy": 50, "Education": 14, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 10, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 3, "Low Pay": null, "Morality": null, "NHS": 27, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 7, "Fuel Prices": null, "Environment": 4, "The Pound": 2, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": 0, "Taxation": null, "Trade Unions": 8, "Transport": null, "Tsunami": null, "Unemployment": 74 }, { "date": 20020701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 22, "Countryside": null, "Crime": 11, "Defence": 3, "Drug Abuse": 1, "Economy": 53, "Education": 17, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 13, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 3, "Low Pay": null, "Morality": null, "NHS": 21, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 6, "Fuel Prices": null, "Environment": 7, "The Pound": 4, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 61 }, { "date": 20020901, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 10, "Countryside": null, "Crime": 14, "Defence": 7, "Drug Abuse": 2, "Economy": 44, "Education": 18, "Farming": null, "German Reunification": 2, "GM foods": null, "Housing": 15, "Inflation/Prices": 13, "Inner Cities": null, "Local Govt": 7, "Low Pay": null, "Morality": null, "NHS": 26, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 7, "Fuel Prices": null, "Environment": 8, "The Pound": 4, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 6, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 64 }, { "date": 20021001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 10, "Countryside": null, "Crime": 17, "Defence": 3, "Drug Abuse": null, "Economy": 35, "Education": 20, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 12, "Inflation/Prices": 7, "Inner Cities": null, "Local Govt": 5, "Low Pay": null, "Morality": null, "NHS": 28, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": null, "Environment": 14, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 61 }, { "date": 20021101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 17, "Countryside": null, "Crime": 16, "Defence": 3, "Drug Abuse": 2, "Economy": 26, "Education": 21, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 11, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 5, "Low Pay": null, "Morality": null, "NHS": 30, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 9, "Fuel Prices": null, "Environment": 15, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 57 }, { "date": 20021201, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 14, "Countryside": null, "Crime": 15, "Defence": 4, "Drug Abuse": 2, "Economy": 27, "Education": 23, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 11, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 7, "Low Pay": null, "Morality": null, "NHS": 32, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": null, "Environment": 13, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 57 }, { "date": 20030101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 10, "Countryside": null, "Crime": 11, "Defence": 3, "Drug Abuse": null, "Economy": 32, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": 7, "Low Pay": null, "Morality": null, "NHS": 41, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 8, "Fuel Prices": null, "Environment": 10, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 53 }, { "date": 20030201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": null, "Crime": 13, "Defence": 4, "Drug Abuse": null, "Economy": 40, "Education": 27, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 10, "Inner Cities": null, "Local Govt": 9, "Low Pay": null, "Morality": null, "NHS": 49, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": null, "Environment": 7, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 56 }, { "date": 20030301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 12, "Countryside": null, "Crime": 11, "Defence": 6, "Drug Abuse": null, "Economy": 37, "Education": 24, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 12, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": 8, "Low Pay": null, "Morality": null, "NHS": 43, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 9, "Fuel Prices": null, "Environment": 5, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 54 }, { "date": 20030401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 24, "Countryside": null, "Crime": 15, "Defence": 6, "Drug Abuse": null, "Economy": 31, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 17, "Inflation/Prices": 10, "Inner Cities": null, "Local Govt": 9, "Low Pay": null, "Morality": null, "NHS": 34, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 8, "Fuel Prices": null, "Environment": 4, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 41 }, { "date": 20030501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 32, "Countryside": null, "Crime": 12, "Defence": 4, "Drug Abuse": null, "Economy": 28, "Education": 24, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 10, "Low Pay": null, "Morality": null, "NHS": 42, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": null, "Environment": 7, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 48 }, { "date": 20030601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": null, "Crime": 15, "Defence": 8, "Drug Abuse": null, "Economy": 24, "Education": 21, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": 8, "Low Pay": null, "Morality": null, "NHS": 51, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": null, "Environment": 10, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 54 }, { "date": 20030701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": null, "Crime": 23, "Defence": 6, "Drug Abuse": null, "Economy": 26, "Education": 26, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": 9, "Low Pay": null, "Morality": null, "NHS": 45, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 9, "Fuel Prices": null, "Environment": 7, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 54 }, { "date": 20030801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": null, "Crime": 13, "Defence": 9, "Drug Abuse": null, "Economy": 34, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 13, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": 11, "Low Pay": null, "Morality": null, "NHS": 34, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 8, "Fuel Prices": null, "Environment": 8, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 54 }, { "date": 20030901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": null, "Crime": 13, "Defence": 6, "Drug Abuse": null, "Economy": 34, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 14, "Inner Cities": null, "Local Govt": 11, "Low Pay": null, "Morality": null, "NHS": 33, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 7, "Fuel Prices": null, "Environment": 18, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 53 }, { "date": 20031001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 18, "Countryside": null, "Crime": 9, "Defence": 4, "Drug Abuse": null, "Economy": 28, "Education": 20, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 18, "Inner Cities": null, "Local Govt": 13, "Low Pay": null, "Morality": null, "NHS": 40, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": null, "Environment": 8, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 52 }, { "date": 20031101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 14, "Defence": 4, "Drug Abuse": null, "Economy": 28, "Education": 25, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 16, "Inner Cities": null, "Local Govt": 13, "Low Pay": null, "Morality": null, "NHS": 51, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 7, "Fuel Prices": null, "Environment": 9, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 45 }, { "date": 20031201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 15, "Defence": 10, "Drug Abuse": null, "Economy": 27, "Education": 20, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 21, "Inner Cities": null, "Local Govt": 27, "Low Pay": null, "Morality": null, "NHS": 29, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 1, "Pensions": 10, "Fuel Prices": null, "Environment": 10, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 48 }, { "date": 20040101, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 7, "Defence": 6, "Drug Abuse": 1, "Economy": 32, "Education": 18, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 22, "Inner Cities": null, "Local Govt": 38, "Low Pay": null, "Morality": null, "NHS": 24, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 9, "Fuel Prices": null, "Environment": 9, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 1, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 38 }, { "date": 20040201, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 7, "Defence": 51, "Drug Abuse": 1, "Economy": 33, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": 35, "Low Pay": null, "Morality": null, "NHS": 23, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 8, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 1, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 37 }, { "date": 20040301, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 5, "Defence": 65, "Drug Abuse": 1, "Economy": 28, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": 28, "Low Pay": null, "Morality": null, "NHS": 27, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 10, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 34 }, { "date": 20040401, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 14, "Countryside": null, "Crime": 9, "Defence": 29, "Drug Abuse": 2, "Economy": 23, "Education": 14, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 10, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": 29, "Low Pay": null, "Morality": null, "NHS": 24, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": null, "Environment": 6, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 22 }, { "date": 20040501, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 18, "Countryside": null, "Crime": 8, "Defence": 33, "Drug Abuse": 1, "Economy": 23, "Education": 21, "Farming": null, "German Reunification": 2, "GM foods": null, "Housing": 10, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": 36, "Low Pay": null, "Morality": null, "NHS": 28, "Northern Ireland": 1, "Nuclear Power": 1, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": null, "Environment": 9, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 1, "Scots/Welsh Assembly": 0, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 22 }, { "date": 20040601, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 12, "Defence": 25, "Drug Abuse": 1, "Economy": 25, "Education": 32, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 6, "Inflation/Prices": 23, "Inner Cities": null, "Local Govt": 23, "Low Pay": null, "Morality": null, "NHS": 31, "Northern Ireland": 1, "Nuclear Power": 1, "Nuclear Weapons": 2, "Pensions": 10, "Fuel Prices": null, "Environment": 12, "The Pound": 2, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 26 }, { "date": 20040701, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 9, "Defence": 35, "Drug Abuse": 2, "Economy": 26, "Education": 20, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 9, "Inflation/Prices": 30, "Inner Cities": null, "Local Govt": 22, "Low Pay": null, "Morality": null, "NHS": 29, "Northern Ireland": 1, "Nuclear Power": 1, "Nuclear Weapons": 2, "Pensions": 11, "Fuel Prices": null, "Environment": 14, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 24 }, { "date": 20040801, "Ageing": null, "Aids": 1, "Animal Welfare": 1, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 10, "Defence": 31, "Drug Abuse": 2, "Economy": 25, "Education": 17, "Farming": null, "German Reunification": 1, "GM foods": null, "Housing": 10, "Inflation/Prices": 32, "Inner Cities": null, "Local Govt": 24, "Low Pay": null, "Morality": null, "NHS": 28, "Northern Ireland": 1, "Nuclear Power": 1, "Nuclear Weapons": 3, "Pensions": 10, "Fuel Prices": null, "Environment": 18, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 26 }, { "date": 20040901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 15, "Countryside": null, "Crime": 12, "Defence": 4, "Drug Abuse": null, "Economy": 21, "Education": 18, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": 30, "Low Pay": null, "Morality": null, "NHS": 30, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 11, "Fuel Prices": null, "Environment": 30, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 20 }, { "date": 20041001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 10, "Countryside": null, "Crime": 12, "Defence": 5, "Drug Abuse": null, "Economy": 23, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": 30, "Low Pay": null, "Morality": null, "NHS": 22, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 7, "Fuel Prices": null, "Environment": 20, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 19 }, { "date": 20041101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": null, "Crime": 14, "Defence": 3, "Drug Abuse": null, "Economy": 25, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 29, "Inner Cities": null, "Local Govt": 39, "Low Pay": null, "Morality": null, "NHS": 23, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 4, "Pensions": 10, "Fuel Prices": null, "Environment": 22, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 26 }, { "date": 20041201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": null, "Crime": 12, "Defence": 4, "Drug Abuse": null, "Economy": 24, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 23, "Inner Cities": null, "Local Govt": 46, "Low Pay": null, "Morality": null, "NHS": 25, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 5, "Pensions": 11, "Fuel Prices": null, "Environment": 19, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 20 }, { "date": 20050101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": null, "Crime": 9, "Defence": 3, "Drug Abuse": null, "Economy": 24, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 26, "Inner Cities": null, "Local Govt": 49, "Low Pay": null, "Morality": null, "NHS": 25, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 3, "Pensions": 9, "Fuel Prices": null, "Environment": 21, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 18 }, { "date": 20050201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": null, "Crime": 12, "Defence": 4, "Drug Abuse": null, "Economy": 26, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 29, "Inner Cities": null, "Local Govt": 32, "Low Pay": null, "Morality": null, "NHS": 27, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 5, "Pensions": 10, "Fuel Prices": null, "Environment": 18, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 20 }, { "date": 20050301, "Ageing": null, "Aids": 3, "Animal Welfare": 3, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": null, "Crime": 14, "Defence": 3, "Drug Abuse": 3, "Economy": 24, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 24, "Inner Cities": null, "Local Govt": 22, "Low Pay": null, "Morality": null, "NHS": 31, "Northern Ireland": 2, "Nuclear Power": 1, "Nuclear Weapons": 5, "Pensions": 12, "Fuel Prices": null, "Environment": 19, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 8, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": 4, "Transport": null, "Tsunami": null, "Unemployment": 26 }, { "date": 20050501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": null, "Crime": 10, "Defence": 7, "Drug Abuse": null, "Economy": 24, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 14, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": 17, "Low Pay": null, "Morality": null, "NHS": 34, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 5, "Pensions": 12, "Fuel Prices": null, "Environment": 17, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 24 }, { "date": 20050601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 10, "Countryside": null, "Crime": 13, "Defence": 7, "Drug Abuse": null, "Economy": 28, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 14, "Inflation/Prices": 24, "Inner Cities": null, "Local Govt": 12, "Low Pay": null, "Morality": null, "NHS": 36, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 6, "Pensions": 12, "Fuel Prices": null, "Environment": 18, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 24 }, { "date": 20050701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 16, "Defence": 5, "Drug Abuse": null, "Economy": 31, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 25, "Inner Cities": null, "Local Govt": 13, "Low Pay": null, "Morality": null, "NHS": 35, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 7, "Pensions": 12, "Fuel Prices": null, "Environment": 21, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 23 }, { "date": 20050801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 18, "Defence": 5, "Drug Abuse": null, "Economy": 17, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 16, "Inner Cities": null, "Local Govt": 11, "Low Pay": null, "Morality": null, "NHS": 31, "Northern Ireland": 5, "Nuclear Power": null, "Nuclear Weapons": 9, "Pensions": 12, "Fuel Prices": null, "Environment": 28, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 25 }, { "date": 20050901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 7, "Countryside": null, "Crime": 18, "Defence": 4, "Drug Abuse": null, "Economy": 17, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": 11, "Low Pay": null, "Morality": null, "NHS": 34, "Northern Ireland": 4, "Nuclear Power": null, "Nuclear Weapons": 9, "Pensions": 11, "Fuel Prices": null, "Environment": 30, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 27 }, { "date": 20051001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 11, "Countryside": null, "Crime": 15, "Defence": 3, "Drug Abuse": null, "Economy": 16, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": 13, "Low Pay": null, "Morality": null, "NHS": 29, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 8, "Pensions": 11, "Fuel Prices": null, "Environment": 35, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 24 }, { "date": 20051101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 16, "Countryside": null, "Crime": 13, "Defence": 5, "Drug Abuse": null, "Economy": 19, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": null, "Inflation/Prices": 23, "Inner Cities": null, "Local Govt": 10, "Low Pay": null, "Morality": null, "NHS": 29, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 12, "Pensions": null, "Fuel Prices": null, "Environment": 23, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 30 }, { "date": 20060101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 11, "Countryside": null, "Crime": 19, "Defence": 6, "Drug Abuse": null, "Economy": 16, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": 10, "Low Pay": null, "Morality": null, "NHS": 34, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 16, "Pensions": 13, "Fuel Prices": null, "Environment": 17, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 31 }, { "date": 20060201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 24, "Defence": 5, "Drug Abuse": null, "Economy": 16, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 21, "Inner Cities": null, "Local Govt": 10, "Low Pay": null, "Morality": null, "NHS": 35, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 11, "Pensions": 14, "Fuel Prices": null, "Environment": 14, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 32 }, { "date": 20060301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 20, "Defence": 6, "Drug Abuse": null, "Economy": 15, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 21, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 40, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 9, "Pensions": 9, "Fuel Prices": null, "Environment": 22, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 33 }, { "date": 20060401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 20, "Defence": 6, "Drug Abuse": null, "Economy": 14, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 38, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 11, "Pensions": 13, "Fuel Prices": null, "Environment": 14, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 35 }, { "date": 20060501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 26, "Defence": 5, "Drug Abuse": null, "Economy": 18, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 34, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 11, "Pensions": 13, "Fuel Prices": null, "Environment": 9, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 38 }, { "date": 20060601, "Ageing": null, "Aids": 3, "Animal Welfare": 3, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 19, "Defence": 7, "Drug Abuse": 3, "Economy": 21, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 14, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": 6, "Low Pay": null, "Morality": null, "NHS": 31, "Northern Ireland": 2, "Nuclear Power": 3, "Nuclear Weapons": 11, "Pensions": 15, "Fuel Prices": null, "Environment": 5, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": 0, "Transport": null, "Tsunami": null, "Unemployment": 41 }, { "date": 20060701, "Ageing": null, "Aids": 2, "Animal Welfare": 2, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 21, "Defence": 7, "Drug Abuse": 4, "Economy": 21, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 14, "Inner Cities": null, "Local Govt": 5, "Low Pay": null, "Morality": null, "NHS": 39, "Northern Ireland": 3, "Nuclear Power": 5, "Nuclear Weapons": 13, "Pensions": 20, "Fuel Prices": null, "Environment": 11, "The Pound": 2, "Poverty/Inequality": null, "Privatisation": 8, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": null, "Transport": null, "Tsunami": null, "Unemployment": 36 }, { "date": 20060801, "Ageing": null, "Aids": 4, "Animal Welfare": 4, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": null, "Crime": 25, "Defence": 6, "Drug Abuse": 5, "Economy": 14, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": 5, "Low Pay": null, "Morality": null, "NHS": 38, "Northern Ireland": 3, "Nuclear Power": 6, "Nuclear Weapons": 13, "Pensions": 16, "Fuel Prices": null, "Environment": 10, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 3, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 42 }, { "date": 20061001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": null, "Crime": 24, "Defence": 5, "Drug Abuse": null, "Economy": 16, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 36, "Northern Ireland": 7, "Nuclear Power": null, "Nuclear Weapons": 13, "Pensions": 15, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 44 }, { "date": 20061101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 29, "Defence": 7, "Drug Abuse": null, "Economy": 15, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 34, "Northern Ireland": 15, "Nuclear Power": null, "Nuclear Weapons": 12, "Pensions": 13, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 48 }, { "date": 20061201, "Ageing": null, "Aids": 3, "Animal Welfare": 3, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 28, "Defence": 7, "Drug Abuse": 4, "Economy": 13, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 11, "Inflation/Prices": 9, "Inner Cities": 1, "Local Govt": 7, "Low Pay": null, "Morality": null, "NHS": 41, "Northern Ireland": 3, "Nuclear Power": 4, "Nuclear Weapons": 15, "Pensions": 13, "Fuel Prices": null, "Environment": null, "The Pound": 2, "Poverty/Inequality": null, "Privatisation": 4, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 48 }, { "date": 20070101, "Ageing": null, "Aids": 3, "Animal Welfare": 3, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 34, "Defence": 7, "Drug Abuse": 6, "Economy": 8, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 10, "Inflation/Prices": 7, "Inner Cities": 2, "Local Govt": 8, "Low Pay": null, "Morality": null, "NHS": 35, "Northern Ireland": 3, "Nuclear Power": 4, "Nuclear Weapons": 17, "Pensions": 12, "Fuel Prices": null, "Environment": null, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 49 }, { "date": 20070401, "Ageing": null, "Aids": 4, "Animal Welfare": 4, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 23, "Defence": 6, "Drug Abuse": 5, "Economy": 8, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 5, "Inner Cities": 1, "Local Govt": 9, "Low Pay": null, "Morality": null, "NHS": 44, "Northern Ireland": 3, "Nuclear Power": 4, "Nuclear Weapons": 13, "Pensions": 13, "Fuel Prices": null, "Environment": null, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 53 }, { "date": 20070501, "Ageing": null, "Aids": 5, "Animal Welfare": 5, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 20, "Defence": 6, "Drug Abuse": 4, "Economy": 8, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 6, "Inner Cities": 2, "Local Govt": 13, "Low Pay": null, "Morality": null, "NHS": 50, "Northern Ireland": 4, "Nuclear Power": 4, "Nuclear Weapons": 13, "Pensions": 17, "Fuel Prices": null, "Environment": null, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 7, "Scots/Welsh Assembly": null, "Taxation": 3, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 53 }, { "date": 20070601, "Ageing": null, "Aids": 6, "Animal Welfare": 6, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 27, "Defence": 5, "Drug Abuse": 4, "Economy": 7, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 5, "Inner Cities": 2, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 60, "Northern Ireland": 15, "Nuclear Power": 4, "Nuclear Weapons": 12, "Pensions": 11, "Fuel Prices": null, "Environment": null, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 4, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 56 }, { "date": 20070701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 17, "Defence": 5, "Drug Abuse": null, "Economy": 7, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": 1, "Low Pay": null, "Morality": null, "NHS": 59, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 12, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 3, "Transport": null, "Tsunami": null, "Unemployment": 49 }, { "date": 20070801, "Ageing": null, "Aids": 5, "Animal Welfare": 5, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 15, "Defence": 7, "Drug Abuse": 3, "Economy": 6, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 2, "Inner Cities": 1, "Local Govt": 1, "Low Pay": null, "Morality": null, "NHS": 64, "Northern Ireland": 1, "Nuclear Power": 4, "Nuclear Weapons": 13, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": 1, "Poverty/Inequality": null, "Privatisation": 1, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": 1, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 45 }, { "date": 20070901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 16, "Defence": 9, "Drug Abuse": null, "Economy": 6, "Education": 18, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 52, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 20, "Pensions": 8, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 57 }, { "date": 20071001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 20, "Defence": 8, "Drug Abuse": null, "Economy": 10, "Education": 19, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 32, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 15, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 58 }, { "date": 20071201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 19, "Defence": 10, "Drug Abuse": null, "Economy": 13, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 22, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 18, "Pensions": 8, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 60 }, { "date": 20080101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 20, "Defence": 9, "Drug Abuse": null, "Economy": 9, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 21, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 19, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 63 }, { "date": 20080201, "Ageing": null, "Aids": 6, "Animal Welfare": 6, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 27, "Defence": 10, "Drug Abuse": 5, "Economy": 9, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": 2, "Low Pay": null, "Morality": null, "NHS": 19, "Northern Ireland": 1, "Nuclear Power": 6, "Nuclear Weapons": 17, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 2, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": 2, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 65 }, { "date": 20080301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 17, "Defence": 13, "Drug Abuse": null, "Economy": 8, "Education": 24, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 4, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 28, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 16, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 68 }, { "date": 20080401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 19, "Defence": 9, "Drug Abuse": null, "Economy": 5, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 19, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 21, "Pensions": 8, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 75 }, { "date": 20080501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 17, "Defence": 9, "Drug Abuse": null, "Economy": 6, "Education": 14, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 5, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 20, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 20, "Pensions": 9, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 76 }, { "date": 20080601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 18, "Defence": 9, "Drug Abuse": null, "Economy": 7, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 19, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 16, "Pensions": 8, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 77 }, { "date": 20080701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 17, "Defence": 10, "Drug Abuse": null, "Economy": 7, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 3, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 17, "Northern Ireland": null, "Nuclear Power": null, "Nuclear Weapons": 19, "Pensions": 10, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 75 }, { "date": 20080801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 13, "Defence": 19, "Drug Abuse": null, "Economy": null, "Education": 13, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 17, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 26, "Pensions": 9, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 78 }, { "date": 20080901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 16, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 18, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 22, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 73 }, { "date": 20081001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 14, "Defence": 8, "Drug Abuse": null, "Economy": null, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 18, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 26, "Pensions": 5, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 77 }, { "date": 20081101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 17, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 7, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 19, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 22, "Pensions": 4, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 78 }, { "date": 20081201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 17, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": null, "Inflation/Prices": 7, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 15, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 17, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 80 }, { "date": 20090101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 14, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 6, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 16, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 17, "Pensions": 4, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 78 }, { "date": 20090201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 15, "Defence": 9, "Drug Abuse": null, "Economy": null, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 19, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 26, "Pensions": 5, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 2, "Transport": null, "Tsunami": null, "Unemployment": 83 }, { "date": 20090401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 13, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 16, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 8, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 18, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 29, "Pensions": 5, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 84 }, { "date": 20090501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 17, "Defence": 20, "Drug Abuse": null, "Economy": null, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 8, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 14, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 15, "Pensions": 4, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 1, "Transport": null, "Tsunami": null, "Unemployment": 79 }, { "date": 20090601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 17, "Defence": 4, "Drug Abuse": null, "Economy": null, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 12, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 14, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 15, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 3, "Transport": null, "Tsunami": null, "Unemployment": 86 }, { "date": 20090701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 13, "Defence": 4, "Drug Abuse": null, "Economy": null, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 15, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 14, "Pensions": 5, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 5, "Transport": null, "Tsunami": null, "Unemployment": 82 }, { "date": 20090801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 17, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 9, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 15, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 21, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 3, "Transport": null, "Tsunami": null, "Unemployment": 84 }, { "date": 20091001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 21, "Defence": 5, "Drug Abuse": null, "Economy": null, "Education": 8, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": null, "Inflation/Prices": 10, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 10, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 21, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 3, "Transport": null, "Tsunami": null, "Unemployment": 82 }, { "date": 20091101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 25, "Defence": 4, "Drug Abuse": null, "Economy": null, "Education": 9, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 11, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 13, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 15, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 9, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 3, "Transport": null, "Tsunami": null, "Unemployment": 82 }, { "date": 20100201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 1, "Countryside": null, "Crime": 29, "Defence": 6, "Drug Abuse": null, "Economy": null, "Education": 10, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 12, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 12, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 15, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 17, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 3, "Transport": null, "Tsunami": null, "Unemployment": 85 }, { "date": 20100301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 19, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 10, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 10, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 13, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 18, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 12, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 3, "Transport": null, "Tsunami": null, "Unemployment": 83 }, { "date": 20100401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 16, "Defence": 6, "Drug Abuse": null, "Economy": null, "Education": 10, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 16, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 18, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 4, "Transport": null, "Tsunami": null, "Unemployment": 83 }, { "date": 20100501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 17, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": null, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 15, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 15, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 5, "Transport": null, "Tsunami": null, "Unemployment": 80 }, { "date": 20100601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 20, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 20, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 16, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 15, "Pensions": 11, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 6, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 5, "Transport": null, "Tsunami": null, "Unemployment": 78 }, { "date": 20100701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 15, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 16, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 17, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 5, "Transport": null, "Tsunami": null, "Unemployment": 85 }, { "date": 20100801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 12, "Defence": 6, "Drug Abuse": null, "Economy": null, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 18, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 19, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 9, "Transport": null, "Tsunami": null, "Unemployment": 85 }, { "date": 20100901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 2, "Countryside": null, "Crime": 13, "Defence": 5, "Drug Abuse": null, "Economy": null, "Education": 10, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 22, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 16, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 21, "Pensions": 10, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 7, "Transport": null, "Tsunami": null, "Unemployment": 85 }, { "date": 20101001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 3, "Countryside": null, "Crime": 8, "Defence": 9, "Drug Abuse": null, "Economy": null, "Education": 10, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 7, "Inflation/Prices": 28, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 13, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 20, "Pensions": 8, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 26, "Transport": null, "Tsunami": null, "Unemployment": 79 }, { "date": 20101101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 10, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 8, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 3, "Inflation/Prices": 15, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 9, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 24, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 26, "Transport": null, "Tsunami": null, "Unemployment": 82 }, { "date": 20101201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 12, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 10, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": null, "Inflation/Prices": 14, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 9, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 22, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 36, "Transport": null, "Tsunami": null, "Unemployment": 79 }, { "date": 20110101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 11, "Defence": 6, "Drug Abuse": null, "Economy": null, "Education": 8, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 3, "Inflation/Prices": 18, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 9, "Northern Ireland": 4, "Nuclear Power": null, "Nuclear Weapons": 20, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 40, "Transport": null, "Tsunami": null, "Unemployment": 73 }, { "date": 20110201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 12, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 6, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 3, "Inflation/Prices": 18, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 8, "Northern Ireland": 7, "Nuclear Power": null, "Nuclear Weapons": 22, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 2, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 41, "Transport": null, "Tsunami": null, "Unemployment": 75 }, { "date": 20110301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 10, "Defence": 7, "Drug Abuse": null, "Economy": null, "Education": 7, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 3, "Inflation/Prices": 21, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 10, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 22, "Pensions": 5, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 39, "Transport": null, "Tsunami": null, "Unemployment": 70 }, { "date": 20110401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": null, "Crime": 12, "Defence": 9, "Drug Abuse": null, "Economy": null, "Education": 7, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 11, "Northern Ireland": 6, "Nuclear Power": null, "Nuclear Weapons": 25, "Pensions": 5, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 35, "Transport": null, "Tsunami": null, "Unemployment": 71 }, { "date": 20110501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 15, "Countryside": null, "Crime": 10, "Defence": 8, "Drug Abuse": null, "Economy": null, "Education": 9, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 17, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 10, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 29, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 29, "Transport": null, "Tsunami": null, "Unemployment": 73 }, { "date": 20110601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": null, "Crime": 12, "Defence": 11, "Drug Abuse": null, "Economy": null, "Education": 8, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 16, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 12, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 30, "Pensions": 5, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 6, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 15, "Transport": null, "Tsunami": null, "Unemployment": 76 }, { "date": 20110701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 11, "Countryside": null, "Crime": 11, "Defence": 11, "Drug Abuse": null, "Economy": null, "Education": 9, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 21, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 14, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 29, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 10, "Transport": null, "Tsunami": null, "Unemployment": 81 }, { "date": 20110801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": null, "Crime": 9, "Defence": 13, "Drug Abuse": null, "Economy": null, "Education": 10, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 18, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 15, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 39, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 4, "Transport": null, "Tsunami": null, "Unemployment": 80 }, { "date": 20110901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": null, "Crime": 9, "Defence": 13, "Drug Abuse": null, "Economy": null, "Education": 8, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 14, "Northern Ireland": 6, "Nuclear Power": null, "Nuclear Weapons": 41, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 6, "Transport": null, "Tsunami": null, "Unemployment": 79 }, { "date": 20111001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 5, "Countryside": null, "Crime": 10, "Defence": 14, "Drug Abuse": null, "Economy": null, "Education": 8, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 22, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 26, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 30, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 4, "Transport": null, "Tsunami": null, "Unemployment": 78 }, { "date": 20111101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 16, "Defence": 14, "Drug Abuse": null, "Economy": null, "Education": 8, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 3, "Inflation/Prices": 19, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 17, "Northern Ireland": 4, "Nuclear Power": null, "Nuclear Weapons": 30, "Pensions": 5, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 3, "Transport": null, "Tsunami": null, "Unemployment": 80 }, { "date": 20111201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 15, "Defence": 11, "Drug Abuse": null, "Economy": null, "Education": 9, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 23, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 14, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 22, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 4, "Transport": null, "Tsunami": null, "Unemployment": 82 }, { "date": 20120101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": null, "Crime": 15, "Defence": 13, "Drug Abuse": null, "Economy": null, "Education": 10, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 21, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 11, "Northern Ireland": 2, "Nuclear Power": null, "Nuclear Weapons": 26, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 4, "Transport": null, "Tsunami": null, "Unemployment": 79 }, { "date": 20120201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 8, "Countryside": null, "Crime": 9, "Defence": 15, "Drug Abuse": null, "Economy": null, "Education": 9, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 4, "Inflation/Prices": 21, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 11, "Northern Ireland": 1, "Nuclear Power": null, "Nuclear Weapons": 30, "Pensions": 8, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 5, "Transport": null, "Tsunami": null, "Unemployment": 86 }, { "date": 20120301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": null, "Crime": 9, "Defence": 10, "Drug Abuse": null, "Economy": null, "Education": 11, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 6, "Inflation/Prices": 25, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 10, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 29, "Pensions": 6, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 4, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 8, "Transport": null, "Tsunami": null, "Unemployment": 83 }, { "date": 20120401, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": null, "Crime": 8, "Defence": 8, "Drug Abuse": null, "Economy": null, "Education": 8, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 24, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 6, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": 24, "Pensions": 8, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 3, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 7, "Transport": null, "Tsunami": null, "Unemployment": 83 }, { "date": 20120501, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 6, "Countryside": null, "Crime": 10, "Defence": 14, "Drug Abuse": null, "Economy": null, "Education": 8, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 5, "Inflation/Prices": 29, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 11, "Northern Ireland": 4, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 5, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 6, "Transport": null, "Tsunami": null, "Unemployment": 87 }, { "date": 20120601, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 10, "Defence": 13, "Drug Abuse": null, "Economy": null, "Education": null, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": null, "Inflation/Prices": 34, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": null, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 9, "Transport": null, "Tsunami": null, "Unemployment": 85 }, { "date": 20120701, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 4, "Countryside": null, "Crime": 13, "Defence": 11, "Drug Abuse": null, "Economy": null, "Education": null, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": null, "Inflation/Prices": 32, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": null, "Northern Ireland": 3, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": null, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 11, "Transport": null, "Tsunami": null, "Unemployment": 87 }, { "date": 20120801, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 23, "Countryside": null, "Crime": 32, "Defence": null, "Drug Abuse": null, "Economy": null, "Education": 24, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 15, "Inflation/Prices": 69, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 23, "Northern Ireland": 12, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 14, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 53, "Transport": null, "Tsunami": null, "Unemployment": 51 }, { "date": 20120901, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 15, "Countryside": null, "Crime": 19, "Defence": null, "Drug Abuse": null, "Economy": null, "Education": 18, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 12, "Inflation/Prices": 65, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 12, "Northern Ireland": 11, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 9, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 55, "Transport": null, "Tsunami": null, "Unemployment": 41 }, { "date": 20121001, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 14, "Countryside": null, "Crime": 41, "Defence": null, "Drug Abuse": null, "Economy": null, "Education": 17, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 16, "Inflation/Prices": 68, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 17, "Northern Ireland": 18, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 16, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 56, "Transport": null, "Tsunami": null, "Unemployment": 53 }, { "date": 20121101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": null, "Crime": 14, "Defence": null, "Drug Abuse": null, "Economy": null, "Education": 9, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 66, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 15, "Northern Ireland": 5, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 10, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 73, "Transport": null, "Tsunami": null, "Unemployment": 31 }, { "date": 20121201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 9, "Countryside": null, "Crime": 23, "Defence": null, "Drug Abuse": null, "Economy": null, "Education": 15, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 12, "Inflation/Prices": 63, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 11, "Northern Ireland": 7, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": null, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": 7, "Public Services": null, "Immigration": 27, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 25, "Transport": null, "Tsunami": null, "Unemployment": 55 }, { "date": 20130101, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": null, "Countryside": null, "Crime": null, "Defence": null, "Drug Abuse": null, "Economy": null, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 9, "Inflation/Prices": 64, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 10, "Northern Ireland": 7, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 7, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 16, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 30, "Transport": null, "Tsunami": null, "Unemployment": 50 }, { "date": 20130201, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 10, "Countryside": null, "Crime": 9, "Defence": null, "Drug Abuse": null, "Economy": null, "Education": 5, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 27, "Inflation/Prices": 81, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 2, "Northern Ireland": 6, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 8, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 5, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 18, "Transport": null, "Tsunami": null, "Unemployment": 8 }, { "date": 20130301, "Ageing": null, "Aids": null, "Animal Welfare": null, "Bird Flu": null, "BSE": null, "Coal Pits": null, "EU": 19, "Countryside": null, "Crime": 8, "Defence": null, "Drug Abuse": null, "Economy": null, "Education": 12, "Farming": null, "German Reunification": null, "GM foods": null, "Housing": 23, "Inflation/Prices": 82, "Inner Cities": null, "Local Govt": null, "Low Pay": null, "Morality": null, "NHS": 3, "Northern Ireland": 6, "Nuclear Power": null, "Nuclear Weapons": null, "Pensions": 10, "Fuel Prices": null, "Environment": null, "The Pound": null, "Poverty/Inequality": null, "Privatisation": null, "Public Services": null, "Immigration": 7, "Scots/Welsh Assembly": null, "Taxation": null, "Trade Unions": 22, "Transport": null, "Tsunami": null, "Unemployment": 9 } ];
19.769267
31
0.58359
e3302a8aa8034a8c0c2edf3546541102768ddf05
1,584
js
JavaScript
finalProject651/static/view/index.js
o0baozi0o/Collaborative-Editor
0f5abc10114bca507323ac14aa71a8fa96608bfa
[ "MIT" ]
null
null
null
finalProject651/static/view/index.js
o0baozi0o/Collaborative-Editor
0f5abc10114bca507323ac14aa71a8fa96608bfa
[ "MIT" ]
null
null
null
finalProject651/static/view/index.js
o0baozi0o/Collaborative-Editor
0f5abc10114bca507323ac14aa71a8fa96608bfa
[ "MIT" ]
null
null
null
$(document).ready(function () { $("#vim").click(function () { editor.setOption("keyMap", "vim"); console.log("clicked"); $("#editor").collapse('hide'); } ); $("#emacs").click(function () { editor.setOption("keyMap", "emacs"); $("#editor").collapse('hide'); } ); $("#sublime").click(function () { editor.setOption("keyMap", "sublime"); $("#editor").collapse('hide'); } ); $("#python").click(function () { editor.setOption("mode", "python"); console.log("clicked"); $("#language").collapse('hide'); } ); $("#javascript").click(function () { editor.setOption("mode", "javascript"); console.log("clicked"); $("#language").collapse('hide'); } ); $("#go").click(function () { editor.setOption("mode", "go"); console.log("clicked"); $("#language").collapse('hide'); } ); $("#dracula").click(function () { editor.setOption("theme", "dracula"); console.log("clicked"); $("#theme").collapse('hide'); } ); $("#monokai").click(function () { editor.setOption("theme", "monokai"); console.log("clicked"); $("#theme").collapse('hide'); } ); $("#light").click(function () { editor.setOption("theme", "twilight"); console.log("clicked"); $("#theme").collapse('hide'); } ); sendAppendEntry(); myTimer = setInterval(sendAppendEntry, 1000); });
27.789474
51
0.480429
e3305c068bf3abaef091a462d5793b19c30c1bf4
3,272
js
JavaScript
src/components/FeatureInformation/FeatureInformation.js
candux/trafimage-maps
5f68d9c1ec477ae22eb7a8af465f065c968a4398
[ "MIT" ]
null
null
null
src/components/FeatureInformation/FeatureInformation.js
candux/trafimage-maps
5f68d9c1ec477ae22eb7a8af465f065c968a4398
[ "MIT" ]
null
null
null
src/components/FeatureInformation/FeatureInformation.js
candux/trafimage-maps
5f68d9c1ec477ae22eb7a8af465f065c968a4398
[ "MIT" ]
null
null
null
import React, { useState, useEffect } from 'react'; import { useDispatch } from 'react-redux'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; import Button from '@geops/react-ui/components/Button'; import { MdClose } from 'react-icons/md'; import { IoIosArrowRoundBack, IoIosArrowRoundForward } from 'react-icons/io'; import { setClickedFeatureInfo } from '../../model/app/actions'; import popups from '../../popups'; import './FeatureInformation.scss'; const propTypes = { clickedFeatureInfo: PropTypes.array.isRequired, }; const FeatureInformation = ({ clickedFeatureInfo }) => { const { t } = useTranslation(); const dispatch = useDispatch(); const [featureIndex, setFeatureIndex] = useState(0); useEffect(() => { setFeatureIndex(0); }, [clickedFeatureInfo]); const features = clickedFeatureInfo.map(l => l.features).flat(); const feature = features[featureIndex]; if (!feature) { return null; } const info = clickedFeatureInfo.find(i => i.features.includes(feature)); if (!info || !info.layer) { return null; } const PopupComponent = popups[info.layer.get('popupComponent')]; if (!PopupComponent) { return null; } let pagination = null; const { layer } = info; if (features.length > 1) { pagination = ( <div className="wkp-pagination-wrapper"> <span className="wkp-pagination-button-wrapper"> {featureIndex > 0 ? ( <Button className="wkp-pagination-button" onClick={() => setFeatureIndex(featureIndex - 1)} > <IoIosArrowRoundBack /> </Button> ) : null} </span> {featureIndex + 1} {t('von')} {features.length} <span className="wkp-pagination-button-wrapper"> {featureIndex + 1 < features.length ? ( <Button className="wkp-pagination-button" onClick={() => setFeatureIndex(featureIndex + 1)} > <IoIosArrowRoundForward /> </Button> ) : null} </span> </div> ); } return ( <div className="wkp-feature-information"> <React.Suspense fallback="...loading"> <div className="wkp-feature-information-header"> <span> {PopupComponent && PopupComponent.renderTitle && feature ? PopupComponent.renderTitle(feature) : layer && layer.getName() && t(layer.getName())} </span> <Button className="wkp-close-bt" title={t('Popup schliessen')} onClick={() => { dispatch(setClickedFeatureInfo()); if (PopupComponent.onCloseBtClick) { PopupComponent.onCloseBtClick(); } }} > <MdClose focusable={false} alt={t('Popup schliessen')} /> </Button> </div> <div className="wkp-feature-information-body"> <PopupComponent key={info.layer.getKey()} feature={features[featureIndex]} /> {pagination} </div> </React.Suspense> </div> ); }; FeatureInformation.propTypes = propTypes; export default React.memo(FeatureInformation);
30.018349
77
0.582824
e330918ed844ccdc94b57c7acc741ce4e6b90758
2,915
js
JavaScript
public/javascripts/uploadBar_mm.js
samperid/Neptune
21f14264913cbdcd03df2c9045215a90a6913d26
[ "BSD-2-Clause" ]
1
2017-12-15T04:37:56.000Z
2017-12-15T04:37:56.000Z
public/javascripts/uploadBar_mm.js
celineshaw/Neptune
21f14264913cbdcd03df2c9045215a90a6913d26
[ "BSD-2-Clause" ]
null
null
null
public/javascripts/uploadBar_mm.js
celineshaw/Neptune
21f14264913cbdcd03df2c9045215a90a6913d26
[ "BSD-2-Clause" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////////////////////////////////// // The following uploads SHOULD have their contents saved to a LOCAL STORAGE ARRAY // // x LFR_start --> localStorage.LFR_start_STRING; // // x LFR --> localStorage.LFR_STRING; // // x MINT --> localStorage.MINT_STRING; // // x UCF --> localStorage.UCF_STRING // // // // o = Needs to be Implemented x = Implemented and Working // /////////////////////////////////////////////////////////////////////////////////////////////////////////// { $(document).ready(function () { $('#uploadLFR').submit(function () { $(this).ajaxSubmit({ error: function (xhr) { status('Error: ' + xhr.status); }, success: function (response) { toastr.success('Your LFR File was uploaded successfully!'); $.get('../uploads/Design/myLFR.txt',function(data) { localStorage.LFR_STRING = JSON.stringify(data.split("\n")); }); } }); return false; }); $('#uploadUCF').submit(function () { //$("#statusUCF").empty().text("File is uploading..."); $(this).ajaxSubmit({ error: function (xhr) { status('Error: ' + xhr.status); }, success: function (response) { toastr.success('Your UCF File was uploaded successfully!'); $.get('../uploads/Design/myUCF.json',function(data) { localStorage.UCF_STRING = JSON.stringify(data.split("\n")); }); } }); return false; }); $('#uploadMINT').submit(function () { $(this).ajaxSubmit({ error: function (xhr) { status('Error: ' + xhr.status); }, success: function (response) { toastr.success('Your MINT File was uploaded successfully!'); $.get('../uploads/Design/myMINT.txt',function(data) { localStorage.MINT_STRING = JSON.stringify(data.split("\n")); }); } }); return false; }); }); }
37.371795
128
0.340309
e33166d50ad9a5061f066e4427ec4a8389204484
3,545
js
JavaScript
src/menu-items/dashboard.js
jimmy6727/lc-5-draft
59a60587dd427d0eb3816d8e3c38079d044df3a9
[ "MIT" ]
null
null
null
src/menu-items/dashboard.js
jimmy6727/lc-5-draft
59a60587dd427d0eb3816d8e3c38079d044df3a9
[ "MIT" ]
null
null
null
src/menu-items/dashboard.js
jimmy6727/lc-5-draft
59a60587dd427d0eb3816d8e3c38079d044df3a9
[ "MIT" ]
2
2021-09-23T02:02:14.000Z
2021-09-23T02:33:18.000Z
// assets import { IconDashboard, IconDeviceAnalytics } from '@tabler/icons'; import EqualizerIcon from '@material-ui/icons/Equalizer'; import HomeWorkIcon from '@material-ui/icons/HomeWork'; import PersonIcon from '@material-ui/icons/Person'; import PeopleAltIcon from '@material-ui/icons/PeopleAlt'; import CommunitiesService from '../utils/CommunitiesService'; import SettingsIcon from '@material-ui/icons/Settings'; import userGlobals from '../utils/userGlobals'; // constant const icons = { IconDashboard: IconDashboard, EqualizerIcon: EqualizerIcon, HomeWorkIcon:HomeWorkIcon, SettingsIcon:SettingsIcon, PersonIcon:PersonIcon, PeopleAltIcon:PeopleAltIcon, IconDeviceAnalytics }; //-----------------------|| DASHBOARD MENU ITEMS ||-----------------------// const community_sidemenu_choices = [] CommunitiesService.forAccount(userGlobals.account_sfid) .then(res => { {res.data.data.map((community) => { console.log(community.address__c) community_sidemenu_choices.push({ id: 'community-'+community.sfid, title: community.name, type: 'item', url: '/community/'+community.sfid, target: true, breadcrumbs: false }) })} }) export const dashboard = { id: 'dashboard', type: 'group', children: [ { id: 'overview', title: 'Overview', type: 'item', url: '/overview', icon: icons['EqualizerIcon'], breadcrumbs: false }, { id: 'communities', title: 'Communities', type: 'collapse', url: '/communities', icon: icons['HomeWorkIcon'], children: community_sidemenu_choices, breadcrumbs: false }, // { // id: 'campaign', // title: 'Campaign Home', // type: 'item', // url: '/campaign/1', // icon: icons['PersonIcon'], // breadcrumbs: false // }, { id: 'residents', title: 'Residents', type: 'item', url: '/residents', icon: icons['PersonIcon'], breadcrumbs: false }, { id: 'team', title: 'Team', type: 'item', url: '/team', icon: icons['PeopleAltIcon'], breadcrumbs: false }, { id: 'settings', title: 'Settings', type: 'collapse', url: '/settings', icon: icons['SettingsIcon'], children: [ { id: 'general', title: 'General', type: 'item', url: '/settings/general', target: true, breadcrumbs: false }, { id: 'statements', title: 'Statements', type: 'item', url: '/settings/statements', target: true, breadcrumbs: false }, { id: 'PaymentMethods', title: 'Payment Methods', type: 'item', url: '/settings/payment_methods', target: true, breadcrumbs: false } ], breadcrumbs: false }, ] };
29.297521
76
0.471086
e331b38bc695c6699242d7d93f3aad810035f83f
12,876
js
JavaScript
lib/s3wrapper.js
alykoshin/mini-s3
1a0892e39a5b70b5dce3864e57091980b84dc996
[ "MIT" ]
null
null
null
lib/s3wrapper.js
alykoshin/mini-s3
1a0892e39a5b70b5dce3864e57091980b84dc996
[ "MIT" ]
4
2020-08-09T19:06:24.000Z
2021-05-11T10:05:24.000Z
lib/s3wrapper.js
alykoshin/mini-s3
1a0892e39a5b70b5dce3864e57091980b84dc996
[ "MIT" ]
null
null
null
const fs = require('fs'); const path = require('path'); const util = require('util'); const _ = require('lodash'); const AWS = require('aws-sdk'); const slugify = require('slugify'); const debug = require('debug')('mini-s3'); const async = require('async'); const {sanitizeArray,peek} = require('@utilities/array'); const {asyncForEach} = require('@utilities/async'); const {dirListFilenames} = require('@utilities/fs'); const LIST_OBJECTS_REQUEST_MAX_KEYS = 1000; const MAX_SIM_UPLOADS = 20; const ensureProp = (obj, prop) => { if (typeof obj[prop]==='undefined' || obj[prop]===null) throw new Error(`Expecting object to have property "${prop}"`); return true; }; class S3wrapper { constructor (options) { ensureProp(options, 'accessKeyId'); ensureProp(options, 'secretAccessKey'); this.options = options; this.s3 = new AWS.S3({ accessKeyId: this.options.accessKeyId, secretAccessKey: this.options.secretAccessKey, }); } _filenameToKey (fname) { fname = path.basename(fname); //fname = fname.replace(/[\/\\]/g, '-'); // replace slashes and backslashes, otherwise they'll be removed const key = slugify(fname); debug(`filenameToKey: ${key}`); //console.log('key:', encodeURIComponent(fname)); return key; }; _listBuckets (params, cb) { debug('_listBuckets'); return this.s3.listBuckets((err, data) => { if (err) { console.error('_listBuckets: ERROR:', err); return cb && cb(err); } //return console.log('SUCCESS', data.Buckets); const buckets = data.Buckets; const names = buckets.map(b => b[ 'Name' ]); //console.log('SUCCESS', data); debug('_listBuckets: SUCCESS:', names); return cb && cb(null, names, data); }); }; async listBuckets (params, cb) { return this._wrapAsyncSafe(this._listBuckets, params, cb); }; __listObjectsRecursive({ prefix, bucket, marker=undefined, result=[] }, cb) { const params = { Prefix: prefix, Bucket: bucket, Marker: marker, // Sets the maximum number of keys returned in the response body. // If you want to retrieve fewer than the default 1,000 keys, you can add this to your request. MaxKeys: LIST_OBJECTS_REQUEST_MAX_KEYS, }; debug('__listObjects: params:', params); return this.s3.listObjects(params, (err, data={}) => { if (err) { console.error('_listObjects: ERROR:', err); return cb && cb(err); } const isTruncated = data.IsTruncated; // When response is truncated (the IsTruncated element value in the response is true), you can use the key name in this field as marker in the subsequent request to get next set of objects. Amazon S3 lists objects in alphabetical order // Note: This element is returned only if you have delimiter request parameter specified. If response does not include the NextMaker and it is truncated, you can use the value of the last Key in the response as the marker in the subsequent request to get the next set of object keys. const nextMarker = data.NextMarker; const contents = data.Contents; const keys = contents && contents.map(b => b[ 'Key' ]); const nextKey = peek(keys); debug('__listObjects: isTruncated:', isTruncated, ', nextMarker:', nextMarker, ', nextMarker:', nextMarker, ', keys:', keys); result = result.concat(keys); if (isTruncated) { return this.__listObjectsRecursive({ prefix, bucket, marker: nextKey, result }, cb) } else { //const keys = contents && contents.map(b => b[ 'Key' ]); debug('__listObjects: SUCCESS: result:', result); // successful response return cb && cb(null, result, data); } }); } __listObjects ({bucket}, cb) { return this.__listObjectsRecursive({ bucket }, cb) }; _listKeys (params, cb) { return this.__listObjects(params, (err, keys, data) => cb(err, keys)); } _listNames (params, cb) { return this._listKeys(params, cb); } _listObjects (params, cb) { return this.__listObjects(params, (err, keys, data) => cb(err, data)); } async listObjects (params, cb) { return this._wrapAsyncSafe(this._listObjects, params, cb); }; async listKeys (params, cb) { return this._wrapAsyncSafe(this._listKeys, params, cb); }; listNames (params, cb) { return this.listKeys(params, cb); } //_wrapAsyncSafe (fn, ...args) { // //const cb = // return //} _uploadOne ({ filename, bucket, remoteDir='' }, cb) { debug(`_uploadOne: filenames: "${filename}" bucketName: "${bucket}"`); const key = this._filenameToKey(filename); const body = fs.createReadStream(filename) //.pipe(zlib.createGzip()) ; const fullKey = remoteDir ? remoteDir + '/' + key : key; const params = { Body: body, Key: fullKey, Bucket: bucket, }; const options = { //partSize: 1 * 1024 * 1024, // partSize must be greater than 5242880 //queueSize: 1, }; //console.log('_upload: params:', params, '; options:', options); return new Promise((resolve, reject) => { this.s3.upload(params, options) .on('httpUploadProgress', (evt) => { debug('_upload: on(httpUploadProgress):', evt); }) .send((err, data) => { if (err) { console.error('_upload: send: ERROR:', err); reject(err); return cb && cb(err); } debug('_upload: send: SUCCESS:', data); resolve(data); return cb && cb(null, data); }); }); }; _getContentOne({ filename, bucket }, cb) { debug(`_getContentOne: filenames: "${filename}" bucketName: "${bucket}"`); const key = this._filenameToKey(filename); //const body = fs.createReadStream(filename) // //.pipe(zlib.createGzip()) //; const params = { //Body: body, Bucket: bucket, Key: key, }; //const options = { // //partSize: 1 * 1024 * 1024, // partSize must be greater than 5242880 // //queueSize: 1, //}; //console.log('_upload: params:', params, '; options:', options); return this.s3.getObject(params, function(err, data) { //console.log('>>>>>>>>>>>>>> _getContentOne cb', err,data) if (err) { console.error('_getContentOne: send: ERROR:', err); return cb && cb(err); } debug('_getContentOne: send: SUCCESS:', data); const encoding = 'utf8'; const bodyStr = data.Body ? data.Body.toString(encoding) : ''; debug('_getContentOne: send: SUCCESS: bodyStr', bodyStr); return cb && cb(null, bodyStr, data); /* data = { AcceptRanges: "bytes", ContentLength: 3191, ContentType: "image/jpeg", ETag: "\"6805f2cfc46c0f04559748bb039d69ae\"", LastModified: <Date Representation>, Metadata: { }, TagCount: 2, VersionId: "null" } */ }); }; _getContent({ filenames, bucket }, cb) { //fnames = sanitizeArray(fnames); filenames = sanitizeArray(filenames); debug(`_getContent: filenames: [${filenames.join(',')}], bucketName: "${bucket}"`); return async.mapLimit( filenames, MAX_SIM_UPLOADS, (filename, callback) => this._getContentOne({filename, bucket}, callback), cb // A callback which is called after all the iteratee functions have finished. Result will be either true or false depending on the values of the async tests. Invoked with (err, result). //(...args) =>{ // console.log('_getContent: cb:', ...args); // cb(...args); //} ); } ////async getObject(params, cb) { //// //console.log('>>>>>>>>>>>>>>', params) //// return this._wrapAsyncSafe(this._getObject, params, cb); ////}; // //async getContentOne(params, cb) { // return this._wrapAsyncSafe(this._getContentOne, params, cb); //}; async getContent(params, cb) { return this._wrapAsyncSafe(this._getContent, params, cb); }; _upload({ filenames, bucket }, cb) { //fnames = sanitizeArray(fnames); filenames = sanitizeArray(filenames); debug(`_upload: filenames: [${filenames.join(',')}], bucketName: "${bucket}"`); return async.mapLimit( filenames, MAX_SIM_UPLOADS, (filename, callback) => this._uploadOne({filename, bucket}, callback), cb // A callback which is called after all the iteratee functions have finished. Result will be either true or false depending on the values of the async tests. Invoked with (err, result). ); } async upload (params, cb) { return this._wrapAsyncSafe(this._upload, params, cb); }; //_listLocalFiles(localDir) { // let list = fs.readdirSync(localDir, { withFileTypes: true }); // list = list // .filter(dirent => dirent.isFile()) // .map(dirent => path.join( localDir, dirent.name )) // ; // debug('_listLocalFiles:', list); // return list; //} async uploadDir ({localDir, bucket}, cb) { debug(`uploadDir(): localDir: ${localDir}, bucket: ${bucket}`); //const filenames = this._listLocalFiles(localDir); const filenames = dirListFilenames(localDir, {addPath:'joinBase'}); debug(`uploadDir(): filenames: [${filenames.join(',')}]`); return await this.upload({ filenames, bucket }, cb); } _deleteObject ({ bucket, key }, cb) { const params = { Bucket: bucket, Key: key, }; debug('_deleteObject(): params:', params); return this.s3.deleteObject(params, (err, data) => { if (err) { console.error('_deleteObject(): ERROR:', err); return cb && cb(err); } debug('_deleteObject(): SUCCESS:', data); this.result = data; return cb && cb(null, this); }); }; _deleteObjects({ bucket, keys }, cb) { keys = sanitizeArray(keys); debug('_deleteObjects(): keys:', keys); if (keys.length === 0) { debug('_deleteObjects(): keys.length === 0'); return cb && cb(null, this); } const objects = keys.map(key => ({ Key: key })); // extract filenames const params = { Bucket: bucket, Delete: { Objects: objects, Quiet: false, } }; debug('_deleteObjects(): params:', params); return this.s3.deleteObjects(params, (err, data) => { if (err) { console.error('_deleteObjects(): ERROR:', err); return cb && cb(err); } debug('_deleteObjects(): SUCCESS:', data); this.result = data; return cb && cb(null, this); }); }; _wrapAsyncSafe(fn, params, cb) { return cb ? fn.call(this, params, cb) //: util.promisify(fn.bind(this))(params) : new Promise((resolve, reject) => fn.call(this, params, (...cbArgs) => { if (cbArgs[0]) { return reject(cbArgs[0]); } else { resolve(cbArgs[1]); } })) ; } async deleteObject (params, cb) { return this._wrapAsyncSafe(this._deleteObject, params, cb); }; async deleteObjects (params, cb) { return this._wrapAsyncSafe(this._deleteObjects, params, cb); }; async deleteFile ({ bucket, filename }, cb) { const key = this._filenameToKey(filename); return await this.deleteObject(bucket, key, cb); }; async deleteFiles ({ bucket, filenames }, cb) { const keys = sanitizeArray(filenames) .map(f => this._filenameToKey(f)) ; return this.deleteObjects({ bucket, keys }); //return asyncForEach( // filenames, // async (filename) => await this.deleteFile.call(this, { bucket, filename }, cb) //); } async deleteAll({ bucket }) { const allKeys = await this.listKeys({ bucket }); debug('deleteAll(): allKeys:', allKeys); await this.deleteObjects({ bucket, keys: allKeys }); const keysFinal = await this.listKeys({ bucket }); if (keysFinal.length !== 0) throw new Error('deleteAll: keysFinal.length !== 0'); debug('deleteAll: SUCCESS'); return allKeys; } async deleteFiltered({ bucket, filter }) { debug('deleteFiltered(): filter:', filter); const allKeys = await this.listKeys({ bucket }); debug('deleteFiltered(): allKeys:', allKeys); const filteredKeys = _.filter(allKeys, filter); debug('deleteFiltered(): filteredKeys:', allKeys); await this.deleteObjects({ bucket, keys: filteredKeys }); const keysFinal = await this.listKeys({ bucket }); if (keysFinal.length !== allKeys.length - filteredKeys.length) { throw new Error(`deleteFiltered: keysFinal.length: ${keysFinal.length}`+ `, allKeys.length: ${allKeys.length}`+ `, filteredKeys.length: ${filteredKeys.length}`); } debug('deleteFiltered: SUCCESS'); return allKeys; } } module.exports = S3wrapper;
32.029851
289
0.605312
e33287c5e4ffd0a3d074786e2088538b88cd6222
1,028
js
JavaScript
examples/samek_plus.js
ionous/angular-hsm
7bcde5e829620262afa4c9985c3cfe964e689395
[ "MIT" ]
7
2016-06-02T12:02:46.000Z
2021-12-27T08:17:05.000Z
examples/samek_plus.js
ionous/angular-hsm
7bcde5e829620262afa4c9985c3cfe964e689395
[ "MIT" ]
2
2016-09-26T23:02:42.000Z
2016-09-26T23:06:42.000Z
examples/samek_plus.js
ionous/angular-hsm
7bcde5e829620262afa4c9985c3cfe964e689395
[ "MIT" ]
null
null
null
'use strict'; /** */ angular.module('hsm') .controller('SamekPlus', function($log, $scope) { var plus = this; plus.value = 0; plus.set = function(v) { if (plus.value != v) { $log.warn("changing value", v); plus.value = v; } return v; }; plus.click = function(evt) { $log.info("click", evt); $scope.machine.emit(evt); }; }) .directive('highlighter', function($interval) { return { restrict: 'A', scope: { model: '=highlighter' }, link: function(scope, element) { var ready, promise; scope.$watch('model', function(nv) { ready = false; if (!promise) { element.addClass('highlight'); promise = $interval(function() { if (!ready) { ready = true; } else { element.removeClass('highlight'); $interval.cancel(promise); promise = false; } }, 600); } }); } }; });
20.56
47
0.472763
e3333f5a40c512b8eaee74b1f9317a7bc0fa20df
6,107
js
JavaScript
script.js
Rakib-Mahmud/Image-Filter-JS
98b40456b6b45e171a34624214b8002aad85b9d8
[ "MIT" ]
null
null
null
script.js
Rakib-Mahmud/Image-Filter-JS
98b40456b6b45e171a34624214b8002aad85b9d8
[ "MIT" ]
null
null
null
script.js
Rakib-Mahmud/Image-Filter-JS
98b40456b6b45e171a34624214b8002aad85b9d8
[ "MIT" ]
null
null
null
var fgimg=null; var gray=null; var red=null; var rain=null; var purple=null; var blur=null; var height=null; var width=null; function upload1(){ var img=document.getElementById("fg"); fgimg=new SimpleImage(img); var can=document.getElementById("can1"); fgimg.drawTo(can); red=null; blur=null;gray=null;rain=null;purple=null; height=fgimg.getHeight(); width=fgimg.getWidth(); } function doGray(){ if(isImageLoaded()&&gray==null){ gray=new SimpleImage(fgimg); for(var pix of gray.values()){ var avg=(pix.getRed()+pix.getGreen()+pix.getBlue())/3; pix.setRed(avg); pix.setGreen(avg); pix.setBlue(avg); } var can=document.getElementById('can1'); gray.drawTo(can);} else if(gray!=null){ var can=document.getElementById('can1'); gray.drawTo(can); } else{ alert('Image Is Not Loaded'); } } function doRed(){ if(isImageLoaded()&&red==null){ red=new SimpleImage(fgimg); for(var pix of red.values()){ var avg=(pix.getRed()+pix.getGreen()+pix.getBlue())/3; if(avg<128){ pix.setRed(avg*2); pix.setGreen(0); pix.setBlue(0); } else{ pix.setRed(255); pix.setGreen((avg*2)-255); pix.setBlue((avg*2)-255); } } var can=document.getElementById('can1'); red.drawTo(can);} else if(red!=null){ var can=document.getElementById('can1'); red.drawTo(can); } else{ alert('Image Is Not Loaded'); } } function doPurple(){ if(isImageLoaded()&&purple==null){ purple=new SimpleImage(fgimg); for(var pix of purple.values()){ var avg=(pix.getRed()+pix.getGreen()+pix.getBlue())/3; if(avg<128){ pix.setRed((147/127.5)*avg); pix.setGreen((112/127.5)*avg); pix.setBlue((219/127.5)*avg); } else{ pix.setRed((2-147/127.5)*avg + 2*147 -255); pix.setGreen((2-112/127.5)*avg + 2*112-255); pix.setBlue((2-219/127.5)*avg + 2*219-255); } } var can=document.getElementById('can1'); purple.drawTo(can);} else if(purple!=null){ var can=document.getElementById('can1'); purple.drawTo(can); } else{ alert('Image Is Not Loaded'); } } function doRBow(){ if(isImageLoaded()&&rain==null){ rain=new SimpleImage(fgimg); var unit=rain.getHeight()/5; for(var pix of rain.values()){ var avg=(pix.getRed()+pix.getGreen()+pix.getBlue())/3; if(pix.getY()<=unit){ if(avg<128){ pix.setRed(avg*2); pix.setGreen(0); pix.setBlue(0); } else{ pix.setRed(255); pix.setGreen((avg*2)-255); pix.setBlue((avg*2)-255); }} else if(pix.getY()>unit && pix.getY()<=2*unit){ if(avg<128){ pix.setRed(avg*2); pix.setGreen(0.8*avg); pix.setBlue(0); } else{ pix.setRed(255); pix.setGreen((avg*1.2)-51); pix.setBlue((avg*2)-255); }} else if(pix.getY()>2*unit && pix.getY()<=3*unit){ if(avg<128){ pix.setRed(avg*2); pix.setGreen(2*avg); pix.setBlue(0); } else{ pix.setRed(255); pix.setGreen(255); pix.setBlue((avg*2)-255); }} else if(pix.getY()>3*unit && pix.getY()<=4*unit){ if(avg<128){ pix.setRed(0); pix.setGreen(2*avg); pix.setBlue(0); } else{ pix.setRed((2*avg)-255); pix.setGreen(255); pix.setBlue((avg*2)-255); }} else{ if(avg<128){ pix.setRed(1.6*avg); pix.setGreen(0); pix.setBlue(1.6*avg); } else{ pix.setRed((0.4*avg)+153); pix.setGreen((2*avg)-255); pix.setBlue((0.4*avg)+153); } } } var can=document.getElementById('can1'); rain.drawTo(can);} else if(rain!=null){ var can=document.getElementById('can1'); rain.drawTo(can); } else{ alert('Image Is Not Loaded'); } } function doBlur(){ var p; if(isImageLoaded() && blur==null){ blur=new SimpleImage(fgimg.getWidth(),fgimg.getHeight()); for(var pix of fgimg.values()){ if(Math.random()<0.5){ blur.setPixel(pix.getX(),pix.getY(), pix); } else{ var ofsetX=pix.getX()+Math.random()*200-200/ 2; var ofsetY=pix.getY()+Math.random()*200-200/ 2; if((ofsetX<0||ofsetX>=fgimg.getWidth()) || (ofsetY<0||ofsetY>=fgimg.getHeight())){ blur.setPixel(pix.getX(),pix.getY(), pix); } else{ var p=fgimg.getPixel(ofsetX,ofsetY); blur.setPixel(pix.getX(),pix.getY(),p); } }} var can=document.getElementById('can1'); blur.drawTo(can);} else if(blur!=null){ var can=document.getElementById('can1'); blur.drawTo(can); } else{ alert('Image Is Not Loaded'); } } function ensureInImage (coordinate, size) { // coordinate cannot be negative if (coordinate < 0) { return 0; } // coordinate must be in range [0 .. size-1] if (coordinate >= size) { return size - 1; } return coordinate; } function getPixelNearby (image, x, y, diameter) { var dx = Math.random() * diameter - diameter / 2; var dy = Math.random() * diameter - diameter / 2; var nx = ensureInImage(x + dx, image.getWidth()); var ny = ensureInImage(y + dy, image.getHeight()); return image.getPixel(nx, ny); } /*function doBlur(){ if(isImageLoaded() && blur==null){ blur=new SimpleImage(fgimg.getWidth(),fgimg.getHeight()); for (var pixel of fgimg.values()) { var x = pixel.getX(); var y = pixel.getY(); if (Math.random() > 0.5) { var other = getPixelNearby(fgimg, x, y, 200); blur.setPixel(x, y, other); } else { blur.setPixel(x, y, pixel); } } can=document.getElementById('can1'); blur.drawTo(can);} else if(blur!=null){ var can=document.getElementById('can1'); blur.drawTo(can); } else{ alert('Image Is Not Loaded'); } } */ function reset(){ can=document.getElementById("can1"); fgimg.drawTo(can); } function isImageLoaded(){ if(fgimg==null && !fgimg.complete){ return false; } else{ return true; } } function cler(){ var can=document.getElementById("can1"); var ctx=can.getContext("2d"); ctx.clearRect(0,0,can.width,can.height); document.getElementById("fg").value=""; fgimg=null; gray=null; red=null; rain=null; purple=null; blur=null; }
23.220532
104
0.601441
e334aaa502941e3d23e4b4fe93d2bb51ac0590ef
247
js
JavaScript
public/im/js/libs/nim_server_conf.js
hezitai001202/ClassBro-Teacher
266070e0108ed1ab57a6b8e92cdeae1586d4a3e8
[ "MIT" ]
null
null
null
public/im/js/libs/nim_server_conf.js
hezitai001202/ClassBro-Teacher
266070e0108ed1ab57a6b8e92cdeae1586d4a3e8
[ "MIT" ]
null
null
null
public/im/js/libs/nim_server_conf.js
hezitai001202/ClassBro-Teacher
266070e0108ed1ab57a6b8e92cdeae1586d4a3e8
[ "MIT" ]
null
null
null
window.privateConf = {"lbs_web": "http://127.0.0.1/lbs/webconf.jsp","link_ssl_web": false,"nos_uploader_web": "","https_enabled": false,"nos_downloader": "127.0.0.1/{bucket}/{object}","nos_accelerate": "","nos_accelerate_host": "","nt_server": ""}
247
247
0.696356
e335bcb856dfe23d777e39b46a5540ee8cdd14d7
4,060
js
JavaScript
src/views/dashboard/wallet/main/Money.js
J-Gambler/wallet
bc214e7dc69f4eed80a2957f33862f180b2233ff
[ "MIT" ]
null
null
null
src/views/dashboard/wallet/main/Money.js
J-Gambler/wallet
bc214e7dc69f4eed80a2957f33862f180b2233ff
[ "MIT" ]
null
null
null
src/views/dashboard/wallet/main/Money.js
J-Gambler/wallet
bc214e7dc69f4eed80a2957f33862f180b2233ff
[ "MIT" ]
null
null
null
import { useState, useEffect } from 'react'; import { Grid, Typography, Dialog, Box, Divider, Button, Link, CardHeader, IconButton } from '@mui/material'; import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew'; import IdentifyImage from 'assets/images/background/image 45.png'; import Setting from './Setting'; const Money = ({ open, onClose}) => { const [openSetting, setOpenSetting] = useState(false); const handleClose = () => { onClose(true); } const handleClickSetting = () => { setOpenSetting(true); }; const handleCloseSetting = (value) => { setOpenSetting(false); }; return ( <> <Dialog open={open} onClose={handleClose} maxWidth="md" > <Typography component="div" sx={{ bgcolor: 'white', p: '2rem', pt: '2rem', pb: '3rem', width: '400px', }} > <Typography component="div" sx={{ alignItems: 'center', display: 'flex' }}> <ArrowBackIosNewIcon /> </Typography> <Typography component="div" sx={{ pt: '2rem', gap: '0.5rem', pb: '1.5rem', display: 'flex', flexDirection: 'column' }} > <Typography sx={{ bgcolor: '#F2F6FA', p: '1rem', pl: '2rem', borderRadius: '.75rem', }} variant="h4" > U.S. Dollar (USD) </Typography> <Typography sx={{ bgcolor: '#F2F6FA', p: '1rem', pl: '2rem', borderRadius: '.75rem', }} variant="h4" > Japanese Yen (JPY) </Typography> <Typography sx={{ bgcolor: '#F2F6FA', p: '1rem', pl: '2rem', borderRadius: '.75rem', }} variant="h4" > Euro (EUR) </Typography> <Typography sx={{ bgcolor: '#F2F6FA', p: '1rem', pl: '2rem', borderRadius: '.75rem', }} variant="h4" > Korean Won (KRW) </Typography> </Typography> <Typography> <Button onClick={handleClickSetting} sx={{ bgcolor: '#7C66EB', p: '.875rem', color: 'white', fontSize: '1rem', width: '100%' }}>Done</Button> </Typography> </Typography> </Dialog> <Setting open={openSetting} onClose={handleCloseSetting} /> </> ); } export default Money;
32.48
165
0.303695
e335e52967a2008557cd8bd47178dac0b6abf2ef
1,350
js
JavaScript
back/controllers/rank.controller.js
Fredburtons/battle
b118c60f72847ad3dc3bd628588d18f79ce042f7
[ "BSD-3-Clause" ]
null
null
null
back/controllers/rank.controller.js
Fredburtons/battle
b118c60f72847ad3dc3bd628588d18f79ce042f7
[ "BSD-3-Clause" ]
null
null
null
back/controllers/rank.controller.js
Fredburtons/battle
b118c60f72847ad3dc3bd628588d18f79ce042f7
[ "BSD-3-Clause" ]
null
null
null
const express = require('express'); const router = express.Router(); const log = require('../logger'); const rankRepository = new (require("../repositories/rank.repository"))(); /** * @api {get} api/ranks/ Request information about all ranks * @apiName getRanks * @apiGroup Ranks * * @apiSuccess {Integer} id Rank Id. * @apiSuccess {String} name Rank name. * @apiSuccess {Number} minScore minimal score to achieve rank. * @apiSuccess {String} image Rank image. */ router.get('/', (req, res) => { rankRepository.findAll() .then(ranks => { res.json(ranks); }) .catch(error => { log.error(error); res.json(error); }); }); /** * @api {get} api/ranks/:score/next Request information about next rank by score * @apiName getNextRank * @apiGroup Ranks * * @apiSuccess {Integer} id Rank Id. * @apiSuccess {String} name Rank name. * @apiSuccess {Number} minScore minimal score to achieve rank. * @apiSuccess {String} image Rank image. */ router.get('/:score(\\d+)/next', (req, res) => { rankRepository.findAll() .then(ranks => { for(let i in ranks) { if(ranks[i].minScore > req.params.score) { return res.json(ranks[i]); } } res.json({}); }) .catch(error => { log.error(error); res.json(error); }); }); module.exports = router;
24.107143
80
0.611852
e33690d8c6fb3bdea3434b008ef7a8ab17df6409
175
js
JavaScript
packages/babel-preset-expo/lazy-imports-blacklist.js
Jinksi/expo
9f9c25037d89f9cd7b64cba6328edc32330f669b
[ "Apache-2.0", "MIT" ]
456
2020-09-07T05:26:22.000Z
2022-03-29T06:43:13.000Z
packages/babel-preset-expo/lazy-imports-blacklist.js
Jinksi/expo
9f9c25037d89f9cd7b64cba6328edc32330f669b
[ "Apache-2.0", "MIT" ]
34
2020-08-28T16:35:30.000Z
2022-02-19T06:14:02.000Z
packages/babel-preset-expo/lazy-imports-blacklist.js
Jinksi/expo
9f9c25037d89f9cd7b64cba6328edc32330f669b
[ "Apache-2.0", "MIT" ]
228
2020-10-07T17:15:26.000Z
2022-03-25T18:09:28.000Z
/** * These expo packages may have side-effects and should not be lazy-initialized. */ 'use strict'; module.exports = new Set(['expo', 'expo-asset', 'expo-task-manager']);
25
80
0.685714
e336b2e9b431e3daa3a347831e8d4a545ee1e4b5
2,434
js
JavaScript
src/www/ios/ws-polyfill.js
toddtarsi/cordova-plugin-wkwebview-native-ws
f9f92a7b3b1552f5d7364e25aeec105dc039cc04
[ "UPL-1.0" ]
null
null
null
src/www/ios/ws-polyfill.js
toddtarsi/cordova-plugin-wkwebview-native-ws
f9f92a7b3b1552f5d7364e25aeec105dc039cc04
[ "UPL-1.0" ]
null
null
null
src/www/ios/ws-polyfill.js
toddtarsi/cordova-plugin-wkwebview-native-ws
f9f92a7b3b1552f5d7364e25aeec105dc039cc04
[ "UPL-1.0" ]
null
null
null
/* * Copyright (c) 2018 Oracle and/or its affiliates. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this * software, associated documentation and/or data (collectively the "Software"), free of charge and under any and * all copyright rights in the Software, and any and all patent rights owned or freely licensable by each * licensor hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, * or (ii) the Larger Works (as defined below), to deal in both * * * (a) the Software, and * * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software * (each a “Larger Work” to which the Software is contributed by such licensors), * * without restriction, including without limitation the rights to copy, create derivative works of, display, * perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and * have sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other * terms. * * This license is subject to the following condition: * * The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL * must be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ 'use strict'; (function () { var exec = require('cordova/exec'); const _WebSocket = window.WebSocket; function WebSocket(url, protocols, options) { let observable = {}; exec( function onCallback(a, b, c) { console.log('websocket update', a, b, c); }, function onError(error) { throw error; }, "CDVWKWebviewNativeWS", "open", { url, protocols, options }, ); return observable; } window.WebSocket = WebSocket; })();
41.254237
113
0.721446
e3375bf278c8e6d915c8b530b97aeedf1f701082
178
js
JavaScript
Doc/html/class_in_control_1_1_optional_int16_property_drawer.js
aFranchon/FrancoisSauce
8d1933508a2cfb01dcfeb1307b273c30fe16d1fc
[ "MIT" ]
4
2020-09-03T13:39:51.000Z
2022-02-07T18:53:47.000Z
Doc/html/class_in_control_1_1_optional_int16_property_drawer.js
aFranchon/FrancoisSauce
8d1933508a2cfb01dcfeb1307b273c30fe16d1fc
[ "MIT" ]
24
2020-08-05T19:19:46.000Z
2020-09-03T22:33:12.000Z
Doc/html/class_in_control_1_1_optional_int16_property_drawer.js
aFranchon/FrancoisSauce
8d1933508a2cfb01dcfeb1307b273c30fe16d1fc
[ "MIT" ]
null
null
null
var class_in_control_1_1_optional_int16_property_drawer = [ [ "OnGUI", "class_in_control_1_1_optional_int16_property_drawer.html#a9d6412ad0b0b554ab782e0fd26bafb21", null ] ];
44.5
115
0.848315
e338ab15273779cc09a7652adbedc93247f1e944
843
js
JavaScript
resources/js/router.js
amin-alzubair/company_contacts
2b63800ddc899074fec3d4a08f11d57282cba3c2
[ "MIT" ]
null
null
null
resources/js/router.js
amin-alzubair/company_contacts
2b63800ddc899074fec3d4a08f11d57282cba3c2
[ "MIT" ]
null
null
null
resources/js/router.js
amin-alzubair/company_contacts
2b63800ddc899074fec3d4a08f11d57282cba3c2
[ "MIT" ]
null
null
null
import Vue from 'vue'; import VueRouter from 'vue-router'; import ExampleComponent from "./components/ExampleComponent"; import contactCreate from "./views/contactCreate"; import ContactShow from "./views/ContactShow"; import ContactEdit from "./views/ContactEdit"; import ContactIndex from "./views/ContactIndex"; import BirthdayIndex from "./views/BirthdayIndex"; Vue.use(VueRouter); export default new VueRouter({ routes:[ {path:'/', component: ExampleComponent}, {path:'/contacts', component: ContactIndex}, {path:'/contacts/create', component: contactCreate}, {path:'/contacts/:id', component: ContactShow}, {path:'/contacts/:id/edit', component: ContactEdit}, {path:'/birthday', component: BirthdayIndex}, ], mode:'history' });
32.423077
64
0.659549
e33a4816162b2fca6050a780cebddc208e78e0f0
1,231
js
JavaScript
src/pages/newsletter.js
bradypp/personal-website
e8c8df874ed1903710c76d69d83d5caff0a3a6bf
[ "MIT" ]
7
2020-05-17T11:03:06.000Z
2020-12-11T06:47:01.000Z
src/pages/newsletter.js
bradypp/personal-website
e8c8df874ed1903710c76d69d83d5caff0a3a6bf
[ "MIT" ]
null
null
null
src/pages/newsletter.js
bradypp/personal-website
e8c8df874ed1903710c76d69d83d5caff0a3a6bf
[ "MIT" ]
2
2020-07-23T20:53:14.000Z
2020-08-14T13:55:42.000Z
import React from 'react'; import styled from 'styled-components'; import { graphql } from 'gatsby'; import { Layout, NewsletterForm } from '@components'; import { mixins } from '@styles'; const Container = styled.div` ${mixins.flexCenter} min-height: inherit; `; const NewsletterPage = ({ data }) => { const { pageData: { frontmatter: { ogImage }, }, } = data; return ( <Layout meta={{ title: 'Newsletter', description: "Sign Up to Paul's newsletter", relativeUrl: '/newsletter', ogImage: ogImage?.childImageSharp?.fixed?.src, }}> <Container> <NewsletterForm /> </Container> </Layout> ); }; export default NewsletterPage; export const pageQuery = graphql` { pageData: markdownRemark(fileAbsolutePath: { regex: "/content/newsletter/" }) { frontmatter { ogImage { childImageSharp { fixed(width: 1200, height: 630) { src } } } } } } `;
24.137255
87
0.474411
e33ad6e16c59c95cc5f72cdb5791f2553552518b
1,468
js
JavaScript
src/components/Home/first-paragraph.js
Calebm5577/tictic-repo
0b01b10a5d1db9de903f85952a4c5f264598b96b
[ "MIT" ]
null
null
null
src/components/Home/first-paragraph.js
Calebm5577/tictic-repo
0b01b10a5d1db9de903f85952a4c5f264598b96b
[ "MIT" ]
null
null
null
src/components/Home/first-paragraph.js
Calebm5577/tictic-repo
0b01b10a5d1db9de903f85952a4c5f264598b96b
[ "MIT" ]
null
null
null
import React, { Component } from 'react' import "../../CSS/styles.scss" import google from "../../images/google.jpg" import iOS from "../../images/iOS.jpg" import phone from '../../images/firstphone.jpg' export class Firstparagraph extends Component { render() { return ( <div className="fp-container"> <div className="fp-container-one"> <div className="fp-container-one-text"> <h1 className="fp-container-one-text-h1">Lorem Ipsum Title Put Here...</h1> <p className="fp-container-one-text-p"> Lorem Ipsum is simply dummy trextydssdfsdgsDdsfsdSDF Lorem Ispum Lorem Ipsum is simply dummy trextydss dfsdgsDdsfsdSDF Lorem Ispum</p> </div> <div className="fp-container-two"> <a href="https://play.google.com/store/apps/details?id=co.tictic.tictic" target="_blank"><img src={google} alt="google play button" className="fp-container-two-google"/></a> <a href="https://apps.apple.com/us/app/tictic-bucket-lists/id1437805697" target="_blank"><img src={iOS} alt="app store button" className="fp-container-two-ios"/></a> </div> </div> <div> <img src={phone} alt="phone" className="fp-container-phone"/> </div> </div> ) } } export default Firstparagraph
44.484848
198
0.567439
e33b879ea3351770010a0b6d331c727399648b64
71,089
js
JavaScript
source/kernel/scene.js
LivelyKernel/sunlabs-kernel
74fb4d8371a8a0bdeebf21a23511aede2b8c25ea
[ "MIT" ]
null
null
null
source/kernel/scene.js
LivelyKernel/sunlabs-kernel
74fb4d8371a8a0bdeebf21a23511aede2b8c25ea
[ "MIT" ]
null
null
null
source/kernel/scene.js
LivelyKernel/sunlabs-kernel
74fb4d8371a8a0bdeebf21a23511aede2b8c25ea
[ "MIT" ]
null
null
null
/* * Copyright (c) 2006-2009 Sun Microsystems, Inc. * * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ // =========================================================================== // Graphics primitives (SVG specific, browser-independent) // =========================================================================== namespace('lively.data'); Object.subclass('lively.data.Wrapper', { documentation: "A wrapper around a native object, stored as rawNode", rawNode: null, deserialize: function(importer, rawNode) { this.rawNode = rawNode; dbgOn(!rawNode); var id = rawNode.getAttribute("id"); if (id) importer.addMapping(id, this); }, copyFrom: function(copier, other) { if (other.rawNode) this.rawNode = other.rawNode.cloneNode(true); }, copy: function(copier) { var myClass = Class.forName(this.getType()); return new myClass(copier || Copier.marker, this); }, getType: function() { var ctor = this.constructor.getOriginal(); if (ctor.type) return ctor.type; console.log("no type for " + ctor); lively.lang.Execution.showStack(); return null; }, newId: (function() { // this may be a Problem, after deserializing and when copy and pasting... var wrapperCounter = 0; return function(optNewCounter) { if (optNewCounter) { wrapperCounter = optNewCounter; return; } return Math.uuid ? Math.uuid() : ++wrapperCounter; // so use (pseudo) uuids when available } })(), id: function() { dbgOn(!this.rawNode); return this.rawNode.getAttribute("id"); }, setId: function(value) { var prev = this.id(); // easy parsing if value is an int, just call parseInt() this.rawNode.setAttribute("id", value + ":" + this.getType()); // this may happen automatically anyway by setting the id property return prev; }, setDerivedId: function(origin) { this.setId(origin.id().split(':')[0]); return this; }, removeRawNode: function() { var parent = this.rawNode && this.rawNode.parentNode; return parent && parent.removeChild(this.rawNode); }, replaceRawNodeChildren: function(replacement) { while (this.rawNode.firstChild) this.rawNode.removeChild(this.rawNode.firstChild); if (replacement) this.rawNode.appendChild(replacement); }, toString: function() { try { return "#<" + this.getType() + ":" + this.rawNode + ">"; } catch (err) { return "#<toString error: " + err + ">"; } }, inspect: function() { try { return this.toString() + "[" + this.toMarkupString() + "]"; } catch (err) { return "#<inspect error: " + err + ">"; } }, toMarkupString: function() { // note forward reference return Exporter.stringify(this.rawNode); }, uri: function() { return lively.data.FragmentURI.fromString(this.id()); }, // convenience attribute access getLivelyTrait: function(name) { return this.rawNode.getAttributeNS(Namespace.LIVELY, name); }, // convenience attribute access setLivelyTrait: function(name, value) { return this.rawNode.setAttributeNS(Namespace.LIVELY, name, value); }, // convenience attribute access removeLivelyTrait: function(name) { return this.rawNode.removeAttributeNS(Namespace.LIVELY, name); }, getLengthTrait: function(name) { return lively.data.Length.parse(this.rawNode.getAttributeNS(null, name)); }, setLengthTrait: function(name, value) { this.setTrait(name, value); }, getTrait: function(name) { return this.rawNode.getAttributeNS(null, name); }, setTrait: function(name, value) { return this.rawNode.setAttributeNS(null, name, String(value)); }, removeTrait: function(name) { return this.rawNode.removeAttributeNS(null, name); }, getDefsNode: function() { var defNode = $A(this.rawNode.getElementsByTagName('defs')).detect(function(ea) { if (ea == null) { lively.lang.Execution.showStack(); return false; } return ea.parentNode === this.rawNode; }, this); // create and append one when defNode is not there if (!defNode) defNode = this.rawNode.appendChild(NodeFactory.create('defs')); return defNode; }, doNotSerialize: ['rawNode'], isPropertyOnIgnoreList: function(prop) { return this.doNotSerialize.include(prop) || this.isPropertyOnIgnoreListInClassHierarchy(prop, this.constructor); }, isPropertyOnIgnoreListInClassHierarchy: function(prop, klass) { if (klass === Object) return false; return klass.prototype.doNotSerialize.include(prop) || this.isPropertyOnIgnoreListInClassHierarchy(prop, klass.superclass); }, prepareForSerialization: function(extraNodes, optSystemDictionary) { for (var prop in this) { if (!this.hasOwnProperty(prop)) continue; if (this.isPropertyOnIgnoreList(prop)) continue; var m = this[prop]; if (m === this.constructor.prototype[prop]) // save space continue; this.preparePropertyForSerialization(prop, m, extraNodes, optSystemDictionary); } }, appendHelperNode: function(node, extraNodes) { try { extraNodes.push(this.rawNode.appendChild(node)); } catch (er) { throw er;} // console.log("appendHelperNode " + node.tagName + " " + node.parentNode) node.isHelper = true; // who deletes the extra whitespace after the nodes are reloaded? // extraNodes.push(this.rawNode.appendChild(NodeFactory.createNL())); }, prepareArrayPropertyForSerialization: function(prop, propValue, extraNodes, optSystemDictionary) { if (prop === 'submorphs') return; // we'll deal manually var arr = LivelyNS.create("array", {name: prop}); var abort = false; propValue.forEach(function iter(elt) { if (elt && lively.data.Wrapper.isInstance(elt)) { // FIXME what if Wrapper is a mixin? // if item empty, don't set the ref field var item = (elt && elt.id()) ? LivelyNS.create("item", {ref: elt.id()}) : LivelyNS.create("item"); extraNodes.push(arr.appendChild(item)); extraNodes.push(arr.appendChild(NodeFactory.createNL())); } else { var item = Converter.encodeProperty(null, elt, true); if (item) { extraNodes.push(arr.appendChild(item)); extraNodes.push(arr.appendChild(NodeFactory.createNL())); } else { console.log("ERROR Serializing item in array " + prop + " of " + this) abort = true; return; } } }, this); if (!abort) { //console.assert($A(this.rawNode.getElementsByTagName("array")).select(function(ea){ // return ea.getAttribute("name") == prop }).length == 1, "ERROR: node with " + prop + " is already in raw Node"); this.appendHelperNode(arr, extraNodes); } }, prepareWrapperPropertyForSerialization: function(prop, propValue, extraNodes, optSystemDictionary) { if (prop === 'owner') return; // we'll deal manually if (propValue instanceof lively.paint.Gradient || propValue instanceof lively.scene.Image) { return; // these should sit in defs and be handled by restoreDefs() } //console.log("serializing field name='%s', ref='%s'", prop, m.id(), m.getType()); if (!propValue.rawNode) { console.log("wha', no raw node on " + propValue); } else if (propValue.id() != null) { var desc = LivelyNS.create("field", {name: prop, ref: propValue.id()}); this.appendHelperNode(desc, extraNodes);; if (prop === "ownerWidget") { // console.log('recursing for field ' + prop); propValue.prepareForSerialization(extraNodes, optSystemDictionary); this.appendHelperNode(propValue.rawNode, extraNodes); } } }, prepareRelayPropertyForSerialization: function(prop, propValue, extraNodes, optSystemDictionary) { var delegate = propValue.delegate; if (lively.data.Wrapper.isInstance(delegate)) { // FIXME: better instanceof var desc = LivelyNS.create("relay", {name: prop, ref: delegate.id()}); Properties.forEachOwn(propValue.definition, function(key, value) { var binding = desc.appendChild(LivelyNS.create("binding")); // extraNodes.push(binding); binding.setAttributeNS(null, "formal", key); binding.setAttributeNS(null, "actual", value); }); this.appendHelperNode(desc, extraNodes); } else { console.warn('unexpected: '+ propValue + 's delegate is ' + delegate); } }, preparePropertyForSerialization: function(prop, propValue, extraNodes, optSystemDictionary) { // console.log("prepare property " + prop + ": " + optSystemDictionary) if (propValue instanceof Function) { return; } else if (lively.data.Wrapper.isInstance(propValue)) { this.prepareWrapperPropertyForSerialization(prop, propValue, extraNodes, optSystemDictionary) } else if (propValue instanceof Relay) { this.prepareRelayPropertyForSerialization(prop, propValue, extraNodes, optSystemDictionary) } else if (propValue instanceof Array) { this.prepareArrayPropertyForSerialization(prop, propValue, extraNodes, optSystemDictionary) } else if (prop === 'rawNode' || prop === 'defs') { // necessary because nodes get serialized return; } else { var node = Converter.encodeProperty(prop, propValue); node && this.appendHelperNode(node, extraNodes);; } }, reference: function() { // console.log("reference " + this) if (!this.refcount) { if (!this.id()) { this.setId(this.newId()); } this.dictionary().appendChild(this.rawNode); this.refcount = 1; return; } this.refcount ++; }, dereference: function() { // console.log("dereference " + this) // sadly, when the object owning the gradient is reclaimed, nobody will tell us to dereference if (this.refcount === undefined) throw new Error('sorry, undefined'); this.refcount --; if (this.refcount == 0) { if (this.rawNode.parentNode) this.dictionary().removeChild(this.rawNode); } }, dictionary: function() { if (lively.data.Wrapper.dictionary) return lively.data.Wrapper.dictionary; if (lively.data.Wrapper.dictionary = Global.document.getElementById("SystemDictionary")) return lively.data.Wrapper.dictionary; var canvas = Global.document.getElementById("canvas"); lively.data.Wrapper.dictionary = canvas.appendChild(NodeFactory.create("defs")); lively.data.Wrapper.dictionary.setAttribute("id", "SystemDictionary"); return lively.data.Wrapper.dictionary; }, deserializeWidgetFromNode: function(importer, node) { var type = lively.data.Wrapper.getEncodedType(node); if (type) { var klass = Class.forName(type); if (klass) { var widget = new klass(importer, node); widget.restoreFromSubnodes(importer, node); return widget } else { throw new Error("Error in deserializing Widget:" + type + ", no class"); }; }; throw new Error("Error in deserializing Widget: no getEncodedType for " + node); }, deserializeValueFromNode: function(importer, node) { var value = node.textContent; if (value) { var family = LivelyNS.getAttribute(node, "family"); if (family) { var cls = Class.forName(family); if (!cls) throw new Error('uknown type ' + family); return cls.fromLiteral(JSON.unserialize(value)); } else if (value === 'NaN') { return NaN; // JSON doesn't unserializes NaN } else { try { return JSON.unserialize(value); } catch (e) { console.log('Error in lively.data.Wrapper.deserializeValueFromNode:'); console.log(e + ' was thrown when deserializing: ' + value); } } } }, deserializeFieldFromNode: function(importer, node) { var name = LivelyNS.getAttribute(node, "name"); if (name) { var ref = LivelyNS.getAttribute(node, "ref"); if (ref) { importer.addPatchSite(this, name, ref); } else if (node.getAttributeNS(null, 'isNode') !== '') { // we have a normal node, nothing to deserialize but reassign var realNode = node.firstChild; node.removeChild(realNode); this[name] = realNode; this.addNonMorph(realNode); } else { this[name] = this.deserializeValueFromNode(importer, node); } } else { throw new Error("could not deserialize field without name"); } }, deserializeRelayFromNode: function(importer, node) { var spec = {}; $A(node.getElementsByTagName("binding")).forEach(function(elt) { var key = elt.getAttributeNS(null, "formal"); var value = elt.getAttributeNS(null, "actual"); spec[key] = value; }); var name = LivelyNS.getAttribute(node, "name"); if (name) { var relay = this[name] = Relay.newInstance(spec, null); var ref = LivelyNS.getAttribute(node, "ref"); importer.addPatchSite(relay, "delegate", ref); } node.parentNode.removeChild(node); }, deserializeRecordFromNode: function(importer, node) { var spec = JSON.unserialize(node.getElementsByTagName("definition")[0].textContent); var Rec = lively.data.DOMNodeRecord.prototype.create(spec); var model = new Rec(importer, node); var id = node.getAttribute("id"); if (id) importer.addMapping(id, model); this.actualModel = model; }, deserializeArrayFromNode: function(importer, node) { var name = LivelyNS.getAttribute(node, "name"); this[name] = []; var index = 0; $A(node.getElementsByTagName("item")).forEach(function(elt) { var ref = LivelyNS.getAttribute(elt, "ref"); if (ref) { importer.addPatchSite(this, name, ref, index); } else { this[name].push(this.deserializeValueFromNode(importer, node)); } index ++; }, this); }, }); Object.extend(lively.data.Wrapper, { getEncodedType: function(node) { // this should be merged with getType var id = node.getAttribute("id"); return id && id.split(":")[1]; }, isInstance: function(m) { return m instanceof lively.data.Wrapper || m instanceof lively.data.DOMRecord; } }); /* Garbage Collection */ lively.data.Wrapper.addMethods({ removeGarbageRelayNodes: function() { $A(this.rawNode.childNodes).each(function(ea) { if(ea.tagName == "relay") this.rawNode.removeChild(ea) }, this) }, removeGarbageFromRawNode: function() { "WorldMorph.current().removeGarbageFromRawNode()" this.removeGarbageRelayNodes(); this.submorphs.each(function(ea) { ea.removeGarbageFromRawNode() }) } }); Object.extend(lively.data.Wrapper, { collectFill: function(morph, result) { var fill = morph.getFill(); if (fill instanceof lively.paint.Gradient) result.push(fill); morph.submorphs.each(function(ea) { this.collectFill(ea, result) }, this); return result }, collectSystemDictionaryGarbage: function(rootMorph) { "lively.data.Wrapper.collectSystemDictionaryGarbage()" if (!rootMorph) rootMorph = WorldMorph.current(); var usedFillIds = this.collectFill(rootMorph,[]).collect(function(ea){return ea.id()}); $A(new lively.data.Wrapper().dictionary().childNodes).each(function(ea) { // console.log("GC considering " + ea) if(['linearGradient', 'radialGradient'].include(ea.tagName) && !usedFillIds.include(ea.id)) { // console.log("SystemDictionary GC: remove " + ea) lively.data.Wrapper.dictionary.removeChild(ea) } }); }, }); Object.extend(Object.subclass('lively.data.FragmentURI'), { parse: function(string) { var match = string && string.match("url\\(#(.*)\\)"); return match && match[1]; // 'ur(#fragmentURI)' //return string.substring(5, string.length - 1); }, fromString: function(id) { return "url(#" + id + ")"; }, getElement: function(string) { var id = this.parse(string); return id && Global.document.getElementById(id); } }); // See http://www.w3.org/TR/css3-values/ // and http://www.w3.org/TR/CSS2/syndata.html#values Object.extend(Object.subclass('lively.data.Length'), { parse: function(string) { // FIXME: handle units return parseFloat(string); } }); Object.extend(lively.data.Length.subclass('lively.data.Coordinate'), { parse: function(string) { // FIXME: handle units return parseFloat(string); } }); using(namespace('lively.scene'), lively.data.Wrapper).run(function(unused, Wrapper) { function locateCanvas() { // dirty secret return Global.document.getElementById("canvas"); } Wrapper.subclass('lively.scene.Node'); this.Node.addProperties({ FillOpacity: { name: "fill-opacity", from: Number, to: String, byDefault: 1.0}, StrokeOpacity: { name: "stroke-opacity", from: Number, to: String, byDefault: 1.0}, StrokeWidth: { name: "stroke-width", from: Number, to: String, byDefault: 1.0}, LineJoin: {name: "stroke-linejoin"}, LineCap: {name: "stroke-linecap"}, StrokeDashArray: {name: "stroke-dasharray"}, StyleClass: {name: "class"} }, Config.useStyling ? lively.data.StyleRecord : lively.data.DOMRecord); this.Node.addMethods({ documentation: "Objects that can be located on the screen", //In this particular implementation, graphics primitives are //mapped onto various SVG objects and attributes. rawNode: null, // set by subclasses setBounds: function(bounds) { throw new Error('setBounds unsupported on type ' + this.getType()); }, copyFrom: function($super, copier, other) { $super(copier, other); this._fill = other._fill; if (this._fill instanceof lively.paint.Gradient) { this._fill.reference(); } this._stroke = other._stroke; if (this._stroke instanceof lively.paint.Gradient) { this._stroke.reference(); } }, deserialize: function($super, importer, rawNode) { $super(importer, rawNode); var attr = rawNode.getAttributeNS(null, "fill"); var url = lively.data.FragmentURI.parse(attr); if (url) { // FIXME //this._fill = lively.data.FragmentURI.getElement(fillAttr); } else { this._fill = Color.fromString(attr); } attr = rawNode.getAttributeNS(null, "stroke"); url = lively.data.FragmentURI.parse(attr); if (url) { // FIXME //this._stroke = lively.data.FragmentURI.getElement(fillAttr); } else { this._stroke = Color.fromString(attr); } }, canvas: function() { if (!UserAgent.usableOwnerSVGElement) { // so much for multiple worlds on one page return locateCanvas(); } else { return (this.rawNode && this.rawNode.ownerSVGElement) || locateCanvas(); } }, nativeContainsWorldPoint: function(p) { var r = this.canvas().createSVGRect(); r.x = p.x; r.y = p.y; r.width = r.height = 0; return this.canvas().checkIntersection(this.rawNode, r); }, setVisible: function(flag) { if (flag) this.rawNode.removeAttributeNS(null, "display"); else this.rawNode.setAttributeNS(null, "display", "none"); return this; }, isVisible: function() { // Note: this may not be correct in general in SVG due to inheritance, // but should work in LIVELY. var hidden = this.rawNode.getAttributeNS(null, "display") == "none"; return hidden == false; }, applyFilter: function(filterUri) { // deprecated if (filterUri) this.rawNode.setAttributeNS(null, "filter", filterUri); else this.rawNode.removeAttributeNS(null, "filter"); }, translateBy: function(displacement) { // todo }, setFill: function(paint) { if ((this._fill !== paint) && (this._fill instanceof lively.paint.Gradient)) { this._fill.dereference(); } this._fill = paint; if (paint === undefined) { this.rawNode.removeAttributeNS(null, "fill"); } else if (paint === null) { this.rawNode.setAttributeNS(null, "fill", "none"); } else if (paint instanceof Color) { this.rawNode.setAttributeNS(null, "fill", String(paint)); } else if (paint instanceof lively.paint.Gradient) { paint.reference(); this.rawNode.setAttributeNS(null, "fill", paint.uri()); } else throw dbgOn(new TypeError('cannot deal with paint ' + paint)); }, getFill: function() { // hack if (this._fill || this._fill === null) return this._fill; var attr = this.rawNode.getAttribute('fill'); if (!attr) { false && console.log("Didn't find fill for " + this); return null; }; var rawFill = lively.data.FragmentURI.getElement(attr); if (!rawFill) { false && console.log("Didn't find fill for " + this); return null; }; var klass = lively.data.Wrapper.getEncodedType(rawFill); klass = Class.forName(klass) || Class.forName('lively.paint.' + klass); if (!klass) { false && console.log("Didn't find fill for " + this); return null; }; var importer = new Importer(); //dbgOn(true); this._fill = new klass(importer, rawFill); return this._fill; }, setStroke: function(paint) { if ((this._stroke !== paint) && (this._stroke instanceof lively.paint.Gradient)) { this._stroke.dereference(); } this._stroke = paint; if (paint === undefined) { this.rawNode.removeAttributeNS(null, "stroke"); } else if (paint === null) { this.rawNode.setAttributeNS(null, "stroke", "none"); } else if (paint instanceof Color) { this.rawNode.setAttributeNS(null, "stroke", String(paint)); } else if (paint instanceof lively.paint.Gradient) { paint.reference(); this.rawNode.setAttributeNS(null, "stroke", paint.uri()); } else throw dbgOn(new TypeError('cannot deal with paint ' + paint)); }, getStroke: function() { return this._stroke; }, getTransforms: function() { if (!this.cachedTransforms) { var list = this.rawNode.transform.baseVal; var array = this.cachedTransforms = new Array(list.numberOfItems); for (var i = 0; i < list.numberOfItems; i++) { // FIXME: create specialized classes (Rotate/Translate etc) array[i] = new lively.scene.Transform(list.getItem(i), this); } } return this.cachedTransforms; }, setTransforms: function(array) { var useDOM = Config.useTransformAPI; if (useDOM) { var list = this.rawNode.transform.baseVal; list.clear(); } this.cachedTransforms = array; for (var i = 0; i < array.length; i++) { var existingTargetNode = array[i].targetNode; if (existingTargetNode && existingTargetNode !== this) console.warn('reusing transforms? not good'); array[i].targetNode = this; useDOM && list.appendItem(array[i].rawNode); } useDOM || this.rawNode.setAttributeNS(null, "transform" , array.invoke('toString').join(' ')); }, transformListItemChanged: function(tfm) { // note that Morph has transformChanged (singular) if (!Config.useTransformAPI) { //console.log('changed ' + tfm + ' on ' + this); var array = this.cachedTransforms; if (array) { //(array.indexOf(tfm) < 0) && console.warn('cached transforms not set? passing ' + tfm); this.rawNode.setAttributeNS(null, "transform" , array.invoke('toString').join(' ')); } } } }); // FIXME: unfortunate aliasing for FX, should be removed (Bind doesn't translate accessors properly) this.Node.addMethods({ setstroke: lively.scene.Node.prototype.setStroke, setfill: lively.scene.Node.prototype.setFill, setfillOpacity: lively.scene.Node.prototype.setFillOpacity, setvisible: lively.scene.Node.prototype.setVisible }); // =========================================================================== // Shape functionality // =========================================================================== // Shapes are portable graphics structures that are used for isolating // the implementation details of the underlying graphics architecture from // the programmer. Each Morph in our system has an underlying Shape object // that maps the behavior of the Morph to the underlying graphics system // in a fully portable fashion. this.Node.subclass('lively.scene.Shape', { shouldIgnorePointerEvents: false, controlPointProximity: 10, hasElbowProtrusions: false, toString: function() { return Strings.format("a Shape(%s,%s)", this.getType(), this.bounds()); }, initialize: function() { if (this.shouldIgnorePointerEvents) this.ignoreEvents(); }, applyFunction: function(func,arg) { func.call(this, arg); }, toPath: function() { throw new Error('unimplemented'); }, origin: function() { return this.bounds().topLeft(); } }); Object.extend(this.Shape, { // merge with Import.importWrapperFromNode? importFromNode: function(importer, node) { switch (node.localName) { case "ellipse": return new lively.scene.Ellipse(importer, node); break; case "rect": return new lively.scene.Rectangle(importer, node); break; case "polyline": return new lively.scene.Polyline(importer, node); break; case "polygon": return new lively.scene.Polygon(importer, node); break; case "path": return new lively.scene.Path(importer, node); break; case "g": return new lively.scene.Group(importer, node); break; default: return null; } }, fromLiteral: function(node, literal) { // axiliary if (literal.stroke !== undefined) node.setStroke(literal.stroke); node.setStrokeWidth(literal.strokeWidth === undefined ? 1 : literal.strokeWidth); if (literal.fill !== undefined) node.setFill(literal.fill); if (literal.fillOpacity !== undefined) node.setFillOpacity(literal.fillOpacity); if (literal.strokeLineCap !== undefined) node.setLineCap(literal.strokeLineCap); if (literal.transforms !== undefined) node.setTransforms(literal.transforms); return node; } }); Object.extend(this, { LineJoins: Class.makeEnum(["Miter", "Round", "Bevel" ]), // note that values become attribute values LineCaps: Class.makeEnum(["Butt", "Round", "Square"]) // likewise }); this.Shape.subclass('lively.scene.Rectangle', { documentation: "Rectangle shape", initialize: function($super, rect) { $super(); this.rawNode = NodeFactory.create("rect"); this.setBounds(rect || new Rectangle(0, 0, 0, 0)); return this; }, setBounds: function(r) { dbgOn(!r); this.setLengthTrait("x", r.x); this.setLengthTrait("y", r.y); this.setLengthTrait("width", Math.max(0, r.width)); this.setLengthTrait("height", Math.max(0, r.height)); return this; }, toPath: function() { // FIXME account for rounded edges return new lively.scene.Path(this.bounds()); }, bounds: function() { var x = this.rawNode.x.baseVal.value; var y = this.rawNode.y.baseVal.value; var width = this.rawNode.width.baseVal.value; var height = this.rawNode.height.baseVal.value; return new Rectangle(x, y, width, height); }, translateBy: function(displacement) { this.setLengthTrait("x", this.getLengthTrait("x") + displacement.x); this.setLengthTrait("y", this.getLengthTrait("y") + displacement.y); }, vertices: function() { var b = this.bounds(); return [b.topLeft(), b.topRight(), b.bottomLeft(), b.bottomRight()]; }, containsPoint: function(p) { var x = this.rawNode.x.baseVal.value; var width = this.rawNode.width.baseVal.value; if (!(x <= p.x && p.x <= x + width)) return false; var y = this.rawNode.y.baseVal.value; var height = this.rawNode.height.baseVal.value; return y <= p.y && p.y <= y + height; }, reshape: function(partName,newPoint, ignored) { var r = this.bounds().withPartNamed(partName, newPoint); this.setBounds(r); }, partNameNear: function(p) { return this.bounds().partNameNear(Rectangle.corners, p, this.controlPointProximity); }, partPosition: function(partName) { return this.bounds().partNamed(partName); }, getBorderRadius: function() { return this.getLengthTrait("rx") || 0; }, // consider arcWidth and arcHeight instead roundEdgesBy: function(r) { if (r) { this.setLengthTrait("rx", r); this.setLengthTrait("ry", r); var w = this.getStrokeWidth(); // DI: Needed to force repaint(!) this.setStrokeWidth(w+1); this.setStrokeWidth(w); } return this; } }); Object.extend(this.Rectangle, { fromLiteral: function(literal) { var x = literal.x || 0.0; var y = literal.y || 0.0; var width = literal.width || 0.0; var height = literal.height || 0.0; var node = new lively.scene.Rectangle(new Rectangle(x, y, width, height)); lively.scene.Shape.fromLiteral(node, literal); if (literal.arcWidth !== undefined) node.roundEdgesBy(literal.arcWidth/2); return node; } }); this.Shape.subclass('lively.scene.Ellipse', { documentation: "Ellipses and circles", initialize: function($super /*,rest*/) { $super(); this.rawNode = NodeFactory.create("ellipse"); switch (arguments.length) { case 2: this.setBounds(arguments[1]); break; case 3: this.setBounds(arguments[1].asRectangle().expandBy(arguments[2])); break; default: throw new Error('bad arguments ' + $A(arguments)); } }, setBounds: function(r) { this.setLengthTrait("cx", r.x + r.width/2); this.setLengthTrait("cy", r.y + r.height/2); this.setLengthTrait("rx", r.width/2); this.setLengthTrait("ry", r.height/2); return this; }, center: function() { return pt(this.rawNode.cx.baseVal.value, this.rawNode.cy.baseVal.value); }, origin: function() { return this.center(); }, // For ellipses, test if x*x + y*y < r*r containsPoint: function(p) { var w = this.rawNode.rx.baseVal.value * 2; var h = this.rawNode.ry.baseVal.value * 2; var c = pt(this.rawNode.cx.baseVal.value, this.rawNode.cy.baseVal.value); var dx = Math.abs(p.x - c.x); var dy = Math.abs(p.y - c.y)*w/h; return (dx*dx + dy*dy) <= (w*w/4) ; }, bounds: function() { //console.log("rawNode " + this.rawNode); var w = this.rawNode.rx.baseVal.value * 2; var h = this.rawNode.ry.baseVal.value * 2; var x = this.rawNode.cx.baseVal.value - this.rawNode.rx.baseVal.value; var y = this.rawNode.cy.baseVal.value - this.rawNode.ry.baseVal.value; return new Rectangle(x, y, w, h); }, translateBy: function(displacement) { this.setLengthTrait("cx", this.getLengthTrait("cx") + displacement.x); this.setLengthTrait("cy", this.getLengthTrait("cy") + displacement.y); }, vertices: function() { var b = this.bounds(); var coeff = 4; var dx = b.width/coeff; var dy = b.height/coeff; // approximating by an octagon return [b.topCenter().addXY(-dx,0), b.topCenter().addXY(dx ,0), b.rightCenter().addXY(0, -dy), b.rightCenter().addXY(0, dy), b.bottomCenter().addXY(dx, 0), b.bottomCenter().addXY(-dx, 0), b.leftCenter().addXY(0, dy), b.leftCenter().addXY(0, -dy)]; }, partNameNear: function(p) { return this.bounds().partNameNear(Rectangle.sides, p, this.controlPointProximity); }, reshape: this.Rectangle.prototype.reshape, partPosition: this.Rectangle.prototype.partPosition }); Object.extend(this.Ellipse, { fromLiteral: function(literal) { var node = new lively.scene.Ellipse(pt(literal.centerX || 0.0, literal.centerY || 0.0), literal.radius); lively.scene.Shape.fromLiteral(node, literal); return node; } }); this.Shape.subclass('lively.scene.Polygon', { documentation: "polygon", hasElbowProtrusions: true, useDOM: false, initialize: function($super, vertlist) { this.rawNode = NodeFactory.create("polygon"); this.setVertices(vertlist); $super(); return this; }, copyFrom: function($super, copier, other) { $super(copier, other); this.setVertices(other.vertices()); }, setVertices: function(vertlist) { if (this.rawNode.points) { this.rawNode.points.clear(); } if (this.useDOM) vertlist.forEach(function(p) { this.rawNode.points.appendItem(p) }, this); else this.rawNode.setAttribute("points", vertlist.map(function (p) { return (p.x||0.0) + "," + (p.y||0.0) }).join(' ')); }, vertices: function() { var array = []; for (var i = 0; i < this.rawNode.points.numberOfItems; i++) { var item = this.rawNode.points.getItem(i); array.push(Point.ensure(item)); } return array; }, translateBy: function(displacement) { var array = []; for (var i = 0; i < this.rawNode.points.numberOfItems; i++) { var item = this.rawNode.points.getItem(i); array.push(Point.ensure(item).addPt(displacement)); } this.setVertices(array); }, toString: function() { var pts = this.vertices(); return this.rawNode.tagName + "[" + pts + "]"; }, bounds: function() { // FIXME very quick and dirty, consider caching or iterating over this.points var vertices = this.vertices(); // Opera has been known not to update the SVGPolygonShape.points property to reflect the SVG points attribute console.assert(vertices.length > 0, "lively.scene.Polygon.bounds: vertices has zero length, " + this.rawNode.points + " vs " + this.rawNode.getAttributeNS(null, "points")); return Rectangle.unionPts(vertices); }, origin: function() { // no natural choice to pick the origin of a polgon/polyline return pt(0, 0); }, reshape: function(ix, newPoint, lastCall) { // ix is an index into vertices var verts = this.vertices(); // less verbose if (ix < 0) { // negative means insert a vertex ix = -ix; verts.splice(ix, 0, newPoint); this.setVertices(verts); return; // undefined result for insertion } var closed = verts[0].eqPt(verts[verts.length - 1]); if (closed && ix == 0) { // and we're changing the shared point (will always be the first) verts[0] = newPoint; // then change them both verts[verts.length - 1] = newPoint; } else { verts[ix] = newPoint; } var shouldMerge = false; var howClose = 6; if (verts.length > 2) { // if vertex being moved is close to an adjacent vertex, make handle show it (red) // and if its the last call (mouse up), then merge this with the other vertex if (ix > 0 && verts[ix - 1].dist(newPoint) < howClose) { if (lastCall) { verts.splice(ix, 1); if (closed) verts[0] = verts[verts.length - 1]; } else { shouldMerge = true; } } if (ix < verts.length - 1 && verts[ix + 1].dist(newPoint) < howClose) { if (lastCall) { verts.splice(ix, 1); if (closed) verts[verts.length - 1] = verts[0]; } else { shouldMerge = true; } } } this.setVertices(verts); return shouldMerge; }, partNameNear: function(p) { var verts = this.vertices(); for (var i = 0; i < verts.length; i++) { // vertices if (verts[i].dist(p) < this.controlPointProximity) return i; } for (var i = 0; i < verts.length - 1; i++) { // midpoints (for add vertex) return - index if (verts[i].midPt(verts[i + 1]).dist(p) < this.controlPointProximity) return -(i + 1); } return null; }, // borrowed from http://local.wasp.uwa.edu.au/~pbourke/geometry/insidepoly/ containsPoint: function(p) { var counter = 0; var vertices = this.vertices(); var p1 = vertices[0]; for (var i = 1; i <= vertices.length; i++) { var p2 = vertices[i % vertices.length]; if (p.y > Math.min(p1.y, p2.y)) { if (p.y <= Math.max(p1.y, p2.y)) { if (p.x <= Math.max(p1.x, p2.x)) { if (p1.y != p2.y) { var xinters = (p.y-p1.y)*(p2.x-p1.x)/(p2.y-p1.y)+p1.x; if (p1.x == p2.x || p.x <= xinters) counter ++; } } } } p1 = p2; } if (counter % 2 == 0) { return false; } else { return true; } }, partPosition: function(partName) { var vertices = this.vertices(); return (partName >= 0) ? vertices[partName] : vertices[-partName].midPt(vertices[-partName - 1]); } }); Object.extend(this.Polygon, { fromLiteral: function(literal) { return lively.scene.Shape.fromLiteral(new lively.scene.Polygon(literal.points), literal); } }); lively.scene.Shape.subclass('lively.scene.Polyline', { documentation: "Like polygon but not necessarily closed and does not include the interior", hasElbowProtrusions: true, initialize: function($super, vertlist) { this.rawNode = NodeFactory.create("polyline"); this.setVertices(vertlist); $super(); }, containsPoint: function(p) { var howNear = 6; var vertices = this.vertices(); for (var i = 1; i < vertices.length; i++) { var pNear = p.nearestPointOnLineBetween(vertices[i-1], vertices[i]); if (pNear.dist(p) < howNear) { return true; } } return false; }, setStartX: function(x) { var v = this.vertices(); var first = v.first(); v.splice(0, 1, first.withX(x)); this.setVertices(v); }, setStartY: function(y) { var v = this.vertices(); var first = v.first(); v.splice(0, 1, first.withY(y)); this.setVertices(v); }, setEndX: function(x) { var v = this.vertices(); var last = v.last(); v.splice(-1, 1, last.withX(x)); this.setVertices(v); }, setEndY: function(y) { var v = this.vertices(); var last = v.last(); v.splice(-1, 1, last.withY(y)); this.setVertices(v); }, // poorman's traits :) bounds: this.Polygon.prototype.bounds, origin: this.Polygon.prototype.origin, vertices: this.Polygon.prototype.vertices, setVertices: this.Polygon.prototype.setVertices, reshape: this.Polygon.prototype.reshape, partNameNear: this.Polygon.prototype.partNameNear, partPosition: this.Polygon.prototype.partPosition, translateBy: this.Polygon.prototype.translateBy }); Object.extend(this.Polyline, { fromLiteral: function(literal) { return lively.scene.Shape.fromLiteral(new lively.scene.Polyline(literal.points), literal); } }); this.Line = { // sugar syntax fromLiteral: function(literal) { var pts = [ pt(literal.StartX || 0.0, literal.StartY || 0.0), pt(literal.EndX || 0.0, literal.EndY || 0.0)]; // FIXME more efficient? return lively.scene.Polyline.fromLiteral(Object.extend(literal, {points: pts})); } }; Wrapper.subclass('lively.scene.PathElement', { isAbsolute: true, attributeFormat: function() { // FIXME not a good base element return this.charCode + this.x + "," + this.y; } }); this.PathElement.subclass('lively.scene.MoveTo', { charCode: 'M', initialize: function(x, y) { this.x = x; this.y = y; }, allocateRawNode: function(rawPathNode) { this.rawNode = rawPathNode.createSVGPathSegMovetoAbs(this.x, this.y); return this.rawNode; }, controlPoints: function() { return [pt(this.x, this.y)]; }, }); Object.extend(this.MoveTo, { fromLiteral: function(literal) { return new lively.scene.MoveTo(literal.x || 0.0, literal.y || 0.0); } }); this.PathElement.subclass('lively.scene.LineTo', { charCode: 'L', initialize: function(x, y) { this.x = x; this.y = y; }, allocateRawNode: function(rawPathNode) { this.rawNode = rawPathNode.createSVGPathSegLinetoAbs(this.x, this.y); return this.rawNode; }, controlPoints: function() { return [pt(this.x, this.y)]; } }); Object.extend(this.LineTo, { fromLiteral: function(literal) { return new lively.scene.LineTo(literal.x || 0.0, literal.y || 0.0); } }); Object.extend(this.LineTo, { fromLiteral: function(literal) { return new lively.scene.LineTo(literal.x || 0.0, literal.y || 0.0); } }); this.PathElement.subclass('lively.scene.CurveTo', { charCode: 'T', // shouldn't it be the S type anyway? initialize: function(x, y) { this.x = x; this.y = y; }, allocateRawNode: function(rawPathNode) { this.rawNode = rawPathNode.createSVGPathSegCurvetoQuadraticSmoothAbs(this.x, this.y); return this.rawNode; }, controlPoints: function() { return [pt(this.x, this.y)]; } }); this.PathElement.subclass('lively.scene.QuadCurveTo', { charCode: 'Q', initialize: function(x, y, controlX, controlY) { this.x = x; this.y = y; this.controlX = controlX; this.controlY = controlY; }, allocateRawNode: function(rawPathNode) { this.rawNode = rawPathNode.createSVGPathSegCurvetoQuadraticAbs(this.x, this.y, this.controlX, this.controlY); return this.rawNode; }, controlPoints: function() { return [pt(this.controlX, this.controlY), pt(this.x, this.y)]; }, attributeFormat: function() { return this.charCode + this.controlX + "," + this.controlY + "," + this.x + "," + this.y; } }); Object.extend(this.QuadCurveTo, { fromLiteral: function(literal) { return new lively.scene.QuadCurveTo(literal.x || 0.0, literal.y || 0.0, literal.controlX || 0.0, literal.controlY || 0.0); } }); this.PathElement.subclass('lively.scene.ClosePath', { charCode: 'Z', initialize: function() { }, allocateRawNode: function(rawPathNode) { this.rawNode = rawPathNode.createSVGPathSegClosePath(); return this.rawNode; }, controlPoints: function() { return []; } }); this.Shape.subclass('lively.scene.Path', { documentation: "Generic Path with arbitrary Bezier curves", hasElbowProtrusions: true, initialize: function($super, elements) { this.rawNode = NodeFactory.create("path"); this.setElements(elements || []); return this; }, deserialize: function($super, importer, rawNode) { $super(importer, rawNode); var codeExtractor = /([A-Z])(-?[0-9]+(?:.[0-9]+)?|NaN),(-?[0-9]+(?:.[0-9]+)?|NaN)/; var pathElementClasses = lively.scene.PathElement.allSubclasses(); var pathElementLiterals = this.rawNode.getAttributeNS(null, 'd').split(' ').reject(function(ea) { return !ea }); var elements = pathElementLiterals.collect(function(literal) { var parts = codeExtractor.exec(literal); var pathElementClass = pathElementClasses.detect(function(klass) { return klass.prototype.charCode == parts[1] }); return new pathElementClass(Number(parts[2]) || 0, Number(parts[3]) || 0) }); this.setElements(elements); }, copyFrom: function($super, copier, other) { $super(copier, other); this.setElements(other.elements); }, setElements: function(elts) { this.cachedVertices = null; this.elements = elts; var attr = ""; for (var i = 0; i < elts.length; i++) { var seg = elts[i].allocateRawNode(this.rawNode); // this.rawNode.pathSegList.appendItem(seg); attr += elts[i].attributeFormat() + " "; } this.rawNode.setAttributeNS(null, "d", attr); }, setVertices: function(vertlist) { // emit SVG path symbol based on point attributes // p==point, i=array index function map2svg(p,i) { var code; if (i==0 || p.type && p.type=="move") { code = "M"; } else if (p.type && p.type=="line") { code = "L"; } else if (p.type && p.type=="arc" && p.radius) { code = "A" + (p.radius.x || p.radius) + "," + (p.radius.y || p.radius) + " " + (p.angle || "0") + " " + (p.mode || "0,1") + " "; } else if (p.type && p.type=="curve" && p.control) { // keep control points relative so translation works code = "Q" + (p.x+p.control.x) + "," + (p.y+p.control.y) + " "; } else { code = "T"; // default - bezier curve with implied control pts } return code + p.x + "," + p.y; } var d = vertlist.map(map2svg).join(''); //console.log("d=" + d); if (d.length > 0) this.rawNode.setAttributeNS(null, "d", d); }, vertices: function() { var verts = this.cachedVertices; if (verts == null) { verts = []; this.elements.forEach(function(el) { verts = verts.concat(el.controlPoints()); }); this.cachedVertices = verts; } return verts; //return this.verticesFromSVG(); }, containsPoint: function(p) { var verts = this.vertices(); //if (UserAgent.webKitVersion >= 525) return Rectangle.unionPts(verts).containsPoint(p); //else return this.nativeContainsWorldPoint(p); }, bounds: function() { var u = Rectangle.unionPts(this.vertices()); // FIXME this is not correct (extruding arcs) but it's an approximation return u; }, setBounds: function(bounds) { console.log('setBounds unsupported on type ' + this.getType()); }, // poorman's traits :) partNameNear: this.Polygon.prototype.partNameNear, partPosition: this.Polygon.prototype.partPosition, reshape: this.Polygon.prototype.reshape, }); Object.extend(this.Path, { fromLiteral: function(literal) { return new lively.scene.Path(literal.elements); } }); this.Shape.subclass('lively.scene.Group', { documentation: 'Grouping of scene objects', initialize: function() { this.rawNode = NodeFactory.create("g"); this.content = []; }, copyFrom: function($super, copier, other) { $super(copier, other); this.content = other.content.clone(); /* firefox doesn't need this var tx = other.pvtGetTranslate(); if (tx) { console.log('translate ' + tx + ' on ' + this); this.translateBy(tx); } */ // FIXME deep copy? }, deserialize: function($super, copier, rawNode) { $super(copier, rawNode); this.content = []; }, add: function(node) { this.rawNode.appendChild(node.rawNode); this.content.push(node); }, removeAll: function() { while (this.rawNode.firstChild) this.rawNode.removeChild(this.rawNode.firstChild); this.content = []; }, setContent: function(nodes) { // FIXME how about clearing what's there nodes.forEach(function(node) { this.add(node); }, this); }, bounds: function() { // this creates duplication between morphs and scene graphs, division of labor? // move Morph logic here var subBounds = null; var disp = this.pvtGetTranslate() || pt(0, 0); for (var i = 0; i < this.content.length; i++) { var item = this.content[i]; if (!item.isVisible()) continue; var itemBounds = item.bounds().translatedBy(disp); subBounds = subBounds == null ? itemBounds : subBounds.union(itemBounds); } var result = subBounds || new Rectangle(0, 0, 0, 0); return result; }, setBounds: function(bnds) { console.log('doing nothing to set bounds on group'); }, containsPoint: function(p) { // FIXME this should mimic relativize in Morph var disp = this.pvtGetTranslate() || pt(0, 0); p = p.subPt(disp); return this.content.some(function(item) { return item.containsPoint(p); }); }, origin: function(shape) { return this.bounds().topLeft(); }, pvtGetTranslate: function() { var tfms = this.getTransforms(); if (tfms.length == 1 && tfms[0].type() == SVGTransform.SVG_TRANSFORM_TRANSLATE) { return tfms[0].getTranslate(); } else return null; }, translateBy: function(displacement) { var tfms = this.getTransforms(); if (tfms.length == 1 && tfms[0].type() == SVGTransform.SVG_TRANSFORM_TRANSLATE) { var tr = tfms[0].getTranslate(); tfms[0].setTranslate(tr.x + displacement.x, tr.y + displacement.y); } if (tfms.length == 0) { var tfm = new lively.scene.Transform(null, this); tfm.setTranslate(displacement.x, displacement.y); this.setTransforms([tfm]); } else console.warn('no translate for you ' + displacement + ' length ' + tfms.length + " type " + tfms[0].type()); }, reshape: Functions.Empty, partNameNear: this.Rectangle.prototype.partNameNear, partPosition: this.Rectangle.prototype.partPosition, vertices: this.Rectangle.prototype.vertices }); Object.extend(this.Group, { fromLiteral: function(literal) { var group = new lively.scene.Group(); literal.content && group.setContent(literal.content); if (literal.transforms) { group.setTransforms(literal.transforms); } if (literal.clip) { var clip = new lively.scene.Clip(literal.clip); var defs = group.rawNode.appendChild(NodeFactory.create('defs')); defs.appendChild(clip.rawNode); clip.applyTo(group); } return group; } }); this.Node.subclass('lively.scene.Image'); this.Image.addProperties({ Opacity: { name: "opacity", from: Number, to: String, byDefault: 1.0} }, Config.useStyling ? lively.data.StyleRecord : lively.data.DOMRecord); this.Image.addMethods({ description: "Primitive wrapper around images", initialize: function(url, width, height) { if (!url) return; if (url.startsWith('#')) this.loadUse(url); else this.loadImage(url, width, height); }, deserialize: function($super, importer, rawNode) { if (rawNode.namespaceURI != Namespace.SVG) { // this brittle and annoying piece of code is a workaround around the likely brokenness // of Safari's XMLSerializer's handling of namespaces var href = rawNode.getAttributeNS(null /* "xlink"*/, "href"); if (href) if (href.startsWith("#")) { // not clear what to do, use target may or may not be in the target document this.loadUse(href); } else { this.loadImage(href); } } else { $super(importer, rawNode); } }, bounds: function() { return new Rectangle(0, 0, this.getWidth(), this.getHeight()); }, containsPoint: function(p) { return this.bounds().containsPoint(p); }, getWidth: function(optArg) { return lively.data.Length.parse((optArg || this.rawNode).getAttributeNS(null, "width")); }, getHeight: function(optArg) { return lively.data.Length.parse((optArg || this.rawNode).getAttributeNS(null, "height")); }, setWidth: function(width) { this.rawNode.setAttributeNS(null,"width", width); }, setHeight: function(height) { this.rawNode.setAttributeNS(null, "height", height); }, reload: function() { if (this.rawNode.localName == "image") { XLinkNS.setHref(this.rawNode, this.getURL() + "?" + new Date()); } }, getURL: function() { return XLinkNS.getHref(this.rawNode); }, scaleBy: function(factor) { new lively.scene.Similitude(pt(0, 0), 0, pt(factor, factor)).applyTo(this.rawNode); }, loadUse: function(url) { if (this.rawNode && this.rawNode.localName == "use") { XLinkNS.setHref(this.rawNode, url); return null; // no new node; } else { this.removeRawNode(); this.rawNode = NodeFactory.create("use"); XLinkNS.setHref(this.rawNode, url); return this.rawNode; } }, loadImage: function(href, width, height) { if (this.rawNode && this.rawNode.localName == "image") { XLinkNS.setHref(this.rawNode, href); return null; } else { var useDesperateSerializationHack = !Config.suppressImageElementSerializationHack; if (useDesperateSerializationHack) { width = width || this.getWidth(); height = height || this.getHeight(); // this desperate measure appears to be necessary to work // around Safari's serialization issues. Note that // somehow this code has to be used both for normal // loading and loading at deserialization time, otherwise // it'll fail at deserialization var xml = Strings.format('<image xmlns="http://www.w3.org/2000/svg" ' + 'xmlns:xlink="http://www.w3.org/1999/xlink" ' + ' width="%s" height="%s" xlink:href="%s"/>', width, height, href); this.rawNode = new Importer().parse(xml); } else { // this should work but doesn't: this.rawNode = NodeFactory.createNS(Namespace.SVG, "image"); this.rawNode.setAttribute("width", width); this.rawNode.setAttribute("height", height); XLinkNS.setHref(this.rawNode, href); } return this.rawNode; } } }); this.Node.subclass('lively.scene.Clip', { documentation: "currently wrapper around SVG clipPath", initialize: function(shape) { this.rawNode = NodeFactory.create('clipPath'); //var newId = ++ this.constructor.clipCounter; this.setId(String(this.newId())); this.setClipShape(shape); }, deserialize: function(importer, rawNode) { this.rawNode = rawNode; //FIXME remap the id? if (!rawNode) { // throw new Error("deserializing Clip without rawNode"); console.log("Error: deserializing Clip without rawNode"); return }; var node = rawNode.firstChild; // really firstElement, allow for whitespace if (!node) return; // empty clipPath? this.shape = lively.scene.Shape.importFromNode(importer, node); }, setClipShape: function(shape) { this.shape = shape.copy(); // FIXME: target.outline() ? this.replaceRawNodeChildren(this.shape.rawNode); }, applyTo: function(target) { target.setTrait("clip-path", this.uri()); } }); Object.extend(this.Clip, { clipCounter: 0, }); Object.subclass('lively.scene.Similitude', { // could be made SVG indepenent documentation: "Support for object rotation, scaling, etc.", //translation: null, // may be set by instances to a component SVGTransform //rotation: null, // may be set by instances to a component SVGTransform //scaling: null, // may be set by instances to a component SVGTransform eps: 0.0001, // precision /** * create a similitude is a combination of translation rotation and scale. * @param [Point] delta * @param [float] angleInRadians * @param [float] scale */ initialize: function(duck) { // matrix is a duck with a,b,c,d,e,f, could be an SVG matrix or a Lively Transform // alternatively, its a combination of translation rotation and scale if (duck) { if (duck instanceof Point) { var delta = duck; var angleInRadians = arguments[1] || 0.0; var scale = arguments[2]; if (scale === undefined) scale = pt(1.0, 1.0); this.a = this.ensureNumber(scale.x * Math.cos(angleInRadians)); this.b = this.ensureNumber(scale.y * Math.sin(angleInRadians)); this.c = this.ensureNumber(scale.x * - Math.sin(angleInRadians)); this.d = this.ensureNumber(scale.y * Math.cos(angleInRadians)); this.e = this.ensureNumber(delta.x); this.f = this.ensureNumber(delta.y); } else { this.fromMatrix(duck); } } else { this.a = this.d = 1.0; this.b = this.c = this.e = this.f = 0.0; } this.matrix_ = this.toMatrix(); }, getRotation: function() { // in degrees // Note the ambiguity with negative scales is resolved by assuming scale x is positive var r = Math.atan2(-this.c, this.a).toDegrees(); return Math.abs(r) < this.eps ? 0 : r; // don't bother with values very close to 0 }, getScale: function() { // Note the ambiguity with negative scales and rotation is resolved by assuming scale x is positive var a = this.a; var c = this.c; var s = Math.sqrt(a * a + c * c); return Math.abs(s - 1) < this.eps ? 1 : s; // don't bother with values very close to 1 }, getScalePoint: function() { // Note the ambiguity with negative scales and rotation is resolved by assuming scale x is positive var a = this.a; var b = this.b; var c = this.c; var d = this.d; var sx = Math.sqrt(a * a + c * c); var r = Math.atan2(-c, a); // radians var sy = (Math.abs(b) > Math.abs(d)) ? b / Math.sin(r) : d / Math.cos(r); // avoid div by 0 return pt(sx, sy); }, isTranslation: function() { return this.matrix_.type === SVGTransform.SVG_TRANSFORM_TRANSLATE; }, getTranslation: function() { return pt(this.e, this.f); }, toAttributeValue: function() { var delta = this.getTranslation(); var attr = "translate(" + delta.x + "," + delta.y +")"; var theta = this.getRotation(); if (theta != 0.0) attr += " rotate(" + this.getRotation() +")"; // in degrees var sp = this.getScalePoint(); if (sp.x != 1.0 || sp.y != 1.0) attr += " scale(" + sp.x + "," + sp.y + ")"; return attr; }, applyTo: function(rawNode) { if (Config.useTransformAPI) { var list = rawNode.transform.baseVal; var canvas = locateCanvas(); var translation = canvas.createSVGTransform(); translation.setTranslate(this.e, this.f); list.initialize(translation); if (this.b || this.c) { var rotation = canvas.createSVGTransform(); rotation.setRotate(this.getRotation(), 0, 0); list.appendItem(rotation); } if (this.a != 1.0 || this.d != 1.0) { var scaling = canvas.createSVGTransform(); var sp = this.getScalePoint(); scaling.setScale(sp.x, sp.y); list.appendItem(scaling); } } else { rawNode.setAttributeNS(null, "transform", this.toAttributeValue()); } }, toString: function() { return this.toAttributeValue(); }, transformPoint: function(p, acc) { return p.matrixTransform(this, acc); }, matrixTransformForMinMax: function(pt, minPt, maxPt) { var x = this.a * pt.x + this.c * pt.y + this.e; var y = this.b * pt.x + this.d * pt.y + this.f; if (x > maxPt.x) maxPt.x = x; if (y > maxPt.y) maxPt.y = y; if (x < minPt.x) minPt.x = x; if (y < minPt.y) minPt.y = y; }, transformRectToRect: function(r) { // This gets called a lot from invalidRect, so it has been optimized a bit var minPt = pt(Infinity, Infinity); var maxPt = pt(-Infinity, -Infinity); this.matrixTransformForMinMax(r.topLeft(), minPt, maxPt); this.matrixTransformForMinMax(r.bottomRight(), minPt, maxPt); if (this.isTranslation()) return rect(minPt, maxPt); this.matrixTransformForMinMax(r.topRight(), minPt, maxPt); this.matrixTransformForMinMax(r.bottomLeft(), minPt, maxPt); return rect(minPt, maxPt); }, copy: function() { return new lively.scene.Similitude(this); }, toMatrix: function() { var mx = locateCanvas().createSVGMatrix(); mx.a = this.a; mx.b = this.b; mx.c = this.c; mx.d = this.d; mx.e = this.e; mx.f = this.f; return mx; }, ensureNumber: function(value) { // note that if a,b,.. f are not numbers, it's usually a // problem, which may crash browsers (like Safari) that don't // do good typechecking of SVGMatrix properties before passing // them to native code. It's probably too late to figure out // the cause, but at least we won't crash. if (isNaN(value)) { throw dbgOn(new Error('not a number'));} return value; }, fromMatrix: function(mx) { this.a = this.ensureNumber(mx.a); this.b = this.ensureNumber(mx.b); this.c = this.ensureNumber(mx.c); this.d = this.ensureNumber(mx.d); this.e = this.ensureNumber(mx.e); this.f = this.ensureNumber(mx.f); }, preConcatenate: function(t) { var m = this.matrix_; this.a = t.a * m.a + t.c * m.b; this.b = t.b * m.a + t.d * m.b; this.c = t.a * m.c + t.c * m.d; this.d = t.b * m.c + t.d * m.d; this.e = t.a * m.e + t.c * m.f + t.e; this.f = t.b * m.e + t.d * m.f + t.f; this.matrix_ = this.toMatrix(); return this; }, createInverse: function() { return new lively.scene.Similitude(this.matrix_.inverse()); } }); Wrapper.subclass('lively.scene.Transform', { // a more direct wrapper for SVGTransform initialize: function(rawNode, targetNode) { if (!rawNode) rawNode = locateCanvas().createSVGTransform(); this.rawNode = rawNode; // we remember the target node so that we can inform it that we changed this.targetNode = targetNode; }, getTranslate: function() { if (this.rawNode.type == SVGTransform.SVG_TRANSFORM_TRANSLATE) { var mx = this.rawNode.matrix; return pt(mx.e, mx.f); } else throw new TypeError('not a translate ' + this + ' type ' + this.type()); }, setTranslate: function(x, y) { // note this overrides all the values this.rawNode.setTranslate(x, y); this.targetNode.transformListItemChanged(this); return this; }, setRotate: function(angleInDegrees, anchorX, anchorY) { // note this overrides all the values this.rawNode.setRotate(angleInDegrees, anchorX || 0.0, anchorY || 0.0); this.targetNode.transformListItemChanged(this); return this; }, setTranslateX: function(x) { if (this.rawNode.type == SVGTransform.SVG_TRANSFORM_TRANSLATE) { var tr = this.getTranslate(); this.rawNode.setTranslate(x, tr.y); this.targetNode.transformListItemChanged(this); } else throw new TypeError('not a translate ' + this); }, setX: function(x) { return this.setTranslateX(x); }, setTranslateY: function(y) { if (this.rawNode.type == SVGTransform.SVG_TRANSFORM_TRANSLATE) { var tr = this.getTranslate(); this.rawNode.setTranslate(tr.x, y); this.targetNode.transformListItemChanged(this); } else throw new TypeError('not a translate ' + this); }, setY: function(y) { return this.setTranslateY(y); }, type: function() { return this.rawNode.type; }, getAngle: function() { /* var r = Math.atan2(this.matrix.b, this.matrix.d).toDegrees(); return Math.abs(r) < this.eps ? 0 : r; // don't bother with values very close to 0 */ return this.rawNode.angle; }, getScale: function() { if (this.rawNode.type == SVGTransform.SVG_TRANSFORM_SCALE) { var mx = this.rawNode.matrix; var a = mx.a; var c = mx.c; return Math.sqrt(a * a + c * c); } else throw new TypeError('not a scale ' + this.rawNode); }, toString: function() { switch (this.rawNode.type) { case SVGTransform.SVG_TRANSFORM_TRANSLATE: var delta = this.getTranslate(); return "translate(" + delta.x + "," + delta.y +")"; case SVGTransform.SVG_TRANSFORM_ROTATE: var mx = this.rawNode.matrix; if (mx.e || mx.f) { var disp = pt(mx.e || 0, mx.f || 0); var str = "translate(" + disp.x.toFixed(2) + "," + disp.y.toFixed(2) + ") "; str += "rotate(" + this.getAngle().toFixed(2) + ") "; //str += "translate(" + (-disp.x).toFixed(2) + ", " + (-disp.y).toFixed(2) + ")"; // FIXME, hmm.... wouldn't we want to transform back? //console.log('format ' + str); return str; } else return "rotate(" + this.getAngle() +")"; // in degrees case SVGTransform.SVG_TRANSFORM_SCALE: return "scale(" + this.getScale() + ")"; default: var mx = this.rawNode.matrix; return "matrix(" + [mx.a, mx.b, mx.c, mx.d, mx.e, mx.f].join(', ') + ")"; // FIXME } } }); lively.scene.Translate = { fromLiteral: function(literal) { var tfm = new lively.scene.Transform(); tfm.rawNode.setTranslate(literal.X || 0.0, literal.Y || 0.0); // tfm.targetNode should be set from setTransforms, already on the call stack return tfm; } }; lively.scene.Transform.subclass('lively.scene.Rotate', { // FIXME: fold into Transform initialize: function($super, degrees, anchorX, anchorY) { $super(null, null); // doesn't know its target node yet this.anchor = pt(anchorX|| 0.0, anchorY || 0.0); this.rawNode.setRotate(degrees, anchorX || 0.0, anchorY || 0.0); }, setAngle: function(angle) { //console.log('setting angle to ' + angle); this.setRotate(angle, this.anchor.x, this.anchor.y); } }); Object.extend(lively.scene.Rotate, { fromLiteral: function(literal) { return new lively.scene.Rotate(literal.Angle, literal.X, literal.Y); } }); Wrapper.subclass('lively.scene.Effect', { initialize: function(id) { this.rawNode = NodeFactory.create("filter"); this.effectNode = this.rawNode.appendChild(NodeFactory.create(this.nodeName)); this.rawNode.setAttribute("id", id); }, applyTo: function(target) { this.reference(); target.setTrait("filter", this.uri()); } }); this.Effect.subclass('lively.scene.GaussianBlurEffect', { nodeName: "feGaussianBlur", initialize: function($super, radius, id) { // FIXME generate IDs automatically $super(id); this.effectNode['in'] = "SourceGraphics"; // FIXME more general this.setRadius(radius); }, setRadius: function(radius) { var blur = this.effectNode; if (blur.setStdDeviation) blur.setStdDeviation(radius, radius); else // Safari doesn't define the method blur.setAttributeNS(null, "stdDeviation", String(radius)); }, }); this.Effect.subclass('lively.scene.BlendEffect', { nodeName: "feBlend", initialize: function($super, id, optSourceURL) { // FIXME generate IDs automatically $super(id); this.effectNode.setAttributeNS(null, "mode", "normal"); this.effectNode.setAttributeNS(null, "in", "SourceGraphic"); // FIXME more general if (optSourceURL) { var feImage = this.rawNode.insertBefore(NodeFactory.create("feImage"), this.effectNode); feImage.setAttributeNS(null, "result", "image"); feImage.setAttributeNS(Namespace.XLINK, "href", optSourceURL); this.effectNode.setAttributeNS(null, "in2", "image"); } else { this.effectNode.setAttributeNS(null, "in2", optSourceURL); } } }); this.Effect.subclass('lively.scene.ColorAdjustEffect', { nodeName: "feColorMatrix", initialize: function($super, id) { // FIXME generate IDs automatically $super(id); this.effectNode.setAttributeNS(null, "type", "matrix"); this.effectNode.setAttributeNS(null, "in", "SourceGraphic"); // FIXME more general // FIXME: obviously random numbers this.effectNode.setAttributeNS(null, "values", [2/3, 2/3, 2/3, 0, 0, 2/3, 2/3, 2/3, 0, 0, 2/3, 2/3, 2/3, 0, 0, 2/3, 2/3, 3/3, 0, 0].join(' ')) } }); this.Effect.subclass('lively.scene.SaturateEffect', { nodeName: "feColorMatrix", initialize: function($super, id, value) { // FIXME generate IDs automatically $super(id); this.effectNode.setAttributeNS(null, "type", "saturate"); this.effectNode.setAttributeNS(null, "in", "SourceGraphic"); // FIXME more general this.effectNode.setAttributeNS(null, "values", String(value)); } }); lively.scene.Node.subclass('lively.scene.Text', { documentation: "wrapper around SVG Text elements", initialize: function() { this.rawNode = NodeFactory.create("text", { "kerning": 0 }); }, getFontSize: function() { return this.getLengthTrait("font-size"); }, getFontFamily: function() { return this.getTrait("font-family"); } }); }); // end using lively.scene // =========================================================================== // Gradient colors, stipple patterns and coordinate transformatins // =========================================================================== using(namespace('lively.paint'), lively.data.Wrapper).run(function(unused, Wrapper) { Wrapper.subclass('lively.paint.Stop', { initialize: function(offset, color) { dbgOn(isNaN(offset)); this.rawNode = NodeFactory.create("stop", { offset: offset, "stop-color": color}); }, deserialize: function(importer, rawNode) { this.rawNode = rawNode; }, copyFrom: function(copier, other) { if (other.rawNode) this.rawNode = other.rawNode.cloneNode(true); }, color: function() { return Color.fromString(this.getTrait("stop-color")); }, offset: function() { return this.getLengthTrait("offset"); }, toLiteral: function() { return { offset: String(this.offset()), color: String(this.color()) }; }, toString: function() { return "#<Stop{" + JSON.serialize(this.toLiteral()) + "}>"; } }); Object.extend(this.Stop, { fromLiteral: function(literal) { return new lively.paint.Stop(literal.offset, literal.color); } }); // note that Colors and Gradients are similar but Colors don't need an SVG node Wrapper.subclass("lively.paint.Gradient", { dictionaryNode: null, initialize: function($super, node) { $super(); this.stops = []; this.refcount = 0; this.rawNode = node; }, deserialize: function($super, importer, rawNode) { $super(importer, rawNode); //rawNode.removeAttribute("id"); var rawStopNodes = $A(this.rawNode.getElementsByTagNameNS(Namespace.SVG, 'stop')); this.stops = rawStopNodes.map(function(stopNode) { return new lively.paint.Stop(importer, stopNode) }); this.refcount = 0; }, copyFrom: function($super, copier, other) { $super(copier, other); dbgOn(!other.stops); //this.rawNode.removeAttribute("id"); var rawStopNodes = $A(this.rawNode.getElementsByTagNameNS(Namespace.SVG, 'stop')); this.stops = rawStopNodes.map(function(stopNode) { return new lively.paint.Stop(importer, stopNode) }); this.refcount = 0; }, addStop: function(offset, color) { var stop = new lively.paint.Stop(offset, color); this.stops.push(stop); this.rawNode.appendChild(stop.rawNode); return this; }, setStops: function(list) { if (this.stops && this.stops.length > 0) throw new Error('stops already initialized to ' + this.stops); list.forEach(function(stop) { this.stops.push(stop); this.rawNode.appendChild(stop.rawNode); }, this); }, toString: function() { return "#<" + this.getType() + this.toMarkupString() + ">"; }, }); this.Gradient.subclass("lively.paint.LinearGradient", { initialize: function($super, stopSpec, vector) { vector = vector || lively.paint.LinearGradient.NorthSouth; $super(NodeFactory.create("linearGradient", {x1: vector.x, y1: vector.y, x2: vector.maxX(), y2: vector.maxY()})); this.vector = vector; // cache for access without rawNode this.setStops(stopSpec); return this; }, mixedWith: function(color, proportion) { var result = new lively.paint.LinearGradient(); for (var i = 0; i < stops.length; i++) { result.addStop(new lively.paint.Stop(this.stops[i].offset(), this.stops[i].color().mixedWith(color, proportion))); } return result; } }); Object.extend(this.LinearGradient, { fromLiteral: function(literal) { return new lively.paint.LinearGradient(literal.stops, literal.vector || lively.paint.LinearGradient.NorthSouth); } }); Object.extend(this.LinearGradient, { NorthSouth: rect(pt(0, 0), pt(0, 1)), SouthNorth: rect(pt(0, 1), pt(0, 0)), EastWest: rect(pt(0, 0), pt(1, 0)), WestEast: rect(pt(1, 0), pt(0, 0)), SouthWest: rect(pt(1, 0), pt(0, 1)), // Down and to the left SouthEast: rect(pt(0, 0), pt(1, 1)) // Down and to the right -- default lighting direction }); this.Gradient.subclass('lively.paint.RadialGradient', { initialize: function($super, stopSpec, optF) { $super(NodeFactory.create("radialGradient")); this.setStops(stopSpec); if (optF) { this.setTrait("fx", optF.x); this.setTrait("fy", optF.y); } } }); Object.extend(this.RadialGradient, { fromLiteral: function(literal) { return new lively.paint.RadialGradient(literal.stops, literal.focus); } }); });// lively.paint
29.37562
130
0.647991
e33b9c6c8bf0958470278da6ed42c8fb9c98af93
439
js
JavaScript
src/MLTypography/MLParagraph.js
phoenixeliot/design-system
ec9707ba5ecb2aa8be37355885e53583ec007768
[ "Apache-2.0" ]
null
null
null
src/MLTypography/MLParagraph.js
phoenixeliot/design-system
ec9707ba5ecb2aa8be37355885e53583ec007768
[ "Apache-2.0" ]
null
null
null
src/MLTypography/MLParagraph.js
phoenixeliot/design-system
ec9707ba5ecb2aa8be37355885e53583ec007768
[ "Apache-2.0" ]
null
null
null
import React from 'react' import { Typography } from 'antd' import PropTypes from 'prop-types' import classNames from 'classnames' const { Paragraph } = Typography const MLParagraph = (props) => ( <Paragraph {...props} className={classNames('ml-typography', props.className)} > {props.children} </Paragraph> ) MLParagraph.propTypes = {} MLParagraph.displayName = 'MLTypography.MLParagraph' export default MLParagraph
20.904762
60
0.722096
e33cb8ca97a72817d07a2f9651164d538506f1dc
403
js
JavaScript
modules/topics-ui/shared/constants/navigation.js
madnight/gitter
599aa0d3fd638d43eef0f9c0d8758481f592e1f3
[ "MIT" ]
null
null
null
modules/topics-ui/shared/constants/navigation.js
madnight/gitter
599aa0d3fd638d43eef0f9c0d8758481f592e1f3
[ "MIT" ]
null
null
null
modules/topics-ui/shared/constants/navigation.js
madnight/gitter
599aa0d3fd638d43eef0f9c0d8758481f592e1f3
[ "MIT" ]
null
null
null
export const NAVIGATE_TO = 'navigate-to'; export const NAVIGATE_TO_TOPIC = 'navigate-to-topic'; export const FORUM_ROUTE = 'forum'; export const CREATE_TOPIC_ROUTE = 'create-topic'; export const TOPIC_ROUTE = 'topic'; export const DEFAULT_CATEGORY_NAME = 'all'; export const DEFAULT_FILTER_NAME = 'activity'; export const DEFAULT_TAG_NAME = 'all-tags'; export const DEFAULT_SORT_NAME = 'most-recent';
33.583333
53
0.779156
e33d0e2512a8875fb1817310859bfb8047f1a1c1
9,040
js
JavaScript
src/pages/myVehicles.js
hiroki-suo/react-prkedWebClientSide
29653b3d4ad3fd153b1791749c524f5a9f9181b7
[ "MIT" ]
null
null
null
src/pages/myVehicles.js
hiroki-suo/react-prkedWebClientSide
29653b3d4ad3fd153b1791749c524f5a9f9181b7
[ "MIT" ]
null
null
null
src/pages/myVehicles.js
hiroki-suo/react-prkedWebClientSide
29653b3d4ad3fd153b1791749c524f5a9f9181b7
[ "MIT" ]
null
null
null
import React from "react"; import Grid from "@material-ui/core/Grid"; import Container from "@material-ui/core/Container"; import TextField from "@material-ui/core/TextField"; import Button from "@material-ui/core/Button"; import withStyles from "@material-ui/core/styles/withStyles"; import firebase from "firebase"; import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import List from "@material-ui/core/List"; import Link from '@material-ui/core/Link'; import CircularProgress from "@material-ui/core/CircularProgress"; import { toast } from 'react-toastify'; //Redux import { connect } from "react-redux"; import PropTypes from "prop-types"; import CustomText from "../components/Atom/CustomText"; const useStyles = () => ({ row: { display: 'flex', flexDirection: 'row', alignItems: 'center', marginTop: 20 }, btn: { width: 65, height: 40, marginLeft: 5 }, grid: { marginTop: 30, }, listItem: { display: 'flex', flexDirection: 'row', marginTop: 10, '& div': { borderRadius: 4, border: '1px solid #dee2e8', background: '#f8f9fb', padding: 22, width: '100%', marginRight: 12, '& a': { float: 'right', color: '#000000', textDecoration: 'underline', fontSize: 14 } } }, loading: { marginTop: 20, textAlign: 'center', '& svg': { color: '#0f7277' } } }); let userId; //function to get firebase uid /*firebase.auth().onAuthStateChanged(function (user) { if (user) { userId = firebase.auth().currentUser.uid; } else { userId = thi; } });*/ class myVehicles extends React.Component { constructor(props) { super(props); //creates vehiclePlates array state this.state = { vehiclePlates: [], textError: false, loading: false, plateNumber: '', }; userId = this.props.user.uid; } async getVehicles(n) { //this function retrieves all the vehicles within the users vehicle node let car = this; let loaded = false; car.setState({ loading: true, }); let query = firebase .database() .ref(`Users/${userId}/vehicles`) .orderByKey(); query.on("value", function (snapshot) { let plates = []; // let num = []; snapshot.forEach(function (childSnapshot) { // gets vehicle unique id let key = childSnapshot.key; // gets vehicle license plate let childData = childSnapshot.child("license_plate").val(); //pushes both to plates array if (key !== "main") { plates.push([key, childData]); } }); //set state to vehiclePlates to re-render car.setState({ vehiclePlates: plates, loading: false }); if (!loaded) { loaded = true; car.setState({ loading: false }); } else { car.setState({ loading: true }); } }); } componentDidMount() { // this is a react thing that runs before component is rendered // that way it pulls the data first and then renders this.getVehicles(0); } async writeUserData(userId) { let plateNumber = this.state.plateNumber; if (plateNumber === "") { this.setState({ textError: true, }); } else { let vehicles = this; vehicles.setState({ textError: false, loading: true }); //this function adds a new vehicle // newRef is reference to users vehicle node let newRef = firebase.database().ref("Users/" + userId + "/vehicles/"); // newRef is reference to unique id for vehicle added let newRef2 = newRef.push(); //this sets user inputed plate number as licence_plate under unique vehicle id newRef2.set({license_plate: plateNumber}) .then(function() { toast.success('Vehicle added successfully!'); vehicles.setState({ loading: false, plateNumber: '' }); }) .catch(function(error) { toast.error(error.message); vehicles.setState({ loading: false, }); }); // this updates the main node to identify which vehicle is the main vehicle, usually last one added await newRef.update( { main: { key: newRef2.key, value: plateNumber }, }, (error) => { if (error) { // toast.error('Vehicle added error!'); } else { // toast.success('Vehicle added successfully!'); } } ); } } deleteVehicle(item) { //this function deletes the selected vehicle let lastAddedKey; let lastAddedVal; let bool = false; let newRef = firebase.database(); newRef.ref("Users/" + userId + "/vehicles/" + item[0]) .remove() .then(() => { toast.success('Vehicle successfully removed'); this.setState({ loading: false, }) }) .catch((error) => { toast.error(error.message); this.setState({ loading: false, }) }); let count = this.state.vehiclePlates.length; let mainKey = newRef.ref("Users/" + userId + "/vehicles"); if (count > 1) { mainKey .orderByChild("timestamp") .limitToLast(2) .on("child_added", function (snapshot) { if (snapshot.exists()) { if (snapshot.key !== "main") { lastAddedKey = snapshot.key; lastAddedVal = snapshot.child("/license_plate").val(); } if (snapshot.key === "main") { // main = snapshot.child("/key").val(); // mainVal = snapshot.child("/value").val(); if (item[0] === snapshot.child("/key").val()) { bool = true; } } if (bool === true) { mainKey.child("/main").set({ key: lastAddedKey, value: lastAddedVal, }); } } }); } else { newRef.ref("Users/" + userId + "/vehicles/main") .remove().then(function() { // toast.success('Vehicle successfully removed'); }) .catch(function(error) { // toast.error('Vehicle removed error'); }); } } handlePlateNumberChange(event) { this.setState({ plateNumber: event.target.value }) } render() { const { classes } = this.props; const { loading } = this.state; return ( <Container> <Grid container direction="row" justify="center" alignItems="center" spacing={2} className={classes.grid} > <Card> <CardContent style={{ margin: '18px 22px' }}> <CustomText title={'Vehicles'} type={'title'} /> <CustomText title={'Below is a list of all the vehicles you have registered with JustPark. You can also add new vehicles or delete old ones from this page.'} type={'description'} /> <div className={classes.row}> <form> <TextField error={this.state.textError} value={this.state.plateNumber} onChange={(event) => this.handlePlateNumberChange(event)} variant="outlined" id="plateNumber" label="Vehicle number plate" size='small' fullWidth /> </form> <Button variant="contained" className={classes.btn} onClick={() => this.writeUserData(userId)} color="primary" > Add </Button> </div> {loading ? <div className={classes.loading}> <CircularProgress color="inherit"/> </div> : <List> {this.state.vehiclePlates.map((item, index) => { return ( <div key={index} className={classes.listItem}> <div> {item[1]} <Link href="#" onClick={() => this.deleteVehicle(item)}> Delete Vehicle </Link> </div> </div> ); })} </List> } </CardContent> </Card> </Grid> </Container> ); } } const mapStateToProps = (state) => ({ user: state.user, }); myVehicles.propTypes = { user: PropTypes.object.isRequired, classes: PropTypes.object.isRequired, }; export default connect(mapStateToProps)(withStyles(useStyles)(myVehicles));
26.051873
195
0.51615
e33f192b75210f313fa48a3c23877da2b25eb338
982
js
JavaScript
extensions/belen-chrome/replyts_jumptomessage.js
smably/belen-browser-extensions
386a256e051bcdfe15ca00c8252177117c78afe4
[ "CC-BY-3.0" ]
1
2016-09-24T21:41:52.000Z
2016-09-24T21:41:52.000Z
extensions/belen-chrome/replyts_jumptomessage.js
smably/belen-browser-extensions
386a256e051bcdfe15ca00c8252177117c78afe4
[ "CC-BY-3.0" ]
null
null
null
extensions/belen-chrome/replyts_jumptomessage.js
smably/belen-browser-extensions
386a256e051bcdfe15ca00c8252177117c78afe4
[ "CC-BY-3.0" ]
null
null
null
// ReplyTS doesn't allow linking to replies by reply ID, so we have to hack it. // After the page loads, a script in the page will manually run a search on the values in the form. // The reply ID overrides any other search parameters, so we can just set a single form field and let the page's onload handler deal with the rest. var setSearchField = function() { const MESSAGE_ID_NAME = "srch-jumptomessage-id"; const MESSAGE_ID_REGEX = new RegExp(MESSAGE_ID_NAME + "=(\\d+)"); var match, searchField; // If there is a message ID in our URL and a message ID field in the search form... if ((match = location.search.match(MESSAGE_ID_REGEX)) && (searchField = document.getElementById(MESSAGE_ID_NAME))) { // Quickly set the value of the reply ID field in the search form to the reply ID searchField.value = match[1]; } } // As soon as the DOM is loaded, set our form field to the appropriate value document.addEventListener("DOMContentLoaded", setSearchField, false );
44.636364
147
0.742363
e33f36c6ee4da8f592bdbbdecf29601375b4d535
12,165
js
JavaScript
out/_next/static/chunks/pages/index-40059cdcd4b47f53.js
smilee/portfolio
0c091b762603ff77bd457634a048b90b06e3ea57
[ "Apache-2.0" ]
null
null
null
out/_next/static/chunks/pages/index-40059cdcd4b47f53.js
smilee/portfolio
0c091b762603ff77bd457634a048b90b06e3ea57
[ "Apache-2.0" ]
null
null
null
out/_next/static/chunks/pages/index-40059cdcd4b47f53.js
smilee/portfolio
0c091b762603ff77bd457634a048b90b06e3ea57
[ "Apache-2.0" ]
1
2021-12-27T06:19:13.000Z
2021-12-27T06:19:13.000Z
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8581:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(1439)}])},1439:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return S}});var a=t(5893),i=t(9008),n=t(7294),o=t(2509),s=t(3735),d=t(4431);const l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function f(e=5){return Array(e).fill(0).map((()=>l[Math.floor(Math.random()*l.length)])).join("")}function h(e=5){return function(e){const r=(0,n.useRef)(null);return null===r.current&&(r.current=e()),r.current}((()=>f(e)))}const u=["GWTtPBjyL"],m={GWTtPBjyL:"framer-v-1lxst2r"},c={},p={default:{type:"spring",ease:[.44,0,.56,1],duration:.3,delay:0,stiffness:500,damping:60,mass:1}},v=n.forwardRef((function({style:e,className:r,layoutId:t,width:i,height:l,variant:f="GWTtPBjyL",tap:v,title:x="Built in Framer without Code",...y},b){const g=c[f]||f,{variants:w,baseVariant:k,gestureVariant:j,classNames:_,transition:C,setVariant:N,setGestureState:M}=(0,d.o3)({defaultVariant:"GWTtPBjyL",variant:g,transitions:p,variantClassNames:m,cycleOrder:u}),{activeVariantCallback:q,delay:L}=(0,d.pk)(k),S=q((async(...e)=>{if(v){if(!1===await v(...e))return!1}})),T=n.useMemo((()=>({})),[]),D=(0,d.J3)(k,j,T),V=h();return(0,a.jsx)(o.S,{id:null!==t&&void 0!==t?t:V,children:(0,a.jsx)(s.E.div,{initial:g,animate:w,className:(0,d.cx)("framer-8DDzP",_),style:{display:"contents"},onHoverStart:()=>M({isHovered:!0}),onHoverEnd:()=>M({isHovered:!1}),onTapStart:()=>M({isPressed:!0}),onTap:()=>M({isPressed:!1}),onTapCancel:()=>M({isPressed:!1}),children:(0,a.jsxs)(d.Kq,{...y,layoutId:"GWTtPBjyL",className:(0,d.cx)("framer-1lxst2r",r),style:{...e},background:null,direction:"horizontal",distribution:"center",alignment:"center",gap:0,__fromCanvasComponent:!0,__contentWrapperStyle:{width:"auto",height:"auto",padding:"10px 15px 10px 20px"},center:!1,"data-framer-name":"Variant 1",transition:C,ref:b,...D("GWTtPBjyL"),children:[(0,a.jsx)(d.xv,{style:{"--framer-font-family":'"Nanum Pen Script", serif',"--framer-font-style":"normal","--framer-font-weight":400,"--framer-text-color":"rgb(0, 153, 255)","--framer-font-size":"24px","--framer-letter-spacing":"0px","--framer-text-transform":"none","--framer-text-decoration":"none","--framer-line-height":"1em","--framer-text-alignment":"left","--framer-link-text-decoration":"underline"},withExternalLayout:!0,verticalAlignment:"top",__fromCanvasComponent:!0,alignment:"left",fonts:["GF;Nanum Pen Script-regular"],layoutId:"ZajJLuyHG",className:"framer-1oop47f",rawHTML:"<div style='font-size: 0; line-height: 0; tab-size: 4; white-space: inherit; word-wrap: inherit'><div style='direction: ltr; font-size: 0'><span style=''>Built in Framer without Code</span><br></div></div>",text:x,transition:C,...D("ZajJLuyHG")}),(0,a.jsx)(s.E.div,{layoutId:"b6KnO4G_4",className:"framer-1surqam",style:{rotate:5},background:null,transition:C,...D("b6KnO4G_4"),children:(0,a.jsx)(s.E.div,{style:{},layout:"position",layoutId:"cqbCT2sO7",className:"framer-1ilshyx","data-highlight":!0,background:null,onTap:S,transition:C,...D("cqbCT2sO7"),children:(0,a.jsxs)(d.DG,{layoutIdKey:"VOF5hzSiv",duplicatedFrom:["pEXQYV_Cu","UXqFhAWHq","aJJLfOKoa"],willChangeTransform:!1,visible:!0,x:3.255953244504675,y:6.581582490730511,rotation:-42,width:24.140826532874353,height:17.857096768855325,defaultName:"Group",isRootVectorNode:!0,frame:{x:3.255953244504675,y:6.581582490730511,width:24.140826532874353,height:17.857096768855325},transition:C,...D("VOF5hzSiv"),children:[(0,a.jsx)(d.OW,{style:{},d:"M 23.46113122232225 0 C 23.46113122232225 0 11.224439078776214 9.182008665227471 0 1.3708136108312203",id:"IKjWoq2rj",isRootVectorNode:!1,shapeId:"id_IKjWoq2rj",strokeClipId:"id_IKjWoq2rj_clip",rect:{x:0,y:7.3263738737481425,width:23.46113122232225,height:4.519523591779116},strokeAlpha:1,name:"Path",rotation:0,lineCap:"round",lineJoin:"round",strokeColor:"#09f",strokeDashArray:"0",strokeDashOffset:0,strokeMiterLimit:4,strokeEnabled:!0,insideStroke:!1,strokeWidth:2,fill:null,transition:C,...D("IKjWoq2rj")}),(0,a.jsx)(d.OW,{style:{},d:"M 0.3019961406350311 0 C 0.3019961406350311 0 -0.7296913606170343 11.581662193734147 1.0206777734014216 12.360976742078051 C 2.7710469074198776 13.140291290421956 14.245580307530991 12.936877241461033 14.245580307530991 12.936877241461033",id:"hQWvLxoZ5",isRootVectorNode:!1,shapeId:"id_hQWvLxoZ5",strokeClipId:"id_hQWvLxoZ5_clip",rect:{x:8.755226741674164,y:2.506036274556097,width:14.245580307530991,height:12.960806485760088},strokeAlpha:1,name:"Path",rotation:-153,lineCap:"round",lineJoin:"miter",strokeColor:"#09f",strokeDashArray:"0",strokeDashOffset:0,strokeMiterLimit:4,strokeEnabled:!0,insideStroke:!1,strokeWidth:2,fill:null,transition:C,...D("hQWvLxoZ5")})]},"id_VOF5hzSiv")})})]})})})})),x=(0,d.Oz)(v,['.framer-8DDzP [data-border="true"]::after { content: ""; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none;}',".framer-8DDzP .framer-1lxst2r { position: relative; overflow: hidden; width: min-content; height: min-content; }",".framer-8DDzP .framer-1oop47f { position: relative; overflow: visible; width: auto; height: auto; flex: none; white-space: pre; }",".framer-8DDzP .framer-1surqam { position: relative; overflow: visible; width: 31px; height: 32px; flex: none; }",".framer-8DDzP .framer-1ilshyx { position: absolute; cursor: pointer; width: 31px; height: 31px; left: calc(64.51612903225808% - 31px/2); top: calc(21.87500000000002% - 31px/2); flex: none; }"]);var y=x;x.displayName="Tip",x.defaultProps={width:311,height:52},(0,d.kw)(x,{EpmOY86lt:{type:d.C2.EventHandler,title:"Tap"},ldNqx5aYf:{type:d.C2.String,title:"Title",defaultValue:"Built in Framer without Code",displayTextArea:!1}}),(0,d.rR)(x,[{url:new t.U(t(4209)).href,family:"Nanum Pen Script",style:"normal",weight:"400",moduleAsset:{url:"https://fonts.gstatic.com/s/nanumpenscript/v15/daaDSSYiLGqEal3MvdA_FOL_3FkN2z7-aMFCcTU.ttf",localModuleIdentifier:"local-module:canvasComponent/upS5WNyXE:default"}}]);function b(){return(0,a.jsx)(y,{style:{position:"fixed",bottom:0,left:0,scale:1.4,originY:"100%",originX:"0%"}})}function g(e){var r=e.children;return(0,a.jsx)("div",{classNameName:"container",children:r})}function w(){return(0,a.jsxs)("div",{className:"face",children:[(0,a.jsx)("p",{children:"\uce90\ub9ad\ud130"}),(0,a.jsxs)("div",{className:"circle",children:[(0,a.jsx)("div",{className:"eyes"}),(0,a.jsx)("div",{className:"eyes"}),(0,a.jsx)("div",{className:"nose"})]})]})}const k={iBeYavOUI:{pressed:!0},hh7skn9vW:{pressed:!0}},j=["FDMfHjelk","KM_S6qG3t","iBeYavOUI","hh7skn9vW"],_={FDMfHjelk:"framer-v-1d1nqez",KM_S6qG3t:"framer-v-srcadj",iBeYavOUI:"framer-v-f7dryq",hh7skn9vW:"framer-v-hs9oge"},C={"Variant 1":"FDMfHjelk","Variant 2":"KM_S6qG3t","Variant 3":"iBeYavOUI","Variant 4":"hh7skn9vW"},N={default:{type:"spring",ease:[.44,0,.56,1],duration:.3,delay:0,stiffness:500,damping:60,mass:3.5},KM_S6qG3t:{type:"spring",ease:[.44,0,.56,1],duration:.3,delay:0,stiffness:500,damping:60,mass:3.5}},M=n.forwardRef((function({style:e,className:r,layoutId:t,width:i,height:l,variant:f="FDMfHjelk",...u},m){const c=C[f]||f,{variants:p,baseVariant:v,gestureVariant:x,classNames:y,transition:b,setVariant:g,setGestureState:w}=(0,d.o3)({defaultVariant:"FDMfHjelk",variant:c,transitions:N,variantClassNames:_,enabledGestures:k,cycleOrder:j}),{activeVariantCallback:M,delay:q}=(0,d.pk)(v),L=M((async(...e)=>{g("hh7skn9vW")})),S=M((async(...e)=>{await q((()=>g("KM_S6qG3t")),1e3)})),T=M((async(...e)=>{g("iBeYavOUI")})),D=M((async(...e)=>{await q((()=>g("FDMfHjelk")),1e3)})),V=M((async(...e)=>{g("hh7skn9vW")})),W=M((async(...e)=>{await q((()=>g("KM_S6qG3t")),4e3)})),z=M((async(...e)=>{g("iBeYavOUI")})),F=M((async(...e)=>{await q((()=>g("FDMfHjelk")),3e3)}));(0,d.mu)(v,{default:S,KM_S6qG3t:D,iBeYavOUI:W,hh7skn9vW:F});const O=n.useMemo((()=>({KM_S6qG3t:{FDMfHjelk:{distribution:"start",onTap:T,"data-framer-name":"Variant 2","data-highlight":!0}},iBeYavOUI:{FDMfHjelk:{isBreakpoint:!1,onTap:V,"data-framer-name":"Variant 3","data-highlight":!0}},hh7skn9vW:{FDMfHjelk:{isBreakpoint:!1,distribution:"start",onTap:z,"data-framer-name":"Variant 4","data-highlight":!0}}})),[T,V,z]),G=(0,d.J3)(v,x,O),I=h();return(0,a.jsx)(o.S,{id:null!==t&&void 0!==t?t:I,children:(0,a.jsx)(s.E.div,{initial:c,animate:p,className:(0,d.cx)("framer-u8L19",y),style:{display:"contents",pointerEvents:"auto"},onHoverStart:()=>w({isHovered:!0}),onHoverEnd:()=>w({isHovered:!1}),onTapStart:()=>w({isPressed:!0}),onTap:()=>w({isPressed:!1}),onTapCancel:()=>w({isPressed:!1}),children:(0,a.jsx)(d.Kq,{...u,layoutId:"FDMfHjelk",className:(0,d.cx)("framer-1d1nqez",r),style:{borderBottomLeftRadius:35,borderBottomRightRadius:35,borderTopRightRadius:35,borderTopLeftRadius:35,backgroundColor:"rgb(0, 153, 255)","--border-bottom-width":"2px","--border-top-width":"2px","--border-right-width":"2px","--border-left-width":"2px","--border-style":"solid","--border-color":"rgba(34, 34, 34, 0.1)",...e},direction:"horizontal",distribution:"end",alignment:"center",gap:10,__fromCanvasComponent:!0,__contentWrapperStyle:{width:"100%",height:"100%",padding:"8px 8px 8px 8px"},center:!1,"data-highlight":!0,"data-framer-name":"Variant 1","data-border":!0,onTap:L,variants:{KM_S6qG3t:{backgroundColor:"var(--token-bb3e870f-4ff8-4060-92d4-12e183aa0004, rgba(0, 0, 0, 0.15))"},hh7skn9vW:{backgroundColor:"var(--token-bb3e870f-4ff8-4060-92d4-12e183aa0004, rgba(0, 0, 0, 0.15))"}},transition:b,ref:m,...G("FDMfHjelk"),children:(0,a.jsx)(s.E.div,{layoutId:"eRh7uy9zZ",className:"framer-1i5yt0r",style:{borderBottomLeftRadius:27,borderBottomRightRadius:27,borderTopRightRadius:27,borderTopLeftRadius:27,boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.2)",backgroundColor:"rgb(255, 255, 255)"},"data-framer-name":"Knob",transition:b,...G("eRh7uy9zZ")})})})})})),q=(0,d.Oz)(M,['.framer-u8L19 [data-border="true"]::after { content: ""; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none;}',".framer-u8L19 .framer-1d1nqez { position: relative; cursor: pointer; overflow: hidden; width: 123px; height: 69px; }",".framer-u8L19 .framer-1i5yt0r { position: relative; overflow: visible; width: 53px; height: 53px; flex: none; }",".framer-u8L19.framer-v-srcadj .framer-1d1nqez, .framer-u8L19.framer-v-f7dryq .framer-1d1nqez, .framer-u8L19.framer-v-hs9oge .framer-1d1nqez, .framer-u8L19.framer-v-f7dryq .framer-1d1nqez, .framer-u8L19.framer-v-hs9oge .framer-1d1nqez { cursor: pointer; }",".framer-u8L19.framer-v-srcadj .framer-1i5yt0r { width: 53px; height: 53px; right: auto; bottom: auto; left: auto; top: auto; flex: none; }",".framer-u8L19.framer-v-f7dryq.pressed .framer-1i5yt0r, .framer-u8L19.framer-v-hs9oge.pressed .framer-1i5yt0r { width: 70px; height: 53px; right: auto; bottom: auto; left: auto; top: auto; flex: none; }"]);var L=q;q.displayName="Toggle",q.defaultProps={width:123,height:69},(0,d.kw)(q,{variant:{type:d.C2.Enum,title:"Variant",options:["FDMfHjelk","KM_S6qG3t","iBeYavOUI","hh7skn9vW"],optionTitles:["Variant 1","Variant 2","Variant 3","Variant 4"]}}),(0,d.rR)(q,[]);function S(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.default,{children:[(0,a.jsx)("title",{children:"Framer"}),(0,a.jsx)("meta",{name:"description",content:"Modules"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.png"})]}),(0,a.jsxs)(g,{children:[(0,a.jsx)(L,{}),(0,a.jsx)(w,{}),(0,a.jsx)(b,{})]})]})}},4209:function(e,r,t){"use strict";e.exports=t.p+"static/media/daaDSSYiLGqEal3MvdA_FOL_3FkN2z7-aMFCcTU.a95da777.ttf"}},function(e){e.O(0,[282,774,888,179],(function(){return r=8581,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
12,165
12,165
0.712865
e33f7f30ac2139b469a57843df375816926bf98f
13,063
js
JavaScript
test/integration.js
holomekc/ioBroker.bshb
ed6a9a7e681de4b9284cce44971615fe1e4538bd
[ "MIT" ]
15
2019-10-27T13:28:32.000Z
2022-01-24T15:49:26.000Z
test/integration.js
holomekc/ioBroker.bshb
ed6a9a7e681de4b9284cce44971615fe1e4538bd
[ "MIT" ]
64
2019-09-29T19:58:31.000Z
2022-03-27T18:26:10.000Z
test/integration.js
holomekc/ioBroker.bshb
ed6a9a7e681de4b9284cce44971615fe1e4538bd
[ "MIT" ]
8
2019-10-21T19:27:23.000Z
2021-07-07T20:44:52.000Z
const path = require("path"); const {tests} = require("@iobroker/testing"); const express = require('express'); const https = require('https'); const bodyParser = require('body-parser'); const mock = express(); mock.use(bodyParser.json({extended: true})); const fs = require('fs'); const os = require('os'); // We do not have a Bosch cert but we can disable certificate verification and fake one. This is ok for tests. // This is a bit hacky but whatever... const testDir = path.join(os.tmpdir(), `test-iobroker.bshb`); const certDisableFile = testDir + '/node_modules/bosch-smart-home-bridge/dist/api/abstract-bshc-client.js'; const privateKey = "-----BEGIN RSA PRIVATE KEY-----\r\nMIIEowIBAAKCAQEApiwLPoVRCr+UD5jyPFqQim5aMlRb+6LimwNRMD6A3HrktbTO\r\nJ0rqDMvtmAIyFPpi6VxhABSDBwUWqkVjLlyziHLOuLRUFu3EBGjqSV7kMZ4MUNLo\r\nBbLxr68nsFEOaNqFdkCQlCz51QQnIuDM42kKMh2F/KEfFUWhVl++G0UY1yAMSk4Q\r\nKM1prbagnCIEQ2I9vuyS45EK6AKZklEeP64Qmu0vGlNGZ8uT78bV1xfXANrSPIEq\r\nQvWmj2suj/zxDHrL6P0JxqAnGxp0QsqoGdSd99A5yTXw/u60WbzHvQ/9Gf2pnNqm\r\n3lp6JnQLUau7yJws4NixlK3TUYZlFtPKsMnCjQIDAQABAoIBAAJeQlLDx6HllRCb\r\n12fwynqOlA5/kUgGzD/1TiTn3yJFRhko2H9K3AcOqPYvodMWtm4o+ODtaeihs+79\r\nSiqQ+6YILNYJC+G/xbliXWRqS8pBPF+ygcgDAtrEHkavAQuRgbFrviO+eFkG1B/1\r\nIDZletW4Af7VtQGymlgGyUjONUprjp9KMpOwQv9/g2s6N4k6nwYr5PiF3MZKUqCj\r\n9hrGqhDdmShsK2KmOp3i4qiwb+uhYpgvUGYzHEnlMsRBDJoGp5iDafYf+zSwACX4\r\n6mnK0dF4Ms3Jig/mANhpAMIOjZG7ERsdLoO23JTF16cag9glH701xmgdqLbp803H\r\noewpr2kCgYEA1eRCQm9ivVj9DeGJ021QD5pCiNZdbw4wHgRuGXxh/BXEoGusr8W7\r\ng3FJIHgykITz889G7Lo3iDAEkQ6XhdOy787L2qOzmIHKC9gzcxWlsSVnYAxkg3wz\r\njYlkag+oruj1ged3bqATIogaRvFr+nKKqIkJGvzvuKShe/NHVTJh7TcCgYEAxuLO\r\ncalKJHK8EA8dMHCdWTtvnn5ySzoARzaQlmBp/9FyjiDbRC6ApHiY99EqLcwgXbjm\r\nwcdemfxSJrNUvSdxWd0RQnL5WT38TqjKoVymiPlTZYcAnM7o/q7yoejLuY6YpTEy\r\niJSDj6ISYxa/OKiUA/o0jvK48WekKnI63JuREFsCgYB2MAOg3BVuVR63LdnPlwZ3\r\nKKD9JZ5JQEi8PWxs7rrh5VFZ50VrdtIvRkjHBUPDcYOvQ+iH5DnNKeNMGAkH7Lti\r\nIR2peW1Cpuzy8Is1W0/L+8QMYaykrtt5qOJwbKijxZvrJPBsk00fdp82di5ZHDOb\r\n/uSmIf+AQo/sgrf2zrknrwKBgFeIgyvrQkKAbNz0ifhD2Dzpt9qd9Fe/k1fEYCaP\r\nEJgS6sQ7GcYMYXoByfFoEZROfwBA3O70fGJxdwapbuZBcdYHQg1o5O2uJlnIWEZk\r\nrLckZNwOauqY9lsBTLCN8PweEnjCCmeqVazlvAn4fPjG2T5W5ML1eQhmgQ5dcCKg\r\nJVx5AoGBAK9a6iiyp9i9EbVTBnIo56kfJDNR+f4niu9rTUo4eSbSDNboZjDXXZqc\r\nqkTYoRmIHMeeeGbgWXJxra83TqAGezy3vuHchNlxdlMsTYyIMuV2nx39+ooZ6IXu\r\nlxu0fpjFFlR0zM1u5cOohdZK2zl+LgIDdpd7u3FhXgXLs1jQM0kd\r\n-----END RSA PRIVATE KEY-----\r\n"; const certificate = "-----BEGIN CERTIFICATE-----\r\nMIIDmjCCAoKgAwIBAgIJArlH3TwvJZIqMA0GCSqGSIb3DQEBCwUAMGkxFDASBgNV\r\nBAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx\r\nEzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl\r\nc3QwHhcNMjEwOTI2MTMwMzIwWhcNMjIwOTI2MTMwMzIwWjBpMRQwEgYDVQQDEwtl\r\neGFtcGxlLm9yZzELMAkGA1UEBhMCVVMxETAPBgNVBAgTCFZpcmdpbmlhMRMwEQYD\r\nVQQHEwpCbGFja3NidXJnMQ0wCwYDVQQKEwRUZXN0MQ0wCwYDVQQLEwRUZXN0MIIB\r\nIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApiwLPoVRCr+UD5jyPFqQim5a\r\nMlRb+6LimwNRMD6A3HrktbTOJ0rqDMvtmAIyFPpi6VxhABSDBwUWqkVjLlyziHLO\r\nuLRUFu3EBGjqSV7kMZ4MUNLoBbLxr68nsFEOaNqFdkCQlCz51QQnIuDM42kKMh2F\r\n/KEfFUWhVl++G0UY1yAMSk4QKM1prbagnCIEQ2I9vuyS45EK6AKZklEeP64Qmu0v\r\nGlNGZ8uT78bV1xfXANrSPIEqQvWmj2suj/zxDHrL6P0JxqAnGxp0QsqoGdSd99A5\r\nyTXw/u60WbzHvQ/9Gf2pnNqm3lp6JnQLUau7yJws4NixlK3TUYZlFtPKsMnCjQID\r\nAQABo0UwQzAMBgNVHRMEBTADAQH/MAsGA1UdDwQEAwIC9DAmBgNVHREEHzAdhhto\r\ndHRwOi8vZXhhbXBsZS5vcmcvd2ViaWQjbWUwDQYJKoZIhvcNAQELBQADggEBAHjC\r\nOmE9UO/ONDDQrpe1BjF1ZHU5keQJehZbzTL5DLmxSHo38atxD7hXFqGuhX+o4Qwc\r\n3TNN4zpCAhx3W6QiquKleJPn/DkwSSkR7J7UZAEwro0tnTbfbwCIkXNC+1fo4urg\r\naNEIPbbYCMiuQIWfjOMnYuMyd5kqZF7vbhm071z+ZOLNDh+vPBuQN0m4dxZ9Aq23\r\nDpKIFWeA5cMEXZ/CipfvKlu2ZjTxrWiTYC04nn4VE5zTPxparI4MzXnk3psFHCFm\r\nv8uaRhKix2tG7IjYZGSgSGeoC5eK4/wfWswAfTjZDMaO64OuwW7teJIeroU5wl0X\r\nJU12EubECDTMzx1DJdM=\r\n-----END CERTIFICATE-----\r\n"; const httpsServer = https.createServer({key: privateKey, cert: certificate}, mock); const overwriteAndTest = (harness) => { harness._objects.getObject('system.adapter.bshb.0', (err, obj) => { obj.native.systemPassword = 'Test'; obj.native.identifier = 'Test'; obj.native.pairingDelay = 1000; obj.native.host = '127.0.0.1'; obj.native.mac = 'xx-xx-xx-xx-xx'; obj.native.certsPath = '/test'; harness._objects.setObject(obj._id, obj); }); }; mock.get('/smarthome/rooms', (req, res) => { res.json([ { "@type": "room", "id": "hz_1", "iconId": "icon_room_living_room", "name": "Wohnzimmer", }, { "@type": "room", "id": "hz_2", "iconId": "icon_room_bedroom", "name": "Schlafzimmer", }, { "@type": "room", "id": "hz_3", "iconId": "icon_room_hallway", "name": "Flur", } ]); }); mock.get('/smarthome/scenarios', (req, res) => { res.json([ { "@type": "scenario", "id": "f38770c1-62d7-4a71-8cef-51d1241e651e", "name": "Strom aus", "iconId": "icon_scenario_shutter_down", "actions": [ { "deviceId": "hdm:HomeMaticIP:3014F711A0000496D858A9D6", "deviceServiceId": "PowerSwitch", "targetState": { "@type": "powerSwitchState", "switchState": "OFF" } } ] } ]); }); mock.get('/smarthome/messages', (req, res) => { res.json([ { "@type": "message", "id": "00006590-0000-0000-0000-300000600000", "messageCode": { "name": "UPDATE_AVAILABLE", "category": "SW_UPDATE" }, "sourceType": "CONTROLLER", "sourceId": "com/bosch/sh/controller/system/swupdate", "timestamp": 1632317629576, "flags": [ "STICKY", "USER_ACTION_REQUIRED" ], "arguments": { "version": "10.2.2167-20856-10.2.2164-20551" } } ]); }); mock.get('/smarthome/doors-windows/openwindows', (req, res) => { res.json({ "allDoors": [ { "name": "Eingangstür", "roomName": "Flur" } ], "openDoors": [], "unknownDoors": [], "allWindows": [ { "name": "Fensterkontakt", "roomName": "Schlafzimmer" }, { "name": "Fenster", "roomName": "Wohnzimmer" } ], "openWindows": [ { "name": "Fensterkontakt", "roomName": "Schlafzimmer" } ], "unknownWindows": [], "allOthers": [], "openOthers": [], "unknownOthers": [] }); }); mock.get('/smarthome/devices', (req, res) => { res.json([ { "@type": "device", "rootDeviceId": "00-00-00-00-00-00", "id": "hdm:ZigBee:0000000000000000", "deviceServiceIds": [ "CommunicationQuality", "BatteryLevel", "MultiswitchDebug", "MultiswitchConfiguration", "TemperatureLevel" ], "manufacturer": "BOSCH", "roomId": "hz_2", "deviceModel": "MULTISWITCH", "serial": "0000000000000000", "profile": "GENERIC", "name": "Twist", "status": "AVAILABLE", "childDeviceIds": [] }, { "@type": "device", "rootDeviceId": "00-00-00-00-00-00", "id": "roomClimateControl_hz_1", "deviceServiceIds": [ "ThermostatSupportedControlMode", "TemperatureLevelConfiguration", "RoomClimateControl", "TemperatureLevel" ], "manufacturer": "BOSCH", "roomId": "hz_1", "deviceModel": "ROOM_CLIMATE_CONTROL", "serial": "roomClimateControl_hz_1", "iconId": "icon_room_bathroom_rcc", "name": "-RoomClimateControl-", "status": "AVAILABLE", "childDeviceIds": [ "hdm:HomeMaticIP:000000000000000000000000" ] }, ]); }); mock.get('/smarthome/services', (req, res) => { res.json([ { "@type": "DeviceServiceData", "id": "SoftwareUpdate", "deviceId": "00-00-00-00-00-00", "state": { "@type": "softwareUpdateState", "swUpdateState": "UPDATE_AVAILABLE", "swUpdateLastResult": "UPDATE_SUCCESS", "swUpdateAvailableVersion": "10.2.2167-20856-10.2.2164-20551", "swInstalledVersion": "10.2.2164-20551", "swActivationDate": { "@type": "softwareActivationDate", "activationDate": "2021-09-29T13:33:48.977Z", "timeout": 604800000, "latestActivationDate": "2021-09-29T13:33:48.977Z", "updateReceived": "2021-09-22T13:33:48.977Z" } }, "path": "/system/services/SoftwareUpdate" }, { "@type": "DeviceServiceData", "id": "TemperatureLevel", "deviceId": "roomClimateControl_hz_1", "state": { "@type": "temperatureLevelState", "temperature": 20.0 }, "path": "/devices/roomClimateControl_hz_1/services/TemperatureLevel" }, ]); }); mock.post('/remote/json-rpc', (req, res) => { if (req.body.method === "RE/subscribe") { res.json([ { "result": "ejf4hkl0l-55", "jsonrpc": "2.0" } ]); } if (req.body.method === "RE/longPoll") { setTimeout(() => { res.json( { "result": [ { "@type": "DeviceServiceData", "id": "TemperatureLevel", "deviceId": "roomClimateControl_hz_1", "state": { "@type": "temperatureLevelState", "temperature": 21.0 }, "path": "/devices/roomClimateControl_hz_1/services/TemperatureLevel" }, ], "jsonrpc": "2.0" } ); }, 2000); } }); httpsServer.listen(8444, () => { }); // Run integration tests - See https://github.com/ioBroker/testing for a detailed explanation and further options tests.integration(path.join(__dirname, ".."), { allowedExitCodes: [0], waitBeforeStartupSuccess: 2000, defineAdditionalTests(getHarness) { describe("Test sendTo()", () => { before(() => { return new Promise(async (resolve) => { console.log('Edit file to disable certificate verification: ' + certDisableFile); fs.readFile(certDisableFile, 'utf8', function (err, data) { if (err) { return console.log(err); } const result = data.replace(/requestOptions.rejectUnauthorized = true;/g, 'requestOptions.rejectUnauthorized = false;'); fs.writeFile(certDisableFile, result, 'utf8', function (err) { if (err) return console.log(err); }); }); resolve(undefined); }); }); it("Should work", () => { return new Promise(async (resolve) => { // Create a fresh harness instance each test! const harness = getHarness(); // This does not work. See: https://github.com/ioBroker/testing/issues/218 // await harness.changeAdapterConfig('', '', 'bshb', config); // TODO: Remove workaround as soon as configuration can be overwritten. overwriteAndTest(harness); // Start the adapter and wait until it has started await harness.startAdapterAndWait(); // Perform the actual test: harness.on('stateChange', (id, state) => { console.log('Changing: ' + id); if (id.startsWith('bshb.0.roomClimateControl_hz_1.TemperatureLevel.temperature') && state && state.val === 21) { resolve(undefined); } }); }); }).timeout(10000); }); } });
43.688963
1,778
0.572916
e33fcf9044fc4c13e2e8a51c1f68f9730828cb8f
4,631
js
JavaScript
web/js/golfclub-script.js
aman-raikwar/golfers
76babfbd8a768a873a17f06f9adf6a63a2aeea11
[ "BSD-3-Clause" ]
null
null
null
web/js/golfclub-script.js
aman-raikwar/golfers
76babfbd8a768a873a17f06f9adf6a63a2aeea11
[ "BSD-3-Clause" ]
null
null
null
web/js/golfclub-script.js
aman-raikwar/golfers
76babfbd8a768a873a17f06f9adf6a63a2aeea11
[ "BSD-3-Clause" ]
null
null
null
$(function () { /********************************/ /********** GolfClub **********/ /********************************/ // Show Add GolfClub Modal $('body').on('click', '#createGolfClub', function () { $('#addGolfModal').find('.golfModalContent').load($(this).data('href'), function () { var thisModal = $('#addGolfModal'); //setTimeout(function () { thisModal.modal('show'); $("#loading-indicator").hide(); //}, 1000); }); $("#loading-indicator").show(); }); // Show Edit GolfClub Modal $('body').on('click', '#editGolfClub', function () { $('#editGolfModal').find('.golfModalContent').load($(this).attr('value'), function () { var thisModal = $('#editGolfModal'); //setTimeout(function () { thisModal.modal('show'); $("#loading-indicator").hide(); //}, 1000); }); $("#loading-indicator").show(); }); // Submit GolfClub Form $('body').on('click', '#btnSubmitGolfClub', function () { $('.golfModalContent form').submit(); }); // Club Logo Change $('body').on('change', "#ClubLogo", function () { readURL(this); }); /********************************/ /********** Golfer ************/ /********************************/ // Show Add Golfer Modal $('body').on('click', '#createGolfer', function () { $('#addGolferModal').find('.golferModalContent').load($(this).data('href'), function () { var thisModal = $('#addGolferModal'); //setTimeout(function () { thisModal.modal('show'); $("#loading-indicator").hide(); //}, 1000); }); $("#loading-indicator").show(); }); // Show Edit Golfer Modal $('body').on('click', '#editGolfer', function () { $('#editGolferModal').find('.golferModalContent').load($(this).attr('value'), function () { var thisModal = $('#editGolferModal'); //setTimeout(function () { thisModal.modal('show'); $("#loading-indicator").hide(); //}, 1000); }); $("#loading-indicator").show(); }); $('body').on('change', '#player-firstclubid', function () { $('#player-ismemberofanotherclub option').removeAttr('selected'); $('#player-ismemberofanotherclub').prop('selectedIndex', 0); $("#player-otherclubname option").removeAttr('selected'); $("#player-otherclubname option").removeAttr('disabled'); $('#player-otherclubname').prop('selectedIndex', 0); $('#player-otherclubname').attr('disabled', 'disabled'); }); $('body').on('change', '#player-ismemberofanotherclub', function () { if ($(this).val() === '1') { //No $("#player-otherclubname option").removeAttr('selected'); $("#player-otherclubname option").removeAttr('disabled'); $('#player-otherclubname').prop('selectedIndex', 0); $('#player-otherclubname').attr('disabled', 'disabled'); } else { //Yes var clubId1 = $('#player-firstclubid').val(); $('#player-otherclubname').removeAttr('disabled'); $("#player-otherclubname option[value='" + clubId1 + "']").attr('disabled', 'disabled'); } }); // Submit Golfer Form $('body').on('click', '#btnSubmitGolfer', function () { $('.golferModalContent form').submit(); }); $('#datepicker').datepicker(); // Get County from Country Id $('body').on('change', '#golfcourse-country', function () { var country_id = $(this).val(); var url = $(this).data('url'); $.ajax({ url: url, data: {id: country_id}, type: 'GET', dataType: 'JSON', success: function (response) { var html = '<option value="">Select County</option>'; if (response.status == true) { $.each(response.counties, function (index, item) { html += '<option value="' + index + '">' + item + '</option>'; }); } $('#golfcourse-county').html(html); } }) }); }); function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('.showClubLogo img').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } }
34.819549
100
0.47981
e3400ca2daaa744bfce01c8790fb7291125082a3
10,655
js
JavaScript
routes/movies.js
korleg/movie
15d2cf6b7d0155b03acf6a4fe7607c6a8153570d
[ "Apache-2.0" ]
null
null
null
routes/movies.js
korleg/movie
15d2cf6b7d0155b03acf6a4fe7607c6a8153570d
[ "Apache-2.0" ]
1
2021-09-02T01:33:33.000Z
2021-09-02T01:33:33.000Z
routes/movies.js
korleg/movie
15d2cf6b7d0155b03acf6a4fe7607c6a8153570d
[ "Apache-2.0" ]
null
null
null
const express = require('express'); const router = express.Router(); //model const Movie = require('../models/Movie') router.post('/', (req, res, next)=> { // const {title, imdb, category, country, year, URI} = req.body; const movie = new Movie(req.body) const promise = movie.save(); promise .then((data)=>{ res.json(data) }) .catch((err)=>{ res.json(err) }); }); router.get('/', (req,res)=> { const promise = Movie.find({}); promise.then((data)=> { res.json(data); }).catch((err)=>{ res.json(err) }) }); //Alfabetik Sıralı Liste router.get('/alfabetik', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //IMDB sıralı liste router.get('/imdb', (req,res)=>{ const promise = Movie.find({}).sort({imdb: -1}); //imdb puanına göre büyükten küçüğe sıraladı promise.then((data)=>{ res.json(data) }).catch((err)=>{ res.json(err) }); }); //Gizem Kategorisine Ait Liste router.get('/gizem', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Gizem" }, { category2: 'Gizem' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Biyografi Kategorisine Ait Liste router.get('/biyografi', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Biyografi" }, { category2: 'Biyografi' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Dram Kategorisine Ait Liste router.get('/dram', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Dram" }, { category2: 'Dram' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); // Suç Kategorisine Ait Liste router.get('/suc', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Suç" }, { category2: 'Suç' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Savaş Kategorisine Ait Liste router.get('/savas', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Savaş" }, { category2: 'Savaş' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Komedi Kategorisine Ait Liste router.get('/komedi', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Komedi" }, { category2: 'Komedi' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Aksiyon Kategorisine Ait Liste router.get('/aksiyon', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Aksiyon" }, { category2: 'Aksiyon' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Gerilim Kategorisine Ait Liste router.get('/gerilim', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Gerilim" }, { category2: 'Gerilim' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Animasyon Kategorisine Ait Liste router.get('/animasyon', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Animasyon" }, { category2: 'Animasyon' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Macera Kategorisine Ait Liste router.get('/macera', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Macera" }, { category2: 'Macera' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Aile Kategorisine Ait Liste router.get('/aile', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Aile" }, { category2: 'Aile' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Korku Kategorisine Ait Liste router.get('/korku', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Korku" }, { category2: 'Korku' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Bilimkurgu Kategorisine Ait Liste router.get('/bilimkurgu', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Bilimkurgu" }, { category2: 'Bilimkurgu' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Romantik Kategorisine Ait Liste router.get('/romantik', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Romantik" }, { category2: 'Romantik' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); //Fantastik Kategorisine Ait Liste router.get('/fantastik', (req, res) => { const promise = Movie.aggregate([ { $lookup: { from: 'directors', localField: 'director_id', foreignField: '_id', as: 'director' } }, { $unwind: '$director' }, { $sort: { title: 1 } }, { $match: { $or: [ { category: "Fantastik" }, { category2: 'Fantastik' } ] } } ]); promise.then((data) => { res.json(data); }).catch((err) => { res.json(err); }) }); router.get('/:movie_id', (req, res, next)=> { const promise = Movie.findById(req.params.movie_id); promise.then((movie)=>{ if(!movie) next({message: 'Movie Not Found'}) res.json(movie) }).catch((err)=>{ res.json(err) }) }); router.put('/:movie_id', (req,res,next)=>{ const promise= Movie.findByIdAndUpdate( req.params.movie_id, req.body, { new: true } ); promise.then((movie)=>{ if(!movie) next({message:'Movie is not found'}) res.json(movie); }).catch((err)=>{ res.json(err); }); }); router.delete('/:movie_id', (req,res,next)=>{ const promise= Movie.findByIdAndRemove(req.params.movie_id); promise.then((movie)=>{ if(!movie) next({message:'Movie is not found'}) res.json({status: 1}); }).catch((err)=>{ res.json(err); }); }); router.get('/between/:start_year/:end_year', (req,res)=>{ //belirlenen yıllar arasındaki filmleri çekmek için const {start_year, end_year} = req.params; //requestten gelen parametreleri alıyoruz const promise = Movie.find( { year: { //veritabanındaki objenin neresinde arama yapacaksak belirleriz. burada year kullanıldı. "$gte": parseInt(start_year), //$gte büyük eşit anlamına geliyor ve gelen string değeri parseInt ile integer değere çevirdik "$lte": parseInt(end_year) //$lte küçük eşit anlamına gelir } //$gt büyük, $lt küçük anlamına gelir. e harfi ise eşitlik verir } ); promise.then((data)=>{ res.json(data) }).catch((err)=>{ res.json(err) }); }); module.exports = router;
16.342025
134
0.49817
e3412d3607bb8fe90070afb8ba541f6e53e2d716
2,034
js
JavaScript
public/js/login.js
mjgzy/hooliss
66d210d78e013bf3290c3a836f536d73edb5ea9b
[ "MIT" ]
null
null
null
public/js/login.js
mjgzy/hooliss
66d210d78e013bf3290c3a836f536d73edb5ea9b
[ "MIT" ]
null
null
null
public/js/login.js
mjgzy/hooliss
66d210d78e013bf3290c3a836f536d73edb5ea9b
[ "MIT" ]
null
null
null
var errMessage; $(function() { errMessage=$("#errMessage").val(); $("#form1").submit(function() { // var name = $("#textname").val(); // // var zuozhe = $("#textpwd").val(); // // if (name.length == 0 || zuozhe.length == 0) { // // alert("用户名和密码不能为空"); // // return false; // // } // // return true; }); if(errMessage!='' && errMessage!=null){ toastr.error(errMessage); } $(".tLnk2").hide(); $("body").css("", ""); $("#form1").hide() $("#form2").show(); $(".phone_dynamic").click(function () { $("#form1").show(); $("#form2").hide(); }) $(".phone_dynamic1").click(function () { $("#form2").show(); $("#form1").hide(); }); var i = 60; var flag = true; var overTime; function flagFunc(){ if(i==1){ console.log( $("#get_code>span").text()); clearTimeout(overTime); $("#get_code>span").text("获取验证码"); flag=true; i=60; return ; } i--; $("#get_code>span").text(i+"秒后重试"); } function commback(ppq){ if(ppq.result.length==6){ flag=false; overTime= setInterval(flagFunc,1000); } } $("#get_code>span").click(function(){ if(!flag){ return false; } var url ="/user/getCode/"+ $("#phone").val(); $.ajax({ url:url, type:"post", dataType:"json", success:function (ppq) { var message=$.parseJSON(ppq.data); if(message.Message!="OK"){ toastr.error("发送失败:"+message.Message); ppq.result="error"; }else{ toastr.success("发送成功!"); } commback(ppq); } }); // $(this).trigger('click'); }); });
24.804878
67
0.399705
e341fd63ae459dd31206e0d52a77a168f3827852
92
js
JavaScript
desktop/openstar/nls/ja/places.js
skylarkphp/skyphp-lucid
d0dd049c85090dfa6702a6d56cd43e66911b98bf
[ "MIT" ]
null
null
null
desktop/openstar/nls/ja/places.js
skylarkphp/skyphp-lucid
d0dd049c85090dfa6702a6d56cd43e66911b98bf
[ "MIT" ]
null
null
null
desktop/openstar/nls/ja/places.js
skylarkphp/skyphp-lucid
d0dd049c85090dfa6702a6d56cd43e66911b98bf
[ "MIT" ]
null
null
null
define({ "Public":"Public", "Desktop":"Desktop", "Home":"Home", "Documents":"Documents" });
13.142857
23
0.630435
e342563ed1649429abd765d98a9aa0bc6d8cc3d2
463
js
JavaScript
scripts/wsp-init.js
emersonthiago/Visualizador-Dicom-JS
a1922557665f0a05cb77d3834c6d54f2d7a4d0e5
[ "MIT" ]
null
null
null
scripts/wsp-init.js
emersonthiago/Visualizador-Dicom-JS
a1922557665f0a05cb77d3834c6d54f2d7a4d0e5
[ "MIT" ]
null
null
null
scripts/wsp-init.js
emersonthiago/Visualizador-Dicom-JS
a1922557665f0a05cb77d3834c6d54f2d7a4d0e5
[ "MIT" ]
null
null
null
/*! * CORE WSP InitApps * * WSP JavaScript Library v4.0 * http://websyspro.com.br/ * * Copyright WSP Foundation and other contributors * Released under the MIT license * http://websyspro.com.br/license * * Date: 2016-05-20T17:17Z */ window.initapps(() => { http( "studys", { pat_id: 651727 }).setInit(( dicomViewStudys ) => { apps().addComponent( content().addComponent( dicomView( dicomViewStudys ) ) ); }); });
21.045455
70
0.613391
e3427269ae47cfcdcb3ebe1745ebf394786dd4d5
188,361
js
JavaScript
dist/polyfills.f7e677c488a51f3cc09c.js
Hefziben/website
11441082441898af24d82ea0f709f9e91b16fed5
[ "MIT" ]
null
null
null
dist/polyfills.f7e677c488a51f3cc09c.js
Hefziben/website
11441082441898af24d82ea0f709f9e91b16fed5
[ "MIT" ]
16
2019-11-12T06:25:55.000Z
2022-03-02T06:17:13.000Z
dist/polyfills.f7e677c488a51f3cc09c.js
Hefziben/website
11441082441898af24d82ea0f709f9e91b16fed5
[ "MIT" ]
null
null
null
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"+auO":function(t,e,n){var r=n("XKFU"),i=n("lvtm");r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},"+oPb":function(t,e,n){"use strict";n("OGtf")("blink",function(t){return function(){return t(this,"blink","","")}})},"+rLv":function(t,e,n){var r=n("dyZX").document;t.exports=r&&r.documentElement},"/KAi":function(t,e,n){var r=n("XKFU"),i=n("dyZX").isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},"/SS/":function(t,e,n){var r=n("XKFU");r(r.S,"Object",{setPrototypeOf:n("i5dc").set})},"/e88":function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},"0/R4":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"0E+W":function(t,e,n){n("elZq")("Array")},"0LDn":function(t,e,n){"use strict";n("OGtf")("italics",function(t){return function(){return t(this,"i","","")}})},"0TWp":function(t,e,n){!function(){"use strict";!function(t){var e=t.performance;function n(t){e&&e.mark&&e.mark(t)}function r(t,n){e&&e.measure&&e.measure(t,n)}if(n("Zone"),t.Zone)throw new Error("Zone already loaded.");var i,o=function(){function e(t,e){this._properties=null,this._parent=t,this._name=e?e.name||"unnamed":"<root>",this._properties=e&&e.properties||{},this._zoneDelegate=new s(this,this._parent&&this._parent._zoneDelegate,e)}return e.assertZonePatched=function(){if(t.Promise!==E.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(e,"root",{get:function(){for(var t=e.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"current",{get:function(){return O.zone},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return P},enumerable:!0,configurable:!0}),e.__load_patch=function(i,o){if(E.hasOwnProperty(i))throw Error("Already loaded patch: "+i);if(!t["__Zone_disable_"+i]){var a="Zone:"+i;n(a),E[i]=o(t,e,F),r(a,a)}},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},e.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},e.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},e.prototype.wrap=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}},e.prototype.run=function(t,e,n,r){void 0===e&&(e=void 0),void 0===n&&(n=null),void 0===r&&(r=null),O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{O=O.parent}},e.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{O=O.parent}},e.prototype.runTask=function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||v).name+"; Execution: "+this.name+")");if(t.state!==m||t.type!==S){var r=t.state!=_;r&&t._transitionTo(_,b),t.runCount++;var i=P;P=t,O={parent:O,zone:this};try{t.type==T&&t.data&&!t.data.isPeriodic&&(t.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{t.state!==m&&t.state!==k&&(t.type==S||t.data&&t.data.isPeriodic?r&&t._transitionTo(b,_):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(m,_,m))),O=O.parent,P=i}}},e.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}t._transitionTo(y,m);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(e){throw t._transitionTo(k,y,m),this._zoneDelegate.handleError(this,e),e}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==y&&t._transitionTo(b,y),t},e.prototype.scheduleMicroTask=function(t,e,n,r){return this.scheduleTask(new u(x,t,e,n,r,null))},e.prototype.scheduleMacroTask=function(t,e,n,r,i){return this.scheduleTask(new u(T,t,e,n,r,i))},e.prototype.scheduleEventTask=function(t,e,n,r,i){return this.scheduleTask(new u(S,t,e,n,r,i))},e.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||v).name+"; Execution: "+this.name+")");t._transitionTo(w,b,_);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(k,w),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(m,w),t.runCount=0,t},e.prototype._updateTaskCount=function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(t.type,e)},e.__symbol__=j,e}(),a={name:"",onHasTask:function(t,e,n,r){return t.hasTask(n,r)},onScheduleTask:function(t,e,n,r){return t.scheduleTask(n,r)},onInvokeTask:function(t,e,n,r,i,o){return t.invokeTask(n,r,i,o)},onCancelTask:function(t,e,n,r){return t.cancelTask(n,r)}},s=function(){function t(t,e,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=e,this._forkZS=n&&(n&&n.onFork?n:e._forkZS),this._forkDlgt=n&&(n.onFork?e:e._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:e.zone),this._interceptZS=n&&(n.onIntercept?n:e._interceptZS),this._interceptDlgt=n&&(n.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:e.zone),this._invokeZS=n&&(n.onInvoke?n:e._invokeZS),this._invokeDlgt=n&&(n.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:e.zone),this._handleErrorZS=n&&(n.onHandleError?n:e._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:e.zone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:e._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e.zone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e.zone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e.zone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask;(r||e&&e._hasTaskZS)&&(this._hasTaskZS=r?n:a,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,n.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}return t.prototype.fork=function(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new o(t,e)},t.prototype.intercept=function(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e},t.prototype.invoke=function(t,e,n,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,i):e.apply(n,r)},t.prototype.handleError=function(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)},t.prototype.scheduleTask=function(t,e){var n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e))||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=x)throw new Error("Task is missing scheduleFn.");d(e)}return n},t.prototype.invokeTask=function(t,e,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)},t.prototype.cancelTask=function(t,e){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n},t.prototype.hasTask=function(t,e){try{return this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(e){this.handleError(t,e)}},t.prototype._updateTaskCount=function(t,e){var n=this._taskCounts,r=n[t],i=n[t]=r+e;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})},t}(),u=function(){function e(n,r,i,o,a,s){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=o,this.scheduleFn=a,this.cancelFn=s,this.callback=i;var u=this;this.invoke=n===S&&o&&o.useG?e.invokeTask:function(){return e.invokeTask.call(t,u,this,arguments)}}return e.invokeTask=function(t,e,n){t||(t=this),D++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==D&&g(),D--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(m,y)},e.prototype._transitionTo=function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==m&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},e}(),c=j("setTimeout"),l=j("Promise"),f=j("then"),h=[],p=!1;function d(e){0===D&&0===h.length&&(i||t[l]&&(i=t[l].resolve(0)),i?i[f](g):t[c](g,0)),e&&h.push(e)}function g(){if(!p){for(p=!0;h.length;){var t=h;h=[];for(var e=0;e<t.length;e++){var n=t[e];try{n.zone.runTask(n,null,null)}catch(t){F.onUnhandledError(t)}}}F.microtaskDrainDone(),p=!1}}var v={name:"NO ZONE"},m="notScheduled",y="scheduling",b="scheduled",_="running",w="canceling",k="unknown",x="microTask",T="macroTask",S="eventTask",E={},F={symbol:j,currentZoneFrame:function(){return O},onUnhandledError:M,microtaskDrainDone:M,scheduleMicroTask:d,showUncaughtError:function(){return!o[j("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:M,patchMethod:function(){return M},bindArguments:function(){return null},setNativePromise:function(t){t&&"function"==typeof t.resolve&&(i=t.resolve(0))}},O={parent:null,zone:new o(null,null)},P=null,D=0;function M(){}function j(t){return"__zone_symbol__"+t}r("Zone","Zone"),t.Zone=o}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",function(t,e,n){var r=Object.getOwnPropertyDescriptor,i=Object.defineProperty,o=n.symbol,a=[],s=o("Promise"),u=o("then"),c="__creationTrace__";n.onUnhandledError=function(t){if(n.showUncaughtError()){var e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},n.microtaskDrainDone=function(){for(;a.length;)for(var t=function(){var t=a.shift();try{t.zone.runGuarded(function(){throw t})}catch(t){f(t)}};a.length;)t()};var l=o("unhandledPromiseRejectionHandler");function f(t){n.onUnhandledError(t);try{var r=e[l];r&&"function"==typeof r&&r.call(this,t)}catch(t){}}function h(t){return t&&t.then}function p(t){return t}function d(t){return N.reject(t)}var g=o("state"),v=o("value"),m=o("finally"),y=o("parentPromiseValue"),b=o("parentPromiseState"),_="Promise.then",w=null,k=!0,x=!1,T=0;function S(t,e){return function(n){try{P(t,e,n)}catch(e){P(t,!1,e)}}}var E=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},F="Promise resolved with itself",O=o("currentTaskTrace");function P(t,r,o){var s,u=E();if(t===o)throw new TypeError(F);if(t[g]===w){var l=null;try{"object"!=typeof o&&"function"!=typeof o||(l=o&&o.then)}catch(e){return u(function(){P(t,!1,e)})(),t}if(r!==x&&o instanceof N&&o.hasOwnProperty(g)&&o.hasOwnProperty(v)&&o[g]!==w)M(o),P(t,o[g],o[v]);else if(r!==x&&"function"==typeof l)try{l.call(o,u(S(t,r)),u(S(t,!1)))}catch(e){u(function(){P(t,!1,e)})()}else{t[g]=r;var f=t[v];if(t[v]=o,t[m]===m&&r===k&&(t[g]=t[b],t[v]=t[y]),r===x&&o instanceof Error){var h=e.currentTask&&e.currentTask.data&&e.currentTask.data[c];h&&i(o,O,{configurable:!0,enumerable:!1,writable:!0,value:h})}for(var p=0;p<f.length;)j(t,f[p++],f[p++],f[p++],f[p++]);if(0==f.length&&r==x){t[g]=T;try{throw new Error("Uncaught (in promise): "+((s=o)&&s.toString===Object.prototype.toString?(s.constructor&&s.constructor.name||"")+": "+JSON.stringify(s):s?s.toString():Object.prototype.toString.call(s))+(o&&o.stack?"\n"+o.stack:""))}catch(r){var d=r;d.rejection=o,d.promise=t,d.zone=e.current,d.task=e.currentTask,a.push(d),n.scheduleMicroTask()}}}}return t}var D=o("rejectionHandledHandler");function M(t){if(t[g]===T){try{var n=e[D];n&&"function"==typeof n&&n.call(this,{rejection:t[v],promise:t})}catch(t){}t[g]=x;for(var r=0;r<a.length;r++)t===a[r].promise&&a.splice(r,1)}}function j(t,e,n,r,i){M(t);var o=t[g],a=o?"function"==typeof r?r:p:"function"==typeof i?i:d;e.scheduleMicroTask(_,function(){try{var r=t[v],i=n&&m===n[m];i&&(n[y]=r,n[b]=o);var s=e.run(a,void 0,i&&a!==d&&a!==p?[]:[r]);P(n,!0,s)}catch(t){P(n,!1,t)}},n)}var N=function(){function t(e){if(!(this instanceof t))throw new Error("Must be an instanceof Promise.");this[g]=w,this[v]=[];try{e&&e(S(this,k),S(this,x))}catch(t){P(this,!1,t)}}return t.toString=function(){return"function ZoneAwarePromise() { [native code] }"},t.resolve=function(t){return P(new this(null),k,t)},t.reject=function(t){return P(new this(null),x,t)},t.race=function(t){var e,n,r=new this(function(t,r){e=t,n=r});function i(t){r&&(r=e(t))}function o(t){r&&(r=n(t))}for(var a=0,s=t;a<s.length;a++){var u=s[a];h(u)||(u=this.resolve(u)),u.then(i,o)}return r},t.all=function(t){for(var e,n,r=new this(function(t,r){e=t,n=r}),i=0,o=[],a=0,s=t;a<s.length;a++){var u=s[a];h(u)||(u=this.resolve(u)),u.then(function(t){return function(n){o[t]=n,--i||e(o)}}(i),n),i++}return i||e(o),r},t.prototype.then=function(t,n){var r=new this.constructor(null),i=e.current;return this[g]==w?this[v].push(i,r,t,n):j(this,i,r,t,n),r},t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var n=new this.constructor(null);n[m]=m;var r=e.current;return this[g]==w?this[v].push(r,n,t,t):j(this,r,n,t,t),n},t}();N.resolve=N.resolve,N.reject=N.reject,N.race=N.race,N.all=N.all;var R=t[s]=t.Promise,L=e.__symbol__("ZoneAwarePromise"),A=r(t,"Promise");A&&!A.configurable||(A&&delete A.writable,A&&delete A.value,A||(A={configurable:!0,enumerable:!0}),A.get=function(){return t[L]?t[L]:t[s]},A.set=function(e){e===N?t[L]=e:(t[s]=e,e.prototype[u]||C(e),n.setNativePromise(e))},i(t,"Promise",A)),t.Promise=N;var z,I=o("thenPatched");function C(t){var e=t.prototype,n=r(e,"then");if(!n||!1!==n.writable&&n.configurable){var i=e.then;e[u]=i,t.prototype.then=function(t,e){var n=this;return new N(function(t,e){i.call(n,t,e)}).then(t,e)},t[I]=!0}}if(R){C(R);var U=t.fetch;"function"==typeof U&&(t.fetch=(z=U,function(){var t=z.apply(this,arguments);if(t instanceof N)return t;var e=t.constructor;return e[I]||C(e),t}))}return Promise[e.__symbol__("uncaughtPromiseErrors")]=a,N});var t=Object.getOwnPropertyDescriptor,e=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,i=Array.prototype.slice,o="addEventListener",a="removeEventListener",s=Zone.__symbol__(o),u=Zone.__symbol__(a),c="true",l="false",f="__zone_symbol__";function h(t,e){return Zone.current.wrap(t,e)}function p(t,e,n,r,i){return Zone.current.scheduleMacroTask(t,e,n,r,i)}var d=Zone.__symbol__,g="undefined"!=typeof window,v=g?window:void 0,m=g&&v||"object"==typeof self&&self||global,y="removeAttribute",b=[null];function _(t,e){for(var n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=h(t[n],e+"_"+n));return t}function w(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}var k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,x=!("nw"in m)&&void 0!==m.process&&"[object process]"==={}.toString.call(m.process),T=!x&&!k&&!(!g||!v.HTMLElement),S=void 0!==m.process&&"[object process]"==={}.toString.call(m.process)&&!k&&!(!g||!v.HTMLElement),E={},F=function(t){if(t=t||m.event){var e=E[t.type];e||(e=E[t.type]=d("ON_PROPERTY"+t.type));var n=(this||t.target||m)[e],r=n&&n.apply(this,arguments);return void 0==r||r||t.preventDefault(),r}};function O(n,r,i){var o=t(n,r);if(!o&&i&&t(i,r)&&(o={enumerable:!0,configurable:!0}),o&&o.configurable){delete o.writable,delete o.value;var a=o.get,s=o.set,u=r.substr(2),c=E[u];c||(c=E[u]=d("ON_PROPERTY"+u)),o.set=function(t){var e=this;e||n!==m||(e=m),e&&(e[c]&&e.removeEventListener(u,F),s&&s.apply(e,b),"function"==typeof t?(e[c]=t,e.addEventListener(u,F,!1)):e[c]=null)},o.get=function(){var t=this;if(t||n!==m||(t=m),!t)return null;var e=t[c];if(e)return e;if(a){var i=a&&a.call(this);if(i)return o.set.call(this,i),"function"==typeof t[y]&&t.removeAttribute(r),i}return null},e(n,r,o)}}function P(t,e,n){if(e)for(var r=0;r<e.length;r++)O(t,"on"+e[r],n);else{var i=[];for(var o in t)"on"==o.substr(0,2)&&i.push(o);for(var a=0;a<i.length;a++)O(t,i[a],n)}}var D=d("originalInstance");function M(t){var n=m[t];if(n){m[d(t)]=n,m[t]=function(){var e=_(arguments,t);switch(e.length){case 0:this[D]=new n;break;case 1:this[D]=new n(e[0]);break;case 2:this[D]=new n(e[0],e[1]);break;case 3:this[D]=new n(e[0],e[1],e[2]);break;case 4:this[D]=new n(e[0],e[1],e[2],e[3]);break;default:throw new Error("Arg list too long.")}},N(m[t],n);var r,i=new n(function(){});for(r in i)"XMLHttpRequest"===t&&"responseBlob"===r||function(n){"function"==typeof i[n]?m[t].prototype[n]=function(){return this[D][n].apply(this[D],arguments)}:e(m[t].prototype,n,{set:function(e){"function"==typeof e?(this[D][n]=h(e,t+"."+n),N(this[D][n],e)):this[D][n]=e},get:function(){return this[D][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(m[t][r]=n[r])}}function j(e,r,i){for(var o=e;o&&!o.hasOwnProperty(r);)o=n(o);!o&&e[r]&&(o=e);var a,s=d(r);if(o&&!(a=o[s])&&(a=o[s]=o[r],w(o&&t(o,r)))){var u=i(a,s,r);o[r]=function(){return u(this,arguments)},N(o[r],a)}return a}function N(t,e){t[d("OriginalDelegate")]=e}var R=!1,L=!1;function A(){if(R)return L;R=!0;try{var t=v.navigator.userAgent;return-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(L=!0),L}catch(t){}}Zone.__load_patch("toString",function(t){var e=Function.prototype.toString,n=d("OriginalDelegate"),r=d("Promise"),i=d("Error"),o=function(){if("function"==typeof this){var o=this[n];if(o)return"function"==typeof o?e.apply(this[n],arguments):Object.prototype.toString.call(o);if(this===Promise){var a=t[r];if(a)return e.apply(a,arguments)}if(this===Error){var s=t[i];if(s)return e.apply(s,arguments)}}return e.apply(this,arguments)};o[n]=e,Function.prototype.toString=o;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.apply(this,arguments)}});var z={useG:!0},I={},C={},U=/^__zone_symbol__(\w+)(true|false)$/,K="__zone_symbol__propagationStopped";function Z(t,e,r){var i=r&&r.add||o,s=r&&r.rm||a,u=r&&r.listeners||"eventListeners",h=r&&r.rmAll||"removeAllListeners",p=d(i),g="."+i+":",v="prependListener",m="."+v+":",y=function(t,e,n){if(!t.isRemoved){var r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,e,[n]);var i=t.options;i&&"object"==typeof i&&i.once&&e[s].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,i)}},b=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[I[e.type][l]];if(r)if(1===r.length)y(r[0],n,e);else for(var i=r.slice(),o=0;o<i.length&&(!e||!0!==e[K]);o++)y(i[o],n,e)}},_=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[I[e.type][c]];if(r)if(1===r.length)y(r[0],n,e);else for(var i=r.slice(),o=0;o<i.length&&(!e||!0!==e[K]);o++)y(i[o],n,e)}};function w(e,r){if(!e)return!1;var o=!0;r&&void 0!==r.useG&&(o=r.useG);var a=r&&r.vh,y=!0;r&&void 0!==r.chkDup&&(y=r.chkDup);var w=!1;r&&void 0!==r.rt&&(w=r.rt);for(var k=e;k&&!k.hasOwnProperty(i);)k=n(k);if(!k&&e[i]&&(k=e),!k)return!1;if(k[p])return!1;var x,T={},S=k[p]=k[i],E=k[d(s)]=k[s],F=k[d(u)]=k[u],O=k[d(h)]=k[h];r&&r.prepend&&(x=k[d(r.prepend)]=k[r.prepend]);var P=o?function(){if(!T.isExisting)return S.call(T.target,T.eventName,T.capture?_:b,T.options)}:function(t){return S.call(T.target,T.eventName,t.invoke,T.options)},D=o?function(t){if(!t.isRemoved){var e=I[t.eventName],n=void 0;e&&(n=e[t.capture?c:l]);var r=n&&t.target[n];if(r)for(var i=0;i<r.length;i++)if(r[i]===t){r.splice(i,1),t.isRemoved=!0,0===r.length&&(t.allRemoved=!0,t.target[n]=null);break}}if(t.allRemoved)return E.call(t.target,t.eventName,t.capture?_:b,t.options)}:function(t){return E.call(t.target,t.eventName,t.invoke,t.options)},M=r&&r.diff?r.diff:function(t,e){var n=typeof e;return"function"===n&&t.callback===e||"object"===n&&t.originalDelegate===e},j=Zone[Zone.__symbol__("BLACK_LISTED_EVENTS")],R=function(e,n,r,i,s,u){return void 0===s&&(s=!1),void 0===u&&(u=!1),function(){var h=this||t,p=arguments[1];if(!p)return e.apply(this,arguments);var d=!1;if("function"!=typeof p){if(!p.handleEvent)return e.apply(this,arguments);d=!0}if(!a||a(e,p,h,arguments)){var g,v=arguments[0],m=arguments[2];if(j)for(var b=0;b<j.length;b++)if(v===j[b])return e.apply(this,arguments);var _=!1;void 0===m?g=!1:!0===m?g=!0:!1===m?g=!1:(g=!!m&&!!m.capture,_=!!m&&!!m.once);var w,k=Zone.current,x=I[v];if(x)w=x[g?c:l];else{var S=f+(v+l),E=f+(v+c);I[v]={},I[v][l]=S,I[v][c]=E,w=g?E:S}var F,O=h[w],P=!1;if(O){if(P=!0,y)for(b=0;b<O.length;b++)if(M(O[b],p))return}else O=h[w]=[];var D=h.constructor.name,N=C[D];N&&(F=N[v]),F||(F=D+n+v),T.options=m,_&&(T.options.once=!1),T.target=h,T.capture=g,T.eventName=v,T.isExisting=P;var R=o?z:null;R&&(R.taskData=T);var L=k.scheduleEventTask(F,p,R,r,i);return T.target=null,R&&(R.taskData=null),_&&(m.once=!0),L.options=m,L.target=h,L.capture=g,L.eventName=v,d&&(L.originalDelegate=p),u?O.unshift(L):O.push(L),s?h:void 0}}};return k[i]=R(S,g,P,D,w),x&&(k[v]=R(x,m,function(t){return x.call(T.target,T.eventName,t.invoke,T.options)},D,w,!0)),k[s]=function(){var e,n=this||t,r=arguments[0],i=arguments[2];e=void 0!==i&&(!0===i||!1!==i&&!!i&&!!i.capture);var o=arguments[1];if(!o)return E.apply(this,arguments);if(!a||a(E,o,n,arguments)){var s,u=I[r];u&&(s=u[e?c:l]);var f=s&&n[s];if(f)for(var h=0;h<f.length;h++){var p=f[h];if(M(p,o))return f.splice(h,1),p.isRemoved=!0,0===f.length&&(p.allRemoved=!0,n[s]=null),p.zone.cancelTask(p),w?n:void 0}return E.apply(this,arguments)}},k[u]=function(){for(var e=[],n=q(this||t,arguments[0]),r=0;r<n.length;r++){var i=n[r];e.push(i.originalDelegate?i.originalDelegate:i.callback)}return e},k[h]=function(){var e=this||t,n=arguments[0];if(n){var r=I[n];if(r){var i=e[r[l]],o=e[r[c]];if(i){var a=i.slice();for(p=0;p<a.length;p++)this[s].call(this,n,(u=a[p]).originalDelegate?u.originalDelegate:u.callback,u.options)}if(o)for(a=o.slice(),p=0;p<a.length;p++){var u;this[s].call(this,n,(u=a[p]).originalDelegate?u.originalDelegate:u.callback,u.options)}}}else{for(var f=Object.keys(e),p=0;p<f.length;p++){var d=U.exec(f[p]),g=d&&d[1];g&&"removeListener"!==g&&this[h].call(this,g)}this[h].call(this,"removeListener")}if(w)return this},N(k[i],S),N(k[s],E),O&&N(k[h],O),F&&N(k[u],F),!0}for(var k=[],x=0;x<e.length;x++)k[x]=w(e[x],r);return k}function q(t,e){var n=[];for(var r in t){var i=U.exec(r),o=i&&i[1];if(o&&(!e||o===e)){var a=t[r];if(a)for(var s=0;s<a.length;s++)n.push(a[s])}}return n}var X=d("zoneTask");function H(t,e,n,r){var i=null,o=null;n+=r;var a={};function s(e){var n=e.data;return n.args[0]=function(){try{e.invoke.apply(this,arguments)}finally{e.data&&e.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[X]=null))}},n.handleId=i.apply(t,n.args),e}function u(t){return o(t.data.handleId)}i=j(t,e+=r,function(n){return function(i,o){if("function"==typeof o[0]){var c=p(e,o[0],{handleId:null,isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?o[1]||0:null,args:o},s,u);if(!c)return c;var l=c.data.handleId;return"number"==typeof l?a[l]=c:l&&(l[X]=c),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(c.ref=l.ref.bind(l),c.unref=l.unref.bind(l)),"number"==typeof l||l?l:c}return n.apply(t,o)}}),o=j(t,n,function(e){return function(n,r){var i,o=r[0];"number"==typeof o?i=a[o]:(i=o&&o[X])||(i=o),i&&"string"==typeof i.type?"notScheduled"!==i.state&&(i.cancelFn&&i.data.isPeriodic||0===i.runCount)&&("number"==typeof o?delete a[o]:o&&(o[X]=null),i.zone.cancelTask(i)):e.apply(t,r)}})}var W=Object[d("defineProperty")]=Object.defineProperty,V=Object[d("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,G=Object.create,B=d("unconfigurables");function Y(t,e){return t&&t[B]&&t[B][e]}function J(t,e,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(t[B]||Object.isFrozen(t)||W(t,B,{writable:!0,value:{}}),t[B]&&(t[B][e]=!0)),n}function Q(t,e,n,r){try{return W(t,e,n)}catch(o){if(!n.configurable)throw o;void 0===r?delete n.configurable:n.configurable=r;try{return W(t,e,n)}catch(r){var i=null;try{i=JSON.stringify(n)}catch(t){i=n.toString()}console.log("Attempting to configure '"+e+"' with descriptor '"+i+"' on object '"+t+"' and got error, giving up: "+r)}}}var $=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplyconnected","vrdisplaydisconnected","vrdisplaypresentchange"],tt=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],et=["load"],nt=["blur","error","focus","load","resize","scroll","messageerror"],rt=["bounce","finish","start"],it=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ot=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],at=["close","error","open","message"],st=["error","message"],ut=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange"],$,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ct(t,e,n,r){t&&P(t,function(t,e,n){if(!n)return e;var r=n.filter(function(e){return e.target===t});if(!r||0===r.length)return e;var i=r[0].ignoreProperties;return e.filter(function(t){return-1===i.indexOf(t)})}(t,e,n),r)}function lt(s,u){if(!x||S){var c="undefined"!=typeof WebSocket;if(function(){if((T||S)&&!t(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var n=t(Element.prototype,"onclick");if(n&&!n.configurable)return!1}var r=XMLHttpRequest.prototype,i=t(r,"onreadystatechange");if(i){e(r,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}});var o=!!(s=new XMLHttpRequest).onreadystatechange;return e(r,"onreadystatechange",i||{}),o}var a=d("fake");e(r,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[a]},set:function(t){this[a]=t}});var s,u=function(){};return(s=new XMLHttpRequest).onreadystatechange=u,o=s[a]===u,s.onreadystatechange=null,o}()){var l=u.__Zone_ignore_on_properties;if(T){var f=window;ct(f,ut.concat(["messageerror"]),l,n(f)),ct(Document.prototype,ut,l),void 0!==f.SVGElement&&ct(f.SVGElement.prototype,ut,l),ct(Element.prototype,ut,l),ct(HTMLElement.prototype,ut,l),ct(HTMLMediaElement.prototype,tt,l),ct(HTMLFrameSetElement.prototype,$.concat(nt),l),ct(HTMLBodyElement.prototype,$.concat(nt),l),ct(HTMLFrameElement.prototype,et,l),ct(HTMLIFrameElement.prototype,et,l);var p=f.HTMLMarqueeElement;p&&ct(p.prototype,rt,l);var g=f.Worker;g&&ct(g.prototype,st,l)}ct(XMLHttpRequest.prototype,it,l);var v=u.XMLHttpRequestEventTarget;v&&ct(v&&v.prototype,it,l),"undefined"!=typeof IDBIndex&&(ct(IDBIndex.prototype,ot,l),ct(IDBRequest.prototype,ot,l),ct(IDBOpenDBRequest.prototype,ot,l),ct(IDBDatabase.prototype,ot,l),ct(IDBTransaction.prototype,ot,l),ct(IDBCursor.prototype,ot,l)),c&&ct(WebSocket.prototype,at,l)}else!function(){for(var t=function(t){var e=ut[t],n="on"+e;self.addEventListener(e,function(t){var e,r,i=t.target;for(r=i?i.constructor.name+"."+n:"unknown."+n;i;)i[n]&&!i[n][ft]&&((e=h(i[n],r))[ft]=i[n],i[n]=e),i=i.parentElement},!0)},e=0;e<ut.length;e++)t(e)}(),M("XMLHttpRequest"),c&&function(e,n){var s=n.WebSocket;n.EventTarget||Z(n,[s.prototype]),n.WebSocket=function(e,n){var u,c,l=arguments.length>1?new s(e,n):new s(e),f=t(l,"onmessage");return f&&!1===f.configurable?(u=r(l),c=l,[o,a,"send","close"].forEach(function(t){u[t]=function(){var e=i.call(arguments);if(t===o||t===a){var n=e.length>0?e[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);l[r]=u[r]}}return l[t].apply(l,e)}})):u=l,P(u,["close","error","message","open"],c),u};var u=n.WebSocket;for(var c in s)u[c]=s[c]}(0,u)}}var ft=d("unbound");Zone.__load_patch("util",function(t,e,n){n.patchOnProperties=P,n.patchMethod=j,n.bindArguments=_}),Zone.__load_patch("timers",function(t){H(t,"set","clear","Timeout"),H(t,"set","clear","Interval"),H(t,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(t){H(t,"request","cancel","AnimationFrame"),H(t,"mozRequest","mozCancel","AnimationFrame"),H(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(t,e){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)j(t,n[r],function(n,r,i){return function(r,o){return e.current.run(n,t,o,i)}})}),Zone.__load_patch("EventTarget",function(t,e,n){var r=e.__symbol__("BLACK_LISTED_EVENTS");t[r]&&(e[r]=t[r]),function(t,e){!function(t,e){var n=t.Event;n&&n.prototype&&e.patchMethod(n.prototype,"stopImmediatePropagation",function(t){return function(e,n){e[K]=!0,t&&t.apply(e,n)}})}(t,e)}(t,n),function(t,e){var n="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video",r="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),i=[],o=t.wtf,a=n.split(",");o?i=a.map(function(t){return"HTML"+t+"Element"}).concat(r):t.EventTarget?i.push("EventTarget"):i=r;for(var s=t.__Zone_disable_IE_check||!1,u=t.__Zone_enable_cross_context_check||!1,h=A(),p="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",d=0;d<ut.length;d++){var g=f+((_=ut[d])+l),v=f+(_+c);I[_]={},I[_][l]=g,I[_][c]=v}for(d=0;d<n.length;d++)for(var m=a[d],y=C[m]={},b=0;b<ut.length;b++){var _;y[_=ut[b]]=m+".addEventListener:"+_}var w=[];for(d=0;d<i.length;d++){var k=t[i[d]];w.push(k&&k.prototype)}Z(t,w,{vh:function(t,e,n,r){if(!s&&h){if(u)try{var i;if("[object FunctionWrapper]"===(i=e.toString())||i==p)return t.apply(n,r),!1}catch(e){return t.apply(n,r),!1}else if("[object FunctionWrapper]"===(i=e.toString())||i==p)return t.apply(n,r),!1}else if(u)try{e.toString()}catch(e){return t.apply(n,r),!1}return!0}}),e.patchEventTarget=Z}(t,n);var i=t.XMLHttpRequestEventTarget;i&&i.prototype&&n.patchEventTarget(t,[i.prototype]),M("MutationObserver"),M("WebKitMutationObserver"),M("IntersectionObserver"),M("FileReader")}),Zone.__load_patch("on_property",function(e,n,r){lt(0,e),Object.defineProperty=function(t,e,n){if(Y(t,e))throw new TypeError("Cannot assign to read only property '"+e+"' of "+t);var r=n.configurable;return"prototype"!==e&&(n=J(t,e,n)),Q(t,e,n,r)},Object.defineProperties=function(t,e){return Object.keys(e).forEach(function(n){Object.defineProperty(t,n,e[n])}),t},Object.create=function(t,e){return"object"!=typeof e||Object.isFrozen(e)||Object.keys(e).forEach(function(n){e[n]=J(t,n,e[n])}),G(t,e)},Object.getOwnPropertyDescriptor=function(t,e){var n=V(t,e);return Y(t,e)&&(n.configurable=!1),n},function(n){if((T||S)&&"registerElement"in e.document){var r=document.registerElement,i=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(e,n){return n&&n.prototype&&i.forEach(function(e){var r,i,o,a,s="Document.registerElement::"+e,u=n.prototype;if(u.hasOwnProperty(e)){var c=t(u,e);c&&c.value?(c.value=h(c.value,s),a=(o=c).configurable,Q(r=n.prototype,i=e,o=J(r,i,o),a)):u[e]=h(u[e],s)}else u[e]&&(u[e]=h(u[e],s))}),r.call(document,e,n)},N(document.registerElement,r)}}()}),Zone.__load_patch("canvas",function(t){var e=t.HTMLCanvasElement;void 0!==e&&e.prototype&&e.prototype.toBlob&&function(t,n,r){var i=null;function o(t){var e=t.data;return e.args[e.cbIdx]=function(){t.invoke.apply(this,arguments)},i.apply(e.target,e.args),t}i=j(e.prototype,"toBlob",function(t){return function(e,n){var r=function(t,e){return{name:"HTMLCanvasElement.toBlob",target:t,cbIdx:0,args:e}}(e,n);return r.cbIdx>=0&&"function"==typeof n[r.cbIdx]?p(r.name,n[r.cbIdx],r,o,null):t.apply(e,n)}})}()}),Zone.__load_patch("XHR",function(t,e){!function(e){var c=XMLHttpRequest.prototype,l=c[s],f=c[u];if(!l){var h=t.XMLHttpRequestEventTarget;if(h){var d=h.prototype;l=d[s],f=d[u]}}var g="readystatechange",v="scheduled";function m(t){XMLHttpRequest[o]=!1;var e=t.data,r=e.target,a=r[i];l||(l=r[s],f=r[u]),a&&f.call(r,g,a);var c=r[i]=function(){r.readyState===r.DONE&&!e.aborted&&XMLHttpRequest[o]&&t.state===v&&t.invoke()};return l.call(r,g,c),r[n]||(r[n]=t),w.apply(r,e.args),XMLHttpRequest[o]=!0,t}function y(){}function b(t){var e=t.data;return e.aborted=!0,k.apply(e.target,e.args)}var _=j(c,"open",function(){return function(t,e){return t[r]=0==e[2],t[a]=e[1],_.apply(t,e)}}),w=j(c,"send",function(){return function(t,e){return t[r]?w.apply(t,e):p("XMLHttpRequest.send",y,{target:t,url:t[a],isPeriodic:!1,delay:null,args:e,aborted:!1},m,b)}}),k=j(c,"abort",function(){return function(t){var e=t[n];if(e&&"string"==typeof e.type){if(null==e.cancelFn||e.data&&e.data.aborted)return;e.zone.cancelTask(e)}}})}();var n=d("xhrTask"),r=d("xhrSync"),i=d("xhrListener"),o=d("xhrScheduled"),a=d("xhrURL")}),Zone.__load_patch("geolocation",function(e){e.navigator&&e.navigator.geolocation&&function(e,n){for(var r=e.constructor.name,i=function(i){var o=n[i],a=e[o];if(a){if(!w(t(e,o)))return"continue";e[o]=function(t){var e=function(){return t.apply(this,_(arguments,r+"."+o))};return N(e,t),e}(a)}},o=0;o<n.length;o++)i(o)}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(t,e){function n(e){return function(n){q(t,e).forEach(function(r){var i=t.PromiseRejectionEvent;if(i){var o=new i(e,{promise:n.promise,reason:n.rejection});r.invoke(o)}})}}t.PromiseRejectionEvent&&(e[d("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[d("rejectionHandledHandler")]=n("rejectionhandled"))})}()},"0YWM":function(t,e,n){var r=n("EemH"),i=n("OP3Y"),o=n("aagx"),a=n("XKFU"),s=n("0/R4"),u=n("y3w9");a(a.S,"Reflect",{get:function t(e,n){var a,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(a=r.f(e,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=i(e))?t(c,n,l):void 0}})},"0l/t":function(t,e,n){"use strict";var r=n("XKFU"),i=n("CkkT")(2);r(r.P+r.F*!n("LyE8")([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},"0mN4":function(t,e,n){"use strict";n("OGtf")("fixed",function(t){return function(){return t(this,"tt","","")}})},"0sh+":function(t,e,n){var r=n("quPj"),i=n("vhPU");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},"11IZ":function(t,e,n){var r=n("dyZX").parseFloat,i=n("qncB").trim;t.exports=1/r(n("/e88")+"-0")!=-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},"1MBn":function(t,e,n){var r=n("DVgA"),i=n("JiEa"),o=n("UqcF");t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},"1TsA":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},"1sa7":function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},"25dN":function(t,e,n){var r=n("XKFU");r(r.S,"Object",{is:n("g6HL")})},"2OiF":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"2Spj":function(t,e,n){var r=n("XKFU");r(r.P,"Function",{bind:n("8MEG")})},"2atp":function(t,e,n){var r=n("XKFU"),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},3:function(t,e){},"3Lyj":function(t,e,n){var r=n("KroJ");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},"3xty":function(t,e,n){var r=n("XKFU"),i=n("2OiF"),o=n("y3w9"),a=(n("dyZX").Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n("eeVq")(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var r=i(t),u=o(n);return a?a(r,e,u):s.call(r,e,u)}})},4:function(t,e,n){t.exports=n("hN/g")},"45Tv":function(t,e,n){var r=n("N6cJ"),i=n("y3w9"),o=n("OP3Y"),a=r.has,s=r.get,u=r.key,c=function(t,e,n){if(a(t,e,n))return s(t,e,n);var r=o(e);return null!==r?c(t,r,n):void 0};r.exp({getMetadata:function(t,e){return c(t,i(e),arguments.length<3?void 0:u(arguments[2]))}})},"49D4":function(t,e,n){var r=n("N6cJ"),i=n("y3w9"),o=r.key,a=r.set;r.exp({defineMetadata:function(t,e,n,r){a(t,e,i(n),o(r))}})},"4A4+":function(t,e,n){n("2Spj"),n("f3/d"),n("IXt9"),t.exports=n("g3g5").Function},"4LiD":function(t,e,n){"use strict";var r=n("dyZX"),i=n("XKFU"),o=n("KroJ"),a=n("3Lyj"),s=n("Z6vF"),u=n("SlkY"),c=n("9gX7"),l=n("0/R4"),f=n("eeVq"),h=n("XMVh"),p=n("fyDq"),d=n("Xbzi");t.exports=function(t,e,n,g,v,m){var y=r[t],b=y,_=v?"set":"add",w=b&&b.prototype,k={},x=function(t){var e=w[t];o(w,t,"delete"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||w.forEach&&!f(function(){(new b).entries().next()}))){var T=new b,S=T[_](m?{}:-0,1)!=T,E=f(function(){T.has(1)}),F=h(function(t){new b(t)}),O=!m&&f(function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)});F||((b=e(function(e,n){c(e,b,t);var r=d(new y,e,b);return void 0!=n&&u(n,v,r[_],r),r})).prototype=w,w.constructor=b),(E||O)&&(x("delete"),x("has"),v&&x("get")),(O||S)&&x(_),m&&w.clear&&delete w.clear}else b=g.getConstructor(e,t,v,_),a(b.prototype,n),s.NEED=!0;return p(b,t),k[t]=b,i(i.G+i.W+i.F*(b!=y),k),m||g.setStrong(b,t,v),b}},"4R4u":function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"5Pf0":function(t,e,n){var r=n("S/j/"),i=n("OP3Y");n("Xtr8")("getPrototypeOf",function(){return function(t){return i(r(t))}})},"5yqK":function(t,e){"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))?function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,r=arguments.length;for(n=0;n<r;n++)e.call(this,arguments[n])}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}():function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},o=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(t,e)},s=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=s.prototype=[],c=function(){return new s(this)};if(o.prototype=Error.prototype,u.item=function(t){return this[t]||null},u.contains=function(t){return-1!==a(this,t+="")},u.add=function(){var t,e=arguments,n=0,r=e.length,i=!1;do{-1===a(this,t=e[n]+"")&&(this.push(t),i=!0)}while(++n<r);i&&this._updateClassName()},u.remove=function(){var t,e,n=arguments,r=0,i=n.length,o=!1;do{for(e=a(this,t=n[r]+"");-1!==e;)this.splice(e,1),o=!0,e=a(this,t)}while(++r<i);o&&this._updateClassName()},u.toggle=function(t,e){var n=this.contains(t+=""),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var l={get:c,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",l)}catch(t){-2146823252===t.number&&(l.enumerable=!1,n.defineProperty(e,"classList",l))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",c)}}(self))},"694e":function(t,e,n){var r=n("EemH"),i=n("XKFU"),o=n("y3w9");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},"6AQ9":function(t,e,n){"use strict";var r=n("XKFU"),i=n("8a7r");r(r.S+r.F*n("eeVq")(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},"6FMO":function(t,e,n){var r=n("0/R4"),i=n("EWmC"),o=n("K0xU")("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},"6dTf":function(t,e){var n,r,i;n=function(){return this}(),i={},function(t,e){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=h}function r(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(e,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach(function(n){if("auto"!=e[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof e[n]||isNaN(e[n])))return;if("fill"==n&&-1==l.indexOf(e[n]))return;if("direction"==n&&-1==f.indexOf(e[n]))return;if("playbackRate"==n&&1!==e[n]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=e[n]}}):o.duration=e,o}function o(t,e,n,r){return t<0||t>1||n<0||n>1?h:function(i){function o(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return t>0?a=e/t:!e&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&t<1&&(s=(e-1)/(t-1)),1+s*(i-1)}for(var u=0,c=1;u<c;){var l=(u+c)/2,f=o(t,n,l);if(Math.abs(i-f)<1e-5)return o(e,r,l);f<i?u=l:c=l}return o(e,r,l)}}function a(t,e){return function(n){if(n>=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function s(t){m||(m=document.createElement("div").style),m.animationTimingFunction="",m.animationTimingFunction=t;var e=m.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return h;var e=b.exec(t);if(e)return o.apply(this,e.slice(1).map(Number));var n=_.exec(t);return n?a(Number(n[1]),{start:p,middle:d,end:g}[n[2]]):v[t]||h}function c(t,e,n){if(null==e)return w;var r=n.delay+t+n.endDelay;return e<Math.min(n.delay,r)?k:e>=Math.min(n.delay+t,r)?x:T}var l="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),h=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var p=1,d=.5,g=0,v={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,p),"step-middle":a(1,d),"step-end":a(1,g)},m=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),_=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,w=0,k=1,x=2,T=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=i,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return i(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=c(t,e,n),i=function(t,e,n,r,i){switch(r){case k:return"backwards"==e||"both"==e?0:null;case T:return n-i;case x:return"forwards"==e||"both"==e?t:null;case w:return null}}(t,n.fill,e,r,n.delay);if(null===i)return null;var o=function(t,e,n,r,i){var o=i;return 0===t?e!==k&&(o+=n):o+=r/t,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(t,e,n,r,i,o){var a=t===1/0?e%1:t%1;return 0!==a||n!==x||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(t,e,n,r){return t===x&&e===1/0?1/0:1===a?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,0,o),u=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var i=s;"alternate-reverse"===t&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?a:1-a}(n.direction);return n._easingFunction(u)},t.calculatePhase=c,t.normalizeEasing=s,t.parseEasingFunction=u}(r={}),function(t,e){function n(t,e){return t in u&&u[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var i=o[t];if(i)for(var s in a.style[t]=e,i){var u=i[s];r[u]=n(u,a.style[u])}else r[t]=n(t,e)}}function i(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in t?t.offset:1==o?1:a/(o-1),"easing"in t&&(i.easing=t.easing),"composite"in t&&(i.composite=t.composite),i[n]=r[a],e.push(i)}return e.sort(function(t,e){return t.offset-e.offset}),e}var o={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"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,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:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=i,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=i(e));for(var n=e.map(function(e){var n={};for(var i in e){var o=e[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?t.normalizeEasing(o):""+o;r(i,o,n)}return void 0==n.offset&&(n.offset=null),void 0==n.easing&&(n.easing="linear"),n}),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter(function(t){return t.offset>=0&&t.offset<=1}),o||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,i=1;i<t;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-e;a++)n[e+a].offset=r+(o-r)*a/(i-e);e=i,r=o}}}(),n}}(r),function(t){var e={};t.isDeprecated=function(t,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(t in e||console.warn("Web Animations: "+t+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),e[t]=!0,1))},t.deprecated=function(e,n,r,i){var o=i?"are":"is";if(t.isDeprecated(e,n,r,i))throw new Error(e+" "+o+" no longer supported. "+r)}}(r),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(n){void 0===t[n]&&(e=!0)})),!e)return}!function(t,e,n){e.convertEffectInput=function(n){var r=function(t){for(var e={},n=0;n<t.length;n++)for(var r in t[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:t[n].offset,easing:t[n].easing,value:t[n][r]};e[r]=e[r]||[],e[r].push(i)}for(var o in e){var a=e[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}(t.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,c=o[s].offset,l=o[u].offset,f=c,h=l;0==a&&(f=-1/0,0==l&&(u=s)),a==o.length-2&&(h=1/0,1==c&&(s=u)),r.push({applyFrom:f,applyTo:h,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:t.parseEasingFunction(o[s].easing),property:i,interpolation:e.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort(function(t,e){return t.startOffset-e.startOffset}),r}(r);return function(t,n){if(null!=n)i.filter(function(t){return n>=t.applyFrom&&n<t.applyTo}).forEach(function(r){var i=r.endOffset-r.startOffset,o=0==i?0:r.easingFunction((n-r.startOffset)/i);e.apply(t,r.property,r.interpolation(o))});else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&e.clear(t,o)}}}(r,i),function(t,e,n){function r(t){return t.replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function i(t,e,n){o[n]=o[n]||[],o[n].push([t,e])}var o={};e.addPropertiesHandler=function(t,e,n){for(var o=0;o<n.length;o++)i(t,e,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var c=i==s?[]:o[u],l=0;c&&l<c.length;l++){var f=c[l][0](i),h=c[l][0](s);if(void 0!==f&&void 0!==h){var p=c[l][1](f,h);if(p){var d=e.Interpolation.apply(null,p);return function(t){return 0==t?i:1==t?s:d(t)}}}}return e.Interpolation(!1,!0,function(t){return t?s:i})}}(r,i),function(t,e,n){e.KeyframeEffect=function(n,r,i,o){var a,s=function(e){var n=t.calculateActiveDuration(e),r=function(r){return t.calculateIterationProgress(n,r,e)};return r._totalDuration=e.delay+n+e.endDelay,r}(t.normalizeTimingInput(i)),u=e.convertEffectInput(r),c=function(){u(n,a)};return c._update=function(t){return null!==(a=s(t))},c._clear=function(){u(n,null)},c._hasSameTarget=function(t){return n===t},c._target=n,c._totalDuration=s._totalDuration,c._id=o,c}}(r,i),function(t,e){function n(t,e,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(t,e,n)}function r(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(o in t||(t[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[o])}(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var n=this._style[e];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(t){if(!t._webAnimationsPatchedStyle){var e=new r(t);try{n(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,n){t.style[e]=n},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var c in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=t,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;for(var r in e)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},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(t){return function(){return this._surrogateStyle[t]}}(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(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},s)r.prototype[c]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(c,c in u);for(var l in document.documentElement.style)l in a||l in s||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(l);t.apply=function(e,n,r){i(e),e.style._set(t.propertyName(n),r)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(i),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(i),i.Interpolation=function(t,e,n){return function(r){return n(function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n)return r<.5?e:n;if(e.length==n.length){for(var i=[],o=0;o<e.length;o++)i.push(t(e[o],n[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+n}(t,e,r))}},function(t,e){var n=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=e[r][o]*t[o][i];return n}return function(e,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=e[u]*a[u][s];var c=i[0],l=i[1],f=i[2],h=i[3],p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];p[0][0]=1-2*(l*l+f*f),p[0][1]=2*(c*l-f*h),p[0][2]=2*(c*f+l*h),p[1][0]=2*(c*l+f*h),p[1][1]=1-2*(c*c+f*f),p[1][2]=2*(l*f-c*h),p[2][0]=2*(c*f-l*h),p[2][1]=2*(l*f+c*h),p[2][2]=1-2*(c*c+l*l),a=t(a,p);var d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(d[2][1]=r[2],a=t(a,d)),r[1]&&(d[2][1]=0,d[2][0]=r[0],a=t(a,d)),r[0]&&(d[2][0]=0,d[1][0]=r[0],a=t(a,d)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];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]?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();t.composeMatrix=n,t.quat=function(e,n,r){var i=t.dot(e,n),o=[];if(1===(i=Math.max(Math.min(i,1),-1)))o=e;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(e[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(i),function(t,e,n){t.sequenceNumber=0,e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.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,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){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._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):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,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new function(t,e,n){this.target=t,this.currentTime=e,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()}(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){n.forEach(function(t){t.call(e.target,e)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(r,i),function(t,e,n){function r(t){var e=c;c=[],t<g.currentTime&&(t=g.currentTime),g._animations.sort(i),g._animations=s(t,!0,g._animations)[0],e.forEach(function(e){e[1](t)}),a()}function i(t,e){return t._sequenceNumber-e._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){p.forEach(function(t){t()}),p.length=0}function s(t,n,r){d=!0,h=!1,e.timeline.currentTime=t,f=!1;var i=[],o=[],a=[],s=[];return r.forEach(function(e){e._tick(t,n),e._inEffect?(o.push(e._effect),e._markTarget()):(i.push(e._effect),e._unmarkTarget()),e._needsTick&&(f=!0);var r=e._inEffect||e._needsTick;e._inTimeline=r,r?a.push(e):s.push(e)}),p.push.apply(p,i),p.push.apply(p,o),f&&requestAnimationFrame(function(){}),d=!1,[a,s]}var u=window.requestAnimationFrame,c=[],l=0;window.requestAnimationFrame=function(t){var e=l++;return 0==c.length&&u(r),c.push([e,t]),e},window.cancelAnimationFrame=function(t){c.forEach(function(e){e[0]==t&&(e[1]=function(){})})},o.prototype={_play:function(n){n._timing=t.normalizeTimingInput(n.timing);var r=new e.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),e.restart(),e.applyDirtiedAnimation(r),r}};var f=!1,h=!1;e.restart=function(){return f||(f=!0,requestAnimationFrame(function(){}),h=!0),h},e.applyDirtiedAnimation=function(t){if(!d){t._markTarget();var n=t._targetAnimations();n.sort(i),s(e.timeline.currentTime,!1,n.slice())[1].forEach(function(t){var e=g._animations.indexOf(t);-1!==e&&g._animations.splice(e,1)}),a()}};var p=[],d=!1,g=new o;e.timeline=g}(r,i),function(t,e){function n(t,e){for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[r];return n}function r(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function i(t){return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+(t.rad||0)}function o(t){switch(t.t){case"rotatex":var e=i(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":return e=i(t.d[0]),[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":return e=i(t.d[0]),[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=t.d[0],r=t.d[1],o=t.d[2],a=(e=i(t.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(e/2),c=u*Math.cos(e/2),l=u*u;return[1-2*(r*r+o*o)*l,2*(n*r*l+o*c),2*(n*o*l-r*c),0,2*(n*r*l-o*c),1-2*(n*n+o*o)*l,2*(r*o*l+n*c),0,2*(n*o*l+r*c),2*(r*o*l-n*c),1-2*(n*n+r*r)*l,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.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,t.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,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var f=i(t.d[0]),h=i(t.d[1]);return[1,Math.tan(h),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=i(t.d[0]),[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return e=i(t.d[0]),[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=t.d[0].px||0,r=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=t.d[0].px||0,r=t.d[1].px||0,o=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function a(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(o).reduce(r)}var s=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function e(t){var e=r(t);return[t[0]/e,t[1]/e,t[2]/e]}function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function i(t,e,n,r){return[n*t[0]+r*e[0],n*t[1]+r*e[1],n*t[2]+r*e[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===t(s))return null;var c,l=[];a[0][3]||a[1][3]||a[2][3]?(l.push(a[0][3]),l.push(a[1][3]),l.push(a[2][3]),l.push(a[3][3]),c=function(t,e){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=t[o]*e[o][r];n.push(i)}return n}(l,function(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}(function(e){for(var n=1/t(e),r=e[0][0],i=e[0][1],o=e[0][2],a=e[1][0],s=e[1][1],u=e[1][2],c=e[2][0],l=e[2][1],f=e[2][2],h=[[(s*f-u*l)*n,(o*l-i*f)*n,(i*u-o*s)*n,0],[(u*c-a*f)*n,(r*f-o*c)*n,(o*a-r*u)*n,0],[(a*l-s*c)*n,(c*i-r*l)*n,(r*s-i*a)*n,0]],p=[],d=0;d<3;d++){for(var g=0,v=0;v<3;v++)g+=e[3][v]*h[v][d];p.push(g)}return p.push(1),h.push(p),h}(s)))):c=[0,0,0,1];var f=a[3].slice(0,3),h=[];h.push(a[0].slice(0,3));var p=[];p.push(r(h[0])),h[0]=e(h[0]);var d=[];h.push(a[1].slice(0,3)),d.push(n(h[0],h[1])),h[1]=i(h[1],h[0],1,-d[0]),p.push(r(h[1])),h[1]=e(h[1]),d[0]/=p[1],h.push(a[2].slice(0,3)),d.push(n(h[0],h[2])),h[2]=i(h[2],h[0],1,-d[1]),d.push(n(h[1],h[2])),h[2]=i(h[2],h[1],1,-d[2]),p.push(r(h[2])),h[2]=e(h[2]),d[1]/=p[2],d[2]/=p[2];var g=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(h[1],h[2]);if(n(h[0],g)<0)for(u=0;u<3;u++)p[u]*=-1,h[u][0]*=-1,h[u][1]*=-1,h[u][2]*=-1;var v,m,y=h[0][0]+h[1][1]+h[2][2]+1;return y>1e-4?(v=.5/Math.sqrt(y),m=[(h[2][1]-h[1][2])*v,(h[0][2]-h[2][0])*v,(h[1][0]-h[0][1])*v,.25/v]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?m=[.25*(v=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/v,(h[0][2]+h[2][0])/v,(h[2][1]-h[1][2])/v]:h[1][1]>h[2][2]?(v=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),m=[(h[0][1]+h[1][0])/v,.25*v,(h[1][2]+h[2][1])/v,(h[0][2]-h[2][0])/v]):(v=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),m=[(h[0][2]+h[2][0])/v,(h[1][2]+h[2][1])/v,.25*v,(h[1][0]-h[0][1])/v]),[f,p,d,m,c]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[s(a(t))]},t.transformListToMatrix=a}(i),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,i){for(var o=[],a=[],s=[],u=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,i.length),c=0;c<u;c++){var l=e(r[c%r.length],i[c%i.length]);if(!l)return;o.push(l[0]),a.push(l[1]),s.push(l[2])}return[o,a,function(e){var r=e.map(function(t,e){return s[e](t)}).join(n);return t?t(r):r}]}t.consumeToken=e,t.consumeTrimmed=n,t.consumeRepeated=function(t,r,i){t=n.bind(null,t);for(var o=[];;){var a=t(i);if(!a)return[o,i];if(o.push(a[0]),!(a=e(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},t.consumeParenthesised=function(t,e){for(var n=0,r=0;r<e.length&&(!/\s|,/.test(e[r])||0!=n);r++)if("("==e[r])n++;else if(")"==e[r]&&(0==--n&&r++,n<=0))break;var i=t(e.substr(0,r));return void 0==i?void 0:[i,e.substr(r)]},t.ignore=function(t){return function(e){var n=t(e);return n&&(n[0]=void 0),n}},t.optional=function(t,e){return function(n){return t(n)||[e,n]}},t.consumeList=function(e,n){for(var r=[],i=0;i<e.length;i++){var o=t.consumeTrimmed(e[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},t.mergeNestedRepeated=r.bind(null,null),t.mergeWrappedNestedRepeated=r,t.mergeList=function(t,e,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](t[a],e[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(t){r.push(!1),i.push(!1),o.push(function(){return n[t]})}(s);return[r,i,function(t){for(var e="",n=0;n<t.length;n++)e+=o[n](t[n]);return e}]}}(i),function(t){function e(e){var n={inset:!1,lengths:[],color:null},r=t.consumeRepeated(function(e){var r;return(r=t.consumeToken(/^inset/i,e))?(n.inset=!0,r):(r=t.consumeLengthOrPercent(e))?(n.lengths.push(r[0]),r):(r=t.consumeColor(e))?(n.color=r[0],r):void 0},/^/,e);if(r&&r[0].length)return[n,r[1]]}var n=(function(e,n,r,i){function o(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var c=r[u]||o(i[u].inset),l=i[u]||o(r[u].inset);a.push(c),s.push(l)}return t.mergeNestedRepeated(e,n,a,s)}).bind(null,function(e,n){for(;e.lengths.length<Math.max(e.lengths.length,n.lengths.length);)e.lengths.push({px:0});for(;n.lengths.length<Math.max(e.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(e.inset==n.inset&&!!e.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<e.lengths.length;s++){var u=t.mergeDimensions(e.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(e.color&&n.color){var c=t.mergeColors(e.color,n.color);o[1]=c[0],a[1]=c[1],r=c[2]}return[o,a,function(t){for(var n=e.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](t[0][o])+" ";return r&&(n+=r(t[1])),n}]}},", ");t.addPropertiesHandler(function(n){var r=t.consumeRepeated(e,/^,/,n);if(r&&""==r[1])return r[0]},n,["box-shadow","text-shadow"])}(i),function(t,e){function n(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(t,e,n){return Math.min(e,Math.max(t,n))}function i(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function o(t,e){return function(i,o){return[i,o,function(i){return n(r(t,e,i))}]}}function a(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var n=[],r=0;r<e.length;r++){var o=i(e[r]);if(void 0===o)return;n.push(o)}return n}}t.clamp=r,t.addPropertiesHandler(a,function(t,e){if(t.length==e.length)return[t,e,function(t){return t.map(n).join(" ")}]},["stroke-dasharray"]),t.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(i,function(t,e){if(0!=t)return o(0,1/0)(t,e)},["flex-grow","flex-shrink"]),t.addPropertiesHandler(i,function(t,e){return[t,e,function(t){return Math.round(r(1,1/0,t))}]},["orphans","widows"]),t.addPropertiesHandler(i,function(t,e){return[t,e,Math.round]},["z-index"]),t.parseNumber=i,t.parseNumberList=a,t.mergeNumbers=function(t,e){return[t,e,n]},t.numberToString=n}(i),i.addPropertiesHandler(String,function(t,e){if("visible"==t||"visible"==e)return[0,1,function(n){return n<=0?t:n>=1?e:"visible"}]},["visibility"]),function(t,e){function n(t){t=t.trim(),o.fillStyle="#000",o.fillStyle=t;var e=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=t,e==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){function n(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(n(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(i),function(t,e){function n(t){function e(){var e=a.exec(t);o=e?e[0]:void 0}function n(){if("("!==o)return function(){var t=Number(o);return e(),t}();e();var t=i();return")"!==o?NaN:(e(),t)}function r(){for(var t=n();"*"===o||"/"===o;){var r=o;e();var i=n();"*"===r?t*=i:t/=i}return t}function i(){for(var t=r();"+"===o||"-"===o;){var n=o;e();var i=r();"+"===n?t+=i:t-=i}return t}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),i()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){var r={};e=(e=e.replace(/calc\(/g,"(")).replace(t,function(t){return r[t]=null,"U"+t});for(var i="U("+t.source+")",o=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var c=n(e.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(c))return;r[u]=c}return r}}}function i(t,e){return o(t,e,!0)}function o(e,n,r){var i,o=[];for(i in e)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return e=o.map(function(t){return e[t]||0}),n=o.map(function(t){return n[t]||0}),[e,n,function(e){var n=e.map(function(n,i){return 1==e.length&&r&&(n=Math.max(n,0)),t.numberToString(n)+o[i]}).join(" + ");return e.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),c=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=c,t.mergeDimensions=o;var l=t.consumeParenthesised.bind(null,s),f=t.consumeRepeated.bind(void 0,l,/^/),h=t.consumeRepeated.bind(void 0,f,/^,/);t.consumeSizePairList=h;var p=t.mergeNestedRepeated.bind(void 0,i," "),d=t.mergeNestedRepeated.bind(void 0,p,",");t.mergeNonNegativeSizePair=p,t.addPropertiesHandler(function(t){var e=h(t);if(e&&""==e[1])return e[0]},d,["background-size"]),t.addPropertiesHandler(u,i,["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"]),t.addPropertiesHandler(u,o,["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","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(i),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var i=t.mergeWrappedNestedRepeated.bind(null,function(t){return"rect("+t+")"},function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var i=r?e:n;if("auto"==i)return"auto";var o=t.mergeDimensions(i,i);return o[2](o[0])}]:t.mergeDimensions(e,n)},", ");t.parseBox=r,t.mergeBoxes=i,t.addPropertiesHandler(r,i,["clip"])}(i),function(t,e){function n(t){return function(e){var n=0;return t.map(function(t){return t===c?e[n++]:t})}}function r(t){return t}function i(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(e);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=h[a];if(!s)return;var u=n[2].split(","),c=s[0];if(c.length<u.length)return;for(var p=[],d=0;d<c.length;d++){var g,v=u[d],m=c[d];if(void 0===(g=v?{A:function(e){return"0"==e.trim()?f:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[m.toUpperCase()](v):{a:f,n:p[0],t:l}[m]))return;p.push(g)}if(i.push({t:a,d:p}),r.lastIndex==e.length)return i}}function o(t){return t.toFixed(6).replace(".000000","")}function a(e,n){if(e.decompositionPair!==n){e.decompositionPair=n;var r=t.makeMatrixDecomposition(e)}if(n.decompositionPair!==e){n.decompositionPair=e;var i=t.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(t){return t?n[0].d:e[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(e){var n=t.quat(r[0][3],i[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],n,e[4]).map(o).join(",")}])}function s(t){return t.replace(/[xy]/,"")}function u(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var c=null,l={px:0},f={deg:0},h={matrix:["NNNNNN",[c,c,0,0,c,c,0,0,0,0,1,0,c,c,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([c,c,1]),r],scalex:["N",n([c,1,1]),n([c,1])],scaley:["N",n([1,c,1]),n([1,c])],scalez:["N",n([1,1,c])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([c,f])],skewy:["A",null,n([f,c])],translate:["Tt",n([c,c,l]),r],translatex:["T",n([c,l,l]),n([c,l])],translatey:["T",n([l,c,l]),n([l,c])],translatez:["L",n([l,l,c])],translate3d:["TTL",r]};t.addPropertiesHandler(i,function(e,n){var r=t.makeMatrixDecomposition&&!0,i=!1;if(!e.length||!n.length){e.length||(i=!0,e=n,n=[]);for(var o=0;o<e.length;o++){var c=e[o].d,l="scale"==(v=e[o].t).substr(0,5)?1:0;n.push({t:v,d:c.map(function(t){if("number"==typeof t)return l;var e={};for(var n in t)e[n]=l;return e})})}}var f=function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)},p=[],d=[],g=[];if(e.length!=n.length){if(!r)return;p=[(x=a(e,n))[0]],d=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<e.length;o++){var v,m=e[o].t,y=n[o].t,b=e[o].d,_=n[o].d,w=h[m],k=h[y];if(f(m,y)){if(!r)return;var x=a([e[o]],[n[o]]);p.push(x[0]),d.push(x[1]),g.push(["matrix",[x[2]]])}else{if(m==y)v=m;else if(w[2]&&k[2]&&s(m)==s(y))v=s(m),b=w[2](b),_=k[2](_);else{if(!w[1]||!k[1]||u(m)!=u(y)){if(!r)return;p=[(x=a(e,n))[0]],d=[x[1]],g=[["matrix",[x[2]]]];break}v=u(m),b=w[1](b),_=k[1](_)}for(var T=[],S=[],E=[],F=0;F<b.length;F++)x=("number"==typeof b[F]?t.mergeNumbers:t.mergeDimensions)(b[F],_[F]),T[F]=x[0],S[F]=x[1],E.push(x[2]);p.push(T),d.push(S),g.push([v,E])}}if(i){var O=p;p=d,d=O}return[p,d,function(t){return t.map(function(t,e){var n=t.map(function(t,n){return g[e][1][n](t)}).join(",");return"matrix"==g[e][0]&&16==n.split(",").length&&(g[e][0]="matrix3d"),g[e][0]+"("+n+")"}).join(" ")}]},["transform"]),t.transformToSvgMatrix=function(e){var n=t.transformListToMatrix(i(e));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(i),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler(function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e},function(t,n){return[t,n,e]},["font-weight"])}(i),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function n(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function r(e,r){var i=t.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map(function(t){return"object"==typeof t?t:o[t]})}}}function i(r){var i=t.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,c=!1,l=0;l<a.length;l++){var f=a[l];"string"==typeof f?(c=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(c&&((f=e(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,c=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),t.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),t.consumePosition=i,t.mergeOffsetList=a;var s=t.mergeNestedRepeated.bind(null,a,", ");t.addPropertiesHandler(function(e){var n=t.consumeRepeated(i,/^,/,e);if(n&&""==n[1])return n[0]},s,["background-position","object-position"])}(i),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),n=t.consumeRepeated.bind(void 0,e,/^/),r=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),i=t.mergeNestedRepeated.bind(void 0,r,",");t.addPropertiesHandler(function(r){var i=t.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],i[1]));var o=t.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),n,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var a=t.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],a[1])):void 0},function(e,n){if(e[0]===n[0])return"circle"==e[0]?t.mergeList(e.slice(1),n.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),n.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==n[1]?t.mergeList(e.slice(2),n.slice(2),["polygon(",e[1],i,")"]):void 0},["shape-outside"])}(i),function(t,e){function n(t,e){e.concat([t]).forEach(function(e){e in document.documentElement.style&&(r[t]=e),i[e]=t})}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return r[t]||t},t.unprefixedPropertyName=function(t){return i[t]||t}}(i)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var t=function(){return performance.now()};else t=function(){return Date.now()};var e=window.Element.prototype.animate;window.Element.prototype.animate=function(n,r){var i=e.call(this,n,r);i._cancelHandlers=[],i.oncancel=null;var o=i.cancel;i.cancel=function(){o.call(this);var e=new function(t,e,n){this.target=t,this.currentTime=null,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()}(this,null,t()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){n.forEach(function(t){t.call(e.target,e)})},0)};var a=i.addEventListener;i.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var s=i.removeEventListener;return i.removeEventListener=function(t,e){if("cancel"==t){var n=this._cancelHandlers.indexOf(e);n>=0&&this._cancelHandlers.splice(n,1)}else s.call(this,t,e)},i}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==i}catch(t){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,n)}}}(r),n.true={}},"7Dlh":function(t,e,n){var r=n("N6cJ"),i=n("y3w9"),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},"7h0T":function(t,e,n){var r=n("XKFU");r(r.S,"Number",{isNaN:function(t){return t!=t}})},"8+KV":function(t,e,n){"use strict";var r=n("XKFU"),i=n("CkkT")(0),o=n("LyE8")([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},"84bF":function(t,e,n){"use strict";n("OGtf")("small",function(t){return function(){return t(this,"small","","")}})},"8MEG":function(t,e,n){"use strict";var r=n("2OiF"),i=n("0/R4"),o=n("MfQN"),a=[].slice,s={};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),u=function(){var r=n.concat(a.call(arguments));return this instanceof u?function(t,e,n){if(!(e in s)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)}(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(u.prototype=e.prototype),u}},"8a7r":function(t,e,n){"use strict";var r=n("hswa"),i=n("RjD/");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},"91GP":function(t,e,n){var r=n("XKFU");r(r.S+r.F,"Object",{assign:n("czNK")})},"99sg":function(t,e,n){n("ioFf"),n("hHhE"),n("HAE/"),n("WLL4"),n("mYba"),n("5Pf0"),n("RW0V"),n("JduL"),n("DW2E"),n("z2o2"),n("mura"),n("Zshi"),n("V/DX"),n("FlsD"),n("91GP"),n("25dN"),n("/SS/"),n("Btvt"),t.exports=n("g3g5").Object},"9AAn":function(t,e,n){"use strict";var r=n("wmvG"),i=n("s5qY");t.exports=n("4LiD")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},"9P93":function(t,e,n){var r=n("XKFU"),i=Math.imul;r(r.S+r.F*n("eeVq")(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},"9VmF":function(t,e,n){"use strict";var r=n("XKFU"),i=n("ne8i"),o=n("0sh+"),a="".startsWith;r(r.P+r.F*n("UUeW")("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},"9gX7":function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},"9rMk":function(t,e,n){var r=n("XKFU");r(r.S,"Reflect",{has:function(t,e){return e in t}})},A2zW:function(t,e,n){"use strict";var r=n("XKFU"),i=n("RYi7"),o=n("vvmO"),a=n("l0Rn"),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)c[n]=(r+=t*c[n])%1e7,r=u(r/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)c[e]=u((n+=c[e])/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("eeVq")(function(){s.call({})})),"Number",{toFixed:function(t){var e,n,r,s,u=o(this,l),c=i(t),g="",v="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*d(2,69,1))-69)<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(d(10,r,1),0),r=e-1;r>=23;)h(1<<23),r-=23;h(1<<r),f(1,1),h(2),v=p()}else f(0,n),f(1<<-e,0),v=p()+a.call("0",c);return c>0?g+((s=v.length)<=c?"0."+a.call("0",c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):g+v}})},Afnz:function(t,e,n){"use strict";var r=n("LQAc"),i=n("XKFU"),o=n("KroJ"),a=n("Mukb"),s=n("hPIQ"),u=n("QaDb"),c=n("fyDq"),l=n("OP3Y"),f=n("K0xU")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,d,g,v,m){u(n,e,d);var y,b,_,w=function(t){if(!h&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",x="values"==g,T=!1,S=t.prototype,E=S[f]||S["@@iterator"]||g&&S[g],F=E||w(g),O=g?x?w("entries"):F:void 0,P="Array"==e&&S.entries||E;if(P&&(_=l(P.call(new t)))!==Object.prototype&&_.next&&(c(_,k,!0),r||"function"==typeof _[f]||a(_,f,p)),x&&E&&"values"!==E.name&&(T=!0,F=function(){return E.call(this)}),r&&!m||!h&&!T&&S[f]||a(S,f,F),s[e]=F,s[k]=p,g)if(y={values:x?F:w("values"),keys:v?F:w("keys"),entries:O},m)for(b in y)b in S||o(S,b,y[b]);else i(i.P+i.F*(h||T),e,y);return y}},AphP:function(t,e,n){"use strict";var r=n("XKFU"),i=n("S/j/"),o=n("apmT");r(r.P+r.F*n("eeVq")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},AvRE:function(t,e,n){var r=n("RYi7"),i=n("vhPU");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},BC7C:function(t,e,n){var r=n("XKFU");r(r.S,"Math",{fround:n("kcoS")})},"BJ/l":function(t,e,n){var r=n("XKFU");r(r.S,"Math",{log1p:n("1sa7")})},BP8U:function(t,e,n){var r=n("XKFU"),i=n("PKUr");r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},BqfV:function(t,e,n){var r=n("N6cJ"),i=n("y3w9"),o=r.get,a=r.key;r.exp({getOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},Btvt:function(t,e,n){"use strict";var r=n("I8a+"),i={};i[n("K0xU")("toStringTag")]="z",i+""!="[object z]"&&n("KroJ")(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},"C/va":function(t,e,n){"use strict";var r=n("y3w9");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},CkkT:function(t,e,n){var r=n("m0Pp"),i=n("Ymqv"),o=n("S/j/"),a=n("ne8i"),s=n("zRwo");t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||s;return function(e,s,d){for(var g,v,m=o(e),y=i(m),b=r(s,d,3),_=a(y.length),w=0,k=n?p(e,_):u?p(e,0):void 0;_>w;w++)if((h||w in y)&&(v=b(g=y[w],w,m),t))if(n)k[w]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:k.push(g)}else if(l)return!1;return f?-1:c||l?l:k}}},CuTL:function(t,e,n){n("fyVe"),n("U2t9"),n("2atp"),n("+auO"),n("MtdB"),n("Jcmo"),n("nzyx"),n("BC7C"),n("x8ZO"),n("9P93"),n("eHKK"),n("BJ/l"),n("pp/T"),n("CyHz"),n("bBoP"),n("x8Yj"),n("hLT2"),t.exports=n("g3g5").Math},CyHz:function(t,e,n){var r=n("XKFU");r(r.S,"Math",{sign:n("lvtm")})},DNiP:function(t,e,n){"use strict";var r=n("XKFU"),i=n("eyMr");r(r.P+r.F*!n("LyE8")([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},DVgA:function(t,e,n){var r=n("zhAb"),i=n("4R4u");t.exports=Object.keys||function(t){return r(t,i)}},DW2E:function(t,e,n){var r=n("0/R4"),i=n("Z6vF").onFreeze;n("Xtr8")("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},EK0E:function(t,e,n){"use strict";var r,i=n("CkkT")(0),o=n("KroJ"),a=n("Z6vF"),s=n("czNK"),u=n("ZD67"),c=n("0/R4"),l=n("eeVq"),f=n("s5qY"),h=a.getWeak,p=Object.isExtensible,d=u.ufstore,g={},v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(c(t)){var e=h(t);return!0===e?d(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(f(this,"WeakMap"),t,e)}},y=t.exports=n("4LiD")("WeakMap",v,m,u,!0,!0);l(function(){return 7!=(new y).set((Object.freeze||Object)(g),7).get(g)})&&(s((r=u.getConstructor(v,"WeakMap")).prototype,m),a.NEED=!0,i(["delete","has","get","set"],function(t){var e=y.prototype,n=e[t];o(e,t,function(e,i){if(c(e)&&!p(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},EWmC:function(t,e,n){var r=n("LZWt");t.exports=Array.isArray||function(t){return"Array"==r(t)}},EemH:function(t,e,n){var r=n("UqcF"),i=n("RjD/"),o=n("aCFj"),a=n("apmT"),s=n("aagx"),u=n("xpql"),c=Object.getOwnPropertyDescriptor;e.f=n("nh4g")?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},FEjr:function(t,e,n){"use strict";n("OGtf")("strike",function(t){return function(){return t(this,"strike","","")}})},FJW5:function(t,e,n){var r=n("hswa"),i=n("y3w9"),o=n("DVgA");t.exports=n("nh4g")?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},FLlr:function(t,e,n){var r=n("XKFU");r(r.P,"String",{repeat:n("l0Rn")})},FZcq:function(t,e,n){n("49D4"),n("zq+C"),n("45Tv"),n("uAtd"),n("BqfV"),n("fN/3"),n("iW+S"),n("7Dlh"),n("Opxb"),t.exports=n("g3g5").Reflect},FlsD:function(t,e,n){var r=n("0/R4");n("Xtr8")("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},FoZm:function(t,e,n){global.IntlPolyfill=n("fL0r"),n(3),global.Intl||(global.Intl=global.IntlPolyfill,global.IntlPolyfill.__applyLocaleSensitivePrototypes()),t.exports=global.IntlPolyfill},GNAe:function(t,e,n){var r=n("XKFU"),i=n("PKUr");r(r.G+r.F*(parseInt!=i),{parseInt:i})},H6hf:function(t,e,n){var r=n("y3w9");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},"HAE/":function(t,e,n){var r=n("XKFU");r(r.S+r.F*!n("nh4g"),"Object",{defineProperty:n("hswa").f})},HEwt:function(t,e,n){"use strict";var r=n("m0Pp"),i=n("XKFU"),o=n("S/j/"),a=n("H6hf"),s=n("M6Qj"),u=n("ne8i"),c=n("8a7r"),l=n("J+6e");i(i.S+i.F*!n("XMVh")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,h=o(t),p="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,v=void 0!==g,m=0,y=l(h);if(v&&(g=r(g,d>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(n=new p(e=u(h.length));e>m;m++)c(n,m,v?g(h[m],m):h[m]);else for(f=y.call(h),n=new p;!(i=f.next()).done;m++)c(n,m,v?a(f,g,[i.value,m],!0):i.value);return n.length=m,n}})},I5cv:function(t,e,n){var r=n("XKFU"),i=n("Kuth"),o=n("2OiF"),a=n("y3w9"),s=n("0/R4"),u=n("eeVq"),c=n("8MEG"),l=(n("dyZX").Reflect||{}).construct,f=u(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),h=!u(function(){l(function(){})});r(r.S+r.F*(f||h),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(h&&!f)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,p=i(s(u)?u:Object.prototype),d=Function.apply.call(t,p,e);return s(d)?d:p}})},I78e:function(t,e,n){"use strict";var r=n("XKFU"),i=n("+rLv"),o=n("LZWt"),a=n("d/Gc"),s=n("ne8i"),u=[].slice;r(r.P+r.F*n("eeVq")(function(){i&&u.call(i)}),"Array",{slice:function(t,e){var n=s(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=a(t,n),c=a(e,n),l=s(c-i),f=new Array(l),h=0;h<l;h++)f[h]="String"==r?this.charAt(i+h):this[i+h];return f}})},"I8a+":function(t,e,n){var r=n("LZWt"),i=n("K0xU")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},INYr:function(t,e,n){"use strict";var r=n("XKFU"),i=n("CkkT")(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("nGyu")(o)},"IU+Z":function(t,e,n){"use strict";var r=n("Mukb"),i=n("KroJ"),o=n("eeVq"),a=n("vhPU"),s=n("K0xU");t.exports=function(t,e,n){var u=s(t),c=n(a,u,""[t]),l=c[0],f=c[1];o(function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,l),r(RegExp.prototype,u,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}))}},IXt9:function(t,e,n){"use strict";var r=n("0/R4"),i=n("OP3Y"),o=n("K0xU")("hasInstance"),a=Function.prototype;o in a||n("hswa").f(a,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},IlFx:function(t,e,n){var r=n("XKFU"),i=n("y3w9"),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},Iw71:function(t,e,n){var r=n("0/R4"),i=n("dyZX").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"J+6e":function(t,e,n){var r=n("I8a+"),i=n("K0xU")("iterator"),o=n("hPIQ");t.exports=n("g3g5").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},JCqj:function(t,e,n){"use strict";n("OGtf")("sup",function(t){return function(){return t(this,"sup","","")}})},Jcmo:function(t,e,n){var r=n("XKFU"),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},JduL:function(t,e,n){n("Xtr8")("getOwnPropertyNames",function(){return n("e7yV").f})},JiEa:function(t,e){e.f=Object.getOwnPropertySymbols},K0xU:function(t,e,n){var r=n("VTer")("wks"),i=n("ylqs"),o=n("dyZX").Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},KKXr:function(t,e,n){n("IU+Z")("split",2,function(t,e,r){"use strict";var i=n("quPj"),o=r,a=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var s=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,u,c,l,f,h=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?4294967295:e>>>0,v=new RegExp(t.source,p+"g");for(s||(r=new RegExp("^"+v.source+"$(?!\\s)",p));(u=v.exec(n))&&!((c=u.index+u[0].length)>d&&(h.push(n.slice(d,u.index)),!s&&u.length>1&&u[0].replace(r,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(u[f]=void 0)}),u.length>1&&u.index<n.length&&a.apply(h,u.slice(1)),l=u[0].length,d=c,h.length>=g));)v.lastIndex===u.index&&v.lastIndex++;return d===n.length?!l&&v.test("")||h.push(""):h.push(n.slice(d)),h.length>g?h.slice(0,g):h}}else"0".split(void 0,0).length&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},r]})},KroJ:function(t,e,n){var r=n("dyZX"),i=n("Mukb"),o=n("aagx"),a=n("ylqs")("src"),s=Function.toString,u=(""+s).split("toString");n("g3g5").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},Kuth:function(t,e,n){var r=n("y3w9"),i=n("FJW5"),o=n("4R4u"),a=n("YTvA")("IE_PROTO"),s=function(){},u=function(){var t,e=n("Iw71")("iframe"),r=o.length;for(e.style.display="none",n("+rLv").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},L9s1:function(t,e,n){"use strict";var r=n("XKFU"),i=n("0sh+");r(r.P+r.F*n("UUeW")("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},LK8F:function(t,e,n){var r=n("XKFU");r(r.S,"Array",{isArray:n("EWmC")})},LQAc:function(t,e){t.exports=!1},LTTk:function(t,e,n){var r=n("XKFU"),i=n("OP3Y"),o=n("y3w9");r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},LVwc:function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},LZWt:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},Ljet:function(t,e,n){var r=n("XKFU");r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},Lmuc:function(t,e,n){n("xfY5"),n("A2zW"),n("VKir"),n("Ljet"),n("/KAi"),n("fN96"),n("7h0T"),n("sbF8"),n("h/M4"),n("knhD"),n("XfKG"),n("BP8U"),t.exports=n("g3g5").Number},LyE8:function(t,e,n){"use strict";var r=n("eeVq");t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},M6Qj:function(t,e,n){var r=n("hPIQ"),i=n("K0xU")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},MfQN:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},MtdB:function(t,e,n){var r=n("XKFU");r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},Mukb:function(t,e,n){var r=n("hswa"),i=n("RjD/");t.exports=n("nh4g")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},N6cJ:function(t,e,n){var r=n("9AAn"),i=n("XKFU"),o=n("VTer")("metadata"),a=o.store||(o.store=new(n("EK0E"))),s=function(t,e,n){var i=a.get(t);if(!i){if(!n)return;a.set(t,i=new r)}var o=i.get(e);if(!o){if(!n)return;i.set(e,o=new r)}return o};t.exports={store:a,map:s,has:function(t,e,n){var r=s(e,n,!1);return void 0!==r&&r.has(t)},get:function(t,e,n){var r=s(e,n,!1);return void 0===r?void 0:r.get(t)},set:function(t,e,n,r){s(n,r,!0).set(t,e)},keys:function(t,e){var n=s(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){i(i.S,"Reflect",t)}}},N8g3:function(t,e,n){e.f=n("K0xU")},Nr18:function(t,e,n){"use strict";var r=n("S/j/"),i=n("d/Gc"),o=n("ne8i");t.exports=function(t){for(var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},Nz9U:function(t,e,n){"use strict";var r=n("XKFU"),i=n("aCFj"),o=[].join;r(r.P+r.F*(n("Ymqv")!=Object||!n("LyE8")(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},OEbY:function(t,e,n){n("nh4g")&&"g"!=/./g.flags&&n("hswa").f(RegExp.prototype,"flags",{configurable:!0,get:n("C/va")})},OG14:function(t,e,n){n("IU+Z")("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},OGtf:function(t,e,n){var r=n("XKFU"),i=n("eeVq"),o=n("vhPU"),a=/"/g,s=function(t,e,n,r){var i=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),s+">"+i+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},OP3Y:function(t,e,n){var r=n("aagx"),i=n("S/j/"),o=n("YTvA")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},OnI7:function(t,e,n){var r=n("dyZX"),i=n("g3g5"),o=n("LQAc"),a=n("N8g3"),s=n("hswa").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},Opxb:function(t,e,n){var r=n("N6cJ"),i=n("y3w9"),o=n("2OiF"),a=r.key,s=r.set;r.exp({metadata:function(t,e){return function(n,r){s(t,e,(void 0!==r?i:o)(n),a(r))}}})},Oyvg:function(t,e,n){var r=n("dyZX"),i=n("Xbzi"),o=n("hswa").f,a=n("kJMx").f,s=n("quPj"),u=n("C/va"),c=r.RegExp,l=c,f=c.prototype,h=/a/g,p=/a/g,d=new c(h)!==h;if(n("nh4g")&&(!d||n("eeVq")(function(){return p[n("K0xU")("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")}))){c=function(t,e){var n=this instanceof c,r=s(t),o=void 0===e;return!n&&r&&t.constructor===c&&o?t:i(d?new l(r&&!o?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&o?u.call(t):e),n?this:f,c)};for(var g=function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},v=a(l),m=0;v.length>m;)g(v[m++]);f.constructor=c,c.prototype=f,n("KroJ")(r,"RegExp",c)}n("elZq")("RegExp")},PKUr:function(t,e,n){var r=n("dyZX").parseInt,i=n("qncB").trim,o=n("/e88"),a=/^[-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},Q3ne:function(t,e,n){var r=n("SlkY");t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},QaDb:function(t,e,n){"use strict";var r=n("Kuth"),i=n("RjD/"),o=n("fyDq"),a={};n("Mukb")(a,n("K0xU")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},RW0V:function(t,e,n){var r=n("S/j/"),i=n("DVgA");n("Xtr8")("keys",function(){return function(t){return i(r(t))}})},RYi7:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"RjD/":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"S/j/":function(t,e,n){var r=n("vhPU");t.exports=function(t){return Object(r(t))}},SMB2:function(t,e,n){"use strict";n("OGtf")("bold",function(t){return function(){return t(this,"b","","")}})},SPin:function(t,e,n){"use strict";var r=n("XKFU"),i=n("eyMr");r(r.P+r.F*!n("LyE8")([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},SRfc:function(t,e,n){n("IU+Z")("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},SlkY:function(t,e,n){var r=n("m0Pp"),i=n("H6hf"),o=n("M6Qj"),a=n("y3w9"),s=n("ne8i"),u=n("J+6e"),c={},l={};(e=t.exports=function(t,e,n,f,h){var p,d,g,v,m=h?function(){return t}:u(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(p=s(t.length);p>b;b++)if((v=e?y(a(d=t[b])[0],d[1]):y(t[b]))===c||v===l)return v}else for(g=m.call(t);!(d=g.next()).done;)if((v=i(g,y,d.value,e))===c||v===l)return v}).BREAK=c,e.RETURN=l},T39b:function(t,e,n){"use strict";var r=n("wmvG"),i=n("s5qY");t.exports=n("4LiD")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},Tze0:function(t,e,n){"use strict";n("qncB")("trim",function(t){return function(){return t(this,3)}})},U2t9:function(t,e,n){var r=n("XKFU"),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},UUeW:function(t,e,n){var r=n("K0xU")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},UqcF:function(t,e){e.f={}.propertyIsEnumerable},"V+eJ":function(t,e,n){"use strict";var r=n("XKFU"),i=n("w2a5")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n("LyE8")(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},"V/DX":function(t,e,n){var r=n("0/R4");n("Xtr8")("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},"V5/Y":function(t,e,n){n("VpUO"),n("eI33"),n("Tze0"),n("XfO3"),n("oDIu"),n("rvZc"),n("L9s1"),n("FLlr"),n("9VmF"),n("hEkN"),n("nIY7"),n("+oPb"),n("SMB2"),n("0mN4"),n("bDcW"),n("nsiH"),n("0LDn"),n("tUrg"),n("84bF"),n("FEjr"),n("Zz4T"),n("JCqj"),n("SRfc"),n("pIFo"),n("OG14"),n("KKXr"),t.exports=n("g3g5").String},VKir:function(t,e,n){"use strict";var r=n("XKFU"),i=n("eeVq"),o=n("vvmO"),a=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},VTer:function(t,e,n){var r=n("g3g5"),i=n("dyZX"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("LQAc")?"pure":"global",copyright:"\xa9 2018 Denis Pushkarev (zloirock.ru)"})},VXxg:function(t,e,n){n("Btvt"),n("XfO3"),n("rGqo"),n("T39b"),t.exports=n("g3g5").Set},VbrY:function(t,e,n){n("3xty"),n("I5cv"),n("iMoV"),n("uhZd"),n("f/aN"),n("0YWM"),n("694e"),n("LTTk"),n("9rMk"),n("IlFx"),n("xpiv"),n("oZ/O"),n("klPD"),n("knU9"),t.exports=n("g3g5").Reflect},Vd3H:function(t,e,n){"use strict";var r=n("XKFU"),i=n("2OiF"),o=n("S/j/"),a=n("eeVq"),s=[].sort,u=[1,2,3];r(r.P+r.F*(a(function(){u.sort(void 0)})||!a(function(){u.sort(null)})||!n("LyE8")(s)),"Array",{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),i(t))}})},VpUO:function(t,e,n){var r=n("XKFU"),i=n("d/Gc"),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},WLL4:function(t,e,n){var r=n("XKFU");r(r.S+r.F*!n("nh4g"),"Object",{defineProperties:n("FJW5")})},XKFU:function(t,e,n){var r=n("dyZX"),i=n("g3g5"),o=n("Mukb"),a=n("KroJ"),s=n("m0Pp"),u=function(t,e,n){var c,l,f,h,p=t&u.F,d=t&u.G,g=t&u.P,v=t&u.B,m=d?r:t&u.S?r[e]||(r[e]={}):(r[e]||{}).prototype,y=d?i:i[e]||(i[e]={}),b=y.prototype||(y.prototype={});for(c in d&&(n=e),n)f=((l=!p&&m&&void 0!==m[c])?m:n)[c],h=v&&l?s(f,r):g&&"function"==typeof f?s(Function.call,f):f,m&&a(m,c,f,t&u.U),y[c]!=f&&o(y,c,h),g&&b[c]!=f&&(b[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},XMVh:function(t,e,n){var r=n("K0xU")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},Xbzi:function(t,e,n){var r=n("0/R4"),i=n("i5dc").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},XfKG:function(t,e,n){var r=n("XKFU"),i=n("11IZ");r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},XfO3:function(t,e,n){"use strict";var r=n("AvRE")(!0);n("Afnz")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},Xtr8:function(t,e,n){var r=n("XKFU"),i=n("g3g5"),o=n("eeVq");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},YJVH:function(t,e,n){"use strict";var r=n("XKFU"),i=n("CkkT")(4);r(r.P+r.F*!n("LyE8")([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},YTvA:function(t,e,n){var r=n("VTer")("keys"),i=n("ylqs");t.exports=function(t){return r[t]||(r[t]=i(t))}},Ymqv:function(t,e,n){var r=n("LZWt");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},Z6vF:function(t,e,n){var r=n("ylqs")("meta"),i=n("0/R4"),o=n("aagx"),a=n("hswa").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("eeVq")(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!o(t,r)&&l(t),t}}},ZD67:function(t,e,n){"use strict";var r=n("3Lyj"),i=n("Z6vF").getWeak,o=n("y3w9"),a=n("0/R4"),s=n("9gX7"),u=n("SlkY"),c=n("CkkT"),l=n("aagx"),f=n("s5qY"),h=c(5),p=c(6),d=0,g=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},m=function(t,e){return h(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t(function(t,r){s(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,void 0!=r&&u(r,n,t[o],t)});return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=i(t);return!0===n?g(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=i(t);return!0===n?g(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=i(o(e),!0);return!0===r?g(t).set(e,n):r[t._i]=n,t},ufstore:g}},Zshi:function(t,e,n){var r=n("0/R4");n("Xtr8")("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},Zz4T:function(t,e,n){"use strict";n("OGtf")("sub",function(t){return function(){return t(this,"sub","","")}})},a1Th:function(t,e,n){"use strict";n("OEbY");var r=n("y3w9"),i=n("C/va"),o=n("nh4g"),a=/./.toString,s=function(t){n("KroJ")(RegExp.prototype,"toString",t,!0)};n("eeVq")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},aCFj:function(t,e,n){var r=n("Ymqv"),i=n("vhPU");t.exports=function(t){return r(i(t))}},aagx:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},apmT:function(t,e,n){var r=n("0/R4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},bBoP:function(t,e,n){var r=n("XKFU"),i=n("LVwc"),o=Math.exp;r(r.S+r.F*n("eeVq")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},bDcW:function(t,e,n){"use strict";n("OGtf")("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},bHtr:function(t,e,n){var r=n("XKFU");r(r.P,"Array",{fill:n("Nr18")}),n("nGyu")("fill")},bWfx:function(t,e,n){"use strict";var r=n("XKFU"),i=n("CkkT")(1);r(r.P+r.F*!n("LyE8")([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},czNK:function(t,e,n){"use strict";var r=n("DVgA"),i=n("JiEa"),o=n("UqcF"),a=n("S/j/"),s=n("Ymqv"),u=Object.assign;t.exports=!u||n("eeVq")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=a(t),u=arguments.length,c=1,l=i.f,f=o.f;u>c;)for(var h,p=s(arguments[c++]),d=l?r(p).concat(l(p)):r(p),g=d.length,v=0;g>v;)f.call(p,h=d[v++])&&(n[h]=p[h]);return n}:u},"d/Gc":function(t,e,n){var r=n("RYi7"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},"dE+T":function(t,e,n){var r=n("XKFU");r(r.P,"Array",{copyWithin:n("upKx")}),n("nGyu")("copyWithin")},dQfE:function(t,e,n){n("XfO3"),n("LK8F"),n("HEwt"),n("6AQ9"),n("Nz9U"),n("I78e"),n("Vd3H"),n("8+KV"),n("bWfx"),n("0l/t"),n("dZ+Y"),n("YJVH"),n("DNiP"),n("SPin"),n("V+eJ"),n("mGWK"),n("dE+T"),n("bHtr"),n("dRSK"),n("INYr"),n("0E+W"),n("yt8O"),t.exports=n("g3g5").Array},dRSK:function(t,e,n){"use strict";var r=n("XKFU"),i=n("CkkT")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("nGyu")("find")},"dZ+Y":function(t,e,n){"use strict";var r=n("XKFU"),i=n("CkkT")(3);r(r.P+r.F*!n("LyE8")([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},dyZX:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e7yV:function(t,e,n){var r=n("aCFj"),i=n("kJMx").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},eHKK:function(t,e,n){var r=n("XKFU");r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},eI33:function(t,e,n){var r=n("XKFU"),i=n("aCFj"),o=n("ne8i");r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},eM6i:function(t,e,n){var r=n("XKFU");r(r.S,"Date",{now:function(){return(new Date).getTime()}})},eeVq:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},elZq:function(t,e,n){"use strict";var r=n("dyZX"),i=n("hswa"),o=n("nh4g"),a=n("K0xU")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},eyMr:function(t,e,n){var r=n("2OiF"),i=n("S/j/"),o=n("Ymqv"),a=n("ne8i");t.exports=function(t,e,n,s,u){r(e);var c=i(t),l=o(c),f=a(c.length),h=u?f-1:0,p=u?-1:1;if(n<2)for(;;){if(h in l){s=l[h],h+=p;break}if(h+=p,u?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:f>h;h+=p)h in l&&(s=e(s,l[h],h,c));return s}},"f/aN":function(t,e,n){"use strict";var r=n("XKFU"),i=n("y3w9"),o=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n("QaDb")(o,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},"f3/d":function(t,e,n){var r=n("hswa").f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n("nh4g")&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},fL0r:function(t,e,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(t,e,n,i){var o=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={}),e&&o)for(var s in o)void 0===e[s]&&(e[s]=o[s]);else e||(e=o||{});if(1===a)e.children=i;else if(a>1){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+3];e.children=u}return{$$typeof:r,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}),a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c="undefined"==typeof global?self:global,l=Object.freeze({jsx:o,asyncToGenerator:function(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function r(i,o){try{var a=e[i](o),s=a.value}catch(t){return void n(t)}if(!a.done)return Promise.resolve(s).then(function(t){return r("next",t)},function(t){return r("throw",t)});t(s)}("next")})}},classCallCheck:function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},createClass:a,defineEnumerableProperties:function(t,e){for(var n in e){var r=e[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,n,r)}return t},defaults:function(t,e){for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(e,i);o&&o.configurable&&void 0===t[i]&&Object.defineProperty(t,i,o)}return t},defineProperty:s,get:function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},inherits:function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},interopRequireDefault:function(t){return t&&t.__esModule?t:{default:t}},interopRequireWildcard:function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},newArrowCheck:function(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")},objectDestructuringEmpty:function(t){if(null==t)throw new TypeError("Cannot destructure undefined")},objectWithoutProperties:function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},possibleConstructorReturn:function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},selfGlobal:c,set:function t(e,n,r,i){var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var a=Object.getPrototypeOf(e);null!==a&&t(a,n,r,i)}else if("value"in o&&o.writable)o.value=r;else{var s=o.set;void 0!==s&&s.call(i,r)}return r},slicedToArray:function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},slicedToArrayLoose:function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){for(var n,r=[],i=t[Symbol.iterator]();!(n=i.next()).done&&(r.push(n.value),!e||r.length!==e););return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")},taggedTemplateLiteral:function(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},taggedTemplateLiteralLoose:function(t,e){return t.raw=e,t},temporalRef:function(t,e,n){if(t===n)throw new ReferenceError(e+" is not defined - temporal dead zone");return t},temporalUndefined:{},toArray:function(t){return Array.isArray(t)?t:Array.from(t)},toConsumableArray:function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},typeof:i,extends:u,instanceof:function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}}),f=function(){var t=function(){};try{return Object.defineProperty(t,"a",{get:function(){return 1}}),Object.defineProperty(t,"prototype",{writable:!1}),1===t.a&&t.prototype instanceof Object}catch(t){return!1}}(),h=!f&&!Object.prototype.__defineGetter__,p=Object.prototype.hasOwnProperty,d=f?Object.defineProperty:function(t,e,n){"get"in n&&t.__defineGetter__?t.__defineGetter__(e,n.get):(!p.call(t,e)||"value"in n)&&(t[e]=n.value)},g=Array.prototype.indexOf||function(t){var e=this;if(!e.length)return-1;for(var n=arguments[1]||0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},v=Object.create||function(t,e){var n;function r(){}for(var i in r.prototype=t,n=new r,e)p.call(e,i)&&d(n,i,e[i]);return n},m=Array.prototype.slice,y=Array.prototype.concat,b=Array.prototype.push,_=Array.prototype.join,w=Array.prototype.shift,k=Function.prototype.bind||function(t){var e=this,n=m.call(arguments,1);return function(){return e.apply(t,y.call(n,m.call(arguments)))}},x=v(null),T=Math.random();function S(t){for(var e in t)(t instanceof S||p.call(t,e))&&d(this,e,{value:t[e],enumerable:!0,writable:!0,configurable:!0})}function E(){d(this,"length",{writable:!0,value:0}),arguments.length&&b.apply(this,m.call(arguments))}function F(){if(x.disableRegExpRestore)return function(){};for(var t={lastMatch:RegExp.lastMatch||"",leftContext:RegExp.leftContext,multiline:RegExp.multiline,input:RegExp.input},e=!1,n=1;n<=9;n++)e=(t["$"+n]=RegExp["$"+n])||e;return function(){var n=/[.?*+^$[\]\\(){}|-]/g,r=t.lastMatch.replace(n,"\\$&"),i=new E;if(e)for(var o=1;o<=9;o++){var a=t["$"+o];a?(a=a.replace(n,"\\$&"),r=r.replace(a,"("+a+")")):r="()"+r,b.call(i,r.slice(0,r.indexOf("(")+1)),r=r.slice(r.indexOf("(")+1)}var s=_.call(i,"")+r;s=s.replace(/(\\\(|\\\)|[^()])+/g,function(t){return"[\\s\\S]{"+t.replace("\\","").length+"}"});var u=new RegExp(s,t.multiline?"gm":"g");u.lastIndex=t.leftContext.length,u.exec(t.input)}}function O(t){if(null===t)throw new TypeError("Cannot convert null or undefined to object");return"object"===(void 0===t?"undefined":l.typeof(t))?t:Object(t)}function P(t){return"number"==typeof t?t:Number(t)}function D(t){return p.call(t,"__getInternalProperties")?t.__getInternalProperties(T):v(null)}S.prototype=v(null),E.prototype=v(null);var M=RegExp("^(?:(?:[a-z]{2,3}(?:-[a-z]{3}(?:-[a-z]{3}){0,2})?|[a-z]{4}|[a-z]{5,8})(?:-[a-z]{4})?(?:-(?:[a-z]{2}|\\d{3}))?(?:-(?:[a-z0-9]{5,8}|\\d[a-z0-9]{3}))*(?:-[0-9a-wy-z](?:-[a-z0-9]{2,8})+)*(?:-x(?:-[a-z0-9]{1,8})+)?|x(?:-[a-z0-9]{1,8})+|(?:(?:en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))|(?:art-lojban|cel-gaulish|no-bok|no-nyn|zh-(?:guoyu|hakka|min|min-nan|xiang))))$","i"),j=RegExp("^(?!x).*?-((?:[a-z0-9]{5,8}|\\d[a-z0-9]{3}))-(?:\\w{4,8}-(?!x-))*\\1\\b","i"),N=RegExp("^(?!x).*?-([0-9a-wy-z])-(?:\\w+-(?!x-))*\\1\\b","i"),R=RegExp("-[0-9a-wy-z](?:-[a-z0-9]{2,8})+","ig"),L=void 0,A={tags:{"art-lojban":"jbo","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","no-bok":"nb","no-nyn":"nn","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg","zh-guoyu":"cmn","zh-hakka":"hak","zh-min-nan":"nan","zh-xiang":"hsn","sgn-BR":"bzs","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsl","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs","zh-cmn":"cmn","zh-cmn-Hans":"cmn-Hans","zh-cmn-Hant":"cmn-Hant","zh-gan":"gan","zh-wuu":"wuu","zh-yue":"yue"},subtags:{BU:"MM",DD:"DE",FX:"FR",TP:"TL",YD:"YE",ZR:"CD",heploc:"alalc97",in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",ayx:"nun",bjd:"drl",ccq:"rki",cjr:"mom",cka:"cmr",cmk:"xch",drh:"khk",drw:"prs",gav:"dev",hrr:"jal",ibi:"opa",kgh:"kml",lcq:"ppr",mst:"mry",myt:"mry",sca:"hle",tie:"ras",tkk:"twm",tlw:"weo",tnf:"prs",ybd:"rki",yma:"lrr"},extLang:{aao:["aao","ar"],abh:["abh","ar"],abv:["abv","ar"],acm:["acm","ar"],acq:["acq","ar"],acw:["acw","ar"],acx:["acx","ar"],acy:["acy","ar"],adf:["adf","ar"],ads:["ads","sgn"],aeb:["aeb","ar"],aec:["aec","ar"],aed:["aed","sgn"],aen:["aen","sgn"],afb:["afb","ar"],afg:["afg","sgn"],ajp:["ajp","ar"],apc:["apc","ar"],apd:["apd","ar"],arb:["arb","ar"],arq:["arq","ar"],ars:["ars","ar"],ary:["ary","ar"],arz:["arz","ar"],ase:["ase","sgn"],asf:["asf","sgn"],asp:["asp","sgn"],asq:["asq","sgn"],asw:["asw","sgn"],auz:["auz","ar"],avl:["avl","ar"],ayh:["ayh","ar"],ayl:["ayl","ar"],ayn:["ayn","ar"],ayp:["ayp","ar"],bbz:["bbz","ar"],bfi:["bfi","sgn"],bfk:["bfk","sgn"],bjn:["bjn","ms"],bog:["bog","sgn"],bqn:["bqn","sgn"],bqy:["bqy","sgn"],btj:["btj","ms"],bve:["bve","ms"],bvl:["bvl","sgn"],bvu:["bvu","ms"],bzs:["bzs","sgn"],cdo:["cdo","zh"],cds:["cds","sgn"],cjy:["cjy","zh"],cmn:["cmn","zh"],coa:["coa","ms"],cpx:["cpx","zh"],csc:["csc","sgn"],csd:["csd","sgn"],cse:["cse","sgn"],csf:["csf","sgn"],csg:["csg","sgn"],csl:["csl","sgn"],csn:["csn","sgn"],csq:["csq","sgn"],csr:["csr","sgn"],czh:["czh","zh"],czo:["czo","zh"],doq:["doq","sgn"],dse:["dse","sgn"],dsl:["dsl","sgn"],dup:["dup","ms"],ecs:["ecs","sgn"],esl:["esl","sgn"],esn:["esn","sgn"],eso:["eso","sgn"],eth:["eth","sgn"],fcs:["fcs","sgn"],fse:["fse","sgn"],fsl:["fsl","sgn"],fss:["fss","sgn"],gan:["gan","zh"],gds:["gds","sgn"],gom:["gom","kok"],gse:["gse","sgn"],gsg:["gsg","sgn"],gsm:["gsm","sgn"],gss:["gss","sgn"],gus:["gus","sgn"],hab:["hab","sgn"],haf:["haf","sgn"],hak:["hak","zh"],hds:["hds","sgn"],hji:["hji","ms"],hks:["hks","sgn"],hos:["hos","sgn"],hps:["hps","sgn"],hsh:["hsh","sgn"],hsl:["hsl","sgn"],hsn:["hsn","zh"],icl:["icl","sgn"],ils:["ils","sgn"],inl:["inl","sgn"],ins:["ins","sgn"],ise:["ise","sgn"],isg:["isg","sgn"],isr:["isr","sgn"],jak:["jak","ms"],jax:["jax","ms"],jcs:["jcs","sgn"],jhs:["jhs","sgn"],jls:["jls","sgn"],jos:["jos","sgn"],jsl:["jsl","sgn"],jus:["jus","sgn"],kgi:["kgi","sgn"],knn:["knn","kok"],kvb:["kvb","ms"],kvk:["kvk","sgn"],kvr:["kvr","ms"],kxd:["kxd","ms"],lbs:["lbs","sgn"],lce:["lce","ms"],lcf:["lcf","ms"],liw:["liw","ms"],lls:["lls","sgn"],lsg:["lsg","sgn"],lsl:["lsl","sgn"],lso:["lso","sgn"],lsp:["lsp","sgn"],lst:["lst","sgn"],lsy:["lsy","sgn"],ltg:["ltg","lv"],lvs:["lvs","lv"],lzh:["lzh","zh"],max:["max","ms"],mdl:["mdl","sgn"],meo:["meo","ms"],mfa:["mfa","ms"],mfb:["mfb","ms"],mfs:["mfs","sgn"],min:["min","ms"],mnp:["mnp","zh"],mqg:["mqg","ms"],mre:["mre","sgn"],msd:["msd","sgn"],msi:["msi","ms"],msr:["msr","sgn"],mui:["mui","ms"],mzc:["mzc","sgn"],mzg:["mzg","sgn"],mzy:["mzy","sgn"],nan:["nan","zh"],nbs:["nbs","sgn"],ncs:["ncs","sgn"],nsi:["nsi","sgn"],nsl:["nsl","sgn"],nsp:["nsp","sgn"],nsr:["nsr","sgn"],nzs:["nzs","sgn"],okl:["okl","sgn"],orn:["orn","ms"],ors:["ors","ms"],pel:["pel","ms"],pga:["pga","ar"],pks:["pks","sgn"],prl:["prl","sgn"],prz:["prz","sgn"],psc:["psc","sgn"],psd:["psd","sgn"],pse:["pse","ms"],psg:["psg","sgn"],psl:["psl","sgn"],pso:["pso","sgn"],psp:["psp","sgn"],psr:["psr","sgn"],pys:["pys","sgn"],rms:["rms","sgn"],rsi:["rsi","sgn"],rsl:["rsl","sgn"],sdl:["sdl","sgn"],sfb:["sfb","sgn"],sfs:["sfs","sgn"],sgg:["sgg","sgn"],sgx:["sgx","sgn"],shu:["shu","ar"],slf:["slf","sgn"],sls:["sls","sgn"],sqk:["sqk","sgn"],sqs:["sqs","sgn"],ssh:["ssh","ar"],ssp:["ssp","sgn"],ssr:["ssr","sgn"],svk:["svk","sgn"],swc:["swc","sw"],swh:["swh","sw"],swl:["swl","sgn"],syy:["syy","sgn"],tmw:["tmw","ms"],tse:["tse","sgn"],tsm:["tsm","sgn"],tsq:["tsq","sgn"],tss:["tss","sgn"],tsy:["tsy","sgn"],tza:["tza","sgn"],ugn:["ugn","sgn"],ugy:["ugy","sgn"],ukl:["ukl","sgn"],uks:["uks","sgn"],urk:["urk","ms"],uzn:["uzn","uz"],uzs:["uzs","uz"],vgt:["vgt","sgn"],vkk:["vkk","ms"],vkt:["vkt","ms"],vsi:["vsi","sgn"],vsl:["vsl","sgn"],vsv:["vsv","sgn"],wuu:["wuu","zh"],xki:["xki","sgn"],xml:["xml","sgn"],xmm:["xmm","ms"],xms:["xms","sgn"],yds:["yds","sgn"],ysl:["ysl","sgn"],yue:["yue","zh"],zib:["zib","sgn"],zlm:["zlm","ms"],zmi:["zmi","ms"],zsl:["zsl","sgn"],zsm:["zsm","ms"]}};function z(t){for(var e=t.length;e--;){var n=t.charAt(e);n>="a"&&n<="z"&&(t=t.slice(0,e)+n.toUpperCase()+t.slice(e+1))}return t}function I(t){return!!M.test(t)&&!j.test(t)&&!N.test(t)}function C(t){for(var e=void 0,n=void 0,r=1,i=(n=(t=t.toLowerCase()).split("-")).length;r<i;r++)if(2===n[r].length)n[r]=n[r].toUpperCase();else if(4===n[r].length)n[r]=n[r].charAt(0).toUpperCase()+n[r].slice(1);else if(1===n[r].length&&"x"!==n[r])break;(e=(t=_.call(n,"-")).match(R))&&e.length>1&&(e.sort(),t=t.replace(RegExp("(?:"+R.source+")+","i"),_.call(e,""))),p.call(A.tags,t)&&(t=A.tags[t]);for(var o=1,a=(n=t.split("-")).length;o<a;o++)p.call(A.subtags,n[o])?n[o]=A.subtags[n[o]]:p.call(A.extLang,n[o])&&(n[o]=A.extLang[n[o]][0],1===o&&A.extLang[n[1]][1]===n[0]&&(n=m.call(n,o++),a-=1));return _.call(n,"-")}var U=/^[A-Z]{3}$/,K=/-u(?:-[0-9a-z]{2,8})+/gi;function Z(t){if(void 0===t)return new E;for(var e=new E,n=O(t="string"==typeof t?[t]:t),r=function(t){var e=function(t){var e=P(t);return isNaN(e)?0:0===e||-0===e||e===1/0||e===-1/0?e:e<0?-1*Math.floor(Math.abs(e)):Math.floor(Math.abs(e))}(n.length);return e<=0?0:e===1/0?Math.pow(2,53)-1:Math.min(e,Math.pow(2,53)-1)}(),i=0;i<r;){var o=String(i);if(o in n){var a=n[o];if(null===a||"string"!=typeof a&&"object"!==(void 0===a?"undefined":l.typeof(a)))throw new TypeError("String or Object type expected");var s=String(a);if(!I(s))throw new RangeError("'"+s+"' is not a structurally valid language tag");s=C(s),-1===g.call(e,s)&&b.call(e,s)}i++}return e}function q(t,e){for(var n=e;n;){if(g.call(t,n)>-1)return n;var r=n.lastIndexOf("-");if(r<0)return;r>=2&&"-"===n.charAt(r-2)&&(r-=2),n=n.substring(0,r)}}function X(t,e){for(var n=0,r=e.length,i=void 0,o=void 0,a=void 0;n<r&&!i;)o=e[n],i=q(t,a=String(o).replace(K,"")),n++;var s=new S;if(void 0!==i){if(s["[[locale]]"]=i,String(o)!==String(a)){var u=o.match(K)[0],c=o.indexOf("-u-");s["[[extension]]"]=u,s["[[extensionIndex]]"]=c}}else s["[[locale]]"]=L;return s}function H(t,e,n,r,i){if(0===t.length)throw new ReferenceError("No locale data has been provided for this object yet.");var o,a=(o="lookup"===n["[[localeMatcher]]"]?X(t,e):function(t,e){return X(t,e)}(t,e))["[[locale]]"],s=void 0,u=void 0;p.call(o,"[[extension]]")&&(u=(s=String.prototype.split.call(o["[[extension]]"],"-")).length);var c=new S;c["[[dataLocale]]"]=a;for(var l="-u",f=0,h=r.length;f<h;){var d=r[f],v=i[a][d],m=v[0],y="",b=g;if(void 0!==s){var _=b.call(s,d);if(-1!==_)if(_+1<u&&s[_+1].length>2){var w=s[_+1];-1!==b.call(v,w)&&(y="-"+d+"-"+(m=w))}else-1!==b(v,"true")&&(m="true")}if(p.call(n,"[["+d+"]]")){var k=n["[["+d+"]]"];-1!==b.call(v,k)&&k!==m&&(m=k,y="")}c["[["+d+"]]"]=m,l+=y,f++}if(l.length>2){var x=a.indexOf("-x-");-1===x?a+=l:a=a.substring(0,x)+l+a.substring(x),a=C(a)}return c["[[locale]]"]=a,c}function W(t,e){for(var n=e.length,r=new E,i=0;i<n;){var o=e[i];void 0!==q(t,String(o).replace(K,""))&&b.call(r,o),i++}return m.call(r)}function V(t,e,n){var r,i=void 0;if(void 0!==n&&void 0!==(i=(n=new S(O(n))).localeMatcher)&&"lookup"!==(i=String(i))&&"best fit"!==i)throw new RangeError('matcher should be "lookup" or "best fit"');for(var o in r=void 0===i||"best fit"===i?function(t,e){return W(t,e)}(t,e):W(t,e))p.call(r,o)&&d(r,o,{writable:!1,configurable:!1,value:r[o]});return d(r,"length",{writable:!1}),r}function G(t,e,n,r,i){var o=t[e];if(void 0!==o){if(o="boolean"===n?Boolean(o):"string"===n?String(o):o,void 0!==r&&-1===g.call(r,o))throw new RangeError("'"+o+"' is not an allowed value for `"+e+"`");return o}return i}function B(t,e,n,r,i){var o=t[e];if(void 0!==o){if(o=Number(o),isNaN(o)||o<n||o>r)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(o)}return i}var Y={};Object.defineProperty(Y,"getCanonicalLocales",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var e=Z(t),n=[],r=e.length,i=0;i<r;)n[i]=e[i],i++;return n}});var J={BHD:3,BYR:0,XOF:0,BIF:0,XAF:0,CLF:4,CLP:0,KMF:0,DJF:0,XPF:0,GNF:0,ISK:0,IQD:3,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,VUV:0,VND:0};function Q(){var t=arguments[0],e=arguments[1];return this&&this!==Y?function(t,e,n){var r=D(t),i=F();if(!0===r["[[initializedIntlObject]]"])throw new TypeError("`this` object has already been initialized as an Intl object");d(t,"__getInternalProperties",{value:function(){if(arguments[0]===T)return r}}),r["[[initializedIntlObject]]"]=!0;var o=Z(e);n=void 0===n?{}:O(n);var a=new S,s=G(n,"localeMatcher","string",new E("lookup","best fit"),"best fit");a["[[localeMatcher]]"]=s;var u=x.NumberFormat["[[localeData]]"],c=H(x.NumberFormat["[[availableLocales]]"],o,a,x.NumberFormat["[[relevantExtensionKeys]]"],u);r["[[locale]]"]=c["[[locale]]"],r["[[numberingSystem]]"]=c["[[nu]]"],r["[[dataLocale]]"]=c["[[dataLocale]]"];var l=c["[[dataLocale]]"],f=G(n,"style","string",new E("decimal","percent","currency"),"decimal");r["[[style]]"]=f;var p,g=G(n,"currency","string");if(void 0!==g&&(p=z(String(g)),!1===U.test(p)))throw new RangeError("'"+g+"' is not a valid currency code");if("currency"===f&&void 0===g)throw new TypeError("Currency code is required when style is currency");var v=void 0;"currency"===f&&(g=g.toUpperCase(),r["[[currency]]"]=g,v=void 0!==J[g]?J[g]:2);var m=G(n,"currencyDisplay","string",new E("code","symbol","name"),"symbol");"currency"===f&&(r["[[currencyDisplay]]"]=m);var y=B(n,"minimumIntegerDigits",1,21,1);r["[[minimumIntegerDigits]]"]=y;var b=B(n,"minimumFractionDigits",0,20,"currency"===f?v:0);r["[[minimumFractionDigits]]"]=b;var _=B(n,"maximumFractionDigits",b,20,"currency"===f?Math.max(b,v):"percent"===f?Math.max(b,0):Math.max(b,3));r["[[maximumFractionDigits]]"]=_;var w=n.minimumSignificantDigits,k=n.maximumSignificantDigits;void 0===w&&void 0===k||(k=B(n,"maximumSignificantDigits",w=B(n,"minimumSignificantDigits",1,21,1),21,21),r["[[minimumSignificantDigits]]"]=w,r["[[maximumSignificantDigits]]"]=k);var P=G(n,"useGrouping","boolean",void 0,!0);r["[[useGrouping]]"]=P;var M=u[l].patterns[f];return r["[[positivePattern]]"]=M.positivePattern,r["[[negativePattern]]"]=M.negativePattern,r["[[boundFormat]]"]=void 0,r["[[initializedNumberFormat]]"]=!0,h&&(t.format=$.call(t)),i(),t}(O(this),t,e):new Y.NumberFormat(t,e)}function $(){var t=null!==this&&"object"===l.typeof(this)&&D(this);if(!t||!t["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===t["[[boundFormat]]"]){var e=k.call(function(t){return et(this,Number(t))},this);t["[[boundFormat]]"]=e}return t["[[boundFormat]]"]}function tt(t,e){var n=D(t),r=n["[[numberingSystem]]"],i=x.NumberFormat["[[localeData]]"][n["[[dataLocale]]"]],o=i.symbols[r]||i.symbols.latn,a=void 0;!isNaN(e)&&e<0?(e=-e,a=n["[[negativePattern]]"]):a=n["[[positivePattern]]"];for(var s=new E,u=a.indexOf("{",0),c=0,l=0,f=a.length;u>-1&&u<f;){if(-1===(c=a.indexOf("}",u)))throw new Error;if(u>l){var h=a.substring(l,u);b.call(s,{"[[type]]":"literal","[[value]]":h})}var d=a.substring(u+1,c);if("number"===d)if(isNaN(e))b.call(s,{"[[type]]":"nan","[[value]]":o.nan});else if(isFinite(e)){"percent"===n["[[style]]"]&&isFinite(e)&&(e*=100);var g=void 0;g=p.call(n,"[[minimumSignificantDigits]]")&&p.call(n,"[[maximumSignificantDigits]]")?nt(e,n["[[minimumSignificantDigits]]"],n["[[maximumSignificantDigits]]"]):rt(e,n["[[minimumIntegerDigits]]"],n["[[minimumFractionDigits]]"],n["[[maximumFractionDigits]]"]),it[r]?function(){var t=it[r];g=String(g).replace(/\d/g,function(e){return t[e]})}():g=String(g);var v=void 0,m=void 0,y=g.indexOf(".",0);if(y>0?(v=g.substring(0,y),m=g.substring(y+1,y.length)):(v=g,m=void 0),!0===n["[[useGrouping]]"]){var _=o.group,k=[],T=i.patterns.primaryGroupSize||3,S=i.patterns.secondaryGroupSize||T;if(v.length>T){var F=v.length-T,O=F%S,P=v.slice(0,O);for(P.length&&b.call(k,P);O<F;)b.call(k,v.slice(O,O+S)),O+=S;b.call(k,v.slice(F))}else b.call(k,v);if(0===k.length)throw new Error;for(;k.length;){var M=w.call(k);b.call(s,{"[[type]]":"integer","[[value]]":M}),k.length&&b.call(s,{"[[type]]":"group","[[value]]":_})}}else b.call(s,{"[[type]]":"integer","[[value]]":v});void 0!==m&&(b.call(s,{"[[type]]":"decimal","[[value]]":o.decimal}),b.call(s,{"[[type]]":"fraction","[[value]]":m}))}else b.call(s,{"[[type]]":"infinity","[[value]]":o.infinity});else if("plusSign"===d)b.call(s,{"[[type]]":"plusSign","[[value]]":o.plusSign});else if("minusSign"===d)b.call(s,{"[[type]]":"minusSign","[[value]]":o.minusSign});else if("percentSign"===d&&"percent"===n["[[style]]"])b.call(s,{"[[type]]":"literal","[[value]]":o.percentSign});else if("currency"===d&&"currency"===n["[[style]]"]){var j=n["[[currency]]"],N=void 0;"code"===n["[[currencyDisplay]]"]?N=j:"symbol"===n["[[currencyDisplay]]"]?N=i.currencies[j]||j:"name"===n["[[currencyDisplay]]"]&&(N=j),b.call(s,{"[[type]]":"currency","[[value]]":N})}else{var R=a.substring(u,c);b.call(s,{"[[type]]":"literal","[[value]]":R})}u=a.indexOf("{",l=c+1)}if(l<f){var L=a.substring(l,f);b.call(s,{"[[type]]":"literal","[[value]]":L})}return s}function et(t,e){for(var n=tt(t,e),r="",i=0;n.length>i;i++)r+=n[i]["[[value]]"];return r}function nt(t,e,n){var r=n,i=void 0,o=void 0;if(0===t)i=_.call(Array(r+1),"0"),o=0;else{o=function(t){if("function"==typeof Math.log10)return Math.floor(Math.log10(t));var e=Math.round(Math.log(t)*Math.LOG10E);return e-(Number("1e"+e)>t)}(Math.abs(t));var a=Math.round(Math.exp(Math.abs(o-r+1)*Math.LN10));i=String(Math.round(o-r+1<0?t*a:t/a))}if(o>=r)return i+_.call(Array(o-r+1+1),"0");if(o===r-1)return i;if(o>=0?i=i.slice(0,o+1)+"."+i.slice(o+1):o<0&&(i="0."+_.call(Array(1-(o+1)),"0")+i),i.indexOf(".")>=0&&n>e){for(var s=n-e;s>0&&"0"===i.charAt(i.length-1);)i=i.slice(0,-1),s--;"."===i.charAt(i.length-1)&&(i=i.slice(0,-1))}return i}function rt(t,e,n,r){var i,o=r,a=Math.pow(10,o)*t,s=0===a?"0":a.toFixed(0),u=(i=s.indexOf("e"))>-1?s.slice(i+1):0;u&&(s=s.slice(0,i).replace(".",""),s+=_.call(Array(u-(s.length-1)+1),"0"));var c=void 0;if(0!==o){var l=s.length;l<=o&&(s=_.call(Array(o+1-l+1),"0")+s,l=o+1);var f=s.substring(0,l-o);s=f+"."+s.substring(l-o,s.length),c=f.length}else c=s.length;for(var h=r-n;h>0&&"0"===s.slice(-1);)s=s.slice(0,-1),h--;return"."===s.slice(-1)&&(s=s.slice(0,-1)),c<e&&(s=_.call(Array(e-c+1),"0")+s),s}d(Y,"NumberFormat",{configurable:!0,writable:!0,value:Q}),d(Y.NumberFormat,"prototype",{writable:!1}),x.NumberFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["nu"],"[[localeData]]":{}},d(Y.NumberFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:k.call(function(t){if(!p.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var e=F(),n=arguments[1],r=this["[[availableLocales]]"],i=Z(t);return e(),V(r,i,n)},x.NumberFormat)}),d(Y.NumberFormat.prototype,"format",{configurable:!0,get:$}),Object.defineProperty(Y.NumberFormat.prototype,"formatToParts",{configurable:!0,enumerable:!1,writable:!0,value:function(){var t=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0],e=null!==this&&"object"===l.typeof(this)&&D(this);if(!e||!e["[[initializedNumberFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.NumberFormat object.");return function(e,n){for(var r=tt(e,Number(t)),i=[],o=0,a=0;r.length>a;a++){var s=r[a],u={};u.type=s["[[type]]"],u.value=s["[[value]]"],i[o]=u,o+=1}return i}(this)}});var it={arab:["\u0660","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"],arabext:["\u06f0","\u06f1","\u06f2","\u06f3","\u06f4","\u06f5","\u06f6","\u06f7","\u06f8","\u06f9"],bali:["\u1b50","\u1b51","\u1b52","\u1b53","\u1b54","\u1b55","\u1b56","\u1b57","\u1b58","\u1b59"],beng:["\u09e6","\u09e7","\u09e8","\u09e9","\u09ea","\u09eb","\u09ec","\u09ed","\u09ee","\u09ef"],deva:["\u0966","\u0967","\u0968","\u0969","\u096a","\u096b","\u096c","\u096d","\u096e","\u096f"],fullwide:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"],gujr:["\u0ae6","\u0ae7","\u0ae8","\u0ae9","\u0aea","\u0aeb","\u0aec","\u0aed","\u0aee","\u0aef"],guru:["\u0a66","\u0a67","\u0a68","\u0a69","\u0a6a","\u0a6b","\u0a6c","\u0a6d","\u0a6e","\u0a6f"],hanidec:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"],khmr:["\u17e0","\u17e1","\u17e2","\u17e3","\u17e4","\u17e5","\u17e6","\u17e7","\u17e8","\u17e9"],knda:["\u0ce6","\u0ce7","\u0ce8","\u0ce9","\u0cea","\u0ceb","\u0cec","\u0ced","\u0cee","\u0cef"],laoo:["\u0ed0","\u0ed1","\u0ed2","\u0ed3","\u0ed4","\u0ed5","\u0ed6","\u0ed7","\u0ed8","\u0ed9"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["\u1946","\u1947","\u1948","\u1949","\u194a","\u194b","\u194c","\u194d","\u194e","\u194f"],mlym:["\u0d66","\u0d67","\u0d68","\u0d69","\u0d6a","\u0d6b","\u0d6c","\u0d6d","\u0d6e","\u0d6f"],mong:["\u1810","\u1811","\u1812","\u1813","\u1814","\u1815","\u1816","\u1817","\u1818","\u1819"],mymr:["\u1040","\u1041","\u1042","\u1043","\u1044","\u1045","\u1046","\u1047","\u1048","\u1049"],orya:["\u0b66","\u0b67","\u0b68","\u0b69","\u0b6a","\u0b6b","\u0b6c","\u0b6d","\u0b6e","\u0b6f"],tamldec:["\u0be6","\u0be7","\u0be8","\u0be9","\u0bea","\u0beb","\u0bec","\u0bed","\u0bee","\u0bef"],telu:["\u0c66","\u0c67","\u0c68","\u0c69","\u0c6a","\u0c6b","\u0c6c","\u0c6d","\u0c6e","\u0c6f"],thai:["\u0e50","\u0e51","\u0e52","\u0e53","\u0e54","\u0e55","\u0e56","\u0e57","\u0e58","\u0e59"],tibt:["\u0f20","\u0f21","\u0f22","\u0f23","\u0f24","\u0f25","\u0f26","\u0f27","\u0f28","\u0f29"]};d(Y.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var t=void 0,e=new S,n=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],r=null!==this&&"object"===l.typeof(this)&&D(this);if(!r||!r["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var i=0,o=n.length;i<o;i++)p.call(r,t="[["+n[i]+"]]")&&(e[n[i]]={value:r[t],writable:!0,configurable:!0,enumerable:!0});return v({},e)}});var ot=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,at=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,st=/[rqQASjJgwWIQq]/,ut=["era","year","month","day","weekday","quarter"],ct=["hour","minute","second","hour12","timeZoneName"];function lt(t){for(var e=0;e<ct.length;e+=1)if(t.hasOwnProperty(ct[e]))return!1;return!0}function ft(t){for(var e=0;e<ut.length;e+=1)if(t.hasOwnProperty(ut[e]))return!1;return!0}function ht(t,e){for(var n={_:{}},r=0;r<ut.length;r+=1)t[ut[r]]&&(n[ut[r]]=t[ut[r]]),t._[ut[r]]&&(n._[ut[r]]=t._[ut[r]]);for(var i=0;i<ct.length;i+=1)e[ct[i]]&&(n[ct[i]]=e[ct[i]]),e._[ct[i]]&&(n._[ct[i]]=e._[ct[i]]);return n}function pt(t){return t.pattern12=t.extendedPattern.replace(/'([^']*)'/g,function(t,e){return e||"'"}),t.pattern=t.pattern12.replace("{ampm}","").replace(at,""),t}function dt(t,e){switch(t.charAt(0)){case"G":return e.era=["short","short","short","long","narrow"][t.length-1],"{era}";case"y":case"Y":case"u":case"U":case"r":return e.year=2===t.length?"2-digit":"numeric","{year}";case"Q":case"q":return e.quarter=["numeric","2-digit","short","long","narrow"][t.length-1],"{quarter}";case"M":case"L":return e.month=["numeric","2-digit","short","long","narrow"][t.length-1],"{month}";case"w":return e.week=2===t.length?"2-digit":"numeric","{weekday}";case"W":return e.week="numeric","{weekday}";case"d":return e.day=2===t.length?"2-digit":"numeric","{day}";case"D":case"F":case"g":return e.day="numeric","{day}";case"E":return e.weekday=["short","short","short","long","narrow","short"][t.length-1],"{weekday}";case"e":return e.weekday=["numeric","2-digit","short","long","narrow","short"][t.length-1],"{weekday}";case"c":return e.weekday=["numeric",void 0,"short","long","narrow","short"][t.length-1],"{weekday}";case"a":case"b":case"B":return e.hour12=!0,"{ampm}";case"h":case"H":return e.hour=2===t.length?"2-digit":"numeric","{hour}";case"k":case"K":return e.hour12=!0,e.hour=2===t.length?"2-digit":"numeric","{hour}";case"m":return e.minute=2===t.length?"2-digit":"numeric","{minute}";case"s":return e.second=2===t.length?"2-digit":"numeric","{second}";case"S":case"A":return e.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return e.timeZoneName=t.length<4?"short":"long","{timeZoneName}"}}function gt(t,e){if(!st.test(e)){var n={originalPattern:e,_:{}};return n.extendedPattern=e.replace(ot,function(t){return dt(t,n._)}),t.replace(ot,function(t){return dt(t,n)}),pt(n)}}var vt={second:{numeric:"s","2-digit":"ss"},minute:{numeric:"m","2-digit":"mm"},year:{numeric:"y","2-digit":"yy"},day:{numeric:"d","2-digit":"dd"},month:{numeric:"L","2-digit":"LL",narrow:"LLLLL",short:"LLL",long:"LLLL"},weekday:{narrow:"ccccc",short:"ccc",long:"cccc"}},mt=v(null,{narrow:{},short:{},long:{}});function yt(t,e,n,r,i){var o=t[e]&&t[e][n]?t[e][n]:t.gregory[n],a={narrow:["short","long"],short:["long","narrow"],long:["short","narrow"]},s=p.call(o,r)?o[r]:p.call(o,a[r][0])?o[a[r][0]]:o[a[r][1]];return null!==i?s[i]:s}function bt(){var t=arguments[0],e=arguments[1];return this&&this!==Y?function(t,e,n){var r=D(t),i=F();if(!0===r["[[initializedIntlObject]]"])throw new TypeError("`this` object has already been initialized as an Intl object");d(t,"__getInternalProperties",{value:function(){if(arguments[0]===T)return r}}),r["[[initializedIntlObject]]"]=!0;var o=Z(e);n=wt(n,"any","date");var a=new S,u=G(n,"localeMatcher","string",new E("lookup","best fit"),"best fit");a["[[localeMatcher]]"]=u;var c=x.DateTimeFormat,l=c["[[localeData]]"],f=H(c["[[availableLocales]]"],o,a,c["[[relevantExtensionKeys]]"],l);r["[[locale]]"]=f["[[locale]]"],r["[[calendar]]"]=f["[[ca]]"],r["[[numberingSystem]]"]=f["[[nu]]"],r["[[dataLocale]]"]=f["[[dataLocale]]"];var v=f["[[dataLocale]]"],m=n.timeZone;if(void 0!==m&&"UTC"!==(m=z(m)))throw new RangeError("timeZone is not supported.");for(var y in r["[[timeZone]]"]=m,a=new S,_t)if(p.call(_t,y)){var b=G(n,y,"string",_t[y]);a["[["+y+"]]"]=b}var _=void 0,w=l[v],k=function(t){return"[object Array]"===Object.prototype.toString.call(t)?t:function(t){var e=t.availableFormats,n=t.timeFormats,r=t.dateFormats,i=[],o=void 0,a=void 0,s=void 0,u=void 0,c=void 0,l=[],f=[];for(o in e)e.hasOwnProperty(o)&&(s=gt(o,a=e[o]))&&(i.push(s),lt(s)?f.push(s):ft(s)&&l.push(s));for(o in n)n.hasOwnProperty(o)&&(s=gt(o,a=n[o]))&&(i.push(s),l.push(s));for(o in r)r.hasOwnProperty(o)&&(s=gt(o,a=r[o]))&&(i.push(s),f.push(s));for(u=0;u<l.length;u+=1)for(c=0;c<f.length;c+=1)a="long"===f[c].month?f[c].weekday?t.full:t.long:"short"===f[c].month?t.medium:t.short,(s=ht(f[c],l[u])).originalPattern=a,s.extendedPattern=a.replace("{0}",l[u].extendedPattern).replace("{1}",f[c].extendedPattern).replace(/^[,\s]+|[,\s]+$/gi,""),i.push(pt(s));return i}(t)}(w.formats);if(u=G(n,"formatMatcher","string",new E("basic","best fit"),"best fit"),w.formats=k,"basic"===u)_=function(t,e){for(var n=-1/0,r=void 0,i=0,o=e.length;i<o;){var a=e[i],s=0;for(var u in _t)if(p.call(_t,u)){var c=t["[["+u+"]]"],l=p.call(a,u)?a[u]:void 0;if(void 0===c&&void 0!==l)s-=20;else if(void 0!==c&&void 0===l)s-=120;else{var f=["2-digit","numeric","narrow","short","long"],h=g.call(f,c),d=g.call(f,l),v=Math.max(Math.min(d-h,2),-2);2===v?s-=6:1===v?s-=3:-1===v?s-=6:-2===v&&(s-=8)}}s>n&&(n=s,r=a),i++}return r}(a,k);else{var O=G(n,"hour12","boolean");a.hour12=void 0===O?w.hour12:O,_=function(t,e){var n=[];for(var r in _t)p.call(_t,r)&&void 0!==t["[["+r+"]]"]&&n.push(r);if(1===n.length){var i=function(t,e){var n;if(vt[t]&&vt[t][e])return n={originalPattern:vt[t][e],_:s({},t,e),extendedPattern:"{"+t+"}"},s(n,t,e),s(n,"pattern12","{"+t+"}"),s(n,"pattern","{"+t+"}"),n}(n[0],t["[["+n[0]+"]]"]);if(i)return i}for(var o=-1/0,a=void 0,u=0,c=e.length;u<c;){var l=e[u],f=0;for(var h in _t)if(p.call(_t,h)){var d=t["[["+h+"]]"],v=p.call(l,h)?l[h]:void 0;if(d!==(p.call(l._,h)?l._[h]:void 0)&&(f-=2),void 0===d&&void 0!==v)f-=20;else if(void 0!==d&&void 0===v)f-=120;else{var m=["2-digit","numeric","narrow","short","long"],y=g.call(m,d),b=g.call(m,v),_=Math.max(Math.min(b-y,2),-2);b<=1&&y>=2||b>=2&&y<=1?_>0?f-=6:_<0&&(f-=8):_>1?f-=3:_<-1&&(f-=6)}}l._.hour12!==t.hour12&&(f-=1),f>o&&(o=f,a=l),u++}return a}(a,k)}for(var P in _t)if(p.call(_t,P)&&p.call(_,P)){var M=_[P];M=_._&&p.call(_._,P)?_._[P]:M,r["[["+P+"]]"]=M}var j=void 0,N=G(n,"hour12","boolean");return r["[[hour]]"]?(r["[[hour12]]"]=N=void 0===N?w.hour12:N,!0===N?(r["[[hourNo0]]"]=w.hourNo0,j=_.pattern12):j=_.pattern):j=_.pattern,r["[[pattern]]"]=j,r["[[boundFormat]]"]=void 0,r["[[initializedDateTimeFormat]]"]=!0,h&&(t.format=kt.call(t)),i(),t}(O(this),t,e):new Y.DateTimeFormat(t,e)}d(Y,"DateTimeFormat",{configurable:!0,writable:!0,value:bt}),d(bt,"prototype",{writable:!1});var _t={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};function wt(t,e,n){if(void 0===t)t=null;else{var r=O(t);for(var i in t=new S,r)t[i]=r[i]}t=v(t);var o=!0;return"date"!==e&&"any"!==e||void 0===t.weekday&&void 0===t.year&&void 0===t.month&&void 0===t.day||(o=!1),"time"!==e&&"any"!==e||void 0===t.hour&&void 0===t.minute&&void 0===t.second||(o=!1),!o||"date"!==n&&"all"!==n||(t.year=t.month=t.day="numeric"),!o||"time"!==n&&"all"!==n||(t.hour=t.minute=t.second="numeric"),t}function kt(){var t=null!==this&&"object"===l.typeof(this)&&D(this);if(!t||!t["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===t["[[boundFormat]]"]){var e=k.call(function(){var t=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0];return Tt(this,void 0===t?Date.now():P(t))},this);t["[[boundFormat]]"]=e}return t["[[boundFormat]]"]}function xt(t,e){if(!isFinite(e))throw new RangeError("Invalid valid date passed to format");var n=t.__getInternalProperties(T);F();for(var r,i,o,a=n["[[locale]]"],s=new Y.NumberFormat([a],{useGrouping:!1}),u=new Y.NumberFormat([a],{minimumIntegerDigits:2,useGrouping:!1}),c=(r=n["[[timeZone]]"],new S({"[[weekday]]":(i=new Date(e))[(o="get"+(r||""))+"Day"](),"[[era]]":+(i[o+"FullYear"]()>=0),"[[year]]":i[o+"FullYear"](),"[[month]]":i[o+"Month"](),"[[day]]":i[o+"Date"](),"[[hour]]":i[o+"Hours"](),"[[minute]]":i[o+"Minutes"](),"[[second]]":i[o+"Seconds"](),"[[inDST]]":!1})),l=n["[[pattern]]"],f=new E,h=0,p=l.indexOf("{"),d=0,g=x.DateTimeFormat["[[localeData]]"][n["[[dataLocale]]"]].calendars,v=n["[[calendar]]"];-1!==p;){var m=void 0;if(-1===(d=l.indexOf("}",p)))throw new Error("Unclosed pattern");p>h&&b.call(f,{type:"literal",value:l.substring(h,p)});var y=l.substring(p+1,d);if(_t.hasOwnProperty(y)){var _=n["[["+y+"]]"],w=c["[["+y+"]]"];if("year"===y&&w<=0?w=1-w:"month"===y?w++:"hour"===y&&!0===n["[[hour12]]"]&&0==(w%=12)&&!0===n["[[hourNo0]]"]&&(w=12),"numeric"===_)m=et(s,w);else if("2-digit"===_)(m=et(u,w)).length>2&&(m=m.slice(-2));else if(_ in mt)switch(y){case"month":m=yt(g,v,"months",_,c["[["+y+"]]"]);break;case"weekday":try{m=yt(g,v,"days",_,c["[["+y+"]]"])}catch(t){throw new Error("Could not find weekday data for locale "+a)}break;case"timeZoneName":m="";break;case"era":try{m=yt(g,v,"eras",_,c["[["+y+"]]"])}catch(t){throw new Error("Could not find era data for locale "+a)}break;default:m=c["[["+y+"]]"]}b.call(f,{type:y,value:m})}else"ampm"===y?(m=yt(g,v,"dayPeriods",c["[[hour]]"]>11?"pm":"am",null),b.call(f,{type:"dayPeriod",value:m})):b.call(f,{type:"literal",value:l.substring(p,d+1)});p=l.indexOf("{",h=d+1)}return d<l.length-1&&b.call(f,{type:"literal",value:l.substr(d+1)}),f}function Tt(t,e){for(var n=xt(t,e),r="",i=0;n.length>i;i++)r+=n[i].value;return r}x.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},d(Y.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:k.call(function(t){if(!p.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var e=F(),n=arguments[1],r=this["[[availableLocales]]"],i=Z(t);return e(),V(r,i,n)},x.NumberFormat)}),d(Y.DateTimeFormat.prototype,"format",{configurable:!0,get:kt}),Object.defineProperty(Y.DateTimeFormat.prototype,"formatToParts",{enumerable:!1,writable:!0,configurable:!0,value:function(){var t=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0],e=null!==this&&"object"===l.typeof(this)&&D(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");return function(e,n){for(var r=xt(e,void 0===t?Date.now():P(t)),i=[],o=0;r.length>o;o++){var a=r[o];i.push({type:a.type,value:a.value})}return i}(this)}}),d(Y.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var t=void 0,e=new S,n=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],r=null!==this&&"object"===l.typeof(this)&&D(this);if(!r||!r["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var i=0,o=n.length;i<o;i++)p.call(r,t="[["+n[i]+"]]")&&(e[n[i]]={value:r[t],writable:!0,configurable:!0,enumerable:!0});return v({},e)}});var St=Y.__localeSensitiveProtos={Number:{},Date:{}};St.Number.toLocaleString=function(){if("[object Number]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a number for Number.prototype.toLocaleString()");return et(new Q(arguments[0],arguments[1]),this)},St.Date.toLocaleString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleString()");var t=+this;if(isNaN(t))return"Invalid Date";var e=arguments[1];return Tt(new bt(arguments[0],e=wt(e,"any","all")),t)},St.Date.toLocaleDateString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleDateString()");var t=+this;if(isNaN(t))return"Invalid Date";var e=arguments[1];return Tt(new bt(arguments[0],e=wt(e,"date","date")),t)},St.Date.toLocaleTimeString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleTimeString()");var t=+this;if(isNaN(t))return"Invalid Date";var e=arguments[1];return Tt(new bt(arguments[0],e=wt(e,"time","time")),t)},d(Y,"__applyLocaleSensitivePrototypes",{writable:!0,configurable:!0,value:function(){for(var t in d(Number.prototype,"toLocaleString",{writable:!0,configurable:!0,value:St.Number.toLocaleString}),d(Date.prototype,"toLocaleString",{writable:!0,configurable:!0,value:St.Date.toLocaleString}),St.Date)p.call(St.Date,t)&&d(Date.prototype,t,{writable:!0,configurable:!0,value:St.Date[t]})}}),d(Y,"__addLocaleData",{value:function(t){if(!I(t.locale))throw new Error("Object passed doesn't identify itself with a valid language tag");!function(t,e){if(!t.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var n=void 0,r=[e],i=e.split("-");for(i.length>2&&4===i[1].length&&b.call(r,i[0]+"-"+i[2]);n=w.call(r);)b.call(x.NumberFormat["[[availableLocales]]"],n),x.NumberFormat["[[localeData]]"][n]=t.number,t.date&&(t.date.nu=t.number.nu,b.call(x.DateTimeFormat["[[availableLocales]]"],n),x.DateTimeFormat["[[localeData]]"][n]=t.date);void 0===L&&(L=e)}(t,t.locale)}}),d(Y,"__disableRegExpRestore",{value:function(){x.disableRegExpRestore=!0}}),t.exports=Y},"fN/3":function(t,e,n){var r=n("N6cJ"),i=n("y3w9"),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:a(arguments[1]))}})},fN96:function(t,e,n){var r=n("XKFU");r(r.S,"Number",{isInteger:n("nBIS")})},fyDq:function(t,e,n){var r=n("hswa").f,i=n("aagx"),o=n("K0xU")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},fyVe:function(t,e,n){var r=n("XKFU"),i=n("1sa7"),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},g3g5:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},g4EE:function(t,e,n){"use strict";var r=n("y3w9"),i=n("apmT");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},g6HL:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},"h/M4":function(t,e,n){var r=n("XKFU");r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},h7Nl:function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n("KroJ")(r,"toString",function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"})},hEkN:function(t,e,n){"use strict";n("OGtf")("anchor",function(t){return function(e){return t(this,"a","name",e)}})},hHhE:function(t,e,n){var r=n("XKFU");r(r.S,"Object",{create:n("Kuth")})},hLT2:function(t,e,n){var r=n("XKFU");r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},"hN/g":function(t,e,n){"use strict";n.r(e),n("vqGA"),n("99sg"),n("4A4+"),n("oka+"),n("ifmr"),n("Lmuc"),n("CuTL"),n("V5/Y"),n("nx1v"),n("dQfE"),n("rfyP"),n("qKs0"),n("VXxg"),n("5yqK"),n("6dTf"),n("VbrY"),n("FZcq"),n("0TWp"),n("FoZm")},hPIQ:function(t,e){t.exports={}},hswa:function(t,e,n){var r=n("y3w9"),i=n("xpql"),o=n("apmT"),a=Object.defineProperty;e.f=n("nh4g")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},i5dc:function(t,e,n){var r=n("0/R4"),i=n("y3w9"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n("m0Pp")(Function.call,n("EemH").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},iMoV:function(t,e,n){var r=n("hswa"),i=n("XKFU"),o=n("y3w9"),a=n("apmT");i(i.S+i.F*n("eeVq")(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=a(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},"iW+S":function(t,e,n){var r=n("N6cJ"),i=n("y3w9"),o=n("OP3Y"),a=r.has,s=r.key,u=function(t,e,n){if(a(t,e,n))return!0;var r=o(e);return null!==r&&u(t,r,n)};r.exp({hasMetadata:function(t,e){return u(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},ifmr:function(t,e,n){n("tyy+"),t.exports=n("g3g5").parseFloat},ioFf:function(t,e,n){"use strict";var r=n("dyZX"),i=n("aagx"),o=n("nh4g"),a=n("XKFU"),s=n("KroJ"),u=n("Z6vF").KEY,c=n("eeVq"),l=n("VTer"),f=n("fyDq"),h=n("ylqs"),p=n("K0xU"),d=n("N8g3"),g=n("OnI7"),v=n("1MBn"),m=n("EWmC"),y=n("y3w9"),b=n("0/R4"),_=n("aCFj"),w=n("apmT"),k=n("RjD/"),x=n("Kuth"),T=n("e7yV"),S=n("EemH"),E=n("hswa"),F=n("DVgA"),O=S.f,P=E.f,D=T.f,M=r.Symbol,j=r.JSON,N=j&&j.stringify,R=p("_hidden"),L=p("toPrimitive"),A={}.propertyIsEnumerable,z=l("symbol-registry"),I=l("symbols"),C=l("op-symbols"),U=Object.prototype,K="function"==typeof M,Z=r.QObject,q=!Z||!Z.prototype||!Z.prototype.findChild,X=o&&c(function(){return 7!=x(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=O(U,e);r&&delete U[e],P(t,e,n),r&&t!==U&&P(U,e,r)}:P,H=function(t){var e=I[t]=x(M.prototype);return e._k=t,e},W=K&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},V=function(t,e,n){return t===U&&V(C,e,n),y(t),e=w(e,!0),y(n),i(I,e)?(n.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),n=x(n,{enumerable:k(0,!1)})):(i(t,R)||P(t,R,k(1,{})),t[R][e]=!0),X(t,e,n)):P(t,e,n)},G=function(t,e){y(t);for(var n,r=v(e=_(e)),i=0,o=r.length;o>i;)V(t,n=r[i++],e[n]);return t},B=function(t){var e=A.call(this,t=w(t,!0));return!(this===U&&i(I,t)&&!i(C,t))&&(!(e||!i(this,t)||!i(I,t)||i(this,R)&&this[R][t])||e)},Y=function(t,e){if(t=_(t),e=w(e,!0),t!==U||!i(I,e)||i(C,e)){var n=O(t,e);return!n||!i(I,e)||i(t,R)&&t[R][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=D(_(t)),r=[],o=0;n.length>o;)i(I,e=n[o++])||e==R||e==u||r.push(e);return r},Q=function(t){for(var e,n=t===U,r=D(n?C:_(t)),o=[],a=0;r.length>a;)!i(I,e=r[a++])||n&&!i(U,e)||o.push(I[e]);return o};K||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(C,n),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),X(this,t,k(1,n))};return o&&q&&X(U,t,{configurable:!0,set:e}),H(t)}).prototype,"toString",function(){return this._k}),S.f=Y,E.f=V,n("kJMx").f=T.f=J,n("UqcF").f=B,n("JiEa").f=Q,o&&!n("LQAc")&&s(U,"propertyIsEnumerable",B,!0),d.f=function(t){return H(p(t))}),a(a.G+a.W+a.F*!K,{Symbol:M});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)p($[tt++]);for(var et=F(p.store),nt=0;et.length>nt;)g(et[nt++]);a(a.S+a.F*!K,"Symbol",{for:function(t){return i(z,t+="")?z[t]:z[t]=M(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!K,"Object",{create:function(t,e){return void 0===e?x(t):G(x(t),e)},defineProperty:V,defineProperties:G,getOwnPropertyDescriptor:Y,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),j&&a(a.S+a.F*(!K||c(function(){var t=M();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!W(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,N.apply(j,r)}}),M.prototype[L]||n("Mukb")(M.prototype,L,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},jqX0:function(t,e,n){var r=n("XKFU"),i=n("jtBr");r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},jtBr:function(t,e,n){"use strict";var r=n("eeVq"),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},kJMx:function(t,e,n){var r=n("zhAb"),i=n("4R4u").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},kcoS:function(t,e,n){var r=n("lvtm"),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),c=r(t);return i<u?c*(i/u/a+1/o-1/o)*u*a:(n=(e=(1+a/o)*i)-(e-i))>s||n!=n?c*(1/0):c*n}},klPD:function(t,e,n){var r=n("hswa"),i=n("EemH"),o=n("OP3Y"),a=n("aagx"),s=n("XKFU"),u=n("RjD/"),c=n("y3w9"),l=n("0/R4");s(s.S,"Reflect",{set:function t(e,n,s){var f,h,p=arguments.length<4?e:arguments[3],d=i.f(c(e),n);if(!d){if(l(h=o(e)))return t(h,n,s,p);d=u(0)}if(a(d,"value")){if(!1===d.writable||!l(p))return!1;if(f=i.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(p,n,f)}else r.f(p,n,u(0,s));return!0}return void 0!==d.set&&(d.set.call(p,s),!0)}})},knU9:function(t,e,n){var r=n("XKFU"),i=n("i5dc");i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},knhD:function(t,e,n){var r=n("XKFU");r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},l0Rn:function(t,e,n){"use strict";var r=n("RYi7"),i=n("vhPU");t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},lvtm:function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},m0Pp:function(t,e,n){var r=n("2OiF");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},mGWK:function(t,e,n){"use strict";var r=n("XKFU"),i=n("aCFj"),o=n("RYi7"),a=n("ne8i"),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n("LyE8")(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=i(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},mQtv:function(t,e,n){var r=n("kJMx"),i=n("JiEa"),o=n("y3w9"),a=n("dyZX").Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},mYba:function(t,e,n){var r=n("aCFj"),i=n("EemH").f;n("Xtr8")("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},mura:function(t,e,n){var r=n("0/R4"),i=n("Z6vF").onFreeze;n("Xtr8")("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},nBIS:function(t,e,n){var r=n("0/R4"),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},nGyu:function(t,e,n){var r=n("K0xU")("unscopables"),i=Array.prototype;void 0==i[r]&&n("Mukb")(i,r,{}),t.exports=function(t){i[r][t]=!0}},nIY7:function(t,e,n){"use strict";n("OGtf")("big",function(t){return function(){return t(this,"big","","")}})},ne8i:function(t,e,n){var r=n("RYi7"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},nh4g:function(t,e,n){t.exports=!n("eeVq")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},nsiH:function(t,e,n){"use strict";n("OGtf")("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},nx1v:function(t,e,n){n("eM6i"),n("AphP"),n("jqX0"),n("h7Nl"),n("yM4b"),t.exports=Date},nzyx:function(t,e,n){var r=n("XKFU"),i=n("LVwc");r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},oDIu:function(t,e,n){"use strict";var r=n("XKFU"),i=n("AvRE")(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},"oZ/O":function(t,e,n){var r=n("XKFU"),i=n("y3w9"),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},"oka+":function(t,e,n){n("GNAe"),t.exports=n("g3g5").parseInt},pIFo:function(t,e,n){n("IU+Z")("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},"pp/T":function(t,e,n){var r=n("XKFU");r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},qKs0:function(t,e,n){n("Btvt"),n("XfO3"),n("rGqo"),n("9AAn"),t.exports=n("g3g5").Map},qncB:function(t,e,n){var r=n("XKFU"),i=n("vhPU"),o=n("eeVq"),a=n("/e88"),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(t,e,n){var i={},s=o(function(){return!!a[t]()||"\u200b\x85"!="\u200b\x85"[t]()}),u=i[t]=s?e(f):a[t];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},f=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=l},quPj:function(t,e,n){var r=n("0/R4"),i=n("LZWt"),o=n("K0xU")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},rGqo:function(t,e,n){for(var r=n("yt8O"),i=n("DVgA"),o=n("KroJ"),a=n("dyZX"),s=n("Mukb"),u=n("hPIQ"),c=n("K0xU"),l=c("iterator"),f=c("toStringTag"),h=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),g=0;g<d.length;g++){var v,m=d[g],y=p[m],b=a[m],_=b&&b.prototype;if(_&&(_[l]||s(_,l,h),_[f]||s(_,f,m),u[m]=h,y))for(v in r)_[v]||o(_,v,r[v],!0)}},rfyP:function(t,e,n){n("Oyvg"),n("a1Th"),n("OEbY"),n("SRfc"),n("pIFo"),n("OG14"),n("KKXr"),t.exports=n("g3g5").RegExp},rvZc:function(t,e,n){"use strict";var r=n("XKFU"),i=n("ne8i"),o=n("0sh+"),a="".endsWith;r(r.P+r.F*n("UUeW")("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),s=void 0===n?r:Math.min(i(n),r),u=String(t);return a?a.call(e,u,s):e.slice(s-u.length,s)===u}})},s5qY:function(t,e,n){var r=n("0/R4");t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},sbF8:function(t,e,n){var r=n("XKFU"),i=n("nBIS"),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},tUrg:function(t,e,n){"use strict";n("OGtf")("link",function(t){return function(e){return t(this,"a","href",e)}})},"tyy+":function(t,e,n){var r=n("XKFU"),i=n("11IZ");r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},uAtd:function(t,e,n){var r=n("T39b"),i=n("Q3ne"),o=n("N6cJ"),a=n("y3w9"),s=n("OP3Y"),u=o.keys,c=o.key,l=function(t,e){var n=u(t,e),o=s(t);if(null===o)return n;var a=l(o,e);return a.length?n.length?i(new r(n.concat(a))):a:n};o.exp({getMetadataKeys:function(t){return l(a(t),arguments.length<2?void 0:c(arguments[1]))}})},uhZd:function(t,e,n){var r=n("XKFU"),i=n("EemH").f,o=n("y3w9");r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},upKx:function(t,e,n){"use strict";var r=n("S/j/"),i=n("d/Gc"),o=n("ne8i");t.exports=[].copyWithin||function(t,e){var n=r(this),a=o(n.length),s=i(t,a),u=i(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:i(c,a))-u,a-s),f=1;for(u<s&&s<u+l&&(f=-1,u+=l-1,s+=l-1);l-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},vhPU:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},vqGA:function(t,e,n){n("ioFf"),n("Btvt"),t.exports=n("g3g5").Symbol},vvmO:function(t,e,n){var r=n("LZWt");t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},w2a5:function(t,e,n){var r=n("aCFj"),i=n("ne8i"),o=n("d/Gc");t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},wmvG:function(t,e,n){"use strict";var r=n("hswa").f,i=n("Kuth"),o=n("3Lyj"),a=n("m0Pp"),s=n("9gX7"),u=n("SlkY"),c=n("Afnz"),l=n("1TsA"),f=n("elZq"),h=n("nh4g"),p=n("Z6vF").fastKey,d=n("s5qY"),g=h?"_s":"size",v=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t(function(t,r){s(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=r&&u(r,n,t[c],t)});return o(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n=d(this,e),r=v(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(d(this,e),t)}}),h&&r(l.prototype,"size",{get:function(){return d(this,e)[g]}}),l},def:function(t,e,n){var r,i,o=v(t,e);return o?o.v=n:(t._l=o={i:i=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:v,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=d(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))},n?"entries":"values",!n,!0),f(e)}}},x8Yj:function(t,e,n){var r=n("XKFU"),i=n("LVwc"),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},x8ZO:function(t,e,n){var r=n("XKFU"),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,a=0,s=arguments.length,u=0;a<s;)u<(n=i(arguments[a++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},xfY5:function(t,e,n){"use strict";var r=n("dyZX"),i=n("aagx"),o=n("LZWt"),a=n("Xbzi"),s=n("apmT"),u=n("eeVq"),c=n("kJMx").f,l=n("EemH").f,f=n("hswa").f,h=n("qncB").trim,p=r.Number,d=p,g=p.prototype,v="Number"==o(n("Kuth")(g)),m="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=m?e.trim():h(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,u=e.slice(2),c=0,l=u.length;c<l;c++)if((a=u.charCodeAt(c))<48||a>i)return NaN;return parseInt(u,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(v?u(function(){g.valueOf.call(n)}):"Number"!=o(n))?a(new d(y(e)),n,p):y(e)};for(var b,_=n("nh4g")?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(d,b=_[w])&&!i(p,b)&&f(p,b,l(d,b));p.prototype=g,g.constructor=p,n("KroJ")(r,"Number",p)}},xpiv:function(t,e,n){var r=n("XKFU");r(r.S,"Reflect",{ownKeys:n("mQtv")})},xpql:function(t,e,n){t.exports=!n("nh4g")&&!n("eeVq")(function(){return 7!=Object.defineProperty(n("Iw71")("div"),"a",{get:function(){return 7}}).a})},y3w9:function(t,e,n){var r=n("0/R4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},yM4b:function(t,e,n){var r=n("K0xU")("toPrimitive"),i=Date.prototype;r in i||n("Mukb")(i,r,n("g4EE"))},ylqs:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},yt8O:function(t,e,n){"use strict";var r=n("nGyu"),i=n("1TsA"),o=n("hPIQ"),a=n("aCFj");t.exports=n("Afnz")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},z2o2:function(t,e,n){var r=n("0/R4"),i=n("Z6vF").onFreeze;n("Xtr8")("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},zRwo:function(t,e,n){var r=n("6FMO");t.exports=function(t,e){return new(r(t))(e)}},zhAb:function(t,e,n){var r=n("aagx"),i=n("aCFj"),o=n("w2a5")(!1),a=n("YTvA")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},"zq+C":function(t,e,n){var r=n("N6cJ"),i=n("y3w9"),o=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),r=a(i(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var u=s.get(e);return u.delete(n),!!u.size||s.delete(e)}})}},[[4,7]]]);
188,361
188,361
0.650681
e342a0dabf1cda16f28785000bc7e3147186ac65
3,234
js
JavaScript
_dsa_sutra_TOOL_toolbar_sidebar/forms/TOOL_title.js
kabootit/data-sutra
a9c08515dd3a6902a1737d2b812349f19e9633d8
[ "MIT" ]
1
2017-03-08T08:08:00.000Z
2017-03-08T08:08:00.000Z
_dsa_sutra_TOOL_toolbar_sidebar/forms/TOOL_title.js
kabootit/data-sutra
a9c08515dd3a6902a1737d2b812349f19e9633d8
[ "MIT" ]
4
2017-03-07T08:50:18.000Z
2017-03-08T03:28:52.000Z
_dsa_sutra_TOOL_toolbar_sidebar/forms/TOOL_title.js
kabootit/data-sutra
a9c08515dd3a6902a1737d2b812349f19e9633d8
[ "MIT" ]
null
null
null
/** * * @properties={typeid:24,uuid:"5558f4e7-c594-47ba-80f0-c12efe948ba6"} */ function FORM_on_load() { /* //set up listeners elements.bean_header.addMouseListener(new Packages.java.awt.event.MouseAdapter({mousePressed:mouseListener})) elements.bean_header.addMouseMotionListener(new Packages.java.awt.event.MouseMotionAdapter({mouseDragged:mouseMotionListener})) */ } /** * Callback method for when form is shown. * * @param {Boolean} firstShow form is shown first time after load * @param {JSEvent} event the event that triggered the action * * @properties={typeid:24,uuid:"26f9a543-7168-4de9-b16b-45bd98bf9027"} */ function FORM_on_show(firstShow, event) { /* * TITLE : FORM_on_load * * MODULE : rsrc_TOOL_toolbar * * ABOUT : set icon image if available * * INPUT : * * OUTPUT : * * REQUIRES : * * USAGE : FORM_on_load() * * MODIFIED : June 29, 2008 -- Troy Elliott, Data Mosaic * */ if (arguments[0]) { //graphic icon if (foundset.solution_icon_blob && (foundset.solution_icon_type.equalsIgnoreCase('pdf') || foundset.solution_icon_type.equalsIgnoreCase('png') || foundset.solution_icon_type.equalsIgnoreCase('jpg') || foundset.solution_icon_type.equalsIgnoreCase('jpeg') || foundset.solution_icon_type.equalsIgnoreCase('gif') || foundset.solution_icon_type.equalsIgnoreCase('bmp') || foundset.solution_icon_type.equalsIgnoreCase('pict') || foundset.solution_icon_type.equalsIgnoreCase('tif') || foundset.solution_icon_type.equalsIgnoreCase('tiff'))) { var blobLoader = 'media:///servoy_blobloader?servername=' + controller.getServerName() + '&tablename=' + 'sutra_solution' + '&dataprovider=solution_icon_blob' + '&rowid1=' + id_solution + '&mimetype='+solution_icon_type + '&filename='+solution_icon elements.gfx_logo.setImageURL(blobLoader) elements.gfx_logo.visible = true } else { elements.gfx_logo.visible = false elements.gfx_logo.setImageURL('media:///none') } //graphic tooltip if (foundset.solution_icon_tooltip) { elements.gfx_logo.toolTipText = foundset.solution_icon_tooltip } else { elements.gfx_logo.toolTipText = '' } } } /** * * @properties={typeid:24,uuid:"bce35aa6-d832-42a2-8556-0f45c8879ee1"} */ function mouseListener() { var mouseEvent = arguments[0] origin.x = mouseEvent.getX() origin.y = mouseEvent.getY() } /** * * @properties={typeid:24,uuid:"7eb6e7a6-29f5-4d67-aa1e-e70db2a48429"} */ function mouseMotionListener() { var frame = Packages.java.awt.Frame.getFrames()[0] var mouseEvent = arguments[0] var point = frame.getLocation() frame.setLocation( point.x + mouseEvent.getX() - origin.x, point.y + mouseEvent.getY() - origin.y ) } /** * * @properties={typeid:24,uuid:"385b28e1-7a08-4962-8079-9ed461df9dd5"} */ function URL_branding() { /* * TITLE : URL_branding * * MODULE : rsrc_TOOL_toolbar * * ABOUT : * * INPUT : * * OUTPUT : * * REQUIRES : * * USAGE : URL_branding() * * MODIFIED : June 29, 2008 -- Troy Elliott, Data Mosaic * */ if (solution_icon_url) { globals.CODE_url_handler(solution_icon_url,null,true) } }
21.704698
202
0.680581
e3440cb47c4ac37fc95918ac7450fbb62a7a4839
1,510
js
JavaScript
e2e_test/specs/JavaScriptEvent.js
jirokun/react-enquete
978dc383ebbe09346248ec92acd5786e502ca2dc
[ "MIT" ]
71
2017-02-02T06:09:08.000Z
2021-10-04T08:16:59.000Z
e2e_test/specs/JavaScriptEvent.js
jirokun/react-enquete
978dc383ebbe09346248ec92acd5786e502ca2dc
[ "MIT" ]
29
2017-03-02T10:13:54.000Z
2022-03-03T22:23:45.000Z
e2e_test/specs/JavaScriptEvent.js
jirokun/react-enquete
978dc383ebbe09346248ec92acd5786e502ca2dc
[ "MIT" ]
15
2017-03-09T05:09:23.000Z
2021-12-23T00:26:19.000Z
/* eslint-env node */ /* global browser */ const expect = require('chai').expect; const clearRequireCache = require('../clearRequireCache'); clearRequireCache(); const EditorPage = require('../pages/EditorPage'); const ResponsePage = require('../pages/ResponsePage'); const eventSurvey = require('./eventSurvey.json'); describe('JavaScriptEvent', () => { let editorPage; let responsePage; beforeEach(() => { editorPage = new EditorPage(); editorPage.loadSurvey(eventSurvey); editorPage.preview(); responsePage = new ResponsePage(); responsePage.clickByOutputNo('1-1-1'); responsePage.nextPage(); responsePage.setValue('2-1-1', 10); responsePage.nextPage(); }); afterEach(() => { responsePage.close(); }); it('pageUnloadではロジック変数の値を取得することができる', () => { const page2PageUnloadAnswers = responsePage.transformAnswers(browser.execute(() => window.test.page2PageUnloadAnswers).value); expect(page2PageUnloadAnswers['1-1-1']).to.equal('1'); expect(page2PageUnloadAnswers['2-1-1']).to.equal('10'); expect(page2PageUnloadAnswers['2-L-000']).to.equal(20); }); it('pageLoadでは前のページのpageUnloadのJavaScriptで設定した値を取得することができる', () => { const page3PageLoadAnswers = responsePage.transformAnswers(browser.execute(() => window.test.page3PageLoadAnswers).value); expect(page3PageLoadAnswers['1-1-1']).to.equal('1'); expect(page3PageLoadAnswers['2-1-1']).to.equal('10'); expect(page3PageLoadAnswers['2-L-000']).to.equal('abc'); }); });
32.826087
130
0.693377
e3440e9be97b02a628178ecd3a5bb0e12f2d31c3
215
js
JavaScript
resources/assets/vendors/insignia/slice.js
maxvanray/spacetime-build
afe7f0f46e2156063990d0cf4a4f1627542c5d33
[ "MIT" ]
746
2015-01-14T15:23:43.000Z
2022-02-15T18:39:21.000Z
resources/assets/vendors/insignia/slice.js
maxvanray/spacetime-build
afe7f0f46e2156063990d0cf4a4f1627542c5d33
[ "MIT" ]
24
2015-01-14T17:28:12.000Z
2020-07-19T23:23:47.000Z
resources/assets/vendors/insignia/slice.js
maxvanray/spacetime-build
afe7f0f46e2156063990d0cf4a4f1627542c5d33
[ "MIT" ]
39
2015-01-15T14:07:58.000Z
2021-02-10T14:56:59.000Z
'use strict'; function slice (collection) { // because old IE var result = []; var i; for (i = 0; i < collection.length; i++) { result.push(collection[i]); } return result; } module.exports = slice;
16.538462
47
0.609302
e344a8c5505ecf6343a95ec6f4f7eafc7344670a
986
js
JavaScript
370kk/vue_370kk/src/router.js
weblfc/370kk
8a3ae31cd6358cb26fa38056072c37b2b3871569
[ "Apache-2.0" ]
1
2019-08-18T16:02:16.000Z
2019-08-18T16:02:16.000Z
370kk/vue_370kk/src/router.js
weblfc/370kk
8a3ae31cd6358cb26fa38056072c37b2b3871569
[ "Apache-2.0" ]
null
null
null
370kk/vue_370kk/src/router.js
weblfc/370kk
8a3ae31cd6358cb26fa38056072c37b2b3871569
[ "Apache-2.0" ]
null
null
null
import Vue from 'vue' import Router from 'vue-router' // 主页组件 import Index from './components/Index.vue' // 搜索页组件 import Search from './components/Search.vue' import Search2 from './components/Search2.vue' import Search3 from './components/Search3.vue' import Search4 from './components/Search4.vue' import Search5 from './components/Search5.vue' // 详情页组件 import Details from './components/Details.vue' // 登录页组件 import Login from './components/Login.vue' Vue.use(Router) export default new Router({ routes: [ {path: '/',component: Index}, //主页 {path: '/Index',component: Index}, //主页 {path: '/Search',component: Search}, //搜索页 {path: '/Search2',component: Search2}, //搜索页 {path: '/Search3',component: Search3}, //搜索页 {path: '/Search4',component: Search4}, //搜索页 {path: '/Search5',component: Search5}, //搜索页 {path: '/Details',component: Details}, //详情页 {path: '/Login',component: Login}, //登录页 ] })
31.806452
51
0.644016
e344f9cae86c3ad8d0b3952f5edc0b879677cc67
1,884
js
JavaScript
client/src/utils/validation/exhibitFormValidationRules.js
LauraCole1900/uck-cms
e659ea130af176f022c43f404f32699c3fc87a91
[ "MIT" ]
3
2021-01-07T08:59:06.000Z
2021-02-27T23:38:49.000Z
client/src/utils/validation/exhibitFormValidationRules.js
LauraCole1900/uck-cms
e659ea130af176f022c43f404f32699c3fc87a91
[ "MIT" ]
null
null
null
client/src/utils/validation/exhibitFormValidationRules.js
LauraCole1900/uck-cms
e659ea130af176f022c43f404f32699c3fc87a91
[ "MIT" ]
1
2021-02-03T19:23:44.000Z
2021-02-03T19:23:44.000Z
const exhValidate = (exhibitor) => { let errors = {}; // name errors if (!exhibitor.exhGivenName) { errors.exhGivenName = "Who are you? Please enter your first name." } if (!exhibitor.exhFamilyName) { errors.exhFamilyName = "Who are you? Please enter your last name." } // email errors if (!exhibitor.exhEmail) { errors.exhEmail = "How do we contact you? Please enter your email." } else if (!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(exhibitor.exhEmail)) { errors.exhEmail = "The system gremlins don't recognize your email as valid. Please enter a valid email." } // company errors if (!exhibitor.exhCompany) { errors.exhCompany = "Who are you representing? Please enter a company, organization, or school." } if (!exhibitor.exhCompanyAddress) { errors.exhCompanyAddress = "Where are you located? Please enter the physical address for your company, organization, or school." } // description errors if (!exhibitor.exhDesc) { errors.exhDesc = "What does your company/organization do?" } // phone errors if (!exhibitor.exhPhone) { errors.exhPhone = "How can we call you? Please enter a phone number." } else if (!/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/.test(exhibitor.exhPhone)) { errors.exhPhone = "The system gremlins don't recognize a valid phone number. Please enter a valid phone number." } // worker errors if (!exhibitor.exhWorkers) { errors.exhWorkers = "Please tell us how many people will be working your exhibit." } if (!exhibitor.exhWorkerNames) { errors.exhWorkerNames = "Please tell us who will be working your exhibit." } // spaces errors if (!exhibitor.exhSpaces) { errors.exhSpaces = "How big is your exhibit? Please tell us how many spaces you need." } return errors; } export default exhValidate;
32.482759
132
0.664013
e3453782f24c505342a084078f3c8bb826123dc2
1,392
js
JavaScript
lib/piechart/piesegment.js
zwrawr/ldcharts
054b896d71ee5415463e4e354ee370502d3c5d96
[ "MIT" ]
null
null
null
lib/piechart/piesegment.js
zwrawr/ldcharts
054b896d71ee5415463e4e354ee370502d3c5d96
[ "MIT" ]
7
2020-09-05T02:01:27.000Z
2021-10-21T19:32:35.000Z
lib/piechart/piesegment.js
zwrawr/ldcharts
054b896d71ee5415463e4e354ee370502d3c5d96
[ "MIT" ]
null
null
null
import { h, Component } from "preact"; /** * PieSegment * returns an svg element * @extends Component Preact's component class * {@link Props} */ export default class PieSegment extends Component { /** * PieSegment Props * @typedef {Object} Props * @property {number} angle The angle that the PieSegment takes up * @property {number} offset The offset of the PieSegment from the vertical * @property {number} color The color index of the PieSegment * @property {(string|string[])} [classname] Any extra classes to add to the PieSegment */ /** * renders a piesegment svg circle * @param {Props} props * @returns {Object} jsx */ render( props ) { // it's valid for offset/angle to be zero so we have to check it against undefined. if ( !(props && (props.angle != null) && (props.offset != null) && props.color) ) { console.warn("PieSegment was created with invalid props", props); return; } // drawing a segment of 0 width causes artifacting so bail out. Also stops NaN or Null Segements being drawn if ( !(props.angle > 0) ) { return; } const offset = 100 - props.offset + 25; const dash = props.angle + " " + (100 - props.angle); return ( <circle stroke={props.color} fill="transparent" cx="21" cy="21" r="15.91549430918954" stroke-width="6" stroke-dasharray={dash} stroke-dashoffset={offset} /> ); } }
27.84
110
0.66092
e3454019378523e952e004d2f862ba91e3953119
1,512
js
JavaScript
client/src/reducers/blogReducer.js
Yekku/blogs
17267e2ee18f54f0022c9bd43698f4f64932bf3c
[ "MIT" ]
1
2020-07-28T14:23:24.000Z
2020-07-28T14:23:24.000Z
client/src/reducers/blogReducer.js
Yekku/full-stack_osa-7
17267e2ee18f54f0022c9bd43698f4f64932bf3c
[ "MIT" ]
9
2019-12-27T18:30:27.000Z
2020-09-06T21:26:55.000Z
client/src/reducers/blogReducer.js
Yekku/blogs
17267e2ee18f54f0022c9bd43698f4f64932bf3c
[ "MIT" ]
null
null
null
import blogService from '../services/blogs' const reducer = (state = [], action) => { switch (action.type) { case 'INIT_BLOGS': return action.data case 'CREATE': { return [...state, action.data] } case 'REMOVE': { const filtered = state.filter((b) => b._id !== action.data._id) return [...filtered] } case 'UPDATE': { const filtered = state.filter((b) => b._id !== action.data._id) return [...filtered, action.data] } default: return state } } export const createBlog = (blog) => async (dispatch) => { const newBlog = await blogService.create(blog) dispatch({ type: 'CREATE', data: newBlog }) } export const removeBlog = (blog) => async (dispatch) => { await blogService.remove(blog) dispatch({ type: 'REMOVE', data: blog }) } export const likeBlog = (blog) => async (dispatch) => { const likedBlog = { ...blog } likedBlog.likes += 1 const updatedBlog = await blogService.update(likedBlog) dispatch({ type: 'UPDATE', data: updatedBlog }) } export const commentBlog = (blog, comment) => async (dispatch) => { const commentedBlog = { ...blog } commentedBlog.comments = [...commentedBlog.comments, comment] const updatedBlog = await blogService.update(commentedBlog) dispatch({ type: 'UPDATE', data: updatedBlog }) } export const initBlogs = () => async (dispatch) => { const blogs = await blogService.getAll() dispatch({ type: 'INIT_BLOGS', data: blogs }) } export default reducer
22.235294
67
0.631614
e345c8194b156699e4abae04b2b04c97aee5086a
1,138
js
JavaScript
app/src/api/dao/CurrencyDao.js
juanmadurand/flatboard
72795e0f65edb0663951725de722084de74a9c5c
[ "MIT" ]
null
null
null
app/src/api/dao/CurrencyDao.js
juanmadurand/flatboard
72795e0f65edb0663951725de722084de74a9c5c
[ "MIT" ]
null
null
null
app/src/api/dao/CurrencyDao.js
juanmadurand/flatboard
72795e0f65edb0663951725de722084de74a9c5c
[ "MIT" ]
null
null
null
import superagent from 'superagent'; import superagentPromisePlugin from 'superagent-promise-plugin'; import { BadRequest } from 'api/errors'; const API_URL = 'http://www.apilayer.net/api'; export default class CurrencyDao { constructor(secret) { if (secret === null) { console.warn('Secrets for CurrencyLayer not found!'); } this.secret = secret; } async values(opts: Object = {}) { if (!this.secret) { return {}; } if (opts.source && opts.source !== 'usd') { throw new BadRequest('Only USD source is allowed on free plan.'); } return this.call('live', opts) .then((res) => (res.quotes)); } async list() { if (!this.secret) { return {}; } return this.call('list').then((res) => (res.currencies)); } call(endpoint: string, query: Object = {}) { return superagent.get(`${API_URL}/${endpoint}`) .query({ ...query, access_key: this.secret, format: 1, }) .use(superagentPromisePlugin) .then((res) => (res.body)) .catch((err) => { throw new Error(`Currency request failed: ${err.message}`); }); } }
24.73913
71
0.591388
e346840eae6450b3c956b15066466c355d69ad4b
339
js
JavaScript
node_modules/cheerio-httpcli/example/useragentstring.js
sakapun/yamabiyo
dcf574e4ef94e02765b754e38dbc8f82afc00370
[ "MIT" ]
1
2017-07-16T06:14:13.000Z
2017-07-16T06:14:13.000Z
example/useragentstring.js
unau/cheerio-httpcli-matomed
f72e2cb18e369feb67796d4ebc6dd27692474200
[ "MIT" ]
null
null
null
example/useragentstring.js
unau/cheerio-httpcli-matomed
f72e2cb18e369feb67796d4ebc6dd27692474200
[ "MIT" ]
null
null
null
#!/usr/bin/env node /*jshint node:true */ 'use strict'; /** * ブラウザ設定確認 */ var client = require('../index'); client.debug = true; client.setBrowser('firefox'); client.fetch('http://www.useragentstring.com/') .then(function (result) { console.log(result.$('#dieTabelle th').text()); }) .catch(function (err) { console.log(err); });
16.95
49
0.643068
e34713e6470117477db83c8c758073f91e94f02e
793
js
JavaScript
scripts/components/power.js
langyo/circult_emulator
2e40fd9133b0ee49ba7af4bfc61e843287a79d9e
[ "Unlicense" ]
1
2021-02-28T17:33:05.000Z
2021-02-28T17:33:05.000Z
scripts/components/power.js
langyo/circult_emulator
2e40fd9133b0ee49ba7af4bfc61e843287a79d9e
[ "Unlicense" ]
null
null
null
scripts/components/power.js
langyo/circult_emulator
2e40fd9133b0ee49ba7af4bfc61e843287a79d9e
[ "Unlicense" ]
null
null
null
import React from 'react'; import PropTypes from 'prop-types'; import { Stage, Layer, Rect, Text, Circle, Line, Group } from 'react-konva'; class Power extends React.Component { render() { return ( <Group x={60 * this.props.x + 30} y={60 * this.props.y + 30}> <Line x={0} y={30} points={[0, 0, 25, 0]} strokeWidth="1.5" stroke="#000" /> <Line x={35} y={30} points={[0, 0, 25, 0]} strokeWidth="1.5" stroke="#000" /> <Line x={25} y={20} points={[0, 0, 0, 20]} strokeWidth="1.5" stroke="#000" /> <Line x={35} y={10} points={[0, 0, 0, 40]} strokeWidth="1.5" stroke="#000" /> </Group> ) } } Power.propTypes = { x: PropTypes.number, y: PropTypes.number } export default Power;
34.478261
93
0.528373
e348271af0efc9787c9521273d81c0f34101bc35
2,354
js
JavaScript
front/src/router/index.js
gan-qi/auto-report
303cd8fb20af7ac46a8f76ed3e3e7c3277942de6
[ "MIT" ]
null
null
null
front/src/router/index.js
gan-qi/auto-report
303cd8fb20af7ac46a8f76ed3e3e7c3277942de6
[ "MIT" ]
5
2021-03-10T03:32:10.000Z
2022-02-26T22:01:56.000Z
front/src/router/index.js
gan-qi/auto-report
303cd8fb20af7ac46a8f76ed3e3e7c3277942de6
[ "MIT" ]
null
null
null
import Vue from "vue"; import Router from "vue-router"; // import store from "../store/index"; import Layout from "../../layout/index.vue"; Vue.use(Router); const constantRoutes = [ { path: "/", component: Layout, children: [ { path: "/", name: "Home", component: () => import("../views/Home/index"), meta: { title: "首页" } } ] }, { path: "/uploads", component: Layout, children: [ { path: "/Uploads", name: "Uploads", component: () => import("../views/Uploads/index"), meta: { title: "手动发送" } } ] }, { path: "/mailconfig", component: Layout, children: [ { path: "/mailConfig", name: "mailConfig", component: () => import("../views/mailConfig/index"), meta: { title: "设置" } } ] }, { path: "/login", name: "Login", component: () => import("../views/Login/index"), meta: { title: "登陆", first: true } }, // { // path: "/register", // name: "Register", // component: () => import("../views/Register/index"), // meta: { // title: "注册", // first: true // } // }, { path: "/404", component: () => import("../views/NotFoundPage/index") }, { path: "*", redirect: "/404", hidden: true } ]; // const router = new VueRouter({ // mode: "history", // base: process.env.BASE_URL, // routes // }); // router.beforeEach((to, from, next) => { // // 监听登陆状态 // if (to.meta.title) { // document.title = `${to.meta.title} - Auto Report`; // if (to.name == "Home") document.title = "Auto Report"; // } // // 每次路由变化时候,关闭所有高亮 // store.commit("changeActive"); // // 当下一个路由在菜单所列路由之内,开启其高亮 // if (Object.keys(store.state.active).indexOf(to.name.toLowerCase()) != -1) { // store.commit("changeActive", to.name.toLowerCase()); // } // next(); // }); const createRouter = () => new Router({ // mode: 'history', // require service support scrollBehavior: () => ({ y: 0 }), routes: constantRoutes }); const router = createRouter(); export function resetRouter() { const newRouter = createRouter(); router.matcher = newRouter.matcher; // reset router } export default router;
19.781513
80
0.505098
e3484b55d958272efe0f3a039e18aaed068e808c
708
js
JavaScript
platform/nativescript/runtime/modules/class.js
zbranzov/nativescript-vue
c3c01679a4e222b7e773ec6ee05f8f40d9d32ec9
[ "MIT" ]
3,724
2018-01-20T17:02:11.000Z
2022-03-31T22:21:45.000Z
platform/nativescript/runtime/modules/class.js
zbranzov/nativescript-vue
c3c01679a4e222b7e773ec6ee05f8f40d9d32ec9
[ "MIT" ]
785
2018-01-24T14:39:29.000Z
2022-03-31T21:07:30.000Z
platform/nativescript/runtime/modules/class.js
zbranzov/nativescript-vue
c3c01679a4e222b7e773ec6ee05f8f40d9d32ec9
[ "MIT" ]
219
2018-01-24T06:50:58.000Z
2022-03-12T23:48:52.000Z
import { genClassForVnode, concat, stringifyClass } from 'web/util/index' function updateClass(oldVnode, vnode) { const el = vnode.elm const data = vnode.data const oldData = oldVnode.data if ( !data.staticClass && !data.class && (!oldData || (!oldData.staticClass && !oldData.class)) ) { return } let cls = genClassForVnode(vnode) // handle transition classes const transitionClass = el._transitionClasses if (transitionClass) { cls = concat(cls, stringifyClass(transitionClass)) } // set the class if (cls !== el._prevClass) { el.setAttribute('class', cls) el._prevClass = cls } } export default { create: updateClass, update: updateClass }
20.823529
73
0.672316
e348840141d718b04266acb4af0e199b413cc8d8
234
js
JavaScript
packages/vant/es/config-provider/index.js
Liqi12345/vant
76476f026b4c21472fde54a1733ba337bc747990
[ "MIT" ]
null
null
null
packages/vant/es/config-provider/index.js
Liqi12345/vant
76476f026b4c21472fde54a1733ba337bc747990
[ "MIT" ]
null
null
null
packages/vant/es/config-provider/index.js
Liqi12345/vant
76476f026b4c21472fde54a1733ba337bc747990
[ "MIT" ]
null
null
null
import { withInstall } from "../utils"; import _ConfigProvider from "./ConfigProvider"; const ConfigProvider = withInstall(_ConfigProvider); var stdin_default = ConfigProvider; export { ConfigProvider, stdin_default as default };
26
52
0.777778
e348bb722bbaeed2bc72653363922fa44decfb0e
455
js
JavaScript
routes/apiRoutes/authRoutes/index.js
cooperbrislain/nearmeans
52aa19df94942debb8e1683448445bf4d2608ada
[ "MIT" ]
1
2021-03-26T19:06:44.000Z
2021-03-26T19:06:44.000Z
routes/apiRoutes/authRoutes/index.js
cooperbrislain/nearmeans
52aa19df94942debb8e1683448445bf4d2608ada
[ "MIT" ]
null
null
null
routes/apiRoutes/authRoutes/index.js
cooperbrislain/nearmeans
52aa19df94942debb8e1683448445bf4d2608ada
[ "MIT" ]
null
null
null
const router = require('express').Router(); const authController = require('./../../../controllers/authController'); const authMiddlewares = require('./../../../middlewares/authMiddlewares'); router.route('/signup').post(authController.signUp); router.route('/signin').post(authMiddlewares.requireSignIn, authController.signIn); router.route('/signout').get(authMiddlewares.requireSignIn, authController.signOut); module.exports = router;
45.5
84
0.734066
e34966052ae6fe623c5aa4e759addfde06bd20a8
711
js
JavaScript
app/homepage/template.js
alfredoem/express-prelude
20445a4dc5cf9cff7813508991ec3bbd6f219789
[ "MIT" ]
null
null
null
app/homepage/template.js
alfredoem/express-prelude
20445a4dc5cf9cff7813508991ec3bbd6f219789
[ "MIT" ]
null
null
null
app/homepage/template.js
alfredoem/express-prelude
20445a4dc5cf9cff7813508991ec3bbd6f219789
[ "MIT" ]
null
null
null
var yo = require('yo-yo'); module.exports = function (data) { return yo`<section> <div class="page-content game-box-content"> ${data.map(function(row){ return yo`<div class="content-game waves-effect waves-light"> <div class="game-picture"> <div class="image-game" style="display: block; background-image: url('images/slot-games/${row.gameId}.jpg');"></div> <div class="tittle-game"> ${row.name} </div> </div> </div>`})} </div> </section>`; }
41.823529
144
0.421941
e34978471b8f929bfbebee313a423c2622865ca7
327
js
JavaScript
Study Plan/Data Structure 1 14 Days/Day 1/53. Maximum Subarray/maxSubArray.js
abdoutelb/leetcode
507aba036bc3701f46b238985662ef541d592ceb
[ "MIT" ]
null
null
null
Study Plan/Data Structure 1 14 Days/Day 1/53. Maximum Subarray/maxSubArray.js
abdoutelb/leetcode
507aba036bc3701f46b238985662ef541d592ceb
[ "MIT" ]
null
null
null
Study Plan/Data Structure 1 14 Days/Day 1/53. Maximum Subarray/maxSubArray.js
abdoutelb/leetcode
507aba036bc3701f46b238985662ef541d592ceb
[ "MIT" ]
null
null
null
/** * @param {number[]} nums * @return {number} */ var maxSubArray = function(nums) { let maxSum = nums[0]; let currSum = 0; for (let i = 0; i < nums.length; i++) { currSum += nums[i]; maxSum = Math.max(maxSum, currSum); currSum = Math.max(currSum, 0); } return maxSum; };
20.4375
43
0.519878
e34a029555aa2ab4cae38d4921e86284d8e97285
1,735
js
JavaScript
dist/database/toppings.js
LAYTHJABBAR/project
2f60e16d7a65319dd76230b80d5c723adc1fca0d
[ "MIT" ]
5
2018-01-09T03:28:58.000Z
2020-08-26T20:06:32.000Z
dist/database/toppings.js
LAYTHJABBAR/project
2f60e16d7a65319dd76230b80d5c723adc1fca0d
[ "MIT" ]
13
2016-10-31T18:45:28.000Z
2016-11-04T19:07:30.000Z
dist/database/toppings.js
LAYTHJABBAR/project
2f60e16d7a65319dd76230b80d5c723adc1fca0d
[ "MIT" ]
2
2018-06-10T00:09:19.000Z
2020-02-19T05:38:06.000Z
'use strict'; // import db from './main' var db = require('./main'); var Topping = { add: function add(request, response, next) { var name = request.body.name; db('toppings').insert({ name: name }).then(response.status(200).json({ status: 'success', message: 'Added a topping.' })).catch(function (error) { return next(error); }); }, getAll: function getAll(request, response, next) { db('toppings').select().then(function (data) { response.status(200).json({ status: 'success', data: data, message: 'Retrieved all toppings.' }); }).catch(function (error) { return next(error); }); }, getOne: function getOne(request, response, next) { var name = request.params.name; db('toppings').select().where({ name: name }).then(function (data) { response.status(200).json({ status: 'success', data: data, message: 'Retrieved one topping.' }); }).catch(function (error) { return next(error); }); }, update: function update(request, response, next) { var name = request.params.name; var new_name = request.body.new_name; db('toppings').where({ name: name }).update({ name: new_name }).then(response.status(200).json({ status: 'success', message: 'Updated topping.' })).catch(function (error) { return next(error); }); }, delete: function _delete(request, response, next) { var name = request.params.name; db('toppings').where({ name: name }).del().then(response.status(200).json({ status: 'success', message: 'Deleted topping entry.' })); //.catch( error => next( error )) } }; module.exports = Topping; // export {Topping}
26.287879
137
0.596542
e34a30f4e24185faab4f04df3b4108ab8dcc16d0
916
js
JavaScript
web-app/src/components/LoggingInLastfm.js
fptavares/record-scrobbler
2319410cf2748119ade78c34204ed5f0c48c39a5
[ "MIT" ]
3
2017-09-25T17:55:24.000Z
2020-07-11T00:02:00.000Z
web-app/src/components/LoggingInLastfm.js
guerracanal/record-scrobbler
2319410cf2748119ade78c34204ed5f0c48c39a5
[ "MIT" ]
null
null
null
web-app/src/components/LoggingInLastfm.js
guerracanal/record-scrobbler
2319410cf2748119ade78c34204ed5f0c48c39a5
[ "MIT" ]
2
2017-12-10T05:06:47.000Z
2020-07-11T00:02:15.000Z
import React from 'react'; import queryString from 'query-string'; import environment from '../createRelayEnvironment'; import ErrorPage from './ErrorPage'; import Loading from './Loading'; import AuthenticateLastfm from '../mutations/AuthenticateLastfm'; class LoggingInLastfm extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { if (window.location.search) { const { token } = queryString.parse(window.location.search); if (token) { AuthenticateLastfm.commit( environment, token, (error) => { console.log('onError:', error); this.setState({ error }) }, ); } } } render() { if (this.state.error) { return <ErrorPage error={this.state.error} />; } return ( <Loading /> ); } } export default LoggingInLastfm;
21.809524
66
0.601528
e34b175880a2fc4e73dc401222e909901027ea96
1,036
js
JavaScript
src/Map.js
enrique7mc/React-Google-Maps
d12d71810b2461d82f652b51bef5a8f9c28added
[ "MIT" ]
null
null
null
src/Map.js
enrique7mc/React-Google-Maps
d12d71810b2461d82f652b51bef5a8f9c28added
[ "MIT" ]
null
null
null
src/Map.js
enrique7mc/React-Google-Maps
d12d71810b2461d82f652b51bef5a8f9c28added
[ "MIT" ]
null
null
null
import React, { Component, PropTypes } from 'react'; import GoogleMap from 'google-map-react'; import MyGreatPlace from './MyGreatPlace'; import Cache from './util/Cache'; export default class Map extends Component { static propTypes = { center: PropTypes.array, zoom: PropTypes.number, markers: PropTypes.array, onListItem: PropTypes.func }; static defaultProps = { center: [19.3885, -99.140222], zoom: 12, markers: [{ lat: 19.3885, lng: -99.140222 }] }; render() { return ( <div style={divStyle}> <GoogleMap bootstrapURLKeys={{key: 'AIzaSyCVH8e45o3d-5qmykzdhGKd1-3xYua5D2A'}} defaultCenter={this.props.center} defaultZoom={this.props.zoom} onChildClick={this.props.onListItem} > {this.props.markers.map((m, i) => <MyGreatPlace key={`${i}`} lat={m.lat} lng={m.lng} text={`${i+1}`} />)} </GoogleMap> </div> ); } } var divStyle = { margin: 0, height: 600, width: '100%' };
23.545455
83
0.593629
e34b26259505dfe90aa583e5f9d2b43dbea07121
746
js
JavaScript
components/Index/index.marko.js
franklinjavier/ssr
d773bc20d67060e62ec95237a991597273afc6bd
[ "MIT" ]
null
null
null
components/Index/index.marko.js
franklinjavier/ssr
d773bc20d67060e62ec95237a991597273afc6bd
[ "MIT" ]
null
null
null
components/Index/index.marko.js
franklinjavier/ssr
d773bc20d67060e62ec95237a991597273afc6bd
[ "MIT" ]
null
null
null
function create(__helpers) { var str = __helpers.s, empty = __helpers.e, notEmpty = __helpers.ne, escapeXml = __helpers.x, forEach = __helpers.f, escapeXmlAttr = __helpers.xa; return function render(data, out) { out.w('<!doctype html> <html lang="en"><head><meta charset="UTF-8"><title>Express View Streaming Demo</title></head><body><h1>Express View Streaming Demo</h1> Hello ' + escapeXml(data.name) + '! <ul>'); forEach(data.colors, function(color) { out.w('<li style="color: ' + escapeXmlAttr(color) + '">' + escapeXml(color) + '</li>'); }); out.w('</ul></body></html>'); }; } (module.exports = require("marko").c(__filename)).c(create);
29.84
172
0.58311
e34c4f39212c635ecd0598214eed480cffbed4bb
2,799
js
JavaScript
WEEKS/wk6/1-projects/d1/src/components/Programmers.js
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk6/1-projects/d1/src/components/Programmers.js
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk6/1-projects/d1/src/components/Programmers.js
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
/* PROGRAMMERS Instructions Watch this short video: https://tk-assets.lambdaschool.com/1ea6e6a2-2ef1-45de-bcab-b99a8f775870_programmers.gif This component keeps track of a list of pioneers in the field of programming on the one hand, and the id of the currently featured programmer on the other. That's two slices of state! We can only feature one awesome programmer at a time. Find comments below to help you along. */ import React from 'react'; // Use this variable ONLY to initialize a slice of state! // There is something in the JSX right now breaking this rule... export const listOfAwesome = [ { id: '1', name: 'Ada Lovelace' }, { id: '2', name: 'Grace Hopper' }, { id: '3', name: 'Evelyn Boyd Granville' }, { id: '4', name: 'Mary Kenneth Keller' }, { id: '5', name: 'Frances Allen' }, { id: '6', name: 'Carol Shaw' }, ]; export default function Programmers() { // We'll have to use the state hook twice, as we need two slices of state. // The programmers list on the one hand, and the id of the featured programmer on the other. const getNameOfFeatured = () => { // Leave this for last! // This is NOT an event handler but a helper function. See its usage inside the JSX. // It's going to utilize both slices of state to return the _name_ of the featured dev. // The beauty of closures is that we can "see" both slices of state from this region // of the program, without needing to inject the information through arguments. }; const style = { fontSize: '1.5em', marginTop: '0.5em', color: 'royalblue', // 🤔 color turns to gold, when celebrating }; return ( <div className='widget-programmers container'> <h2>Programmers</h2> <div className='programmers'> { /* Nasty bug! We should map over a slice of state, instead of 'listOfAwesome'. We might think: "it works, though!" But if the list of programmers is not state, we could never add or edit programmers in the future. The list would be a static thing." */ listOfAwesome.map(dev => <div className='programmer' key={dev.id}> {dev.name} <button onClick={() => { /* in here set the featured id to be dev.id */ }}>Feature</button> </div> ) } </div> <div id='featured' style={style}> { // Ternaries are fantastic to render "one thing or the other" depending on the "truthiness" of something. // Pseudo-code: if the currently featured id is truthy render text 1, otherwise render text 2. // Replace the hard-coded false with the correct variable. false ? `🎉 Let's celebrate ${getNameOfFeatured()}! 🥳` : 'Pick an awesome programmer' } </div> </div> ); }
38.342466
116
0.644516
e34e7825dddae0261f3490a69128fc1fe5a1dc11
501
js
JavaScript
server/models/projects.js
juliaxcr/portfolio
7436541f8bbca841eb280d21b6e1a0510919f3cd
[ "MIT" ]
1
2022-03-08T05:58:28.000Z
2022-03-08T05:58:28.000Z
server/models/projects.js
juliaxcr/portfolio
7436541f8bbca841eb280d21b6e1a0510919f3cd
[ "MIT" ]
null
null
null
server/models/projects.js
juliaxcr/portfolio
7436541f8bbca841eb280d21b6e1a0510919f3cd
[ "MIT" ]
null
null
null
const Sequelize = require('sequelize') const db = require('../db') const Project = db.define('project', { name: { type: Sequelize.STRING, allowNull: false, unique: true, }, shortContent: Sequelize.TEXT, heroku: Sequelize.STRING, github: Sequelize.STRING, longContent: Sequelize.TEXT, date: Sequelize.STRING, tech: Sequelize.ARRAY(Sequelize.STRING), imgOverview: Sequelize.STRING, imgTech: Sequelize.STRING, }) module.exports = Project
23.857143
44
0.660679
e34e882fe8ac8947b95455f5c1a5c36a7b25aeec
59
js
JavaScript
packages/d3-scatter-helper/index.js
ran-guin/d3-helper
0b567c6886934a2a6bf5e9989a0a50dc34c7a117
[ "0BSD" ]
null
null
null
packages/d3-scatter-helper/index.js
ran-guin/d3-helper
0b567c6886934a2a6bf5e9989a0a50dc34c7a117
[ "0BSD" ]
null
null
null
packages/d3-scatter-helper/index.js
ran-guin/d3-helper
0b567c6886934a2a6bf5e9989a0a50dc34c7a117
[ "0BSD" ]
null
null
null
import scatter from './lib/d3-scatter.js' export {scatter}
19.666667
41
0.745763
e34f4ce968fc6d274189cd689ebc33b2046ce614
386
js
JavaScript
js/obj_prop.js
ad510/black-hole-game
ebce4e56ac39ffd1c74c0c29b646cb08c00f3a9d
[ "CC0-1.0" ]
null
null
null
js/obj_prop.js
ad510/black-hole-game
ebce4e56ac39ffd1c74c0c29b646cb08c00f3a9d
[ "CC0-1.0" ]
null
null
null
js/obj_prop.js
ad510/black-hole-game
ebce4e56ac39ffd1c74c0c29b646cb08c00f3a9d
[ "CC0-1.0" ]
null
null
null
"use strict" var imgProp = { "img/asteroid.png": { width: 50, height: 50, baseX: 25, baseY: 25, }, "img/hole.png": { width: 300, height: 300, baseX: 150, baseY: 150, }, "img/obj0.png": { width: 40, height: 40, baseX: 20, baseY: 20, }, "img/propel.png": { width: 20, height: 20, baseX: 10, baseY: 10, }, }
13.310345
23
0.479275
e34fb2f1f2ea6ad11ccef836daeca244e4330832
11,278
js
JavaScript
Supported Languages/AngularJS/smash/Models/UserUpdateModel.js
SMASH-INC/API
d0679f199f786aa24f0510df078b4318c27dcc0f
[ "MIT" ]
null
null
null
Supported Languages/AngularJS/smash/Models/UserUpdateModel.js
SMASH-INC/API
d0679f199f786aa24f0510df078b4318c27dcc0f
[ "MIT" ]
null
null
null
Supported Languages/AngularJS/smash/Models/UserUpdateModel.js
SMASH-INC/API
d0679f199f786aa24f0510df078b4318c27dcc0f
[ "MIT" ]
null
null
null
/** * SMASH * * This file was automatically generated for the SMASH API by SMASH, INC ( https://smashlabs.io ) */ ;(function (angular) { 'use strict'; /** * Creates a instance of UserUpdateModel * * @constructor */ angular.module('SMASH') .factory('UserUpdateModel', ['BaseModel', UserUpdateModelModel]); function UserUpdateModelModel(BaseModel) { var UserUpdateModel = function (obj) { if (obj === undefined || obj === null) { return; } this.key = this.getValue(obj.key); this.uid = this.getValue(obj.uid); this.user = this.getValue(obj.user); this.apiuid = this.getValue(obj.apiuid); this.oldpassword = this.getValue(obj.oldpassword); this.newpassword = this.getValue(obj.newpassword); this.name = this.getValue(obj.name); this.email = this.getValue(obj.email); this.phone = this.getValue(obj.phone); this.avatar = this.getValue(obj.avatar); this.countrycode = this.getValue(obj.countrycode); this.address = this.getValue(obj.address); this.a = this.getValue(obj.a); this.sa = this.getValue(obj.sa); this.c = this.getValue(obj.c); this.s = this.getValue(obj.s); this.z = this.getValue(obj.z); this.customInput = this.getValue(obj.customInput); }; UserUpdateModel.prototype = new BaseModel(); UserUpdateModel.prototype.constructor = UserUpdateModel; /** * Function containing information about the fields of this model * @return {array} Array of objects containing information about the fields */ UserUpdateModel.prototype.mappingInfo = function() { return BaseModel.prototype.mappingInfo.call(this).concat([ { name: 'key', realName: 'key' }, { name: 'uid', realName: 'uid' }, { name: 'user', realName: 'user' }, { name: 'apiuid', realName: 'apiuid' }, { name: 'oldpassword', realName: 'oldpassword' }, { name: 'newpassword', realName: 'newpassword' }, { name: 'name', realName: 'name' }, { name: 'email', realName: 'email' }, { name: 'phone', realName: 'phone' }, { name: 'avatar', realName: 'avatar' }, { name: 'countrycode', realName: 'countrycode' }, { name: 'address', realName: 'address' }, { name: 'a', realName: 'a' }, { name: 'sa', realName: 'sa' }, { name: 'c', realName: 'c' }, { name: 's', realName: 's' }, { name: 'z', realName: 'z' }, { name: 'customInput', realName: 'custom-input' } ]); }; /** * Function containing information about discriminator values * mapped with their corresponding model class names * * @return {object} Object containing Key-Value pairs mapping discriminator * values with their corresponding model classes */ UserUpdateModel.prototype.discriminatorMap = function() { return {}; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getKey = function () { return this.key; }; /** * Setter for Key * * @param {string} value */ UserUpdateModel.prototype.setKey = function (value) { this.key = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getUid = function () { return this.uid; }; /** * Setter for Uid * * @param {string} value */ UserUpdateModel.prototype.setUid = function (value) { this.uid = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getUser = function () { return this.user; }; /** * Setter for User * * @param {string} value */ UserUpdateModel.prototype.setUser = function (value) { this.user = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getApiuid = function () { return this.apiuid; }; /** * Setter for Apiuid * * @param {string} value */ UserUpdateModel.prototype.setApiuid = function (value) { this.apiuid = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getOldpassword = function () { return this.oldpassword; }; /** * Setter for Oldpassword * * @param {string} value */ UserUpdateModel.prototype.setOldpassword = function (value) { this.oldpassword = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getNewpassword = function () { return this.newpassword; }; /** * Setter for Newpassword * * @param {string} value */ UserUpdateModel.prototype.setNewpassword = function (value) { this.newpassword = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getName = function () { return this.name; }; /** * Setter for Name * * @param {string} value */ UserUpdateModel.prototype.setName = function (value) { this.name = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getEmail = function () { return this.email; }; /** * Setter for Email * * @param {string} value */ UserUpdateModel.prototype.setEmail = function (value) { this.email = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getPhone = function () { return this.phone; }; /** * Setter for Phone * * @param {string} value */ UserUpdateModel.prototype.setPhone = function (value) { this.phone = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getAvatar = function () { return this.avatar; }; /** * Setter for Avatar * * @param {string} value */ UserUpdateModel.prototype.setAvatar = function (value) { this.avatar = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getCountrycode = function () { return this.countrycode; }; /** * Setter for Countrycode * * @param {string} value */ UserUpdateModel.prototype.setCountrycode = function (value) { this.countrycode = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getAddress = function () { return this.address; }; /** * Setter for Address * * @param {string} value */ UserUpdateModel.prototype.setAddress = function (value) { this.address = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getA = function () { return this.a; }; /** * Setter for A * * @param {string} value */ UserUpdateModel.prototype.setA = function (value) { this.a = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getSa = function () { return this.sa; }; /** * Setter for Sa * * @param {string} value */ UserUpdateModel.prototype.setSa = function (value) { this.sa = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getC = function () { return this.c; }; /** * Setter for C * * @param {string} value */ UserUpdateModel.prototype.setC = function (value) { this.c = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getS = function () { return this.s; }; /** * Setter for S * * @param {string} value */ UserUpdateModel.prototype.setS = function (value) { this.s = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getZ = function () { return this.z; }; /** * Setter for Z * * @param {string} value */ UserUpdateModel.prototype.setZ = function (value) { this.z = value; }; /** * TODO: Write general description for this method * * @return {string} */ UserUpdateModel.prototype.getCustomInput = function () { return this.customInput; }; /** * Setter for CustomInput * * @param {string} value */ UserUpdateModel.prototype.setCustomInput = function (value) { this.customInput = value; }; return UserUpdateModel; } }(angular));
27.373786
97
0.474552
e3510ff8a4a5b76602097eb6c6982ab20107c7ba
2,014
js
JavaScript
src/pages/faq.js
eccentricpixel/jr-2021
87b33f2eaa1109bf0cf22f2c4f2ccc5b74e6f0f1
[ "MIT" ]
null
null
null
src/pages/faq.js
eccentricpixel/jr-2021
87b33f2eaa1109bf0cf22f2c4f2ccc5b74e6f0f1
[ "MIT" ]
null
null
null
src/pages/faq.js
eccentricpixel/jr-2021
87b33f2eaa1109bf0cf22f2c4f2ccc5b74e6f0f1
[ "MIT" ]
null
null
null
import React from 'react' import { graphql, Link } from 'gatsby' import { GatsbyImage, StaticImage } from "gatsby-plugin-image" function FaqPage({ data: { allGraphCmsFaq } }) { return ( <div className=""> <div className="container mx-auto grid place-items-center px-8 py-32"> <StaticImage src="../images/qa-header@2x.png" width="480" className="justify-self-center mb-10" alt="" placeholder="transparent" /> <ul className="grid grid-cols-1 grid-flow-row auto-rows-max gap-5 md:grid-cols-2"> {allGraphCmsFaq.nodes.map((faq) => { return ( <li key={faq.id} className="py-6"> <article className="space-y-2 xl:grid xl:grid-cols-4 xl:space-y-0 xl:items-baseline"> <div className="space-y-5 xl:col-span-3"> <div className="space-y-6"> <h2 className="text-lg leading-8 font-bold tracking-tight"> {faq.question} </h2> {faq.answer && ( <div className="prose max-w-none"> <div className="text-gray-500 text-sm" dangerouslySetInnerHTML={{__html: faq.answer?.html}}></div> </div> )} </div> </div> </article> </li> ) })} </ul> </div> </div> ) } export const faqPageQuery = graphql` { allGraphCmsFaq (filter: {onlyShowOnBookPage: {eq: false}}) { nodes { id question answer { html } slug title onlyShowOnBookPage priority categories } } } ` export default FaqPage
33.566667
143
0.437438
e3518971bbc5e7e564e10091a90c27dd6e0bcfb9
2,452
js
JavaScript
src/screens/cloudWords/styles.js
ErwanKESSLER/React-English-Learning-App
9cf87a6838e3928abfb118753c223e8741d48659
[ "MIT" ]
null
null
null
src/screens/cloudWords/styles.js
ErwanKESSLER/React-English-Learning-App
9cf87a6838e3928abfb118753c223e8741d48659
[ "MIT" ]
null
null
null
src/screens/cloudWords/styles.js
ErwanKESSLER/React-English-Learning-App
9cf87a6838e3928abfb118753c223e8741d48659
[ "MIT" ]
1
2021-05-10T11:12:20.000Z
2021-05-10T11:12:20.000Z
const React = require('react-native'); const { Platform,Dimensions } = React; const deviceHeight = Dimensions.get('window').height; const devicewidth = Dimensions.get('window').width; const platform = (Platform.OS === 'android' || Platform.OS === 'ios'); export default { text: { color: '#ffffff', textAlign: 'center', padding: platform?1:0, fontSize: platform?15:30, marginBottom: platform?2:0, }, textScore: { color: '#ffffff', textAlign: 'center', padding: platform?1:0, fontSize: platform?15:30, }, textDef: { color: '#ffffff', textAlign: 'center', fontSize: platform?10:20, }, textTop: { color: '#ffffff', textAlign: 'center', paddingLeft: platform?0:devicewidth/12, paddingTop: platform?devicewidth/24:0, fontSize: platform?10:30, flex: 1, },sides:{ width:platform?devicewidth/12:devicewidth/3 }, transcript: { textAlign: 'center', color: '#B0171F', marginBottom: 1, top: '400%', }, cloudContainer: { flex: 1, height: deviceHeight * 0.8, marginBottom: 30, }, tagCloud: { flex: 1, }, movingCloud: { transition: '1.4s', }, bigContainer: { backgroundColor:"#fff" }, container: { alignItems: 'center', backgroundColor: 'transparent', flex: 1, justifyContent: 'center', }, background: { backgroundColor: "transparent", width:devicewidth, height: deviceHeight, overflow:'hidden', top: 0, left: 0, alignItems: "stretch", bottom: 0, right: 0, position: 'absolute', }, overlay: { width:devicewidth, height: deviceHeight, backgroundColor: 'rgba(0,0,0,0.4)', }, title: { color: 'white', fontSize: 20, marginTop: 90, paddingHorizontal: 20, textAlign: 'center', }, footer:{ flexDirection: 'row', height: platform?deviceHeight*0.25:deviceHeight*0.15, }, video:{ height: platform?deviceHeight*0.75:deviceHeight, width:devicewidth, }, header:{ flexDirection: 'row', height: platform?deviceHeight*0.07:deviceHeight*0.05, }, content:{ overflowY: 'hidden', height: deviceHeight*0.8, } , inputPart:{ flexDirection: platform?'column':'row', justifyContent: "space-around", }, outputText:{ color: '#4eff35', textAlign: 'center', padding: platform?1:10, fontSize: platform?15:30, marginBottom: platform?2:20, } };
20.605042
70
0.610114
e353864ae1feaa08b1d0e92feb8345e00d98d7e2
30,478
js
JavaScript
packages/frontend/src/contracts/localhost/JuicyLotto.bytecode.js
bonkrat/juicy.lotto
78bc0ac20f566ac00c4c3a37403c6a2d53eba669
[ "MIT" ]
null
null
null
packages/frontend/src/contracts/localhost/JuicyLotto.bytecode.js
bonkrat/juicy.lotto
78bc0ac20f566ac00c4c3a37403c6a2d53eba669
[ "MIT" ]
null
null
null
packages/frontend/src/contracts/localhost/JuicyLotto.bytecode.js
bonkrat/juicy.lotto
78bc0ac20f566ac00c4c3a37403c6a2d53eba669
[ "MIT" ]
null
null
null
export default "0x60e06040523480156200001157600080fd5b5060405162003b7d38038062003b7d8339810160408190526200003491620002c3565b6001600160601b0319606089811b821660a05288901b166080528282620000626200005c3390565b620001fc565b60029190915560601b6001600160601b03191660c0528b620000d95760405162461bcd60e51b815260206004820152602560248201527f4d6178696d756d206e756d626572206d75737420626520677265617465722074604482015264068616e20360dc1b60648201526084015b60405180910390fd5b60008b116200012b5760405162461bcd60e51b815260206004820181905260248201527f456e74727920666565206d7573742062652067726561746572207468616e20306044820152606401620000d0565b83156200019157600089118015620001435750606489105b620001915760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964204a75696365626f78204665650000000000000000000000006044820152606401620000d0565b600c8c9055600d8b905560138a9055600f8990556000600e819055600a879055600b8690556012805460ff1916861515179055600380546001600160a01b0319166001600160a01b038416179055620001ea906200024e565b505050505050505050505050620003df565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6014805482919060ff19166001836003811115620002705762000270620003b0565b02179055507f1e046fdd2110d82ed3fa7652b41ced17c49cbb9ee4536e65f51ad2a6ed5359a781604051620002a6919062000387565b60405180910390a150565b8051620002be81620003c6565b919050565b6000806000806000806000806000806000806101808d8f031215620002e757600080fd5b8c519b5060208d01519a5060408d0151995060608d0151985060808d01516200031081620003c6565b60a08e01519098506200032381620003c6565b8097505060c08d0151955060e08d015194506101008d015180151581146200034a57600080fd5b6101208e01519094509250620003646101408e01620002b1565b9150620003756101608e01620002b1565b90509295989b509295989b509295989b565b6020810160048310620003aa57634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b0381168114620003dc57600080fd5b50565b60805160601c60a05160601c60c05160601c6137346200044960003960008181610427015281816112c8015261250a0152600081816116960152612729015260008181610aba01528181610d290152818161148b0152818161158101526126fa01526137346000f3fe60806040526004361061024a5760003560e01c806384350e1d11610139578063bed9d861116100b6578063ce9246dd1161007a578063ce9246dd14610677578063dc07820f14610697578063eb770d0c146106ac578063f2fde38b146106cc578063f3fef3a3146106ec578063f5e8c4ee1461070c57600080fd5b8063bed9d861146105e5578063c0a485e2146105fa578063c19d93fb1461061a578063c88a2acf14610641578063c8ee99171461065757600080fd5b806394985ddd116100fd57806394985ddd14610575578063999a244f146105955780639dfecdcc146105b5578063b60d4288146105ca578063bd5ecced146105d257600080fd5b806384350e1d146104f7578063897c063e146105195780638da5cb5b1461052c5780638dc654a21461054a578063911d01891461055f57600080fd5b8063544c0e15116101c75780636b31ee011161018b5780636b31ee01146104615780636e1054e8146104775780636fd0981614610497578063715018a6146104ac5780637a766460146104c157600080fd5b8063544c0e15146103935780635608b2e1146103b3578063676c902f146103e05780636826eef4146103f55780636abcf8e31461041557600080fd5b80633fafa1271161020e5780633fafa1271461031c57806342619f66146103325780634dfdc21f146103485780634e45f0951461035e57806350c5f9751461037e57600080fd5b806302e5329e14610256578063072ea61c14610278578063150b7a02146102a15780631783f96a146102e65780632f865568146102fc57600080fd5b3661025157005b600080fd5b34801561026257600080fd5b50610276610271366004613107565b610721565b005b34801561028457600080fd5b5061028e600d5481565b6040519081526020015b60405180910390f35b3480156102ad57600080fd5b506102cd6102bc366004612e4c565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610298565b3480156102f257600080fd5b5061028e600f5481565b34801561030857600080fd5b50610276610317366004612dfc565b6107b7565b34801561032857600080fd5b5061028e60025481565b34801561033e57600080fd5b5061028e60105481565b34801561035457600080fd5b5061028e600c5481565b34801561036a57600080fd5b5061028e610379366004613107565b610a81565b34801561038a57600080fd5b5061028e610aa2565b34801561039f57600080fd5b506102766103ae366004612fdb565b610b41565b3480156103bf57600080fd5b506103d36103ce366004612dfc565b610bd6565b60405161029891906133d1565b3480156103ec57600080fd5b5061028e610c6a565b34801561040157600080fd5b50610276610410366004613107565b610e77565b34801561042157600080fd5b506104497f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610298565b34801561046d57600080fd5b5061028e600e5481565b34801561048357600080fd5b50610276610492366004612dfc565b610ea6565b3480156104a357600080fd5b50610276611114565b3480156104b857600080fd5b506102766111c0565b3480156104cd57600080fd5b5061028e6104dc366004612dfc565b6001600160a01b031660009081526008602052604090205490565b34801561050357600080fd5b5061050c6111f4565b604051610298919061343b565b610276610527366004612ebf565b61124c565b34801561053857600080fd5b506001546001600160a01b0316610449565b34801561055657600080fd5b50610276611449565b34801561056b57600080fd5b5061028e60135481565b34801561058157600080fd5b50610276610590366004612fb9565b61168b565b3480156105a157600080fd5b506102766105b036600461303d565b611711565b3480156105c157600080fd5b506102766117ac565b610276611817565b6102766105e0366004612f27565b611868565b3480156105f157600080fd5b50610276611a96565b34801561060657600080fd5b50610276610615366004612e4c565b611bfb565b34801561062657600080fd5b506014546106349060ff1681565b60405161029891906134ba565b34801561064d57600080fd5b5061028e60075481565b34801561066357600080fd5b50610276610672366004613107565b611c59565b34801561068357600080fd5b50610276610692366004613107565b611c88565b3480156106a357600080fd5b50610276611cb7565b3480156106b857600080fd5b506102766106c7366004613107565b612105565b3480156106d857600080fd5b506102766106e7366004612dfc565b61232a565b3480156106f857600080fd5b50610276610707366004612e20565b6123c2565b34801561071857600080fd5b5061028e6123f6565b6001546001600160a01b031633146107545760405162461bcd60e51b815260040161074b9061352b565b60405180910390fd5b600081116107b25760405162461bcd60e51b815260206004820152602560248201527f4a756963794c6f74746f3a3a7365744d61784e756d20494e56414c49445f4d41604482015264585f4e554d60d81b606482015260840161074b565b600c55565b6001546001600160a01b031633146107e15760405162461bcd60e51b815260040161074b9061352b565b6000600e541161084c5760405162461bcd60e51b815260206004820152603060248201527f4a756963794c6f74746f3a3a6c697175696461746520494e535546464943494560448201526f4e545f4a41434b504f545f46554e445360801b606482015260840161074b565b600060145460ff16600381111561086557610865613699565b14156109d657600654156109d65760005b6006548110156109d45760006005600060068481548110610899576108996136af565b60009182526020808320909101546001600160a01b03168352820192909252604001902054111561097e576000600d5460056000600685815481106108e0576108e06136af565b60009182526020808320909101546001600160a01b0316835282019290925260400190205461090f9190613608565b905060068281548110610924576109246136af565b60009182526020822001546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015610964573d6000803e3d6000fd5b5080600e60008282546109779190613627565b9091555050505b6005600060068381548110610995576109956136af565b60009182526020808320909101546001600160a01b0316835282019290925260400181206109c291612c66565b806109cc8161363e565b915050610876565b505b6109e260066000612c87565b60125460ff1615610a3657610a31600e54336040518060400160405280601e81526020017f4c697175696461746564204a75696379204c6f74746f206a61636b706f740000815250600061248a565b610a6f565b600e546040516001600160a01b0383169180156108fc02916000818181858888f19350505050158015610a6d573d6000803e3d6000fd5b505b6000600e55610a7e6003612698565b50565b60118181548110610a9157600080fd5b600091825260209091200154905081565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610b0457600080fd5b505afa158015610b18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3c9190613120565b905090565b6001546001600160a01b03163314610b6b5760405162461bcd60e51b815260040161074b9061352b565b604051632f53664360e11b81526001600160a01b03861690635ea6cc8690610b9d908790879087908790600401613274565b600060405180830381600087803b158015610bb757600080fd5b505af1158015610bcb573d6000803e3d6000fd5b505050505050505050565b6001600160a01b0381166000908152600560209081526040808320805482518185028101850190935280835260609492939192909184015b82821015610c5f576000848152602090206040805160608101918290529160038581029091019182845b815481526020019060010190808311610c3857505050505081526020019060010190610c0e565b505050509050919050565b6000808060145460ff166003811115610c8557610c85613699565b14610ca25760405162461bcd60e51b815260040161074b906134e2565b601354600e541015610d115760405162461bcd60e51b815260206004820152603260248201527f4a756963794c6f74746f3a3a647261774e756d6265727320494e53554646494360448201527149454e545f4a41434b504f545f5052495a4560701b606482015260840161074b565b600b546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610d7357600080fd5b505afa158015610d87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dab9190613120565b1015610e0b5760405162461bcd60e51b815260206004820152602960248201527f4a756963794c6f74746f3a3a647261774e756d6265727320494e53554646494360448201526849454e545f4c494e4b60b81b606482015260840161074b565b610e156001612698565b610e23600a54600b546126f6565b600980546001600160a01b031916331790556040519092507fddb1a7d2c9ff0e3a07137bec0577e94dc86edfe4360cffea4bac07e7f90f891390610e6a9084815260200190565b60405180910390a15b5090565b6001546001600160a01b03163314610ea15760405162461bcd60e51b815260040161074b9061352b565b601355565b60008060145460ff166003811115610ec057610ec0613699565b14610edd5760405162461bcd60e51b815260040161074b906134e2565b6001600160a01b0382163314610f515760405162461bcd60e51b815260206004820152603360248201527f4a756963794c6f74746f3a3a7769746864726177456e747269657320494e56416044820152724c49445f4143434f554e545f4144445245535360681b606482015260840161074b565b33600090815260056020526040902054610fcc5760405162461bcd60e51b815260206004820152603660248201527f4a756963794c6f74746f3a3a7769746864726177456e747269657320494e535560448201527511919250d251539517d153951490539517d0d3d5539560521b606482015260840161074b565b600d543360008181526005602052604090205490916108fc91610fef9190613608565b6040518115909202916000818181858888f19350505050158015611017573d6000803e3d6000fd5b50600d54336000908152600560205260409020546110359190613608565b600e60008282546110469190613627565b909155505033600090815260056020526040812054600780549192909161106e908490613627565b909155505033600090815260056020526040812061108b91612c66565b60005b60065481101561110f57336001600160a01b0316600682815481106110b5576110b56136af565b6000918252602090912001546001600160a01b031614156110fd57600681815481106110e3576110e36136af565b600091825260209091200180546001600160a01b03191690555b806111078161363e565b91505061108e565b505050565b6001546001600160a01b0316331461113e5760405162461bcd60e51b815260040161074b9061352b565b600360145460ff16600381111561115757611157613699565b14156111b45760405162461bcd60e51b815260206004820152602660248201527f4a756963794c6f74746f3a3a636c6f73654c6f747465727920494e56414c49446044820152655f535441544560d01b606482015260840161074b565b6111be6003612698565b565b6001546001600160a01b031633146111ea5760405162461bcd60e51b815260040161074b9061352b565b6111be600061287f565b6060601180548060200260200160405190810160405280929190818152602001828054801561124257602002820191906000526020600020905b81548152602001906001019080831161122e575b5050505050905090565b6002546112ab5760405162461bcd60e51b815260206004820152602760248201527f4a75696365626f7850726f6a6563743a3a7061793a2050524f4a4543545f4e4f6044820152661517d193d5539160ca1b606482015260840161074b565b600254604051634fe0eced60e01b81526000916001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691634fe0eced916112ff9160040190815260200190565b60206040518083038186803b15801561131757600080fd5b505afa15801561132b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134f91906130ea565b90506001600160a01b0381166113b85760405162461bcd60e51b815260206004820152602860248201527f4a75696365626f7850726f6a6563743a3a7061793a205445524d494e414c5f4e60448201526713d517d193d5539160c21b606482015260840161074b565b6002546040516302c8986f60e01b81526001600160a01b038316916302c8986f9134916113ef918a908a908a908a90600401613560565b6020604051808303818588803b15801561140857600080fd5b505af115801561141c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906114419190613120565b505050505050565b6001546001600160a01b031633146114735760405162461bcd60e51b815260040161074b9061352b565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156114d557600080fd5b505afa1580156114e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150d9190613120565b1161156c5760405162461bcd60e51b815260206004820152602960248201527f4a756963794c6f74746f3a77697468647261774c696e6b20494e53554646494360448201526849454e545f4c494e4b60b81b606482015260840161074b565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb90339083906370a082319060240160206040518083038186803b1580156115d557600080fd5b505afa1580156115e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160d9190613120565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561165357600080fd5b505af1158015611667573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7e9190612f9c565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146117035760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161074b565b61170d82826128d1565b5050565b6001546001600160a01b0316331461173b5760405162461bcd60e51b815260040161074b9061352b565b6040516393535be160e01b81526001600160a01b038816906393535be190611771908990899089908990899089906004016132d6565b600060405180830381600087803b15801561178b57600080fd5b505af115801561179f573d6000803e3d6000fd5b5050505050505050505050565b6001546001600160a01b031633146117d65760405162461bcd60e51b815260040161074b9061352b565b60038060145460ff1660038111156117f0576117f0613699565b1461180d5760405162461bcd60e51b815260040161074b906134e2565b610a7e6000612698565b60008060145460ff16600381111561183157611831613699565b1461184e5760405162461bcd60e51b815260040161074b906134e2565b34600e600082825461186091906135dc565b909155505050565b600060145460ff16600381111561188157611881613699565b14806118a35750600160145460ff1660038111156118a1576118a1613699565b145b6118fb5760405162461bcd60e51b8152602060048201526024808201527f4a756963794c6f74746f3a3a627579456e747269657320494e56414c49445f536044820152635441544560e01b606482015260840161074b565b8061195c5760405162461bcd60e51b815260206004820152602b60248201527f4a756963794c6f74746f3a3a627579456e747269657320494e5355464649434960448201526a454e545f454e545249455360a81b606482015260840161074b565b600d5461196a908290613608565b34146119c95760405162461bcd60e51b815260206004820152602860248201527f4a756963794c6f74746f3a3a627579456e747269657320494e56414c49445f4d60448201526753475f56414c554560c01b606482015260840161074b565b60005b8181101561110f578282828181106119e6576119e66136af565b506119ef915050565b611a84838383818110611a0457611a046136af565b905060600201600060038110611a1c57611a1c6136af565b6020020135848484818110611a3357611a336136af565b905060600201600160038110611a4b57611a4b6136af565b6020020135858585818110611a6257611a626136af565b905060600201600260038110611a7a57611a7a6136af565b6020020135612917565b80611a8e8161363e565b9150506119cc565b33600090815260086020526040902054611b0f5760405162461bcd60e51b815260206004820152603460248201527f4a756963794c6f74746f3a3a77697468647261775374616b6520494e53554646604482015273494349454e545f454e5452414e545f5354414b4560601b606482015260840161074b565b336000908152600860205260408120805491905560125460ff1615611bce5760006064600f5483611b409190613608565b611b4a91906135f4565b90506000611b588284613627565b9050611b9b611b678285613627565b33604051806040016040528060138152602001724665652066726f6d204a756963794c6f74746f60681b815250600061248a565b604051339082156108fc029083906000818181858888f19350505050158015611bc8573d6000803e3d6000fd5b50505050565b604051339082156108fc029083906000818181858888f1935050505015801561170d573d6000803e3d6000fd5b6001546001600160a01b03163314611c255760405162461bcd60e51b815260040161074b9061352b565b604051635c46a7ef60e11b81526001600160a01b0386169063b88d4fde90610b9d9030908890889088908890600401613235565b6001546001600160a01b03163314611c835760405162461bcd60e51b815260040161074b9061352b565b600f55565b6001546001600160a01b03163314611cb25760405162461bcd60e51b815260040161074b9061352b565b600255565b60028060145460ff166003811115611cd157611cd1613699565b14611cee5760405162461bcd60e51b815260040161074b906134e2565b611d0a6010546001611d0091906135dc565b6003600c54612a91565b8051611d1e91601191602090910190612ca5565b506000600460006011600081548110611d3957611d396136af565b9060005260206000200154815260200190815260200160002060006011600181548110611d6857611d686136af565b9060005260206000200154815260200190815260200160002060006011600281548110611d9757611d976136af565b90600052602060002001548152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611e0457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611de6575b505050505090507fd388f1b6879288c1fd416bc5d6d9d3fec6eacfa73bb80b2ef0a2c63adc6fd2606011604051611e3b919061347f565b60405180910390a18051156120fb5760006064600e546002611e5d9190613608565b611e6791906135f4565b90506000611e76826002613608565b600e54611e839190613627565b600980546001600160a01b0316600090815260086020526040808220869055338252812085905581546001600160a01b031916909155845191925090611ec990836135f4565b905060005b8451811015611f9d578115611f8b578160086000878481518110611ef457611ef46136af565b6020908102919091018101516001600160a01b0316825281019190915260400160002055611f228284613627565b92507f9c2270628a9b29d30ae96b6c4c14ed646ee134febdce38a5b77f2bde9cea2e20858281518110611f5757611f576136af565b602002602001015183604051611f829291906001600160a01b03929092168252602082015260400190565b60405180910390a15b80611f958161363e565b915050611ece565b50600460006011600081548110611fb657611fb66136af565b9060005260206000200154815260200190815260200160002060006011600181548110611fe557611fe56136af565b9060005260206000200154815260200190815260200160002060006011600281548110612014576120146136af565b9060005260206000200154815260200190815260200160002060006120399190612c87565b60005b6006548110156120e0576000600560006006848154811061205f5761205f6136af565b60009182526020808320909101546001600160a01b0316835282019290925260400190205411156120ce5760056000600683815481106120a1576120a16136af565b60009182526020808320909101546001600160a01b0316835282019290925260400181206120ce91612c66565b806120d88161363e565b91505061203c565b506120ed60066000612c87565b50506000600e819055600755505b61170d6000612698565b6001546001600160a01b0316331461212f5760405162461bcd60e51b815260040161074b9061352b565b600081116121965760405162461bcd60e51b815260206004820152602e60248201527f4a756963794c6f74746f3a3a736574456e74727946656520494e53554646494360448201526d49454e545f454e5452595f46454560901b606482015260840161074b565b600654158015906121bd5750600060145460ff1660038111156121bb576121bb613699565b145b156123255760005b60065481101561232357600060056000600684815481106121e8576121e86136af565b60009182526020808320909101546001600160a01b0316835282019290925260400190205411156122cd576000600d54600560006006858154811061222f5761222f6136af565b60009182526020808320909101546001600160a01b0316835282019290925260400190205461225e9190613608565b905060068281548110612273576122736136af565b60009182526020822001546040516001600160a01b039091169183156108fc02918491818181858888f193505050501580156122b3573d6000803e3d6000fd5b5080600e60008282546122c69190613627565b9091555050505b60056000600683815481106122e4576122e46136af565b60009182526020808320909101546001600160a01b03168352820192909252604001812061231191612c66565b8061231b8161363e565b9150506121c5565b505b600d55565b6001546001600160a01b031633146123545760405162461bcd60e51b815260040161074b9061352b565b6001600160a01b0381166123b95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161074b565b610a7e8161287f565b6001546001600160a01b031633146123ec5760405162461bcd60e51b815260040161074b9061352b565b61170d8282612b4d565b600080600360009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561244757600080fd5b505afa15801561245b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247f9190613139565b509195945050505050565b6002546124ed5760405162461bcd60e51b815260206004820152602b60248201527f4a75696365626f7850726f6a6563743a3a74616b654665653a2050524f4a454360448201526a1517d393d517d193d5539160aa1b606482015260840161074b565b600254604051634fe0eced60e01b81526000916001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691634fe0eced916125419160040190815260200190565b60206040518083038186803b15801561255957600080fd5b505afa15801561256d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061259191906130ea565b90506001600160a01b0381166125fe5760405162461bcd60e51b815260206004820152602c60248201527f4a75696365626f7850726f6a6563743a3a74616b654665653a205445524d494e60448201526b105317d393d517d193d5539160a21b606482015260840161074b565b844710156126635760405162461bcd60e51b815260206004820152602c60248201527f4a75696365626f7850726f6a6563743a3a74616b654665653a20494e5355464660448201526b494349454e545f46554e445360a01b606482015260840161074b565b6002546040516302c8986f60e01b81526001600160a01b038316916302c8986f9188916113ef9189908990899060040161359f565b6014805482919060ff191660018360038111156126b7576126b7613699565b02179055507f1e046fdd2110d82ed3fa7652b41ced17c49cbb9ee4536e65f51ad2a6ed5359a7816040516126eb91906134ba565b60405180910390a150565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612766929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612793939291906132a6565b602060405180830381600087803b1580156127ad57600080fd5b505af11580156127c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e59190612f9c565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a09091019092528151918301919091208684529290915261283f9060016135dc565b6000858152602081815260409182902092909255805180830187905280820184905281518082038301815260609091019091528051910120949350505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60018060145460ff1660038111156128eb576128eb613699565b146129085760405162461bcd60e51b815260040161074b906134e2565b601082905561110f6002612698565b600c54831080156129295750600c5482105b80156129365750600c5481105b6129935760405162461bcd60e51b815260206004820152602860248201527f4a756963794c6f74746f3a3a627579456e74727920454e5452595f4f55545f4f604482015267465f424f554e445360c01b606482015260840161074b565b600083815260046020908152604080832085845282528083208484528252822080546001810182559083529082200180546001600160a01b03191633179055600d54600e8054919290916129e89084906135dc565b90915550503360009081526005602090815260408083208151606081018352878152808401879052918201859052805460018101825590845291909220612a3792600392830290910191612cec565b506006805460018101825560009182527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b031916331790556007805491612a878361363e565b9190505550505050565b60608267ffffffffffffffff811115612aac57612aac6136c5565b604051908082528060200260200182016040528015612ad5578160200160208202803683370190505b50905060005b83811015612b455760408051602080820188905281830184905282518083038401815260609092019092528051910120612b16908490613659565b828281518110612b2857612b286136af565b602090810291909101015280612b3d8161363e565b915050612adb565b509392505050565b80471015612b9d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161074b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612bea576040519150601f19603f3d011682016040523d82523d6000602084013e612bef565b606091505b505090508061110f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161074b565b5080546000825560030290600052602060002090810190610a7e9190612d19565b5080546000825590600052602060002090810190610a7e9190612d3a565b828054828255906000526020600020908101928215612ce0579160200282015b82811115612ce0578251825591602001919060010190612cc5565b50610e73929150612d3a565b8260038101928215612ce05791602002820182811115612ce0578251825591602001919060010190612cc5565b80821115610e73576000808255600182018190556002820155600301612d19565b5b80821115610e735760008155600101612d3b565b60008083601f840112612d6157600080fd5b50813567ffffffffffffffff811115612d7957600080fd5b6020830191508360208260051b8501011115612d9457600080fd5b9250929050565b60008083601f840112612dad57600080fd5b50813567ffffffffffffffff811115612dc557600080fd5b602083019150836020828501011115612d9457600080fd5b805169ffffffffffffffffffff81168114612df757600080fd5b919050565b600060208284031215612e0e57600080fd5b8135612e19816136db565b9392505050565b60008060408385031215612e3357600080fd5b8235612e3e816136db565b946020939093013593505050565b600080600080600060808688031215612e6457600080fd5b8535612e6f816136db565b94506020860135612e7f816136db565b935060408601359250606086013567ffffffffffffffff811115612ea257600080fd5b612eae88828901612d9b565b969995985093965092949392505050565b60008060008060608587031215612ed557600080fd5b8435612ee0816136db565b9350602085013567ffffffffffffffff811115612efc57600080fd5b612f0887828801612d9b565b9094509250506040850135612f1c816136f0565b939692955090935050565b60008060208385031215612f3a57600080fd5b823567ffffffffffffffff80821115612f5257600080fd5b818501915085601f830112612f6657600080fd5b813581811115612f7557600080fd5b866020606083028501011115612f8a57600080fd5b60209290920196919550909350505050565b600060208284031215612fae57600080fd5b8151612e19816136f0565b60008060408385031215612fcc57600080fd5b50508035926020909101359150565b600080600080600060808688031215612ff357600080fd5b8535612ffe816136db565b9450602086013561300e816136db565b935060408601359250606086013567ffffffffffffffff81111561303157600080fd5b612eae88828901612d4f565b60008060008060008060006080888a03121561305857600080fd5b8735613063816136db565b9650602088013567ffffffffffffffff8082111561308057600080fd5b61308c8b838c01612d4f565b909850965060408a01359150808211156130a557600080fd5b6130b18b838c01612d4f565b909650945060608a01359150808211156130ca57600080fd5b506130d78a828b01612d4f565b989b979a50959850939692959293505050565b6000602082840312156130fc57600080fd5b8151612e19816136db565b60006020828403121561311957600080fd5b5035919050565b60006020828403121561313257600080fd5b5051919050565b600080600080600060a0868803121561315157600080fd5b61315a86612ddd565b945060208601519350604086015192506060860151915061317d60808701612ddd565b90509295509295909350565b81835260006001600160fb1b038311156131a257600080fd5b8260051b8083602087013760009401602001938452509192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6000815180845260005b8181101561320e576020818501810151868301820152016131f2565b81811115613220576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b038681168252851660208201526040810184905260806060820181905260009061326990830184866131bf565b979650505050505050565b60018060a01b038516815283602082015260606040820152600061329c606083018486613189565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006132cd60608301846131e8565b95945050505050565b6060808252810186905260008760808301825b898110156133195782356132fc816136db565b6001600160a01b03168252602092830192909101906001016132e9565b50602091508381038285015261333081888a613189565b84810360408601528581529050818101600586811b830184018860005b898110156133be57858303601f190185528135368c9003601e1901811261337357600080fd5b8b01803567ffffffffffffffff81111561338c57600080fd5b80861b36038d131561339d57600080fd5b6133aa85828b8501613189565b96890196945050509086019060010161334d565b50909d9c50505050505050505050505050565b602080825282518282018190526000919084820190604085019084805b8281101561342e57845184835b6003811015613418578251825291880191908801906001016133fb565b50505093850193606093909301926001016133ee565b5091979650505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561347357835183529284019291840191600101613457565b50909695505050505050565b6020808252825482820181905260008481528281209092916040850190845b818110156134735783548352600193840193928501920161349e565b60208101600483106134dc57634e487b7160e01b600052602160045260246000fd5b91905290565b60208082526029908201527f4a756963794c6f74746f3a3a6973537461746520494e56414c49445f4c4f54546040820152684552595f535441544560b81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b8581526001600160a01b038516602082015260806040820181905260009061358b90830185876131bf565b905082151560608301529695505050505050565b8481526001600160a01b03841660208201526080604082018190526000906135c9908301856131e8565b9050821515606083015295945050505050565b600082198211156135ef576135ef61366d565b500190565b60008261360357613603613683565b500490565b60008160001904831182151516156136225761362261366d565b500290565b6000828210156136395761363961366d565b500390565b60006000198214156136525761365261366d565b5060010190565b60008261366857613668613683565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610a7e57600080fd5b8015158114610a7e57600080fdfea26469706673582212202e8e6362f7c2aedfeeaf9c25cb5b97cc75c4c2d16b7f867c4298790e84e7adbd64736f6c63430008060033";
30,478
30,478
0.999836
e35434f0535e5eb06c1dec14ef44b6eb6880db31
238
js
JavaScript
src/js/test.js
xiashine/MPlayer
a1db56314286b5004f070f77c2b54f79f750f82b
[ "MIT" ]
1
2022-01-14T10:26:53.000Z
2022-01-14T10:26:53.000Z
src/js/test.js
xiashine/MPlayer
a1db56314286b5004f070f77c2b54f79f750f82b
[ "MIT" ]
null
null
null
src/js/test.js
xiashine/MPlayer
a1db56314286b5004f070f77c2b54f79f750f82b
[ "MIT" ]
null
null
null
const defaultApiBackend = require("api"); const Ads = require("ads"); const options = { container: options.element || document.getElementsByClassName('dplayer')[0], apiBackend: defaultApiBackend }; const ads = new Ads(options);
23.8
80
0.718487
27ac9f879c6ead4ec48120801164121c6b31c6e7
2,098
js
JavaScript
dist/libs/remix-lib/src/index.js
DevEmilio96/remix-project
8551b1171d0fc7709931d3ce26061d6efb3baa59
[ "MIT" ]
1
2022-03-17T19:11:56.000Z
2022-03-17T19:11:56.000Z
node_modules/@remix-project/remix-lib/src/index.js
gabrielruoff/SmartContractCharters
59a37f56f20a97d2dbf11561ff481bb4d6270cf7
[ "MIT" ]
null
null
null
node_modules/@remix-project/remix-lib/src/index.js
gabrielruoff/SmartContractCharters
59a37f56f20a97d2dbf11561ff481bb4d6270cf7
[ "MIT" ]
null
null
null
"use strict"; const tslib_1 = require("tslib"); const eventManager_1 = require("./eventManager"); const uiHelper = tslib_1.__importStar(require("./helpers/uiHelper")); const compilerHelper = tslib_1.__importStar(require("./helpers/compilerHelper")); const util = tslib_1.__importStar(require("./util")); const web3Providers_1 = require("./web3Provider/web3Providers"); const dummyProvider_1 = require("./web3Provider/dummyProvider"); const web3VmProvider_1 = require("./web3Provider/web3VmProvider"); const storage_1 = require("./storage"); const eventsDecoder_1 = require("./execution/eventsDecoder"); const txExecution = tslib_1.__importStar(require("./execution/txExecution")); const txHelper = tslib_1.__importStar(require("./execution/txHelper")); const txFormat = tslib_1.__importStar(require("./execution/txFormat")); const txListener_1 = require("./execution/txListener"); const txRunner_1 = require("./execution/txRunner"); const execution_context_1 = require("./execution/execution-context"); const typeConversion = tslib_1.__importStar(require("./execution/typeConversion")); const universalDapp_1 = require("./universalDapp"); function modules() { return { EventManager: eventManager_1.EventManager, helpers: { ui: uiHelper, compiler: compilerHelper }, vm: { Web3Providers: web3Providers_1.Web3Providers, DummyProvider: dummyProvider_1.DummyProvider, Web3VMProvider: web3VmProvider_1.Web3VmProvider }, Storage: storage_1.Storage, util: util, execution: { EventsDecoder: eventsDecoder_1.EventsDecoder, txExecution: txExecution, txHelper: txHelper, executionContext: new execution_context_1.ExecutionContext(), txFormat: txFormat, txListener: txListener_1.TxListener, txRunner: txRunner_1.TxRunner, typeConversion: typeConversion }, UniversalDApp: universalDapp_1.UniversalDApp }; } module.exports = modules(); //# sourceMappingURL=index.js.map
43.708333
83
0.702097
27acd3337e6c819f672861d97dbf0ff905a038e6
250
js
JavaScript
naoqi-sdk-2.5.5.5-linux64/doc/ref/libalcommon/search/variables_5.js
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/doc/ref/libalcommon/search/variables_5.js
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/doc/ref/libalcommon/search/variables_5.js
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
1
2020-10-06T07:44:12.000Z
2020-10-06T07:44:12.000Z
var searchData= [ ['ip',['ip',['../classAL_1_1ALModuleInfo.html#a0a3d5b4e92b7f76b25cb197db70225e7',1,'AL::ALModuleInfo']]], ['isabroker',['isABroker',['../classAL_1_1ALModuleInfo.html#a63b2d13437ae28fd9920f991cb51ecc8',1,'AL::ALModuleInfo']]] ];
41.666667
120
0.74
27ad5ec8c5d6eb95e849a8625d48f6d41886bc70
287
js
JavaScript
client/state/categories/action-types.js
jmeas/moolah
f91b2f890458a076155b8ff89b2690e102821083
[ "MIT" ]
22
2016-05-29T16:45:05.000Z
2017-07-19T02:24:20.000Z
client/state/categories/action-types.js
jamesplease/moolah-old
f91b2f890458a076155b8ff89b2690e102821083
[ "MIT" ]
272
2016-05-19T02:19:03.000Z
2017-07-10T05:50:20.000Z
client/state/categories/action-types.js
jmeas/moolah
f91b2f890458a076155b8ff89b2690e102821083
[ "MIT" ]
5
2016-06-04T14:12:01.000Z
2017-04-27T05:56:03.000Z
import keyMirror from 'keymirror'; import createAsyncConstants from '../utils/create-async-constants'; const asyncActions = createAsyncConstants( 'CREATE_CATEGORY', 'RETRIEVE_CATEGORIES', 'UPDATE_CATEGORY', 'DELETE_CATEGORY' ); export default keyMirror({ ...asyncActions });
20.5
67
0.759582
27adf6264447bf4b2bf3563813b4976c4dbeb78f
87
js
JavaScript
test.js
coding-tutorials/aws-lambda
221f619296d861df233d5e9cd519fa875ea24e6e
[ "Apache-2.0" ]
null
null
null
test.js
coding-tutorials/aws-lambda
221f619296d861df233d5e9cd519fa875ea24e6e
[ "Apache-2.0" ]
null
null
null
test.js
coding-tutorials/aws-lambda
221f619296d861df233d5e9cd519fa875ea24e6e
[ "Apache-2.0" ]
null
null
null
const assert = require('assert') it('should run some test' , () => { assert(1, 1) })
17.4
35
0.586207
27ae228b69f645143d447241b4a59fbb3399f135
152
js
JavaScript
client/src/reducers/index.js
Raamprasaadh/1pwd
8359462eeef661ca41fb0bd176ca31f955bcab81
[ "MIT" ]
null
null
null
client/src/reducers/index.js
Raamprasaadh/1pwd
8359462eeef661ca41fb0bd176ca31f955bcab81
[ "MIT" ]
null
null
null
client/src/reducers/index.js
Raamprasaadh/1pwd
8359462eeef661ca41fb0bd176ca31f955bcab81
[ "MIT" ]
null
null
null
import {combineReducers} from 'redux'; import AppDetails from './appDetails'; const Reducers = combineReducers({AppDetails}); export default Reducers;
25.333333
47
0.782895
27ae46e0d074b4ed41555488da88ea998ad46483
22,661
js
JavaScript
index.js
EricHeXia/react-alert-popup
703dcd1953dd47ac8b70bde96389286ca05319ac
[ "MIT" ]
2
2018-03-20T03:53:21.000Z
2018-07-20T06:41:36.000Z
index.js
EricHeXia/react-alert-popup
703dcd1953dd47ac8b70bde96389286ca05319ac
[ "MIT" ]
null
null
null
index.js
EricHeXia/react-alert-popup
703dcd1953dd47ac8b70bde96389286ca05319ac
[ "MIT" ]
null
null
null
!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var n=t("object"===typeof exports?require("react"):e.react);for(var o in n)("object"===typeof exports?exports:e)[o]=n[o]}}(this,function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1);t.default=o.a},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),s=n.n(i),u=n(3),f=(n.n(u),n(8)),l=n.n(f),c=n(9),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),g=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onConfirm=function(){n.setState({show:!1}),n.props.onConfirm()},n.onCancel=function(){n.setState({show:!1}),n.props.onCancel()},n.state={show:!1,showConfirmButton:!0,showCancelButton:!1,type:"warning",buttonPaddingTop:15},n}return a(t,e),p(t,[{key:"componentWillReceiveProps",value:function(e){if(!1!==e.show||!1!==this.state.show){this.setState({show:e.show,showConfirmButton:void 0===e.showConfirmButton||e.showConfirmButton,showCancelButton:void 0!==e.showCancelButton&&e.showCancelButton,type:"warning",buttonPaddingTop:void 0!==e.buttonPaddingTop?e.buttonPaddingTop:15})}}},{key:"render",value:function(){return s.a.createElement("div",{className:"popup",hidden:!this.state.show},s.a.createElement("div",{className:"popup_inner"},s.a.createElement("div",{style:{marginTop:22}},s.a.createElement("img",{alt:"",className:"alert_image",src:l.a})),s.a.createElement("div",{className:"alert_text"},s.a.createElement("h5",null,this.props.text)),s.a.createElement("div",{className:"text-nowrap",style:{paddingTop:this.state.buttonPaddingTop}},s.a.createElement("input",{type:"button",className:"alert_btn",onClick:this.onConfirm,value:c.a.ok}),s.a.createElement("input",{type:"button",style:{display:this.state.showCancelButton?"":"none",marginLeft:3},className:"alert_btn",onClick:this.onCancel,value:c.a.cancel}))))}}]),t}(i.Component);t.a=g},function(t,n){t.exports=e},function(e,t,n){var o=n(4);"string"===typeof o&&(o=[[e.i,o,""]]);var r={};r.transform=void 0;n(6)(o,r);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(5)(void 0),t.push([e.i,".popup {\n position: fixed !important;\n width: 100%;\n height: 100%;\n top: 0 !important;\n left: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n margin: auto !important;\n z-index: 10000 !important;\n background-color: rgba(0, 0, 0, 0.5); }\n\n.popup_inner {\n position: fixed;\n border-radius: 4px;\n text-align: center;\n width: 400px;\n height: 200px;\n overflow: auto;\n left: 25%;\n right: 25%;\n top: 25%;\n bottom: 25%;\n margin: auto;\n background: white;\n z-index: 99999;\n animation: popupmove 0.2s;\n -webkit-animation: popupmove 0.2s; }\n\n.alert_btn {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n display: inline-block;\n padding: 6px 12px;\n margin-bottom: 0;\n font-size: 14px;\n font-weight: normal;\n line-height: 1.42857143;\n text-align: center;\n white-space: nowrap;\n vertical-align: middle;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n background-image: none;\n border: 1px solid transparent;\n border-radius: 4px; }\n\n@keyframes popupmove {\n from {\n top: 1%; }\n to {\n top: 25%; } }\n\n@-webkit-keyframes popupmove /* Safari and Chrome */ {\n from {\n top: 1%; }\n to {\n top: 25%; } }\n\n.alert_text {\n padding-left: 5px;\n padding-right: 5px; }\n\n.alert_image {\n width: 70px;\n height: 70px;\n animation: imagemove 0.5s;\n -webkit-animation: imagemove 0.5s; }\n\n@keyframes imagemove {\n from {\n width: 0;\n height: 0; }\n to {\n width: 70px;\n height: 70px; } }\n\n@-webkit-keyframes imagemove /* Safari and Chrome */ {\n from {\n width: 0;\n height: 0; }\n to {\n width: 70px;\n height: 70px; } }\n",""])},function(e,t){function n(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var a=o(r);return[n].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([a]).join("\n")}return[n].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=n(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var a=this[r][0];"number"===typeof a&&(o[a]=!0)}for(r=0;r<e.length;r++){var i=e[r];"number"===typeof i[0]&&o[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=d[o.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](o.parts[a]);for(;a<o.parts.length;a++)r.parts.push(l(o.parts[a],t))}else{for(var i=[],a=0;a<o.parts.length;a++)i.push(l(o.parts[a],t));d[o.id]={id:o.id,refs:1,parts:i}}}}function r(e,t){for(var n=[],o={},r=0;r<e.length;r++){var a=e[r],i=t.base?a[0]+t.base:a[0],s=a[1],u=a[2],f=a[3],l={css:s,media:u,sourceMap:f};o[i]?o[i].parts.push(l):n.push(o[i]={id:i,parts:[l]})}return n}function a(e,t){var n=v(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",f(t,e.attrs),a(e,t),t}function u(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",f(t,e.attrs),a(e,t),t}function f(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function l(e,t){var n,o,r,a;if(t.transform&&e.css){if(!(a=t.transform(e.css)))return function(){};e.css=a}if(t.singleton){var f=m++;n=A||(A=s(t)),o=c.bind(null,n,f,!1),r=c.bind(null,n,f,!0)}else e.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(n=u(t),o=g.bind(null,n,t),r=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),o=p.bind(null,n),r=function(){i(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function c(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(t,r);else{var a=document.createTextNode(r),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function p(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function g(e,t,n){var o=n.css,r=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||a)&&(o=b(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([o],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(i),s&&URL.revokeObjectURL(s)}var d={},h=function(e){var t;return function(){return"undefined"===typeof t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),v=function(e){var t={};return function(n){return"undefined"===typeof t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),A=null,m=0,y=[],b=n(7);e.exports=function(e,t){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"===typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=h()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=r(e,t);return o(n,t),function(e){for(var a=[],i=0;i<n.length;i++){var s=n[i],u=d[s.id];u.refs--,a.push(u)}if(e){o(r(e,t),t)}for(var i=0;i<a.length;i++){var u=a[i];if(0===u.refs){for(var f=0;f<u.parts.length;f++)u.parts[f]();delete d[u.id]}}}};var w=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e){var t="undefined"!==typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!==typeof e)return e;var n=t.protocol+"//"+t.host,o=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var r=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r))return e;var a;return a=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:o+r.replace(/^\.\//,""),"url("+JSON.stringify(a)+")"})}},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2gQaAAAAtVWE0gAAFZ1JREFUeNrtnFtwXdd533/fWnufCy4HJAACxIUkQFAECZKCSZo0aVlMqEi2I8WSZVmmqcS1M8kk7nT6lIe+d6Z57EunHbrNQ6fNtM1DMpNOHpJOpy+J6yQzli3VVBRblXiTeANBgDg45+zb+vKw9z5nnwOA0QUUJ072zMLe++zbWv/9//7ft761NuCflocu8rgrkC//51/ubm8rCsAv/bvbj7tajxegS4vgYvBKUN0BAyMlrO+jKK2VkPpyzMotGByB33r9HxlAlxZBNa1A0CwR3A/N8CTl6k5KGMIgIFC1TsOERgtKHnz3jU+/nt7jAghABFyMqQyEO/Z+Zujc3qeefrZ/98z48t/+9a0bP3zjzx7cCv48bPGgXELVPZ462sfx0EuL6dolCEJtaCe/NfvZmd89cHr+/NhEdWGgWj8dLt8/v/p+o+7grVZAaA18ZTf8yacsS+ZxAKSAFTAGr2Q5NdTf99v7Fg+PDZnr+Mt/yUitwcLT8xMT033/3ConSyX8culx1PQxAHRpMdWde/fBeIxWPF6bODK/f3hqEKIGiIE4Ysf0CHNnZg8O9PGaNYwu3UPQDvt+bgEC2FmDoZ2UrONzO0YHv7zv3CK2dTNVbefS0rzP5OKMGZ8ZfN5TTg8M4ff1dUD+uQQob9jdZYy1TJSFX506/eTE0JiizWVQR2qACuEalX7DzKmZqf5+vmlh9+qDT/+FfmoPvLSYNr3kgy3h25hf3DG+89l9T38GHryHOgUXgSYpUOqgcY+JJ/exe7b2nKf8gl+iXPW7wf65AUg0LSv3ECtMl4Rv7Tv3uR2DQy3c+grqwDmXRo7qUjSDB5Qryuzp2ZGBAS4aZfpBE/NpBm+fCkA5e9ZWoW+YioQ8Pzw9/tTec58hWXobRXDOoU7RJAFXYNHaHXYf3cPk3NAXPPhSqUxfEHXu+3MBkBFAoL8fI479Jcuvzj73hUrFLpGsr+KcoIlDE4dziuYsAgjW8L2Y2c/NDA4MyjfEMed5WPmUaPTIAbq0CImDIAS/n6oEvDQ6M31i6uwRoltvomLAJWjOIOdQ5zIWaQpU/Q5jh/cwcWDosx4873sMvHO9c/9/0ACRBoR4FkPCQsnyawdeeMb3wxskjbVUexKXYeEKQMUpSAi01vBtyP4zs9WBQbmAcmR2Ei+v/KME6ZECdGkRcHD3KvgVBlyTb4wfPjA/efIJwhtvgFjUJahqamJdLNKOFqGwdpux+QmmDu48YpWXrWVHI3iUtX/EAOURsxjYuRdDwvGyb185+OKzRtbeIWmtZazJANFucNJ1LthAUMejxf6zs95gzXxVlM9USvi28Lx/UABB2q654+CXGNYW3544fmh2bGGS1vUfoeJlniv3Xq6w3wGJ3NTUwdptds3tYvrw8H4rfMNYRpvxo03ZPHKAfnoZowFny6XSVw6+9EskS5dJggaq0gWE62KPbgRJHQTrWNdk7uyMqe2wL+A441v8R9mIR3LvnO6tNfCVXa7Jd/acfXJ0dHaU1rW3QPzMc2mBMZuAk6SFJEmLS+OikZkR9h0dmbTCBWsYj1zKokdhZtsOUF5JI9A3jJc0+GJlqP+5+ZfPE954nSRq4pwWGJOBoZrpUAGcAnipmSUQ1DFRnbkzMwzt9J5VxzPWUpkceRSv+hGaWLOFeIbJuMV39p87PrhjrEJw623EWNBecNJrVFOzRBUVRVGcpmDichYl8OAOO6drzBwbGbHCRSPsvbGUtmW7WfRIUq7ffQO+dxIvrPOlgdHa2fkXv0Bw9YcQR4j1wDkUl4JgIFxZJ7wXYHAgIKKIUSoDhv5dFVRA1SEmQzJcR4I19p/Zy5Wf3Dt7byl+xhiuV30azXB727KtKdf87T2/C/F85oM1/vWRl5+e2bu4m+bPvo+IIeWIA5cO7rigibNH6DvxbUqz5/Bnz+HNnMObOU+sg5j1/4/np9QS1cxlKSQR1fExggfN8q336oMi/FUYsySC/so2pma3nUHVKsQJ5WadV4YmR04c+vIpWu/9IDUNa1Oh1Szn4xLE72P0xX9DafJzG+7l1m8R/NlruOXXMcaiomlaUQ201qG5ytyZPbz75r1TS7fDF63l6kqT1VolfVnbMQqybRqUs6fRRJKYwy7m4uEXz3gVb41o6RpiLeIcotrpYyUJxhvA9o+mF7ePpYwx5UHswG40SQoeLtMhl8DqHWojFQ6c3FU1hldVWRgsb69VbAtAOTi//WMolRkIGlwc3T8xf+D8Iq0rryO47mwh+TZtD7bpogpJ7tG07d3abj9owPoyc6cmGR4vLyQJL1nLUG6J2yHY28Yg5+A/HMXEEScEc+HoV58yfnCH5P4HiNgsv5MyR1QRl+qQ5Gaz2SKk7t/l67S0vZpLYPUuA0Me86fHPGt5xTlOyDZKxycGKH9LN65C/xCDrTV+bfzInr0zpw/QuvJ6RhpNQcnBUYegiKQgbb1IlsN3BRZRYJKDsAkPlth/YpyxqcqcS/i6sQwn2xQ8bguDRGDPDLZV52nrey8tfu0pZOUKbm0p9Vxt9mgXk8gDxC3uq2SAJHSDk3dBkgzg1SX67DqHTgyI5/GCc5yxhpLdhl7aJwIofztRjJQrDAcNvr335NyuyYUJWlffRBA6elPUnmytqXk9tB3azRzntBukZgT3HsDN95mZ72P3dGnaJVwQYXfsOsHjx2XSJ2aQ70HZxwZNni1VS88d++pp3J2f4poPUmq1TSv3YC77jdTEckZtugjqpM2gVHsy1kUOXQ1hJYBWAqt1Kjbm8Mkavs9zqpwTQ+mTpmY/NkCXFgGF5joiHpNhg9+Y/fyhobG9QwTX/ybtUlAEIGVOyphs2z18eomQZTscbea4RNF6jLsXoutJqkUKxA6WV9n7RJWpfeVRl/CawB7nPhkJPtbFbdNqQaWGFzZ4sbqj76ljL54k+uAyGjbT1uW6g/boUPF3gIcItUraNVHFBY7kXkByP0IjxeW3cVmpNylpyMKpGpWKPO0cXzaGqjHd9X7kAOVLo4Xg2B+H/LODzyxUhoaF8Na7iLEdk6JoVoWSDvZk52yNjUgmzKsR7m6ANl0b17bF5tKWpCya2ldmen+5Xx0XgLk4+fjt/MgX5m8hjmDXJKXWOhcGdtWOL3zxGPH1t1KbyEW54NpNZloiiikUa5StdEJQdD0iuR3hHkTp9cUaF8mYs6gR4EVNDp8YpFqVk87xK8bQ31v/RwZQviQxEocsJBGvLXzpqNdfahLdu5G59dxDpZpjpAAM+dphxCGS69MmizrcWgRhyqS2YPUA2rZSByQK99eYmPbZ90Sloo5XBRb0YwaPHwmgHP0kgdowfcE6F0f2jswfPPcEwbXL7Y6okAFQBIMOOCKui0VbLSpgPMGYFCChsO7BSYsbrRDbbHD45AD9A+ZokvCygZr2tGNbAcpvGsQgDhMGnFKVC0dfOIYfLZGs3kOMycBwbZMyOEQoANIBTuChA+2ipOfmABVAKqK0wUQVWK0ztsswO1/xUL6GcELgI0/D+ugm5qAywGDY4Fvj8+N7Z05MEV7/W4whM5u88do2oRyULuagWFGsSBZQboZQOuhobbpWCqDQAS3/uXgdUYJpNjh0vJ/BmplzjgsijLqP2AX5SAB5PlTKeGHA58WYF449fxRbv4EG9fQt50KcgZGCkz7EiMMWBdqkv0srzIR9s0UxVrEmA0q6QSnisSnGa01Gh2FuoWpQfhnltDH4+eEPA9KHAii/0YMHYC3jUYPfnDo2NT59cIj45rsZCzoM6TAlBcbkv5P9ZsBEMbLUQO6HnYkKm1XQgPUyFtmNZpbvt5EqApUkSL3B/GIftR12yjkuCOzWjzD9+e8FKAfHGqgNUopDvuhX/WcXf/kQsnwFjcOskmnIKluIs2TASJJgVlvIUhMTOoxn2NLPI1gjWEO7GFMARgrs2eoWjRY7Bx0Hj/WB8JzCeYHKhx3X/9AmFgSIU6ajkG/NntpTG5u0xPduYoxkOR02aEzu3sWAUYc0AsxSA1kLUw3ywdJCXDbhR3parorE61gvZY+1GUi94twj2l2LU6Te4OCRCsOj3ohzXBSYTj5k2x+anmzPZ3bgl+mPQy72DVZ+/ew3n/RKzRsQNBAjHXEualDuxURTc1ptYdZCjGb6Y0AsSBiALcFgDZo3ofF+Vj6Ay/8T+fF/R7wAKXgy0yvSZhOQ2icDiaM86BOLx/tXgnGEKwKXgQgenuB/qC3mAKnDGI9jUYv/dOy5g6dOPjtG/P7P0kZqxhJRjHYyhCKKJA6pB0g9SvPRmzUGIDHgj6Y06WRjIVoGL0ivyWWqGDVr9oqL9zNZs/Ln5HFE2afuD/Knf7TK3ZvR943lXwA/ARLYOsG/JYP+42InGWg8aknIr9d2DXz99EtPWL9+HZIoe37HpHKgBIc0I2SliWlE6TGbPc1kaytZMeAr+Os4UyemDraO8evgu/R4zoTc9EwP0BT3pZtFOQ2cUuqzOK/EjfeCMeAW8GMgANhqqGhLO9TOC7CiHDXCNw6emS4NlNZwrUbmoXrMKjen+w3MchMTJmnfyRaKl4GSg+MJzgpLd4QrVya4cv0gV67u4+YNjxjAz8710nPxTAHcAmseJtT5st5k/5xlfLJUcY5XgcMUuiCbCfam/ZPfO57qThhBucROF/Pq8FTt4OzRGm7l/ewl9bDGOUw9gLUAE7vU23iFt20K4mE6YqxGWb5dIV74DhPnfwOvtg8NV1j9qz/gzl98j/HxG1jfdLrvTtPrnWb6Quezod6osRe02NFXDji0WOHurWjBJfoKwjvA0laYbjCx3zvRualn8UT4vLHyO8eemRkeH22hrfWsfZ2IWYIQWU69k1XF2AyctimZ7rXJfLZnCNYhPvk7jH7td/F3TGMrVWz/TvoPPo0b3kPrrf9FdSDuVuhec2ITcOg9nv1xCf3DJe7ccXZ1JRkT4YfANTKV6zW1DSZmMvtyiljLmDoujs0MzeyZK6HrK1k9s05mHMP9deTOOtKMU7no0hrpFK9oVln/QRSZWKR27ruILfUk02Bw8SuUj7yMxtmorJf7+oLPt5KanpGN4ORaUVwnSlUDDj9Zxi/JnCrfBEa3MtAugP7zyUx70kmXJXU8VSrbLx84MSpltwoui4jVwVoLbtWRlTRAspaO3vSCYzuMaTfSM2CU8tQxvNrUxry0KsaWqO6fRzzJrsvB3ax0m+7mzc2eEUTsnXBM7/NFHc8Dn4fNuyDdDMqCMHGINUyKcnH33NDuiSnQoJm+lFaE3q7D3QYmTNKYpgiOZWPl243KG1lgwd8zb14s4HkdBrVL8b7SiSAfJtZ54kihlIQcPuJRrsqEKheA3VtaVHvJkujGUnGO8+V+7xf3P1nDS+oQxejyOnpzDVkPU+3Jetmm6HqNbHTjRXByYDwPShVYuwzr1zfpbgi4EJZ+Cn457Sl3hdS209Vvb8tGkDZLhaAQOaZGHHtnfFR5BvgFoNILUFukf/+z4AQcGGOYw/Gvpg/tWDgwb2FlDV1ah6yLYGxHZ43N3rKhowVdwJjOyW3tyBnhQ7icbu86A8bvNpFrfwxv/3va9mtMuu4S6M3MSbvBya235zxjHOV+j2tXXV8ca1WEHwD3oTOFxgL8l89mEp560H4cr1Zr/rePnugvVeoruKUGJnZtQEyh3cYUwLEfEhyvyAQP7v8/aFwBfxCSdVi/Bu/+V7j8b0GDFLgufdlEZ6QIjnQ0beshN3Aw0Kesrgt377oxEd4D3gJCSAHyMsvKA1VPhHkVvjkxLv0D9fu4MOr0m4p9Icl0pzfOyaledOdtMyiYg7Ed8RIDN/4Ebv1v8PshbkHUBOOl+5p9ZGeyCQuJgCRZhzYpECebO4TLhosK6PQCle0bcRx+wnLtqtQaDb0owv8F3gSSS4tgf/9UemKSgDUMKXynv1++Pj+tXoWkK6PXVbL2daJj2YI1WULHFJI6NtMT63W2vUp6TF36NvL9HMBinqNoVtLT+vYYgBa2C/ubWGNfRak3hTt3dUyEu8CPgBak1UZIg0JgQeDl3Tu1POC77vpsUjb2nAsa1ItkDlQbHL9TvFJWKuBXwa+k+365c8z6qWaZIrjZvY1XeF7h+e1YSLvjoWJxYFSZn1UG+qk4xysoh3J99uJsPpLvMSQ+XxuocmhyZJNRhM1ywe1uQ9HEZCPVig3Jdcf42e8Zu3KmFJVVFUw2BVjitPSKcpst2SwSkw075XVRSYeCiuzpjbkSGB0UntgHP3lHDoO+GIW8jbLieSWghfEqzOycrZ3f0xd4VUm/EunVww3sKaYUjPQIVK5BmZl0ve2cBaVsP3OF0vvWNdUYk4AzqfZ0mZWCzYZXjU01x5JpVtYlcXlltdv0Nmi2cvgJQ7Bzh7eyqs8vvXP/D4MGPzalqsGAHdhVmZk8vjA5Mj7UqUQxc7fBrNhIsVy5iyzKgSp6rRyctpmV0+KVUzNrl+x3m5tWdk3OOlMU/Dwgo1OHYnqkaGrFnFKhDJYchxb3svepM/uGdvcfJaTk2XSKrVcarIzW5k5XzdsRzt3ptFu7cWh3eYoxSC+jijGLsR2RNrn2lAola7zxCyG5dAbdXQTOBwnT7SLLcjO0+doVQMjMzWjKonyAspiQ62GSOBiplEj2P9N/+4139i39zc/KnksULOLCkNbqXS1XPCRLgqiAWskKqJcWl+dm/Dzk99KJQp7XiXjbwlrKGJMxxPpgShkzSh1mGB/E7wSCmmkPMSRhWlyURtf5fhxk21G2H6aTBpIo7UgnEcRJtp1AlM1KS7IJENlECs0+OJbYkTRWCVffF9XYsxWMF4cghjhab129+6PvX2kOV59MpCaND+q40BXkQToSY1IRFHFgsjEwE4FINlm8Q3HJGWE6IixIhwli0s8yuyhINvM1s4XsOw7ybzk0nQ6T76OF31x+rnZm0Ga/db5P08IMnHQKoPGEgdEqvgupX//TpebSrWumTOS5COKIOGrq5dV33//e+g3vvIuS/uiBE41TG0uTYr2yk3RF/RTX7T89XSzZdBOVjXSnxzN3aewm26qd3kDRytrTZLQTN6rLLK1wrhjFXwsp3fkgSRL3Zque/HUS0fLUQRAYV6q72xonf+x5yV8CZRySz8/pkfu2Dm6WuevNXyHdgG1Ah02OazY3KANH8vyv9oBZjGfozu3n1yjd1cyHr9v3LoAaNROiIImThOWgxS3niD0E+gYcF34wFv6343duWo/bGKTohPIG52zJBw56Y6QiZl3B7iYM2aL/2Gm3FhqkHceTn+B6WVQ8pzjBqodBrodZ+fVJfjz9uNElEc5Wsvr9j7PpBZ50Ivqs47opQF1evQBQV5ahaE4PT/lsuhRjuXx7U4BcNxhdZtYLUL5dMDGKx7J65v9fJdzmL4f+afnHuPwdBnbiCkZG8x8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTctMTEtMTJUMTE6NDU6NDErMDg6MDBcw5klAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDEwLTA0LTI2VDAwOjAwOjAwKzA4OjAwoFU7XQAAAE10RVh0c29mdHdhcmUASW1hZ2VNYWdpY2sgNy4wLjEtNiBRMTYgeDg2XzY0IDIwMTYtMDktMTcgaHR0cDovL3d3dy5pbWFnZW1hZ2ljay5vcmfd2aVOAAAAGHRFWHRUaHVtYjo6RG9jdW1lbnQ6OlBhZ2VzADGn/7svAAAAGHRFWHRUaHVtYjo6SW1hZ2U6OkhlaWdodAAxMjhDfEGAAAAAF3RFWHRUaHVtYjo6SW1hZ2U6OldpZHRoADEyONCNEd0AAAAZdEVYdFRodW1iOjpNaW1ldHlwZQBpbWFnZS9wbmc/slZOAAAAF3RFWHRUaHVtYjo6TVRpbWUAMTI3MjIxMTIwMAkpDe8AAAAQdEVYdFRodW1iOjpTaXplADEzS0LftR0XAAAAWXRFWHRUaHVtYjo6VVJJAGZpbGU6Ly8vaG9tZS93d3dyb290L3NpdGUvd3d3LmVhc3lpY29uLm5ldC9jZG4taW1nLmVhc3lpY29uLmNuL3NyYy8zNi8zNjQwLnBuZ5ztTdwAAAAASUVORK5CYII="},function(e,t,n){"use strict";var o=n(10),r=n.n(o),a=n(11),i=n(12),s=new r.a({en:a.a,zh:i.a});t.a=s},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function(){function e(t){o(this,e),this._interfaceLanguage=this._getInterfaceLanguage(),this._language=this._interfaceLanguage,this.setContent(t)}return r(e,[{key:"_getInterfaceLanguage",value:function(){var e=null;return"undefined"!==typeof navigator&&navigator.languages&&"undefined"!==typeof navigator.languages&&navigator.languages[0]&&"undefined"!==typeof navigator.languages[0]?e=navigator.languages[0]:"undefined"!==typeof navigator&&navigator.language&&"undefined"!==typeof navigator.language?e=navigator.language:"undefined"!==typeof navigator&&navigator.userLanguage&&"undefined"!==typeof navigator.userLanguage?e=navigator.userLanguage:"undefined"!==typeof navigator&&navigator.browserLanguage&&"undefined"!==typeof navigator.browserLanguage&&(e=navigator.browserLanguage),e||"en-US"}},{key:"_getBestMatchingLanguage",value:function(e,t){if(t[e])return e;var n=e.indexOf("-"),o=n>=0?e.substring(0,n):e;return t[o]?o:Object.keys(t)[0]}}]),r(e,[{key:"setContent",value:function(e){this._defaultLanguage=Object.keys(e)[0],this._defaultLanguageFirstLevelKeys=[],this._props=e,this._validateProps(e[this._defaultLanguage]);for(var t in this._props[this._defaultLanguage])"string"==typeof this._props[this._defaultLanguage][t]&&this._defaultLanguageFirstLevelKeys.push(t);this.setLanguage(this._interfaceLanguage)}},{key:"_validateProps",value:function(e){var t=this;Object.keys(e).map(function(e){if(t.hasOwnProperty(e))throw new Error(e+" cannot be used as a key. It is a reserved word.")})}},{key:"setLanguage",value:function(e){var t=this._getBestMatchingLanguage(e,this._props),n=Object.keys(this._props)[0];if(this._language=t,this._props[t]){var o=!0,r=!1,a=void 0;try{for(var i,s=this._defaultLanguageFirstLevelKeys[Symbol.iterator]();!(o=(i=s.next()).done);o=!0)f=i.value,delete this[f]}catch(e){r=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw a}}var u=Object.assign({},this._props[this._language]);for(var f in u)u.hasOwnProperty(f)&&(this[f]=u[f]);n!==this._language&&(u=this._props[n],this._fallbackValues(u,this))}}},{key:"_fallbackValues",value:function(e,t){for(var n in e)e.hasOwnProperty(n)&&!t[n]?(t[n]=e[n],console.log("\ud83d\udea7 \ud83d\udc77 key '"+n+"' not found in localizedStrings for language "+this._language+" \ud83d\udea7")):"string"!=typeof t[n]&&this._fallbackValues(e[n],t[n])}},{key:"getLanguage",value:function(){return this._language}},{key:"getInterfaceLanguage",value:function(){return this._interfaceLanguage}},{key:"getAvailableLanguages",value:function(){if(!this._availableLanguages){this._availableLanguages=[];for(var e in this._props)this._availableLanguages.push(e)}return this._availableLanguages}},{key:"formatString",value:function(e){for(var t=e,n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];for(var a=0;a<o.length;a++)t=this._replaceAll("{"+a+"}",o[a],t);return t}},{key:"getString",value:function(e,t){try{return this._props[t][e]}catch(n){console.log("No localization found for key "+e+" and language "+t)}return null}},{key:"_replaceAll",value:function(e,t,n){return e=e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),n.replace(new RegExp(e,"g"),t)}}]),e}();t.default=a},function(e,t,n){"use strict";var o={ok:"OK",cancel:"Cancel"};t.a=o},function(e,t,n){"use strict";var o={ok:"\u786e\u8ba4",cancel:"\u53d6\u6d88"};t.a=o}])});
22,661
22,661
0.789153
27ae8ba76b8138aedc8f1ab7cd1fb4768d56b1dd
1,523
js
JavaScript
config/docs/prepublish.js
odecee/generator-confit
ca31a528389099c89b25222ef1acea1385cc2ba5
[ "Apache-2.0" ]
37
2016-01-15T05:54:42.000Z
2017-09-07T08:50:54.000Z
config/docs/prepublish.js
odecee/generator-confit
ca31a528389099c89b25222ef1acea1385cc2ba5
[ "Apache-2.0" ]
104
2016-01-15T02:24:38.000Z
2017-09-04T01:55:27.000Z
config/docs/prepublish.js
Cognizant-CDE-Australia/generator-confit
ca31a528389099c89b25222ef1acea1385cc2ba5
[ "Apache-2.0" ]
7
2016-01-31T08:43:32.000Z
2017-08-02T15:01:11.000Z
'use strict'; // START_CONFIT_GENERATED_CONTENT const path = require('path'); const basePath = path.join(__dirname, '/../../'); const latestVersion = require('latest-version'); const fs = require('fs'); const pkgName = 'generator-confit'; const pkgRepo = 'generator-confit'; const IS_DRYRUN = process.argv.indexOf('-d') > -1; // Allow a dry-run to see what changes would be made let FILES_TO_PROCESS = [ // Update the swanky.config.yaml file's version number and server path { name: 'docs/swanky.config.yaml', searchRE: /^version:.*$/m, replacement: (version) => `version: ${version}` }, { name: 'docs/swanky.config.yaml', searchRE: /^serverPath:.*$/m, replacement: () => `serverPath: ${pkgRepo}` } ]; // In the next section you can modify FILES_TO_PROCESS to meet your needs... // END_CONFIT_GENERATED_CONTENT // START_CONFIT_GENERATED_CONTENT latestVersion(pkgName).then(version => { console.log(`Latest version of ${pkgName}: ${version}`); // Patch the files FILES_TO_PROCESS.forEach(file => { let fileName = path.join(basePath, file.name); let text = fs.readFileSync(fileName, 'utf8'); text = text.replace(file.searchRE, file.replacement(version)); if (IS_DRYRUN) { console.info(`Updated version in ${file.name}:`); console.info(text); console.info('---------------'); } else { fs.writeFileSync(fileName, text, 'utf8'); console.log(`Updated version in ${file.name}`); } }); }); // END_CONFIT_GENERATED_CONTENT
28.203704
106
0.657255
27aee7f0b1a231c75b4f508d581341bc8a21c701
3,079
js
JavaScript
src/models/TimeSeriesGraph.js
StukFi/opendata
30b789bf0b54e59edcd8a18f2c49474fd05965b1
[ "MIT" ]
1
2020-05-20T08:15:59.000Z
2020-05-20T08:15:59.000Z
src/models/TimeSeriesGraph.js
StukFi/opendata
30b789bf0b54e59edcd8a18f2c49474fd05965b1
[ "MIT" ]
1
2021-01-19T14:21:19.000Z
2021-01-19T14:41:41.000Z
src/models/TimeSeriesGraph.js
StukFi/opendata
30b789bf0b54e59edcd8a18f2c49474fd05965b1
[ "MIT" ]
3
2019-03-14T08:30:22.000Z
2022-02-28T13:59:47.000Z
import api from "@/api" import dateUtils from "@/utils/date" import { wait } from "@/utils/promise" import store from "@/store/index" /** Class representing time series data for a single date. */ class Dataset { constructor (date, dataPoints) { this.date = date this.dataPoints = dataPoints } } /** Class representing a time series graph. */ class TimeSeriesGraph { /** * Create a time series graph. * @param {String} siteId */ constructor (siteId) { this.siteId = siteId this.dataPoints = [] this.datasets = [] this.startDate = undefined this.endDate = undefined this.onUpdate = () => {} this.isLoading = false } /** * Load time series data for a given timespan. * @param {Date} startDate * @param {Date} endDate */ loadTimespan (startDate, endDate) { this.startDate = startDate this.endDate = endDate if (this.startDate && this.endDate && this.siteId) { this.update() } } /** Update state to match the configured timespan. */ async update () { let datesToLoad = dateUtils.getDatesBetween(this.startDate, this.endDate) datesToLoad = datesToLoad.filter(date => { const isLoaded = this.datasets.some(dataset => dataset.date.getTime() == date.getTime()) const isAvailable = store.state.datetime.availableDatasets.some( element => element.date.getTime() == date.getTime()) return !isLoaded && isAvailable }) if (datesToLoad.length > 0) { this.isLoading = true await Promise.allSettled(datesToLoad.map(async date => { let dataPoints = undefined try { dataPoints = await api.doseRate.getTimeSeries(this.siteId, date) } finally { this.datasets.push(new Dataset(date, dataPoints)) } })) // Always wait a minimum amount of time. This prevents loading indicators // from flashing if loading finishes quickly. await wait(250) this.datasets.sort((a, b) => a.date < b.date ? -1 : 1) this.generateDataPoints() this.isLoading = false } this.onUpdate() } /** * Transform dataset data points into a single set of data points that Plotly.js can use. */ generateDataPoints () { let dates = [] let values = [] for (var i = 0; i < this.datasets.length; ++i) { if (this.datasets[i].dataPoints) { for (var j = 0; j < this.datasets[i].dataPoints.length; ++j) { const currentDataPoint = this.datasets[i].dataPoints[j] dates.push(new Date(currentDataPoint.e).toISOString()) values.push(currentDataPoint.r) } } } this.dataPoints = [{ x: dates, y: values }] } } export default TimeSeriesGraph
31.10101
100
0.554726