code
stringlengths
2
1.05M
repo_name
stringlengths
5
114
path
stringlengths
4
991
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
/** * Bootstrap * (sails.config.bootstrap) * * An asynchronous bootstrap function that runs before your Sails app gets lifted. * This gives you an opportunity to set up your data model, run jobs, or perform some special logic. * * For more information on bootstrapping your app, check out: * http://sailsjs.org/#!/documentation/reference/sails.config/sails.config.bootstrap.html */ module.exports.bootstrap = function(cb) { // It's very important to trigger this callback method when you are finished // with the bootstrap! (otherwise your server will never lift, since it's waiting on the bootstrap) sails.services.passport.loadStrategies(); // CRON JOBS FOR INFLUENCERS, HASHTAGS, MENTIONS // Runs every 15 minutes const TIMEZONE = 'America/Los_Angeles'; var CronJob = require('cron').CronJob; var cronJobs = Object.keys(sails.config.cron); cronJobs.forEach(function(key) { var value = sails.config.cron[key]; new CronJob(key, value, null, true, TIMEZONE); }) sails.config.twitterstream(); // new CronJob('00 * * * * *', function() { // console.log(new Date(), 'You will see this message every minute.'); // }, null, true, TIMEZONE); cb(); };
piket/twitter-mafia
config/bootstrap.js
JavaScript
mit
1,211
const latestIncome = require('./latestIncome') const latestSpending = require('./latestSpending') function aggFinances(search) { return { latestIncome: () => latestIncome(search), latestSpending: () => latestSpending(search), } } module.exports = aggFinances
tithebarn/charity-base
graphql/resolvers/query/CHC/getCharities/aggregate/finances/index.js
JavaScript
mit
273
define(function(require, exports, module) { var Notify = require('common/bootstrap-notify'); var FileChooser = require('../widget/file/file-chooser3'); exports.run = function() { var $form = $("#course-material-form"); var materialChooser = new FileChooser({ element: '#material-file-chooser' }); materialChooser.on('change', function(item) { $form.find('[name="fileId"]').val(item.id); }); $form.on('click', '.delete-btn', function(){ var $btn = $(this); if (!confirm(Translator.trans('真的要删除该资料吗?'))) { return ; } $.post($btn.data('url'), function(){ $btn.parents('.list-group-item').remove(); Notify.success(Translator.trans('资料已删除')); }); }); $form.on('submit', function(){ if ($form.find('[name="fileId"]').val().length == 0) { Notify.danger(Translator.trans('请先上传文件或添加资料网络链接!')); return false; } $.post($form.attr('action'), $form.serialize(), function(html){ Notify.success(Translator.trans('资料添加成功!')); $("#material-list").append(html).show(); $form.find('.text-warning').hide(); $form.find('[name="fileId"]').val(''); $form.find('[name="link"]').val(''); $form.find('[name="description"]').val(''); materialChooser.open(); }).fail(function(){ Notify.success(Translator.trans('资料添加失败,请重试!')); }); return false; }); $('.modal').on('hidden.bs.modal', function(){ window.location.reload(); }); }; });
richtermark/SMEAGOnline
web/bundles/topxiaweb/js/controller/course-manage/material-modal.js
JavaScript
mit
1,892
module.exports={A:{A:{"2":"H D G E A B FB"},B:{"1":"p z J L N I","2":"C"},C:{"1":"0 2 3 5 6 8 9 P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB AB","2":"4 aB F K H D G E A B C p z J L N I O YB SB"},D:{"1":"0 2 3 5 6 8 9 z J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y CB AB MB cB GB b HB IB JB KB","2":"F K H D G E A B C p"},E:{"1":"1 B C RB TB","2":"F K H D G E A LB DB NB OB PB QB"},F:{"1":"2 J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y","2":"1 E B C UB VB WB XB BB ZB EB"},G:{"2":"7 G C DB bB dB eB fB gB hB iB jB kB lB mB"},H:{"2":"nB"},I:{"1":"b sB tB","2":"4 7 F oB pB qB rB"},J:{"1":"A","2":"D"},K:{"1":"M","2":"1 A B C BB EB"},L:{"1":"b"},M:{"1":"0"},N:{"2":"A B"},O:{"1":"uB"},P:{"1":"F K vB wB"},Q:{"1":"xB"},R:{"1":"yB"}},B:1,C:"Download attribute"};
stephaniejn/stephaniejn.github.io
node_modules/caniuse-lite/data/features/download.js
JavaScript
mit
857
'use strict'; const EventEmitter = require('events'); const uuid = require('node-uuid'); const ItemType = require('./ItemType'); const { Inventory, InventoryFullError } = require('./Inventory'); const Logger = require('./Logger'); const Player = require('./Player'); /** * @property {Area} area Area the item belongs to (warning: this is not the area is currently in but the * area it belongs to on a fresh load) * @property {object} properties Essentially a blob of whatever attrs the item designer wanted to add * @property {array|string} behaviors Single or list of behaviors this object uses * @property {string} description Long description seen when looking at it * @property {number} id vnum * @property {boolean} isEquipped Whether or not item is currently equipped * @property {Map} inventory Current items this item contains * @property {string} name Name shown in inventory and when equipped * @property {Room} room Room the item is currently in * @property {string} roomDesc Description shown when item is seen in a room * @property {string} script A custom script for this item * @property {ItemType|string} type * @property {string} uuid UUID differentiating all instances of this item */ class Item extends EventEmitter { constructor (area, item) { super(); const validate = ['keywords', 'name', 'id']; for (const prop of validate) { if (!(prop in item)) { throw new ReferenceError(`Item in area [${area.name}] missing required property [${prop}]`); } } this.area = area; this.properties = item.properties || {}; this.behaviors = item.behaviors || {}; this.defaultItems = item.items || []; this.description = item.description || 'Nothing special.'; this.entityReference = item.entityReference; // EntityFactory key this.id = item.id; this.maxItems = item.maxItems || Infinity; this.inventory = item.inventory ? new Inventory(item.inventory) : null; if (this.inventory) { this.inventory.setMax(this.maxItems); } this.isEquipped = item.isEquipped || false; this.keywords = item.keywords; this.level = item.level || 1; this.itemLevel = item.itemLevel || this.level; this.name = item.name; this.quality = item.quality || 'common'; this.room = item.room || null; this.roomDesc = item.roomDesc || ''; this.script = item.script || null; this.slot = item.slot || null; this.type = typeof item.type === 'string' ? ItemType[item.type] : (item.type || ItemType.OBJECT); this.uuid = item.uuid || uuid.v4(); } hasKeyword(keyword) { return this.keywords.indexOf(keyword) !== -1; } /** * @param {string} name * @return {boolean} */ hasBehavior(name) { if (!(this.behaviors instanceof Map)) { throw new Error("Item has not been hydrated. Cannot access behaviors."); } return this.behaviors.has(name); } /** * @param {string} name * @return {*} */ getBehavior(name) { if (!(this.behaviors instanceof Map)) { throw new Error("Item has not been hydrated. Cannot access behaviors."); } return this.behaviors.get(name); } addItem(item) { this._setupInventory(); this.inventory.addItem(item); item.belongsTo = this; } removeItem(item) { this.inventory.removeItem(item); // if we removed the last item unset the inventory // This ensures that when it's reloaded it won't try to set // its default inventory. Instead it will persist the fact // that all the items were removed from it if (!this.inventory.size) { this.inventory = null; } item.belongsTo = null; } isInventoryFull() { this._setupInventory(); return this.inventory.isFull; } _setupInventory() { if (!this.inventory) { this.inventory = new Inventory({ items: [], max: this.maxItems }); } } get qualityColors() { return ({ poor: ['bold', 'black'], common: ['bold', 'white'], uncommon: ['bold', 'green'], rare: ['bold', 'blue'], epic: ['bold', 'magenta'], legendary: ['bold', 'red'], artifact: ['yellow'], })[this.quality]; } /** * Friendly display colorized by quality */ get display() { return this.qualityColorize(`[${this.name}]`); } /** * Colorize the given string according to this item's quality * @param {string} string * @return string */ qualityColorize(string) { const colors = this.qualityColors; const open = '<' + colors.join('><') + '>'; const close = '</' + colors.reverse().join('></') + '>'; return open + string + close; } /** * For finding the player who has the item in their possession. * @return {Player|null} owner */ findOwner() { let found = null; let owner = this.belongsTo; while (owner) { if (owner instanceof Player) { found = owner; break; } owner = owner.belongsTo; } return found; } hydrate(state, serialized = {}) { if (typeof this.area === 'string') { this.area = state.AreaManager.getArea(this.area); } // if the item was saved with a custom inventory hydrate it if (this.inventory) { this.inventory.hydrate(state); } else { // otherwise load its default inv this.defaultItems.forEach(defaultItemId => { Logger.verbose(`\tDIST: Adding item [${defaultItemId}] to item [${this.name}]`); const newItem = state.ItemFactory.create(this.area, defaultItemId); newItem.hydrate(state); state.ItemManager.add(newItem); this.addItem(newItem); }); } // perform deep copy if behaviors is set to prevent sharing of the object between // item instances const behaviors = JSON.parse(JSON.stringify(serialized.behaviors || this.behaviors)); this.behaviors = new Map(Object.entries(behaviors)); for (let [behaviorName, config] of this.behaviors) { let behavior = state.ItemBehaviorManager.get(behaviorName); if (!behavior) { return; } // behavior may be a boolean in which case it will be `behaviorName: true` config = config === true ? {} : config; behavior.attach(this, config); } } serialize() { let behaviors = {}; for (const [key, val] of this.behaviors) { behaviors[key] = val; } return { entityReference: this.entityReference, inventory: this.inventory && this.inventory.serialize(), // behaviors are serialized in case their config was modified during gameplay // and that state needs to persist (charges of a scroll remaining, etc) behaviors, }; } } module.exports = Item;
CodeOtter/tech-career
src/Item.js
JavaScript
mit
6,892
var JobsList = React.createClass({displayName: "JobsList", render: function() { return ( React.createElement(JobItem, {title: "Trabalho Python", desc: "Descricao aqui"}) ); } }); var JobItem = React.createClass({displayName: "JobItem", render: function() { React.createElement("div", {className: "panel panel-default"}, React.createElement("div", {className: "panel-heading"}, this.params.job.title), React.createElement("div", {className: "panel-body"}, this.params.job.desc ) ) } })
raonyguimaraes/pyjobs
pyjobs/web/static/js/.module-cache/4ae00001aee8e40f0fb90fff1d2d3b85d7f734e2.js
JavaScript
mit
600
/* * @package jsDAV * @subpackage CardDAV * @copyright Copyright(c) 2013 Mike de Boer. <info AT mikedeboer DOT nl> * @author Mike de Boer <info AT mikedeboer DOT nl> * @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License */ "use strict"; var jsDAV_Plugin = require("./../DAV/plugin"); var jsDAV_Property_Href = require("./../DAV/property/href"); var jsDAV_Property_HrefList = require("./../DAV/property/hrefList"); var jsDAV_Property_iHref = require("./../DAV/interfaces/iHref"); var jsCardDAV_iAddressBook = require("./interfaces/iAddressBook"); var jsCardDAV_iCard = require("./interfaces/iCard"); var jsCardDAV_iDirectory = require("./interfaces/iDirectory"); var jsCardDAV_UserAddressBooks = require("./userAddressBooks"); var jsCardDAV_AddressBookQueryParser = require("./addressBookQueryParser"); var jsDAVACL_iPrincipal = require("./../DAVACL/interfaces/iPrincipal"); var jsVObject_Reader = require("./../VObject/reader"); var AsyncEventEmitter = require("./../shared/asyncEvents").EventEmitter; var Exc = require("./../shared/exceptions"); var Util = require("./../shared/util"); var Xml = require("./../shared/xml"); var Async = require("asyncjs"); /** * CardDAV plugin * * The CardDAV plugin adds CardDAV functionality to the WebDAV server */ var jsCardDAV_Plugin = module.exports = jsDAV_Plugin.extend({ /** * Plugin name * * @var String */ name: "carddav", /** * Url to the addressbooks */ ADDRESSBOOK_ROOT: "addressbooks", /** * xml namespace for CardDAV elements */ NS_CARDDAV: "urn:ietf:params:xml:ns:carddav", /** * Add urls to this property to have them automatically exposed as * 'directories' to the user. * * @var array */ directories: null, /** * Handler class * * @var jsDAV_Handler */ handler: null, /** * Initializes the plugin * * @param DAV\Server server * @return void */ initialize: function(handler) { this.directories = []; // Events handler.addEventListener("beforeGetProperties", this.beforeGetProperties.bind(this)); handler.addEventListener("afterGetProperties", this.afterGetProperties.bind(this)); handler.addEventListener("updateProperties", this.updateProperties.bind(this)); handler.addEventListener("report", this.report.bind(this)); handler.addEventListener("onHTMLActionsPanel", this.htmlActionsPanel.bind(this), AsyncEventEmitter.PRIO_HIGH); handler.addEventListener("onBrowserPostAction", this.browserPostAction.bind(this), AsyncEventEmitter.PRIO_HIGH); handler.addEventListener("beforeWriteContent", this.beforeWriteContent.bind(this)); handler.addEventListener("beforeCreateFile", this.beforeCreateFile.bind(this)); // Namespaces Xml.xmlNamespaces[this.NS_CARDDAV] = "card"; // Mapping Interfaces to {DAV:}resourcetype values handler.resourceTypeMapping["{" + this.NS_CARDDAV + "}addressbook"] = jsCardDAV_iAddressBook; handler.resourceTypeMapping["{" + this.NS_CARDDAV + "}directory"] = jsCardDAV_iDirectory; // Adding properties that may never be changed handler.protectedProperties.push( "{" + this.NS_CARDDAV + "}supported-address-data", "{" + this.NS_CARDDAV + "}max-resource-size", "{" + this.NS_CARDDAV + "}addressbook-home-set", "{" + this.NS_CARDDAV + "}supported-collation-set" ); handler.protectedProperties = Util.makeUnique(handler.protectedProperties); handler.propertyMap["{http://calendarserver.org/ns/}me-card"] = jsDAV_Property_Href; this.handler = handler; }, /** * Returns a list of supported features. * * This is used in the DAV: header in the OPTIONS and PROPFIND requests. * * @return array */ getFeatures: function() { return ["addressbook"]; }, /** * Returns a list of reports this plugin supports. * * This will be used in the {DAV:}supported-report-set property. * Note that you still need to subscribe to the 'report' event to actually * implement them * * @param {String} uri * @return array */ getSupportedReportSet: function(uri, callback) { var self = this; this.handler.getNodeForPath(uri, function(err, node) { if (err) return callback(err); if (node.hasFeature(jsCardDAV_iAddressBook) || node.hasFeature(jsCardDAV_iCard)) { return callback(null, [ "{" + self.NS_CARDDAV + "}addressbook-multiget", "{" + self.NS_CARDDAV + "}addressbook-query" ]); } return callback(null, []); }); }, /** * Adds all CardDAV-specific properties * * @param {String} path * @param DAV\INode node * @param {Array} requestedProperties * @param {Array} returnedProperties * @return void */ beforeGetProperties: function(e, path, node, requestedProperties, returnedProperties) { var self = this; if (node.hasFeature(jsDAVACL_iPrincipal)) { // calendar-home-set property var addHome = "{" + this.NS_CARDDAV + "}addressbook-home-set"; if (requestedProperties[addHome]) { var principalId = node.getName(); var addressbookHomePath = this.ADDRESSBOOK_ROOT + "/" + principalId + "/"; delete requestedProperties[addHome]; returnedProperties["200"][addHome] = jsDAV_Property_Href.new(addressbookHomePath); } var directories = "{" + this.NS_CARDDAV + "}directory-gateway"; if (this.directories && requestedProperties[directories]) { delete requestedProperties[directories]; returnedProperties["200"][directories] = jsDAV_Property_HrefList.new(this.directories); } } if (node.hasFeature(jsCardDAV_iCard)) { // The address-data property is not supposed to be a 'real' // property, but in large chunks of the spec it does act as such. // Therefore we simply expose it as a property. var addressDataProp = "{" + this.NS_CARDDAV + "}address-data"; if (requestedProperties[addressDataProp]) { delete requestedProperties[addressDataProp]; node.get(function(err, val) { if (err) return e.next(err); returnedProperties["200"][addressDataProp] = val.toString("utf8"); afterICard(); }); } else afterICard(); } else afterICard(); function afterICard() { if (node.hasFeature(jsCardDAV_UserAddressBooks)) { var meCardProp = "{http://calendarserver.org/ns/}me-card"; if (requestedProperties[meCardProp]) { self.handler.getProperties(node.getOwner(), ["{http://ajax.org/2005/aml}vcard-url"], function(err, props) { if (err) return e.next(err); if (props["{http://ajax.org/2005/aml}vcard-url"]) { returnedProperties["200"][meCardProp] = jsDAV_Property_Href.new( props["{http://ajax.org/2005/aml}vcard-url"] ); delete requestedProperties[meCardProp]; } e.next(); }); } else e.next(); } else e.next(); } }, /** * This event is triggered when a PROPPATCH method is executed * * @param {Array} mutations * @param {Array} result * @param DAV\INode node * @return bool */ updateProperties: function(e, mutations, result, node) { if (!node.hasFeature(jsCardDAV_UserAddressBooks)) return e.next(); var meCard = "{http://calendarserver.org/ns/}me-card"; // The only property we care about if (!mutations[meCard]) return e.next(); var value = mutations[meCard]; delete mutations[meCard]; if (value.hasFeature(jsDAV_Property_iHref)) { value = this.handler.calculateUri(value.getHref()); } else if (!value) { result["400"][meCard] = null; return e.stop(); } this.server.updateProperties(node.getOwner(), {"{http://ajax.org/2005/aml}vcard-url": value}, function(err, innerResult) { if (err) return e.next(err); var closureResult = false; var props; for (var status in innerResult) { props = innerResult[status]; if (props["{http://ajax.org/2005/aml}vcard-url"]) { result[status][meCard] = null; status = parseInt(status); closureResult = (status >= 200 && status < 300); } } if (!closureResult) return e.stop(); e.next(); }); }, /** * This functions handles REPORT requests specific to CardDAV * * @param {String} reportName * @param DOMNode dom * @return bool */ report: function(e, reportName, dom) { switch(reportName) { case "{" + this.NS_CARDDAV + "}addressbook-multiget" : this.addressbookMultiGetReport(e, dom); break; case "{" + this.NS_CARDDAV + "}addressbook-query" : this.addressBookQueryReport(e, dom); break; default : return e.next(); } }, /** * This function handles the addressbook-multiget REPORT. * * This report is used by the client to fetch the content of a series * of urls. Effectively avoiding a lot of redundant requests. * * @param DOMNode dom * @return void */ addressbookMultiGetReport: function(e, dom) { var properties = Object.keys(Xml.parseProperties(dom)); var hrefElems = dom.getElementsByTagNameNS("urn:DAV", "href"); var propertyList = {}; var self = this; Async.list(hrefElems) .each(function(elem, next) { var uri = self.handler.calculateUri(elem.firstChild.nodeValue); //propertyList[uri] self.handler.getPropertiesForPath(uri, properties, 0, function(err, props) { if (err) return next(err); Util.extend(propertyList, props); next(); }); }) .end(function(err) { if (err) return e.next(err); var prefer = self.handler.getHTTPPrefer(); e.stop(); self.handler.httpResponse.writeHead(207, { "content-type": "application/xml; charset=utf-8", "vary": "Brief,Prefer" }); self.handler.httpResponse.end(self.handler.generateMultiStatus(propertyList, prefer["return-minimal"])); }); }, /** * This method is triggered before a file gets updated with new content. * * This plugin uses this method to ensure that Card nodes receive valid * vcard data. * * @param {String} path * @param jsDAV_iFile node * @param resource data * @return void */ beforeWriteContent: function(e, path, node) { if (!node.hasFeature(jsCardDAV_iCard)) return e.next(); var self = this; this.handler.getRequestBody("utf8", null, false, function(err, data) { if (err) return e.next(err); try { self.validateVCard(data); } catch (ex) { return e.next(ex); } e.next(); }); }, /** * This method is triggered before a new file is created. * * This plugin uses this method to ensure that Card nodes receive valid * vcard data. * * @param {String} path * @param resource data * @param jsDAV_iCollection parentNode * @return void */ beforeCreateFile: function(e, path, data, enc, parentNode) { if (!parentNode.hasFeature(jsCardDAV_iAddressBook)) return e.next(); try { this.validateVCard(data); } catch (ex) { return e.next(ex); } e.next(); }, /** * Checks if the submitted iCalendar data is in fact, valid. * * An exception is thrown if it's not. * * @param resource|string data * @return void */ validateVCard: function(data) { // If it's a stream, we convert it to a string first. if (Buffer.isBuffer(data)) data = data.toString("utf8"); var vobj; try { vobj = jsVObject_Reader.read(data); } catch (ex) { throw new Exc.UnsupportedMediaType("This resource only supports valid vcard data. Parse error: " + ex.message); } if (vobj.name != "VCARD") throw new Exc.UnsupportedMediaType("This collection can only support vcard objects."); if (!vobj.UID) throw new Exc.BadRequest("Every vcard must have a UID."); }, /** * This function handles the addressbook-query REPORT * * This report is used by the client to filter an addressbook based on a * complex query. * * @param DOMNode dom * @return void */ addressbookQueryReport: function(e, dom) { var query = jsCardDAV_AddressBookQueryParser.new(dom); try { query.parse(); } catch(ex) { return e.next(ex); } var depth = this.handler.getHTTPDepth(0); if (depth === 0) { this.handler.getNodeForPath(this.handler.getRequestUri(), function(err, node) { if (err) return e.next(err); afterCandidates([node]); }) } else { this.handler.server.tree.getChildren(this.handler.getRequestUri(), function(err, children) { if (err) return e.next(err); afterCandidates(children); }); } var self = this; function afterCandidates(candidateNodes) { var validNodes = []; Async.list(candidateNodes) .each(function(node, next) { if (!node.hasFeature(jsCardDAV_iCard)) return next(); node.get(function(err, blob) { if (err) return next(err); if (!self.validateFilters(blob.toString("utf8"), query.filters, query.test)) return next(); validNodes.push(node); if (query.limit && query.limit <= validNodes.length) { // We hit the maximum number of items, we can stop now. return next(Async.STOP); } next(); }); }) .end(function(err) { if (err) return e.next(err); var result = {}; Async.list(validNodes) .each(function(validNode, next) { var href = self.handler.getRequestUri(); if (depth !== 0) href = href + "/" + validNode.getName(); self.handler.getPropertiesForPath(href, query.requestedProperties, 0, function(err, props) { if (err) return next(err); Util.extend(result, props); next(); }); }) .end(function(err) { if (err) return e.next(err); e.stop(); var prefer = self.handler.getHTTPPRefer(); self.handler.httpResponse.writeHead(207, { "content-type": "application/xml; charset=utf-8", "vary": "Brief,Prefer" }); self.handler.httpResponse.end(self.handler.generateMultiStatus(result, prefer["return-minimal"])); }); }); } }, /** * Validates if a vcard makes it throught a list of filters. * * @param {String} vcardData * @param {Array} filters * @param {String} test anyof or allof (which means OR or AND) * @return bool */ validateFilters: function(vcardData, filters, test) { var vcard; try { vcard = jsVObject_Reader.read(vcardData); } catch (ex) { return false; } if (!filters) return true; var filter, isDefined, success, vProperties, results, texts; for (var i = 0, l = filters.length; i < l; ++i) { filter = filters[i]; isDefined = vcard.get(filter.name); if (filter["is-not-defined"]) { if (isDefined) success = false; else success = true; } else if ((!filter["param-filters"] && !filter["text-matches"]) || !isDefined) { // We only need to check for existence success = isDefined; } else { vProperties = vcard.select(filter.name); results = []; if (filter["param-filters"]) results.push(this.validateParamFilters(vProperties, filter["param-filters"], filter.test)); if (filter["text-matches"]) { texts = vProperties.map(function(vProperty) { return vProperty.value; }); results.push(this.validateTextMatches(texts, filter["text-matches"], filter.test)); } if (results.length === 1) { success = results[0]; } else { if (filter.test == "anyof") success = results[0] || results[1]; else success = results[0] && results[1]; } } // else // There are two conditions where we can already determine whether // or not this filter succeeds. if (test == "anyof" && success) return true; if (test == "allof" && !success) return false; } // foreach // If we got all the way here, it means we haven't been able to // determine early if the test failed or not. // // This implies for 'anyof' that the test failed, and for 'allof' that // we succeeded. Sounds weird, but makes sense. return test === "allof"; }, /** * Validates if a param-filter can be applied to a specific property. * * @todo currently we're only validating the first parameter of the passed * property. Any subsequence parameters with the same name are * ignored. * @param {Array} vProperties * @param {Array} filters * @param {String} test * @return bool */ validateParamFilters: function(vProperties, filters, test) { var filter, isDefined, success, j, l2, vProperty; for (var i = 0, l = filters.length; i < l; ++i) { filter = filters[i]; isDefined = false; for (j = 0, l2 = vProperties.length; j < l2; ++j) { vProperty = vProperties[j]; isDefined = !!vProperty.get(filter.name); if (isDefined) break; } if (filter["is-not-defined"]) { success = !isDefined; // If there's no text-match, we can just check for existence } else if (!filter["text-match"] || !isDefined) { success = isDefined; } else { success = false; for (j = 0, l2 = vProperties.length; j < l2; ++j) { vProperty = vProperties[j]; // If we got all the way here, we'll need to validate the // text-match filter. success = Util.textMatch(vProperty.get(filter.name).value, filter["text-match"].value, filter["text-match"]["match-type"]); if (success) break; } if (filter["text-match"]["negate-condition"]) success = !success; } // else // There are two conditions where we can already determine whether // or not this filter succeeds. if (test == "anyof" && success) return true; if (test == "allof" && !success) return false; } // If we got all the way here, it means we haven't been able to // determine early if the test failed or not. // // This implies for 'anyof' that the test failed, and for 'allof' that // we succeeded. Sounds weird, but makes sense. return test == "allof"; }, /** * Validates if a text-filter can be applied to a specific property. * * @param {Array} texts * @param {Array} filters * @param {String} test * @return bool */ validateTextMatches: function(texts, filters, test) { var success, filter, j, l2, haystack; for (var i = 0, l = filters.length; i < l; ++i) { filter = filters[i]; success = false; for (j = 0, l2 = texts.length; j < l2; ++j) { haystack = texts[j]; success = Util.textMatch(haystack, filter.value, filter["match-type"]); // Breaking on the first match if (success) break; } if (filter["negate-condition"]) success = !success; if (success && test == "anyof") return true; if (!success && test == "allof") return false; } // If we got all the way here, it means we haven't been able to // determine early if the test failed or not. // // This implies for 'anyof' that the test failed, and for 'allof' that // we succeeded. Sounds weird, but makes sense. return test == "allof"; }, /** * This event is triggered after webdav-properties have been retrieved. * * @return bool */ afterGetProperties: function(e, uri, properties) { // If the request was made using the SOGO connector, we must rewrite // the content-type property. By default jsDAV will send back // text/x-vcard; charset=utf-8, but for SOGO we must strip that last // part. if (!properties["200"]["{DAV:}getcontenttype"]) return e.next(); if (this.handler.httpRequest.headers["user-agent"].indexOf("Thunderbird") === -1) return e.next(); if (properties["200"]["{DAV:}getcontenttype"].indexOf("text/x-vcard") === 0) properties["200"]["{DAV:}getcontenttype"] = "text/x-vcard"; e.next(); }, /** * This method is used to generate HTML output for the * Sabre\DAV\Browser\Plugin. This allows us to generate an interface users * can use to create new calendars. * * @param DAV\INode node * @param {String} output * @return bool */ htmlActionsPanel: function(e, node, output) { if (!node.hasFeature(jsCardDAV_UserAddressBooks)) return e.next(); output.html = '<tr><td colspan="2"><form method="post" action="">' + '<h3>Create new address book</h3>' + '<input type="hidden" name="jsdavAction" value="mkaddressbook" />' + '<label>Name (uri):</label> <input type="text" name="name" /><br />' + '<label>Display name:</label> <input type="text" name="{DAV:}displayname" /><br />' + '<input type="submit" value="create" />' + '</form>' + '</td></tr>'; e.stop(); }, /** * This method allows us to intercept the 'mkcalendar' sabreAction. This * action enables the user to create new calendars from the browser plugin. * * @param {String} uri * @param {String} action * @param {Array} postVars * @return bool */ browserPostAction: function(e, uri, action, postVars) { if (action != "mkaddressbook") return e.next(); var resourceType = ["{DAV:}collection", "{urn:ietf:params:xml:ns:carddav}addressbook"]; var properties = {}; if (postVars["{DAV:}displayname"]) properties["{DAV:}displayname"] = postVars["{DAV:}displayname"]; this.handler.createCollection(uri + "/" + postVars.name, resourceType, properties, function(err) { if (err) return e.next(err); e.stop(); }); } });
pascience/cloxp-install
win/life_star/node_modules/lively-davfs/node_modules/jsDAV/lib/CardDAV/plugin.js
JavaScript
mit
26,510
'@fixture click'; '@page http://example.com'; '@test'['Take a screenshot'] = { '1.Click on non-existing element': function () { act.screenshot(); }, }; '@test'['Screenshot on test code error'] = { '1.Click on non-existing element': function () { throw new Error('STOP'); }, };
VasilyStrelyaev/testcafe
test/functional/legacy-fixtures/screenshots/testcafe-fixtures/screenshots.test.js
JavaScript
mit
312
game.LoadProfile = me.ScreenObject.extend({ /** * action to perform on state change */ onResetEvent: function() { me.game.world.addChild(new me.Sprite(0, 0, me.loader.getImage('load-screen')), -10); //puts load screen in when game starts document.getElementById("input").style.visibility = "visible"; document.getElementById("load").style.visibility = "visible"; me.input.unbindKey(me.input.KEY.B); me.input.unbindKey(me.input.KEY.I); me.input.unbindKey(me.input.KEY.O); me.input.unbindKey(me.input.KEY.P); me.input.unbindKey(me.input.KEY.SPACE); //unbinds keys var exp1cost = ((game.data.exp1 + 1) * 10); var exp2cost = ((game.data.exp2 + 1) * 10); var exp3cost = ((game.data.exp3 + 1) * 10); var exp4cost = ((game.data.exp4 + 1) * 10); me.game.world.addChild(new (me.Renderable.extend({ init: function() { this._super(me.Renderable, 'init', [10, 10, 300, 50]); this.font = new me.Font("Arial", 26, "white"); }, draw: function(renderer) { this.font.draw(renderer.getContext(), "Enter Username & Password", this.pos.x, this.pos.y); } }))); }, /** * action to perform when leaving this screen (state change) */ onDestroyEvent: function() { document.getElementById("input").style.visibility = "hidden"; document.getElementById("load").style.visibility = "hidden"; } });
MrLarrimore/MiguelRicardo
js/screens/loadProfile.js
JavaScript
mit
1,578
/* --- MooTools: the javascript framework web build: - http://mootools.net/core/8423c12ffd6a6bfcde9ea22554aec795 packager build: - packager build Core/Core Core/Array Core/String Core/Number Core/Function Core/Object Core/Event Core/Browser Core/Class Core/Class.Extras Core/Slick.Parser Core/Slick.Finder Core/Element Core/Element.Style Core/Element.Event Core/Element.Delegation Core/Element.Dimensions Core/Fx Core/Fx.CSS Core/Fx.Tween Core/Fx.Morph Core/Fx.Transitions Core/Request Core/Request.HTML Core/Request.JSON Core/Cookie Core/JSON Core/DOMReady ... */ /* --- name: Core description: The heart of MooTools. license: MIT-style license. copyright: Copyright (c) 2006-2012 [Valerio Proietti](http://mad4milk.net/). authors: The MooTools production team (http://mootools.net/developers/) inspiration: - Class implementation inspired by [Base.js](http://dean.edwards.name/weblog/2006/03/base/) Copyright (c) 2006 Dean Edwards, [GNU Lesser General Public License](http://opensource.org/licenses/lgpl-license.php) - Some functionality inspired by [Prototype.js](http://prototypejs.org) Copyright (c) 2005-2007 Sam Stephenson, [MIT License](http://opensource.org/licenses/mit-license.php) provides: [Core, MooTools, Type, typeOf, instanceOf, Native] ... */ (function(){ this.MooTools = { version: '1.4.5', build: 'ab8ea8824dc3b24b6666867a2c4ed58ebb762cf0' }; // typeOf, instanceOf var typeOf = this.typeOf = function(item){ if (item == null) return 'null'; if (item.$family != null) return item.$family(); if (item.nodeName){ if (item.nodeType == 1) return 'element'; if (item.nodeType == 3) return (/\S/).test(item.nodeValue) ? 'textnode' : 'whitespace'; } else if (typeof item.length == 'number'){ if (item.callee) return 'arguments'; if ('item' in item) return 'collection'; } return typeof item; }; var instanceOf = this.instanceOf = function(item, object){ if (item == null) return false; var constructor = item.$constructor || item.constructor; while (constructor){ if (constructor === object) return true; constructor = constructor.parent; } /*<ltIE8>*/ if (!item.hasOwnProperty) return false; /*</ltIE8>*/ return item instanceof object; }; // Function overloading var Function = this.Function; var enumerables = true; for (var i in {toString: 1}) enumerables = null; if (enumerables) enumerables = ['hasOwnProperty', 'valueOf', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'constructor']; Function.prototype.overloadSetter = function(usePlural){ var self = this; return function(a, b){ if (a == null) return this; if (usePlural || typeof a != 'string'){ for (var k in a) self.call(this, k, a[k]); if (enumerables) for (var i = enumerables.length; i--;){ k = enumerables[i]; if (a.hasOwnProperty(k)) self.call(this, k, a[k]); } } else { self.call(this, a, b); } return this; }; }; Function.prototype.overloadGetter = function(usePlural){ var self = this; return function(a){ var args, result; if (typeof a != 'string') args = a; else if (arguments.length > 1) args = arguments; else if (usePlural) args = [a]; if (args){ result = {}; for (var i = 0; i < args.length; i++) result[args[i]] = self.call(this, args[i]); } else { result = self.call(this, a); } return result; }; }; Function.prototype.extend = function(key, value){ this[key] = value; }.overloadSetter(); Function.prototype.implement = function(key, value){ this.prototype[key] = value; }.overloadSetter(); // From var slice = Array.prototype.slice; Function.from = function(item){ return (typeOf(item) == 'function') ? item : function(){ return item; }; }; Array.from = function(item){ if (item == null) return []; return (Type.isEnumerable(item) && typeof item != 'string') ? (typeOf(item) == 'array') ? item : slice.call(item) : [item]; }; Number.from = function(item){ var number = parseFloat(item); return isFinite(number) ? number : null; }; String.from = function(item){ return item + ''; }; // hide, protect Function.implement({ hide: function(){ this.$hidden = true; return this; }, protect: function(){ this.$protected = true; return this; } }); // Type var Type = this.Type = function(name, object){ if (name){ var lower = name.toLowerCase(); var typeCheck = function(item){ return (typeOf(item) == lower); }; Type['is' + name] = typeCheck; if (object != null){ object.prototype.$family = (function(){ return lower; }).hide(); } } if (object == null) return null; object.extend(this); object.$constructor = Type; object.prototype.$constructor = object; return object; }; var toString = Object.prototype.toString; Type.isEnumerable = function(item){ return (item != null && typeof item.length == 'number' && toString.call(item) != '[object Function]' ); }; var hooks = {}; var hooksOf = function(object){ var type = typeOf(object.prototype); return hooks[type] || (hooks[type] = []); }; var implement = function(name, method){ if (method && method.$hidden) return; var hooks = hooksOf(this); for (var i = 0; i < hooks.length; i++){ var hook = hooks[i]; if (typeOf(hook) == 'type') implement.call(hook, name, method); else hook.call(this, name, method); } var previous = this.prototype[name]; if (previous == null || !previous.$protected) this.prototype[name] = method; if (this[name] == null && typeOf(method) == 'function') extend.call(this, name, function(item){ return method.apply(item, slice.call(arguments, 1)); }); }; var extend = function(name, method){ if (method && method.$hidden) return; var previous = this[name]; if (previous == null || !previous.$protected) this[name] = method; }; Type.implement({ implement: implement.overloadSetter(), extend: extend.overloadSetter(), alias: function(name, existing){ implement.call(this, name, this.prototype[existing]); }.overloadSetter(), mirror: function(hook){ hooksOf(this).push(hook); return this; } }); new Type('Type', Type); // Default Types var force = function(name, object, methods){ var isType = (object != Object), prototype = object.prototype; if (isType) object = new Type(name, object); for (var i = 0, l = methods.length; i < l; i++){ var key = methods[i], generic = object[key], proto = prototype[key]; if (generic) generic.protect(); if (isType && proto) object.implement(key, proto.protect()); } if (isType){ var methodsEnumerable = prototype.propertyIsEnumerable(methods[0]); object.forEachMethod = function(fn){ if (!methodsEnumerable) for (var i = 0, l = methods.length; i < l; i++){ fn.call(prototype, prototype[methods[i]], methods[i]); } for (var key in prototype) fn.call(prototype, prototype[key], key) }; } return force; }; force('String', String, [ 'charAt', 'charCodeAt', 'concat', 'indexOf', 'lastIndexOf', 'match', 'quote', 'replace', 'search', 'slice', 'split', 'substr', 'substring', 'trim', 'toLowerCase', 'toUpperCase' ])('Array', Array, [ 'pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift', 'concat', 'join', 'slice', 'indexOf', 'lastIndexOf', 'filter', 'forEach', 'every', 'map', 'some', 'reduce', 'reduceRight' ])('Number', Number, [ 'toExponential', 'toFixed', 'toLocaleString', 'toPrecision' ])('Function', Function, [ 'apply', 'call', 'bind' ])('RegExp', RegExp, [ 'exec', 'test' ])('Object', Object, [ 'create', 'defineProperty', 'defineProperties', 'keys', 'getPrototypeOf', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'preventExtensions', 'isExtensible', 'seal', 'isSealed', 'freeze', 'isFrozen' ])('Date', Date, ['now']); Object.extend = extend.overloadSetter(); Date.extend('now', function(){ return +(new Date); }); new Type('Boolean', Boolean); // fixes NaN returning as Number Number.prototype.$family = function(){ return isFinite(this) ? 'number' : 'null'; }.hide(); // Number.random Number.extend('random', function(min, max){ return Math.floor(Math.random() * (max - min + 1) + min); }); // forEach, each var hasOwnProperty = Object.prototype.hasOwnProperty; Object.extend('forEach', function(object, fn, bind){ for (var key in object){ if (hasOwnProperty.call(object, key)) fn.call(bind, object[key], key, object); } }); Object.each = Object.forEach; Array.implement({ forEach: function(fn, bind){ for (var i = 0, l = this.length; i < l; i++){ if (i in this) fn.call(bind, this[i], i, this); } }, each: function(fn, bind){ Array.forEach(this, fn, bind); return this; } }); // Array & Object cloning, Object merging and appending var cloneOf = function(item){ switch (typeOf(item)){ case 'array': return item.clone(); case 'object': return Object.clone(item); default: return item; } }; Array.implement('clone', function(){ var i = this.length, clone = new Array(i); while (i--) clone[i] = cloneOf(this[i]); return clone; }); var mergeOne = function(source, key, current){ switch (typeOf(current)){ case 'object': if (typeOf(source[key]) == 'object') Object.merge(source[key], current); else source[key] = Object.clone(current); break; case 'array': source[key] = current.clone(); break; default: source[key] = current; } return source; }; Object.extend({ merge: function(source, k, v){ if (typeOf(k) == 'string') return mergeOne(source, k, v); for (var i = 1, l = arguments.length; i < l; i++){ var object = arguments[i]; for (var key in object) mergeOne(source, key, object[key]); } return source; }, clone: function(object){ var clone = {}; for (var key in object) clone[key] = cloneOf(object[key]); return clone; }, append: function(original){ for (var i = 1, l = arguments.length; i < l; i++){ var extended = arguments[i] || {}; for (var key in extended) original[key] = extended[key]; } return original; } }); // Object-less types ['Object', 'WhiteSpace', 'TextNode', 'Collection', 'Arguments'].each(function(name){ new Type(name); }); // Unique ID var UID = Date.now(); String.extend('uniqueID', function(){ return (UID++).toString(36); }); })(); /* --- name: Array description: Contains Array Prototypes like each, contains, and erase. license: MIT-style license. requires: Type provides: Array ... */ Array.implement({ /*<!ES5>*/ every: function(fn, bind){ for (var i = 0, l = this.length >>> 0; i < l; i++){ if ((i in this) && !fn.call(bind, this[i], i, this)) return false; } return true; }, filter: function(fn, bind){ var results = []; for (var value, i = 0, l = this.length >>> 0; i < l; i++) if (i in this){ value = this[i]; if (fn.call(bind, value, i, this)) results.push(value); } return results; }, indexOf: function(item, from){ var length = this.length >>> 0; for (var i = (from < 0) ? Math.max(0, length + from) : from || 0; i < length; i++){ if (this[i] === item) return i; } return -1; }, map: function(fn, bind){ var length = this.length >>> 0, results = Array(length); for (var i = 0; i < length; i++){ if (i in this) results[i] = fn.call(bind, this[i], i, this); } return results; }, some: function(fn, bind){ for (var i = 0, l = this.length >>> 0; i < l; i++){ if ((i in this) && fn.call(bind, this[i], i, this)) return true; } return false; }, /*</!ES5>*/ clean: function(){ return this.filter(function(item){ return item != null; }); }, invoke: function(methodName){ var args = Array.slice(arguments, 1); return this.map(function(item){ return item[methodName].apply(item, args); }); }, associate: function(keys){ var obj = {}, length = Math.min(this.length, keys.length); for (var i = 0; i < length; i++) obj[keys[i]] = this[i]; return obj; }, link: function(object){ var result = {}; for (var i = 0, l = this.length; i < l; i++){ for (var key in object){ if (object[key](this[i])){ result[key] = this[i]; delete object[key]; break; } } } return result; }, contains: function(item, from){ return this.indexOf(item, from) != -1; }, append: function(array){ this.push.apply(this, array); return this; }, getLast: function(){ return (this.length) ? this[this.length - 1] : null; }, getRandom: function(){ return (this.length) ? this[Number.random(0, this.length - 1)] : null; }, include: function(item){ if (!this.contains(item)) this.push(item); return this; }, combine: function(array){ for (var i = 0, l = array.length; i < l; i++) this.include(array[i]); return this; }, erase: function(item){ for (var i = this.length; i--;){ if (this[i] === item) this.splice(i, 1); } return this; }, empty: function(){ this.length = 0; return this; }, flatten: function(){ var array = []; for (var i = 0, l = this.length; i < l; i++){ var type = typeOf(this[i]); if (type == 'null') continue; array = array.concat((type == 'array' || type == 'collection' || type == 'arguments' || instanceOf(this[i], Array)) ? Array.flatten(this[i]) : this[i]); } return array; }, pick: function(){ for (var i = 0, l = this.length; i < l; i++){ if (this[i] != null) return this[i]; } return null; }, hexToRgb: function(array){ if (this.length != 3) return null; var rgb = this.map(function(value){ if (value.length == 1) value += value; return value.toInt(16); }); return (array) ? rgb : 'rgb(' + rgb + ')'; }, rgbToHex: function(array){ if (this.length < 3) return null; if (this.length == 4 && this[3] == 0 && !array) return 'transparent'; var hex = []; for (var i = 0; i < 3; i++){ var bit = (this[i] - 0).toString(16); hex.push((bit.length == 1) ? '0' + bit : bit); } return (array) ? hex : '#' + hex.join(''); } }); /* --- name: String description: Contains String Prototypes like camelCase, capitalize, test, and toInt. license: MIT-style license. requires: Type provides: String ... */ String.implement({ test: function(regex, params){ return ((typeOf(regex) == 'regexp') ? regex : new RegExp('' + regex, params)).test(this); }, contains: function(string, separator){ return (separator) ? (separator + this + separator).indexOf(separator + string + separator) > -1 : String(this).indexOf(string) > -1; }, trim: function(){ return String(this).replace(/^\s+|\s+$/g, ''); }, clean: function(){ return String(this).replace(/\s+/g, ' ').trim(); }, camelCase: function(){ return String(this).replace(/-\D/g, function(match){ return match.charAt(1).toUpperCase(); }); }, hyphenate: function(){ return String(this).replace(/[A-Z]/g, function(match){ return ('-' + match.charAt(0).toLowerCase()); }); }, capitalize: function(){ return String(this).replace(/\b[a-z]/g, function(match){ return match.toUpperCase(); }); }, escapeRegExp: function(){ return String(this).replace(/([-.*+?^${}()|[\]\/\\])/g, '\\$1'); }, toInt: function(base){ return parseInt(this, base || 10); }, toFloat: function(){ return parseFloat(this); }, hexToRgb: function(array){ var hex = String(this).match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/); return (hex) ? hex.slice(1).hexToRgb(array) : null; }, rgbToHex: function(array){ var rgb = String(this).match(/\d{1,3}/g); return (rgb) ? rgb.rgbToHex(array) : null; }, substitute: function(object, regexp){ return String(this).replace(regexp || (/\\?\{([^{}]+)\}/g), function(match, name){ if (match.charAt(0) == '\\') return match.slice(1); return (object[name] != null) ? object[name] : ''; }); } }); /* --- name: Number description: Contains Number Prototypes like limit, round, times, and ceil. license: MIT-style license. requires: Type provides: Number ... */ Number.implement({ limit: function(min, max){ return Math.min(max, Math.max(min, this)); }, round: function(precision){ precision = Math.pow(10, precision || 0).toFixed(precision < 0 ? -precision : 0); return Math.round(this * precision) / precision; }, times: function(fn, bind){ for (var i = 0; i < this; i++) fn.call(bind, i, this); }, toFloat: function(){ return parseFloat(this); }, toInt: function(base){ return parseInt(this, base || 10); } }); Number.alias('each', 'times'); (function(math){ var methods = {}; math.each(function(name){ if (!Number[name]) methods[name] = function(){ return Math[name].apply(null, [this].concat(Array.from(arguments))); }; }); Number.implement(methods); })(['abs', 'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos', 'exp', 'floor', 'log', 'max', 'min', 'pow', 'sin', 'sqrt', 'tan']); /* --- name: Function description: Contains Function Prototypes like create, bind, pass, and delay. license: MIT-style license. requires: Type provides: Function ... */ Function.extend({ attempt: function(){ for (var i = 0, l = arguments.length; i < l; i++){ try { return arguments[i](); } catch (e){} } return null; } }); Function.implement({ attempt: function(args, bind){ try { return this.apply(bind, Array.from(args)); } catch (e){} return null; }, /*<!ES5-bind>*/ bind: function(that){ var self = this, args = arguments.length > 1 ? Array.slice(arguments, 1) : null, F = function(){}; var bound = function(){ var context = that, length = arguments.length; if (this instanceof bound){ F.prototype = self.prototype; context = new F; } var result = (!args && !length) ? self.call(context) : self.apply(context, args && length ? args.concat(Array.slice(arguments)) : args || arguments); return context == that ? result : context; }; return bound; }, /*</!ES5-bind>*/ pass: function(args, bind){ var self = this; if (args != null) args = Array.from(args); return function(){ return self.apply(bind, args || arguments); }; }, delay: function(delay, bind, args){ return setTimeout(this.pass((args == null ? [] : args), bind), delay); }, periodical: function(periodical, bind, args){ return setInterval(this.pass((args == null ? [] : args), bind), periodical); } }); /* --- name: Object description: Object generic methods license: MIT-style license. requires: Type provides: [Object, Hash] ... */ (function(){ var hasOwnProperty = Object.prototype.hasOwnProperty; Object.extend({ subset: function(object, keys){ var results = {}; for (var i = 0, l = keys.length; i < l; i++){ var k = keys[i]; if (k in object) results[k] = object[k]; } return results; }, map: function(object, fn, bind){ var results = {}; for (var key in object){ if (hasOwnProperty.call(object, key)) results[key] = fn.call(bind, object[key], key, object); } return results; }, filter: function(object, fn, bind){ var results = {}; for (var key in object){ var value = object[key]; if (hasOwnProperty.call(object, key) && fn.call(bind, value, key, object)) results[key] = value; } return results; }, every: function(object, fn, bind){ for (var key in object){ if (hasOwnProperty.call(object, key) && !fn.call(bind, object[key], key)) return false; } return true; }, some: function(object, fn, bind){ for (var key in object){ if (hasOwnProperty.call(object, key) && fn.call(bind, object[key], key)) return true; } return false; }, keys: function(object){ var keys = []; for (var key in object){ if (hasOwnProperty.call(object, key)) keys.push(key); } return keys; }, values: function(object){ var values = []; for (var key in object){ if (hasOwnProperty.call(object, key)) values.push(object[key]); } return values; }, getLength: function(object){ return Object.keys(object).length; }, keyOf: function(object, value){ for (var key in object){ if (hasOwnProperty.call(object, key) && object[key] === value) return key; } return null; }, contains: function(object, value){ return Object.keyOf(object, value) != null; }, toQueryString: function(object, base){ var queryString = []; Object.each(object, function(value, key){ if (base) key = base + '[' + key + ']'; var result; switch (typeOf(value)){ case 'object': result = Object.toQueryString(value, key); break; case 'array': var qs = {}; value.each(function(val, i){ qs[i] = val; }); result = Object.toQueryString(qs, key); break; default: result = key + '=' + encodeURIComponent(value); } if (value != null) queryString.push(result); }); return queryString.join('&'); } }); })(); /* --- name: Browser description: The Browser Object. Contains Browser initialization, Window and Document, and the Browser Hash. license: MIT-style license. requires: [Array, Function, Number, String] provides: [Browser, Window, Document] ... */ (function(){ var document = this.document; var window = document.window = this; var ua = navigator.userAgent.toLowerCase(), platform = navigator.platform.toLowerCase(), UA = ua.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/) || [null, 'unknown', 0], mode = UA[1] == 'ie' && document.documentMode; var Browser = this.Browser = { extend: Function.prototype.extend, name: (UA[1] == 'version') ? UA[3] : UA[1], version: mode || parseFloat((UA[1] == 'opera' && UA[4]) ? UA[4] : UA[2]), Platform: { name: ua.match(/ip(?:ad|od|hone)/) ? 'ios' : (ua.match(/(?:webos|android)/) || platform.match(/mac|win|linux/) || ['other'])[0] }, Features: { xpath: !!(document.evaluate), air: !!(window.runtime), query: !!(document.querySelector), json: !!(window.JSON) }, Plugins: {} }; Browser[Browser.name] = true; Browser[Browser.name + parseInt(Browser.version, 10)] = true; Browser.Platform[Browser.Platform.name] = true; // Request Browser.Request = (function(){ var XMLHTTP = function(){ return new XMLHttpRequest(); }; var MSXML2 = function(){ return new ActiveXObject('MSXML2.XMLHTTP'); }; var MSXML = function(){ return new ActiveXObject('Microsoft.XMLHTTP'); }; return Function.attempt(function(){ XMLHTTP(); return XMLHTTP; }, function(){ MSXML2(); return MSXML2; }, function(){ MSXML(); return MSXML; }); })(); Browser.Features.xhr = !!(Browser.Request); // Flash detection var version = (Function.attempt(function(){ return navigator.plugins['Shockwave Flash'].description; }, function(){ return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version'); }) || '0 r0').match(/\d+/g); Browser.Plugins.Flash = { version: Number(version[0] || '0.' + version[1]) || 0, build: Number(version[2]) || 0 }; // String scripts Browser.exec = function(text){ if (!text) return text; if (window.execScript){ window.execScript(text); } else { var script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); script.text = text; document.head.appendChild(script); document.head.removeChild(script); } return text; }; String.implement('stripScripts', function(exec){ var scripts = ''; var text = this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi, function(all, code){ scripts += code + '\n'; return ''; }); if (exec === true) Browser.exec(scripts); else if (typeOf(exec) == 'function') exec(scripts, text); return text; }); // Window, Document Browser.extend({ Document: this.Document, Window: this.Window, Element: this.Element, Event: this.Event }); this.Window = this.$constructor = new Type('Window', function(){}); this.$family = Function.from('window').hide(); Window.mirror(function(name, method){ window[name] = method; }); this.Document = document.$constructor = new Type('Document', function(){}); document.$family = Function.from('document').hide(); Document.mirror(function(name, method){ document[name] = method; }); document.html = document.documentElement; if (!document.head) document.head = document.getElementsByTagName('head')[0]; if (document.execCommand) try { document.execCommand("BackgroundImageCache", false, true); } catch (e){} /*<ltIE9>*/ if (this.attachEvent && !this.addEventListener){ var unloadEvent = function(){ this.detachEvent('onunload', unloadEvent); document.head = document.html = document.window = null; }; this.attachEvent('onunload', unloadEvent); } // IE fails on collections and <select>.options (refers to <select>) var arrayFrom = Array.from; try { arrayFrom(document.html.childNodes); } catch(e){ Array.from = function(item){ if (typeof item != 'string' && Type.isEnumerable(item) && typeOf(item) != 'array'){ var i = item.length, array = new Array(i); while (i--) array[i] = item[i]; return array; } return arrayFrom(item); }; var prototype = Array.prototype, slice = prototype.slice; ['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift', 'concat', 'join', 'slice'].each(function(name){ var method = prototype[name]; Array[name] = function(item){ return method.apply(Array.from(item), slice.call(arguments, 1)); }; }); } /*</ltIE9>*/ })(); /* --- name: Event description: Contains the Event Type, to make the event object cross-browser. license: MIT-style license. requires: [Window, Document, Array, Function, String, Object] provides: Event ... */ (function() { var _keys = {}; var DOMEvent = this.DOMEvent = new Type('DOMEvent', function(event, win){ if (!win) win = window; event = event || win.event; if (event.$extended) return event; this.event = event; this.$extended = true; this.shift = event.shiftKey; this.control = event.ctrlKey; this.alt = event.altKey; this.meta = event.metaKey; var type = this.type = event.type; var target = event.target || event.srcElement; while (target && target.nodeType == 3) target = target.parentNode; this.target = document.id(target); if (type.indexOf('key') == 0){ var code = this.code = (event.which || event.keyCode); this.key = _keys[code]; if (type == 'keydown'){ if (code > 111 && code < 124) this.key = 'f' + (code - 111); else if (code > 95 && code < 106) this.key = code - 96; } if (this.key == null) this.key = String.fromCharCode(code).toLowerCase(); } else if (type == 'click' || type == 'dblclick' || type == 'contextmenu' || type == 'DOMMouseScroll' || type.indexOf('mouse') == 0){ var doc = win.document; doc = (!doc.compatMode || doc.compatMode == 'CSS1Compat') ? doc.html : doc.body; this.page = { x: (event.pageX != null) ? event.pageX : event.clientX + doc.scrollLeft, y: (event.pageY != null) ? event.pageY : event.clientY + doc.scrollTop }; this.client = { x: (event.pageX != null) ? event.pageX - win.pageXOffset : event.clientX, y: (event.pageY != null) ? event.pageY - win.pageYOffset : event.clientY }; if (type == 'DOMMouseScroll' || type == 'mousewheel') this.wheel = (event.wheelDelta) ? event.wheelDelta / 120 : -(event.detail || 0) / 3; this.rightClick = (event.which == 3 || event.button == 2); if (type == 'mouseover' || type == 'mouseout'){ var related = event.relatedTarget || event[(type == 'mouseover' ? 'from' : 'to') + 'Element']; while (related && related.nodeType == 3) related = related.parentNode; this.relatedTarget = document.id(related); } } else if (type.indexOf('touch') == 0 || type.indexOf('gesture') == 0){ this.rotation = event.rotation; this.scale = event.scale; this.targetTouches = event.targetTouches; this.changedTouches = event.changedTouches; var touches = this.touches = event.touches; if (touches && touches[0]){ var touch = touches[0]; this.page = {x: touch.pageX, y: touch.pageY}; this.client = {x: touch.clientX, y: touch.clientY}; } } if (!this.client) this.client = {}; if (!this.page) this.page = {}; }); DOMEvent.implement({ stop: function(){ return this.preventDefault().stopPropagation(); }, stopPropagation: function(){ if (this.event.stopPropagation) this.event.stopPropagation(); else this.event.cancelBubble = true; return this; }, preventDefault: function(){ if (this.event.preventDefault) this.event.preventDefault(); else this.event.returnValue = false; return this; } }); DOMEvent.defineKey = function(code, key){ _keys[code] = key; return this; }; DOMEvent.defineKeys = DOMEvent.defineKey.overloadSetter(true); DOMEvent.defineKeys({ '38': 'up', '40': 'down', '37': 'left', '39': 'right', '27': 'esc', '32': 'space', '8': 'backspace', '9': 'tab', '46': 'delete', '13': 'enter' }); })(); /* --- name: Class description: Contains the Class Function for easily creating, extending, and implementing reusable Classes. license: MIT-style license. requires: [Array, String, Function, Number] provides: Class ... */ (function(){ var Class = this.Class = new Type('Class', function(params){ if (instanceOf(params, Function)) params = {initialize: params}; var newClass = function(){ reset(this); if (newClass.$prototyping) return this; this.$caller = null; var value = (this.initialize) ? this.initialize.apply(this, arguments) : this; this.$caller = this.caller = null; return value; }.extend(this).implement(params); newClass.$constructor = Class; newClass.prototype.$constructor = newClass; newClass.prototype.parent = parent; return newClass; }); var parent = function(){ if (!this.$caller) throw new Error('The method "parent" cannot be called.'); var name = this.$caller.$name, parent = this.$caller.$owner.parent, previous = (parent) ? parent.prototype[name] : null; if (!previous) throw new Error('The method "' + name + '" has no parent.'); return previous.apply(this, arguments); }; var reset = function(object){ for (var key in object){ var value = object[key]; switch (typeOf(value)){ case 'object': var F = function(){}; F.prototype = value; object[key] = reset(new F); break; case 'array': object[key] = value.clone(); break; } } return object; }; var wrap = function(self, key, method){ if (method.$origin) method = method.$origin; var wrapper = function(){ if (method.$protected && this.$caller == null) throw new Error('The method "' + key + '" cannot be called.'); var caller = this.caller, current = this.$caller; this.caller = current; this.$caller = wrapper; var result = method.apply(this, arguments); this.$caller = current; this.caller = caller; return result; }.extend({$owner: self, $origin: method, $name: key}); return wrapper; }; var implement = function(key, value, retain){ if (Class.Mutators.hasOwnProperty(key)){ value = Class.Mutators[key].call(this, value); if (value == null) return this; } if (typeOf(value) == 'function'){ if (value.$hidden) return this; this.prototype[key] = (retain) ? value : wrap(this, key, value); } else { Object.merge(this.prototype, key, value); } return this; }; var getInstance = function(klass){ klass.$prototyping = true; var proto = new klass; delete klass.$prototyping; return proto; }; Class.implement('implement', implement.overloadSetter()); Class.Mutators = { Extends: function(parent){ this.parent = parent; this.prototype = getInstance(parent); }, Implements: function(items){ Array.from(items).each(function(item){ var instance = new item; for (var key in instance) implement.call(this, key, instance[key], true); }, this); } }; })(); /* --- name: Class.Extras description: Contains Utility Classes that can be implemented into your own Classes to ease the execution of many common tasks. license: MIT-style license. requires: Class provides: [Class.Extras, Chain, Events, Options] ... */ (function(){ this.Chain = new Class({ $chain: [], chain: function(){ this.$chain.append(Array.flatten(arguments)); return this; }, callChain: function(){ return (this.$chain.length) ? this.$chain.shift().apply(this, arguments) : false; }, clearChain: function(){ this.$chain.empty(); return this; } }); var removeOn = function(string){ return string.replace(/^on([A-Z])/, function(full, first){ return first.toLowerCase(); }); }; this.Events = new Class({ $events: {}, addEvent: function(type, fn, internal){ type = removeOn(type); this.$events[type] = (this.$events[type] || []).include(fn); if (internal) fn.internal = true; return this; }, addEvents: function(events){ for (var type in events) this.addEvent(type, events[type]); return this; }, fireEvent: function(type, args, delay){ type = removeOn(type); var events = this.$events[type]; if (!events) return this; args = Array.from(args); events.each(function(fn){ if (delay) fn.delay(delay, this, args); else fn.apply(this, args); }, this); return this; }, removeEvent: function(type, fn){ type = removeOn(type); var events = this.$events[type]; if (events && !fn.internal){ var index = events.indexOf(fn); if (index != -1) delete events[index]; } return this; }, removeEvents: function(events){ var type; if (typeOf(events) == 'object'){ for (type in events) this.removeEvent(type, events[type]); return this; } if (events) events = removeOn(events); for (type in this.$events){ if (events && events != type) continue; var fns = this.$events[type]; for (var i = fns.length; i--;) if (i in fns){ this.removeEvent(type, fns[i]); } } return this; } }); this.Options = new Class({ setOptions: function(){ var options = this.options = Object.merge.apply(null, [{}, this.options].append(arguments)); if (this.addEvent) for (var option in options){ if (typeOf(options[option]) != 'function' || !(/^on[A-Z]/).test(option)) continue; this.addEvent(option, options[option]); delete options[option]; } return this; } }); })(); /* --- name: Slick.Parser description: Standalone CSS3 Selector parser provides: Slick.Parser ... */ ;(function(){ var parsed, separatorIndex, combinatorIndex, reversed, cache = {}, reverseCache = {}, reUnescape = /\\/g; var parse = function(expression, isReversed){ if (expression == null) return null; if (expression.Slick === true) return expression; expression = ('' + expression).replace(/^\s+|\s+$/g, ''); reversed = !!isReversed; var currentCache = (reversed) ? reverseCache : cache; if (currentCache[expression]) return currentCache[expression]; parsed = { Slick: true, expressions: [], raw: expression, reverse: function(){ return parse(this.raw, true); } }; separatorIndex = -1; while (expression != (expression = expression.replace(regexp, parser))); parsed.length = parsed.expressions.length; return currentCache[parsed.raw] = (reversed) ? reverse(parsed) : parsed; }; var reverseCombinator = function(combinator){ if (combinator === '!') return ' '; else if (combinator === ' ') return '!'; else if ((/^!/).test(combinator)) return combinator.replace(/^!/, ''); else return '!' + combinator; }; var reverse = function(expression){ var expressions = expression.expressions; for (var i = 0; i < expressions.length; i++){ var exp = expressions[i]; var last = {parts: [], tag: '*', combinator: reverseCombinator(exp[0].combinator)}; for (var j = 0; j < exp.length; j++){ var cexp = exp[j]; if (!cexp.reverseCombinator) cexp.reverseCombinator = ' '; cexp.combinator = cexp.reverseCombinator; delete cexp.reverseCombinator; } exp.reverse().push(last); } return expression; }; var escapeRegExp = function(string){// Credit: XRegExp 0.6.1 (c) 2007-2008 Steven Levithan <http://stevenlevithan.com/regex/xregexp/> MIT License return string.replace(/[-[\]{}()*+?.\\^$|,#\s]/g, function(match){ return '\\' + match; }); }; var regexp = new RegExp( /* #!/usr/bin/env ruby puts "\t\t" + DATA.read.gsub(/\(\?x\)|\s+#.*$|\s+|\\$|\\n/,'') __END__ "(?x)^(?:\ \\s* ( , ) \\s* # Separator \n\ | \\s* ( <combinator>+ ) \\s* # Combinator \n\ | ( \\s+ ) # CombinatorChildren \n\ | ( <unicode>+ | \\* ) # Tag \n\ | \\# ( <unicode>+ ) # ID \n\ | \\. ( <unicode>+ ) # ClassName \n\ | # Attribute \n\ \\[ \ \\s* (<unicode1>+) (?: \ \\s* ([*^$!~|]?=) (?: \ \\s* (?:\ ([\"']?)(.*?)\\9 \ )\ ) \ )? \\s* \ \\](?!\\]) \n\ | :+ ( <unicode>+ )(?:\ \\( (?:\ (?:([\"'])([^\\12]*)\\12)|((?:\\([^)]+\\)|[^()]*)+)\ ) \\)\ )?\ )" */ "^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)" .replace(/<combinator>/, '[' + escapeRegExp(">+~`!@$%^&={}\\;</") + ']') .replace(/<unicode>/g, '(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])') .replace(/<unicode1>/g, '(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])') ); function parser( rawMatch, separator, combinator, combinatorChildren, tagName, id, className, attributeKey, attributeOperator, attributeQuote, attributeValue, pseudoMarker, pseudoClass, pseudoQuote, pseudoClassQuotedValue, pseudoClassValue ){ if (separator || separatorIndex === -1){ parsed.expressions[++separatorIndex] = []; combinatorIndex = -1; if (separator) return ''; } if (combinator || combinatorChildren || combinatorIndex === -1){ combinator = combinator || ' '; var currentSeparator = parsed.expressions[separatorIndex]; if (reversed && currentSeparator[combinatorIndex]) currentSeparator[combinatorIndex].reverseCombinator = reverseCombinator(combinator); currentSeparator[++combinatorIndex] = {combinator: combinator, tag: '*'}; } var currentParsed = parsed.expressions[separatorIndex][combinatorIndex]; if (tagName){ currentParsed.tag = tagName.replace(reUnescape, ''); } else if (id){ currentParsed.id = id.replace(reUnescape, ''); } else if (className){ className = className.replace(reUnescape, ''); if (!currentParsed.classList) currentParsed.classList = []; if (!currentParsed.classes) currentParsed.classes = []; currentParsed.classList.push(className); currentParsed.classes.push({ value: className, regexp: new RegExp('(^|\\s)' + escapeRegExp(className) + '(\\s|$)') }); } else if (pseudoClass){ pseudoClassValue = pseudoClassValue || pseudoClassQuotedValue; pseudoClassValue = pseudoClassValue ? pseudoClassValue.replace(reUnescape, '') : null; if (!currentParsed.pseudos) currentParsed.pseudos = []; currentParsed.pseudos.push({ key: pseudoClass.replace(reUnescape, ''), value: pseudoClassValue, type: pseudoMarker.length == 1 ? 'class' : 'element' }); } else if (attributeKey){ attributeKey = attributeKey.replace(reUnescape, ''); attributeValue = (attributeValue || '').replace(reUnescape, ''); var test, regexp; switch (attributeOperator){ case '^=' : regexp = new RegExp( '^'+ escapeRegExp(attributeValue) ); break; case '$=' : regexp = new RegExp( escapeRegExp(attributeValue) +'$' ); break; case '~=' : regexp = new RegExp( '(^|\\s)'+ escapeRegExp(attributeValue) +'(\\s|$)' ); break; case '|=' : regexp = new RegExp( '^'+ escapeRegExp(attributeValue) +'(-|$)' ); break; case '=' : test = function(value){ return attributeValue == value; }; break; case '*=' : test = function(value){ return value && value.indexOf(attributeValue) > -1; }; break; case '!=' : test = function(value){ return attributeValue != value; }; break; default : test = function(value){ return !!value; }; } if (attributeValue == '' && (/^[*$^]=$/).test(attributeOperator)) test = function(){ return false; }; if (!test) test = function(value){ return value && regexp.test(value); }; if (!currentParsed.attributes) currentParsed.attributes = []; currentParsed.attributes.push({ key: attributeKey, operator: attributeOperator, value: attributeValue, test: test }); } return ''; }; // Slick NS var Slick = (this.Slick || {}); Slick.parse = function(expression){ return parse(expression); }; Slick.escapeRegExp = escapeRegExp; if (!this.Slick) this.Slick = Slick; }).apply(/*<CommonJS>*/(typeof exports != 'undefined') ? exports : /*</CommonJS>*/this); /* --- name: Slick.Finder description: The new, superfast css selector engine. provides: Slick.Finder requires: Slick.Parser ... */ ;(function(){ var local = {}, featuresCache = {}, toString = Object.prototype.toString; // Feature / Bug detection local.isNativeCode = function(fn){ return (/\{\s*\[native code\]\s*\}/).test('' + fn); }; local.isXML = function(document){ return (!!document.xmlVersion) || (!!document.xml) || (toString.call(document) == '[object XMLDocument]') || (document.nodeType == 9 && document.documentElement.nodeName != 'HTML'); }; local.setDocument = function(document){ // convert elements / window arguments to document. if document cannot be extrapolated, the function returns. var nodeType = document.nodeType; if (nodeType == 9); // document else if (nodeType) document = document.ownerDocument; // node else if (document.navigator) document = document.document; // window else return; // check if it's the old document if (this.document === document) return; this.document = document; // check if we have done feature detection on this document before var root = document.documentElement, rootUid = this.getUIDXML(root), features = featuresCache[rootUid], feature; if (features){ for (feature in features){ this[feature] = features[feature]; } return; } features = featuresCache[rootUid] = {}; features.root = root; features.isXMLDocument = this.isXML(document); features.brokenStarGEBTN = features.starSelectsClosedQSA = features.idGetsName = features.brokenMixedCaseQSA = features.brokenGEBCN = features.brokenCheckedQSA = features.brokenEmptyAttributeQSA = features.isHTMLDocument = features.nativeMatchesSelector = false; var starSelectsClosed, starSelectsComments, brokenSecondClassNameGEBCN, cachedGetElementsByClassName, brokenFormAttributeGetter; var selected, id = 'slick_uniqueid'; var testNode = document.createElement('div'); var testRoot = document.body || document.getElementsByTagName('body')[0] || root; testRoot.appendChild(testNode); // on non-HTML documents innerHTML and getElementsById doesnt work properly try { testNode.innerHTML = '<a id="'+id+'"></a>'; features.isHTMLDocument = !!document.getElementById(id); } catch(e){}; if (features.isHTMLDocument){ testNode.style.display = 'none'; // IE returns comment nodes for getElementsByTagName('*') for some documents testNode.appendChild(document.createComment('')); starSelectsComments = (testNode.getElementsByTagName('*').length > 1); // IE returns closed nodes (EG:"</foo>") for getElementsByTagName('*') for some documents try { testNode.innerHTML = 'foo</foo>'; selected = testNode.getElementsByTagName('*'); starSelectsClosed = (selected && !!selected.length && selected[0].nodeName.charAt(0) == '/'); } catch(e){}; features.brokenStarGEBTN = starSelectsComments || starSelectsClosed; // IE returns elements with the name instead of just id for getElementsById for some documents try { testNode.innerHTML = '<a name="'+ id +'"></a><b id="'+ id +'"></b>'; features.idGetsName = document.getElementById(id) === testNode.firstChild; } catch(e){}; if (testNode.getElementsByClassName){ // Safari 3.2 getElementsByClassName caches results try { testNode.innerHTML = '<a class="f"></a><a class="b"></a>'; testNode.getElementsByClassName('b').length; testNode.firstChild.className = 'b'; cachedGetElementsByClassName = (testNode.getElementsByClassName('b').length != 2); } catch(e){}; // Opera 9.6 getElementsByClassName doesnt detects the class if its not the first one try { testNode.innerHTML = '<a class="a"></a><a class="f b a"></a>'; brokenSecondClassNameGEBCN = (testNode.getElementsByClassName('a').length != 2); } catch(e){}; features.brokenGEBCN = cachedGetElementsByClassName || brokenSecondClassNameGEBCN; } if (testNode.querySelectorAll){ // IE 8 returns closed nodes (EG:"</foo>") for querySelectorAll('*') for some documents try { testNode.innerHTML = 'foo</foo>'; selected = testNode.querySelectorAll('*'); features.starSelectsClosedQSA = (selected && !!selected.length && selected[0].nodeName.charAt(0) == '/'); } catch(e){}; // Safari 3.2 querySelectorAll doesnt work with mixedcase on quirksmode try { testNode.innerHTML = '<a class="MiX"></a>'; features.brokenMixedCaseQSA = !testNode.querySelectorAll('.MiX').length; } catch(e){}; // Webkit and Opera dont return selected options on querySelectorAll try { testNode.innerHTML = '<select><option selected="selected">a</option></select>'; features.brokenCheckedQSA = (testNode.querySelectorAll(':checked').length == 0); } catch(e){}; // IE returns incorrect results for attr[*^$]="" selectors on querySelectorAll try { testNode.innerHTML = '<a class=""></a>'; features.brokenEmptyAttributeQSA = (testNode.querySelectorAll('[class*=""]').length != 0); } catch(e){}; } // IE6-7, if a form has an input of id x, form.getAttribute(x) returns a reference to the input try { testNode.innerHTML = '<form action="s"><input id="action"/></form>'; brokenFormAttributeGetter = (testNode.firstChild.getAttribute('action') != 's'); } catch(e){}; // native matchesSelector function features.nativeMatchesSelector = root.matchesSelector || /*root.msMatchesSelector ||*/ root.mozMatchesSelector || root.webkitMatchesSelector; if (features.nativeMatchesSelector) try { // if matchesSelector trows errors on incorrect sintaxes we can use it features.nativeMatchesSelector.call(root, ':slick'); features.nativeMatchesSelector = null; } catch(e){}; } try { root.slick_expando = 1; delete root.slick_expando; features.getUID = this.getUIDHTML; } catch(e) { features.getUID = this.getUIDXML; } testRoot.removeChild(testNode); testNode = selected = testRoot = null; // getAttribute features.getAttribute = (features.isHTMLDocument && brokenFormAttributeGetter) ? function(node, name){ var method = this.attributeGetters[name]; if (method) return method.call(node); var attributeNode = node.getAttributeNode(name); return (attributeNode) ? attributeNode.nodeValue : null; } : function(node, name){ var method = this.attributeGetters[name]; return (method) ? method.call(node) : node.getAttribute(name); }; // hasAttribute features.hasAttribute = (root && this.isNativeCode(root.hasAttribute)) ? function(node, attribute) { return node.hasAttribute(attribute); } : function(node, attribute) { node = node.getAttributeNode(attribute); return !!(node && (node.specified || node.nodeValue)); }; // contains // FIXME: Add specs: local.contains should be different for xml and html documents? var nativeRootContains = root && this.isNativeCode(root.contains), nativeDocumentContains = document && this.isNativeCode(document.contains); features.contains = (nativeRootContains && nativeDocumentContains) ? function(context, node){ return context.contains(node); } : (nativeRootContains && !nativeDocumentContains) ? function(context, node){ // IE8 does not have .contains on document. return context === node || ((context === document) ? document.documentElement : context).contains(node); } : (root && root.compareDocumentPosition) ? function(context, node){ return context === node || !!(context.compareDocumentPosition(node) & 16); } : function(context, node){ if (node) do { if (node === context) return true; } while ((node = node.parentNode)); return false; }; // document order sorting // credits to Sizzle (http://sizzlejs.com/) features.documentSorter = (root.compareDocumentPosition) ? function(a, b){ if (!a.compareDocumentPosition || !b.compareDocumentPosition) return 0; return a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1; } : ('sourceIndex' in root) ? function(a, b){ if (!a.sourceIndex || !b.sourceIndex) return 0; return a.sourceIndex - b.sourceIndex; } : (document.createRange) ? function(a, b){ if (!a.ownerDocument || !b.ownerDocument) return 0; var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange(); aRange.setStart(a, 0); aRange.setEnd(a, 0); bRange.setStart(b, 0); bRange.setEnd(b, 0); return aRange.compareBoundaryPoints(Range.START_TO_END, bRange); } : null ; root = null; for (feature in features){ this[feature] = features[feature]; } }; // Main Method var reSimpleSelector = /^([#.]?)((?:[\w-]+|\*))$/, reEmptyAttribute = /\[.+[*$^]=(?:""|'')?\]/, qsaFailExpCache = {}; local.search = function(context, expression, append, first){ var found = this.found = (first) ? null : (append || []); if (!context) return found; else if (context.navigator) context = context.document; // Convert the node from a window to a document else if (!context.nodeType) return found; // setup var parsed, i, uniques = this.uniques = {}, hasOthers = !!(append && append.length), contextIsDocument = (context.nodeType == 9); if (this.document !== (contextIsDocument ? context : context.ownerDocument)) this.setDocument(context); // avoid duplicating items already in the append array if (hasOthers) for (i = found.length; i--;) uniques[this.getUID(found[i])] = true; // expression checks if (typeof expression == 'string'){ // expression is a string /*<simple-selectors-override>*/ var simpleSelector = expression.match(reSimpleSelector); simpleSelectors: if (simpleSelector) { var symbol = simpleSelector[1], name = simpleSelector[2], node, nodes; if (!symbol){ if (name == '*' && this.brokenStarGEBTN) break simpleSelectors; nodes = context.getElementsByTagName(name); if (first) return nodes[0] || null; for (i = 0; node = nodes[i++];){ if (!(hasOthers && uniques[this.getUID(node)])) found.push(node); } } else if (symbol == '#'){ if (!this.isHTMLDocument || !contextIsDocument) break simpleSelectors; node = context.getElementById(name); if (!node) return found; if (this.idGetsName && node.getAttributeNode('id').nodeValue != name) break simpleSelectors; if (first) return node || null; if (!(hasOthers && uniques[this.getUID(node)])) found.push(node); } else if (symbol == '.'){ if (!this.isHTMLDocument || ((!context.getElementsByClassName || this.brokenGEBCN) && context.querySelectorAll)) break simpleSelectors; if (context.getElementsByClassName && !this.brokenGEBCN){ nodes = context.getElementsByClassName(name); if (first) return nodes[0] || null; for (i = 0; node = nodes[i++];){ if (!(hasOthers && uniques[this.getUID(node)])) found.push(node); } } else { var matchClass = new RegExp('(^|\\s)'+ Slick.escapeRegExp(name) +'(\\s|$)'); nodes = context.getElementsByTagName('*'); for (i = 0; node = nodes[i++];){ className = node.className; if (!(className && matchClass.test(className))) continue; if (first) return node; if (!(hasOthers && uniques[this.getUID(node)])) found.push(node); } } } if (hasOthers) this.sort(found); return (first) ? null : found; } /*</simple-selectors-override>*/ /*<query-selector-override>*/ querySelector: if (context.querySelectorAll) { if (!this.isHTMLDocument || qsaFailExpCache[expression] //TODO: only skip when expression is actually mixed case || this.brokenMixedCaseQSA || (this.brokenCheckedQSA && expression.indexOf(':checked') > -1) || (this.brokenEmptyAttributeQSA && reEmptyAttribute.test(expression)) || (!contextIsDocument //Abort when !contextIsDocument and... // there are multiple expressions in the selector // since we currently only fix non-document rooted QSA for single expression selectors && expression.indexOf(',') > -1 ) || Slick.disableQSA ) break querySelector; var _expression = expression, _context = context; if (!contextIsDocument){ // non-document rooted QSA // credits to Andrew Dupont var currentId = _context.getAttribute('id'), slickid = 'slickid__'; _context.setAttribute('id', slickid); _expression = '#' + slickid + ' ' + _expression; context = _context.parentNode; } try { if (first) return context.querySelector(_expression) || null; else nodes = context.querySelectorAll(_expression); } catch(e) { qsaFailExpCache[expression] = 1; break querySelector; } finally { if (!contextIsDocument){ if (currentId) _context.setAttribute('id', currentId); else _context.removeAttribute('id'); context = _context; } } if (this.starSelectsClosedQSA) for (i = 0; node = nodes[i++];){ if (node.nodeName > '@' && !(hasOthers && uniques[this.getUID(node)])) found.push(node); } else for (i = 0; node = nodes[i++];){ if (!(hasOthers && uniques[this.getUID(node)])) found.push(node); } if (hasOthers) this.sort(found); return found; } /*</query-selector-override>*/ parsed = this.Slick.parse(expression); if (!parsed.length) return found; } else if (expression == null){ // there is no expression return found; } else if (expression.Slick){ // expression is a parsed Slick object parsed = expression; } else if (this.contains(context.documentElement || context, expression)){ // expression is a node (found) ? found.push(expression) : found = expression; return found; } else { // other junk return found; } /*<pseudo-selectors>*//*<nth-pseudo-selectors>*/ // cache elements for the nth selectors this.posNTH = {}; this.posNTHLast = {}; this.posNTHType = {}; this.posNTHTypeLast = {}; /*</nth-pseudo-selectors>*//*</pseudo-selectors>*/ // if append is null and there is only a single selector with one expression use pushArray, else use pushUID this.push = (!hasOthers && (first || (parsed.length == 1 && parsed.expressions[0].length == 1))) ? this.pushArray : this.pushUID; if (found == null) found = []; // default engine var j, m, n; var combinator, tag, id, classList, classes, attributes, pseudos; var currentItems, currentExpression, currentBit, lastBit, expressions = parsed.expressions; search: for (i = 0; (currentExpression = expressions[i]); i++) for (j = 0; (currentBit = currentExpression[j]); j++){ combinator = 'combinator:' + currentBit.combinator; if (!this[combinator]) continue search; tag = (this.isXMLDocument) ? currentBit.tag : currentBit.tag.toUpperCase(); id = currentBit.id; classList = currentBit.classList; classes = currentBit.classes; attributes = currentBit.attributes; pseudos = currentBit.pseudos; lastBit = (j === (currentExpression.length - 1)); this.bitUniques = {}; if (lastBit){ this.uniques = uniques; this.found = found; } else { this.uniques = {}; this.found = []; } if (j === 0){ this[combinator](context, tag, id, classes, attributes, pseudos, classList); if (first && lastBit && found.length) break search; } else { if (first && lastBit) for (m = 0, n = currentItems.length; m < n; m++){ this[combinator](currentItems[m], tag, id, classes, attributes, pseudos, classList); if (found.length) break search; } else for (m = 0, n = currentItems.length; m < n; m++) this[combinator](currentItems[m], tag, id, classes, attributes, pseudos, classList); } currentItems = this.found; } // should sort if there are nodes in append and if you pass multiple expressions. if (hasOthers || (parsed.expressions.length > 1)) this.sort(found); return (first) ? (found[0] || null) : found; }; // Utils local.uidx = 1; local.uidk = 'slick-uniqueid'; local.getUIDXML = function(node){ var uid = node.getAttribute(this.uidk); if (!uid){ uid = this.uidx++; node.setAttribute(this.uidk, uid); } return uid; }; local.getUIDHTML = function(node){ return node.uniqueNumber || (node.uniqueNumber = this.uidx++); }; // sort based on the setDocument documentSorter method. local.sort = function(results){ if (!this.documentSorter) return results; results.sort(this.documentSorter); return results; }; /*<pseudo-selectors>*//*<nth-pseudo-selectors>*/ local.cacheNTH = {}; local.matchNTH = /^([+-]?\d*)?([a-z]+)?([+-]\d+)?$/; local.parseNTHArgument = function(argument){ var parsed = argument.match(this.matchNTH); if (!parsed) return false; var special = parsed[2] || false; var a = parsed[1] || 1; if (a == '-') a = -1; var b = +parsed[3] || 0; parsed = (special == 'n') ? {a: a, b: b} : (special == 'odd') ? {a: 2, b: 1} : (special == 'even') ? {a: 2, b: 0} : {a: 0, b: a}; return (this.cacheNTH[argument] = parsed); }; local.createNTHPseudo = function(child, sibling, positions, ofType){ return function(node, argument){ var uid = this.getUID(node); if (!this[positions][uid]){ var parent = node.parentNode; if (!parent) return false; var el = parent[child], count = 1; if (ofType){ var nodeName = node.nodeName; do { if (el.nodeName != nodeName) continue; this[positions][this.getUID(el)] = count++; } while ((el = el[sibling])); } else { do { if (el.nodeType != 1) continue; this[positions][this.getUID(el)] = count++; } while ((el = el[sibling])); } } argument = argument || 'n'; var parsed = this.cacheNTH[argument] || this.parseNTHArgument(argument); if (!parsed) return false; var a = parsed.a, b = parsed.b, pos = this[positions][uid]; if (a == 0) return b == pos; if (a > 0){ if (pos < b) return false; } else { if (b < pos) return false; } return ((pos - b) % a) == 0; }; }; /*</nth-pseudo-selectors>*//*</pseudo-selectors>*/ local.pushArray = function(node, tag, id, classes, attributes, pseudos){ if (this.matchSelector(node, tag, id, classes, attributes, pseudos)) this.found.push(node); }; local.pushUID = function(node, tag, id, classes, attributes, pseudos){ var uid = this.getUID(node); if (!this.uniques[uid] && this.matchSelector(node, tag, id, classes, attributes, pseudos)){ this.uniques[uid] = true; this.found.push(node); } }; local.matchNode = function(node, selector){ if (this.isHTMLDocument && this.nativeMatchesSelector){ try { return this.nativeMatchesSelector.call(node, selector.replace(/\[([^=]+)=\s*([^'"\]]+?)\s*\]/g, '[$1="$2"]')); } catch(matchError) {} } var parsed = this.Slick.parse(selector); if (!parsed) return true; // simple (single) selectors var expressions = parsed.expressions, simpleExpCounter = 0, i; for (i = 0; (currentExpression = expressions[i]); i++){ if (currentExpression.length == 1){ var exp = currentExpression[0]; if (this.matchSelector(node, (this.isXMLDocument) ? exp.tag : exp.tag.toUpperCase(), exp.id, exp.classes, exp.attributes, exp.pseudos)) return true; simpleExpCounter++; } } if (simpleExpCounter == parsed.length) return false; var nodes = this.search(this.document, parsed), item; for (i = 0; item = nodes[i++];){ if (item === node) return true; } return false; }; local.matchPseudo = function(node, name, argument){ var pseudoName = 'pseudo:' + name; if (this[pseudoName]) return this[pseudoName](node, argument); var attribute = this.getAttribute(node, name); return (argument) ? argument == attribute : !!attribute; }; local.matchSelector = function(node, tag, id, classes, attributes, pseudos){ if (tag){ var nodeName = (this.isXMLDocument) ? node.nodeName : node.nodeName.toUpperCase(); if (tag == '*'){ if (nodeName < '@') return false; // Fix for comment nodes and closed nodes } else { if (nodeName != tag) return false; } } if (id && node.getAttribute('id') != id) return false; var i, part, cls; if (classes) for (i = classes.length; i--;){ cls = this.getAttribute(node, 'class'); if (!(cls && classes[i].regexp.test(cls))) return false; } if (attributes) for (i = attributes.length; i--;){ part = attributes[i]; if (part.operator ? !part.test(this.getAttribute(node, part.key)) : !this.hasAttribute(node, part.key)) return false; } if (pseudos) for (i = pseudos.length; i--;){ part = pseudos[i]; if (!this.matchPseudo(node, part.key, part.value)) return false; } return true; }; var combinators = { ' ': function(node, tag, id, classes, attributes, pseudos, classList){ // all child nodes, any level var i, item, children; if (this.isHTMLDocument){ getById: if (id){ item = this.document.getElementById(id); if ((!item && node.all) || (this.idGetsName && item && item.getAttributeNode('id').nodeValue != id)){ // all[id] returns all the elements with that name or id inside node // if theres just one it will return the element, else it will be a collection children = node.all[id]; if (!children) return; if (!children[0]) children = [children]; for (i = 0; item = children[i++];){ var idNode = item.getAttributeNode('id'); if (idNode && idNode.nodeValue == id){ this.push(item, tag, null, classes, attributes, pseudos); break; } } return; } if (!item){ // if the context is in the dom we return, else we will try GEBTN, breaking the getById label if (this.contains(this.root, node)) return; else break getById; } else if (this.document !== node && !this.contains(node, item)) return; this.push(item, tag, null, classes, attributes, pseudos); return; } getByClass: if (classes && node.getElementsByClassName && !this.brokenGEBCN){ children = node.getElementsByClassName(classList.join(' ')); if (!(children && children.length)) break getByClass; for (i = 0; item = children[i++];) this.push(item, tag, id, null, attributes, pseudos); return; } } getByTag: { children = node.getElementsByTagName(tag); if (!(children && children.length)) break getByTag; if (!this.brokenStarGEBTN) tag = null; for (i = 0; item = children[i++];) this.push(item, tag, id, classes, attributes, pseudos); } }, '>': function(node, tag, id, classes, attributes, pseudos){ // direct children if ((node = node.firstChild)) do { if (node.nodeType == 1) this.push(node, tag, id, classes, attributes, pseudos); } while ((node = node.nextSibling)); }, '+': function(node, tag, id, classes, attributes, pseudos){ // next sibling while ((node = node.nextSibling)) if (node.nodeType == 1){ this.push(node, tag, id, classes, attributes, pseudos); break; } }, '^': function(node, tag, id, classes, attributes, pseudos){ // first child node = node.firstChild; if (node){ if (node.nodeType == 1) this.push(node, tag, id, classes, attributes, pseudos); else this['combinator:+'](node, tag, id, classes, attributes, pseudos); } }, '~': function(node, tag, id, classes, attributes, pseudos){ // next siblings while ((node = node.nextSibling)){ if (node.nodeType != 1) continue; var uid = this.getUID(node); if (this.bitUniques[uid]) break; this.bitUniques[uid] = true; this.push(node, tag, id, classes, attributes, pseudos); } }, '++': function(node, tag, id, classes, attributes, pseudos){ // next sibling and previous sibling this['combinator:+'](node, tag, id, classes, attributes, pseudos); this['combinator:!+'](node, tag, id, classes, attributes, pseudos); }, '~~': function(node, tag, id, classes, attributes, pseudos){ // next siblings and previous siblings this['combinator:~'](node, tag, id, classes, attributes, pseudos); this['combinator:!~'](node, tag, id, classes, attributes, pseudos); }, '!': function(node, tag, id, classes, attributes, pseudos){ // all parent nodes up to document while ((node = node.parentNode)) if (node !== this.document) this.push(node, tag, id, classes, attributes, pseudos); }, '!>': function(node, tag, id, classes, attributes, pseudos){ // direct parent (one level) node = node.parentNode; if (node !== this.document) this.push(node, tag, id, classes, attributes, pseudos); }, '!+': function(node, tag, id, classes, attributes, pseudos){ // previous sibling while ((node = node.previousSibling)) if (node.nodeType == 1){ this.push(node, tag, id, classes, attributes, pseudos); break; } }, '!^': function(node, tag, id, classes, attributes, pseudos){ // last child node = node.lastChild; if (node){ if (node.nodeType == 1) this.push(node, tag, id, classes, attributes, pseudos); else this['combinator:!+'](node, tag, id, classes, attributes, pseudos); } }, '!~': function(node, tag, id, classes, attributes, pseudos){ // previous siblings while ((node = node.previousSibling)){ if (node.nodeType != 1) continue; var uid = this.getUID(node); if (this.bitUniques[uid]) break; this.bitUniques[uid] = true; this.push(node, tag, id, classes, attributes, pseudos); } } }; for (var c in combinators) local['combinator:' + c] = combinators[c]; var pseudos = { /*<pseudo-selectors>*/ 'empty': function(node){ var child = node.firstChild; return !(child && child.nodeType == 1) && !(node.innerText || node.textContent || '').length; }, 'not': function(node, expression){ return !this.matchNode(node, expression); }, 'contains': function(node, text){ return (node.innerText || node.textContent || '').indexOf(text) > -1; }, 'first-child': function(node){ while ((node = node.previousSibling)) if (node.nodeType == 1) return false; return true; }, 'last-child': function(node){ while ((node = node.nextSibling)) if (node.nodeType == 1) return false; return true; }, 'only-child': function(node){ var prev = node; while ((prev = prev.previousSibling)) if (prev.nodeType == 1) return false; var next = node; while ((next = next.nextSibling)) if (next.nodeType == 1) return false; return true; }, /*<nth-pseudo-selectors>*/ 'nth-child': local.createNTHPseudo('firstChild', 'nextSibling', 'posNTH'), 'nth-last-child': local.createNTHPseudo('lastChild', 'previousSibling', 'posNTHLast'), 'nth-of-type': local.createNTHPseudo('firstChild', 'nextSibling', 'posNTHType', true), 'nth-last-of-type': local.createNTHPseudo('lastChild', 'previousSibling', 'posNTHTypeLast', true), 'index': function(node, index){ return this['pseudo:nth-child'](node, '' + (index + 1)); }, 'even': function(node){ return this['pseudo:nth-child'](node, '2n'); }, 'odd': function(node){ return this['pseudo:nth-child'](node, '2n+1'); }, /*</nth-pseudo-selectors>*/ /*<of-type-pseudo-selectors>*/ 'first-of-type': function(node){ var nodeName = node.nodeName; while ((node = node.previousSibling)) if (node.nodeName == nodeName) return false; return true; }, 'last-of-type': function(node){ var nodeName = node.nodeName; while ((node = node.nextSibling)) if (node.nodeName == nodeName) return false; return true; }, 'only-of-type': function(node){ var prev = node, nodeName = node.nodeName; while ((prev = prev.previousSibling)) if (prev.nodeName == nodeName) return false; var next = node; while ((next = next.nextSibling)) if (next.nodeName == nodeName) return false; return true; }, /*</of-type-pseudo-selectors>*/ // custom pseudos 'enabled': function(node){ return !node.disabled; }, 'disabled': function(node){ return node.disabled; }, 'checked': function(node){ return node.checked || node.selected; }, 'focus': function(node){ return this.isHTMLDocument && this.document.activeElement === node && (node.href || node.type || this.hasAttribute(node, 'tabindex')); }, 'root': function(node){ return (node === this.root); }, 'selected': function(node){ return node.selected; } /*</pseudo-selectors>*/ }; for (var p in pseudos) local['pseudo:' + p] = pseudos[p]; // attributes methods var attributeGetters = local.attributeGetters = { 'for': function(){ return ('htmlFor' in this) ? this.htmlFor : this.getAttribute('for'); }, 'href': function(){ return ('href' in this) ? this.getAttribute('href', 2) : this.getAttribute('href'); }, 'style': function(){ return (this.style) ? this.style.cssText : this.getAttribute('style'); }, 'tabindex': function(){ var attributeNode = this.getAttributeNode('tabindex'); return (attributeNode && attributeNode.specified) ? attributeNode.nodeValue : null; }, 'type': function(){ return this.getAttribute('type'); }, 'maxlength': function(){ var attributeNode = this.getAttributeNode('maxLength'); return (attributeNode && attributeNode.specified) ? attributeNode.nodeValue : null; } }; attributeGetters.MAXLENGTH = attributeGetters.maxLength = attributeGetters.maxlength; // Slick var Slick = local.Slick = (this.Slick || {}); Slick.version = '1.1.7'; // Slick finder Slick.search = function(context, expression, append){ return local.search(context, expression, append); }; Slick.find = function(context, expression){ return local.search(context, expression, null, true); }; // Slick containment checker Slick.contains = function(container, node){ local.setDocument(container); return local.contains(container, node); }; // Slick attribute getter Slick.getAttribute = function(node, name){ local.setDocument(node); return local.getAttribute(node, name); }; Slick.hasAttribute = function(node, name){ local.setDocument(node); return local.hasAttribute(node, name); }; // Slick matcher Slick.match = function(node, selector){ if (!(node && selector)) return false; if (!selector || selector === node) return true; local.setDocument(node); return local.matchNode(node, selector); }; // Slick attribute accessor Slick.defineAttributeGetter = function(name, fn){ local.attributeGetters[name] = fn; return this; }; Slick.lookupAttributeGetter = function(name){ return local.attributeGetters[name]; }; // Slick pseudo accessor Slick.definePseudo = function(name, fn){ local['pseudo:' + name] = function(node, argument){ return fn.call(node, argument); }; return this; }; Slick.lookupPseudo = function(name){ var pseudo = local['pseudo:' + name]; if (pseudo) return function(argument){ return pseudo.call(this, argument); }; return null; }; // Slick overrides accessor Slick.override = function(regexp, fn){ local.override(regexp, fn); return this; }; Slick.isXML = local.isXML; Slick.uidOf = function(node){ return local.getUIDHTML(node); }; if (!this.Slick) this.Slick = Slick; }).apply(/*<CommonJS>*/(typeof exports != 'undefined') ? exports : /*</CommonJS>*/this); /* --- name: Element description: One of the most important items in MooTools. Contains the dollar function, the dollars function, and an handful of cross-browser, time-saver methods to let you easily work with HTML Elements. license: MIT-style license. requires: [Window, Document, Array, String, Function, Object, Number, Slick.Parser, Slick.Finder] provides: [Element, Elements, $, $$, Iframe, Selectors] ... */ var Element = function(tag, props){ var konstructor = Element.Constructors[tag]; if (konstructor) return konstructor(props); if (typeof tag != 'string') return document.id(tag).set(props); if (!props) props = {}; if (!(/^[\w-]+$/).test(tag)){ var parsed = Slick.parse(tag).expressions[0][0]; tag = (parsed.tag == '*') ? 'div' : parsed.tag; if (parsed.id && props.id == null) props.id = parsed.id; var attributes = parsed.attributes; if (attributes) for (var attr, i = 0, l = attributes.length; i < l; i++){ attr = attributes[i]; if (props[attr.key] != null) continue; if (attr.value != null && attr.operator == '=') props[attr.key] = attr.value; else if (!attr.value && !attr.operator) props[attr.key] = true; } if (parsed.classList && props['class'] == null) props['class'] = parsed.classList.join(' '); } return document.newElement(tag, props); }; if (Browser.Element){ Element.prototype = Browser.Element.prototype; // IE8 and IE9 require the wrapping. Element.prototype._fireEvent = (function(fireEvent){ return function(type, event){ return fireEvent.call(this, type, event); }; })(Element.prototype.fireEvent); } new Type('Element', Element).mirror(function(name){ if (Array.prototype[name]) return; var obj = {}; obj[name] = function(){ var results = [], args = arguments, elements = true; for (var i = 0, l = this.length; i < l; i++){ var element = this[i], result = results[i] = element[name].apply(element, args); elements = (elements && typeOf(result) == 'element'); } return (elements) ? new Elements(results) : results; }; Elements.implement(obj); }); if (!Browser.Element){ Element.parent = Object; Element.Prototype = { '$constructor': Element, '$family': Function.from('element').hide() }; Element.mirror(function(name, method){ Element.Prototype[name] = method; }); } Element.Constructors = {}; var IFrame = new Type('IFrame', function(){ var params = Array.link(arguments, { properties: Type.isObject, iframe: function(obj){ return (obj != null); } }); var props = params.properties || {}, iframe; if (params.iframe) iframe = document.id(params.iframe); var onload = props.onload || function(){}; delete props.onload; props.id = props.name = [props.id, props.name, iframe ? (iframe.id || iframe.name) : 'IFrame_' + String.uniqueID()].pick(); iframe = new Element(iframe || 'iframe', props); var onLoad = function(){ onload.call(iframe.contentWindow); }; if (window.frames[props.id]) onLoad(); else iframe.addListener('load', onLoad); return iframe; }); var Elements = this.Elements = function(nodes){ if (nodes && nodes.length){ var uniques = {}, node; for (var i = 0; node = nodes[i++];){ var uid = Slick.uidOf(node); if (!uniques[uid]){ uniques[uid] = true; this.push(node); } } } }; Elements.prototype = {length: 0}; Elements.parent = Array; new Type('Elements', Elements).implement({ filter: function(filter, bind){ if (!filter) return this; return new Elements(Array.filter(this, (typeOf(filter) == 'string') ? function(item){ return item.match(filter); } : filter, bind)); }.protect(), push: function(){ var length = this.length; for (var i = 0, l = arguments.length; i < l; i++){ var item = document.id(arguments[i]); if (item) this[length++] = item; } return (this.length = length); }.protect(), unshift: function(){ var items = []; for (var i = 0, l = arguments.length; i < l; i++){ var item = document.id(arguments[i]); if (item) items.push(item); } return Array.prototype.unshift.apply(this, items); }.protect(), concat: function(){ var newElements = new Elements(this); for (var i = 0, l = arguments.length; i < l; i++){ var item = arguments[i]; if (Type.isEnumerable(item)) newElements.append(item); else newElements.push(item); } return newElements; }.protect(), append: function(collection){ for (var i = 0, l = collection.length; i < l; i++) this.push(collection[i]); return this; }.protect(), empty: function(){ while (this.length) delete this[--this.length]; return this; }.protect() }); (function(){ // FF, IE var splice = Array.prototype.splice, object = {'0': 0, '1': 1, length: 2}; splice.call(object, 1, 1); if (object[1] == 1) Elements.implement('splice', function(){ var length = this.length; var result = splice.apply(this, arguments); while (length >= this.length) delete this[length--]; return result; }.protect()); Array.forEachMethod(function(method, name){ Elements.implement(name, method); }); Array.mirror(Elements); /*<ltIE8>*/ var createElementAcceptsHTML; try { createElementAcceptsHTML = (document.createElement('<input name=x>').name == 'x'); } catch (e){} var escapeQuotes = function(html){ return ('' + html).replace(/&/g, '&amp;').replace(/"/g, '&quot;'); }; /*</ltIE8>*/ Document.implement({ newElement: function(tag, props){ if (props && props.checked != null) props.defaultChecked = props.checked; /*<ltIE8>*/// Fix for readonly name and type properties in IE < 8 if (createElementAcceptsHTML && props){ tag = '<' + tag; if (props.name) tag += ' name="' + escapeQuotes(props.name) + '"'; if (props.type) tag += ' type="' + escapeQuotes(props.type) + '"'; tag += '>'; delete props.name; delete props.type; } /*</ltIE8>*/ return this.id(this.createElement(tag)).set(props); } }); })(); (function(){ Slick.uidOf(window); Slick.uidOf(document); Document.implement({ newTextNode: function(text){ return this.createTextNode(text); }, getDocument: function(){ return this; }, getWindow: function(){ return this.window; }, id: (function(){ var types = { string: function(id, nocash, doc){ id = Slick.find(doc, '#' + id.replace(/(\W)/g, '\\$1')); return (id) ? types.element(id, nocash) : null; }, element: function(el, nocash){ Slick.uidOf(el); if (!nocash && !el.$family && !(/^(?:object|embed)$/i).test(el.tagName)){ var fireEvent = el.fireEvent; // wrapping needed in IE7, or else crash el._fireEvent = function(type, event){ return fireEvent(type, event); }; Object.append(el, Element.Prototype); } return el; }, object: function(obj, nocash, doc){ if (obj.toElement) return types.element(obj.toElement(doc), nocash); return null; } }; types.textnode = types.whitespace = types.window = types.document = function(zero){ return zero; }; return function(el, nocash, doc){ if (el && el.$family && el.uniqueNumber) return el; var type = typeOf(el); return (types[type]) ? types[type](el, nocash, doc || document) : null; }; })() }); if (window.$ == null) Window.implement('$', function(el, nc){ return document.id(el, nc, this.document); }); Window.implement({ getDocument: function(){ return this.document; }, getWindow: function(){ return this; } }); [Document, Element].invoke('implement', { getElements: function(expression){ return Slick.search(this, expression, new Elements); }, getElement: function(expression){ return document.id(Slick.find(this, expression)); } }); var contains = {contains: function(element){ return Slick.contains(this, element); }}; if (!document.contains) Document.implement(contains); if (!document.createElement('div').contains) Element.implement(contains); // tree walking var injectCombinator = function(expression, combinator){ if (!expression) return combinator; expression = Object.clone(Slick.parse(expression)); var expressions = expression.expressions; for (var i = expressions.length; i--;) expressions[i][0].combinator = combinator; return expression; }; Object.forEach({ getNext: '~', getPrevious: '!~', getParent: '!' }, function(combinator, method){ Element.implement(method, function(expression){ return this.getElement(injectCombinator(expression, combinator)); }); }); Object.forEach({ getAllNext: '~', getAllPrevious: '!~', getSiblings: '~~', getChildren: '>', getParents: '!' }, function(combinator, method){ Element.implement(method, function(expression){ return this.getElements(injectCombinator(expression, combinator)); }); }); Element.implement({ getFirst: function(expression){ return document.id(Slick.search(this, injectCombinator(expression, '>'))[0]); }, getLast: function(expression){ return document.id(Slick.search(this, injectCombinator(expression, '>')).getLast()); }, getWindow: function(){ return this.ownerDocument.window; }, getDocument: function(){ return this.ownerDocument; }, getElementById: function(id){ return document.id(Slick.find(this, '#' + ('' + id).replace(/(\W)/g, '\\$1'))); }, match: function(expression){ return !expression || Slick.match(this, expression); } }); if (window.$$ == null) Window.implement('$$', function(selector){ if (arguments.length == 1){ if (typeof selector == 'string') return Slick.search(this.document, selector, new Elements); else if (Type.isEnumerable(selector)) return new Elements(selector); } return new Elements(arguments); }); // Inserters var inserters = { before: function(context, element){ var parent = element.parentNode; if (parent) parent.insertBefore(context, element); }, after: function(context, element){ var parent = element.parentNode; if (parent) parent.insertBefore(context, element.nextSibling); }, bottom: function(context, element){ element.appendChild(context); }, top: function(context, element){ element.insertBefore(context, element.firstChild); } }; inserters.inside = inserters.bottom; // getProperty / setProperty var propertyGetters = {}, propertySetters = {}; // properties var properties = {}; Array.forEach([ 'type', 'value', 'defaultValue', 'accessKey', 'cellPadding', 'cellSpacing', 'colSpan', 'frameBorder', 'rowSpan', 'tabIndex', 'useMap' ], function(property){ properties[property.toLowerCase()] = property; }); properties.html = 'innerHTML'; properties.text = (document.createElement('div').textContent == null) ? 'innerText': 'textContent'; Object.forEach(properties, function(real, key){ propertySetters[key] = function(node, value){ node[real] = value; }; propertyGetters[key] = function(node){ return node[real]; }; }); // Booleans var bools = [ 'compact', 'nowrap', 'ismap', 'declare', 'noshade', 'checked', 'disabled', 'readOnly', 'multiple', 'selected', 'noresize', 'defer', 'defaultChecked', 'autofocus', 'controls', 'autoplay', 'loop' ]; var booleans = {}; Array.forEach(bools, function(bool){ var lower = bool.toLowerCase(); booleans[lower] = bool; propertySetters[lower] = function(node, value){ node[bool] = !!value; }; propertyGetters[lower] = function(node){ return !!node[bool]; }; }); // Special cases Object.append(propertySetters, { 'class': function(node, value){ ('className' in node) ? node.className = (value || '') : node.setAttribute('class', value); }, 'for': function(node, value){ ('htmlFor' in node) ? node.htmlFor = value : node.setAttribute('for', value); }, 'style': function(node, value){ (node.style) ? node.style.cssText = value : node.setAttribute('style', value); }, 'value': function(node, value){ node.value = (value != null) ? value : ''; } }); propertyGetters['class'] = function(node){ return ('className' in node) ? node.className || null : node.getAttribute('class'); }; /* <webkit> */ var el = document.createElement('button'); // IE sets type as readonly and throws try { el.type = 'button'; } catch(e){} if (el.type != 'button') propertySetters.type = function(node, value){ node.setAttribute('type', value); }; el = null; /* </webkit> */ /*<IE>*/ var input = document.createElement('input'); input.value = 't'; input.type = 'submit'; if (input.value != 't') propertySetters.type = function(node, type){ var value = node.value; node.type = type; node.value = value; }; input = null; /*</IE>*/ /* getProperty, setProperty */ /* <ltIE9> */ var pollutesGetAttribute = (function(div){ div.random = 'attribute'; return (div.getAttribute('random') == 'attribute'); })(document.createElement('div')); /* <ltIE9> */ Element.implement({ setProperty: function(name, value){ var setter = propertySetters[name.toLowerCase()]; if (setter){ setter(this, value); } else { /* <ltIE9> */ if (pollutesGetAttribute) var attributeWhiteList = this.retrieve('$attributeWhiteList', {}); /* </ltIE9> */ if (value == null){ this.removeAttribute(name); /* <ltIE9> */ if (pollutesGetAttribute) delete attributeWhiteList[name]; /* </ltIE9> */ } else { this.setAttribute(name, '' + value); /* <ltIE9> */ if (pollutesGetAttribute) attributeWhiteList[name] = true; /* </ltIE9> */ } } return this; }, setProperties: function(attributes){ for (var attribute in attributes) this.setProperty(attribute, attributes[attribute]); return this; }, getProperty: function(name){ var getter = propertyGetters[name.toLowerCase()]; if (getter) return getter(this); /* <ltIE9> */ if (pollutesGetAttribute){ var attr = this.getAttributeNode(name), attributeWhiteList = this.retrieve('$attributeWhiteList', {}); if (!attr) return null; if (attr.expando && !attributeWhiteList[name]){ var outer = this.outerHTML; // segment by the opening tag and find mention of attribute name if (outer.substr(0, outer.search(/\/?['"]?>(?![^<]*<['"])/)).indexOf(name) < 0) return null; attributeWhiteList[name] = true; } } /* </ltIE9> */ var result = Slick.getAttribute(this, name); return (!result && !Slick.hasAttribute(this, name)) ? null : result; }, getProperties: function(){ var args = Array.from(arguments); return args.map(this.getProperty, this).associate(args); }, removeProperty: function(name){ return this.setProperty(name, null); }, removeProperties: function(){ Array.each(arguments, this.removeProperty, this); return this; }, set: function(prop, value){ var property = Element.Properties[prop]; (property && property.set) ? property.set.call(this, value) : this.setProperty(prop, value); }.overloadSetter(), get: function(prop){ var property = Element.Properties[prop]; return (property && property.get) ? property.get.apply(this) : this.getProperty(prop); }.overloadGetter(), erase: function(prop){ var property = Element.Properties[prop]; (property && property.erase) ? property.erase.apply(this) : this.removeProperty(prop); return this; }, hasClass: function(className){ return this.className.clean().contains(className, ' '); }, addClass: function(className){ if (!this.hasClass(className)) this.className = (this.className + ' ' + className).clean(); return this; }, removeClass: function(className){ this.className = this.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)'), '$1'); return this; }, toggleClass: function(className, force){ if (force == null) force = !this.hasClass(className); return (force) ? this.addClass(className) : this.removeClass(className); }, adopt: function(){ var parent = this, fragment, elements = Array.flatten(arguments), length = elements.length; if (length > 1) parent = fragment = document.createDocumentFragment(); for (var i = 0; i < length; i++){ var element = document.id(elements[i], true); if (element) parent.appendChild(element); } if (fragment) this.appendChild(fragment); return this; }, appendText: function(text, where){ return this.grab(this.getDocument().newTextNode(text), where); }, grab: function(el, where){ inserters[where || 'bottom'](document.id(el, true), this); return this; }, inject: function(el, where){ inserters[where || 'bottom'](this, document.id(el, true)); return this; }, replaces: function(el){ el = document.id(el, true); el.parentNode.replaceChild(this, el); return this; }, wraps: function(el, where){ el = document.id(el, true); return this.replaces(el).grab(el, where); }, getSelected: function(){ this.selectedIndex; // Safari 3.2.1 return new Elements(Array.from(this.options).filter(function(option){ return option.selected; })); }, toQueryString: function(){ var queryString = []; this.getElements('input, select, textarea').each(function(el){ var type = el.type; if (!el.name || el.disabled || type == 'submit' || type == 'reset' || type == 'file' || type == 'image') return; var value = (el.get('tag') == 'select') ? el.getSelected().map(function(opt){ // IE return document.id(opt).get('value'); }) : ((type == 'radio' || type == 'checkbox') && !el.checked) ? null : el.get('value'); Array.from(value).each(function(val){ if (typeof val != 'undefined') queryString.push(encodeURIComponent(el.name) + '=' + encodeURIComponent(val)); }); }); return queryString.join('&'); } }); var collected = {}, storage = {}; var get = function(uid){ return (storage[uid] || (storage[uid] = {})); }; var clean = function(item){ var uid = item.uniqueNumber; if (item.removeEvents) item.removeEvents(); if (item.clearAttributes) item.clearAttributes(); if (uid != null){ delete collected[uid]; delete storage[uid]; } return item; }; var formProps = {input: 'checked', option: 'selected', textarea: 'value'}; Element.implement({ destroy: function(){ var children = clean(this).getElementsByTagName('*'); Array.each(children, clean); Element.dispose(this); return null; }, empty: function(){ Array.from(this.childNodes).each(Element.dispose); return this; }, dispose: function(){ return (this.parentNode) ? this.parentNode.removeChild(this) : this; }, clone: function(contents, keepid){ contents = contents !== false; var clone = this.cloneNode(contents), ce = [clone], te = [this], i; if (contents){ ce.append(Array.from(clone.getElementsByTagName('*'))); te.append(Array.from(this.getElementsByTagName('*'))); } for (i = ce.length; i--;){ var node = ce[i], element = te[i]; if (!keepid) node.removeAttribute('id'); /*<ltIE9>*/ if (node.clearAttributes){ node.clearAttributes(); node.mergeAttributes(element); node.removeAttribute('uniqueNumber'); if (node.options){ var no = node.options, eo = element.options; for (var j = no.length; j--;) no[j].selected = eo[j].selected; } } /*</ltIE9>*/ var prop = formProps[element.tagName.toLowerCase()]; if (prop && element[prop]) node[prop] = element[prop]; } /*<ltIE9>*/ if (Browser.ie){ var co = clone.getElementsByTagName('object'), to = this.getElementsByTagName('object'); for (i = co.length; i--;) co[i].outerHTML = to[i].outerHTML; } /*</ltIE9>*/ return document.id(clone); } }); [Element, Window, Document].invoke('implement', { addListener: function(type, fn){ if (type == 'unload'){ var old = fn, self = this; fn = function(){ self.removeListener('unload', fn); old(); }; } else { collected[Slick.uidOf(this)] = this; } if (this.addEventListener) this.addEventListener(type, fn, !!arguments[2]); else this.attachEvent('on' + type, fn); return this; }, removeListener: function(type, fn){ if (this.removeEventListener) this.removeEventListener(type, fn, !!arguments[2]); else this.detachEvent('on' + type, fn); return this; }, retrieve: function(property, dflt){ var storage = get(Slick.uidOf(this)), prop = storage[property]; if (dflt != null && prop == null) prop = storage[property] = dflt; return prop != null ? prop : null; }, store: function(property, value){ var storage = get(Slick.uidOf(this)); storage[property] = value; return this; }, eliminate: function(property){ var storage = get(Slick.uidOf(this)); delete storage[property]; return this; } }); /*<ltIE9>*/ if (window.attachEvent && !window.addEventListener) window.addListener('unload', function(){ Object.each(collected, clean); if (window.CollectGarbage) CollectGarbage(); }); /*</ltIE9>*/ Element.Properties = {}; Element.Properties.style = { set: function(style){ this.style.cssText = style; }, get: function(){ return this.style.cssText; }, erase: function(){ this.style.cssText = ''; } }; Element.Properties.tag = { get: function(){ return this.tagName.toLowerCase(); } }; Element.Properties.html = { set: function(html){ if (html == null) html = ''; else if (typeOf(html) == 'array') html = html.join(''); this.innerHTML = html; }, erase: function(){ this.innerHTML = ''; } }; /*<ltIE9>*/ // technique by jdbarlett - http://jdbartlett.com/innershiv/ var div = document.createElement('div'); div.innerHTML = '<nav></nav>'; var supportsHTML5Elements = (div.childNodes.length == 1); if (!supportsHTML5Elements){ var tags = 'abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video'.split(' '), fragment = document.createDocumentFragment(), l = tags.length; while (l--) fragment.createElement(tags[l]); } div = null; /*</ltIE9>*/ /*<IE>*/ var supportsTableInnerHTML = Function.attempt(function(){ var table = document.createElement('table'); table.innerHTML = '<tr><td></td></tr>'; return true; }); /*<ltFF4>*/ var tr = document.createElement('tr'), html = '<td></td>'; tr.innerHTML = html; var supportsTRInnerHTML = (tr.innerHTML == html); tr = null; /*</ltFF4>*/ if (!supportsTableInnerHTML || !supportsTRInnerHTML || !supportsHTML5Elements){ Element.Properties.html.set = (function(set){ var translations = { table: [1, '<table>', '</table>'], select: [1, '<select>', '</select>'], tbody: [2, '<table><tbody>', '</tbody></table>'], tr: [3, '<table><tbody><tr>', '</tr></tbody></table>'] }; translations.thead = translations.tfoot = translations.tbody; return function(html){ var wrap = translations[this.get('tag')]; if (!wrap && !supportsHTML5Elements) wrap = [0, '', '']; if (!wrap) return set.call(this, html); var level = wrap[0], wrapper = document.createElement('div'), target = wrapper; if (!supportsHTML5Elements) fragment.appendChild(wrapper); wrapper.innerHTML = [wrap[1], html, wrap[2]].flatten().join(''); while (level--) target = target.firstChild; this.empty().adopt(target.childNodes); if (!supportsHTML5Elements) fragment.removeChild(wrapper); wrapper = null; }; })(Element.Properties.html.set); } /*</IE>*/ /*<ltIE9>*/ var testForm = document.createElement('form'); testForm.innerHTML = '<select><option>s</option></select>'; if (testForm.firstChild.value != 's') Element.Properties.value = { set: function(value){ var tag = this.get('tag'); if (tag != 'select') return this.setProperty('value', value); var options = this.getElements('option'); for (var i = 0; i < options.length; i++){ var option = options[i], attr = option.getAttributeNode('value'), optionValue = (attr && attr.specified) ? option.value : option.get('text'); if (optionValue == value) return option.selected = true; } }, get: function(){ var option = this, tag = option.get('tag'); if (tag != 'select' && tag != 'option') return this.getProperty('value'); if (tag == 'select' && !(option = option.getSelected()[0])) return ''; var attr = option.getAttributeNode('value'); return (attr && attr.specified) ? option.value : option.get('text'); } }; testForm = null; /*</ltIE9>*/ /*<IE>*/ if (document.createElement('div').getAttributeNode('id')) Element.Properties.id = { set: function(id){ this.id = this.getAttributeNode('id').value = id; }, get: function(){ return this.id || null; }, erase: function(){ this.id = this.getAttributeNode('id').value = ''; } }; /*</IE>*/ })(); /* --- name: Element.Style description: Contains methods for interacting with the styles of Elements in a fashionable way. license: MIT-style license. requires: Element provides: Element.Style ... */ (function(){ var html = document.html; //<ltIE9> // Check for oldIE, which does not remove styles when they're set to null var el = document.createElement('div'); el.style.color = 'red'; el.style.color = null; var doesNotRemoveStyles = el.style.color == 'red'; el = null; //</ltIE9> Element.Properties.styles = {set: function(styles){ this.setStyles(styles); }}; var hasOpacity = (html.style.opacity != null), hasFilter = (html.style.filter != null), reAlpha = /alpha\(opacity=([\d.]+)\)/i; var setVisibility = function(element, opacity){ element.store('$opacity', opacity); element.style.visibility = opacity > 0 || opacity == null ? 'visible' : 'hidden'; }; var setOpacity = (hasOpacity ? function(element, opacity){ element.style.opacity = opacity; } : (hasFilter ? function(element, opacity){ var style = element.style; if (!element.currentStyle || !element.currentStyle.hasLayout) style.zoom = 1; if (opacity == null || opacity == 1) opacity = ''; else opacity = 'alpha(opacity=' + (opacity * 100).limit(0, 100).round() + ')'; var filter = style.filter || element.getComputedStyle('filter') || ''; style.filter = reAlpha.test(filter) ? filter.replace(reAlpha, opacity) : filter + opacity; if (!style.filter) style.removeAttribute('filter'); } : setVisibility)); var getOpacity = (hasOpacity ? function(element){ var opacity = element.style.opacity || element.getComputedStyle('opacity'); return (opacity == '') ? 1 : opacity.toFloat(); } : (hasFilter ? function(element){ var filter = (element.style.filter || element.getComputedStyle('filter')), opacity; if (filter) opacity = filter.match(reAlpha); return (opacity == null || filter == null) ? 1 : (opacity[1] / 100); } : function(element){ var opacity = element.retrieve('$opacity'); if (opacity == null) opacity = (element.style.visibility == 'hidden' ? 0 : 1); return opacity; })); var floatName = (html.style.cssFloat == null) ? 'styleFloat' : 'cssFloat'; Element.implement({ getComputedStyle: function(property){ if (this.currentStyle) return this.currentStyle[property.camelCase()]; var defaultView = Element.getDocument(this).defaultView, computed = defaultView ? defaultView.getComputedStyle(this, null) : null; return (computed) ? computed.getPropertyValue((property == floatName) ? 'float' : property.hyphenate()) : null; }, setStyle: function(property, value){ if (property == 'opacity'){ if (value != null) value = parseFloat(value); setOpacity(this, value); return this; } property = (property == 'float' ? floatName : property).camelCase(); if (typeOf(value) != 'string'){ var map = (Element.Styles[property] || '@').split(' '); value = Array.from(value).map(function(val, i){ if (!map[i]) return ''; return (typeOf(val) == 'number') ? map[i].replace('@', Math.round(val)) : val; }).join(' '); } else if (value == String(Number(value))){ value = Math.round(value); } this.style[property] = value; //<ltIE9> if ((value == '' || value == null) && doesNotRemoveStyles && this.style.removeAttribute){ this.style.removeAttribute(property); } //</ltIE9> return this; }, getStyle: function(property){ if (property == 'opacity') return getOpacity(this); property = (property == 'float' ? floatName : property).camelCase(); var result = this.style[property]; if (!result || property == 'zIndex'){ result = []; for (var style in Element.ShortStyles){ if (property != style) continue; for (var s in Element.ShortStyles[style]) result.push(this.getStyle(s)); return result.join(' '); } result = this.getComputedStyle(property); } if (result){ result = String(result); var color = result.match(/rgba?\([\d\s,]+\)/); if (color) result = result.replace(color[0], color[0].rgbToHex()); } if (Browser.opera || Browser.ie){ if ((/^(height|width)$/).test(property) && !(/px$/.test(result))){ var values = (property == 'width') ? ['left', 'right'] : ['top', 'bottom'], size = 0; values.each(function(value){ size += this.getStyle('border-' + value + '-width').toInt() + this.getStyle('padding-' + value).toInt(); }, this); return this['offset' + property.capitalize()] - size + 'px'; } if (Browser.ie && (/^border(.+)Width|margin|padding/).test(property) && isNaN(parseFloat(result))){ return '0px'; } } return result; }, setStyles: function(styles){ for (var style in styles) this.setStyle(style, styles[style]); return this; }, getStyles: function(){ var result = {}; Array.flatten(arguments).each(function(key){ result[key] = this.getStyle(key); }, this); return result; } }); Element.Styles = { left: '@px', top: '@px', bottom: '@px', right: '@px', width: '@px', height: '@px', maxWidth: '@px', maxHeight: '@px', minWidth: '@px', minHeight: '@px', backgroundColor: 'rgb(@, @, @)', backgroundPosition: '@px @px', color: 'rgb(@, @, @)', fontSize: '@px', letterSpacing: '@px', lineHeight: '@px', clip: 'rect(@px @px @px @px)', margin: '@px @px @px @px', padding: '@px @px @px @px', border: '@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)', borderWidth: '@px @px @px @px', borderStyle: '@ @ @ @', borderColor: 'rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)', zIndex: '@', 'zoom': '@', fontWeight: '@', textIndent: '@px', opacity: '@' }; Element.ShortStyles = {margin: {}, padding: {}, border: {}, borderWidth: {}, borderStyle: {}, borderColor: {}}; ['Top', 'Right', 'Bottom', 'Left'].each(function(direction){ var Short = Element.ShortStyles; var All = Element.Styles; ['margin', 'padding'].each(function(style){ var sd = style + direction; Short[style][sd] = All[sd] = '@px'; }); var bd = 'border' + direction; Short.border[bd] = All[bd] = '@px @ rgb(@, @, @)'; var bdw = bd + 'Width', bds = bd + 'Style', bdc = bd + 'Color'; Short[bd] = {}; Short.borderWidth[bdw] = Short[bd][bdw] = All[bdw] = '@px'; Short.borderStyle[bds] = Short[bd][bds] = All[bds] = '@'; Short.borderColor[bdc] = Short[bd][bdc] = All[bdc] = 'rgb(@, @, @)'; }); })(); /* --- name: Element.Event description: Contains Element methods for dealing with events. This file also includes mouseenter and mouseleave custom Element Events, if necessary. license: MIT-style license. requires: [Element, Event] provides: Element.Event ... */ (function(){ Element.Properties.events = {set: function(events){ this.addEvents(events); }}; [Element, Window, Document].invoke('implement', { addEvent: function(type, fn){ var events = this.retrieve('events', {}); if (!events[type]) events[type] = {keys: [], values: []}; if (events[type].keys.contains(fn)) return this; events[type].keys.push(fn); var realType = type, custom = Element.Events[type], condition = fn, self = this; if (custom){ if (custom.onAdd) custom.onAdd.call(this, fn, type); if (custom.condition){ condition = function(event){ if (custom.condition.call(this, event, type)) return fn.call(this, event); return true; }; } if (custom.base) realType = Function.from(custom.base).call(this, type); } var defn = function(){ return fn.call(self); }; var nativeEvent = Element.NativeEvents[realType]; if (nativeEvent){ if (nativeEvent == 2){ defn = function(event){ event = new DOMEvent(event, self.getWindow()); if (condition.call(self, event) === false) event.stop(); }; } this.addListener(realType, defn, arguments[2]); } events[type].values.push(defn); return this; }, removeEvent: function(type, fn){ var events = this.retrieve('events'); if (!events || !events[type]) return this; var list = events[type]; var index = list.keys.indexOf(fn); if (index == -1) return this; var value = list.values[index]; delete list.keys[index]; delete list.values[index]; var custom = Element.Events[type]; if (custom){ if (custom.onRemove) custom.onRemove.call(this, fn, type); if (custom.base) type = Function.from(custom.base).call(this, type); } return (Element.NativeEvents[type]) ? this.removeListener(type, value, arguments[2]) : this; }, addEvents: function(events){ for (var event in events) this.addEvent(event, events[event]); return this; }, removeEvents: function(events){ var type; if (typeOf(events) == 'object'){ for (type in events) this.removeEvent(type, events[type]); return this; } var attached = this.retrieve('events'); if (!attached) return this; if (!events){ for (type in attached) this.removeEvents(type); this.eliminate('events'); } else if (attached[events]){ attached[events].keys.each(function(fn){ this.removeEvent(events, fn); }, this); delete attached[events]; } return this; }, fireEvent: function(type, args, delay){ var events = this.retrieve('events'); if (!events || !events[type]) return this; args = Array.from(args); events[type].keys.each(function(fn){ if (delay) fn.delay(delay, this, args); else fn.apply(this, args); }, this); return this; }, cloneEvents: function(from, type){ from = document.id(from); var events = from.retrieve('events'); if (!events) return this; if (!type){ for (var eventType in events) this.cloneEvents(from, eventType); } else if (events[type]){ events[type].keys.each(function(fn){ this.addEvent(type, fn); }, this); } return this; } }); Element.NativeEvents = { click: 2, dblclick: 2, mouseup: 2, mousedown: 2, contextmenu: 2, //mouse buttons mousewheel: 2, DOMMouseScroll: 2, //mouse wheel mouseover: 2, mouseout: 2, mousemove: 2, selectstart: 2, selectend: 2, //mouse movement keydown: 2, keypress: 2, keyup: 2, //keyboard orientationchange: 2, // mobile touchstart: 2, touchmove: 2, touchend: 2, touchcancel: 2, // touch gesturestart: 2, gesturechange: 2, gestureend: 2, // gesture focus: 2, blur: 2, change: 2, reset: 2, select: 2, submit: 2, paste: 2, input: 2, //form elements load: 2, unload: 1, beforeunload: 2, resize: 1, move: 1, DOMContentLoaded: 1, readystatechange: 1, //window error: 1, abort: 1, scroll: 1 //misc }; Element.Events = {mousewheel: { base: (Browser.firefox) ? 'DOMMouseScroll' : 'mousewheel' }}; if ('onmouseenter' in document.documentElement){ Element.NativeEvents.mouseenter = Element.NativeEvents.mouseleave = 2; } else { var check = function(event){ var related = event.relatedTarget; if (related == null) return true; if (!related) return false; return (related != this && related.prefix != 'xul' && typeOf(this) != 'document' && !this.contains(related)); }; Element.Events.mouseenter = { base: 'mouseover', condition: check }; Element.Events.mouseleave = { base: 'mouseout', condition: check }; } /*<ltIE9>*/ if (!window.addEventListener){ Element.NativeEvents.propertychange = 2; Element.Events.change = { base: function(){ var type = this.type; return (this.get('tag') == 'input' && (type == 'radio' || type == 'checkbox')) ? 'propertychange' : 'change' }, condition: function(event){ return this.type != 'radio' || (event.event.propertyName == 'checked' && this.checked); } } } /*</ltIE9>*/ })(); /* --- name: Element.Delegation description: Extends the Element native object to include the delegate method for more efficient event management. license: MIT-style license. requires: [Element.Event] provides: [Element.Delegation] ... */ (function(){ var eventListenerSupport = !!window.addEventListener; Element.NativeEvents.focusin = Element.NativeEvents.focusout = 2; var bubbleUp = function(self, match, fn, event, target){ while (target && target != self){ if (match(target, event)) return fn.call(target, event, target); target = document.id(target.parentNode); } }; var map = { mouseenter: { base: 'mouseover' }, mouseleave: { base: 'mouseout' }, focus: { base: 'focus' + (eventListenerSupport ? '' : 'in'), capture: true }, blur: { base: eventListenerSupport ? 'blur' : 'focusout', capture: true } }; /*<ltIE9>*/ var _key = '$delegation:'; var formObserver = function(type){ return { base: 'focusin', remove: function(self, uid){ var list = self.retrieve(_key + type + 'listeners', {})[uid]; if (list && list.forms) for (var i = list.forms.length; i--;){ list.forms[i].removeEvent(type, list.fns[i]); } }, listen: function(self, match, fn, event, target, uid){ var form = (target.get('tag') == 'form') ? target : event.target.getParent('form'); if (!form) return; var listeners = self.retrieve(_key + type + 'listeners', {}), listener = listeners[uid] || {forms: [], fns: []}, forms = listener.forms, fns = listener.fns; if (forms.indexOf(form) != -1) return; forms.push(form); var _fn = function(event){ bubbleUp(self, match, fn, event, target); }; form.addEvent(type, _fn); fns.push(_fn); listeners[uid] = listener; self.store(_key + type + 'listeners', listeners); } }; }; var inputObserver = function(type){ return { base: 'focusin', listen: function(self, match, fn, event, target){ var events = {blur: function(){ this.removeEvents(events); }}; events[type] = function(event){ bubbleUp(self, match, fn, event, target); }; event.target.addEvents(events); } }; }; if (!eventListenerSupport) Object.append(map, { submit: formObserver('submit'), reset: formObserver('reset'), change: inputObserver('change'), select: inputObserver('select') }); /*</ltIE9>*/ var proto = Element.prototype, addEvent = proto.addEvent, removeEvent = proto.removeEvent; var relay = function(old, method){ return function(type, fn, useCapture){ if (type.indexOf(':relay') == -1) return old.call(this, type, fn, useCapture); var parsed = Slick.parse(type).expressions[0][0]; if (parsed.pseudos[0].key != 'relay') return old.call(this, type, fn, useCapture); var newType = parsed.tag; parsed.pseudos.slice(1).each(function(pseudo){ newType += ':' + pseudo.key + (pseudo.value ? '(' + pseudo.value + ')' : ''); }); old.call(this, type, fn); return method.call(this, newType, parsed.pseudos[0].value, fn); }; }; var delegation = { addEvent: function(type, match, fn){ var storage = this.retrieve('$delegates', {}), stored = storage[type]; if (stored) for (var _uid in stored){ if (stored[_uid].fn == fn && stored[_uid].match == match) return this; } var _type = type, _match = match, _fn = fn, _map = map[type] || {}; type = _map.base || _type; match = function(target){ return Slick.match(target, _match); }; var elementEvent = Element.Events[_type]; if (elementEvent && elementEvent.condition){ var __match = match, condition = elementEvent.condition; match = function(target, event){ return __match(target, event) && condition.call(target, event, type); }; } var self = this, uid = String.uniqueID(); var delegator = _map.listen ? function(event, target){ if (!target && event && event.target) target = event.target; if (target) _map.listen(self, match, fn, event, target, uid); } : function(event, target){ if (!target && event && event.target) target = event.target; if (target) bubbleUp(self, match, fn, event, target); }; if (!stored) stored = {}; stored[uid] = { match: _match, fn: _fn, delegator: delegator }; storage[_type] = stored; return addEvent.call(this, type, delegator, _map.capture); }, removeEvent: function(type, match, fn, _uid){ var storage = this.retrieve('$delegates', {}), stored = storage[type]; if (!stored) return this; if (_uid){ var _type = type, delegator = stored[_uid].delegator, _map = map[type] || {}; type = _map.base || _type; if (_map.remove) _map.remove(this, _uid); delete stored[_uid]; storage[_type] = stored; return removeEvent.call(this, type, delegator); } var __uid, s; if (fn) for (__uid in stored){ s = stored[__uid]; if (s.match == match && s.fn == fn) return delegation.removeEvent.call(this, type, match, fn, __uid); } else for (__uid in stored){ s = stored[__uid]; if (s.match == match) delegation.removeEvent.call(this, type, match, s.fn, __uid); } return this; } }; [Element, Window, Document].invoke('implement', { addEvent: relay(addEvent, delegation.addEvent), removeEvent: relay(removeEvent, delegation.removeEvent) }); })(); /* --- name: Element.Dimensions description: Contains methods to work with size, scroll, or positioning of Elements and the window object. license: MIT-style license. credits: - Element positioning based on the [qooxdoo](http://qooxdoo.org/) code and smart browser fixes, [LGPL License](http://www.gnu.org/licenses/lgpl.html). - Viewport dimensions based on [YUI](http://developer.yahoo.com/yui/) code, [BSD License](http://developer.yahoo.com/yui/license.html). requires: [Element, Element.Style] provides: [Element.Dimensions] ... */ (function(){ var element = document.createElement('div'), child = document.createElement('div'); element.style.height = '0'; element.appendChild(child); var brokenOffsetParent = (child.offsetParent === element); element = child = null; var isOffset = function(el){ return styleString(el, 'position') != 'static' || isBody(el); }; var isOffsetStatic = function(el){ return isOffset(el) || (/^(?:table|td|th)$/i).test(el.tagName); }; Element.implement({ scrollTo: function(x, y){ if (isBody(this)){ this.getWindow().scrollTo(x, y); } else { this.scrollLeft = x; this.scrollTop = y; } return this; }, getSize: function(){ if (isBody(this)) return this.getWindow().getSize(); return {x: this.offsetWidth, y: this.offsetHeight}; }, getScrollSize: function(){ if (isBody(this)) return this.getWindow().getScrollSize(); return {x: this.scrollWidth, y: this.scrollHeight}; }, getScroll: function(){ if (isBody(this)) return this.getWindow().getScroll(); return {x: this.scrollLeft, y: this.scrollTop}; }, getScrolls: function(){ var element = this.parentNode, position = {x: 0, y: 0}; while (element && !isBody(element)){ position.x += element.scrollLeft; position.y += element.scrollTop; element = element.parentNode; } return position; }, getOffsetParent: brokenOffsetParent ? function(){ var element = this; if (isBody(element) || styleString(element, 'position') == 'fixed') return null; var isOffsetCheck = (styleString(element, 'position') == 'static') ? isOffsetStatic : isOffset; while ((element = element.parentNode)){ if (isOffsetCheck(element)) return element; } return null; } : function(){ var element = this; if (isBody(element) || styleString(element, 'position') == 'fixed') return null; try { return element.offsetParent; } catch(e) {} return null; }, getOffsets: function(){ if (this.getBoundingClientRect && !Browser.Platform.ios){ var bound = this.getBoundingClientRect(), html = document.id(this.getDocument().documentElement), htmlScroll = html.getScroll(), elemScrolls = this.getScrolls(), isFixed = (styleString(this, 'position') == 'fixed'); return { x: bound.left.toInt() + elemScrolls.x + ((isFixed) ? 0 : htmlScroll.x) - html.clientLeft, y: bound.top.toInt() + elemScrolls.y + ((isFixed) ? 0 : htmlScroll.y) - html.clientTop }; } var element = this, position = {x: 0, y: 0}; if (isBody(this)) return position; while (element && !isBody(element)){ position.x += element.offsetLeft; position.y += element.offsetTop; if (Browser.firefox){ if (!borderBox(element)){ position.x += leftBorder(element); position.y += topBorder(element); } var parent = element.parentNode; if (parent && styleString(parent, 'overflow') != 'visible'){ position.x += leftBorder(parent); position.y += topBorder(parent); } } else if (element != this && Browser.safari){ position.x += leftBorder(element); position.y += topBorder(element); } element = element.offsetParent; } if (Browser.firefox && !borderBox(this)){ position.x -= leftBorder(this); position.y -= topBorder(this); } return position; }, getPosition: function(relative){ var offset = this.getOffsets(), scroll = this.getScrolls(); var position = { x: offset.x - scroll.x, y: offset.y - scroll.y }; if (relative && (relative = document.id(relative))){ var relativePosition = relative.getPosition(); return {x: position.x - relativePosition.x - leftBorder(relative), y: position.y - relativePosition.y - topBorder(relative)}; } return position; }, getCoordinates: function(element){ if (isBody(this)) return this.getWindow().getCoordinates(); var position = this.getPosition(element), size = this.getSize(); var obj = { left: position.x, top: position.y, width: size.x, height: size.y }; obj.right = obj.left + obj.width; obj.bottom = obj.top + obj.height; return obj; }, computePosition: function(obj){ return { left: obj.x - styleNumber(this, 'margin-left'), top: obj.y - styleNumber(this, 'margin-top') }; }, setPosition: function(obj){ return this.setStyles(this.computePosition(obj)); } }); [Document, Window].invoke('implement', { getSize: function(){ var doc = getCompatElement(this); return {x: doc.clientWidth, y: doc.clientHeight}; }, getScroll: function(){ var win = this.getWindow(), doc = getCompatElement(this); return {x: win.pageXOffset || doc.scrollLeft, y: win.pageYOffset || doc.scrollTop}; }, getScrollSize: function(){ var doc = getCompatElement(this), min = this.getSize(), body = this.getDocument().body; return {x: Math.max(doc.scrollWidth, body.scrollWidth, min.x), y: Math.max(doc.scrollHeight, body.scrollHeight, min.y)}; }, getPosition: function(){ return {x: 0, y: 0}; }, getCoordinates: function(){ var size = this.getSize(); return {top: 0, left: 0, bottom: size.y, right: size.x, height: size.y, width: size.x}; } }); // private methods var styleString = Element.getComputedStyle; function styleNumber(element, style){ return styleString(element, style).toInt() || 0; } function borderBox(element){ return styleString(element, '-moz-box-sizing') == 'border-box'; } function topBorder(element){ return styleNumber(element, 'border-top-width'); } function leftBorder(element){ return styleNumber(element, 'border-left-width'); } function isBody(element){ return (/^(?:body|html)$/i).test(element.tagName); } function getCompatElement(element){ var doc = element.getDocument(); return (!doc.compatMode || doc.compatMode == 'CSS1Compat') ? doc.html : doc.body; } })(); //aliases Element.alias({position: 'setPosition'}); //compatability [Window, Document, Element].invoke('implement', { getHeight: function(){ return this.getSize().y; }, getWidth: function(){ return this.getSize().x; }, getScrollTop: function(){ return this.getScroll().y; }, getScrollLeft: function(){ return this.getScroll().x; }, getScrollHeight: function(){ return this.getScrollSize().y; }, getScrollWidth: function(){ return this.getScrollSize().x; }, getTop: function(){ return this.getPosition().y; }, getLeft: function(){ return this.getPosition().x; } }); /* --- name: Fx description: Contains the basic animation logic to be extended by all other Fx Classes. license: MIT-style license. requires: [Chain, Events, Options] provides: Fx ... */ (function(){ var Fx = this.Fx = new Class({ Implements: [Chain, Events, Options], options: { /* onStart: nil, onCancel: nil, onComplete: nil, */ fps: 60, unit: false, duration: 500, frames: null, frameSkip: true, link: 'ignore' }, initialize: function(options){ this.subject = this.subject || this; this.setOptions(options); }, getTransition: function(){ return function(p){ return -(Math.cos(Math.PI * p) - 1) / 2; }; }, step: function(now){ if (this.options.frameSkip){ var diff = (this.time != null) ? (now - this.time) : 0, frames = diff / this.frameInterval; this.time = now; this.frame += frames; } else { this.frame++; } if (this.frame < this.frames){ var delta = this.transition(this.frame / this.frames); this.set(this.compute(this.from, this.to, delta)); } else { this.frame = this.frames; this.set(this.compute(this.from, this.to, 1)); this.stop(); } }, set: function(now){ return now; }, compute: function(from, to, delta){ return Fx.compute(from, to, delta); }, check: function(){ if (!this.isRunning()) return true; switch (this.options.link){ case 'cancel': this.cancel(); return true; case 'chain': this.chain(this.caller.pass(arguments, this)); return false; } return false; }, start: function(from, to){ if (!this.check(from, to)) return this; this.from = from; this.to = to; this.frame = (this.options.frameSkip) ? 0 : -1; this.time = null; this.transition = this.getTransition(); var frames = this.options.frames, fps = this.options.fps, duration = this.options.duration; this.duration = Fx.Durations[duration] || duration.toInt(); this.frameInterval = 1000 / fps; this.frames = frames || Math.round(this.duration / this.frameInterval); this.fireEvent('start', this.subject); pushInstance.call(this, fps); return this; }, stop: function(){ if (this.isRunning()){ this.time = null; pullInstance.call(this, this.options.fps); if (this.frames == this.frame){ this.fireEvent('complete', this.subject); if (!this.callChain()) this.fireEvent('chainComplete', this.subject); } else { this.fireEvent('stop', this.subject); } } return this; }, cancel: function(){ if (this.isRunning()){ this.time = null; pullInstance.call(this, this.options.fps); this.frame = this.frames; this.fireEvent('cancel', this.subject).clearChain(); } return this; }, pause: function(){ if (this.isRunning()){ this.time = null; pullInstance.call(this, this.options.fps); } return this; }, resume: function(){ if ((this.frame < this.frames) && !this.isRunning()) pushInstance.call(this, this.options.fps); return this; }, isRunning: function(){ var list = instances[this.options.fps]; return list && list.contains(this); } }); Fx.compute = function(from, to, delta){ return (to - from) * delta + from; }; Fx.Durations = {'short': 250, 'normal': 500, 'long': 1000}; // global timers var instances = {}, timers = {}; var loop = function(){ var now = Date.now(); for (var i = this.length; i--;){ var instance = this[i]; if (instance) instance.step(now); } }; var pushInstance = function(fps){ var list = instances[fps] || (instances[fps] = []); list.push(this); if (!timers[fps]) timers[fps] = loop.periodical(Math.round(1000 / fps), list); }; var pullInstance = function(fps){ var list = instances[fps]; if (list){ list.erase(this); if (!list.length && timers[fps]){ delete instances[fps]; timers[fps] = clearInterval(timers[fps]); } } }; })(); /* --- name: Fx.CSS description: Contains the CSS animation logic. Used by Fx.Tween, Fx.Morph, Fx.Elements. license: MIT-style license. requires: [Fx, Element.Style] provides: Fx.CSS ... */ Fx.CSS = new Class({ Extends: Fx, //prepares the base from/to object prepare: function(element, property, values){ values = Array.from(values); var from = values[0], to = values[1]; if (to == null){ to = from; from = element.getStyle(property); var unit = this.options.unit; // adapted from: https://github.com/ryanmorr/fx/blob/master/fx.js#L299 if (unit && from.slice(-unit.length) != unit && parseFloat(from) != 0){ element.setStyle(property, to + unit); var value = element.getComputedStyle(property); // IE and Opera support pixelLeft or pixelWidth if (!(/px$/.test(value))){ value = element.style[('pixel-' + property).camelCase()]; if (value == null){ // adapted from Dean Edwards' http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 var left = element.style.left; element.style.left = to + unit; value = element.style.pixelLeft; element.style.left = left; } } from = (to || 1) / (parseFloat(value) || 1) * (parseFloat(from) || 0); element.setStyle(property, from + unit); } } return {from: this.parse(from), to: this.parse(to)}; }, //parses a value into an array parse: function(value){ value = Function.from(value)(); value = (typeof value == 'string') ? value.split(' ') : Array.from(value); return value.map(function(val){ val = String(val); var found = false; Object.each(Fx.CSS.Parsers, function(parser, key){ if (found) return; var parsed = parser.parse(val); if (parsed || parsed === 0) found = {value: parsed, parser: parser}; }); found = found || {value: val, parser: Fx.CSS.Parsers.String}; return found; }); }, //computes by a from and to prepared objects, using their parsers. compute: function(from, to, delta){ var computed = []; (Math.min(from.length, to.length)).times(function(i){ computed.push({value: from[i].parser.compute(from[i].value, to[i].value, delta), parser: from[i].parser}); }); computed.$family = Function.from('fx:css:value'); return computed; }, //serves the value as settable serve: function(value, unit){ if (typeOf(value) != 'fx:css:value') value = this.parse(value); var returned = []; value.each(function(bit){ returned = returned.concat(bit.parser.serve(bit.value, unit)); }); return returned; }, //renders the change to an element render: function(element, property, value, unit){ element.setStyle(property, this.serve(value, unit)); }, //searches inside the page css to find the values for a selector search: function(selector){ if (Fx.CSS.Cache[selector]) return Fx.CSS.Cache[selector]; var to = {}, selectorTest = new RegExp('^' + selector.escapeRegExp() + '$'); Array.each(document.styleSheets, function(sheet, j){ var href = sheet.href; if (href && href.contains('://') && !href.contains(document.domain)) return; var rules = sheet.rules || sheet.cssRules; Array.each(rules, function(rule, i){ if (!rule.style) return; var selectorText = (rule.selectorText) ? rule.selectorText.replace(/^\w+/, function(m){ return m.toLowerCase(); }) : null; if (!selectorText || !selectorTest.test(selectorText)) return; Object.each(Element.Styles, function(value, style){ if (!rule.style[style] || Element.ShortStyles[style]) return; value = String(rule.style[style]); to[style] = ((/^rgb/).test(value)) ? value.rgbToHex() : value; }); }); }); return Fx.CSS.Cache[selector] = to; } }); Fx.CSS.Cache = {}; Fx.CSS.Parsers = { Color: { parse: function(value){ if (value.match(/^#[0-9a-f]{3,6}$/i)) return value.hexToRgb(true); return ((value = value.match(/(\d+),\s*(\d+),\s*(\d+)/))) ? [value[1], value[2], value[3]] : false; }, compute: function(from, to, delta){ return from.map(function(value, i){ return Math.round(Fx.compute(from[i], to[i], delta)); }); }, serve: function(value){ return value.map(Number); } }, Number: { parse: parseFloat, compute: Fx.compute, serve: function(value, unit){ return (unit) ? value + unit : value; } }, String: { parse: Function.from(false), compute: function(zero, one){ return one; }, serve: function(zero){ return zero; } } }; /* --- name: Fx.Tween description: Formerly Fx.Style, effect to transition any CSS property for an element. license: MIT-style license. requires: Fx.CSS provides: [Fx.Tween, Element.fade, Element.highlight] ... */ Fx.Tween = new Class({ Extends: Fx.CSS, initialize: function(element, options){ this.element = this.subject = document.id(element); this.parent(options); }, set: function(property, now){ if (arguments.length == 1){ now = property; property = this.property || this.options.property; } this.render(this.element, property, now, this.options.unit); return this; }, start: function(property, from, to){ if (!this.check(property, from, to)) return this; var args = Array.flatten(arguments); this.property = this.options.property || args.shift(); var parsed = this.prepare(this.element, this.property, args); return this.parent(parsed.from, parsed.to); } }); Element.Properties.tween = { set: function(options){ this.get('tween').cancel().setOptions(options); return this; }, get: function(){ var tween = this.retrieve('tween'); if (!tween){ tween = new Fx.Tween(this, {link: 'cancel'}); this.store('tween', tween); } return tween; } }; Element.implement({ tween: function(property, from, to){ this.get('tween').start(property, from, to); return this; }, fade: function(how){ var fade = this.get('tween'), method, args = ['opacity'].append(arguments), toggle; if (args[1] == null) args[1] = 'toggle'; switch (args[1]){ case 'in': method = 'start'; args[1] = 1; break; case 'out': method = 'start'; args[1] = 0; break; case 'show': method = 'set'; args[1] = 1; break; case 'hide': method = 'set'; args[1] = 0; break; case 'toggle': var flag = this.retrieve('fade:flag', this.getStyle('opacity') == 1); method = 'start'; args[1] = flag ? 0 : 1; this.store('fade:flag', !flag); toggle = true; break; default: method = 'start'; } if (!toggle) this.eliminate('fade:flag'); fade[method].apply(fade, args); var to = args[args.length - 1]; if (method == 'set' || to != 0) this.setStyle('visibility', to == 0 ? 'hidden' : 'visible'); else fade.chain(function(){ this.element.setStyle('visibility', 'hidden'); this.callChain(); }); return this; }, highlight: function(start, end){ if (!end){ end = this.retrieve('highlight:original', this.getStyle('background-color')); end = (end == 'transparent') ? '#fff' : end; } var tween = this.get('tween'); tween.start('background-color', start || '#ffff88', end).chain(function(){ this.setStyle('background-color', this.retrieve('highlight:original')); tween.callChain(); }.bind(this)); return this; } }); /* --- name: Fx.Morph description: Formerly Fx.Styles, effect to transition any number of CSS properties for an element using an object of rules, or CSS based selector rules. license: MIT-style license. requires: Fx.CSS provides: Fx.Morph ... */ Fx.Morph = new Class({ Extends: Fx.CSS, initialize: function(element, options){ this.element = this.subject = document.id(element); this.parent(options); }, set: function(now){ if (typeof now == 'string') now = this.search(now); for (var p in now) this.render(this.element, p, now[p], this.options.unit); return this; }, compute: function(from, to, delta){ var now = {}; for (var p in from) now[p] = this.parent(from[p], to[p], delta); return now; }, start: function(properties){ if (!this.check(properties)) return this; if (typeof properties == 'string') properties = this.search(properties); var from = {}, to = {}; for (var p in properties){ var parsed = this.prepare(this.element, p, properties[p]); from[p] = parsed.from; to[p] = parsed.to; } return this.parent(from, to); } }); Element.Properties.morph = { set: function(options){ this.get('morph').cancel().setOptions(options); return this; }, get: function(){ var morph = this.retrieve('morph'); if (!morph){ morph = new Fx.Morph(this, {link: 'cancel'}); this.store('morph', morph); } return morph; } }; Element.implement({ morph: function(props){ this.get('morph').start(props); return this; } }); /* --- name: Fx.Transitions description: Contains a set of advanced transitions to be used with any of the Fx Classes. license: MIT-style license. credits: - Easing Equations by Robert Penner, <http://www.robertpenner.com/easing/>, modified and optimized to be used with MooTools. requires: Fx provides: Fx.Transitions ... */ Fx.implement({ getTransition: function(){ var trans = this.options.transition || Fx.Transitions.Sine.easeInOut; if (typeof trans == 'string'){ var data = trans.split(':'); trans = Fx.Transitions; trans = trans[data[0]] || trans[data[0].capitalize()]; if (data[1]) trans = trans['ease' + data[1].capitalize() + (data[2] ? data[2].capitalize() : '')]; } return trans; } }); Fx.Transition = function(transition, params){ params = Array.from(params); var easeIn = function(pos){ return transition(pos, params); }; return Object.append(easeIn, { easeIn: easeIn, easeOut: function(pos){ return 1 - transition(1 - pos, params); }, easeInOut: function(pos){ return (pos <= 0.5 ? transition(2 * pos, params) : (2 - transition(2 * (1 - pos), params))) / 2; } }); }; Fx.Transitions = { linear: function(zero){ return zero; } }; Fx.Transitions.extend = function(transitions){ for (var transition in transitions) Fx.Transitions[transition] = new Fx.Transition(transitions[transition]); }; Fx.Transitions.extend({ Pow: function(p, x){ return Math.pow(p, x && x[0] || 6); }, Expo: function(p){ return Math.pow(2, 8 * (p - 1)); }, Circ: function(p){ return 1 - Math.sin(Math.acos(p)); }, Sine: function(p){ return 1 - Math.cos(p * Math.PI / 2); }, Back: function(p, x){ x = x && x[0] || 1.618; return Math.pow(p, 2) * ((x + 1) * p - x); }, Bounce: function(p){ var value; for (var a = 0, b = 1; 1; a += b, b /= 2){ if (p >= (7 - 4 * a) / 11){ value = b * b - Math.pow((11 - 6 * a - 11 * p) / 4, 2); break; } } return value; }, Elastic: function(p, x){ return Math.pow(2, 10 * --p) * Math.cos(20 * p * Math.PI * (x && x[0] || 1) / 3); } }); ['Quad', 'Cubic', 'Quart', 'Quint'].each(function(transition, i){ Fx.Transitions[transition] = new Fx.Transition(function(p){ return Math.pow(p, i + 2); }); }); /* --- name: Request description: Powerful all purpose Request Class. Uses XMLHTTPRequest. license: MIT-style license. requires: [Object, Element, Chain, Events, Options, Browser] provides: Request ... */ (function(){ var empty = function(){}, progressSupport = ('onprogress' in new Browser.Request); var Request = this.Request = new Class({ Implements: [Chain, Events, Options], options: {/* onRequest: function(){}, onLoadstart: function(event, xhr){}, onProgress: function(event, xhr){}, onUploadProgress: function(event, xhr){}, onComplete: function(){}, onCancel: function(){}, onSuccess: function(responseText, responseXML){}, onFailure: function(xhr){}, onException: function(headerName, value){}, onTimeout: function(){}, user: '', password: '',*/ url: '', data: '', processData: true, responseType: null, headers: { 'X-Requested-With': 'XMLHttpRequest', 'Accept': 'text/javascript, text/html, application/xml, text/xml, */*' }, async: true, format: false, method: 'post', link: 'ignore', isSuccess: null, emulation: true, urlEncoded: true, encoding: 'utf-8', evalScripts: false, evalResponse: false, timeout: 0, noCache: false }, initialize: function(options){ this.xhr = new Browser.Request(); this.setOptions(options); if ((typeof ArrayBuffer != 'undefined' && options.data instanceof ArrayBuffer) || (typeof Blob != 'undefined' && options.data instanceof Blob) || (typeof Uint8Array != 'undefined' && options.data instanceof Uint8Array)){ // set data in directly if we're passing binary data because // otherwise setOptions will convert the data into an empty object this.options.data = options.data; } this.headers = this.options.headers; }, onStateChange: function(){ var xhr = this.xhr; if (xhr.readyState != 4 || !this.running) return; this.running = false; this.status = 0; Function.attempt(function(){ var status = xhr.status; this.status = (status == 1223) ? 204 : status; }.bind(this)); xhr.onreadystatechange = empty; if (progressSupport) xhr.onprogress = xhr.onloadstart = empty; clearTimeout(this.timer); this.response = {text: (!this.options.responseType && this.xhr.responseText) || '', xml: (!this.options.responseType && this.xhr.responseXML)}; if (this.options.isSuccess.call(this, this.status)) this.success(this.options.responseType ? this.xhr.response : this.response.text, this.response.xml); else this.failure(); }, isSuccess: function(){ var status = this.status; return (status >= 200 && status < 300); }, isRunning: function(){ return !!this.running; }, processScripts: function(text){ if (typeof text != 'string') return text; if (this.options.evalResponse || (/(ecma|java)script/).test(this.getHeader('Content-type'))) return Browser.exec(text); return text.stripScripts(this.options.evalScripts); }, success: function(text, xml){ this.onSuccess(this.processScripts(text), xml); }, onSuccess: function(){ this.fireEvent('complete', arguments).fireEvent('success', arguments).callChain(); }, failure: function(){ this.onFailure(); }, onFailure: function(){ this.fireEvent('complete').fireEvent('failure', this.xhr); }, loadstart: function(event){ this.fireEvent('loadstart', [event, this.xhr]); }, progress: function(event){ this.fireEvent('progress', [event, this.xhr]); }, uploadprogress: function(event){ this.fireEvent('uploadprogress', [event, this.xhr]); }, timeout: function(){ this.fireEvent('timeout', this.xhr); }, setHeader: function(name, value){ this.headers[name] = value; return this; }, getHeader: function(name){ return Function.attempt(function(){ return this.xhr.getResponseHeader(name); }.bind(this)); }, check: function(){ if (!this.running) return true; switch (this.options.link){ case 'cancel': this.cancel(); return true; case 'chain': this.chain(this.caller.pass(arguments, this)); return false; } return false; }, send: function(options){ if (!this.check(options)) return this; this.options.isSuccess = this.options.isSuccess || this.isSuccess; this.running = true; var type = typeOf(options); if (type == 'string' || type == 'element') options = {data: options}; var old = this.options; options = Object.append({data: old.data, url: old.url, method: old.method}, options); var data = options.data, url = String(options.url), method = options.method.toLowerCase(); if (this.options.processData || method == 'get' || method == 'delete'){ switch (typeOf(data)){ case 'element': data = document.id(data).toQueryString(); break; case 'object': case 'hash': data = Object.toQueryString(data); } if (this.options.format){ var format = 'format=' + this.options.format; data = (data) ? format + '&' + data : format; } if (this.options.emulation && !['get', 'post'].contains(method)){ var _method = '_method=' + method; data = (data) ? _method + '&' + data : _method; method = 'post'; } } if (this.options.urlEncoded && ['post', 'put'].contains(method)){ var encoding = (this.options.encoding) ? '; charset=' + this.options.encoding : ''; this.headers['Content-type'] = 'application/x-www-form-urlencoded' + encoding; } if (!url) url = document.location.pathname; var trimPosition = url.lastIndexOf('/'); if (trimPosition > -1 && (trimPosition = url.indexOf('#')) > -1) url = url.substr(0, trimPosition); if (this.options.noCache) url += (url.contains('?') ? '&' : '?') + String.uniqueID(); if (data && method == 'get'){ url += (url.contains('?') ? '&' : '?') + data; data = null; } var xhr = this.xhr; if (progressSupport){ xhr.onloadstart = this.loadstart.bind(this); xhr.onprogress = this.progress.bind(this); if(xhr.upload) xhr.upload.onprogress = this.uploadprogress.bind(this); } xhr.open(method.toUpperCase(), url, this.options.async, this.options.user, this.options.password); if (this.options.user && 'withCredentials' in xhr) xhr.withCredentials = true; xhr.onreadystatechange = this.onStateChange.bind(this); Object.each(this.headers, function(value, key){ try { xhr.setRequestHeader(key, value); } catch (e){ this.fireEvent('exception', [key, value]); } }, this); if (this.options.responseType){ xhr.responseType = this.options.responseType.toLowerCase(); } this.fireEvent('request'); xhr.send(data); if (!this.options.async) this.onStateChange(); else if (this.options.timeout) this.timer = this.timeout.delay(this.options.timeout, this); return this; }, cancel: function(){ if (!this.running) return this; this.running = false; var xhr = this.xhr; xhr.abort(); clearTimeout(this.timer); xhr.onreadystatechange = empty; if (progressSupport) xhr.onprogress = xhr.onloadstart = empty; this.xhr = new Browser.Request(); this.fireEvent('cancel'); return this; } }); var methods = {}; ['get', 'post', 'put', 'delete', 'GET', 'POST', 'PUT', 'DELETE'].each(function(method){ methods[method] = function(data){ var object = { method: method }; if (data != null) object.data = data; return this.send(object); }; }); Request.implement(methods); Element.Properties.send = { set: function(options){ var send = this.get('send').cancel(); send.setOptions(options); return this; }, get: function(){ var send = this.retrieve('send'); if (!send){ send = new Request({ data: this, link: 'cancel', method: this.get('method') || 'post', url: this.get('action') }); this.store('send', send); } return send; } }; Element.implement({ send: function(url){ var sender = this.get('send'); sender.send({data: this, url: url || sender.options.url}); return this; } }); })(); /* --- name: Request.HTML description: Extends the basic Request Class with additional methods for interacting with HTML responses. license: MIT-style license. requires: [Element, Request] provides: Request.HTML ... */ Request.HTML = new Class({ Extends: Request, options: { update: false, append: false, evalScripts: true, filter: false, headers: { Accept: 'text/html, application/xml, text/xml, */*' } }, success: function(text){ var options = this.options, response = this.response; response.html = text.stripScripts(function(script){ response.javascript = script; }); var match = response.html.match(/<body[^>]*>([\s\S]*?)<\/body>/i); if (match) response.html = match[1]; var temp = new Element('div').set('html', response.html); response.tree = temp.childNodes; response.elements = temp.getElements(options.filter || '*'); if (options.filter) response.tree = response.elements; if (options.update){ var update = document.id(options.update).empty(); if (options.filter) update.adopt(response.elements); else update.set('html', response.html); } else if (options.append){ var append = document.id(options.append); if (options.filter) response.elements.reverse().inject(append); else append.adopt(temp.getChildren()); } if (options.evalScripts) Browser.exec(response.javascript); this.onSuccess(response.tree, response.elements, response.html, response.javascript); } }); Element.Properties.load = { set: function(options){ var load = this.get('load').cancel(); load.setOptions(options); return this; }, get: function(){ var load = this.retrieve('load'); if (!load){ load = new Request.HTML({data: this, link: 'cancel', update: this, method: 'get'}); this.store('load', load); } return load; } }; Element.implement({ load: function(){ this.get('load').send(Array.link(arguments, {data: Type.isObject, url: Type.isString})); return this; } }); /* --- name: JSON description: JSON encoder and decoder. license: MIT-style license. SeeAlso: <http://www.json.org/> requires: [Array, String, Number, Function] provides: JSON ... */ if (typeof JSON == 'undefined') this.JSON = {}; (function(){ var special = {'\b': '\\b', '\t': '\\t', '\n': '\\n', '\f': '\\f', '\r': '\\r', '"' : '\\"', '\\': '\\\\'}; var escape = function(chr){ return special[chr] || '\\u' + ('0000' + chr.charCodeAt(0).toString(16)).slice(-4); }; JSON.validate = function(string){ string = string.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@'). replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']'). replace(/(?:^|:|,)(?:\s*\[)+/g, ''); return (/^[\],:{}\s]*$/).test(string); }; JSON.encode = JSON.stringify ? function(obj){ return JSON.stringify(obj); } : function(obj){ if (obj && obj.toJSON) obj = obj.toJSON(); switch (typeOf(obj)){ case 'string': return '"' + obj.replace(/[\x00-\x1f\\"]/g, escape) + '"'; case 'array': return '[' + obj.map(JSON.encode).clean() + ']'; case 'object': case 'hash': var string = []; Object.each(obj, function(value, key){ var json = JSON.encode(value); if (json) string.push(JSON.encode(key) + ':' + json); }); return '{' + string + '}'; case 'number': case 'boolean': return '' + obj; case 'null': return 'null'; } return null; }; JSON.decode = function(string, secure){ if (!string || typeOf(string) != 'string') return null; if (secure || JSON.secure){ if (JSON.parse) return JSON.parse(string); if (!JSON.validate(string)) throw new Error('JSON could not decode the input; security is enabled and the value is not secure.'); } return eval('(' + string + ')'); }; })(); /* --- name: Request.JSON description: Extends the basic Request Class with additional methods for sending and receiving JSON data. license: MIT-style license. requires: [Request, JSON] provides: Request.JSON ... */ Request.JSON = new Class({ Extends: Request, options: { /*onError: function(text, error){},*/ secure: true }, initialize: function(options){ this.parent(options); Object.append(this.headers, { 'Accept': 'application/json', 'X-Request': 'JSON' }); }, success: function(text){ var json; try { json = this.response.json = JSON.decode(text, this.options.secure); } catch (error){ this.fireEvent('error', [text, error]); return; } if (json == null) this.onFailure(); else this.onSuccess(json, text); } }); /* --- name: Cookie description: Class for creating, reading, and deleting browser Cookies. license: MIT-style license. credits: - Based on the functions by Peter-Paul Koch (http://quirksmode.org). requires: [Options, Browser] provides: Cookie ... */ var Cookie = new Class({ Implements: Options, options: { path: '/', domain: false, duration: false, secure: false, document: document, encode: true }, initialize: function(key, options){ this.key = key; this.setOptions(options); }, write: function(value){ if (this.options.encode) value = encodeURIComponent(value); if (this.options.domain) value += '; domain=' + this.options.domain; if (this.options.path) value += '; path=' + this.options.path; if (this.options.duration){ var date = new Date(); date.setTime(date.getTime() + this.options.duration * 24 * 60 * 60 * 1000); value += '; expires=' + date.toGMTString(); } if (this.options.secure) value += '; secure'; this.options.document.cookie = this.key + '=' + value; return this; }, read: function(){ var value = this.options.document.cookie.match('(?:^|;)\\s*' + this.key.escapeRegExp() + '=([^;]*)'); return (value) ? decodeURIComponent(value[1]) : null; }, dispose: function(){ new Cookie(this.key, Object.merge({}, this.options, {duration: -1})).write(''); return this; } }); Cookie.write = function(key, value, options){ return new Cookie(key, options).write(value); }; Cookie.read = function(key){ return new Cookie(key).read(); }; Cookie.dispose = function(key, options){ return new Cookie(key, options).dispose(); }; /* --- name: DOMReady description: Contains the custom event domready. license: MIT-style license. requires: [Browser, Element, Element.Event] provides: [DOMReady, DomReady] ... */ (function(window, document){ var ready, loaded, checks = [], shouldPoll, timer, testElement = document.createElement('div'); var domready = function(){ clearTimeout(timer); if (ready) return; Browser.loaded = ready = true; document.removeListener('DOMContentLoaded', domready).removeListener('readystatechange', check); document.fireEvent('domready'); window.fireEvent('domready'); }; var check = function(){ for (var i = checks.length; i--;) if (checks[i]()){ domready(); return true; } return false; }; var poll = function(){ clearTimeout(timer); if (!check()) timer = setTimeout(poll, 10); }; document.addListener('DOMContentLoaded', domready); /*<ltIE8>*/ // doScroll technique by Diego Perini http://javascript.nwbox.com/IEContentLoaded/ // testElement.doScroll() throws when the DOM is not ready, only in the top window var doScrollWorks = function(){ try { testElement.doScroll(); return true; } catch (e){} return false; }; // If doScroll works already, it can't be used to determine domready // e.g. in an iframe if (testElement.doScroll && !doScrollWorks()){ checks.push(doScrollWorks); shouldPoll = true; } /*</ltIE8>*/ if (document.readyState) checks.push(function(){ var state = document.readyState; return (state == 'loaded' || state == 'complete'); }); if ('onreadystatechange' in document) document.addListener('readystatechange', check); else shouldPoll = true; if (shouldPoll) poll(); Element.Events.domready = { onAdd: function(fn){ if (ready) fn.call(this); } }; // Make sure that domready fires before load Element.Events.load = { base: 'load', onAdd: function(fn){ if (loaded && this == window) fn.call(this); }, condition: function(){ if (this == window){ domready(); delete Element.Events.load; } return true; } }; // This is based on the custom load event window.addEvent('load', function(){ loaded = true; }); })(window, document);
lyonbros/composer.js
test/lib/mootools-core-1.4.5.js
JavaScript
mit
149,108
Template.HostList.events({ }); Template.HostList.helpers({ // Get list of Hosts sorted by the sort field. hosts: function () { return Hosts.find({}, {sort: {sort: 1}}); } }); Template.HostList.rendered = function () { // Make rows sortable/draggable using Jquery-UI. this.$('#sortable').sortable({ stop: function (event, ui) { // Define target row items. target = ui.item.get(0); before = ui.item.prev().get(0); after = ui.item.next().get(0); // Change the sort value dependnig on target location. // If target is now first, subtract 1 from sort value. if (!before) { newSort = Blaze.getData(after).sort - 1; // If target is now last, add 1 to sort value. } else if (!after) { newSort = Blaze.getData(before).sort + 1; // Get value of prev and next elements // to determine new target sort value. } else { newSort = (Blaze.getData(after).sort + Blaze.getData(before).sort) / 2; } // Update the database with new sort value. Hosts.update({_id: Blaze.getData(target)._id}, { $set: { sort: newSort } }); } }); };
bfodeke/syrinx
client/views/hosts/hostList/hostList.js
JavaScript
mit
1,204
import Helper, { states } from './_helper'; import { module, test } from 'qunit'; module('Integration | ORM | Has Many | Named Reflexive | association #set', function(hooks) { hooks.beforeEach(function() { this.helper = new Helper(); }); /* The model can update its association via parent, for all states */ states.forEach((state) => { test(`a ${state} can update its association to a list of saved children`, function(assert) { let [ tag, originalTags ] = this.helper[state](); let savedTag = this.helper.savedChild(); tag.labels = [ savedTag ]; assert.ok(tag.labels.includes(savedTag)); assert.equal(tag.labelIds[0], savedTag.id); assert.ok(savedTag.labels.includes(tag), 'the inverse was set'); tag.save(); originalTags.forEach(originalTag => { originalTag.reload(); assert.notOk(originalTag.labels.includes(tag), 'old inverses were cleared'); }); }); test(`a ${state} can update its association to a new parent`, function(assert) { let [ tag, originalTags ] = this.helper[state](); let newTag = this.helper.newChild(); tag.labels = [ newTag ]; assert.ok(tag.labels.includes(newTag)); assert.equal(tag.labelIds[0], undefined); assert.ok(newTag.labels.includes(tag), 'the inverse was set'); tag.save(); originalTags.forEach(originalTag => { originalTag.reload(); assert.notOk(originalTag.labels.includes(tag), 'old inverses were cleared'); }); }); test(`a ${state} can clear its association via an empty list`, function(assert) { let [ tag, originalTags ] = this.helper[state](); tag.labels = [ ]; assert.deepEqual(tag.labelIds, [ ]); assert.equal(tag.labels.models.length, 0); tag.save(); originalTags.forEach(originalTag => { originalTag.reload(); assert.notOk(originalTag.labels.includes(tag), 'old inverses were cleared'); }); }); test(`a ${state} can clear its association via an empty list`, function(assert) { let [ tag, originalTags ] = this.helper[state](); tag.labels = null; assert.deepEqual(tag.labelIds, [ ]); assert.equal(tag.labels.models.length, 0); tag.save(); originalTags.forEach(originalTag => { originalTag.reload(); assert.notOk(originalTag.labels.includes(tag), 'old inverses were cleared'); }); }); }); });
jherdman/ember-cli-mirage
tests/integration/orm/has-many/4-named-reflexive/association-set-test.js
JavaScript
mit
2,462
/* describe, it, afterEach, beforeEach */ import './snoocore-mocha'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; chai.use(chaiAsPromised); let expect = chai.expect; import config from '../config'; import util from './util'; import ResponseError from '../../src/ResponseError'; import Endpoint from '../../src/Endpoint'; describe(__filename, function () { this.timeout(config.testTimeout); it('should get a proper response error', function() { var message = 'oh hello there'; var response = { _status: 200, _body: 'a response body' }; var userConfig = util.getScriptUserConfig(); var endpoint = new Endpoint(userConfig, userConfig.serverOAuth, 'get', '/some/path', {}, // headers { some: 'args' }); var responseError = new ResponseError(message, response, endpoint); expect(responseError instanceof ResponseError); expect(responseError.status).to.eql(200); expect(responseError.url).to.eql('https://oauth.reddit.com/some/path'); expect(responseError.args).to.eql({ some: 'args', api_type: 'json' }); expect(responseError.message.indexOf('oh hello there')).to.not.eql(-1); expect(responseError.message.indexOf('Response Status')).to.not.eql(-1); expect(responseError.message.indexOf('Endpoint URL')).to.not.eql(-1); expect(responseError.message.indexOf('Arguments')).to.not.eql(-1); expect(responseError.message.indexOf('Response Body')).to.not.eql(-1); }); });
empyrical/snoocore
test/src/ResponseError-test.js
JavaScript
mit
1,705
function someFunctionWithAVeryLongName(firstParameter='something', secondParameter='booooo', third=null, fourthParameter=false, fifthParameter=123.12, sixthParam=true ){ } function someFunctionWithAVeryLongName2( firstParameter='something', secondParameter='booooo', ) { } function blah() { } function blah() { } var object = { someFunctionWithAVeryLongName: function( firstParameter='something', secondParameter='booooo', third=null, fourthParameter=false, fifthParameter=123.12, sixthParam=true ) /** w00t */ { } someFunctionWithAVeryLongName2: function (firstParameter='something', secondParameter='booooo', third=null ) { } someFunctionWithAVeryLongName3: function ( firstParameter, secondParameter, third=null ) { } someFunctionWithAVeryLongName4: function ( firstParameter, secondParameter ) { } someFunctionWithAVeryLongName5: function ( firstParameter, secondParameter=array(1,2,3), third=null ) { } } var a = Function('return 1+1');
oknoorap/wpcs
scripts/phpcs/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.js
JavaScript
mit
1,148
#!/usr/bin/env node require("babel/register")({ "stage": 1 }); var fs = require("fs"); GLOBAL.WALLACEVERSION = "Err"; GLOBAL.PLUGIN_CONTRIBUTORS = []; try { var p = JSON.parse(fs.readFileSync(__dirname+"/package.json")); GLOBAL.WALLACEVERSION = p.version; } catch(e) {} var Core = require("./core/Core.js"); process.on('uncaughtException', function (err) { console.error(err); }); GLOBAL.core = new Core();
Reanmachine/Wallace
main.js
JavaScript
mit
432
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ 'use strict'; /*global cEngine */ /*eslint no-console:0*/ (function (cEngine) { cEngine.extend('__name__', { create: function create(config) { config = config || {}; var __name__ = { cEnginePlugin: { name: '__name__', version: '0.0.1' }, init: function init(engine) { console.log('init', engine); }, start: function start() { console.log('start'); }, stop: function stop() { console.log('stop'); }, preStep: function preStep(context, width, height, dt) { console.log('preStep', context, width, height, dt); }, postStep: function postStep(context, width, height, dt) { console.log('postStep', context, width, height, dt); }, destroy: function destroy() { console.log('destroy'); } }; return __name__; } }); })(cEngine); },{}]},{},[1])
renmuell/makrenejs
docs/vendors/cEngine/plugins/cEngine.__pluginTemplate__.js
JavaScript
mit
1,422
// Copyright (c) 2015 Uber Technologies, 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. 'use strict'; var EventEmitter = require('./lib/event_emitter'); var stat = require('./lib/stat'); var inherits = require('util').inherits; var errors = require('./errors'); var States = require('./reqres_states'); function TChannelOutResponse(id, options) { options = options || {}; var self = this; EventEmitter.call(self); self.errorEvent = self.defineEvent('error'); self.spanEvent = self.defineEvent('span'); self.finishEvent = self.defineEvent('finish'); self.channel = options.channel; self.inreq = options.inreq; self.logger = options.logger; self.random = options.random; self.timers = options.timers; self.start = 0; self.end = 0; self.state = States.Initial; self.id = id || 0; self.code = options.code || 0; self.tracing = options.tracing || null; self.headers = options.headers || {}; self.checksumType = options.checksumType || 0; self.checksum = options.checksum || null; self.ok = self.code === 0; self.span = options.span || null; self.streamed = false; self._argstream = null; self.arg1 = null; self.arg2 = null; self.arg3 = null; self.codeString = null; self.message = null; } inherits(TChannelOutResponse, EventEmitter); TChannelOutResponse.prototype.type = 'tchannel.outgoing-response'; TChannelOutResponse.prototype._sendCallResponse = function _sendCallResponse(args, isLast) { var self = this; throw errors.UnimplementedMethod({ className: self.constructor.name, methodName: '_sendCallResponse' }); }; TChannelOutResponse.prototype._sendCallResponseCont = function _sendCallResponseCont(args, isLast) { var self = this; throw errors.UnimplementedMethod({ className: self.constructor.name, methodName: '_sendCallResponseCont' }); }; TChannelOutResponse.prototype._sendError = function _sendError(codeString, message) { var self = this; throw errors.UnimplementedMethod({ className: self.constructor.name, methodName: '_sendError' }); }; TChannelOutResponse.prototype.sendParts = function sendParts(parts, isLast) { var self = this; switch (self.state) { case States.Initial: self.sendCallResponseFrame(parts, isLast); break; case States.Streaming: self.sendCallResponseContFrame(parts, isLast); break; case States.Done: self.errorEvent.emit(self, errors.ResponseFrameState({ attempted: 'arg parts', state: 'Done' })); break; case States.Error: // TODO: log warn break; default: self.channel.logger.error('TChannelOutResponse is in a wrong state', { state: self.state }); break; } }; TChannelOutResponse.prototype.sendCallResponseFrame = function sendCallResponseFrame(args, isLast) { var self = this; switch (self.state) { case States.Initial: self.start = self.timers.now(); self._sendCallResponse(args, isLast); if (self.span) { self.span.annotate('ss'); } if (isLast) self.state = States.Done; else self.state = States.Streaming; break; case States.Streaming: self.errorEvent.emit(self, errors.ResponseFrameState({ attempted: 'call response', state: 'Streaming' })); break; case States.Done: case States.Error: var arg2 = args[1] || ''; var arg3 = args[2] || ''; self.errorEvent.emit(self, errors.ResponseAlreadyDone({ attempted: 'call response', state: self.state, method: 'sendCallResponseFrame', bufArg2: arg2.slice(0, 50), arg2: String(arg2).slice(0, 50), bufArg3: arg3.slice(0, 50), arg3: String(arg3).slice(0, 50) })); } }; TChannelOutResponse.prototype.sendCallResponseContFrame = function sendCallResponseContFrame(args, isLast) { var self = this; switch (self.state) { case States.Initial: self.errorEvent.emit(self, errors.ResponseFrameState({ attempted: 'call response continuation', state: 'Initial' })); break; case States.Streaming: self._sendCallResponseCont(args, isLast); if (isLast) self.state = States.Done; break; case States.Done: case States.Error: self.errorEvent.emit(self, errors.ResponseAlreadyDone({ attempted: 'call response continuation', state: self.state, method: 'sendCallResponseContFrame' })); } }; TChannelOutResponse.prototype.sendError = function sendError(codeString, message) { var self = this; if (self.state === States.Done || self.state === States.Error) { self.errorEvent.emit(self, errors.ResponseAlreadyDone({ attempted: 'send error frame: ' + codeString + ': ' + message, currentState: self.state, method: 'sendError', codeString: codeString, errMessage: message })); } else { if (self.span) { self.span.annotate('ss'); } self.state = States.Error; self.codeString = codeString; self.message = message; self.channel.inboundCallsSystemErrorsStat.increment(1, { 'calling-service': self.inreq.headers.cn, 'service': self.inreq.serviceName, 'endpoint': String(self.inreq.arg1), 'type': self.codeString }); self._sendError(codeString, message); self.emitFinish(); } }; TChannelOutResponse.prototype.emitFinish = function emitFinish() { var self = this; var now = self.timers.now(); if (self.end) { self.logger.warn('out response double emitFinish', { end: self.end, now: now, serviceName: self.inreq.serviceName, cn: self.inreq.headers.cn, endpoint: String(self.inreq.arg1), codeString: self.codeString, errorMessage: self.message, remoteAddr: self.inreq.connection.socketRemoteAddr, state: self.state, isOk: self.ok }); return; } self.end = now; var latency = self.end - self.inreq.start; self.channel.emitFastStat(self.channel.buildStat( 'tchannel.inbound.calls.latency', 'timing', latency, new stat.InboundCallsLatencyTags( self.inreq.headers.cn, self.inreq.serviceName, self.inreq.endpoint ) )); if (self.span) { self.spanEvent.emit(self, self.span); } self.finishEvent.emit(self); }; TChannelOutResponse.prototype.setOk = function setOk(ok) { var self = this; if (self.state !== States.Initial) { self.errorEvent.emit(self, errors.ResponseAlreadyStarted({ state: self.state, method: 'setOk', ok: ok })); return false; } self.ok = ok; self.code = ok ? 0 : 1; // TODO: too coupled to v2 specifics? return true; }; TChannelOutResponse.prototype.sendOk = function sendOk(res1, res2) { var self = this; self.setOk(true); self.send(res1, res2); }; TChannelOutResponse.prototype.sendNotOk = function sendNotOk(res1, res2) { var self = this; if (self.state === States.Error) { self.logger.error('cannot send application error, already sent error frame', { res1: res1, res2: res2 }); } else { self.setOk(false); self.send(res1, res2); } }; TChannelOutResponse.prototype.send = function send(res1, res2) { var self = this; /* send calls after finish() should be swallowed */ if (self.end) { var logOptions = { serviceName: self.inreq.serviceName, cn: self.inreq.headers.cn, endpoint: self.inreq.endpoint, remoteAddr: self.inreq.remoteAddr, end: self.end, codeString: self.codeString, errorMessage: self.message, isOk: self.ok, hasResponse: !!self.arg3, state: self.state }; if (self.inreq && self.inreq.timedOut) { self.logger.info('OutResponse.send() after inreq timed out', logOptions); } else { self.logger.warn('OutResponse called send() after end', logOptions); } return; } self.arg2 = res1; self.arg3 = res2; if (self.ok) { self.channel.emitFastStat(self.channel.buildStat( 'tchannel.inbound.calls.success', 'counter', 1, new stat.InboundCallsSuccessTags( self.inreq.headers.cn, self.inreq.serviceName, self.inreq.endpoint ) )); } else { // TODO: add outResponse.setErrorType() self.channel.emitFastStat(self.channel.buildStat( 'tchannel.inbound.calls.app-errors', 'counter', 1, new stat.InboundCallsAppErrorsTags( self.inreq.headers.cn, self.inreq.serviceName, self.inreq.endpoint, 'unknown' ) )); } self.sendCallResponseFrame([self.arg1, res1, res2], true); self.emitFinish(); return self; }; module.exports = TChannelOutResponse;
davewhat/tchannel
out_response.js
JavaScript
mit
10,872
#!/usr/bin/env node /** * Release this package. */ "use strict"; process.chdir(__dirname + '/..'); const apeTasking = require('ape-tasking'), apeReleasing = require('ape-releasing'); apeTasking.runTasks('release', [ (callback) => { apeReleasing.releasePackage({ beforeRelease: [ './ci/build.js', './ci/test.js' ] }, callback); } ], true);
ape-repo/ape-scraping
ci/release.js
JavaScript
mit
430
/*global d3 */ // asynchronously load data from the Lagotto API queue() .defer(d3.json, encodeURI("/api/agents/")) .await(function(error, a) { if (error) { return console.warn(error); } agentsViz(a.agents); }); // add data to page function agentsViz(data) { for (var i=0; i<data.length; i++) { var agent = data[i]; // responses tab d3.select("#response_count_" + agent.id) .text(numberWithDelimiter(agent.responses.count)); d3.select("#average_count_" + agent.id) .text(numberWithDelimiter(agent.responses.average)); } }
CrossRef/lagotto
app/assets/javascripts/agents/index.js
JavaScript
mit
569
var test = require("tape").test var level = require("level-test")() var testdb = level("test-versionstream") var version = require("../") var db = version(testdb) var lastVersion test("stuff some datas", function (t) { t.plan(2) db.put("pet", "fluffy", {version: 0}) db.put("pet", "spot", {version: 1}) db.put("pet", "scratch", {version: 334}) db.put("watch", "calculator", {version: 11}) db.put("watch", "casio", {version: 14}) db.put("pet", "sparky", function (err, version) { t.notOk(err, "no error") t.ok(version > Date.now() - 1000, "Default version is a recent timestamp") lastVersion = version }) }) test("versionstream pets", function (t) { t.plan(5) var versions = [] db.createVersionStream("pet") .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [lastVersion, 334, 1, 0], "Versions came out in the correct order") }) }) test("versionstream pets version no min", function (t) { t.plan(2) var versions = [] db.createVersionStream("pet", {maxVersion: 500, limit: 1}) .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [334], "Versions came out in the correct order") }) }) test("versionstream pets version reverse no min", function (t) { t.plan(2) var versions = [] db.createVersionStream("pet", {maxVersion: 500, limit: 1, reverse: true}) .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [0], "Versions came out in the correct order") }) }) test("versionstream pets version range no max", function (t) { t.plan(2) var versions = [] db.createVersionStream("pet", {minVersion: 10, limit: 1}) .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [lastVersion], "Versions came out in the correct order") }) }) test("versionstream pets version range", function (t) { t.plan(2) var versions = [] db.createVersionStream("pet", {minVersion: 10, maxVersion: 500, limit: 1}) .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [334], "Versions came out in the correct order") }) }) test("versionstream watches", function (t) { t.plan(3) var versions = [] db.createVersionStream("watch") .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [14, 11], "Versions came out in the correct order") }) }) test("alias", function (t) { var versions = [] db.versionStream("pet") .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [lastVersion, 334, 1, 0], "Versions came out in the correct order") t.end() }) })
maxogden/level-version
test/versionstream.js
JavaScript
mit
3,427
"use strict"; const lua = require("../src/lua.js"); const lauxlib = require("../src/lauxlib.js"); const {to_luastring} = require("../src/fengaricore.js"); const toByteCode = function(luaCode) { let L = lauxlib.luaL_newstate(); if (!L) throw Error("failed to create lua state"); if (lauxlib.luaL_loadstring(L, to_luastring(luaCode)) !== lua.LUA_OK) throw Error(lua.lua_tojsstring(L, -1)); let b = []; if (lua.lua_dump(L, function(L, b, size, B) { B.push(...b.slice(0, size)); return 0; }, b, false) !== 0) throw Error("unable to dump given function"); return Uint8Array.from(b); }; module.exports.toByteCode = toByteCode;
daurnimator/fengari
test/tests.js
JavaScript
mit
690
/* Get Programming with JavaScript * Listing 4.01 * Displaying an object's properties on the console */ var movie1; movie1 = { title: "Inside Out", actors: "Amy Poehler, Bill Hader", directors: "Pete Doctor, Ronaldo Del Carmen" }; console.log("Movie information for " + movie1.title); console.log("------------------------------"); console.log("Actors: " + movie1.actors); console.log("Directors: " + movie1.directors); console.log("------------------------------"); /* Further Adventures * * 1) Add a second movie and display the same info for it. * * 2) Create an object to represent a blog post. * * 3) Write code to display info about the blog post. * */
jrlarsen/GetProgramming
Ch04_Functions/listing4.01.js
JavaScript
mit
688
describe('Component: Product Search', function(){ var scope, q, oc, state, _ocParameters, parameters, mockProductList ; beforeEach(module(function($provide) { $provide.value('Parameters', {searchTerm: null, page: null, pageSize: null, sortBy: null}); })); beforeEach(module('orderCloud')); beforeEach(module('orderCloud.sdk')); beforeEach(inject(function($rootScope, $q, OrderCloud, ocParameters, $state, Parameters){ scope = $rootScope.$new(); q = $q; oc = OrderCloud; state = $state; _ocParameters = ocParameters; parameters = Parameters; mockProductList = { Items:['product1', 'product2'], Meta:{ ItemRange:[1, 3], TotalCount: 50 } }; })); describe('State: productSearchResults', function(){ var state; beforeEach(inject(function($state){ state = $state.get('productSearchResults'); spyOn(_ocParameters, 'Get'); spyOn(oc.Me, 'ListProducts'); })); it('should resolve Parameters', inject(function($injector){ $injector.invoke(state.resolve.Parameters); expect(_ocParameters.Get).toHaveBeenCalled(); })); it('should resolve ProductList', inject(function($injector){ parameters.filters = {ParentID:'12'}; $injector.invoke(state.resolve.ProductList); expect(oc.Me.ListProducts).toHaveBeenCalled(); })); }); describe('Controller: ProductSearchController', function(){ var productSearchCtrl; beforeEach(inject(function($state, $controller){ var state = $state; productSearchCtrl = $controller('ProductSearchCtrl', { $state: state, ocParameters: _ocParameters, $scope: scope, ProductList: mockProductList }); spyOn(_ocParameters, 'Create'); spyOn(state, 'go'); })); describe('filter', function(){ it('should reload state and call ocParameters.Create with any parameters', function(){ productSearchCtrl.parameters = {pageSize: 1}; productSearchCtrl.filter(true); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({pageSize:1}, true); }); }); describe('updateSort', function(){ it('should reload page with value and sort order, if both are defined', function(){ productSearchCtrl.updateSort('!ID'); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: null, pageSize: null, sortBy: '!ID'}, false); }); it('should reload page with just value, if no order is defined', function(){ productSearchCtrl.updateSort('ID'); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: null, pageSize: null, sortBy: 'ID'}, false); }); }); describe('updatePageSize', function(){ it('should reload state with the new pageSize', function(){ productSearchCtrl.updatePageSize('25'); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: null, pageSize: '25', sortBy: null}, true); }); }); describe('pageChanged', function(){ it('should reload state with the new page', function(){ productSearchCtrl.pageChanged('newPage'); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: 'newPage', pageSize: null, sortBy: null}, false); }); }); describe('reverseSort', function(){ it('should reload state with a reverse sort call', function(){ productSearchCtrl.parameters.sortBy = 'ID'; productSearchCtrl.reverseSort(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: null, pageSize: null, sortBy: '!ID'}, false); }); }); }); describe('Component Directive: ordercloudProductSearch', function(){ var productSearchComponentCtrl, timeout ; beforeEach(inject(function($componentController, $timeout){ timeout = $timeout; productSearchComponentCtrl = $componentController('ordercloudProductSearch', { $state:state, $timeout: timeout, $scope: scope, OrderCloud:oc }); spyOn(state, 'go'); })); describe('getSearchResults', function(){ beforeEach(function(){ var defer = q.defer(); defer.resolve(); spyOn(oc.Me, 'ListProducts').and.returnValue(defer.promise); }); it('should call Me.ListProducts with given search term and max products', function(){ productSearchComponentCtrl.searchTerm = 'Product1'; productSearchComponentCtrl.maxProducts = 12; productSearchComponentCtrl.getSearchResults(); expect(oc.Me.ListProducts).toHaveBeenCalledWith('Product1', 1, 12); }); it('should default max products to five, if none is provided', function(){ productSearchComponentCtrl.searchTerm = 'Product1'; productSearchComponentCtrl.getSearchResults(); expect(oc.Me.ListProducts).toHaveBeenCalledWith('Product1', 1, 5); }); }); describe('onSelect', function(){ it('should route user to productDetail state for the selected product id', function(){ productSearchComponentCtrl.onSelect(12); expect(state.go).toHaveBeenCalledWith('productDetail', {productid:12}); }); }); describe('onHardEnter', function(){ it('should route user to search results page for the provided search term', function(){ productSearchComponentCtrl.onHardEnter('bikes'); expect(state.go).toHaveBeenCalledWith('productSearchResults', {searchTerm: 'bikes'}); }); }); }); });
Four51SteveDavis/JohnsonBros
src/app/productSearch/tests/productSearch.spec.js
JavaScript
mit
6,607
(function () { 'use strict'; angular.module('common') .directive('svLumxUsersDropdown', function () { return { templateUrl: 'scripts/common/directives/sv-lumx-users-dropdown.html', scope: { btnTitle: '@', actionCounter: '@', userAvatar: '@', userName: '@', userFirstName: '@', userLastName: '@', iconType: '@', iconName: '@' }, link: function ($scope, el, attrs) { } }; }); })();
SvitlanaShepitsena/cl-poster
app/scripts/common/directives/sv-lumx-users-dropdown.js
JavaScript
mit
689
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * sisane: The stunning micro-library that helps you to develop easily * AJAX web applications by using Angular.js 1.x & sisane-server * sisane is distributed under the MIT License (MIT) * Sources at https://github.com/rafaelaznar/ * * 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. * */ 'use strict'; moduloEpisodio.controller('EpisodioViewpopController', ['$scope', '$routeParams', 'serverService', 'episodioService', '$location', '$uibModalInstance', 'id', function ($scope, $routeParams, serverService, episodioService, $location, $uibModalInstance, id) { $scope.fields = episodioService.getFields(); $scope.obtitle = episodioService.getObTitle(); $scope.icon = episodioService.getIcon(); $scope.ob = episodioService.getTitle(); $scope.title = "Vista de " + $scope.obtitle; $scope.id = id; $scope.status = null; $scope.debugging = serverService.debugging(); serverService.promise_getOne($scope.ob, $scope.id).then(function (response) { if (response.status == 200) { if (response.data.status == 200) { $scope.status = null; $scope.bean = response.data.message; var filter = "and,id_medico,equa," + $scope.bean.obj_medico.id; serverService.promise_getPage("usuario", 1, 1, filter).then(function (data) { if (data.data.message.length > 0) $scope.medico = data.data.message[0]; }); } else { $scope.status = "Error en la recepción de datos del servidor"; } } else { $scope.status = "Error en la recepción de datos del servidor"; } }).catch(function (data) { $scope.status = "Error en la recepción de datos del servidor"; }); $scope.cancel = function () { $uibModalInstance.dismiss('cancel'); } }]);
Ecoivan/sisane-client
public_html/js/episodio/viewpop.js
JavaScript
mit
3,146
'use strict'; var path = require('path'); var gulp = require('gulp'); var conf = require('./conf'); var browserSync = require('browser-sync'); function isOnlyChange(event) { return event.type === 'changed'; } gulp.task('watch', ['inject'], function () { gulp.watch([path.join(conf.paths.src, '/*.html'), 'bower.json'], ['inject']); gulp.watch([ path.join(conf.paths.src, '/assets/styles/css/**/*.css'), path.join(conf.paths.src, '/assets/styles/less/**/*.less') ], function(event) { if(isOnlyChange(event)) { gulp.start('own-styles'); } else { gulp.start('inject'); } }); gulp.watch([ path.join(conf.paths.src, '/app/**/*.css'), path.join(conf.paths.src, '/app/**/*.less') ], function(event) { if(isOnlyChange(event)) { gulp.start('styles'); } else { gulp.start('inject'); } }); gulp.watch(path.join(conf.paths.src, '/app/**/*.js'), function(event) { if(isOnlyChange(event)) { gulp.start('scripts'); } else { gulp.start('inject'); } }); gulp.watch(path.join(conf.paths.src, '/app/**/*.html'), function(event) { browserSync.reload(event.path); }); });
devmark/laravel-angular-cms
backend/gulp/watch.js
JavaScript
mit
1,176
var assert = require('assert'); var _ = require('@sailshq/lodash'); var SchemaBuilder = require('../lib/waterline-schema'); describe('Has Many Through :: ', function() { describe('Junction Tables', function() { var schema; before(function() { var fixtures = [ { identity: 'user', primaryKey: 'id', attributes: { id: { type: 'number' }, cars: { collection: 'car', through: 'drive', via: 'user' } } }, { identity: 'drive', primaryKey: 'id', attributes: { id: { type: 'number' }, car: { model: 'car' }, user: { model: 'user' } } }, { identity: 'car', primaryKey: 'id', attributes: { id: { type: 'number' }, drivers: { collection: 'user', through: 'drive', via: 'car' } } } ]; var collections = _.map(fixtures, function(obj) { var collection = function() {}; collection.prototype = obj; return collection; }); // Build the schema schema = SchemaBuilder(collections); }); it('should flag the "through" table and not mark it as a junction table', function() { assert(schema.drive); assert(!schema.drive.junctionTable); assert(schema.drive.throughTable); }); }); describe('Reference Mapping', function() { var schema; before(function() { var fixtures = [ { identity: 'foo', primaryKey: 'id', attributes: { id: { type: 'number' }, bars: { collection: 'bar', through: 'foobar', via: 'foo' } } }, { identity: 'foobar', primaryKey: 'id', attributes: { id: { type: 'number' }, type: { type: 'string' }, foo: { model: 'foo', columnName: 'foo_id' }, bar: { model: 'bar', columnName: 'bar_id' } } }, { identity: 'bar', primaryKey: 'id', attributes: { id: { type: 'number' }, foo: { collection: 'foo', through: 'foobar', via: 'bar' } } } ]; var collections = _.map(fixtures, function(obj) { var collection = function() {}; collection.prototype = obj; return collection; }); // Build the schema schema = SchemaBuilder(collections); }); it('should update the parent collection to point to the join table', function() { assert.equal(schema.foo.schema.bars.references, 'foobar'); assert.equal(schema.foo.schema.bars.on, 'foo_id'); }); }); });
jhelbig/postman-linux-app
app/resources/app/node_modules/waterline-schema/test/hasManyThrough.js
JavaScript
mit
3,283
module('lively.ide.DirectoryWatcher').requires('lively.Network').toRun(function() { // depends on the DirectoryWatcherServer Object.extend(lively.ide.DirectoryWatcher, { watchServerURL: new URL(Config.nodeJSURL+'/DirectoryWatchServer/'), dirs: {}, reset: function() { // lively.ide.DirectoryWatcher.reset() this.dirs = {}; this.watchServerURL.withFilename('reset').asWebResource().post(); }, request: function(url, thenDo) { return url.asWebResource().beAsync().withJSONWhenDone(function(json, status) { thenDo(!json || json.error, json); }).get(); }, getFiles: function(dir, thenDo) { this.request(this.watchServerURL.withFilename('files').withQuery({dir: dir}), thenDo); }, getChanges: function(dir, since, startWatchTime, thenDo) { this.request(this.watchServerURL.withFilename('changes').withQuery({ startWatchTime: startWatchTime, since: since, dir: dir}), thenDo); }, withFilesOfDir: function(dir, doFunc) { // Retrieves efficiently the files of dir. Uses a server side watcher that // sends infos about file changes, deletions, creations. // This methods synchs those with the cached state held in this object // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // dir = lively.shell.exec('pwd', {sync:true}).resultString() // lively.ide.DirectoryWatcher.dirs // lively.ide.DirectoryWatcher.withFilesOfDir(dir, function(files) { show(Object.keys(files).length); }) // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- var watchState = this.dirs[dir] || (this.dirs[dir] = {updateInProgress: false, callbacks: []}); doFunc && watchState.callbacks.push(doFunc); if (watchState.updateInProgress) { return; } watchState.updateInProgress = true; // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- if (!watchState.files) { // first time called this.getFiles(dir, function(err, result) { if (err) show("dir watch error: %s", err); result.files && Properties.forEachOwn(result.files, function(path, stat) { extend(stat); }) Object.extend(watchState, { files: result.files, lastUpdated: result.startTime, startTime: result.startTime }); whenDone(); }); return; } // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- var timeSinceLastUpdate = Date.now() - (watchState.lastUpdated || 0); if (timeSinceLastUpdate < 10 * 1000) { whenDone(); } // recently updated // get updates this.getChanges(dir, watchState.lastUpdated, watchState.startTime, function(err, result) { if (!result.changes || result.changes.length === 0) { whenDone(); return; } watchState.lastUpdated = result.changes[0].time; console.log('%s files changed in %s: %s', result.changes.length, dir, result.changes.pluck('path').join('\n')); result.changes.forEach(function(change) { switch (change.type) { case 'removal': delete watchState.files[change.path]; break; case 'creation': case 'change': watchState.files[change.path] = extend(change.stat); break; } }); whenDone(); }); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- function whenDone() { watchState.updateInProgress = false; var cb; while ((cb = watchState.callbacks.shift())) cb(watchState.files); } function extend(statObj) { // convert date string into a date object if (!statObj) statObj = {}; statObj.isDirectory = !!(statObj.mode & 0x4000); ['atime', 'mtime', 'ctime'].forEach(function(field) { if (statObj[field]) statObj[field] = new Date(statObj[field]); }); return statObj; } } }); }) // end of module
pascience/LivelyKernel
core/lively/ide/DirectoryWatcher.js
JavaScript
mit
4,138
// Generated by CoffeeScript 1.3.1
trela/qikify
qikify/views/resources/scripts/js/statistics.js
JavaScript
mit
37
'use strict'; require('../common'); // This test ensures that zlib throws a RangeError if the final buffer needs to // be larger than kMaxLength and concatenation fails. // https://github.com/nodejs/node/pull/1811 const assert = require('assert'); // Change kMaxLength for zlib to trigger the error without having to allocate // large Buffers. const buffer = require('buffer'); const oldkMaxLength = buffer.kMaxLength; buffer.kMaxLength = 64; const zlib = require('zlib'); buffer.kMaxLength = oldkMaxLength; const encoded = Buffer.from('G38A+CXCIrFAIAM=', 'base64'); // Async zlib.brotliDecompress(encoded, function(err) { assert.ok(err instanceof RangeError); }); // Sync assert.throws(function() { zlib.brotliDecompressSync(encoded); }, RangeError);
enclose-io/compiler
current/test/parallel/test-zlib-brotli-kmaxlength-rangeerror.js
JavaScript
mit
762
const {createAddColumnMigration} = require('../../utils'); module.exports = createAddColumnMigration('posts_meta', 'email_only', { type: 'bool', nullable: false, defaultTo: false });
ErisDS/Ghost
core/server/data/migrations/versions/4.12/01-add-email-only-column-to-posts-meta-table.js
JavaScript
mit
196
//currently commented out as TokenTester is causing a OOG error due to the Factory being too big //Not fully needed as factory & separate tests cover token creation. /*contract("TokenTester", function(accounts) { it("creates 10000 initial tokens", function(done) { var tester = TokenTester.at(TokenTester.deployed_address); tester.tokenContractAddress.call() .then(function(tokenContractAddr) { var tokenContract = HumanStandardToken.at(tokenContractAddr); return tokenContract.balanceOf.call(TokenTester.deployed_address); }).then(function (result) { assert.strictEqual(result.toNumber(), 10000); // 10000 as specified in TokenTester.sol done(); }).catch(done); }); //todo:add test on retrieving addresses });*/
PlutusIt/PlutusDEX
test/tokenTester.js
JavaScript
mit
816
module.exports = { "extends": "airbnb", "parser": "babel-eslint", "plugins": [ "react" ], "rules": { "react/prop-types": 0, "react/jsx-boolean-value": 0, "consistent-return": 0, "guard-for-in": 0, "no-use-before-define": 0, "space-before-function-paren": [2, { "anonymous": "never", "named": "always" }] } };
danieloliveira079/healthy-life-app-v1
.eslintrc.js
JavaScript
mit
351
//>>built define("clipart/SpinInput",["dojo/_base/declare","clipart/_clipart"],function(_1,_2){ return _1("clipart.SpinInput",[_2],{}); });
Bonome/pauline-desgrandchamp.com
lib/clipart/SpinInput.js
JavaScript
mit
140
/** * Created by jiangli on 15/1/6. */ "use strict"; var request = require('request'); var iconv = require('iconv-lite'); var crypto = require('crypto'); var Buffer = require('buffer').Buffer; /** * [_parseYouku 解析优酷网] * @param [type] $url [description] * @return [type] [description] */ module.exports = function($url,callback){ var $matches = $url.match(/id\_([\w=]+)/); if ($matches&&$matches.length>1){ return _getYouku($matches[1].trim(),callback); }else{ return null; } } function _getYouku($vid,callback){ var $base = "http://v.youku.com/player/getPlaylist/VideoIDS/"; var $blink = $base+$vid; var $link = $blink+"/Pf/4/ctype/12/ev/1"; request($link, function(er, response,body) { if (er) return callback(er); var $retval = body; if($retval){ var $rs = JSON.parse($retval); request($blink, function(er, response,body) { if (er) return callback(er); var $data = { '1080Phd3':[], '超清hd2':[], '高清mp4':[], '高清flvhd':[], '标清flv':[], '高清3gphd':[], '3gp':[] }; var $bretval = body; var $brs = JSON.parse($bretval); var $rs_data = $rs.data[0]; var $brs_data = $brs.data[0]; if($rs_data.error){ return callback(null, $data['error'] = $rs_data.error); } var $streamtypes = $rs_data.streamtypes; //可以输出的视频清晰度 var $streamfileids = $rs_data.streamfileids; var $seed = $rs_data.seed; var $segs = $rs_data.segs; var $ip = $rs_data.ip; var $bsegs = $brs_data.segs; var yk_e_result = yk_e('becaf9be', yk_na($rs_data.ep)).split('_'); var $sid = yk_e_result[0], $token = yk_e_result[1]; for(var $key in $segs){ if(in_array($key,$streamtypes)){ var $segs_key_val = $segs[$key]; for(var kk=0;kk<$segs_key_val.length;kk++){ var $v = $segs_key_val[kk]; var $no = $v.no.toString(16).toUpperCase(); //转换为16进制 大写 if($no.length == 1){ $no ="0"+$no; //no 为每段视频序号 } //构建视频地址K值 var $_k = $v.k; if ((!$_k || $_k == '') || $_k == '-1') { $_k = $bsegs[$key][kk].k; } var $fileId = getFileid($streamfileids[$key],$seed); $fileId = $fileId.substr(0,8)+$no+$fileId.substr(10); var m0 = yk_e('bf7e5f01', $sid + '_' + $fileId + '_' + $token); var m1 = yk_d(m0); var iconv_result = iconv.decode(new Buffer(m1), 'UTF-8'); if(iconv_result!=""){ var $ep = urlencode(iconv_result); var $typeArray = []; $typeArray['flv']= 'flv'; $typeArray['mp4']= 'mp4'; $typeArray['hd2']= 'flv'; $typeArray['3gphd']= 'mp4'; $typeArray['3gp']= 'flv'; $typeArray['hd3']= 'flv'; //判断视频清晰度 var $sharpness = []; //清晰度 数组 $sharpness['flv']= '标清flv'; $sharpness['flvhd']= '高清flvhd'; $sharpness['mp4']= '高清mp4'; $sharpness['hd2']= '超清hd2'; $sharpness['3gphd']= '高清3gphd'; $sharpness['3gp']= '3gp'; $sharpness['hd3']= '1080Phd3'; var $fileType = $typeArray[$key]; $data[$sharpness[$key]][kk] = "http://k.youku.com/player/getFlvPath/sid/"+$sid+"_00/st/"+$fileType+"/fileid/"+$fileId+"?K="+$_k+"&hd=1&myp=0&ts="+((((($v['seconds']+'&ypp=0&ctype=12&ev=1&token=')+$token)+'&oip=')+$ip)+'&ep=')+$ep; } } } } //返回 图片 标题 链接 时长 视频地址 $data['coverImg'] = $rs['data'][0]['logo']; $data['title'] = $rs['data'][0]['title']; $data['seconds'] = $rs['data'][0]['seconds']; return callback(null,$data); }); }else{ return callback(null,null); } }) } function urlencode(str) { str = (str + '').toString(); return encodeURIComponent(str) .replace(/!/g, '%21') .replace(/'/g, '%27') .replace(/\(/g, '%28') .replace(/\)/g, '%29') .replace(/\*/g, '%2A') .replace(/%20/g, '+'); }; function in_array(needle, haystack, argStrict) { var key = '', strict = !! argStrict; if (strict) { for (key in haystack) { if (haystack[key] === needle) { return true; } } } else { for (key in haystack) { if (haystack[key] == needle) { return true; } } } return false; }; //start 获得优酷视频需要用到的方法 function getSid(){ var $sid = new Date().getTime()+(Math.random() * 9001+10000); return $sid; } function getKey($key1,$key2){ var $a = parseInt($key1,16); var $b = $a ^0xA55AA5A5; var $b = $b.toString(16); return $key2+$b; } function getFileid($fileId,$seed){ var $mixed = getMixString($seed); var $ids = $fileId.replace(/(\**$)/g, "").split('*'); //去掉末尾的*号分割为数组 var $realId = ""; for (var $i=0;$i<$ids.length;$i++){ var $idx = $ids[$i]; $realId += $mixed.substr($idx,1); } return $realId; } function getMixString($seed){ var $mixed = ""; var $source = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/\\:._-1234567890"; var $len = $source.length; for(var $i=0;$i<$len;$i++){ $seed = ($seed * 211 + 30031)%65536; var $index = ($seed / 65536 * $source.length); var $c = $source.substr($index,1); $mixed += $c; $source = $source.replace($c,""); } return $mixed; } function yk_d($a){ if (!$a) { return ''; } var $f = $a.length; var $b = 0; var $str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; for (var $c = ''; $b < $f;) { var $e = charCodeAt($a, $b++) & 255; if ($b == $f) { $c += charAt($str, $e >> 2); $c += charAt($str, ($e & 3) << 4); $c += '=='; break; } var $g = charCodeAt($a, $b++); if ($b == $f) { $c += charAt($str, $e >> 2); $c += charAt($str, ($e & 3) << 4 | ($g & 240) >> 4); $c += charAt($str, ($g & 15) << 2); $c += '='; break; } var $h = charCodeAt($a, $b++); $c += charAt($str, $e >> 2); $c += charAt($str, ($e & 3) << 4 | ($g & 240) >> 4); $c += charAt($str, ($g & 15) << 2 | ($h & 192) >> 6); $c += charAt($str, $h & 63); } return $c; } function yk_na($a){ if (!$a) { return ''; } var $sz = '-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1'; var $h = $sz.split(','); var $i = $a.length; var $f = 0; for (var $e = ''; $f < $i;) { var $c; do { $c = $h[charCodeAt($a, $f++) & 255]; } while ($f < $i && -1 == $c); if (-1 == $c) { break; } var $b; do { $b = $h[charCodeAt($a, $f++) & 255]; } while ($f < $i && -1 == $b); if (-1 == $b) { break; } $e += String.fromCharCode($c << 2 | ($b & 48) >> 4); do { $c = charCodeAt($a, $f++) & 255; if (61 == $c) { return $e; } $c = $h[$c]; } while ($f < $i && -1 == $c); if (-1 == $c) { break; } $e += String.fromCharCode(($b & 15) << 4 | ($c & 60) >> 2); do { $b = charCodeAt($a, $f++) & 255; if (61 == $b) { return $e; } $b = $h[$b]; } while ($f < $i && -1 == $b); if (-1 == $b) { break; } $e += String.fromCharCode(($c & 3) << 6 | $b); } return $e; } function yk_e($a, $c){ var $b = []; for (var $f = 0, $i, $e = '', $h = 0; 256 > $h; $h++) { $b[$h] = $h; } for ($h = 0; 256 > $h; $h++) { $f = (($f + $b[$h]) + charCodeAt($a, $h % $a.length)) % 256; $i = $b[$h]; $b[$h] = $b[$f]; $b[$f] = $i; } for (var $q = ($f = ($h = 0)); $q < $c.length; $q++) { $h = ($h + 1) % 256; $f = ($f + $b[$h]) % 256; $i = $b[$h]; $b[$h] = $b[$f]; $b[$f] = $i; $e += String.fromCharCode(charCodeAt($c, $q) ^ $b[($b[$h] + $b[$f]) % 256]); } return $e; } function md5(str){ var shasum = crypto.createHash('md5'); shasum.update(str); return shasum.digest('hex'); } function charCodeAt($str, $index){ var $charCode = []; var $key = md5($str); $index = $index + 1; if ($charCode[$key]) { return $charCode[$key][$index]; } $charCode[$key] = unpack('C*', $str); return $charCode[$key][$index]; } function charAt($str, $index){ return $str.substr($index, 1); } function unpack(format, data) { var formatPointer = 0, dataPointer = 0, result = {}, instruction = '', quantifier = '', label = '', currentData = '', i = 0, j = 0, word = '', fbits = 0, ebits = 0, dataByteLength = 0; var fromIEEE754 = function(bytes, ebits, fbits) { // Bytes to bits var bits = []; for (var i = bytes.length; i; i -= 1) { var m_byte = bytes[i - 1]; for (var j = 8; j; j -= 1) { bits.push(m_byte % 2 ? 1 : 0); m_byte = m_byte >> 1; } } bits.reverse(); var str = bits.join(''); // Unpack sign, exponent, fraction var bias = (1 << (ebits - 1)) - 1; var s = parseInt(str.substring(0, 1), 2) ? -1 : 1; var e = parseInt(str.substring(1, 1 + ebits), 2); var f = parseInt(str.substring(1 + ebits), 2); // Produce number if (e === (1 << ebits) - 1) { return f !== 0 ? NaN : s * Infinity; } else if (e > 0) { return s * Math.pow(2, e - bias) * (1 + f / Math.pow(2, fbits)); } else if (f !== 0) { return s * Math.pow(2, -(bias-1)) * (f / Math.pow(2, fbits)); } else { return s * 0; } } while (formatPointer < format.length) { instruction = format.charAt(formatPointer); // Start reading 'quantifier' quantifier = ''; formatPointer++; while ((formatPointer < format.length) && (format.charAt(formatPointer).match(/[\d\*]/) !== null)) { quantifier += format.charAt(formatPointer); formatPointer++; } if (quantifier === '') { quantifier = '1'; } // Start reading label label = ''; while ((formatPointer < format.length) && (format.charAt(formatPointer) !== '/')) { label += format.charAt(formatPointer); formatPointer++; } if (format.charAt(formatPointer) === '/') { formatPointer++; } // Process given instruction switch (instruction) { case 'a': // NUL-padded string case 'A': // SPACE-padded string if (quantifier === '*') { quantifier = data.length - dataPointer; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier); dataPointer += quantifier; var currentResult; if (instruction === 'a') { currentResult = currentData.replace(/\0+$/, ''); } else { currentResult = currentData.replace(/ +$/, ''); } result[label] = currentResult; break; case 'h': // Hex string, low nibble first case 'H': // Hex string, high nibble first if (quantifier === '*') { quantifier = data.length - dataPointer; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier); dataPointer += quantifier; if (quantifier > currentData.length) { throw new Error('Warning: unpack(): Type ' + instruction + ': not enough input, need ' + quantifier); } currentResult = ''; for (i = 0; i < currentData.length; i++) { word = currentData.charCodeAt(i).toString(16); if (instruction === 'h') { word = word[1] + word[0]; } currentResult += word; } result[label] = currentResult; break; case 'c': // signed char case 'C': // unsigned c if (quantifier === '*') { quantifier = data.length - dataPointer; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier); dataPointer += quantifier; for (i = 0; i < currentData.length; i++) { currentResult = currentData.charCodeAt(i); if ((instruction === 'c') && (currentResult >= 128)) { currentResult -= 256; } result[label + (quantifier > 1 ? (i + 1) : '')] = currentResult; } break; case 'S': // unsigned short (always 16 bit, machine byte order) case 's': // signed short (always 16 bit, machine byte order) case 'v': // unsigned short (always 16 bit, little endian byte order) if (quantifier === '*') { quantifier = (data.length - dataPointer) / 2; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * 2); dataPointer += quantifier * 2; for (i = 0; i < currentData.length; i += 2) { // sum per word; currentResult = ((currentData.charCodeAt(i + 1) & 0xFF) << 8) + (currentData.charCodeAt(i) & 0xFF); if ((instruction === 's') && (currentResult >= 32768)) { currentResult -= 65536; } result[label + (quantifier > 1 ? ((i / 2) + 1) : '')] = currentResult; } break; case 'n': // unsigned short (always 16 bit, big endian byte order) if (quantifier === '*') { quantifier = (data.length - dataPointer) / 2; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * 2); dataPointer += quantifier * 2; for (i = 0; i < currentData.length; i += 2) { // sum per word; currentResult = ((currentData.charCodeAt(i) & 0xFF) << 8) + (currentData.charCodeAt(i + 1) & 0xFF); result[label + (quantifier > 1 ? ((i / 2) + 1) : '')] = currentResult; } break; case 'i': // signed integer (machine dependent size and byte order) case 'I': // unsigned integer (machine dependent size & byte order) case 'l': // signed long (always 32 bit, machine byte order) case 'L': // unsigned long (always 32 bit, machine byte order) case 'V': // unsigned long (always 32 bit, little endian byte order) if (quantifier === '*') { quantifier = (data.length - dataPointer) / 4; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * 4); dataPointer += quantifier * 4; for (i = 0; i < currentData.length; i += 4) { currentResult = ((currentData.charCodeAt(i + 3) & 0xFF) << 24) + ((currentData.charCodeAt(i + 2) & 0xFF) << 16) + ((currentData.charCodeAt(i + 1) & 0xFF) << 8) + ((currentData.charCodeAt(i) & 0xFF)); result[label + (quantifier > 1 ? ((i / 4) + 1) : '')] = currentResult; } break; case 'N': // unsigned long (always 32 bit, little endian byte order) if (quantifier === '*') { quantifier = (data.length - dataPointer) / 4; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * 4); dataPointer += quantifier * 4; for (i = 0; i < currentData.length; i += 4) { currentResult = ((currentData.charCodeAt(i) & 0xFF) << 24) + ((currentData.charCodeAt(i + 1) & 0xFF) << 16) + ((currentData.charCodeAt(i + 2) & 0xFF) << 8) + ((currentData.charCodeAt(i + 3) & 0xFF)); result[label + (quantifier > 1 ? ((i / 4) + 1) : '')] = currentResult; } break; case 'f': //float case 'd': //double ebits = 8; fbits = (instruction === 'f') ? 23 : 52; dataByteLength = 4; if (instruction === 'd') { ebits = 11; dataByteLength = 8; } if (quantifier === '*') { quantifier = (data.length - dataPointer) / dataByteLength; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * dataByteLength); dataPointer += quantifier * dataByteLength; for (i = 0; i < currentData.length; i += dataByteLength) { data = currentData.substr(i, dataByteLength); var bytes = []; for (j = data.length - 1; j >= 0; --j) { bytes.push(data.charCodeAt(j)); } result[label + (quantifier > 1 ? ((i / 4) + 1) : '')] = fromIEEE754(bytes, ebits, fbits); } break; case 'x': // NUL byte case 'X': // Back up one byte case '@': // NUL byte if (quantifier === '*') { quantifier = data.length - dataPointer; } else { quantifier = parseInt(quantifier, 10); } if (quantifier > 0) { if (instruction === 'X') { dataPointer -= quantifier; } else { if (instruction === 'x') { dataPointer += quantifier; } else { dataPointer = quantifier; } } } break; default: throw new Error('Warning: unpack() Type ' + instruction + ': unknown format code'); } } return result; }
jiangli373/nodeParseVideo
lib/youku.js
JavaScript
mit
21,702
// This file has been autogenerated. exports.setEnvironment = function() { process.env['AZURE_SUBSCRIPTION_ID'] = 'e0b81f36-36ba-44f7-b550-7c9344a35893'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .get('/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/resourceGroups/nodetestrg/providers/Microsoft.Devices/IotHubs/nodeTestHub/eventHubEndpoints/events/ConsumerGroups/testconsumergroup?api-version=2017-07-01') .reply(200, "{\"tags\":null,\"id\":\"/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/resourceGroups/nodetestrg/providers/Microsoft.Devices/IotHubs/nodeTestHub\",\"name\":\"testconsumergroup\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '173', 'content-type': 'application/json; charset=utf-8', expires: '-1', server: 'Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14953', 'x-ms-request-id': 'be4cc550-e523-4bc7-898a-9c2a5aa64725', 'x-ms-correlation-request-id': 'be4cc550-e523-4bc7-898a-9c2a5aa64725', 'x-ms-routing-request-id': 'WESTUS:20170502T195224Z:be4cc550-e523-4bc7-898a-9c2a5aa64725', 'strict-transport-security': 'max-age=31536000; includeSubDomains', date: 'Tue, 02 May 2017 19:52:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .get('/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/resourceGroups/nodetestrg/providers/Microsoft.Devices/IotHubs/nodeTestHub/eventHubEndpoints/events/ConsumerGroups/testconsumergroup?api-version=2017-07-01') .reply(200, "{\"tags\":null,\"id\":\"/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/resourceGroups/nodetestrg/providers/Microsoft.Devices/IotHubs/nodeTestHub\",\"name\":\"testconsumergroup\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '173', 'content-type': 'application/json; charset=utf-8', expires: '-1', server: 'Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14953', 'x-ms-request-id': 'be4cc550-e523-4bc7-898a-9c2a5aa64725', 'x-ms-correlation-request-id': 'be4cc550-e523-4bc7-898a-9c2a5aa64725', 'x-ms-routing-request-id': 'WESTUS:20170502T195224Z:be4cc550-e523-4bc7-898a-9c2a5aa64725', 'strict-transport-security': 'max-age=31536000; includeSubDomains', date: 'Tue, 02 May 2017 19:52:23 GMT', connection: 'close' }); return result; }]];
lmazuel/azure-sdk-for-node
test/recordings/iothub-tests/IoTHub_IoTHub_Lifecycle_Test_Suite_should_get_a_single_eventhub_consumer_group_successfully.nock.js
JavaScript
mit
2,416
module.exports = { getMeta: function(meta) { var d = meta.metaDescription || meta.description || meta.Description; if (d && d instanceof Array) { d = d[0]; } return { description: d } } };
loklak/loklak_webclient
iframely/plugins/meta/description.js
JavaScript
mit
264
/* * Treeview 1.5pre - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.treeview.js 5759 2008-07-01 07:50:28Z joern.zaefferer $ * */ ;(function($) { // TODO rewrite as a widget, removing all the extra plugins $.extend($.fn, { swapClass: function(c1, c2) { var c1Elements = this.filter('.' + c1); this.filter('.' + c2).removeClass(c2).addClass(c1); c1Elements.removeClass(c1).addClass(c2); return this; }, replaceClass: function(c1, c2) { return this.filter('.' + c1).removeClass(c1).addClass(c2).end(); }, hoverClass: function(className) { className = className || "hover"; return this.hover(function() { $(this).addClass(className); }, function() { $(this).removeClass(className); }); }, heightToggle: function(animated, callback) { animated ? this.animate({ height: "toggle" }, animated, callback) : this.each(function(){ jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ](); if(callback) callback.apply(this, arguments); }); }, heightHide: function(animated, callback) { if (animated) { this.animate({ height: "hide" }, animated, callback); } else { this.hide(); if (callback) this.each(callback); } }, prepareBranches: function(settings) { if (!settings.prerendered) { // mark last tree items this.filter(":last-child:not(ul)").addClass(CLASSES.last); // collapse whole tree, or only those marked as closed, anyway except those marked as open this.filter((settings.collapsed ? "" : "." + CLASSES.closed) + ":not(." + CLASSES.open + ")").find(">ul").hide(); } // return all items with sublists return this.filter(":has(>ul)"); }, applyClasses: function(settings, toggler) { // TODO use event delegation this.filter(":has(>ul):not(:has(>a))").find(">span").unbind("click.treeview").bind("click.treeview", function(event) { // don't handle click events on children, eg. checkboxes if ( this == event.target ) toggler.apply($(this).next()); }).add( $("a", this) ).hoverClass(); if (!settings.prerendered) { // handle closed ones first this.filter(":has(>ul:hidden)") .addClass(CLASSES.expandable) .replaceClass(CLASSES.last, CLASSES.lastExpandable); // handle open ones this.not(":has(>ul:hidden)") .addClass(CLASSES.collapsable) .replaceClass(CLASSES.last, CLASSES.lastCollapsable); // create hitarea if not present var hitarea = this.find("div." + CLASSES.hitarea); if (!hitarea.length) hitarea = this.prepend("<div class=\"" + CLASSES.hitarea + "\"/>").find("div." + CLASSES.hitarea); hitarea.removeClass().addClass(CLASSES.hitarea).each(function() { var classes = ""; $.each($(this).parent().attr("class").split(" "), function() { classes += this + "-hitarea "; }); $(this).addClass( classes ); }) } // apply event to hitarea this.find("div." + CLASSES.hitarea).click( toggler ); }, treeview: function(settings) { settings = $.extend({ cookieId: "treeview" }, settings); if ( settings.toggle ) { var callback = settings.toggle; settings.toggle = function() { return callback.apply($(this).parent()[0], arguments); }; } // factory for treecontroller function treeController(tree, control) { // factory for click handlers function handler(filter) { return function() { // reuse toggle event handler, applying the elements to toggle // start searching for all hitareas toggler.apply( $("div." + CLASSES.hitarea, tree).filter(function() { // for plain toggle, no filter is provided, otherwise we need to check the parent element return filter ? $(this).parent("." + filter).length : true; }) ); return false; }; } // click on first element to collapse tree $("a:eq(0)", control).click( handler(CLASSES.collapsable) ); // click on second to expand tree $("a:eq(1)", control).click( handler(CLASSES.expandable) ); // click on third to toggle tree $("a:eq(2)", control).click( handler() ); } // handle toggle event function toggler() { $(this) .parent() // swap classes for hitarea .find(">.hitarea") .swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea ) .swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea ) .end() // swap classes for parent li .swapClass( CLASSES.collapsable, CLASSES.expandable ) .swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable ) // find child lists .find( ">ul" ) // toggle them .heightToggle( settings.animated, settings.toggle ); if ( settings.unique ) { $(this).parent() .siblings() // swap classes for hitarea .find(">.hitarea") .replaceClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea ) .replaceClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea ) .end() .replaceClass( CLASSES.collapsable, CLASSES.expandable ) .replaceClass( CLASSES.lastCollapsable, CLASSES.lastExpandable ) .find( ">ul" ) .heightHide( settings.animated, settings.toggle ); } } this.data("toggler", toggler); function serialize() { function binary(arg) { return arg ? 1 : 0; } var data = []; branches.each(function(i, e) { data[i] = $(e).is(":has(>ul:visible)") ? 1 : 0; }); $.cookie(settings.cookieId, data.join(""), settings.cookieOptions ); } function deserialize() { var stored = $.cookie(settings.cookieId); if ( stored ) { var data = stored.split(""); branches.each(function(i, e) { $(e).find(">ul")[ parseInt(data[i]) ? "show" : "hide" ](); }); } } // add treeview class to activate styles this.addClass("treeview"); // prepare branches and find all tree items with child lists var branches = this.find("li").prepareBranches(settings); switch(settings.persist) { case "cookie": var toggleCallback = settings.toggle; settings.toggle = function() { serialize(); if (toggleCallback) { toggleCallback.apply(this, arguments); } }; deserialize(); break; case "location": var current = this.find("a").filter(function() { return this.href.toLowerCase() == location.href.toLowerCase(); }); if ( current.length ) { // TODO update the open/closed classes var items = current.addClass("selected").parents("ul, li").add( current.next() ).show(); if (settings.prerendered) { // if prerendered is on, replicate the basic class swapping items.filter("li") .swapClass( CLASSES.collapsable, CLASSES.expandable ) .swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable ) .find(">.hitarea") .swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea ) .swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea ); } } break; } branches.applyClasses(settings, toggler); // if control option is set, create the treecontroller and show it if ( settings.control ) { treeController(this, settings.control); $(settings.control).show(); } return this; } }); // classes used by the plugin // need to be styled via external stylesheet, see first example $.treeview = {}; var CLASSES = ($.treeview.classes = { open: "open", closed: "closed", expandable: "expandable", expandableHitarea: "expandable-hitarea", lastExpandableHitarea: "lastExpandable-hitarea", collapsable: "collapsable", collapsableHitarea: "collapsable-hitarea", lastCollapsableHitarea: "lastCollapsable-hitarea", lastCollapsable: "lastCollapsable", lastExpandable: "lastExpandable", last: "last", hitarea: "hitarea" }); })(jQuery);
rgeraads/phpDocumentor2
data/templates/responsive-twig/js/jquery.treeview.js
JavaScript
mit
8,204
!((document, $) => { var clip = new Clipboard('.copy-button'); clip.on('success', function(e) { $('.copied').show(); $('.copied').fadeOut(2000); }); })(document, jQuery);
cehfisher/a11y-style-guide
src/global/js/copy-button.js
JavaScript
mit
186
var binary = require('node-pre-gyp'); var path = require('path'); var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json'))); var binding = require(binding_path); var Stream = require('stream').Stream, inherits = require('util').inherits; function Snapshot() {} Snapshot.prototype.getHeader = function() { return { typeId: this.typeId, uid: this.uid, title: this.title } } /** * @param {Snapshot} other * @returns {Object} */ Snapshot.prototype.compare = function(other) { var selfHist = nodesHist(this), otherHist = nodesHist(other), keys = Object.keys(selfHist).concat(Object.keys(otherHist)), diff = {}; keys.forEach(function(key) { if (key in diff) return; var selfCount = selfHist[key] || 0, otherCount = otherHist[key] || 0; diff[key] = otherCount - selfCount; }); return diff; }; function ExportStream() { Stream.Transform.call(this); this._transform = function noTransform(chunk, encoding, done) { done(null, chunk); } } inherits(ExportStream, Stream.Transform); /** * @param {Stream.Writable|function} dataReceiver * @returns {Stream|undefined} */ Snapshot.prototype.export = function(dataReceiver) { dataReceiver = dataReceiver || new ExportStream(); var toStream = dataReceiver instanceof Stream, chunks = toStream ? null : []; function onChunk(chunk, len) { if (toStream) dataReceiver.write(chunk); else chunks.push(chunk); } function onDone() { if (toStream) dataReceiver.end(); else dataReceiver(null, chunks.join('')); } this.serialize(onChunk, onDone); return toStream ? dataReceiver : undefined; }; function nodes(snapshot) { var n = snapshot.nodesCount, i, nodes = []; for (i = 0; i < n; i++) { nodes[i] = snapshot.getNode(i); } return nodes; }; function nodesHist(snapshot) { var objects = {}; nodes(snapshot).forEach(function(node){ var key = node.type === "Object" ? node.name : node.type; objects[key] = objects[node.name] || 0; objects[key]++; }); return objects; }; function CpuProfile() {} CpuProfile.prototype.getHeader = function() { return { typeId: this.typeId, uid: this.uid, title: this.title } } CpuProfile.prototype.export = function(dataReceiver) { dataReceiver = dataReceiver || new ExportStream(); var toStream = dataReceiver instanceof Stream; var error, result; try { result = JSON.stringify(this); } catch (err) { error = err; } process.nextTick(function() { if (toStream) { if (error) { dataReceiver.emit('error', error); } dataReceiver.end(result); } else { dataReceiver(error, result); } }); return toStream ? dataReceiver : undefined; }; var startTime, endTime; var activeProfiles = []; var profiler = { /*HEAP PROFILER API*/ get snapshots() { return binding.heap.snapshots; }, takeSnapshot: function(name, control) { var snapshot = binding.heap.takeSnapshot.apply(null, arguments); snapshot.__proto__ = Snapshot.prototype; snapshot.title = name; return snapshot; }, getSnapshot: function(index) { var snapshot = binding.heap.snapshots[index]; if (!snapshot) return; snapshot.__proto__ = Snapshot.prototype; return snapshot; }, findSnapshot: function(uid) { var snapshot = binding.heap.snapshots.filter(function(snapshot) { return snapshot.uid == uid; })[0]; if (!snapshot) return; snapshot.__proto__ = Snapshot.prototype; return snapshot; }, deleteAllSnapshots: function () { binding.heap.snapshots.forEach(function(snapshot) { snapshot.delete(); }); }, startTrackingHeapObjects: binding.heap.startTrackingHeapObjects, stopTrackingHeapObjects: binding.heap.stopTrackingHeapObjects, getHeapStats: binding.heap.getHeapStats, getObjectByHeapObjectId: binding.heap.getObjectByHeapObjectId, /*CPU PROFILER API*/ get profiles() { return binding.cpu.profiles; }, startProfiling: function(name, recsamples) { if (activeProfiles.length == 0 && typeof process._startProfilerIdleNotifier == "function") process._startProfilerIdleNotifier(); name = name || ""; if (activeProfiles.indexOf(name) < 0) activeProfiles.push(name) startTime = Date.now(); binding.cpu.startProfiling(name, recsamples); }, stopProfiling: function(name) { var index = activeProfiles.indexOf(name); if (name && index < 0) return; var profile = binding.cpu.stopProfiling(name); endTime = Date.now(); profile.__proto__ = CpuProfile.prototype; if (!profile.startTime) profile.startTime = startTime; if (!profile.endTime) profile.endTime = endTime; if (name) activeProfiles.splice(index, 1); else activeProfiles.length = activeProfiles.length - 1; if (activeProfiles.length == 0 && typeof process._stopProfilerIdleNotifier == "function") process._stopProfilerIdleNotifier(); return profile; }, getProfile: function(index) { return binding.cpu.profiles[index]; }, findProfile: function(uid) { var profile = binding.cpu.profiles.filter(function(profile) { return profile.uid == uid; })[0]; return profile; }, deleteAllProfiles: function() { binding.cpu.profiles.forEach(function(profile) { profile.delete(); }); } }; module.exports = profiler; process.profiler = profiler;
timmyg/pedalwagon-api
node_modules/node-inspector/node_modules/v8-profiler/v8-profiler.js
JavaScript
mit
5,446
/** * webdriverio * https://github.com/Camme/webdriverio * * A WebDriver module for nodejs. Either use the super easy help commands or use the base * Webdriver wire protocol commands. Its totally inspired by jellyfishs webdriver, but the * goal is to make all the webdriver protocol items available, as near the original as possible. * * Copyright (c) 2013 Camilo Tapia <[email protected]> * Licensed under the MIT license. * * Contributors: * Dan Jenkins <[email protected]> * Christian Bromann <[email protected]> * Vincent Voyer <[email protected]> */ import WebdriverIO from './lib/webdriverio' import Multibrowser from './lib/multibrowser' import ErrorHandler from './lib/utils/ErrorHandler' import getImplementedCommands from './lib/helpers/getImplementedCommands' import pkg from './package.json' const IMPLEMENTED_COMMANDS = getImplementedCommands() const VERSION = pkg.version let remote = function (options = {}, modifier) { /** * initialise monad */ let wdio = WebdriverIO(options, modifier) /** * build prototype: commands */ for (let commandName of Object.keys(IMPLEMENTED_COMMANDS)) { wdio.lift(commandName, IMPLEMENTED_COMMANDS[commandName]) } let prototype = wdio() prototype.defer.resolve() return prototype } let multiremote = function (options) { let multibrowser = new Multibrowser() for (let browserName of Object.keys(options)) { multibrowser.addInstance( browserName, remote(options[browserName], multibrowser.getInstanceModifier()) ) } return remote(options, multibrowser.getModifier()) } export { remote, multiremote, VERSION, ErrorHandler }
testingbot/webdriverjs
index.js
JavaScript
mit
1,748
/* Highcharts JS v8.2.2 (2020-10-22) (c) 2016-2019 Highsoft AS Authors: Jon Arild Nygard License: www.highcharts.com/license */ (function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/sunburst",["highcharts"],function(q){b(q);b.Highcharts=q;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function q(b,d,p,D){b.hasOwnProperty(d)||(b[d]=D.apply(null,p))}b=b?b._modules:{};q(b,"Mixins/DrawPoint.js",[],function(){var b=function(b){return"function"===typeof b},d=function(p){var d,u=this,l=u.graphic,w=p.animatableAttribs, A=p.onComplete,g=p.css,k=p.renderer,V=null===(d=u.series)||void 0===d?void 0:d.options.animation;if(u.shouldDraw())l||(u.graphic=l=k[p.shapeType](p.shapeArgs).add(p.group)),l.css(g).attr(p.attribs).animate(w,p.isNew?!1:V,A);else if(l){var H=function(){u.graphic=l=l.destroy();b(A)&&A()};Object.keys(w).length?l.animate(w,void 0,function(){H()}):H()}};return{draw:d,drawPoint:function(b){(b.attribs=b.attribs||{})["class"]=this.getClassName();d.call(this,b)},isFn:b}});q(b,"Mixins/TreeSeries.js",[b["Core/Color/Color.js"], b["Core/Utilities.js"]],function(b,d){var p=d.extend,D=d.isArray,u=d.isNumber,l=d.isObject,w=d.merge,A=d.pick;return{getColor:function(g,k){var l=k.index,d=k.mapOptionsToLevel,p=k.parentColor,u=k.parentColorIndex,K=k.series,C=k.colors,I=k.siblings,r=K.points,w=K.chart.options.chart,B;if(g){r=r[g.i];g=d[g.level]||{};if(d=r&&g.colorByPoint){var D=r.index%(C?C.length:w.colorCount);var L=C&&C[D]}if(!K.chart.styledMode){C=r&&r.options.color;w=g&&g.color;if(B=p)B=(B=g&&g.colorVariation)&&"brightness"=== B.key?b.parse(p).brighten(l/I*B.to).get():p;B=A(C,w,L,B,K.color)}var q=A(r&&r.options.colorIndex,g&&g.colorIndex,D,u,k.colorIndex)}return{color:B,colorIndex:q}},getLevelOptions:function(b){var k=null;if(l(b)){k={};var d=u(b.from)?b.from:1;var g=b.levels;var A={};var q=l(b.defaults)?b.defaults:{};D(g)&&(A=g.reduce(function(b,k){if(l(k)&&u(k.level)){var g=w({},k);var r="boolean"===typeof g.levelIsConstant?g.levelIsConstant:q.levelIsConstant;delete g.levelIsConstant;delete g.level;k=k.level+(r?0:d-1); l(b[k])?p(b[k],g):b[k]=g}return b},{}));g=u(b.to)?b.to:1;for(b=0;b<=g;b++)k[b]=w({},q,l(A[b])?A[b]:{})}return k},setTreeValues:function H(b,d){var k=d.before,l=d.idRoot,u=d.mapIdToNode[l],C=d.points[b.i],w=C&&C.options||{},r=0,q=[];p(b,{levelDynamic:b.level-(("boolean"===typeof d.levelIsConstant?d.levelIsConstant:1)?0:u.level),name:A(C&&C.name,""),visible:l===b.id||("boolean"===typeof d.visible?d.visible:!1)});"function"===typeof k&&(b=k(b,d));b.children.forEach(function(k,l){var u=p({},d);p(u,{index:l, siblings:b.children.length,visible:b.visible});k=H(k,u);q.push(k);k.visible&&(r+=k.val)});b.visible=0<r||b.visible;k=A(w.value,r);p(b,{children:q,childrenTotal:r,isLeaf:b.visible&&!r,val:k});return b},updateRootId:function(b){if(l(b)){var d=l(b.options)?b.options:{};d=A(b.rootNode,d.rootId,"");l(b.userOptions)&&(b.userOptions.rootId=d);b.rootNode=d}return d}}});q(b,"Mixins/ColorMapSeries.js",[b["Core/Globals.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,d,p){var q=p.defined;return{colorMapPointMixin:{dataLabelOnNull:!0, isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setState:function(b){d.prototype.setState.call(this,b);this.graphic&&this.graphic.attr({zIndex:"hover"===b?1:0})}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:b.noop,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:b.seriesTypes.column.prototype.pointAttribs,colorAttribs:function(b){var d= {};q(b.color)&&(d[this.colorProp||"fill"]=b.color);return d}}}});q(b,"Series/TreemapSeries.js",[b["Core/Series/Series.js"],b["Core/Color/Color.js"],b["Mixins/ColorMapSeries.js"],b["Mixins/DrawPoint.js"],b["Core/Globals.js"],b["Mixins/LegendSymbol.js"],b["Core/Series/Point.js"],b["Mixins/TreeSeries.js"],b["Core/Utilities.js"]],function(b,d,p,q,u,l,w,A,g){var k=b.seriesTypes,D=d.parse,H=p.colorMapSeriesMixin;d=u.noop;var Q=A.getColor,N=A.getLevelOptions,K=A.updateRootId,C=g.addEvent,I=g.correctFloat, r=g.defined,R=g.error,B=g.extend,S=g.fireEvent,L=g.isArray,O=g.isNumber,P=g.isObject,M=g.isString,J=g.merge,T=g.objectEach,f=g.pick,h=g.stableSort,t=u.Series,y=function(a,c,e){e=e||this;T(a,function(b,m){c.call(e,b,m,a)})},E=function(a,c,e){e=e||this;a=c.call(e,a);!1!==a&&E(a,c,e)},n=!1;b.seriesType("treemap","scatter",{allowTraversingTree:!1,animationLimit:250,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var a=this&&this.point?this.point:{};return M(a.name)? a.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}},traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:k.heatmap?0:.1, halo:!1,opacity:.75,shadow:!1}}},{pointArrayMap:["value"],directTouch:!0,optionalAxis:"colorAxis",getSymbol:d,parallelArrays:["x","y","value","colorValue"],colorKey:"colorValue",trackerGroups:["group","dataLabelsGroup"],getListOfParents:function(a,c){a=L(a)?a:[];var e=L(c)?c:[];c=a.reduce(function(a,c,e){c=f(c.parent,"");"undefined"===typeof a[c]&&(a[c]=[]);a[c].push(e);return a},{"":[]});y(c,function(a,c,b){""!==c&&-1===e.indexOf(c)&&(a.forEach(function(a){b[""].push(a)}),delete b[c])});return c}, getTree:function(){var a=this.data.map(function(a){return a.id});a=this.getListOfParents(this.data,a);this.nodeMap={};return this.buildNode("",-1,0,a)},hasData:function(){return!!this.processedXData.length},init:function(a,c){H&&(this.colorAttribs=H.colorAttribs);var e=C(this,"setOptions",function(a){a=a.userOptions;r(a.allowDrillToNode)&&!r(a.allowTraversingTree)&&(a.allowTraversingTree=a.allowDrillToNode,delete a.allowDrillToNode);r(a.drillUpButton)&&!r(a.traverseUpButton)&&(a.traverseUpButton= a.drillUpButton,delete a.drillUpButton)});t.prototype.init.call(this,a,c);delete this.opacity;this.eventsToUnbind.push(e);this.options.allowTraversingTree&&this.eventsToUnbind.push(C(this,"click",this.onClickDrillToNode))},buildNode:function(a,c,e,b,m){var f=this,x=[],h=f.points[c],d=0,F;(b[a]||[]).forEach(function(c){F=f.buildNode(f.points[c].id,c,e+1,b,a);d=Math.max(F.height+1,d);x.push(F)});c={id:a,i:c,children:x,height:d,level:e,parent:m,visible:!1};f.nodeMap[c.id]=c;h&&(h.node=c);return c},setTreeValues:function(a){var c= this,e=c.options,b=c.nodeMap[c.rootNode];e="boolean"===typeof e.levelIsConstant?e.levelIsConstant:!0;var m=0,U=[],v=c.points[a.i];a.children.forEach(function(a){a=c.setTreeValues(a);U.push(a);a.ignore||(m+=a.val)});h(U,function(a,c){return(a.sortIndex||0)-(c.sortIndex||0)});var d=f(v&&v.options.value,m);v&&(v.value=d);B(a,{children:U,childrenTotal:m,ignore:!(f(v&&v.visible,!0)&&0<d),isLeaf:a.visible&&!m,levelDynamic:a.level-(e?0:b.level),name:f(v&&v.name,""),sortIndex:f(v&&v.sortIndex,-d),val:d}); return a},calculateChildrenAreas:function(a,c){var e=this,b=e.options,m=e.mapOptionsToLevel[a.level+1],d=f(e[m&&m.layoutAlgorithm]&&m.layoutAlgorithm,b.layoutAlgorithm),v=b.alternateStartingDirection,h=[];a=a.children.filter(function(a){return!a.ignore});m&&m.layoutStartingDirection&&(c.direction="vertical"===m.layoutStartingDirection?0:1);h=e[d](c,a);a.forEach(function(a,b){b=h[b];a.values=J(b,{val:a.childrenTotal,direction:v?1-c.direction:c.direction});a.pointValues=J(b,{x:b.x/e.axisRatio,y:100- b.y-b.height,width:b.width/e.axisRatio});a.children.length&&e.calculateChildrenAreas(a,a.values)})},setPointValues:function(){var a=this,c=a.xAxis,e=a.yAxis,b=a.chart.styledMode;a.points.forEach(function(f){var m=f.node,x=m.pointValues;m=m.visible;if(x&&m){m=x.height;var d=x.width,h=x.x,t=x.y,n=b?0:(a.pointAttribs(f)["stroke-width"]||0)%2/2;x=Math.round(c.toPixels(h,!0))-n;d=Math.round(c.toPixels(h+d,!0))-n;h=Math.round(e.toPixels(t,!0))-n;m=Math.round(e.toPixels(t+m,!0))-n;f.shapeArgs={x:Math.min(x, d),y:Math.min(h,m),width:Math.abs(d-x),height:Math.abs(m-h)};f.plotX=f.shapeArgs.x+f.shapeArgs.width/2;f.plotY=f.shapeArgs.y+f.shapeArgs.height/2}else delete f.plotX,delete f.plotY})},setColorRecursive:function(a,c,e,b,f){var m=this,x=m&&m.chart;x=x&&x.options&&x.options.colors;if(a){var d=Q(a,{colors:x,index:b,mapOptionsToLevel:m.mapOptionsToLevel,parentColor:c,parentColorIndex:e,series:m,siblings:f});if(c=m.points[a.i])c.color=d.color,c.colorIndex=d.colorIndex;(a.children||[]).forEach(function(c, e){m.setColorRecursive(c,d.color,d.colorIndex,e,a.children.length)})}},algorithmGroup:function(a,c,e,b){this.height=a;this.width=c;this.plot=b;this.startDirection=this.direction=e;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,c){return Math.max(a/c,c/a)}};this.addElement=function(a){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR= this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)};this.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0}},algorithmCalcPoints:function(a,c,e,b){var f, x,d,h,t=e.lW,n=e.lH,g=e.plot,k=0,y=e.elArr.length-1;if(c)t=e.nW,n=e.nH;else var G=e.elArr[e.elArr.length-1];e.elArr.forEach(function(a){if(c||k<y)0===e.direction?(f=g.x,x=g.y,d=t,h=a/d):(f=g.x,x=g.y,h=n,d=a/h),b.push({x:f,y:x,width:d,height:I(h)}),0===e.direction?g.y+=h:g.x+=d;k+=1});e.reset();0===e.direction?e.width-=t:e.height-=n;g.y=g.parent.y+(g.parent.height-e.height);g.x=g.parent.x+(g.parent.width-e.width);a&&(e.direction=1-e.direction);c||e.addElement(G)},algorithmLowAspectRatio:function(a, c,e){var b=[],f=this,d,h={x:c.x,y:c.y,parent:c},t=0,g=e.length-1,n=new this.algorithmGroup(c.height,c.width,c.direction,h);e.forEach(function(e){d=e.val/c.val*c.height*c.width;n.addElement(d);n.lP.nR>n.lP.lR&&f.algorithmCalcPoints(a,!1,n,b,h);t===g&&f.algorithmCalcPoints(a,!0,n,b,h);t+=1});return b},algorithmFill:function(a,c,e){var b=[],f,d=c.direction,h=c.x,t=c.y,n=c.width,g=c.height,k,y,l,G;e.forEach(function(e){f=e.val/c.val*c.height*c.width;k=h;y=t;0===d?(G=g,l=f/G,n-=l,h+=l):(l=n,G=f/l,g-=G, t+=G);b.push({x:k,y:y,width:l,height:G});a&&(d=1-d)});return b},strip:function(a,c){return this.algorithmLowAspectRatio(!1,a,c)},squarified:function(a,c){return this.algorithmLowAspectRatio(!0,a,c)},sliceAndDice:function(a,c){return this.algorithmFill(!0,a,c)},stripes:function(a,c){return this.algorithmFill(!1,a,c)},translate:function(){var a=this,c=a.options,e=K(a);t.prototype.translate.call(a);var b=a.tree=a.getTree();var f=a.nodeMap[e];a.renderTraverseUpButton(e);a.mapOptionsToLevel=N({from:f.level+ 1,levels:c.levels,to:b.height,defaults:{levelIsConstant:a.options.levelIsConstant,colorByPoint:c.colorByPoint}});""===e||f&&f.children.length||(a.setRootNode("",!1),e=a.rootNode,f=a.nodeMap[e]);E(a.nodeMap[a.rootNode],function(c){var e=!1,b=c.parent;c.visible=!0;if(b||""===b)e=a.nodeMap[b];return e});E(a.nodeMap[a.rootNode].children,function(a){var c=!1;a.forEach(function(a){a.visible=!0;a.children.length&&(c=(c||[]).concat(a.children))});return c});a.setTreeValues(b);a.axisRatio=a.xAxis.len/a.yAxis.len; a.nodeMap[""].pointValues=e={x:0,y:0,width:100,height:100};a.nodeMap[""].values=e=J(e,{width:e.width*a.axisRatio,direction:"vertical"===c.layoutStartingDirection?0:1,val:b.val});a.calculateChildrenAreas(b,e);a.colorAxis||c.colorByPoint||a.setColorRecursive(a.tree);c.allowTraversingTree&&(c=f.pointValues,a.xAxis.setExtremes(c.x,c.x+c.width,!1),a.yAxis.setExtremes(c.y,c.y+c.height,!1),a.xAxis.setScale(),a.yAxis.setScale());a.setPointValues()},drawDataLabels:function(){var a=this,c=a.mapOptionsToLevel, e,b;a.points.filter(function(a){return a.node.visible}).forEach(function(f){b=c[f.node.level];e={style:{}};f.node.isLeaf||(e.enabled=!1);b&&b.dataLabels&&(e=J(e,b.dataLabels),a._hasPointLabels=!0);f.shapeArgs&&(e.style.width=f.shapeArgs.width,f.dataLabel&&f.dataLabel.css({width:f.shapeArgs.width+"px"}));f.dlOptions=J(e,f.options.dataLabels)});t.prototype.drawDataLabels.call(this)},alignDataLabel:function(a,c,b){var e=b.style;!r(e.textOverflow)&&c.text&&c.getBBox().width>c.text.textWidth&&c.css({textOverflow:"ellipsis", width:e.width+="px"});k.column.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:(a.node.zIndex||0)+1})},pointAttribs:function(a,c){var b=P(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},d=a&&b[a.node.level]||{};b=this.options;var h=c&&b.states[c]||{},t=a&&a.getClassName()||"";a={stroke:a&&a.borderColor||d.borderColor||h.borderColor||b.borderColor,"stroke-width":f(a&&a.borderWidth,d.borderWidth,h.borderWidth,b.borderWidth),dashstyle:a&&a.borderDashStyle||d.borderDashStyle|| h.borderDashStyle||b.borderDashStyle,fill:a&&a.color||this.color};-1!==t.indexOf("highcharts-above-level")?(a.fill="none",a["stroke-width"]=0):-1!==t.indexOf("highcharts-internal-node-interactive")?(c=f(h.opacity,b.opacity),a.fill=D(a.fill).setOpacity(c).get(),a.cursor="pointer"):-1!==t.indexOf("highcharts-internal-node")?a.fill="none":c&&(a.fill=D(a.fill).brighten(h.brightness).get());return a},drawPoints:function(){var a=this,c=a.chart,b=c.renderer,f=c.styledMode,d=a.options,h=f?{}:d.shadow,t=d.borderRadius, n=c.pointCount<d.animationLimit,g=d.allowTraversingTree;a.points.forEach(function(c){var e=c.node.levelDynamic,m={},x={},G={},k="level-group-"+c.node.level,l=!!c.graphic,y=n&&l,E=c.shapeArgs;c.shouldDraw()&&(t&&(x.r=t),J(!0,y?m:x,l?E:{},f?{}:a.pointAttribs(c,c.selected?"select":void 0)),a.colorAttribs&&f&&B(G,a.colorAttribs(c)),a[k]||(a[k]=b.g(k).attr({zIndex:1E3-(e||0)}).add(a.group),a[k].survive=!0));c.draw({animatableAttribs:m,attribs:x,css:G,group:a[k],renderer:b,shadow:h,shapeArgs:E,shapeType:"rect"}); g&&c.graphic&&(c.drillId=d.interactByLeaf?a.drillToByLeaf(c):a.drillToByGroup(c))})},onClickDrillToNode:function(a){var c=(a=a.point)&&a.drillId;M(c)&&(a.setState(""),this.setRootNode(c,!0,{trigger:"click"}))},drillToByGroup:function(a){var c=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(c=a.id);return c},drillToByLeaf:function(a){var c=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!c;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(c=a.id);return c}, drillUp:function(){var a=this.nodeMap[this.rootNode];a&&M(a.parent)&&this.setRootNode(a.parent,!0,{trigger:"traverseUpButton"})},drillToNode:function(a,c){R(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"});this.setRootNode(a,c)},setRootNode:function(a,c,b){a=B({newRootId:a,previousRootId:this.rootNode,redraw:f(c,!0),series:this},b);S(this,"setRootNode",a,function(a){var c=a.series;c.idPreviousRoot=a.previousRootId;c.rootNode=a.newRootId;c.isDirty=!0;a.redraw&&c.chart.redraw()})},renderTraverseUpButton:function(a){var c= this,b=c.options.traverseUpButton,d=f(b.text,c.nodeMap[a].name,"\u25c1 Back");if(""===a||c.is("sunburst")&&1===c.tree.children.length&&a===c.tree.children[0].id)c.drillUpButton&&(c.drillUpButton=c.drillUpButton.destroy());else if(this.drillUpButton)this.drillUpButton.placed=!1,this.drillUpButton.attr({text:d}).align();else{var h=(a=b.theme)&&a.states;this.drillUpButton=this.chart.renderer.button(d,0,0,function(){c.drillUp()},a,h&&h.hover,h&&h.select).addClass("highcharts-drillup-button").attr({align:b.position.align, zIndex:7}).add().align(b.position,!1,b.relativeTo||"plotBox")}},buildKDTree:d,drawLegendSymbol:l.drawRectangle,getExtremes:function(){var a=t.prototype.getExtremes.call(this,this.colorValueData),c=a.dataMax;this.valueMin=a.dataMin;this.valueMax=c;return t.prototype.getExtremes.call(this)},getExtremesFromAll:!0,setState:function(a){this.options.inactiveOtherPoints=!0;t.prototype.setState.call(this,a,!1);this.options.inactiveOtherPoints=!1},utils:{recursive:E}},{draw:q.drawPoint,setVisible:k.pie.prototype.pointClass.prototype.setVisible, getClassName:function(){var a=w.prototype.getClassName.call(this),c=this.series,b=c.options;this.node.level<=c.nodeMap[c.rootNode].level?a+=" highcharts-above-level":this.node.isLeaf||f(b.interactByLeaf,!b.allowTraversingTree)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";return a},isValid:function(){return!(!this.id&&!O(this.value))},setState:function(a){w.prototype.setState.call(this,a);this.graphic&&this.graphic.attr({zIndex:"hover"===a?1:0})},shouldDraw:function(){return O(this.plotY)&& null!==this.y}});C(u.Series,"afterBindAxes",function(){var a=this.xAxis,c=this.yAxis;if(a&&c)if(this.is("treemap")){var b={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};B(c.options,b);B(a.options,b);n=!0}else n&&(c.setOptions(c.userOptions),a.setOptions(a.userOptions),n=!1)});""});q(b,"Series/SunburstSeries.js",[b["Core/Series/Series.js"],b["Mixins/CenteredSeries.js"],b["Mixins/DrawPoint.js"],b["Core/Globals.js"], b["Mixins/TreeSeries.js"],b["Core/Utilities.js"]],function(b,d,p,q,u,l){var w=b.seriesTypes,A=d.getCenter,g=d.getStartAndEndRadians,k=u.getColor,D=u.getLevelOptions,H=u.setTreeValues,Q=u.updateRootId,N=l.correctFloat,K=l.error,C=l.extend,I=l.isNumber,r=l.isObject,R=l.isString,B=l.merge,S=l.splat,L=q.Series,O=180/Math.PI,P=function(b,d){var f=[];if(I(b)&&I(d)&&b<=d)for(;b<=d;b++)f.push(b);return f},M=function(b,d){d=r(d)?d:{};var f=0,h;if(r(b)){var g=B({},b);b=I(d.from)?d.from:0;var n=I(d.to)?d.to: 0;var a=P(b,n);b=Object.keys(g).filter(function(c){return-1===a.indexOf(+c)});var c=h=I(d.diffRadius)?d.diffRadius:0;a.forEach(function(a){a=g[a];var b=a.levelSize.unit,e=a.levelSize.value;"weight"===b?f+=e:"percentage"===b?(a.levelSize={unit:"pixels",value:e/100*c},h-=a.levelSize.value):"pixels"===b&&(h-=e)});a.forEach(function(a){var c=g[a];"weight"===c.levelSize.unit&&(c=c.levelSize.value,g[a].levelSize={unit:"pixels",value:c/f*h})});b.forEach(function(a){g[a].levelSize={value:0,unit:"pixels"}})}return g}, J=function(b){var f=b.level;return{from:0<f?f:1,to:f+b.height}},T=function(b,d){var f=d.mapIdToNode[b.parent],h=d.series,g=h.chart,n=h.points[b.i];f=k(b,{colors:h.options.colors||g&&g.options.colors,colorIndex:h.colorIndex,index:d.index,mapOptionsToLevel:d.mapOptionsToLevel,parentColor:f&&f.color,parentColorIndex:f&&f.colorIndex,series:d.series,siblings:d.siblings});b.color=f.color;b.colorIndex=f.colorIndex;n&&(n.color=b.color,n.colorIndex=b.colorIndex,b.sliced=b.id!==d.idRoot?n.sliced:!1);return b}; d={drawDataLabels:q.noop,drawPoints:function(){var b=this,d=b.mapOptionsToLevel,g=b.shapeRoot,k=b.group,l=b.hasRendered,n=b.rootNode,a=b.idPreviousRoot,c=b.nodeMap,e=c[a],x=e&&e.shapeArgs;e=b.points;var m=b.startAndEndRadians,p=b.chart,v=p&&p.options&&p.options.chart||{},u="boolean"===typeof v.animation?v.animation:!0,q=b.center[3]/2,A=b.chart.renderer,w=!1,D=!1;if(v=!!(u&&l&&n!==a&&b.dataLabelsGroup)){b.dataLabelsGroup.attr({opacity:0});var H=function(){w=!0;b.dataLabelsGroup&&b.dataLabelsGroup.animate({opacity:1, visibility:"visible"})}}e.forEach(function(e){var f=e.node,h=d[f.level];var t=e.shapeExisting||{};var y=f.shapeArgs||{},v=!(!f.visible||!f.shapeArgs);if(l&&u){var E={};var w={end:y.end,start:y.start,innerR:y.innerR,r:y.r,x:y.x,y:y.y};v?!e.graphic&&x&&(E=n===e.id?{start:m.start,end:m.end}:x.end<=y.start?{start:m.end,end:m.end}:{start:m.start,end:m.start},E.innerR=E.r=q):e.graphic&&(a===e.id?w={innerR:q,r:q}:g&&(w=g.end<=t.start?{innerR:q,r:q,start:m.end,end:m.end}:{innerR:q,r:q,start:m.start,end:m.start})); t=E}else w=y,t={};E=[y.plotX,y.plotY];if(!e.node.isLeaf)if(n===e.id){var z=c[n];z=z.parent}else z=e.id;C(e,{shapeExisting:y,tooltipPos:E,drillId:z,name:""+(e.name||e.id||e.index),plotX:y.plotX,plotY:y.plotY,value:f.val,isNull:!v});z=e.options;f=r(y)?y:{};z=r(z)?z.dataLabels:{};h=S(r(h)?h.dataLabels:{})[0];h=B({style:{}},h,z);z=h.rotationMode;if(!I(h.rotation)){if("auto"===z||"circular"===z)if(1>e.innerArcLength&&e.outerArcLength>f.radius){var F=0;e.dataLabelPath&&"circular"===z&&(h.textPath={enabled:!0})}else 1< e.innerArcLength&&e.outerArcLength>1.5*f.radius?"circular"===z?h.textPath={enabled:!0,attributes:{dy:5}}:z="parallel":(e.dataLabel&&e.dataLabel.textPathWrapper&&"circular"===z&&(h.textPath={enabled:!1}),z="perpendicular");"auto"!==z&&"circular"!==z&&(F=f.end-(f.end-f.start)/2);h.style.width="parallel"===z?Math.min(2.5*f.radius,(e.outerArcLength+e.innerArcLength)/2):f.radius;"perpendicular"===z&&e.series.chart.renderer.fontMetrics(h.style.fontSize).h>e.outerArcLength&&(h.style.width=1);h.style.width= Math.max(h.style.width-2*(h.padding||0),1);F=F*O%180;"parallel"===z&&(F-=90);90<F?F-=180:-90>F&&(F+=180);h.rotation=F}h.textPath&&(0===e.shapeExisting.innerR&&h.textPath.enabled?(h.rotation=0,h.textPath.enabled=!1,h.style.width=Math.max(2*e.shapeExisting.r-2*(h.padding||0),1)):e.dlOptions&&e.dlOptions.textPath&&!e.dlOptions.textPath.enabled&&"circular"===z&&(h.textPath.enabled=!0),h.textPath.enabled&&(h.rotation=0,h.style.width=Math.max((e.outerArcLength+e.innerArcLength)/2-2*(h.padding||0),1))); 0===h.rotation&&(h.rotation=.001);e.dlOptions=h;if(!D&&v){D=!0;var G=H}e.draw({animatableAttribs:w,attribs:C(t,!p.styledMode&&b.pointAttribs(e,e.selected&&"select")),onComplete:G,group:k,renderer:A,shapeType:"arc",shapeArgs:y})});v&&D?(b.hasRendered=!1,b.options.dataLabels.defer=!0,L.prototype.drawDataLabels.call(b),b.hasRendered=!0,w&&H()):L.prototype.drawDataLabels.call(b)},pointAttribs:w.column.prototype.pointAttribs,layoutAlgorithm:function(b,d,g){var f=b.start,h=b.end-f,n=b.val,a=b.x,c=b.y,e= g&&r(g.levelSize)&&I(g.levelSize.value)?g.levelSize.value:0,k=b.r,t=k+e,l=g&&I(g.slicedOffset)?g.slicedOffset:0;return(d||[]).reduce(function(b,d){var g=1/n*d.val*h,m=f+g/2,y=a+Math.cos(m)*l;m=c+Math.sin(m)*l;d={x:d.sliced?y:a,y:d.sliced?m:c,innerR:k,r:t,radius:e,start:f,end:f+g};b.push(d);f=d.end;return b},[])},setShapeArgs:function(b,d,g){var f=[],h=g[b.level+1];b=b.children.filter(function(b){return b.visible});f=this.layoutAlgorithm(d,b,h);b.forEach(function(b,a){a=f[a];var c=a.start+(a.end-a.start)/ 2,e=a.innerR+(a.r-a.innerR)/2,d=a.end-a.start;e=0===a.innerR&&6.28<d?{x:a.x,y:a.y}:{x:a.x+Math.cos(c)*e,y:a.y+Math.sin(c)*e};var h=b.val?b.childrenTotal>b.val?b.childrenTotal:b.val:b.childrenTotal;this.points[b.i]&&(this.points[b.i].innerArcLength=d*a.innerR,this.points[b.i].outerArcLength=d*a.r);b.shapeArgs=B(a,{plotX:e.x,plotY:e.y+4*Math.abs(Math.cos(c))});b.values=B(a,{val:h});b.children.length&&this.setShapeArgs(b,b.values,g)},this)},translate:function(){var b=this,d=b.options,k=b.center=A.call(b), l=b.startAndEndRadians=g(d.startAngle,d.endAngle),p=k[3]/2,n=k[2]/2-p,a=Q(b),c=b.nodeMap,e=c&&c[a],q={};b.shapeRoot=e&&e.shapeArgs;L.prototype.translate.call(b);var m=b.tree=b.getTree();b.renderTraverseUpButton(a);c=b.nodeMap;e=c[a];var r=R(e.parent)?e.parent:"";r=c[r];var v=J(e);var u=v.from,w=v.to;v=D({from:u,levels:b.options.levels,to:w,defaults:{colorByPoint:d.colorByPoint,dataLabels:d.dataLabels,levelIsConstant:d.levelIsConstant,levelSize:d.levelSize,slicedOffset:d.slicedOffset}});v=M(v,{diffRadius:n, from:u,to:w});H(m,{before:T,idRoot:a,levelIsConstant:d.levelIsConstant,mapOptionsToLevel:v,mapIdToNode:c,points:b.points,series:b});d=c[""].shapeArgs={end:l.end,r:p,start:l.start,val:e.val,x:k[0],y:k[1]};this.setShapeArgs(r,d,v);b.mapOptionsToLevel=v;b.data.forEach(function(a){q[a.id]&&K(31,!1,b.chart);q[a.id]=!0});q={}},alignDataLabel:function(b,d,g){if(!g.textPath||!g.textPath.enabled)return w.treemap.prototype.alignDataLabel.apply(this,arguments)},animate:function(b){var d=this.chart,f=[d.plotWidth/ 2,d.plotHeight/2],g=d.plotLeft,k=d.plotTop;d=this.group;b?(b={translateX:f[0]+g,translateY:f[1]+k,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},d.attr(b)):(b={translateX:g,translateY:k,scaleX:1,scaleY:1,rotation:0,opacity:1},d.animate(b,this.options.animation))},utils:{calculateLevelSizes:M,getLevelFromAndTo:J,range:P}};p={draw:p.drawPoint,shouldDraw:function(){return!this.isNull},isValid:function(){return!0},getDataLabelPath:function(b){var d=this.series.chart.renderer,f=this.shapeExisting,g= f.start,k=f.end,l=g+(k-g)/2;l=0>l&&l>-Math.PI||l>Math.PI;var a=f.r+(b.options.distance||0);g===-Math.PI/2&&N(k)===N(1.5*Math.PI)&&(g=-Math.PI+Math.PI/360,k=-Math.PI/360,l=!0);if(k-g>Math.PI){l=!1;var c=!0}this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy());this.dataLabelPath=d.arc({open:!0,longArc:c?1:0}).add(b);this.dataLabelPath.attr({start:l?g:k,end:l?k:g,clockwise:+l,x:f.x,y:f.y,r:(a+f.innerR)/2});return this.dataLabelPath}};"";b.seriesType("sunburst","treemap",{center:["50%", "50%"],colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"auto",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10},d,p)});q(b,"masters/modules/sunburst.src.js",[],function(){})}); //# sourceMappingURL=sunburst.js.map
cdnjs/cdnjs
ajax/libs/highcharts/8.2.2/modules/sunburst.js
JavaScript
mit
25,544
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import PropTypes from 'prop-types'; import { Transition } from 'react-transition-group'; import useTheme from '../styles/useTheme'; import { reflow, getTransitionProps } from '../transitions/utils'; import useForkRef from '../utils/useForkRef'; function getScale(value) { return `scale(${value}, ${value ** 2})`; } const styles = { entering: { opacity: 1, transform: getScale(1) }, entered: { opacity: 1, transform: 'none' } }; /** * The Grow transition is used by the [Tooltip](/components/tooltips/) and * [Popover](/components/popover/) components. * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. */ const Grow = React.forwardRef(function Grow(props, ref) { const { children, in: inProp, onEnter, onExit, style, timeout = 'auto' } = props, other = _objectWithoutPropertiesLoose(props, ["children", "in", "onEnter", "onExit", "style", "timeout"]); const timer = React.useRef(); const autoTimeout = React.useRef(); const handleRef = useForkRef(children.ref, ref); const theme = useTheme(); const handleEnter = (node, isAppearing) => { reflow(node); // So the animation always start from the start. const { duration: transitionDuration, delay } = getTransitionProps({ style, timeout }, { mode: 'enter' }); let duration; if (timeout === 'auto') { duration = theme.transitions.getAutoHeightDuration(node.clientHeight); autoTimeout.current = duration; } else { duration = transitionDuration; } node.style.transition = [theme.transitions.create('opacity', { duration, delay }), theme.transitions.create('transform', { duration: duration * 0.666, delay })].join(','); if (onEnter) { onEnter(node, isAppearing); } }; const handleExit = node => { const { duration: transitionDuration, delay } = getTransitionProps({ style, timeout }, { mode: 'exit' }); let duration; if (timeout === 'auto') { duration = theme.transitions.getAutoHeightDuration(node.clientHeight); autoTimeout.current = duration; } else { duration = transitionDuration; } node.style.transition = [theme.transitions.create('opacity', { duration, delay }), theme.transitions.create('transform', { duration: duration * 0.666, delay: delay || duration * 0.333 })].join(','); node.style.opacity = '0'; node.style.transform = getScale(0.75); if (onExit) { onExit(node); } }; const addEndListener = (_, next) => { if (timeout === 'auto') { timer.current = setTimeout(next, autoTimeout.current || 0); } }; React.useEffect(() => { return () => { clearTimeout(timer.current); }; }, []); return /*#__PURE__*/React.createElement(Transition, _extends({ appear: true, in: inProp, onEnter: handleEnter, onExit: handleExit, addEndListener: addEndListener, timeout: timeout === 'auto' ? null : timeout }, other), (state, childProps) => { return React.cloneElement(children, _extends({ style: _extends({ opacity: 0, transform: getScale(0.75), visibility: state === 'exited' && !inProp ? 'hidden' : undefined }, styles[state], {}, style, {}, children.props.style), ref: handleRef }, childProps)); }); }); process.env.NODE_ENV !== "production" ? Grow.propTypes = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit the d.ts file and run "yarn proptypes" | // ---------------------------------------------------------------------- /** * A single child content element. */ children: PropTypes.element, /** * If `true`, show the component; triggers the enter or exit animation. */ in: PropTypes.bool, /** * @ignore */ onEnter: PropTypes.func, /** * @ignore */ onExit: PropTypes.func, /** * @ignore */ style: PropTypes.object, /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. * * Set to 'auto' to automatically calculate transition time based on height. */ timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({ appear: PropTypes.number, enter: PropTypes.number, exit: PropTypes.number })]) } : void 0; Grow.muiSupportAuto = true; export default Grow;
cdnjs/cdnjs
ajax/libs/material-ui/4.9.9/es/Grow/Grow.js
JavaScript
mit
4,874
"use strict"; exports.__esModule = true; exports.default = void 0; var React = _interopRequireWildcard(require("react")); var _createElement = _interopRequireDefault(require("../createElement")); var _css = _interopRequireDefault(require("../StyleSheet/css")); var _pick = _interopRequireDefault(require("../../modules/pick")); var _useElementLayout = _interopRequireDefault(require("../../hooks/useElementLayout")); var _useMergeRefs = _interopRequireDefault(require("../../modules/useMergeRefs")); var _usePlatformMethods = _interopRequireDefault(require("../../hooks/usePlatformMethods")); var _useResponderEvents = _interopRequireDefault(require("../../hooks/useResponderEvents")); var _StyleSheet = _interopRequireDefault(require("../StyleSheet")); var _TextAncestorContext = _interopRequireDefault(require("../Text/TextAncestorContext")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } /** * Copyright (c) Nicolas Gallagher. * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ var forwardPropsList = { accessibilityLabel: true, accessibilityLiveRegion: true, accessibilityRole: true, accessibilityState: true, accessibilityValue: true, accessible: true, children: true, classList: true, disabled: true, importantForAccessibility: true, nativeID: true, onBlur: true, onClick: true, onClickCapture: true, onContextMenu: true, onFocus: true, onKeyDown: true, onKeyUp: true, onTouchCancel: true, onTouchCancelCapture: true, onTouchEnd: true, onTouchEndCapture: true, onTouchMove: true, onTouchMoveCapture: true, onTouchStart: true, onTouchStartCapture: true, pointerEvents: true, ref: true, style: true, testID: true, // unstable dataSet: true, onMouseDown: true, onMouseEnter: true, onMouseLeave: true, onMouseMove: true, onMouseOver: true, onMouseOut: true, onMouseUp: true, onScroll: true, onWheel: true, href: true, rel: true, target: true }; var pickProps = function pickProps(props) { return (0, _pick.default)(props, forwardPropsList); }; var View = (0, React.forwardRef)(function (props, forwardedRef) { var onLayout = props.onLayout, onMoveShouldSetResponder = props.onMoveShouldSetResponder, onMoveShouldSetResponderCapture = props.onMoveShouldSetResponderCapture, onResponderEnd = props.onResponderEnd, onResponderGrant = props.onResponderGrant, onResponderMove = props.onResponderMove, onResponderReject = props.onResponderReject, onResponderRelease = props.onResponderRelease, onResponderStart = props.onResponderStart, onResponderTerminate = props.onResponderTerminate, onResponderTerminationRequest = props.onResponderTerminationRequest, onScrollShouldSetResponder = props.onScrollShouldSetResponder, onScrollShouldSetResponderCapture = props.onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder = props.onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture = props.onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder = props.onStartShouldSetResponder, onStartShouldSetResponderCapture = props.onStartShouldSetResponderCapture; if (process.env.NODE_ENV !== 'production') { React.Children.toArray(props.children).forEach(function (item) { if (typeof item === 'string') { console.error("Unexpected text node: " + item + ". A text node cannot be a child of a <View>."); } }); } var hasTextAncestor = (0, React.useContext)(_TextAncestorContext.default); var hostRef = (0, React.useRef)(null); var classList = [classes.view]; var style = _StyleSheet.default.compose(hasTextAncestor && styles.inline, props.style); (0, _useElementLayout.default)(hostRef, onLayout); (0, _useResponderEvents.default)(hostRef, { onMoveShouldSetResponder: onMoveShouldSetResponder, onMoveShouldSetResponderCapture: onMoveShouldSetResponderCapture, onResponderEnd: onResponderEnd, onResponderGrant: onResponderGrant, onResponderMove: onResponderMove, onResponderReject: onResponderReject, onResponderRelease: onResponderRelease, onResponderStart: onResponderStart, onResponderTerminate: onResponderTerminate, onResponderTerminationRequest: onResponderTerminationRequest, onScrollShouldSetResponder: onScrollShouldSetResponder, onScrollShouldSetResponderCapture: onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder: onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture: onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder: onStartShouldSetResponder, onStartShouldSetResponderCapture: onStartShouldSetResponderCapture }); var supportedProps = pickProps(props); supportedProps.classList = classList; supportedProps.style = style; var platformMethodsRef = (0, _usePlatformMethods.default)(hostRef, supportedProps); var setRef = (0, _useMergeRefs.default)(hostRef, platformMethodsRef, forwardedRef); supportedProps.ref = setRef; return (0, _createElement.default)('div', supportedProps); }); View.displayName = 'View'; var classes = _css.default.create({ view: { alignItems: 'stretch', border: '0 solid black', boxSizing: 'border-box', display: 'flex', flexBasis: 'auto', flexDirection: 'column', flexShrink: 0, margin: 0, minHeight: 0, minWidth: 0, padding: 0, position: 'relative', zIndex: 0 } }); var styles = _StyleSheet.default.create({ inline: { display: 'inline-flex' } }); var _default = View; exports.default = _default; module.exports = exports.default;
cdnjs/cdnjs
ajax/libs/react-native-web/0.0.0-e437e3f47/cjs/exports/View/index.js
JavaScript
mit
6,819
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'basicstyles', 'en-gb', { bold: 'Bold', italic: 'Italic', strike: 'Strike Through', subscript: 'Subscript', superscript: 'Superscript', underline: 'Underline' } );
SeeyaSia/www
web/libraries/ckeditor/plugins/basicstyles/lang/en-gb.js
JavaScript
gpl-2.0
339
/** * Drupal-specific JS helper functions and utils. Not to be confused with the * Recline library, which should live in your libraries directory. */ ;(function ($) { // Constants. var MAX_LABEL_WIDTH = 77; var LABEL_MARGIN = 5; // Undefined variables. var dataset, views, datasetOptions, fileSize, fileType, router; var dataExplorerSettings, state, $explorer, dataExplorer, maxSizePreview; var datastoreStatus; // Create drupal behavior Drupal.behaviors.Recline = { attach: function (context) { $explorer = $('.data-explorer'); // Local scoped variables. Drupal.settings.recline = Drupal.settings.recline || {}; fileSize = Drupal.settings.recline.fileSize; fileType = Drupal.settings.recline.fileType; maxSizePreview = Drupal.settings.recline.maxSizePreview; datastoreStatus = Drupal.settings.recline.datastoreStatus; dataExplorerSettings = { grid: Drupal.settings.recline.grid, graph: Drupal.settings.recline.graph, map: Drupal.settings.recline.map }; // This is the very basic state collection. state = recline.View.parseQueryString(decodeURIComponent(window.location.hash)); if ('#map' in state) { state.currentView = 'map'; } else if ('#graph' in state) { state.currentView = 'graph'; } // Init the explorer. init(); // Attach toogle event. $('.recline-embed a.embed-link').on('click', function(){ $(this).parents('.recline-embed').find('.embed-code-wrapper').toggle(); return false; }); } } // make Explorer creation / initialization in a function so we can call it // again and again function createExplorer (dataset, state, settings) { // Remove existing data explorer view. dataExplorer && dataExplorer.remove(); var $el = $('<div />'); $el.appendTo($explorer); var views = []; if (settings.grid) { views.push({ id: 'grid', label: 'Grid', view: new recline.View.SlickGrid({ model: dataset }) }); } if (settings.graph) { state.graphOptions = { xaxis: { tickFormatter: tickFormatter(dataset), }, hooks:{ processOffset: [processOffset(dataset)], bindEvents: [bindEvents], } }; views.push({ id: 'graph', label: 'Graph', view: new recline.View.Graph({ model: dataset, state: state }) }); } if (settings.map) { views.push({ id: 'map', label: 'Map', view: new recline.View.Map({ model: dataset, options: { mapTilesURL: '//stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png', } }) }); } // Multiview settings var multiviewOptions = { model: dataset, el: $el, state: state, views: views }; // Getting base embed url. var urlBaseEmbed = $('.embed-code').text(); var iframeOptions = {src: urlBaseEmbed, width:850, height:400}; // Attaching router to dataexplorer state. dataExplorer = new recline.View.MultiView(multiviewOptions); router = new recline.DeepLink.Router(dataExplorer); // Adding router listeners. var changeEmbedCode = getEmbedCode(iframeOptions); router.on('init', changeEmbedCode); router.on('stateChange', changeEmbedCode); // Add map dependency just for map views. _.each(dataExplorer.pageViews, function(item, index){ if(item.id && item.id === 'map'){ var map = dataExplorer.pageViews[index].view.map; router.addDependency(new recline.DeepLink.Deps.Map(map, router)); } }); // Start to track state chages. router.start(); $.event.trigger('createDataExplorer'); return views; } // Returns the dataset configuration. function getDatasetOptions () { var datasetOptions = {}; var delimiter = Drupal.settings.recline.delimiter; var file = Drupal.settings.recline.file; var uuid = Drupal.settings.recline.uuid; // Get correct file location, make sure not local file = (getOrigin(window.location) !== getOrigin(file)) ? '/node/' + Drupal.settings.recline.uuid + '/data' : file; // Select the backend to use switch(getBackend(datastoreStatus, fileType)) { case 'csv': datasetOptions = { backend: 'csv', url: file, delimiter: delimiter }; break; case 'tsv': datasetOptions = { backend: 'csv', url: file, delimiter: delimiter }; break; case 'txt': datasetOptions = { backend: 'csv', url: file, delimiter: delimiter }; break; case 'ckan': datasetOptions = { endpoint: 'api', id: uuid, backend: 'ckan' }; break; case 'xls': datasetOptions = { backend: 'xls', url: file }; break; case 'dataproxy': datasetOptions = { url: file, backend: 'dataproxy' }; break; default: showError('File type ' + fileType + ' not supported for preview.'); break; } return datasetOptions; } // Correct for fact that IE does not provide .origin function getOrigin(u) { var url = parseURL(u); return url.protocol + '//' + url.hostname + (url.port ? (':' + url.port) : ''); } // Parse a simple URL string to get its properties function parseURL(url) { var parser = document.createElement('a'); parser.href = url; return { protocol: parser.protocol, hostname: parser.hostname, port: parser.port, pathname: parser.pathname, search: parser.search, hash: parser.hash, host: parser.host } } // Retrieve a backend given a file type and and a datastore status. function getBackend (datastoreStatus, fileType) { // If it's inside the datastore then we use the dkan API if (datastoreStatus) return 'ckan'; var formats = { 'csv': ['text/csv', 'csv'], 'xls': ['application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'], 'tsv': ['text/tab-separated-values', 'text/tsv', 'tsv', 'tab'], 'txt': ['text/plain', 'txt'], }; var backend = _.findKey(formats, function(format) { return _.include(format, fileType) }); // If the backend is a txt but the delimiter is not a tab, we don't need // to show it using the backend. if (Drupal.settings.recline.delimiter !== "\t" && backend === 'txt') {return '';} // If the backend is an xls but the browser version is prior 9 then // we need to fallback to dataproxy if (backend === 'xls' && document.documentMode < 9) return 'dataproxy'; return backend; } // Displays an error retrieved from the response object. function showRequestError (response) { // Actually dkan doesn't provide standarization over // error handling responses. For example: if you request // unexistent resources it will retrive an array with a // message inside. // Recline backends will return an object with an error. try { var ro = (typeof response === 'string') ? JSON.parse(response) : response; if(ro.error) { showError(ro.error.message) } else if(ro instanceof Array) { showError(ro[0]); } } catch (error) { showError(response); } } // Displays an error. function showError (message) { $explorer.html('<div class="messages error">' + message + '</div>'); } // Creates the embed code. function getEmbedCode (options){ return function(state){ var iframeOptions = _.clone(options); var iframeTmpl = _.template('<iframe width="<%= width %>" height="<%= height %>" src="<%= src %>" frameborder="0"></iframe>'); var previewTmpl = _.template('<%= src %>'); _.extend(iframeOptions, {src: iframeOptions.src + '#' + (state.serializedState || '')}); var html = iframeTmpl(iframeOptions); $('.embed-code').text(html); var preview = previewTmpl(iframeOptions); $('.preview-code').text(preview); }; } // Creates the preview url code. function getPreviewCode (options){ return function(state){ var previewOptions = _.clone(options); var previewTmpl = _.template('<%= src %>'); _.extend(previewOptions, {src: previewOptions.src + '#' + (state.serializedState || '')}); var html = previewTmpl(previewOptions); $('.preview-url').text(html); }; } // Check if a chart has their axis inverted. function isInverted (){ return dataExplorer.pageViews[1].view.state.attributes.graphType === 'bars'; } // Computes the width of a chart. function computeWidth (plot, labels) { var biggerLabel = ''; for( var i = 0; i < labels.length; i++){ if(labels[i].length > biggerLabel.length && !_.isUndefined(labels[i])){ biggerLabel = labels[i]; } } var canvas = plot.getCanvas(); var ctx = canvas.getContext('2d'); ctx.font = 'sans-serif smaller'; return ctx.measureText(biggerLabel).width; } // Resize a chart. function resize (plot) { var itemWidth = computeWidth(plot, _.pluck(plot.getXAxes()[0].ticks, 'label')); var graph = dataExplorer.pageViews[1]; if(!isInverted() && $('#prevent-label-overlapping').is(':checked')){ var canvasWidth = Math.min(itemWidth + LABEL_MARGIN, MAX_LABEL_WIDTH) * plot.getXAxes()[0].ticks.length; var canvasContainerWith = $('.panel.graph').parent().width(); if(canvasWidth < canvasContainerWith){ canvasWidth = canvasContainerWith; } $('.panel.graph').width(canvasWidth); $('.recline-flot').css({overflow:'auto'}); }else{ $('.recline-flot').css({overflow:'hidden'}); $('.panel.graph').css({width: '100%'}); } plot.resize(); plot.setupGrid(); plot.draw(); } // Bind events after chart resizes. function bindEvents (plot, eventHolder) { var p = plot || dataExplorer.pageViews[1].view.plot; resize(p); setTimeout(addCheckbox, 0); } // Compute the chart offset to display ticks properly. function processOffset (dataset) { return function(plot, offset) { if(dataExplorer.pageViews[1].view.xvaluesAreIndex){ var series = plot.getData(); for (var i = 0; i < series.length; i++) { var numTicks = Math.min(dataset.records.length, 200); var ticks = []; for (var j = 0; j < dataset.records.length; j++) { ticks.push(parseInt(j, 10)); } if(isInverted()){ series[i].yaxis.options.ticks = ticks; }else{ series[i].xaxis.options.ticks = ticks; } } } }; } // Format ticks base on previews computations. function tickFormatter (dataset){ return function (x) { x = parseInt(x, 10); try { if(isInverted()) return x; var field = dataExplorer.pageViews[1].view.state.get('group'); var label = dataset.records.models[x].get(field) || ''; if(!moment(String(label)).isValid() && !isNaN(parseInt(label, 10))){ label = parseInt(label, 10) - 1; } return label; } catch(e) { return x; } }; } // Add checkbox to control resize behavior. function addCheckbox () { $control = $('.form-stacked:visible').find('#prevent-label-overlapping'); if(!$control.length){ $form = $('.form-stacked'); $checkboxDiv = $('<div class="checkbox"></div>').appendTo($form); $label = $('<label />', { 'for': 'prevent-label-overlapping', text: 'Resize graph to prevent label overlapping' }).appendTo($checkboxDiv); $label.prepend($('<input />', { type: 'checkbox', id: 'prevent-label-overlapping', value: '' })); $control = $('#prevent-label-overlapping'); $control.on('change', function(){ resize(dataExplorer.pageViews[1].view.plot); }); } } // Init the multiview. function init () { if(fileSize < maxSizePreview || datastoreStatus) { dataset = new recline.Model.Dataset(getDatasetOptions()); dataset.fetch().fail(showRequestError); views = createExplorer(dataset, state, dataExplorerSettings); views.forEach(function(view) { view.id === 'map' && view.view.redraw('refresh') }); } else { showError('File was too large or unavailable for preview.'); } } })(jQuery);
NuCivic/recline
recline.js
JavaScript
gpl-2.0
13,387
const express = require('express'); const path = require('path'); const compression = require('compression'); const webpackDevMiddleware = require('webpack-dev-middleware'); const webpackHotMiddleware = require('webpack-hot-middleware'); const webpack = require('webpack'); // Dev middleware const addDevMiddlewares = (app, options) => { const compiler = webpack(options); const middleware = webpackDevMiddleware(compiler, { noInfo: true, publicPath: options.output.publicPath, silent: true, }); app.use(middleware); app.use(webpackHotMiddleware(compiler)); // Since webpackDevMiddleware uses memory-fs internally to store build // artifacts, we use it instead const fs = middleware.fileSystem; app.get('*', (req, res) => { const file = fs.readFileSync(path.join(compiler.outputPath, 'index.html')); res.send(file.toString()); }); }; // Production middlewares const addProdMiddlewares = (app, options) => { // compression middleware compresses your server responses which makes them // smaller (applies also to assets). You can read more about that technique // and other good practices on official Express.js docs http://mxs.is/googmy app.use(compression()); app.use(options.output.publicPath, express.static(options.output.path)); app.get('*', (req, res) => res.sendFile(path.join(options.output.path, 'index.html'))); }; /** * Front-end middleware */ module.exports = (options) => { const isProd = process.env.NODE_ENV === 'production'; const app = express(); if (isProd) { addProdMiddlewares(app, options); } else { addDevMiddlewares(app, options); } return app; };
unicesi/pascani-library
web/dashboard/server/middlewares/frontendMiddleware.js
JavaScript
gpl-2.0
1,618
(function( $ ) { wp.customize( 'blogname', function( value ) { value.bind( function( to ) { $( '.site-title a' ).text( to ); } ); } ); wp.customize( 'blogdescription', function( value ) { value.bind( function( to ) { $( '.site-description' ).text( to ); } ); } ); })( jQuery );
thekirankumardash/bijithemecustomizer
project_downloads/2.5/js/theme-customizer.js
JavaScript
gpl-2.0
298
/* EventON Generate Google maps function */ (function($){ $.fn.evoGenmaps = function(opt){ var defaults = { delay: 0, fnt: 1, cal: '', mapSpotId: '', _action:'' }; var options = $.extend({}, defaults, opt); var geocoder; // popup lightbox generation if(options._action=='lightbox'){ var cur_window_top = parseInt($(window).scrollTop()) + 50; $('.evo_popin').css({'margin-top':cur_window_top}); $('.evo_pop_body').html(''); var event_list = this.closest('.eventon_events_list'); var content = this.siblings('.event_description').html(); var content_front = this.html(); var _content = $(content).not('.evcal_close'); // RTL if(event_list.hasClass('evortl')){ $('.evo_popin').addClass('evortl'); } $('.evo_pop_body').append('<div class="evopop_top">'+content_front+'</div>').append(_content); var this_map = $('.evo_pop_body').find('.evcal_gmaps'); var idd = this_map.attr('id'); this_map.attr({'id':idd+'_evop'}); $('.evo_popup').fadeIn(300); $('.evo_popbg').fadeIn(300); // check if gmaps should run if( this.attr('data-gmtrig')=='1' && this.attr('data-gmap_status')!='null'){ var cal = this.closest('div.ajde_evcal_calendar '); loadl_gmaps_in(this, cal, idd+'_evop'); } } // functions if(options.fnt==1){ this.each(function(){ var eventcard = $(this).attr('eventcard'); if(eventcard=='1'){ $(this).find('a.desc_trig').each(function(elm){ //$(this).siblings('.event_description').slideDown(); var obj = $(this); if(options.delay==0){ load_googlemaps_here(obj); }else{ setTimeout(load_googlemaps_here, options.delay, obj); } }); } }); } if(options.fnt==2){ if(options.delay==0){ load_googlemaps_here(this); }else{ setTimeout(load_googlemaps_here, options.delay, this); } } if(options.fnt==3){ loadl_gmaps_in(this, options.cal, ''); } // gmaps on popup if(options.fnt==4){ // check if gmaps should run if( this.attr('data-gmtrig')=='1' && this.attr('data-gmap_status')!='null'){ var cal = this.closest('div.ajde_evcal_calendar '); loadl_gmaps_in(this, cal, options.mapSpotId); } } // function to load google maps for eventcard function load_googlemaps_here(obj){ if( obj.data('gmstat')!= '1'){ obj.attr({'data-gmstat':'1'}); } var cal = obj.closest('div.ajde_evcal_calendar '); if( obj.attr('data-gmtrig')=='1' && obj.attr('data-gmap_status')!='null'){ loadl_gmaps_in(obj, cal, ''); } } // Load the google map on the object function loadl_gmaps_in(obj, cal, mapId){ var evodata = cal.find('.evo-data'); var mapformat = evodata.data('mapformat'); var ev_location = obj.find('.evcal_desc'); var location_type = ev_location.attr('data-location_type'); if(location_type=='address'){ var address = ev_location.attr('data-location_address'); var location_type = 'add'; }else{ var address = ev_location.attr('data-latlng'); var location_type = 'latlng'; } var map_canvas_id= (mapId!=='')? mapId: obj.siblings('.event_description').find('.evcal_gmaps').attr('id'); // google maps styles // @since 2.2.22 var styles = ''; if(gmapstyles != 'default'){ styles = $.parseJSON(gmapstyles); } var zoom = evodata.data('mapzoom'); var zoomlevel = (typeof zoom !== 'undefined' && zoom !== false)? parseInt(zoom):12; var scroll = evodata.data('mapscroll'); //console.log(map_canvas_id+' '+mapformat+' '+ location_type +' '+scroll +' '+ address); //obj.siblings('.event_description').find('.evcal_gmaps').html(address); initialize(map_canvas_id, address, mapformat, zoomlevel, location_type, scroll, styles); } //console.log(options); }; }(jQuery));
sabdev1/sabhoa
wp-content/plugins/eventON/assets/js/maps/eventon_gen_maps.js
JavaScript
gpl-2.0
4,157
var icms = icms || {}; icms.wall = (function ($) { var self = this; this.add = function (parent_id) { var form = $('#wall_add_form'); if (typeof (parent_id) === 'undefined') { parent_id = 0; } $('#wall_widget #wall_add_link').show(); $('#wall_widget #entries_list .links *').removeClass('disabled'); if (parent_id == 0){ $('#wall_widget #wall_add_link').hide(); form.detach().prependTo('#wall_widget #entries_list'); } else { $('#wall_widget #entries_list #entry_'+parent_id+' > .media-body > .links .reply').addClass('disabled'); form.detach().appendTo('#wall_widget #entries_list #entry_'+parent_id+' > .media-body'); } form.show(); $('input[name=parent_id]', form).val(parent_id); $('input[name=id]', form).val(''); $('input[name=action]', form).val('add'); $('input[name=submit]', form).val( LANG_SEND ); icms.forms.wysiwygInit('content').wysiwygInsertText('content', ''); return false; }; this.submit = function (action) { var form = $('#wall_add_form form'); var form_data = icms.forms.toJSON( form ); var url = form.attr('action'); if (action) {form_data.action = action;} $('.buttons > *', form).addClass('disabled'); $('.button-'+form_data.action, form).addClass('is-busy'); $('textarea', form).prop('disabled', true); $.post(url, form_data, function(result){ if (form_data.action === 'add') { self.result(result);} if (form_data.action === 'preview') { self.previewResult(result);} if (form_data.action === 'update') { self.updateResult(result);} }, "json"); }; this.preview = function () { this.submit('preview'); }; this.previewResult = function (result) { if (result.error){ this.error(result.message); return; } var form = $('#wall_add_form'); var preview_box = $('.preview_box', form).html(result.html); $(preview_box).addClass('shadow').removeClass('d-none'); setTimeout(function (){ $(preview_box).removeClass('shadow'); }, 1000); this.restoreForm(false); }; this.more = function(){ var widget = $('#wall_widget'); $('.show_more', widget).hide(); $('.entry', widget).show(); $('.wall_pages', widget).show(); return false; }; this.replies = function(id, callback){ var e = $('#wall_widget #entry_'+id); if (!e.data('replies')) { return false; } var url = $('#wall_urls').data('replies-url'); $('.icms-wall-item__btn_replies', e).addClass('is-busy'); $.post(url, {id: id}, function(result){ $('.icms-wall-item__btn_replies', e).removeClass('is-busy').hide(); if (result.error){ self.error(result.message); return false; } $('.replies', e).html( result.html ); if (typeof(callback)=='function'){ callback(); } }, "json"); return false; }; this.append = function(entry){ $('#wall_widget #entries_list .no_entries').remove(); if (entry.parent_id == 0){ $('#wall_widget #entries_list').prepend( entry.html ); return; } if (entry.parent_id > 0){ $('#wall_widget #entry_'+entry.parent_id+' .replies').append( entry.html ); return; } }; this.result = function(result){ if (result.error){ this.error(result.message); return; } this.append(result); this.restoreForm(); }; this.updateResult = function(result){ if (result.error){ this.error(result.message); return; } $('#entries_list #entry_'+result.id+'> .media-body > .icms-wall-html').html(result.html); this.restoreForm(); }; this.edit = function (id){ var form = $('#wall_add_form'); $('#wall_widget #wall_add_link').show(); $('#wall_widget #entries_list .links *').removeClass('disabled'); $('#wall_widget #entries_list #entry_'+id+' > .media-body > .links .edit').addClass('is-busy disabled'); form.detach().insertAfter('#wall_widget #entries_list #entry_'+id+' > .media-body > .links').show(); $('input[name=id]', form).val(id); $('input[name=action]', form).val('update'); $('input[name=submit]', form).val( LANG_SAVE ); $('textarea', form).prop('disabled', true); icms.forms.wysiwygInit('content'); var url = $('#wall_urls').data('get-url'); $.post(url, {id: id}, function(result){ $('#wall_widget #entries_list #entry_'+id+' > .media-body > .links .edit').removeClass('is-busy'); if (result.error){ self.error(result.message); return; } self.restoreForm(false); icms.forms.wysiwygInsertText('content', result.html); }, 'json'); return false; }; this.remove = function (id){ var c = $('#entries_list #entry_'+id); var username = $('> .media-body > h6 .user', c).text(); if (!confirm(LANG_WALL_ENTRY_DELETE_CONFIRM.replace('%s', username))) { return false; } var url = $('#wall_urls').data('delete-url'); $.post(url, {id: id}, function(result){ if (result.error){ self.error(result.message); return; } c.remove(); self.restoreForm(); }, "json"); return false; }; this.show = function(id, reply_id, go_reply){ var e = $('#entry_'+id); if (e.length){ $.scrollTo( e, 500, { offset: { left:0, top:-10 }, onAfter: function(){ self.replies(id, function(){ if (reply_id>0){ self.show(reply_id); } }); if (go_reply){ self.add(id); } } }); } else { if (go_reply){ $.scrollTo( $('#wall_widget'), 500, { offset: { left:0, top:-10 }, onAfter: function(){ self.add(); } }); } } return false; }; this.error = function(message){ icms.modal.alert(message); this.restoreForm(false); }; this.restoreForm = function(clear_text){ if (typeof (clear_text) === 'undefined') { clear_text = true; } var form = $('#wall_add_form'); $('.buttons *', form).removeClass('disabled is-busy'); $('textarea', form).prop('disabled', false); if (clear_text) { form.hide(); icms.forms.wysiwygInsertText('content', ''); $('#wall_widget #wall_add_link').show(); $('#wall_widget #entries_list .links *').removeClass('disabled'); $('.preview_box', form).html('').hide(); } }; return this; }).call(icms.wall || {},jQuery);
Loadir/icms2
templates/modern/js/wall.js
JavaScript
gpl-2.0
7,610
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'find', 'cs', { find: 'Hledat', findOptions: 'Možnosti hledání', findWhat: 'Co hledat:', matchCase: 'Rozlišovat velikost písma', matchCyclic: 'Procházet opakovaně', matchWord: 'Pouze celá slova', notFoundMsg: 'Hledaný text nebyl nalezen.', replace: 'Nahradit', replaceAll: 'Nahradit vše', replaceSuccessMsg: '%1 nahrazení.', replaceWith: 'Čím nahradit:', title: 'Najít a nahradit' } );
shophelfer/shophelfer.com-shop
admin/includes/modules/ckeditor/plugins/find/lang/cs.js
JavaScript
gpl-2.0
581
//>>built define("dojox/editor/plugins/nls/zh-tw/SafePaste",({"instructions":"已停用直接貼上。請使用標準瀏覽器鍵盤或功能表貼上控制項,在這個對話框中貼上內容。當您滿意要插入的內容之後,請按貼上按鈕。若要中斷插入內容,請按取消按鈕。"}));
hariomkumarmth/champaranexpress
wp-content/plugins/dojo/dojox/editor/plugins/nls/zh-tw/SafePaste.js
JavaScript
gpl-2.0
314
/* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the Clear BSD license. * See http://svn.openlayers.org/trunk/openlayers/license.txt for the * full text of the license. */ /** * @requires OpenLayers/Layer.js */ /** * Class: OpenLayers.Layer.Markers * * Inherits from: * - <OpenLayers.Layer> */ OpenLayers.Layer.Markers = OpenLayers.Class(OpenLayers.Layer, { /** * APIProperty: isBaseLayer * {Boolean} Markers layer is never a base layer. */ isBaseLayer: false, /** * APIProperty: markers * {Array(<OpenLayers.Marker>)} internal marker list */ markers: null, /** * Property: drawn * {Boolean} internal state of drawing. This is a workaround for the fact * that the map does not call moveTo with a zoomChanged when the map is * first starting up. This lets us catch the case where we have *never* * drawn the layer, and draw it even if the zoom hasn't changed. */ drawn: false, /** * Constructor: OpenLayers.Layer.Markers * Create a Markers layer. * * Parameters: * name - {String} * options - {Object} Hashtable of extra options to tag onto the layer */ initialize: function(name, options) { OpenLayers.Layer.prototype.initialize.apply(this, arguments); this.markers = []; }, /** * APIMethod: destroy */ destroy: function() { this.clearMarkers(); this.markers = null; OpenLayers.Layer.prototype.destroy.apply(this, arguments); }, /** * APIMethod: setOpacity * Sets the opacity for all the markers. * * Parameter: * opacity - {Float} */ setOpacity: function(opacity) { if (opacity != this.opacity) { this.opacity = opacity; for (var i=0, len=this.markers.length; i<len; i++) { this.markers[i].setOpacity(this.opacity); } } }, /** * Method: moveTo * * Parameters: * bounds - {<OpenLayers.Bounds>} * zoomChanged - {Boolean} * dragging - {Boolean} */ moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); if (zoomChanged || !this.drawn) { for(var i=0, len=this.markers.length; i<len; i++) { this.drawMarker(this.markers[i]); } this.drawn = true; } }, /** * APIMethod: addMarker * * Parameters: * marker - {<OpenLayers.Marker>} */ addMarker: function(marker) { this.markers.push(marker); if (this.opacity != null) { marker.setOpacity(this.opacity); } if (this.map && this.map.getExtent()) { marker.map = this.map; this.drawMarker(marker); } }, /** * APIMethod: removeMarker * * Parameters: * marker - {<OpenLayers.Marker>} */ removeMarker: function(marker) { if (this.markers && this.markers.length) { OpenLayers.Util.removeItem(this.markers, marker); marker.erase(); } }, /** * Method: clearMarkers * This method removes all markers from a layer. The markers are not * destroyed by this function, but are removed from the list of markers. */ clearMarkers: function() { if (this.markers != null) { while(this.markers.length > 0) { this.removeMarker(this.markers[0]); } } }, /** * Method: drawMarker * Calculate the pixel location for the marker, create it, and * add it to the layer's div * * Parameters: * marker - {<OpenLayers.Marker>} */ drawMarker: function(marker) { var px = this.map.getLayerPxFromLonLat(marker.lonlat); if (px == null) { marker.display(false); } else { if (!marker.isDrawn()) { var markerImg = marker.draw(px); this.div.appendChild(markerImg); } else if(marker.icon) { marker.icon.moveTo(px); } } }, /** * APIMethod: getDataExtent * Calculates the max extent which includes all of the markers. * * Returns: * {<OpenLayers.Bounds>} */ getDataExtent: function () { var maxExtent = null; if ( this.markers && (this.markers.length > 0)) { var maxExtent = new OpenLayers.Bounds(); for(var i=0, len=this.markers.length; i<len; i++) { var marker = this.markers[i]; maxExtent.extend(marker.lonlat); } } return maxExtent; }, CLASS_NAME: "OpenLayers.Layer.Markers" });
blahoink/grassroots
phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Markers.js
JavaScript
gpl-2.0
5,107
function ValidarPuntaje(id) { var aux = id.split("_"); var name=aux[0]; var fil=parseInt(aux[1]); var col=parseInt(aux[2]); var colpuntaje=col; var colpuntajereal=col+1; var puntaje=name+"_"+fil+"_"+colpuntaje; var puntajereal=name+"_"+fil+"_"+colpuntajereal; var num1=toFloat(puntaje); var num2=toFloat(puntajereal); if (num1>num2) { alert("El puntaje introducido no puede ser mayor al definido: "+$(puntajereal).value); $(puntaje).value="0.00"; } } function totalizar() { var monrec=toFloat('cobdocume_recdoc'); var dscdoc=toFloat('cobdocume_dscdoc'); var abodoc=toFloat('cobdocume_abodoc'); var mondoc=toFloat('cobdocume_mondoc'); var tototal= mondoc+monrec-dscdoc+abodoc; $('cobdocume_saldoc').value=format(tototal.toFixed(2),'.',',','.'); }
cidesa/roraima
web/js/licitaciones/liasptecanalisis.js
JavaScript
gpl-2.0
835
var classgr__interleave = [ [ "~gr_interleave", "classgr__interleave.html#ae342ba63322b78359ee71de113e41fc1", null ], [ "check_topology", "classgr__interleave.html#ade74f196c0fc8a91ca4f853a2d1202e1", null ], [ "work", "classgr__interleave.html#a44664518c86559da58b3feccb9e45d7f", null ], [ "gr_make_interleave", "classgr__interleave.html#acf7153a343a7bfbf2687bcc4c98d410e", null ] ];
aviralchandra/Sandhi
build/gr36/docs/doxygen/html/classgr__interleave.js
JavaScript
gpl-3.0
399
(function(jQuery){jQuery.fn.addLittleSisToolbar=function(){var defaults={z_index:10002,height:180,width:100,background_color:'#FFF'};return this.each(function(){if(jQuery('#littlesis-toolbar').length==0){var elements=jQuery(this);elements.css({'margin-top':(defaults.height+10)+'px'});var wrapper=jQuery('<div id="littlesis-toolbar"/>').appendTo(elements).css({'display':'block','position':'fixed','background-color':defaults.background_color,'top':0,'z-index':(defaults.z_index-1),'height':defaults.height+'px','width':defaults.width+'%'});jQuery('#littlesis-toolbar').append('<iframe id="littlesis-toolbar-iframe" src="https://littlesis.org/relationship/toolbar?title='+escape(document.title)+'&url='+escape(document.URL)+'">No Support</iframe>');jQuery('#littlesis-toolbar-iframe').css({'width':defaults.width+'%','height':defaults.height+'px','border':0,'border-bottom':'3px solid #ccc'})}})}})(jQuery);
public-accountability/littlesis-docker
static/js/bookmarklet.js
JavaScript
gpl-3.0
908
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // Parity is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with Parity. If not, see <http://www.gnu.org/licenses/>. import { observer } from 'mobx-react'; import React, { Component, PropTypes } from 'react'; import { FormattedMessage } from 'react-intl'; import shapeshiftLogo from '~/../assets/images/shapeshift-logo.png'; import { Button, IdentityIcon, Portal } from '~/ui'; import { CancelIcon, DoneIcon } from '~/ui/Icons'; import AwaitingDepositStep from './AwaitingDepositStep'; import AwaitingExchangeStep from './AwaitingExchangeStep'; import CompletedStep from './CompletedStep'; import ErrorStep from './ErrorStep'; import OptionsStep from './OptionsStep'; import Store, { STAGE_COMPLETED, STAGE_OPTIONS, STAGE_WAIT_DEPOSIT, STAGE_WAIT_EXCHANGE } from './store'; import styles from './shapeshift.css'; const STAGE_TITLES = [ <FormattedMessage id='shapeshift.title.details' defaultMessage='details' />, <FormattedMessage id='shapeshift.title.deposit' defaultMessage='awaiting deposit' />, <FormattedMessage id='shapeshift.title.exchange' defaultMessage='awaiting exchange' />, <FormattedMessage id='shapeshift.title.completed' defaultMessage='completed' /> ]; const ERROR_TITLE = ( <FormattedMessage id='shapeshift.title.error' defaultMessage='exchange failed' /> ); @observer export default class Shapeshift extends Component { static contextTypes = { store: PropTypes.object.isRequired } static propTypes = { address: PropTypes.string.isRequired, onClose: PropTypes.func } store = new Store(this.props.address); componentDidMount () { this.store.retrieveCoins(); } componentWillUnmount () { this.store.unsubscribe(); } render () { const { error, stage } = this.store; return ( <Portal activeStep={ stage } busySteps={ [ STAGE_WAIT_DEPOSIT, STAGE_WAIT_EXCHANGE ] } buttons={ this.renderDialogActions() } onClose={ this.onClose } open steps={ error ? null : STAGE_TITLES } title={ error ? ERROR_TITLE : null } > { this.renderPage() } </Portal> ); } renderDialogActions () { const { address } = this.props; const { coins, error, hasAcceptedTerms, stage } = this.store; const logo = ( <a className={ styles.shapeshift } href='http://shapeshift.io' key='logo' target='_blank' > <img src={ shapeshiftLogo } /> </a> ); const cancelBtn = ( <Button icon={ <CancelIcon /> } key='cancel' label={ <FormattedMessage id='shapeshift.button.cancel' defaultMessage='Cancel' /> } onClick={ this.onClose } /> ); if (error) { return [ logo, cancelBtn ]; } switch (stage) { case STAGE_OPTIONS: return [ logo, cancelBtn, <Button disabled={ !coins.length || !hasAcceptedTerms } icon={ <IdentityIcon address={ address } button /> } key='shift' label={ <FormattedMessage id='shapeshift.button.shift' defaultMessage='Shift Funds' /> } onClick={ this.onShift } /> ]; case STAGE_WAIT_DEPOSIT: case STAGE_WAIT_EXCHANGE: return [ logo, cancelBtn ]; case STAGE_COMPLETED: return [ logo, <Button icon={ <DoneIcon /> } key='done' label={ <FormattedMessage id='shapeshift.button.done' defaultMessage='Close' /> } onClick={ this.onClose } /> ]; } } renderPage () { const { error, stage } = this.store; if (error) { return ( <ErrorStep store={ this.store } /> ); } switch (stage) { case STAGE_OPTIONS: return ( <OptionsStep store={ this.store } /> ); case STAGE_WAIT_DEPOSIT: return ( <AwaitingDepositStep store={ this.store } /> ); case STAGE_WAIT_EXCHANGE: return ( <AwaitingExchangeStep store={ this.store } /> ); case STAGE_COMPLETED: return ( <CompletedStep store={ this.store } /> ); } } onClose = () => { this.store.setStage(STAGE_OPTIONS); this.props.onClose && this.props.onClose(); } onShift = () => { return this.store.shift(); } }
nipunn1313/parity
js/src/modals/Shapeshift/shapeshift.js
JavaScript
gpl-3.0
5,450
define( [ 'jquery', 'stapes', './conditionals' ], function( $, Stapes, conditionalsMediator ) { 'use strict'; /** * Global Mediator (included on every page) * @module Globals * @implements {Stapes} */ var Mediator = Stapes.subclass({ /** * Reference to conditionals mediator singleton * @type {Object} */ conditionals: conditionalsMediator, /** * Mediator Constructor * @return {void} */ constructor: function (){ var self = this; self.initEvents(); $(function(){ self.emit('domready'); }); }, /** * Initialize events * @return {void} */ initEvents: function(){ var self = this; self.on('domready', self.onDomReady); // // DEBUG // conditionalsMediator.on('all', function(val, e){ // console.log(e.type, val); // }); }, /** * DomReady Callback * @return {void} */ onDomReady: function(){ var self = this; } }); return new Mediator(); } );
minutelabsio/sed-postcard-map
app/library/js/mediators/globals.js
JavaScript
gpl-3.0
1,501
initSidebarItems({"mod":[["color",""],["geometry",""],["layers",""],["platform",""],["rendergl",""],["scene",""],["texturegl","OpenGL-specific implementation of texturing."],["tiling",""],["util",""]]});
susaing/doc.servo.org
servo/layers/sidebar-items.js
JavaScript
mpl-2.0
203
initSidebarItems({"struct":[["DefaultState","A structure which is a factory for instances of `Hasher` which implement the default trait."]],"trait":[["HashState","A trait representing stateful hashes which can be used to hash keys in a `HashMap`."]]});
susaing/doc.servo.org
std/collections/hash_state/sidebar-items.js
JavaScript
mpl-2.0
252
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="Q" > <LogMonitor /> </DockMonitor> )
blockstack/blockstack-browser
app/js/components/DevTools.js
JavaScript
mpl-2.0
323
/* * The contents of this file are subject to the OpenMRS Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://license.openmrs.org * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations * under the License. * * Copyright (C) OpenMRS, LLC. All Rights Reserved. */ var ExitHandlers = { // a widget can dynamically set "do-not-exit" or "do-not-exit-once" classes on the field to indicate we should not // exit the field. "do-not-exit-once" will be cleared after a single exit attempt. 'manual-exit': { handleExit: function(fieldModel) { var doNotExit = fieldModel.element.hasClass('do-not-exit') || fieldModel.element.hasClass('do-not-exit-once'); fieldModel.element.removeClass('do-not-exit-once'); return !doNotExit; } }, 'leading-zeros': { handleExit: function(fieldModel) { var val = fieldModel.element.val(); if (val) { // if the field is blank, leave it alone var maxLength = parseInt(fieldModel.element.attr('maxlength')); if (maxLength > 0) { while (val.length < maxLength) { val = "0" + val; } fieldModel.element.val(val); } } return true; } } };
yadamz/first-module
omod/src/main/webapp/resources/scripts/navigator/exitHandlers.js
JavaScript
mpl-2.0
1,610
import { Model, belongsTo } from 'ember-cli-mirage'; export default Model.extend({ parent: belongsTo('alloc-file'), });
hashicorp/nomad
ui/mirage/models/alloc-file.js
JavaScript
mpl-2.0
123
/* * Copyright 2007-2013 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Pydio is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Pydio. If not, see <http://www.gnu.org/licenses/>. * * The latest code can be found at <https://pydio.com>. * * Description : focusable component / Tab navigation */ Interface.create("IContextMenuable", { setContextualMenu : function(contextMenu){} });
FredPassos/pydio-core
core/src/plugins/gui.ajax/res/js/ui/prototype/interfaces/class.IContextMenuable.js
JavaScript
agpl-3.0
964
// // Copyright (C) 2016 - present Instructure, Inc. // // This file is part of Canvas. // // Canvas is free software: you can redistribute it and/or modify it under // the terms of the GNU Affero General Public License as published by the Free // Software Foundation, version 3 of the License. // // Canvas is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR // A PARTICULAR PURPOSE. See the GNU Affero General Public License for more // details. // // You should have received a copy of the GNU Affero General Public License along // with this program. If not, see <http://www.gnu.org/licenses/>. import _ from 'underscore' import Depaginate from 'jsx/shared/CheatDepaginator' const listUrl = () => ENV.ENROLLMENT_TERMS_URL const deserializeTerms = termGroups => _.flatten( _.map(termGroups, group => _.map(group.enrollment_terms, (term) => { const groupID = term.grading_period_group_id const newGroupID = _.isNumber(groupID) ? groupID.toString() : groupID return { id: term.id.toString(), name: term.name, startAt: term.start_at ? new Date(term.start_at) : null, endAt: term.end_at ? new Date(term.end_at) : null, createdAt: term.created_at ? new Date(term.created_at) : null, gradingPeriodGroupId: newGroupID, } }) ) ) export default { list (terms) { return new Promise((resolve, reject) => { Depaginate(listUrl()) .then(response => resolve(deserializeTerms(response))) .fail(error => reject(error)) }) } }
venturehive/canvas-lms
app/coffeescripts/api/enrollmentTermsApi.js
JavaScript
agpl-3.0
1,662
/*====================================================== ************ Pull To Refresh ************ ======================================================*/ app.initPullToRefresh = function (pageContainer) { var eventsTarget = $(pageContainer); if (!eventsTarget.hasClass('pull-to-refresh-content')) { eventsTarget = eventsTarget.find('.pull-to-refresh-content'); } if (!eventsTarget || eventsTarget.length === 0) return; var touchId, isTouched, isMoved, touchesStart = {}, isScrolling, touchesDiff, touchStartTime, container, refresh = false, useTranslate = false, startTranslate = 0, translate, scrollTop, wasScrolled, layer, triggerDistance, dynamicTriggerDistance, pullStarted; var page = eventsTarget.hasClass('page') ? eventsTarget : eventsTarget.parents('.page'); var hasNavbar = false; if (page.find('.navbar').length > 0 || page.parents('.navbar-fixed, .navbar-through').length > 0 || page.hasClass('navbar-fixed') || page.hasClass('navbar-through')) hasNavbar = true; if (page.hasClass('no-navbar')) hasNavbar = false; if (!hasNavbar) eventsTarget.addClass('pull-to-refresh-no-navbar'); container = eventsTarget; // Define trigger distance if (container.attr('data-ptr-distance')) { dynamicTriggerDistance = true; } else { triggerDistance = 44; } function handleTouchStart(e) { if (isTouched) { if (app.device.os === 'android') { if ('targetTouches' in e && e.targetTouches.length > 1) return; } else return; } /*jshint validthis:true */ container = $(this); if (container.hasClass('refreshing')) { return; } isMoved = false; pullStarted = false; isTouched = true; isScrolling = undefined; wasScrolled = undefined; if (e.type === 'touchstart') touchId = e.targetTouches[0].identifier; touchesStart.x = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX; touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY; touchStartTime = (new Date()).getTime(); } function handleTouchMove(e) { if (!isTouched) return; var pageX, pageY, touch; if (e.type === 'touchmove') { if (touchId && e.touches) { for (var i = 0; i < e.touches.length; i++) { if (e.touches[i].identifier === touchId) { touch = e.touches[i]; } } } if (!touch) touch = e.targetTouches[0]; pageX = touch.pageX; pageY = touch.pageY; } else { pageX = e.pageX; pageY = e.pageY; } if (!pageX || !pageY) return; if (typeof isScrolling === 'undefined') { isScrolling = !!(isScrolling || Math.abs(pageY - touchesStart.y) > Math.abs(pageX - touchesStart.x)); } if (!isScrolling) { isTouched = false; return; } scrollTop = container[0].scrollTop; if (typeof wasScrolled === 'undefined' && scrollTop !== 0) wasScrolled = true; if (!isMoved) { /*jshint validthis:true */ container.removeClass('transitioning'); if (scrollTop > container[0].offsetHeight) { isTouched = false; return; } if (dynamicTriggerDistance) { triggerDistance = container.attr('data-ptr-distance'); if (triggerDistance.indexOf('%') >= 0) triggerDistance = container[0].offsetHeight * parseInt(triggerDistance, 10) / 100; } startTranslate = container.hasClass('refreshing') ? triggerDistance : 0; if (container[0].scrollHeight === container[0].offsetHeight || app.device.os !== 'ios') { useTranslate = true; } else { useTranslate = false; } } isMoved = true; touchesDiff = pageY - touchesStart.y; if (touchesDiff > 0 && scrollTop <= 0 || scrollTop < 0) { // iOS 8 fix if (app.device.os === 'ios' && parseInt(app.device.osVersion.split('.')[0], 10) > 7 && scrollTop === 0 && !wasScrolled) useTranslate = true; if (useTranslate) { e.preventDefault(); translate = (Math.pow(touchesDiff, 0.85) + startTranslate); container.transform('translate3d(0,' + translate + 'px,0)'); } if ((useTranslate && Math.pow(touchesDiff, 0.85) > triggerDistance) || (!useTranslate && touchesDiff >= triggerDistance * 2)) { refresh = true; container.addClass('pull-up').removeClass('pull-down'); } else { refresh = false; container.removeClass('pull-up').addClass('pull-down'); } if (!pullStarted) { container.trigger('pullstart'); pullStarted = true; } container.trigger('pullmove', { event: e, scrollTop: scrollTop, translate: translate, touchesDiff: touchesDiff }); } else { pullStarted = false; container.removeClass('pull-up pull-down'); refresh = false; return; } } function handleTouchEnd(e) { if (e.type === 'touchend' && e.changedTouches && e.changedTouches.length > 0 && touchId) { if (e.changedTouches[0].identifier !== touchId) return; } if (!isTouched || !isMoved) { isTouched = false; isMoved = false; return; } if (translate) { container.addClass('transitioning'); translate = 0; } container.transform(''); if (refresh) { container.addClass('refreshing'); container.trigger('refresh', { done: function () { app.pullToRefreshDone(container); } }); } else { container.removeClass('pull-down'); } isTouched = false; isMoved = false; if (pullStarted) container.trigger('pullend'); } // Attach Events var passiveListener = app.touchEvents.start === 'touchstart' && app.support.passiveListener ? {passive: true, capture: false} : false; eventsTarget.on(app.touchEvents.start, handleTouchStart, passiveListener); eventsTarget.on(app.touchEvents.move, handleTouchMove); eventsTarget.on(app.touchEvents.end, handleTouchEnd, passiveListener); // Detach Events on page remove if (page.length === 0) return; function destroyPullToRefresh() { eventsTarget.off(app.touchEvents.start, handleTouchStart); eventsTarget.off(app.touchEvents.move, handleTouchMove); eventsTarget.off(app.touchEvents.end, handleTouchEnd); } eventsTarget[0].f7DestroyPullToRefresh = destroyPullToRefresh; function detachEvents() { destroyPullToRefresh(); page.off('pageBeforeRemove', detachEvents); } page.on('pageBeforeRemove', detachEvents); }; app.pullToRefreshDone = function (container) { container = $(container); if (container.length === 0) container = $('.pull-to-refresh-content.refreshing'); container.removeClass('refreshing').addClass('transitioning'); container.transitionEnd(function () { container.removeClass('transitioning pull-up pull-down'); container.trigger('refreshdone'); }); }; app.pullToRefreshTrigger = function (container) { container = $(container); if (container.length === 0) container = $('.pull-to-refresh-content'); if (container.hasClass('refreshing')) return; container.addClass('transitioning refreshing'); container.trigger('refresh', { done: function () { app.pullToRefreshDone(container); } }); }; app.destroyPullToRefresh = function (pageContainer) { pageContainer = $(pageContainer); var pullToRefreshContent = pageContainer.hasClass('pull-to-refresh-content') ? pageContainer : pageContainer.find('.pull-to-refresh-content'); if (pullToRefreshContent.length === 0) return; if (pullToRefreshContent[0].f7DestroyPullToRefresh) pullToRefreshContent[0].f7DestroyPullToRefresh(); };
ayuzhin/web-apps
vendor/framework7/src/js/pull-to-refresh.js
JavaScript
agpl-3.0
8,596
/** * Copyright (c) 2014, 2015, Oracle and/or its affiliates. * All rights reserved. */ "use strict"; /* Copyright 2013 jQuery Foundation and other contributors Released under the MIT license. http://jquery.org/license Copyright 2013 jQuery Foundation and other contributors Released under the MIT license. http://jquery.org/license */ define(["ojs/ojcore","jquery","ojs/ojcomponentcore","ojs/ojpopupcore","jqueryui-amd/draggable"],function(a,f){(function(){a.Da("oj.ojDialog",f.oj.baseComponent,{version:"1.0.0",widgetEventPrefix:"oj",options:{cancelBehavior:"icon",dragAffordance:"title-bar",initialVisibility:"hide",modality:"modal",position:{my:"center",at:"center",of:window,collision:"fit",tja:function(a){var b=f(this).css(a).offset().top;0>b&&f(this).css("top",a.top-b)}},resizeBehavior:"resizable",role:"dialog",title:null,beforeClose:null, beforeOpen:null,close:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_ComponentCreate:function(){this._super();this.Wga={display:this.element[0].style.display,width:this.element[0].style.width,height:this.element[0].style.height};this.xn={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.OK=this.element.attr("title");this.options.title=this.options.title||this.OK;this.j6();this.element.show().removeAttr("title").addClass("oj-dialog-content oj-dialog-default-content").appendTo(this.Ga); this.Ls=!1;if(this.element.find(".oj-dialog").length){var d=this;this.element.find(".oj-dialog-header").each(function(a,c){var e=f(c);if(!e.closest(".oj-dialog-body").length)return d.gl=e,d.Ls=!0,!1})}else this.gl=this.element.find(".oj-dialog-header"),this.gl.length&&(this.Ls=!0);this.Ls?(this.Y5(this.gl),this.gl.prependTo(this.Ga),"icon"===this.options.cancelBehavior&&(this.uy(this.gl),this.Rv=this.gl.find(".oj-dialog-title"),this.Rv.length&&this.Rv.insertAfter(this.Gn))):this.i6();this.ij=this.element.children(".oj-dialog-footer"); this.X5(this.ij);this.ij.length&&(this.ij.addClass("oj-helper-clearfix"),this.ij.appendTo(this.Ga));"title-bar"===this.options.dragAffordance&&f.fn.draggable&&this.Po();this.er=!1;this.FS=this.tV.bind(this);this.Ga.length&&(a.C.jh(this.Ga[0],this.FS,30),this.er=!0);this.Dm=!1},uM:function(){"show"===this.options.initialVisibility&&this.open()},_destroy:function(){this.bQ&&window.clearTimeout(this.bQ);this.isOpen()&&this.Dq();this.er&&(a.C.gj(this.Ga[0],this.FS),this.er=!1);var d=this.Ga.hasClass("oj-draggable"); this.Ga.draggable&&d&&this.Ga.draggable("destroy");this.$o&&(this.$o("destroy"),this.$o=null);this.ij.length&&(this.ij.removeClass("oj-helper-clearfix"),f("#"+this.tU).replaceWith(this.ij));this.Dy();this.Ls&&(d=this.Ga.find(".oj-dialog-header"))&&f("#"+this.uU).replaceWith(d);this.Z_&&(this.Z_.remove(),this.Z_=null);this.element.removeUniqueId().removeClass("oj-dialog-content oj-dialog-default-content").css(this.Wga);this.Ga&&this.Ga.stop(!0,!0);this.element.unwrap();this.OK&&this.element.attr("title", this.OK);this.ik&&(this.ik.remove(),this.ik=null);delete this.Ni;delete this.Dm;this._super()},widget:function(){return this.Ga},disable:f.noop,enable:f.noop,close:function(d){if(this.isOpen()&&(!1!==this._trigger("beforeClose",d)||this.Mu)){this.Dm=!1;this.n7=null;this.opener.filter(":focusable").focus().length||f(this.document[0].activeElement).blur();var b={};b[a.T.bb.Cf]=this.Ga;a.T.le().close(b);this._trigger("close",d)}},isOpen:function(){return this.Dm},open:function(d){!1!==this._trigger("beforeOpen", d)&&(this.isOpen()||(this.Dm=!0,this.opener=f(this.document[0].activeElement),this.Qi(),"resizable"===this.options.resizeBehavior&&this.WT(),d={},d[a.T.bb.Cf]=this.Ga,d[a.T.bb.Rs]=this.opener,d[a.T.bb.Vs]=this.options.position,d[a.T.bb.mi]=this.options.modality,d[a.T.bb.Kn]=this.$q(),d[a.T.bb.Pl]="oj-dialog-layer",a.T.le().open(d),this._trigger("open")),this.VQ())},refresh:function(){this._super();this.Qi();this.tV()},VQ:function(){var d=this.n7;d&&0<d.length&&a.C.nn(this.Ga[0],d[0])||(d||(d=this.element.find("[autofocus]")), d.length||(d=this.element.find(":tabbable")),d.length||this.ij.length&&(d=this.ij.find(":tabbable")),d.length||this.pL&&(d=this.pL.filter(":tabbable")),d.length||(d=this.Ga),d.eq(0).focus(),this._trigger("focus"))},_keepFocus:function(a){a.preventDefault();a=this.document[0].activeElement;this.Ga[0]===a||f.contains(this.Ga[0],a)||this.VQ()},Md:function(a){return!isNaN(parseInt(a,10))},j6:function(){this.gH=!1;this.element.uniqueId();this.lF=this.element.attr("id");this.Qea="ojDialogWrapper-"+this.lF; this.Ga=f("\x3cdiv\x3e");this.Ga.addClass("oj-dialog oj-component").hide().attr({tabIndex:-1,role:this.options.role,id:this.Qea});this.Ga.insertBefore(this.element);this._on(this.Ga,{keyup:function(){},keydown:function(a){if("none"!=this.options.cancelBehavior&&!a.isDefaultPrevented()&&a.keyCode&&a.keyCode===f.ui.keyCode.ESCAPE)a.preventDefault(),a.stopImmediatePropagation(),this.close(a);else if(a.keyCode===f.ui.keyCode.TAB&&"modeless"!==this.options.modality){var b=this.Ga.find(":tabbable"),c=b.filter(":first"), e=b.filter(":last");a.shiftKey?a.shiftKey&&(a.target===c[0]||a.target===this.Ga[0]?(e.focus(),a.preventDefault()):(c=b.index(document.activeElement),1==c&&b[0]&&(b[0].focus(),a.preventDefault()))):a.target===e[0]||a.target===this.Ga[0]?(c.focus(),a.preventDefault()):(c=b.index(document.activeElement),0==c&&b[1]&&(b[1].focus(),a.preventDefault()))}}});this.element.find("[aria-describedby]").length||this.Ga.attr({"aria-describedby":this.element.uniqueId().attr("id")})},Dy:function(){this.Gn&&(this.Gn.remove(), this.pL=this.Gn=null)},uy:function(a){this.Gn=f("\x3cdiv\x3e").addClass("oj-dialog-header-close-wrapper").attr("tabindex","1").attr("aria-label","close").attr("role","button").appendTo(a);this.pL=f("\x3cspan\x3e").addClass("oj-component-icon oj-clickable-icon oj-dialog-close-icon").attr("alt","close icon").prependTo(this.Gn);this._on(this.Gn,{click:function(a){a.preventDefault();a.stopImmediatePropagation();this.close(a)},mousedown:function(a){f(a.currentTarget).addClass("oj-active")},mouseup:function(a){f(a.currentTarget).removeClass("oj-active")}, mouseenter:function(a){f(a.currentTarget).addClass("oj-hover")},mouseleave:function(a){a=a.currentTarget;f(a).removeClass("oj-hover");f(a).removeClass("oj-active")},keyup:function(a){if(a.keyCode&&a.keyCode===f.ui.keyCode.SPACE||a.keyCode===f.ui.keyCode.ENTER)a.preventDefault(),a.stopImmediatePropagation(),this.close(a)}})},i6:function(){var a;this.ik=f("\x3cdiv\x3e").addClass("oj-dialog-header oj-helper-clearfix").prependTo(this.Ga);this._on(this.ik,{mousedown:function(a){f(a.target).closest(".oj-dialog-close-icon")|| this.Ga.focus()}});"icon"===this.options.cancelBehavior&&this.uy(this.ik);a=f("\x3cspan\x3e").uniqueId().addClass("oj-dialog-title").appendTo(this.ik);this.SW(a);this.Ga.attr({"aria-labelledby":a.attr("id")})},SW:function(a){this.options.title||a.html("\x26#160;");a.text(this.options.title)},Po:function(){function a(b){return{position:b.position,offset:b.offset}}var b=this,c=this.options;this.Ga.draggable({Jia:!1,cancel:".oj-dialog-content, .oj-dialog-header-close",handle:".oj-dialog-header",containment:"document", start:function(c,g){f(this).addClass("oj-dialog-dragging");b.LO();b._trigger("dragStart",c,a(g))},drag:function(c,f){b._trigger("drag",c,a(f))},stop:function(e,g){c.position=[g.position.left-b.document.scrollLeft(),g.position.top-b.document.scrollTop()];f(this).removeClass("oj-dialog-dragging");b.$W();b._trigger("dragStop",e,a(g))}});this.Ga.addClass("oj-draggable")},WT:function(){function a(b){return{originalPosition:b.xn,originalSize:b.fj,position:b.position,size:b.size}}var b=this;this.Ga.css("position"); this.$o=this.Ga.ojResizable.bind(this.Ga);this.$o({cancel:".oj-dialog-content",containment:"document",handles:"n,e,s,w,se,sw,ne,nw",start:function(c,e){b.gH=!0;f(this).addClass("oj-dialog-resizing");b.LO();b._trigger("resizeStart",c,a(e))},resize:function(c,e){b._trigger("resize",c,a(e))},stop:function(c,e){b.gH=!1;f(this).removeClass("oj-dialog-resizing");b.$W();b._trigger("resizeStop",c,a(e))}})},IH:function(){var d="rtl"===this.hc(),d=a.jd.Kg(this.options.position,d);this.Ga.position(d);this.vU()}, vU:function(){a.T.le().oL(this.Ga,a.T.sc.Rl)},_setOption:function(d,b,c){var e;e=this.Ga;if("disabled"!==d)switch(this._super(d,b,c),d){case "dragAffordance":(d=e.hasClass("oj-draggable"))&&"none"===b&&(e.draggable("destroy"),this.Ga.removeClass("oj-draggable"));d||"title-bar"!==b||this.Po();break;case "position":this.IH();break;case "resizeBehavior":e=!1;this.$o&&(e=!0);e&&"resizable"!=b&&(this.$o("destroy"),this.$o=null);e||"resizable"!==b||this.WT();break;case "title":this.SW(this.ik.find(".oj-dialog-title")); break;case "role":e.attr("role",b);break;case "modality":this.isOpen()&&(e={},e[a.T.bb.Cf]=this.Ga,e[a.T.bb.mi]=b,a.T.le().$v(e));break;case "cancelBehavior":"none"===b||"escape"===b?this.Dy():"icon"===b&&(this.Ls?(this.Dy(),this.uy(this.gl),this.Rv=this.gl.find(".oj-dialog-title"),this.Rv.length&&this.Rv.insertAfter(this.Gn)):(this.Dy(),this.uy(this.ik),this.F_=this.ik.find(".oj-dialog-title"),this.F_.length&&this.F_.insertAfter(this.Gn)))}},tV:function(){var a=!1;this.Ga.length&&this.Ga[0].style.height&& (a=this.Ga[0].style.height.indexOf("%"));this.gH&&a&&(a=this.y7(),this.element.css({height:a}))},y7:function(){this.bQ=null;var a=(this.Ls?this.gl:this.ik).outerHeight(),b=0;this.ij.length&&(b=this.ij.outerHeight());return this.Ga.height()-a-b},Saa:function(){var a=f("\x3cdiv\x3e");this.RP=this.Ga.css("height");"auto"!=this.RP?(a.height(this.RP),this.Xt=a.height(),this.Md(this.Xt)&&(this.Xt=Math.ceil(this.Xt))):this.Xt="auto";a.remove()},Qi:function(){this.Saa();var a=this.Ga[0].style.height,b=this.Ga[0].style.width, c=this.Ga[0].style.minHeight,e=this.Ga[0].style.maxHeight;this.element.css({width:"auto",minHeight:0,maxHeight:"none",height:0});var f;f=this.Ga.css({minHeight:0,maxHeight:"none",height:"auto"}).outerHeight();this.element.css({width:"",minHeight:"",maxHeight:"",height:""});this.Ga.css({width:b});this.Ga.css({height:a});this.Ga.css({minHeight:c});this.Ga.css({maxHeight:e});"auto"!=a&&""!=a&&this.element.height(Math.max(0,this.Xt+0-f))},LO:function(){this.eK=this.document.find("iframe").map(function(){var a= f(this),b=a.offset();return f("\x3cdiv\x3e").css({width:a.outerWidth(),height:a.outerHeight()}).appendTo(a.parent()).offset(b)[0]})},$W:function(){this.eK&&(this.eK.remove(),delete this.eK)},X5:function(a){this.tU="ojDialogPlaceHolderFooter-"+this.lF;this.zba=f("\x3cdiv\x3e").hide().attr({id:this.tU});this.zba.insertBefore(a)},Y5:function(a){this.uU="ojDialogPlaceHolderHeader-"+this.lF;this.Aba=f("\x3cdiv\x3e").hide().attr({id:this.uU});this.Aba.insertBefore(a)},getNodeBySubId:function(a){if(null== a)return this.element?this.element[0]:null;a=a.subId;switch(a){case "oj-dialog":case "oj-dialog-header":case "oj-dialog-body":case "oj-dialog-footer":case "oj-dialog-content":case "oj-dialog-header-close-wrapper":case "oj-dialog-close-icon":case "oj-resizable-n":case "oj-resizable-e":case "oj-resizable-s":case "oj-resizable-w":case "oj-resizable-se":case "oj-resizable-sw":case "oj-resizable-ne":case "oj-resizable-nw":return a="."+a,this.widget().find(a)[0]}return null},ep:function(){this.element.remove()}, $q:function(){if(!this.Ni){var d=this.Ni={};d[a.T.sc.Tp]=f.proxy(this.Dq,this);d[a.T.sc.Up]=f.proxy(this.ep,this);d[a.T.sc.Rl]=f.proxy(this.vU,this)}return this.Ni},Dq:function(){this.Mu=!0;this.close();delete this.Mu}})})();(function(){var d=!1;f(document).mouseup(function(){d=!1});a.Da("oj.ojResizable",f.oj.baseComponent,{version:"1.0.0",widgetEventPrefix:"oj",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,alsoResize:!1, animate:!1,animateDuration:"slow",animateEasing:"swing",containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,resize:null,start:null,stop:null},eba:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a.dba(c)}).bind("click."+this.widgetName,function(c){if(!0===f.data(c.target,a.widgetName+".preventClickEvent"))return f.removeData(c.target,a.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1})},cba:function(){this.element.unbind("."+this.widgetName); this.Xz&&this.document.unbind("mousemove."+this.widgetName,this.Xz).unbind("mouseup."+this.widgetName,this.rH)},dba:function(a){if(!d){this.Jm&&this.Yz(a);this.Vz=a;var c=this,e=1===a.which,g="string"===typeof this.options.cancel&&a.target.nodeName?f(a.target).closest(this.options.cancel).length:!1;if(!e||g||!this.bba(a))return!0;(this.Iw=!this.options.delay)||setTimeout(function(){c.Iw=!0},this.options.delay);if(this.dU(a)&&this.Iw&&(this.Jm=!1!==this.qH(a),!this.Jm))return a.preventDefault(),!0; !0===f.data(a.target,this.widgetName+".preventClickEvent")&&f.removeData(a.target,this.widgetName+".preventClickEvent");this.Xz=function(a){return c.fba(a)};this.rH=function(a){return c.Yz(a)};this.document.bind("mousemove."+this.widgetName,this.Xz).bind("mouseup."+this.widgetName,this.rH);a.preventDefault();return d=!0}},fba:function(a){if(f.ui.Wia&&(!document.documentMode||9>document.documentMode)&&!a.button||!a.which)return this.Yz(a);if(this.Jm)return this.Wz(a),a.preventDefault();this.dU(a)&& this.Iw&&((this.Jm=!1!==this.qH(this.Vz,a))?this.Wz(a):this.Yz(a));return!this.Jm},Yz:function(a){this.document.unbind("mousemove."+this.widgetName,this.Xz).unbind("mouseup."+this.widgetName,this.rH);this.Jm&&(this.Jm=!1,a.target===this.Vz.target&&f.data(a.target,this.widgetName+".preventClickEvent",!0),this.bv(a));return d=!1},dU:function(a){return Math.max(Math.abs(this.Vz.pageX-a.pageX),Math.abs(this.Vz.pageY-a.pageY))>=this.options.distance},Cia:function(){return this.Iw},vH:function(a){return parseInt(a, 10)||0},Md:function(a){return!isNaN(parseInt(a,10))},JS:function(a,c){if("hidden"===f(a).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",g=!1;if(0<a[d])return!0;a[d]=1;g=0<a[d];a[d]=0;return g},_ComponentCreate:function(){this._super();var a,c,d,g,h,k=this;a=this.options;this.element.addClass("oj-resizable");f.extend(this,{PB:this.element,jA:[],Gj:null});this.handles=a.handles||(f(".oj-resizable-handle",this.element).length?{cja:".oj-resizable-n",Oia:".oj-resizable-e",lja:".oj-resizable-s", Gc:".oj-resizable-w",nja:".oj-resizable-se",pja:".oj-resizable-sw",dja:".oj-resizable-ne",gja:".oj-resizable-nw"}:"e,s,se");if(this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),a=this.handles.split(","),this.handles={},c=0;c<a.length;c++)d=f.trim(a[c]),h="oj-resizable-"+d,g=f("\x3cdiv class\x3d'oj-resizable-handle "+h+"'\x3e\x3c/div\x3e"),this.handles[d]=".oj-resizable-"+d,this.element.append(g);this.Ica=function(){for(var a in this.handles)this.handles[a].constructor=== String&&(this.handles[a]=this.element.children(this.handles[a]).first().show())};this.Ica();this.l$=f(".oj-resizable-handle",this.element);this.l$.mouseover(function(){k.k_||(this.className&&(g=this.className.match(/oj-resizable-(se|sw|ne|nw|n|e|s|w)/i)),k.axis=g&&g[1]?g[1]:"se")});this.eba()},_destroy:function(){this.cba();f(this.PB).removeClass("oj-resizable oj-resizable-disabled oj-resizable-resizing").removeData("resizable").removeData("oj-resizable").unbind(".resizable").find(".oj-resizable-handle").remove(); return this},bba:function(a){var c,d,g=!1;for(c in this.handles)if(d=f(this.handles[c])[0],d===a.target||f.contains(d,a.target))g=!0;return!this.options.disabled&&g},qH:function(a){var c,d,g;g=this.options;c=this.element.position();var h=this.element;this.k_=!0;/absolute/.test(h.css("position"))?h.css({position:"absolute",top:h.css("top"),left:h.css("left")}):h.is(".oj-draggable")&&h.css({position:"absolute",top:c.top,left:c.left});this.Jca();c=this.vH(this.helper.css("left"));d=this.vH(this.helper.css("top")); g.containment&&(c+=f(g.containment).scrollLeft()||0,d+=f(g.containment).scrollTop()||0);this.offset=this.helper.offset();this.position={left:c,top:d};this.size={width:h.width(),height:h.height()};this.fj={width:h.width(),height:h.height()};this.xn={left:c,top:d};this.YB={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()};this.Xga={left:a.pageX,top:a.pageY};this.Sj=this.fj.width/this.fj.height||1;g=f(".oj-resizable-"+this.axis).css("cursor");f("body").css("cursor","auto"===g?this.axis+ "-resize":g);h.addClass("oj-resizable-resizing");this.MH("start",a);this.g4(a);this.u5(a);return!0},Wz:function(a){var c,d=this.helper,g={},h=this.Xga;c=a.pageX-h.left||0;var h=a.pageY-h.top||0,k=this.rg[this.axis];this.Fs={top:this.position.top,left:this.position.left};this.Gs={width:this.size.width,height:this.size.height};if(!k)return!1;c=k.apply(this,[a,c,h]);this.Hea(a.shiftKey);a.shiftKey&&(c=this.Gea(c,a));c=this.Uca(c,a);this.Aea(c);this.MH("resize",a);this.f4(a,this.ui());this.t5(a,this.ui()); this.position.top!==this.Fs.top&&(g.top=this.position.top+"px");this.position.left!==this.Fs.left&&(g.left=this.position.left+"px");this.size.width!==this.Gs.width&&(g.width=this.size.width+"px");this.size.height!==this.Gs.height&&(g.height=this.size.height+"px");d.css(g);!this.Gj&&this.jA.length&&this.Vba();f.isEmptyObject(g)||this._trigger("resize",a,this.ui());return!1},bv:function(a){this.k_=!1;f("body").css("cursor","auto");this.element.removeClass("oj-resizable-resizing");this.MH("stop",a); this.h4(a);this.v5(a);return!1},Hea:function(a){var c,d,f,h;h=this.options;h={minWidth:this.Md(h.minWidth)?h.minWidth:0,maxWidth:this.Md(h.maxWidth)?h.maxWidth:Infinity,minHeight:this.Md(h.minHeight)?h.minHeight:0,maxHeight:this.Md(h.maxHeight)?h.maxHeight:Infinity};a&&(a=h.minHeight*this.Sj,d=h.minWidth/this.Sj,c=h.maxHeight*this.Sj,f=h.maxWidth/this.Sj,a>h.minWidth&&(h.minWidth=a),d>h.minHeight&&(h.minHeight=d),c<h.maxWidth&&(h.maxWidth=c),f<h.maxHeight&&(h.maxHeight=f));this.Kea=h},Aea:function(a){this.offset= this.helper.offset();this.Md(a.left)&&(this.position.left=a.left);this.Md(a.top)&&(this.position.top=a.top);this.Md(a.height)&&(this.size.height=a.height);this.Md(a.width)&&(this.size.width=a.width)},Gea:function(a){var c=this.position,d=this.size,f=this.axis;this.Md(a.height)?a.width=a.height*this.Sj:this.Md(a.width)&&(a.height=a.width/this.Sj);"sw"===f&&(a.left=c.left+(d.width-a.width),a.top=null);"nw"===f&&(a.top=c.top+(d.height-a.height),a.left=c.left+(d.width-a.width));return a},Uca:function(a){var c= this.Kea,d=this.axis,f=this.Md(a.width)&&c.maxWidth&&c.maxWidth<a.width,h=this.Md(a.height)&&c.maxHeight&&c.maxHeight<a.height,k=this.Md(a.width)&&c.minWidth&&c.minWidth>a.width,l=this.Md(a.height)&&c.minHeight&&c.minHeight>a.height,m=this.xn.left+this.fj.width,n=this.position.top+this.size.height,q=/sw|nw|w/.test(d),d=/nw|ne|n/.test(d);k&&(a.width=c.minWidth);l&&(a.height=c.minHeight);f&&(a.width=c.maxWidth);h&&(a.height=c.maxHeight);k&&q&&(a.left=m-c.minWidth);f&&q&&(a.left=m-c.maxWidth);l&&d&& (a.top=n-c.minHeight);h&&d&&(a.top=n-c.maxHeight);a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left||(a.left=null):a.top=null;return a},Vba:function(){if(this.jA.length){var a,c,d,f,h,k=this.helper||this.element;for(a=0;a<this.jA.length;a++){h=this.jA[a];if(!this.as)for(this.as=[],d=[h.css("borderTopWidth"),h.css("borderRightWidth"),h.css("borderBottomWidth"),h.css("borderLeftWidth")],f=[h.css("paddingTop"),h.css("paddingRight"),h.css("paddingBottom"),h.css("paddingLeft")],c=0;c< d.length;c++)this.as[c]=(parseInt(d[c],10)||0)+(parseInt(f[c],10)||0);h.css({height:k.height()-this.as[0]-this.as[2]||0,width:k.width()-this.as[1]-this.as[3]||0})}}},Jca:function(){this.element.offset();this.helper=this.element},rg:{e:function(a,c){return{width:this.fj.width+c}},w:function(a,c){return{left:this.xn.left+c,width:this.fj.width-c}},n:function(a,c,d){return{top:this.xn.top+d,height:this.fj.height-d}},s:function(a,c,d){return{height:this.fj.height+d}},se:function(a,c,d){return f.extend(this.rg.s.apply(this, arguments),this.rg.e.apply(this,[a,c,d]))},sw:function(a,c,d){return f.extend(this.rg.s.apply(this,arguments),this.rg.w.apply(this,[a,c,d]))},ne:function(a,c,d){return f.extend(this.rg.n.apply(this,arguments),this.rg.e.apply(this,[a,c,d]))},nw:function(a,c,d){return f.extend(this.rg.n.apply(this,arguments),this.rg.w.apply(this,[a,c,d]))}},MH:function(a,c){"resize"!==a&&this._trigger(a,c,this.ui())},g4:function(){function a(b){f(b).each(function(){var a=f(this);a.data("oj-resizable-alsoresize",{width:parseInt(a.width(), 10),height:parseInt(a.height(),10),left:parseInt(a.css("left"),10),top:parseInt(a.css("top"),10)})})}var c=this.options;"object"!==typeof c.alsoResize||c.alsoResize.parentNode?a(c.alsoResize):c.alsoResize.length?(c.alsoResize=c.alsoResize[0],a(c.alsoResize)):f.each(c.alsoResize,function(c){a(c)})},f4:function(a,c){function d(a,b){f(a).each(function(){var a=f(this),d=f(this).data("oj-resizable-alsoresize"),e={};f.each(b&&b.length?b:a.parents(c.PB[0]).length?["width","height"]:["width","height","top", "left"],function(a,b){var c=(d[b]||0)+(l[b]||0);c&&0<=c&&(e[b]=c||null)});a.css(e)})}var g=this.options,h=this.fj,k=this.xn,l={height:this.size.height-h.height||0,width:this.size.width-h.width||0,top:this.position.top-k.top||0,left:this.position.left-k.left||0};"object"!==typeof g.alsoResize||g.alsoResize.nodeType?d(g.alsoResize,null):f.each(g.alsoResize,function(a,b){d(a,b)})},h4:function(){f(this).removeData("oj-resizable-alsoresize")},u5:function(){var a,c,d,g,h,k=this,l=k.element;d=k.options.containment; if(l=d instanceof f?d.get(0):/parent/.test(d)?l.parent().get(0):d)k.iB=f(l),/document/.test(d)||d===document?(k.jB={left:0,top:0},k.HX={left:0,top:0},k.yn={element:f(document),left:0,top:0,width:f(document).width(),height:f(document).height()||document.body.parentNode.scrollHeight}):(a=f(l),c=[],f(["Top","Right","Left","Bottom"]).each(function(d,e){c[d]=k.vH(a.css("padding"+e))}),k.jB=a.offset(),k.HX=a.position(),k.IX={height:a.innerHeight()-c[3],width:a.innerWidth()-c[1]},d=k.jB,g=k.IX.height,h= k.IX.width,h=k.JS(l,"left")?l.scrollWidth:h,g=k.JS(l)?l.scrollHeight:g,k.yn={element:l,left:d.left,top:d.top,width:h,height:g})},t5:function(a,c){var d,f,h,k;d=this.options;f=this.jB;k=this.position;var l=a.shiftKey;h={top:0,left:0};var m=this.iB,n=!0;m[0]!==document&&/static/.test(m.css("position"))&&(h=f);k.left<(this.Gj?f.left:0)&&(this.size.width+=this.Gj?this.position.left-f.left:this.position.left-h.left,l&&(this.size.height=this.size.width/this.Sj,n=!1),this.position.left=d.helper?f.left:0); k.top<(this.Gj?f.top:0)&&(this.size.height+=this.Gj?this.position.top-f.top:this.position.top,l&&(this.size.width=this.size.height*this.Sj,n=!1),this.position.top=this.Gj?f.top:0);this.offset.left=this.yn.left+this.position.left;this.offset.top=this.yn.top+this.position.top;d=Math.abs((this.Gj?this.offset.left-h.left:this.offset.left-f.left)+this.YB.width);f=Math.abs((this.Gj?this.offset.top-h.top:this.offset.top-f.top)+this.YB.height);h=this.iB.get(0)===this.element.parent().get(0);k=/relative|absolute/.test(this.iB.css("position")); h&&k&&(d-=Math.abs(this.yn.left));d+this.size.width>=this.yn.width&&(this.size.width=this.yn.width-d,l&&(this.size.height=this.size.width/this.Sj,n=!1));f+this.size.height>=this.yn.height&&(this.size.height=this.yn.height-f,l&&(this.size.width=this.size.height*this.Sj,n=!1));n||(this.position.left=c.Fs.left,this.position.top=c.Fs.top,this.size.width=c.Gs.width,this.size.height=c.Gs.height)},v5:function(){var a=this.options,c=this.jB,d=this.HX,g=this.iB,h=f(this.helper),k=h.offset(),l=h.outerWidth()- this.YB.width,h=h.outerHeight()-this.YB.height;this.Gj&&!a.animate&&/relative/.test(g.css("position"))&&f(this).css({left:k.left-d.left-c.left,width:l,height:h});this.Gj&&!a.animate&&/static/.test(g.css("position"))&&f(this).css({left:k.left-d.left-c.left,width:l,height:h})},ui:function(){return{PB:this.PB,element:this.element,helper:this.helper,position:this.position,size:this.size,fj:this.fj,xn:this.xn,Gs:this.Gs,Fs:this.Fs}}})})()});
afsinka/jet_jsp
src/main/webapp/js/libs/oj/v1.1.2/min/ojdialog.js
JavaScript
lgpl-2.1
24,005
"use strict"; var express = require('express'); var less = require('less-middleware'); function HttpServer(port, staticServedPath, logRequest) { this.port = port; this.staticServedPath = staticServedPath; this.logRequest = (typeof logRequest === "undefined") ? true : logRequest; } HttpServer.prototype.start = function(fn) { console.log("Starting server"); var self = this; var app = express(); self.app = app; if(self.logRequest) { app.use(function (req, res, next) { console.log(req.method, req.url); next(); }); } app.use('/', express.static(self.staticServedPath)); self.server = app.listen(self.port, function () { console.log("Server started on port", self.port); if (fn !== undefined) fn(); }); }; HttpServer.prototype.stop = function() { console.log("Stopping server"); var self = this; self.server.close(); }; module.exports = HttpServer;
o-schneider/heroesdesk-front-web
src/server/HttpServer.js
JavaScript
lgpl-3.0
917
/* * World Calendars * https://github.com/alexcjohnson/world-calendars * * Batch-converted from kbwood/calendars * Many thanks to Keith Wood and all of the contributors to the original project! * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* http://keith-wood.name/calendars.html Traditional Chinese localisation for Taiwanese calendars for jQuery v2.0.2. Written by Ressol ([email protected]). */ var main = require('../main'); main.calendars.taiwan.prototype.regionalOptions['zh-TW'] = { name: 'Taiwan', epochs: ['BROC', 'ROC'], monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], monthNamesShort: ['一','二','三','四','五','六', '七','八','九','十','十一','十二'], dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], dayNamesMin: ['日','一','二','三','四','五','六'], digits: null, dateFormat: 'yyyy/mm/dd', firstDay: 1, isRTL: false };
andrealmeid/ToT
node_modules/world-calendars/dist/calendars/taiwan-zh-TW.js
JavaScript
unlicense
1,220
'use strict'; import EventMap from 'eventmap'; import Log from './log'; var audioTypes = { 'mp3': 'audio/mpeg', 'wav': 'audio/wav', 'ogg': 'audio/ogg' }; var imageTypes = { 'png': 'image/png', 'jpg': 'image/jpg', 'gif': 'image/gif' }; class AssetLoader extends EventMap { constructor(assets) { super(); this.assets = assets || {}; this.files = {}; this.maxAssets = 0; this.assetsLoaded = 0; this.percentLoaded = 0; this.cache = {}; } start() { // TODO: Something was wrong here. So it's deleted right now } } export default AssetLoader;
maxwerr/gamebox
src/assetloader.js
JavaScript
unlicense
599
(function () { function remap(fromValue, fromMin, fromMax, toMin, toMax) { // Compute the range of the data var fromRange = fromMax - fromMin, toRange = toMax - toMin, toValue; // If either range is 0, then the value can only be mapped to 1 value if (fromRange === 0) { return toMin + toRange / 2; } if (toRange === 0) { return toMin; } // (1) untranslate, (2) unscale, (3) rescale, (4) retranslate toValue = (fromValue - fromMin) / fromRange; toValue = (toRange * toValue) + toMin; return toValue; } /** * Enhance Filter. Adjusts the colors so that they span the widest * possible range (ie 0-255). Performs w*h pixel reads and w*h pixel * writes. * @function * @name Enhance * @memberof Kinetic.Filters * @param {Object} imageData * @author ippo615 * @example * node.cache(); * node.filters([Kinetic.Filters.Enhance]); * node.enhance(0.4); */ Kinetic.Filters.Enhance = function (imageData) { var data = imageData.data, nSubPixels = data.length, rMin = data[0], rMax = rMin, r, gMin = data[1], gMax = gMin, g, bMin = data[2], bMax = bMin, b, i; // If we are not enhancing anything - don't do any computation var enhanceAmount = this.enhance(); if( enhanceAmount === 0 ){ return; } // 1st Pass - find the min and max for each channel: for (i = 0; i < nSubPixels; i += 4) { r = data[i + 0]; if (r < rMin) { rMin = r; } else if (r > rMax) { rMax = r; } g = data[i + 1]; if (g < gMin) { gMin = g; } else if (g > gMax) { gMax = g; } b = data[i + 2]; if (b < bMin) { bMin = b; } else if (b > bMax) { bMax = b; } //a = data[i + 3]; //if (a < aMin) { aMin = a; } else //if (a > aMax) { aMax = a; } } // If there is only 1 level - don't remap if( rMax === rMin ){ rMax = 255; rMin = 0; } if( gMax === gMin ){ gMax = 255; gMin = 0; } if( bMax === bMin ){ bMax = 255; bMin = 0; } var rMid, rGoalMax,rGoalMin, gMid, gGoalMax,gGoalMin, bMid, bGoalMax,bGoalMin; // If the enhancement is positive - stretch the histogram if ( enhanceAmount > 0 ){ rGoalMax = rMax + enhanceAmount*(255-rMax); rGoalMin = rMin - enhanceAmount*(rMin-0); gGoalMax = gMax + enhanceAmount*(255-gMax); gGoalMin = gMin - enhanceAmount*(gMin-0); bGoalMax = bMax + enhanceAmount*(255-bMax); bGoalMin = bMin - enhanceAmount*(bMin-0); // If the enhancement is negative - compress the histogram } else { rMid = (rMax + rMin)*0.5; rGoalMax = rMax + enhanceAmount*(rMax-rMid); rGoalMin = rMin + enhanceAmount*(rMin-rMid); gMid = (gMax + gMin)*0.5; gGoalMax = gMax + enhanceAmount*(gMax-gMid); gGoalMin = gMin + enhanceAmount*(gMin-gMid); bMid = (bMax + bMin)*0.5; bGoalMax = bMax + enhanceAmount*(bMax-bMid); bGoalMin = bMin + enhanceAmount*(bMin-bMid); } // Pass 2 - remap everything, except the alpha for (i = 0; i < nSubPixels; i += 4) { data[i + 0] = remap(data[i + 0], rMin, rMax, rGoalMin, rGoalMax); data[i + 1] = remap(data[i + 1], gMin, gMax, gGoalMin, gGoalMax); data[i + 2] = remap(data[i + 2], bMin, bMax, bGoalMin, bGoalMax); //data[i + 3] = remap(data[i + 3], aMin, aMax, aGoalMin, aGoalMax); } }; Kinetic.Factory.addGetterSetter(Kinetic.Node, 'enhance', 0, null, Kinetic.Factory.afterSetFilter); /** * get/set enhance. Use with {@link Kinetic.Filters.Enhance} filter. * @name enhance * @method * @memberof Kinetic.Node.prototype * @param {Float} amount * @returns {Float} */ })();
puyanLiu/LPYFramework
前端练习/10canvas/文档/KineticJS-master/src/filters/Enhance.js
JavaScript
apache-2.0
4,121
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: The String.prototype.charAt.length property has the attribute DontEnum es5id: 15.5.4.4_A8 description: > Checking if enumerating the String.prototype.charAt.length property fails ---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.charAt.hasOwnProperty('length'))) { $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.prototype.charAt.propertyIsEnumerable('length')) { $ERROR('#1: String.prototype.charAt.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.charAt.propertyIsEnumerable('length')); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#2 var count=0; for (var p in String.prototype.charAt){ if (p==="length") count++; } if (count !== 0) { $ERROR('#2: count=0; for (p in String.prototype.charAt){if (p==="length") count++;}; count === 0. Actual: count ==='+count ); } // //////////////////////////////////////////////////////////////////////////////
m0ppers/arangodb
3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js
JavaScript
apache-2.0
1,510
// Copyright 2014 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * @fileoverview Minor general functional components for end-to-end testing * with protractor. */ var editor = require('./editor.js'); // Time (in ms) to wait when the system needs time for some computations. var WAIT_TIME = 4000; // Optionally accepts a waitTime integer in milliseconds. var waitForSystem = function() { var waitTime; if (arguments.length === 1) { waitTime = arguments[0]; } else { waitTime = WAIT_TIME; } browser.sleep(waitTime); }; var scrollToTop = function() { browser.executeScript('window.scrollTo(0,0);'); }; // We will report all console logs of level greater than this. var CONSOLE_LOG_THRESHOLD = 900; var CONSOLE_ERRORS_TO_IGNORE = []; var checkForConsoleErrors = function(errorsToIgnore) { var irrelevantErrors = errorsToIgnore.concat(CONSOLE_ERRORS_TO_IGNORE); browser.manage().logs().get('browser').then(function(browserLogs) { var fatalErrors = []; for (var i = 0; i < browserLogs.length; i++) { if (browserLogs[i].level.value > CONSOLE_LOG_THRESHOLD) { var errorFatal = true; for (var j = 0; j < irrelevantErrors.length; j++) { if (browserLogs[i].message.match(irrelevantErrors[j])) { errorFatal = false; } } if (errorFatal) { fatalErrors.push(browserLogs[i]); } } } expect(fatalErrors).toEqual([]); }); }; var SERVER_URL_PREFIX = 'http://localhost:9001'; var LIBRARY_URL_SUFFIX = '/library'; var EDITOR_URL_SLICE = '/create/'; var PLAYER_URL_SLICE = '/explore/'; var LOGIN_URL_SUFFIX = '/_ah/login'; var ADMIN_URL_SUFFIX = '/admin'; var MODERATOR_URL_SUFFIX = '/moderator'; var DONATION_THANK_URL_SUFFIX = '/thanks'; // Note that this only works in dev, due to the use of cache slugs in prod. var SCRIPTS_URL_SLICE = '/assets/scripts/'; var EXPLORATION_ID_LENGTH = 12; var FIRST_STATE_DEFAULT_NAME = 'Introduction'; var _getExplorationId = function(currentUrlPrefix) { return { then: function(callbackFunction) { browser.getCurrentUrl().then(function(url) { expect(url.slice(0, currentUrlPrefix.length)).toBe(currentUrlPrefix); var explorationId = url.slice( currentUrlPrefix.length, currentUrlPrefix.length + EXPLORATION_ID_LENGTH); return callbackFunction(explorationId); }); } }; }; // If we are currently in the editor, this will return a promise with the // exploration ID. var getExplorationIdFromEditor = function() { return _getExplorationId(SERVER_URL_PREFIX + EDITOR_URL_SLICE); }; // Likewise for the player var getExplorationIdFromPlayer = function() { return _getExplorationId(SERVER_URL_PREFIX + PLAYER_URL_SLICE); }; // The explorationId here should be a string, not a promise. var openEditor = function(explorationId) { browser.get(EDITOR_URL_SLICE + explorationId); browser.waitForAngular(); editor.exitTutorialIfNecessary(); }; var openPlayer = function(explorationId) { browser.get(PLAYER_URL_SLICE + explorationId); browser.waitForAngular(); }; // Takes the user from an exploration editor to its player. // NOTE: we do not use the preview button because that will open a new window. var moveToPlayer = function() { getExplorationIdFromEditor().then(openPlayer); }; // Takes the user from the exploration player to its editor. var moveToEditor = function() { getExplorationIdFromPlayer().then(openEditor); }; var expect404Error = function() { expect(element(by.css('.protractor-test-error-container')).getText()). toMatch('Error 404'); }; // Checks no untranslated values are shown in the page. var ensurePageHasNoTranslationIds = function() { // The use of the InnerHTML is hacky, but is faster than checking each // individual component that contains text. element(by.css('.oppia-base-container')).getInnerHtml().then( function(promiseValue) { // First remove all the attributes translate and variables that are // not displayed var REGEX_TRANSLATE_ATTR = new RegExp('translate="I18N_', 'g'); var REGEX_NG_VARIABLE = new RegExp('<\\[\'I18N_', 'g'); expect(promiseValue.replace(REGEX_TRANSLATE_ATTR, '') .replace(REGEX_NG_VARIABLE, '')).not.toContain('I18N'); }); }; var acceptAlert = function() { browser.wait(function() { return browser.switchTo().alert().accept().then( function() { return true; }, function() { return false; } ); }); }; exports.acceptAlert = acceptAlert; exports.waitForSystem = waitForSystem; exports.scrollToTop = scrollToTop; exports.checkForConsoleErrors = checkForConsoleErrors; exports.SERVER_URL_PREFIX = SERVER_URL_PREFIX; exports.LIBRARY_URL_SUFFIX = LIBRARY_URL_SUFFIX; exports.EDITOR_URL_SLICE = EDITOR_URL_SLICE; exports.LOGIN_URL_SUFFIX = LOGIN_URL_SUFFIX; exports.MODERATOR_URL_SUFFIX = MODERATOR_URL_SUFFIX; exports.ADMIN_URL_SUFFIX = ADMIN_URL_SUFFIX; exports.DONATION_THANK_URL_SUFFIX = DONATION_THANK_URL_SUFFIX; exports.SCRIPTS_URL_SLICE = SCRIPTS_URL_SLICE; exports.FIRST_STATE_DEFAULT_NAME = FIRST_STATE_DEFAULT_NAME; exports.getExplorationIdFromEditor = getExplorationIdFromEditor; exports.getExplorationIdFromPlayer = getExplorationIdFromPlayer; exports.openEditor = openEditor; exports.openPlayer = openPlayer; exports.moveToPlayer = moveToPlayer; exports.moveToEditor = moveToEditor; exports.expect404Error = expect404Error; exports.ensurePageHasNoTranslationIds = ensurePageHasNoTranslationIds;
amgowano/oppia
core/tests/protractor_utils/general.js
JavaScript
apache-2.0
6,076
/// Copyright (c) 2009 Microsoft Corporation /// /// Redistribution and use in source and binary forms, with or without modification, are permitted provided /// that the following conditions are met: /// * Redistributions of source code must retain the above copyright notice, this list of conditions and /// the following disclaimer. /// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and /// the following disclaimer in the documentation and/or other materials provided with the distribution. /// * Neither the name of Microsoft nor the names of its contributors may be used to /// endorse or promote products derived from this software without specific prior written permission. /// /// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR /// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS /// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE /// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT /// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS /// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, /// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF /// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ES5Harness.registerTest({ id: "15.2.3.6-3-37", path: "TestCases/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-37.js", description: "Object.defineProperty - 'Attributes' is a Number object that uses Object's [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)", test: function testcase() { var obj = {}; var accessed = false; var numObj = new Number(-2); numObj.enumerable = true; Object.defineProperty(obj, "property", numObj); for (var prop in obj) { if (prop === "property") { accessed = true; } } return accessed; }, precondition: function prereq() { return fnExists(Object.defineProperty); } });
hnafar/IronJS
Src/Tests/ietestcenter/chapter15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-37.js
JavaScript
apache-2.0
2,322
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.crunch.lite', name: 'MinMaxCapabilityRefinement', refines: 'foam.nanos.crunch.MinMaxCapability', implements: [ 'foam.nanos.crunch.lite.CapableCompatibleCapability' ], javaImports: [ 'foam.nanos.crunch.CapabilityJunctionPayload', 'foam.nanos.crunch.CrunchService', 'static foam.nanos.crunch.CapabilityJunctionStatus.*' ], methods: [ { name: 'getCapableChainedStatus', documentation: ` numberGrantedOrPending are the available CapablePayloads which are GRANTED or can eventually be turned into GRANTED from PENDING state. If MinMaxCapability.min is greater than the number of available payloads which are GRANTED or can eventually be turned into GRANTED, then it is impossible for the total amount of GRANTED payloads to be greater than the MIN, thereby fulfilling the minimum requirement. For example, let there be a min max capablity which has 10 prerequisites and a min of 2. If the user selected only 3 of those prereqs in the wizard, then the CapablePayload.status for those 3 will each be in PENDING state with approvals generated for each one. Note, there will only be these 3 CapablePayloads out of the 10 Prereqs avaliable on the Capable object since the user only selected 3. If 1 of those 3 CapablePayloads get rejected. Then there will be 2 numberGrantedOrPending which could still potentially satisfy the min requirement of 2 if those 2 CapablePayloads get set to GRANTED. If 2 of those 3 CapablePayloads get rejected. Then there will be 1 numberGrantedOrPending which would be impossible to satisfy the MinMaxCapability.min requirement of 2 even if that 1 CapablePayload is GRANTED. `, javaCode: ` CrunchService crunchService = (CrunchService) x.get("crunchService"); List<String> prereqCapIds = crunchService.getPrereqs(getId()); int numberGranted = 0; int numberPending = 0; int numberRejected = 0; for ( String capId : prereqCapIds ) { CapabilityJunctionPayload prereqPayload = (CapabilityJunctionPayload) capablePayloadDAO.find(capId); if ( prereqPayload == null ) { continue; } switch ( prereqPayload.getStatus() ) { case GRANTED: numberGranted++; continue; case PENDING: case APPROVED: numberPending++; continue; case REJECTED: numberRejected++; continue; } } int numberTotal = numberGranted + numberPending + numberRejected; int numberGrantedOrPending = numberGranted + numberPending; if ( numberTotal == 0 ){ return CapabilityJunctionStatus.ACTION_REQUIRED; } if ( getMin() > numberGrantedOrPending ){ return CapabilityJunctionStatus.REJECTED; } if ( numberGranted >= getMin() ) { return CapabilityJunctionStatus.GRANTED; } if ( numberTotal >= getMin() ) { return CapabilityJunctionStatus.PENDING; } return CapabilityJunctionStatus.ACTION_REQUIRED; ` } ] });
jacksonic/vjlofvhjfgm
src/foam/nanos/crunch/lite/MinMaxCapabilityRefinement.js
JavaScript
apache-2.0
3,413
module('BadAriaRole'); test('No elements === no problems.', function(assert) { var config = { ruleName: 'badAriaRole', expected: axs.constants.AuditResult.NA }; assert.runRule(config); }); test('No roles === no problems.', function(assert) { // Setup fixture var fixture = document.getElementById('qunit-fixture'); for (var i = 0; i < 10; i++) fixture.appendChild(document.createElement('div')); var config = { ruleName: 'badAriaRole', expected: axs.constants.AuditResult.NA }; assert.runRule(config); }); test('Good role === no problems.', function(assert) { // Setup fixture var fixture = document.getElementById('qunit-fixture'); for (var r in axs.constants.ARIA_ROLES) { if (axs.constants.ARIA_ROLES.hasOwnProperty(r) && !axs.constants.ARIA_ROLES[r]['abstract']) { var div = document.createElement('div'); div.setAttribute('role', r); fixture.appendChild(div); } } var config = { ruleName: 'badAriaRole', expected: axs.constants.AuditResult.PASS, elements: [] }; assert.runRule(config); }); test('Bad role == problem', function(assert) { // Setup fixture var fixture = document.getElementById('qunit-fixture'); var div = document.createElement('div'); div.setAttribute('role', 'not-an-aria-role'); fixture.appendChild(div); var config = { ruleName: 'badAriaRole', expected: axs.constants.AuditResult.FAIL, elements: [div] }; assert.runRule(config); }); test('Abstract role == problem', function(assert) { // Setup fixture var fixture = document.getElementById('qunit-fixture'); var div = document.createElement('div'); div.setAttribute('role', 'input'); fixture.appendChild(div); var config = { ruleName: 'badAriaRole', expected: axs.constants.AuditResult.FAIL, elements: [div] }; assert.runRule(config); });
alice/accessibility-developer-tools
test/audits/bad-aria-role-test.js
JavaScript
apache-2.0
1,950
let connectionIdx = 0; let messageIdx = 0; function addConnection(connection) { connection.connectionId = ++connectionIdx; addMessage('New connection #' + connectionIdx); connection.addEventListener('message', function(event) { messageIdx++; const data = JSON.parse(event.data); const logString = 'Message ' + messageIdx + ' from connection #' + connection.connectionId + ': ' + data.message; addMessage(logString, data.lang); maybeSetFruit(data.message); connection.send('Received message ' + messageIdx); }); connection.addEventListener('close', function(event) { addMessage('Connection #' + connection.connectionId + ' closed, reason = ' + event.reason + ', message = ' + event.message); }); }; /* Utils */ const fruitEmoji = { 'grapes': '\u{1F347}', 'watermelon': '\u{1F349}', 'melon': '\u{1F348}', 'tangerine': '\u{1F34A}', 'lemon': '\u{1F34B}', 'banana': '\u{1F34C}', 'pineapple': '\u{1F34D}', 'green apple': '\u{1F35F}', 'apple': '\u{1F34E}', 'pear': '\u{1F350}', 'peach': '\u{1F351}', 'cherries': '\u{1F352}', 'strawberry': '\u{1F353}' }; function addMessage(content, language) { const listItem = document.createElement("li"); if (language) { listItem.lang = language; } listItem.textContent = content; document.querySelector("#message-list").appendChild(listItem); }; function maybeSetFruit(message) { const fruit = message.toLowerCase(); if (fruit in fruitEmoji) { document.querySelector('#main').textContent = fruitEmoji[fruit]; } }; document.addEventListener('DOMContentLoaded', function() { if (navigator.presentation.receiver) { navigator.presentation.receiver.connectionList.then(list => { list.connections.map(connection => addConnection(connection)); list.addEventListener('connectionavailable', function(event) { addConnection(event.connection); }); }); } });
beaufortfrancois/samples
presentation-api/receiver/receiver.js
JavaScript
apache-2.0
1,980
/** * Copyright 2014 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. **/ var should = require("should"); var request = require('supertest'); var express = require('express'); var when = require('when'); var app = express(); var RED = require("../../../red/red.js"); var storage = require("../../../red/storage"); var library = require("../../../red/api/library"); describe("library api", function() { function initStorage(_flows,_libraryEntries) { var flows = _flows; var libraryEntries = _libraryEntries; storage.init({ storageModule: { init: function() { return when.resolve(); }, getAllFlows: function() { return when.resolve(flows); }, getFlow: function(fn) { if (flows[fn]) { return when.resolve(flows[fn]); } else { return when.reject(); } }, saveFlow: function(fn,data) { flows[fn] = data; return when.resolve(); }, getLibraryEntry: function(type,path) { if (libraryEntries[type] && libraryEntries[type][path]) { return when.resolve(libraryEntries[type][path]); } else { return when.reject(); } }, saveLibraryEntry: function(type,path,meta,body) { libraryEntries[type][path] = body; return when.resolve(); } } }); } describe("flows", function() { var app; before(function() { app = express(); app.use(express.json()); app.get("/library/flows",library.getAll); app.post(new RegExp("/library/flows\/(.*)"),library.post); app.get(new RegExp("/library/flows\/(.*)"),library.get); }); it('returns empty result', function(done) { initStorage({}); request(app) .get('/library/flows') .expect(200) .end(function(err,res) { if (err) { throw err; } res.body.should.not.have.property('f'); res.body.should.not.have.property('d'); done(); }); }); it('returns 404 for non-existent entry', function(done) { initStorage({}); request(app) .get('/library/flows/foo') .expect(404) .end(done); }); it('can store and retrieve item', function(done) { initStorage({}); var flow = '[]'; request(app) .post('/library/flows/foo') .set('Content-Type', 'application/json') .send(flow) .expect(204).end(function (err, res) { if (err) { throw err; } request(app) .get('/library/flows/foo') .expect(200) .end(function(err,res) { if (err) { throw err; } res.text.should.equal(flow); done(); }); }); }); it('lists a stored item', function(done) { initStorage({f:["bar"]}); request(app) .get('/library/flows') .expect(200) .end(function(err,res) { if (err) { throw err; } res.body.should.have.property('f'); should.deepEqual(res.body.f,['bar']); done(); }); }); it('returns 403 for malicious get attempt', function(done) { initStorage({}); // without the userDir override the malicious url would be // http://127.0.0.1:1880/library/flows/../../package to // obtain package.json from the node-red root. request(app) .get('/library/flows/../../../../../package') .expect(403) .end(done); }); it('returns 403 for malicious post attempt', function(done) { initStorage({}); // without the userDir override the malicious url would be // http://127.0.0.1:1880/library/flows/../../package to // obtain package.json from the node-red root. request(app) .post('/library/flows/../../../../../package') .expect(403) .end(done); }); }); describe("type", function() { var app; before(function() { app = express(); app.use(express.json()); library.init(app); RED.library.register("test"); }); it('returns empty result', function(done) { initStorage({},{'test':{"":[]}}); request(app) .get('/library/test') .expect(200) .end(function(err,res) { if (err) { throw err; } res.body.should.not.have.property('f'); done(); }); }); it('returns 404 for non-existent entry', function(done) { initStorage({},{}); request(app) .get('/library/test/foo') .expect(404) .end(done); }); it('can store and retrieve item', function(done) { initStorage({},{'test':{}}); var flow = '[]'; request(app) .post('/library/test/foo') .set('Content-Type', 'text/plain') .send(flow) .expect(204).end(function (err, res) { if (err) { throw err; } request(app) .get('/library/test/foo') .expect(200) .end(function(err,res) { if (err) { throw err; } res.text.should.equal(flow); done(); }); }); }); it('lists a stored item', function(done) { initStorage({},{'test':{'':['abc','def']}}); request(app) .get('/library/test') .expect(200) .end(function(err,res) { if (err) { throw err; } // This response isn't strictly accurate - but it // verifies the api returns what storage gave it should.deepEqual(res.body,['abc','def']); done(); }); }); it('returns 403 for malicious access attempt', function(done) { request(app) .get('/library/test/../../../../../../../../../../etc/passwd') .expect(403) .end(done); }); it('returns 403 for malicious access attempt', function(done) { request(app) .get('/library/test/..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\etc\\passwd') .expect(403) .end(done); }); it('returns 403 for malicious access attempt', function(done) { request(app) .post('/library/test/../../../../../../../../../../etc/passwd') .set('Content-Type', 'text/plain') .send('root:x:0:0:root:/root:/usr/bin/tclsh') .expect(403) .end(done); }); }); });
ty4tw/node-red
test/red/api/library_spec.js
JavaScript
apache-2.0
8,945
/* * Copyright (C) 2015 Stratio (http://stratio.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ (function () { 'use strict'; angular .module('webApp') .controller('DriversListCtrl', DriversListCtrl); DriversListCtrl.$inject = ['$scope', 'EntityFactory', 'ModalService', 'UtilsService', '$state']; function DriversListCtrl($scope, EntityFactory, ModalService, UtilsService, $state) { /*jshint validthis: true*/ var vm = this; vm.deleteDriver = deleteDriver; vm.getAllDrivers = getAllDrivers; vm.createDriver = createDriver; vm.sortDrivers = sortDrivers; vm.tableReverse = false; vm.sortField = 'fileName'; vm.errorMessage = { type: 'error', text: '', internalTrace: '' }; vm.successMessage = { type: 'success', text: '', internalTrace: '' }; init(); ///////////////////////////////// function init() { getAllDrivers(); } function getAllDrivers() { EntityFactory.getAllDrivers().then(function (drivers) { vm.driversData = drivers; }); } function createDriver() { var controller = 'CreateEntityModalCtrl'; var templateUrl = "templates/modal/entity-creation-modal.tpl.html"; var resolve = { type: function () { return "DRIVER"; }, title: function () { return "_ENTITY_._CREATE_DRIVER_TITLE_"; }, info: function () { return "_DRIVER_INFO_"; }, text: function () { return "_DRIVER_TEXT_"; }, }; var modalInstance = ModalService.openModal(controller, templateUrl, resolve, '', 'lg'); return modalInstance.result.then(function () { getAllDrivers(); vm.successMessage.text = '_DRIVER_CREATE_OK_'; }); } function deleteDriver(fileName) { return deleteDriverConfirm('lg', fileName); } function deleteDriverConfirm(size, fileName) { var controller = 'DeleteEntityModalCtrl'; var templateUrl = "templates/modal/entity-delete-modal.tpl.html"; var resolve = { item: function () { return fileName; }, type: function () { return "DRIVER"; }, title: function () { return "_ENTITY_._DELETE_DRIVER_TITLE_"; } }; var modalInstance = ModalService.openModal(controller, templateUrl, resolve, '', size); return modalInstance.result.then(function (fileName) { var index = UtilsService.getArrayElementPosition(vm.driversData, 'fileName', fileName); vm.driversData.splice(index, 1); vm.successMessage.text = '_DRIVER_DELETE_OK_'; }); } function sortDrivers(fieldName) { if (fieldName == vm.sortField) { vm.tableReverse = !vm.tableReverse; } else { vm.tableReverse = false; vm.sortField = fieldName; } } } })();
Stratio/Sparta
web/src/scripts/controllers/drivers-list.js
JavaScript
apache-2.0
3,460
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import React from 'react'; import { Link } from 'dva/router'; import Exception from '../../components/Exception'; export default () => ( <Exception type="500" style={{ minHeight: 500, height: '80%' }} linkElement={Link} /> );
ascrutae/sky-walking-ui
src/routes/Exception/500.js
JavaScript
apache-2.0
1,035
/* mustache.js — Logic-less templates in JavaScript See http://mustache.github.com/ for more info. */ var Mustache = function() { var Renderer = function() {}; Renderer.prototype = { otag: "{{", ctag: "}}", pragmas: {}, buffer: [], pragmas_implemented: { "IMPLICIT-ITERATOR": true, "TRANSLATION-HINT": true }, context: {}, render: function(template, context, partials, in_recursion) { // reset buffer & set context if(!in_recursion) { this.context = context; this.buffer = []; // TODO: make this non-lazy } // fail fast if(!this.includes("", template)) { if(in_recursion) { return template; } else { this.send(template); return; } } // Branching or moving down the partial stack, save any translation mode info. if (this.pragmas['TRANSLATION-HINT']) { context['_mode'] = this.pragmas['TRANSLATION-HINT']['mode']; } template = this.render_pragmas(template); template = this.render_i18n(template, context, partials); var html = this.render_section(template, context, partials); if (html === template) { if (in_recursion) { return this.render_tags(html, context, partials, true); } this.render_tags(html, context, partials, false); } else { if(in_recursion) { return html; } else { var lines = html.split("\n"); for (var i = 0; i < lines.length; i++) { this.send(lines[i]); } return; } } }, /* Sends parsed lines */ send: function(line) { if(line != "") { this.buffer.push(line); } }, /* Looks for %PRAGMAS */ render_pragmas: function(template) { // no pragmas if(!this.includes("%", template)) { return template; } var that = this; var regex = new RegExp(this.otag + "%([\\w-]+) ?([\\w]+=[\\w]+)?" + this.ctag); return template.replace(regex, function(match, pragma, options) { if(!that.pragmas_implemented[pragma]) { throw({message: "This implementation of mustache doesn't understand the '" + pragma + "' pragma"}); } that.pragmas[pragma] = {}; if(options) { var opts = options.split("="); that.pragmas[pragma][opts[0]] = opts[1]; } return ""; // ignore unknown pragmas silently }); }, /* Tries to find a partial in the curent scope and render it */ render_partial: function(name, context, partials) { name = this.trim(name); if(!partials || partials[name] === undefined) { throw({message: "unknown_partial '" + name + "'"}); } if(typeof(context[name]) != "object") { return this.render(partials[name], context, partials, true); } return this.render(partials[name], context[name], partials, true); }, render_i18n: function(html, context, partials) { if (html.indexOf(this.otag + "_i") == -1) { return html; } var that = this; var regex = new RegExp(this.otag + "\\_i" + this.ctag + "\\s*([\\s\\S]+?)" + this.otag + "\\/i" + this.ctag, "mg"); // for each {{_i}}{{/i}} section do... return html.replace(regex, function(match, content) { var translation_mode = undefined; if (that.pragmas && that.pragmas["TRANSLATION-HINT"] && that.pragmas["TRANSLATION-HINT"]['mode']) { translation_mode = { _mode: that.pragmas["TRANSLATION-HINT"]['mode'] }; } else if (context['_mode']) { translation_mode = { _mode: context['_mode'] }; } return that.render(_(content, translation_mode), context, partials, true); }); }, /* Renders inverted (^) and normal (#) sections */ render_section: function(template, context, partials) { if(!this.includes("#", template) && !this.includes("^", template)) { return template; } var that = this; // This regex matches _the first_ section ({{#foo}}{{/foo}}), and captures the remainder var regex = new RegExp( "^([\\s\\S]*?)" + // all the crap at the beginning that is not {{*}} ($1) this.otag + // {{ "(\\^|\\#)\\s*(.+)\\s*" + // #foo (# == $2, foo == $3) this.ctag + // }} "\n*([\\s\\S]*?)" + // between the tag ($2). leading newlines are dropped this.otag + // {{ "\\/\\s*\\3\\s*" + // /foo (backreference to the opening tag). this.ctag + // }} "\\s*([\\s\\S]*)$", // everything else in the string ($4). leading whitespace is dropped. "g"); // for each {{#foo}}{{/foo}} section do... return template.replace(regex, function(match, before, type, name, content, after) { // before contains only tags, no sections var renderedBefore = before ? that.render_tags(before, context, partials, true) : "", // after may contain both sections and tags, so use full rendering function renderedAfter = after ? that.render(after, context, partials, true) : ""; var value = that.find(name, context); if(type == "^") { // inverted section if(!value || that.is_array(value) && value.length === 0) { // false or empty list, render it return renderedBefore + that.render(content, context, partials, true) + renderedAfter; } else { return renderedBefore + "" + renderedAfter; } } else if(type == "#") { // normal section if(that.is_array(value)) { // Enumerable, Let's loop! return renderedBefore + that.map(value, function(row) { return that.render(content, that.create_context(row), partials, true); }).join("") + renderedAfter; } else if(that.is_object(value)) { // Object, Use it as subcontext! return renderedBefore + that.render(content, that.create_context(value), partials, true) + renderedAfter; } else if(typeof value === "function") { // higher order section return renderedBefore + value.call(context, content, function(text) { return that.render(text, context, partials, true); }) + renderedAfter; } else if(value) { // boolean section return renderedBefore + that.render(content, context, partials, true) + renderedAfter; } else { return renderedBefore + "" + renderedAfter; } } }); }, /* Replace {{foo}} and friends with values from our view */ render_tags: function(template, context, partials, in_recursion) { // tit for tat var that = this; var new_regex = function() { return new RegExp(that.otag + "(=|!|>|\\{|%)?([^\\/#\\^]+?)\\1?" + that.ctag + "+", "g"); }; var regex = new_regex(); var tag_replace_callback = function(match, operator, name) { switch(operator) { case "!": // ignore comments return ""; case "=": // set new delimiters, rebuild the replace regexp that.set_delimiters(name); regex = new_regex(); return ""; case ">": // render partial return that.render_partial(name, context, partials); case "{": // the triple mustache is unescaped return that.find(name, context); default: // escape the value return that.escape(that.find(name, context)); } }; var lines = template.split("\n"); for(var i = 0; i < lines.length; i++) { lines[i] = lines[i].replace(regex, tag_replace_callback, this); if(!in_recursion) { this.send(lines[i]); } } if(in_recursion) { return lines.join("\n"); } }, set_delimiters: function(delimiters) { var dels = delimiters.split(" "); this.otag = this.escape_regex(dels[0]); this.ctag = this.escape_regex(dels[1]); }, escape_regex: function(text) { // thank you Simon Willison if(!arguments.callee.sRE) { var specials = [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\' ]; arguments.callee.sRE = new RegExp( '(\\' + specials.join('|\\') + ')', 'g' ); } return text.replace(arguments.callee.sRE, '\\$1'); }, /* find `name` in current `context`. That is find me a value from the view object */ find: function(name, context) { name = this.trim(name); // Checks whether a value is thruthy or false or 0 function is_kinda_truthy(bool) { return bool === false || bool === 0 || bool; } var value; if(is_kinda_truthy(context[name])) { value = context[name]; } else if(is_kinda_truthy(this.context[name])) { value = this.context[name]; } if(typeof value === "function") { return value.apply(context); } if(value !== undefined) { return value; } // silently ignore unkown variables return ""; }, // Utility methods /* includes tag */ includes: function(needle, haystack) { return haystack.indexOf(this.otag + needle) != -1; }, /* Does away with nasty characters */ escape: function(s) { s = String(s === null ? "" : s); return s.replace(/&(?!\w+;)|["'<>\\]/g, function(s) { switch(s) { case "&": return "&amp;"; case "\\": return "\\\\"; case '"': return '&quot;'; case "'": return '&#39;'; case "<": return "&lt;"; case ">": return "&gt;"; default: return s; } }); }, // by @langalex, support for arrays of strings create_context: function(_context) { if(this.is_object(_context)) { return _context; } else { var iterator = "."; if(this.pragmas["IMPLICIT-ITERATOR"]) { iterator = this.pragmas["IMPLICIT-ITERATOR"].iterator; } var ctx = {}; ctx[iterator] = _context; return ctx; } }, is_object: function(a) { return a && typeof a == "object"; }, is_array: function(a) { return Object.prototype.toString.call(a) === '[object Array]'; }, /* Gets rid of leading and trailing whitespace */ trim: function(s) { return s.replace(/^\s*|\s*$/g, ""); }, /* Why, why, why? Because IE. Cry, cry cry. */ map: function(array, fn) { if (typeof array.map == "function") { return array.map(fn); } else { var r = []; var l = array.length; for(var i = 0; i < l; i++) { r.push(fn(array[i])); } return r; } } }; return({ name: "mustache.js", version: "0.3.1-dev-twitter", /* Turns a template and view into HTML */ to_html: function(template, view, partials, send_fun) { var renderer = new Renderer(); if(send_fun) { renderer.send = send_fun; } renderer.render(template, view || {}, partials); if(!send_fun) { return renderer.buffer.join("\n"); } } }); }();
EHJ-52n/js-sensorweb-client
src/main/js/libs/mustache.js
JavaScript
apache-2.0
11,529
'use strict'; import { module } from 'angular'; import _ from 'lodash'; import { AccountService, ExpectedArtifactService } from '@spinnaker/core'; import { KubernetesProviderSettings } from '../../../kubernetes.settings'; export const KUBERNETES_V1_CLUSTER_CONFIGURE_COMMANDBUILDER = 'spinnaker.kubernetes.clusterCommandBuilder.service'; export const name = KUBERNETES_V1_CLUSTER_CONFIGURE_COMMANDBUILDER; // for backwards compatibility module(KUBERNETES_V1_CLUSTER_CONFIGURE_COMMANDBUILDER, []).factory('kubernetesClusterCommandBuilder', function() { function attemptToSetValidAccount(application, defaultAccount, command) { return AccountService.listAccounts('kubernetes', 'v1').then(function(kubernetesAccounts) { const kubernetesAccountNames = _.map(kubernetesAccounts, 'name'); let firstKubernetesAccount = null; if (application.accounts.length) { firstKubernetesAccount = _.find(application.accounts, function(applicationAccount) { return kubernetesAccountNames.includes(applicationAccount); }); } else if (kubernetesAccountNames.length) { firstKubernetesAccount = kubernetesAccountNames[0]; } const defaultAccountIsValid = defaultAccount && kubernetesAccountNames.includes(defaultAccount); command.account = defaultAccountIsValid ? defaultAccount : firstKubernetesAccount ? firstKubernetesAccount : 'my-account-name'; }); } function applyHealthProviders(application, command) { command.interestingHealthProviderNames = ['KubernetesContainer', 'KubernetesPod']; } function buildNewClusterCommand(application, defaults = {}) { const defaultAccount = defaults.account || KubernetesProviderSettings.defaults.account; const command = { account: defaultAccount, application: application.name, strategy: '', targetSize: 1, cloudProvider: 'kubernetes', selectedProvider: 'kubernetes', namespace: 'default', containers: [], initContainers: [], volumeSources: [], buildImageId: buildImageId, groupByRegistry: groupByRegistry, terminationGracePeriodSeconds: 30, viewState: { mode: defaults.mode || 'create', disableStrategySelection: true, useAutoscaler: false, }, capacity: { min: 1, desired: 1, max: 1, }, scalingPolicy: { cpuUtilization: { target: 40, }, }, useSourceCapacity: false, deployment: { enabled: false, minReadySeconds: 0, deploymentStrategy: { type: 'RollingUpdate', rollingUpdate: { maxUnavailable: 1, maxSurge: 1, }, }, }, }; applyHealthProviders(application, command); attemptToSetValidAccount(application, defaultAccount, command); return command; } function buildClusterCommandFromExisting(application, existing, mode) { mode = mode || 'clone'; const command = _.cloneDeep(existing.deployDescription); command.groupByRegistry = groupByRegistry; command.cloudProvider = 'kubernetes'; command.selectedProvider = 'kubernetes'; command.account = existing.account; command.buildImageId = buildImageId; command.strategy = ''; command.containers.forEach(container => { container.imageDescription.imageId = buildImageId(container.imageDescription); }); command.initContainers.forEach(container => { container.imageDescription.imageId = buildImageId(container.imageDescription); }); command.viewState = { mode: mode, useAutoscaler: !!command.scalingPolicy, }; if (!command.capacity) { command.capacity = { min: command.targetSize, max: command.targetSize, desired: command.targetSize, }; } if (!_.has(command, 'scalingPolicy.cpuUtilization.target')) { command.scalingPolicy = { cpuUtilization: { target: 40 } }; } applyHealthProviders(application, command); return command; } function groupByRegistry(container) { if (container.imageDescription) { if (container.imageDescription.fromContext) { return 'Find Image Result(s)'; } else if (container.imageDescription.fromTrigger) { return 'Images from Trigger(s)'; } else if (container.imageDescription.fromArtifact) { return 'Images from Artifact(s)'; } else { return container.imageDescription.registry; } } } function buildImageId(image) { if (image.fromFindImage) { return `${image.cluster} ${image.pattern}`; } else if (image.fromBake) { return `${image.repository} (Baked during execution)`; } else if (image.fromTrigger && !image.tag) { return `${image.registry}/${image.repository} (Tag resolved at runtime)`; } else if (image.fromArtifact) { return `${image.name} (Artifact resolved at runtime)`; } else { if (image.registry) { return `${image.registry}/${image.repository}:${image.tag}`; } else { return `${image.repository}:${image.tag}`; } } } function reconcileUpstreamImages(containers, upstreamImages) { const getConfig = image => { if (image.fromContext) { return { match: other => other.fromContext && other.stageId === image.stageId, fieldsToCopy: matchImage => { const { cluster, pattern, repository } = matchImage; return { cluster, pattern, repository }; }, }; } else if (image.fromTrigger) { return { match: other => other.fromTrigger && other.registry === image.registry && other.repository === image.repository && other.tag === image.tag, fieldsToCopy: () => ({}), }; } else if (image.fromArtifact) { return { match: other => other.fromArtifact && other.stageId === image.stageId, fieldsToCopy: matchImage => { const { name } = matchImage; return { name }; }, }; } else { return { skipProcessing: true, }; } }; const result = []; containers.forEach(container => { const imageDescription = container.imageDescription; const imageConfig = getConfig(imageDescription); if (imageConfig.skipProcessing) { result.push(container); } else { const matchingImage = upstreamImages.find(imageConfig.match); if (matchingImage) { Object.assign(imageDescription, imageConfig.fieldsToCopy(matchingImage)); result.push(container); } } }); return result; } function findContextImages(current, all, visited = {}) { // This actually indicates a loop in the stage dependencies. if (visited[current.refId]) { return []; } else { visited[current.refId] = true; } let result = []; if (current.type === 'findImage') { result.push({ fromContext: true, fromFindImage: true, cluster: current.cluster, pattern: current.imageNamePattern, repository: current.name, stageId: current.refId, }); } else if (current.type === 'bake') { result.push({ fromContext: true, fromBake: true, repository: current.ami_name, organization: current.organization, stageId: current.refId, }); } current.requisiteStageRefIds.forEach(function(id) { const next = all.find(stage => stage.refId === id); if (next) { result = result.concat(findContextImages(next, all, visited)); } }); return result; } function findTriggerImages(triggers) { return triggers .filter(trigger => { return trigger.type === 'docker'; }) .map(trigger => { return { fromTrigger: true, repository: trigger.repository, account: trigger.account, organization: trigger.organization, registry: trigger.registry, tag: trigger.tag, }; }); } function findArtifactImages(currentStage, pipeline) { const artifactImages = ExpectedArtifactService.getExpectedArtifactsAvailableToStage(currentStage, pipeline) .filter(artifact => artifact.matchArtifact.type === 'docker/image') .map(artifact => ({ fromArtifact: true, artifactId: artifact.id, name: artifact.matchArtifact.name, })); return artifactImages; } function buildNewClusterCommandForPipeline(current, pipeline) { let contextImages = findContextImages(current, pipeline.stages) || []; contextImages = contextImages.concat(findTriggerImages(pipeline.triggers)); contextImages = contextImages.concat(findArtifactImages(current, pipeline)); return { strategy: '', viewState: { contextImages: contextImages, mode: 'editPipeline', submitButtonLabel: 'Done', requiresTemplateSelection: true, useAutoscaler: false, }, }; } function buildClusterCommandFromPipeline(app, originalCommand, current, pipeline) { const command = _.cloneDeep(originalCommand); let contextImages = findContextImages(current, pipeline.stages) || []; contextImages = contextImages.concat(findTriggerImages(pipeline.triggers)); contextImages = contextImages.concat(findArtifactImages(current, pipeline)); command.containers = reconcileUpstreamImages(command.containers, contextImages); command.containers.map(container => { container.imageDescription.imageId = buildImageId(container.imageDescription); }); command.groupByRegistry = groupByRegistry; command.buildImageId = buildImageId; command.strategy = command.strategy || ''; command.selectedProvider = 'kubernetes'; command.viewState = { mode: 'editPipeline', contextImages: contextImages, submitButtonLabel: 'Done', useAutoscaler: !!command.scalingPolicy, }; if (!_.has(command, 'scalingPolicy.cpuUtilization.target')) { command.scalingPolicy = { cpuUtilization: { target: 40 } }; } return command; } return { buildNewClusterCommand: buildNewClusterCommand, buildClusterCommandFromExisting: buildClusterCommandFromExisting, buildNewClusterCommandForPipeline: buildNewClusterCommandForPipeline, buildClusterCommandFromPipeline: buildClusterCommandFromPipeline, groupByRegistry: groupByRegistry, buildImageId: buildImageId, }; });
sgarlick987/deck
app/scripts/modules/kubernetes/src/v1/cluster/configure/CommandBuilder.js
JavaScript
apache-2.0
10,658
import { getGlobal } from '../src/prebidGlobal.js'; import { createBid } from '../src/bidfactory.js'; import { STATUS } from '../src/constants.json'; import { ajax } from '../src/ajax.js'; import * as utils from '../src/utils.js'; import { config } from '../src/config.js'; import { getHook } from '../src/hook.js'; const DEFAULT_CURRENCY_RATE_URL = 'https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$'; const CURRENCY_RATE_PRECISION = 4; var bidResponseQueue = []; var conversionCache = {}; var currencyRatesLoaded = false; var needToCallForCurrencyFile = true; var adServerCurrency = 'USD'; export var currencySupportEnabled = false; export var currencyRates = {}; var bidderCurrencyDefault = {}; var defaultRates; /** * Configuration function for currency * @param {string} [config.adServerCurrency = 'USD'] * ISO 4217 3-letter currency code that represents the target currency. (e.g. 'EUR'). If this value is present, * the currency conversion feature is activated. * @param {number} [config.granularityMultiplier = 1] * A decimal value representing how mcuh to scale the price granularity calculations. * @param {object} config.bidderCurrencyDefault * An optional argument to specify bid currencies for bid adapters. This option is provided for the transitional phase * before every bid adapter will specify its own bid currency. If the adapter specifies a bid currency, this value is * ignored for that bidder. * * example: * { * rubicon: 'USD' * } * @param {string} [config.conversionRateFile = 'URL pointing to conversion file'] * Optional path to a file containing currency conversion data. Prebid.org hosts a file that is used as the default, * if not specified. * @param {object} [config.rates] * This optional argument allows you to specify the rates with a JSON object, subverting the need for a external * config.conversionRateFile parameter. If this argument is specified, the conversion rate file will not be loaded. * * example: * { * 'GBP': { 'CNY': 8.8282, 'JPY': 141.7, 'USD': 1.2824 }, * 'USD': { 'CNY': 6.8842, 'GBP': 0.7798, 'JPY': 110.49 } * } * @param {object} [config.defaultRates] * This optional currency rates definition follows the same format as config.rates, however it is only utilized if * there is an error loading the config.conversionRateFile. */ export function setConfig(config) { let url = DEFAULT_CURRENCY_RATE_URL; if (typeof config.rates === 'object') { currencyRates.conversions = config.rates; currencyRatesLoaded = true; needToCallForCurrencyFile = false; // don't call if rates are already specified } if (typeof config.defaultRates === 'object') { defaultRates = config.defaultRates; // set up the default rates to be used if the rate file doesn't get loaded in time currencyRates.conversions = defaultRates; currencyRatesLoaded = true; } if (typeof config.adServerCurrency === 'string') { utils.logInfo('enabling currency support', arguments); adServerCurrency = config.adServerCurrency; if (config.conversionRateFile) { utils.logInfo('currency using override conversionRateFile:', config.conversionRateFile); url = config.conversionRateFile; } // see if the url contains a date macro // this is a workaround to the fact that jsdelivr doesn't currently support setting a 24-hour HTTP cache header // So this is an approach to let the browser cache a copy of the file each day // We should remove the macro once the CDN support a day-level HTTP cache setting const macroLocation = url.indexOf('$$TODAY$$'); if (macroLocation !== -1) { // get the date to resolve the macro const d = new Date(); let month = `${d.getMonth() + 1}`; let day = `${d.getDate()}`; if (month.length < 2) month = `0${month}`; if (day.length < 2) day = `0${day}`; const todaysDate = `${d.getFullYear()}${month}${day}`; // replace $$TODAY$$ with todaysDate url = `${url.substring(0, macroLocation)}${todaysDate}${url.substring(macroLocation + 9, url.length)}`; } initCurrency(url); } else { // currency support is disabled, setting defaults utils.logInfo('disabling currency support'); resetCurrency(); } if (typeof config.bidderCurrencyDefault === 'object') { bidderCurrencyDefault = config.bidderCurrencyDefault; } } config.getConfig('currency', config => setConfig(config.currency)); function errorSettingsRates(msg) { if (defaultRates) { utils.logWarn(msg); utils.logWarn('Currency failed loading rates, falling back to currency.defaultRates'); } else { utils.logError(msg); } } function initCurrency(url) { conversionCache = {}; currencySupportEnabled = true; utils.logInfo('Installing addBidResponse decorator for currency module', arguments); // Adding conversion function to prebid global for external module and on page use getGlobal().convertCurrency = (cpm, fromCurrency, toCurrency) => parseFloat(cpm) * getCurrencyConversion(fromCurrency, toCurrency); getHook('addBidResponse').before(addBidResponseHook, 100); // call for the file if we haven't already if (needToCallForCurrencyFile) { needToCallForCurrencyFile = false; ajax(url, { success: function (response) { try { currencyRates = JSON.parse(response); utils.logInfo('currencyRates set to ' + JSON.stringify(currencyRates)); currencyRatesLoaded = true; processBidResponseQueue(); } catch (e) { errorSettingsRates('Failed to parse currencyRates response: ' + response); } }, error: errorSettingsRates } ); } } function resetCurrency() { utils.logInfo('Uninstalling addBidResponse decorator for currency module', arguments); getHook('addBidResponse').getHooks({hook: addBidResponseHook}).remove(); delete getGlobal().convertCurrency; adServerCurrency = 'USD'; conversionCache = {}; currencySupportEnabled = false; currencyRatesLoaded = false; needToCallForCurrencyFile = true; currencyRates = {}; bidderCurrencyDefault = {}; } export function addBidResponseHook(fn, adUnitCode, bid) { if (!bid) { return fn.call(this, adUnitCode); // if no bid, call original and let it display warnings } let bidder = bid.bidderCode || bid.bidder; if (bidderCurrencyDefault[bidder]) { let currencyDefault = bidderCurrencyDefault[bidder]; if (bid.currency && currencyDefault !== bid.currency) { utils.logWarn(`Currency default '${bidder}: ${currencyDefault}' ignored. adapter specified '${bid.currency}'`); } else { bid.currency = currencyDefault; } } // default to USD if currency not set if (!bid.currency) { utils.logWarn('Currency not specified on bid. Defaulted to "USD"'); bid.currency = 'USD'; } // used for analytics bid.getCpmInNewCurrency = function(toCurrency) { return (parseFloat(this.cpm) * getCurrencyConversion(this.currency, toCurrency)).toFixed(3); }; // execute immediately if the bid is already in the desired currency if (bid.currency === adServerCurrency) { return fn.call(this, adUnitCode, bid); } bidResponseQueue.push(wrapFunction(fn, this, [adUnitCode, bid])); if (!currencySupportEnabled || currencyRatesLoaded) { processBidResponseQueue(); } } function processBidResponseQueue() { while (bidResponseQueue.length > 0) { (bidResponseQueue.shift())(); } } function wrapFunction(fn, context, params) { return function() { let bid = params[1]; if (bid !== undefined && 'currency' in bid && 'cpm' in bid) { let fromCurrency = bid.currency; try { let conversion = getCurrencyConversion(fromCurrency); if (conversion !== 1) { bid.cpm = (parseFloat(bid.cpm) * conversion).toFixed(4); bid.currency = adServerCurrency; } } catch (e) { utils.logWarn('Returning NO_BID, getCurrencyConversion threw error: ', e); params[1] = createBid(STATUS.NO_BID, { bidder: bid.bidderCode || bid.bidder, bidId: bid.requestId }); } } return fn.apply(context, params); }; } function getCurrencyConversion(fromCurrency, toCurrency = adServerCurrency) { var conversionRate = null; var rates; let cacheKey = `${fromCurrency}->${toCurrency}`; if (cacheKey in conversionCache) { conversionRate = conversionCache[cacheKey]; utils.logMessage('Using conversionCache value ' + conversionRate + ' for ' + cacheKey); } else if (currencySupportEnabled === false) { if (fromCurrency === 'USD') { conversionRate = 1; } else { throw new Error('Prebid currency support has not been enabled and fromCurrency is not USD'); } } else if (fromCurrency === toCurrency) { conversionRate = 1; } else { if (fromCurrency in currencyRates.conversions) { // using direct conversion rate from fromCurrency to toCurrency rates = currencyRates.conversions[fromCurrency]; if (!(toCurrency in rates)) { // bid should fail, currency is not supported throw new Error('Specified adServerCurrency in config \'' + toCurrency + '\' not found in the currency rates file'); } conversionRate = rates[toCurrency]; utils.logInfo('getCurrencyConversion using direct ' + fromCurrency + ' to ' + toCurrency + ' conversionRate ' + conversionRate); } else if (toCurrency in currencyRates.conversions) { // using reciprocal of conversion rate from toCurrency to fromCurrency rates = currencyRates.conversions[toCurrency]; if (!(fromCurrency in rates)) { // bid should fail, currency is not supported throw new Error('Specified fromCurrency \'' + fromCurrency + '\' not found in the currency rates file'); } conversionRate = roundFloat(1 / rates[fromCurrency], CURRENCY_RATE_PRECISION); utils.logInfo('getCurrencyConversion using reciprocal ' + fromCurrency + ' to ' + toCurrency + ' conversionRate ' + conversionRate); } else { // first defined currency base used as intermediary var anyBaseCurrency = Object.keys(currencyRates.conversions)[0]; if (!(fromCurrency in currencyRates.conversions[anyBaseCurrency])) { // bid should fail, currency is not supported throw new Error('Specified fromCurrency \'' + fromCurrency + '\' not found in the currency rates file'); } var toIntermediateConversionRate = 1 / currencyRates.conversions[anyBaseCurrency][fromCurrency]; if (!(toCurrency in currencyRates.conversions[anyBaseCurrency])) { // bid should fail, currency is not supported throw new Error('Specified adServerCurrency in config \'' + toCurrency + '\' not found in the currency rates file'); } var fromIntermediateConversionRate = currencyRates.conversions[anyBaseCurrency][toCurrency]; conversionRate = roundFloat(toIntermediateConversionRate * fromIntermediateConversionRate, CURRENCY_RATE_PRECISION); utils.logInfo('getCurrencyConversion using intermediate ' + fromCurrency + ' thru ' + anyBaseCurrency + ' to ' + toCurrency + ' conversionRate ' + conversionRate); } } if (!(cacheKey in conversionCache)) { utils.logMessage('Adding conversionCache value ' + conversionRate + ' for ' + cacheKey); conversionCache[cacheKey] = conversionRate; } return conversionRate; } function roundFloat(num, dec) { var d = 1; for (let i = 0; i < dec; i++) { d += '0'; } return Math.round(num * d) / d; }
mcallari/Prebid.js
modules/currency.js
JavaScript
apache-2.0
11,629
import app from 'common/electron/app'; import path from 'path'; /** * @return the theme's css path */ function getThemePath (name) { return path.join(app.getAppPath(), 'themes', name + '.css'); } /** * @return the style's css path */ function getStylePath (name) { return path.join(app.getAppPath(), 'styles', name + '.css'); } /** * @return the image's path */ function getImagePath (name) { return path.join(app.getAppPath(), 'images', name); } /** * Windows only. * @return the directory where the app is ran from */ function getCustomUserDataPath () { return path.join(path.dirname(app.getPath('exe')), 'data'); } /** * Windows only. * @return the path to Update.exe created by Squirrel.Windows */ function getSquirrelUpdateExePath () { return path.join(path.dirname(app.getPath('exe')), '..', 'Update.exe'); } export default { getThemePath, getStylePath, getImagePath, getCustomUserDataPath, getSquirrelUpdateExePath };
rafael-neri/whatsapp-webapp
src/scripts/common/utils/file-paths.js
JavaScript
apache-2.0
963
/* * Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: * Maintained By: */ //= require can.jquery-all //= require models/cacheable (function(ns, can) { can.Model.Cacheable("CMS.Models.Document", { root_object : "document" , root_collection : "documents" , findAll : "GET /api/documents" , create : function(params) { var _params = { document : { title : params.document.title , description : params.document.description , link : params.document.link } }; return $.ajax({ type : "POST" , "url" : "/api/documents" , dataType : "json" , data : _params }); } , search : function(request, response) { return $.ajax({ type : "get" , url : "/api/documents" , dataType : "json" , data : {s : request.term} , success : function(data) { response($.map( data, function( item ) { return can.extend({}, item.document, { label: item.document.title ? item.document.title + (item.document.link_url ? " (" + item.document.link_url + ")" : "") : item.document.link_url , value: item.document.id }); })); } }); } }, { init : function () { this._super && this._super(); // this.bind("change", function(ev, attr, how, newVal, oldVal) { // var obj; // if(obj = CMS.Models.ObjectDocument.findInCacheById(this.id) && attr !== "id") { // obj.attr(attr, newVal); // } // }); var that = this; this.each(function(value, name) { if (value === null) that.attr(name, undefined); }); } }); can.Model.Cacheable("CMS.Models.ObjectDocument", { root_object : "object_document" , root_collection : "object_documents" , findAll: "GET /api/object_documents" , create: "POST /api/object_documents" , destroy : "DELETE /api/object_documents/{id}" }, { init : function() { var _super = this._super; function reinit() { var that = this; typeof _super === "function" && _super.call(this); this.attr("document", CMS.Models.get_instance( "Document", this.document_id || (this.document && this.document.id))); this.attr("documentable", CMS.Models.get_instance( this.documentable_type || (this.documentable && this.documentable.type), this.documentable_id || (this.documentable && this.documentable.id))); /*this.attr( "document" , CMS.Models.Document.findInCacheById(this.document_id) || new CMS.Models.Document(this.document && this.document.serialize ? this.document.serialize() : this.document)); */ this.each(function(value, name) { if (value === null) that.removeAttr(name); }); } this.bind("created", can.proxy(reinit, this)); reinit.call(this); } }); })(this, can);
hamyuan/ggrc-self-test
src/ggrc/assets/javascripts/pbc/document.js
JavaScript
apache-2.0
3,489
/*! * commander * Copyright(c) 2011 TJ Holowaychuk <[email protected]> * MIT Licensed */ /** * Module dependencies. */ var EventEmitter = require('events').EventEmitter , spawn = require('child_process').spawn , keypress = require('keypress') , fs = require('fs') , exists = fs.existsSync , path = require('path') , tty = require('tty') , dirname = path.dirname , basename = path.basename; /** * Expose the root command. */ exports = module.exports = new Command; /** * Expose `Command`. */ exports.Command = Command; /** * Expose `Option`. */ exports.Option = Option; /** * Initialize a new `Option` with the given `flags` and `description`. * * @param {String} flags * @param {String} description * @api public */ function Option(flags, description) { this.flags = flags; this.required = ~flags.indexOf('<'); this.optional = ~flags.indexOf('['); this.bool = !~flags.indexOf('-no-'); flags = flags.split(/[ ,|]+/); if (flags.length > 1 && !/^[[<]/.test(flags[1])) this.short = flags.shift(); this.long = flags.shift(); this.description = description || ''; } /** * Return option name. * * @return {String} * @api private */ Option.prototype.name = function(){ return this.long .replace('--', '') .replace('no-', ''); }; /** * Check if `arg` matches the short or long flag. * * @param {String} arg * @return {Boolean} * @api private */ Option.prototype.is = function(arg){ return arg == this.short || arg == this.long; }; /** * Initialize a new `Command`. * * @param {String} name * @api public */ function Command(name) { this.commands = []; this.options = []; this._args = []; this._name = name; } /** * Inherit from `EventEmitter.prototype`. */ Command.prototype.__proto__ = EventEmitter.prototype; /** * Add command `name`. * * The `.action()` callback is invoked when the * command `name` is specified via __ARGV__, * and the remaining arguments are applied to the * function for access. * * When the `name` is "*" an un-matched command * will be passed as the first arg, followed by * the rest of __ARGV__ remaining. * * Examples: * * program * .version('0.0.1') * .option('-C, --chdir <path>', 'change the working directory') * .option('-c, --config <path>', 'set config path. defaults to ./deploy.conf') * .option('-T, --no-tests', 'ignore test hook') * * program * .command('setup') * .description('run remote setup commands') * .action(function(){ * console.log('setup'); * }); * * program * .command('exec <cmd>') * .description('run the given remote command') * .action(function(cmd){ * console.log('exec "%s"', cmd); * }); * * program * .command('*') * .description('deploy the given env') * .action(function(env){ * console.log('deploying "%s"', env); * }); * * program.parse(process.argv); * * @param {String} name * @param {String} [desc] * @return {Command} the new command * @api public */ Command.prototype.command = function(name, desc){ var args = name.split(/ +/); var cmd = new Command(args.shift()); if (desc) cmd.description(desc); if (desc) this.executables = true; this.commands.push(cmd); cmd.parseExpectedArgs(args); cmd.parent = this; if (desc) return this; return cmd; }; /** * Add an implicit `help [cmd]` subcommand * which invokes `--help` for the given command. * * @api private */ Command.prototype.addImplicitHelpCommand = function() { this.command('help [cmd]', 'display help for [cmd]'); }; /** * Parse expected `args`. * * For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`. * * @param {Array} args * @return {Command} for chaining * @api public */ Command.prototype.parseExpectedArgs = function(args){ if (!args.length) return; var self = this; args.forEach(function(arg){ switch (arg[0]) { case '<': self._args.push({ required: true, name: arg.slice(1, -1) }); break; case '[': self._args.push({ required: false, name: arg.slice(1, -1) }); break; } }); return this; }; /** * Register callback `fn` for the command. * * Examples: * * program * .command('help') * .description('display verbose help') * .action(function(){ * // output help here * }); * * @param {Function} fn * @return {Command} for chaining * @api public */ Command.prototype.action = function(fn){ var self = this; this.parent.on(this._name, function(args, unknown){ // Parse any so-far unknown options unknown = unknown || []; var parsed = self.parseOptions(unknown); // Output help if necessary outputHelpIfNecessary(self, parsed.unknown); // If there are still any unknown options, then we simply // die, unless someone asked for help, in which case we give it // to them, and then we die. if (parsed.unknown.length > 0) { self.unknownOption(parsed.unknown[0]); } // Leftover arguments need to be pushed back. Fixes issue #56 if (parsed.args.length) args = parsed.args.concat(args); self._args.forEach(function(arg, i){ if (arg.required && null == args[i]) { self.missingArgument(arg.name); } }); // Always append ourselves to the end of the arguments, // to make sure we match the number of arguments the user // expects if (self._args.length) { args[self._args.length] = self; } else { args.push(self); } fn.apply(this, args); }); return this; }; /** * Define option with `flags`, `description` and optional * coercion `fn`. * * The `flags` string should contain both the short and long flags, * separated by comma, a pipe or space. The following are all valid * all will output this way when `--help` is used. * * "-p, --pepper" * "-p|--pepper" * "-p --pepper" * * Examples: * * // simple boolean defaulting to false * program.option('-p, --pepper', 'add pepper'); * * --pepper * program.pepper * // => Boolean * * // simple boolean defaulting to false * program.option('-C, --no-cheese', 'remove cheese'); * * program.cheese * // => true * * --no-cheese * program.cheese * // => true * * // required argument * program.option('-C, --chdir <path>', 'change the working directory'); * * --chdir /tmp * program.chdir * // => "/tmp" * * // optional argument * program.option('-c, --cheese [type]', 'add cheese [marble]'); * * @param {String} flags * @param {String} description * @param {Function|Mixed} fn or default * @param {Mixed} defaultValue * @return {Command} for chaining * @api public */ Command.prototype.option = function(flags, description, fn, defaultValue){ var self = this , option = new Option(flags, description) , oname = option.name() , name = camelcase(oname); // default as 3rd arg if ('function' != typeof fn) defaultValue = fn, fn = null; // preassign default value only for --no-*, [optional], or <required> if (false == option.bool || option.optional || option.required) { // when --no-* we make sure default is true if (false == option.bool) defaultValue = true; // preassign only if we have a default if (undefined !== defaultValue) self[name] = defaultValue; } // register the option this.options.push(option); // when it's passed assign the value // and conditionally invoke the callback this.on(oname, function(val){ // coercion if (null != val && fn) val = fn(val); // unassigned or bool if ('boolean' == typeof self[name] || 'undefined' == typeof self[name]) { // if no value, bool true, and we have a default, then use it! if (null == val) { self[name] = option.bool ? defaultValue || true : false; } else { self[name] = val; } } else if (null !== val) { // reassign self[name] = val; } }); return this; }; /** * Parse `argv`, settings options and invoking commands when defined. * * @param {Array} argv * @return {Command} for chaining * @api public */ Command.prototype.parse = function(argv){ // implicit help if (this.executables) this.addImplicitHelpCommand(); // store raw args this.rawArgs = argv; // guess name this._name = this._name || basename(argv[1]); // process argv var parsed = this.parseOptions(this.normalize(argv.slice(2))); var args = this.args = parsed.args; var result = this.parseArgs(this.args, parsed.unknown); // executable sub-commands, skip .parseArgs() if (this.executables) return this.executeSubCommand(argv, args, parsed.unknown); return result; }; /** * Execute a sub-command executable. * * @param {Array} argv * @param {Array} args * @param {Array} unknown * @api private */ Command.prototype.executeSubCommand = function(argv, args, unknown) { args = args.concat(unknown); if (!args.length) this.help(); if ('help' == args[0] && 1 == args.length) this.help(); // <cmd> --help if ('help' == args[0]) { args[0] = args[1]; args[1] = '--help'; } // executable var dir = dirname(argv[1]); var bin = basename(argv[1]) + '-' + args[0]; // check for ./<bin> first var local = path.join(dir, bin); // run it args = args.slice(1); var proc = spawn(local, args, { stdio: 'inherit', customFds: [0, 1, 2] }); proc.on('error', function(err){ if (err.code == "ENOENT") { console.error('\n %s(1) does not exist, try --help\n', bin); } else if (err.code == "EACCES") { console.error('\n %s(1) not executable. try chmod or run with root\n', bin); } }); this.runningCommand = proc; }; /** * Normalize `args`, splitting joined short flags. For example * the arg "-abc" is equivalent to "-a -b -c". * This also normalizes equal sign and splits "--abc=def" into "--abc def". * * @param {Array} args * @return {Array} * @api private */ Command.prototype.normalize = function(args){ var ret = [] , arg , index; for (var i = 0, len = args.length; i < len; ++i) { arg = args[i]; if (arg.length > 1 && '-' == arg[0] && '-' != arg[1]) { arg.slice(1).split('').forEach(function(c){ ret.push('-' + c); }); } else if (/^--/.test(arg) && ~(index = arg.indexOf('='))) { ret.push(arg.slice(0, index), arg.slice(index + 1)); } else { ret.push(arg); } } return ret; }; /** * Parse command `args`. * * When listener(s) are available those * callbacks are invoked, otherwise the "*" * event is emitted and those actions are invoked. * * @param {Array} args * @return {Command} for chaining * @api private */ Command.prototype.parseArgs = function(args, unknown){ var cmds = this.commands , len = cmds.length , name; if (args.length) { name = args[0]; if (this.listeners(name).length) { this.emit(args.shift(), args, unknown); } else { this.emit('*', args); } } else { outputHelpIfNecessary(this, unknown); // If there were no args and we have unknown options, // then they are extraneous and we need to error. if (unknown.length > 0) { this.unknownOption(unknown[0]); } } return this; }; /** * Return an option matching `arg` if any. * * @param {String} arg * @return {Option} * @api private */ Command.prototype.optionFor = function(arg){ for (var i = 0, len = this.options.length; i < len; ++i) { if (this.options[i].is(arg)) { return this.options[i]; } } }; /** * Parse options from `argv` returning `argv` * void of these options. * * @param {Array} argv * @return {Array} * @api public */ Command.prototype.parseOptions = function(argv){ var args = [] , len = argv.length , literal , option , arg; var unknownOptions = []; // parse options for (var i = 0; i < len; ++i) { arg = argv[i]; // literal args after -- if ('--' == arg) { literal = true; continue; } if (literal) { args.push(arg); continue; } // find matching Option option = this.optionFor(arg); // option is defined if (option) { // requires arg if (option.required) { arg = argv[++i]; if (null == arg) return this.optionMissingArgument(option); if ('-' == arg[0] && '-' != arg) return this.optionMissingArgument(option, arg); this.emit(option.name(), arg); // optional arg } else if (option.optional) { arg = argv[i+1]; if (null == arg || ('-' == arg[0] && '-' != arg)) { arg = null; } else { ++i; } this.emit(option.name(), arg); // bool } else { this.emit(option.name()); } continue; } // looks like an option if (arg.length > 1 && '-' == arg[0]) { unknownOptions.push(arg); // If the next argument looks like it might be // an argument for this option, we pass it on. // If it isn't, then it'll simply be ignored if (argv[i+1] && '-' != argv[i+1][0]) { unknownOptions.push(argv[++i]); } continue; } // arg args.push(arg); } return { args: args, unknown: unknownOptions }; }; /** * Argument `name` is missing. * * @param {String} name * @api private */ Command.prototype.missingArgument = function(name){ console.error(); console.error(" error: missing required argument `%s'", name); console.error(); process.exit(1); }; /** * `Option` is missing an argument, but received `flag` or nothing. * * @param {String} option * @param {String} flag * @api private */ Command.prototype.optionMissingArgument = function(option, flag){ console.error(); if (flag) { console.error(" error: option `%s' argument missing, got `%s'", option.flags, flag); } else { console.error(" error: option `%s' argument missing", option.flags); } console.error(); process.exit(1); }; /** * Unknown option `flag`. * * @param {String} flag * @api private */ Command.prototype.unknownOption = function(flag){ console.error(); console.error(" error: unknown option `%s'", flag); console.error(); process.exit(1); }; /** * Set the program version to `str`. * * This method auto-registers the "-V, --version" flag * which will print the version number when passed. * * @param {String} str * @param {String} flags * @return {Command} for chaining * @api public */ Command.prototype.version = function(str, flags){ if (0 == arguments.length) return this._version; this._version = str; flags = flags || '-V, --version'; this.option(flags, 'output the version number'); this.on('version', function(){ console.log(str); process.exit(0); }); return this; }; /** * Set the description `str`. * * @param {String} str * @return {String|Command} * @api public */ Command.prototype.description = function(str){ if (0 == arguments.length) return this._description; this._description = str; return this; }; /** * Set / get the command usage `str`. * * @param {String} str * @return {String|Command} * @api public */ Command.prototype.usage = function(str){ var args = this._args.map(function(arg){ return arg.required ? '<' + arg.name + '>' : '[' + arg.name + ']'; }); var usage = '[options' + (this.commands.length ? '] [command' : '') + ']' + (this._args.length ? ' ' + args : ''); if (0 == arguments.length) return this._usage || usage; this._usage = str; return this; }; /** * Return the largest option length. * * @return {Number} * @api private */ Command.prototype.largestOptionLength = function(){ return this.options.reduce(function(max, option){ return Math.max(max, option.flags.length); }, 0); }; /** * Return help for options. * * @return {String} * @api private */ Command.prototype.optionHelp = function(){ var width = this.largestOptionLength(); // Prepend the help information return [pad('-h, --help', width) + ' ' + 'output usage information'] .concat(this.options.map(function(option){ return pad(option.flags, width) + ' ' + option.description; })) .join('\n'); }; /** * Return command help documentation. * * @return {String} * @api private */ Command.prototype.commandHelp = function(){ if (!this.commands.length) return ''; return [ '' , ' Commands:' , '' , this.commands.map(function(cmd){ var args = cmd._args.map(function(arg){ return arg.required ? '<' + arg.name + '>' : '[' + arg.name + ']'; }).join(' '); return pad(cmd._name + (cmd.options.length ? ' [options]' : '') + ' ' + args, 22) + (cmd.description() ? ' ' + cmd.description() : ''); }).join('\n').replace(/^/gm, ' ') , '' ].join('\n'); }; /** * Return program help documentation. * * @return {String} * @api private */ Command.prototype.helpInformation = function(){ return [ '' , ' Usage: ' + this._name + ' ' + this.usage() , '' + this.commandHelp() , ' Options:' , '' , '' + this.optionHelp().replace(/^/gm, ' ') , '' , '' ].join('\n'); }; /** * Prompt for a `Number`. * * @param {String} str * @param {Function} fn * @api private */ Command.prototype.promptForNumber = function(str, fn){ var self = this; this.promptSingleLine(str, function parseNumber(val){ val = Number(val); if (isNaN(val)) return self.promptSingleLine(str + '(must be a number) ', parseNumber); fn(val); }); }; /** * Prompt for a `Date`. * * @param {String} str * @param {Function} fn * @api private */ Command.prototype.promptForDate = function(str, fn){ var self = this; this.promptSingleLine(str, function parseDate(val){ val = new Date(val); if (isNaN(val.getTime())) return self.promptSingleLine(str + '(must be a date) ', parseDate); fn(val); }); }; /** * Prompt for a `Regular Expression`. * * @param {String} str * @param {Object} pattern regular expression object to test * @param {Function} fn * @api private */ Command.prototype.promptForRegexp = function(str, pattern, fn){ var self = this; this.promptSingleLine(str, function parseRegexp(val){ if(!pattern.test(val)) return self.promptSingleLine(str + '(regular expression mismatch) ', parseRegexp); fn(val); }); }; /** * Single-line prompt. * * @param {String} str * @param {Function} fn * @api private */ Command.prototype.promptSingleLine = function(str, fn){ // determine if the 2nd argument is a regular expression if (arguments[1].global !== undefined && arguments[1].multiline !== undefined) { return this.promptForRegexp(str, arguments[1], arguments[2]); } else if ('function' == typeof arguments[2]) { return this['promptFor' + (fn.name || fn)](str, arguments[2]); } process.stdout.write(str); process.stdin.setEncoding('utf8'); process.stdin.once('data', function(val){ fn(val.trim()); }).resume(); }; /** * Multi-line prompt. * * @param {String} str * @param {Function} fn * @api private */ Command.prototype.promptMultiLine = function(str, fn){ var buf = []; console.log(str); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(val){ if ('\n' == val || '\r\n' == val) { process.stdin.removeAllListeners('data'); fn(buf.join('\n')); } else { buf.push(val.trimRight()); } }).resume(); }; /** * Prompt `str` and callback `fn(val)` * * Commander supports single-line and multi-line prompts. * To issue a single-line prompt simply add white-space * to the end of `str`, something like "name: ", whereas * for a multi-line prompt omit this "description:". * * * Examples: * * program.prompt('Username: ', function(name){ * console.log('hi %s', name); * }); * * program.prompt('Description:', function(desc){ * console.log('description was "%s"', desc.trim()); * }); * * @param {String|Object} str * @param {Function} fn * @api public */ Command.prototype.prompt = function(str, fn){ var self = this; if ('string' == typeof str) { if (/ $/.test(str)) return this.promptSingleLine.apply(this, arguments); this.promptMultiLine(str, fn); } else { var keys = Object.keys(str) , obj = {}; function next() { var key = keys.shift() , label = str[key]; if (!key) return fn(obj); self.prompt(label, function(val){ obj[key] = val; next(); }); } next(); } }; /** * Prompt for password with `str`, `mask` char and callback `fn(val)`. * * The mask string defaults to '', aka no output is * written while typing, you may want to use "*" etc. * * Examples: * * program.password('Password: ', function(pass){ * console.log('got "%s"', pass); * process.stdin.destroy(); * }); * * program.password('Password: ', '*', function(pass){ * console.log('got "%s"', pass); * process.stdin.destroy(); * }); * * @param {String} str * @param {String} mask * @param {Function} fn * @api public */ Command.prototype.password = function(str, mask, fn){ var self = this , buf = ''; // default mask if ('function' == typeof mask) { fn = mask; mask = ''; } keypress(process.stdin); function setRawMode(mode) { if (process.stdin.setRawMode) { process.stdin.setRawMode(mode); } else { tty.setRawMode(mode); } }; setRawMode(true); process.stdout.write(str); // keypress process.stdin.on('keypress', function(c, key){ if (key && 'enter' == key.name) { console.log(); process.stdin.pause(); process.stdin.removeAllListeners('keypress'); setRawMode(false); if (!buf.trim().length) return self.password(str, mask, fn); fn(buf); return; } if (key && key.ctrl && 'c' == key.name) { console.log('%s', buf); process.exit(); } process.stdout.write(mask); buf += c; }).resume(); }; /** * Confirmation prompt with `str` and callback `fn(bool)` * * Examples: * * program.confirm('continue? ', function(ok){ * console.log(' got %j', ok); * process.stdin.destroy(); * }); * * @param {String} str * @param {Function} fn * @api public */ Command.prototype.confirm = function(str, fn, verbose){ var self = this; this.prompt(str, function(ok){ if (!ok.trim()) { if (!verbose) str += '(yes or no) '; return self.confirm(str, fn, true); } fn(parseBool(ok)); }); }; /** * Choice prompt with `list` of items and callback `fn(index, item)` * * Examples: * * var list = ['tobi', 'loki', 'jane', 'manny', 'luna']; * * console.log('Choose the coolest pet:'); * program.choose(list, function(i){ * console.log('you chose %d "%s"', i, list[i]); * process.stdin.destroy(); * }); * * @param {Array} list * @param {Number|Function} index or fn * @param {Function} fn * @api public */ Command.prototype.choose = function(list, index, fn){ var self = this , hasDefault = 'number' == typeof index; if (!hasDefault) { fn = index; index = null; } list.forEach(function(item, i){ if (hasDefault && i == index) { console.log('* %d) %s', i + 1, item); } else { console.log(' %d) %s', i + 1, item); } }); function again() { self.prompt(' : ', function(val){ val = parseInt(val, 10) - 1; if (hasDefault && isNaN(val)) val = index; if (null == list[val]) { again(); } else { fn(val, list[val]); } }); } again(); }; /** * Output help information for this command * * @api public */ Command.prototype.outputHelp = function(){ process.stdout.write(this.helpInformation()); this.emit('--help'); }; /** * Output help information and exit. * * @api public */ Command.prototype.help = function(){ this.outputHelp(); process.exit(); }; /** * Camel-case the given `flag` * * @param {String} flag * @return {String} * @api private */ function camelcase(flag) { return flag.split('-').reduce(function(str, word){ return str + word[0].toUpperCase() + word.slice(1); }); } /** * Parse a boolean `str`. * * @param {String} str * @return {Boolean} * @api private */ function parseBool(str) { return /^y|yes|ok|true$/i.test(str); } /** * Pad `str` to `width`. * * @param {String} str * @param {Number} width * @return {String} * @api private */ function pad(str, width) { var len = Math.max(0, width - str.length); return str + Array(len + 1).join(' '); } /** * Output help information if necessary * * @param {Command} command to output help for * @param {Array} array of options to search for -h or --help * @api private */ function outputHelpIfNecessary(cmd, options) { options = options || []; for (var i = 0; i < options.length; i++) { if (options[i] == '--help' || options[i] == '-h') { cmd.outputHelp(); process.exit(0); } } }
nickperez1285/truck-hunt-hackathon
server/node_modules/winser/node_modules/commander/index.js
JavaScript
apache-2.0
25,491
if(typeof(Control)=='undefined') Control={}; Control.TextArea=Class.create(); Object.extend(Control.TextArea.prototype,{ onChangeTimeoutLength:500, element:false, onChangeTimeout:false, initialize:function(textarea){ this.element=$(textarea); $(this.element).observe('keyup',this.doOnChange.bindAsEventListener(this)); $(this.element).observe('paste',this.doOnChange.bindAsEventListener(this)); $(this.element).observe('input',this.doOnChange.bindAsEventListener(this)); }, doOnChange:function(event){ if(this.onChangeTimeout) window.clearTimeout(this.onChangeTimeout); this.onChangeTimeout=window.setTimeout(function(){ if(this.notify) this.notify('change',this.getValue()); }.bind(this),this.onChangeTimeoutLength); }, getValue:function(){ return this.element.value; }, getSelection:function(){ if(!!document.selection) return document.selection.createRange().text; else if(!!this.element.setSelectionRange) return this.element.value.substring(this.element.selectionStart,this.element.selectionEnd); else return false; }, replaceSelection:function(text){ var scrollTop=this.element.scrollTop; if(!!document.selection){ this.element.focus(); var old=document.selection.createRange().text; var range=document.selection.createRange(); range.text=text; range-=old.length-text.length; }else if(!!this.element.setSelectionRange){ var selection_start=this.element.selectionStart; this.element.value=this.element.value.substring(0,selection_start)+text+this.element.value.substring(this.element.selectionEnd); this.element.setSelectionRange(selection_start+text.length,selection_start+text.length); } this.doOnChange(); this.element.focus(); this.element.scrollTop=scrollTop; }, wrapSelection:function(before,after){ this.replaceSelection(before+this.getSelection()+after); }, insertBeforeSelection:function(text){ this.replaceSelection(text+this.getSelection()); }, insertAfterSelection:function(text){ this.replaceSelection(this.getSelection()+text); }, injectEachSelectedLine:function(callback,before,after){ this.replaceSelection((before||'')+$A(this.getSelection().split("\n")).inject([],callback).join("\n")+(after||'')); }, insertBeforeEachSelectedLine:function(text,before,after){ this.injectEachSelectedLine(function(lines,line){ lines.push(text+line); return lines; },before,after); } }); if(typeof(Object.Event)!='undefined') Object.Event.extend(Control.TextArea);Control.TextArea.BBCode=Class.create(); Object.extend(Control.TextArea.BBCode.prototype,{ textarea:false, tooltip:false, toolbar:false, emotions:false, wrapper:false, controllers:false, initialize:function(textarea){ this.textarea=new Control.TextArea(textarea); this._initLayout(); this._initEmotions(); this._initToolbar(); }, hide:function(){ this.wrapper.parentNode.appendChild(this.textarea.element.remove()); this.wrapper.hide(); }, show:function(){ this.controllers.appendChild(this.textarea.element.remove()); this.wrapper.show(); }, _initLayout:function(){ this.wrapper=$(document.createElement('div')); this.wrapper.id="editor_wrapper"; this.wrapper.className="clearfix"; this.textarea.element.parentNode.insertBefore(this.wrapper,this.textarea.element); this.emotions=$(document.createElement('div')); this.emotions.id="bbcode_emotions"; this.emotions.innerHTML="<h5>表情图标</h5>"; this.wrapper.appendChild(this.emotions); this.controllers=$(document.createElement('div')); this.controllers.id="bbcode_controllers"; this.wrapper.appendChild(this.controllers); this.toolbar=$(document.createElement('div')); this.toolbar.id="bbcode_toolbar"; this.controllers.appendChild(this.toolbar); this.tooltip=$(document.createElement('div')); this.tooltip.id="bbcode_tooltip"; this.tooltip.innerHTML="提示:选择您需要装饰的文字, 按上列按钮即可添加上相应的标签"; this.controllers.appendChild(this.tooltip); this.controllers.appendChild(this.textarea.element.remove()); }, _initEmotions:function(){ this._addEmotion("biggrin",function(){this.insertAfterSelection(" :D ");}); this._addEmotion("smile",function(){this.insertAfterSelection(" :) ");}); this._addEmotion("sad",function(){this.insertAfterSelection(" :( ");}); this._addEmotion("surprised",function(){this.insertAfterSelection(" :o ");}); this._addEmotion("eek",function(){this.insertAfterSelection(" :shock: ");}); this._addEmotion("confused",function(){this.insertAfterSelection(" :? ");}); this._addEmotion("cool",function(){this.insertAfterSelection(" 8) ");}); this._addEmotion("lol",function(){this.insertAfterSelection(" :lol: ");}); this._addEmotion("mad",function(){this.insertAfterSelection(" :x ");}); this._addEmotion("razz",function(){this.insertAfterSelection(" :P ");}); this._addEmotion("redface",function(){this.insertAfterSelection(" :oops: ");}); this._addEmotion("cry",function(){this.insertAfterSelection(" :cry: ");}); this._addEmotion("evil",function(){this.insertAfterSelection(" :evil: ");}); this._addEmotion("twisted",function(){this.insertAfterSelection(" :twisted: ");}); this._addEmotion("rolleyes",function(){this.insertAfterSelection(" :roll: ");}); this._addEmotion("wink",function(){this.insertAfterSelection(" :wink: ");}); this._addEmotion("exclaim",function(){this.insertAfterSelection(" :!: ");}); this._addEmotion("question",function(){this.insertAfterSelection(" :?: ");}); this._addEmotion("idea",function(){this.insertAfterSelection(" :idea: ");}); this._addEmotion("arrow",function(){this.insertAfterSelection(" :arrow: ");}); }, _addEmotion:function(icon,callback){ var img=$(document.createElement('img')); img.src="http://www.javaeye.com/images/smiles/icon_"+icon+".gif"; img.observe('click',callback.bindAsEventListener(this.textarea)); this.emotions.appendChild(img); }, _initToolbar:function(){ this._addButton("B",function(){this.wrapSelection('[b]','[/b]');},function(){this.innerHTML='粗体: [b]文字[/b] (alt+b)';},{id:'button_bold'}); this._addButton("I",function(){this.wrapSelection('[i]','[/i]');},function(){this.innerHTML='斜体: [i]文字[/i] (alt+i)';},{id:'button_italic'}); this._addButton("U",function(){this.wrapSelection('[u]','[/u]');},function(){this.innerHTML='下划线: [u]文字[/u] (alt+u)';},{id:'button_underline'}); this._addButton("Quote",function(){this.wrapSelection('[quote]','[/quote]');},function(){this.innerHTML='引用文字: [quote]文字[/quote] 或者 [quote="javaeye"]文字[/quote] (alt+q)';}); this._addButton("Code",function(){this.wrapSelection('[code="java"]','[/code]');},function(){this.innerHTML='代码: [code="ruby"]...[/code] (支持java, ruby, js, xml, html, php, python, c, c++, c#, sql)';}); this._addButton("List",function(){this.insertBeforeEachSelectedLine('[*]','[list]\n','\n[/list]')},function(){this.innerHTML='列表: [list] [*]文字 [*]文字 [/list] 或者 顺序列表: [list=1] [*]文字 [*]文字 [/list]';}); this._addButton("Img",function(){this.wrapSelection('[img]','[/img]');},function(){this.innerHTML='插入图像: [img]http://image_url[/img] (alt+p)';}); this._addButton("URL",function(){this.wrapSelection('[url]','[/url]');},function(){this.innerHTML='插入URL: [url]http://url[/url] 或 [url=http://url]URL文字[/url] (alt+w)';}); this._addButton("Flash",function(){this.wrapSelection('[flash=200,200]','[/flash]');},function(){this.innerHTML='插入Flash: [flash=宽,高]http://your_flash.swf[/flash]';}); this._addButton("Table",function(){this.injectEachSelectedLine(function(lines,line){lines.push("|"+line+"|");return lines;},'[table]\n','\n[/table]');},function(){this.innerHTML='插入表格: [table]用换行和|来编辑格子[/table]';}); var color_select=[ "<br />字体颜色: ", "<select id='select_color'>", "<option value='black' style='color: black;'>标准</option>", "<option value='darkred' style='color: darkred;'>深红</option>", "<option value='red' style='color: red;'>红色</option>", "<option value='orange' style='color: orange;'>橙色</option>", "<option value='brown' style='color: brown;'>棕色</option>", "<option value='yellow' style='color: yellow;'>黄色</option>", "<option value='green' style='color: green;'>绿色</option>", "<option value='olive' style='color: olive;'>橄榄</option>", "<option value='cyan' style='color: cyan;'>青色</option>", "<option value='blue' style='color: blue;'>蓝色</option>", "<option value='darkblue' style='color: darkblue;'>深蓝</option>", "<option value='indigo' style='color: indigo;'>靛蓝</option>", "<option value='violet' style='color: violet;'>紫色</option>", "<option value='gray' style='color: gray;'>灰色</option>", "<option value='white' style='color: white;'>白色</option>", "<option value='black' style='color: black;'>黑色</option>", "</select>" ]; this.toolbar.insert(color_select.join("")); $('select_color').observe('change',this._change_color.bindAsEventListener(this.textarea)); $('select_color').observe('mouseover',function(){$("bbcode_tooltip").innerHTML="字体颜色: [color=red]文字[/color] 提示:您可以使用 color=#FF0000";}); var font_select=[ "&nbsp;字体大小: ", "<select id='select_font'>", "<option value='0'>标准</option>", "<option value='xx-small'>1 (xx-small)</option>", "<option value='x-small'>2 (x-small)</option>", "<option value='small'>3 (small)</option>", "<option value='medium'>4 (medium)</option>", "<option value='large'>5 (large)</option>", "<option value='x-large'>6 (x-large)</option>", "<option value='xx-large'>7 (xx-large)</option>", "</select>" ]; this.toolbar.insert(font_select.join("")); $('select_font').observe('change',this._change_font.bindAsEventListener(this.textarea)); $('select_font').observe('mouseover',function(){$("bbcode_tooltip").innerHTML="字体大小: [size=x-small]小字体文字[/size]";}); var align_select=[ "&nbsp;对齐: ", "<select id='select_align'>", "<option value='0'>标准</option>", "<option value='left'>居左</option>", "<option value='center'>居中</option>", "<option value='right'>居右</option>", "</select>" ] this.toolbar.insert(align_select.join("")); $('select_align').observe('change',this._change_align.bindAsEventListener(this.textarea)); $('select_align').observe('mouseover',function(){$("bbcode_tooltip").innerHTML="对齐: [align=center]文字[/align]";}); }, _addButton:function(value,callback,tooltip,attrs){ var input=$(document.createElement('input')); input.type="button"; input.value=value; input.observe('click',callback.bindAsEventListener(this.textarea)); input.observe('mouseover',tooltip.bindAsEventListener(this.tooltip)); Object.extend(input,attrs||{}); this.toolbar.appendChild(input); }, _change_color:function(){ this.wrapSelection('[color='+$F('select_color')+']','[/color]'); $('select_color').selectedIndex=0; }, _change_font:function(){ this.wrapSelection('[size='+$F('select_font')+']','[/size]'); $('select_font').selectedIndex=0; }, _change_align:function(){ this.wrapSelection('[align='+$F('select_align')+']','[/align]'); $('select_align').selectedIndex=0; } });if(typeof(tinyMCE)!='undefined'){ tinyMCE.init({ plugins:"javaeye,media,table,emotions,contextmenu,fullscreen,inlinepopups", mode:"none", language:"zh", theme:"advanced", theme_advanced_buttons1:"formatselect,fontselect,fontsizeselect,separator,forecolor,backcolor,separator,bold,italic,underline,strikethrough,separator,bullist,numlist", theme_advanced_buttons2:"undo,redo,cut,copy,paste,separator,justifyleft,justifycenter,justifyright,separator,outdent,indent,separator,link,unlink,image,media,emotions,table,separator,quote,code,separator,fullscreen", theme_advanced_buttons3:"", theme_advanced_toolbar_location:"top", theme_advanced_toolbar_align:"left", theme_advanced_fonts:"宋体=宋体;黑体=黑体;仿宋=仿宋;楷体=楷体;隶书=隶书;幼圆=幼圆;Arial=arial,helvetica,sans-serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats", convert_fonts_to_spans:true, remove_trailing_nbsp:true, remove_linebreaks:false, width:"100%", extended_valid_elements:"pre[name|class],object[classid|codebase|width|height|align],param[name|value],embed[quality|type|pluginspage|width|height|src|align|wmode]", relative_urls:false, content_css:"/javascripts/tinymce/plugins/javaeye/css/content.css", save_callback:"removeBRInPre" }); } function removeBRInPre(element_id,html,body){ return html.replace(/<pre([^>]*)>((?:.|\n)*?)<\/pre>/gi,function(a,b,c){ c=c.replace(/<br\s*\/?>\n*/gi,'\n'); return'<pre'+b+'>'+c+'</pre>'; }); } Control.TextArea.Editor=Class.create(); Object.extend(Control.TextArea.Editor.prototype,{ bbcode_editor:false, rich_editor:false, mode:false, in_preview:false, initialize:function(textarea,mode,autosave){ this.editor_bbcode_flag=$("editor_bbcode_flag"); this.textarea=textarea; this.switchMode(mode); if(autosave)this._initAutosave(); }, switchMode:function(mode,convert){ if(this.in_preview&&this.mode==mode){ $("editor_tab_bbcode").removeClassName("activetab"); $("editor_tab_rich").removeClassName("activetab"); $("editor_tab_preview").removeClassName("activetab"); $("editor_tab_"+mode).addClassName("activetab"); $("editor_preview").hide(); $("editor_main").show(); this.in_preview=false; return; } if(this.mode==mode)return; if(convert){ var old_text=this.getValue(); if(old_text!=""){ if(!confirm("切换编辑器模式可能导致格式和内容丢失,你确定吗?"))return; $('editor_switch_spinner').show(); } } this.mode=mode; if($("editor_switch")){ $("editor_tab_bbcode").removeClassName("activetab"); $("editor_tab_rich").removeClassName("activetab"); $("editor_tab_preview").removeClassName("activetab"); $("editor_tab_"+mode).addClassName("activetab"); $("editor_preview").hide(); $("editor_main").show(); this.in_preview=false; } if(this.mode=="rich"){ this.editor_bbcode_flag.value="false"; if(this.bbcode_editor)this.bbcode_editor.hide(); this.rich_editor=true; tinyMCE.execCommand('mceAddControl',false,this.textarea); }else{ this.editor_bbcode_flag.value="true"; if(this.rich_editor)tinyMCE.execCommand('mceRemoveControl',false,this.textarea); this.bbcode_editor?this.bbcode_editor.show():this.bbcode_editor=new Control.TextArea.BBCode(this.textarea); } if(convert&&old_text!=""){ new Ajax.Request(this.mode=="rich"?'/editor/bbcode2html':'/editor/html2bbcode',{ method:'post', parameters:{text:old_text}, asynchronous:true, onSuccess:function(transport){this.setValue(transport.responseText);$('editor_switch_spinner').hide();}.bind(this) }); } }, getValue:function(){ return this.mode=="bbcode"?this.bbcode_editor.textarea.element.value:tinyMCE.activeEditor.getContent(); }, setValue:function(value){ if(this.mode=="bbcode"){ this.bbcode_editor.textarea.element.value=value; }else{ tinyMCE.get(this.textarea).setContent(value); } }, preview:function(){ this.in_preview=true; $('editor_switch_spinner').show(); $("editor_preview").show(); $("editor_main").hide(); $("editor_tab_bbcode").removeClassName("activetab"); $("editor_tab_rich").removeClassName("activetab"); $("editor_tab_preview").addClassName("activetab"); new Ajax.Updater("editor_preview","/editor/preview",{ parameters:{text:this.getValue(),mode:this.mode}, evalScripts:true, onSuccess:function(){$('editor_switch_spinner').hide();} }); }, insertImage:function(url){ if(this.mode=="bbcode"){ this.bbcode_editor.textarea.insertAfterSelection("\n[img]"+url+"[/img]\n"); }else{ tinyMCE.execCommand("mceInsertContent", false, "<br/><img src='"+url+"'/><br/>&nbsp;"); } }, _initAutosave:function(){ this.autosave_url=window.location.href; new Ajax.Request('/editor/check_autosave',{ method:'post', parameters:{url:this.autosave_url}, asynchronous:true, onSuccess:this._loadAutosave.bind(this) }); setInterval(this._autosave.bind(this),90*1000); }, _loadAutosave:function(transport){ var text=transport.responseText; if(text!="nil"){ eval("this.auto_save = "+text); $('editor_auto_save_update').update('<span style="color:red">您有一份自动保存于'+this.auto_save.updated_at+'的草稿,<a href="#" onclick=\'editor._setAutosave();return false;\'>恢复</a>还是<a href="#" onclick=\'editor._discardAutosave();return false;\'>丢弃</a>呢?</span>'); } }, _setAutosave:function(){ $("editor_auto_save_id").value=this.auto_save.id; $('editor_auto_save_update').update(""); this.auto_save.bbcode?this.switchMode("bbcode"):this.switchMode("rich"); this.setValue(this.auto_save.body); }, _discardAutosave:function(){ $("editor_auto_save_id").value=this.auto_save.id; $('editor_auto_save_update').update(""); }, _autosave:function(){ var body=this.getValue(); if(body.length<100)return; new Ajax.Request('/editor/autosave',{ method:'post', parameters:{ url:this.autosave_url, body:body, bbcode:this.mode=="bbcode" }, asynchronous:true, onSuccess:function(transport){ $('editor_auto_save_id').value=transport.responseText; $('editor_auto_save_update').update('<span style="color:red">JavaEye编辑器帮您自动保存草稿于:'+new Date().toLocaleString()+'</span>'); } }); } });
zzsoszz/MyPaper
database/oracle/死锁/oracle 性能 V$PROCESS - Oracle + J2EE 一个都不能少 - JavaEye技术网站.files/compress.js
JavaScript
apache-2.0
16,972
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.jetty', name: 'JettyThreadPoolConfig', documentation: 'model of org.eclipse.jetty.server.ThreadPool', properties: [ { name: 'minThreads', class: 'Int', value: 8 }, { name: 'maxThreads', class: 'Int', value: 200 }, { name: 'idleTimeout', class: 'Int', value: 60000 } ] });
jacksonic/vjlofvhjfgm
src/foam/nanos/jetty/JettyThreadPoolConfig.js
JavaScript
apache-2.0
513
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * 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 NON INFRINGEMENT. IN NO EVENT SHALL * FACEBOOK 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. * * @flow */ 'use strict'; var React = require('react'); var ReactNative = require('react-native'); var { Text, TextInput, View, StyleSheet, } = ReactNative; var TextEventsExample = React.createClass({ getInitialState: function() { return { curText: '<No Event>', prevText: '<No Event>', prev2Text: '<No Event>', }; }, updateText: function(text) { this.setState((state) => { return { curText: text, prevText: state.curText, prev2Text: state.prevText, }; }); }, render: function() { return ( <View> <TextInput autoCapitalize="none" placeholder="Enter text to see events" autoCorrect={false} onFocus={() => this.updateText('onFocus')} onBlur={() => this.updateText('onBlur')} onChange={(event) => this.updateText( 'onChange text: ' + event.nativeEvent.text )} onEndEditing={(event) => this.updateText( 'onEndEditing text: ' + event.nativeEvent.text )} onSubmitEditing={(event) => this.updateText( 'onSubmitEditing text: ' + event.nativeEvent.text )} style={styles.singleLine} /> <Text style={styles.eventLabel}> {this.state.curText}{'\n'} (prev: {this.state.prevText}){'\n'} (prev2: {this.state.prev2Text}) </Text> </View> ); } }); class AutoExpandingTextInput extends React.Component { constructor(props) { super(props); this.state = { text: 'React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about — learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native.', height: 0, }; } render() { return ( <TextInput {...this.props} multiline={true} onContentSizeChange={(event) => { this.setState({height: event.nativeEvent.contentSize.height}); }} onChangeText={(text) => { this.setState({text}); }} style={[styles.default, {height: Math.max(35, this.state.height)}]} value={this.state.text} /> ); } } class RewriteExample extends React.Component { constructor(props) { super(props); this.state = {text: ''}; } render() { var limit = 20; var remainder = limit - this.state.text.length; var remainderColor = remainder > 5 ? 'blue' : 'red'; return ( <View style={styles.rewriteContainer}> <TextInput multiline={false} maxLength={limit} onChangeText={(text) => { text = text.replace(/ /g, '_'); this.setState({text}); }} style={styles.default} value={this.state.text} /> <Text style={[styles.remainder, {color: remainderColor}]}> {remainder} </Text> </View> ); } } class TokenizedTextExample extends React.Component { constructor(props) { super(props); this.state = {text: 'Hello #World'}; } render() { //define delimiter let delimiter = /\s+/; //split string let _text = this.state.text; let token, index, parts = []; while (_text) { delimiter.lastIndex = 0; token = delimiter.exec(_text); if (token === null) { break; } index = token.index; if (token[0].length === 0) { index = 1; } parts.push(_text.substr(0, index)); parts.push(token[0]); index = index + token[0].length; _text = _text.slice(index); } parts.push(_text); //highlight hashtags parts = parts.map((text) => { if (/^#/.test(text)) { return <Text key={text} style={styles.hashtag}>{text}</Text>; } else { return text; } }); return ( <View> <TextInput multiline={true} style={styles.multiline} onChangeText={(text) => { this.setState({text}); }}> <Text>{parts}</Text> </TextInput> </View> ); } } var BlurOnSubmitExample = React.createClass({ focusNextField(nextField) { this.refs[nextField].focus(); }, render: function() { return ( <View> <TextInput ref="1" style={styles.singleLine} placeholder="blurOnSubmit = false" returnKeyType="next" blurOnSubmit={false} onSubmitEditing={() => this.focusNextField('2')} /> <TextInput ref="2" style={styles.singleLine} keyboardType="email-address" placeholder="blurOnSubmit = false" returnKeyType="next" blurOnSubmit={false} onSubmitEditing={() => this.focusNextField('3')} /> <TextInput ref="3" style={styles.singleLine} keyboardType="url" placeholder="blurOnSubmit = false" returnKeyType="next" blurOnSubmit={false} onSubmitEditing={() => this.focusNextField('4')} /> <TextInput ref="4" style={styles.singleLine} keyboardType="numeric" placeholder="blurOnSubmit = false" blurOnSubmit={false} onSubmitEditing={() => this.focusNextField('5')} /> <TextInput ref="5" style={styles.singleLine} keyboardType="numbers-and-punctuation" placeholder="blurOnSubmit = true" returnKeyType="done" /> </View> ); } }); var styles = StyleSheet.create({ multiline: { height: 60, fontSize: 16, padding: 4, marginBottom: 10, }, eventLabel: { margin: 3, fontSize: 12, }, singleLine: { fontSize: 16, padding: 4, }, singleLineWithHeightTextInput: { height: 30, }, hashtag: { color: 'blue', fontWeight: 'bold', }, }); exports.title = '<TextInput>'; exports.description = 'Single and multi-line text inputs.'; exports.examples = [ { title: 'Auto-focus', render: function() { return ( <TextInput autoFocus={true} style={styles.singleLine} accessibilityLabel="I am the accessibility label for text input" /> ); } }, { title: "Live Re-Write (<sp> -> '_')", render: function() { return <RewriteExample />; } }, { title: 'Auto-capitalize', render: function() { var autoCapitalizeTypes = [ 'none', 'sentences', 'words', 'characters', ]; var examples = autoCapitalizeTypes.map((type) => { return ( <TextInput key={type} autoCapitalize={type} placeholder={'autoCapitalize: ' + type} style={styles.singleLine} /> ); }); return <View>{examples}</View>; } }, { title: 'Auto-correct', render: function() { return ( <View> <TextInput autoCorrect={true} placeholder="This has autoCorrect" style={styles.singleLine} /> <TextInput autoCorrect={false} placeholder="This does not have autoCorrect" style={styles.singleLine} /> </View> ); } }, { title: 'Keyboard types', render: function() { var keyboardTypes = [ 'default', 'email-address', 'numeric', 'phone-pad', ]; var examples = keyboardTypes.map((type) => { return ( <TextInput key={type} keyboardType={type} placeholder={'keyboardType: ' + type} style={styles.singleLine} /> ); }); return <View>{examples}</View>; } }, { title: 'Blur on submit', render: function(): ReactElement { return <BlurOnSubmitExample />; }, }, { title: 'Event handling', render: function(): ReactElement { return <TextEventsExample />; }, }, { title: 'Colors and text inputs', render: function() { return ( <View> <TextInput style={[styles.singleLine]} defaultValue="Default color text" /> <TextInput style={[styles.singleLine, {color: 'green'}]} defaultValue="Green Text" /> <TextInput placeholder="Default placeholder text color" style={styles.singleLine} /> <TextInput placeholder="Red placeholder text color" placeholderTextColor="red" style={styles.singleLine} /> <TextInput placeholder="Default underline color" style={styles.singleLine} /> <TextInput placeholder="Blue underline color" style={styles.singleLine} underlineColorAndroid="blue" /> <TextInput defaultValue="Same BackgroundColor as View " style={[styles.singleLine, {backgroundColor: 'rgba(100, 100, 100, 0.3)'}]}> <Text style={{backgroundColor: 'rgba(100, 100, 100, 0.3)'}}> Darker backgroundColor </Text> </TextInput> <TextInput defaultValue="Highlight Color is red" selectionColor={'red'} style={styles.singleLine}> </TextInput> </View> ); } }, { title: 'Text input, themes and heights', render: function() { return ( <TextInput placeholder="If you set height, beware of padding set from themes" style={[styles.singleLineWithHeightTextInput]} /> ); } }, { title: 'fontFamily, fontWeight and fontStyle', render: function() { return ( <View> <TextInput style={[styles.singleLine, {fontFamily: 'sans-serif'}]} placeholder="Custom fonts like Sans-Serif are supported" /> <TextInput style={[styles.singleLine, {fontFamily: 'sans-serif', fontWeight: 'bold'}]} placeholder="Sans-Serif bold" /> <TextInput style={[styles.singleLine, {fontFamily: 'sans-serif', fontStyle: 'italic'}]} placeholder="Sans-Serif italic" /> <TextInput style={[styles.singleLine, {fontFamily: 'serif'}]} placeholder="Serif" /> </View> ); } }, { title: 'Passwords', render: function() { return ( <View> <TextInput defaultValue="iloveturtles" secureTextEntry={true} style={styles.singleLine} /> <TextInput secureTextEntry={true} style={[styles.singleLine, {color: 'red'}]} placeholder="color is supported too" placeholderTextColor="red" /> </View> ); } }, { title: 'Editable', render: function() { return ( <TextInput defaultValue="Can't touch this! (>'-')> ^(' - ')^ <('-'<) (>'-')> ^(' - ')^" editable={false} style={styles.singleLine} /> ); } }, { title: 'Multiline', render: function() { return ( <View> <TextInput autoCorrect={true} placeholder="multiline, aligned top-left" placeholderTextColor="red" multiline={true} style={[styles.multiline, {textAlign: "left", textAlignVertical: "top"}]} /> <TextInput autoCorrect={true} placeholder="multiline, aligned center" placeholderTextColor="green" multiline={true} style={[styles.multiline, {textAlign: "center", textAlignVertical: "center"}]} /> <TextInput autoCorrect={true} multiline={true} style={[styles.multiline, {color: 'blue'}, {textAlign: "right", textAlignVertical: "bottom"}]}> <Text style={styles.multiline}>multiline with children, aligned bottom-right</Text> </TextInput> </View> ); } }, { title: 'Fixed number of lines', platform: 'android', render: function() { return ( <View> <TextInput numberOfLines={2} multiline={true} placeholder="Two line input" /> <TextInput numberOfLines={5} multiline={true} placeholder="Five line input" /> </View> ); } }, { title: 'Auto-expanding', render: function() { return ( <View> <AutoExpandingTextInput placeholder="height increases with content" enablesReturnKeyAutomatically={true} returnKeyType="done" /> </View> ); } }, { title: 'Attributed text', render: function() { return <TokenizedTextExample />; } }, { title: 'Return key', render: function() { var returnKeyTypes = [ 'none', 'go', 'search', 'send', 'done', 'previous', 'next', ]; var returnKeyLabels = [ 'Compile', 'React Native', ]; var examples = returnKeyTypes.map((type) => { return ( <TextInput key={type} returnKeyType={type} placeholder={'returnKeyType: ' + type} style={styles.singleLine} /> ); }); var types = returnKeyLabels.map((type) => { return ( <TextInput key={type} returnKeyLabel={type} placeholder={'returnKeyLabel: ' + type} style={styles.singleLine} /> ); }); return <View>{examples}{types}</View>; } }, { title: 'Inline Images', render: function() { return ( <View> <TextInput inlineImageLeft="ic_menu_black_24dp" placeholder="This has drawableLeft set" style={styles.singleLine} /> <TextInput inlineImageLeft="ic_menu_black_24dp" inlineImagePadding={30} placeholder="This has drawableLeft and drawablePadding set" style={styles.singleLine} /> <TextInput placeholder="This does not have drawable props set" style={styles.singleLine} /> </View> ); } }, ];
mrspeaker/react-native
Examples/UIExplorer/js/TextInputExample.android.js
JavaScript
bsd-3-clause
15,828
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ResponderEventPlugin */ 'use strict'; var EventConstants = require('EventConstants'); var EventPluginUtils = require('EventPluginUtils'); var EventPropagators = require('EventPropagators'); var ResponderSyntheticEvent = require('ResponderSyntheticEvent'); var ResponderTouchHistoryStore = require('ResponderTouchHistoryStore'); var accumulate = require('accumulate'); var invariant = require('invariant'); var keyOf = require('keyOf'); var isStartish = EventPluginUtils.isStartish; var isMoveish = EventPluginUtils.isMoveish; var isEndish = EventPluginUtils.isEndish; var executeDirectDispatch = EventPluginUtils.executeDirectDispatch; var hasDispatches = EventPluginUtils.hasDispatches; var executeDispatchesInOrderStopAtTrue = EventPluginUtils.executeDispatchesInOrderStopAtTrue; /** * Instance of element that should respond to touch/move types of interactions, * as indicated explicitly by relevant callbacks. */ var responderInst = null; /** * Count of current touches. A textInput should become responder iff the * selection changes while there is a touch on the screen. */ var trackedTouchCount = 0; /** * Last reported number of active touches. */ var previousActiveTouches = 0; var changeResponder = function(nextResponderInst, blockHostResponder) { var oldResponderInst = responderInst; responderInst = nextResponderInst; if (ResponderEventPlugin.GlobalResponderHandler !== null) { ResponderEventPlugin.GlobalResponderHandler.onChange( oldResponderInst, nextResponderInst, blockHostResponder ); } }; var eventTypes = { /** * On a `touchStart`/`mouseDown`, is it desired that this element become the * responder? */ startShouldSetResponder: { phasedRegistrationNames: { bubbled: keyOf({onStartShouldSetResponder: null}), captured: keyOf({onStartShouldSetResponderCapture: null}), }, }, /** * On a `scroll`, is it desired that this element become the responder? This * is usually not needed, but should be used to retroactively infer that a * `touchStart` had occurred during momentum scroll. During a momentum scroll, * a touch start will be immediately followed by a scroll event if the view is * currently scrolling. * * TODO: This shouldn't bubble. */ scrollShouldSetResponder: { phasedRegistrationNames: { bubbled: keyOf({onScrollShouldSetResponder: null}), captured: keyOf({onScrollShouldSetResponderCapture: null}), }, }, /** * On text selection change, should this element become the responder? This * is needed for text inputs or other views with native selection, so the * JS view can claim the responder. * * TODO: This shouldn't bubble. */ selectionChangeShouldSetResponder: { phasedRegistrationNames: { bubbled: keyOf({onSelectionChangeShouldSetResponder: null}), captured: keyOf({onSelectionChangeShouldSetResponderCapture: null}), }, }, /** * On a `touchMove`/`mouseMove`, is it desired that this element become the * responder? */ moveShouldSetResponder: { phasedRegistrationNames: { bubbled: keyOf({onMoveShouldSetResponder: null}), captured: keyOf({onMoveShouldSetResponderCapture: null}), }, }, /** * Direct responder events dispatched directly to responder. Do not bubble. */ responderStart: {registrationName: keyOf({onResponderStart: null})}, responderMove: {registrationName: keyOf({onResponderMove: null})}, responderEnd: {registrationName: keyOf({onResponderEnd: null})}, responderRelease: {registrationName: keyOf({onResponderRelease: null})}, responderTerminationRequest: { registrationName: keyOf({onResponderTerminationRequest: null}), }, responderGrant: {registrationName: keyOf({onResponderGrant: null})}, responderReject: {registrationName: keyOf({onResponderReject: null})}, responderTerminate: {registrationName: keyOf({onResponderTerminate: null})}, }; /** * * Responder System: * ---------------- * * - A global, solitary "interaction lock" on a view. * - If a node becomes the responder, it should convey visual feedback * immediately to indicate so, either by highlighting or moving accordingly. * - To be the responder means, that touches are exclusively important to that * responder view, and no other view. * - While touches are still occurring, the responder lock can be transferred to * a new view, but only to increasingly "higher" views (meaning ancestors of * the current responder). * * Responder being granted: * ------------------------ * * - Touch starts, moves, and scrolls can cause an ID to become the responder. * - We capture/bubble `startShouldSetResponder`/`moveShouldSetResponder` to * the "appropriate place". * - If nothing is currently the responder, the "appropriate place" is the * initiating event's `targetID`. * - If something *is* already the responder, the "appropriate place" is the * first common ancestor of the event target and the current `responderInst`. * - Some negotiation happens: See the timing diagram below. * - Scrolled views automatically become responder. The reasoning is that a * platform scroll view that isn't built on top of the responder system has * began scrolling, and the active responder must now be notified that the * interaction is no longer locked to it - the system has taken over. * * - Responder being released: * As soon as no more touches that *started* inside of descendants of the * *current* responderInst, an `onResponderRelease` event is dispatched to the * current responder, and the responder lock is released. * * TODO: * - on "end", a callback hook for `onResponderEndShouldRemainResponder` that * determines if the responder lock should remain. * - If a view shouldn't "remain" the responder, any active touches should by * default be considered "dead" and do not influence future negotiations or * bubble paths. It should be as if those touches do not exist. * -- For multitouch: Usually a translate-z will choose to "remain" responder * after one out of many touches ended. For translate-y, usually the view * doesn't wish to "remain" responder after one of many touches end. * - Consider building this on top of a `stopPropagation` model similar to * `W3C` events. * - Ensure that `onResponderTerminate` is called on touch cancels, whether or * not `onResponderTerminationRequest` returns `true` or `false`. * */ /* Negotiation Performed +-----------------------+ / \ Process low level events to + Current Responder + wantsResponderID determine who to perform negot-| (if any exists at all) | iation/transition | Otherwise just pass through| -------------------------------+----------------------------+------------------+ Bubble to find first ID | | to return true:wantsResponderID| | | | +-------------+ | | | onTouchStart| | | +------+------+ none | | | return| | +-----------v-------------+true| +------------------------+ | |onStartShouldSetResponder|----->|onResponderStart (cur) |<-----------+ +-----------+-------------+ | +------------------------+ | | | | | +--------+-------+ | returned true for| false:REJECT +-------->|onResponderReject | wantsResponderID | | | +----------------+ | (now attempt | +------------------+-----+ | | handoff) | | onResponder | | +------------------->| TerminationRequest| | | +------------------+-----+ | | | | +----------------+ | true:GRANT +-------->|onResponderGrant| | | +--------+-------+ | +------------------------+ | | | | onResponderTerminate |<-----------+ | +------------------+-----+ | | | | +----------------+ | +-------->|onResponderStart| | | +----------------+ Bubble to find first ID | | to return true:wantsResponderID| | | | +-------------+ | | | onTouchMove | | | +------+------+ none | | | return| | +-----------v-------------+true| +------------------------+ | |onMoveShouldSetResponder |----->|onResponderMove (cur) |<-----------+ +-----------+-------------+ | +------------------------+ | | | | | +--------+-------+ | returned true for| false:REJECT +-------->|onResponderRejec| | wantsResponderID | | | +----------------+ | (now attempt | +------------------+-----+ | | handoff) | | onResponder | | +------------------->| TerminationRequest| | | +------------------+-----+ | | | | +----------------+ | true:GRANT +-------->|onResponderGrant| | | +--------+-------+ | +------------------------+ | | | | onResponderTerminate |<-----------+ | +------------------+-----+ | | | | +----------------+ | +-------->|onResponderMove | | | +----------------+ | | | | Some active touch started| | inside current responder | +------------------------+ | +------------------------->| onResponderEnd | | | | +------------------------+ | +---+---------+ | | | onTouchEnd | | | +---+---------+ | | | | +------------------------+ | +------------------------->| onResponderEnd | | No active touches started| +-----------+------------+ | inside current responder | | | | v | | +------------------------+ | | | onResponderRelease | | | +------------------------+ | | | + + */ /** * A note about event ordering in the `EventPluginHub`. * * Suppose plugins are injected in the following order: * * `[R, S, C]` * * To help illustrate the example, assume `S` is `SimpleEventPlugin` (for * `onClick` etc) and `R` is `ResponderEventPlugin`. * * "Deferred-Dispatched Events": * * - The current event plugin system will traverse the list of injected plugins, * in order, and extract events by collecting the plugin's return value of * `extractEvents()`. * - These events that are returned from `extractEvents` are "deferred * dispatched events". * - When returned from `extractEvents`, deferred-dispatched events contain an * "accumulation" of deferred dispatches. * - These deferred dispatches are accumulated/collected before they are * returned, but processed at a later time by the `EventPluginHub` (hence the * name deferred). * * In the process of returning their deferred-dispatched events, event plugins * themselves can dispatch events on-demand without returning them from * `extractEvents`. Plugins might want to do this, so that they can use event * dispatching as a tool that helps them decide which events should be extracted * in the first place. * * "On-Demand-Dispatched Events": * * - On-demand-dispatched events are not returned from `extractEvents`. * - On-demand-dispatched events are dispatched during the process of returning * the deferred-dispatched events. * - They should not have side effects. * - They should be avoided, and/or eventually be replaced with another * abstraction that allows event plugins to perform multiple "rounds" of event * extraction. * * Therefore, the sequence of event dispatches becomes: * * - `R`s on-demand events (if any) (dispatched by `R` on-demand) * - `S`s on-demand events (if any) (dispatched by `S` on-demand) * - `C`s on-demand events (if any) (dispatched by `C` on-demand) * - `R`s extracted events (if any) (dispatched by `EventPluginHub`) * - `S`s extracted events (if any) (dispatched by `EventPluginHub`) * - `C`s extracted events (if any) (dispatched by `EventPluginHub`) * * In the case of `ResponderEventPlugin`: If the `startShouldSetResponder` * on-demand dispatch returns `true` (and some other details are satisfied) the * `onResponderGrant` deferred dispatched event is returned from * `extractEvents`. The sequence of dispatch executions in this case * will appear as follows: * * - `startShouldSetResponder` (`ResponderEventPlugin` dispatches on-demand) * - `touchStartCapture` (`EventPluginHub` dispatches as usual) * - `touchStart` (`EventPluginHub` dispatches as usual) * - `responderGrant/Reject` (`EventPluginHub` dispatches as usual) */ function setResponderAndExtractTransfer( topLevelType, targetInst, nativeEvent, nativeEventTarget ) { var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === EventConstants.topLevelTypes.topSelectionChange ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; // TODO: stop one short of the current responder. var bubbleShouldSetFrom = !responderInst ? targetInst : EventPluginUtils.getLowestCommonAncestor(responderInst, targetInst); // When capturing/bubbling the "shouldSet" event, we want to skip the target // (deepest ID) if it happens to be the current responder. The reasoning: // It's strange to get an `onMoveShouldSetResponder` when you're *already* // the responder. var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; var shouldSetEvent = ResponderSyntheticEvent.getPooled( shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget ); shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; if (skipOverBubbleShouldSetFrom) { EventPropagators.accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); } else { EventPropagators.accumulateTwoPhaseDispatches(shouldSetEvent); } var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); if (!shouldSetEvent.isPersistent()) { shouldSetEvent.constructor.release(shouldSetEvent); } if (!wantsResponderInst || wantsResponderInst === responderInst) { return null; } var extracted; var grantEvent = ResponderSyntheticEvent.getPooled( eventTypes.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget ); grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; EventPropagators.accumulateDirectDispatches(grantEvent); var blockHostResponder = executeDirectDispatch(grantEvent) === true; if (responderInst) { var terminationRequestEvent = ResponderSyntheticEvent.getPooled( eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget ); terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; EventPropagators.accumulateDirectDispatches(terminationRequestEvent); var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); if (!terminationRequestEvent.isPersistent()) { terminationRequestEvent.constructor.release(terminationRequestEvent); } if (shouldSwitch) { var terminateEvent = ResponderSyntheticEvent.getPooled( eventTypes.responderTerminate, responderInst, nativeEvent, nativeEventTarget ); terminateEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; EventPropagators.accumulateDirectDispatches(terminateEvent); extracted = accumulate(extracted, [grantEvent, terminateEvent]); changeResponder(wantsResponderInst, blockHostResponder); } else { var rejectEvent = ResponderSyntheticEvent.getPooled( eventTypes.responderReject, wantsResponderInst, nativeEvent, nativeEventTarget ); rejectEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; EventPropagators.accumulateDirectDispatches(rejectEvent); extracted = accumulate(extracted, rejectEvent); } } else { extracted = accumulate(extracted, grantEvent); changeResponder(wantsResponderInst, blockHostResponder); } return extracted; } /** * A transfer is a negotiation between a currently set responder and the next * element to claim responder status. Any start event could trigger a transfer * of responderInst. Any move event could trigger a transfer. * * @param {string} topLevelType Record from `EventConstants`. * @return {boolean} True if a transfer of responder could possibly occur. */ function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { return topLevelInst && ( // responderIgnoreScroll: We are trying to migrate away from specifically // tracking native scroll events here and responderIgnoreScroll indicates we // will send topTouchCancel to handle canceling touch events instead (topLevelType === EventConstants.topLevelTypes.topScroll && !nativeEvent.responderIgnoreScroll) || (trackedTouchCount > 0 && topLevelType === EventConstants.topLevelTypes.topSelectionChange) || isStartish(topLevelType) || isMoveish(topLevelType) ); } /** * Returns whether or not this touch end event makes it such that there are no * longer any touches that started inside of the current `responderInst`. * * @param {NativeEvent} nativeEvent Native touch end event. * @return {boolean} Whether or not this touch end event ends the responder. */ function noResponderTouches(nativeEvent) { var touches = nativeEvent.touches; if (!touches || touches.length === 0) { return true; } for (var i = 0; i < touches.length; i++) { var activeTouch = touches[i]; var target = activeTouch.target; if (target !== null && target !== undefined && target !== 0) { // Is the original touch location inside of the current responder? var targetInst = EventPluginUtils.getInstanceFromNode(target); if (EventPluginUtils.isAncestor(responderInst, targetInst)) { return false; } } } return true; } var ResponderEventPlugin = { /* For unit testing only */ _getResponderID: function() { return responderInst ? responderInst._rootNodeID : null; }, eventTypes: eventTypes, /** * We must be resilient to `targetInst` being `null` on `touchMove` or * `touchEnd`. On certain platforms, this means that a native scroll has * assumed control and the original touch targets are destroyed. */ extractEvents: function( topLevelType, targetInst, nativeEvent, nativeEventTarget ) { if (isStartish(topLevelType)) { trackedTouchCount += 1; } else if (isEndish(topLevelType)) { trackedTouchCount -= 1; invariant( trackedTouchCount >= 0, 'Ended a touch event which was not counted in trackedTouchCount.' ); } ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent, nativeEventTarget); var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer( topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; // Responder may or may not have transferred on a new touch start/move. // Regardless, whoever is the responder after any potential transfer, we // direct all touch start/move/ends to them in the form of // `onResponderMove/Start/End`. These will be called for *every* additional // finger that move/start/end, dispatched directly to whoever is the // current responder at that moment, until the responder is "released". // // These multiple individual change touch events are are always bookended // by `onResponderGrant`, and one of // (`onResponderRelease/onResponderTerminate`). var isResponderTouchStart = responderInst && isStartish(topLevelType); var isResponderTouchMove = responderInst && isMoveish(topLevelType); var isResponderTouchEnd = responderInst && isEndish(topLevelType); var incrementalTouch = isResponderTouchStart ? eventTypes.responderStart : isResponderTouchMove ? eventTypes.responderMove : isResponderTouchEnd ? eventTypes.responderEnd : null; if (incrementalTouch) { var gesture = ResponderSyntheticEvent.getPooled( incrementalTouch, responderInst, nativeEvent, nativeEventTarget ); gesture.touchHistory = ResponderTouchHistoryStore.touchHistory; EventPropagators.accumulateDirectDispatches(gesture); extracted = accumulate(extracted, gesture); } var isResponderTerminate = responderInst && topLevelType === EventConstants.topLevelTypes.topTouchCancel; var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent); var finalTouch = isResponderTerminate ? eventTypes.responderTerminate : isResponderRelease ? eventTypes.responderRelease : null; if (finalTouch) { var finalEvent = ResponderSyntheticEvent.getPooled( finalTouch, responderInst, nativeEvent, nativeEventTarget ); finalEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; EventPropagators.accumulateDirectDispatches(finalEvent); extracted = accumulate(extracted, finalEvent); changeResponder(null); } var numberActiveTouches = ResponderTouchHistoryStore.touchHistory.numberActiveTouches; if (ResponderEventPlugin.GlobalInteractionHandler && numberActiveTouches !== previousActiveTouches) { ResponderEventPlugin.GlobalInteractionHandler.onChange( numberActiveTouches ); } previousActiveTouches = numberActiveTouches; return extracted; }, GlobalResponderHandler: null, GlobalInteractionHandler: null, injection: { /** * @param {{onChange: (ReactID, ReactID) => void} GlobalResponderHandler * Object that handles any change in responder. Use this to inject * integration with an existing touch handling system etc. */ injectGlobalResponderHandler: function(GlobalResponderHandler) { ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; }, /** * @param {{onChange: (numberActiveTouches) => void} GlobalInteractionHandler * Object that handles any change in the number of active touches. */ injectGlobalInteractionHandler: function(GlobalInteractionHandler) { ResponderEventPlugin.GlobalInteractionHandler = GlobalInteractionHandler; }, }, }; module.exports = ResponderEventPlugin;
nathanmarks/react
src/renderers/shared/stack/event/eventPlugins/ResponderEventPlugin.js
JavaScript
bsd-3-clause
25,013
$.ajax({ url: './data/population.json', success: function (data) { var max = -Infinity; data = data.map(function (item) { max = Math.max(item[2], max); return { geoCoord: item.slice(0, 2), value: item[2] } }); data.forEach(function (item) { item.barHeight = item.value / max * 50 + 0.1 }); myChart.setOption({ title : { text: 'Gridded Population of the World (2000)', subtext: 'Data from Socioeconomic Data and Applications Center', sublink : 'http://sedac.ciesin.columbia.edu/data/set/gpw-v3-population-density/data-download#close', x:'center', y:'top', textStyle: { color: 'white' } }, tooltip: { formatter: '{b}' }, dataRange: { min: 0, max: max, text:['High','Low'], realtime: false, calculable : true, color: ['red','yellow','lightskyblue'] }, series: [{ type: 'map3d', mapType: 'world', baseLayer: { backgroundColor: 'rgba(0, 150, 200, 0.5)' }, data: [{}], itemStyle: { normal: { areaStyle: { color: 'rgba(0, 150, 200, 0.8)' }, borderColor: '#777' } }, markBar: { barSize: 0.6, data: data }, autoRotate: true, }] }); } });
wangyuefive/echarts-x
doc/example/code/map3d_population3.js
JavaScript
bsd-3-clause
1,877
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of Ajax.org B.V. nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * ***** END LICENSE BLOCK ***** */ define(function(require, exports, module) { "use strict"; var dom = require("../lib/dom"); var oop = require("../lib/oop"); var lang = require("../lib/lang"); var EventEmitter = require("../lib/event_emitter").EventEmitter; var Gutter = function(parentEl) { this.element = dom.createElement("div"); this.element.className = "ace_layer ace_gutter-layer"; parentEl.appendChild(this.element); this.setShowFoldWidgets(this.$showFoldWidgets); this.gutterWidth = 0; this.$annotations = []; this.$updateAnnotations = this.$updateAnnotations.bind(this); }; (function() { oop.implement(this, EventEmitter); this.setSession = function(session) { if (this.session) this.session.removeEventListener("change", this.$updateAnnotations); this.session = session; session.on("change", this.$updateAnnotations); }; this.addGutterDecoration = function(row, className){ if (window.console) console.warn && console.warn("deprecated use session.addGutterDecoration"); this.session.addGutterDecoration(row, className); }; this.removeGutterDecoration = function(row, className){ if (window.console) console.warn && console.warn("deprecated use session.removeGutterDecoration"); this.session.removeGutterDecoration(row, className); }; this.setAnnotations = function(annotations) { // iterate over sparse array this.$annotations = [] var rowInfo, row; for (var i = 0; i < annotations.length; i++) { var annotation = annotations[i]; var row = annotation.row; var rowInfo = this.$annotations[row]; if (!rowInfo) rowInfo = this.$annotations[row] = {text: []}; var annoText = annotation.text; annoText = annoText ? lang.escapeHTML(annoText) : annotation.html || ""; if (rowInfo.text.indexOf(annoText) === -1) rowInfo.text.push(annoText); var type = annotation.type; if (type == "error") rowInfo.className = " ace_error"; else if (type == "warning" && rowInfo.className != " ace_error") rowInfo.className = " ace_warning"; else if (type == "info" && (!rowInfo.className)) rowInfo.className = " ace_info"; } }; this.$updateAnnotations = function (e) { if (!this.$annotations.length) return; var delta = e.data; var range = delta.range; var firstRow = range.start.row; var len = range.end.row - firstRow; if (len === 0) { // do nothing } else if (delta.action == "removeText" || delta.action == "removeLines") { this.$annotations.splice(firstRow, len + 1, null); } else { var args = Array(len + 1); args.unshift(firstRow, 1); this.$annotations.splice.apply(this.$annotations, args); } }; this.update = function(config) { var emptyAnno = {className: ""}; var html = []; var i = config.firstRow; var lastRow = config.lastRow; var fold = this.session.getNextFoldLine(i); var foldStart = fold ? fold.start.row : Infinity; var foldWidgets = this.$showFoldWidgets && this.session.foldWidgets; var breakpoints = this.session.$breakpoints; var decorations = this.session.$decorations; var firstLineNumber = this.session.$firstLineNumber; var lastLineNumber = 0; while (true) { if(i > foldStart) { i = fold.end.row + 1; fold = this.session.getNextFoldLine(i, fold); foldStart = fold ?fold.start.row :Infinity; } if(i > lastRow) break; var annotation = this.$annotations[i] || emptyAnno; html.push( "<div class='ace_gutter-cell ", breakpoints[i] || "", decorations[i] || "", annotation.className, "' style='height:", this.session.getRowLength(i) * config.lineHeight, "px;'>", lastLineNumber = i + firstLineNumber ); if (foldWidgets) { var c = foldWidgets[i]; // check if cached value is invalidated and we need to recompute if (c == null) c = foldWidgets[i] = this.session.getFoldWidget(i); if (c) html.push( "<span class='ace_fold-widget ace_", c, c == "start" && i == foldStart && i < fold.end.row ? " ace_closed" : " ace_open", "' style='height:", config.lineHeight, "px", "'></span>" ); } html.push("</div>"); i++; } this.element = dom.setInnerHtml(this.element, html.join("")); this.element.style.height = config.minHeight + "px"; if (this.session.$useWrapMode) lastLineNumber = this.session.getLength(); var gutterWidth = ("" + lastLineNumber).length * config.characterWidth; var padding = this.$padding || this.$computePadding(); gutterWidth += padding.left + padding.right; if (gutterWidth !== this.gutterWidth && !isNaN(gutterWidth)) { this.gutterWidth = gutterWidth; this.element.style.width = Math.ceil(this.gutterWidth) + "px"; this._emit("changeGutterWidth", gutterWidth); } }; this.$showFoldWidgets = true; this.setShowFoldWidgets = function(show) { if (show) dom.addCssClass(this.element, "ace_folding-enabled"); else dom.removeCssClass(this.element, "ace_folding-enabled"); this.$showFoldWidgets = show; this.$padding = null; }; this.getShowFoldWidgets = function() { return this.$showFoldWidgets; }; this.$computePadding = function() { if (!this.element.firstChild) return {left: 0, right: 0}; var style = dom.computedStyle(this.element.firstChild); this.$padding = {}; this.$padding.left = parseInt(style.paddingLeft) + 1 || 0; this.$padding.right = parseInt(style.paddingRight) || 0; return this.$padding; }; this.getRegion = function(point) { var padding = this.$padding || this.$computePadding(); var rect = this.element.getBoundingClientRect(); if (point.x < padding.left + rect.left) return "markers"; if (this.$showFoldWidgets && point.x > rect.right - padding.right) return "foldWidgets"; }; }).call(Gutter.prototype); exports.Gutter = Gutter; });
newrelic/ace
lib/ace/layer/gutter.js
JavaScript
bsd-3-clause
8,543
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const chalk = require("chalk"); const cli_utils_1 = require("@ionic/cli-utils"); const command_1 = require("@ionic/cli-utils/lib/command"); const validators_1 = require("@ionic/cli-utils/lib/validators"); const common_1 = require("./common"); let PackageBuildCommand = class PackageBuildCommand extends command_1.Command { preRun(inputs, options) { return tslib_1.__awaiter(this, void 0, void 0, function* () { const { PackageClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/package'); }); const { SecurityClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/security'); }); const token = yield this.env.session.getAppUserToken(); const pkg = new PackageClient(token, this.env.client); const sec = new SecurityClient(token, this.env.client); if (!inputs[0]) { const platform = yield this.env.prompt({ type: 'list', name: 'platform', message: 'What platform would you like to target:', choices: ['ios', 'android'], }); inputs[0] = platform; } if (!options['profile'] && (inputs[0] === 'ios' || (inputs[0] === 'android' && options['release']))) { this.env.tasks.next(`Build requires security profile, but ${chalk.green('--profile')} was not provided. Looking up your profiles`); const allProfiles = yield sec.getProfiles({}); this.env.tasks.end(); const desiredProfileType = options['release'] ? 'production' : 'development'; const profiles = allProfiles.filter(p => p.type === desiredProfileType); if (profiles.length === 0) { this.env.log.error(`Sorry--a valid ${chalk.bold(desiredProfileType)} security profile is required for ${pkg.formatPlatform(inputs[0])} ${options['release'] ? 'release' : 'debug'} builds.`); return 1; } if (profiles.length === 1) { this.env.log.warn(`Attempting to use ${chalk.bold(profiles[0].tag)} (${chalk.bold(profiles[0].name)}), as it is your only ${chalk.bold(desiredProfileType)} security profile.`); options['profile'] = profiles[0].tag; } else { const profile = yield this.env.prompt({ type: 'list', name: 'profile', message: 'Please choose a security profile to use with this build', choices: profiles.map(p => ({ name: p.name, short: p.name, value: p.tag, })), }); options['profile'] = profile; } } }); } run(inputs, options) { return tslib_1.__awaiter(this, void 0, void 0, function* () { const { upload } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/upload'); }); const { DeployClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/deploy'); }); const { PackageClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/package'); }); const { SecurityClient } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/security'); }); const { filterOptionsByIntent } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/utils/command'); }); const { createArchive } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/lib/utils/archive'); }); let [platform] = inputs; let { prod, release, profile, note } = options; if (typeof note !== 'string') { note = 'Ionic Package Upload'; } const project = yield this.env.project.load(); const token = yield this.env.session.getAppUserToken(); const deploy = new DeployClient(token, this.env.client); const sec = new SecurityClient(token, this.env.client); const pkg = new PackageClient(token, this.env.client); if (typeof profile === 'string') { this.env.tasks.next(`Retrieving security profile ${chalk.bold(profile)}`); const p = yield sec.getProfile(profile.toLowerCase()); // TODO: gracefully handle 404 this.env.tasks.end(); if (!p.credentials[platform]) { this.env.log.error(`Profile ${chalk.bold(p.tag)} (${chalk.bold(p.name)}) was found, but didn't have credentials for ${pkg.formatPlatform(platform)}.`); // TODO: link to docs return 1; } if (release && p.type !== 'production') { this.env.log.error(`Profile ${chalk.bold(p.tag)} (${chalk.bold(p.name)}) is a ${chalk.bold(p.type)} profile, which won't work for release builds.\n` + `Please use a production security profile.`); // TODO: link to docs return 1; } } if (project.type === 'ionic-angular' && release && !prod) { this.env.log.warn(`We recommend using ${chalk.green('--prod')} for production builds when using ${chalk.green('--release')}.`); } this.env.tasks.end(); const { build } = yield Promise.resolve().then(function () { return require('@ionic/cli-utils/commands/build'); }); yield build(this.env, inputs, filterOptionsByIntent(this.metadata, options, 'app-scripts')); const snapshotRequest = yield upload(this.env, { note }); this.env.tasks.next('Requesting project upload'); const uploadTask = this.env.tasks.next('Uploading project'); const proj = yield pkg.requestProjectUpload(); const zip = createArchive('zip'); zip.file('package.json', {}); zip.file('config.xml', {}); zip.directory('resources', {}); zip.finalize(); yield pkg.uploadProject(proj, zip, { progress: (loaded, total) => { uploadTask.progress(loaded, total); } }); this.env.tasks.next('Queuing build'); const snapshot = yield deploy.getSnapshot(snapshotRequest.uuid, {}); const packageBuild = yield pkg.queueBuild({ platform, mode: release ? 'release' : 'debug', zipUrl: snapshot.url, projectId: proj.id, profileTag: typeof profile === 'string' ? profile : undefined, }); this.env.tasks.end(); this.env.log.ok(`Build ${packageBuild.id} has been submitted!`); }); } }; PackageBuildCommand = tslib_1.__decorate([ command_1.CommandMetadata({ name: 'build', type: 'project', backends: [cli_utils_1.BACKEND_LEGACY], deprecated: true, description: 'Start a package build', longDescription: ` ${chalk.bold.yellow('WARNING')}: ${common_1.DEPRECATION_NOTICE} Ionic Package makes it easy to build a native binary of your app in the cloud. Full documentation can be found here: ${chalk.bold('https://docs.ionic.io/services/package/')} `, exampleCommands: ['android', 'ios --profile=dev', 'android --profile=prod --release --prod'], inputs: [ { name: 'platform', description: `The platform to target: ${chalk.green('ios')}, ${chalk.green('android')}`, validators: [validators_1.contains(['ios', 'android'], {})], }, ], options: [ { name: 'prod', description: 'Mark as a production build', type: Boolean, intent: 'app-scripts', }, { name: 'release', description: 'Mark as a release build', type: Boolean, }, { name: 'profile', description: 'The security profile to use with this build', type: String, aliases: ['p'], }, { name: 'note', description: 'Give the package snapshot a note', }, ], }) ], PackageBuildCommand); exports.PackageBuildCommand = PackageBuildCommand;
vivadaniele/spid-ionic-sdk
node_modules/ionic/dist/commands/package/build.js
JavaScript
bsd-3-clause
8,855
define( [ { "value": 40, "name": "Accessibility", "path": "Accessibility" }, { "value": 180, "name": "Accounts", "path": "Accounts", "children": [ { "value": 76, "name": "Access", "path": "Accounts/Access", "children": [ { "value": 12, "name": "DefaultAccessPlugin.bundle", "path": "Accounts/Access/DefaultAccessPlugin.bundle" }, { "value": 28, "name": "FacebookAccessPlugin.bundle", "path": "Accounts/Access/FacebookAccessPlugin.bundle" }, { "value": 20, "name": "LinkedInAccessPlugin.bundle", "path": "Accounts/Access/LinkedInAccessPlugin.bundle" }, { "value": 16, "name": "TencentWeiboAccessPlugin.bundle", "path": "Accounts/Access/TencentWeiboAccessPlugin.bundle" } ] }, { "value": 92, "name": "Authentication", "path": "Accounts/Authentication", "children": [ { "value": 24, "name": "FacebookAuthenticationPlugin.bundle", "path": "Accounts/Authentication/FacebookAuthenticationPlugin.bundle" }, { "value": 16, "name": "LinkedInAuthenticationPlugin.bundle", "path": "Accounts/Authentication/LinkedInAuthenticationPlugin.bundle" }, { "value": 20, "name": "TencentWeiboAuthenticationPlugin.bundle", "path": "Accounts/Authentication/TencentWeiboAuthenticationPlugin.bundle" }, { "value": 16, "name": "TwitterAuthenticationPlugin.bundle", "path": "Accounts/Authentication/TwitterAuthenticationPlugin.bundle" }, { "value": 16, "name": "WeiboAuthenticationPlugin.bundle", "path": "Accounts/Authentication/WeiboAuthenticationPlugin.bundle" } ] }, { "value": 12, "name": "Notification", "path": "Accounts/Notification", "children": [ { "value": 12, "name": "SPAAccountsNotificationPlugin.bundle", "path": "Accounts/Notification/SPAAccountsNotificationPlugin.bundle" } ] } ] }, { "value": 1904, "name": "AddressBook Plug-Ins", "path": "AddressBook Plug-Ins", "children": [ { "value": 744, "name": "CardDAVPlugin.sourcebundle", "path": "AddressBook Plug-Ins/CardDAVPlugin.sourcebundle", "children": [ { "value": 744, "name": "Contents", "path": "AddressBook Plug-Ins/CardDAVPlugin.sourcebundle/Contents" } ] }, { "value": 28, "name": "DirectoryServices.sourcebundle", "path": "AddressBook Plug-Ins/DirectoryServices.sourcebundle", "children": [ { "value": 28, "name": "Contents", "path": "AddressBook Plug-Ins/DirectoryServices.sourcebundle/Contents" } ] }, { "value": 680, "name": "Exchange.sourcebundle", "path": "AddressBook Plug-Ins/Exchange.sourcebundle", "children": [ { "value": 680, "name": "Contents", "path": "AddressBook Plug-Ins/Exchange.sourcebundle/Contents" } ] }, { "value": 432, "name": "LDAP.sourcebundle", "path": "AddressBook Plug-Ins/LDAP.sourcebundle", "children": [ { "value": 432, "name": "Contents", "path": "AddressBook Plug-Ins/LDAP.sourcebundle/Contents" } ] }, { "value": 20, "name": "LocalSource.sourcebundle", "path": "AddressBook Plug-Ins/LocalSource.sourcebundle", "children": [ { "value": 20, "name": "Contents", "path": "AddressBook Plug-Ins/LocalSource.sourcebundle/Contents" } ] } ] }, { "value": 36, "name": "Assistant", "path": "Assistant", "children": [ { "value": 36, "name": "Plugins", "path": "Assistant/Plugins", "children": [ { "value": 36, "name": "AddressBook.assistantBundle", "path": "Assistant/Plugins/AddressBook.assistantBundle" }, { "value": 8, "name": "GenericAddressHandler.addresshandler", "path": "Recents/Plugins/GenericAddressHandler.addresshandler" }, { "value": 12, "name": "MapsRecents.addresshandler", "path": "Recents/Plugins/MapsRecents.addresshandler" } ] } ] }, { "value": 53228, "name": "Automator", "path": "Automator", "children": [ { "value": 0, "name": "ActivateFonts.action", "path": "Automator/ActivateFonts.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/ActivateFonts.action/Contents" } ] }, { "value": 12, "name": "AddAttachments to Front Message.action", "path": "Automator/AddAttachments to Front Message.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/AddAttachments to Front Message.action/Contents" } ] }, { "value": 276, "name": "AddColor Profile.action", "path": "Automator/AddColor Profile.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/AddColor Profile.action/Contents" } ] }, { "value": 32, "name": "AddGrid to PDF Documents.action", "path": "Automator/AddGrid to PDF Documents.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/AddGrid to PDF Documents.action/Contents" } ] }, { "value": 12, "name": "AddMovie to iDVD Menu.action", "path": "Automator/AddMovie to iDVD Menu.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/AddMovie to iDVD Menu.action/Contents" } ] }, { "value": 20, "name": "AddPhotos to Album.action", "path": "Automator/AddPhotos to Album.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/AddPhotos to Album.action/Contents" } ] }, { "value": 12, "name": "AddSongs to iPod.action", "path": "Automator/AddSongs to iPod.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/AddSongs to iPod.action/Contents" } ] }, { "value": 44, "name": "AddSongs to Playlist.action", "path": "Automator/AddSongs to Playlist.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/AddSongs to Playlist.action/Contents" } ] }, { "value": 12, "name": "AddThumbnail Icon to Image Files.action", "path": "Automator/AddThumbnail Icon to Image Files.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/AddThumbnail Icon to Image Files.action/Contents" } ] }, { "value": 268, "name": "Addto Font Library.action", "path": "Automator/Addto Font Library.action", "children": [ { "value": 268, "name": "Contents", "path": "Automator/Addto Font Library.action/Contents" } ] }, { "value": 0, "name": "AddressBook.definition", "path": "Automator/AddressBook.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/AddressBook.definition/Contents" } ] }, { "value": 408, "name": "AppleVersioning Tool.action", "path": "Automator/AppleVersioning Tool.action", "children": [ { "value": 408, "name": "Contents", "path": "Automator/AppleVersioning Tool.action/Contents" } ] }, { "value": 568, "name": "ApplyColorSync Profile to Images.action", "path": "Automator/ApplyColorSync Profile to Images.action", "children": [ { "value": 568, "name": "Contents", "path": "Automator/ApplyColorSync Profile to Images.action/Contents" } ] }, { "value": 348, "name": "ApplyQuartz Composition Filter to Image Files.action", "path": "Automator/ApplyQuartz Composition Filter to Image Files.action", "children": [ { "value": 348, "name": "Contents", "path": "Automator/ApplyQuartz Composition Filter to Image Files.action/Contents" } ] }, { "value": 368, "name": "ApplyQuartz Filter to PDF Documents.action", "path": "Automator/ApplyQuartz Filter to PDF Documents.action", "children": [ { "value": 368, "name": "Contents", "path": "Automator/ApplyQuartz Filter to PDF Documents.action/Contents" } ] }, { "value": 96, "name": "ApplySQL.action", "path": "Automator/ApplySQL.action", "children": [ { "value": 96, "name": "Contents", "path": "Automator/ApplySQL.action/Contents" } ] }, { "value": 372, "name": "Askfor Confirmation.action", "path": "Automator/Askfor Confirmation.action", "children": [ { "value": 372, "name": "Contents", "path": "Automator/Askfor Confirmation.action/Contents" } ] }, { "value": 104, "name": "Askfor Finder Items.action", "path": "Automator/Askfor Finder Items.action", "children": [ { "value": 104, "name": "Contents", "path": "Automator/Askfor Finder Items.action/Contents" } ] }, { "value": 52, "name": "Askfor Movies.action", "path": "Automator/Askfor Movies.action", "children": [ { "value": 52, "name": "Contents", "path": "Automator/Askfor Movies.action/Contents" } ] }, { "value": 44, "name": "Askfor Photos.action", "path": "Automator/Askfor Photos.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/Askfor Photos.action/Contents" } ] }, { "value": 16, "name": "Askfor Servers.action", "path": "Automator/Askfor Servers.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/Askfor Servers.action/Contents" } ] }, { "value": 52, "name": "Askfor Songs.action", "path": "Automator/Askfor Songs.action", "children": [ { "value": 52, "name": "Contents", "path": "Automator/Askfor Songs.action/Contents" } ] }, { "value": 288, "name": "Askfor Text.action", "path": "Automator/Askfor Text.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/Askfor Text.action/Contents" } ] }, { "value": 0, "name": "Automator.definition", "path": "Automator/Automator.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/Automator.definition/Contents" } ] }, { "value": 12, "name": "BrowseMovies.action", "path": "Automator/BrowseMovies.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/BrowseMovies.action/Contents" } ] }, { "value": 552, "name": "BuildXcode Project.action", "path": "Automator/BuildXcode Project.action", "children": [ { "value": 552, "name": "Contents", "path": "Automator/BuildXcode Project.action/Contents" } ] }, { "value": 296, "name": "BurnA Disc.action", "path": "Automator/BurnA Disc.action", "children": [ { "value": 296, "name": "Contents", "path": "Automator/BurnA Disc.action/Contents" } ] }, { "value": 8, "name": "ChangeCase of Song Names.action", "path": "Automator/ChangeCase of Song Names.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ChangeCase of Song Names.action/Contents" } ] }, { "value": 60, "name": "ChangeType of Images.action", "path": "Automator/ChangeType of Images.action", "children": [ { "value": 60, "name": "Contents", "path": "Automator/ChangeType of Images.action/Contents" } ] }, { "value": 24, "name": "Choosefrom List.action", "path": "Automator/Choosefrom List.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/Choosefrom List.action/Contents" } ] }, { "value": 12, "name": "CombineMail Messages.action", "path": "Automator/CombineMail Messages.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/CombineMail Messages.action/Contents" } ] }, { "value": 24, "name": "CombinePDF Pages.action", "path": "Automator/CombinePDF Pages.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/CombinePDF Pages.action/Contents" } ] }, { "value": 12, "name": "CombineText Files.action", "path": "Automator/CombineText Files.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/CombineText Files.action/Contents" } ] }, { "value": 24, "name": "CompressImages in PDF Documents.action", "path": "Automator/CompressImages in PDF Documents.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/CompressImages in PDF Documents.action/Contents" } ] }, { "value": 8, "name": "Connectto Servers.action", "path": "Automator/Connectto Servers.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/Connectto Servers.action/Contents" } ] }, { "value": 8, "name": "ConvertAccount object to Mailbox object.caction", "path": "Automator/ConvertAccount object to Mailbox object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertAccount object to Mailbox object.caction/Contents" } ] }, { "value": 8, "name": "ConvertAlbum object to Photo object.caction", "path": "Automator/ConvertAlbum object to Photo object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertAlbum object to Photo object.caction/Contents" } ] }, { "value": 8, "name": "ConvertAlias object to Finder object.caction", "path": "Automator/ConvertAlias object to Finder object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertAlias object to Finder object.caction/Contents" } ] }, { "value": 8, "name": "ConvertAlias object to iPhoto photo object.caction", "path": "Automator/ConvertAlias object to iPhoto photo object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertAlias object to iPhoto photo object.caction/Contents" } ] }, { "value": 8, "name": "ConvertCalendar object to Event object.caction", "path": "Automator/ConvertCalendar object to Event object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertCalendar object to Event object.caction/Contents" } ] }, { "value": 8, "name": "ConvertCalendar object to Reminders object.caction", "path": "Automator/ConvertCalendar object to Reminders object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertCalendar object to Reminders object.caction/Contents" } ] }, { "value": 8, "name": "ConvertCocoa Data To Cocoa String.caction", "path": "Automator/ConvertCocoa Data To Cocoa String.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertCocoa Data To Cocoa String.caction/Contents" } ] }, { "value": 8, "name": "ConvertCocoa String To Cocoa Data.caction", "path": "Automator/ConvertCocoa String To Cocoa Data.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertCocoa String To Cocoa Data.caction/Contents" } ] }, { "value": 12, "name": "ConvertCocoa URL to iTunes Track Object.caction", "path": "Automator/ConvertCocoa URL to iTunes Track Object.caction", "children": [ { "value": 12, "name": "Contents", "path": "Automator/ConvertCocoa URL to iTunes Track Object.caction/Contents" } ] }, { "value": 12, "name": "ConvertCocoa URL to RSS Feed.caction", "path": "Automator/ConvertCocoa URL to RSS Feed.caction", "children": [ { "value": 12, "name": "Contents", "path": "Automator/ConvertCocoa URL to RSS Feed.caction/Contents" } ] }, { "value": 40, "name": "ConvertCSV to SQL.action", "path": "Automator/ConvertCSV to SQL.action", "children": [ { "value": 40, "name": "Contents", "path": "Automator/ConvertCSV to SQL.action/Contents" } ] }, { "value": 8, "name": "ConvertFeeds to Articles.caction", "path": "Automator/ConvertFeeds to Articles.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertFeeds to Articles.caction/Contents" } ] }, { "value": 8, "name": "ConvertFinder object to Alias object.caction", "path": "Automator/ConvertFinder object to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertFinder object to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertGroup object to Person object.caction", "path": "Automator/ConvertGroup object to Person object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertGroup object to Person object.caction/Contents" } ] }, { "value": 8, "name": "ConvertiPhoto Album to Alias object.caction", "path": "Automator/ConvertiPhoto Album to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertiPhoto Album to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertiTunes object to Alias object.caction", "path": "Automator/ConvertiTunes object to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertiTunes object to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertiTunes Playlist object to Alias object.caction", "path": "Automator/ConvertiTunes Playlist object to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertiTunes Playlist object to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertMailbox object to Message object.caction", "path": "Automator/ConvertMailbox object to Message object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertMailbox object to Message object.caction/Contents" } ] }, { "value": 8, "name": "ConvertPhoto object to Alias object.caction", "path": "Automator/ConvertPhoto object to Alias object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertPhoto object to Alias object.caction/Contents" } ] }, { "value": 8, "name": "ConvertPlaylist object to Song object.caction", "path": "Automator/ConvertPlaylist object to Song object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertPlaylist object to Song object.caction/Contents" } ] }, { "value": 2760, "name": "ConvertQuartz Compositions to QuickTime Movies.action", "path": "Automator/ConvertQuartz Compositions to QuickTime Movies.action", "children": [ { "value": 2760, "name": "Contents", "path": "Automator/ConvertQuartz Compositions to QuickTime Movies.action/Contents" } ] }, { "value": 8, "name": "ConvertSource object to Playlist object.caction", "path": "Automator/ConvertSource object to Playlist object.caction", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ConvertSource object to Playlist object.caction/Contents" } ] }, { "value": 96, "name": "CopyFinder Items.action", "path": "Automator/CopyFinder Items.action", "children": [ { "value": 96, "name": "Contents", "path": "Automator/CopyFinder Items.action/Contents" } ] }, { "value": 8, "name": "Copyto Clipboard.action", "path": "Automator/Copyto Clipboard.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/Copyto Clipboard.action/Contents" } ] }, { "value": 72, "name": "CreateAnnotated Movie File.action", "path": "Automator/CreateAnnotated Movie File.action", "children": [ { "value": 72, "name": "Contents", "path": "Automator/CreateAnnotated Movie File.action/Contents" } ] }, { "value": 96, "name": "CreateArchive.action", "path": "Automator/CreateArchive.action", "children": [ { "value": 96, "name": "Contents", "path": "Automator/CreateArchive.action/Contents" } ] }, { "value": 412, "name": "CreateBanner Image from Text.action", "path": "Automator/CreateBanner Image from Text.action", "children": [ { "value": 412, "name": "Contents", "path": "Automator/CreateBanner Image from Text.action/Contents" } ] }, { "value": 392, "name": "CreatePackage.action", "path": "Automator/CreatePackage.action", "children": [ { "value": 392, "name": "Contents", "path": "Automator/CreatePackage.action/Contents" } ] }, { "value": 208, "name": "CreateThumbnail Images.action", "path": "Automator/CreateThumbnail Images.action", "children": [ { "value": 208, "name": "Contents", "path": "Automator/CreateThumbnail Images.action/Contents" } ] }, { "value": 712, "name": "CropImages.action", "path": "Automator/CropImages.action", "children": [ { "value": 712, "name": "Contents", "path": "Automator/CropImages.action/Contents" } ] }, { "value": 8, "name": "CVSAdd.action", "path": "Automator/CVSAdd.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/CVSAdd.action/Contents" } ] }, { "value": 24, "name": "CVSCheckout.action", "path": "Automator/CVSCheckout.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/CVSCheckout.action/Contents" } ] }, { "value": 24, "name": "CVSCommit.action", "path": "Automator/CVSCommit.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/CVSCommit.action/Contents" } ] }, { "value": 276, "name": "CVSUpdate.action", "path": "Automator/CVSUpdate.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/CVSUpdate.action/Contents" } ] }, { "value": 0, "name": "DeactivateFonts.action", "path": "Automator/DeactivateFonts.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/DeactivateFonts.action/Contents" } ] }, { "value": 12, "name": "DeleteAll iPod Notes.action", "path": "Automator/DeleteAll iPod Notes.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/DeleteAll iPod Notes.action/Contents" } ] }, { "value": 32, "name": "DeleteCalendar Events.action", "path": "Automator/DeleteCalendar Events.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/DeleteCalendar Events.action/Contents" } ] }, { "value": 8, "name": "DeleteCalendar Items.action", "path": "Automator/DeleteCalendar Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DeleteCalendar Items.action/Contents" } ] }, { "value": 8, "name": "DeleteCalendars.action", "path": "Automator/DeleteCalendars.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DeleteCalendars.action/Contents" } ] }, { "value": 8, "name": "DeleteReminders.action", "path": "Automator/DeleteReminders.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DeleteReminders.action/Contents" } ] }, { "value": 12, "name": "DisplayMail Messages.action", "path": "Automator/DisplayMail Messages.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/DisplayMail Messages.action/Contents" } ] }, { "value": 16, "name": "DisplayNotification.action", "path": "Automator/DisplayNotification.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/DisplayNotification.action/Contents" } ] }, { "value": 8, "name": "DisplayWebpages 2.action", "path": "Automator/DisplayWebpages 2.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DisplayWebpages 2.action/Contents" } ] }, { "value": 12, "name": "DisplayWebpages.action", "path": "Automator/DisplayWebpages.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/DisplayWebpages.action/Contents" } ] }, { "value": 276, "name": "DownloadPictures.action", "path": "Automator/DownloadPictures.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/DownloadPictures.action/Contents" } ] }, { "value": 24, "name": "DownloadURLs.action", "path": "Automator/DownloadURLs.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/DownloadURLs.action/Contents" } ] }, { "value": 8, "name": "DuplicateFinder Items.action", "path": "Automator/DuplicateFinder Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/DuplicateFinder Items.action/Contents" } ] }, { "value": 8, "name": "EjectDisk.action", "path": "Automator/EjectDisk.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/EjectDisk.action/Contents" } ] }, { "value": 12, "name": "EjectiPod.action", "path": "Automator/EjectiPod.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/EjectiPod.action/Contents" } ] }, { "value": 276, "name": "Enableor Disable Tracks.action", "path": "Automator/Enableor Disable Tracks.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/Enableor Disable Tracks.action/Contents" } ] }, { "value": 464, "name": "EncodeMedia.action", "path": "Automator/EncodeMedia.action", "children": [ { "value": 464, "name": "Contents", "path": "Automator/EncodeMedia.action/Contents" } ] }, { "value": 80, "name": "Encodeto MPEG Audio.action", "path": "Automator/Encodeto MPEG Audio.action", "children": [ { "value": 80, "name": "Contents", "path": "Automator/Encodeto MPEG Audio.action/Contents" } ] }, { "value": 24, "name": "EncryptPDF Documents.action", "path": "Automator/EncryptPDF Documents.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/EncryptPDF Documents.action/Contents" } ] }, { "value": 12, "name": "EventSummary.action", "path": "Automator/EventSummary.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/EventSummary.action/Contents" } ] }, { "value": 24, "name": "ExecuteSQL.action", "path": "Automator/ExecuteSQL.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/ExecuteSQL.action/Contents" } ] }, { "value": 264, "name": "ExportFont Files.action", "path": "Automator/ExportFont Files.action", "children": [ { "value": 264, "name": "Contents", "path": "Automator/ExportFont Files.action/Contents" } ] }, { "value": 24, "name": "ExportMovies for iPod.action", "path": "Automator/ExportMovies for iPod.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/ExportMovies for iPod.action/Contents" } ] }, { "value": 44, "name": "ExportvCards.action", "path": "Automator/ExportvCards.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/ExportvCards.action/Contents" } ] }, { "value": 12, "name": "ExtractData from Text.action", "path": "Automator/ExtractData from Text.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/ExtractData from Text.action/Contents" } ] }, { "value": 24, "name": "ExtractOdd & Even Pages.action", "path": "Automator/ExtractOdd & Even Pages.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/ExtractOdd & Even Pages.action/Contents" } ] }, { "value": 276, "name": "ExtractPDF Annotations.action", "path": "Automator/ExtractPDF Annotations.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/ExtractPDF Annotations.action/Contents" } ] }, { "value": 2620, "name": "ExtractPDF Text.action", "path": "Automator/ExtractPDF Text.action", "children": [ { "value": 2620, "name": "Contents", "path": "Automator/ExtractPDF Text.action/Contents" } ] }, { "value": 44, "name": "FilterArticles.action", "path": "Automator/FilterArticles.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/FilterArticles.action/Contents" } ] }, { "value": 272, "name": "FilterCalendar Items 2.action", "path": "Automator/FilterCalendar Items 2.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/FilterCalendar Items 2.action/Contents" } ] }, { "value": 280, "name": "FilterContacts Items 2.action", "path": "Automator/FilterContacts Items 2.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FilterContacts Items 2.action/Contents" } ] }, { "value": 280, "name": "FilterFinder Items 2.action", "path": "Automator/FilterFinder Items 2.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FilterFinder Items 2.action/Contents" } ] }, { "value": 12, "name": "FilterFinder Items.action", "path": "Automator/FilterFinder Items.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/FilterFinder Items.action/Contents" } ] }, { "value": 264, "name": "FilterFonts by Font Type.action", "path": "Automator/FilterFonts by Font Type.action", "children": [ { "value": 264, "name": "Contents", "path": "Automator/FilterFonts by Font Type.action/Contents" } ] }, { "value": 280, "name": "FilteriPhoto Items 2.action", "path": "Automator/FilteriPhoto Items 2.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FilteriPhoto Items 2.action/Contents" } ] }, { "value": 272, "name": "FilterItems.action", "path": "Automator/FilterItems.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/FilterItems.action/Contents" } ] }, { "value": 276, "name": "FilteriTunes Items 2.action", "path": "Automator/FilteriTunes Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FilteriTunes Items 2.action/Contents" } ] }, { "value": 276, "name": "FilterMail Items 2.action", "path": "Automator/FilterMail Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FilterMail Items 2.action/Contents" } ] }, { "value": 60, "name": "FilterParagraphs.action", "path": "Automator/FilterParagraphs.action", "children": [ { "value": 60, "name": "Contents", "path": "Automator/FilterParagraphs.action/Contents" } ] }, { "value": 276, "name": "FilterURLs 2.action", "path": "Automator/FilterURLs 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FilterURLs 2.action/Contents" } ] }, { "value": 12, "name": "FilterURLs.action", "path": "Automator/FilterURLs.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/FilterURLs.action/Contents" } ] }, { "value": 272, "name": "FindCalendar Items 2.action", "path": "Automator/FindCalendar Items 2.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/FindCalendar Items 2.action/Contents" } ] }, { "value": 276, "name": "FindContacts Items 2.action", "path": "Automator/FindContacts Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FindContacts Items 2.action/Contents" } ] }, { "value": 276, "name": "FindFinder Items 2.action", "path": "Automator/FindFinder Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FindFinder Items 2.action/Contents" } ] }, { "value": 280, "name": "FindFinder Items.action", "path": "Automator/FindFinder Items.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FindFinder Items.action/Contents" } ] }, { "value": 276, "name": "FindiPhoto Items 2.action", "path": "Automator/FindiPhoto Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FindiPhoto Items 2.action/Contents" } ] }, { "value": 272, "name": "FindItems.action", "path": "Automator/FindItems.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/FindItems.action/Contents" } ] }, { "value": 276, "name": "FindiTunes Items 2.action", "path": "Automator/FindiTunes Items 2.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/FindiTunes Items 2.action/Contents" } ] }, { "value": 280, "name": "FindMail Items 2.action", "path": "Automator/FindMail Items 2.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/FindMail Items 2.action/Contents" } ] }, { "value": 84, "name": "FindPeople with Birthdays.action", "path": "Automator/FindPeople with Birthdays.action", "children": [ { "value": 84, "name": "Contents", "path": "Automator/FindPeople with Birthdays.action/Contents" } ] }, { "value": 0, "name": "Finder.definition", "path": "Automator/Finder.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/Finder.definition/Contents" } ] }, { "value": 104, "name": "FlipImages.action", "path": "Automator/FlipImages.action", "children": [ { "value": 104, "name": "Contents", "path": "Automator/FlipImages.action/Contents" } ] }, { "value": 0, "name": "FontBook.definition", "path": "Automator/FontBook.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/FontBook.definition/Contents" } ] }, { "value": 36, "name": "GetAttachments from Mail Messages.action", "path": "Automator/GetAttachments from Mail Messages.action", "children": [ { "value": 36, "name": "Contents", "path": "Automator/GetAttachments from Mail Messages.action/Contents" } ] }, { "value": 180, "name": "GetContact Information.action", "path": "Automator/GetContact Information.action", "children": [ { "value": 180, "name": "Contents", "path": "Automator/GetContact Information.action/Contents" } ] }, { "value": 8, "name": "GetContents of Clipboard.action", "path": "Automator/GetContents of Clipboard.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetContents of Clipboard.action/Contents" } ] }, { "value": 8, "name": "GetContents of TextEdit Document.action", "path": "Automator/GetContents of TextEdit Document.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetContents of TextEdit Document.action/Contents" } ] }, { "value": 12, "name": "GetContents of Webpages.action", "path": "Automator/GetContents of Webpages.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/GetContents of Webpages.action/Contents" } ] }, { "value": 8, "name": "GetCurrent Webpage from Safari.action", "path": "Automator/GetCurrent Webpage from Safari.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetCurrent Webpage from Safari.action/Contents" } ] }, { "value": 84, "name": "GetDefinition of Word.action", "path": "Automator/GetDefinition of Word.action", "children": [ { "value": 84, "name": "Contents", "path": "Automator/GetDefinition of Word.action/Contents" } ] }, { "value": 8, "name": "GetEnclosure URLs from Articles.action", "path": "Automator/GetEnclosure URLs from Articles.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetEnclosure URLs from Articles.action/Contents" } ] }, { "value": 12, "name": "GetFeeds from URLs.action", "path": "Automator/GetFeeds from URLs.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/GetFeeds from URLs.action/Contents" } ] }, { "value": 0, "name": "GetFiles for Fonts.action", "path": "Automator/GetFiles for Fonts.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/GetFiles for Fonts.action/Contents" } ] }, { "value": 12, "name": "GetFolder Contents.action", "path": "Automator/GetFolder Contents.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/GetFolder Contents.action/Contents" } ] }, { "value": 412, "name": "GetFont Info.action", "path": "Automator/GetFont Info.action", "children": [ { "value": 412, "name": "Contents", "path": "Automator/GetFont Info.action/Contents" } ] }, { "value": 0, "name": "GetFonts from Font Files.action", "path": "Automator/GetFonts from Font Files.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/GetFonts from Font Files.action/Contents" } ] }, { "value": 0, "name": "GetFonts of TextEdit Document.action", "path": "Automator/GetFonts of TextEdit Document.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/GetFonts of TextEdit Document.action/Contents" } ] }, { "value": 20, "name": "GetiDVD Slideshow Images.action", "path": "Automator/GetiDVD Slideshow Images.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/GetiDVD Slideshow Images.action/Contents" } ] }, { "value": 28, "name": "GetImage URLs from Articles.action", "path": "Automator/GetImage URLs from Articles.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/GetImage URLs from Articles.action/Contents" } ] }, { "value": 52, "name": "GetImage URLs from Webpage.action", "path": "Automator/GetImage URLs from Webpage.action", "children": [ { "value": 52, "name": "Contents", "path": "Automator/GetImage URLs from Webpage.action/Contents" } ] }, { "value": 12, "name": "GetLink URLs from Articles.action", "path": "Automator/GetLink URLs from Articles.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/GetLink URLs from Articles.action/Contents" } ] }, { "value": 24, "name": "GetLink URLs from Webpages.action", "path": "Automator/GetLink URLs from Webpages.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/GetLink URLs from Webpages.action/Contents" } ] }, { "value": 20, "name": "GetNew Mail.action", "path": "Automator/GetNew Mail.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/GetNew Mail.action/Contents" } ] }, { "value": 276, "name": "GetPDF Metadata.action", "path": "Automator/GetPDF Metadata.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/GetPDF Metadata.action/Contents" } ] }, { "value": 8, "name": "GetPermalinks of Articles.action", "path": "Automator/GetPermalinks of Articles.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetPermalinks of Articles.action/Contents" } ] }, { "value": 0, "name": "GetPostScript name of Font.action", "path": "Automator/GetPostScript name of Font.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/GetPostScript name of Font.action/Contents" } ] }, { "value": 44, "name": "GetSelected Contacts Items 2.action", "path": "Automator/GetSelected Contacts Items 2.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/GetSelected Contacts Items 2.action/Contents" } ] }, { "value": 8, "name": "GetSelected Finder Items 2.action", "path": "Automator/GetSelected Finder Items 2.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetSelected Finder Items 2.action/Contents" } ] }, { "value": 28, "name": "GetSelected iPhoto Items 2.action", "path": "Automator/GetSelected iPhoto Items 2.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/GetSelected iPhoto Items 2.action/Contents" } ] }, { "value": 8, "name": "GetSelected Items.action", "path": "Automator/GetSelected Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetSelected Items.action/Contents" } ] }, { "value": 28, "name": "GetSelected iTunes Items 2.action", "path": "Automator/GetSelected iTunes Items 2.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/GetSelected iTunes Items 2.action/Contents" } ] }, { "value": 28, "name": "GetSelected Mail Items 2.action", "path": "Automator/GetSelected Mail Items 2.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/GetSelected Mail Items 2.action/Contents" } ] }, { "value": 540, "name": "GetSpecified Calendar Items.action", "path": "Automator/GetSpecified Calendar Items.action", "children": [ { "value": 540, "name": "Contents", "path": "Automator/GetSpecified Calendar Items.action/Contents" } ] }, { "value": 292, "name": "GetSpecified Contacts Items.action", "path": "Automator/GetSpecified Contacts Items.action", "children": [ { "value": 292, "name": "Contents", "path": "Automator/GetSpecified Contacts Items.action/Contents" } ] }, { "value": 308, "name": "GetSpecified Finder Items.action", "path": "Automator/GetSpecified Finder Items.action", "children": [ { "value": 308, "name": "Contents", "path": "Automator/GetSpecified Finder Items.action/Contents" } ] }, { "value": 288, "name": "GetSpecified iPhoto Items.action", "path": "Automator/GetSpecified iPhoto Items.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/GetSpecified iPhoto Items.action/Contents" } ] }, { "value": 288, "name": "GetSpecified iTunes Items.action", "path": "Automator/GetSpecified iTunes Items.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/GetSpecified iTunes Items.action/Contents" } ] }, { "value": 380, "name": "GetSpecified Mail Items.action", "path": "Automator/GetSpecified Mail Items.action", "children": [ { "value": 380, "name": "Contents", "path": "Automator/GetSpecified Mail Items.action/Contents" } ] }, { "value": 288, "name": "GetSpecified Movies.action", "path": "Automator/GetSpecified Movies.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/GetSpecified Movies.action/Contents" } ] }, { "value": 276, "name": "GetSpecified Servers.action", "path": "Automator/GetSpecified Servers.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/GetSpecified Servers.action/Contents" } ] }, { "value": 272, "name": "GetSpecified Text.action", "path": "Automator/GetSpecified Text.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/GetSpecified Text.action/Contents" } ] }, { "value": 288, "name": "GetSpecified URLs.action", "path": "Automator/GetSpecified URLs.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/GetSpecified URLs.action/Contents" } ] }, { "value": 8, "name": "GetText from Articles.action", "path": "Automator/GetText from Articles.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/GetText from Articles.action/Contents" } ] }, { "value": 40, "name": "GetText from Webpage.action", "path": "Automator/GetText from Webpage.action", "children": [ { "value": 40, "name": "Contents", "path": "Automator/GetText from Webpage.action/Contents" } ] }, { "value": 8, "name": "Getthe Current Song.action", "path": "Automator/Getthe Current Song.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/Getthe Current Song.action/Contents" } ] }, { "value": 36, "name": "GetValue of Variable.action", "path": "Automator/GetValue of Variable.action", "children": [ { "value": 36, "name": "Contents", "path": "Automator/GetValue of Variable.action/Contents" } ] }, { "value": 280, "name": "GroupMailer.action", "path": "Automator/GroupMailer.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/GroupMailer.action/Contents" } ] }, { "value": 8, "name": "HideAll Applications.action", "path": "Automator/HideAll Applications.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/HideAll Applications.action/Contents" } ] }, { "value": 12, "name": "HintMovies.action", "path": "Automator/HintMovies.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/HintMovies.action/Contents" } ] }, { "value": 0, "name": "iCal.definition", "path": "Automator/iCal.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/iCal.definition/Contents" } ] }, { "value": 44, "name": "ImportAudio Files.action", "path": "Automator/ImportAudio Files.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/ImportAudio Files.action/Contents" } ] }, { "value": 28, "name": "ImportFiles into iPhoto.action", "path": "Automator/ImportFiles into iPhoto.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/ImportFiles into iPhoto.action/Contents" } ] }, { "value": 24, "name": "ImportFiles into iTunes.action", "path": "Automator/ImportFiles into iTunes.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/ImportFiles into iTunes.action/Contents" } ] }, { "value": 256, "name": "InitiateRemote Broadcast.action", "path": "Automator/InitiateRemote Broadcast.action", "children": [ { "value": 256, "name": "Contents", "path": "Automator/InitiateRemote Broadcast.action/Contents" } ] }, { "value": 0, "name": "iPhoto.definition", "path": "Automator/iPhoto.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/iPhoto.definition/Contents" } ] }, { "value": 0, "name": "iTunes.definition", "path": "Automator/iTunes.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/iTunes.definition/Contents" } ] }, { "value": 24, "name": "LabelFinder Items.action", "path": "Automator/LabelFinder Items.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/LabelFinder Items.action/Contents" } ] }, { "value": 8, "name": "LaunchApplication.action", "path": "Automator/LaunchApplication.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/LaunchApplication.action/Contents" } ] }, { "value": 24, "name": "Loop.action", "path": "Automator/Loop.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/Loop.action/Contents" } ] }, { "value": 0, "name": "Mail.definition", "path": "Automator/Mail.definition", "children": [ { "value": 0, "name": "Contents", "path": "Automator/Mail.definition/Contents" } ] }, { "value": 16, "name": "MarkArticles.action", "path": "Automator/MarkArticles.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/MarkArticles.action/Contents" } ] }, { "value": 12, "name": "MountDisk Image.action", "path": "Automator/MountDisk Image.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/MountDisk Image.action/Contents" } ] }, { "value": 12, "name": "MoveFinder Items to Trash.action", "path": "Automator/MoveFinder Items to Trash.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/MoveFinder Items to Trash.action/Contents" } ] }, { "value": 28, "name": "MoveFinder Items.action", "path": "Automator/MoveFinder Items.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/MoveFinder Items.action/Contents" } ] }, { "value": 108, "name": "NewAliases.action", "path": "Automator/NewAliases.action", "children": [ { "value": 108, "name": "Contents", "path": "Automator/NewAliases.action/Contents" } ] }, { "value": 0, "name": "NewAudio Capture.action", "path": "Automator/NewAudio Capture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/NewAudio Capture.action/Contents" } ] }, { "value": 676, "name": "NewCalendar Events Leopard.action", "path": "Automator/NewCalendar Events Leopard.action", "children": [ { "value": 676, "name": "Contents", "path": "Automator/NewCalendar Events Leopard.action/Contents" } ] }, { "value": 24, "name": "NewCalendar.action", "path": "Automator/NewCalendar.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/NewCalendar.action/Contents" } ] }, { "value": 64, "name": "NewDisk Image.action", "path": "Automator/NewDisk Image.action", "children": [ { "value": 64, "name": "Contents", "path": "Automator/NewDisk Image.action/Contents" } ] }, { "value": 20, "name": "NewFolder.action", "path": "Automator/NewFolder.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/NewFolder.action/Contents" } ] }, { "value": 20, "name": "NewiDVD Menu.action", "path": "Automator/NewiDVD Menu.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/NewiDVD Menu.action/Contents" } ] }, { "value": 20, "name": "NewiDVD Movie Sequence.action", "path": "Automator/NewiDVD Movie Sequence.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/NewiDVD Movie Sequence.action/Contents" } ] }, { "value": 64, "name": "NewiDVD Slideshow.action", "path": "Automator/NewiDVD Slideshow.action", "children": [ { "value": 64, "name": "Contents", "path": "Automator/NewiDVD Slideshow.action/Contents" } ] }, { "value": 12, "name": "NewiPhoto Album.action", "path": "Automator/NewiPhoto Album.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/NewiPhoto Album.action/Contents" } ] }, { "value": 32, "name": "NewiPod Note.action", "path": "Automator/NewiPod Note.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/NewiPod Note.action/Contents" } ] }, { "value": 12, "name": "NewiTunes Playlist.action", "path": "Automator/NewiTunes Playlist.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/NewiTunes Playlist.action/Contents" } ] }, { "value": 576, "name": "NewMail Message.action", "path": "Automator/NewMail Message.action", "children": [ { "value": 576, "name": "Contents", "path": "Automator/NewMail Message.action/Contents" } ] }, { "value": 32, "name": "NewPDF Contact Sheet.action", "path": "Automator/NewPDF Contact Sheet.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/NewPDF Contact Sheet.action/Contents" } ] }, { "value": 4444, "name": "NewPDF from Images.action", "path": "Automator/NewPDF from Images.action", "children": [ { "value": 4444, "name": "Contents", "path": "Automator/NewPDF from Images.action/Contents" } ] }, { "value": 1976, "name": "NewQuickTime Slideshow.action", "path": "Automator/NewQuickTime Slideshow.action", "children": [ { "value": 1976, "name": "Contents", "path": "Automator/NewQuickTime Slideshow.action/Contents" } ] }, { "value": 808, "name": "NewReminders Item.action", "path": "Automator/NewReminders Item.action", "children": [ { "value": 808, "name": "Contents", "path": "Automator/NewReminders Item.action/Contents" } ] }, { "value": 0, "name": "NewScreen Capture.action", "path": "Automator/NewScreen Capture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/NewScreen Capture.action/Contents" } ] }, { "value": 64, "name": "NewText File.action", "path": "Automator/NewText File.action", "children": [ { "value": 64, "name": "Contents", "path": "Automator/NewText File.action/Contents" } ] }, { "value": 8, "name": "NewTextEdit Document.action", "path": "Automator/NewTextEdit Document.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/NewTextEdit Document.action/Contents" } ] }, { "value": 0, "name": "NewVideo Capture.action", "path": "Automator/NewVideo Capture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/NewVideo Capture.action/Contents" } ] }, { "value": 28, "name": "OpenFinder Items.action", "path": "Automator/OpenFinder Items.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/OpenFinder Items.action/Contents" } ] }, { "value": 12, "name": "OpenImages in Preview.action", "path": "Automator/OpenImages in Preview.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/OpenImages in Preview.action/Contents" } ] }, { "value": 12, "name": "OpenKeynote Presentations.action", "path": "Automator/OpenKeynote Presentations.action", "children": [ { "value": 12, "name": "Contents", "path": "Automator/OpenKeynote Presentations.action/Contents" } ] }, { "value": 60, "name": "PadImages.action", "path": "Automator/PadImages.action", "children": [ { "value": 60, "name": "Contents", "path": "Automator/PadImages.action/Contents" } ] }, { "value": 0, "name": "PauseCapture.action", "path": "Automator/PauseCapture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/PauseCapture.action/Contents" } ] }, { "value": 8, "name": "PauseDVD Playback.action", "path": "Automator/PauseDVD Playback.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/PauseDVD Playback.action/Contents" } ] }, { "value": 8, "name": "PauseiTunes.action", "path": "Automator/PauseiTunes.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/PauseiTunes.action/Contents" } ] }, { "value": 20, "name": "Pause.action", "path": "Automator/Pause.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/Pause.action/Contents" } ] }, { "value": 3696, "name": "PDFto Images.action", "path": "Automator/PDFto Images.action", "children": [ { "value": 3696, "name": "Contents", "path": "Automator/PDFto Images.action/Contents" } ] }, { "value": 276, "name": "PlayDVD.action", "path": "Automator/PlayDVD.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/PlayDVD.action/Contents" } ] }, { "value": 8, "name": "PlayiPhoto Slideshow.action", "path": "Automator/PlayiPhoto Slideshow.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/PlayiPhoto Slideshow.action/Contents" } ] }, { "value": 8, "name": "PlayiTunes Playlist.action", "path": "Automator/PlayiTunes Playlist.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/PlayiTunes Playlist.action/Contents" } ] }, { "value": 264, "name": "PlayMovies.action", "path": "Automator/PlayMovies.action", "children": [ { "value": 264, "name": "Contents", "path": "Automator/PlayMovies.action/Contents" } ] }, { "value": 20, "name": "PrintFinder Items.action", "path": "Automator/PrintFinder Items.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/PrintFinder Items.action/Contents" } ] }, { "value": 108, "name": "PrintImages.action", "path": "Automator/PrintImages.action", "children": [ { "value": 108, "name": "Contents", "path": "Automator/PrintImages.action/Contents" } ] }, { "value": 32, "name": "PrintKeynote Presentation.action", "path": "Automator/PrintKeynote Presentation.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/PrintKeynote Presentation.action/Contents" } ] }, { "value": 288, "name": "QuitAll Applications.action", "path": "Automator/QuitAll Applications.action", "children": [ { "value": 288, "name": "Contents", "path": "Automator/QuitAll Applications.action/Contents" } ] }, { "value": 24, "name": "QuitApplication.action", "path": "Automator/QuitApplication.action", "children": [ { "value": 24, "name": "Contents", "path": "Automator/QuitApplication.action/Contents" } ] }, { "value": 8, "name": "RemoveEmpty Playlists.action", "path": "Automator/RemoveEmpty Playlists.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/RemoveEmpty Playlists.action/Contents" } ] }, { "value": 0, "name": "RemoveFont Files.action", "path": "Automator/RemoveFont Files.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/RemoveFont Files.action/Contents" } ] }, { "value": 1092, "name": "RenameFinder Items.action", "path": "Automator/RenameFinder Items.action", "children": [ { "value": 1092, "name": "Contents", "path": "Automator/RenameFinder Items.action/Contents" } ] }, { "value": 16, "name": "RenamePDF Documents.action", "path": "Automator/RenamePDF Documents.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/RenamePDF Documents.action/Contents" } ] }, { "value": 32, "name": "RenderPDF Pages as Images.action", "path": "Automator/RenderPDF Pages as Images.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/RenderPDF Pages as Images.action/Contents" } ] }, { "value": 2888, "name": "RenderQuartz Compositions to Image Files.action", "path": "Automator/RenderQuartz Compositions to Image Files.action", "children": [ { "value": 2888, "name": "Contents", "path": "Automator/RenderQuartz Compositions to Image Files.action/Contents" } ] }, { "value": 0, "name": "ResumeCapture.action", "path": "Automator/ResumeCapture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/ResumeCapture.action/Contents" } ] }, { "value": 8, "name": "ResumeDVD Playback.action", "path": "Automator/ResumeDVD Playback.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ResumeDVD Playback.action/Contents" } ] }, { "value": 8, "name": "RevealFinder Items.action", "path": "Automator/RevealFinder Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/RevealFinder Items.action/Contents" } ] }, { "value": 428, "name": "ReviewPhotos.action", "path": "Automator/ReviewPhotos.action", "children": [ { "value": 428, "name": "Contents", "path": "Automator/ReviewPhotos.action/Contents" } ] }, { "value": 56, "name": "RotateImages.action", "path": "Automator/RotateImages.action", "children": [ { "value": 56, "name": "Contents", "path": "Automator/RotateImages.action/Contents" } ] }, { "value": 308, "name": "RunAppleScript.action", "path": "Automator/RunAppleScript.action", "children": [ { "value": 308, "name": "Contents", "path": "Automator/RunAppleScript.action/Contents" } ] }, { "value": 20, "name": "RunSelf-Test.action", "path": "Automator/RunSelf-Test.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/RunSelf-Test.action/Contents" } ] }, { "value": 316, "name": "RunShell Script.action", "path": "Automator/RunShell Script.action", "children": [ { "value": 316, "name": "Contents", "path": "Automator/RunShell Script.action/Contents" } ] }, { "value": 36, "name": "RunWeb Service.action", "path": "Automator/RunWeb Service.action", "children": [ { "value": 36, "name": "Contents", "path": "Automator/RunWeb Service.action/Contents" } ] }, { "value": 416, "name": "RunWorkflow.action", "path": "Automator/RunWorkflow.action", "children": [ { "value": 416, "name": "Contents", "path": "Automator/RunWorkflow.action/Contents" } ] }, { "value": 32, "name": "SaveImages from Web Content.action", "path": "Automator/SaveImages from Web Content.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/SaveImages from Web Content.action/Contents" } ] }, { "value": 20, "name": "ScaleImages.action", "path": "Automator/ScaleImages.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/ScaleImages.action/Contents" } ] }, { "value": 2112, "name": "SearchPDFs.action", "path": "Automator/SearchPDFs.action", "children": [ { "value": 2112, "name": "Contents", "path": "Automator/SearchPDFs.action/Contents" } ] }, { "value": 0, "name": "SelectFonts in Font Book.action", "path": "Automator/SelectFonts in Font Book.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/SelectFonts in Font Book.action/Contents" } ] }, { "value": 944, "name": "SendBirthday Greetings.action", "path": "Automator/SendBirthday Greetings.action", "children": [ { "value": 944, "name": "Contents", "path": "Automator/SendBirthday Greetings.action/Contents" } ] }, { "value": 8, "name": "SendOutgoing Messages.action", "path": "Automator/SendOutgoing Messages.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/SendOutgoing Messages.action/Contents" } ] }, { "value": 16, "name": "SetApplication for Files.action", "path": "Automator/SetApplication for Files.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/SetApplication for Files.action/Contents" } ] }, { "value": 340, "name": "SetComputer Volume.action", "path": "Automator/SetComputer Volume.action", "children": [ { "value": 340, "name": "Contents", "path": "Automator/SetComputer Volume.action/Contents" } ] }, { "value": 44, "name": "SetContents of TextEdit Document.action", "path": "Automator/SetContents of TextEdit Document.action", "children": [ { "value": 44, "name": "Contents", "path": "Automator/SetContents of TextEdit Document.action/Contents" } ] }, { "value": 8, "name": "SetDesktop Picture.action", "path": "Automator/SetDesktop Picture.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/SetDesktop Picture.action/Contents" } ] }, { "value": 820, "name": "SetFolder Views.action", "path": "Automator/SetFolder Views.action", "children": [ { "value": 820, "name": "Contents", "path": "Automator/SetFolder Views.action/Contents" } ] }, { "value": 8, "name": "SetiDVD Background Image.action", "path": "Automator/SetiDVD Background Image.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/SetiDVD Background Image.action/Contents" } ] }, { "value": 20, "name": "SetiDVD Button Face.action", "path": "Automator/SetiDVD Button Face.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/SetiDVD Button Face.action/Contents" } ] }, { "value": 112, "name": "SetInfo of iTunes Songs.action", "path": "Automator/SetInfo of iTunes Songs.action", "children": [ { "value": 112, "name": "Contents", "path": "Automator/SetInfo of iTunes Songs.action/Contents" } ] }, { "value": 408, "name": "SetiTunes Equalizer.action", "path": "Automator/SetiTunes Equalizer.action", "children": [ { "value": 408, "name": "Contents", "path": "Automator/SetiTunes Equalizer.action/Contents" } ] }, { "value": 32, "name": "SetiTunes Volume.action", "path": "Automator/SetiTunes Volume.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/SetiTunes Volume.action/Contents" } ] }, { "value": 280, "name": "SetMovie Annotations.action", "path": "Automator/SetMovie Annotations.action", "children": [ { "value": 280, "name": "Contents", "path": "Automator/SetMovie Annotations.action/Contents" } ] }, { "value": 256, "name": "SetMovie Playback Properties.action", "path": "Automator/SetMovie Playback Properties.action", "children": [ { "value": 256, "name": "Contents", "path": "Automator/SetMovie Playback Properties.action/Contents" } ] }, { "value": 0, "name": "SetMovie URL.action", "path": "Automator/SetMovie URL.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/SetMovie URL.action/Contents" } ] }, { "value": 408, "name": "SetOptions of iTunes Songs.action", "path": "Automator/SetOptions of iTunes Songs.action", "children": [ { "value": 408, "name": "Contents", "path": "Automator/SetOptions of iTunes Songs.action/Contents" } ] }, { "value": 408, "name": "SetPDF Metadata.action", "path": "Automator/SetPDF Metadata.action", "children": [ { "value": 408, "name": "Contents", "path": "Automator/SetPDF Metadata.action/Contents" } ] }, { "value": 8, "name": "SetSpotlight Comments for Finder Items.action", "path": "Automator/SetSpotlight Comments for Finder Items.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/SetSpotlight Comments for Finder Items.action/Contents" } ] }, { "value": 20, "name": "SetValue of Variable.action", "path": "Automator/SetValue of Variable.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/SetValue of Variable.action/Contents" } ] }, { "value": 8, "name": "ShowMain iDVD Menu.action", "path": "Automator/ShowMain iDVD Menu.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ShowMain iDVD Menu.action/Contents" } ] }, { "value": 8, "name": "ShowNext Keynote Slide.action", "path": "Automator/ShowNext Keynote Slide.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ShowNext Keynote Slide.action/Contents" } ] }, { "value": 8, "name": "ShowPrevious Keynote Slide.action", "path": "Automator/ShowPrevious Keynote Slide.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/ShowPrevious Keynote Slide.action/Contents" } ] }, { "value": 16, "name": "ShowSpecified Keynote Slide.action", "path": "Automator/ShowSpecified Keynote Slide.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/ShowSpecified Keynote Slide.action/Contents" } ] }, { "value": 36, "name": "SortFinder Items.action", "path": "Automator/SortFinder Items.action", "children": [ { "value": 36, "name": "Contents", "path": "Automator/SortFinder Items.action/Contents" } ] }, { "value": 32, "name": "SpeakText.action", "path": "Automator/SpeakText.action", "children": [ { "value": 32, "name": "Contents", "path": "Automator/SpeakText.action/Contents" } ] }, { "value": 20, "name": "SpotlightLeopard.action", "path": "Automator/SpotlightLeopard.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/SpotlightLeopard.action/Contents" } ] }, { "value": 0, "name": "StartCapture.action", "path": "Automator/StartCapture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/StartCapture.action/Contents" } ] }, { "value": 8, "name": "StartiTunes Playing.action", "path": "Automator/StartiTunes Playing.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StartiTunes Playing.action/Contents" } ] }, { "value": 8, "name": "StartiTunes Visuals.action", "path": "Automator/StartiTunes Visuals.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StartiTunes Visuals.action/Contents" } ] }, { "value": 16, "name": "StartKeynote Slideshow.action", "path": "Automator/StartKeynote Slideshow.action", "children": [ { "value": 16, "name": "Contents", "path": "Automator/StartKeynote Slideshow.action/Contents" } ] }, { "value": 8, "name": "StartScreen Saver.action", "path": "Automator/StartScreen Saver.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StartScreen Saver.action/Contents" } ] }, { "value": 0, "name": "StopCapture.action", "path": "Automator/StopCapture.action", "children": [ { "value": 0, "name": "Contents", "path": "Automator/StopCapture.action/Contents" } ] }, { "value": 8, "name": "StopDVD Playback.action", "path": "Automator/StopDVD Playback.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StopDVD Playback.action/Contents" } ] }, { "value": 8, "name": "StopiTunes Visuals.action", "path": "Automator/StopiTunes Visuals.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StopiTunes Visuals.action/Contents" } ] }, { "value": 8, "name": "StopKeynote Slideshow.action", "path": "Automator/StopKeynote Slideshow.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/StopKeynote Slideshow.action/Contents" } ] }, { "value": 28, "name": "SystemProfile.action", "path": "Automator/SystemProfile.action", "children": [ { "value": 28, "name": "Contents", "path": "Automator/SystemProfile.action/Contents" } ] }, { "value": 276, "name": "TakePicture.action", "path": "Automator/TakePicture.action", "children": [ { "value": 276, "name": "Contents", "path": "Automator/TakePicture.action/Contents" } ] }, { "value": 420, "name": "TakeScreenshot.action", "path": "Automator/TakeScreenshot.action", "children": [ { "value": 420, "name": "Contents", "path": "Automator/TakeScreenshot.action/Contents" } ] }, { "value": 20, "name": "TakeVideo Snapshot.action", "path": "Automator/TakeVideo Snapshot.action", "children": [ { "value": 20, "name": "Contents", "path": "Automator/TakeVideo Snapshot.action/Contents" } ] }, { "value": 100, "name": "Textto Audio File.action", "path": "Automator/Textto Audio File.action", "children": [ { "value": 100, "name": "Contents", "path": "Automator/Textto Audio File.action/Contents" } ] }, { "value": 436, "name": "Textto EPUB File.action", "path": "Automator/Textto EPUB File.action", "children": [ { "value": 436, "name": "Contents", "path": "Automator/Textto EPUB File.action/Contents" } ] }, { "value": 8, "name": "UpdateiPod.action", "path": "Automator/UpdateiPod.action", "children": [ { "value": 8, "name": "Contents", "path": "Automator/UpdateiPod.action/Contents" } ] }, { "value": 264, "name": "ValidateFont Files.action", "path": "Automator/ValidateFont Files.action", "children": [ { "value": 264, "name": "Contents", "path": "Automator/ValidateFont Files.action/Contents" } ] }, { "value": 272, "name": "ViewResults.action", "path": "Automator/ViewResults.action", "children": [ { "value": 272, "name": "Contents", "path": "Automator/ViewResults.action/Contents" } ] }, { "value": 64, "name": "Waitfor User Action.action", "path": "Automator/Waitfor User Action.action", "children": [ { "value": 64, "name": "Contents", "path": "Automator/Waitfor User Action.action/Contents" } ] }, { "value": 456, "name": "WatchMe Do.action", "path": "Automator/WatchMe Do.action", "children": [ { "value": 456, "name": "Contents", "path": "Automator/WatchMe Do.action/Contents" } ] }, { "value": 72, "name": "WatermarkPDF Documents.action", "path": "Automator/WatermarkPDF Documents.action", "children": [ { "value": 72, "name": "Contents", "path": "Automator/WatermarkPDF Documents.action/Contents" } ] }, { "value": 80, "name": "WebsitePopup.action", "path": "Automator/WebsitePopup.action", "children": [ { "value": 80, "name": "Contents", "path": "Automator/WebsitePopup.action/Contents" } ] } ] }, { "value": 2868, "name": "BridgeSupport", "path": "BridgeSupport", "children": [ { "value": 0, "name": "include", "path": "BridgeSupport/include" }, { "value": 2840, "name": "ruby-2.0", "path": "BridgeSupport/ruby-2.0" } ] }, { "value": 21988, "name": "Caches", "path": "Caches", "children": [ { "value": 2296, "name": "com.apple.CVMS", "path": "Caches/com.apple.CVMS" }, { "value": 19048, "name": "com.apple.kext.caches", "path": "Caches/com.apple.kext.caches", "children": [ { "value": 12, "name": "Directories", "path": "Caches/com.apple.kext.caches/Directories" }, { "value": 19036, "name": "Startup", "path": "Caches/com.apple.kext.caches/Startup" } ] } ] }, { "value": 2252, "name": "ColorPickers", "path": "ColorPickers", "children": [ { "value": 288, "name": "NSColorPickerCrayon.colorPicker", "path": "ColorPickers/NSColorPickerCrayon.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerCrayon.colorPicker/_CodeSignature" }, { "value": 288, "name": "Resources", "path": "ColorPickers/NSColorPickerCrayon.colorPicker/Resources" } ] }, { "value": 524, "name": "NSColorPickerPageableNameList.colorPicker", "path": "ColorPickers/NSColorPickerPageableNameList.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerPageableNameList.colorPicker/_CodeSignature" }, { "value": 524, "name": "Resources", "path": "ColorPickers/NSColorPickerPageableNameList.colorPicker/Resources" } ] }, { "value": 848, "name": "NSColorPickerSliders.colorPicker", "path": "ColorPickers/NSColorPickerSliders.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerSliders.colorPicker/_CodeSignature" }, { "value": 848, "name": "Resources", "path": "ColorPickers/NSColorPickerSliders.colorPicker/Resources" } ] }, { "value": 532, "name": "NSColorPickerUser.colorPicker", "path": "ColorPickers/NSColorPickerUser.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerUser.colorPicker/_CodeSignature" }, { "value": 532, "name": "Resources", "path": "ColorPickers/NSColorPickerUser.colorPicker/Resources" } ] }, { "value": 60, "name": "NSColorPickerWheel.colorPicker", "path": "ColorPickers/NSColorPickerWheel.colorPicker", "children": [ { "value": 0, "name": "_CodeSignature", "path": "ColorPickers/NSColorPickerWheel.colorPicker/_CodeSignature" }, { "value": 60, "name": "Resources", "path": "ColorPickers/NSColorPickerWheel.colorPicker/Resources" } ] } ] }, { "value": 0, "name": "Colors", "path": "Colors", "children": [ { "value": 0, "name": "Apple.clr", "path": "Colors/Apple.clr", "children": [ { "value": 0, "name": "ar.lproj", "path": "Colors/Apple.clr/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "Colors/Apple.clr/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "Colors/Apple.clr/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "Colors/Apple.clr/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "Colors/Apple.clr/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "Colors/Apple.clr/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "Colors/Apple.clr/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "Colors/Apple.clr/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "Colors/Apple.clr/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "Colors/Apple.clr/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "Colors/Apple.clr/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "Colors/Apple.clr/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "Colors/Apple.clr/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "Colors/Apple.clr/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "Colors/Apple.clr/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "Colors/Apple.clr/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "Colors/Apple.clr/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "Colors/Apple.clr/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "Colors/Apple.clr/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "Colors/Apple.clr/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "Colors/Apple.clr/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "Colors/Apple.clr/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "Colors/Apple.clr/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "Colors/Apple.clr/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "Colors/Apple.clr/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "Colors/Apple.clr/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "Colors/Apple.clr/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "Colors/Apple.clr/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "Colors/Apple.clr/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "Colors/Apple.clr/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "Colors/Apple.clr/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "Colors/Apple.clr/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "Colors/Apple.clr/zh_TW.lproj" } ] }, { "value": 0, "name": "Crayons.clr", "path": "Colors/Crayons.clr", "children": [ { "value": 0, "name": "ar.lproj", "path": "Colors/Crayons.clr/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "Colors/Crayons.clr/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "Colors/Crayons.clr/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "Colors/Crayons.clr/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "Colors/Crayons.clr/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "Colors/Crayons.clr/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "Colors/Crayons.clr/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "Colors/Crayons.clr/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "Colors/Crayons.clr/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "Colors/Crayons.clr/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "Colors/Crayons.clr/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "Colors/Crayons.clr/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "Colors/Crayons.clr/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "Colors/Crayons.clr/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "Colors/Crayons.clr/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "Colors/Crayons.clr/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "Colors/Crayons.clr/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "Colors/Crayons.clr/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "Colors/Crayons.clr/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "Colors/Crayons.clr/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "Colors/Crayons.clr/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "Colors/Crayons.clr/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "Colors/Crayons.clr/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "Colors/Crayons.clr/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "Colors/Crayons.clr/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "Colors/Crayons.clr/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "Colors/Crayons.clr/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "Colors/Crayons.clr/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "Colors/Crayons.clr/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "Colors/Crayons.clr/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "Colors/Crayons.clr/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "Colors/Crayons.clr/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "Colors/Crayons.clr/zh_TW.lproj" } ] }, { "value": 0, "name": "System.clr", "path": "Colors/System.clr", "children": [ { "value": 0, "name": "ar.lproj", "path": "Colors/System.clr/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "Colors/System.clr/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "Colors/System.clr/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "Colors/System.clr/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "Colors/System.clr/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "Colors/System.clr/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "Colors/System.clr/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "Colors/System.clr/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "Colors/System.clr/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "Colors/System.clr/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "Colors/System.clr/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "Colors/System.clr/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "Colors/System.clr/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "Colors/System.clr/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "Colors/System.clr/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "Colors/System.clr/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "Colors/System.clr/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "Colors/System.clr/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "Colors/System.clr/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "Colors/System.clr/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "Colors/System.clr/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "Colors/System.clr/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "Colors/System.clr/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "Colors/System.clr/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "Colors/System.clr/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "Colors/System.clr/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "Colors/System.clr/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "Colors/System.clr/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "Colors/System.clr/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "Colors/System.clr/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "Colors/System.clr/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "Colors/System.clr/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "Colors/System.clr/zh_TW.lproj" } ] } ] }, { "value": 2908, "name": "ColorSync", "path": "ColorSync", "children": [ { "value": 2868, "name": "Calibrators", "path": "ColorSync/Calibrators", "children": [ { "value": 2868, "name": "DisplayCalibrator.app", "path": "ColorSync/Calibrators/DisplayCalibrator.app" } ] }, { "value": 40, "name": "Profiles", "path": "ColorSync/Profiles" } ] }, { "value": 21772, "name": "Components", "path": "Components", "children": [ { "value": 416, "name": "AppleScript.component", "path": "Components/AppleScript.component", "children": [ { "value": 416, "name": "Contents", "path": "Components/AppleScript.component/Contents" } ] }, { "value": 2592, "name": "AudioCodecs.component", "path": "Components/AudioCodecs.component", "children": [ { "value": 2592, "name": "Contents", "path": "Components/AudioCodecs.component/Contents" } ] }, { "value": 92, "name": "AUSpeechSynthesis.component", "path": "Components/AUSpeechSynthesis.component", "children": [ { "value": 92, "name": "Contents", "path": "Components/AUSpeechSynthesis.component/Contents" } ] }, { "value": 18492, "name": "CoreAudio.component", "path": "Components/CoreAudio.component", "children": [ { "value": 18492, "name": "Contents", "path": "Components/CoreAudio.component/Contents" } ] }, { "value": 28, "name": "IOFWDVComponents.component", "path": "Components/IOFWDVComponents.component", "children": [ { "value": 28, "name": "Contents", "path": "Components/IOFWDVComponents.component/Contents" } ] }, { "value": 16, "name": "IOQTComponents.component", "path": "Components/IOQTComponents.component", "children": [ { "value": 16, "name": "Contents", "path": "Components/IOQTComponents.component/Contents" } ] }, { "value": 12, "name": "PDFImporter.component", "path": "Components/PDFImporter.component", "children": [ { "value": 12, "name": "Contents", "path": "Components/PDFImporter.component/Contents" } ] }, { "value": 120, "name": "SoundManagerComponents.component", "path": "Components/SoundManagerComponents.component", "children": [ { "value": 120, "name": "Contents", "path": "Components/SoundManagerComponents.component/Contents" } ] } ] }, { "value": 45728, "name": "Compositions", "path": "Compositions", "children": [ { "value": 0, "name": ".Localization.bundle", "path": "Compositions/.Localization.bundle", "children": [ { "value": 0, "name": "Contents", "path": "Compositions/.Localization.bundle/Contents" } ] } ] }, { "value": 409060, "name": "CoreServices", "path": "CoreServices", "children": [ { "value": 1152, "name": "AddPrinter.app", "path": "CoreServices/AddPrinter.app", "children": [ { "value": 1152, "name": "Contents", "path": "CoreServices/AddPrinter.app/Contents" } ] }, { "value": 72, "name": "AddressBookUrlForwarder.app", "path": "CoreServices/AddressBookUrlForwarder.app", "children": [ { "value": 72, "name": "Contents", "path": "CoreServices/AddressBookUrlForwarder.app/Contents" } ] }, { "value": 20, "name": "AirPlayUIAgent.app", "path": "CoreServices/AirPlayUIAgent.app", "children": [ { "value": 20, "name": "Contents", "path": "CoreServices/AirPlayUIAgent.app/Contents" } ] }, { "value": 56, "name": "AirPortBase Station Agent.app", "path": "CoreServices/AirPortBase Station Agent.app", "children": [ { "value": 56, "name": "Contents", "path": "CoreServices/AirPortBase Station Agent.app/Contents" } ] }, { "value": 92, "name": "AOS.bundle", "path": "CoreServices/AOS.bundle", "children": [ { "value": 92, "name": "Contents", "path": "CoreServices/AOS.bundle/Contents" } ] }, { "value": 1564, "name": "AppDownloadLauncher.app", "path": "CoreServices/AppDownloadLauncher.app", "children": [ { "value": 1564, "name": "Contents", "path": "CoreServices/AppDownloadLauncher.app/Contents" } ] }, { "value": 376, "name": "Apple80211Agent.app", "path": "CoreServices/Apple80211Agent.app", "children": [ { "value": 376, "name": "Contents", "path": "CoreServices/Apple80211Agent.app/Contents" } ] }, { "value": 480, "name": "AppleFileServer.app", "path": "CoreServices/AppleFileServer.app", "children": [ { "value": 480, "name": "Contents", "path": "CoreServices/AppleFileServer.app/Contents" } ] }, { "value": 12, "name": "AppleGraphicsWarning.app", "path": "CoreServices/AppleGraphicsWarning.app", "children": [ { "value": 12, "name": "Contents", "path": "CoreServices/AppleGraphicsWarning.app/Contents" } ] }, { "value": 1752, "name": "AppleScriptUtility.app", "path": "CoreServices/AppleScriptUtility.app", "children": [ { "value": 1752, "name": "Contents", "path": "CoreServices/AppleScriptUtility.app/Contents" } ] }, { "value": 0, "name": "ApplicationFirewall.bundle", "path": "CoreServices/ApplicationFirewall.bundle", "children": [ { "value": 0, "name": "Contents", "path": "CoreServices/ApplicationFirewall.bundle/Contents" } ] }, { "value": 14808, "name": "Applications", "path": "CoreServices/Applications", "children": [ { "value": 1792, "name": "NetworkUtility.app", "path": "CoreServices/Applications/NetworkUtility.app" }, { "value": 7328, "name": "RAIDUtility.app", "path": "CoreServices/Applications/RAIDUtility.app" }, { "value": 5688, "name": "WirelessDiagnostics.app", "path": "CoreServices/Applications/WirelessDiagnostics.app" } ] }, { "value": 6620, "name": "ArchiveUtility.app", "path": "CoreServices/ArchiveUtility.app", "children": [ { "value": 6620, "name": "Contents", "path": "CoreServices/ArchiveUtility.app/Contents" } ] }, { "value": 24, "name": "AutomatorLauncher.app", "path": "CoreServices/AutomatorLauncher.app", "children": [ { "value": 24, "name": "Contents", "path": "CoreServices/AutomatorLauncher.app/Contents" } ] }, { "value": 584, "name": "AutomatorRunner.app", "path": "CoreServices/AutomatorRunner.app", "children": [ { "value": 584, "name": "Contents", "path": "CoreServices/AutomatorRunner.app/Contents" } ] }, { "value": 412, "name": "AVRCPAgent.app", "path": "CoreServices/AVRCPAgent.app", "children": [ { "value": 412, "name": "Contents", "path": "CoreServices/AVRCPAgent.app/Contents" } ] }, { "value": 1400, "name": "backupd.bundle", "path": "CoreServices/backupd.bundle", "children": [ { "value": 1400, "name": "Contents", "path": "CoreServices/backupd.bundle/Contents" } ] }, { "value": 2548, "name": "BluetoothSetup Assistant.app", "path": "CoreServices/BluetoothSetup Assistant.app", "children": [ { "value": 2548, "name": "Contents", "path": "CoreServices/BluetoothSetup Assistant.app/Contents" } ] }, { "value": 2588, "name": "BluetoothUIServer.app", "path": "CoreServices/BluetoothUIServer.app", "children": [ { "value": 2588, "name": "Contents", "path": "CoreServices/BluetoothUIServer.app/Contents" } ] }, { "value": 1288, "name": "CalendarFileHandler.app", "path": "CoreServices/CalendarFileHandler.app", "children": [ { "value": 1288, "name": "Contents", "path": "CoreServices/CalendarFileHandler.app/Contents" } ] }, { "value": 44, "name": "CaptiveNetwork Assistant.app", "path": "CoreServices/CaptiveNetwork Assistant.app", "children": [ { "value": 44, "name": "Contents", "path": "CoreServices/CaptiveNetwork Assistant.app/Contents" } ] }, { "value": 12, "name": "CarbonSpellChecker.bundle", "path": "CoreServices/CarbonSpellChecker.bundle", "children": [ { "value": 12, "name": "Contents", "path": "CoreServices/CarbonSpellChecker.bundle/Contents" } ] }, { "value": 27144, "name": "CertificateAssistant.app", "path": "CoreServices/CertificateAssistant.app", "children": [ { "value": 27144, "name": "Contents", "path": "CoreServices/CertificateAssistant.app/Contents" } ] }, { "value": 28, "name": "CommonCocoaPanels.bundle", "path": "CoreServices/CommonCocoaPanels.bundle", "children": [ { "value": 28, "name": "Contents", "path": "CoreServices/CommonCocoaPanels.bundle/Contents" } ] }, { "value": 676, "name": "CoreLocationAgent.app", "path": "CoreServices/CoreLocationAgent.app", "children": [ { "value": 676, "name": "Contents", "path": "CoreServices/CoreLocationAgent.app/Contents" } ] }, { "value": 164, "name": "CoreServicesUIAgent.app", "path": "CoreServices/CoreServicesUIAgent.app", "children": [ { "value": 164, "name": "Contents", "path": "CoreServices/CoreServicesUIAgent.app/Contents" } ] }, { "value": 171300, "name": "CoreTypes.bundle", "path": "CoreServices/CoreTypes.bundle", "children": [ { "value": 171300, "name": "Contents", "path": "CoreServices/CoreTypes.bundle/Contents" } ] }, { "value": 308, "name": "DatabaseEvents.app", "path": "CoreServices/DatabaseEvents.app", "children": [ { "value": 308, "name": "Contents", "path": "CoreServices/DatabaseEvents.app/Contents" } ] }, { "value": 6104, "name": "DirectoryUtility.app", "path": "CoreServices/DirectoryUtility.app", "children": [ { "value": 6104, "name": "Contents", "path": "CoreServices/DirectoryUtility.app/Contents" } ] }, { "value": 1840, "name": "DiskImageMounter.app", "path": "CoreServices/DiskImageMounter.app", "children": [ { "value": 1840, "name": "Contents", "path": "CoreServices/DiskImageMounter.app/Contents" } ] }, { "value": 8476, "name": "Dock.app", "path": "CoreServices/Dock.app", "children": [ { "value": 8476, "name": "Contents", "path": "CoreServices/Dock.app/Contents" } ] }, { "value": 696, "name": "Encodings", "path": "CoreServices/Encodings" }, { "value": 1024, "name": "ExpansionSlot Utility.app", "path": "CoreServices/ExpansionSlot Utility.app", "children": [ { "value": 1024, "name": "Contents", "path": "CoreServices/ExpansionSlot Utility.app/Contents" } ] }, { "value": 1732, "name": "FileSync.app", "path": "CoreServices/FileSync.app", "children": [ { "value": 1732, "name": "Contents", "path": "CoreServices/FileSync.app/Contents" } ] }, { "value": 572, "name": "FileSyncAgent.app", "path": "CoreServices/FileSyncAgent.app", "children": [ { "value": 572, "name": "Contents", "path": "CoreServices/FileSyncAgent.app/Contents" } ] }, { "value": 35168, "name": "Finder.app", "path": "CoreServices/Finder.app", "children": [ { "value": 35168, "name": "Contents", "path": "CoreServices/Finder.app/Contents" } ] }, { "value": 0, "name": "FirmwareUpdates", "path": "CoreServices/FirmwareUpdates" }, { "value": 336, "name": "FolderActions Dispatcher.app", "path": "CoreServices/FolderActions Dispatcher.app", "children": [ { "value": 336, "name": "Contents", "path": "CoreServices/FolderActions Dispatcher.app/Contents" } ] }, { "value": 1820, "name": "FolderActions Setup.app", "path": "CoreServices/FolderActions Setup.app", "children": [ { "value": 1820, "name": "Contents", "path": "CoreServices/FolderActions Setup.app/Contents" } ] }, { "value": 3268, "name": "HelpViewer.app", "path": "CoreServices/HelpViewer.app", "children": [ { "value": 3268, "name": "Contents", "path": "CoreServices/HelpViewer.app/Contents" } ] }, { "value": 352, "name": "ImageEvents.app", "path": "CoreServices/ImageEvents.app", "children": [ { "value": 352, "name": "Contents", "path": "CoreServices/ImageEvents.app/Contents" } ] }, { "value": 2012, "name": "InstallCommand Line Developer Tools.app", "path": "CoreServices/InstallCommand Line Developer Tools.app", "children": [ { "value": 2012, "name": "Contents", "path": "CoreServices/InstallCommand Line Developer Tools.app/Contents" } ] }, { "value": 108, "name": "Installin Progress.app", "path": "CoreServices/Installin Progress.app", "children": [ { "value": 108, "name": "Contents", "path": "CoreServices/Installin Progress.app/Contents" } ] }, { "value": 7444, "name": "Installer.app", "path": "CoreServices/Installer.app", "children": [ { "value": 7444, "name": "Contents", "path": "CoreServices/Installer.app/Contents" } ] }, { "value": 8, "name": "InstallerStatusNotifications.bundle", "path": "CoreServices/InstallerStatusNotifications.bundle", "children": [ { "value": 8, "name": "Contents", "path": "CoreServices/InstallerStatusNotifications.bundle/Contents" } ] }, { "value": 0, "name": "InternetSharing.bundle", "path": "CoreServices/InternetSharing.bundle", "children": [ { "value": 0, "name": "Resources", "path": "CoreServices/InternetSharing.bundle/Resources" } ] }, { "value": 244, "name": "JarLauncher.app", "path": "CoreServices/JarLauncher.app", "children": [ { "value": 244, "name": "Contents", "path": "CoreServices/JarLauncher.app/Contents" } ] }, { "value": 152, "name": "JavaWeb Start.app", "path": "CoreServices/JavaWeb Start.app", "children": [ { "value": 152, "name": "Contents", "path": "CoreServices/JavaWeb Start.app/Contents" } ] }, { "value": 12, "name": "KernelEventAgent.bundle", "path": "CoreServices/KernelEventAgent.bundle", "children": [ { "value": 0, "name": "Contents", "path": "CoreServices/KernelEventAgent.bundle/Contents" }, { "value": 12, "name": "FileSystemUIAgent.app", "path": "CoreServices/KernelEventAgent.bundle/FileSystemUIAgent.app" } ] }, { "value": 1016, "name": "KeyboardSetupAssistant.app", "path": "CoreServices/KeyboardSetupAssistant.app", "children": [ { "value": 1016, "name": "Contents", "path": "CoreServices/KeyboardSetupAssistant.app/Contents" } ] }, { "value": 840, "name": "KeychainCircle Notification.app", "path": "CoreServices/KeychainCircle Notification.app", "children": [ { "value": 840, "name": "Contents", "path": "CoreServices/KeychainCircle Notification.app/Contents" } ] }, { "value": 1448, "name": "LanguageChooser.app", "path": "CoreServices/LanguageChooser.app", "children": [ { "value": 1448, "name": "Contents", "path": "CoreServices/LanguageChooser.app/Contents" } ] }, { "value": 868, "name": "LocationMenu.app", "path": "CoreServices/LocationMenu.app", "children": [ { "value": 868, "name": "Contents", "path": "CoreServices/LocationMenu.app/Contents" } ] }, { "value": 8260, "name": "loginwindow.app", "path": "CoreServices/loginwindow.app", "children": [ { "value": 8260, "name": "Contents", "path": "CoreServices/loginwindow.app/Contents" } ] }, { "value": 3632, "name": "ManagedClient.app", "path": "CoreServices/ManagedClient.app", "children": [ { "value": 3632, "name": "Contents", "path": "CoreServices/ManagedClient.app/Contents" } ] }, { "value": 0, "name": "mDNSResponder.bundle", "path": "CoreServices/mDNSResponder.bundle", "children": [ { "value": 0, "name": "Resources", "path": "CoreServices/mDNSResponder.bundle/Resources" } ] }, { "value": 420, "name": "MemorySlot Utility.app", "path": "CoreServices/MemorySlot Utility.app", "children": [ { "value": 420, "name": "Contents", "path": "CoreServices/MemorySlot Utility.app/Contents" } ] }, { "value": 4272, "name": "MenuExtras", "path": "CoreServices/MenuExtras", "children": [ { "value": 416, "name": "AirPort.menu", "path": "CoreServices/MenuExtras/AirPort.menu" }, { "value": 788, "name": "Battery.menu", "path": "CoreServices/MenuExtras/Battery.menu" }, { "value": 112, "name": "Bluetooth.menu", "path": "CoreServices/MenuExtras/Bluetooth.menu" }, { "value": 12, "name": "Clock.menu", "path": "CoreServices/MenuExtras/Clock.menu" }, { "value": 84, "name": "Displays.menu", "path": "CoreServices/MenuExtras/Displays.menu" }, { "value": 32, "name": "Eject.menu", "path": "CoreServices/MenuExtras/Eject.menu" }, { "value": 24, "name": "ExpressCard.menu", "path": "CoreServices/MenuExtras/ExpressCard.menu" }, { "value": 76, "name": "Fax.menu", "path": "CoreServices/MenuExtras/Fax.menu" }, { "value": 112, "name": "HomeSync.menu", "path": "CoreServices/MenuExtras/HomeSync.menu" }, { "value": 84, "name": "iChat.menu", "path": "CoreServices/MenuExtras/iChat.menu" }, { "value": 28, "name": "Ink.menu", "path": "CoreServices/MenuExtras/Ink.menu" }, { "value": 104, "name": "IrDA.menu", "path": "CoreServices/MenuExtras/IrDA.menu" }, { "value": 68, "name": "PPP.menu", "path": "CoreServices/MenuExtras/PPP.menu" }, { "value": 24, "name": "PPPoE.menu", "path": "CoreServices/MenuExtras/PPPoE.menu" }, { "value": 60, "name": "RemoteDesktop.menu", "path": "CoreServices/MenuExtras/RemoteDesktop.menu" }, { "value": 48, "name": "Script Menu.menu", "path": "CoreServices/MenuExtras/Script Menu.menu" }, { "value": 832, "name": "TextInput.menu", "path": "CoreServices/MenuExtras/TextInput.menu" }, { "value": 144, "name": "TimeMachine.menu", "path": "CoreServices/MenuExtras/TimeMachine.menu" }, { "value": 40, "name": "UniversalAccess.menu", "path": "CoreServices/MenuExtras/UniversalAccess.menu" }, { "value": 108, "name": "User.menu", "path": "CoreServices/MenuExtras/User.menu" }, { "value": 316, "name": "Volume.menu", "path": "CoreServices/MenuExtras/Volume.menu" }, { "value": 48, "name": "VPN.menu", "path": "CoreServices/MenuExtras/VPN.menu" }, { "value": 712, "name": "WWAN.menu", "path": "CoreServices/MenuExtras/WWAN.menu" } ] }, { "value": 16, "name": "MLTEFile.bundle", "path": "CoreServices/MLTEFile.bundle", "children": [ { "value": 16, "name": "Contents", "path": "CoreServices/MLTEFile.bundle/Contents" } ] }, { "value": 616, "name": "MRTAgent.app", "path": "CoreServices/MRTAgent.app", "children": [ { "value": 616, "name": "Contents", "path": "CoreServices/MRTAgent.app/Contents" } ] }, { "value": 1540, "name": "NetAuthAgent.app", "path": "CoreServices/NetAuthAgent.app", "children": [ { "value": 1540, "name": "Contents", "path": "CoreServices/NetAuthAgent.app/Contents" } ] }, { "value": 3388, "name": "NetworkDiagnostics.app", "path": "CoreServices/NetworkDiagnostics.app", "children": [ { "value": 3388, "name": "Contents", "path": "CoreServices/NetworkDiagnostics.app/Contents" } ] }, { "value": 9384, "name": "NetworkSetup Assistant.app", "path": "CoreServices/NetworkSetup Assistant.app", "children": [ { "value": 9384, "name": "Contents", "path": "CoreServices/NetworkSetup Assistant.app/Contents" } ] }, { "value": 716, "name": "NotificationCenter.app", "path": "CoreServices/NotificationCenter.app", "children": [ { "value": 716, "name": "Contents", "path": "CoreServices/NotificationCenter.app/Contents" } ] }, { "value": 948, "name": "OBEXAgent.app", "path": "CoreServices/OBEXAgent.app", "children": [ { "value": 948, "name": "Contents", "path": "CoreServices/OBEXAgent.app/Contents" } ] }, { "value": 1596, "name": "ODSAgent.app", "path": "CoreServices/ODSAgent.app", "children": [ { "value": 1596, "name": "Contents", "path": "CoreServices/ODSAgent.app/Contents" } ] }, { "value": 492, "name": "PassViewer.app", "path": "CoreServices/PassViewer.app", "children": [ { "value": 492, "name": "Contents", "path": "CoreServices/PassViewer.app/Contents" } ] }, { "value": 0, "name": "PerformanceMetricLocalizations.bundle", "path": "CoreServices/PerformanceMetricLocalizations.bundle", "children": [ { "value": 0, "name": "Contents", "path": "CoreServices/PerformanceMetricLocalizations.bundle/Contents" } ] }, { "value": 88, "name": "powerd.bundle", "path": "CoreServices/powerd.bundle", "children": [ { "value": 0, "name": "_CodeSignature", "path": "CoreServices/powerd.bundle/_CodeSignature" }, { "value": 0, "name": "ar.lproj", "path": "CoreServices/powerd.bundle/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "CoreServices/powerd.bundle/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "CoreServices/powerd.bundle/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "CoreServices/powerd.bundle/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "CoreServices/powerd.bundle/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "CoreServices/powerd.bundle/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "CoreServices/powerd.bundle/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "CoreServices/powerd.bundle/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "CoreServices/powerd.bundle/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "CoreServices/powerd.bundle/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "CoreServices/powerd.bundle/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "CoreServices/powerd.bundle/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "CoreServices/powerd.bundle/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "CoreServices/powerd.bundle/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "CoreServices/powerd.bundle/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "CoreServices/powerd.bundle/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "CoreServices/powerd.bundle/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "CoreServices/powerd.bundle/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "CoreServices/powerd.bundle/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "CoreServices/powerd.bundle/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "CoreServices/powerd.bundle/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "CoreServices/powerd.bundle/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "CoreServices/powerd.bundle/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "CoreServices/powerd.bundle/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "CoreServices/powerd.bundle/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "CoreServices/powerd.bundle/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "CoreServices/powerd.bundle/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "CoreServices/powerd.bundle/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "CoreServices/powerd.bundle/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "CoreServices/powerd.bundle/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "CoreServices/powerd.bundle/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "CoreServices/powerd.bundle/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "CoreServices/powerd.bundle/zh_TW.lproj" } ] }, { "value": 776, "name": "ProblemReporter.app", "path": "CoreServices/ProblemReporter.app", "children": [ { "value": 776, "name": "Contents", "path": "CoreServices/ProblemReporter.app/Contents" } ] }, { "value": 4748, "name": "RawCamera.bundle", "path": "CoreServices/RawCamera.bundle", "children": [ { "value": 4748, "name": "Contents", "path": "CoreServices/RawCamera.bundle/Contents" } ] }, { "value": 2112, "name": "RawCameraSupport.bundle", "path": "CoreServices/RawCameraSupport.bundle", "children": [ { "value": 2112, "name": "Contents", "path": "CoreServices/RawCameraSupport.bundle/Contents" } ] }, { "value": 24, "name": "rcd.app", "path": "CoreServices/rcd.app", "children": [ { "value": 24, "name": "Contents", "path": "CoreServices/rcd.app/Contents" } ] }, { "value": 156, "name": "RegisterPluginIMApp.app", "path": "CoreServices/RegisterPluginIMApp.app", "children": [ { "value": 156, "name": "Contents", "path": "CoreServices/RegisterPluginIMApp.app/Contents" } ] }, { "value": 3504, "name": "RemoteManagement", "path": "CoreServices/RemoteManagement", "children": [ { "value": 872, "name": "AppleVNCServer.bundle", "path": "CoreServices/RemoteManagement/AppleVNCServer.bundle" }, { "value": 2260, "name": "ARDAgent.app", "path": "CoreServices/RemoteManagement/ARDAgent.app" }, { "value": 144, "name": "ScreensharingAgent.bundle", "path": "CoreServices/RemoteManagement/ScreensharingAgent.bundle" }, { "value": 228, "name": "screensharingd.bundle", "path": "CoreServices/RemoteManagement/screensharingd.bundle" } ] }, { "value": 672, "name": "ReportPanic.app", "path": "CoreServices/ReportPanic.app", "children": [ { "value": 672, "name": "Contents", "path": "CoreServices/ReportPanic.app/Contents" } ] }, { "value": 0, "name": "Resources", "path": "CoreServices/Resources", "children": [ { "value": 0, "name": "ar.lproj", "path": "CoreServices/Resources/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "CoreServices/Resources/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "CoreServices/Resources/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "CoreServices/Resources/da.lproj" }, { "value": 0, "name": "Dutch.lproj", "path": "CoreServices/Resources/Dutch.lproj" }, { "value": 0, "name": "el.lproj", "path": "CoreServices/Resources/el.lproj" }, { "value": 0, "name": "English.lproj", "path": "CoreServices/Resources/English.lproj" }, { "value": 0, "name": "fi.lproj", "path": "CoreServices/Resources/fi.lproj" }, { "value": 0, "name": "French.lproj", "path": "CoreServices/Resources/French.lproj" }, { "value": 0, "name": "German.lproj", "path": "CoreServices/Resources/German.lproj" }, { "value": 0, "name": "he.lproj", "path": "CoreServices/Resources/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "CoreServices/Resources/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "CoreServices/Resources/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "CoreServices/Resources/id.lproj" }, { "value": 0, "name": "Italian.lproj", "path": "CoreServices/Resources/Italian.lproj" }, { "value": 0, "name": "Japanese.lproj", "path": "CoreServices/Resources/Japanese.lproj" }, { "value": 0, "name": "ko.lproj", "path": "CoreServices/Resources/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "CoreServices/Resources/ms.lproj" }, { "value": 0, "name": "no.lproj", "path": "CoreServices/Resources/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "CoreServices/Resources/pl.lproj" }, { "value": 0, "name": "Profiles", "path": "CoreServices/Resources/Profiles" }, { "value": 0, "name": "pt.lproj", "path": "CoreServices/Resources/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "CoreServices/Resources/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "CoreServices/Resources/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "CoreServices/Resources/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "CoreServices/Resources/sk.lproj" }, { "value": 0, "name": "Spanish.lproj", "path": "CoreServices/Resources/Spanish.lproj" }, { "value": 0, "name": "sv.lproj", "path": "CoreServices/Resources/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "CoreServices/Resources/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "CoreServices/Resources/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "CoreServices/Resources/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "CoreServices/Resources/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "CoreServices/Resources/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "CoreServices/Resources/zh_TW.lproj" } ] }, { "value": 20, "name": "RFBEventHelper.bundle", "path": "CoreServices/RFBEventHelper.bundle", "children": [ { "value": 20, "name": "Contents", "path": "CoreServices/RFBEventHelper.bundle/Contents" } ] }, { "value": 3304, "name": "ScreenSharing.app", "path": "CoreServices/ScreenSharing.app", "children": [ { "value": 3304, "name": "Contents", "path": "CoreServices/ScreenSharing.app/Contents" } ] }, { "value": 244, "name": "Search.bundle", "path": "CoreServices/Search.bundle", "children": [ { "value": 244, "name": "Contents", "path": "CoreServices/Search.bundle/Contents" } ] }, { "value": 4128, "name": "SecurityAgentPlugins", "path": "CoreServices/SecurityAgentPlugins", "children": [ { "value": 304, "name": "DiskUnlock.bundle", "path": "CoreServices/SecurityAgentPlugins/DiskUnlock.bundle" }, { "value": 1192, "name": "FamilyControls.bundle", "path": "CoreServices/SecurityAgentPlugins/FamilyControls.bundle" }, { "value": 340, "name": "HomeDirMechanism.bundle", "path": "CoreServices/SecurityAgentPlugins/HomeDirMechanism.bundle" }, { "value": 1156, "name": "KerberosAgent.bundle", "path": "CoreServices/SecurityAgentPlugins/KerberosAgent.bundle" }, { "value": 276, "name": "loginKC.bundle", "path": "CoreServices/SecurityAgentPlugins/loginKC.bundle" }, { "value": 104, "name": "loginwindow.bundle", "path": "CoreServices/SecurityAgentPlugins/loginwindow.bundle" }, { "value": 384, "name": "MCXMechanism.bundle", "path": "CoreServices/SecurityAgentPlugins/MCXMechanism.bundle" }, { "value": 12, "name": "PKINITMechanism.bundle", "path": "CoreServices/SecurityAgentPlugins/PKINITMechanism.bundle" }, { "value": 360, "name": "RestartAuthorization.bundle", "path": "CoreServices/SecurityAgentPlugins/RestartAuthorization.bundle" } ] }, { "value": 328, "name": "SecurityFixer.app", "path": "CoreServices/SecurityFixer.app", "children": [ { "value": 328, "name": "Contents", "path": "CoreServices/SecurityFixer.app/Contents" } ] }, { "value": 28200, "name": "SetupAssistant.app", "path": "CoreServices/SetupAssistant.app", "children": [ { "value": 28200, "name": "Contents", "path": "CoreServices/SetupAssistant.app/Contents" } ] }, { "value": 164, "name": "SetupAssistantPlugins", "path": "CoreServices/SetupAssistantPlugins", "children": [ { "value": 8, "name": "AppStore.icdplugin", "path": "CoreServices/SetupAssistantPlugins/AppStore.icdplugin" }, { "value": 8, "name": "Calendar.flplugin", "path": "CoreServices/SetupAssistantPlugins/Calendar.flplugin" }, { "value": 8, "name": "FaceTime.icdplugin", "path": "CoreServices/SetupAssistantPlugins/FaceTime.icdplugin" }, { "value": 8, "name": "Fonts.flplugin", "path": "CoreServices/SetupAssistantPlugins/Fonts.flplugin" }, { "value": 16, "name": "GameCenter.icdplugin", "path": "CoreServices/SetupAssistantPlugins/GameCenter.icdplugin" }, { "value": 8, "name": "Helpd.flplugin", "path": "CoreServices/SetupAssistantPlugins/Helpd.flplugin" }, { "value": 8, "name": "iBooks.icdplugin", "path": "CoreServices/SetupAssistantPlugins/iBooks.icdplugin" }, { "value": 16, "name": "IdentityServices.icdplugin", "path": "CoreServices/SetupAssistantPlugins/IdentityServices.icdplugin" }, { "value": 8, "name": "iMessage.icdplugin", "path": "CoreServices/SetupAssistantPlugins/iMessage.icdplugin" }, { "value": 8, "name": "LaunchServices.flplugin", "path": "CoreServices/SetupAssistantPlugins/LaunchServices.flplugin" }, { "value": 12, "name": "Mail.flplugin", "path": "CoreServices/SetupAssistantPlugins/Mail.flplugin" }, { "value": 8, "name": "QuickLook.flplugin", "path": "CoreServices/SetupAssistantPlugins/QuickLook.flplugin" }, { "value": 8, "name": "Safari.flplugin", "path": "CoreServices/SetupAssistantPlugins/Safari.flplugin" }, { "value": 8, "name": "ServicesMenu.flplugin", "path": "CoreServices/SetupAssistantPlugins/ServicesMenu.flplugin" }, { "value": 8, "name": "SoftwareUpdateActions.flplugin", "path": "CoreServices/SetupAssistantPlugins/SoftwareUpdateActions.flplugin" }, { "value": 8, "name": "Spotlight.flplugin", "path": "CoreServices/SetupAssistantPlugins/Spotlight.flplugin" }, { "value": 16, "name": "UAU.flplugin", "path": "CoreServices/SetupAssistantPlugins/UAU.flplugin" } ] }, { "value": 48, "name": "SocialPushAgent.app", "path": "CoreServices/SocialPushAgent.app", "children": [ { "value": 48, "name": "Contents", "path": "CoreServices/SocialPushAgent.app/Contents" } ] }, { "value": 2196, "name": "SoftwareUpdate.app", "path": "CoreServices/SoftwareUpdate.app", "children": [ { "value": 2196, "name": "Contents", "path": "CoreServices/SoftwareUpdate.app/Contents" } ] }, { "value": 856, "name": "Spotlight.app", "path": "CoreServices/Spotlight.app", "children": [ { "value": 856, "name": "Contents", "path": "CoreServices/Spotlight.app/Contents" } ] }, { "value": 384, "name": "SystemEvents.app", "path": "CoreServices/SystemEvents.app", "children": [ { "value": 384, "name": "Contents", "path": "CoreServices/SystemEvents.app/Contents" } ] }, { "value": 2152, "name": "SystemImage Utility.app", "path": "CoreServices/SystemImage Utility.app", "children": [ { "value": 2152, "name": "Contents", "path": "CoreServices/SystemImage Utility.app/Contents" } ] }, { "value": 0, "name": "SystemFolderLocalizations", "path": "CoreServices/SystemFolderLocalizations", "children": [ { "value": 0, "name": "ar.lproj", "path": "CoreServices/SystemFolderLocalizations/ar.lproj" }, { "value": 0, "name": "ca.lproj", "path": "CoreServices/SystemFolderLocalizations/ca.lproj" }, { "value": 0, "name": "cs.lproj", "path": "CoreServices/SystemFolderLocalizations/cs.lproj" }, { "value": 0, "name": "da.lproj", "path": "CoreServices/SystemFolderLocalizations/da.lproj" }, { "value": 0, "name": "de.lproj", "path": "CoreServices/SystemFolderLocalizations/de.lproj" }, { "value": 0, "name": "el.lproj", "path": "CoreServices/SystemFolderLocalizations/el.lproj" }, { "value": 0, "name": "en.lproj", "path": "CoreServices/SystemFolderLocalizations/en.lproj" }, { "value": 0, "name": "es.lproj", "path": "CoreServices/SystemFolderLocalizations/es.lproj" }, { "value": 0, "name": "fi.lproj", "path": "CoreServices/SystemFolderLocalizations/fi.lproj" }, { "value": 0, "name": "fr.lproj", "path": "CoreServices/SystemFolderLocalizations/fr.lproj" }, { "value": 0, "name": "he.lproj", "path": "CoreServices/SystemFolderLocalizations/he.lproj" }, { "value": 0, "name": "hr.lproj", "path": "CoreServices/SystemFolderLocalizations/hr.lproj" }, { "value": 0, "name": "hu.lproj", "path": "CoreServices/SystemFolderLocalizations/hu.lproj" }, { "value": 0, "name": "id.lproj", "path": "CoreServices/SystemFolderLocalizations/id.lproj" }, { "value": 0, "name": "it.lproj", "path": "CoreServices/SystemFolderLocalizations/it.lproj" }, { "value": 0, "name": "ja.lproj", "path": "CoreServices/SystemFolderLocalizations/ja.lproj" }, { "value": 0, "name": "ko.lproj", "path": "CoreServices/SystemFolderLocalizations/ko.lproj" }, { "value": 0, "name": "ms.lproj", "path": "CoreServices/SystemFolderLocalizations/ms.lproj" }, { "value": 0, "name": "nl.lproj", "path": "CoreServices/SystemFolderLocalizations/nl.lproj" }, { "value": 0, "name": "no.lproj", "path": "CoreServices/SystemFolderLocalizations/no.lproj" }, { "value": 0, "name": "pl.lproj", "path": "CoreServices/SystemFolderLocalizations/pl.lproj" }, { "value": 0, "name": "pt.lproj", "path": "CoreServices/SystemFolderLocalizations/pt.lproj" }, { "value": 0, "name": "pt_PT.lproj", "path": "CoreServices/SystemFolderLocalizations/pt_PT.lproj" }, { "value": 0, "name": "ro.lproj", "path": "CoreServices/SystemFolderLocalizations/ro.lproj" }, { "value": 0, "name": "ru.lproj", "path": "CoreServices/SystemFolderLocalizations/ru.lproj" }, { "value": 0, "name": "sk.lproj", "path": "CoreServices/SystemFolderLocalizations/sk.lproj" }, { "value": 0, "name": "sv.lproj", "path": "CoreServices/SystemFolderLocalizations/sv.lproj" }, { "value": 0, "name": "th.lproj", "path": "CoreServices/SystemFolderLocalizations/th.lproj" }, { "value": 0, "name": "tr.lproj", "path": "CoreServices/SystemFolderLocalizations/tr.lproj" }, { "value": 0, "name": "uk.lproj", "path": "CoreServices/SystemFolderLocalizations/uk.lproj" }, { "value": 0, "name": "vi.lproj", "path": "CoreServices/SystemFolderLocalizations/vi.lproj" }, { "value": 0, "name": "zh_CN.lproj", "path": "CoreServices/SystemFolderLocalizations/zh_CN.lproj" }, { "value": 0, "name": "zh_TW.lproj", "path": "CoreServices/SystemFolderLocalizations/zh_TW.lproj" } ] }, { "value": 852, "name": "SystemUIServer.app", "path": "CoreServices/SystemUIServer.app", "children": [ { "value": 852, "name": "Contents", "path": "CoreServices/SystemUIServer.app/Contents" } ] }, { "value": 132, "name": "SystemVersion.bundle", "path": "CoreServices/SystemVersion.bundle", "children": [ { "value": 4, "name": "ar.lproj", "path": "CoreServices/SystemVersion.bundle/ar.lproj" }, { "value": 4, "name": "ca.lproj", "path": "CoreServices/SystemVersion.bundle/ca.lproj" }, { "value": 4, "name": "cs.lproj", "path": "CoreServices/SystemVersion.bundle/cs.lproj" }, { "value": 4, "name": "da.lproj", "path": "CoreServices/SystemVersion.bundle/da.lproj" }, { "value": 4, "name": "Dutch.lproj", "path": "CoreServices/SystemVersion.bundle/Dutch.lproj" }, { "value": 4, "name": "el.lproj", "path": "CoreServices/SystemVersion.bundle/el.lproj" }, { "value": 4, "name": "English.lproj", "path": "CoreServices/SystemVersion.bundle/English.lproj" }, { "value": 4, "name": "fi.lproj", "path": "CoreServices/SystemVersion.bundle/fi.lproj" }, { "value": 4, "name": "French.lproj", "path": "CoreServices/SystemVersion.bundle/French.lproj" }, { "value": 4, "name": "German.lproj", "path": "CoreServices/SystemVersion.bundle/German.lproj" }, { "value": 4, "name": "he.lproj", "path": "CoreServices/SystemVersion.bundle/he.lproj" }, { "value": 4, "name": "hr.lproj", "path": "CoreServices/SystemVersion.bundle/hr.lproj" }, { "value": 4, "name": "hu.lproj", "path": "CoreServices/SystemVersion.bundle/hu.lproj" }, { "value": 4, "name": "id.lproj", "path": "CoreServices/SystemVersion.bundle/id.lproj" }, { "value": 4, "name": "Italian.lproj", "path": "CoreServices/SystemVersion.bundle/Italian.lproj" }, { "value": 4, "name": "Japanese.lproj", "path": "CoreServices/SystemVersion.bundle/Japanese.lproj" }, { "value": 4, "name": "ko.lproj", "path": "CoreServices/SystemVersion.bundle/ko.lproj" }, { "value": 4, "name": "ms.lproj", "path": "CoreServices/SystemVersion.bundle/ms.lproj" }, { "value": 4, "name": "no.lproj", "path": "CoreServices/SystemVersion.bundle/no.lproj" }, { "value": 4, "name": "pl.lproj", "path": "CoreServices/SystemVersion.bundle/pl.lproj" }, { "value": 4, "name": "pt.lproj", "path": "CoreServices/SystemVersion.bundle/pt.lproj" }, { "value": 4, "name": "pt_PT.lproj", "path": "CoreServices/SystemVersion.bundle/pt_PT.lproj" }, { "value": 4, "name": "ro.lproj", "path": "CoreServices/SystemVersion.bundle/ro.lproj" }, { "value": 4, "name": "ru.lproj", "path": "CoreServices/SystemVersion.bundle/ru.lproj" }, { "value": 4, "name": "sk.lproj", "path": "CoreServices/SystemVersion.bundle/sk.lproj" }, { "value": 4, "name": "Spanish.lproj", "path": "CoreServices/SystemVersion.bundle/Spanish.lproj" }, { "value": 4, "name": "sv.lproj", "path": "CoreServices/SystemVersion.bundle/sv.lproj" }, { "value": 4, "name": "th.lproj", "path": "CoreServices/SystemVersion.bundle/th.lproj" }, { "value": 4, "name": "tr.lproj", "path": "CoreServices/SystemVersion.bundle/tr.lproj" }, { "value": 4, "name": "uk.lproj", "path": "CoreServices/SystemVersion.bundle/uk.lproj" }, { "value": 4, "name": "vi.lproj", "path": "CoreServices/SystemVersion.bundle/vi.lproj" }, { "value": 4, "name": "zh_CN.lproj", "path": "CoreServices/SystemVersion.bundle/zh_CN.lproj" }, { "value": 4, "name": "zh_TW.lproj", "path": "CoreServices/SystemVersion.bundle/zh_TW.lproj" } ] }, { "value": 3148, "name": "TicketViewer.app", "path": "CoreServices/TicketViewer.app", "children": [ { "value": 3148, "name": "Contents", "path": "CoreServices/TicketViewer.app/Contents" } ] }, { "value": 532, "name": "TypographyPanel.bundle", "path": "CoreServices/TypographyPanel.bundle", "children": [ { "value": 532, "name": "Contents", "path": "CoreServices/TypographyPanel.bundle/Contents" } ] }, { "value": 676, "name": "UniversalAccessControl.app", "path": "CoreServices/UniversalAccessControl.app", "children": [ { "value": 676, "name": "Contents", "path": "CoreServices/UniversalAccessControl.app/Contents" } ] }, { "value": 52, "name": "UnmountAssistantAgent.app", "path": "CoreServices/UnmountAssistantAgent.app", "children": [ { "value": 52, "name": "Contents", "path": "CoreServices/UnmountAssistantAgent.app/Contents" } ] }, { "value": 60, "name": "UserNotificationCenter.app", "path": "CoreServices/UserNotificationCenter.app", "children": [ { "value": 60, "name": "Contents", "path": "CoreServices/UserNotificationCenter.app/Contents" } ] }, { "value": 456, "name": "VoiceOver.app", "path": "CoreServices/VoiceOver.app", "children": [ { "value": 456, "name": "Contents", "path": "CoreServices/VoiceOver.app/Contents" } ] }, { "value": 44, "name": "XsanManagerDaemon.bundle", "path": "CoreServices/XsanManagerDaemon.bundle", "children": [ { "value": 44, "name": "Contents", "path": "CoreServices/XsanManagerDaemon.bundle/Contents" } ] }, { "value": 844, "name": "ZoomWindow.app", "path": "CoreServices/ZoomWindow.app", "children": [ { "value": 844, "name": "Contents", "path": "CoreServices/ZoomWindow.app/Contents" } ] } ] }, { "value": 72, "name": "DirectoryServices", "path": "DirectoryServices", "children": [ { "value": 0, "name": "DefaultLocalDB", "path": "DirectoryServices/DefaultLocalDB" }, { "value": 72, "name": "dscl", "path": "DirectoryServices/dscl", "children": [ { "value": 44, "name": "mcxcl.dsclext", "path": "DirectoryServices/dscl/mcxcl.dsclext" }, { "value": 28, "name": "mcxProfiles.dsclext", "path": "DirectoryServices/dscl/mcxProfiles.dsclext" } ] }, { "value": 0, "name": "Templates", "path": "DirectoryServices/Templates", "children": [ { "value": 0, "name": "LDAPv3", "path": "DirectoryServices/Templates/LDAPv3" } ] } ] }, { "value": 0, "name": "Displays", "path": "Displays", "children": [ { "value": 0, "name": "_CodeSignature", "path": "Displays/_CodeSignature" }, { "value": 0, "name": "Overrides", "path": "Displays/Overrides", "children": [ { "value": 0, "name": "Contents", "path": "Displays/Overrides/Contents" }, { "value": 0, "name": "DisplayVendorID-11a9", "path": "Displays/Overrides/DisplayVendorID-11a9" }, { "value": 0, "name": "DisplayVendorID-2283", "path": "Displays/Overrides/DisplayVendorID-2283" }, { "value": 0, "name": "DisplayVendorID-34a9", "path": "Displays/Overrides/DisplayVendorID-34a9" }, { "value": 0, "name": "DisplayVendorID-38a3", "path": "Displays/Overrides/DisplayVendorID-38a3" }, { "value": 0, "name": "DisplayVendorID-4c2d", "path": "Displays/Overrides/DisplayVendorID-4c2d" }, { "value": 0, "name": "DisplayVendorID-4dd9", "path": "Displays/Overrides/DisplayVendorID-4dd9" }, { "value": 0, "name": "DisplayVendorID-5a63", "path": "Displays/Overrides/DisplayVendorID-5a63" }, { "value": 0, "name": "DisplayVendorID-5b4", "path": "Displays/Overrides/DisplayVendorID-5b4" }, { "value": 0, "name": "DisplayVendorID-610", "path": "Displays/Overrides/DisplayVendorID-610" }, { "value": 0, "name": "DisplayVendorID-756e6b6e", "path": "Displays/Overrides/DisplayVendorID-756e6b6e" }, { "value": 0, "name": "DisplayVendorID-daf", "path": "Displays/Overrides/DisplayVendorID-daf" } ] } ] }, { "value": 16, "name": "DTDs", "path": "DTDs" }, { "value": 400116, "name": "Extensions", "path": "Extensions", "children": [ { "value": 0, "name": "10.5", "path": "Extensions/10.5" }, { "value": 0, "name": "10.6", "path": "Extensions/10.6" }, { "value": 116, "name": "Accusys6xxxx.kext", "path": "Extensions/Accusys6xxxx.kext", "children": [ { "value": 116, "name": "Contents", "path": "Extensions/Accusys6xxxx.kext/Contents" } ] }, { "value": 1236, "name": "acfs.kext", "path": "Extensions/acfs.kext", "children": [ { "value": 1236, "name": "Contents", "path": "Extensions/acfs.kext/Contents" } ] }, { "value": 32, "name": "acfsctl.kext", "path": "Extensions/acfsctl.kext", "children": [ { "value": 32, "name": "Contents", "path": "Extensions/acfsctl.kext/Contents" } ] }, { "value": 196, "name": "ALF.kext", "path": "Extensions/ALF.kext", "children": [ { "value": 196, "name": "Contents", "path": "Extensions/ALF.kext/Contents" } ] }, { "value": 1836, "name": "AMD2400Controller.kext", "path": "Extensions/AMD2400Controller.kext", "children": [ { "value": 1836, "name": "Contents", "path": "Extensions/AMD2400Controller.kext/Contents" } ] }, { "value": 1840, "name": "AMD2600Controller.kext", "path": "Extensions/AMD2600Controller.kext", "children": [ { "value": 1840, "name": "Contents", "path": "Extensions/AMD2600Controller.kext/Contents" } ] }, { "value": 1848, "name": "AMD3800Controller.kext", "path": "Extensions/AMD3800Controller.kext", "children": [ { "value": 1848, "name": "Contents", "path": "Extensions/AMD3800Controller.kext/Contents" } ] }, { "value": 1828, "name": "AMD4600Controller.kext", "path": "Extensions/AMD4600Controller.kext", "children": [ { "value": 1828, "name": "Contents", "path": "Extensions/AMD4600Controller.kext/Contents" } ] }, { "value": 1820, "name": "AMD4800Controller.kext", "path": "Extensions/AMD4800Controller.kext", "children": [ { "value": 1820, "name": "Contents", "path": "Extensions/AMD4800Controller.kext/Contents" } ] }, { "value": 2268, "name": "AMD5000Controller.kext", "path": "Extensions/AMD5000Controller.kext", "children": [ { "value": 2268, "name": "Contents", "path": "Extensions/AMD5000Controller.kext/Contents" } ] }, { "value": 2292, "name": "AMD6000Controller.kext", "path": "Extensions/AMD6000Controller.kext", "children": [ { "value": 2292, "name": "Contents", "path": "Extensions/AMD6000Controller.kext/Contents" } ] }, { "value": 2316, "name": "AMD7000Controller.kext", "path": "Extensions/AMD7000Controller.kext", "children": [ { "value": 2316, "name": "Contents", "path": "Extensions/AMD7000Controller.kext/Contents" } ] }, { "value": 164, "name": "AMDFramebuffer.kext", "path": "Extensions/AMDFramebuffer.kext", "children": [ { "value": 164, "name": "Contents", "path": "Extensions/AMDFramebuffer.kext/Contents" } ] }, { "value": 1572, "name": "AMDRadeonVADriver.bundle", "path": "Extensions/AMDRadeonVADriver.bundle", "children": [ { "value": 1572, "name": "Contents", "path": "Extensions/AMDRadeonVADriver.bundle/Contents" } ] }, { "value": 4756, "name": "AMDRadeonX3000.kext", "path": "Extensions/AMDRadeonX3000.kext", "children": [ { "value": 4756, "name": "Contents", "path": "Extensions/AMDRadeonX3000.kext/Contents" } ] }, { "value": 11224, "name": "AMDRadeonX3000GLDriver.bundle", "path": "Extensions/AMDRadeonX3000GLDriver.bundle", "children": [ { "value": 11224, "name": "Contents", "path": "Extensions/AMDRadeonX3000GLDriver.bundle/Contents" } ] }, { "value": 4532, "name": "AMDRadeonX4000.kext", "path": "Extensions/AMDRadeonX4000.kext", "children": [ { "value": 4532, "name": "Contents", "path": "Extensions/AMDRadeonX4000.kext/Contents" } ] }, { "value": 17144, "name": "AMDRadeonX4000GLDriver.bundle", "path": "Extensions/AMDRadeonX4000GLDriver.bundle", "children": [ { "value": 17144, "name": "Contents", "path": "Extensions/AMDRadeonX4000GLDriver.bundle/Contents" } ] }, { "value": 544, "name": "AMDSupport.kext", "path": "Extensions/AMDSupport.kext", "children": [ { "value": 544, "name": "Contents", "path": "Extensions/AMDSupport.kext/Contents" } ] }, { "value": 148, "name": "Apple16X50Serial.kext", "path": "Extensions/Apple16X50Serial.kext", "children": [ { "value": 148, "name": "Contents", "path": "Extensions/Apple16X50Serial.kext/Contents" } ] }, { "value": 60, "name": "Apple_iSight.kext", "path": "Extensions/Apple_iSight.kext", "children": [ { "value": 60, "name": "Contents", "path": "Extensions/Apple_iSight.kext/Contents" } ] }, { "value": 596, "name": "AppleACPIPlatform.kext", "path": "Extensions/AppleACPIPlatform.kext", "children": [ { "value": 596, "name": "Contents", "path": "Extensions/AppleACPIPlatform.kext/Contents" } ] }, { "value": 208, "name": "AppleAHCIPort.kext", "path": "Extensions/AppleAHCIPort.kext", "children": [ { "value": 208, "name": "Contents", "path": "Extensions/AppleAHCIPort.kext/Contents" } ] }, { "value": 56, "name": "AppleAPIC.kext", "path": "Extensions/AppleAPIC.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleAPIC.kext/Contents" } ] }, { "value": 84, "name": "AppleBacklight.kext", "path": "Extensions/AppleBacklight.kext", "children": [ { "value": 84, "name": "Contents", "path": "Extensions/AppleBacklight.kext/Contents" } ] }, { "value": 56, "name": "AppleBacklightExpert.kext", "path": "Extensions/AppleBacklightExpert.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/AppleBacklightExpert.kext/_CodeSignature" } ] }, { "value": 180, "name": "AppleBluetoothMultitouch.kext", "path": "Extensions/AppleBluetoothMultitouch.kext", "children": [ { "value": 180, "name": "Contents", "path": "Extensions/AppleBluetoothMultitouch.kext/Contents" } ] }, { "value": 80, "name": "AppleBMC.kext", "path": "Extensions/AppleBMC.kext", "children": [ { "value": 80, "name": "Contents", "path": "Extensions/AppleBMC.kext/Contents" } ] }, { "value": 152, "name": "AppleCameraInterface.kext", "path": "Extensions/AppleCameraInterface.kext", "children": [ { "value": 152, "name": "Contents", "path": "Extensions/AppleCameraInterface.kext/Contents" } ] }, { "value": 152, "name": "AppleEFIRuntime.kext", "path": "Extensions/AppleEFIRuntime.kext", "children": [ { "value": 152, "name": "Contents", "path": "Extensions/AppleEFIRuntime.kext/Contents" } ] }, { "value": 88, "name": "AppleFDEKeyStore.kext", "path": "Extensions/AppleFDEKeyStore.kext", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/AppleFDEKeyStore.kext/Contents" } ] }, { "value": 48, "name": "AppleFileSystemDriver.kext", "path": "Extensions/AppleFileSystemDriver.kext", "children": [ { "value": 48, "name": "Contents", "path": "Extensions/AppleFileSystemDriver.kext/Contents" } ] }, { "value": 56, "name": "AppleFSCompressionTypeDataless.kext", "path": "Extensions/AppleFSCompressionTypeDataless.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleFSCompressionTypeDataless.kext/Contents" } ] }, { "value": 60, "name": "AppleFSCompressionTypeZlib.kext", "path": "Extensions/AppleFSCompressionTypeZlib.kext", "children": [ { "value": 60, "name": "Contents", "path": "Extensions/AppleFSCompressionTypeZlib.kext/Contents" } ] }, { "value": 628, "name": "AppleFWAudio.kext", "path": "Extensions/AppleFWAudio.kext", "children": [ { "value": 628, "name": "Contents", "path": "Extensions/AppleFWAudio.kext/Contents" } ] }, { "value": 396, "name": "AppleGraphicsControl.kext", "path": "Extensions/AppleGraphicsControl.kext", "children": [ { "value": 396, "name": "Contents", "path": "Extensions/AppleGraphicsControl.kext/Contents" } ] }, { "value": 276, "name": "AppleGraphicsPowerManagement.kext", "path": "Extensions/AppleGraphicsPowerManagement.kext", "children": [ { "value": 276, "name": "Contents", "path": "Extensions/AppleGraphicsPowerManagement.kext/Contents" } ] }, { "value": 3112, "name": "AppleHDA.kext", "path": "Extensions/AppleHDA.kext", "children": [ { "value": 3112, "name": "Contents", "path": "Extensions/AppleHDA.kext/Contents" } ] }, { "value": 488, "name": "AppleHIDKeyboard.kext", "path": "Extensions/AppleHIDKeyboard.kext", "children": [ { "value": 488, "name": "Contents", "path": "Extensions/AppleHIDKeyboard.kext/Contents" } ] }, { "value": 184, "name": "AppleHIDMouse.kext", "path": "Extensions/AppleHIDMouse.kext", "children": [ { "value": 184, "name": "Contents", "path": "Extensions/AppleHIDMouse.kext/Contents" } ] }, { "value": 52, "name": "AppleHPET.kext", "path": "Extensions/AppleHPET.kext", "children": [ { "value": 52, "name": "Contents", "path": "Extensions/AppleHPET.kext/Contents" } ] }, { "value": 64, "name": "AppleHSSPIHIDDriver.kext", "path": "Extensions/AppleHSSPIHIDDriver.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleHSSPIHIDDriver.kext/Contents" } ] }, { "value": 144, "name": "AppleHSSPISupport.kext", "path": "Extensions/AppleHSSPISupport.kext", "children": [ { "value": 144, "name": "Contents", "path": "Extensions/AppleHSSPISupport.kext/Contents" } ] }, { "value": 64, "name": "AppleHWAccess.kext", "path": "Extensions/AppleHWAccess.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleHWAccess.kext/Contents" } ] }, { "value": 72, "name": "AppleHWSensor.kext", "path": "Extensions/AppleHWSensor.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/AppleHWSensor.kext/Contents" } ] }, { "value": 244, "name": "AppleIntelCPUPowerManagement.kext", "path": "Extensions/AppleIntelCPUPowerManagement.kext", "children": [ { "value": 244, "name": "Contents", "path": "Extensions/AppleIntelCPUPowerManagement.kext/Contents" } ] }, { "value": 52, "name": "AppleIntelCPUPowerManagementClient.kext", "path": "Extensions/AppleIntelCPUPowerManagementClient.kext", "children": [ { "value": 52, "name": "Contents", "path": "Extensions/AppleIntelCPUPowerManagementClient.kext/Contents" } ] }, { "value": 480, "name": "AppleIntelFramebufferAzul.kext", "path": "Extensions/AppleIntelFramebufferAzul.kext", "children": [ { "value": 480, "name": "Contents", "path": "Extensions/AppleIntelFramebufferAzul.kext/Contents" } ] }, { "value": 492, "name": "AppleIntelFramebufferCapri.kext", "path": "Extensions/AppleIntelFramebufferCapri.kext", "children": [ { "value": 492, "name": "Contents", "path": "Extensions/AppleIntelFramebufferCapri.kext/Contents" } ] }, { "value": 604, "name": "AppleIntelHD3000Graphics.kext", "path": "Extensions/AppleIntelHD3000Graphics.kext", "children": [ { "value": 604, "name": "Contents", "path": "Extensions/AppleIntelHD3000Graphics.kext/Contents" } ] }, { "value": 64, "name": "AppleIntelHD3000GraphicsGA.plugin", "path": "Extensions/AppleIntelHD3000GraphicsGA.plugin", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleIntelHD3000GraphicsGA.plugin/Contents" } ] }, { "value": 9164, "name": "AppleIntelHD3000GraphicsGLDriver.bundle", "path": "Extensions/AppleIntelHD3000GraphicsGLDriver.bundle", "children": [ { "value": 9164, "name": "Contents", "path": "Extensions/AppleIntelHD3000GraphicsGLDriver.bundle/Contents" } ] }, { "value": 2520, "name": "AppleIntelHD3000GraphicsVADriver.bundle", "path": "Extensions/AppleIntelHD3000GraphicsVADriver.bundle", "children": [ { "value": 2520, "name": "Contents", "path": "Extensions/AppleIntelHD3000GraphicsVADriver.bundle/Contents" } ] }, { "value": 536, "name": "AppleIntelHD4000Graphics.kext", "path": "Extensions/AppleIntelHD4000Graphics.kext", "children": [ { "value": 536, "name": "Contents", "path": "Extensions/AppleIntelHD4000Graphics.kext/Contents" } ] }, { "value": 22996, "name": "AppleIntelHD4000GraphicsGLDriver.bundle", "path": "Extensions/AppleIntelHD4000GraphicsGLDriver.bundle", "children": [ { "value": 22996, "name": "Contents", "path": "Extensions/AppleIntelHD4000GraphicsGLDriver.bundle/Contents" } ] }, { "value": 3608, "name": "AppleIntelHD4000GraphicsVADriver.bundle", "path": "Extensions/AppleIntelHD4000GraphicsVADriver.bundle", "children": [ { "value": 3608, "name": "Contents", "path": "Extensions/AppleIntelHD4000GraphicsVADriver.bundle/Contents" } ] }, { "value": 564, "name": "AppleIntelHD5000Graphics.kext", "path": "Extensions/AppleIntelHD5000Graphics.kext", "children": [ { "value": 564, "name": "Contents", "path": "Extensions/AppleIntelHD5000Graphics.kext/Contents" } ] }, { "value": 20692, "name": "AppleIntelHD5000GraphicsGLDriver.bundle", "path": "Extensions/AppleIntelHD5000GraphicsGLDriver.bundle", "children": [ { "value": 20692, "name": "Contents", "path": "Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents" } ] }, { "value": 6120, "name": "AppleIntelHD5000GraphicsVADriver.bundle", "path": "Extensions/AppleIntelHD5000GraphicsVADriver.bundle", "children": [ { "value": 6120, "name": "Contents", "path": "Extensions/AppleIntelHD5000GraphicsVADriver.bundle/Contents" } ] }, { "value": 976, "name": "AppleIntelHDGraphics.kext", "path": "Extensions/AppleIntelHDGraphics.kext", "children": [ { "value": 976, "name": "Contents", "path": "Extensions/AppleIntelHDGraphics.kext/Contents" } ] }, { "value": 148, "name": "AppleIntelHDGraphicsFB.kext", "path": "Extensions/AppleIntelHDGraphicsFB.kext", "children": [ { "value": 148, "name": "Contents", "path": "Extensions/AppleIntelHDGraphicsFB.kext/Contents" } ] }, { "value": 64, "name": "AppleIntelHDGraphicsGA.plugin", "path": "Extensions/AppleIntelHDGraphicsGA.plugin", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleIntelHDGraphicsGA.plugin/Contents" } ] }, { "value": 9108, "name": "AppleIntelHDGraphicsGLDriver.bundle", "path": "Extensions/AppleIntelHDGraphicsGLDriver.bundle", "children": [ { "value": 9108, "name": "Contents", "path": "Extensions/AppleIntelHDGraphicsGLDriver.bundle/Contents" } ] }, { "value": 104, "name": "AppleIntelHDGraphicsVADriver.bundle", "path": "Extensions/AppleIntelHDGraphicsVADriver.bundle", "children": [ { "value": 104, "name": "Contents", "path": "Extensions/AppleIntelHDGraphicsVADriver.bundle/Contents" } ] }, { "value": 96, "name": "AppleIntelHSWVA.bundle", "path": "Extensions/AppleIntelHSWVA.bundle", "children": [ { "value": 96, "name": "Contents", "path": "Extensions/AppleIntelHSWVA.bundle/Contents" } ] }, { "value": 96, "name": "AppleIntelIVBVA.bundle", "path": "Extensions/AppleIntelIVBVA.bundle", "children": [ { "value": 96, "name": "Contents", "path": "Extensions/AppleIntelIVBVA.bundle/Contents" } ] }, { "value": 72, "name": "AppleIntelLpssDmac.kext", "path": "Extensions/AppleIntelLpssDmac.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/AppleIntelLpssDmac.kext/Contents" } ] }, { "value": 76, "name": "AppleIntelLpssGspi.kext", "path": "Extensions/AppleIntelLpssGspi.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/AppleIntelLpssGspi.kext/Contents" } ] }, { "value": 132, "name": "AppleIntelLpssSpiController.kext", "path": "Extensions/AppleIntelLpssSpiController.kext", "children": [ { "value": 132, "name": "Contents", "path": "Extensions/AppleIntelLpssSpiController.kext/Contents" } ] }, { "value": 308, "name": "AppleIntelSNBGraphicsFB.kext", "path": "Extensions/AppleIntelSNBGraphicsFB.kext", "children": [ { "value": 308, "name": "Contents", "path": "Extensions/AppleIntelSNBGraphicsFB.kext/Contents" } ] }, { "value": 144, "name": "AppleIntelSNBVA.bundle", "path": "Extensions/AppleIntelSNBVA.bundle", "children": [ { "value": 144, "name": "Contents", "path": "Extensions/AppleIntelSNBVA.bundle/Contents" } ] }, { "value": 72, "name": "AppleIRController.kext", "path": "Extensions/AppleIRController.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/AppleIRController.kext/Contents" } ] }, { "value": 208, "name": "AppleKextExcludeList.kext", "path": "Extensions/AppleKextExcludeList.kext", "children": [ { "value": 208, "name": "Contents", "path": "Extensions/AppleKextExcludeList.kext/Contents" } ] }, { "value": 120, "name": "AppleKeyStore.kext", "path": "Extensions/AppleKeyStore.kext", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/AppleKeyStore.kext/Contents" } ] }, { "value": 48, "name": "AppleKeyswitch.kext", "path": "Extensions/AppleKeyswitch.kext", "children": [ { "value": 48, "name": "Contents", "path": "Extensions/AppleKeyswitch.kext/Contents" } ] }, { "value": 56, "name": "AppleLPC.kext", "path": "Extensions/AppleLPC.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleLPC.kext/Contents" } ] }, { "value": 188, "name": "AppleLSIFusionMPT.kext", "path": "Extensions/AppleLSIFusionMPT.kext", "children": [ { "value": 188, "name": "Contents", "path": "Extensions/AppleLSIFusionMPT.kext/Contents" } ] }, { "value": 36, "name": "AppleMatch.kext", "path": "Extensions/AppleMatch.kext", "children": [ { "value": 36, "name": "Contents", "path": "Extensions/AppleMatch.kext/Contents" } ] }, { "value": 140, "name": "AppleMCCSControl.kext", "path": "Extensions/AppleMCCSControl.kext", "children": [ { "value": 140, "name": "Contents", "path": "Extensions/AppleMCCSControl.kext/Contents" } ] }, { "value": 64, "name": "AppleMCEDriver.kext", "path": "Extensions/AppleMCEDriver.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/AppleMCEDriver.kext/Contents" } ] }, { "value": 76, "name": "AppleMCP89RootPortPM.kext", "path": "Extensions/AppleMCP89RootPortPM.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/AppleMCP89RootPortPM.kext/Contents" } ] }, { "value": 156, "name": "AppleMIDIFWDriver.plugin", "path": "Extensions/AppleMIDIFWDriver.plugin", "children": [ { "value": 156, "name": "Contents", "path": "Extensions/AppleMIDIFWDriver.plugin/Contents" } ] }, { "value": 236, "name": "AppleMIDIIACDriver.plugin", "path": "Extensions/AppleMIDIIACDriver.plugin", "children": [ { "value": 236, "name": "Contents", "path": "Extensions/AppleMIDIIACDriver.plugin/Contents" } ] }, { "value": 416, "name": "AppleMIDIRTPDriver.plugin", "path": "Extensions/AppleMIDIRTPDriver.plugin", "children": [ { "value": 416, "name": "Contents", "path": "Extensions/AppleMIDIRTPDriver.plugin/Contents" } ] }, { "value": 248, "name": "AppleMIDIUSBDriver.plugin", "path": "Extensions/AppleMIDIUSBDriver.plugin", "children": [ { "value": 248, "name": "Contents", "path": "Extensions/AppleMIDIUSBDriver.plugin/Contents" } ] }, { "value": 68, "name": "AppleMikeyHIDDriver.kext", "path": "Extensions/AppleMikeyHIDDriver.kext", "children": [ { "value": 68, "name": "Contents", "path": "Extensions/AppleMikeyHIDDriver.kext/Contents" } ] }, { "value": 28, "name": "AppleMobileDevice.kext", "path": "Extensions/AppleMobileDevice.kext", "children": [ { "value": 28, "name": "Contents", "path": "Extensions/AppleMobileDevice.kext/Contents" } ] }, { "value": 860, "name": "AppleMultitouchDriver.kext", "path": "Extensions/AppleMultitouchDriver.kext", "children": [ { "value": 860, "name": "Contents", "path": "Extensions/AppleMultitouchDriver.kext/Contents" } ] }, { "value": 136, "name": "ApplePlatformEnabler.kext", "path": "Extensions/ApplePlatformEnabler.kext", "children": [ { "value": 136, "name": "Contents", "path": "Extensions/ApplePlatformEnabler.kext/Contents" } ] }, { "value": 240, "name": "AppleRAID.kext", "path": "Extensions/AppleRAID.kext", "children": [ { "value": 240, "name": "Contents", "path": "Extensions/AppleRAID.kext/Contents" } ] }, { "value": 372, "name": "AppleRAIDCard.kext", "path": "Extensions/AppleRAIDCard.kext", "children": [ { "value": 372, "name": "Contents", "path": "Extensions/AppleRAIDCard.kext/Contents" } ] }, { "value": 80, "name": "AppleRTC.kext", "path": "Extensions/AppleRTC.kext", "children": [ { "value": 80, "name": "Contents", "path": "Extensions/AppleRTC.kext/Contents" } ] }, { "value": 148, "name": "AppleSDXC.kext", "path": "Extensions/AppleSDXC.kext", "children": [ { "value": 148, "name": "Contents", "path": "Extensions/AppleSDXC.kext/Contents" } ] }, { "value": 76, "name": "AppleSEP.kext", "path": "Extensions/AppleSEP.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/AppleSEP.kext/Contents" } ] }, { "value": 88, "name": "AppleSmartBatteryManager.kext", "path": "Extensions/AppleSmartBatteryManager.kext", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/AppleSmartBatteryManager.kext/Contents" } ] }, { "value": 60, "name": "AppleSMBIOS.kext", "path": "Extensions/AppleSMBIOS.kext", "children": [ { "value": 60, "name": "Contents", "path": "Extensions/AppleSMBIOS.kext/Contents" } ] }, { "value": 116, "name": "AppleSMBusController.kext", "path": "Extensions/AppleSMBusController.kext", "children": [ { "value": 116, "name": "Contents", "path": "Extensions/AppleSMBusController.kext/Contents" } ] }, { "value": 56, "name": "AppleSMBusPCI.kext", "path": "Extensions/AppleSMBusPCI.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleSMBusPCI.kext/Contents" } ] }, { "value": 120, "name": "AppleSMC.kext", "path": "Extensions/AppleSMC.kext", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/AppleSMC.kext/Contents" } ] }, { "value": 172, "name": "AppleSMCLMU.kext", "path": "Extensions/AppleSMCLMU.kext", "children": [ { "value": 172, "name": "Contents", "path": "Extensions/AppleSMCLMU.kext/Contents" } ] }, { "value": 88, "name": "AppleSRP.kext", "path": "Extensions/AppleSRP.kext", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/AppleSRP.kext/Contents" } ] }, { "value": 1936, "name": "AppleStorageDrivers.kext", "path": "Extensions/AppleStorageDrivers.kext", "children": [ { "value": 1936, "name": "Contents", "path": "Extensions/AppleStorageDrivers.kext/Contents" } ] }, { "value": 264, "name": "AppleThunderboltDPAdapters.kext", "path": "Extensions/AppleThunderboltDPAdapters.kext", "children": [ { "value": 264, "name": "Contents", "path": "Extensions/AppleThunderboltDPAdapters.kext/Contents" } ] }, { "value": 204, "name": "AppleThunderboltEDMService.kext", "path": "Extensions/AppleThunderboltEDMService.kext", "children": [ { "value": 204, "name": "Contents", "path": "Extensions/AppleThunderboltEDMService.kext/Contents" } ] }, { "value": 216, "name": "AppleThunderboltIP.kext", "path": "Extensions/AppleThunderboltIP.kext", "children": [ { "value": 216, "name": "Contents", "path": "Extensions/AppleThunderboltIP.kext/Contents" } ] }, { "value": 168, "name": "AppleThunderboltNHI.kext", "path": "Extensions/AppleThunderboltNHI.kext", "children": [ { "value": 168, "name": "Contents", "path": "Extensions/AppleThunderboltNHI.kext/Contents" } ] }, { "value": 172, "name": "AppleThunderboltPCIAdapters.kext", "path": "Extensions/AppleThunderboltPCIAdapters.kext", "children": [ { "value": 172, "name": "Contents", "path": "Extensions/AppleThunderboltPCIAdapters.kext/Contents" } ] }, { "value": 164, "name": "AppleThunderboltUTDM.kext", "path": "Extensions/AppleThunderboltUTDM.kext", "children": [ { "value": 164, "name": "Contents", "path": "Extensions/AppleThunderboltUTDM.kext/Contents" } ] }, { "value": 188, "name": "AppleTopCase.kext", "path": "Extensions/AppleTopCase.kext", "children": [ { "value": 188, "name": "Contents", "path": "Extensions/AppleTopCase.kext/Contents" } ] }, { "value": 92, "name": "AppleTyMCEDriver.kext", "path": "Extensions/AppleTyMCEDriver.kext", "children": [ { "value": 92, "name": "Contents", "path": "Extensions/AppleTyMCEDriver.kext/Contents" } ] }, { "value": 72, "name": "AppleUpstreamUserClient.kext", "path": "Extensions/AppleUpstreamUserClient.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/AppleUpstreamUserClient.kext/Contents" } ] }, { "value": 408, "name": "AppleUSBAudio.kext", "path": "Extensions/AppleUSBAudio.kext", "children": [ { "value": 408, "name": "Contents", "path": "Extensions/AppleUSBAudio.kext/Contents" } ] }, { "value": 76, "name": "AppleUSBDisplays.kext", "path": "Extensions/AppleUSBDisplays.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/AppleUSBDisplays.kext/Contents" } ] }, { "value": 144, "name": "AppleUSBEthernetHost.kext", "path": "Extensions/AppleUSBEthernetHost.kext", "children": [ { "value": 144, "name": "Contents", "path": "Extensions/AppleUSBEthernetHost.kext/Contents" } ] }, { "value": 160, "name": "AppleUSBMultitouch.kext", "path": "Extensions/AppleUSBMultitouch.kext", "children": [ { "value": 160, "name": "Contents", "path": "Extensions/AppleUSBMultitouch.kext/Contents" } ] }, { "value": 728, "name": "AppleUSBTopCase.kext", "path": "Extensions/AppleUSBTopCase.kext", "children": [ { "value": 728, "name": "Contents", "path": "Extensions/AppleUSBTopCase.kext/Contents" } ] }, { "value": 3576, "name": "AppleVADriver.bundle", "path": "Extensions/AppleVADriver.bundle", "children": [ { "value": 3576, "name": "Contents", "path": "Extensions/AppleVADriver.bundle/Contents" } ] }, { "value": 60, "name": "AppleWWANAutoEject.kext", "path": "Extensions/AppleWWANAutoEject.kext", "children": [ { "value": 60, "name": "Contents", "path": "Extensions/AppleWWANAutoEject.kext/Contents" } ] }, { "value": 56, "name": "AppleXsanFilter.kext", "path": "Extensions/AppleXsanFilter.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/AppleXsanFilter.kext/Contents" } ] }, { "value": 2976, "name": "ATIRadeonX2000.kext", "path": "Extensions/ATIRadeonX2000.kext", "children": [ { "value": 2976, "name": "Contents", "path": "Extensions/ATIRadeonX2000.kext/Contents" } ] }, { "value": 88, "name": "ATIRadeonX2000GA.plugin", "path": "Extensions/ATIRadeonX2000GA.plugin", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/ATIRadeonX2000GA.plugin/Contents" } ] }, { "value": 5808, "name": "ATIRadeonX2000GLDriver.bundle", "path": "Extensions/ATIRadeonX2000GLDriver.bundle", "children": [ { "value": 5808, "name": "Contents", "path": "Extensions/ATIRadeonX2000GLDriver.bundle/Contents" } ] }, { "value": 396, "name": "ATIRadeonX2000VADriver.bundle", "path": "Extensions/ATIRadeonX2000VADriver.bundle", "children": [ { "value": 396, "name": "Contents", "path": "Extensions/ATIRadeonX2000VADriver.bundle/Contents" } ] }, { "value": 496, "name": "ATTOCelerityFC.kext", "path": "Extensions/ATTOCelerityFC.kext", "children": [ { "value": 496, "name": "Contents", "path": "Extensions/ATTOCelerityFC.kext/Contents" } ] }, { "value": 268, "name": "ATTOExpressPCI4.kext", "path": "Extensions/ATTOExpressPCI4.kext", "children": [ { "value": 268, "name": "Contents", "path": "Extensions/ATTOExpressPCI4.kext/Contents" } ] }, { "value": 252, "name": "ATTOExpressSASHBA.kext", "path": "Extensions/ATTOExpressSASHBA.kext", "children": [ { "value": 252, "name": "Contents", "path": "Extensions/ATTOExpressSASHBA.kext/Contents" } ] }, { "value": 388, "name": "ATTOExpressSASHBA3.kext", "path": "Extensions/ATTOExpressSASHBA3.kext", "children": [ { "value": 388, "name": "Contents", "path": "Extensions/ATTOExpressSASHBA3.kext/Contents" } ] }, { "value": 212, "name": "ATTOExpressSASRAID.kext", "path": "Extensions/ATTOExpressSASRAID.kext", "children": [ { "value": 212, "name": "Contents", "path": "Extensions/ATTOExpressSASRAID.kext/Contents" } ] }, { "value": 72, "name": "AudioAUUC.kext", "path": "Extensions/AudioAUUC.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/AudioAUUC.kext/_CodeSignature" } ] }, { "value": 144, "name": "autofs.kext", "path": "Extensions/autofs.kext", "children": [ { "value": 144, "name": "Contents", "path": "Extensions/autofs.kext/Contents" } ] }, { "value": 80, "name": "BootCache.kext", "path": "Extensions/BootCache.kext", "children": [ { "value": 80, "name": "Contents", "path": "Extensions/BootCache.kext/Contents" } ] }, { "value": 64, "name": "cd9660.kext", "path": "Extensions/cd9660.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/cd9660.kext/Contents" } ] }, { "value": 48, "name": "cddafs.kext", "path": "Extensions/cddafs.kext", "children": [ { "value": 48, "name": "Contents", "path": "Extensions/cddafs.kext/Contents" } ] }, { "value": 432, "name": "CellPhoneHelper.kext", "path": "Extensions/CellPhoneHelper.kext", "children": [ { "value": 432, "name": "Contents", "path": "Extensions/CellPhoneHelper.kext/Contents" } ] }, { "value": 0, "name": "ch34xsigned.kext", "path": "Extensions/ch34xsigned.kext" }, { "value": 308, "name": "corecrypto.kext", "path": "Extensions/corecrypto.kext", "children": [ { "value": 308, "name": "Contents", "path": "Extensions/corecrypto.kext/Contents" } ] }, { "value": 1324, "name": "CoreStorage.kext", "path": "Extensions/CoreStorage.kext", "children": [ { "value": 1324, "name": "Contents", "path": "Extensions/CoreStorage.kext/Contents" } ] }, { "value": 72, "name": "DontSteal Mac OS X.kext", "path": "Extensions/DontSteal Mac OS X.kext", "children": [ { "value": 68, "name": "Contents", "path": "Extensions/DontSteal Mac OS X.kext/Contents" } ] }, { "value": 36, "name": "DSACL.ppp", "path": "Extensions/DSACL.ppp", "children": [ { "value": 36, "name": "Contents", "path": "Extensions/DSACL.ppp/Contents" } ] }, { "value": 40, "name": "DSAuth.ppp", "path": "Extensions/DSAuth.ppp", "children": [ { "value": 40, "name": "Contents", "path": "Extensions/DSAuth.ppp/Contents" } ] }, { "value": 56, "name": "DVFamily.bundle", "path": "Extensions/DVFamily.bundle", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/DVFamily.bundle/Contents" } ] }, { "value": 312, "name": "EAP-KRB.ppp", "path": "Extensions/EAP-KRB.ppp", "children": [ { "value": 312, "name": "Contents", "path": "Extensions/EAP-KRB.ppp/Contents" } ] }, { "value": 792, "name": "EAP-RSA.ppp", "path": "Extensions/EAP-RSA.ppp", "children": [ { "value": 792, "name": "Contents", "path": "Extensions/EAP-RSA.ppp/Contents" } ] }, { "value": 308, "name": "EAP-TLS.ppp", "path": "Extensions/EAP-TLS.ppp", "children": [ { "value": 308, "name": "Contents", "path": "Extensions/EAP-TLS.ppp/Contents" } ] }, { "value": 88, "name": "exfat.kext", "path": "Extensions/exfat.kext", "children": [ { "value": 88, "name": "Contents", "path": "Extensions/exfat.kext/Contents" } ] }, { "value": 776, "name": "GeForce.kext", "path": "Extensions/GeForce.kext", "children": [ { "value": 776, "name": "Contents", "path": "Extensions/GeForce.kext/Contents" } ] }, { "value": 160, "name": "GeForceGA.plugin", "path": "Extensions/GeForceGA.plugin", "children": [ { "value": 160, "name": "Contents", "path": "Extensions/GeForceGA.plugin/Contents" } ] }, { "value": 67212, "name": "GeForceGLDriver.bundle", "path": "Extensions/GeForceGLDriver.bundle", "children": [ { "value": 67212, "name": "Contents", "path": "Extensions/GeForceGLDriver.bundle/Contents" } ] }, { "value": 1100, "name": "GeForceTesla.kext", "path": "Extensions/GeForceTesla.kext", "children": [ { "value": 1100, "name": "Contents", "path": "Extensions/GeForceTesla.kext/Contents" } ] }, { "value": 67012, "name": "GeForceTeslaGLDriver.bundle", "path": "Extensions/GeForceTeslaGLDriver.bundle", "children": [ { "value": 67012, "name": "Contents", "path": "Extensions/GeForceTeslaGLDriver.bundle/Contents" } ] }, { "value": 1584, "name": "GeForceTeslaVADriver.bundle", "path": "Extensions/GeForceTeslaVADriver.bundle", "children": [ { "value": 1584, "name": "Contents", "path": "Extensions/GeForceTeslaVADriver.bundle/Contents" } ] }, { "value": 1476, "name": "GeForceVADriver.bundle", "path": "Extensions/GeForceVADriver.bundle", "children": [ { "value": 1476, "name": "Contents", "path": "Extensions/GeForceVADriver.bundle/Contents" } ] }, { "value": 212, "name": "intelhaxm.kext", "path": "Extensions/intelhaxm.kext", "children": [ { "value": 212, "name": "Contents", "path": "Extensions/intelhaxm.kext/Contents" } ] }, { "value": 10488, "name": "IO80211Family.kext", "path": "Extensions/IO80211Family.kext", "children": [ { "value": 10488, "name": "Contents", "path": "Extensions/IO80211Family.kext/Contents" } ] }, { "value": 56, "name": "IOAccelerator2D.plugin", "path": "Extensions/IOAccelerator2D.plugin", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/IOAccelerator2D.plugin/Contents" } ] }, { "value": 448, "name": "IOAcceleratorFamily.kext", "path": "Extensions/IOAcceleratorFamily.kext", "children": [ { "value": 448, "name": "Contents", "path": "Extensions/IOAcceleratorFamily.kext/Contents" } ] }, { "value": 508, "name": "IOAcceleratorFamily2.kext", "path": "Extensions/IOAcceleratorFamily2.kext", "children": [ { "value": 508, "name": "Contents", "path": "Extensions/IOAcceleratorFamily2.kext/Contents" } ] }, { "value": 76, "name": "IOACPIFamily.kext", "path": "Extensions/IOACPIFamily.kext", "children": [ { "value": 76, "name": "Contents", "path": "Extensions/IOACPIFamily.kext/Contents" } ] }, { "value": 448, "name": "IOAHCIFamily.kext", "path": "Extensions/IOAHCIFamily.kext", "children": [ { "value": 448, "name": "Contents", "path": "Extensions/IOAHCIFamily.kext/Contents" } ] }, { "value": 872, "name": "IOATAFamily.kext", "path": "Extensions/IOATAFamily.kext", "children": [ { "value": 872, "name": "Contents", "path": "Extensions/IOATAFamily.kext/Contents" } ] }, { "value": 276, "name": "IOAudioFamily.kext", "path": "Extensions/IOAudioFamily.kext", "children": [ { "value": 276, "name": "Contents", "path": "Extensions/IOAudioFamily.kext/Contents" } ] }, { "value": 692, "name": "IOAVBFamily.kext", "path": "Extensions/IOAVBFamily.kext", "children": [ { "value": 692, "name": "Contents", "path": "Extensions/IOAVBFamily.kext/Contents" } ] }, { "value": 4808, "name": "IOBDStorageFamily.kext", "path": "Extensions/IOBDStorageFamily.kext", "children": [ { "value": 4808, "name": "Contents", "path": "Extensions/IOBDStorageFamily.kext/Contents" } ] }, { "value": 4460, "name": "IOBluetoothFamily.kext", "path": "Extensions/IOBluetoothFamily.kext", "children": [ { "value": 4460, "name": "Contents", "path": "Extensions/IOBluetoothFamily.kext/Contents" } ] }, { "value": 260, "name": "IOBluetoothHIDDriver.kext", "path": "Extensions/IOBluetoothHIDDriver.kext", "children": [ { "value": 260, "name": "Contents", "path": "Extensions/IOBluetoothHIDDriver.kext/Contents" } ] }, { "value": 4816, "name": "IOCDStorageFamily.kext", "path": "Extensions/IOCDStorageFamily.kext", "children": [ { "value": 4816, "name": "Contents", "path": "Extensions/IOCDStorageFamily.kext/Contents" } ] }, { "value": 9656, "name": "IODVDStorageFamily.kext", "path": "Extensions/IODVDStorageFamily.kext", "children": [ { "value": 9656, "name": "Contents", "path": "Extensions/IODVDStorageFamily.kext/Contents" } ] }, { "value": 288, "name": "IOFireWireAVC.kext", "path": "Extensions/IOFireWireAVC.kext", "children": [ { "value": 288, "name": "Contents", "path": "Extensions/IOFireWireAVC.kext/Contents" } ] }, { "value": 1424, "name": "IOFireWireFamily.kext", "path": "Extensions/IOFireWireFamily.kext", "children": [ { "value": 1424, "name": "Contents", "path": "Extensions/IOFireWireFamily.kext/Contents" } ] }, { "value": 236, "name": "IOFireWireIP.kext", "path": "Extensions/IOFireWireIP.kext", "children": [ { "value": 236, "name": "Contents", "path": "Extensions/IOFireWireIP.kext/Contents" } ] }, { "value": 288, "name": "IOFireWireSBP2.kext", "path": "Extensions/IOFireWireSBP2.kext", "children": [ { "value": 288, "name": "Contents", "path": "Extensions/IOFireWireSBP2.kext/Contents" } ] }, { "value": 68, "name": "IOFireWireSerialBusProtocolTransport.kext", "path": "Extensions/IOFireWireSerialBusProtocolTransport.kext", "children": [ { "value": 68, "name": "Contents", "path": "Extensions/IOFireWireSerialBusProtocolTransport.kext/Contents" } ] }, { "value": 320, "name": "IOGraphicsFamily.kext", "path": "Extensions/IOGraphicsFamily.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/IOGraphicsFamily.kext/_CodeSignature" } ] }, { "value": 804, "name": "IOHDIXController.kext", "path": "Extensions/IOHDIXController.kext", "children": [ { "value": 804, "name": "Contents", "path": "Extensions/IOHDIXController.kext/Contents" } ] }, { "value": 940, "name": "IOHIDFamily.kext", "path": "Extensions/IOHIDFamily.kext", "children": [ { "value": 940, "name": "Contents", "path": "Extensions/IOHIDFamily.kext/Contents" } ] }, { "value": 108, "name": "IONDRVSupport.kext", "path": "Extensions/IONDRVSupport.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/IONDRVSupport.kext/_CodeSignature" } ] }, { "value": 2396, "name": "IONetworkingFamily.kext", "path": "Extensions/IONetworkingFamily.kext", "children": [ { "value": 2396, "name": "Contents", "path": "Extensions/IONetworkingFamily.kext/Contents" } ] }, { "value": 228, "name": "IOPCIFamily.kext", "path": "Extensions/IOPCIFamily.kext", "children": [ { "value": 4, "name": "_CodeSignature", "path": "Extensions/IOPCIFamily.kext/_CodeSignature" } ] }, { "value": 1400, "name": "IOPlatformPluginFamily.kext", "path": "Extensions/IOPlatformPluginFamily.kext", "children": [ { "value": 1400, "name": "Contents", "path": "Extensions/IOPlatformPluginFamily.kext/Contents" } ] }, { "value": 108, "name": "IOReportFamily.kext", "path": "Extensions/IOReportFamily.kext", "children": [ { "value": 108, "name": "Contents", "path": "Extensions/IOReportFamily.kext/Contents" } ] }, { "value": 13020, "name": "IOSCSIArchitectureModelFamily.kext", "path": "Extensions/IOSCSIArchitectureModelFamily.kext", "children": [ { "value": 13020, "name": "Contents", "path": "Extensions/IOSCSIArchitectureModelFamily.kext/Contents" } ] }, { "value": 120, "name": "IOSCSIParallelFamily.kext", "path": "Extensions/IOSCSIParallelFamily.kext", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/IOSCSIParallelFamily.kext/Contents" } ] }, { "value": 1292, "name": "IOSerialFamily.kext", "path": "Extensions/IOSerialFamily.kext", "children": [ { "value": 1292, "name": "Contents", "path": "Extensions/IOSerialFamily.kext/Contents" } ] }, { "value": 52, "name": "IOSMBusFamily.kext", "path": "Extensions/IOSMBusFamily.kext", "children": [ { "value": 52, "name": "Contents", "path": "Extensions/IOSMBusFamily.kext/Contents" } ] }, { "value": 2064, "name": "IOStorageFamily.kext", "path": "Extensions/IOStorageFamily.kext", "children": [ { "value": 2064, "name": "Contents", "path": "Extensions/IOStorageFamily.kext/Contents" } ] }, { "value": 164, "name": "IOStreamFamily.kext", "path": "Extensions/IOStreamFamily.kext", "children": [ { "value": 164, "name": "Contents", "path": "Extensions/IOStreamFamily.kext/Contents" } ] }, { "value": 124, "name": "IOSurface.kext", "path": "Extensions/IOSurface.kext", "children": [ { "value": 124, "name": "Contents", "path": "Extensions/IOSurface.kext/Contents" } ] }, { "value": 1040, "name": "IOThunderboltFamily.kext", "path": "Extensions/IOThunderboltFamily.kext", "children": [ { "value": 1040, "name": "Contents", "path": "Extensions/IOThunderboltFamily.kext/Contents" } ] }, { "value": 248, "name": "IOTimeSyncFamily.kext", "path": "Extensions/IOTimeSyncFamily.kext", "children": [ { "value": 248, "name": "Contents", "path": "Extensions/IOTimeSyncFamily.kext/Contents" } ] }, { "value": 96, "name": "IOUSBAttachedSCSI.kext", "path": "Extensions/IOUSBAttachedSCSI.kext", "children": [ { "value": 96, "name": "Contents", "path": "Extensions/IOUSBAttachedSCSI.kext/Contents" } ] }, { "value": 4628, "name": "IOUSBFamily.kext", "path": "Extensions/IOUSBFamily.kext", "children": [ { "value": 4628, "name": "Contents", "path": "Extensions/IOUSBFamily.kext/Contents" } ] }, { "value": 140, "name": "IOUSBMassStorageClass.kext", "path": "Extensions/IOUSBMassStorageClass.kext", "children": [ { "value": 140, "name": "Contents", "path": "Extensions/IOUSBMassStorageClass.kext/Contents" } ] }, { "value": 100, "name": "IOUserEthernet.kext", "path": "Extensions/IOUserEthernet.kext", "children": [ { "value": 100, "name": "Contents", "path": "Extensions/IOUserEthernet.kext/Contents" } ] }, { "value": 172, "name": "IOVideoFamily.kext", "path": "Extensions/IOVideoFamily.kext", "children": [ { "value": 172, "name": "Contents", "path": "Extensions/IOVideoFamily.kext/Contents" } ] }, { "value": 168, "name": "iPodDriver.kext", "path": "Extensions/iPodDriver.kext", "children": [ { "value": 168, "name": "Contents", "path": "Extensions/iPodDriver.kext/Contents" } ] }, { "value": 108, "name": "JMicronATA.kext", "path": "Extensions/JMicronATA.kext", "children": [ { "value": 108, "name": "Contents", "path": "Extensions/JMicronATA.kext/Contents" } ] }, { "value": 208, "name": "L2TP.ppp", "path": "Extensions/L2TP.ppp", "children": [ { "value": 208, "name": "Contents", "path": "Extensions/L2TP.ppp/Contents" } ] }, { "value": 64, "name": "mcxalr.kext", "path": "Extensions/mcxalr.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/mcxalr.kext/Contents" } ] }, { "value": 92, "name": "msdosfs.kext", "path": "Extensions/msdosfs.kext", "children": [ { "value": 92, "name": "Contents", "path": "Extensions/msdosfs.kext/Contents" } ] }, { "value": 408, "name": "ntfs.kext", "path": "Extensions/ntfs.kext", "children": [ { "value": 408, "name": "Contents", "path": "Extensions/ntfs.kext/Contents" } ] }, { "value": 2128, "name": "NVDAGF100Hal.kext", "path": "Extensions/NVDAGF100Hal.kext", "children": [ { "value": 2128, "name": "Contents", "path": "Extensions/NVDAGF100Hal.kext/Contents" } ] }, { "value": 1952, "name": "NVDAGK100Hal.kext", "path": "Extensions/NVDAGK100Hal.kext", "children": [ { "value": 1952, "name": "Contents", "path": "Extensions/NVDAGK100Hal.kext/Contents" } ] }, { "value": 3104, "name": "NVDANV50HalTesla.kext", "path": "Extensions/NVDANV50HalTesla.kext", "children": [ { "value": 3104, "name": "Contents", "path": "Extensions/NVDANV50HalTesla.kext/Contents" } ] }, { "value": 2524, "name": "NVDAResman.kext", "path": "Extensions/NVDAResman.kext", "children": [ { "value": 2524, "name": "Contents", "path": "Extensions/NVDAResman.kext/Contents" } ] }, { "value": 2540, "name": "NVDAResmanTesla.kext", "path": "Extensions/NVDAResmanTesla.kext", "children": [ { "value": 2540, "name": "Contents", "path": "Extensions/NVDAResmanTesla.kext/Contents" } ] }, { "value": 56, "name": "NVDAStartup.kext", "path": "Extensions/NVDAStartup.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/NVDAStartup.kext/Contents" } ] }, { "value": 104, "name": "NVSMU.kext", "path": "Extensions/NVSMU.kext", "children": [ { "value": 104, "name": "Contents", "path": "Extensions/NVSMU.kext/Contents" } ] }, { "value": 92, "name": "OSvKernDSPLib.kext", "path": "Extensions/OSvKernDSPLib.kext", "children": [ { "value": 92, "name": "Contents", "path": "Extensions/OSvKernDSPLib.kext/Contents" } ] }, { "value": 72, "name": "PPP.kext", "path": "Extensions/PPP.kext", "children": [ { "value": 72, "name": "Contents", "path": "Extensions/PPP.kext/Contents" } ] }, { "value": 120, "name": "PPPoE.ppp", "path": "Extensions/PPPoE.ppp", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/PPPoE.ppp/Contents" } ] }, { "value": 1572, "name": "PPPSerial.ppp", "path": "Extensions/PPPSerial.ppp", "children": [ { "value": 1572, "name": "Contents", "path": "Extensions/PPPSerial.ppp/Contents" } ] }, { "value": 120, "name": "PPTP.ppp", "path": "Extensions/PPTP.ppp", "children": [ { "value": 120, "name": "Contents", "path": "Extensions/PPTP.ppp/Contents" } ] }, { "value": 64, "name": "pthread.kext", "path": "Extensions/pthread.kext", "children": [ { "value": 64, "name": "Contents", "path": "Extensions/pthread.kext/Contents" } ] }, { "value": 56, "name": "Quarantine.kext", "path": "Extensions/Quarantine.kext", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/Quarantine.kext/Contents" } ] }, { "value": 56, "name": "Radius.ppp", "path": "Extensions/Radius.ppp", "children": [ { "value": 56, "name": "Contents", "path": "Extensions/Radius.ppp/Contents" } ] }, { "value": 52, "name": "RemoteVirtualInterface.kext", "path": "Extensions/RemoteVirtualInterface.kext", "children": [ { "value": 52, "name": "Contents", "path": "Extensions/RemoteVirtualInterface.kext/Contents" } ] }, { "value": 108, "name": "Sandbox.kext", "path": "Extensions/Sandbox.kext", "children": [ { "value": 108, "name": "Contents", "path": "Extensions/Sandbox.kext/Contents" } ] }, { "value": 68, "name": "SMARTLib.plugin", "path": "Extensions/SMARTLib.plugin", "children": [ { "value": 68, "name": "Contents", "path": "Extensions/SMARTLib.plugin/Contents" } ] }, { "value": 376, "name": "smbfs.kext", "path": "Extensions/smbfs.kext", "children": [ { "value": 376, "name": "Contents", "path": "Extensions/smbfs.kext/Contents" } ] }, { "value": 80, "name": "SMCMotionSensor.kext", "path": "Extensions/SMCMotionSensor.kext", "children": [ { "value": 80, "name": "Contents", "path": "Extensions/SMCMotionSensor.kext/Contents" } ] }, { "value": 504, "name": "System.kext", "path": "Extensions/System.kext", "children": [ { "value": 20, "name": "_CodeSignature", "path": "Extensions/System.kext/_CodeSignature" }, { "value": 476, "name": "PlugIns", "path": "Extensions/System.kext/PlugIns" } ] }, { "value": 56, "name": "TMSafetyNet.kext", "path": "Extensions/TMSafetyNet.kext", "children": [ { "value": 40, "name": "Contents", "path": "Extensions/TMSafetyNet.kext/Contents" }, { "value": 16, "name": "Helpers", "path": "Extensions/TMSafetyNet.kext/Helpers" } ] }, { "value": 40, "name": "triggers.kext", "path": "Extensions/triggers.kext", "children": [ { "value": 40, "name": "Contents", "path": "Extensions/triggers.kext/Contents" } ] }, { "value": 296, "name": "udf.kext", "path": "Extensions/udf.kext", "children": [ { "value": 296, "name": "Contents", "path": "Extensions/udf.kext/Contents" } ] }, { "value": 212, "name": "vecLib.kext", "path": "Extensions/vecLib.kext", "children": [ { "value": 212, "name": "Contents", "path": "Extensions/vecLib.kext/Contents" } ] }, { "value": 176, "name": "webcontentfilter.kext", "path": "Extensions/webcontentfilter.kext", "children": [ { "value": 176, "name": "Contents", "path": "Extensions/webcontentfilter.kext/Contents" } ] }, { "value": 232, "name": "webdav_fs.kext", "path": "Extensions/webdav_fs.kext", "children": [ { "value": 232, "name": "Contents", "path": "Extensions/webdav_fs.kext/Contents" } ] } ] }, { "value": 11992, "name": "Filesystems", "path": "Filesystems", "children": [ { "value": 5740, "name": "acfs.fs", "path": "Filesystems/acfs.fs", "children": [ { "value": 5644, "name": "Contents", "path": "Filesystems/acfs.fs/Contents" } ] }, { "value": 636, "name": "AppleShare", "path": "Filesystems/AppleShare", "children": [ { "value": 524, "name": "afpfs.kext", "path": "Filesystems/AppleShare/afpfs.kext" }, { "value": 88, "name": "asp_tcp.kext", "path": "Filesystems/AppleShare/asp_tcp.kext" }, { "value": 16, "name": "check_afp.app", "path": "Filesystems/AppleShare/check_afp.app" } ] }, { "value": 16, "name": "cd9660.fs", "path": "Filesystems/cd9660.fs", "children": [ { "value": 16, "name": "Contents", "path": "Filesystems/cd9660.fs/Contents" } ] }, { "value": 32, "name": "cddafs.fs", "path": "Filesystems/cddafs.fs", "children": [ { "value": 32, "name": "Contents", "path": "Filesystems/cddafs.fs/Contents" } ] }, { "value": 76, "name": "exfat.fs", "path": "Filesystems/exfat.fs", "children": [ { "value": 72, "name": "Contents", "path": "Filesystems/exfat.fs/Contents" } ] }, { "value": 36, "name": "ftp.fs", "path": "Filesystems/ftp.fs", "children": [ { "value": 0, "name": "Contents", "path": "Filesystems/ftp.fs/Contents" } ] }, { "value": 3180, "name": "hfs.fs", "path": "Filesystems/hfs.fs", "children": [ { "value": 452, "name": "Contents", "path": "Filesystems/hfs.fs/Contents" }, { "value": 2724, "name": "Encodings", "path": "Filesystems/hfs.fs/Encodings" } ] }, { "value": 64, "name": "msdos.fs", "path": "Filesystems/msdos.fs", "children": [ { "value": 60, "name": "Contents", "path": "Filesystems/msdos.fs/Contents" } ] }, { "value": 172, "name": "NetFSPlugins", "path": "Filesystems/NetFSPlugins", "children": [ { "value": 44, "name": "afp.bundle", "path": "Filesystems/NetFSPlugins/afp.bundle" }, { "value": 20, "name": "ftp.bundle", "path": "Filesystems/NetFSPlugins/ftp.bundle" }, { "value": 36, "name": "http.bundle", "path": "Filesystems/NetFSPlugins/http.bundle" }, { "value": 16, "name": "nfs.bundle", "path": "Filesystems/NetFSPlugins/nfs.bundle" }, { "value": 56, "name": "smb.bundle", "path": "Filesystems/NetFSPlugins/smb.bundle" } ] }, { "value": 0, "name": "nfs.fs", "path": "Filesystems/nfs.fs", "children": [ { "value": 0, "name": "Contents", "path": "Filesystems/nfs.fs/Contents" } ] }, { "value": 24, "name": "ntfs.fs", "path": "Filesystems/ntfs.fs", "children": [ { "value": 20, "name": "Contents", "path": "Filesystems/ntfs.fs/Contents" } ] }, { "value": 1800, "name": "prlufs.fs", "path": "Filesystems/prlufs.fs", "children": [ { "value": 1800, "name": "Support", "path": "Filesystems/prlufs.fs/Support" } ] }, { "value": 0, "name": "smbfs.fs", "path": "Filesystems/smbfs.fs", "children": [ { "value": 0, "name": "Contents", "path": "Filesystems/smbfs.fs/Contents" } ] }, { "value": 204, "name": "udf.fs", "path": "Filesystems/udf.fs", "children": [ { "value": 200, "name": "Contents", "path": "Filesystems/udf.fs/Contents" } ] }, { "value": 8, "name": "webdav.fs", "path": "Filesystems/webdav.fs", "children": [ { "value": 0, "name": "Contents", "path": "Filesystems/webdav.fs/Contents" }, { "value": 8, "name": "Support", "path": "Filesystems/webdav.fs/Support" } ] } ] }, { "value": 112, "name": "Filters", "path": "Filters" }, { "value": 201212, "name": "Fonts", "path": "Fonts" }, { "value": 647772, "name": "Frameworks", "path": "Frameworks", "children": [ { "value": 9800, "name": "Accelerate.framework", "path": "Frameworks/Accelerate.framework", "children": [ { "value": 9788, "name": "Versions", "path": "Frameworks/Accelerate.framework/Versions" } ] }, { "value": 100, "name": "Accounts.framework", "path": "Frameworks/Accounts.framework", "children": [ { "value": 92, "name": "Versions", "path": "Frameworks/Accounts.framework/Versions" } ] }, { "value": 10144, "name": "AddressBook.framework", "path": "Frameworks/AddressBook.framework", "children": [ { "value": 10136, "name": "Versions", "path": "Frameworks/AddressBook.framework/Versions" } ] }, { "value": 64, "name": "AGL.framework", "path": "Frameworks/AGL.framework", "children": [ { "value": 56, "name": "Versions", "path": "Frameworks/AGL.framework/Versions" } ] }, { "value": 30320, "name": "AppKit.framework", "path": "Frameworks/AppKit.framework", "children": [ { "value": 30308, "name": "Versions", "path": "Frameworks/AppKit.framework/Versions" } ] }, { "value": 12, "name": "AppKitScripting.framework", "path": "Frameworks/AppKitScripting.framework", "children": [ { "value": 4, "name": "Versions", "path": "Frameworks/AppKitScripting.framework/Versions" } ] }, { "value": 632, "name": "AppleScriptKit.framework", "path": "Frameworks/AppleScriptKit.framework", "children": [ { "value": 624, "name": "Versions", "path": "Frameworks/AppleScriptKit.framework/Versions" } ] }, { "value": 104, "name": "AppleScriptObjC.framework", "path": "Frameworks/AppleScriptObjC.framework", "children": [ { "value": 96, "name": "Versions", "path": "Frameworks/AppleScriptObjC.framework/Versions" } ] }, { "value": 324, "name": "AppleShareClientCore.framework", "path": "Frameworks/AppleShareClientCore.framework", "children": [ { "value": 316, "name": "Versions", "path": "Frameworks/AppleShareClientCore.framework/Versions" } ] }, { "value": 77200, "name": "ApplicationServices.framework", "path": "Frameworks/ApplicationServices.framework", "children": [ { "value": 77188, "name": "Versions", "path": "Frameworks/ApplicationServices.framework/Versions" } ] }, { "value": 1792, "name": "AudioToolbox.framework", "path": "Frameworks/AudioToolbox.framework", "children": [ { "value": 1716, "name": "Versions", "path": "Frameworks/AudioToolbox.framework/Versions" }, { "value": 68, "name": "XPCServices", "path": "Frameworks/AudioToolbox.framework/XPCServices" } ] }, { "value": 40, "name": "AudioUnit.framework", "path": "Frameworks/AudioUnit.framework", "children": [ { "value": 32, "name": "Versions", "path": "Frameworks/AudioUnit.framework/Versions" } ] }, { "value": 736, "name": "AudioVideoBridging.framework", "path": "Frameworks/AudioVideoBridging.framework", "children": [ { "value": 728, "name": "Versions", "path": "Frameworks/AudioVideoBridging.framework/Versions" } ] }, { "value": 11496, "name": "Automator.framework", "path": "Frameworks/Automator.framework", "children": [ { "value": 4, "name": "Frameworks", "path": "Frameworks/Automator.framework/Frameworks" }, { "value": 11484, "name": "Versions", "path": "Frameworks/Automator.framework/Versions" } ] }, { "value": 1648, "name": "AVFoundation.framework", "path": "Frameworks/AVFoundation.framework", "children": [ { "value": 1640, "name": "Versions", "path": "Frameworks/AVFoundation.framework/Versions" } ] }, { "value": 408, "name": "AVKit.framework", "path": "Frameworks/AVKit.framework", "children": [ { "value": 400, "name": "Versions", "path": "Frameworks/AVKit.framework/Versions" } ] }, { "value": 1132, "name": "CalendarStore.framework", "path": "Frameworks/CalendarStore.framework", "children": [ { "value": 1124, "name": "Versions", "path": "Frameworks/CalendarStore.framework/Versions" } ] }, { "value": 25920, "name": "Carbon.framework", "path": "Frameworks/Carbon.framework", "children": [ { "value": 25908, "name": "Versions", "path": "Frameworks/Carbon.framework/Versions" } ] }, { "value": 2000, "name": "CFNetwork.framework", "path": "Frameworks/CFNetwork.framework", "children": [ { "value": 1992, "name": "Versions", "path": "Frameworks/CFNetwork.framework/Versions" } ] }, { "value": 20, "name": "Cocoa.framework", "path": "Frameworks/Cocoa.framework", "children": [ { "value": 12, "name": "Versions", "path": "Frameworks/Cocoa.framework/Versions" } ] }, { "value": 900, "name": "Collaboration.framework", "path": "Frameworks/Collaboration.framework", "children": [ { "value": 892, "name": "Versions", "path": "Frameworks/Collaboration.framework/Versions" } ] }, { "value": 432, "name": "CoreAudio.framework", "path": "Frameworks/CoreAudio.framework", "children": [ { "value": 420, "name": "Versions", "path": "Frameworks/CoreAudio.framework/Versions" } ] }, { "value": 716, "name": "CoreAudioKit.framework", "path": "Frameworks/CoreAudioKit.framework", "children": [ { "value": 708, "name": "Versions", "path": "Frameworks/CoreAudioKit.framework/Versions" } ] }, { "value": 2632, "name": "CoreData.framework", "path": "Frameworks/CoreData.framework", "children": [ { "value": 2624, "name": "Versions", "path": "Frameworks/CoreData.framework/Versions" } ] }, { "value": 2608, "name": "CoreFoundation.framework", "path": "Frameworks/CoreFoundation.framework", "children": [ { "value": 2600, "name": "Versions", "path": "Frameworks/CoreFoundation.framework/Versions" } ] }, { "value": 9152, "name": "CoreGraphics.framework", "path": "Frameworks/CoreGraphics.framework", "children": [ { "value": 9144, "name": "Versions", "path": "Frameworks/CoreGraphics.framework/Versions" } ] }, { "value": 14552, "name": "CoreLocation.framework", "path": "Frameworks/CoreLocation.framework", "children": [ { "value": 14540, "name": "Versions", "path": "Frameworks/CoreLocation.framework/Versions" } ] }, { "value": 452, "name": "CoreMedia.framework", "path": "Frameworks/CoreMedia.framework", "children": [ { "value": 440, "name": "Versions", "path": "Frameworks/CoreMedia.framework/Versions" } ] }, { "value": 2876, "name": "CoreMediaIO.framework", "path": "Frameworks/CoreMediaIO.framework", "children": [ { "value": 2864, "name": "Versions", "path": "Frameworks/CoreMediaIO.framework/Versions" } ] }, { "value": 320, "name": "CoreMIDI.framework", "path": "Frameworks/CoreMIDI.framework", "children": [ { "value": 308, "name": "Versions", "path": "Frameworks/CoreMIDI.framework/Versions" } ] }, { "value": 20, "name": "CoreMIDIServer.framework", "path": "Frameworks/CoreMIDIServer.framework", "children": [ { "value": 12, "name": "Versions", "path": "Frameworks/CoreMIDIServer.framework/Versions" } ] }, { "value": 12024, "name": "CoreServices.framework", "path": "Frameworks/CoreServices.framework", "children": [ { "value": 12012, "name": "Versions", "path": "Frameworks/CoreServices.framework/Versions" } ] }, { "value": 1472, "name": "CoreText.framework", "path": "Frameworks/CoreText.framework", "children": [ { "value": 1464, "name": "Versions", "path": "Frameworks/CoreText.framework/Versions" } ] }, { "value": 204, "name": "CoreVideo.framework", "path": "Frameworks/CoreVideo.framework", "children": [ { "value": 196, "name": "Versions", "path": "Frameworks/CoreVideo.framework/Versions" } ] }, { "value": 520, "name": "CoreWiFi.framework", "path": "Frameworks/CoreWiFi.framework", "children": [ { "value": 512, "name": "Versions", "path": "Frameworks/CoreWiFi.framework/Versions" } ] }, { "value": 536, "name": "CoreWLAN.framework", "path": "Frameworks/CoreWLAN.framework", "children": [ { "value": 528, "name": "Versions", "path": "Frameworks/CoreWLAN.framework/Versions" } ] }, { "value": 88, "name": "DirectoryService.framework", "path": "Frameworks/DirectoryService.framework", "children": [ { "value": 80, "name": "Versions", "path": "Frameworks/DirectoryService.framework/Versions" } ] }, { "value": 1352, "name": "DiscRecording.framework", "path": "Frameworks/DiscRecording.framework", "children": [ { "value": 1344, "name": "Versions", "path": "Frameworks/DiscRecording.framework/Versions" } ] }, { "value": 1384, "name": "DiscRecordingUI.framework", "path": "Frameworks/DiscRecordingUI.framework", "children": [ { "value": 1376, "name": "Versions", "path": "Frameworks/DiscRecordingUI.framework/Versions" } ] }, { "value": 76, "name": "DiskArbitration.framework", "path": "Frameworks/DiskArbitration.framework", "children": [ { "value": 68, "name": "Versions", "path": "Frameworks/DiskArbitration.framework/Versions" } ] }, { "value": 32, "name": "DrawSprocket.framework", "path": "Frameworks/DrawSprocket.framework", "children": [ { "value": 24, "name": "Versions", "path": "Frameworks/DrawSprocket.framework/Versions" } ] }, { "value": 20, "name": "DVComponentGlue.framework", "path": "Frameworks/DVComponentGlue.framework", "children": [ { "value": 12, "name": "Versions", "path": "Frameworks/DVComponentGlue.framework/Versions" } ] }, { "value": 1420, "name": "DVDPlayback.framework", "path": "Frameworks/DVDPlayback.framework", "children": [ { "value": 1412, "name": "Versions", "path": "Frameworks/DVDPlayback.framework/Versions" } ] }, { "value": 232, "name": "EventKit.framework", "path": "Frameworks/EventKit.framework", "children": [ { "value": 224, "name": "Versions", "path": "Frameworks/EventKit.framework/Versions" } ] }, { "value": 32, "name": "ExceptionHandling.framework", "path": "Frameworks/ExceptionHandling.framework", "children": [ { "value": 24, "name": "Versions", "path": "Frameworks/ExceptionHandling.framework/Versions" } ] }, { "value": 32, "name": "ForceFeedback.framework", "path": "Frameworks/ForceFeedback.framework", "children": [ { "value": 24, "name": "Versions", "path": "Frameworks/ForceFeedback.framework/Versions" } ] }, { "value": 4228, "name": "Foundation.framework", "path": "Frameworks/Foundation.framework", "children": [ { "value": 4216, "name": "Versions", "path": "Frameworks/Foundation.framework/Versions" } ] }, { "value": 52, "name": "FWAUserLib.framework", "path": "Frameworks/FWAUserLib.framework", "children": [ { "value": 44, "name": "Versions", "path": "Frameworks/FWAUserLib.framework/Versions" } ] }, { "value": 60, "name": "GameController.framework", "path": "Frameworks/GameController.framework", "children": [ { "value": 52, "name": "Versions", "path": "Frameworks/GameController.framework/Versions" } ] }, { "value": 44244, "name": "GameKit.framework", "path": "Frameworks/GameKit.framework", "children": [ { "value": 44236, "name": "Versions", "path": "Frameworks/GameKit.framework/Versions" } ] }, { "value": 132, "name": "GLKit.framework", "path": "Frameworks/GLKit.framework", "children": [ { "value": 124, "name": "Versions", "path": "Frameworks/GLKit.framework/Versions" } ] }, { "value": 1740, "name": "GLUT.framework", "path": "Frameworks/GLUT.framework", "children": [ { "value": 1732, "name": "Versions", "path": "Frameworks/GLUT.framework/Versions" } ] }, { "value": 280, "name": "GSS.framework", "path": "Frameworks/GSS.framework", "children": [ { "value": 272, "name": "Versions", "path": "Frameworks/GSS.framework/Versions" } ] }, { "value": 236, "name": "ICADevices.framework", "path": "Frameworks/ICADevices.framework", "children": [ { "value": 228, "name": "Versions", "path": "Frameworks/ICADevices.framework/Versions" } ] }, { "value": 392, "name": "ImageCaptureCore.framework", "path": "Frameworks/ImageCaptureCore.framework", "children": [ { "value": 384, "name": "Versions", "path": "Frameworks/ImageCaptureCore.framework/Versions" } ] }, { "value": 4008, "name": "ImageIO.framework", "path": "Frameworks/ImageIO.framework", "children": [ { "value": 4000, "name": "Versions", "path": "Frameworks/ImageIO.framework/Versions" } ] }, { "value": 104, "name": "IMServicePlugIn.framework", "path": "Frameworks/IMServicePlugIn.framework", "children": [ { "value": 28, "name": "IMServicePlugInAgent.app", "path": "Frameworks/IMServicePlugIn.framework/IMServicePlugInAgent.app" }, { "value": 64, "name": "Versions", "path": "Frameworks/IMServicePlugIn.framework/Versions" } ] }, { "value": 368, "name": "InputMethodKit.framework", "path": "Frameworks/InputMethodKit.framework", "children": [ { "value": 356, "name": "Versions", "path": "Frameworks/InputMethodKit.framework/Versions" } ] }, { "value": 360, "name": "InstallerPlugins.framework", "path": "Frameworks/InstallerPlugins.framework", "children": [ { "value": 352, "name": "Versions", "path": "Frameworks/InstallerPlugins.framework/Versions" } ] }, { "value": 76, "name": "InstantMessage.framework", "path": "Frameworks/InstantMessage.framework", "children": [ { "value": 68, "name": "Versions", "path": "Frameworks/InstantMessage.framework/Versions" } ] }, { "value": 904, "name": "IOBluetooth.framework", "path": "Frameworks/IOBluetooth.framework", "children": [ { "value": 892, "name": "Versions", "path": "Frameworks/IOBluetooth.framework/Versions" } ] }, { "value": 4592, "name": "IOBluetoothUI.framework", "path": "Frameworks/IOBluetoothUI.framework", "children": [ { "value": 4584, "name": "Versions", "path": "Frameworks/IOBluetoothUI.framework/Versions" } ] }, { "value": 688, "name": "IOKit.framework", "path": "Frameworks/IOKit.framework", "children": [ { "value": 680, "name": "Versions", "path": "Frameworks/IOKit.framework/Versions" } ] }, { "value": 48, "name": "IOSurface.framework", "path": "Frameworks/IOSurface.framework", "children": [ { "value": 40, "name": "Versions", "path": "Frameworks/IOSurface.framework/Versions" } ] }, { "value": 28, "name": "JavaFrameEmbedding.framework", "path": "Frameworks/JavaFrameEmbedding.framework", "children": [ { "value": 20, "name": "Versions", "path": "Frameworks/JavaFrameEmbedding.framework/Versions" } ] }, { "value": 3336, "name": "JavaScriptCore.framework", "path": "Frameworks/JavaScriptCore.framework", "children": [ { "value": 3328, "name": "Versions", "path": "Frameworks/JavaScriptCore.framework/Versions" } ] }, { "value": 2756, "name": "JavaVM.framework", "path": "Frameworks/JavaVM.framework", "children": [ { "value": 2728, "name": "Versions", "path": "Frameworks/JavaVM.framework/Versions" } ] }, { "value": 168, "name": "Kerberos.framework", "path": "Frameworks/Kerberos.framework", "children": [ { "value": 160, "name": "Versions", "path": "Frameworks/Kerberos.framework/Versions" } ] }, { "value": 36, "name": "Kernel.framework", "path": "Frameworks/Kernel.framework", "children": [ { "value": 32, "name": "Versions", "path": "Frameworks/Kernel.framework/Versions" } ] }, { "value": 200, "name": "LatentSemanticMapping.framework", "path": "Frameworks/LatentSemanticMapping.framework", "children": [ { "value": 192, "name": "Versions", "path": "Frameworks/LatentSemanticMapping.framework/Versions" } ] }, { "value": 284, "name": "LDAP.framework", "path": "Frameworks/LDAP.framework", "children": [ { "value": 276, "name": "Versions", "path": "Frameworks/LDAP.framework/Versions" } ] }, { "value": 1872, "name": "MapKit.framework", "path": "Frameworks/MapKit.framework", "children": [ { "value": 1864, "name": "Versions", "path": "Frameworks/MapKit.framework/Versions" } ] }, { "value": 56, "name": "MediaAccessibility.framework", "path": "Frameworks/MediaAccessibility.framework", "children": [ { "value": 48, "name": "Versions", "path": "Frameworks/MediaAccessibility.framework/Versions" } ] }, { "value": 100, "name": "MediaLibrary.framework", "path": "Frameworks/MediaLibrary.framework", "children": [ { "value": 88, "name": "Versions", "path": "Frameworks/MediaLibrary.framework/Versions" } ] }, { "value": 3708, "name": "MediaToolbox.framework", "path": "Frameworks/MediaToolbox.framework", "children": [ { "value": 3700, "name": "Versions", "path": "Frameworks/MediaToolbox.framework/Versions" } ] }, { "value": 16, "name": "Message.framework", "path": "Frameworks/Message.framework", "children": [ { "value": 12, "name": "Versions", "path": "Frameworks/Message.framework/Versions" } ] }, { "value": 64, "name": "NetFS.framework", "path": "Frameworks/NetFS.framework", "children": [ { "value": 56, "name": "Versions", "path": "Frameworks/NetFS.framework/Versions" } ] }, { "value": 192, "name": "OpenAL.framework", "path": "Frameworks/OpenAL.framework", "children": [ { "value": 184, "name": "Versions", "path": "Frameworks/OpenAL.framework/Versions" } ] }, { "value": 78380, "name": "OpenCL.framework", "path": "Frameworks/OpenCL.framework", "children": [ { "value": 78368, "name": "Versions", "path": "Frameworks/OpenCL.framework/Versions" } ] }, { "value": 288, "name": "OpenDirectory.framework", "path": "Frameworks/OpenDirectory.framework", "children": [ { "value": 252, "name": "Versions", "path": "Frameworks/OpenDirectory.framework/Versions" } ] }, { "value": 25628, "name": "OpenGL.framework", "path": "Frameworks/OpenGL.framework", "children": [ { "value": 25616, "name": "Versions", "path": "Frameworks/OpenGL.framework/Versions" } ] }, { "value": 1136, "name": "OSAKit.framework", "path": "Frameworks/OSAKit.framework", "children": [ { "value": 1128, "name": "Versions", "path": "Frameworks/OSAKit.framework/Versions" } ] }, { "value": 88, "name": "PCSC.framework", "path": "Frameworks/PCSC.framework", "children": [ { "value": 80, "name": "Versions", "path": "Frameworks/PCSC.framework/Versions" } ] }, { "value": 192, "name": "PreferencePanes.framework", "path": "Frameworks/PreferencePanes.framework", "children": [ { "value": 180, "name": "Versions", "path": "Frameworks/PreferencePanes.framework/Versions" } ] }, { "value": 1012, "name": "PubSub.framework", "path": "Frameworks/PubSub.framework", "children": [ { "value": 1004, "name": "Versions", "path": "Frameworks/PubSub.framework/Versions" } ] }, { "value": 129696, "name": "Python.framework", "path": "Frameworks/Python.framework", "children": [ { "value": 129684, "name": "Versions", "path": "Frameworks/Python.framework/Versions" } ] }, { "value": 2516, "name": "QTKit.framework", "path": "Frameworks/QTKit.framework", "children": [ { "value": 2504, "name": "Versions", "path": "Frameworks/QTKit.framework/Versions" } ] }, { "value": 23712, "name": "Quartz.framework", "path": "Frameworks/Quartz.framework", "children": [ { "value": 23700, "name": "Versions", "path": "Frameworks/Quartz.framework/Versions" } ] }, { "value": 6644, "name": "QuartzCore.framework", "path": "Frameworks/QuartzCore.framework", "children": [ { "value": 6632, "name": "Versions", "path": "Frameworks/QuartzCore.framework/Versions" } ] }, { "value": 3960, "name": "QuickLook.framework", "path": "Frameworks/QuickLook.framework", "children": [ { "value": 3948, "name": "Versions", "path": "Frameworks/QuickLook.framework/Versions" } ] }, { "value": 3460, "name": "QuickTime.framework", "path": "Frameworks/QuickTime.framework", "children": [ { "value": 3452, "name": "Versions", "path": "Frameworks/QuickTime.framework/Versions" } ] }, { "value": 13168, "name": "Ruby.framework", "path": "Frameworks/Ruby.framework", "children": [ { "value": 13160, "name": "Versions", "path": "Frameworks/Ruby.framework/Versions" } ] }, { "value": 204, "name": "RubyCocoa.framework", "path": "Frameworks/RubyCocoa.framework", "children": [ { "value": 196, "name": "Versions", "path": "Frameworks/RubyCocoa.framework/Versions" } ] }, { "value": 3628, "name": "SceneKit.framework", "path": "Frameworks/SceneKit.framework", "children": [ { "value": 3616, "name": "Versions", "path": "Frameworks/SceneKit.framework/Versions" } ] }, { "value": 1812, "name": "ScreenSaver.framework", "path": "Frameworks/ScreenSaver.framework", "children": [ { "value": 1804, "name": "Versions", "path": "Frameworks/ScreenSaver.framework/Versions" } ] }, { "value": 12, "name": "Scripting.framework", "path": "Frameworks/Scripting.framework", "children": [ { "value": 4, "name": "Versions", "path": "Frameworks/Scripting.framework/Versions" } ] }, { "value": 144, "name": "ScriptingBridge.framework", "path": "Frameworks/ScriptingBridge.framework", "children": [ { "value": 136, "name": "Versions", "path": "Frameworks/ScriptingBridge.framework/Versions" } ] }, { "value": 6224, "name": "Security.framework", "path": "Frameworks/Security.framework", "children": [ { "value": 124, "name": "PlugIns", "path": "Frameworks/Security.framework/PlugIns" }, { "value": 6088, "name": "Versions", "path": "Frameworks/Security.framework/Versions" } ] }, { "value": 2076, "name": "SecurityFoundation.framework", "path": "Frameworks/SecurityFoundation.framework", "children": [ { "value": 2068, "name": "Versions", "path": "Frameworks/SecurityFoundation.framework/Versions" } ] }, { "value": 8660, "name": "SecurityInterface.framework", "path": "Frameworks/SecurityInterface.framework", "children": [ { "value": 8652, "name": "Versions", "path": "Frameworks/SecurityInterface.framework/Versions" } ] }, { "value": 88, "name": "ServiceManagement.framework", "path": "Frameworks/ServiceManagement.framework", "children": [ { "value": 68, "name": "Versions", "path": "Frameworks/ServiceManagement.framework/Versions" }, { "value": 12, "name": "XPCServices", "path": "Frameworks/ServiceManagement.framework/XPCServices" } ] }, { "value": 1112, "name": "Social.framework", "path": "Frameworks/Social.framework", "children": [ { "value": 516, "name": "Versions", "path": "Frameworks/Social.framework/Versions" }, { "value": 588, "name": "XPCServices", "path": "Frameworks/Social.framework/XPCServices" } ] }, { "value": 500, "name": "SpriteKit.framework", "path": "Frameworks/SpriteKit.framework", "children": [ { "value": 492, "name": "Versions", "path": "Frameworks/SpriteKit.framework/Versions" } ] }, { "value": 96, "name": "StoreKit.framework", "path": "Frameworks/StoreKit.framework", "children": [ { "value": 88, "name": "Versions", "path": "Frameworks/StoreKit.framework/Versions" } ] }, { "value": 1608, "name": "SyncServices.framework", "path": "Frameworks/SyncServices.framework", "children": [ { "value": 1600, "name": "Versions", "path": "Frameworks/SyncServices.framework/Versions" } ] }, { "value": 44, "name": "System.framework", "path": "Frameworks/System.framework", "children": [ { "value": 36, "name": "Versions", "path": "Frameworks/System.framework/Versions" } ] }, { "value": 576, "name": "SystemConfiguration.framework", "path": "Frameworks/SystemConfiguration.framework", "children": [ { "value": 568, "name": "Versions", "path": "Frameworks/SystemConfiguration.framework/Versions" } ] }, { "value": 3208, "name": "Tcl.framework", "path": "Frameworks/Tcl.framework", "children": [ { "value": 3200, "name": "Versions", "path": "Frameworks/Tcl.framework/Versions" } ] }, { "value": 3172, "name": "Tk.framework", "path": "Frameworks/Tk.framework", "children": [ { "value": 3160, "name": "Versions", "path": "Frameworks/Tk.framework/Versions" } ] }, { "value": 76, "name": "TWAIN.framework", "path": "Frameworks/TWAIN.framework", "children": [ { "value": 68, "name": "Versions", "path": "Frameworks/TWAIN.framework/Versions" } ] }, { "value": 24, "name": "VideoDecodeAcceleration.framework", "path": "Frameworks/VideoDecodeAcceleration.framework", "children": [ { "value": 16, "name": "Versions", "path": "Frameworks/VideoDecodeAcceleration.framework/Versions" } ] }, { "value": 3648, "name": "VideoToolbox.framework", "path": "Frameworks/VideoToolbox.framework", "children": [ { "value": 3636, "name": "Versions", "path": "Frameworks/VideoToolbox.framework/Versions" } ] }, { "value": 17668, "name": "WebKit.framework", "path": "Frameworks/WebKit.framework", "children": [ { "value": 17512, "name": "Versions", "path": "Frameworks/WebKit.framework/Versions" }, { "value": 116, "name": "WebKitPluginHost.app", "path": "Frameworks/WebKit.framework/WebKitPluginHost.app" } ] } ] }, { "value": 1076, "name": "Graphics", "path": "Graphics", "children": [ { "value": 876, "name": "QuartzComposer Patches", "path": "Graphics/QuartzComposer Patches", "children": [ { "value": 148, "name": "Backdrops.plugin", "path": "Graphics/QuartzComposer Patches/Backdrops.plugin" }, { "value": 36, "name": "FaceEffects.plugin", "path": "Graphics/QuartzComposer Patches/FaceEffects.plugin" } ] }, { "value": 200, "name": "QuartzComposer Plug-Ins", "path": "Graphics/QuartzComposer Plug-Ins", "children": [ { "value": 200, "name": "WOTD.plugin", "path": "Graphics/QuartzComposer Plug-Ins/WOTD.plugin" } ] } ] }, { "value": 0, "name": "IdentityServices", "path": "IdentityServices", "children": [ { "value": 0, "name": "ServiceDefinitions", "path": "IdentityServices/ServiceDefinitions" } ] }, { "value": 2900, "name": "ImageCapture", "path": "ImageCapture", "children": [ { "value": 200, "name": "Automatic Tasks", "path": "ImageCapture/Automatic Tasks", "children": [ { "value": 52, "name": "Build Web Page.app", "path": "ImageCapture/Automatic Tasks/Build Web Page.app" }, { "value": 148, "name": "MakePDF.app", "path": "ImageCapture/Automatic Tasks/MakePDF.app" } ] }, { "value": 480, "name": "Devices", "path": "ImageCapture/Devices", "children": [ { "value": 84, "name": "AirScanScanner.app", "path": "ImageCapture/Devices/AirScanScanner.app" }, { "value": 44, "name": "MassStorageCamera.app", "path": "ImageCapture/Devices/MassStorageCamera.app" }, { "value": 124, "name": "PTPCamera.app", "path": "ImageCapture/Devices/PTPCamera.app" }, { "value": 36, "name": "Type4Camera.app", "path": "ImageCapture/Devices/Type4Camera.app" }, { "value": 32, "name": "Type5Camera.app", "path": "ImageCapture/Devices/Type5Camera.app" }, { "value": 36, "name": "Type8Camera.app", "path": "ImageCapture/Devices/Type8Camera.app" }, { "value": 124, "name": "VirtualScanner.app", "path": "ImageCapture/Devices/VirtualScanner.app" } ] }, { "value": 2212, "name": "Support", "path": "ImageCapture/Support", "children": [ { "value": 432, "name": "Application", "path": "ImageCapture/Support/Application" }, { "value": 1608, "name": "Icons", "path": "ImageCapture/Support/Icons" }, { "value": 172, "name": "Image Capture Extension.app", "path": "ImageCapture/Support/Image Capture Extension.app" }, { "value": 3184, "name": "CoreDeploy.bundle", "path": "Java/Support/CoreDeploy.bundle" }, { "value": 2732, "name": "Deploy.bundle", "path": "Java/Support/Deploy.bundle" } ] }, { "value": 8, "name": "Tools", "path": "ImageCapture/Tools" }, { "value": 0, "name": "TWAIN Data Sources", "path": "ImageCapture/TWAIN Data Sources" } ] }, { "value": 23668, "name": "InputMethods", "path": "InputMethods", "children": [ { "value": 1400, "name": "50onPaletteServer.app", "path": "InputMethods/50onPaletteServer.app", "children": [ { "value": 1400, "name": "Contents", "path": "InputMethods/50onPaletteServer.app/Contents" } ] }, { "value": 5728, "name": "CharacterPalette.app", "path": "InputMethods/CharacterPalette.app", "children": [ { "value": 5728, "name": "Contents", "path": "InputMethods/CharacterPalette.app/Contents" } ] }, { "value": 2476, "name": "DictationIM.app", "path": "InputMethods/DictationIM.app", "children": [ { "value": 2476, "name": "Contents", "path": "InputMethods/DictationIM.app/Contents" } ] }, { "value": 88, "name": "InkServer.app", "path": "InputMethods/InkServer.app", "children": [ { "value": 88, "name": "Contents", "path": "InputMethods/InkServer.app/Contents" } ] }, { "value": 736, "name": "KeyboardViewer.app", "path": "InputMethods/KeyboardViewer.app", "children": [ { "value": 736, "name": "Contents", "path": "InputMethods/KeyboardViewer.app/Contents" } ] }, { "value": 1144, "name": "KoreanIM.app", "path": "InputMethods/KoreanIM.app", "children": [ { "value": 1144, "name": "Contents", "path": "InputMethods/KoreanIM.app/Contents" } ] }, { "value": 2484, "name": "Kotoeri.app", "path": "InputMethods/Kotoeri.app", "children": [ { "value": 2484, "name": "Contents", "path": "InputMethods/Kotoeri.app/Contents" } ] }, { "value": 40, "name": "PluginIM.app", "path": "InputMethods/PluginIM.app", "children": [ { "value": 40, "name": "Contents", "path": "InputMethods/PluginIM.app/Contents" } ] }, { "value": 24, "name": "PressAndHold.app", "path": "InputMethods/PressAndHold.app", "children": [ { "value": 24, "name": "Contents", "path": "InputMethods/PressAndHold.app/Contents" } ] }, { "value": 64, "name": "SCIM.app", "path": "InputMethods/SCIM.app", "children": [ { "value": 64, "name": "Contents", "path": "InputMethods/SCIM.app/Contents" } ] }, { "value": 6916, "name": "Switch Control.app", "path": "InputMethods/Switch Control.app", "children": [ { "value": 6916, "name": "Contents", "path": "InputMethods/Switch Control.app/Contents" } ] }, { "value": 104, "name": "TamilIM.app", "path": "InputMethods/TamilIM.app", "children": [ { "value": 104, "name": "Contents", "path": "InputMethods/TamilIM.app/Contents" } ] }, { "value": 92, "name": "TCIM.app", "path": "InputMethods/TCIM.app", "children": [ { "value": 92, "name": "Contents", "path": "InputMethods/TCIM.app/Contents" } ] }, { "value": 1820, "name": "TrackpadIM.app", "path": "InputMethods/TrackpadIM.app", "children": [ { "value": 1820, "name": "Contents", "path": "InputMethods/TrackpadIM.app/Contents" } ] }, { "value": 552, "name": "VietnameseIM.app", "path": "InputMethods/VietnameseIM.app", "children": [ { "value": 552, "name": "Contents", "path": "InputMethods/VietnameseIM.app/Contents" } ] } ] }, { "value": 17668, "name": "InternetAccounts", "path": "InternetAccounts", "children": [ { "value": 336, "name": "126.iaplugin", "path": "InternetAccounts/126.iaplugin", "children": [ { "value": 336, "name": "Contents", "path": "InternetAccounts/126.iaplugin/Contents" } ] }, { "value": 332, "name": "163.iaplugin", "path": "InternetAccounts/163.iaplugin", "children": [ { "value": 332, "name": "Contents", "path": "InternetAccounts/163.iaplugin/Contents" } ] }, { "value": 48, "name": "AddressBook.iaplugin", "path": "InternetAccounts/AddressBook.iaplugin", "children": [ { "value": 48, "name": "Contents", "path": "InternetAccounts/AddressBook.iaplugin/Contents" } ] }, { "value": 304, "name": "AOL.iaplugin", "path": "InternetAccounts/AOL.iaplugin", "children": [ { "value": 304, "name": "Contents", "path": "InternetAccounts/AOL.iaplugin/Contents" } ] }, { "value": 44, "name": "Calendar.iaplugin", "path": "InternetAccounts/Calendar.iaplugin", "children": [ { "value": 44, "name": "Contents", "path": "InternetAccounts/Calendar.iaplugin/Contents" } ] }, { "value": 784, "name": "Exchange.iaplugin", "path": "InternetAccounts/Exchange.iaplugin", "children": [ { "value": 784, "name": "Contents", "path": "InternetAccounts/Exchange.iaplugin/Contents" } ] }, { "value": 996, "name": "Facebook.iaplugin", "path": "InternetAccounts/Facebook.iaplugin", "children": [ { "value": 996, "name": "Contents", "path": "InternetAccounts/Facebook.iaplugin/Contents" } ] }, { "value": 596, "name": "Flickr.iaplugin", "path": "InternetAccounts/Flickr.iaplugin", "children": [ { "value": 596, "name": "Contents", "path": "InternetAccounts/Flickr.iaplugin/Contents" } ] }, { "value": 384, "name": "Google.iaplugin", "path": "InternetAccounts/Google.iaplugin", "children": [ { "value": 384, "name": "Contents", "path": "InternetAccounts/Google.iaplugin/Contents" } ] }, { "value": 32, "name": "iChat.iaplugin", "path": "InternetAccounts/iChat.iaplugin", "children": [ { "value": 32, "name": "Contents", "path": "InternetAccounts/iChat.iaplugin/Contents" } ] }, { "value": 7436, "name": "iCloud.iaplugin", "path": "InternetAccounts/iCloud.iaplugin", "children": [ { "value": 7436, "name": "Contents", "path": "InternetAccounts/iCloud.iaplugin/Contents" } ] }, { "value": 840, "name": "LinkedIn.iaplugin", "path": "InternetAccounts/LinkedIn.iaplugin", "children": [ { "value": 840, "name": "Contents", "path": "InternetAccounts/LinkedIn.iaplugin/Contents" } ] }, { "value": 28, "name": "Mail.iaplugin", "path": "InternetAccounts/Mail.iaplugin", "children": [ { "value": 28, "name": "Contents", "path": "InternetAccounts/Mail.iaplugin/Contents" } ] }, { "value": 32, "name": "Notes.iaplugin", "path": "InternetAccounts/Notes.iaplugin", "children": [ { "value": 32, "name": "Contents", "path": "InternetAccounts/Notes.iaplugin/Contents" } ] }, { "value": 416, "name": "OSXServer.iaplugin", "path": "InternetAccounts/OSXServer.iaplugin", "children": [ { "value": 416, "name": "Contents", "path": "InternetAccounts/OSXServer.iaplugin/Contents" } ] }, { "value": 376, "name": "QQ.iaplugin", "path": "InternetAccounts/QQ.iaplugin", "children": [ { "value": 376, "name": "Contents", "path": "InternetAccounts/QQ.iaplugin/Contents" } ] }, { "value": 32, "name": "Reminders.iaplugin", "path": "InternetAccounts/Reminders.iaplugin", "children": [ { "value": 32, "name": "Contents", "path": "InternetAccounts/Reminders.iaplugin/Contents" } ] }, { "value": 1024, "name": "SetupPlugins", "path": "InternetAccounts/SetupPlugins", "children": [ { "value": 412, "name": "CalUIAccountSetup.iaplugin", "path": "InternetAccounts/SetupPlugins/CalUIAccountSetup.iaplugin" }, { "value": 580, "name": "Contacts.iaplugin", "path": "InternetAccounts/SetupPlugins/Contacts.iaplugin" }, { "value": 8, "name": "MailAccountSetup.iaplugin", "path": "InternetAccounts/SetupPlugins/MailAccountSetup.iaplugin" }, { "value": 16, "name": "Messages.iaplugin", "path": "InternetAccounts/SetupPlugins/Messages.iaplugin" }, { "value": 8, "name": "NotesAccountSetup.iaplugin", "path": "InternetAccounts/SetupPlugins/NotesAccountSetup.iaplugin" } ] }, { "value": 392, "name": "TencentWeibo.iaplugin", "path": "InternetAccounts/TencentWeibo.iaplugin", "children": [ { "value": 392, "name": "Contents", "path": "InternetAccounts/TencentWeibo.iaplugin/Contents" } ] }, { "value": 612, "name": "Tudou.iaplugin", "path": "InternetAccounts/Tudou.iaplugin", "children": [ { "value": 612, "name": "Contents", "path": "InternetAccounts/Tudou.iaplugin/Contents" } ] }, { "value": 608, "name": "TwitterPlugin.iaplugin", "path": "InternetAccounts/TwitterPlugin.iaplugin", "children": [ { "value": 608, "name": "Contents", "path": "InternetAccounts/TwitterPlugin.iaplugin/Contents" } ] }, { "value": 584, "name": "Vimeo.iaplugin", "path": "InternetAccounts/Vimeo.iaplugin", "children": [ { "value": 584, "name": "Contents", "path": "InternetAccounts/Vimeo.iaplugin/Contents" } ] }, { "value": 468, "name": "Weibo.iaplugin", "path": "InternetAccounts/Weibo.iaplugin", "children": [ { "value": 468, "name": "Contents", "path": "InternetAccounts/Weibo.iaplugin/Contents" } ] }, { "value": 316, "name": "Yahoo.iaplugin", "path": "InternetAccounts/Yahoo.iaplugin", "children": [ { "value": 316, "name": "Contents", "path": "InternetAccounts/Yahoo.iaplugin/Contents" } ] }, { "value": 648, "name": "Youku.iaplugin", "path": "InternetAccounts/Youku.iaplugin", "children": [ { "value": 648, "name": "Contents", "path": "InternetAccounts/Youku.iaplugin/Contents" } ] } ] }, { "value": 68776, "name": "Java", "path": "Java", "children": [ { "value": 8848, "name": "Extensions", "path": "Java/Extensions" }, { "value": 54012, "name": "JavaVirtualMachines", "path": "Java/JavaVirtualMachines", "children": [ { "value": 54012, "name": "1.6.0.jdk", "path": "Java/JavaVirtualMachines/1.6.0.jdk" } ] }, { "value": 5916, "name": "Support", "path": "Java/Support", "children": [ { "value": 432, "name": "Application", "path": "ImageCapture/Support/Application" }, { "value": 1608, "name": "Icons", "path": "ImageCapture/Support/Icons" }, { "value": 172, "name": "Image Capture Extension.app", "path": "ImageCapture/Support/Image Capture Extension.app" }, { "value": 3184, "name": "CoreDeploy.bundle", "path": "Java/Support/CoreDeploy.bundle" }, { "value": 2732, "name": "Deploy.bundle", "path": "Java/Support/Deploy.bundle" } ] } ] }, { "value": 48, "name": "KerberosPlugins", "path": "KerberosPlugins", "children": [ { "value": 48, "name": "KerberosFrameworkPlugins", "path": "KerberosPlugins/KerberosFrameworkPlugins", "children": [ { "value": 8, "name": "heimdalodpac.bundle", "path": "KerberosPlugins/KerberosFrameworkPlugins/heimdalodpac.bundle" }, { "value": 16, "name": "LKDCLocate.bundle", "path": "KerberosPlugins/KerberosFrameworkPlugins/LKDCLocate.bundle" }, { "value": 12, "name": "Reachability.bundle", "path": "KerberosPlugins/KerberosFrameworkPlugins/Reachability.bundle" }, { "value": 12, "name": "SCKerberosConfig.bundle", "path": "KerberosPlugins/KerberosFrameworkPlugins/SCKerberosConfig.bundle" } ] } ] }, { "value": 276, "name": "KeyboardLayouts", "path": "KeyboardLayouts", "children": [ { "value": 276, "name": "AppleKeyboardLayouts.bundle", "path": "KeyboardLayouts/AppleKeyboardLayouts.bundle", "children": [ { "value": 276, "name": "Contents", "path": "KeyboardLayouts/AppleKeyboardLayouts.bundle/Contents" } ] } ] }, { "value": 408, "name": "Keychains", "path": "Keychains" }, { "value": 4, "name": "LaunchAgents", "path": "LaunchAgents" }, { "value": 20, "name": "LaunchDaemons", "path": "LaunchDaemons" }, { "value": 96532, "name": "LinguisticData", "path": "LinguisticData", "children": [ { "value": 8, "name": "da", "path": "LinguisticData/da" }, { "value": 16476, "name": "de", "path": "LinguisticData/de" }, { "value": 9788, "name": "en", "path": "LinguisticData/en", "children": [ { "value": 36, "name": "GB", "path": "LinguisticData/en/GB" }, { "value": 28, "name": "US", "path": "LinguisticData/en/US" } ] }, { "value": 10276, "name": "es", "path": "LinguisticData/es" }, { "value": 0, "name": "fi", "path": "LinguisticData/fi" }, { "value": 12468, "name": "fr", "path": "LinguisticData/fr" }, { "value": 7336, "name": "it", "path": "LinguisticData/it" }, { "value": 192, "name": "ko", "path": "LinguisticData/ko" }, { "value": 48, "name": "nl", "path": "LinguisticData/nl" }, { "value": 112, "name": "no", "path": "LinguisticData/no" }, { "value": 4496, "name": "pt", "path": "LinguisticData/pt" }, { "value": 24, "name": "ru", "path": "LinguisticData/ru" }, { "value": 20, "name": "sv", "path": "LinguisticData/sv" }, { "value": 0, "name": "tr", "path": "LinguisticData/tr" }, { "value": 35288, "name": "zh", "path": "LinguisticData/zh", "children": [ { "value": 2604, "name": "Hans", "path": "LinguisticData/zh/Hans" }, { "value": 2868, "name": "Hant", "path": "LinguisticData/zh/Hant" } ] } ] }, { "value": 4, "name": "LocationBundles", "path": "LocationBundles" }, { "value": 800, "name": "LoginPlugins", "path": "LoginPlugins", "children": [ { "value": 348, "name": "BezelServices.loginPlugin", "path": "LoginPlugins/BezelServices.loginPlugin", "children": [ { "value": 348, "name": "Contents", "path": "LoginPlugins/BezelServices.loginPlugin/Contents" } ] }, { "value": 108, "name": "DisplayServices.loginPlugin", "path": "LoginPlugins/DisplayServices.loginPlugin", "children": [ { "value": 108, "name": "Contents", "path": "LoginPlugins/DisplayServices.loginPlugin/Contents" } ] }, { "value": 344, "name": "FSDisconnect.loginPlugin", "path": "LoginPlugins/FSDisconnect.loginPlugin", "children": [ { "value": 344, "name": "Contents", "path": "LoginPlugins/FSDisconnect.loginPlugin/Contents" } ] } ] }, { "value": 188, "name": "Messages", "path": "Messages", "children": [ { "value": 188, "name": "PlugIns", "path": "Messages/PlugIns", "children": [ { "value": 12, "name": "Balloons.transcriptstyle", "path": "Messages/PlugIns/Balloons.transcriptstyle" }, { "value": 8, "name": "Boxes.transcriptstyle", "path": "Messages/PlugIns/Boxes.transcriptstyle" }, { "value": 8, "name": "Compact.transcriptstyle", "path": "Messages/PlugIns/Compact.transcriptstyle" }, { "value": 76, "name": "FaceTime.imservice", "path": "Messages/PlugIns/FaceTime.imservice" }, { "value": 84, "name": "iMessage.imservice", "path": "Messages/PlugIns/iMessage.imservice" } ] } ] }, { "value": 0, "name": "Metadata", "path": "Metadata", "children": [ { "value": 0, "name": "com.apple.finder.legacy.mdlabels", "path": "Metadata/com.apple.finder.legacy.mdlabels", "children": [ { "value": 0, "name": "Contents", "path": "Metadata/com.apple.finder.legacy.mdlabels/Contents" } ] } ] }, { "value": 3276, "name": "MonitorPanels", "path": "MonitorPanels", "children": [ { "value": 860, "name": "AppleDisplay.monitorPanels", "path": "MonitorPanels/AppleDisplay.monitorPanels", "children": [ { "value": 860, "name": "Contents", "path": "MonitorPanels/AppleDisplay.monitorPanels/Contents" } ] }, { "value": 36, "name": "Arrange.monitorPanel", "path": "MonitorPanels/Arrange.monitorPanel", "children": [ { "value": 36, "name": "Contents", "path": "MonitorPanels/Arrange.monitorPanel/Contents" } ] }, { "value": 2080, "name": "Display.monitorPanel", "path": "MonitorPanels/Display.monitorPanel", "children": [ { "value": 2080, "name": "Contents", "path": "MonitorPanels/Display.monitorPanel/Contents" } ] }, { "value": 300, "name": "Profile.monitorPanel", "path": "MonitorPanels/Profile.monitorPanel", "children": [ { "value": 300, "name": "Contents", "path": "MonitorPanels/Profile.monitorPanel/Contents" } ] } ] }, { "value": 652, "name": "OpenDirectory", "path": "OpenDirectory", "children": [ { "value": 8, "name": "Configurations", "path": "OpenDirectory/Configurations" }, { "value": 0, "name": "DynamicNodeTemplates", "path": "OpenDirectory/DynamicNodeTemplates" }, { "value": 0, "name": "ManagedClient", "path": "OpenDirectory/ManagedClient" }, { "value": 12, "name": "Mappings", "path": "OpenDirectory/Mappings" }, { "value": 612, "name": "Modules", "path": "OpenDirectory/Modules", "children": [ { "value": 68, "name": "ActiveDirectory.bundle", "path": "OpenDirectory/Modules/ActiveDirectory.bundle" }, { "value": 12, "name": "AppleID.bundle", "path": "OpenDirectory/Modules/AppleID.bundle" }, { "value": 76, "name": "AppleODClientLDAP.bundle", "path": "OpenDirectory/Modules/AppleODClientLDAP.bundle" }, { "value": 68, "name": "AppleODClientPWS.bundle", "path": "OpenDirectory/Modules/AppleODClientPWS.bundle" }, { "value": 12, "name": "ConfigurationProfiles.bundle", "path": "OpenDirectory/Modules/ConfigurationProfiles.bundle" }, { "value": 20, "name": "configure.bundle", "path": "OpenDirectory/Modules/configure.bundle" }, { "value": 8, "name": "FDESupport.bundle", "path": "OpenDirectory/Modules/FDESupport.bundle" }, { "value": 12, "name": "Kerberosv5.bundle", "path": "OpenDirectory/Modules/Kerberosv5.bundle" }, { "value": 8, "name": "keychain.bundle", "path": "OpenDirectory/Modules/keychain.bundle" }, { "value": 44, "name": "ldap.bundle", "path": "OpenDirectory/Modules/ldap.bundle" }, { "value": 12, "name": "legacy.bundle", "path": "OpenDirectory/Modules/legacy.bundle" }, { "value": 12, "name": "NetLogon.bundle", "path": "OpenDirectory/Modules/NetLogon.bundle" }, { "value": 24, "name": "nis.bundle", "path": "OpenDirectory/Modules/nis.bundle" }, { "value": 68, "name": "PlistFile.bundle", "path": "OpenDirectory/Modules/PlistFile.bundle" }, { "value": 16, "name": "proxy.bundle", "path": "OpenDirectory/Modules/proxy.bundle" }, { "value": 20, "name": "search.bundle", "path": "OpenDirectory/Modules/search.bundle" }, { "value": 8, "name": "statistics.bundle", "path": "OpenDirectory/Modules/statistics.bundle" }, { "value": 124, "name": "SystemCache.bundle", "path": "OpenDirectory/Modules/SystemCache.bundle" } ] }, { "value": 8, "name": "Templates", "path": "OpenDirectory/Templates", "children": [ { "value": 0, "name": "LDAPv3", "path": "DirectoryServices/Templates/LDAPv3" } ] } ] }, { "value": 0, "name": "OpenSSL", "path": "OpenSSL", "children": [ { "value": 0, "name": "certs", "path": "OpenSSL/certs" }, { "value": 0, "name": "misc", "path": "OpenSSL/misc" }, { "value": 0, "name": "private", "path": "OpenSSL/private" } ] }, { "value": 8, "name": "PasswordServer Filters", "path": "PasswordServer Filters" }, { "value": 0, "name": "PerformanceMetrics", "path": "PerformanceMetrics" }, { "value": 57236, "name": "Perl", "path": "Perl", "children": [ { "value": 14848, "name": "5.12", "path": "Perl/5.12", "children": [ { "value": 20, "name": "App", "path": "Perl/5.12/App" }, { "value": 48, "name": "Archive", "path": "Perl/5.12/Archive" }, { "value": 12, "name": "Attribute", "path": "Perl/5.12/Attribute" }, { "value": 16, "name": "autodie", "path": "Perl/5.12/autodie" }, { "value": 56, "name": "B", "path": "Perl/5.12/B" }, { "value": 0, "name": "Carp", "path": "Perl/5.12/Carp" }, { "value": 32, "name": "CGI", "path": "Perl/5.12/CGI" }, { "value": 8, "name": "Class", "path": "Perl/5.12/Class" }, { "value": 12, "name": "Compress", "path": "Perl/5.12/Compress" }, { "value": 0, "name": "Config", "path": "Perl/5.12/Config" }, { "value": 120, "name": "CPAN", "path": "Perl/5.12/CPAN" }, { "value": 180, "name": "CPANPLUS", "path": "Perl/5.12/CPANPLUS" }, { "value": 7064, "name": "darwin-thread-multi-2level", "path": "Perl/5.12/darwin-thread-multi-2level" }, { "value": 0, "name": "DBM_Filter", "path": "Perl/5.12/DBM_Filter" }, { "value": 0, "name": "Devel", "path": "Perl/5.12/Devel" }, { "value": 0, "name": "Digest", "path": "Perl/5.12/Digest" }, { "value": 12, "name": "Encode", "path": "Perl/5.12/Encode" }, { "value": 0, "name": "encoding", "path": "Perl/5.12/encoding" }, { "value": 0, "name": "Exporter", "path": "Perl/5.12/Exporter" }, { "value": 224, "name": "ExtUtils", "path": "Perl/5.12/ExtUtils" }, { "value": 104, "name": "File", "path": "Perl/5.12/File" }, { "value": 12, "name": "Filter", "path": "Perl/5.12/Filter" }, { "value": 28, "name": "Getopt", "path": "Perl/5.12/Getopt" }, { "value": 24, "name": "I18N", "path": "Perl/5.12/I18N" }, { "value": 0, "name": "inc", "path": "Perl/5.12/inc" }, { "value": 152, "name": "IO", "path": "Perl/5.12/IO" }, { "value": 24, "name": "IPC", "path": "Perl/5.12/IPC" }, { "value": 60, "name": "Locale", "path": "Perl/5.12/Locale" }, { "value": 8, "name": "Log", "path": "Perl/5.12/Log" }, { "value": 144, "name": "Math", "path": "Perl/5.12/Math" }, { "value": 8, "name": "Memoize", "path": "Perl/5.12/Memoize" }, { "value": 284, "name": "Module", "path": "Perl/5.12/Module" }, { "value": 80, "name": "Net", "path": "Perl/5.12/Net" }, { "value": 8, "name": "Object", "path": "Perl/5.12/Object" }, { "value": 0, "name": "overload", "path": "Perl/5.12/overload" }, { "value": 0, "name": "Package", "path": "Perl/5.12/Package" }, { "value": 8, "name": "Params", "path": "Perl/5.12/Params" }, { "value": 0, "name": "Parse", "path": "Perl/5.12/Parse" }, { "value": 0, "name": "PerlIO", "path": "Perl/5.12/PerlIO" }, { "value": 312, "name": "Pod", "path": "Perl/5.12/Pod" }, { "value": 2452, "name": "pods", "path": "Perl/5.12/pods" }, { "value": 0, "name": "Search", "path": "Perl/5.12/Search" }, { "value": 32, "name": "TAP", "path": "Perl/5.12/TAP" }, { "value": 36, "name": "Term", "path": "Perl/5.12/Term" }, { "value": 60, "name": "Test", "path": "Perl/5.12/Test" }, { "value": 20, "name": "Text", "path": "Perl/5.12/Text" }, { "value": 8, "name": "Thread", "path": "Perl/5.12/Thread" }, { "value": 28, "name": "Tie", "path": "Perl/5.12/Tie" }, { "value": 8, "name": "Time", "path": "Perl/5.12/Time" }, { "value": 280, "name": "Unicode", "path": "Perl/5.12/Unicode" }, { "value": 2348, "name": "unicore", "path": "Perl/5.12/unicore" }, { "value": 8, "name": "User", "path": "Perl/5.12/User" }, { "value": 12, "name": "version", "path": "Perl/5.12/version" }, { "value": 0, "name": "warnings", "path": "Perl/5.12/warnings" } ] }, { "value": 14072, "name": "5.16", "path": "Perl/5.16", "children": [ { "value": 20, "name": "App", "path": "Perl/5.16/App" }, { "value": 48, "name": "Archive", "path": "Perl/5.16/Archive" }, { "value": 12, "name": "Attribute", "path": "Perl/5.16/Attribute" }, { "value": 16, "name": "autodie", "path": "Perl/5.16/autodie" }, { "value": 56, "name": "B", "path": "Perl/5.16/B" }, { "value": 0, "name": "Carp", "path": "Perl/5.16/Carp" }, { "value": 32, "name": "CGI", "path": "Perl/5.16/CGI" }, { "value": 8, "name": "Class", "path": "Perl/5.16/Class" }, { "value": 12, "name": "Compress", "path": "Perl/5.16/Compress" }, { "value": 0, "name": "Config", "path": "Perl/5.16/Config" }, { "value": 192, "name": "CPAN", "path": "Perl/5.16/CPAN" }, { "value": 180, "name": "CPANPLUS", "path": "Perl/5.16/CPANPLUS" }, { "value": 7328, "name": "darwin-thread-multi-2level", "path": "Perl/5.16/darwin-thread-multi-2level" }, { "value": 0, "name": "DBM_Filter", "path": "Perl/5.16/DBM_Filter" }, { "value": 0, "name": "Devel", "path": "Perl/5.16/Devel" }, { "value": 0, "name": "Digest", "path": "Perl/5.16/Digest" }, { "value": 12, "name": "Encode", "path": "Perl/5.16/Encode" }, { "value": 0, "name": "encoding", "path": "Perl/5.16/encoding" }, { "value": 0, "name": "Exporter", "path": "Perl/5.16/Exporter" }, { "value": 248, "name": "ExtUtils", "path": "Perl/5.16/ExtUtils" }, { "value": 96, "name": "File", "path": "Perl/5.16/File" }, { "value": 12, "name": "Filter", "path": "Perl/5.16/Filter" }, { "value": 28, "name": "Getopt", "path": "Perl/5.16/Getopt" }, { "value": 12, "name": "HTTP", "path": "Perl/5.16/HTTP" }, { "value": 24, "name": "I18N", "path": "Perl/5.16/I18N" }, { "value": 0, "name": "inc", "path": "Perl/5.16/inc" }, { "value": 168, "name": "IO", "path": "Perl/5.16/IO" }, { "value": 28, "name": "IPC", "path": "Perl/5.16/IPC" }, { "value": 28, "name": "JSON", "path": "Perl/5.16/JSON" }, { "value": 372, "name": "Locale", "path": "Perl/5.16/Locale" }, { "value": 8, "name": "Log", "path": "Perl/5.16/Log" }, { "value": 148, "name": "Math", "path": "Perl/5.16/Math" }, { "value": 8, "name": "Memoize", "path": "Perl/5.16/Memoize" }, { "value": 212, "name": "Module", "path": "Perl/5.16/Module" }, { "value": 80, "name": "Net", "path": "Perl/5.16/Net" }, { "value": 8, "name": "Object", "path": "Perl/5.16/Object" }, { "value": 0, "name": "overload", "path": "Perl/5.16/overload" }, { "value": 0, "name": "Package", "path": "Perl/5.16/Package" }, { "value": 8, "name": "Params", "path": "Perl/5.16/Params" }, { "value": 0, "name": "Parse", "path": "Perl/5.16/Parse" }, { "value": 0, "name": "Perl", "path": "Perl/5.16/Perl" }, { "value": 0, "name": "PerlIO", "path": "Perl/5.16/PerlIO" }, { "value": 324, "name": "Pod", "path": "Perl/5.16/Pod" }, { "value": 2452, "name": "pods", "path": "Perl/5.16/pods" }, { "value": 0, "name": "Search", "path": "Perl/5.16/Search" }, { "value": 44, "name": "TAP", "path": "Perl/5.16/TAP" }, { "value": 36, "name": "Term", "path": "Perl/5.16/Term" }, { "value": 60, "name": "Test", "path": "Perl/5.16/Test" }, { "value": 20, "name": "Text", "path": "Perl/5.16/Text" }, { "value": 8, "name": "Thread", "path": "Perl/5.16/Thread" }, { "value": 28, "name": "Tie", "path": "Perl/5.16/Tie" }, { "value": 8, "name": "Time", "path": "Perl/5.16/Time" }, { "value": 684, "name": "Unicode", "path": "Perl/5.16/Unicode" }, { "value": 468, "name": "unicore", "path": "Perl/5.16/unicore" }, { "value": 8, "name": "User", "path": "Perl/5.16/User" }, { "value": 12, "name": "version", "path": "Perl/5.16/version" }, { "value": 0, "name": "warnings", "path": "Perl/5.16/warnings" } ] }, { "value": 28316, "name": "Extras", "path": "Perl/Extras", "children": [ { "value": 14188, "name": "5.12", "path": "Perl/Extras/5.12" }, { "value": 14128, "name": "5.16", "path": "Perl/Extras/5.16" } ] } ] }, { "value": 226552, "name": "PreferencePanes", "path": "PreferencePanes", "children": [ { "value": 5380, "name": "Accounts.prefPane", "path": "PreferencePanes/Accounts.prefPane", "children": [ { "value": 5380, "name": "Contents", "path": "PreferencePanes/Accounts.prefPane/Contents" } ] }, { "value": 1448, "name": "Appearance.prefPane", "path": "PreferencePanes/Appearance.prefPane", "children": [ { "value": 1448, "name": "Contents", "path": "PreferencePanes/Appearance.prefPane/Contents" } ] }, { "value": 2008, "name": "AppStore.prefPane", "path": "PreferencePanes/AppStore.prefPane", "children": [ { "value": 2008, "name": "Contents", "path": "PreferencePanes/AppStore.prefPane/Contents" } ] }, { "value": 1636, "name": "Bluetooth.prefPane", "path": "PreferencePanes/Bluetooth.prefPane", "children": [ { "value": 1636, "name": "Contents", "path": "PreferencePanes/Bluetooth.prefPane/Contents" } ] }, { "value": 2348, "name": "DateAndTime.prefPane", "path": "PreferencePanes/DateAndTime.prefPane", "children": [ { "value": 2348, "name": "Contents", "path": "PreferencePanes/DateAndTime.prefPane/Contents" } ] }, { "value": 4644, "name": "DesktopScreenEffectsPref.prefPane", "path": "PreferencePanes/DesktopScreenEffectsPref.prefPane", "children": [ { "value": 4644, "name": "Contents", "path": "PreferencePanes/DesktopScreenEffectsPref.prefPane/Contents" } ] }, { "value": 2148, "name": "DigiHubDiscs.prefPane", "path": "PreferencePanes/DigiHubDiscs.prefPane", "children": [ { "value": 2148, "name": "Contents", "path": "PreferencePanes/DigiHubDiscs.prefPane/Contents" } ] }, { "value": 624, "name": "Displays.prefPane", "path": "PreferencePanes/Displays.prefPane", "children": [ { "value": 624, "name": "Contents", "path": "PreferencePanes/Displays.prefPane/Contents" } ] }, { "value": 1012, "name": "Dock.prefPane", "path": "PreferencePanes/Dock.prefPane", "children": [ { "value": 1012, "name": "Contents", "path": "PreferencePanes/Dock.prefPane/Contents" } ] }, { "value": 2568, "name": "EnergySaver.prefPane", "path": "PreferencePanes/EnergySaver.prefPane", "children": [ { "value": 2568, "name": "Contents", "path": "PreferencePanes/EnergySaver.prefPane/Contents" } ] }, { "value": 3056, "name": "Expose.prefPane", "path": "PreferencePanes/Expose.prefPane", "children": [ { "value": 3056, "name": "Contents", "path": "PreferencePanes/Expose.prefPane/Contents" } ] }, { "value": 156, "name": "FibreChannel.prefPane", "path": "PreferencePanes/FibreChannel.prefPane", "children": [ { "value": 156, "name": "Contents", "path": "PreferencePanes/FibreChannel.prefPane/Contents" } ] }, { "value": 252, "name": "iCloudPref.prefPane", "path": "PreferencePanes/iCloudPref.prefPane", "children": [ { "value": 252, "name": "Contents", "path": "PreferencePanes/iCloudPref.prefPane/Contents" } ] }, { "value": 1588, "name": "Ink.prefPane", "path": "PreferencePanes/Ink.prefPane", "children": [ { "value": 1588, "name": "Contents", "path": "PreferencePanes/Ink.prefPane/Contents" } ] }, { "value": 4616, "name": "InternetAccounts.prefPane", "path": "PreferencePanes/InternetAccounts.prefPane", "children": [ { "value": 4616, "name": "Contents", "path": "PreferencePanes/InternetAccounts.prefPane/Contents" } ] }, { "value": 3676, "name": "Keyboard.prefPane", "path": "PreferencePanes/Keyboard.prefPane", "children": [ { "value": 3676, "name": "Contents", "path": "PreferencePanes/Keyboard.prefPane/Contents" } ] }, { "value": 3468, "name": "Localization.prefPane", "path": "PreferencePanes/Localization.prefPane", "children": [ { "value": 3468, "name": "Contents", "path": "PreferencePanes/Localization.prefPane/Contents" } ] }, { "value": 23180, "name": "Mouse.prefPane", "path": "PreferencePanes/Mouse.prefPane", "children": [ { "value": 23180, "name": "Contents", "path": "PreferencePanes/Mouse.prefPane/Contents" } ] }, { "value": 20588, "name": "Network.prefPane", "path": "PreferencePanes/Network.prefPane", "children": [ { "value": 20588, "name": "Contents", "path": "PreferencePanes/Network.prefPane/Contents" } ] }, { "value": 1512, "name": "Notifications.prefPane", "path": "PreferencePanes/Notifications.prefPane", "children": [ { "value": 1512, "name": "Contents", "path": "PreferencePanes/Notifications.prefPane/Contents" } ] }, { "value": 7648, "name": "ParentalControls.prefPane", "path": "PreferencePanes/ParentalControls.prefPane", "children": [ { "value": 7648, "name": "Contents", "path": "PreferencePanes/ParentalControls.prefPane/Contents" } ] }, { "value": 4060, "name": "PrintAndScan.prefPane", "path": "PreferencePanes/PrintAndScan.prefPane", "children": [ { "value": 4060, "name": "Contents", "path": "PreferencePanes/PrintAndScan.prefPane/Contents" } ] }, { "value": 1904, "name": "Profiles.prefPane", "path": "PreferencePanes/Profiles.prefPane", "children": [ { "value": 1904, "name": "Contents", "path": "PreferencePanes/Profiles.prefPane/Contents" } ] }, { "value": 6280, "name": "Security.prefPane", "path": "PreferencePanes/Security.prefPane", "children": [ { "value": 6280, "name": "Contents", "path": "PreferencePanes/Security.prefPane/Contents" } ] }, { "value": 9608, "name": "SharingPref.prefPane", "path": "PreferencePanes/SharingPref.prefPane", "children": [ { "value": 9608, "name": "Contents", "path": "PreferencePanes/SharingPref.prefPane/Contents" } ] }, { "value": 2204, "name": "Sound.prefPane", "path": "PreferencePanes/Sound.prefPane", "children": [ { "value": 2204, "name": "Contents", "path": "PreferencePanes/Sound.prefPane/Contents" } ] }, { "value": 1072, "name": "Speech.prefPane", "path": "PreferencePanes/Speech.prefPane", "children": [ { "value": 1072, "name": "Contents", "path": "PreferencePanes/Speech.prefPane/Contents" } ] }, { "value": 1112, "name": "Spotlight.prefPane", "path": "PreferencePanes/Spotlight.prefPane", "children": [ { "value": 1112, "name": "Contents", "path": "PreferencePanes/Spotlight.prefPane/Contents" } ] }, { "value": 2040, "name": "StartupDisk.prefPane", "path": "PreferencePanes/StartupDisk.prefPane", "children": [ { "value": 2040, "name": "Contents", "path": "PreferencePanes/StartupDisk.prefPane/Contents" } ] }, { "value": 3080, "name": "TimeMachine.prefPane", "path": "PreferencePanes/TimeMachine.prefPane", "children": [ { "value": 3080, "name": "Contents", "path": "PreferencePanes/TimeMachine.prefPane/Contents" } ] }, { "value": 93312, "name": "Trackpad.prefPane", "path": "PreferencePanes/Trackpad.prefPane", "children": [ { "value": 93312, "name": "Contents", "path": "PreferencePanes/Trackpad.prefPane/Contents" } ] }, { "value": 7680, "name": "UniversalAccessPref.prefPane", "path": "PreferencePanes/UniversalAccessPref.prefPane", "children": [ { "value": 7680, "name": "Contents", "path": "PreferencePanes/UniversalAccessPref.prefPane/Contents" } ] }, { "value": 640, "name": "Xsan.prefPane", "path": "PreferencePanes/Xsan.prefPane", "children": [ { "value": 640, "name": "Contents", "path": "PreferencePanes/Xsan.prefPane/Contents" } ] } ] }, { "value": 224, "name": "Printers", "path": "Printers", "children": [ { "value": 224, "name": "Libraries", "path": "Printers/Libraries", "children": [ { "value": 24, "name": "USBGenericPrintingClass.plugin", "path": "Printers/Libraries/USBGenericPrintingClass.plugin" }, { "value": 24, "name": "USBGenericTOPrintingClass.plugin", "path": "Printers/Libraries/USBGenericTOPrintingClass.plugin" } ] } ] }, { "value": 586092, "name": "PrivateFrameworks", "path": "PrivateFrameworks", "children": [ { "value": 52, "name": "AccessibilityBundles.framework", "path": "PrivateFrameworks/AccessibilityBundles.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/AccessibilityBundles.framework/Versions" } ] }, { "value": 348, "name": "AccountsDaemon.framework", "path": "PrivateFrameworks/AccountsDaemon.framework", "children": [ { "value": 332, "name": "Versions", "path": "PrivateFrameworks/AccountsDaemon.framework/Versions" }, { "value": 8, "name": "XPCServices", "path": "PrivateFrameworks/AccountsDaemon.framework/XPCServices" } ] }, { "value": 168, "name": "Admin.framework", "path": "PrivateFrameworks/Admin.framework", "children": [ { "value": 160, "name": "Versions", "path": "PrivateFrameworks/Admin.framework/Versions" } ] }, { "value": 408, "name": "AirPortDevices.framework", "path": "PrivateFrameworks/AirPortDevices.framework", "children": [ { "value": 408, "name": "Versions", "path": "PrivateFrameworks/AirPortDevices.framework/Versions" } ] }, { "value": 1324, "name": "AirTrafficHost.framework", "path": "PrivateFrameworks/AirTrafficHost.framework", "children": [ { "value": 1276, "name": "Versions", "path": "PrivateFrameworks/AirTrafficHost.framework/Versions" } ] }, { "value": 2408, "name": "Altitude.framework", "path": "PrivateFrameworks/Altitude.framework", "children": [ { "value": 2400, "name": "Versions", "path": "PrivateFrameworks/Altitude.framework/Versions" } ] }, { "value": 224, "name": "AOSAccounts.framework", "path": "PrivateFrameworks/AOSAccounts.framework", "children": [ { "value": 216, "name": "Versions", "path": "PrivateFrameworks/AOSAccounts.framework/Versions" } ] }, { "value": 4672, "name": "AOSKit.framework", "path": "PrivateFrameworks/AOSKit.framework", "children": [ { "value": 4656, "name": "Versions", "path": "PrivateFrameworks/AOSKit.framework/Versions" } ] }, { "value": 20, "name": "AOSMigrate.framework", "path": "PrivateFrameworks/AOSMigrate.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/AOSMigrate.framework/Versions" } ] }, { "value": 1300, "name": "AOSNotification.framework", "path": "PrivateFrameworks/AOSNotification.framework", "children": [ { "value": 52, "name": "Versions", "path": "PrivateFrameworks/AOSNotification.framework/Versions" } ] }, { "value": 16500, "name": "AOSUI.framework", "path": "PrivateFrameworks/AOSUI.framework", "children": [ { "value": 16492, "name": "Versions", "path": "PrivateFrameworks/AOSUI.framework/Versions" } ] }, { "value": 124, "name": "AppContainer.framework", "path": "PrivateFrameworks/AppContainer.framework", "children": [ { "value": 116, "name": "Versions", "path": "PrivateFrameworks/AppContainer.framework/Versions" } ] }, { "value": 324, "name": "Apple80211.framework", "path": "PrivateFrameworks/Apple80211.framework", "children": [ { "value": 316, "name": "Versions", "path": "PrivateFrameworks/Apple80211.framework/Versions" } ] }, { "value": 20, "name": "AppleAppSupport.framework", "path": "PrivateFrameworks/AppleAppSupport.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/AppleAppSupport.framework/Versions" } ] }, { "value": 88, "name": "AppleFSCompression.framework", "path": "PrivateFrameworks/AppleFSCompression.framework", "children": [ { "value": 80, "name": "Versions", "path": "PrivateFrameworks/AppleFSCompression.framework/Versions" } ] }, { "value": 712, "name": "AppleGVA.framework", "path": "PrivateFrameworks/AppleGVA.framework", "children": [ { "value": 704, "name": "Versions", "path": "PrivateFrameworks/AppleGVA.framework/Versions" } ] }, { "value": 88, "name": "AppleGVACore.framework", "path": "PrivateFrameworks/AppleGVACore.framework", "children": [ { "value": 80, "name": "Versions", "path": "PrivateFrameworks/AppleGVACore.framework/Versions" } ] }, { "value": 52, "name": "AppleLDAP.framework", "path": "PrivateFrameworks/AppleLDAP.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/AppleLDAP.framework/Versions" } ] }, { "value": 588, "name": "AppleProfileFamily.framework", "path": "PrivateFrameworks/AppleProfileFamily.framework", "children": [ { "value": 580, "name": "Versions", "path": "PrivateFrameworks/AppleProfileFamily.framework/Versions" } ] }, { "value": 508, "name": "ApplePushService.framework", "path": "PrivateFrameworks/ApplePushService.framework", "children": [ { "value": 128, "name": "Versions", "path": "PrivateFrameworks/ApplePushService.framework/Versions" } ] }, { "value": 672, "name": "AppleScript.framework", "path": "PrivateFrameworks/AppleScript.framework", "children": [ { "value": 664, "name": "Versions", "path": "PrivateFrameworks/AppleScript.framework/Versions" } ] }, { "value": 68, "name": "AppleSRP.framework", "path": "PrivateFrameworks/AppleSRP.framework", "children": [ { "value": 60, "name": "Versions", "path": "PrivateFrameworks/AppleSRP.framework/Versions" } ] }, { "value": 44, "name": "AppleSystemInfo.framework", "path": "PrivateFrameworks/AppleSystemInfo.framework", "children": [ { "value": 36, "name": "Versions", "path": "PrivateFrameworks/AppleSystemInfo.framework/Versions" } ] }, { "value": 336, "name": "AppleVA.framework", "path": "PrivateFrameworks/AppleVA.framework", "children": [ { "value": 328, "name": "Versions", "path": "PrivateFrameworks/AppleVA.framework/Versions" } ] }, { "value": 72, "name": "AppSandbox.framework", "path": "PrivateFrameworks/AppSandbox.framework", "children": [ { "value": 64, "name": "Versions", "path": "PrivateFrameworks/AppSandbox.framework/Versions" } ] }, { "value": 380, "name": "Assistant.framework", "path": "PrivateFrameworks/Assistant.framework", "children": [ { "value": 372, "name": "Versions", "path": "PrivateFrameworks/Assistant.framework/Versions" } ] }, { "value": 1772, "name": "AssistantServices.framework", "path": "PrivateFrameworks/AssistantServices.framework", "children": [ { "value": 116, "name": "Versions", "path": "PrivateFrameworks/AssistantServices.framework/Versions" } ] }, { "value": 684, "name": "AssistiveControlSupport.framework", "path": "PrivateFrameworks/AssistiveControlSupport.framework", "children": [ { "value": 224, "name": "Frameworks", "path": "PrivateFrameworks/AssistiveControlSupport.framework/Frameworks" }, { "value": 452, "name": "Versions", "path": "PrivateFrameworks/AssistiveControlSupport.framework/Versions" } ] }, { "value": 1880, "name": "AVConference.framework", "path": "PrivateFrameworks/AVConference.framework", "children": [ { "value": 388, "name": "Frameworks", "path": "PrivateFrameworks/AVConference.framework/Frameworks" }, { "value": 1484, "name": "Versions", "path": "PrivateFrameworks/AVConference.framework/Versions" } ] }, { "value": 168, "name": "AVCore.framework", "path": "PrivateFrameworks/AVCore.framework", "children": [ { "value": 160, "name": "Versions", "path": "PrivateFrameworks/AVCore.framework/Versions" } ] }, { "value": 296, "name": "AVFoundationCF.framework", "path": "PrivateFrameworks/AVFoundationCF.framework", "children": [ { "value": 288, "name": "Versions", "path": "PrivateFrameworks/AVFoundationCF.framework/Versions" } ] }, { "value": 3728, "name": "Backup.framework", "path": "PrivateFrameworks/Backup.framework", "children": [ { "value": 3720, "name": "Versions", "path": "PrivateFrameworks/Backup.framework/Versions" } ] }, { "value": 52, "name": "BezelServices.framework", "path": "PrivateFrameworks/BezelServices.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/BezelServices.framework/Versions" } ] }, { "value": 316, "name": "Bom.framework", "path": "PrivateFrameworks/Bom.framework", "children": [ { "value": 308, "name": "Versions", "path": "PrivateFrameworks/Bom.framework/Versions" } ] }, { "value": 88, "name": "BookKit.framework", "path": "PrivateFrameworks/BookKit.framework", "children": [ { "value": 76, "name": "Versions", "path": "PrivateFrameworks/BookKit.framework/Versions" } ] }, { "value": 124, "name": "BookmarkDAV.framework", "path": "PrivateFrameworks/BookmarkDAV.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/BookmarkDAV.framework/Versions" } ] }, { "value": 1732, "name": "BrowserKit.framework", "path": "PrivateFrameworks/BrowserKit.framework", "children": [ { "value": 1724, "name": "Versions", "path": "PrivateFrameworks/BrowserKit.framework/Versions" } ] }, { "value": 52, "name": "ByteRangeLocking.framework", "path": "PrivateFrameworks/ByteRangeLocking.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/ByteRangeLocking.framework/Versions" } ] }, { "value": 64, "name": "Calculate.framework", "path": "PrivateFrameworks/Calculate.framework", "children": [ { "value": 56, "name": "Versions", "path": "PrivateFrameworks/Calculate.framework/Versions" } ] }, { "value": 356, "name": "CalDAV.framework", "path": "PrivateFrameworks/CalDAV.framework", "children": [ { "value": 348, "name": "Versions", "path": "PrivateFrameworks/CalDAV.framework/Versions" } ] }, { "value": 104, "name": "CalendarAgent.framework", "path": "PrivateFrameworks/CalendarAgent.framework", "children": [ { "value": 8, "name": "Executables", "path": "PrivateFrameworks/CalendarAgent.framework/Executables" }, { "value": 88, "name": "Versions", "path": "PrivateFrameworks/CalendarAgent.framework/Versions" } ] }, { "value": 88, "name": "CalendarAgentLink.framework", "path": "PrivateFrameworks/CalendarAgentLink.framework", "children": [ { "value": 80, "name": "Versions", "path": "PrivateFrameworks/CalendarAgentLink.framework/Versions" } ] }, { "value": 220, "name": "CalendarDraw.framework", "path": "PrivateFrameworks/CalendarDraw.framework", "children": [ { "value": 212, "name": "Versions", "path": "PrivateFrameworks/CalendarDraw.framework/Versions" } ] }, { "value": 196, "name": "CalendarFoundation.framework", "path": "PrivateFrameworks/CalendarFoundation.framework", "children": [ { "value": 188, "name": "Versions", "path": "PrivateFrameworks/CalendarFoundation.framework/Versions" } ] }, { "value": 4872, "name": "CalendarPersistence.framework", "path": "PrivateFrameworks/CalendarPersistence.framework", "children": [ { "value": 4864, "name": "Versions", "path": "PrivateFrameworks/CalendarPersistence.framework/Versions" } ] }, { "value": 900, "name": "CalendarUI.framework", "path": "PrivateFrameworks/CalendarUI.framework", "children": [ { "value": 892, "name": "Versions", "path": "PrivateFrameworks/CalendarUI.framework/Versions" } ] }, { "value": 76, "name": "CaptiveNetwork.framework", "path": "PrivateFrameworks/CaptiveNetwork.framework", "children": [ { "value": 68, "name": "Versions", "path": "PrivateFrameworks/CaptiveNetwork.framework/Versions" } ] }, { "value": 1180, "name": "CharacterPicker.framework", "path": "PrivateFrameworks/CharacterPicker.framework", "children": [ { "value": 1168, "name": "Versions", "path": "PrivateFrameworks/CharacterPicker.framework/Versions" } ] }, { "value": 192, "name": "ChunkingLibrary.framework", "path": "PrivateFrameworks/ChunkingLibrary.framework", "children": [ { "value": 184, "name": "Versions", "path": "PrivateFrameworks/ChunkingLibrary.framework/Versions" } ] }, { "value": 48, "name": "ClockMenuExtraPreferences.framework", "path": "PrivateFrameworks/ClockMenuExtraPreferences.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/ClockMenuExtraPreferences.framework/Versions" } ] }, { "value": 160, "name": "CloudServices.framework", "path": "PrivateFrameworks/CloudServices.framework", "children": [ { "value": 104, "name": "Versions", "path": "PrivateFrameworks/CloudServices.framework/Versions" }, { "value": 48, "name": "XPCServices", "path": "PrivateFrameworks/CloudServices.framework/XPCServices" } ] }, { "value": 10768, "name": "CommerceKit.framework", "path": "PrivateFrameworks/CommerceKit.framework", "children": [ { "value": 10752, "name": "Versions", "path": "PrivateFrameworks/CommerceKit.framework/Versions" } ] }, { "value": 68, "name": "CommonAuth.framework", "path": "PrivateFrameworks/CommonAuth.framework", "children": [ { "value": 60, "name": "Versions", "path": "PrivateFrameworks/CommonAuth.framework/Versions" } ] }, { "value": 120, "name": "CommonCandidateWindow.framework", "path": "PrivateFrameworks/CommonCandidateWindow.framework", "children": [ { "value": 112, "name": "Versions", "path": "PrivateFrameworks/CommonCandidateWindow.framework/Versions" } ] }, { "value": 72, "name": "CommunicationsFilter.framework", "path": "PrivateFrameworks/CommunicationsFilter.framework", "children": [ { "value": 28, "name": "CMFSyncAgent.app", "path": "PrivateFrameworks/CommunicationsFilter.framework/CMFSyncAgent.app" }, { "value": 36, "name": "Versions", "path": "PrivateFrameworks/CommunicationsFilter.framework/Versions" } ] }, { "value": 24, "name": "ConfigProfileHelper.framework", "path": "PrivateFrameworks/ConfigProfileHelper.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/ConfigProfileHelper.framework/Versions" } ] }, { "value": 156, "name": "ConfigurationProfiles.framework", "path": "PrivateFrameworks/ConfigurationProfiles.framework", "children": [ { "value": 148, "name": "Versions", "path": "PrivateFrameworks/ConfigurationProfiles.framework/Versions" } ] }, { "value": 20, "name": "ContactsAssistantServices.framework", "path": "PrivateFrameworks/ContactsAssistantServices.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/ContactsAssistantServices.framework/Versions" } ] }, { "value": 72, "name": "ContactsAutocomplete.framework", "path": "PrivateFrameworks/ContactsAutocomplete.framework", "children": [ { "value": 64, "name": "Versions", "path": "PrivateFrameworks/ContactsAutocomplete.framework/Versions" } ] }, { "value": 24, "name": "ContactsData.framework", "path": "PrivateFrameworks/ContactsData.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/ContactsData.framework/Versions" } ] }, { "value": 60, "name": "ContactsFoundation.framework", "path": "PrivateFrameworks/ContactsFoundation.framework", "children": [ { "value": 52, "name": "Versions", "path": "PrivateFrameworks/ContactsFoundation.framework/Versions" } ] }, { "value": 100, "name": "ContactsUI.framework", "path": "PrivateFrameworks/ContactsUI.framework", "children": [ { "value": 92, "name": "Versions", "path": "PrivateFrameworks/ContactsUI.framework/Versions" } ] }, { "value": 1668, "name": "CoreADI.framework", "path": "PrivateFrameworks/CoreADI.framework", "children": [ { "value": 1660, "name": "Versions", "path": "PrivateFrameworks/CoreADI.framework/Versions" } ] }, { "value": 4092, "name": "CoreAUC.framework", "path": "PrivateFrameworks/CoreAUC.framework", "children": [ { "value": 4084, "name": "Versions", "path": "PrivateFrameworks/CoreAUC.framework/Versions" } ] }, { "value": 200, "name": "CoreAVCHD.framework", "path": "PrivateFrameworks/CoreAVCHD.framework", "children": [ { "value": 192, "name": "Versions", "path": "PrivateFrameworks/CoreAVCHD.framework/Versions" } ] }, { "value": 2624, "name": "CoreChineseEngine.framework", "path": "PrivateFrameworks/CoreChineseEngine.framework", "children": [ { "value": 2616, "name": "Versions", "path": "PrivateFrameworks/CoreChineseEngine.framework/Versions" } ] }, { "value": 240, "name": "CoreDaemon.framework", "path": "PrivateFrameworks/CoreDaemon.framework", "children": [ { "value": 232, "name": "Versions", "path": "PrivateFrameworks/CoreDaemon.framework/Versions" } ] }, { "value": 488, "name": "CoreDAV.framework", "path": "PrivateFrameworks/CoreDAV.framework", "children": [ { "value": 480, "name": "Versions", "path": "PrivateFrameworks/CoreDAV.framework/Versions" } ] }, { "value": 19280, "name": "CoreFP.framework", "path": "PrivateFrameworks/CoreFP.framework", "children": [ { "value": 19268, "name": "Versions", "path": "PrivateFrameworks/CoreFP.framework/Versions" } ] }, { "value": 16124, "name": "CoreHandwriting.framework", "path": "PrivateFrameworks/CoreHandwriting.framework", "children": [ { "value": 16116, "name": "Versions", "path": "PrivateFrameworks/CoreHandwriting.framework/Versions" } ] }, { "value": 2124, "name": "CoreKE.framework", "path": "PrivateFrameworks/CoreKE.framework", "children": [ { "value": 2116, "name": "Versions", "path": "PrivateFrameworks/CoreKE.framework/Versions" } ] }, { "value": 7856, "name": "CoreLSKD.framework", "path": "PrivateFrameworks/CoreLSKD.framework", "children": [ { "value": 7848, "name": "Versions", "path": "PrivateFrameworks/CoreLSKD.framework/Versions" } ] }, { "value": 824, "name": "CoreMediaAuthoring.framework", "path": "PrivateFrameworks/CoreMediaAuthoring.framework", "children": [ { "value": 816, "name": "Versions", "path": "PrivateFrameworks/CoreMediaAuthoring.framework/Versions" } ] }, { "value": 784, "name": "CoreMediaIOServicesPrivate.framework", "path": "PrivateFrameworks/CoreMediaIOServicesPrivate.framework", "children": [ { "value": 776, "name": "Versions", "path": "PrivateFrameworks/CoreMediaIOServicesPrivate.framework/Versions" } ] }, { "value": 116, "name": "CoreMediaPrivate.framework", "path": "PrivateFrameworks/CoreMediaPrivate.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/CoreMediaPrivate.framework/Versions" } ] }, { "value": 292, "name": "CoreMediaStream.framework", "path": "PrivateFrameworks/CoreMediaStream.framework", "children": [ { "value": 284, "name": "Versions", "path": "PrivateFrameworks/CoreMediaStream.framework/Versions" } ] }, { "value": 1436, "name": "CorePDF.framework", "path": "PrivateFrameworks/CorePDF.framework", "children": [ { "value": 1428, "name": "Versions", "path": "PrivateFrameworks/CorePDF.framework/Versions" } ] }, { "value": 1324, "name": "CoreProfile.framework", "path": "PrivateFrameworks/CoreProfile.framework", "children": [ { "value": 1312, "name": "Versions", "path": "PrivateFrameworks/CoreProfile.framework/Versions" } ] }, { "value": 1384, "name": "CoreRAID.framework", "path": "PrivateFrameworks/CoreRAID.framework", "children": [ { "value": 1372, "name": "Versions", "path": "PrivateFrameworks/CoreRAID.framework/Versions" } ] }, { "value": 128, "name": "CoreRecents.framework", "path": "PrivateFrameworks/CoreRecents.framework", "children": [ { "value": 120, "name": "Versions", "path": "PrivateFrameworks/CoreRecents.framework/Versions" } ] }, { "value": 832, "name": "CoreRecognition.framework", "path": "PrivateFrameworks/CoreRecognition.framework", "children": [ { "value": 824, "name": "Versions", "path": "PrivateFrameworks/CoreRecognition.framework/Versions" } ] }, { "value": 104, "name": "CoreSDB.framework", "path": "PrivateFrameworks/CoreSDB.framework", "children": [ { "value": 96, "name": "Versions", "path": "PrivateFrameworks/CoreSDB.framework/Versions" } ] }, { "value": 280, "name": "CoreServicesInternal.framework", "path": "PrivateFrameworks/CoreServicesInternal.framework", "children": [ { "value": 272, "name": "Versions", "path": "PrivateFrameworks/CoreServicesInternal.framework/Versions" } ] }, { "value": 576, "name": "CoreSymbolication.framework", "path": "PrivateFrameworks/CoreSymbolication.framework", "children": [ { "value": 536, "name": "Versions", "path": "PrivateFrameworks/CoreSymbolication.framework/Versions" } ] }, { "value": 476, "name": "CoreThemeDefinition.framework", "path": "PrivateFrameworks/CoreThemeDefinition.framework", "children": [ { "value": 468, "name": "Versions", "path": "PrivateFrameworks/CoreThemeDefinition.framework/Versions" } ] }, { "value": 4976, "name": "CoreUI.framework", "path": "PrivateFrameworks/CoreUI.framework", "children": [ { "value": 4968, "name": "Versions", "path": "PrivateFrameworks/CoreUI.framework/Versions" } ] }, { "value": 576, "name": "CoreUtils.framework", "path": "PrivateFrameworks/CoreUtils.framework", "children": [ { "value": 568, "name": "Versions", "path": "PrivateFrameworks/CoreUtils.framework/Versions" } ] }, { "value": 3476, "name": "CoreWLANKit.framework", "path": "PrivateFrameworks/CoreWLANKit.framework", "children": [ { "value": 3468, "name": "Versions", "path": "PrivateFrameworks/CoreWLANKit.framework/Versions" } ] }, { "value": 92, "name": "CrashReporterSupport.framework", "path": "PrivateFrameworks/CrashReporterSupport.framework", "children": [ { "value": 84, "name": "Versions", "path": "PrivateFrameworks/CrashReporterSupport.framework/Versions" } ] }, { "value": 132, "name": "DashboardClient.framework", "path": "PrivateFrameworks/DashboardClient.framework", "children": [ { "value": 124, "name": "Versions", "path": "PrivateFrameworks/DashboardClient.framework/Versions" } ] }, { "value": 1716, "name": "DataDetectors.framework", "path": "PrivateFrameworks/DataDetectors.framework", "children": [ { "value": 1708, "name": "Versions", "path": "PrivateFrameworks/DataDetectors.framework/Versions" } ] }, { "value": 4952, "name": "DataDetectorsCore.framework", "path": "PrivateFrameworks/DataDetectorsCore.framework", "children": [ { "value": 4940, "name": "Versions", "path": "PrivateFrameworks/DataDetectorsCore.framework/Versions" } ] }, { "value": 500, "name": "DCERPC.framework", "path": "PrivateFrameworks/DCERPC.framework", "children": [ { "value": 492, "name": "Versions", "path": "PrivateFrameworks/DCERPC.framework/Versions" } ] }, { "value": 232, "name": "DebugSymbols.framework", "path": "PrivateFrameworks/DebugSymbols.framework", "children": [ { "value": 224, "name": "Versions", "path": "PrivateFrameworks/DebugSymbols.framework/Versions" } ] }, { "value": 1792, "name": "DesktopServicesPriv.framework", "path": "PrivateFrameworks/DesktopServicesPriv.framework", "children": [ { "value": 1780, "name": "Versions", "path": "PrivateFrameworks/DesktopServicesPriv.framework/Versions" } ] }, { "value": 128, "name": "DeviceLink.framework", "path": "PrivateFrameworks/DeviceLink.framework", "children": [ { "value": 120, "name": "Versions", "path": "PrivateFrameworks/DeviceLink.framework/Versions" } ] }, { "value": 464, "name": "DeviceToDeviceKit.framework", "path": "PrivateFrameworks/DeviceToDeviceKit.framework", "children": [ { "value": 456, "name": "Versions", "path": "PrivateFrameworks/DeviceToDeviceKit.framework/Versions" } ] }, { "value": 52, "name": "DeviceToDeviceManager.framework", "path": "PrivateFrameworks/DeviceToDeviceManager.framework", "children": [ { "value": 28, "name": "PlugIns", "path": "PrivateFrameworks/DeviceToDeviceManager.framework/PlugIns" }, { "value": 16, "name": "Versions", "path": "PrivateFrameworks/DeviceToDeviceManager.framework/Versions" } ] }, { "value": 28, "name": "DiagnosticLogCollection.framework", "path": "PrivateFrameworks/DiagnosticLogCollection.framework", "children": [ { "value": 20, "name": "Versions", "path": "PrivateFrameworks/DiagnosticLogCollection.framework/Versions" } ] }, { "value": 56, "name": "DigiHubPreference.framework", "path": "PrivateFrameworks/DigiHubPreference.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/DigiHubPreference.framework/Versions" } ] }, { "value": 1344, "name": "DirectoryEditor.framework", "path": "PrivateFrameworks/DirectoryEditor.framework", "children": [ { "value": 1336, "name": "Versions", "path": "PrivateFrameworks/DirectoryEditor.framework/Versions" } ] }, { "value": 104, "name": "DirectoryServer.framework", "path": "PrivateFrameworks/DirectoryServer.framework", "children": [ { "value": 52, "name": "Frameworks", "path": "PrivateFrameworks/DirectoryServer.framework/Frameworks" }, { "value": 40, "name": "Versions", "path": "PrivateFrameworks/DirectoryServer.framework/Versions" } ] }, { "value": 1596, "name": "DiskImages.framework", "path": "PrivateFrameworks/DiskImages.framework", "children": [ { "value": 1588, "name": "Versions", "path": "PrivateFrameworks/DiskImages.framework/Versions" } ] }, { "value": 1168, "name": "DiskManagement.framework", "path": "PrivateFrameworks/DiskManagement.framework", "children": [ { "value": 1160, "name": "Versions", "path": "PrivateFrameworks/DiskManagement.framework/Versions" } ] }, { "value": 80, "name": "DisplayServices.framework", "path": "PrivateFrameworks/DisplayServices.framework", "children": [ { "value": 72, "name": "Versions", "path": "PrivateFrameworks/DisplayServices.framework/Versions" } ] }, { "value": 32, "name": "DMNotification.framework", "path": "PrivateFrameworks/DMNotification.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/DMNotification.framework/Versions" } ] }, { "value": 24, "name": "DVD.framework", "path": "PrivateFrameworks/DVD.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/DVD.framework/Versions" } ] }, { "value": 272, "name": "EAP8021X.framework", "path": "PrivateFrameworks/EAP8021X.framework", "children": [ { "value": 20, "name": "Support", "path": "PrivateFrameworks/EAP8021X.framework/Support" }, { "value": 244, "name": "Versions", "path": "PrivateFrameworks/EAP8021X.framework/Versions" } ] }, { "value": 56, "name": "EasyConfig.framework", "path": "PrivateFrameworks/EasyConfig.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/EasyConfig.framework/Versions" } ] }, { "value": 872, "name": "EFILogin.framework", "path": "PrivateFrameworks/EFILogin.framework", "children": [ { "value": 864, "name": "Versions", "path": "PrivateFrameworks/EFILogin.framework/Versions" } ] }, { "value": 32, "name": "EmailAddressing.framework", "path": "PrivateFrameworks/EmailAddressing.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/EmailAddressing.framework/Versions" } ] }, { "value": 444, "name": "ExchangeWebServices.framework", "path": "PrivateFrameworks/ExchangeWebServices.framework", "children": [ { "value": 436, "name": "Versions", "path": "PrivateFrameworks/ExchangeWebServices.framework/Versions" } ] }, { "value": 23556, "name": "FaceCore.framework", "path": "PrivateFrameworks/FaceCore.framework", "children": [ { "value": 23548, "name": "Versions", "path": "PrivateFrameworks/FaceCore.framework/Versions" } ] }, { "value": 12, "name": "FaceCoreLight.framework", "path": "PrivateFrameworks/FaceCoreLight.framework", "children": [ { "value": 8, "name": "Versions", "path": "PrivateFrameworks/FaceCoreLight.framework/Versions" } ] }, { "value": 2836, "name": "FamilyControls.framework", "path": "PrivateFrameworks/FamilyControls.framework", "children": [ { "value": 2828, "name": "Versions", "path": "PrivateFrameworks/FamilyControls.framework/Versions" } ] }, { "value": 104, "name": "FileSync.framework", "path": "PrivateFrameworks/FileSync.framework", "children": [ { "value": 96, "name": "Versions", "path": "PrivateFrameworks/FileSync.framework/Versions" } ] }, { "value": 12048, "name": "FinderKit.framework", "path": "PrivateFrameworks/FinderKit.framework", "children": [ { "value": 12040, "name": "Versions", "path": "PrivateFrameworks/FinderKit.framework/Versions" } ] }, { "value": 1068, "name": "FindMyMac.framework", "path": "PrivateFrameworks/FindMyMac.framework", "children": [ { "value": 1044, "name": "Versions", "path": "PrivateFrameworks/FindMyMac.framework/Versions" }, { "value": 16, "name": "XPCServices", "path": "PrivateFrameworks/FindMyMac.framework/XPCServices" } ] }, { "value": 32, "name": "FTClientServices.framework", "path": "PrivateFrameworks/FTClientServices.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/FTClientServices.framework/Versions" } ] }, { "value": 156, "name": "FTServices.framework", "path": "PrivateFrameworks/FTServices.framework", "children": [ { "value": 148, "name": "Versions", "path": "PrivateFrameworks/FTServices.framework/Versions" } ] }, { "value": 216, "name": "FWAVC.framework", "path": "PrivateFrameworks/FWAVC.framework", "children": [ { "value": 208, "name": "Versions", "path": "PrivateFrameworks/FWAVC.framework/Versions" } ] }, { "value": 116, "name": "FWAVCPrivate.framework", "path": "PrivateFrameworks/FWAVCPrivate.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/FWAVCPrivate.framework/Versions" } ] }, { "value": 624, "name": "GameKitServices.framework", "path": "PrivateFrameworks/GameKitServices.framework", "children": [ { "value": 616, "name": "Versions", "path": "PrivateFrameworks/GameKitServices.framework/Versions" } ] }, { "value": 312, "name": "GenerationalStorage.framework", "path": "PrivateFrameworks/GenerationalStorage.framework", "children": [ { "value": 300, "name": "Versions", "path": "PrivateFrameworks/GenerationalStorage.framework/Versions" } ] }, { "value": 14920, "name": "GeoKit.framework", "path": "PrivateFrameworks/GeoKit.framework", "children": [ { "value": 14912, "name": "Versions", "path": "PrivateFrameworks/GeoKit.framework/Versions" } ] }, { "value": 27272, "name": "GeoServices.framework", "path": "PrivateFrameworks/GeoServices.framework", "children": [ { "value": 2104, "name": "Versions", "path": "PrivateFrameworks/GeoServices.framework/Versions" } ] }, { "value": 152, "name": "GPUSupport.framework", "path": "PrivateFrameworks/GPUSupport.framework", "children": [ { "value": 144, "name": "Versions", "path": "PrivateFrameworks/GPUSupport.framework/Versions" } ] }, { "value": 28, "name": "GraphicsAppSupport.framework", "path": "PrivateFrameworks/GraphicsAppSupport.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/GraphicsAppSupport.framework/Versions" } ] }, { "value": 336, "name": "GraphKit.framework", "path": "PrivateFrameworks/GraphKit.framework", "children": [ { "value": 328, "name": "Versions", "path": "PrivateFrameworks/GraphKit.framework/Versions" } ] }, { "value": 56, "name": "HDAInterface.framework", "path": "PrivateFrameworks/HDAInterface.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/HDAInterface.framework/Versions" } ] }, { "value": 1044, "name": "Heimdal.framework", "path": "PrivateFrameworks/Heimdal.framework", "children": [ { "value": 508, "name": "Helpers", "path": "PrivateFrameworks/Heimdal.framework/Helpers" }, { "value": 528, "name": "Versions", "path": "PrivateFrameworks/Heimdal.framework/Versions" } ] }, { "value": 56, "name": "HeimODAdmin.framework", "path": "PrivateFrameworks/HeimODAdmin.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/HeimODAdmin.framework/Versions" } ] }, { "value": 232, "name": "HelpData.framework", "path": "PrivateFrameworks/HelpData.framework", "children": [ { "value": 224, "name": "Versions", "path": "PrivateFrameworks/HelpData.framework/Versions" } ] }, { "value": 104, "name": "IASUtilities.framework", "path": "PrivateFrameworks/IASUtilities.framework", "children": [ { "value": 92, "name": "Versions", "path": "PrivateFrameworks/IASUtilities.framework/Versions" } ] }, { "value": 224, "name": "iCalendar.framework", "path": "PrivateFrameworks/iCalendar.framework", "children": [ { "value": 216, "name": "Versions", "path": "PrivateFrameworks/iCalendar.framework/Versions" } ] }, { "value": 116, "name": "ICANotifications.framework", "path": "PrivateFrameworks/ICANotifications.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/ICANotifications.framework/Versions" } ] }, { "value": 308, "name": "IconServices.framework", "path": "PrivateFrameworks/IconServices.framework", "children": [ { "value": 296, "name": "Versions", "path": "PrivateFrameworks/IconServices.framework/Versions" } ] }, { "value": 256, "name": "IDS.framework", "path": "PrivateFrameworks/IDS.framework", "children": [ { "value": 248, "name": "Versions", "path": "PrivateFrameworks/IDS.framework/Versions" } ] }, { "value": 4572, "name": "IDSCore.framework", "path": "PrivateFrameworks/IDSCore.framework", "children": [ { "value": 1300, "name": "identityservicesd.app", "path": "PrivateFrameworks/IDSCore.framework/identityservicesd.app" }, { "value": 3264, "name": "Versions", "path": "PrivateFrameworks/IDSCore.framework/Versions" } ] }, { "value": 116, "name": "IDSFoundation.framework", "path": "PrivateFrameworks/IDSFoundation.framework", "children": [ { "value": 108, "name": "Versions", "path": "PrivateFrameworks/IDSFoundation.framework/Versions" } ] }, { "value": 24, "name": "IDSSystemPreferencesSignIn.framework", "path": "PrivateFrameworks/IDSSystemPreferencesSignIn.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/IDSSystemPreferencesSignIn.framework/Versions" } ] }, { "value": 16772, "name": "iLifeMediaBrowser.framework", "path": "PrivateFrameworks/iLifeMediaBrowser.framework", "children": [ { "value": 16764, "name": "Versions", "path": "PrivateFrameworks/iLifeMediaBrowser.framework/Versions" } ] }, { "value": 252, "name": "IMAP.framework", "path": "PrivateFrameworks/IMAP.framework", "children": [ { "value": 244, "name": "Versions", "path": "PrivateFrameworks/IMAP.framework/Versions" } ] }, { "value": 396, "name": "IMAVCore.framework", "path": "PrivateFrameworks/IMAVCore.framework", "children": [ { "value": 388, "name": "Versions", "path": "PrivateFrameworks/IMAVCore.framework/Versions" } ] }, { "value": 856, "name": "IMCore.framework", "path": "PrivateFrameworks/IMCore.framework", "children": [ { "value": 148, "name": "imagent.app", "path": "PrivateFrameworks/IMCore.framework/imagent.app" }, { "value": 700, "name": "Versions", "path": "PrivateFrameworks/IMCore.framework/Versions" } ] }, { "value": 364, "name": "IMDaemonCore.framework", "path": "PrivateFrameworks/IMDaemonCore.framework", "children": [ { "value": 356, "name": "Versions", "path": "PrivateFrameworks/IMDaemonCore.framework/Versions" } ] }, { "value": 68, "name": "IMDMessageServices.framework", "path": "PrivateFrameworks/IMDMessageServices.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/IMDMessageServices.framework/Versions" }, { "value": 44, "name": "XPCServices", "path": "PrivateFrameworks/IMDMessageServices.framework/XPCServices" } ] }, { "value": 316, "name": "IMDPersistence.framework", "path": "PrivateFrameworks/IMDPersistence.framework", "children": [ { "value": 240, "name": "Versions", "path": "PrivateFrameworks/IMDPersistence.framework/Versions" }, { "value": 68, "name": "XPCServices", "path": "PrivateFrameworks/IMDPersistence.framework/XPCServices" } ] }, { "value": 596, "name": "IMFoundation.framework", "path": "PrivateFrameworks/IMFoundation.framework", "children": [ { "value": 484, "name": "Versions", "path": "PrivateFrameworks/IMFoundation.framework/Versions" }, { "value": 24, "name": "XPCServices", "path": "PrivateFrameworks/IMFoundation.framework/XPCServices" } ] }, { "value": 88, "name": "IMTranscoding.framework", "path": "PrivateFrameworks/IMTranscoding.framework", "children": [ { "value": 20, "name": "Versions", "path": "PrivateFrameworks/IMTranscoding.framework/Versions" }, { "value": 60, "name": "XPCServices", "path": "PrivateFrameworks/IMTranscoding.framework/XPCServices" } ] }, { "value": 92, "name": "IMTransferServices.framework", "path": "PrivateFrameworks/IMTransferServices.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/IMTransferServices.framework/Versions" }, { "value": 56, "name": "XPCServices", "path": "PrivateFrameworks/IMTransferServices.framework/XPCServices" } ] }, { "value": 48, "name": "IncomingCallFilter.framework", "path": "PrivateFrameworks/IncomingCallFilter.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/IncomingCallFilter.framework/Versions" } ] }, { "value": 1668, "name": "Install.framework", "path": "PrivateFrameworks/Install.framework", "children": [ { "value": 644, "name": "Frameworks", "path": "PrivateFrameworks/Install.framework/Frameworks" }, { "value": 1016, "name": "Versions", "path": "PrivateFrameworks/Install.framework/Versions" } ] }, { "value": 24, "name": "International.framework", "path": "PrivateFrameworks/International.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/International.framework/Versions" } ] }, { "value": 2052, "name": "InternetAccounts.framework", "path": "PrivateFrameworks/InternetAccounts.framework", "children": [ { "value": 2040, "name": "Versions", "path": "PrivateFrameworks/InternetAccounts.framework/Versions" } ] }, { "value": 216, "name": "IntlPreferences.framework", "path": "PrivateFrameworks/IntlPreferences.framework", "children": [ { "value": 208, "name": "Versions", "path": "PrivateFrameworks/IntlPreferences.framework/Versions" } ] }, { "value": 52, "name": "IOAccelerator.framework", "path": "PrivateFrameworks/IOAccelerator.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/IOAccelerator.framework/Versions" } ] }, { "value": 68, "name": "IOAccelMemoryInfo.framework", "path": "PrivateFrameworks/IOAccelMemoryInfo.framework", "children": [ { "value": 60, "name": "Versions", "path": "PrivateFrameworks/IOAccelMemoryInfo.framework/Versions" } ] }, { "value": 20, "name": "IOPlatformPluginFamily.framework", "path": "PrivateFrameworks/IOPlatformPluginFamily.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/IOPlatformPluginFamily.framework/Versions" } ] }, { "value": 44, "name": "iPod.framework", "path": "PrivateFrameworks/iPod.framework", "children": [ { "value": 36, "name": "Versions", "path": "PrivateFrameworks/iPod.framework/Versions" } ] }, { "value": 160, "name": "iPodSync.framework", "path": "PrivateFrameworks/iPodSync.framework", "children": [ { "value": 152, "name": "Versions", "path": "PrivateFrameworks/iPodSync.framework/Versions" } ] }, { "value": 516, "name": "ISSupport.framework", "path": "PrivateFrameworks/ISSupport.framework", "children": [ { "value": 508, "name": "Versions", "path": "PrivateFrameworks/ISSupport.framework/Versions" } ] }, { "value": 644, "name": "iTunesAccess.framework", "path": "PrivateFrameworks/iTunesAccess.framework", "children": [ { "value": 636, "name": "Versions", "path": "PrivateFrameworks/iTunesAccess.framework/Versions" } ] }, { "value": 92, "name": "JavaApplicationLauncher.framework", "path": "PrivateFrameworks/JavaApplicationLauncher.framework", "children": [ { "value": 84, "name": "Versions", "path": "PrivateFrameworks/JavaApplicationLauncher.framework/Versions" } ] }, { "value": 48, "name": "JavaLaunching.framework", "path": "PrivateFrameworks/JavaLaunching.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/JavaLaunching.framework/Versions" } ] }, { "value": 8, "name": "KerberosHelper", "path": "PrivateFrameworks/KerberosHelper", "children": [ { "value": 8, "name": "Helpers", "path": "PrivateFrameworks/KerberosHelper/Helpers" } ] }, { "value": 132, "name": "KerberosHelper.framework", "path": "PrivateFrameworks/KerberosHelper.framework", "children": [ { "value": 40, "name": "Helpers", "path": "PrivateFrameworks/KerberosHelper.framework/Helpers" }, { "value": 84, "name": "Versions", "path": "PrivateFrameworks/KerberosHelper.framework/Versions" } ] }, { "value": 44, "name": "kperf.framework", "path": "PrivateFrameworks/kperf.framework", "children": [ { "value": 36, "name": "Versions", "path": "PrivateFrameworks/kperf.framework/Versions" } ] }, { "value": 100, "name": "Librarian.framework", "path": "PrivateFrameworks/Librarian.framework", "children": [ { "value": 92, "name": "Versions", "path": "PrivateFrameworks/Librarian.framework/Versions" } ] }, { "value": 56, "name": "LibraryRepair.framework", "path": "PrivateFrameworks/LibraryRepair.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/LibraryRepair.framework/Versions" } ] }, { "value": 144, "name": "login.framework", "path": "PrivateFrameworks/login.framework", "children": [ { "value": 132, "name": "Versions", "path": "PrivateFrameworks/login.framework/Versions" } ] }, { "value": 4060, "name": "LoginUIKit.framework", "path": "PrivateFrameworks/LoginUIKit.framework", "children": [ { "value": 4048, "name": "Versions", "path": "PrivateFrameworks/LoginUIKit.framework/Versions" } ] }, { "value": 576, "name": "Lookup.framework", "path": "PrivateFrameworks/Lookup.framework", "children": [ { "value": 568, "name": "Versions", "path": "PrivateFrameworks/Lookup.framework/Versions" } ] }, { "value": 32, "name": "MachineSettings.framework", "path": "PrivateFrameworks/MachineSettings.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/MachineSettings.framework/Versions" } ] }, { "value": 2812, "name": "Mail.framework", "path": "PrivateFrameworks/Mail.framework", "children": [ { "value": 2800, "name": "Versions", "path": "PrivateFrameworks/Mail.framework/Versions" } ] }, { "value": 1856, "name": "MailCore.framework", "path": "PrivateFrameworks/MailCore.framework", "children": [ { "value": 1848, "name": "Versions", "path": "PrivateFrameworks/MailCore.framework/Versions" } ] }, { "value": 68, "name": "MailService.framework", "path": "PrivateFrameworks/MailService.framework", "children": [ { "value": 56, "name": "Versions", "path": "PrivateFrameworks/MailService.framework/Versions" } ] }, { "value": 292, "name": "MailUI.framework", "path": "PrivateFrameworks/MailUI.framework", "children": [ { "value": 280, "name": "Versions", "path": "PrivateFrameworks/MailUI.framework/Versions" } ] }, { "value": 80, "name": "ManagedClient.framework", "path": "PrivateFrameworks/ManagedClient.framework", "children": [ { "value": 72, "name": "Versions", "path": "PrivateFrameworks/ManagedClient.framework/Versions" } ] }, { "value": 44, "name": "Mangrove.framework", "path": "PrivateFrameworks/Mangrove.framework", "children": [ { "value": 32, "name": "Versions", "path": "PrivateFrameworks/Mangrove.framework/Versions" } ] }, { "value": 28, "name": "Marco.framework", "path": "PrivateFrameworks/Marco.framework", "children": [ { "value": 20, "name": "Versions", "path": "PrivateFrameworks/Marco.framework/Versions" } ] }, { "value": 52, "name": "MDSChannel.framework", "path": "PrivateFrameworks/MDSChannel.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/MDSChannel.framework/Versions" } ] }, { "value": 1488, "name": "MediaControlSender.framework", "path": "PrivateFrameworks/MediaControlSender.framework", "children": [ { "value": 1480, "name": "Versions", "path": "PrivateFrameworks/MediaControlSender.framework/Versions" } ] }, { "value": 480, "name": "MediaKit.framework", "path": "PrivateFrameworks/MediaKit.framework", "children": [ { "value": 468, "name": "Versions", "path": "PrivateFrameworks/MediaKit.framework/Versions" } ] }, { "value": 288, "name": "MediaUI.framework", "path": "PrivateFrameworks/MediaUI.framework", "children": [ { "value": 280, "name": "Versions", "path": "PrivateFrameworks/MediaUI.framework/Versions" } ] }, { "value": 56, "name": "MessageProtection.framework", "path": "PrivateFrameworks/MessageProtection.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/MessageProtection.framework/Versions" } ] }, { "value": 680, "name": "MessagesHelperKit.framework", "path": "PrivateFrameworks/MessagesHelperKit.framework", "children": [ { "value": 640, "name": "PlugIns", "path": "PrivateFrameworks/MessagesHelperKit.framework/PlugIns" }, { "value": 32, "name": "Versions", "path": "PrivateFrameworks/MessagesHelperKit.framework/Versions" } ] }, { "value": 160, "name": "MessagesKit.framework", "path": "PrivateFrameworks/MessagesKit.framework", "children": [ { "value": 112, "name": "Versions", "path": "PrivateFrameworks/MessagesKit.framework/Versions" }, { "value": 40, "name": "XPCServices", "path": "PrivateFrameworks/MessagesKit.framework/XPCServices" } ] }, { "value": 372, "name": "MMCS.framework", "path": "PrivateFrameworks/MMCS.framework", "children": [ { "value": 364, "name": "Versions", "path": "PrivateFrameworks/MMCS.framework/Versions" } ] }, { "value": 56, "name": "MMCSServices.framework", "path": "PrivateFrameworks/MMCSServices.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/MMCSServices.framework/Versions" } ] }, { "value": 1932, "name": "MobileDevice.framework", "path": "PrivateFrameworks/MobileDevice.framework", "children": [ { "value": 1924, "name": "Versions", "path": "PrivateFrameworks/MobileDevice.framework/Versions" } ] }, { "value": 80, "name": "MonitorPanel.framework", "path": "PrivateFrameworks/MonitorPanel.framework", "children": [ { "value": 72, "name": "Versions", "path": "PrivateFrameworks/MonitorPanel.framework/Versions" } ] }, { "value": 132, "name": "MultitouchSupport.framework", "path": "PrivateFrameworks/MultitouchSupport.framework", "children": [ { "value": 124, "name": "Versions", "path": "PrivateFrameworks/MultitouchSupport.framework/Versions" } ] }, { "value": 76, "name": "NetAuth.framework", "path": "PrivateFrameworks/NetAuth.framework", "children": [ { "value": 68, "name": "Versions", "path": "PrivateFrameworks/NetAuth.framework/Versions" } ] }, { "value": 52, "name": "NetFSServer.framework", "path": "PrivateFrameworks/NetFSServer.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/NetFSServer.framework/Versions" } ] }, { "value": 56, "name": "NetworkDiagnosticsUI.framework", "path": "PrivateFrameworks/NetworkDiagnosticsUI.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/NetworkDiagnosticsUI.framework/Versions" } ] }, { "value": 84, "name": "NetworkMenusCommon.framework", "path": "PrivateFrameworks/NetworkMenusCommon.framework", "children": [ { "value": 0, "name": "_CodeSignature", "path": "PrivateFrameworks/NetworkMenusCommon.framework/_CodeSignature" } ] }, { "value": 32, "name": "NetworkStatistics.framework", "path": "PrivateFrameworks/NetworkStatistics.framework", "children": [ { "value": 24, "name": "Versions", "path": "PrivateFrameworks/NetworkStatistics.framework/Versions" } ] }, { "value": 416, "name": "Notes.framework", "path": "PrivateFrameworks/Notes.framework", "children": [ { "value": 400, "name": "Versions", "path": "PrivateFrameworks/Notes.framework/Versions" } ] }, { "value": 84, "name": "nt.framework", "path": "PrivateFrameworks/nt.framework", "children": [ { "value": 76, "name": "Versions", "path": "PrivateFrameworks/nt.framework/Versions" } ] }, { "value": 24, "name": "OAuth.framework", "path": "PrivateFrameworks/OAuth.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/OAuth.framework/Versions" } ] }, { "value": 6676, "name": "OfficeImport.framework", "path": "PrivateFrameworks/OfficeImport.framework", "children": [ { "value": 6668, "name": "Versions", "path": "PrivateFrameworks/OfficeImport.framework/Versions" } ] }, { "value": 160, "name": "oncrpc.framework", "path": "PrivateFrameworks/oncrpc.framework", "children": [ { "value": 36, "name": "bin", "path": "PrivateFrameworks/oncrpc.framework/bin" }, { "value": 116, "name": "Versions", "path": "PrivateFrameworks/oncrpc.framework/Versions" } ] }, { "value": 140, "name": "OpenDirectoryConfig.framework", "path": "PrivateFrameworks/OpenDirectoryConfig.framework", "children": [ { "value": 132, "name": "Versions", "path": "PrivateFrameworks/OpenDirectoryConfig.framework/Versions" } ] }, { "value": 1292, "name": "OpenDirectoryConfigUI.framework", "path": "PrivateFrameworks/OpenDirectoryConfigUI.framework", "children": [ { "value": 1284, "name": "Versions", "path": "PrivateFrameworks/OpenDirectoryConfigUI.framework/Versions" } ] }, { "value": 1140, "name": "PackageKit.framework", "path": "PrivateFrameworks/PackageKit.framework", "children": [ { "value": 272, "name": "Frameworks", "path": "PrivateFrameworks/PackageKit.framework/Frameworks" }, { "value": 860, "name": "Versions", "path": "PrivateFrameworks/PackageKit.framework/Versions" } ] }, { "value": 64, "name": "PacketFilter.framework", "path": "PrivateFrameworks/PacketFilter.framework", "children": [ { "value": 56, "name": "Versions", "path": "PrivateFrameworks/PacketFilter.framework/Versions" } ] }, { "value": 3312, "name": "PassKit.framework", "path": "PrivateFrameworks/PassKit.framework", "children": [ { "value": 3300, "name": "Versions", "path": "PrivateFrameworks/PassKit.framework/Versions" } ] }, { "value": 216, "name": "PasswordServer.framework", "path": "PrivateFrameworks/PasswordServer.framework", "children": [ { "value": 208, "name": "Versions", "path": "PrivateFrameworks/PasswordServer.framework/Versions" } ] }, { "value": 400, "name": "PerformanceAnalysis.framework", "path": "PrivateFrameworks/PerformanceAnalysis.framework", "children": [ { "value": 360, "name": "Versions", "path": "PrivateFrameworks/PerformanceAnalysis.framework/Versions" }, { "value": 32, "name": "XPCServices", "path": "PrivateFrameworks/PerformanceAnalysis.framework/XPCServices" } ] }, { "value": 80, "name": "PhoneNumbers.framework", "path": "PrivateFrameworks/PhoneNumbers.framework", "children": [ { "value": 72, "name": "Versions", "path": "PrivateFrameworks/PhoneNumbers.framework/Versions" } ] }, { "value": 152, "name": "PhysicsKit.framework", "path": "PrivateFrameworks/PhysicsKit.framework", "children": [ { "value": 144, "name": "Versions", "path": "PrivateFrameworks/PhysicsKit.framework/Versions" } ] }, { "value": 112, "name": "PlatformHardwareManagement.framework", "path": "PrivateFrameworks/PlatformHardwareManagement.framework", "children": [ { "value": 104, "name": "Versions", "path": "PrivateFrameworks/PlatformHardwareManagement.framework/Versions" } ] }, { "value": 76, "name": "PodcastProducerCore.framework", "path": "PrivateFrameworks/PodcastProducerCore.framework", "children": [ { "value": 68, "name": "Versions", "path": "PrivateFrameworks/PodcastProducerCore.framework/Versions" } ] }, { "value": 612, "name": "PodcastProducerKit.framework", "path": "PrivateFrameworks/PodcastProducerKit.framework", "children": [ { "value": 604, "name": "Versions", "path": "PrivateFrameworks/PodcastProducerKit.framework/Versions" } ] }, { "value": 956, "name": "PreferencePanesSupport.framework", "path": "PrivateFrameworks/PreferencePanesSupport.framework", "children": [ { "value": 948, "name": "Versions", "path": "PrivateFrameworks/PreferencePanesSupport.framework/Versions" } ] }, { "value": 9580, "name": "PrintingPrivate.framework", "path": "PrivateFrameworks/PrintingPrivate.framework", "children": [ { "value": 9572, "name": "Versions", "path": "PrivateFrameworks/PrintingPrivate.framework/Versions" } ] }, { "value": 104432, "name": "ProKit.framework", "path": "PrivateFrameworks/ProKit.framework", "children": [ { "value": 104424, "name": "Versions", "path": "PrivateFrameworks/ProKit.framework/Versions" } ] }, { "value": 9784, "name": "ProofReader.framework", "path": "PrivateFrameworks/ProofReader.framework", "children": [ { "value": 9776, "name": "Versions", "path": "PrivateFrameworks/ProofReader.framework/Versions" } ] }, { "value": 76, "name": "ProtocolBuffer.framework", "path": "PrivateFrameworks/ProtocolBuffer.framework", "children": [ { "value": 68, "name": "Versions", "path": "PrivateFrameworks/ProtocolBuffer.framework/Versions" } ] }, { "value": 7628, "name": "PSNormalizer.framework", "path": "PrivateFrameworks/PSNormalizer.framework", "children": [ { "value": 7616, "name": "Versions", "path": "PrivateFrameworks/PSNormalizer.framework/Versions" } ] }, { "value": 96, "name": "RemotePacketCapture.framework", "path": "PrivateFrameworks/RemotePacketCapture.framework", "children": [ { "value": 88, "name": "Versions", "path": "PrivateFrameworks/RemotePacketCapture.framework/Versions" } ] }, { "value": 388, "name": "RemoteViewServices.framework", "path": "PrivateFrameworks/RemoteViewServices.framework", "children": [ { "value": 304, "name": "Versions", "path": "PrivateFrameworks/RemoteViewServices.framework/Versions" }, { "value": 76, "name": "XPCServices", "path": "PrivateFrameworks/RemoteViewServices.framework/XPCServices" } ] }, { "value": 420, "name": "Restore.framework", "path": "PrivateFrameworks/Restore.framework", "children": [ { "value": 412, "name": "Versions", "path": "PrivateFrameworks/Restore.framework/Versions" } ] }, { "value": 56, "name": "RTCReporting.framework", "path": "PrivateFrameworks/RTCReporting.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/RTCReporting.framework/Versions" } ] }, { "value": 6168, "name": "Safari.framework", "path": "PrivateFrameworks/Safari.framework", "children": [ { "value": 6156, "name": "Versions", "path": "PrivateFrameworks/Safari.framework/Versions" } ] }, { "value": 40, "name": "SafariServices.framework", "path": "PrivateFrameworks/SafariServices.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/SafariServices.framework/Versions" } ] }, { "value": 432, "name": "SAObjects.framework", "path": "PrivateFrameworks/SAObjects.framework", "children": [ { "value": 424, "name": "Versions", "path": "PrivateFrameworks/SAObjects.framework/Versions" } ] }, { "value": 84, "name": "SCEP.framework", "path": "PrivateFrameworks/SCEP.framework", "children": [ { "value": 76, "name": "Versions", "path": "PrivateFrameworks/SCEP.framework/Versions" } ] }, { "value": 24256, "name": "ScreenReader.framework", "path": "PrivateFrameworks/ScreenReader.framework", "children": [ { "value": 24244, "name": "Versions", "path": "PrivateFrameworks/ScreenReader.framework/Versions" } ] }, { "value": 528, "name": "ScreenSharing.framework", "path": "PrivateFrameworks/ScreenSharing.framework", "children": [ { "value": 520, "name": "Versions", "path": "PrivateFrameworks/ScreenSharing.framework/Versions" } ] }, { "value": 36, "name": "SecCodeWrapper.framework", "path": "PrivateFrameworks/SecCodeWrapper.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/SecCodeWrapper.framework/Versions" } ] }, { "value": 36, "name": "SecureNetworking.framework", "path": "PrivateFrameworks/SecureNetworking.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/SecureNetworking.framework/Versions" } ] }, { "value": 60, "name": "SecurityTokend.framework", "path": "PrivateFrameworks/SecurityTokend.framework", "children": [ { "value": 52, "name": "Versions", "path": "PrivateFrameworks/SecurityTokend.framework/Versions" } ] }, { "value": 280, "name": "SemanticDocumentManagement.framework", "path": "PrivateFrameworks/SemanticDocumentManagement.framework", "children": [ { "value": 272, "name": "Versions", "path": "PrivateFrameworks/SemanticDocumentManagement.framework/Versions" } ] }, { "value": 720, "name": "ServerFoundation.framework", "path": "PrivateFrameworks/ServerFoundation.framework", "children": [ { "value": 712, "name": "Versions", "path": "PrivateFrameworks/ServerFoundation.framework/Versions" } ] }, { "value": 320, "name": "ServerInformation.framework", "path": "PrivateFrameworks/ServerInformation.framework", "children": [ { "value": 312, "name": "Versions", "path": "PrivateFrameworks/ServerInformation.framework/Versions" } ] }, { "value": 176, "name": "SetupAssistantSupport.framework", "path": "PrivateFrameworks/SetupAssistantSupport.framework", "children": [ { "value": 168, "name": "Versions", "path": "PrivateFrameworks/SetupAssistantSupport.framework/Versions" } ] }, { "value": 5512, "name": "ShareKit.framework", "path": "PrivateFrameworks/ShareKit.framework", "children": [ { "value": 5496, "name": "Versions", "path": "PrivateFrameworks/ShareKit.framework/Versions" } ] }, { "value": 100, "name": "Sharing.framework", "path": "PrivateFrameworks/Sharing.framework", "children": [ { "value": 92, "name": "Versions", "path": "PrivateFrameworks/Sharing.framework/Versions" } ] }, { "value": 616, "name": "Shortcut.framework", "path": "PrivateFrameworks/Shortcut.framework", "children": [ { "value": 608, "name": "Versions", "path": "PrivateFrameworks/Shortcut.framework/Versions" } ] }, { "value": 20, "name": "SleepServices.framework", "path": "PrivateFrameworks/SleepServices.framework", "children": [ { "value": 12, "name": "Versions", "path": "PrivateFrameworks/SleepServices.framework/Versions" } ] }, { "value": 62320, "name": "Slideshows.framework", "path": "PrivateFrameworks/Slideshows.framework", "children": [ { "value": 62312, "name": "Versions", "path": "PrivateFrameworks/Slideshows.framework/Versions" } ] }, { "value": 144, "name": "SMBClient.framework", "path": "PrivateFrameworks/SMBClient.framework", "children": [ { "value": 136, "name": "Versions", "path": "PrivateFrameworks/SMBClient.framework/Versions" } ] }, { "value": 112, "name": "SocialAppsCore.framework", "path": "PrivateFrameworks/SocialAppsCore.framework", "children": [ { "value": 104, "name": "Versions", "path": "PrivateFrameworks/SocialAppsCore.framework/Versions" } ] }, { "value": 936, "name": "SocialUI.framework", "path": "PrivateFrameworks/SocialUI.framework", "children": [ { "value": 924, "name": "Versions", "path": "PrivateFrameworks/SocialUI.framework/Versions" } ] }, { "value": 444, "name": "SoftwareUpdate.framework", "path": "PrivateFrameworks/SoftwareUpdate.framework", "children": [ { "value": 436, "name": "Versions", "path": "PrivateFrameworks/SoftwareUpdate.framework/Versions" } ] }, { "value": 2112, "name": "SpeechDictionary.framework", "path": "PrivateFrameworks/SpeechDictionary.framework", "children": [ { "value": 2104, "name": "Versions", "path": "PrivateFrameworks/SpeechDictionary.framework/Versions" } ] }, { "value": 8492, "name": "SpeechObjects.framework", "path": "PrivateFrameworks/SpeechObjects.framework", "children": [ { "value": 8484, "name": "Versions", "path": "PrivateFrameworks/SpeechObjects.framework/Versions" } ] }, { "value": 4248, "name": "SpeechRecognitionCore.framework", "path": "PrivateFrameworks/SpeechRecognitionCore.framework", "children": [ { "value": 4236, "name": "Versions", "path": "PrivateFrameworks/SpeechRecognitionCore.framework/Versions" } ] }, { "value": 2212, "name": "SpotlightIndex.framework", "path": "PrivateFrameworks/SpotlightIndex.framework", "children": [ { "value": 2204, "name": "Versions", "path": "PrivateFrameworks/SpotlightIndex.framework/Versions" } ] }, { "value": 48, "name": "SPSupport.framework", "path": "PrivateFrameworks/SPSupport.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/SPSupport.framework/Versions" } ] }, { "value": 184, "name": "StoreJavaScript.framework", "path": "PrivateFrameworks/StoreJavaScript.framework", "children": [ { "value": 176, "name": "Versions", "path": "PrivateFrameworks/StoreJavaScript.framework/Versions" } ] }, { "value": 844, "name": "StoreUI.framework", "path": "PrivateFrameworks/StoreUI.framework", "children": [ { "value": 836, "name": "Versions", "path": "PrivateFrameworks/StoreUI.framework/Versions" } ] }, { "value": 32, "name": "StoreXPCServices.framework", "path": "PrivateFrameworks/StoreXPCServices.framework", "children": [ { "value": 20, "name": "Versions", "path": "PrivateFrameworks/StoreXPCServices.framework/Versions" } ] }, { "value": 72, "name": "StreamingZip.framework", "path": "PrivateFrameworks/StreamingZip.framework", "children": [ { "value": 60, "name": "Versions", "path": "PrivateFrameworks/StreamingZip.framework/Versions" } ] }, { "value": 456, "name": "Suggestions.framework", "path": "PrivateFrameworks/Suggestions.framework", "children": [ { "value": 448, "name": "Versions", "path": "PrivateFrameworks/Suggestions.framework/Versions" } ] }, { "value": 504, "name": "Symbolication.framework", "path": "PrivateFrameworks/Symbolication.framework", "children": [ { "value": 496, "name": "Versions", "path": "PrivateFrameworks/Symbolication.framework/Versions" } ] }, { "value": 320, "name": "Symptoms.framework", "path": "PrivateFrameworks/Symptoms.framework", "children": [ { "value": 312, "name": "Frameworks", "path": "PrivateFrameworks/Symptoms.framework/Frameworks" }, { "value": 4, "name": "Versions", "path": "PrivateFrameworks/Symptoms.framework/Versions" } ] }, { "value": 280, "name": "SyncedDefaults.framework", "path": "PrivateFrameworks/SyncedDefaults.framework", "children": [ { "value": 216, "name": "Support", "path": "PrivateFrameworks/SyncedDefaults.framework/Support" }, { "value": 56, "name": "Versions", "path": "PrivateFrameworks/SyncedDefaults.framework/Versions" } ] }, { "value": 5272, "name": "SyncServicesUI.framework", "path": "PrivateFrameworks/SyncServicesUI.framework", "children": [ { "value": 5264, "name": "Versions", "path": "PrivateFrameworks/SyncServicesUI.framework/Versions" } ] }, { "value": 932, "name": "SystemAdministration.framework", "path": "PrivateFrameworks/SystemAdministration.framework", "children": [ { "value": 864, "name": "Versions", "path": "PrivateFrameworks/SystemAdministration.framework/Versions" }, { "value": 60, "name": "XPCServices", "path": "PrivateFrameworks/SystemAdministration.framework/XPCServices" } ] }, { "value": 5656, "name": "SystemMigration.framework", "path": "PrivateFrameworks/SystemMigration.framework", "children": [ { "value": 508, "name": "Frameworks", "path": "PrivateFrameworks/SystemMigration.framework/Frameworks" }, { "value": 5140, "name": "Versions", "path": "PrivateFrameworks/SystemMigration.framework/Versions" } ] }, { "value": 52, "name": "SystemUIPlugin.framework", "path": "PrivateFrameworks/SystemUIPlugin.framework", "children": [ { "value": 44, "name": "Versions", "path": "PrivateFrameworks/SystemUIPlugin.framework/Versions" } ] }, { "value": 144, "name": "TCC.framework", "path": "PrivateFrameworks/TCC.framework", "children": [ { "value": 136, "name": "Versions", "path": "PrivateFrameworks/TCC.framework/Versions" } ] }, { "value": 48, "name": "TrustEvaluationAgent.framework", "path": "PrivateFrameworks/TrustEvaluationAgent.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/TrustEvaluationAgent.framework/Versions" } ] }, { "value": 720, "name": "Ubiquity.framework", "path": "PrivateFrameworks/Ubiquity.framework", "children": [ { "value": 708, "name": "Versions", "path": "PrivateFrameworks/Ubiquity.framework/Versions" } ] }, { "value": 136, "name": "UIRecording.framework", "path": "PrivateFrameworks/UIRecording.framework", "children": [ { "value": 128, "name": "Versions", "path": "PrivateFrameworks/UIRecording.framework/Versions" } ] }, { "value": 56, "name": "Uninstall.framework", "path": "PrivateFrameworks/Uninstall.framework", "children": [ { "value": 48, "name": "Versions", "path": "PrivateFrameworks/Uninstall.framework/Versions" } ] }, { "value": 2320, "name": "UniversalAccess.framework", "path": "PrivateFrameworks/UniversalAccess.framework", "children": [ { "value": 2308, "name": "Versions", "path": "PrivateFrameworks/UniversalAccess.framework/Versions" } ] }, { "value": 1248, "name": "VCXMPP.framework", "path": "PrivateFrameworks/VCXMPP.framework", "children": [ { "value": 1232, "name": "Versions", "path": "PrivateFrameworks/VCXMPP.framework/Versions" } ] }, { "value": 2016, "name": "VectorKit.framework", "path": "PrivateFrameworks/VectorKit.framework", "children": [ { "value": 2008, "name": "Versions", "path": "PrivateFrameworks/VectorKit.framework/Versions" } ] }, { "value": 1164, "name": "VideoConference.framework", "path": "PrivateFrameworks/VideoConference.framework", "children": [ { "value": 1156, "name": "Versions", "path": "PrivateFrameworks/VideoConference.framework/Versions" } ] }, { "value": 2152, "name": "VideoProcessing.framework", "path": "PrivateFrameworks/VideoProcessing.framework", "children": [ { "value": 2144, "name": "Versions", "path": "PrivateFrameworks/VideoProcessing.framework/Versions" } ] }, { "value": 420, "name": "ViewBridge.framework", "path": "PrivateFrameworks/ViewBridge.framework", "children": [ { "value": 412, "name": "Versions", "path": "PrivateFrameworks/ViewBridge.framework/Versions" } ] }, { "value": 164, "name": "vmutils.framework", "path": "PrivateFrameworks/vmutils.framework", "children": [ { "value": 156, "name": "Versions", "path": "PrivateFrameworks/vmutils.framework/Versions" } ] }, { "value": 284, "name": "WeatherKit.framework", "path": "PrivateFrameworks/WeatherKit.framework", "children": [ { "value": 272, "name": "Versions", "path": "PrivateFrameworks/WeatherKit.framework/Versions" } ] }, { "value": 2228, "name": "WebContentAnalysis.framework", "path": "PrivateFrameworks/WebContentAnalysis.framework", "children": [ { "value": 2220, "name": "Versions", "path": "PrivateFrameworks/WebContentAnalysis.framework/Versions" } ] }, { "value": 24, "name": "WebFilterDNS.framework", "path": "PrivateFrameworks/WebFilterDNS.framework", "children": [ { "value": 16, "name": "Versions", "path": "PrivateFrameworks/WebFilterDNS.framework/Versions" } ] }, { "value": 132, "name": "WebInspector.framework", "path": "PrivateFrameworks/WebInspector.framework", "children": [ { "value": 124, "name": "Versions", "path": "PrivateFrameworks/WebInspector.framework/Versions" } ] }, { "value": 1228, "name": "WebInspectorUI.framework", "path": "PrivateFrameworks/WebInspectorUI.framework", "children": [ { "value": 1220, "name": "Versions", "path": "PrivateFrameworks/WebInspectorUI.framework/Versions" } ] }, { "value": 2672, "name": "WebKit2.framework", "path": "PrivateFrameworks/WebKit2.framework", "children": [ { "value": 16, "name": "NetworkProcess.app", "path": "PrivateFrameworks/WebKit2.framework/NetworkProcess.app" }, { "value": 8, "name": "OfflineStorageProcess.app", "path": "PrivateFrameworks/WebKit2.framework/OfflineStorageProcess.app" }, { "value": 20, "name": "PluginProcess.app", "path": "PrivateFrameworks/WebKit2.framework/PluginProcess.app" }, { "value": 8, "name": "SharedWorkerProcess.app", "path": "PrivateFrameworks/WebKit2.framework/SharedWorkerProcess.app" }, { "value": 2592, "name": "Versions", "path": "PrivateFrameworks/WebKit2.framework/Versions" }, { "value": 16, "name": "WebProcess.app", "path": "PrivateFrameworks/WebKit2.framework/WebProcess.app" } ] }, { "value": 496, "name": "WhitePages.framework", "path": "PrivateFrameworks/WhitePages.framework", "children": [ { "value": 488, "name": "Versions", "path": "PrivateFrameworks/WhitePages.framework/Versions" } ] }, { "value": 36, "name": "WiFiCloudSyncEngine.framework", "path": "PrivateFrameworks/WiFiCloudSyncEngine.framework", "children": [ { "value": 28, "name": "Versions", "path": "PrivateFrameworks/WiFiCloudSyncEngine.framework/Versions" } ] }, { "value": 444, "name": "WirelessDiagnosticsSupport.framework", "path": "PrivateFrameworks/WirelessDiagnosticsSupport.framework", "children": [ { "value": 436, "name": "Versions", "path": "PrivateFrameworks/WirelessDiagnosticsSupport.framework/Versions" } ] }, { "value": 372, "name": "XMPPCore.framework", "path": "PrivateFrameworks/XMPPCore.framework", "children": [ { "value": 364, "name": "Versions", "path": "PrivateFrameworks/XMPPCore.framework/Versions" } ] }, { "value": 48, "name": "XPCObjects.framework", "path": "PrivateFrameworks/XPCObjects.framework", "children": [ { "value": 40, "name": "Versions", "path": "PrivateFrameworks/XPCObjects.framework/Versions" } ] }, { "value": 60, "name": "XPCService.framework", "path": "PrivateFrameworks/XPCService.framework", "children": [ { "value": 52, "name": "Versions", "path": "PrivateFrameworks/XPCService.framework/Versions" } ] }, { "value": 516, "name": "XQuery.framework", "path": "PrivateFrameworks/XQuery.framework", "children": [ { "value": 508, "name": "Versions", "path": "PrivateFrameworks/XQuery.framework/Versions" } ] } ] }, { "value": 2988, "name": "QuickLook", "path": "QuickLook", "children": [ { "value": 8, "name": "Audio.qlgenerator", "path": "QuickLook/Audio.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Audio.qlgenerator/Contents" } ] }, { "value": 12, "name": "Bookmark.qlgenerator", "path": "QuickLook/Bookmark.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Bookmark.qlgenerator/Contents" } ] }, { "value": 12, "name": "Clippings.qlgenerator", "path": "QuickLook/Clippings.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Clippings.qlgenerator/Contents" } ] }, { "value": 232, "name": "Contact.qlgenerator", "path": "QuickLook/Contact.qlgenerator", "children": [ { "value": 232, "name": "Contents", "path": "QuickLook/Contact.qlgenerator/Contents" } ] }, { "value": 8, "name": "EPS.qlgenerator", "path": "QuickLook/EPS.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/EPS.qlgenerator/Contents" } ] }, { "value": 12, "name": "Font.qlgenerator", "path": "QuickLook/Font.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Font.qlgenerator/Contents" } ] }, { "value": 1432, "name": "iCal.qlgenerator", "path": "QuickLook/iCal.qlgenerator", "children": [ { "value": 1432, "name": "Contents", "path": "QuickLook/iCal.qlgenerator/Contents" } ] }, { "value": 8, "name": "iChat.qlgenerator", "path": "QuickLook/iChat.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/iChat.qlgenerator/Contents" } ] }, { "value": 8, "name": "Icon.qlgenerator", "path": "QuickLook/Icon.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Icon.qlgenerator/Contents" } ] }, { "value": 8, "name": "Image.qlgenerator", "path": "QuickLook/Image.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Image.qlgenerator/Contents" } ] }, { "value": 12, "name": "LocPDF.qlgenerator", "path": "QuickLook/LocPDF.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/LocPDF.qlgenerator/Contents" } ] }, { "value": 28, "name": "Mail.qlgenerator", "path": "QuickLook/Mail.qlgenerator", "children": [ { "value": 28, "name": "Contents", "path": "QuickLook/Mail.qlgenerator/Contents" } ] }, { "value": 12, "name": "Movie.qlgenerator", "path": "QuickLook/Movie.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Movie.qlgenerator/Contents" } ] }, { "value": 20, "name": "Notes.qlgenerator", "path": "QuickLook/Notes.qlgenerator", "children": [ { "value": 20, "name": "Contents", "path": "QuickLook/Notes.qlgenerator/Contents" } ] }, { "value": 24, "name": "Office.qlgenerator", "path": "QuickLook/Office.qlgenerator", "children": [ { "value": 24, "name": "Contents", "path": "QuickLook/Office.qlgenerator/Contents" } ] }, { "value": 8, "name": "Package.qlgenerator", "path": "QuickLook/Package.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Package.qlgenerator/Contents" } ] }, { "value": 20, "name": "PDF.qlgenerator", "path": "QuickLook/PDF.qlgenerator", "children": [ { "value": 20, "name": "Contents", "path": "QuickLook/PDF.qlgenerator/Contents" } ] }, { "value": 8, "name": "SceneKit.qlgenerator", "path": "QuickLook/SceneKit.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/SceneKit.qlgenerator/Contents" } ] }, { "value": 36, "name": "Security.qlgenerator", "path": "QuickLook/Security.qlgenerator", "children": [ { "value": 36, "name": "Contents", "path": "QuickLook/Security.qlgenerator/Contents" } ] }, { "value": 1060, "name": "StandardBundles.qlgenerator", "path": "QuickLook/StandardBundles.qlgenerator", "children": [ { "value": 1060, "name": "Contents", "path": "QuickLook/StandardBundles.qlgenerator/Contents" } ] }, { "value": 12, "name": "Text.qlgenerator", "path": "QuickLook/Text.qlgenerator", "children": [ { "value": 12, "name": "Contents", "path": "QuickLook/Text.qlgenerator/Contents" } ] }, { "value": 8, "name": "Web.qlgenerator", "path": "QuickLook/Web.qlgenerator", "children": [ { "value": 8, "name": "Contents", "path": "QuickLook/Web.qlgenerator/Contents" } ] } ] }, { "value": 17888, "name": "QuickTime", "path": "QuickTime", "children": [ { "value": 24, "name": "AppleGVAHW.component", "path": "QuickTime/AppleGVAHW.component", "children": [ { "value": 24, "name": "Contents", "path": "QuickTime/AppleGVAHW.component/Contents" } ] }, { "value": 60, "name": "ApplePixletVideo.component", "path": "QuickTime/ApplePixletVideo.component", "children": [ { "value": 60, "name": "Contents", "path": "QuickTime/ApplePixletVideo.component/Contents" } ] }, { "value": 216, "name": "AppleProResDecoder.component", "path": "QuickTime/AppleProResDecoder.component", "children": [ { "value": 216, "name": "Contents", "path": "QuickTime/AppleProResDecoder.component/Contents" } ] }, { "value": 756, "name": "AppleVAH264HW.component", "path": "QuickTime/AppleVAH264HW.component", "children": [ { "value": 756, "name": "Contents", "path": "QuickTime/AppleVAH264HW.component/Contents" } ] }, { "value": 24, "name": "QuartzComposer.component", "path": "QuickTime/QuartzComposer.component", "children": [ { "value": 24, "name": "Contents", "path": "QuickTime/QuartzComposer.component/Contents" } ] }, { "value": 520, "name": "QuickTime3GPP.component", "path": "QuickTime/QuickTime3GPP.component", "children": [ { "value": 520, "name": "Contents", "path": "QuickTime/QuickTime3GPP.component/Contents" } ] }, { "value": 11548, "name": "QuickTimeComponents.component", "path": "QuickTime/QuickTimeComponents.component", "children": [ { "value": 11548, "name": "Contents", "path": "QuickTime/QuickTimeComponents.component/Contents" } ] }, { "value": 76, "name": "QuickTimeFireWireDV.component", "path": "QuickTime/QuickTimeFireWireDV.component", "children": [ { "value": 76, "name": "Contents", "path": "QuickTime/QuickTimeFireWireDV.component/Contents" } ] }, { "value": 1592, "name": "QuickTimeH264.component", "path": "QuickTime/QuickTimeH264.component", "children": [ { "value": 1592, "name": "Contents", "path": "QuickTime/QuickTimeH264.component/Contents" } ] }, { "value": 64, "name": "QuickTimeIIDCDigitizer.component", "path": "QuickTime/QuickTimeIIDCDigitizer.component", "children": [ { "value": 64, "name": "Contents", "path": "QuickTime/QuickTimeIIDCDigitizer.component/Contents" } ] }, { "value": 832, "name": "QuickTimeImporters.component", "path": "QuickTime/QuickTimeImporters.component", "children": [ { "value": 832, "name": "Contents", "path": "QuickTime/QuickTimeImporters.component/Contents" } ] }, { "value": 200, "name": "QuickTimeMPEG.component", "path": "QuickTime/QuickTimeMPEG.component", "children": [ { "value": 200, "name": "Contents", "path": "QuickTime/QuickTimeMPEG.component/Contents" } ] }, { "value": 564, "name": "QuickTimeMPEG4.component", "path": "QuickTime/QuickTimeMPEG4.component", "children": [ { "value": 564, "name": "Contents", "path": "QuickTime/QuickTimeMPEG4.component/Contents" } ] }, { "value": 968, "name": "QuickTimeStreaming.component", "path": "QuickTime/QuickTimeStreaming.component", "children": [ { "value": 968, "name": "Contents", "path": "QuickTime/QuickTimeStreaming.component/Contents" } ] }, { "value": 120, "name": "QuickTimeUSBVDCDigitizer.component", "path": "QuickTime/QuickTimeUSBVDCDigitizer.component", "children": [ { "value": 120, "name": "Contents", "path": "QuickTime/QuickTimeUSBVDCDigitizer.component/Contents" } ] }, { "value": 324, "name": "QuickTimeVR.component", "path": "QuickTime/QuickTimeVR.component", "children": [ { "value": 324, "name": "Contents", "path": "QuickTime/QuickTimeVR.component/Contents" } ] } ] }, { "value": 28, "name": "QuickTimeJava", "path": "QuickTimeJava", "children": [ { "value": 28, "name": "QuickTimeJava.bundle", "path": "QuickTimeJava/QuickTimeJava.bundle", "children": [ { "value": 28, "name": "Contents", "path": "QuickTimeJava/QuickTimeJava.bundle/Contents" } ] } ] }, { "value": 20, "name": "Recents", "path": "Recents", "children": [ { "value": 20, "name": "Plugins", "path": "Recents/Plugins", "children": [ { "value": 36, "name": "AddressBook.assistantBundle", "path": "Assistant/Plugins/AddressBook.assistantBundle" }, { "value": 8, "name": "GenericAddressHandler.addresshandler", "path": "Recents/Plugins/GenericAddressHandler.addresshandler" }, { "value": 12, "name": "MapsRecents.addresshandler", "path": "Recents/Plugins/MapsRecents.addresshandler" } ] } ] }, { "value": 12, "name": "Sandbox", "path": "Sandbox", "children": [ { "value": 12, "name": "Profiles", "path": "Sandbox/Profiles" } ] }, { "value": 1052, "name": "ScreenSavers", "path": "ScreenSavers", "children": [ { "value": 8, "name": "FloatingMessage.saver", "path": "ScreenSavers/FloatingMessage.saver", "children": [ { "value": 8, "name": "Contents", "path": "ScreenSavers/FloatingMessage.saver/Contents" } ] }, { "value": 360, "name": "Flurry.saver", "path": "ScreenSavers/Flurry.saver", "children": [ { "value": 360, "name": "Contents", "path": "ScreenSavers/Flurry.saver/Contents" } ] }, { "value": 568, "name": "iTunes Artwork.saver", "path": "ScreenSavers/iTunes Artwork.saver", "children": [ { "value": 568, "name": "Contents", "path": "ScreenSavers/iTunes Artwork.saver/Contents" } ] }, { "value": 52, "name": "Random.saver", "path": "ScreenSavers/Random.saver", "children": [ { "value": 52, "name": "Contents", "path": "ScreenSavers/Random.saver/Contents" } ] } ] }, { "value": 1848, "name": "ScreenReader", "path": "ScreenReader", "children": [ { "value": 556, "name": "BrailleDrivers", "path": "ScreenReader/BrailleDrivers", "children": [ { "value": 28, "name": "Alva6 Series.brailledriver", "path": "ScreenReader/BrailleDrivers/Alva6 Series.brailledriver" }, { "value": 16, "name": "Alva.brailledriver", "path": "ScreenReader/BrailleDrivers/Alva.brailledriver" }, { "value": 28, "name": "BrailleConnect.brailledriver", "path": "ScreenReader/BrailleDrivers/BrailleConnect.brailledriver" }, { "value": 24, "name": "BrailleNoteApex.brailledriver", "path": "ScreenReader/BrailleDrivers/BrailleNoteApex.brailledriver" }, { "value": 16, "name": "BrailleNote.brailledriver", "path": "ScreenReader/BrailleDrivers/BrailleNote.brailledriver" }, { "value": 24, "name": "BrailleSense.brailledriver", "path": "ScreenReader/BrailleDrivers/BrailleSense.brailledriver" }, { "value": 28, "name": "Brailliant2.brailledriver", "path": "ScreenReader/BrailleDrivers/Brailliant2.brailledriver" }, { "value": 28, "name": "Brailliant.brailledriver", "path": "ScreenReader/BrailleDrivers/Brailliant.brailledriver" }, { "value": 16, "name": "Deininger.brailledriver", "path": "ScreenReader/BrailleDrivers/Deininger.brailledriver" }, { "value": 20, "name": "EasyLink.brailledriver", "path": "ScreenReader/BrailleDrivers/EasyLink.brailledriver" }, { "value": 28, "name": "Eurobraille.brailledriver", "path": "ScreenReader/BrailleDrivers/Eurobraille.brailledriver" }, { "value": 28, "name": "FreedomScientific.brailledriver", "path": "ScreenReader/BrailleDrivers/FreedomScientific.brailledriver" }, { "value": 32, "name": "HandyTech.brailledriver", "path": "ScreenReader/BrailleDrivers/HandyTech.brailledriver" }, { "value": 20, "name": "HIMSDriver.brailledriver", "path": "ScreenReader/BrailleDrivers/HIMSDriver.brailledriver" }, { "value": 28, "name": "KGSDriver.brailledriver", "path": "ScreenReader/BrailleDrivers/KGSDriver.brailledriver" }, { "value": 28, "name": "MDV.brailledriver", "path": "ScreenReader/BrailleDrivers/MDV.brailledriver" }, { "value": 24, "name": "NinepointSystems.brailledriver", "path": "ScreenReader/BrailleDrivers/NinepointSystems.brailledriver" }, { "value": 24, "name": "Papenmeier.brailledriver", "path": "ScreenReader/BrailleDrivers/Papenmeier.brailledriver" }, { "value": 28, "name": "Refreshabraille.brailledriver", "path": "ScreenReader/BrailleDrivers/Refreshabraille.brailledriver" }, { "value": 32, "name": "Seika.brailledriver", "path": "ScreenReader/BrailleDrivers/Seika.brailledriver" }, { "value": 16, "name": "SyncBraille.brailledriver", "path": "ScreenReader/BrailleDrivers/SyncBraille.brailledriver" }, { "value": 24, "name": "VarioPro.brailledriver", "path": "ScreenReader/BrailleDrivers/VarioPro.brailledriver" }, { "value": 16, "name": "Voyager.brailledriver", "path": "ScreenReader/BrailleDrivers/Voyager.brailledriver" } ] }, { "value": 1292, "name": "BrailleTables", "path": "ScreenReader/BrailleTables", "children": [ { "value": 1292, "name": "Duxbury.brailletable", "path": "ScreenReader/BrailleTables/Duxbury.brailletable" } ] } ] }, { "value": 1408, "name": "ScriptingAdditions", "path": "ScriptingAdditions", "children": [ { "value": 8, "name": "DigitalHub Scripting.osax", "path": "ScriptingAdditions/DigitalHub Scripting.osax", "children": [ { "value": 8, "name": "Contents", "path": "ScriptingAdditions/DigitalHub Scripting.osax/Contents" } ] }, { "value": 1400, "name": "StandardAdditions.osax", "path": "ScriptingAdditions/StandardAdditions.osax", "children": [ { "value": 1400, "name": "Contents", "path": "ScriptingAdditions/StandardAdditions.osax/Contents" } ] } ] }, { "value": 0, "name": "ScriptingDefinitions", "path": "ScriptingDefinitions" }, { "value": 0, "name": "SDKSettingsPlist", "path": "SDKSettingsPlist" }, { "value": 312, "name": "Security", "path": "Security", "children": [ { "value": 100, "name": "dotmac_tp.bundle", "path": "Security/dotmac_tp.bundle", "children": [ { "value": 100, "name": "Contents", "path": "Security/dotmac_tp.bundle/Contents" } ] }, { "value": 72, "name": "ldapdl.bundle", "path": "Security/ldapdl.bundle", "children": [ { "value": 72, "name": "Contents", "path": "Security/ldapdl.bundle/Contents" } ] }, { "value": 132, "name": "tokend", "path": "Security/tokend", "children": [ { "value": 132, "name": "uiplugins", "path": "Security/tokend/uiplugins" } ] } ] }, { "value": 18208, "name": "Services", "path": "Services", "children": [ { "value": 0, "name": "Addto iTunes as a Spoken Track.workflow", "path": "Services/Addto iTunes as a Spoken Track.workflow", "children": [ { "value": 0, "name": "Contents", "path": "Services/Addto iTunes as a Spoken Track.workflow/Contents" } ] }, { "value": 14308, "name": "AppleSpell.service", "path": "Services/AppleSpell.service", "children": [ { "value": 14308, "name": "Contents", "path": "Services/AppleSpell.service/Contents" } ] }, { "value": 556, "name": "ChineseTextConverterService.app", "path": "Services/ChineseTextConverterService.app", "children": [ { "value": 556, "name": "Contents", "path": "Services/ChineseTextConverterService.app/Contents" } ] }, { "value": 48, "name": "EncodeSelected Audio Files.workflow", "path": "Services/EncodeSelected Audio Files.workflow", "children": [ { "value": 48, "name": "Contents", "path": "Services/EncodeSelected Audio Files.workflow/Contents" } ] }, { "value": 40, "name": "EncodeSelected Video Files.workflow", "path": "Services/EncodeSelected Video Files.workflow", "children": [ { "value": 40, "name": "Contents", "path": "Services/EncodeSelected Video Files.workflow/Contents" } ] }, { "value": 1344, "name": "ImageCaptureService.app", "path": "Services/ImageCaptureService.app", "children": [ { "value": 1344, "name": "Contents", "path": "Services/ImageCaptureService.app/Contents" } ] }, { "value": 16, "name": "OpenSpell.service", "path": "Services/OpenSpell.service", "children": [ { "value": 16, "name": "Contents", "path": "Services/OpenSpell.service/Contents" } ] }, { "value": 0, "name": "SetDesktop Picture.workflow", "path": "Services/SetDesktop Picture.workflow", "children": [ { "value": 0, "name": "Contents", "path": "Services/SetDesktop Picture.workflow/Contents" } ] }, { "value": 0, "name": "ShowAddress in Google Maps.workflow", "path": "Services/ShowAddress in Google Maps.workflow", "children": [ { "value": 0, "name": "Contents", "path": "Services/ShowAddress in Google Maps.workflow/Contents" } ] }, { "value": 60, "name": "ShowMap.workflow", "path": "Services/ShowMap.workflow", "children": [ { "value": 60, "name": "Contents", "path": "Services/ShowMap.workflow/Contents" } ] }, { "value": 12, "name": "SpeechService.service", "path": "Services/SpeechService.service", "children": [ { "value": 12, "name": "Contents", "path": "Services/SpeechService.service/Contents" } ] }, { "value": 8, "name": "Spotlight.service", "path": "Services/Spotlight.service", "children": [ { "value": 8, "name": "Contents", "path": "Services/Spotlight.service/Contents" } ] }, { "value": 1816, "name": "SummaryService.app", "path": "Services/SummaryService.app", "children": [ { "value": 1816, "name": "Contents", "path": "Services/SummaryService.app/Contents" } ] } ] }, { "value": 700, "name": "Sounds", "path": "Sounds" }, { "value": 1512668, "name": "Speech", "path": "Speech", "children": [ { "value": 2804, "name": "Recognizers", "path": "Speech/Recognizers", "children": [ { "value": 2804, "name": "AppleSpeakableItems.SpeechRecognizer", "path": "Speech/Recognizers/AppleSpeakableItems.SpeechRecognizer" } ] }, { "value": 6684, "name": "Synthesizers", "path": "Speech/Synthesizers", "children": [ { "value": 800, "name": "MacinTalk.SpeechSynthesizer", "path": "Speech/Synthesizers/MacinTalk.SpeechSynthesizer" }, { "value": 3468, "name": "MultiLingual.SpeechSynthesizer", "path": "Speech/Synthesizers/MultiLingual.SpeechSynthesizer" }, { "value": 2416, "name": "Polyglot.SpeechSynthesizer", "path": "Speech/Synthesizers/Polyglot.SpeechSynthesizer" } ] }, { "value": 1503180, "name": "Voices", "path": "Speech/Voices", "children": [ { "value": 1540, "name": "Agnes.SpeechVoice", "path": "Speech/Voices/Agnes.SpeechVoice" }, { "value": 20, "name": "Albert.SpeechVoice", "path": "Speech/Voices/Albert.SpeechVoice" }, { "value": 412132, "name": "Alex.SpeechVoice", "path": "Speech/Voices/Alex.SpeechVoice" }, { "value": 624, "name": "AliceCompact.SpeechVoice", "path": "Speech/Voices/AliceCompact.SpeechVoice" }, { "value": 908, "name": "AlvaCompact.SpeechVoice", "path": "Speech/Voices/AlvaCompact.SpeechVoice" }, { "value": 668, "name": "AmelieCompact.SpeechVoice", "path": "Speech/Voices/AmelieCompact.SpeechVoice" }, { "value": 1016, "name": "AnnaCompact.SpeechVoice", "path": "Speech/Voices/AnnaCompact.SpeechVoice" }, { "value": 12, "name": "BadNews.SpeechVoice", "path": "Speech/Voices/BadNews.SpeechVoice" }, { "value": 20, "name": "Bahh.SpeechVoice", "path": "Speech/Voices/Bahh.SpeechVoice" }, { "value": 48, "name": "Bells.SpeechVoice", "path": "Speech/Voices/Bells.SpeechVoice" }, { "value": 20, "name": "Boing.SpeechVoice", "path": "Speech/Voices/Boing.SpeechVoice" }, { "value": 1684, "name": "Bruce.SpeechVoice", "path": "Speech/Voices/Bruce.SpeechVoice" }, { "value": 12, "name": "Bubbles.SpeechVoice", "path": "Speech/Voices/Bubbles.SpeechVoice" }, { "value": 24, "name": "Cellos.SpeechVoice", "path": "Speech/Voices/Cellos.SpeechVoice" }, { "value": 720, "name": "DamayantiCompact.SpeechVoice", "path": "Speech/Voices/DamayantiCompact.SpeechVoice" }, { "value": 1000, "name": "DanielCompact.SpeechVoice", "path": "Speech/Voices/DanielCompact.SpeechVoice" }, { "value": 24, "name": "Deranged.SpeechVoice", "path": "Speech/Voices/Deranged.SpeechVoice" }, { "value": 740, "name": "EllenCompact.SpeechVoice", "path": "Speech/Voices/EllenCompact.SpeechVoice" }, { "value": 12, "name": "Fred.SpeechVoice", "path": "Speech/Voices/Fred.SpeechVoice" }, { "value": 12, "name": "GoodNews.SpeechVoice", "path": "Speech/Voices/GoodNews.SpeechVoice" }, { "value": 28, "name": "Hysterical.SpeechVoice", "path": "Speech/Voices/Hysterical.SpeechVoice" }, { "value": 492, "name": "IoanaCompact.SpeechVoice", "path": "Speech/Voices/IoanaCompact.SpeechVoice" }, { "value": 596, "name": "JoanaCompact.SpeechVoice", "path": "Speech/Voices/JoanaCompact.SpeechVoice" }, { "value": 12, "name": "Junior.SpeechVoice", "path": "Speech/Voices/Junior.SpeechVoice" }, { "value": 1336, "name": "KanyaCompact.SpeechVoice", "path": "Speech/Voices/KanyaCompact.SpeechVoice" }, { "value": 1004, "name": "KarenCompact.SpeechVoice", "path": "Speech/Voices/KarenCompact.SpeechVoice" }, { "value": 12, "name": "Kathy.SpeechVoice", "path": "Speech/Voices/Kathy.SpeechVoice" }, { "value": 408836, "name": "Kyoko.SpeechVoice", "path": "Speech/Voices/Kyoko.SpeechVoice" }, { "value": 2620, "name": "KyokoCompact.SpeechVoice", "path": "Speech/Voices/KyokoCompact.SpeechVoice" }, { "value": 496, "name": "LauraCompact.SpeechVoice", "path": "Speech/Voices/LauraCompact.SpeechVoice" }, { "value": 2104, "name": "LekhaCompact.SpeechVoice", "path": "Speech/Voices/LekhaCompact.SpeechVoice" }, { "value": 548, "name": "LucianaCompact.SpeechVoice", "path": "Speech/Voices/LucianaCompact.SpeechVoice" }, { "value": 504, "name": "MariskaCompact.SpeechVoice", "path": "Speech/Voices/MariskaCompact.SpeechVoice" }, { "value": 2092, "name": "Mei-JiaCompact.SpeechVoice", "path": "Speech/Voices/Mei-JiaCompact.SpeechVoice" }, { "value": 1020, "name": "MelinaCompact.SpeechVoice", "path": "Speech/Voices/MelinaCompact.SpeechVoice" }, { "value": 2160, "name": "MilenaCompact.SpeechVoice", "path": "Speech/Voices/MilenaCompact.SpeechVoice" }, { "value": 728, "name": "MoiraCompact.SpeechVoice", "path": "Speech/Voices/MoiraCompact.SpeechVoice" }, { "value": 612, "name": "MonicaCompact.SpeechVoice", "path": "Speech/Voices/MonicaCompact.SpeechVoice" }, { "value": 824, "name": "NoraCompact.SpeechVoice", "path": "Speech/Voices/NoraCompact.SpeechVoice" }, { "value": 24, "name": "Organ.SpeechVoice", "path": "Speech/Voices/Organ.SpeechVoice" }, { "value": 664, "name": "PaulinaCompact.SpeechVoice", "path": "Speech/Voices/PaulinaCompact.SpeechVoice" }, { "value": 12, "name": "Princess.SpeechVoice", "path": "Speech/Voices/Princess.SpeechVoice" }, { "value": 12, "name": "Ralph.SpeechVoice", "path": "Speech/Voices/Ralph.SpeechVoice" }, { "value": 908, "name": "SamanthaCompact.SpeechVoice", "path": "Speech/Voices/SamanthaCompact.SpeechVoice" }, { "value": 828, "name": "SaraCompact.SpeechVoice", "path": "Speech/Voices/SaraCompact.SpeechVoice" }, { "value": 664, "name": "SatuCompact.SpeechVoice", "path": "Speech/Voices/SatuCompact.SpeechVoice" }, { "value": 2336, "name": "Sin-jiCompact.SpeechVoice", "path": "Speech/Voices/Sin-jiCompact.SpeechVoice" }, { "value": 2856, "name": "TarikCompact.SpeechVoice", "path": "Speech/Voices/TarikCompact.SpeechVoice" }, { "value": 948, "name": "TessaCompact.SpeechVoice", "path": "Speech/Voices/TessaCompact.SpeechVoice" }, { "value": 660, "name": "ThomasCompact.SpeechVoice", "path": "Speech/Voices/ThomasCompact.SpeechVoice" }, { "value": 610156, "name": "Ting-Ting.SpeechVoice", "path": "Speech/Voices/Ting-Ting.SpeechVoice" }, { "value": 1708, "name": "Ting-TingCompact.SpeechVoice", "path": "Speech/Voices/Ting-TingCompact.SpeechVoice" }, { "value": 12, "name": "Trinoids.SpeechVoice", "path": "Speech/Voices/Trinoids.SpeechVoice" }, { "value": 28632, "name": "Vicki.SpeechVoice", "path": "Speech/Voices/Vicki.SpeechVoice" }, { "value": 1664, "name": "Victoria.SpeechVoice", "path": "Speech/Voices/Victoria.SpeechVoice" }, { "value": 12, "name": "Whisper.SpeechVoice", "path": "Speech/Voices/Whisper.SpeechVoice" }, { "value": 992, "name": "XanderCompact.SpeechVoice", "path": "Speech/Voices/XanderCompact.SpeechVoice" }, { "value": 756, "name": "YeldaCompact.SpeechVoice", "path": "Speech/Voices/YeldaCompact.SpeechVoice" }, { "value": 728, "name": "YunaCompact.SpeechVoice", "path": "Speech/Voices/YunaCompact.SpeechVoice" }, { "value": 12, "name": "Zarvox.SpeechVoice", "path": "Speech/Voices/Zarvox.SpeechVoice" }, { "value": 564, "name": "ZosiaCompact.SpeechVoice", "path": "Speech/Voices/ZosiaCompact.SpeechVoice" }, { "value": 772, "name": "ZuzanaCompact.SpeechVoice", "path": "Speech/Voices/ZuzanaCompact.SpeechVoice" } ] } ] }, { "value": 1060, "name": "Spelling", "path": "Spelling" }, { "value": 412, "name": "Spotlight", "path": "Spotlight", "children": [ { "value": 20, "name": "Application.mdimporter", "path": "Spotlight/Application.mdimporter", "children": [ { "value": 20, "name": "Contents", "path": "Spotlight/Application.mdimporter/Contents" } ] }, { "value": 12, "name": "Archives.mdimporter", "path": "Spotlight/Archives.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/Archives.mdimporter/Contents" } ] }, { "value": 20, "name": "Audio.mdimporter", "path": "Spotlight/Audio.mdimporter", "children": [ { "value": 20, "name": "Contents", "path": "Spotlight/Audio.mdimporter/Contents" } ] }, { "value": 12, "name": "Automator.mdimporter", "path": "Spotlight/Automator.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/Automator.mdimporter/Contents" } ] }, { "value": 12, "name": "Bookmarks.mdimporter", "path": "Spotlight/Bookmarks.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/Bookmarks.mdimporter/Contents" } ] }, { "value": 16, "name": "Chat.mdimporter", "path": "Spotlight/Chat.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/Chat.mdimporter/Contents" } ] }, { "value": 28, "name": "CoreMedia.mdimporter", "path": "Spotlight/CoreMedia.mdimporter", "children": [ { "value": 28, "name": "Contents", "path": "Spotlight/CoreMedia.mdimporter/Contents" } ] }, { "value": 32, "name": "Font.mdimporter", "path": "Spotlight/Font.mdimporter", "children": [ { "value": 32, "name": "Contents", "path": "Spotlight/Font.mdimporter/Contents" } ] }, { "value": 16, "name": "iCal.mdimporter", "path": "Spotlight/iCal.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/iCal.mdimporter/Contents" } ] }, { "value": 28, "name": "Image.mdimporter", "path": "Spotlight/Image.mdimporter", "children": [ { "value": 28, "name": "Contents", "path": "Spotlight/Image.mdimporter/Contents" } ] }, { "value": 72, "name": "iPhoto.mdimporter", "path": "Spotlight/iPhoto.mdimporter", "children": [ { "value": 72, "name": "Contents", "path": "Spotlight/iPhoto.mdimporter/Contents" } ] }, { "value": 16, "name": "iPhoto8.mdimporter", "path": "Spotlight/iPhoto8.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/iPhoto8.mdimporter/Contents" } ] }, { "value": 12, "name": "Mail.mdimporter", "path": "Spotlight/Mail.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/Mail.mdimporter/Contents" } ] }, { "value": 12, "name": "MIDI.mdimporter", "path": "Spotlight/MIDI.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/MIDI.mdimporter/Contents" } ] }, { "value": 8, "name": "Notes.mdimporter", "path": "Spotlight/Notes.mdimporter", "children": [ { "value": 8, "name": "Contents", "path": "Spotlight/Notes.mdimporter/Contents" } ] }, { "value": 16, "name": "PDF.mdimporter", "path": "Spotlight/PDF.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/PDF.mdimporter/Contents" } ] }, { "value": 12, "name": "PS.mdimporter", "path": "Spotlight/PS.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/PS.mdimporter/Contents" } ] }, { "value": 12, "name": "QuartzComposer.mdimporter", "path": "Spotlight/QuartzComposer.mdimporter", "children": [ { "value": 12, "name": "Contents", "path": "Spotlight/QuartzComposer.mdimporter/Contents" } ] }, { "value": 20, "name": "RichText.mdimporter", "path": "Spotlight/RichText.mdimporter", "children": [ { "value": 20, "name": "Contents", "path": "Spotlight/RichText.mdimporter/Contents" } ] }, { "value": 16, "name": "SystemPrefs.mdimporter", "path": "Spotlight/SystemPrefs.mdimporter", "children": [ { "value": 16, "name": "Contents", "path": "Spotlight/SystemPrefs.mdimporter/Contents" } ] }, { "value": 20, "name": "vCard.mdimporter", "path": "Spotlight/vCard.mdimporter", "children": [ { "value": 20, "name": "Contents", "path": "Spotlight/vCard.mdimporter/Contents" } ] } ] }, { "value": 0, "name": "StartupItems", "path": "StartupItems" }, { "value": 168, "name": "SyncServices", "path": "SyncServices", "children": [ { "value": 0, "name": "AutoRegistration", "path": "SyncServices/AutoRegistration", "children": [ { "value": 0, "name": "Clients", "path": "SyncServices/AutoRegistration/Clients" }, { "value": 0, "name": "Schemas", "path": "SyncServices/AutoRegistration/Schemas" } ] }, { "value": 168, "name": "Schemas", "path": "SyncServices/Schemas", "children": [ { "value": 24, "name": "Bookmarks.syncschema", "path": "SyncServices/Schemas/Bookmarks.syncschema" }, { "value": 68, "name": "Calendars.syncschema", "path": "SyncServices/Schemas/Calendars.syncschema" }, { "value": 48, "name": "Contacts.syncschema", "path": "SyncServices/Schemas/Contacts.syncschema" }, { "value": 16, "name": "Notes.syncschema", "path": "SyncServices/Schemas/Notes.syncschema" }, { "value": 12, "name": "Palm.syncschema", "path": "SyncServices/Schemas/Palm.syncschema" } ] } ] }, { "value": 3156, "name": "SystemConfiguration", "path": "SystemConfiguration", "children": [ { "value": 8, "name": "ApplicationFirewallStartup.bundle", "path": "SystemConfiguration/ApplicationFirewallStartup.bundle", "children": [ { "value": 8, "name": "Contents", "path": "SystemConfiguration/ApplicationFirewallStartup.bundle/Contents" } ] }, { "value": 116, "name": "EAPOLController.bundle", "path": "SystemConfiguration/EAPOLController.bundle", "children": [ { "value": 116, "name": "Contents", "path": "SystemConfiguration/EAPOLController.bundle/Contents" } ] }, { "value": 0, "name": "InterfaceNamer.bundle", "path": "SystemConfiguration/InterfaceNamer.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/InterfaceNamer.bundle/Contents" } ] }, { "value": 132, "name": "IPConfiguration.bundle", "path": "SystemConfiguration/IPConfiguration.bundle", "children": [ { "value": 132, "name": "Contents", "path": "SystemConfiguration/IPConfiguration.bundle/Contents" } ] }, { "value": 0, "name": "IPMonitor.bundle", "path": "SystemConfiguration/IPMonitor.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/IPMonitor.bundle/Contents" } ] }, { "value": 0, "name": "KernelEventMonitor.bundle", "path": "SystemConfiguration/KernelEventMonitor.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/KernelEventMonitor.bundle/Contents" } ] }, { "value": 0, "name": "LinkConfiguration.bundle", "path": "SystemConfiguration/LinkConfiguration.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/LinkConfiguration.bundle/Contents" } ] }, { "value": 20, "name": "Logger.bundle", "path": "SystemConfiguration/Logger.bundle", "children": [ { "value": 20, "name": "Contents", "path": "SystemConfiguration/Logger.bundle/Contents" } ] }, { "value": 2804, "name": "PPPController.bundle", "path": "SystemConfiguration/PPPController.bundle", "children": [ { "value": 2804, "name": "Contents", "path": "SystemConfiguration/PPPController.bundle/Contents" } ] }, { "value": 0, "name": "PreferencesMonitor.bundle", "path": "SystemConfiguration/PreferencesMonitor.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/PreferencesMonitor.bundle/Contents" } ] }, { "value": 76, "name": "PrinterNotifications.bundle", "path": "SystemConfiguration/PrinterNotifications.bundle", "children": [ { "value": 76, "name": "Contents", "path": "SystemConfiguration/PrinterNotifications.bundle/Contents" } ] }, { "value": 0, "name": "SCNetworkReachability.bundle", "path": "SystemConfiguration/SCNetworkReachability.bundle", "children": [ { "value": 0, "name": "Contents", "path": "SystemConfiguration/SCNetworkReachability.bundle/Contents" } ] } ] }, { "value": 1520, "name": "SystemProfiler", "path": "SystemProfiler", "children": [ { "value": 84, "name": "SPAirPortReporter.spreporter", "path": "SystemProfiler/SPAirPortReporter.spreporter", "children": [ { "value": 84, "name": "Contents", "path": "SystemProfiler/SPAirPortReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPApplicationsReporter.spreporter", "path": "SystemProfiler/SPApplicationsReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPApplicationsReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPAudioReporter.spreporter", "path": "SystemProfiler/SPAudioReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPAudioReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPBluetoothReporter.spreporter", "path": "SystemProfiler/SPBluetoothReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPBluetoothReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPCameraReporter.spreporter", "path": "SystemProfiler/SPCameraReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPCameraReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPCardReaderReporter.spreporter", "path": "SystemProfiler/SPCardReaderReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPCardReaderReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPComponentReporter.spreporter", "path": "SystemProfiler/SPComponentReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPComponentReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPConfigurationProfileReporter.spreporter", "path": "SystemProfiler/SPConfigurationProfileReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPConfigurationProfileReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPDeveloperToolsReporter.spreporter", "path": "SystemProfiler/SPDeveloperToolsReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPDeveloperToolsReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPDiagnosticsReporter.spreporter", "path": "SystemProfiler/SPDiagnosticsReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPDiagnosticsReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPDisabledApplicationsReporter.spreporter", "path": "SystemProfiler/SPDisabledApplicationsReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPDisabledApplicationsReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPDiscBurningReporter.spreporter", "path": "SystemProfiler/SPDiscBurningReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPDiscBurningReporter.spreporter/Contents" } ] }, { "value": 284, "name": "SPDisplaysReporter.spreporter", "path": "SystemProfiler/SPDisplaysReporter.spreporter", "children": [ { "value": 284, "name": "Contents", "path": "SystemProfiler/SPDisplaysReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPEthernetReporter.spreporter", "path": "SystemProfiler/SPEthernetReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPEthernetReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPExtensionsReporter.spreporter", "path": "SystemProfiler/SPExtensionsReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPExtensionsReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPFibreChannelReporter.spreporter", "path": "SystemProfiler/SPFibreChannelReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPFibreChannelReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPFirewallReporter.spreporter", "path": "SystemProfiler/SPFirewallReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPFirewallReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPFireWireReporter.spreporter", "path": "SystemProfiler/SPFireWireReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPFireWireReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPFontReporter.spreporter", "path": "SystemProfiler/SPFontReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPFontReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPFrameworksReporter.spreporter", "path": "SystemProfiler/SPFrameworksReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPFrameworksReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPHardwareRAIDReporter.spreporter", "path": "SystemProfiler/SPHardwareRAIDReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPHardwareRAIDReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPInstallHistoryReporter.spreporter", "path": "SystemProfiler/SPInstallHistoryReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPInstallHistoryReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPLogsReporter.spreporter", "path": "SystemProfiler/SPLogsReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPLogsReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPManagedClientReporter.spreporter", "path": "SystemProfiler/SPManagedClientReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPManagedClientReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPMemoryReporter.spreporter", "path": "SystemProfiler/SPMemoryReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPMemoryReporter.spreporter/Contents" } ] }, { "value": 264, "name": "SPNetworkLocationReporter.spreporter", "path": "SystemProfiler/SPNetworkLocationReporter.spreporter", "children": [ { "value": 264, "name": "Contents", "path": "SystemProfiler/SPNetworkLocationReporter.spreporter/Contents" } ] }, { "value": 268, "name": "SPNetworkReporter.spreporter", "path": "SystemProfiler/SPNetworkReporter.spreporter", "children": [ { "value": 268, "name": "Contents", "path": "SystemProfiler/SPNetworkReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPNetworkVolumeReporter.spreporter", "path": "SystemProfiler/SPNetworkVolumeReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPNetworkVolumeReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPOSReporter.spreporter", "path": "SystemProfiler/SPOSReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPOSReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPParallelATAReporter.spreporter", "path": "SystemProfiler/SPParallelATAReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPParallelATAReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPParallelSCSIReporter.spreporter", "path": "SystemProfiler/SPParallelSCSIReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPParallelSCSIReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPPCIReporter.spreporter", "path": "SystemProfiler/SPPCIReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPPCIReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPPlatformReporter.spreporter", "path": "SystemProfiler/SPPlatformReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPPlatformReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPPowerReporter.spreporter", "path": "SystemProfiler/SPPowerReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPPowerReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPPrefPaneReporter.spreporter", "path": "SystemProfiler/SPPrefPaneReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPPrefPaneReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPPrintersReporter.spreporter", "path": "SystemProfiler/SPPrintersReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPPrintersReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPPrintersSoftwareReporter.spreporter", "path": "SystemProfiler/SPPrintersSoftwareReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPPrintersSoftwareReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPSASReporter.spreporter", "path": "SystemProfiler/SPSASReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPSASReporter.spreporter/Contents" } ] }, { "value": 16, "name": "SPSerialATAReporter.spreporter", "path": "SystemProfiler/SPSerialATAReporter.spreporter", "children": [ { "value": 16, "name": "Contents", "path": "SystemProfiler/SPSerialATAReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPSPIReporter.spreporter", "path": "SystemProfiler/SPSPIReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPSPIReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPStartupItemReporter.spreporter", "path": "SystemProfiler/SPStartupItemReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPStartupItemReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPStorageReporter.spreporter", "path": "SystemProfiler/SPStorageReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPStorageReporter.spreporter/Contents" } ] }, { "value": 12, "name": "SPSyncReporter.spreporter", "path": "SystemProfiler/SPSyncReporter.spreporter", "children": [ { "value": 12, "name": "Contents", "path": "SystemProfiler/SPSyncReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPThunderboltReporter.spreporter", "path": "SystemProfiler/SPThunderboltReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPThunderboltReporter.spreporter/Contents" } ] }, { "value": 8, "name": "SPUniversalAccessReporter.spreporter", "path": "SystemProfiler/SPUniversalAccessReporter.spreporter", "children": [ { "value": 8, "name": "Contents", "path": "SystemProfiler/SPUniversalAccessReporter.spreporter/Contents" } ] }, { "value": 40, "name": "SPUSBReporter.spreporter", "path": "SystemProfiler/SPUSBReporter.spreporter", "children": [ { "value": 40, "name": "Contents", "path": "SystemProfiler/SPUSBReporter.spreporter/Contents" } ] }, { "value": 28, "name": "SPWWANReporter.spreporter", "path": "SystemProfiler/SPWWANReporter.spreporter", "children": [ { "value": 28, "name": "Contents", "path": "SystemProfiler/SPWWANReporter.spreporter/Contents" } ] } ] }, { "value": 9608, "name": "Tcl", "path": "Tcl", "children": [ { "value": 3568, "name": "8.4", "path": "Tcl/8.4", "children": [ { "value": 156, "name": "expect5.45", "path": "Tcl/8.4/expect5.45" }, { "value": 28, "name": "Ffidl0.6.1", "path": "Tcl/8.4/Ffidl0.6.1" }, { "value": 784, "name": "Img1.4", "path": "Tcl/8.4/Img1.4" }, { "value": 88, "name": "itcl3.4", "path": "Tcl/8.4/itcl3.4" }, { "value": 24, "name": "itk3.4", "path": "Tcl/8.4/itk3.4" }, { "value": 28, "name": "Memchan2.2.1", "path": "Tcl/8.4/Memchan2.2.1" }, { "value": 228, "name": "Mk4tcl2.4.9.7", "path": "Tcl/8.4/Mk4tcl2.4.9.7" }, { "value": 96, "name": "QuickTimeTcl3.2", "path": "Tcl/8.4/QuickTimeTcl3.2" }, { "value": 196, "name": "snack2.2", "path": "Tcl/8.4/snack2.2" }, { "value": 24, "name": "tbcload1.7", "path": "Tcl/8.4/tbcload1.7" }, { "value": 76, "name": "tclAE2.0.5", "path": "Tcl/8.4/tclAE2.0.5" }, { "value": 20, "name": "Tclapplescript1.0", "path": "Tcl/8.4/Tclapplescript1.0" }, { "value": 56, "name": "Tcldom2.6", "path": "Tcl/8.4/Tcldom2.6" }, { "value": 56, "name": "tcldomxml2.6", "path": "Tcl/8.4/tcldomxml2.6" }, { "value": 108, "name": "Tclexpat2.6", "path": "Tcl/8.4/Tclexpat2.6" }, { "value": 16, "name": "Tclresource1.1.2", "path": "Tcl/8.4/Tclresource1.1.2" }, { "value": 288, "name": "tclx8.4", "path": "Tcl/8.4/tclx8.4" }, { "value": 60, "name": "Tclxml2.6", "path": "Tcl/8.4/Tclxml2.6" }, { "value": 20, "name": "Tclxslt2.6", "path": "Tcl/8.4/Tclxslt2.6" }, { "value": 396, "name": "tdom0.8.3", "path": "Tcl/8.4/tdom0.8.3" }, { "value": 80, "name": "thread2.6.6", "path": "Tcl/8.4/thread2.6.6" }, { "value": 68, "name": "Tktable2.10", "path": "Tcl/8.4/Tktable2.10" }, { "value": 36, "name": "tls1.6.1", "path": "Tcl/8.4/tls1.6.1" }, { "value": 32, "name": "tnc0.3.0", "path": "Tcl/8.4/tnc0.3.0" }, { "value": 180, "name": "treectrl2.2.10", "path": "Tcl/8.4/treectrl2.2.10" }, { "value": 120, "name": "Trf2.1.4", "path": "Tcl/8.4/Trf2.1.4" }, { "value": 108, "name": "vfs1.4.1", "path": "Tcl/8.4/vfs1.4.1" }, { "value": 196, "name": "xotcl1.6.6", "path": "Tcl/8.4/xotcl1.6.6" } ] }, { "value": 3384, "name": "8.5", "path": "Tcl/8.5", "children": [ { "value": 156, "name": "expect5.45", "path": "Tcl/8.5/expect5.45" }, { "value": 32, "name": "Ffidl0.6.1", "path": "Tcl/8.5/Ffidl0.6.1" }, { "value": 972, "name": "Img1.4", "path": "Tcl/8.5/Img1.4" }, { "value": 88, "name": "itcl3.4", "path": "Tcl/8.5/itcl3.4" }, { "value": 44, "name": "itk3.4", "path": "Tcl/8.5/itk3.4" }, { "value": 32, "name": "Memchan2.2.1", "path": "Tcl/8.5/Memchan2.2.1" }, { "value": 228, "name": "Mk4tcl2.4.9.7", "path": "Tcl/8.5/Mk4tcl2.4.9.7" }, { "value": 24, "name": "tbcload1.7", "path": "Tcl/8.5/tbcload1.7" }, { "value": 76, "name": "tclAE2.0.5", "path": "Tcl/8.5/tclAE2.0.5" }, { "value": 56, "name": "Tcldom2.6", "path": "Tcl/8.5/Tcldom2.6" }, { "value": 56, "name": "tcldomxml2.6", "path": "Tcl/8.5/tcldomxml2.6" }, { "value": 108, "name": "Tclexpat2.6", "path": "Tcl/8.5/Tclexpat2.6" }, { "value": 336, "name": "tclx8.4", "path": "Tcl/8.5/tclx8.4" }, { "value": 60, "name": "Tclxml2.6", "path": "Tcl/8.5/Tclxml2.6" }, { "value": 20, "name": "Tclxslt2.6", "path": "Tcl/8.5/Tclxslt2.6" }, { "value": 400, "name": "tdom0.8.3", "path": "Tcl/8.5/tdom0.8.3" }, { "value": 80, "name": "thread2.6.6", "path": "Tcl/8.5/thread2.6.6" }, { "value": 124, "name": "Tktable2.10", "path": "Tcl/8.5/Tktable2.10" }, { "value": 36, "name": "tls1.6.1", "path": "Tcl/8.5/tls1.6.1" }, { "value": 32, "name": "tnc0.3.0", "path": "Tcl/8.5/tnc0.3.0" }, { "value": 120, "name": "Trf2.1.4", "path": "Tcl/8.5/Trf2.1.4" }, { "value": 108, "name": "vfs1.4.1", "path": "Tcl/8.5/vfs1.4.1" }, { "value": 196, "name": "xotcl1.6.6", "path": "Tcl/8.5/xotcl1.6.6" } ] }, { "value": 80, "name": "bin", "path": "Tcl/bin" }, { "value": 224, "name": "bwidget1.9.1", "path": "Tcl/bwidget1.9.1", "children": [ { "value": 100, "name": "images", "path": "Tcl/bwidget1.9.1/images" }, { "value": 0, "name": "lang", "path": "Tcl/bwidget1.9.1/lang" } ] }, { "value": 324, "name": "iwidgets4.0.2", "path": "Tcl/iwidgets4.0.2", "children": [ { "value": 324, "name": "scripts", "path": "Tcl/iwidgets4.0.2/scripts" } ] }, { "value": 40, "name": "sqlite3", "path": "Tcl/sqlite3" }, { "value": 1456, "name": "tcllib1.12", "path": "Tcl/tcllib1.12", "children": [ { "value": 8, "name": "aes", "path": "Tcl/tcllib1.12/aes" }, { "value": 16, "name": "amazon-s3", "path": "Tcl/tcllib1.12/amazon-s3" }, { "value": 12, "name": "asn", "path": "Tcl/tcllib1.12/asn" }, { "value": 0, "name": "base32", "path": "Tcl/tcllib1.12/base32" }, { "value": 0, "name": "base64", "path": "Tcl/tcllib1.12/base64" }, { "value": 8, "name": "bee", "path": "Tcl/tcllib1.12/bee" }, { "value": 16, "name": "bench", "path": "Tcl/tcllib1.12/bench" }, { "value": 8, "name": "bibtex", "path": "Tcl/tcllib1.12/bibtex" }, { "value": 12, "name": "blowfish", "path": "Tcl/tcllib1.12/blowfish" }, { "value": 0, "name": "cache", "path": "Tcl/tcllib1.12/cache" }, { "value": 8, "name": "cmdline", "path": "Tcl/tcllib1.12/cmdline" }, { "value": 16, "name": "comm", "path": "Tcl/tcllib1.12/comm" }, { "value": 0, "name": "control", "path": "Tcl/tcllib1.12/control" }, { "value": 0, "name": "coroutine", "path": "Tcl/tcllib1.12/coroutine" }, { "value": 12, "name": "counter", "path": "Tcl/tcllib1.12/counter" }, { "value": 8, "name": "crc", "path": "Tcl/tcllib1.12/crc" }, { "value": 8, "name": "csv", "path": "Tcl/tcllib1.12/csv" }, { "value": 24, "name": "des", "path": "Tcl/tcllib1.12/des" }, { "value": 36, "name": "dns", "path": "Tcl/tcllib1.12/dns" }, { "value": 0, "name": "docstrip", "path": "Tcl/tcllib1.12/docstrip" }, { "value": 44, "name": "doctools", "path": "Tcl/tcllib1.12/doctools" }, { "value": 8, "name": "doctools2base", "path": "Tcl/tcllib1.12/doctools2base" }, { "value": 12, "name": "doctools2idx", "path": "Tcl/tcllib1.12/doctools2idx" }, { "value": 12, "name": "doctools2toc", "path": "Tcl/tcllib1.12/doctools2toc" }, { "value": 36, "name": "fileutil", "path": "Tcl/tcllib1.12/fileutil" }, { "value": 16, "name": "ftp", "path": "Tcl/tcllib1.12/ftp" }, { "value": 16, "name": "ftpd", "path": "Tcl/tcllib1.12/ftpd" }, { "value": 84, "name": "fumagic", "path": "Tcl/tcllib1.12/fumagic" }, { "value": 0, "name": "gpx", "path": "Tcl/tcllib1.12/gpx" }, { "value": 20, "name": "grammar_fa", "path": "Tcl/tcllib1.12/grammar_fa" }, { "value": 8, "name": "grammar_me", "path": "Tcl/tcllib1.12/grammar_me" }, { "value": 8, "name": "grammar_peg", "path": "Tcl/tcllib1.12/grammar_peg" }, { "value": 12, "name": "html", "path": "Tcl/tcllib1.12/html" }, { "value": 12, "name": "htmlparse", "path": "Tcl/tcllib1.12/htmlparse" }, { "value": 8, "name": "http", "path": "Tcl/tcllib1.12/http" }, { "value": 0, "name": "ident", "path": "Tcl/tcllib1.12/ident" }, { "value": 12, "name": "imap4", "path": "Tcl/tcllib1.12/imap4" }, { "value": 0, "name": "inifile", "path": "Tcl/tcllib1.12/inifile" }, { "value": 0, "name": "interp", "path": "Tcl/tcllib1.12/interp" }, { "value": 0, "name": "irc", "path": "Tcl/tcllib1.12/irc" }, { "value": 0, "name": "javascript", "path": "Tcl/tcllib1.12/javascript" }, { "value": 12, "name": "jpeg", "path": "Tcl/tcllib1.12/jpeg" }, { "value": 0, "name": "json", "path": "Tcl/tcllib1.12/json" }, { "value": 28, "name": "ldap", "path": "Tcl/tcllib1.12/ldap" }, { "value": 20, "name": "log", "path": "Tcl/tcllib1.12/log" }, { "value": 0, "name": "map", "path": "Tcl/tcllib1.12/map" }, { "value": 12, "name": "mapproj", "path": "Tcl/tcllib1.12/mapproj" }, { "value": 140, "name": "math", "path": "Tcl/tcllib1.12/math" }, { "value": 8, "name": "md4", "path": "Tcl/tcllib1.12/md4" }, { "value": 16, "name": "md5", "path": "Tcl/tcllib1.12/md5" }, { "value": 0, "name": "md5crypt", "path": "Tcl/tcllib1.12/md5crypt" }, { "value": 36, "name": "mime", "path": "Tcl/tcllib1.12/mime" }, { "value": 0, "name": "multiplexer", "path": "Tcl/tcllib1.12/multiplexer" }, { "value": 0, "name": "namespacex", "path": "Tcl/tcllib1.12/namespacex" }, { "value": 12, "name": "ncgi", "path": "Tcl/tcllib1.12/ncgi" }, { "value": 0, "name": "nmea", "path": "Tcl/tcllib1.12/nmea" }, { "value": 8, "name": "nns", "path": "Tcl/tcllib1.12/nns" }, { "value": 8, "name": "nntp", "path": "Tcl/tcllib1.12/nntp" }, { "value": 0, "name": "ntp", "path": "Tcl/tcllib1.12/ntp" }, { "value": 8, "name": "otp", "path": "Tcl/tcllib1.12/otp" }, { "value": 48, "name": "page", "path": "Tcl/tcllib1.12/page" }, { "value": 0, "name": "pluginmgr", "path": "Tcl/tcllib1.12/pluginmgr" }, { "value": 0, "name": "png", "path": "Tcl/tcllib1.12/png" }, { "value": 8, "name": "pop3", "path": "Tcl/tcllib1.12/pop3" }, { "value": 8, "name": "pop3d", "path": "Tcl/tcllib1.12/pop3d" }, { "value": 8, "name": "profiler", "path": "Tcl/tcllib1.12/profiler" }, { "value": 72, "name": "pt", "path": "Tcl/tcllib1.12/pt" }, { "value": 0, "name": "rc4", "path": "Tcl/tcllib1.12/rc4" }, { "value": 0, "name": "rcs", "path": "Tcl/tcllib1.12/rcs" }, { "value": 12, "name": "report", "path": "Tcl/tcllib1.12/report" }, { "value": 8, "name": "rest", "path": "Tcl/tcllib1.12/rest" }, { "value": 16, "name": "ripemd", "path": "Tcl/tcllib1.12/ripemd" }, { "value": 8, "name": "sasl", "path": "Tcl/tcllib1.12/sasl" }, { "value": 24, "name": "sha1", "path": "Tcl/tcllib1.12/sha1" }, { "value": 0, "name": "simulation", "path": "Tcl/tcllib1.12/simulation" }, { "value": 8, "name": "smtpd", "path": "Tcl/tcllib1.12/smtpd" }, { "value": 84, "name": "snit", "path": "Tcl/tcllib1.12/snit" }, { "value": 0, "name": "soundex", "path": "Tcl/tcllib1.12/soundex" }, { "value": 12, "name": "stooop", "path": "Tcl/tcllib1.12/stooop" }, { "value": 48, "name": "stringprep", "path": "Tcl/tcllib1.12/stringprep" }, { "value": 156, "name": "struct", "path": "Tcl/tcllib1.12/struct" }, { "value": 0, "name": "tar", "path": "Tcl/tcllib1.12/tar" }, { "value": 24, "name": "tepam", "path": "Tcl/tcllib1.12/tepam" }, { "value": 0, "name": "term", "path": "Tcl/tcllib1.12/term" }, { "value": 52, "name": "textutil", "path": "Tcl/tcllib1.12/textutil" }, { "value": 0, "name": "tie", "path": "Tcl/tcllib1.12/tie" }, { "value": 8, "name": "tiff", "path": "Tcl/tcllib1.12/tiff" }, { "value": 0, "name": "transfer", "path": "Tcl/tcllib1.12/transfer" }, { "value": 0, "name": "treeql", "path": "Tcl/tcllib1.12/treeql" }, { "value": 0, "name": "uev", "path": "Tcl/tcllib1.12/uev" }, { "value": 8, "name": "units", "path": "Tcl/tcllib1.12/units" }, { "value": 8, "name": "uri", "path": "Tcl/tcllib1.12/uri" }, { "value": 0, "name": "uuid", "path": "Tcl/tcllib1.12/uuid" }, { "value": 0, "name": "virtchannel_base", "path": "Tcl/tcllib1.12/virtchannel_base" }, { "value": 0, "name": "virtchannel_core", "path": "Tcl/tcllib1.12/virtchannel_core" }, { "value": 0, "name": "virtchannel_transform", "path": "Tcl/tcllib1.12/virtchannel_transform" }, { "value": 16, "name": "wip", "path": "Tcl/tcllib1.12/wip" }, { "value": 12, "name": "yaml", "path": "Tcl/tcllib1.12/yaml" } ] }, { "value": 60, "name": "tclsoap1.6.8", "path": "Tcl/tclsoap1.6.8", "children": [ { "value": 0, "name": "interop", "path": "Tcl/tclsoap1.6.8/interop" } ] }, { "value": 56, "name": "tkcon2.6", "path": "Tcl/tkcon2.6" }, { "value": 412, "name": "tklib0.5", "path": "Tcl/tklib0.5", "children": [ { "value": 0, "name": "autoscroll", "path": "Tcl/tklib0.5/autoscroll" }, { "value": 8, "name": "canvas", "path": "Tcl/tklib0.5/canvas" }, { "value": 8, "name": "chatwidget", "path": "Tcl/tklib0.5/chatwidget" }, { "value": 28, "name": "controlwidget", "path": "Tcl/tklib0.5/controlwidget" }, { "value": 0, "name": "crosshair", "path": "Tcl/tklib0.5/crosshair" }, { "value": 8, "name": "ctext", "path": "Tcl/tklib0.5/ctext" }, { "value": 0, "name": "cursor", "path": "Tcl/tklib0.5/cursor" }, { "value": 0, "name": "datefield", "path": "Tcl/tklib0.5/datefield" }, { "value": 24, "name": "diagrams", "path": "Tcl/tklib0.5/diagrams" }, { "value": 0, "name": "getstring", "path": "Tcl/tklib0.5/getstring" }, { "value": 0, "name": "history", "path": "Tcl/tklib0.5/history" }, { "value": 24, "name": "ico", "path": "Tcl/tklib0.5/ico" }, { "value": 8, "name": "ipentry", "path": "Tcl/tklib0.5/ipentry" }, { "value": 16, "name": "khim", "path": "Tcl/tklib0.5/khim" }, { "value": 20, "name": "menubar", "path": "Tcl/tklib0.5/menubar" }, { "value": 16, "name": "ntext", "path": "Tcl/tklib0.5/ntext" }, { "value": 48, "name": "plotchart", "path": "Tcl/tklib0.5/plotchart" }, { "value": 8, "name": "style", "path": "Tcl/tklib0.5/style" }, { "value": 0, "name": "swaplist", "path": "Tcl/tklib0.5/swaplist" }, { "value": 148, "name": "tablelist", "path": "Tcl/tklib0.5/tablelist" }, { "value": 8, "name": "tkpiechart", "path": "Tcl/tklib0.5/tkpiechart" }, { "value": 8, "name": "tooltip", "path": "Tcl/tklib0.5/tooltip" }, { "value": 32, "name": "widget", "path": "Tcl/tklib0.5/widget" } ] } ] }, { "value": 80, "name": "TextEncodings", "path": "TextEncodings", "children": [ { "value": 0, "name": "ArabicEncodings.bundle", "path": "TextEncodings/ArabicEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/ArabicEncodings.bundle/Contents" } ] }, { "value": 0, "name": "CentralEuropean Encodings.bundle", "path": "TextEncodings/CentralEuropean Encodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/CentralEuropean Encodings.bundle/Contents" } ] }, { "value": 0, "name": "ChineseEncodings Supplement.bundle", "path": "TextEncodings/ChineseEncodings Supplement.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/ChineseEncodings Supplement.bundle/Contents" } ] }, { "value": 28, "name": "ChineseEncodings.bundle", "path": "TextEncodings/ChineseEncodings.bundle", "children": [ { "value": 28, "name": "Contents", "path": "TextEncodings/ChineseEncodings.bundle/Contents" } ] }, { "value": 0, "name": "CoreEncodings.bundle", "path": "TextEncodings/CoreEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/CoreEncodings.bundle/Contents" } ] }, { "value": 0, "name": "CyrillicEncodings.bundle", "path": "TextEncodings/CyrillicEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/CyrillicEncodings.bundle/Contents" } ] }, { "value": 0, "name": "GreekEncodings.bundle", "path": "TextEncodings/GreekEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/GreekEncodings.bundle/Contents" } ] }, { "value": 0, "name": "HebrewEncodings.bundle", "path": "TextEncodings/HebrewEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/HebrewEncodings.bundle/Contents" } ] }, { "value": 0, "name": "IndicEncodings.bundle", "path": "TextEncodings/IndicEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/IndicEncodings.bundle/Contents" } ] }, { "value": 20, "name": "JapaneseEncodings.bundle", "path": "TextEncodings/JapaneseEncodings.bundle", "children": [ { "value": 20, "name": "Contents", "path": "TextEncodings/JapaneseEncodings.bundle/Contents" } ] }, { "value": 16, "name": "KoreanEncodings.bundle", "path": "TextEncodings/KoreanEncodings.bundle", "children": [ { "value": 16, "name": "Contents", "path": "TextEncodings/KoreanEncodings.bundle/Contents" } ] }, { "value": 0, "name": "SymbolEncodings.bundle", "path": "TextEncodings/SymbolEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/SymbolEncodings.bundle/Contents" } ] }, { "value": 0, "name": "ThaiEncodings.bundle", "path": "TextEncodings/ThaiEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/ThaiEncodings.bundle/Contents" } ] }, { "value": 0, "name": "TurkishEncodings.bundle", "path": "TextEncodings/TurkishEncodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/TurkishEncodings.bundle/Contents" } ] }, { "value": 16, "name": "UnicodeEncodings.bundle", "path": "TextEncodings/UnicodeEncodings.bundle", "children": [ { "value": 16, "name": "Contents", "path": "TextEncodings/UnicodeEncodings.bundle/Contents" } ] }, { "value": 0, "name": "WesternLanguage Encodings.bundle", "path": "TextEncodings/WesternLanguage Encodings.bundle", "children": [ { "value": 0, "name": "Contents", "path": "TextEncodings/WesternLanguage Encodings.bundle/Contents" } ] } ] }, { "value": 600, "name": "UserEventPlugins", "path": "UserEventPlugins", "children": [ { "value": 60, "name": "ACRRDaemon.plugin", "path": "UserEventPlugins/ACRRDaemon.plugin", "children": [ { "value": 60, "name": "Contents", "path": "UserEventPlugins/ACRRDaemon.plugin/Contents" } ] }, { "value": 16, "name": "AirPortUserAgent.plugin", "path": "UserEventPlugins/AirPortUserAgent.plugin", "children": [ { "value": 16, "name": "Contents", "path": "UserEventPlugins/AirPortUserAgent.plugin/Contents" } ] }, { "value": 0, "name": "alfUIplugin.plugin", "path": "UserEventPlugins/alfUIplugin.plugin", "children": [ { "value": 0, "name": "Contents", "path": "UserEventPlugins/alfUIplugin.plugin/Contents" } ] }, { "value": 12, "name": "AppleHIDMouseAgent.plugin", "path": "UserEventPlugins/AppleHIDMouseAgent.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/AppleHIDMouseAgent.plugin/Contents" } ] }, { "value": 12, "name": "AssistantUEA.plugin", "path": "UserEventPlugins/AssistantUEA.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/AssistantUEA.plugin/Contents" } ] }, { "value": 16, "name": "AutoTimeZone.plugin", "path": "UserEventPlugins/AutoTimeZone.plugin", "children": [ { "value": 16, "name": "Contents", "path": "UserEventPlugins/AutoTimeZone.plugin/Contents" } ] }, { "value": 20, "name": "BluetoothUserAgent-Plugin.plugin", "path": "UserEventPlugins/BluetoothUserAgent-Plugin.plugin", "children": [ { "value": 20, "name": "Contents", "path": "UserEventPlugins/BluetoothUserAgent-Plugin.plugin/Contents" } ] }, { "value": 12, "name": "BonjourEvents.plugin", "path": "UserEventPlugins/BonjourEvents.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/BonjourEvents.plugin/Contents" } ] }, { "value": 16, "name": "BTMMPortInUseAgent.plugin", "path": "UserEventPlugins/BTMMPortInUseAgent.plugin", "children": [ { "value": 16, "name": "Contents", "path": "UserEventPlugins/BTMMPortInUseAgent.plugin/Contents" } ] }, { "value": 8, "name": "CalendarMonitor.plugin", "path": "UserEventPlugins/CalendarMonitor.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/CalendarMonitor.plugin/Contents" } ] }, { "value": 88, "name": "CaptiveSystemAgent.plugin", "path": "UserEventPlugins/CaptiveSystemAgent.plugin", "children": [ { "value": 88, "name": "Contents", "path": "UserEventPlugins/CaptiveSystemAgent.plugin/Contents" } ] }, { "value": 12, "name": "CaptiveUserAgent.plugin", "path": "UserEventPlugins/CaptiveUserAgent.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/CaptiveUserAgent.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.bonjour.plugin", "path": "UserEventPlugins/com.apple.bonjour.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.bonjour.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.cfnotification.plugin", "path": "UserEventPlugins/com.apple.cfnotification.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.cfnotification.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.diskarbitration.plugin", "path": "UserEventPlugins/com.apple.diskarbitration.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.diskarbitration.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.dispatch.vfs.plugin", "path": "UserEventPlugins/com.apple.dispatch.vfs.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.dispatch.vfs.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.fsevents.matching.plugin", "path": "UserEventPlugins/com.apple.fsevents.matching.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.fsevents.matching.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.iokit.matching.plugin", "path": "UserEventPlugins/com.apple.iokit.matching.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.iokit.matching.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.KeyStore.plugin", "path": "UserEventPlugins/com.apple.KeyStore.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.KeyStore.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.launchd.helper.plugin", "path": "UserEventPlugins/com.apple.launchd.helper.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.launchd.helper.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.locationd.events.plugin", "path": "UserEventPlugins/com.apple.locationd.events.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.locationd.events.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.notifyd.matching.plugin", "path": "UserEventPlugins/com.apple.notifyd.matching.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.notifyd.matching.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.opendirectory.matching.plugin", "path": "UserEventPlugins/com.apple.opendirectory.matching.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.opendirectory.matching.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.rcdevent.matching.plugin", "path": "UserEventPlugins/com.apple.rcdevent.matching.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.rcdevent.matching.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.reachability.plugin", "path": "UserEventPlugins/com.apple.reachability.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.reachability.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.systemconfiguration.plugin", "path": "UserEventPlugins/com.apple.systemconfiguration.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.systemconfiguration.plugin/Contents" } ] }, { "value": 44, "name": "com.apple.telemetry.plugin", "path": "UserEventPlugins/com.apple.telemetry.plugin", "children": [ { "value": 44, "name": "Contents", "path": "UserEventPlugins/com.apple.telemetry.plugin/Contents" } ] }, { "value": 24, "name": "com.apple.time.plugin", "path": "UserEventPlugins/com.apple.time.plugin", "children": [ { "value": 24, "name": "Contents", "path": "UserEventPlugins/com.apple.time.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.TimeMachine.plugin", "path": "UserEventPlugins/com.apple.TimeMachine.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.TimeMachine.plugin/Contents" } ] }, { "value": 20, "name": "com.apple.TimeMachine.System.plugin", "path": "UserEventPlugins/com.apple.TimeMachine.System.plugin", "children": [ { "value": 20, "name": "Contents", "path": "UserEventPlugins/com.apple.TimeMachine.System.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.universalaccess.events.plugin", "path": "UserEventPlugins/com.apple.universalaccess.events.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.universalaccess.events.plugin/Contents" } ] }, { "value": 8, "name": "com.apple.usernotificationcenter.matching.plugin", "path": "UserEventPlugins/com.apple.usernotificationcenter.matching.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/com.apple.usernotificationcenter.matching.plugin/Contents" } ] }, { "value": 12, "name": "com.apple.WorkstationService.plugin", "path": "UserEventPlugins/com.apple.WorkstationService.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/com.apple.WorkstationService.plugin/Contents" } ] }, { "value": 28, "name": "EAPOLMonitor.plugin", "path": "UserEventPlugins/EAPOLMonitor.plugin", "children": [ { "value": 28, "name": "Contents", "path": "UserEventPlugins/EAPOLMonitor.plugin/Contents" } ] }, { "value": 8, "name": "GSSNotificationForwarder.plugin", "path": "UserEventPlugins/GSSNotificationForwarder.plugin", "children": [ { "value": 8, "name": "Contents", "path": "UserEventPlugins/GSSNotificationForwarder.plugin/Contents" } ] }, { "value": 12, "name": "LocationMenu.plugin", "path": "UserEventPlugins/LocationMenu.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/LocationMenu.plugin/Contents" } ] }, { "value": 12, "name": "PrinterMonitor.plugin", "path": "UserEventPlugins/PrinterMonitor.plugin", "children": [ { "value": 12, "name": "Contents", "path": "UserEventPlugins/PrinterMonitor.plugin/Contents" } ] }, { "value": 16, "name": "SCMonitor.plugin", "path": "UserEventPlugins/SCMonitor.plugin", "children": [ { "value": 16, "name": "Contents", "path": "UserEventPlugins/SCMonitor.plugin/Contents" } ] } ] }, { "value": 536, "name": "Video", "path": "Video", "children": [ { "value": 536, "name": "Plug-Ins", "path": "Video/Plug-Ins", "children": [ { "value": 536, "name": "AppleProResCodec.bundle", "path": "Video/Plug-Ins/AppleProResCodec.bundle" } ] } ] }, { "value": 272, "name": "WidgetResources", "path": "WidgetResources", "children": [ { "value": 16, "name": ".parsers", "path": "WidgetResources/.parsers" }, { "value": 172, "name": "AppleClasses", "path": "WidgetResources/AppleClasses", "children": [ { "value": 156, "name": "Images", "path": "WidgetResources/AppleClasses/Images" } ] }, { "value": 0, "name": "AppleParser", "path": "WidgetResources/AppleParser" }, { "value": 48, "name": "button", "path": "WidgetResources/button" }, { "value": 32, "name": "ibutton", "path": "WidgetResources/ibutton" } ] } ] );
redmed/echarts-www
related/ppt/asset/data/disk-tree.json.js
JavaScript
bsd-3-clause
750,572
/** * window.c.ProjectSuggestedContributions component * A Project-show page helper to show suggested amounts of contributions * * Example of use: * view: () => { * ... * m.component(c.ProjectSuggestedContributions, {project: project}) * ... * } */ import m from 'mithril'; import _ from 'underscore'; const projectSuggestedContributions = { view(ctrl, args) { const project = args.project(); const suggestionUrl = amount => `/projects/${project.project_id}/contributions/new?amount=${amount}`, suggestedValues = [10, 25, 50, 100]; return m('#suggestions', _.map(suggestedValues, amount => project ? m(`a[href="${suggestionUrl(amount)}"].card-reward.card-big.card-secondary.u-marginbottom-20`, [ m('.fontsize-larger', `R$ ${amount}`) ]) : '')); } }; export default projectSuggestedContributions;
vicnicius/catarse_admin
src/c/project-suggested-contributions.js
JavaScript
mit
881
import { get } from '../get' export function getSearchData(page, cityName, category, keyword) { const keywordStr = keyword ? '/' + keyword : '' const result = get('/api/search/' + page + '/' + cityName + '/' + category + keywordStr) return result }
su-chang/react-web-app
app/fetch/search/search.js
JavaScript
mit
261
/*global define*/ /*jslint white:true,browser:true*/ define([ 'bluebird', // CDN 'kb_common/html', // LOCAL 'common/ui', 'common/runtime', 'common/events', 'common/props', // Wrapper for inputs './inputWrapperWidget', 'widgets/appWidgets/fieldWidget', // Display widgets 'widgets/appWidgets/paramDisplayResolver' ], function ( Promise, html, UI, Runtime, Events, Props, //Wrappers RowWidget, FieldWidget, ParamResolver ) { 'use strict'; var t = html.tag, form = t('form'), span = t('span'), div = t('div'); function factory(config) { var runtime = Runtime.make(), parentBus = config.bus, cellId = config.cellId, workspaceInfo = config.workspaceInfo, container, ui, bus, places, model = Props.make(), inputBusses = [], settings = { showAdvanced: null }, paramResolver = ParamResolver.make(); // DATA /* * The input control widget is selected based on these parameters: * - data type - (text, int, float, workspaceObject (ref, name) * - input app - input, select */ // RENDERING function makeFieldWidget(parameterSpec, value) { var bus = runtime.bus().makeChannelBus(null, 'Params view input bus comm widget'), inputWidget = paramResolver.getWidgetFactory(parameterSpec); inputBusses.push(bus); // An input widget may ask for the current model value at any time. bus.on('sync', function () { parentBus.emit('parameter-sync', { parameter: parameterSpec.id() }); }); parentBus.listen({ key: { type: 'update', parameter: parameterSpec.id() }, handle: function (message) { bus.emit('update', { value: message.value }); } }); // Just pass the update along to the input widget. // TODO: commented out, is it even used? // parentBus.listen({ // test: function (message) { // var pass = (message.type === 'update' && message.parameter === parameterSpec.id()); // return pass; // }, // handle: function (message) { // bus.send(message); // } // }); return FieldWidget.make({ inputControlFactory: inputWidget, showHint: true, useRowHighight: true, initialValue: value, parameterSpec: parameterSpec, bus: bus, workspaceId: workspaceInfo.id }); } function renderAdvanced() { var advancedInputs = container.querySelectorAll('[data-advanced-parameter]'); if (advancedInputs.length === 0) { return; } var removeClass = (settings.showAdvanced ? 'advanced-parameter-hidden' : 'advanced-parameter-showing'), addClass = (settings.showAdvanced ? 'advanced-parameter-showing' : 'advanced-parameter-hidden'); for (var i = 0; i < advancedInputs.length; i += 1) { var input = advancedInputs[i]; input.classList.remove(removeClass); input.classList.add(addClass); } // How many advanaced? // Also update the button var button = container.querySelector('[data-button="toggle-advanced"]'); button.innerHTML = (settings.showAdvanced ? 'Hide Advanced' : 'Show Advanced (' + advancedInputs.length + ' hidden)'); // Also update the } function renderLayout() { var events = Events.make(), content = form({dataElement: 'input-widget-form'}, [ ui.buildPanel({ type: 'default', classes: 'kb-panel-light', body: [ ui.makeButton('Show Advanced', 'toggle-advanced', {events: events}) ] }), ui.buildPanel({ title: 'Inputs', body: div({dataElement: 'input-fields'}), classes: ['kb-panel-container'] }), ui.buildPanel({ title: span(['Parameters', span({dataElement: 'advanced-hidden'})]), body: div({dataElement: 'parameter-fields'}), classes: ['kb-panel-container'] }), ui.buildPanel({ title: 'Outputs', body: div({dataElement: 'output-fields'}), classes: ['kb-panel-container'] }) ]); return { content: content, events: events }; } // MESSAGE HANDLERS function doAttach(node) { container = node; ui = UI.make({ node: container, bus: bus }); var layout = renderLayout(); container.innerHTML = layout.content; layout.events.attachEvents(container); places = { inputFields: ui.getElement('input-fields'), outputFields: ui.getElement('output-fields'), parameterFields: ui.getElement('parameter-fields'), advancedParameterFields: ui.getElement('advanced-parameter-fields') }; } // EVENTS function attachEvents() { bus.on('reset-to-defaults', function () { inputBusses.forEach(function (inputBus) { inputBus.send({ type: 'reset-to-defaults' }); }); }); bus.on('toggle-advanced', function () { settings.showAdvanced = !settings.showAdvanced; renderAdvanced(); }); } // LIFECYCLE API function renderParameters(params) { var widgets = []; // First get the app specs, which is stashed in the model, // with the parameters returned. // Separate out the params into the primary groups. var params = model.getItem('parameters'), inputParams = params.filter(function (spec) { return (spec.spec.ui_class === 'input'); }), outputParams = params.filter(function (spec) { return (spec.spec.ui_class === 'output'); }), parameterParams = params.filter(function (spec) { return (spec.spec.ui_class === 'parameter'); }); return Promise.resolve() .then(function () { if (inputParams.length === 0) { places.inputFields.innerHTML = span({style: {fontStyle: 'italic'}}, 'No input objects for this app'); } else { return Promise.all(inputParams.map(function (spec) { var fieldWidget = makeFieldWidget(spec, model.getItem(['params', spec.name()])), rowWidget = RowWidget.make({widget: fieldWidget, spec: spec}), rowNode = document.createElement('div'); places.inputFields.appendChild(rowNode); widgets.push(rowWidget); rowWidget.attach(rowNode); })); } }) .then(function () { if (outputParams.length === 0) { places.outputFields.innerHTML = span({style: {fontStyle: 'italic'}}, 'No output objects for this app'); } else { return Promise.all(outputParams.map(function (spec) { var fieldWidget = makeFieldWidget(spec, model.getItem(['params', spec.name()])), rowWidget = RowWidget.make({widget: fieldWidget, spec: spec}), rowNode = document.createElement('div'); places.outputFields.appendChild(rowNode); widgets.push(rowWidget); rowWidget.attach(rowNode); })); } }) .then(function () { if (parameterParams.length === 0) { ui.setContent('parameter-fields', span({style: {fontStyle: 'italic'}}, 'No parameters for this app')); } else { return Promise.all(parameterParams.map(function (spec) { var fieldWidget = makeFieldWidget(spec, model.getItem(['params', spec.name()])), rowWidget = RowWidget.make({widget: fieldWidget, spec: spec}), rowNode = document.createElement('div'); places.parameterFields.appendChild(rowNode); widgets.push(rowWidget); rowWidget.attach(rowNode); })); } }) .then(function () { return Promise.all(widgets.map(function (widget) { return widget.start(); })); }) .then(function () { return Promise.all(widgets.map(function (widget) { return widget.run(params); })); }) .then(function () { renderAdvanced(); }); } function start() { // send parent the ready message return Promise.try(function () { parentBus.emit('ready'); // parent will send us our initial parameters parentBus.on('run', function (message) { doAttach(message.node); model.setItem('parameters', message.parameters); // we then create our widgets renderParameters() .then(function () { // do something after success attachEvents(); }) .catch(function (err) { // do somethig with the error. console.error('ERROR in start', err); }); }); }); } function stop() { return Promise.try(function () { // unregister listerrs... }); } // CONSTRUCTION bus = runtime.bus().makeChannelBus(null, 'params view own bus'); return { start: start, stop: stop, bus: function () { return bus; } }; } return { make: function (config) { return factory(config); } }; });
msneddon/narrative
nbextensions/editorCell_bill/widgets/editorParamsViewWidget.js
JavaScript
mit
11,747
// Copyright 2011 Splunk, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the // License for the specific language governing permissions and limitations // under the License. (function() { var Http = require('../../http'); var utils = require('../../utils'); var root = exports || this; var getHeaders = function(headersString) { var headers = {}; var headerLines = headersString.split("\n"); for(var i = 0; i < headerLines.length; i++) { if (utils.trim(headerLines[i]) !== "") { var headerParts = headerLines[i].split(": "); headers[headerParts[0]] = headerParts[1]; } } return headers; }; root.JQueryHttp = Http.extend({ init: function(isSplunk) { this._super(isSplunk); }, makeRequest: function(url, message, callback) { var that = this; var params = { url: url, type: message.method, headers: message.headers, data: message.body || "", timeout: message.timeout || 0, dataType: "json", success: utils.bind(this, function(data, error, res) { var response = { statusCode: res.status, headers: getHeaders(res.getAllResponseHeaders()) }; var complete_response = this._buildResponse(error, response, data); callback(complete_response); }), error: function(res, data, error) { var response = { statusCode: res.status, headers: getHeaders(res.getAllResponseHeaders()) }; if (data === "abort") { response.statusCode = "abort"; res.responseText = "{}"; } var json = JSON.parse(res.responseText); var complete_response = that._buildResponse(error, response, json); callback(complete_response); } }; return $.ajax(params); }, parseJson: function(json) { // JQuery does this for us return json; } }); })();
Christopheraburns/projecttelemetry
node_modules/splunk-sdk/lib/platform/client/jquery_http.js
JavaScript
mit
2,820
var fs = require('fs'); var PNG = require('../lib/png').PNG; var test = require('tape'); var noLargeOption = process.argv.indexOf("nolarge") >= 0; fs.readdir(__dirname + '/in/', function (err, files) { if (err) throw err; files = files.filter(function (file) { return (!noLargeOption || !file.match(/large/i)) && Boolean(file.match(/\.png$/i)); }); console.log("Converting images"); files.forEach(function (file) { var expectedError = false; if (file.match(/^x/)) { expectedError = true; } test('convert sync - ' + file, function (t) { t.timeoutAfter(1000 * 60 * 5); var data = fs.readFileSync(__dirname + '/in/' + file); try { var png = PNG.sync.read(data); } catch (e) { if (!expectedError) { t.fail('Unexpected error parsing..' + file + '\n' + e.message + "\n" + e.stack); } else { t.pass("completed"); } return t.end(); } if (expectedError) { t.fail("Sync: Error expected, parsed fine .. - " + file); return t.end(); } var outpng = new PNG(); outpng.gamma = png.gamma; outpng.data = png.data; outpng.width = png.width; outpng.height = png.height; outpng.pack() .pipe(fs.createWriteStream(__dirname + '/outsync/' + file) .on("finish", function () { t.pass("completed"); t.end(); })); }); test('convert async - ' + file, function (t) { t.timeoutAfter(1000 * 60 * 5); fs.createReadStream(__dirname + '/in/' + file) .pipe(new PNG()) .on('error', function (err) { if (!expectedError) { t.fail("Async: Unexpected error parsing.." + file + '\n' + err.message + '\n' + err.stack); } else { t.pass("completed"); } t.end(); }) .on('parsed', function () { if (expectedError) { t.fail("Async: Error expected, parsed fine .." + file); return t.end(); } this.pack() .pipe( fs.createWriteStream(__dirname + '/out/' + file) .on("finish", function () { t.pass("completed"); t.end(); })); }); }); }); });
lukeapage/pngjs2
test/convert-images-spec.js
JavaScript
mit
2,317
var assert = require('assert'); var Q = require('q'); var R = require('..'); describe('pipeP', function() { function a(x) {return x + 'A';} function b(x) {return x + 'B';} it('handles promises', function() { var plusOne = function(a) {return a + 1;}; var multAsync = function(a, b) {return Q.when(a * b);}; return R.pipeP(multAsync, plusOne)(2, 3) .then(function(result) { assert.strictEqual(result, 7); }); }); it('returns a function with arity == leftmost argument', function() { function a2(x, y) { void y; return 'A2'; } function a3(x, y) { void y; return Q.when('A2'); } function a4(x, y) { void y; return 'A2'; } var f1 = R.pipeP(a, b); assert.strictEqual(f1.length, a.length); var f2 = R.pipeP(a2, b); assert.strictEqual(f2.length, a2.length); var f3 = R.pipeP(a3, b); assert.strictEqual(f3.length, a3.length); var f4 = R.pipeP(a4, b); assert.strictEqual(f4.length, a4.length); }); });
donnut/ramda
test/pipeP.js
JavaScript
mit
988