yui-rails-asset 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +21 -0
- data/README +17 -0
- data/lib/yui/rails.rb +29 -0
- data/lib/yui/rails/engine.rb +10 -0
- data/lib/yui/rails/version.rb +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-debug.js +1396 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-min.js +23 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation.js +1392 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/ajax-loader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/asc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/autocomplete.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-h.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-v.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/blankimage.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/button.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/calendar.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/carousel.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check0.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check2.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/colorpicker.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/container.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/datatable.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/desc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-dn.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-up.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-knob.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite-active.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/header_background.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/hue_bg.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/imagecropper.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout_sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/logger.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/paginator.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/picker_mask.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/profilerviewer.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/progressbar.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/resize.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/simpleeditor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/skin.css +36 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/slider.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-active.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-focus.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-hover.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.psd +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/tabview.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/wait.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/yuitest.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/autocomplete-core.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete-skin.css +57 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-debug.js +3009 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete.js +2966 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/base/base-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/base/base.css +131 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/button-core.css +44 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button-skin.css +219 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-active.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-focus.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-hover.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/button-debug.js +4694 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/button-min.js +11 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/button.js +4633 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar-core.css +132 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar.css +320 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calgrad.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/callt.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calrt.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calx.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar-skin.css +361 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-debug.js +7324 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-min.js +18 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar.js +7294 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/ajax-loader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/carousel-core.css +88 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/ajax-loader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel-skin.css +142 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-debug.js +4390 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel.js +4349 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/assets/charts.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-debug.js +2061 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts.js +2060 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/colorpicker-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/hue_thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_mask.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker-skin.css +105 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/hue_bg.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/picker_mask.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-debug.js +1783 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker.js +1763 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-debug.js +1576 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.js +1546 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-debug.js +980 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core.js +957 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/alrt16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/blck16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/close12_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container-core.css +176 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container.css +324 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/hlp16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/info16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container-skin.css +242 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/tip16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/warn16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container-debug.js +9076 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container-min.js +19 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container.js +9052 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-debug.js +5136 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-min.js +14 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core.js +5126 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-debug.js +482 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie.js +482 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-debug.js +3067 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource.js +2996 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable-core.css +93 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable.css +49 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable-skin.css +240 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-dn.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-up.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-debug.js +17360 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-min.js +29 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable.js +17122 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-debug.js +408 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath.js +408 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-debug.js +1872 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom.js +1832 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-debug.js +3710 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop.js +3601 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/editor-core.css +602 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/simpleeditor-core.css +602 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/blankimage.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-knob.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-skin.css +711 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite-active.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor-skin.css +711 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-debug.js +9557 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-min.js +30 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor.js +9447 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-debug.js +7493 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-min.js +24 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor.js +7406 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-debug.js +141 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate.js +138 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element/element-debug.js +1106 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element/element-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element/element.js +1090 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-debug.js +283 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate.js +281 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-debug.js +219 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter.js +219 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-debug.js +622 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate.js +622 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event/event-debug.js +2524 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event/event-min.js +11 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event/event.js +2500 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts.css +56 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/get/get-debug.js +773 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/get/get-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/get/get.js +755 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids.css +467 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/assets/blank.html +1 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/history-debug.js +808 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/history-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/history.js +808 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/imagecropper-core.css +33 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper-skin.css +16 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-debug.js +907 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper.js +889 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-debug.js +487 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader.js +481 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/json/json-debug.js +538 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/json/json-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/json/json.js +538 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/layout-core.css +158 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout-skin.css +207 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout_sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-debug.js +2305 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-min.js +11 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout.js +2290 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger-core.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger.css +57 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger-skin.css +55 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-debug.js +2104 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger.js +2104 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu-core.css +242 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu.css +503 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_selected.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_selected.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_selected.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu-skin.css +339 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-debug.js +9870 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-min.js +16 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu.js +9823 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/paginator-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator-skin.css +78 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-debug.js +2393 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator.js +2393 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-debug.js +557 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler.js +557 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/profilerviewer-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/asc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/desc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/header_background.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer-skin.css +167 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/wait.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-debug.js +1229 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer.js +1192 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/progressbar-core.css +85 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar-skin.css +56 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-debug.js +691 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar.js +677 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts-grids/reset-fonts-grids.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts/reset-fonts.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset.css +142 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/resize-core.css +173 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/layout_sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize-skin.css +142 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-debug.js +1749 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize.js +1689 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-debug.js +651 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector.js +644 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-fader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-h.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v-e.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/left-thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/right-thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-h.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-v.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider-skin.css +24 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-core.css +17 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-skin.css +20 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-bar.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-e.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-fader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-n.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-s.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-w.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-debug.js +2114 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider.js +2068 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-debug.js +1185 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage.js +1183 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-debug.js +648 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet.js +645 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-debug.js +269 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf.js +268 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-debug.js +93 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect.js +93 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swf.js +238 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-debug.js +470 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.js +453 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/border_tabs.css +54 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skin-sam.css +77 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview-skin.css +186 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview-core.css +133 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview.css +77 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-debug.js +995 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview.js +987 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check0.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check2.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-skin.css +249 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/treeview-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-debug.js +4058 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview.js +3989 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/assets/uploader.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-debug.js +1072 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-min.js +15 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader.js +1069 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/utilities/utilities.js +39 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo-dom-event/yahoo-dom-event.js +14 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-debug.js +1075 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo.js +1075 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader-dom-event/yuiloader-dom-event.js +17 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-debug.js +3879 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader.js +3879 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest-skin.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/testlogger.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/yuitest-core.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-debug.js +2741 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest.js +2741 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-debug.js +1976 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core.js +1976 -0
- metadata +470 -0
@@ -0,0 +1,538 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
|
3
|
+
Code licensed under the BSD License:
|
4
|
+
http://developer.yahoo.com/yui/license.html
|
5
|
+
version: 2.8.1
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* Provides methods to parse JSON strings and convert objects to JSON strings.
|
9
|
+
*
|
10
|
+
* @module json
|
11
|
+
* @class JSON
|
12
|
+
* @namespace YAHOO.lang
|
13
|
+
* @static
|
14
|
+
*/
|
15
|
+
(function () {
|
16
|
+
|
17
|
+
var l = YAHOO.lang,
|
18
|
+
isFunction = l.isFunction,
|
19
|
+
isObject = l.isObject,
|
20
|
+
isArray = l.isArray,
|
21
|
+
_toStr = Object.prototype.toString,
|
22
|
+
// 'this' is the global object. window in browser env. Keep
|
23
|
+
// the code env agnostic. Caja requies window, unfortunately.
|
24
|
+
Native = (YAHOO.env.ua.caja ? window : this).JSON,
|
25
|
+
|
26
|
+
/* Variables used by parse */
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Replace certain Unicode characters that JavaScript may handle incorrectly
|
30
|
+
* during eval--either by deleting them or treating them as line
|
31
|
+
* endings--with escape sequences.
|
32
|
+
* IMPORTANT NOTE: This regex will be used to modify the input if a match is
|
33
|
+
* found.
|
34
|
+
*
|
35
|
+
* @property _UNICODE_EXCEPTIONS
|
36
|
+
* @type {RegExp}
|
37
|
+
* @private
|
38
|
+
*/
|
39
|
+
_UNICODE_EXCEPTIONS = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
40
|
+
|
41
|
+
/**
|
42
|
+
* First step in the safety evaluation. Regex used to replace all escape
|
43
|
+
* sequences (i.e. "\\", etc) with '@' characters (a non-JSON character).
|
44
|
+
*
|
45
|
+
* @property _ESCAPES
|
46
|
+
* @type {RegExp}
|
47
|
+
* @static
|
48
|
+
* @private
|
49
|
+
*/
|
50
|
+
_ESCAPES = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Second step in the safety evaluation. Regex used to replace all simple
|
54
|
+
* values with ']' characters.
|
55
|
+
*
|
56
|
+
* @property _VALUES
|
57
|
+
* @type {RegExp}
|
58
|
+
* @static
|
59
|
+
* @private
|
60
|
+
*/
|
61
|
+
_VALUES = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Third step in the safety evaluation. Regex used to remove all open
|
65
|
+
* square brackets following a colon, comma, or at the beginning of the
|
66
|
+
* string.
|
67
|
+
*
|
68
|
+
* @property _BRACKETS
|
69
|
+
* @type {RegExp}
|
70
|
+
* @static
|
71
|
+
* @private
|
72
|
+
*/
|
73
|
+
_BRACKETS = /(?:^|:|,)(?:\s*\[)+/g,
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Final step in the safety evaluation. Regex used to test the string left
|
77
|
+
* after all previous replacements for invalid characters.
|
78
|
+
*
|
79
|
+
* @property _UNSAFE
|
80
|
+
* @type {RegExp}
|
81
|
+
* @static
|
82
|
+
* @private
|
83
|
+
*/
|
84
|
+
_UNSAFE = /^[\],:{}\s]*$/,
|
85
|
+
|
86
|
+
|
87
|
+
/* Variables used by stringify */
|
88
|
+
|
89
|
+
/**
|
90
|
+
* Regex used to replace special characters in strings for JSON
|
91
|
+
* stringification.
|
92
|
+
*
|
93
|
+
* @property _SPECIAL_CHARS
|
94
|
+
* @type {RegExp}
|
95
|
+
* @static
|
96
|
+
* @private
|
97
|
+
*/
|
98
|
+
_SPECIAL_CHARS = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Character substitution map for common escapes and special characters.
|
102
|
+
*
|
103
|
+
* @property _CHARS
|
104
|
+
* @type {Object}
|
105
|
+
* @static
|
106
|
+
* @private
|
107
|
+
*/
|
108
|
+
_CHARS = {
|
109
|
+
'\b': '\\b',
|
110
|
+
'\t': '\\t',
|
111
|
+
'\n': '\\n',
|
112
|
+
'\f': '\\f',
|
113
|
+
'\r': '\\r',
|
114
|
+
'"' : '\\"',
|
115
|
+
'\\': '\\\\'
|
116
|
+
},
|
117
|
+
|
118
|
+
UNDEFINED = 'undefined',
|
119
|
+
OBJECT = 'object',
|
120
|
+
NULL = 'null',
|
121
|
+
STRING = 'string',
|
122
|
+
NUMBER = 'number',
|
123
|
+
BOOLEAN = 'boolean',
|
124
|
+
DATE = 'date',
|
125
|
+
_allowable = {
|
126
|
+
'undefined' : UNDEFINED,
|
127
|
+
'string' : STRING,
|
128
|
+
'[object String]' : STRING,
|
129
|
+
'number' : NUMBER,
|
130
|
+
'[object Number]' : NUMBER,
|
131
|
+
'boolean' : BOOLEAN,
|
132
|
+
'[object Boolean]' : BOOLEAN,
|
133
|
+
'[object Date]' : DATE,
|
134
|
+
'[object RegExp]' : OBJECT
|
135
|
+
},
|
136
|
+
EMPTY = '',
|
137
|
+
OPEN_O = '{',
|
138
|
+
CLOSE_O = '}',
|
139
|
+
OPEN_A = '[',
|
140
|
+
CLOSE_A = ']',
|
141
|
+
COMMA = ',',
|
142
|
+
COMMA_CR = ",\n",
|
143
|
+
CR = "\n",
|
144
|
+
COLON = ':',
|
145
|
+
COLON_SP = ': ',
|
146
|
+
QUOTE = '"';
|
147
|
+
|
148
|
+
// Only accept JSON objects that report a [[Class]] of JSON
|
149
|
+
Native = _toStr.call(Native) === '[object JSON]' && Native;
|
150
|
+
|
151
|
+
// Escapes a special character to a safe Unicode representation
|
152
|
+
function _char(c) {
|
153
|
+
if (!_CHARS[c]) {
|
154
|
+
_CHARS[c] = '\\u'+('0000'+(+(c.charCodeAt(0))).toString(16)).slice(-4);
|
155
|
+
}
|
156
|
+
return _CHARS[c];
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
/* functions used by parse */
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Traverses nested objects, applying a filter or reviver function to
|
164
|
+
* each value. The value returned from the function will replace the
|
165
|
+
* original value in the key:value pair. If the value returned is
|
166
|
+
* undefined, the key will be omitted from the returned object.
|
167
|
+
*
|
168
|
+
* @method _revive
|
169
|
+
* @param data {MIXED} Any JavaScript data
|
170
|
+
* @param reviver {Function} filter or mutation function
|
171
|
+
* @return {MIXED} The results of the filtered/mutated data structure
|
172
|
+
* @private
|
173
|
+
*/
|
174
|
+
function _revive(data, reviver) {
|
175
|
+
var walk = function (o,key) {
|
176
|
+
var k,v,value = o[key];
|
177
|
+
if (value && typeof value === 'object') {
|
178
|
+
for (k in value) {
|
179
|
+
if (l.hasOwnProperty(value,k)) {
|
180
|
+
v = walk(value, k);
|
181
|
+
if (v === undefined) {
|
182
|
+
delete value[k];
|
183
|
+
} else {
|
184
|
+
value[k] = v;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
return reviver.call(o,key,value);
|
190
|
+
};
|
191
|
+
|
192
|
+
return typeof reviver === 'function' ? walk({'':data},'') : data;
|
193
|
+
}
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Replace certain Unicode characters that may be handled incorrectly by
|
197
|
+
* some browser implementations.
|
198
|
+
*
|
199
|
+
* @method _prepare
|
200
|
+
* @param s {String} parse input
|
201
|
+
* @return {String} sanitized JSON string ready to be validated/parsed
|
202
|
+
* @private
|
203
|
+
*/
|
204
|
+
function _prepare(s) {
|
205
|
+
return s.replace(_UNICODE_EXCEPTIONS, _char);
|
206
|
+
}
|
207
|
+
|
208
|
+
function _isSafe(str) {
|
209
|
+
return l.isString(str) &&
|
210
|
+
_UNSAFE.test(str.replace(_ESCAPES,'@').
|
211
|
+
replace(_VALUES,']').
|
212
|
+
replace(_BRACKETS,''));
|
213
|
+
}
|
214
|
+
|
215
|
+
function _parse(s,reviver) {
|
216
|
+
// sanitize
|
217
|
+
s = _prepare(s);
|
218
|
+
|
219
|
+
// Ensure valid JSON
|
220
|
+
if (_isSafe(s)) {
|
221
|
+
// Eval the text into a JavaScript data structure, apply the
|
222
|
+
// reviver function if provided, and return
|
223
|
+
return _revive( eval('(' + s + ')'), reviver );
|
224
|
+
}
|
225
|
+
|
226
|
+
// The text is not valid JSON
|
227
|
+
throw new SyntaxError('JSON.parse');
|
228
|
+
}
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
/* functions used by stringify */
|
233
|
+
|
234
|
+
// Utility function used to determine how to serialize a variable.
|
235
|
+
function _type(o) {
|
236
|
+
var t = typeof o;
|
237
|
+
return _allowable[t] || // number, string, boolean, undefined
|
238
|
+
_allowable[_toStr.call(o)] || // Number, String, Boolean, Date
|
239
|
+
(t === OBJECT ?
|
240
|
+
(o ? OBJECT : NULL) : // object, array, null, misc natives
|
241
|
+
UNDEFINED); // function, unknown
|
242
|
+
}
|
243
|
+
|
244
|
+
// Enclose escaped strings in quotes
|
245
|
+
function _string(s) {
|
246
|
+
return QUOTE + s.replace(_SPECIAL_CHARS, _char) + QUOTE;
|
247
|
+
}
|
248
|
+
|
249
|
+
// Adds the provided space to the beginning of every line in the input string
|
250
|
+
function _indent(s,space) {
|
251
|
+
return s.replace(/^/gm, space);
|
252
|
+
}
|
253
|
+
|
254
|
+
// JavaScript implementation of stringify (see API declaration of stringify)
|
255
|
+
function _stringify(o,w,space) {
|
256
|
+
if (o === undefined) {
|
257
|
+
return undefined;
|
258
|
+
}
|
259
|
+
|
260
|
+
var replacer = isFunction(w) ? w : null,
|
261
|
+
format = _toStr.call(space).match(/String|Number/) || [],
|
262
|
+
_date = YAHOO.lang.JSON.dateToString,
|
263
|
+
stack = [],
|
264
|
+
tmp,i,len;
|
265
|
+
|
266
|
+
if (replacer || !isArray(w)) {
|
267
|
+
w = undefined;
|
268
|
+
}
|
269
|
+
|
270
|
+
// Ensure whitelist keys are unique (bug 2110391)
|
271
|
+
if (w) {
|
272
|
+
tmp = {};
|
273
|
+
for (i = 0, len = w.length; i < len; ++i) {
|
274
|
+
tmp[w[i]] = true;
|
275
|
+
}
|
276
|
+
w = tmp;
|
277
|
+
}
|
278
|
+
|
279
|
+
// Per the spec, strings are truncated to 10 characters and numbers
|
280
|
+
// are converted to that number of spaces (max 10)
|
281
|
+
space = format[0] === 'Number' ?
|
282
|
+
new Array(Math.min(Math.max(0,space),10)+1).join(" ") :
|
283
|
+
(space || EMPTY).slice(0,10);
|
284
|
+
|
285
|
+
function _serialize(h,key) {
|
286
|
+
var value = h[key],
|
287
|
+
t = _type(value),
|
288
|
+
a = [],
|
289
|
+
colon = space ? COLON_SP : COLON,
|
290
|
+
arr, i, keys, k, v;
|
291
|
+
|
292
|
+
// Per the ECMA 5 spec, toJSON is applied before the replacer is
|
293
|
+
// called. Also per the spec, Date.prototype.toJSON has been added, so
|
294
|
+
// Date instances should be serialized prior to exposure to the
|
295
|
+
// replacer. I disagree with this decision, but the spec is the spec.
|
296
|
+
if (isObject(value) && isFunction(value.toJSON)) {
|
297
|
+
value = value.toJSON(key);
|
298
|
+
} else if (t === DATE) {
|
299
|
+
value = _date(value);
|
300
|
+
}
|
301
|
+
|
302
|
+
if (isFunction(replacer)) {
|
303
|
+
value = replacer.call(h,key,value);
|
304
|
+
}
|
305
|
+
|
306
|
+
if (value !== h[key]) {
|
307
|
+
t = _type(value);
|
308
|
+
}
|
309
|
+
|
310
|
+
switch (t) {
|
311
|
+
case DATE : // intentional fallthrough. Pre-replacer Dates are
|
312
|
+
// serialized in the toJSON stage. Dates here would
|
313
|
+
// have been produced by the replacer.
|
314
|
+
case OBJECT : break;
|
315
|
+
case STRING : return _string(value);
|
316
|
+
case NUMBER : return isFinite(value) ? value+EMPTY : NULL;
|
317
|
+
case BOOLEAN : return value+EMPTY;
|
318
|
+
case NULL : return NULL;
|
319
|
+
default : return undefined;
|
320
|
+
}
|
321
|
+
|
322
|
+
// Check for cyclical references in nested objects
|
323
|
+
for (i = stack.length - 1; i >= 0; --i) {
|
324
|
+
if (stack[i] === value) {
|
325
|
+
throw new Error("JSON.stringify. Cyclical reference");
|
326
|
+
}
|
327
|
+
}
|
328
|
+
|
329
|
+
arr = isArray(value);
|
330
|
+
|
331
|
+
// Add the object to the processing stack
|
332
|
+
stack.push(value);
|
333
|
+
|
334
|
+
if (arr) { // Array
|
335
|
+
for (i = value.length - 1; i >= 0; --i) {
|
336
|
+
a[i] = _serialize(value, i) || NULL;
|
337
|
+
}
|
338
|
+
} else { // Object
|
339
|
+
// If whitelist provided, take only those keys
|
340
|
+
keys = w || value;
|
341
|
+
i = 0;
|
342
|
+
|
343
|
+
for (k in keys) {
|
344
|
+
if (keys.hasOwnProperty(k)) {
|
345
|
+
v = _serialize(value, k);
|
346
|
+
if (v) {
|
347
|
+
a[i++] = _string(k) + colon + v;
|
348
|
+
}
|
349
|
+
}
|
350
|
+
}
|
351
|
+
}
|
352
|
+
|
353
|
+
// remove the array from the stack
|
354
|
+
stack.pop();
|
355
|
+
|
356
|
+
if (space && a.length) {
|
357
|
+
return arr ?
|
358
|
+
OPEN_A + CR + _indent(a.join(COMMA_CR), space) + CR + CLOSE_A :
|
359
|
+
OPEN_O + CR + _indent(a.join(COMMA_CR), space) + CR + CLOSE_O;
|
360
|
+
} else {
|
361
|
+
return arr ?
|
362
|
+
OPEN_A + a.join(COMMA) + CLOSE_A :
|
363
|
+
OPEN_O + a.join(COMMA) + CLOSE_O;
|
364
|
+
}
|
365
|
+
}
|
366
|
+
|
367
|
+
// process the input
|
368
|
+
return _serialize({'':o},'');
|
369
|
+
}
|
370
|
+
|
371
|
+
|
372
|
+
/* Public API */
|
373
|
+
YAHOO.lang.JSON = {
|
374
|
+
/**
|
375
|
+
* Leverage native JSON parse if the browser has a native implementation.
|
376
|
+
* In general, this is a good idea. See the Known Issues section in the
|
377
|
+
* JSON user guide for caveats. The default value is true for browsers with
|
378
|
+
* native JSON support.
|
379
|
+
*
|
380
|
+
* @property useNativeParse
|
381
|
+
* @type Boolean
|
382
|
+
* @default true
|
383
|
+
* @static
|
384
|
+
*/
|
385
|
+
useNativeParse : !!Native,
|
386
|
+
|
387
|
+
/**
|
388
|
+
* Leverage native JSON stringify if the browser has a native
|
389
|
+
* implementation. In general, this is a good idea. See the Known Issues
|
390
|
+
* section in the JSON user guide for caveats. The default value is true
|
391
|
+
* for browsers with native JSON support.
|
392
|
+
*
|
393
|
+
* @property useNativeStringify
|
394
|
+
* @type Boolean
|
395
|
+
* @default true
|
396
|
+
* @static
|
397
|
+
*/
|
398
|
+
useNativeStringify : !!Native,
|
399
|
+
|
400
|
+
/**
|
401
|
+
* Four step determination whether a string is safe to eval. In three steps,
|
402
|
+
* escape sequences, safe values, and properly placed open square brackets
|
403
|
+
* are replaced with placeholders or removed. Then in the final step, the
|
404
|
+
* result of all these replacements is checked for invalid characters.
|
405
|
+
*
|
406
|
+
* @method isSafe
|
407
|
+
* @param str {String} JSON string to be tested
|
408
|
+
* @return {boolean} is the string safe for eval?
|
409
|
+
* @static
|
410
|
+
*/
|
411
|
+
isSafe : function (s) {
|
412
|
+
return _isSafe(_prepare(s));
|
413
|
+
},
|
414
|
+
|
415
|
+
/**
|
416
|
+
* <p>Parse a JSON string, returning the native JavaScript
|
417
|
+
* representation.</p>
|
418
|
+
*
|
419
|
+
* <p>When lang.JSON.useNativeParse is true, this will defer to the native
|
420
|
+
* JSON.parse if the browser has a native implementation. Otherwise, a
|
421
|
+
* JavaScript implementation based on http://www.json.org/json2.js
|
422
|
+
* is used.</p>
|
423
|
+
*
|
424
|
+
* @method parse
|
425
|
+
* @param s {string} JSON string data
|
426
|
+
* @param reviver {function} (optional) function(k,v) passed each key:value
|
427
|
+
* pair of object literals, allowing pruning or altering values
|
428
|
+
* @return {MIXED} the native JavaScript representation of the JSON string
|
429
|
+
* @throws SyntaxError
|
430
|
+
* @static
|
431
|
+
*/
|
432
|
+
parse : function (s,reviver) {
|
433
|
+
return Native && YAHOO.lang.JSON.useNativeParse ?
|
434
|
+
Native.parse(s,reviver) : _parse(s,reviver);
|
435
|
+
},
|
436
|
+
|
437
|
+
/**
|
438
|
+
* <p>Converts an arbitrary value to a JSON string representation.</p>
|
439
|
+
*
|
440
|
+
* <p>Objects with cyclical references will trigger an exception.</p>
|
441
|
+
*
|
442
|
+
* <p>If a whitelist is provided, only matching object keys will be
|
443
|
+
* included. Alternately, a replacer function may be passed as the
|
444
|
+
* second parameter. This function is executed on every value in the
|
445
|
+
* input, and its return value will be used in place of the original value.
|
446
|
+
* This is useful to serialize specialized objects or class instances.</p>
|
447
|
+
*
|
448
|
+
* <p>If a positive integer or non-empty string is passed as the third
|
449
|
+
* parameter, the output will be formatted with carriage returns and
|
450
|
+
* indentation for readability. If a String is passed (such as "\t") it
|
451
|
+
* will be used once for each indentation level. If a number is passed,
|
452
|
+
* that number of spaces will be used.</p>
|
453
|
+
*
|
454
|
+
* <p>When lang.JSON.useNativeStringify is true, this will defer to the
|
455
|
+
* native JSON.stringify if the browser has a native implementation.
|
456
|
+
* Otherwise, a JavaScript implementation is used.</p>
|
457
|
+
*
|
458
|
+
* @method stringify
|
459
|
+
* @param o {MIXED} any arbitrary object to convert to JSON string
|
460
|
+
* @param w {Array|Function} (optional) whitelist of acceptable object keys
|
461
|
+
* to include OR a function(value,key) to alter values
|
462
|
+
* before serialization
|
463
|
+
* @param space {Number|String} (optional) indentation character(s) or
|
464
|
+
* depthy of spaces to format the output
|
465
|
+
* @return {string} JSON string representation of the input
|
466
|
+
* @throws Error
|
467
|
+
* @static
|
468
|
+
*/
|
469
|
+
stringify : function (o,w,space) {
|
470
|
+
return Native && YAHOO.lang.JSON.useNativeStringify ?
|
471
|
+
Native.stringify(o,w,space) : _stringify(o,w,space);
|
472
|
+
},
|
473
|
+
|
474
|
+
/**
|
475
|
+
* Serializes a Date instance as a UTC date string. Used internally by
|
476
|
+
* the JavaScript implementation of stringify. If you need a different
|
477
|
+
* Date serialization format, override this method. If you change this,
|
478
|
+
* you should also set useNativeStringify to false, since native JSON
|
479
|
+
* implementations serialize Dates per the ECMAScript 5 spec. You've been
|
480
|
+
* warned.
|
481
|
+
*
|
482
|
+
* @method dateToString
|
483
|
+
* @param d {Date} The Date to serialize
|
484
|
+
* @return {String} stringified Date in UTC format YYYY-MM-DDTHH:mm:SSZ
|
485
|
+
* @static
|
486
|
+
*/
|
487
|
+
dateToString : function (d) {
|
488
|
+
function _zeroPad(v) {
|
489
|
+
return v < 10 ? '0' + v : v;
|
490
|
+
}
|
491
|
+
|
492
|
+
return d.getUTCFullYear() + '-' +
|
493
|
+
_zeroPad(d.getUTCMonth() + 1) + '-' +
|
494
|
+
_zeroPad(d.getUTCDate()) + 'T' +
|
495
|
+
_zeroPad(d.getUTCHours()) + COLON +
|
496
|
+
_zeroPad(d.getUTCMinutes()) + COLON +
|
497
|
+
_zeroPad(d.getUTCSeconds()) + 'Z';
|
498
|
+
},
|
499
|
+
|
500
|
+
/**
|
501
|
+
* Reconstitute Date instances from the default JSON UTC serialization.
|
502
|
+
* Reference this from a reviver function to rebuild Dates during the
|
503
|
+
* parse operation.
|
504
|
+
*
|
505
|
+
* @method stringToDate
|
506
|
+
* @param str {String} String serialization of a Date
|
507
|
+
* @return {Date}
|
508
|
+
*/
|
509
|
+
stringToDate : function (str) {
|
510
|
+
var m = str.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{3}))?Z$/);
|
511
|
+
if (m) {
|
512
|
+
var d = new Date();
|
513
|
+
d.setUTCFullYear(m[1], m[2]-1, m[3]);
|
514
|
+
d.setUTCHours(m[4], m[5], m[6], (m[7] || 0));
|
515
|
+
return d;
|
516
|
+
}
|
517
|
+
return str;
|
518
|
+
}
|
519
|
+
};
|
520
|
+
|
521
|
+
/**
|
522
|
+
* <p>Four step determination whether a string is safe to eval. In three steps,
|
523
|
+
* escape sequences, safe values, and properly placed open square brackets
|
524
|
+
* are replaced with placeholders or removed. Then in the final step, the
|
525
|
+
* result of all these replacements is checked for invalid characters.</p>
|
526
|
+
*
|
527
|
+
* <p>This is an alias for isSafe.</p>
|
528
|
+
*
|
529
|
+
* @method isValid
|
530
|
+
* @param str {String} JSON string to be tested
|
531
|
+
* @return {boolean} is the string safe for eval?
|
532
|
+
* @static
|
533
|
+
* @deprecated use isSafe
|
534
|
+
*/
|
535
|
+
YAHOO.lang.JSON.isValid = YAHOO.lang.JSON.isSafe;
|
536
|
+
|
537
|
+
})();
|
538
|
+
YAHOO.register("json", YAHOO.lang.JSON, {version: "2.8.1", build: "19"});
|