code_text
stringlengths
604
999k
repo_name
stringlengths
4
100
file_path
stringlengths
4
873
language
stringclasses
23 values
license
stringclasses
15 values
size
int32
1.02k
999k
CKEDITOR.lang.ko={dir:"ltr",editor:"Rich Text Editor",common:{editorHelp:"Press ALT 0 for help",browseServer:"서버 보기",url:"URL",protocol:"프로토콜",upload:"업로드",uploadSubmit:"서버로 전송",image:"이미지",flash:"플래쉬",form:"폼",checkbox:"체크박스",radio:"라디오버튼",textField:"입력필드",textarea:"입력영역",hiddenField:"숨김필드",button:"버튼",select:"펼침목록",imageButton:"이미지버튼",notSet:"<설정되지 않음>",id:"ID",name:"Name",langDir:"쓰기 방향",langDirLtr:"왼쪽에서 오른쪽 (LTR)",langDirRtl:"오른쪽에서 왼쪽 (RTL)",langCode:"언어 코드",longDescr:"URL 설명",cssClass:"Stylesheet Classes",advisoryTitle:"Advisory Title",cssStyle:"Style",ok:"예",cancel:"아니오",close:"Close",preview:"미리보기",resize:"Resize",generalTab:"General",advancedTab:"자세히",validateNumberFailed:"This value is not a number.",confirmNewPage:"Any unsaved changes to this content will be lost. Are you sure you want to load new page?",confirmCancel:"Some of the options have been changed. Are you sure to close the dialog?",options:"Options",target:"타겟",targetNew:"New Window (_blank)",targetTop:"Topmost Window (_top)",targetSelf:"Same Window (_self)",targetParent:"Parent Window (_parent)",langDirLTR:"왼쪽에서 오른쪽 (LTR)",langDirRTL:"오른쪽에서 왼쪽 (RTL)",styles:"Style",cssClasses:"Stylesheet Classes",width:"너비",height:"높이",align:"정렬",alignLeft:"왼쪽",alignRight:"오른쪽",alignCenter:"가운데",alignTop:"위",alignMiddle:"중간",alignBottom:"아래",invalidValue:"Invalid value.",invalidHeight:"Height must be a number.",invalidWidth:"Width must be a number.",invalidCssLength:'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).',invalidHtmlLength:'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).',invalidInlineStyle:'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.',cssLengthTooltip:"Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).",unavailable:'%1<span class="cke_accessibility">, unavailable</span>'},about:{copy:"Copyright &copy; $1. All rights reserved.",dlgTitle:"About CKEditor",help:"Check $1 for help.",moreInfo:"For licensing information please visit our web site:",title:"About CKEditor",userGuide:"CKEditor User's Guide"},basicstyles:{bold:"진하게",italic:"이텔릭",strike:"취소선",subscript:"아래 첨자",superscript:"위 첨자",underline:"밑줄"},blockquote:{toolbar:"Block Quote"},clipboard:{copy:"복사하기",copyError:"브라우저의 보안설정때문에 복사하기 기능을 실행할 수 없습니다. 키보드 명령을 사용하십시요. (Ctrl/Cmd+C).",cut:"잘라내기",cutError:"브라우저의 보안설정때문에 잘라내기 기능을 실행할 수 없습니다. 키보드 명령을 사용하십시요. (Ctrl/Cmd+X).",paste:"붙여넣기",pasteArea:"Paste Area",pasteMsg:"키보드의 (<STRONG>Ctrl/Cmd+V</STRONG>) 를 이용해서 상자안에 붙여넣고 <STRONG>OK</STRONG> 를 누르세요.",securityMsg:"브러우저 보안 설정으로 인해, 클립보드의 자료를 직접 접근할 수 없습니다. 이 창에 다시 붙여넣기 하십시오.",title:"붙여넣기"},contextmenu:{options:"Context Menu Options"},toolbar:{toolbarCollapse:"Collapse Toolbar",toolbarExpand:"Expand Toolbar",toolbarGroups:{document:"Document",clipboard:"Clipboard/Undo",editing:"Editing",forms:"Forms",basicstyles:"Basic Styles",paragraph:"Paragraph",links:"Links",insert:"Insert",styles:"Styles",colors:"Colors",tools:"Tools"},toolbars:"Editor toolbars"},elementspath:{eleLabel:"Elements path",eleTitle:"%1 element"},list:{bulletedlist:"순서없는 목록",numberedlist:"순서있는 목록"},indent:{indent:"들여쓰기",outdent:"내어쓰기"},format:{label:"포맷",panelTitle:"포맷",tag_address:"Address",tag_div:"Normal (DIV)",tag_h1:"Heading 1",tag_h2:"Heading 2",tag_h3:"Heading 3",tag_h4:"Heading 4",tag_h5:"Heading 5",tag_h6:"Heading 6",tag_p:"Normal",tag_pre:"Formatted"},horizontalrule:{toolbar:"수평선 삽입"},image:{alertUrl:"이미지 URL을 입력하십시요",alt:"이미지 설명",border:"테두리",btnUpload:"서버로 전송",button2Img:"Do you want to transform the selected image button on a simple image?",hSpace:"수평여백",img2Button:"Do you want to transform the selected image on a image button?",infoTab:"이미지 정보",linkTab:"링크",lockRatio:"비율 유지",menu:"이미지 설정",resetSize:"원래 크기로",title:"이미지 설정",titleButton:"이미지버튼 속성",upload:"업로드",urlMissing:"Image source URL is missing.",vSpace:"수직여백",validateBorder:"Border must be a whole number.",validateHSpace:"HSpace must be a whole number.",validateVSpace:"VSpace must be a whole number."},fakeobjects:{anchor:"Anchor",flash:"Flash Animation",hiddenfield:"Hidden Field",iframe:"IFrame",unknown:"Unknown Object"},link:{acccessKey:"엑세스 키",advanced:"자세히",advisoryContentType:"Advisory Content Type",advisoryTitle:"Advisory Title",anchor:{toolbar:"책갈피 삽입/변경",menu:"책갈피 속성",title:"책갈피 속성",name:"책갈피 이름",errorName:"책갈피 이름을 입력하십시요.",remove:"Remove Anchor"},anchorId:"책갈피 ID",anchorName:"책갈피 이름",charset:"Linked Resource Charset",cssClasses:"Stylesheet Classes",emailAddress:"이메일 주소",emailBody:"내용",emailSubject:"제목",id:"ID",info:"링크 정보",langCode:"쓰기 방향",langDir:"쓰기 방향",langDirLTR:"왼쪽에서 오른쪽 (LTR)",langDirRTL:"오른쪽에서 왼쪽 (RTL)",menu:"링크 수정",name:"Name",noAnchors:"(문서에 책갈피가 없습니다.)",noEmail:"이메일주소를 입력하십시요.",noUrl:"링크 URL을 입력하십시요.",other:"<기타>",popupDependent:"Dependent (Netscape)",popupFeatures:"팝업창 설정",popupFullScreen:"전체화면 (IE)",popupLeft:"왼쪽 위치",popupLocationBar:"주소표시줄",popupMenuBar:"메뉴바",popupResizable:"Resizable",popupScrollBars:"스크롤바",popupStatusBar:"상태바",popupToolbar:"툴바",popupTop:"윗쪽 위치",rel:"Relationship",selectAnchor:"책갈피 선택",styles:"Style",tabIndex:"탭 순서",target:"타겟",targetFrame:"<프레임>",targetFrameName:"타겟 프레임 이름",targetPopup:"<팝업창>",targetPopupName:"팝업창 이름",title:"링크",toAnchor:"책갈피",toEmail:"이메일",toUrl:"URL",toolbar:"링크 삽입/변경",type:"링크 종류",unlink:"링크 삭제",upload:"업로드"},magicline:{title:"Insert paragraph here"},maximize:{maximize:"Maximize",minimize:"Minimize"},pastetext:{button:"텍스트로 붙여넣기",title:"텍스트로 붙여넣기"},pastefromword:{confirmCleanup:"The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?",error:"It was not possible to clean up the pasted data due to an internal error",title:"MS Word 형식에서 붙여넣기",toolbar:"MS Word 형식에서 붙여넣기"},removeformat:{toolbar:"포맷 지우기"},sourcearea:{toolbar:"소스"},specialchar:{options:"Special Character Options",title:"특수문자 선택",toolbar:"특수문자 삽입"},scayt:{about:"About SCAYT",aboutTab:"About",addWord:"Add Word",allCaps:"Ignore All-Caps Words",dic_create:"Create",dic_delete:"Delete",dic_field_name:"Dictionary name",dic_info:"Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.",dic_rename:"Rename",dic_restore:"Restore",dictionariesTab:"Dictionaries",disable:"Disable SCAYT",emptyDic:"Dictionary name should not be empty.",enable:"Enable SCAYT",ignore:"Ignore",ignoreAll:"Ignore All",ignoreDomainNames:"Ignore Domain Names",langs:"Languages",languagesTab:"Languages",mixedCase:"Ignore Words with Mixed Case",mixedWithDigits:"Ignore Words with Numbers",moreSuggestions:"More suggestions",opera_title:"Not supported by Opera",options:"Options",optionsTab:"Options",title:"Spell Check As You Type",toggle:"Toggle SCAYT",noSuggestions:"No suggestion"},stylescombo:{label:"스타일",panelTitle:"Formatting Styles",panelTitle1:"Block Styles",panelTitle2:"Inline Styles",panelTitle3:"Object Styles"},table:{border:"테두리 크기",caption:"캡션",cell:{menu:"셀/칸(Cell)",insertBefore:"앞에 셀/칸 삽입",insertAfter:"뒤에 셀/칸 삽입",deleteCell:"셀 삭제",merge:"셀 합치기",mergeRight:"오른쪽 뭉치기",mergeDown:"왼쪽 뭉치기",splitHorizontal:"수평 나누기",splitVertical:"수직 나누기",title:"Cell Properties",cellType:"Cell Type",rowSpan:"Rows Span",colSpan:"Columns Span",wordWrap:"Word Wrap",hAlign:"Horizontal Alignment",vAlign:"Vertical Alignment",alignBaseline:"Baseline",bgColor:"Background Color",borderColor:"Border Color",data:"Data",header:"Header",yes:"Yes",no:"No",invalidWidth:"Cell width must be a number.",invalidHeight:"Cell height must be a number.",invalidRowSpan:"Rows span must be a whole number.",invalidColSpan:"Columns span must be a whole number.",chooseColor:"Choose"},cellPad:"셀 여백",cellSpace:"셀 간격",column:{menu:"열(Column)",insertBefore:"앞에 열 삽입",insertAfter:"뒤에 열 삽입",deleteColumn:"세로줄 삭제"},columns:"세로줄",deleteTable:"표 삭제",headers:"Headers",headersBoth:"Both",headersColumn:"First column",headersNone:"None",headersRow:"First Row",invalidBorder:"Border size must be a number.",invalidCellPadding:"Cell padding must be a positive number.",invalidCellSpacing:"Cell spacing must be a positive number.",invalidCols:"Number of columns must be a number greater than 0.",invalidHeight:"Table height must be a number.",invalidRows:"Number of rows must be a number greater than 0.",invalidWidth:"Table width must be a number.",menu:"표 설정",row:{menu:"행(Row)",insertBefore:"앞에 행 삽입",insertAfter:"뒤에 행 삽입",deleteRow:"가로줄 삭제"},rows:"가로줄",summary:"Summary",title:"표 설정",toolbar:"표",widthPc:"퍼센트",widthPx:"픽셀",widthUnit:"width unit"},undo:{redo:"재실행",undo:"취소"},wsc:{btnIgnore:"건너뜀",btnIgnoreAll:"모두 건너뜀",btnReplace:"변경",btnReplaceAll:"모두 변경",btnUndo:"취소",changeTo:"변경할 단어",errorLoading:"Error loading application service host: %s.",ieSpellDownload:"철자 검사기가 철치되지 않았습니다. 지금 다운로드하시겠습니까?",manyChanges:"철자검사 완료: %1 단어가 변경되었습니다.",noChanges:"철자검사 완료: 변경된 단어가 없습니다.",noMispell:"철자검사 완료: 잘못된 철자가 없습니다.",noSuggestions:"- 추천단어 없음 -",notAvailable:"Sorry, but service is unavailable now.",notInDic:"사전에 없는 단어",oneChange:"철자검사 완료: 단어가 변경되었습니다.",progress:"철자검사를 진행중입니다...",title:"Spell Check",toolbar:"철자검사"}};
redapple/cdnjs
ajax/libs/ckeditor/4.0.1/lang/ko.min.js
JavaScript
mit
11,357
CKEDITOR.lang.ru={dir:"ltr",editor:"Визуальный редактор текста",common:{editorHelp:"нажмите ALT-0 для открытия справки",browseServer:"Выбор на сервере",url:"Ссылка",protocol:"Протокол",upload:"Загрузка",uploadSubmit:"Загрузить на сервер",image:"Изображение",flash:"Flash",form:"Форма",checkbox:"Флаговая кнопка",radio:"Кнопка выбора",textField:"Текстовое поле",textarea:"Многострочное текстовое поле",hiddenField:"Скрытое поле",button:"Кнопка",select:"Список выбора",imageButton:"Изображение-кнопка",notSet:"<не указано>",id:"Идентификатор",name:"Имя",langDir:"Направление текста",langDirLtr:"Слева направо (LTR)",langDirRtl:"Справа налево (RTL)",langCode:"Код языка",longDescr:"Длинное описание ссылки",cssClass:"Класс CSS",advisoryTitle:"Заголовок",cssStyle:"Стиль",ok:"ОК",cancel:"Отмена",close:"Закрыть",preview:"Предпросмотр",resize:"Перетащите для изменения размера",generalTab:"Основное",advancedTab:"Дополнительно",validateNumberFailed:"Это значение не является числом.",confirmNewPage:"Несохранённые изменения будут потеряны! Вы действительно желаете перейти на другую страницу?",confirmCancel:"Некоторые параметры были изменены. Вы уверены, что желаете закрыть без сохранения?",options:"Параметры",target:"Цель",targetNew:"Новое окно (_blank)",targetTop:"Главное окно (_top)",targetSelf:"Текущее окно (_self)",targetParent:"Родительское окно (_parent)",langDirLTR:"Слева направо (LTR)",langDirRTL:"Справа налево (RTL)",styles:"Стиль",cssClasses:"Классы CSS",width:"Ширина",height:"Высота",align:"Выравнивание",alignLeft:"По левому краю",alignRight:"По правому краю",alignCenter:"По центру",alignTop:"По верху",alignMiddle:"По середине",alignBottom:"По низу",invalidValue:"Недопустимое значение.",invalidHeight:"Высота задается числом.",invalidWidth:"Ширина задается числом.",invalidCssLength:'Значение, указанное в поле "%1", должно быть положительным целым числом. Допускается указание единиц меры CSS (px, %, in, cm, mm, em, ex, pt или pc).',invalidHtmlLength:'Значение, указанное в поле "%1", должно быть положительным целым числом. Допускается указание единиц меры HTML (px или %).',invalidInlineStyle:'Значение, указанное для стиля элемента, должно состоять из одной или нескольких пар данных в формате "параметр : значение", разделённых точкой с запятой.',cssLengthTooltip:"Введите значение в пикселях, либо число с корректной единицей меры CSS (px, %, in, cm, mm, em, ex, pt или pc).",unavailable:'%1<span class="cke_accessibility">, недоступно</span>'},about:{copy:"Copyright &copy; $1. Все права защищены.",dlgTitle:"О CKEditor",help:"$1 содержит подробную справку по использованию.",moreInfo:"Для получения информации о лицензии, пожалуйста, перейдите на наш сайт:",title:"О CKEditor",userGuide:"Руководство пользователя CKEditor"},basicstyles:{bold:"Полужирный",italic:"Курсив",strike:"Зачеркнутый",subscript:"Подстрочный индекс",superscript:"Надстрочный индекс",underline:"Подчеркнутый"},blockquote:{toolbar:"Цитата"},clipboard:{copy:"Копировать",copyError:"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по копированию текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+C).",cut:"Вырезать",cutError:"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по вырезке текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+X).",paste:"Вставить",pasteArea:"Зона для вставки",pasteMsg:'Пожалуйста, вставьте текст в зону ниже, используя клавиатуру (<strong>Ctrl/Cmd+V</strong>) и нажмите кнопку "OK".',securityMsg:"Настройки безопасности вашего браузера не разрешают редактору напрямую обращаться к буферу обмена. Вы должны вставить текст снова в это окно.",title:"Вставить"},contextmenu:{options:"Параметры контекстного меню"},toolbar:{toolbarCollapse:"Свернуть панель инструментов",toolbarExpand:"Развернуть панель инструментов",toolbarGroups:{document:"Документ",clipboard:"Буфер обмена / Отмена действий",editing:"Корректировка",forms:"Формы",basicstyles:"Простые стили",paragraph:"Абзац",links:"Ссылки",insert:"Вставка",styles:"Стили",colors:"Цвета",tools:"Инструменты"},toolbars:"Панели инструментов редактора"},elementspath:{eleLabel:"Путь элементов",eleTitle:"Элемент %1"},list:{bulletedlist:"Вставить / удалить маркированный список",numberedlist:"Вставить / удалить нумерованный список"},indent:{indent:"Увеличить отступ",outdent:"Уменьшить отступ"},format:{label:"Форматирование",panelTitle:"Форматирование",tag_address:"Адрес",tag_div:"Обычное (div)",tag_h1:"Заголовок 1",tag_h2:"Заголовок 2",tag_h3:"Заголовок 3",tag_h4:"Заголовок 4",tag_h5:"Заголовок 5",tag_h6:"Заголовок 6",tag_p:"Обычное",tag_pre:"Моноширинное"},horizontalrule:{toolbar:"Вставить горизонтальную линию"},image:{alertUrl:"Пожалуйста, введите ссылку на изображение",alt:"Альтернативный текст",border:"Граница",btnUpload:"Загрузить на сервер",button2Img:"Вы желаете преобразовать это изображение-кнопку в обычное изображение?",hSpace:"Гориз. отступ",img2Button:"Вы желаете преобразовать это обычное изображение в изображение-кнопку?",infoTab:"Данные об изображении",linkTab:"Ссылка",lockRatio:"Сохранять пропорции",menu:"Свойства изображения",resetSize:"Вернуть обычные размеры",title:"Свойства изображения",titleButton:"Свойства изображения-кнопки",upload:"Загрузить",urlMissing:"Не указана ссылка на изображение.",vSpace:"Вертик. отступ",validateBorder:"Размер границ должен быть задан числом.",validateHSpace:"Горизонтальный отступ должен быть задан числом.",validateVSpace:"Вертикальный отступ должен быть задан числом."},fakeobjects:{anchor:"Якорь",flash:"Flash анимация",hiddenfield:"Скрытое поле",iframe:"iFrame",unknown:"Неизвестный объект"},link:{acccessKey:"Клавиша доступа",advanced:"Дополнительно",advisoryContentType:"Тип содержимого",advisoryTitle:"Заголовок",anchor:{toolbar:"Вставить / редактировать якорь",menu:"Изменить якорь",title:"Свойства якоря",name:"Имя якоря",errorName:"Пожалуйста, введите имя якоря",remove:"Удалить якорь"},anchorId:"По идентификатору",anchorName:"По имени",charset:"Кодировка ресурса",cssClasses:"Классы CSS",emailAddress:"Email адрес",emailBody:"Текст сообщения",emailSubject:"Тема сообщения",id:"Идентификатор",info:"Информация о ссылке",langCode:"Код языка",langDir:"Направление текста",langDirLTR:"Слева направо (LTR)",langDirRTL:"Справа налево (RTL)",menu:"Редактировать ссылку",name:"Имя",noAnchors:"(В документе нет ни одного якоря)",noEmail:"Пожалуйста, введите email адрес",noUrl:"Пожалуйста, введите ссылку",other:"<другой>",popupDependent:"Зависимое (Netscape)",popupFeatures:"Параметры всплывающего окна",popupFullScreen:"Полноэкранное (IE)",popupLeft:"Отступ слева",popupLocationBar:"Панель адреса",popupMenuBar:"Панель меню",popupResizable:"Изменяемый размер",popupScrollBars:"Полосы прокрутки",popupStatusBar:"Строка состояния",popupToolbar:"Панель инструментов",popupTop:"Отступ сверху",rel:"Отношение",selectAnchor:"Выберите якорь",styles:"Стиль",tabIndex:"Последовательность перехода",target:"Цель",targetFrame:"<фрейм>",targetFrameName:"Имя целевого фрейма",targetPopup:"<всплывающее окно>",targetPopupName:"Имя всплывающего окна",title:"Ссылка",toAnchor:"Ссылка на якорь в тексте",toEmail:"Email",toUrl:"Ссылка",toolbar:"Вставить/Редактировать ссылку",type:"Тип ссылки",unlink:"Убрать ссылку",upload:"Загрузка"},magicline:{title:"Insert paragraph here"},maximize:{maximize:"Развернуть",minimize:"Свернуть"},pastetext:{button:"Вставить только текст",title:"Вставить только текст"},pastefromword:{confirmCleanup:"Текст, который вы желаете вставить, по всей видимости, был скопирован из Word. Следует ли очистить его перед вставкой?",error:"Невозможно очистить вставленные данные из-за внутренней ошибки",title:"Вставить из Word",toolbar:"Вставить из Word"},removeformat:{toolbar:"Убрать форматирование"},sourcearea:{toolbar:"Источник"},specialchar:{options:"Выбор специального символа",title:"Выберите специальный символ",toolbar:"Вставить специальный символ"},scayt:{about:"О SCAYT",aboutTab:"О SCAYT",addWord:"Добавить слово",allCaps:"Игнорировать слова из заглавных букв",dic_create:"Создать",dic_delete:"Удалить",dic_field_name:"Название словаря",dic_info:"Изначально, пользовательский словарь хранится в cookie, которые ограничены в размере. Когда словарь пользователя вырастает до размеров, что его невозможно хранить в cookie, он переносится на хранение на наш сервер. Чтобы сохранить ваш словарь на нашем сервере, вам следует указать название вашего словаря. Если у вас уже был словарь, который вы сохраняли на нашем сервере, то укажите здесь его название и нажмите кнопку Восстановить.",dic_rename:"Переименовать",dic_restore:"Восстановить",dictionariesTab:"Словари",disable:"Отключить SCAYT",emptyDic:"Вы должны указать название словаря.",enable:"Включить SCAYT",ignore:"Пропустить",ignoreAll:"Пропустить всё",ignoreDomainNames:"Игнорировать доменные имена",langs:"Языки",languagesTab:"Языки",mixedCase:"Игнорировать слова из букв в разном регистре",mixedWithDigits:"Игнорировать слова, содержащие цифры",moreSuggestions:"Ещё варианты",opera_title:"Не поддерживается Opera",options:"Настройки",optionsTab:"Параметры",title:"Проверка орфографии по мере ввода (SCAYT)",toggle:"Переключить SCAYT",noSuggestions:"Нет вариантов"},stylescombo:{label:"Стили",panelTitle:"Стили форматирования",panelTitle1:"Стили блока",panelTitle2:"Стили элемента",panelTitle3:"Стили объекта"},table:{border:"Размер границ",caption:"Заголовок",cell:{menu:"Ячейка",insertBefore:"Вставить ячейку слева",insertAfter:"Вставить ячейку справа",deleteCell:"Удалить ячейки",merge:"Объединить ячейки",mergeRight:"Объединить с правой",mergeDown:"Объединить с нижней",splitHorizontal:"Разделить ячейку по горизонтали",splitVertical:"Разделить ячейку по вертикали",title:"Свойства ячейки",cellType:"Тип ячейки",rowSpan:"Объединяет строк",colSpan:"Объединяет колонок",wordWrap:"Перенос по словам",hAlign:"Горизонтальное выравнивание",vAlign:"Вертикальное выравнивание",alignBaseline:"По базовой линии",bgColor:"Цвет фона",borderColor:"Цвет границ",data:"Данные",header:"Заголовок",yes:"Да",no:"Нет",invalidWidth:"Ширина ячейки должна быть числом.",invalidHeight:"Высота ячейки должна быть числом.",invalidRowSpan:"Количество объединяемых строк должно быть задано числом.",invalidColSpan:"Количество объединяемых колонок должно быть задано числом.",chooseColor:"Выберите"},cellPad:"Внутренний отступ ячеек",cellSpace:"Внешний отступ ячеек",column:{menu:"Колонка",insertBefore:"Вставить колонку слева",insertAfter:"Вставить колонку справа",deleteColumn:"Удалить колонки"},columns:"Колонки",deleteTable:"Удалить таблицу",headers:"Заголовки",headersBoth:"Сверху и слева",headersColumn:"Левая колонка",headersNone:"Без заголовков",headersRow:"Верхняя строка",invalidBorder:"Размер границ должен быть числом.",invalidCellPadding:"Внутренний отступ ячеек (cellpadding) должен быть числом.",invalidCellSpacing:"Внешний отступ ячеек (cellspacing) должен быть числом.",invalidCols:"Количество столбцов должно быть больше 0.",invalidHeight:"Высота таблицы должна быть числом.",invalidRows:"Количество строк должно быть больше 0.",invalidWidth:"Ширина таблицы должна быть числом.",menu:"Свойства таблицы",row:{menu:"Строка",insertBefore:"Вставить строку сверху",insertAfter:"Вставить строку снизу",deleteRow:"Удалить строки"},rows:"Строки",summary:"Итоги",title:"Свойства таблицы",toolbar:"Таблица",widthPc:"процентов",widthPx:"пикселей",widthUnit:"единица измерения"},undo:{redo:"Повторить",undo:"Отменить"},wsc:{btnIgnore:"Пропустить",btnIgnoreAll:"Пропустить всё",btnReplace:"Заменить",btnReplaceAll:"Заменить всё",btnUndo:"Отменить",changeTo:"Изменить на",errorLoading:"Произошла ошибка при подключении к серверу проверки орфографии: %s.",ieSpellDownload:"Модуль проверки орфографии не установлен. Хотите скачать его?",manyChanges:"Проверка орфографии завершена. Изменено слов: %1",noChanges:"Проверка орфографии завершена. Не изменено ни одного слова",noMispell:"Проверка орфографии завершена. Ошибок не найдено",noSuggestions:"- Варианты отсутствуют -",notAvailable:"Извините, но в данный момент сервис недоступен.",notInDic:"Отсутствует в словаре",oneChange:"Проверка орфографии завершена. Изменено одно слово",progress:"Орфография проверяется...",title:"Проверка орфографии",toolbar:"Проверить орфографию"}};
kentucky-roberts/cdnjs
ajax/libs/ckeditor/4.0.1/lang/ru.min.js
JavaScript
mit
18,557
ReactIntlMixin.__addLocaleData({"locale":"sah","pluralRuleFunction":function (n) {return"other";},"fields":{"second":{"displayName":"Сөкүүндэ","relative":{"0":"now"},"relativeTime":{"future":{"other":"{0} сөкүүндэннэн"},"past":{"other":"{0} сөкүүндэ ынараа өттүгэр"}}},"minute":{"displayName":"Мүнүүтэ","relativeTime":{"future":{"other":"{0} мүнүүтэннэн"},"past":{"other":"{0} мүнүүтэ ынараа өттүгэр"}}},"hour":{"displayName":"Чаас","relativeTime":{"future":{"other":"{0} чааһынан"},"past":{"other":"{0} чаас ынараа өттүгэр"}}},"day":{"displayName":"Күн","relative":{"0":"Бүгүн","1":"Сарсын","2":"Өйүүн","-2":"Иллэрээ күн","-1":"Бэҕэһээ"},"relativeTime":{"future":{"other":"{0} күнүнэн"},"past":{"other":"{0} күн ынараа өттүгэр"}}},"month":{"displayName":"Ый","relative":{"0":"this month","1":"next month","-1":"last month"},"relativeTime":{"future":{"other":"{0} ыйынан"},"past":{"other":"{0} ый ынараа өттүгэр"}}},"year":{"displayName":"Сыл","relative":{"0":"this year","1":"next year","-1":"last year"},"relativeTime":{"future":{"other":"{0} сылынан"},"past":{"other":"{0} сыл ынараа өттүгэр"}}}}});
him2him2/cdnjs
ajax/libs/react-intl/1.0.2/locale-data/sah.js
JavaScript
mit
1,318
define("ace/theme/clouds",["require","exports","module"],function(e,t){var i=e("pilot/dom"),n=".ace-clouds .ace_editor {\n border: 2px solid rgb(159, 159, 159);\n}\n\n.ace-clouds .ace_editor.ace_focus {\n border: 2px solid #327fbd;\n}\n\n.ace-clouds .ace_gutter {\n width: 50px;\n background: #e8e8e8;\n color: #333;\n overflow : hidden;\n}\n\n.ace-clouds .ace_gutter-layer {\n width: 100%;\n text-align: right;\n}\n\n.ace-clouds .ace_gutter-layer .ace_gutter-cell {\n padding-right: 6px;\n}\n\n.ace-clouds .ace_print_margin {\n width: 1px;\n background: #e8e8e8;\n}\n\n.ace-clouds .ace_scroller {\n background-color: #FFFFFF;\n}\n\n.ace-clouds .ace_text-layer {\n cursor: text;\n color: #000000;\n}\n\n.ace-clouds .ace_cursor {\n border-left: 2px solid #000000;\n}\n\n.ace-clouds .ace_cursor.ace_overwrite {\n border-left: 0px;\n border-bottom: 1px solid #000000;\n}\n \n.ace-clouds .ace_marker-layer .ace_selection {\n background: #BDD5FC;\n}\n\n.ace-clouds .ace_marker-layer .ace_step {\n background: rgb(198, 219, 174);\n}\n\n.ace-clouds .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid #BFBFBF;\n}\n\n.ace-clouds .ace_marker-layer .ace_active_line {\n background: #FFFBD1;\n}\n\n \n.ace-clouds .ace_invisible {\n color: #BFBFBF;\n}\n\n.ace-clouds .ace_keyword {\n color:#AF956F;\n}\n\n.ace-clouds .ace_keyword.ace_operator {\n color:#484848;\n}\n\n.ace-clouds .ace_constant {\n \n}\n\n.ace-clouds .ace_constant.ace_language {\n color:#39946A;\n}\n\n.ace-clouds .ace_constant.ace_library {\n \n}\n\n.ace-clouds .ace_constant.ace_numeric {\n color:#46A609;\n}\n\n.ace-clouds .ace_invalid {\n background-color:#FF002A;\n}\n\n.ace-clouds .ace_invalid.ace_illegal {\n \n}\n\n.ace-clouds .ace_invalid.ace_deprecated {\n \n}\n\n.ace-clouds .ace_support {\n \n}\n\n.ace-clouds .ace_support.ace_function {\n color:#C52727;\n}\n\n.ace-clouds .ace_function.ace_buildin {\n \n}\n\n.ace-clouds .ace_string {\n color:#5D90CD;\n}\n\n.ace-clouds .ace_string.ace_regexp {\n \n}\n\n.ace-clouds .ace_comment {\n color:#BCC8BA;\n}\n\n.ace-clouds .ace_comment.ace_doc {\n \n}\n\n.ace-clouds .ace_comment.ace_doc.ace_tag {\n \n}\n\n.ace-clouds .ace_variable {\n \n}\n\n.ace-clouds .ace_variable.ace_language {\n \n}\n\n.ace-clouds .ace_xml_pe {\n \n}";i.importCssString(n),t.cssClass="ace-clouds"});
perdona/cdnjs
ajax/libs/ace/0.2.0/theme-clouds.min.js
JavaScript
mit
2,360
/* * /MathJax/jax/output/SVG/fonts/TeX/SansSerif/Bold/BasicLatin.js * * Copyright (c) 2009-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS["MathJax_SansSerif-bold"],{32:[0,0,250,0,0,""],33:[694,0,367,110,256,"111 669Q111 680 111 682T113 689T121 693T137 694H184H249Q255 686 256 681Q244 220 239 213Q236 208 229 208T183 207T137 207T127 213T118 431T111 669ZM110 71V95Q110 137 136 144Q140 146 183 146H200Q246 146 254 121Q256 115 256 73V51Q256 9 230 2Q225 0 181 0L138 1Q121 7 113 21L111 28L110 71"],34:[694,-442,558,37,420,"38 687Q42 693 45 693Q46 694 111 694H176Q179 690 183 687V556L144 501Q139 494 134 486T126 474T120 465T114 457T110 451T106 447T102 445T98 443T94 443T89 442H73H62Q37 442 37 453Q37 458 55 501T74 546Q74 548 59 548L44 549L38 555V687ZM275 687Q279 693 282 693Q283 694 348 694H413Q416 690 420 687V556L381 501Q376 494 371 486T363 474T357 465T351 457T347 451T343 447T339 445T335 443T331 443T326 442H310H299Q274 442 274 453Q274 458 292 501T311 546Q311 548 296 548L281 549L275 555V687"],35:[694,193,917,61,855,"61 365Q61 370 62 375T65 383T69 390T74 395T80 399T85 403T90 406L94 407H344L381 536Q418 668 426 680Q431 687 445 692Q451 694 457 694Q477 694 488 682T500 651Q500 645 466 528T431 409Q431 407 504 407H577L609 521Q651 668 656 675Q669 693 691 693Q710 693 721 680T733 651Q733 645 699 528T664 409Q664 407 743 407H823L827 405Q831 403 834 402T841 397T848 389T853 379T855 365Q855 337 823 324L731 323H639L619 253Q599 181 598 180V177H823L827 175Q831 173 834 172T841 167T848 159T853 149T855 135Q855 107 823 94L698 93H573L540 -21Q498 -168 493 -175Q480 -193 458 -193Q439 -193 428 -180T416 -151Q416 -144 450 -27T485 91Q485 93 412 93H340L307 -21Q265 -168 260 -175Q247 -193 225 -193Q206 -193 195 -180T183 -151Q183 -144 217 -27T252 91Q252 93 173 93L94 94Q61 105 61 135Q61 140 62 145T65 153T69 160T74 165T80 169T85 173T90 176L94 177H185L277 178L297 248L318 320V323H206L94 324Q61 335 61 365ZM551 320V323H479Q406 323 405 322Q404 319 385 249T365 178T438 177L510 178L530 248L551 320"],36:[750,56,550,49,488,"231 712L232 716Q232 719 232 722T234 729T239 736T246 743T256 748T271 750Q318 750 318 711V703Q393 692 451 656Q469 645 470 640Q470 635 461 587L453 537Q445 529 442 529Q438 529 424 540T384 565T330 585Q328 585 325 585T320 586L318 587V434Q322 433 333 429T350 424T365 418T382 409T399 397T419 380Q488 313 488 213Q488 24 334 -5L318 -8V-17Q318 -56 279 -56H272Q253 -56 243 -46T232 -30T231 -18V-8H224Q170 2 127 20T68 50T49 67Q49 71 58 122T68 176Q71 182 79 182Q83 182 98 169T145 138T216 110Q228 108 229 108H231V288Q167 299 114 356T61 496Q61 537 70 570T94 624T126 661T162 684T195 696T219 701L228 702H231V712ZM231 521Q231 583 230 583Q226 582 220 579T204 561T193 521Q193 491 212 472Q226 458 230 458Q231 458 231 521ZM318 112Q356 131 356 187Q356 237 318 263V112"],37:[750,57,1029,61,966,"61 549Q61 733 218 749Q220 749 228 749T241 750Q286 750 321 735T369 708T389 683Q422 634 422 548V538Q422 519 420 501T408 453T381 401T328 364T243 347Q61 347 61 549ZM292 549Q292 663 242 663Q221 663 211 648T198 615T196 566V548Q196 471 206 454Q218 434 242 434Q292 434 292 549ZM243 -55Q223 -55 212 -42T201 -13Q201 -2 207 7Q209 11 480 371T758 738Q770 750 788 750Q805 750 817 738T830 709Q830 694 820 681L544 315Q273 -43 269 -47Q258 -55 243 -55ZM606 146Q606 330 763 346Q764 346 773 346T786 347Q831 347 866 332T914 305T934 280Q966 233 966 146V135Q966 115 964 97T952 49T925 -2T872 -40T788 -56Q606 -56 606 146ZM742 146V132Q742 107 743 93T748 62T762 39T787 31Q819 31 832 79Q837 97 837 146Q837 260 787 260Q767 260 757 246T744 214T742 169V146"],38:[716,23,831,47,769,"757 117Q762 117 769 110V3Q759 -7 718 -14T641 -22T571 -15T518 1T477 19T453 31L437 23Q350 -19 257 -22Q158 -22 103 30T47 155Q47 188 57 216T87 263T119 292T151 313L182 333L187 336L181 349Q150 431 150 506Q150 605 211 660T347 716Q417 716 471 668T526 543Q526 517 518 495T471 432T360 343L342 330Q342 327 358 306T402 250T458 189L467 181Q518 225 556 289T607 395L620 437Q622 443 630 443Q631 443 679 430Q718 420 725 418T733 409Q733 402 722 365T670 255T573 123Q562 111 563 111Q589 94 644 94Q678 94 703 100T740 111T757 117ZM397 544Q397 573 384 601T346 629Q320 629 299 607T277 538Q277 484 295 429Q301 413 301 412Q302 409 309 415Q397 476 397 544ZM227 258Q197 228 197 177Q197 150 207 126T234 95Q242 93 251 93Q288 93 337 107L349 110L328 131Q266 196 234 248L227 258"],39:[694,-442,306,80,226,"81 687Q85 693 88 693Q89 694 154 694H219Q222 690 226 687V556L187 501Q182 494 177 486T169 474T163 465T157 457T153 451T149 447T145 445T141 443T137 443T132 442H116H105Q80 442 80 453Q80 458 98 501T117 546Q117 548 102 548L87 549L81 555V687"],40:[750,249,428,79,366,"79 250Q79 352 100 441T152 585T213 678T266 733L287 749Q288 750 324 750H359Q366 741 366 738Q366 734 356 721T329 682T296 623T262 531T238 407Q230 346 230 250Q230 142 244 55T278 -82T318 -165T352 -215T366 -238Q366 -242 359 -249H286L277 -242Q79 -74 79 250"],41:[750,250,428,61,348,"61 737Q61 750 85 750H106H141L150 742Q348 574 348 250T150 -242L141 -249L106 -250H87Q61 -250 61 -238Q61 -233 74 -216Q157 -113 183 51Q197 130 197 250T183 449Q174 505 158 554T126 634T95 687T71 722T61 737"],42:[750,-293,550,67,482,"241 579Q241 582 228 639T215 702Q215 722 233 736T271 750Q296 750 315 736T334 702V697Q334 693 328 664T314 607L308 579L352 620Q389 654 397 660T417 668Q447 668 464 647T482 602Q482 591 479 583T472 569T459 559T443 552T421 546T397 538L342 521L397 504Q405 501 420 497T442 490T458 483T472 473T479 460T482 440Q482 416 465 395T417 374Q406 375 398 381T352 422L308 463L314 435Q321 407 327 378T334 345Q336 333 327 319T296 295Q288 293 275 293Q241 293 227 311T215 345Q215 349 221 378T234 435L241 463L197 422Q160 388 152 382T132 374Q102 374 85 395T67 440Q67 451 70 459T77 473T90 483T106 490T128 496T152 504L207 521L152 538Q144 541 129 545T107 552T91 559T77 569T70 582T67 602Q67 626 84 647T132 668Q143 667 151 661T197 620L241 579"],43:[617,116,856,61,794,"61 250Q61 276 94 292H386V436V535Q386 577 388 589T401 607Q411 617 427 617Q458 617 468 587Q470 581 470 436V292H762L766 290Q770 288 773 287T780 282T787 274T792 264T794 250Q794 222 762 209L616 208H470V64Q470 -81 468 -87Q458 -116 428 -116T388 -87Q386 -81 386 64V208H240L94 209Q61 220 61 250"],44:[146,106,306,80,226,"81 139Q85 145 88 145Q89 146 154 146H219Q222 142 226 139V8L187 -47Q182 -54 177 -62T169 -74T163 -83T157 -91T153 -97T149 -101T145 -103T141 -105T137 -105T132 -106H116H105Q80 -106 80 -95Q80 -90 98 -47T117 -2Q117 0 102 0L87 1L81 7V139"],45:[274,-185,367,12,306,"12 230Q12 257 26 265T80 274Q88 274 114 274T158 273T201 273T235 274Q276 274 290 266T305 230T291 194T235 185Q226 185 201 185T159 186Q143 186 119 186T85 185Q43 185 28 193T12 230"],46:[146,0,306,80,226,"219 146Q222 142 226 139V7L222 4L219 1L154 0Q102 0 94 0T82 6Q80 9 80 74L81 139Q85 145 88 145Q89 146 154 146H219"],47:[750,249,550,61,488,"103 -249Q81 -249 71 -235T61 -207Q61 -201 62 -198Q64 -192 235 265T409 727Q418 750 445 750Q464 750 476 737T488 707Q488 701 313 234Q143 -225 137 -232Q126 -249 103 -249"],48:[715,22,550,43,507,"274 -22Q227 -22 190 -9T128 24T87 76T62 135T49 204T44 271T43 336V343V362Q43 407 45 440T56 524T86 613T141 677Q197 715 264 715Q314 715 353 702T418 669T460 616T487 555T500 483T505 413T506 343Q506 310 506 293T503 241T498 185T486 133T467 83T437 42T397 8T343 -13T274 -22ZM355 355V401Q355 448 354 476T349 537T336 587T311 617T272 629Q270 629 266 629T261 628Q219 618 207 568T194 419V355Q194 203 200 156T231 85Q250 66 275 66Q299 66 318 85Q342 109 348 156T355 355"],49:[716,-1,550,76,473,"118 560H116Q107 560 100 561T85 572T76 600Q76 612 77 618T83 632T99 644Q102 645 135 646T207 660T275 700Q292 716 310 716Q353 716 360 691Q362 685 362 386V87H446Q464 76 468 69T473 44Q473 12 446 1H118Q105 7 100 13T94 25T93 44V62Q100 79 119 87H210V329Q210 571 208 571Q182 560 118 560"],50:[716,0,550,46,494,"339 477Q339 505 332 531T301 579T242 601Q165 601 136 503Q133 493 130 490T121 486Q116 486 94 514Q86 523 82 528Q46 572 46 577Q46 591 77 632T147 691Q192 716 257 716Q305 716 351 700Q416 674 455 615T494 481Q494 421 463 376T356 266Q326 240 287 205T224 146T199 122H331Q359 122 392 122T431 123H445Q485 123 492 98Q494 92 494 62V47Q494 9 468 2Q463 0 272 0L83 1Q63 7 56 28L55 57V89Q59 97 215 261Q255 303 275 327T317 394T339 477"],51:[716,22,550,46,503,"61 624Q62 630 83 650T153 693T262 716Q328 716 373 698T438 650T465 593T473 536Q473 438 375 376L387 371Q450 350 476 305T503 208Q503 164 492 126T456 53T380 -2T261 -22Q224 -22 189 -15T130 2T86 24T57 43T46 53Q46 56 53 99T62 145Q65 152 71 152Q76 152 90 143T123 121T175 99T248 87Q302 87 321 113T341 202Q341 264 329 292T279 329L232 331L190 332L184 338V411Q190 417 192 417Q193 418 205 419T232 421T252 424Q280 430 299 461T318 539V551Q318 599 283 609Q276 611 257 611Q225 611 199 601T159 577T136 554T120 543T102 560T76 597T62 618T61 624"],52:[695,0,550,31,518,"278 693H282Q285 693 291 693T305 694T322 694T342 694H377Q402 694 411 691T430 677Q434 670 434 646T435 456V249H461H472Q509 249 516 224Q518 219 518 194Q518 178 518 171T511 155T492 142Q488 140 461 140H435V86V53Q435 9 409 2Q405 0 366 0H351Q306 0 298 25Q296 31 296 86V140H179H123Q99 140 80 129T50 106T37 95Q31 95 31 163V208Q31 246 33 251Q251 673 262 684Q268 691 278 693ZM302 249V416L301 576Q301 536 165 276L151 250L226 249H302"],53:[694,22,550,36,494,"109 282Q87 290 83 310V666Q83 667 84 670T87 676T91 682T98 688T108 693Q112 694 269 694T431 692Q457 686 457 648V637V624Q457 588 431 581Q426 579 326 579H227V510Q227 442 229 442Q243 450 288 450Q377 450 435 399T494 222Q494 -22 241 -22Q202 -22 167 -11T109 16T69 49T45 79T37 94T69 151Q91 185 97 185Q105 185 112 170Q127 135 160 111T240 87Q266 87 284 94T311 111T325 142T331 179T332 226Q332 307 324 335T281 363Q228 363 197 306Q189 289 172 282H109"],54:[716,22,550,46,503,"414 589Q410 589 389 600T334 612Q275 612 243 575Q209 538 202 433V422L209 431Q243 487 317 487Q392 487 440 442Q478 402 490 357T503 236Q503 113 454 54Q421 13 381 -4T279 -22Q263 -22 250 -21T214 -15T173 1T133 30T96 77T68 146T50 242Q46 278 46 336Q46 406 52 447Q84 698 312 715L315 716Q318 716 321 716Q323 716 328 716T337 715Q398 715 425 688V596Q419 591 414 589ZM282 87Q324 89 336 117T348 231Q348 310 343 343T324 388T277 399Q249 399 231 373T208 317T202 253Q202 201 207 168T224 117T249 93T282 87"],55:[695,11,550,46,503,"135 38Q135 190 198 335T353 572H215Q185 572 151 572T110 571H96Q55 571 48 596Q46 602 46 633V648Q46 686 72 693Q76 695 124 695Q134 695 183 695T274 694Q472 694 477 692Q503 686 503 648V637Q503 612 502 605T491 588Q300 349 292 46V36Q292 -4 266 -9Q262 -11 214 -11H192Q160 -11 148 -3T135 38"],56:[715,22,550,46,503,"61 518Q61 574 79 614T128 676T192 706T263 715H270Q298 715 318 714T373 701T430 671T470 612T488 517Q488 459 458 423T390 376Q388 375 393 373Q395 372 398 371Q503 330 503 204Q503 -22 275 -22Q209 -22 163 -3T92 49T57 120T46 204Q46 230 50 252T61 289T77 318T96 339T116 353T134 363T148 369T158 373T160 376Q118 389 90 424T61 518ZM344 538Q344 563 340 578T326 600T307 609T279 612Q232 612 218 594T204 518Q204 459 216 439T275 418Q328 418 338 450Q344 464 344 515V538ZM248 88T274 88T315 94T338 117T346 149T349 197Q349 269 342 290Q338 309 320 320T274 331Q246 331 229 320T207 290Q200 269 200 197Q201 163 202 149T210 118T232 94"],57:[716,22,550,46,503,"347 272Q346 272 342 266T330 250T309 230T276 214T230 207Q185 207 150 223Q116 240 90 276T54 357Q46 393 46 468Q46 469 46 484T47 502T48 520T51 540T55 559T61 579T69 599T81 620T96 640T115 661Q174 716 276 716Q299 716 317 714T369 698T426 658T471 580T499 456Q503 402 503 342Q503 115 392 29Q322 -22 231 -22Q163 -22 115 7L82 31Q76 38 81 46Q116 112 127 123Q130 126 134 126T148 116T179 97T226 87Q287 87 318 132Q323 139 326 146T332 165T337 182T340 204T342 225T345 249T347 272ZM201 547T201 454T211 329T262 294Q276 294 285 296T310 312T335 355Q347 391 347 447Q347 520 340 550T317 595Q300 612 277 612Q226 612 214 580"],58:[458,0,306,80,226,"226 319L219 313H87L81 319L80 384Q80 437 80 445T86 456Q89 458 154 458H219Q222 454 226 451V319ZM219 146Q222 142 226 139V7L222 4L219 1L154 0Q102 0 94 0T82 6Q80 9 80 74L81 139Q85 145 88 145Q89 146 154 146H219"],59:[458,106,306,80,226,"226 319L219 313H87L81 319L80 384Q80 437 80 445T86 456Q89 458 154 458H219Q222 454 226 451V319ZM81 139Q85 145 88 145Q89 146 154 146H219Q222 142 226 139V8L187 -47Q182 -54 177 -62T169 -74T163 -83T157 -91T153 -97T149 -101T145 -103T141 -105T137 -105T132 -106H116H105Q80 -106 80 -95Q80 -90 98 -47T117 -2Q117 0 102 0L87 1L81 7V139"],61:[407,-94,856,61,795,"94 324Q61 335 61 366Q61 396 91 405Q96 407 429 407H762Q763 406 767 404T774 400T781 395T787 387T792 378T794 365Q794 338 762 324H94ZM94 94Q61 105 61 135Q61 149 69 160T92 175Q97 177 430 177H762L766 175Q770 173 773 172T780 167T787 159T792 149T794 135Q794 107 762 94H94"],63:[706,0,519,61,457,"61 644Q61 652 87 666T157 693T244 705Q344 705 400 671T457 551Q457 516 446 490T422 451T387 421T356 391Q330 361 318 332T305 292T303 252Q303 218 300 213T290 208T244 207H220Q194 207 188 213Q187 214 186 215V255Q187 282 188 296T198 345T229 417T288 496Q306 515 306 559Q306 596 296 607T253 618Q214 618 185 607T143 583T120 558T103 547Q99 547 95 551Q93 553 77 597T61 644ZM171 71V95Q171 137 197 144Q201 146 244 146H261Q307 146 315 121Q317 115 317 73V51Q317 9 291 2Q286 0 242 0L199 1Q182 7 174 21L172 28L171 71"],64:[704,11,733,61,671,"61 264T61 347T82 494T136 596T217 660T311 694T410 704Q460 704 471 703Q534 694 577 666Q633 623 651 552T670 370V342Q670 249 633 195Q583 116 454 116Q238 116 238 347Q238 443 276 499Q328 578 456 578Q488 578 494 577L504 575Q475 617 430 617H421Q196 617 196 347Q196 215 253 143Q310 76 427 76Q499 76 561 102L575 107H664Q671 97 671 94V89L663 81Q566 -11 422 -11Q365 -11 316 -2T219 33T137 97T82 200ZM469 490Q459 492 453 492Q429 492 405 472Q374 439 374 347Q374 233 423 210Q436 202 454 202L486 210Q536 228 536 347Q536 461 486 484Q476 490 469 490"],65:[694,1,733,42,690,"110 0H86Q42 0 42 27Q42 37 148 350T258 667Q269 687 291 692Q295 694 366 694H399Q432 694 448 689T474 667Q477 663 583 350T690 27Q690 0 642 0H617H592Q582 0 575 1T561 2T549 6T541 11T533 18T527 26T522 37T517 49T512 64T506 81L490 130H225Q225 128 208 79T189 27Q185 19 180 14T170 7T156 3T143 1T127 0T110 0ZM439 279Q359 524 359 547L357 555L355 543Q347 503 270 263L259 231H357Q455 231 455 232L439 279"],66:[694,-1,733,92,671,"119 1Q98 5 92 28V667Q98 686 118 693Q121 694 272 694H289H346Q439 694 500 681T600 625Q640 580 640 513Q640 451 601 414T504 364L518 361Q568 351 602 329T649 280T666 235T671 197Q671 172 665 147T642 91T586 37T488 5Q456 1 282 1H119ZM489 509Q489 532 479 548T450 573T421 585T394 591Q387 592 315 593H247V404H298H325Q432 404 466 444Q489 470 489 509ZM517 194Q517 235 502 261T458 299T407 313T353 317H329H322H247V101H319H357Q387 101 407 103T452 111T492 133T514 171Q516 176 517 194"],67:[704,11,703,61,647,"423 -11Q339 -11 275 9T171 62T106 143T71 240T61 347Q61 450 93 527Q157 664 313 694Q357 704 416 704Q479 704 517 699T608 676Q634 667 635 660Q635 653 624 592L612 528L609 524Q604 521 601 521Q595 521 583 531T555 555T505 578T428 589H424Q298 589 250 494Q224 438 224 347Q224 292 233 251T265 175T329 122T432 104Q488 104 524 115T604 158Q607 160 610 162T615 165T619 168L621 170Q625 172 630 170T637 163Q638 160 642 109T647 54Q646 49 625 37T568 11T499 -7Q463 -11 423 -11"],68:[695,0,794,92,732,"119 1Q98 5 92 28V667Q98 686 118 693H124Q131 693 142 693T168 694T200 694T237 694H296Q416 694 450 692T525 677Q732 617 732 342Q732 169 644 81Q593 32 528 16T372 0Q356 0 324 0T276 1H119ZM573 349Q573 387 571 413T559 473T532 527T482 567T403 591Q395 592 320 593H250V101H321Q418 102 456 114Q553 144 569 263Q573 303 573 349"],69:[691,0,642,92,595,"277 122Q280 122 380 123T544 125Q552 125 557 125T565 124T569 124Q595 115 595 75V62V47Q595 9 569 2Q564 0 341 0L119 1Q99 7 92 28V664Q98 683 118 690Q121 691 335 691T554 689Q580 682 580 644V632V618Q580 582 554 573Q553 573 551 573T542 572T527 572Q464 572 364 573T260 575H253V412H385H459Q524 412 536 404T549 357Q549 341 549 334T542 318T523 305Q518 303 385 303H253V122H277"],70:[691,0,611,92,564,"512 572Q451 572 356 573T258 575H253V400H370H431Q494 400 506 392T518 345Q518 307 507 299T437 291H370H253V161Q253 141 253 113T254 75Q254 23 245 12T195 0H170L119 1Q99 7 92 28V664Q98 683 118 690Q121 691 327 691T538 689Q564 682 564 644V632V618Q564 582 538 573Q537 573 535 573T526 572T512 572"],71:[705,11,733,60,659,"61 347Q61 405 70 454T105 550T171 631T276 685T426 705Q483 705 537 693T620 668T650 646Q650 645 649 637T645 612T639 578L627 514L624 510Q620 507 615 507T597 520T566 548T512 577T430 590Q223 590 223 347T431 104Q478 104 506 112Q508 112 508 164V215H471L434 216L428 222L427 268Q427 315 429 318Q432 323 444 323T544 324H652Q655 320 659 317V45L656 43Q654 39 624 27T536 2T424 -11Q366 -11 317 -2T219 33T137 97T82 200T61 347"],72:[694,0,794,92,702,"92 667Q101 694 143 694H172H198Q244 694 251 669Q253 663 253 539V415H540V539Q540 558 540 585T539 621Q539 673 550 683T611 694H621H646Q671 694 683 690T700 669Q702 663 702 347T700 25Q696 9 684 5T646 0H621H606Q560 0 550 11T539 76Q539 85 539 116T540 169V306H253V169Q253 147 253 116T254 75Q254 23 245 12T194 0H170L119 1Q99 7 92 28V667"],73:[694,0,331,85,246,"85 667Q94 694 136 694H165H191Q237 694 244 669Q246 663 246 347T244 25Q235 0 192 0H163L112 1Q92 7 85 28V667"],74:[694,22,519,46,427,"236 -22Q190 -22 144 -11T72 12T46 29Q63 147 69 153Q80 164 92 146Q124 91 191 91Q222 91 242 102T267 134Q268 139 268 402Q268 663 270 669Q275 687 294 692Q298 694 347 694H367Q393 694 406 690T425 669Q427 663 427 399Q427 132 426 125Q421 87 404 58T366 15T318 -9T273 -20T236 -22"],75:[694,0,764,92,701,"92 667Q101 694 139 694H163H186Q225 694 234 671Q236 663 236 529L237 392L533 682Q550 694 590 694H623H681Q695 680 695 672Q695 670 693 664Q688 657 561 533L431 405L698 33Q701 28 701 23Q701 7 683 0H626H604Q571 0 564 2T545 13Q544 14 530 33T489 90T437 162L332 307Q331 307 284 260L236 214V122V65Q236 32 231 19T210 2Q205 0 161 0L119 1Q99 7 92 28V667"],76:[694,0,581,92,534,"92 667Q98 684 109 689T142 694H172H198Q244 694 251 669Q253 663 253 389V116L278 117Q410 119 490 119H495Q511 119 517 115T534 93V63V48Q534 9 508 2Q503 0 310 0L119 1Q99 7 92 28V667"],77:[695,0,978,92,886,"92 667Q98 684 109 689T146 695Q152 695 167 695T192 694Q200 694 214 694T234 695Q291 695 305 664Q313 651 400 419T487 165Q487 162 488 162T489 165Q489 187 574 413T671 664Q679 680 695 688Q708 694 785 694H828Q855 694 867 689T884 669Q886 663 886 347T884 25Q876 0 832 0H817H802Q758 0 750 25Q748 31 748 293V555L746 544Q737 509 692 386T606 160T564 52Q548 22 502 22H487H472Q423 22 410 52Q407 59 367 160T283 385T231 546L230 548Q229 548 229 293Q229 31 227 25Q222 9 211 5T176 0H158L119 1Q99 7 92 28V667"],78:[694,0,794,92,702,"92 667Q98 684 109 689T146 694H185Q273 694 279 692Q301 689 315 669Q322 660 419 453L554 163L562 143Q564 143 564 401Q564 663 566 669Q574 694 618 694H633H648Q692 694 700 669Q702 663 702 347T700 25Q696 10 683 5T642 0H596H551Q520 0 505 4T478 25Q471 34 374 241L239 532Q231 550 231 552L229 479Q229 440 229 293Q229 31 227 25Q222 9 211 5T176 0H158L119 1Q99 7 92 28V667"],79:[716,22,794,62,731,"362 715Q364 715 376 715T394 716H400Q542 716 626 643T727 426Q731 395 731 342Q731 271 722 225Q674 -22 396 -22Q320 -22 259 -3T148 68T77 201Q62 257 62 342Q62 447 86 522T173 649Q245 707 362 715ZM568 433Q551 623 396 623Q383 623 370 622T333 612T292 591T257 550T233 485Q223 442 223 350Q223 276 232 227T267 137Q309 74 397 74Q433 74 461 85T507 113T537 156T556 205T566 260T569 310T570 357Q570 409 568 433"],80:[694,0,703,92,641,"641 470Q641 426 630 391T603 334T561 295T513 271T459 259T408 254T361 253H350H337H253V142Q253 125 253 100T254 67Q254 32 249 19T227 2Q222 0 170 0L119 1Q99 7 92 28V667Q98 686 118 693Q121 694 271 694Q428 693 462 688Q641 656 641 470ZM487 467Q487 495 485 510T474 546T442 578T382 592Q375 593 310 593H250V347H309H339Q364 347 380 348T418 354T451 368T474 395T486 438Q487 444 487 467"],81:[716,106,794,62,732,"450 -20Q444 -20 429 -21T396 -22Q320 -22 259 -3T148 68T77 201Q62 257 62 342Q62 447 86 522T173 649Q245 707 362 715Q364 715 376 715T394 716Q732 716 732 340Q732 268 719 210T686 120T647 68T615 39T601 29T638 -22T676 -73Q679 -78 679 -83Q679 -98 661 -106H593Q526 -106 521 -104Q514 -103 507 -97T496 -84T477 -55L454 -19L450 -20ZM554 509Q516 622 391 622Q294 622 250 535Q220 475 220 345Q220 299 222 266T234 198T258 140T299 99T363 74Q378 71 393 71H395L381 92Q367 114 353 136T338 161Q336 165 336 170Q336 186 352 193L361 194Q370 194 384 194T412 194H452Q457 194 460 194T466 194T471 192T476 191T480 188T483 185T487 180T492 174T497 167T504 158L526 129Q532 127 552 175Q573 231 573 348Q573 455 554 509"],82:[695,0,703,92,654,"654 24Q654 9 644 5T612 0H577L521 1Q509 5 503 13Q498 20 421 160L343 304H250V168Q250 147 250 118T251 78Q251 24 242 12T192 0H168L119 1Q99 7 92 28V667Q98 686 118 693H124Q131 693 141 693T165 694T195 694T229 694T280 694T332 695Q389 695 428 691T510 675T582 637T627 569Q641 532 641 493Q641 377 537 331L497 317L493 316L571 177Q653 28 654 24ZM487 472T487 492T485 525T476 553T450 577T404 591Q398 592 322 593H250V391H321Q327 391 353 391T385 392T412 395T438 401T457 412T474 430T483 456"],83:[716,22,611,49,549,"61 503Q61 547 72 583T110 650T186 698T305 716Q405 716 496 671Q513 664 514 657Q514 656 513 648T509 623T503 589L491 525L488 521Q484 518 479 518H475L461 532Q430 565 395 581T305 598Q201 598 201 523Q201 480 240 462T345 431T443 394Q549 324 549 204Q549 160 538 123T502 51T427 -2T308 -22Q180 -22 69 41Q50 52 49 57Q49 58 50 66T54 91T60 125L72 189L75 193Q80 196 84 196Q87 196 104 182T145 149T212 117T304 102Q408 102 408 188Q408 215 396 234T362 263T319 278T267 290T219 302Q149 324 105 380T61 503"],84:[688,0,733,40,692,"67 687Q70 688 366 688Q661 688 666 686Q692 680 692 641V629V615Q692 579 666 570H660Q655 569 648 569Q645 569 624 569T581 570Q505 570 475 572H447V302Q447 31 445 25Q436 0 393 0H364L313 1Q293 7 286 28L285 300V572H257Q227 570 151 570Q130 570 109 570T84 569Q77 569 72 570H66Q48 577 44 588T40 631L41 661Q47 680 67 687"],85:[694,22,764,92,672,"92 667Q101 694 143 694H172H200Q242 694 251 671Q253 663 253 430Q254 189 255 185Q262 134 288 107T384 79Q498 79 516 168Q520 191 521 431Q521 663 523 671Q532 694 572 694H596H618Q639 694 648 692T665 679Q671 672 671 653Q672 632 672 555V432Q671 200 670 190Q652 79 581 29T383 -22Q137 -22 98 166Q92 195 92 303V667"],86:[694,-1,733,27,705,"27 667Q27 683 39 688T75 694H101Q155 694 159 692Q182 687 194 665Q202 652 283 419T374 142Q376 165 473 445Q552 664 553 666Q568 694 618 694H639H658Q681 694 693 689T705 667Q705 660 592 347Q481 32 477 28Q466 7 441 1H292Q266 7 255 28Q251 32 140 347Q27 660 27 667"],87:[694,0,1039,24,1014,"994 694Q1012 683 1014 668Q1014 661 977 519T896 217T845 26Q831 0 783 0H747H711Q685 0 672 5T649 26Q644 36 583 272T517 548Q516 552 516 551Q503 479 437 227Q389 37 383 26Q367 0 323 0H288H254Q207 0 193 26Q191 32 108 346T24 665Q24 685 44 693Q47 694 98 694H115Q152 694 168 668Q174 657 235 417T297 144Q297 134 300 153Q307 204 362 421T427 668Q441 694 488 694H523Q586 694 597 688Q612 683 620 661T651 549Q664 496 673 462Q744 194 750 146V140Q767 223 800 354T857 576T883 668Q897 694 938 694H958H994"],88:[695,0,733,37,694,"52 1Q37 11 37 23Q37 26 39 32Q39 34 158 202L275 369Q275 370 221 441T112 586T55 663Q53 669 53 672Q53 687 68 693H72Q77 693 84 693T99 694T118 694T139 694H176Q203 694 212 692T230 682Q231 681 239 669T265 634T296 591L358 504L418 591Q481 682 486 686Q491 691 499 692Q505 694 569 694H632Q650 685 650 672Q650 667 646 660Q643 654 592 582T491 440T441 369T566 201T693 29Q694 27 694 23Q694 11 677 0H607L537 1Q523 6 519 10T437 131Q422 153 411 170T390 200T375 222T365 237T359 245L357 247L348 232Q339 218 319 188T283 131Q222 37 211 22T186 1H52"],89:[694,0,733,24,708,"635 694H668Q688 694 698 690T708 670Q708 664 704 658L446 278L445 152V27Q442 20 440 17T433 9T419 1L368 0H339Q316 0 305 5T288 26Q286 31 286 154V278L157 468Q135 500 101 550Q43 635 34 650T24 671Q24 686 39 693Q42 694 105 694H122H132Q163 694 180 689T214 666Q225 654 336 485Q373 425 373 420L374 418Q375 419 375 421Q378 432 418 493T496 609T536 667Q543 676 551 681T572 689T591 693T615 694T635 694"],90:[694,0,672,61,616,"411 584Q243 581 131 581Q122 581 116 581T106 582T102 582Q84 589 80 600T76 640L77 667Q83 686 103 693Q106 694 343 694Q579 694 584 692Q592 691 599 684T609 668Q610 665 610 646Q610 614 608 608Q605 603 434 361L261 116Q340 117 402 118T490 119T533 120T560 120H572Q605 120 614 95Q616 89 616 60V46Q616 9 590 2Q585 0 339 0Q92 0 87 2Q79 3 72 10T62 26Q61 29 61 49Q61 84 63 90Q65 94 152 217T325 461T411 584"],91:[751,251,343,79,318,"318 -206Q318 -235 305 -243T255 -251Q248 -251 229 -251T198 -250H143Q112 -250 99 -246T81 -225Q79 -219 79 250T81 725Q85 741 98 745T143 750H198Q210 750 229 750T255 751Q291 751 304 743T318 707Q318 680 301 668Q293 663 255 663H224V-163H255Q293 -163 301 -168Q318 -180 318 -206"],93:[751,251,343,24,263,"24 706Q24 734 39 742T90 751Q97 751 114 751T143 750H198Q230 750 243 746T261 725Q263 719 263 250T261 -225Q257 -241 244 -245T198 -250H143Q131 -250 112 -250T86 -251Q50 -251 37 -243T24 -207Q24 -180 41 -168Q49 -163 87 -163H118V663H87H71Q24 663 24 706"],94:[694,-537,550,108,441,"108 550Q108 554 135 589T190 658T219 692Q221 694 275 694Q328 694 330 693Q331 692 381 629T438 557Q441 553 441 549T434 538L399 537Q363 537 362 538Q361 538 318 575L275 611Q274 611 231 575Q188 538 187 538Q186 537 150 537L115 538Q108 545 108 550"],95:[-23,110,550,0,549,"0 -66Q0 -32 26 -25Q30 -23 274 -23Q469 -23 497 -23T532 -28Q549 -40 549 -67Q549 -93 532 -105Q525 -109 498 -109T275 -110Q31 -110 26 -108Q0 -101 0 -66"],97:[475,11,525,31,473,"255 394Q218 394 186 383T138 358T109 333T94 321H91Q88 321 86 322T83 325T80 331T79 339T78 349T77 362T75 377Q72 410 72 420Q72 423 72 425T73 429T74 431T77 433T80 435T85 437Q166 475 262 475Q360 475 413 440Q462 406 471 341Q472 332 472 181Q472 155 472 119T473 73Q473 20 462 10T398 0H380Q349 0 337 8T324 48V65Q298 30 257 10T172 -11Q109 -11 70 37T31 145Q31 276 307 289H321V309Q321 337 318 352T300 381T255 394ZM176 146Q176 116 190 97T231 77Q251 77 266 85Q322 110 322 185Q322 189 322 192T322 198L321 201V234L308 232Q176 220 176 146"],98:[694,10,561,54,523,"54 667Q63 694 102 694H127H151Q190 694 199 671Q201 663 201 544L202 422L211 428Q270 468 355 468Q523 468 523 231Q523 -10 321 -10Q286 -10 261 -2T204 33Q197 11 187 6T142 0H126L81 1Q61 7 54 28V667ZM372 230Q372 317 355 349T280 382Q251 382 204 356V107Q235 76 274 76Q301 76 320 84T349 105T364 139T371 180T372 230"],99:[475,12,489,37,457,"188 233Q188 199 190 177T200 131T225 95T271 83H281Q356 83 421 130Q433 138 434 139Q446 141 448 131Q449 128 453 84T457 36Q455 30 432 20T364 -1T273 -11Q37 -11 37 232Q37 456 244 474Q246 474 257 474T276 475Q349 475 400 455Q443 436 448 431L451 425Q451 419 443 377Q442 372 441 366T439 356T438 348T436 340T435 334T433 330T431 327T429 325T426 324Q420 324 406 336Q376 362 350 372T281 382Q254 382 236 373T208 352T194 317T189 278T188 233"],100:[694,11,561,37,507,"225 -11Q192 -11 164 -3T104 29T55 102T37 227Q37 321 63 376Q111 469 223 469Q292 469 349 433L359 426V546Q359 564 359 589T358 623Q358 675 369 684T433 694H451Q497 694 505 669Q507 663 507 347T505 25Q500 9 487 5T450 0H432H413Q356 0 356 36V40Q298 -11 225 -11ZM356 359Q326 382 286 382Q239 382 215 358Q189 330 189 256V229V203V195Q189 102 231 86Q251 76 274 76Q318 76 356 114V359"],101:[475,10,511,30,481,"30 231Q30 301 51 351T107 426T181 463T262 474H268Q293 474 312 472T366 459T422 427T462 363T480 260Q480 230 466 222T405 213Q395 213 364 213T311 214H173V211Q173 183 183 148T216 96Q244 76 287 76Q319 76 350 85T399 104T433 125T451 136Q463 138 465 128Q466 125 469 84T473 39Q471 29 423 13T330 -9Q321 -10 286 -10Q213 -10 161 11T81 68T42 144T30 231ZM353 292Q350 324 342 344T320 373T294 384T264 387Q191 387 175 286V282H353V292"],102:[706,0,336,29,381,"67 458H78V502V509Q78 538 79 556T90 604T117 651T169 685T253 704Q254 704 258 704T265 705T275 705T287 704Q364 704 381 687V638V607Q381 591 378 585T366 579Q362 581 351 591T323 610T282 618Q238 618 226 587Q224 581 223 519V458H253Q288 458 298 453Q315 441 315 415Q315 399 312 390T299 377T282 372T259 371H255H226V201Q226 31 224 25Q215 0 174 0H150L106 1Q86 7 79 28L78 199V371H69Q29 371 29 412Q29 425 30 431T40 447T67 458"],103:[469,206,550,17,534,"63 108Q63 142 83 176L76 184Q35 227 35 300Q35 469 243 469Q330 469 385 437L397 443Q451 469 508 469Q515 468 517 466T522 456T528 425Q534 392 534 386Q532 379 523 377Q520 377 509 381T477 390T431 398L425 399Q453 362 453 297Q453 268 445 242T417 189T351 146T242 130Q169 130 119 153Q117 141 117 136Q117 95 155 83Q161 81 252 81Q354 80 362 79Q437 71 475 48T526 -24Q532 -42 532 -65Q532 -116 489 -156T341 -204Q323 -206 274 -206H256Q39 -206 18 -84Q17 -79 17 -68Q17 15 82 42L76 53Q63 79 63 108ZM310 300Q310 359 298 377T238 396Q217 396 204 390T186 368T179 339T178 300Q178 245 189 224T244 203T299 224T310 300ZM414 -66Q414 -55 411 -47T401 -32T387 -21T368 -14T346 -10T322 -7T297 -6T271 -6T246 -6H193Q163 -6 154 -10T140 -30Q135 -45 135 -62Q135 -134 274 -134Q414 -134 414 -66"],104:[694,0,561,53,508,"53 667Q62 694 101 694H126H148Q191 694 198 669Q200 663 200 526V390Q263 469 361 469Q390 469 412 465T456 449T491 413T507 351Q508 342 508 185Q508 31 506 25Q498 0 450 0H432H413Q368 0 359 23Q357 31 357 186Q356 345 355 350Q349 369 336 376Q324 381 301 381H298Q269 381 242 362Q217 342 210 316T202 239Q202 229 202 202T203 157V82Q203 24 195 12T146 0H125L80 1Q60 7 53 28V667"],105:[695,0,256,46,208,"72 574Q55 583 51 591T46 619V636L47 670L48 673Q50 676 52 678T56 684T63 690T73 694H81Q89 694 102 694T129 695H181Q193 687 196 685T203 676T207 661T208 634Q208 603 204 593T181 574H72ZM54 431Q63 458 102 458H127H149Q192 458 199 433Q201 427 201 229T199 25Q190 0 149 0H125L81 1Q61 7 54 28V431"],106:[695,205,286,-71,232,"70 634V648Q70 686 96 693Q100 695 151 695H176Q201 695 213 691T230 670Q232 665 232 634V620Q232 582 206 575Q202 573 151 573H126Q101 573 89 577T72 598Q70 603 70 634ZM-41 -84Q-1 -105 28 -105Q67 -105 78 -85Q83 -77 83 -48T84 180Q84 427 86 433Q93 458 136 458H158H180Q201 458 209 456T225 443Q230 436 231 418Q232 397 232 313V183V124V40Q232 -55 228 -87T203 -147Q166 -205 78 -205Q31 -205 -20 -189T-71 -159Q-71 -156 -62 -124T-52 -89Q-49 -84 -41 -84"],107:[694,0,531,63,496,"496 23Q496 9 487 5T457 0H427H398Q367 0 354 11Q352 12 288 99L226 183L191 150V90V54Q191 30 186 18T165 2Q160 0 124 0L90 1Q70 7 63 28V667Q72 694 108 694H128H146Q183 694 192 671Q194 663 194 496L195 325L254 383Q266 394 281 409T301 429T316 441T329 450T341 455T357 458T376 458H409H436Q461 458 470 454T480 437Q480 430 477 427T445 395Q417 368 396 347L319 271Q319 270 358 217T442 103T494 32Q496 30 496 23"],108:[694,0,256,54,201,"54 667Q63 694 102 694H127H149Q192 694 199 669Q201 663 201 347T199 25Q190 0 149 0H125L81 1Q61 7 54 28V667"],109:[469,0,867,53,815,"197 386Q256 468 366 468Q404 468 430 461T471 438T491 413T503 385Q563 469 666 469Q731 469 769 446T814 350Q815 343 815 185Q815 31 813 25Q808 9 796 5T758 0H737L692 1Q672 7 665 28L664 186V206V290Q664 349 655 365T610 381Q581 381 560 370T529 341T515 311T510 291Q509 286 509 157V82Q509 24 501 12T452 0H431L386 1Q366 7 359 28L358 186V206V290Q358 349 349 365T304 381Q275 381 254 370T223 341T209 311T204 291Q203 286 203 157V82Q203 24 195 12T146 0H125L80 1Q60 7 53 28V437Q58 453 80 464H122H142Q167 464 178 460T195 439Q197 434 197 409V386"],110:[468,0,561,53,508,"197 386Q264 468 350 468Q375 468 390 467T429 460T466 443T492 408T507 351Q508 342 508 185Q508 31 506 25Q498 0 450 0H432H413Q368 0 359 23Q357 31 357 186Q356 345 355 350Q349 369 336 376Q324 381 301 381H298Q269 381 242 362Q217 342 210 316T202 239Q202 229 202 202T203 157V82Q203 24 195 12T146 0H125L80 1Q60 7 53 28V437Q58 453 80 464H122H142Q167 464 178 460T195 439Q197 434 197 409V386"],111:[474,11,550,32,518,"274 -11Q32 -11 32 225Q32 346 85 406T249 474H266H271Q302 474 325 471T385 458T451 419T498 346Q518 300 518 225Q518 -11 274 -11ZM367 233Q367 322 350 354T270 387Q240 387 222 377T195 344T184 298T182 233Q182 151 198 117T275 83H282Q318 83 339 104Q355 119 361 146T367 233"],112:[469,194,561,54,523,"125 458H139Q174 458 185 452T202 420L211 426Q245 448 288 458T354 469Q356 469 361 469T369 468Q443 468 481 412Q523 355 523 223Q523 164 509 120T473 51T423 12T371 -7T323 -11Q260 -11 204 33V-65Q204 -80 204 -102T205 -131Q205 -162 200 -175T178 -192Q173 -194 126 -194L81 -193Q61 -187 54 -166V431Q58 447 81 458H125ZM372 230Q372 376 282 376Q247 376 204 352V107L208 103Q213 99 218 95T232 87T251 79T274 76Q323 76 349 116Q372 153 372 230"],113:[470,194,561,37,507,"226 -11Q37 -11 37 236Q37 294 51 338T86 407T135 445T186 464T233 469H235Q300 469 349 422L359 413V425Q359 452 376 464Q384 469 433 469H455Q498 469 505 444Q507 438 507 137Q507 -163 505 -169Q500 -185 487 -189T450 -194H432H413Q367 -194 358 -171Q356 -163 356 -63V40L348 33Q296 -11 231 -11H226ZM281 375Q188 375 188 228Q188 77 275 77Q322 77 359 120V328Q338 357 324 366T281 375"],114:[469,0,372,54,356,"54 437Q58 453 81 464H122H147Q186 464 194 439Q196 434 196 405V377L203 387Q245 456 324 468Q325 468 331 468T340 469Q347 469 356 462V360Q350 355 346 354T339 353T326 353T300 347Q260 337 234 311T202 252Q201 247 201 138Q201 122 201 98T202 66Q202 33 197 20T175 2Q170 0 125 0L81 1Q61 7 54 28V437"],115:[474,10,422,30,396,"37 328Q37 392 75 433T203 474Q254 474 265 473Q319 465 370 442Q378 439 380 432Q380 426 372 384Q364 336 359 333Q358 331 355 331Q348 331 337 341Q282 388 216 388H208Q190 388 180 387T161 377T151 351Q151 333 164 323T224 306L267 297Q314 285 355 246T396 144Q396 17 282 -5Q260 -10 218 -10Q170 -10 124 2T55 26T30 44Q30 48 39 99T49 153Q52 159 60 159Q66 159 70 153Q100 120 133 101T218 82Q231 82 238 83T258 87T277 101T283 126Q283 149 260 160T200 176T153 186Q109 201 73 236T37 328"],116:[589,10,404,20,373,"225 267Q225 202 226 169T232 115T244 88T265 82Q295 84 318 100T345 116Q352 116 354 110T364 77Q373 46 373 43Q373 28 312 9T190 -10Q160 -10 139 1T107 29T89 77T82 136T80 210V258V371H66H59Q39 371 27 386Q20 394 20 417Q21 432 23 437Q35 458 60 458H65H83V510L84 562Q93 589 131 589H154H174Q216 589 223 564Q225 558 225 508V458H274Q330 458 338 453Q355 441 355 415Q355 388 338 376Q330 371 274 371H225V267"],117:[459,11,561,52,508,"53 431Q62 459 100 459Q105 459 114 459T127 458H152Q192 458 201 435Q203 427 203 262Q204 86 208 77Q209 74 216 71Q227 66 258 66H264Q334 66 354 140L356 150L357 290Q357 427 359 435Q365 449 377 453T412 458H432H450Q498 458 506 433Q508 427 508 229T506 25Q498 0 451 0H434H418Q386 0 374 7T360 43V58L352 49Q298 -11 199 -11Q135 -9 101 11T56 80Q52 100 52 273L53 431"],118:[458,0,500,26,473,"26 429T26 435T32 448T44 456Q48 458 85 458H99Q145 458 161 431Q162 429 207 285L251 145L294 284Q333 410 341 430Q351 451 374 456Q379 458 420 458H430Q450 458 457 456T471 443Q473 437 473 435Q473 426 443 325T381 126L350 28Q339 7 316 2Q312 0 250 0Q187 0 183 2Q160 7 149 28L136 68Q124 109 106 166T70 283T39 385"],119:[458,0,744,24,719,"699 458Q717 447 719 432Q719 426 666 230T610 27Q602 10 588 5T548 0H512H482Q431 0 420 17T384 135Q356 241 352 298V308L351 295Q348 251 322 145T290 28Q279 0 233 0H212H191Q146 0 133 27Q130 33 77 229T24 430Q24 449 44 457Q47 458 79 458Q122 458 126 456Q154 450 163 419L233 153Q241 187 272 304T307 431Q318 458 368 458Q394 458 398 456Q421 451 430 431Q434 423 509 147L547 286Q582 416 588 429Q600 454 624 457Q632 458 647 458H663H699"],120:[460,1,500,24,475,"92 0Q87 0 77 0T62 -1Q24 -1 24 22Q24 29 33 41T106 136Q185 237 184 238Q184 239 147 284T73 376T33 427Q31 430 31 436Q31 451 45 457Q48 458 96 458H122Q152 458 163 450T208 394L247 345L282 394Q288 403 297 416T309 434T319 444T328 452T338 455T352 458T372 458H393H440Q457 449 457 435Q457 428 450 419T379 328Q308 239 308 237L389 137Q409 112 436 79Q475 31 475 23Q475 -1 436 -1Q432 -1 422 -1T407 0Q360 0 352 3Q343 6 336 16T291 83L247 151L245 148Q243 145 239 139T229 124T218 106T204 84Q167 24 160 15T141 1L92 0"],121:[458,205,500,29,473,"454 458Q473 446 473 430Q473 426 394 184L311 -68Q291 -119 245 -162T123 -205Q51 -205 46 -190Q44 -187 40 -142T36 -92Q36 -90 36 -88L37 -87Q41 -80 46 -80Q48 -80 73 -92T126 -105Q146 -105 161 -98T185 -76T197 -53T206 -28L215 0L122 212Q29 427 29 435Q29 448 46 457Q49 458 91 458Q93 458 106 458T125 457T140 454T157 446T170 431Q183 410 224 305T266 158Q266 152 266 151Q267 151 268 163Q271 206 302 310T342 432Q354 458 398 458H418H454"],122:[458,0,476,31,442,"268 376Q250 376 180 375T92 374Q69 374 63 380Q46 390 46 419Q46 428 49 437Q57 451 73 457Q76 458 242 458T413 456Q420 455 427 448Q439 438 439 413Q439 392 433 385Q432 383 318 236T204 88Q235 88 306 89T395 90H399Q408 90 414 89T427 84T438 70T442 45Q442 9 416 2Q411 0 236 0H136Q73 0 62 1T41 12Q31 23 31 47Q31 68 36 77Q37 78 51 97T96 155T153 228L268 376"],126:[344,-198,550,92,457,"92 215Q92 259 122 301T204 344Q238 344 264 329T310 300T343 285Q356 285 361 295T369 322T377 344H450Q457 334 457 330Q457 281 427 240T344 198Q312 198 285 213T239 242T206 257Q188 257 182 230T172 199L137 198H120Q102 198 97 200T92 215"]});MathJax.Ajax.loadComplete(MathJax.OutputJax.SVG.fontDir+"/SansSerif/Bold/BasicLatin.js");
knpwrs/cdnjs
ajax/libs/mathjax/2.2/jax/output/SVG/fonts/TeX/SansSerif/Bold/BasicLatin.js
JavaScript
mit
36,547
/* * /MathJax/jax/output/SVG/fonts/TeX/SansSerif/Regular/BasicLatin.js * * Copyright (c) 2009-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS.MathJax_SansSerif,{32:[0,0,250,0,0,""],33:[694,0,319,110,208,"120 187Q120 225 115 440T110 693Q110 694 159 694T208 693Q208 655 203 440T198 187Q198 186 159 186T120 187ZM110 0V98H208V0H110"],34:[694,-471,500,32,325,"33 596V694H131V597L82 471H32L47 532Q62 593 63 594Q63 596 48 596H33ZM227 596V694H325V597L276 471H226L241 532Q256 593 257 594Q257 596 242 596H227"],35:[694,194,833,56,777,"56 350Q56 363 70 370H192Q314 370 314 371L356 526Q396 676 401 685Q406 694 416 694Q423 694 429 689T436 677Q436 673 396 523T355 371Q355 370 449 370Q544 370 544 371L586 526Q628 682 630 685Q636 694 646 694Q653 694 659 689T665 678Q665 670 645 593T605 444L585 371Q585 370 673 370H762Q777 362 777 350Q777 337 767 334T723 330H668H573L567 305Q560 282 545 226L530 171L646 170H721Q756 170 766 167T777 150Q777 138 762 130H640Q518 130 518 129L476 -26Q434 -182 432 -185Q426 -194 416 -194Q409 -194 403 -189T397 -178Q397 -170 417 -93T457 56L477 129Q477 130 383 130Q288 130 288 129L246 -26Q204 -182 202 -185Q196 -194 186 -194Q179 -194 173 -189T167 -178Q167 -170 187 -94T227 56L247 129Q247 130 159 130H70Q56 137 56 150Q56 165 72 170H259L265 195Q273 222 287 275L302 330H186L70 331Q63 334 58 339Q56 343 56 350ZM489 170L532 330H343L337 305Q330 282 315 226L300 171L394 170H489"],36:[750,56,500,43,444,"55 509Q55 585 103 638T213 701V750H286V703H289Q312 703 354 689Q372 682 399 666T427 646L413 569Q413 568 403 575Q352 615 291 624H286V405Q357 389 400 331T444 199Q444 128 402 69T286 -7V-56H213V-9Q167 -3 125 14T63 44T44 60Q44 61 52 101L59 140L69 132Q78 125 87 119T107 107T124 97T141 90T157 84T173 80T187 76T201 73T213 70V317L202 319Q141 335 98 386T55 509ZM213 424V620L203 615Q143 587 143 522Q143 455 213 424ZM356 187Q356 208 350 227T334 258T315 280T298 293T287 297Q286 297 286 186V75Q356 110 356 187"],37:[750,56,833,56,776,"56 549Q56 639 98 694T195 750Q248 750 290 694T332 548Q332 455 290 401T195 347Q141 347 99 403T56 549ZM248 549Q248 602 234 638T195 674Q145 674 145 549Q145 423 195 423Q219 423 233 459T248 549ZM197 -56Q187 -56 182 -49T176 -35Q176 -33 178 -27Q179 -25 399 356T623 741Q626 750 639 750Q648 750 654 744T659 729Q657 721 435 336T207 -52Q203 -56 197 -56ZM500 146Q500 235 542 291T639 347Q692 347 734 293T776 146Q776 53 733 -1T639 -56Q587 -56 544 -2T500 146ZM692 146Q692 199 678 235T639 271Q589 271 589 146Q589 20 639 20Q663 20 677 56T692 146"],38:[716,22,758,42,702,"156 502Q156 600 198 658T302 716Q367 716 405 665T444 549Q444 531 442 523Q426 446 304 348L287 334Q305 297 340 249T402 170T430 139T443 149T472 181T509 231T549 303T583 394Q584 398 586 404Q587 408 587 409Q588 409 626 399T665 388Q663 381 660 369T644 322T614 253T567 176T502 98L491 87Q534 57 584 57Q653 57 700 75Q702 75 702 34T700 -7Q652 -22 586 -22H580Q505 -22 434 26L421 34Q419 33 405 25T374 11T336 -4T285 -17T226 -22Q143 -22 93 31T42 152Q42 184 51 211T81 260T111 291T144 317L184 348L178 365Q156 430 156 502ZM359 552Q359 588 345 614T302 640Q292 640 282 636T260 622T241 590T233 535Q236 474 253 417L257 407L271 419Q312 454 330 479Q359 514 359 552ZM345 102Q262 190 216 277Q215 277 204 267T180 247T165 236Q135 208 135 159Q135 123 152 97T198 61Q207 58 227 58Q286 58 357 89L345 102"],39:[694,-471,278,89,188,"90 596V694H188V597L139 471H89L104 532Q119 593 120 594Q120 596 105 596H90"],40:[750,250,389,74,333,"74 250Q74 564 240 733L257 750H333L323 739Q167 573 167 250T323 -239L333 -250H257L240 -233Q74 -63 74 250"],41:[750,250,389,55,314,"221 -73T221 250T65 739L55 750H131L148 733Q314 567 314 250T148 -233L131 -250H55L65 -239Q221 -73 221 250"],42:[750,-306,500,63,436,"208 717Q211 731 222 740T250 750Q265 750 277 741T291 717Q291 706 290 675T286 617L285 591L329 622Q369 651 376 655T393 659Q411 659 423 647T436 616Q436 609 434 603T429 594T419 585T407 577T389 567T368 556L316 528L368 500Q421 472 429 464Q436 455 436 440Q436 422 423 409T393 396Q390 396 388 396T384 397T380 398T375 401T367 406T358 413T346 422T329 434L285 465Q284 465 285 438T289 381T291 347Q291 327 278 317T250 306Q234 306 222 315T208 339Q208 350 209 381T212 439L214 465L170 434Q130 405 123 401T106 397Q88 397 76 409T63 440Q63 447 65 453T70 462T80 471T92 479T110 489T131 500L183 528L131 556Q78 584 70 592Q63 601 63 616Q63 634 76 647T106 660Q109 660 111 660T115 659T119 658T124 655T132 650T141 643T153 634T170 622L214 591L212 617Q211 643 210 674T208 717"],43:[583,82,778,56,722,"56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250"],44:[98,125,278,89,188,"90 0V98H188V1L139 -125H89L104 -64Q119 -3 120 -2Q120 0 105 0H90"],45:[259,-186,333,11,277,"11 186V259H277V186H11"],46:[98,0,278,90,188,"90 0V98H188V0H90"],47:[750,250,500,56,444,"423 750Q432 750 438 744T444 730Q444 725 271 248T92 -240Q85 -250 75 -250Q68 -250 62 -245T56 -231Q56 -221 230 257T407 740Q411 750 423 750"],48:[678,22,500,39,460,"117 621Q174 678 247 678Q305 678 351 647Q396 617 424 557Q460 472 460 328Q460 271 455 224Q448 154 427 104T376 27T314 -10T249 -22Q201 -22 160 1T91 67Q39 154 39 316Q39 541 117 621ZM250 55Q274 55 293 66T324 93T344 136T357 185T364 240T366 291T367 340Q367 373 367 393T363 449T352 507T332 553T299 589T250 601Q217 601 194 584T159 542T141 479T133 411T132 340V331Q132 299 133 277T137 219T147 157T167 107T201 68T250 55"],49:[678,0,500,83,430,"94 612Q172 616 211 632T284 678H307V73H430V0H88V73H213V317Q213 560 212 560Q210 558 197 554T155 546T96 540L83 539V612H94"],50:[677,0,500,42,449,"222 599Q190 599 166 585T128 550T108 509T97 474T93 459L67 492L42 526L47 539Q72 608 120 642T225 677Q304 677 355 644Q449 579 449 454Q449 373 361 290Q351 280 315 250T199 144Q156 103 137 85L293 86H449V0H50V79L216 242Q284 302 317 349T351 456Q351 517 315 558T222 599"],51:[678,22,500,42,457,"333 521Q333 554 313 579T243 604Q154 604 99 514L78 546Q56 577 56 579Q56 580 62 589T82 611T114 637T162 662T222 677Q224 677 231 677T242 678H245Q318 678 374 634T430 520Q430 483 417 452T382 398T351 369T329 354L328 353Q369 333 373 330Q408 306 432 268T457 184Q457 103 397 41T242 -22Q131 -22 51 58L42 68L49 105L55 142L58 138Q62 134 66 130T77 120T91 108T108 96T129 83T152 72T179 63T209 57T242 54Q285 54 319 86T353 184Q353 231 331 267T260 315L213 316H166V354Q166 392 167 392Q233 395 257 405Q290 418 311 450T333 521"],52:[656,0,500,28,471,"271 654L272 656H380V235H471V159H380V0H286V159H28V235L149 443Q269 652 271 654ZM292 235V607Q292 604 290 591T286 571T280 548T269 517T252 476T226 422T189 354T140 267Q136 260 132 253T126 240L123 236Q123 235 207 235H292"],53:[656,21,500,33,449,"257 350Q236 350 218 342T189 323T171 301T160 281L157 273Q157 272 116 272H75V656H416V577H162V486Q162 396 163 396T174 403T207 418T258 426Q339 426 394 360T449 203Q449 113 386 46T226 -21H223Q188 -21 156 -11T102 13T64 42T41 66T33 77Q34 78 44 95T64 128L73 144Q93 112 117 93Q165 54 223 54Q270 54 306 86T345 197Q345 350 257 350"],54:[678,22,500,42,457,"42 318Q42 396 61 460T109 564T173 629T237 666T289 677H301H317Q359 677 408 658V621Q408 585 407 585H406Q359 605 308 605Q246 605 203 556T146 421Q143 403 144 403Q145 402 152 409Q216 469 299 469Q333 469 357 457T407 405Q457 330 457 226Q457 126 402 57Q340 -22 251 -22Q216 -22 183 -7T116 43T63 149T42 318ZM260 393Q216 393 188 365T150 306T141 243Q141 153 172 104Q192 68 230 56Q238 54 251 54Q311 54 342 116Q360 152 360 226Q360 297 344 332Q320 382 277 392Q275 392 270 392T260 393"],55:[656,11,500,42,457,"42 570V656H457V577L447 564Q345 439 295 289T244 0V-11H145V12Q160 330 356 550Q360 556 365 561T374 571L208 570H42"],56:[678,23,500,43,456,"55 500Q55 568 109 623T250 678Q327 678 385 627T444 501Q444 445 410 410T336 357L329 353H330Q378 335 417 293T456 184Q456 93 393 36T249 -22T106 35T43 184Q43 251 82 293T169 353Q171 354 166 356Q165 356 163 357Q113 378 84 416T55 500ZM358 496Q358 557 325 581T250 605Q206 605 174 580T141 496Q141 446 171 420T250 393Q298 393 328 419T358 496ZM245 316Q205 316 172 285T139 185V179Q139 79 222 57Q231 55 250 55H254Q295 55 327 84Q360 120 360 188Q360 254 326 285Q295 316 245 316"],57:[677,22,500,42,457,"44 476Q57 561 116 619T245 677H255Q308 677 349 647Q392 619 424 545T457 334Q457 178 382 78T205 -22Q168 -22 135 -10T86 14L72 25Q73 25 91 58L110 91Q127 78 136 72T163 60T203 54Q238 54 265 71T308 110T335 164T350 214T357 253V257L347 248Q284 187 200 187Q165 187 140 201T87 258Q42 332 42 430Q42 458 44 476ZM269 604Q265 605 254 605Q222 605 199 591T164 554T148 517T141 487Q140 478 140 430T141 373Q146 335 164 307T207 269Q223 263 247 263Q299 266 328 308T358 417Q358 435 356 456T346 511T318 570T269 604"],58:[444,0,278,90,188,"90 346V444H188V346H90ZM90 0V98H188V0H90"],59:[444,125,278,89,188,"90 346V444H188V346H90ZM90 0V98H188V1L139 -125H89L104 -64Q119 -3 120 -2Q120 0 105 0H90"],61:[370,-130,778,56,722,"56 350Q56 363 70 370H707Q722 362 722 350Q722 339 708 331L390 330H72Q56 335 56 350ZM56 150Q56 165 72 170H708Q722 160 722 150Q722 138 707 130H70Q56 137 56 150"],63:[704,0,472,55,416,"55 652Q63 658 77 666T132 689T214 704T265 703Q303 698 332 684T376 653T401 615T413 578T416 546Q416 475 360 426Q325 396 303 365T273 303T263 256T261 216V186H183V225Q184 281 194 322Q206 368 232 409T276 469T306 495Q323 517 323 550Q323 596 297 612T223 629Q187 629 157 618Q122 607 91 583L83 576L55 652ZM173 0V98H271V0H173"],64:[704,11,667,56,612,"422 576Q440 576 456 573T480 566L488 563Q488 565 484 571T472 588T452 607T424 622T387 629Q294 629 220 550T146 347Q146 233 210 155T365 66Q376 65 400 65Q465 68 517 86L532 91H612L598 76Q511 -11 388 -11Q250 -11 153 93T56 347Q56 454 107 538T231 663T378 704Q446 704 492 680T564 608T599 506T611 376Q611 320 607 299Q595 227 546 173T422 118Q343 118 288 185T232 347Q232 444 287 510T422 576ZM520 347Q520 429 487 465T421 501Q385 501 354 461T323 347Q323 270 355 232T422 193Q454 193 487 229T520 347"],65:[694,0,667,28,638,"183 181Q183 179 152 91T118 0H28L154 346L280 693Q281 694 333 694H385L511 349Q636 4 638 2Q638 0 584 0H530L464 183H184L183 181ZM324 606Q319 578 292 492T238 332T210 256Q210 254 324 254T438 255L429 281L419 308Q409 336 395 378T365 465T339 551T324 611V606"],66:[694,0,667,90,610,"425 363Q438 363 465 353T526 324T585 270T610 192Q610 132 561 78T426 7Q404 2 387 2T240 0H90V694H227Q373 693 396 689Q484 673 533 623T583 517Q583 494 574 473T551 437T520 409T487 388T456 374T433 366L425 363ZM490 516Q490 527 485 539T467 568T423 599T347 621Q340 622 262 623H188V399H261H286Q432 399 478 475Q490 496 490 516ZM514 190Q514 245 462 280T343 322Q336 323 259 323H188V71H274Q365 72 388 77Q445 88 479 121T514 190"],67:[706,12,639,58,587,"59 347Q59 440 100 521T218 654T392 705Q473 705 550 680Q577 670 577 667Q576 666 572 642T564 595T559 571Q515 601 479 613T392 626Q300 626 232 549T164 347Q164 231 229 150T397 68Q453 68 489 80T568 120L581 129L582 110Q584 91 585 71T587 46Q580 40 566 31T502 5T396 -11Q296 -11 218 41T99 174T59 347"],68:[694,0,722,88,666,"88 0V694H237H258H316Q383 694 425 686T511 648Q578 604 622 525T666 343Q666 190 564 86Q494 18 400 3Q387 1 237 0H88ZM565 341Q565 409 546 463T495 550T429 600T359 621Q348 623 267 623H189V71H267Q272 71 286 71T310 70Q461 70 527 184Q565 251 565 341"],69:[691,0,597,86,554,"86 0V691H541V611H366L190 612V397H513V321H190V85H372L554 86V0H86"],70:[691,0,569,86,526,"86 0V691H526V611H358L190 612V384H485V308H190V0H86"],71:[704,11,667,58,599,"59 346Q59 499 157 601T384 704Q436 704 466 700T541 679Q551 674 560 670T575 664T583 660T588 658T590 656Q590 652 582 605T573 557L564 564Q489 626 392 626Q301 626 233 549T164 347T233 145T392 68Q441 68 506 84V223H388V299H599V38L588 33Q494 -11 393 -11Q296 -11 219 40T100 172T59 346"],72:[694,0,708,86,621,"86 0V694H190V399H517V694H621V0H517V323H190V0H86"],73:[694,0,278,87,191,"87 0V694H191V0H87"],74:[694,22,472,43,388,"181 53Q200 53 215 56T241 66T259 79T272 95T280 109T285 122L287 129V694H388V415V229Q388 135 385 112T369 63Q364 51 355 39T328 12T280 -12T212 -22Q172 -22 130 -12T66 8T43 20L46 42Q50 65 54 88L58 110Q58 111 65 104Q107 53 181 53"],75:[694,0,694,88,651,"88 0V694H188V519L189 343L525 694H638L375 419L651 0H541L309 351L188 225V0H88"],76:[694,0,542,87,499,"87 0V694H191V79L297 80H451L499 81V0H87"],77:[694,0,875,92,782,"92 0V694H228L233 680Q236 675 284 547T382 275T436 106Q446 149 497 292T594 558L640 680L645 694H782V0H689V305L688 606Q688 577 500 78L479 23H392L364 96Q364 97 342 156T296 280T246 418T203 544T186 609V588Q185 568 185 517T185 427T185 305V0H92"],78:[694,0,708,88,619,"88 0V694H235L252 659Q261 639 364 428T526 84V694H619V0H472L455 35Q453 39 330 294T185 601L181 611V0H88"],79:[715,22,736,55,680,"55 345Q55 504 149 609T361 715Q386 715 406 713Q521 696 600 592T680 344Q680 193 590 86T368 -22Q239 -22 147 84T55 345ZM276 59T368 59T518 146T576 360Q576 473 525 545T401 634Q371 637 362 637Q284 637 222 562T159 360T217 147"],80:[694,0,639,88,583,"88 0V694H230Q347 693 370 692T410 686Q487 667 535 611T583 485Q583 409 527 348T379 276Q369 274 279 274H192V0H88ZM486 485Q486 523 471 551T432 593T391 612T357 621Q350 622 268 623H189V347H268Q350 348 357 349Q370 351 383 354T416 368T450 391T475 429T486 485"],81:[715,125,736,55,680,"55 345Q55 504 149 609T361 715Q386 715 406 713Q521 696 600 592T680 344Q680 284 665 231T629 143T587 85T551 48L536 35L648 -120L652 -125H531L452 -8L440 -12Q407 -22 369 -22Q239 -22 147 85T55 345ZM579 345Q579 473 517 555T369 637Q279 637 218 554T156 345Q156 223 215 141T368 58Q376 58 382 58T392 58T397 59T401 60T403 61H404Q404 63 360 128T315 194H421L453 150Q485 105 486 105Q490 108 496 113T517 138T545 182T567 247T579 334V345"],82:[694,0,646,88,617,"88 0V694H227H259H302Q365 694 399 689T474 663Q528 637 558 595T589 504Q589 482 584 462T569 426T547 396T522 372T495 353T470 338T449 328T434 322L429 320L440 300Q452 280 477 238T523 160L617 1L565 0Q513 0 512 1Q512 2 424 156L337 309H189V0H88ZM492 504Q492 600 367 620Q354 622 271 623H189V385H271Q363 386 388 392Q432 402 462 430T492 504"],83:[716,22,556,43,500,"55 514Q55 589 115 652T283 716Q315 716 345 711T396 699T432 685T457 672T467 667Q467 666 459 618T449 568Q383 634 282 634Q214 634 182 600T150 525Q150 507 155 492T172 465T194 446T222 432T247 423T272 416T289 412Q353 396 378 384Q432 358 466 307T500 194Q500 110 438 44T272 -22Q215 -22 159 -5T73 28T44 50Q45 51 49 75T57 122T62 146L65 143Q68 140 74 136T88 125T107 111T131 98T160 85T194 74T232 66T274 63H286Q327 63 366 96T406 182Q406 245 352 280Q329 296 265 310T173 339Q124 363 90 409T55 514"],84:[688,0,681,36,644,"36 608V688H644V608H518L392 609V0H288V609L162 608H36"],85:[694,22,688,87,600,"87 450V694H191V449Q192 203 193 194Q200 148 220 117T266 72T311 54T347 49Q404 49 446 84T501 178Q505 195 505 218T507 449V694H600V450Q600 414 600 356Q599 198 595 181Q594 178 594 177Q575 89 505 34T345 -22Q258 -22 184 34T89 196Q88 205 87 450"],86:[694,0,667,14,652,"14 692Q14 694 68 694H122L146 633Q325 165 339 90Q340 87 341 87Q341 124 530 619L558 694H605Q652 694 652 692Q650 690 523 354T390 10L387 0H279L276 10Q271 18 144 354T14 692"],87:[694,0,944,14,929,"115 694Q115 693 156 550T233 266T270 90L271 85Q272 86 272 92Q272 153 405 616L427 694H524L553 590Q672 174 681 95L682 84L684 95Q689 138 728 287T803 563T841 692Q841 694 885 694T929 693Q929 691 829 346L730 0H679L628 1L606 75Q478 524 470 600L469 611L467 600Q458 518 338 101L310 0H213L114 346Q14 691 14 693Q14 694 64 694H115"],88:[694,0,667,14,652,"14 0Q16 5 144 184T275 367L153 528Q121 571 88 615T42 674T28 694H150L228 584Q315 463 316 461L326 448L497 694H610L609 692Q606 689 492 528Q440 454 409 410T378 366Q378 365 515 182L652 0H531L326 292Q326 293 299 254T226 146L128 0H14"],89:[694,0,667,4,663,"4 693L64 694H125L174 621Q335 378 340 364L341 362Q361 398 395 450L558 694H663L383 277V0H282V278L143 485Q112 531 75 586T21 668L4 693"],90:[694,0,611,55,560,"69 617V694H555V643L373 362Q190 81 190 79H234Q244 79 272 79T344 80T419 81H560V0H55V53L237 334Q420 615 420 617Q413 618 387 618Q380 618 334 618T245 617H69"],91:[750,250,289,94,266,"94 -250V750H266V674H181V-174H266V-250H94"],93:[750,250,289,22,194,"22 674V750H194V-250H22V-174H107V674H22"],94:[694,-527,500,79,421,"146 612L212 694H287L353 612Q417 532 420 529Q421 528 418 527Q414 527 383 527H345L250 639Q244 633 199 580L154 527H116Q79 528 79 529Q82 532 146 612"],95:[-38,114,500,0,499,"0 -114V-38H499V-114H0"],97:[460,10,481,38,408,"236 387Q209 387 184 382T141 370T111 355T91 342T83 337L82 355Q80 373 79 393T77 417Q77 419 81 421Q86 423 91 426Q155 460 227 460H238Q319 460 368 400Q393 371 400 341T408 252Q408 240 408 207T407 152V0H317V39L306 32Q244 -10 159 -10H152Q109 -10 77 22Q38 61 38 126Q38 142 39 146Q55 199 130 223T295 252H314V277Q314 305 313 310Q308 342 287 364T236 387ZM303 186Q124 180 124 126Q124 105 144 86T208 66Q284 66 309 124Q314 137 314 166V186H303"],98:[694,11,517,75,482,"303 -11Q280 -11 259 -6T222 6T194 21T176 33T168 38V0H75V694H165V550L166 405Q247 455 336 455Q397 455 439 389T482 226Q482 115 428 52T303 -11ZM390 221Q390 283 361 331T265 379Q214 379 177 342L168 334V118Q203 66 258 66Q316 66 353 106T390 221"],99:[460,10,444,34,414,"34 223Q34 327 99 393T245 460Q290 460 301 459Q328 455 354 445T395 427T410 415L396 338L386 344Q377 349 362 357T335 370Q305 381 258 381H252Q182 381 146 315Q126 275 126 224Q126 158 159 113T255 68Q329 68 394 106L408 114L410 93Q411 72 412 52L414 32Q407 27 394 20T338 2T252 -10Q156 -10 95 58T34 223"],100:[694,10,517,33,441,"33 224Q33 321 81 388T197 455Q277 455 342 414L351 408V694H441V0H348V44L338 37Q278 -10 198 -10Q177 -10 168 -8Q99 11 62 90Q33 148 33 224ZM348 337Q307 378 263 378Q260 378 256 378T251 379Q239 379 223 374T182 355T142 305T126 220Q126 90 225 67Q231 66 250 66H255Q306 66 342 115L348 124V337"],101:[461,10,444,28,415,"28 226Q28 329 91 395T235 461Q258 461 279 456T325 436T368 397T399 332T415 238V219H113V215Q113 163 151 114T248 65Q273 65 298 70T341 82T373 96T396 108L403 113Q403 106 406 76T409 38Q409 34 408 33T393 24Q325 -10 252 -10Q155 -10 92 59T28 226ZM340 289L338 297Q335 305 333 310T327 326T317 343T304 358T286 372T263 381T233 385Q212 385 193 376T162 353T140 325T127 301T123 289H340"],102:[705,0,306,27,347,"262 705H267Q300 705 347 694V612L336 616Q303 628 274 628H266Q224 628 199 605Q187 590 184 579T181 541V507V444H287V371H184V0H94V371H27V444H94V492Q94 544 95 550Q102 617 151 661T262 705"],103:[456,206,500,28,485,"55 286Q55 357 105 406T224 455Q280 455 323 421L322 423L318 427Q318 428 339 434T396 448T465 455H471L478 416L485 377Q484 377 474 379T445 383T401 385Q397 385 391 385T381 384L362 383L357 387Q358 386 364 375T375 354T384 325T389 287Q389 217 340 168T221 119Q178 119 138 142Q133 145 131 143Q125 131 125 117Q125 82 155 72L227 71Q230 71 251 71T280 71T310 69T343 65T373 57T403 46T428 30T449 7Q471 -26 471 -62V-71Q471 -136 384 -178Q326 -206 250 -206Q159 -206 102 -172T30 -92Q28 -84 28 -68T31 -37T40 -12T52 7T64 21T75 31T82 38Q60 68 60 106Q60 145 80 180L86 189L80 199Q55 240 55 286ZM304 233T304 287T279 362T220 383Q189 383 165 361T140 287Q140 243 161 217T220 191Q253 191 278 212ZM250 -134Q298 -134 331 -122T375 -96T387 -69Q387 -21 306 -7Q288 -5 216 -5Q161 -5 153 -7Q146 -9 139 -13T122 -31T113 -66Q113 -75 113 -80T127 -97T166 -121Q203 -134 250 -134"],104:[694,0,517,73,443,"163 395Q223 455 307 455Q417 455 438 354Q442 331 443 164V0H350V157Q349 315 348 320Q334 378 259 378H253Q224 378 204 358Q180 334 173 301T165 209Q165 198 165 172T166 129V0H73V694H163V395"],105:[680,0,239,67,171,"67 576V680H171V576H67ZM74 0V444H164V0H74"],106:[680,205,267,-60,192,"88 576V680H192V576H88ZM31 -126Q40 -126 48 -125T62 -122T73 -117T82 -111T89 -105T94 -99T98 -92L102 -86V444H192V180Q191 -45 191 -70T184 -113Q171 -152 140 -178T63 -205Q34 -205 4 -197T-43 -181T-59 -171T-51 -133T-41 -96L-38 -99Q-34 -102 -28 -106T-13 -115T7 -123T31 -126"],107:[694,0,489,76,471,"76 0V694H163V257L340 444H449L286 272L292 263Q296 259 378 138T463 12L471 0H372L309 92Q294 114 277 139T250 179T237 198L228 211L160 139V0H76"],108:[694,0,239,74,164,"74 0V694H164V0H74"],109:[455,0,794,73,720,"160 392Q223 455 304 455Q359 455 386 436T430 383L437 391Q495 455 584 455Q694 455 715 354Q719 331 720 164V0H627V157Q626 315 625 320Q611 378 536 378H530Q501 378 481 358Q457 334 450 301T442 209Q442 198 442 172T443 129V0H350V157Q349 315 348 320Q334 378 259 378H253Q224 378 204 358Q180 334 173 301T165 209Q165 198 165 172T166 129V0H73V450H160V392"],110:[455,0,517,73,443,"160 392Q214 446 283 454Q285 454 292 454T303 455H306Q417 455 438 354Q442 331 443 164V0H350V157Q349 315 348 320Q334 378 259 378H253Q224 378 204 358Q180 334 173 301T165 209Q165 198 165 172T166 129V0H73V450H160V392"],111:[460,10,500,28,471,"28 222Q28 323 95 391T244 460Q275 460 281 459Q364 445 417 377T471 219Q471 124 408 57T250 -10Q158 -10 93 57T28 222ZM377 230Q377 277 364 310T328 358T287 379T248 385Q233 385 219 382T186 369T155 342T132 297T122 230Q122 146 159 108T250 69H253Q263 69 274 70T305 81T339 106T365 154T377 230"],112:[455,194,517,75,483,"166 404Q194 424 241 439T337 455H341Q410 455 451 370Q483 307 483 222Q483 128 433 59T306 -10Q282 -10 260 -5T222 7T194 21T176 33T168 38V-194H75V444H165V424L166 404ZM390 222Q390 287 354 331T266 376T177 340L168 332V118Q200 66 257 66Q313 66 351 112T390 222"],113:[455,194,517,33,441,"33 220Q33 325 87 389T206 454Q286 454 341 406L351 398V455H441V-194H348V41L338 35Q276 -8 198 -11Q171 -11 154 -5Q102 12 68 74T33 220ZM126 220Q126 160 161 113T251 65Q305 65 351 123V298L350 301Q349 304 347 308T342 319T336 331T327 343T315 355T300 365T283 373Q273 375 256 375Q208 375 167 332T126 220"],114:[455,0,342,74,327,"171 389Q237 455 320 455H327V373H317Q262 369 220 336T167 248Q165 239 164 119V0H74V450H159V377L171 389"],115:[460,10,383,28,360,"33 326Q33 376 60 408T117 450T175 460H190Q245 460 272 454T345 429Q345 428 338 388L331 349Q278 386 188 386H183Q119 386 119 336Q119 307 142 295T210 276T278 256Q360 213 360 130Q360 108 354 88T332 43T281 5T195 -10Q152 -10 111 1T49 22T28 35Q29 36 32 56T39 95T43 115T51 110T72 99T102 85T143 73T193 68Q274 68 274 123Q274 152 248 167Q234 178 187 186T115 207Q66 229 46 273Q33 298 33 326"],116:[571,10,361,18,333,"333 27Q333 24 314 16T257 -1T184 -10H172Q146 -10 128 14T105 58T99 91Q95 113 95 251V371H18V444H98V571H182V444H316V371H182V253Q183 128 189 104Q199 68 234 68Q277 72 314 98Q315 93 323 61T333 27"],117:[444,11,517,73,443,"353 39Q352 38 344 34T331 27T315 19T295 11T270 3T241 -3T207 -8T168 -10H162Q148 -10 137 -8T111 2T87 30T74 81Q73 89 73 268V444H166V268L167 92Q171 79 174 74T192 64T238 59Q317 59 344 116Q349 128 349 148T350 291V444H443V0H353V39"],118:[444,0,461,14,446,"178 0Q15 441 14 442Q14 444 60 444Q107 444 107 442Q108 441 136 364T196 194T232 67Q233 98 280 234T356 442Q356 444 401 444T446 442L282 0H178"],119:[444,0,683,14,668,"14 444H105L108 434Q192 160 200 74V65L201 75Q206 144 282 399L296 444H381L399 381Q480 112 480 69L481 70Q481 113 562 386L580 444H668L534 1L483 0H432L429 10Q343 294 338 367L337 377Q336 375 336 370Q336 340 313 250T269 88T245 11L242 0H195L148 1L14 444"],120:[444,0,461,0,460,"187 229L6 444H107L227 294L344 444H393L442 443Q439 437 299 268L267 229L460 0H359L294 88Q280 107 262 131T236 166L227 177L100 0H0Q1 1 47 58T140 171T187 229"],121:[444,204,461,14,446,"113 -204Q83 -204 63 -200L43 -197Q43 -196 40 -157T36 -117L48 -121Q79 -133 114 -133Q124 -133 130 -132T145 -121T163 -94Q169 -82 184 -42T200 1L188 29Q176 57 152 115T107 223T62 330T26 416L14 443Q14 444 61 444H109L122 411Q230 155 236 75L237 65V74Q245 161 348 424L356 444H401Q446 444 446 443L396 313Q345 183 293 49T236 -93Q191 -204 123 -204H113"],122:[444,0,435,28,402,"42 370V444H400V395L156 76L279 77H402V0H28V51L273 371L157 370H42"],126:[327,-193,500,83,416,"83 204Q86 254 113 290T186 327Q211 327 251 299T312 270Q337 270 340 315V327H416V316Q413 258 382 226T315 193Q289 193 249 221T187 250Q162 250 159 205V193H83V204"]});MathJax.Ajax.loadComplete(MathJax.OutputJax.SVG.fontDir+"/SansSerif/Regular/BasicLatin.js");
jonobr1/cdnjs
ajax/libs/mathjax/2.2/jax/output/SVG/fonts/TeX/SansSerif/Regular/BasicLatin.js
JavaScript
mit
23,731
/* * /MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/GeometricShapes.js * * Copyright (c) 2009-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS.MathJax_AMS,{9632:[689,0,778,55,722,"71 0Q59 4 55 16V346L56 676Q64 686 70 689H709Q719 681 722 674V15Q719 10 709 1L390 0H71"],9633:[689,0,778,55,722,"71 0Q59 4 55 16V346L56 676Q64 686 70 689H709Q719 681 722 674V15Q719 10 709 1L390 0H71ZM682 40V649H95V40H682"],9650:[575,20,722,84,637,"99 -20Q84 -11 84 0Q84 5 148 145T278 424L342 563Q347 575 360 575Q368 575 375 570Q376 569 441 430T571 148T637 0Q637 -11 622 -20H99"],9651:[575,20,722,84,637,"99 -20Q84 -11 84 0Q84 5 148 145T278 424L342 563Q347 575 360 575Q368 575 375 570Q376 569 441 430T571 148T637 0Q637 -11 622 -20H99ZM476 260L360 509L248 266Q137 24 135 22Q135 20 360 20Q586 20 586 21L476 260"],9654:[540,41,778,83,694,"83 523Q83 524 85 527T92 535T103 539Q107 539 389 406T680 268Q694 260 694 249Q694 239 687 234Q685 232 395 95L107 -41H101Q90 -40 83 -26V523"],9660:[576,19,722,84,637,"84 556Q84 567 99 576H622Q637 567 637 556Q637 551 572 409T441 127T375 -14Q368 -19 360 -19H358Q349 -19 342 -7T296 92Q249 193 211 275Q84 550 84 556"],9661:[576,19,722,84,637,"84 556Q84 567 99 576H622Q637 567 637 556Q637 551 572 409T441 127T375 -14Q368 -19 360 -19H358Q349 -19 342 -7T296 92Q249 193 211 275Q84 550 84 556ZM586 534Q586 536 361 536Q135 536 135 535L358 52L361 47L473 290Q584 532 586 534"],9664:[539,41,778,83,694,"694 -26Q686 -40 676 -41H670L382 95Q92 232 90 234Q83 239 83 249Q83 262 96 267Q101 270 379 401T665 537Q671 539 674 539Q686 539 694 524V-26"],9674:[716,132,667,56,611,"318 709Q325 716 332 716Q340 716 344 713T474 511Q611 298 611 292Q611 285 526 152Q494 103 474 72Q347 -128 344 -130Q340 -132 333 -132T322 -130Q319 -128 257 -31T131 169T60 278Q56 285 56 292Q56 298 60 305Q73 326 194 516T318 709ZM567 290T567 291T451 475T333 658L100 293Q100 288 215 108L333 -74Q334 -74 450 108"]});MathJax.Ajax.loadComplete(MathJax.OutputJax.SVG.fontDir+"/AMS/Regular/GeometricShapes.js");
htmlstrap/cdnjs
ajax/libs/mathjax/2.2/jax/output/SVG/fonts/TeX/AMS/Regular/GeometricShapes.js
JavaScript
mit
2,272
/* * /MathJax/jax/output/SVG/autoload/menclose.js * * Copyright (c) 2009-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){var c="2.2";var a=MathJax.ElementJax.mml,d=MathJax.OutputJax.SVG,b=d.BBOX;b.ELLIPSE=b.Subclass({type:"ellipse",removeable:false,Init:function(i,k,e,g,f,j){if(j==null){j={}}j.fill="none";if(f){j.stroke=f}j["stroke-width"]=g.toFixed(2).replace(/\.?0+$/,"");j.cx=Math.floor(e/2);j.cy=Math.floor((i+k)/2-k);j.rx=Math.floor((e-g)/2);j.ry=Math.floor((i+k-g)/2);this.SUPER(arguments).Init.call(this,j);this.w=this.r=e;this.h=this.H=i;this.d=this.D=k;this.l=0}});b.DLINE=b.Subclass({type:"line",removeable:false,Init:function(i,l,e,g,f,j,k){if(k==null){k={}}k.fill="none";if(f){k.stroke=f}k["stroke-width"]=g.toFixed(2).replace(/\.?0+$/,"");if(j=="up"){k.x1=Math.floor(g/2);k.y1=Math.floor(g/2-l);k.x2=Math.floor(e-g/2);k.y2=Math.floor(i-g/2)}else{k.x1=Math.floor(g/2);k.y1=Math.floor(i-g/2);k.x2=Math.floor(e-g/2);k.y2=Math.floor(g/2-l)}this.SUPER(arguments).Init.call(this,k);this.w=this.r=e;this.h=this.H=i;this.d=this.D=l;this.l=0}});b.FPOLY=b.Subclass({type:"polygon",removeable:false,Init:function(p,g,e){if(e==null){e={}}if(g){e.fill=g}var j=[],o=100000000,n=o,r=-o,q=r;for(var h=0,f=p.length;h<f;h++){var l=p[h][0],k=p[h][1];if(l>r){r=l}if(l<o){o=l}if(k>q){q=k}if(k<n){n=k}j.push(Math.floor(l)+","+Math.floor(k))}e.points=j.join(" ");this.SUPER(arguments).Init.call(this,e);this.w=this.r=r;this.h=this.H=q;this.d=this.D=-n;this.l=-o}});b.PPATH=b.Subclass({type:"path",removeable:false,Init:function(i,l,e,k,g,f,j){if(j==null){j={}}j.fill="none";if(f){j.stroke=f}j["stroke-width"]=g.toFixed(2).replace(/\.?0+$/,"");j.d=k;this.SUPER(arguments).Init.call(this,j);this.w=this.r=e;this.h=this.H=i+l;this.d=this.D=this.l=0;this.y=-l}});a.menclose.Augment({toSVG:function(C,G){this.SVGgetStyles();var z=this.SVG();this.SVGhandleSpace(z);var o=this.SVGdataStretched(0,C,G);var g=this.getValues("notation","thickness","padding","mathcolor","color");if(g.color&&!this.mathcolor){g.mathcolor=g.color}if(g.thickness==null){g.thickness=".075em"}if(g.padding==null){g.padding=".2em"}var A=this.SVGgetMu(z),M=this.SVGgetScale();var B=d.length2em(g.padding,A,1/d.em)*M;var v=d.length2em(g.thickness,A,1/d.em);var r=o.h+B+v,y=o.d+B+v,j=o.w+2*(B+v);var k=MathJax.Hub.SplitList(g.notation);var u=0,s,J,I,E,n=[false,false,false,false];if(!g.mathcolor){g.mathcolor="black"}for(I=0,E=k.length;I<E;I++){switch(k[I]){case a.NOTATION.BOX:n=[true,true,true,true];break;case a.NOTATION.ROUNDEDBOX:z.Add(b.FRAME(r,y,j,v,"solid",g.mathcolor,{rx:Math.floor(Math.min(r+y-v,j-v)/4)}));break;case a.NOTATION.CIRCLE:z.Add(b.ELLIPSE(r,y,j,v,g.mathcolor));break;case a.NOTATION.ACTUARIAL:n[0]=true;case a.NOTATION.RIGHT:n[1]=true;break;case a.NOTATION.LEFT:n[3]=true;break;case a.NOTATION.TOP:n[0]=true;break;case a.NOTATION.BOTTOM:n[2]=true;break;case a.NOTATION.VERTICALSTRIKE:z.Add(b.VLINE(r+y,v,"solid",g.mathcolor),(j-v)/2,-y);break;case a.NOTATION.HORIZONTALSTRIKE:z.Add(b.HLINE(j,v,"solid",g.mathcolor),0,(r+y-v)/2-y);break;case a.NOTATION.UPDIAGONALSTRIKE:if(this.arrow){var F=Math.sqrt(j*j+(r+y)*(r+y)),K=1/F*10/d.em*v/0.075;s=j*K;J=(r+y)*K;var q=0.4*J;z.Add(b.DLINE(r-0.5*J,y,j-0.5*s,v,g.mathcolor,"up"));z.Add(b.FPOLY([[q+s,J],[q-0.4*J,0.4*s],[q+0.3*s,0.3*J],[q+0.4*J,-0.4*s],[q+s,J]],g.mathcolor),j-s-q,r-J)}else{z.Add(b.DLINE(r,y,j,v,g.mathcolor,"up"))}break;case a.NOTATION.DOWNDIAGONALSTRIKE:z.Add(b.DLINE(r,y,j,v,g.mathcolor,"down"));break;case a.NOTATION.MADRUWB:n[1]=n[2]=true;break;case a.NOTATION.RADICAL:z.Add(b.PPATH(r,y,j,"M "+this.SVGxy(v/2,0.4*(r+y))+" L "+this.SVGxy(B,v/2)+" L "+this.SVGxy(2*B,r+y-v/2)+" L "+this.SVGxy(j,r+y-v/2),v,g.mathcolor),0,v);u=B;break;case a.NOTATION.LONGDIV:z.Add(b.PPATH(r,y,j,"M "+this.SVGxy(v/2,v/2)+" a "+this.SVGxy(B,(r+y)/2-2*v)+" 0 0,1 "+this.SVGxy(v/2,r+y-v)+" L "+this.SVGxy(j,r+y-v/2),v,g.mathcolor),0,v/2);u=B;break}}var L=[["H",j,0,r-v],["V",r+y,j-v,-y],["H",j,0,-y],["V",r+y,0,-y]];for(I=0;I<4;I++){if(n[I]){var e=L[I];z.Add(b[e[0]+"LINE"](e[1],v,"solid",g.mathcolor),e[2],e[3])}}z.Add(o,u+B+v,0,false,true);z.Clean();this.SVGhandleSpace(z);this.SVGhandleColor(z);this.SVGsaveData(z);return z},SVGxy:function(e,f){return Math.floor(e)+","+Math.floor(f)}});MathJax.Hub.Startup.signal.Post("SVG menclose Ready");MathJax.Ajax.loadComplete(d.autoloadDir+"/menclose.js")});
as-com/jsdelivr
files/mathjax/2.2.0/jax/output/SVG/autoload/menclose.js
JavaScript
mit
4,633
/* Highcharts JS v2.2.5 (2012-06-08) (c) 2009-2011 Torstein H?nsi License: www.highcharts.com/license */ (function(){function u(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function la(){for(var a=0,b=arguments,c=b.length,d={};a<c;a++)d[b[a++]]=b[a];return d}function w(a,b){return parseInt(a,b||10)}function ra(a){return typeof a==="string"}function aa(a){return typeof a==="object"}function Ja(a){return Object.prototype.toString.call(a)==="[object Array]"}function Ka(a){return typeof a==="number"}function ma(a){return L.log(a)/L.LN10}function ba(a){return L.pow(10,a)}function za(a,b){for(var c= a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function s(a){return a!==A&&a!==null}function z(a,b,c){var d,e;if(ra(b))s(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(s(b)&&aa(b))for(d in b)a.setAttribute(d,b[d]);return e}function na(a){return Ja(a)?a:[a]}function o(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],typeof c!=="undefined"&&c!==null)return c}function F(a,b){if(La&&b&&b.opacity!==A)b.filter="alpha(opacity="+b.opacity*100+")";u(a.style,b)}function S(a, b,c,d,e){a=B.createElement(a);b&&u(a,b);e&&F(a,{padding:0,border:U,margin:0});c&&F(a,c);d&&d.appendChild(a);return a}function ca(a,b){var c=function(){};c.prototype=new a;u(c.prototype,b);return c}function Xa(a,b,c,d){var e=V.lang,f=a;b===-1?(b=(a||0).toString(),a=b.indexOf(".")>-1?b.split(".")[1].length:0):a=isNaN(b=M(b))?2:b;var b=a,c=c===void 0?e.decimalPoint:c,d=d===void 0?e.thousandsSep:d,e=f<0?"-":"",a=String(w(f=M(+f||0).toFixed(b))),g=a.length>3?a.length%3:0;return e+(g?a.substr(0,g)+d:"")+ a.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(b?c+M(f-a).toFixed(b).slice(2):"")}function sa(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function gb(a,b,c,d){var e,c=o(c,1);e=a/c;b||(b=[1,2,2.5,5,10],d&&d.allowDecimals===!1&&(c===1?b=[1,2,5,10]:c<=0.1&&(b=[1/c])));for(d=0;d<b.length;d++)if(a=b[d],e<=(b[d]+(b[d+1]||b[d]))/2)break;a*=c;return a}function Ob(a,b){var c=b||[[vb,[1,2,5,10,20,25,50,100,200,500]],[hb,[1,2,5,10,15,30]],[Ya,[1,2,5,10,15,30]],[Ma,[1,2,3,4,6,8,12]],[oa,[1,2]],[Za, [1,2]],[Na,[1,2,3,4,6]],[ta,null]],d=c[c.length-1],e=D[d[0]],f=d[1],g;for(g=0;g<c.length;g++)if(d=c[g],e=D[d[0]],f=d[1],c[g+1]&&a<=(e*f[f.length-1]+D[c[g+1][0]])/2)break;e===D[ta]&&a<5*e&&(f=[1,2,5]);e===D[ta]&&a<5*e&&(f=[1,2,5]);c=gb(a/e,f);return{unitRange:e,count:c,unitName:d[0]}}function Pb(a,b,c,d){var e=[],f={},g=V.global.useUTC,h,i=new Date(b),b=a.unitRange,j=a.count;b>=D[hb]&&(i.setMilliseconds(0),i.setSeconds(b>=D[Ya]?0:j*W(i.getSeconds()/j)));if(b>=D[Ya])i[wb](b>=D[Ma]?0:j*W(i[ib]()/j)); if(b>=D[Ma])i[xb](b>=D[oa]?0:j*W(i[jb]()/j));if(b>=D[oa])i[kb](b>=D[Na]?1:j*W(i[Oa]()/j));b>=D[Na]&&(i[yb](b>=D[ta]?0:j*W(i[$a]()/j)),h=i[ab]());b>=D[ta]&&(h-=h%j,i[zb](h));if(b===D[Za])i[kb](i[Oa]()-i[lb]()+o(d,1));d=1;h=i[ab]();for(var k=i.getTime(),l=i[$a](),m=i[Oa](),i=g?0:(864E5+i.getTimezoneOffset()*6E4)%864E5;k<c;)e.push(k),b===D[ta]?k=bb(h+d*j,0):b===D[Na]?k=bb(h,l+d*j):!g&&(b===D[oa]||b===D[Za])?k=bb(h,l,m+d*j*(b===D[oa]?1:7)):(k+=b*j,b<=D[Ma]&&k%D[oa]===i&&(f[k]=oa)),d++;e.push(k);e.info= u(a,{higherRanks:f,totalRange:b*j});return e}function Ab(){this.symbol=this.color=0}function Qb(a,b){var c=a.length,d,e;for(e=0;e<c;e++)a[e].ss_i=e;a.sort(function(a,c){d=b(a,c);return d===0?a.ss_i-c.ss_i:d});for(e=0;e<c;e++)delete a[e].ss_i}function Pa(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function Aa(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function Ba(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function Qa(a){cb||(cb=S(ia)); a&&cb.appendChild(a);cb.innerHTML=""}function mb(a,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;else N.console&&console.log(c)}function ja(a){return parseFloat(a.toPrecision(14))}function ua(a,b){Ra=o(a,b.animation)}function Bb(){var a=V.global.useUTC,b=a?"getUTC":"get",c=a?"setUTC":"set";bb=a?Date.UTC:function(a,b,c,g,h,i){return(new Date(a,b,o(c,1),o(g,0),o(h,0),o(i,0))).getTime()};ib=b+"Minutes";jb=b+"Hours";lb=b+"Day";Oa=b+"Date";$a=b+"Month";ab=b+"FullYear";wb= c+"Minutes";xb=c+"Hours";kb=c+"Date";yb=c+"Month";zb=c+"FullYear"}function va(){}function Sa(a,b,c){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;c||this.addLabel()}function nb(a,b){this.axis=a;if(b)this.options=b,this.id=b.id;return this}function Cb(a,b,c,d,e){var f=a.chart.inverted;this.axis=a;this.isNegative=c;this.options=b;this.x=d;this.stack=e;this.alignOptions={align:b.align||(f?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":c?"bottom":"top"),y:o(b.y,f?4:c?14: -6),x:o(b.x,f?c?-6:6:0)};this.textAlign=b.textAlign||(f?c?"right":"left":"center")}function ob(){this.init.apply(this,arguments)}function pb(a,b){var c=b.borderWidth,d=b.style,e=b.shared,f=w(d.padding);this.chart=a;this.options=b;d.padding=0;this.crosshairs=[];this.currentY=this.currentX=0;this.tooltipIsHidden=!0;this.label=a.renderer.label("",0,0,null,null,null,b.useHTML,null,"tooltip").attr({padding:f,fill:b.backgroundColor,"stroke-width":c,r:b.borderRadius,zIndex:8}).css(d).hide().add();ga||this.label.shadow(b.shadow); this.shared=e}function Db(a,b){var c=ga?"":b.chart.zoomType;this.zoomX=/x/.test(c);this.zoomY=/y/.test(c);this.options=b;this.chart=a;this.init(a,b.tooltip)}function qb(a){this.init(a)}function rb(a,b){var c,d=a.series;a.series=null;c=C(V,a);c.series=a.series=d;var d=c.chart,e=d.margin,e=aa(e)?e:[e,e,e,e];this.optionsMarginTop=o(d.marginTop,e[0]);this.optionsMarginRight=o(d.marginRight,e[1]);this.optionsMarginBottom=o(d.marginBottom,e[2]);this.optionsMarginLeft=o(d.marginLeft,e[3]);this.runChartClick= (e=d.events)&&!!e.click;this.callback=b;this.isResizing=0;this.options=c;this.axes=[];this.series=[];this.hasCartesianSeries=d.showAxes;this.init(e)}var A,B=document,N=window,L=Math,t=L.round,W=L.floor,wa=L.ceil,x=L.max,O=L.min,M=L.abs,X=L.cos,da=L.sin,xa=L.PI,Eb=xa*2/360,ya=navigator.userAgent,La=/msie/i.test(ya)&&!N.opera,Ca=B.documentMode===8,Fb=/AppleWebKit/.test(ya),Gb=/Firefox/.test(ya),Da=!!B.createElementNS&&!!B.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,Rb=Gb&&parseInt(ya.split("Firefox/")[1], 10)<4,ga=!Da&&!La&&!!B.createElement("canvas").getContext,Ta,ea=B.documentElement.ontouchstart!==A,Hb={},sb=0,cb,V,db,Ra,Ua,D,Sb=function(){},ia="div",U="none",tb="rgba(192,192,192,"+(Da?1.0E-6:0.0020)+")",vb="millisecond",hb="second",Ya="minute",Ma="hour",oa="day",Za="week",Na="month",ta="year",bb,ib,jb,lb,Oa,$a,ab,wb,xb,kb,yb,zb,Y={};N.Highcharts={};db=function(a,b,c){if(!s(b)||isNaN(b))return"Invalid date";var a=o(a,"%Y-%m-%d %H:%M:%S"),d=new Date(b),e,f=d[jb](),g=d[lb](),h=d[Oa](),i=d[$a](),j= d[ab](),k=V.lang,l=k.weekdays,b={a:l[g].substr(0,3),A:l[g],d:sa(h),e:h,b:k.shortMonths[i],B:k.months[i],m:sa(i+1),y:j.toString().substr(2,2),Y:j,H:sa(f),I:sa(f%12||12),l:f%12||12,M:sa(d[ib]()),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:sa(d.getSeconds()),L:sa(t(b%1E3),3)};for(e in b)a=a.replace("%"+e,b[e]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};Ab.prototype={wrapColor:function(a){if(this.color>=a)this.color=0},wrapSymbol:function(a){if(this.symbol>=a)this.symbol=0}};D=la(vb,1,hb,1E3,Ya,6E4, Ma,36E5,oa,864E5,Za,6048E5,Na,2592E6,ta,31556952E3);Ua={init:function(a,b,c){var b=b||"",d=a.shift,e=b.indexOf("C")>-1,f=e?7:3,g,b=b.split(" "),c=[].concat(c),h,i,j=function(a){for(g=a.length;g--;)a[g]==="M"&&a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&&(j(b),j(c));a.isArea&&(h=b.splice(b.length-6,6),i=c.splice(c.length-6,6));if(d<=c.length/f)for(;d--;)c=[].concat(c).splice(0,f).concat(c);a.shift=0;if(b.length)for(a=c.length;b.length<a;)d=[].concat(b).splice(b.length-f,f),e&&(d[f-6]=d[f-2],d[f- 5]=d[f-1]),b=b.concat(d);h&&(b=b.concat(h),c=c.concat(i));return[b,c]},step:function(a,b,c,d){var e=[],f=a.length;if(c===1)e=d;else if(f===b.length&&c<1)for(;f--;)d=parseFloat(a[f]),e[f]=isNaN(d)?a[f]:c*parseFloat(b[f]-d)+d;else e=b;return e}};var T=N.HighchartsAdapter,G=T||{},Va=G.adapterRun,Ib=G.getScript,n=G.each,ub=G.grep,Jb=G.offset,Ea=G.map,C=G.merge,I=G.addEvent,P=G.removeEvent,E=G.fireEvent,Kb=G.washMouseEvent,eb=G.animate,Fa=G.stop;T&&T.init&&T.init(Ua);if(!T&&N.jQuery){var Q=jQuery,Ib=Q.getScript, Va=function(a,b){return Q(a)[b]()},n=function(a,b){for(var c=0,d=a.length;c<d;c++)if(b.call(a[c],a[c],c,a)===!1)return c},ub=Q.grep,Ea=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b.call(a[d],a[d],d,a);return c},C=function(){var a=arguments;return Q.extend(!0,null,a[0],a[1],a[2],a[3])},Jb=function(a){return Q(a).offset()},I=function(a,b,c){Q(a).bind(b,c)},P=function(a,b,c){var d=B.removeEventListener?"removeEventListener":"detachEvent";B[d]&&!a[d]&&(a[d]=function(){});Q(a).unbind(b,c)}, E=function(a,b,c,d){var e=Q.Event(b),f="detached"+b,g;!La&&c&&(delete c.layerX,delete c.layerY);u(e,c);a[b]&&(a[f]=a[b],a[b]=null);n(["preventDefault","stopPropagation"],function(a){var b=e[a];e[a]=function(){try{b.call(e)}catch(c){a==="preventDefault"&&(g=!0)}}});Q(a).trigger(e);a[f]&&(a[b]=a[f],a[f]=null);d&&!e.isDefaultPrevented()&&!g&&d(e)},Kb=function(a){return a},eb=function(a,b,c){var d=Q(a);if(b.d)a.toD=b.d,b.d=1;d.stop();d.animate(b,c)},Fa=function(a){Q(a).stop()};Q.extend(Q.easing,{easeOutQuad:function(a, b,c,d,e){return-d*(b/=e)*(b-2)+c}});var Lb=Q.fx,Mb=Lb.step;n(["cur","_default","width","height"],function(a,b){var c=Mb,d,e;a==="cur"?c=Lb.prototype:a==="_default"&&Q.Tween&&(c=Q.Tween.propHooks[a],a="set");(d=c[a])&&(c[a]=function(c){c=b?c:this;e=c.elem;return e.attr?e.attr(c.prop,a==="cur"?A:c.now):d.apply(this,arguments)})});Mb.d=function(a){var b=a.elem;if(!a.started){var c=Ua.init(b,b.d,b.toD);a.start=c[0];a.end=c[1];a.started=!0}b.attr("d",Ua.step(a.start,a.end,a.pos,b.toD))}}G={enabled:!0, align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};V={colors:"#4572A7,#AA4643,#89A54E,#80699B,#3D96AE,#DB843D,#92A8CD,#A47D7C,#B5CA92".split(","),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","), decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/2.2.5/modules/canvas-tools.js"},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0", resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},lineWidth:2,shadow:!0,marker:{enabled:!0,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:C(G, {enabled:!1,y:-6,formatter:function(){return this.y}}),cropThreshold:300,pointRange:0,showInLegend:!0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,navigation:{activeColor:"#3E576F",inactiveColor:"#CCC"},shadow:!1,itemStyle:{cursor:"pointer",color:"#3E576F",fontSize:"12px"},itemHoverStyle:{color:"#000"}, itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"1em"},style:{position:"absolute",backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:!0,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M", hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',shadow:!0,shared:ga,snap:ea?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5}, style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var Z=V.plotOptions,T=Z.line;Bb();var pa=function(a){var b=[],c;(function(a){(c=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(a))?b=[w(c[1]),w(c[2]),w(c[3]),parseFloat(c[4],10)]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&(b=[w(c[1],16),w(c[2],16),w(c[3],16),1])})(a);return{get:function(c){return b&&!isNaN(b[0])?c==="rgb"?"rgb("+b[0]+","+b[1]+","+b[2]+")":c==="a"?b[3]: "rgba("+b.join(",")+")":a},brighten:function(a){if(Ka(a)&&a!==0){var c;for(c=0;c<3;c++)b[c]+=w(a*255),b[c]<0&&(b[c]=0),b[c]>255&&(b[c]=255)}return this},setOpacity:function(a){b[3]=a;return this}}};va.prototype={init:function(a,b){this.element=b==="span"?S(b):B.createElementNS("http://www.w3.org/2000/svg",b);this.renderer=a;this.attrSetters={}},animate:function(a,b,c){b=o(b,Ra,!0);Fa(this);if(b){b=C(b);if(c)b.complete=c;eb(this,a,b)}else this.attr(a),c&&c()},attr:function(a,b){var c,d,e,f,g=this.element, h=g.nodeName,i=this.renderer,j,k=this.attrSetters,l=this.shadows,m,p,q=this;ra(a)&&s(b)&&(c=a,a={},a[c]=b);if(ra(a))c=a,h==="circle"?c={x:"cx",y:"cy"}[c]||c:c==="strokeWidth"&&(c="stroke-width"),q=z(g,c)||this[c]||0,c!=="d"&&c!=="visibility"&&(q=parseFloat(q));else for(c in a)if(j=!1,d=a[c],e=k[c]&&k[c](d,c),e!==!1){e!==A&&(d=e);if(c==="d")d&&d.join&&(d=d.join(" ")),/(NaN| {2}|^$)/.test(d)&&(d="M 0 0");else if(c==="x"&&h==="text"){for(e=0;e<g.childNodes.length;e++)f=g.childNodes[e],z(f,"x")===z(g, "x")&&z(f,"x",d);this.rotation&&z(g,"transform","rotate("+this.rotation+" "+d+" "+w(a.y||z(g,"y"))+")")}else if(c==="fill")d=i.color(d,g,c);else if(h==="circle"&&(c==="x"||c==="y"))c={x:"cx",y:"cy"}[c]||c;else if(h==="rect"&&c==="r")z(g,{rx:d,ry:d}),j=!0;else if(c==="translateX"||c==="translateY"||c==="rotation"||c==="verticalAlign")j=p=!0;else if(c==="stroke")d=i.color(d,g,c);else if(c==="dashstyle")if(c="stroke-dasharray",d=d&&d.toLowerCase(),d==="solid")d=U;else{if(d){d=d.replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e=d.length;e--;)d[e]=w(d[e])*a["stroke-width"];d=d.join(",")}}else if(c==="isTracker")this[c]=d;else if(c==="width")d=w(d);else if(c==="align")c="text-anchor",d={left:"start",center:"middle",right:"end"}[d];else if(c==="title")e=g.getElementsByTagName("title")[0],e||(e=B.createElementNS("http://www.w3.org/2000/svg", "title"),g.appendChild(e)),e.textContent=d;c==="strokeWidth"&&(c="stroke-width");Fb&&c==="stroke-width"&&d===0&&(d=1.0E-6);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(c)&&(m||(this.symbolAttr(a),m=!0),j=!0);if(l&&/^(width|height|visibility|x|y|d|transform)$/.test(c))for(e=l.length;e--;)z(l[e],c,c==="height"?x(d-(l[e].cutHeight||0),0):d);if((c==="width"||c==="height")&&h==="rect"&&d<0)d=0;this[c]=d;p&&this.updateTransform();c==="text"?(this.textStr=d,this.added&& i.buildText(this)):j||z(g,c,d)}if(Fb&&/Chrome\/(18|19)/.test(ya)&&h==="text"&&(a.x!==A||a.y!==A))c=g.parentNode,d=g.nextSibling,c&&(c.removeChild(g),d?c.insertBefore(g,d):c.appendChild(g));return q},symbolAttr:function(a){var b=this;n("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(c){b[c]=o(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path","url("+this.renderer.url+"#"+a.id+")")},crisp:function(a, b,c,d,e){var f,g={},h={},i,a=a||this.strokeWidth||this.attr&&this.attr("stroke-width")||0;i=t(a)%2/2;h.x=W(b||this.x||0)+i;h.y=W(c||this.y||0)+i;h.width=W((d||this.width||0)-2*i);h.height=W((e||this.height||0)-2*i);h.strokeWidth=a;for(f in h)this[f]!==h[f]&&(this[f]=g[f]=h[f]);return g},css:function(a){var b=this.element,b=a&&a.width&&b.nodeName==="text",c,d="",e=function(a,b){return"-"+b.toLowerCase()};if(a&&a.color)a.fill=a.color;this.styles=a=u(this.styles,a);if(La&&!Da)b&&delete a.width,F(this.element, a);else{for(c in a)d+=c.replace(/([A-Z])/g,e)+":"+a[c]+";";this.attr({style:d})}b&&this.added&&this.renderer.buildText(this);return this},on:function(a,b){var c=b;ea&&a==="click"&&(a="touchstart",c=function(a){a.preventDefault();b()});this.element["on"+a]=c;return this},setRadialReference:function(a){this.element.radialReference=a;return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=!0;this.updateTransform();return this},htmlCss:function(a){var b= this.element;if(b=a&&b.tagName==="SPAN"&&a.width)delete a.width,this.textWidth=b,this.updateTransform();this.styles=u(this.styles,a);F(this.element,a);return this},htmlGetBBox:function(a){var b=this.element,c=this.bBox;if(!c||a){if(b.nodeName==="text")b.style.position="absolute";c=this.bBox={x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}}return c},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,d=this.translateY||0,e=this.x|| 0,f=this.y||0,g=this.textAlign||"left",h={left:0,center:0.5,right:1}[g],i=g&&g!=="left",j=this.shadows;if(c||d)F(b,{marginLeft:c,marginTop:d}),j&&n(j,function(a){F(a,{marginLeft:c+1,marginTop:d+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(b.tagName==="SPAN"){var k,l,j=this.rotation,m;k=0;var p=1,q=0,fa;m=w(this.textWidth);var r=this.xCorr||0,y=this.yCorr||0,$=[j,g,b.innerHTML,this.textWidth].join(",");if($!==this.cTT)s(j)&&(k=j*Eb,p=X(k),q=da(k),F(b,{filter:j?["progid:DXImageTransform.Microsoft.Matrix(M11=", p,", M12=",-q,", M21=",q,", M22=",p,", sizingMethod='auto expand')"].join(""):U})),k=o(this.elemWidth,b.offsetWidth),l=o(this.elemHeight,b.offsetHeight),k>m&&/[ \-]/.test(b.innerText)&&(F(b,{width:m+"px",display:"block",whiteSpace:"normal"}),k=m),m=a.fontMetrics(b.style.fontSize).b,r=p<0&&-k,y=q<0&&-l,fa=p*q<0,r+=q*m*(fa?1-h:h),y-=p*m*(j?fa?h:1-h:1),i&&(r-=k*h*(p<0?-1:1),j&&(y-=l*h*(q<0?-1:1)),F(b,{textAlign:g})),this.xCorr=r,this.yCorr=y;F(b,{left:e+r+"px",top:f+y+"px"});this.cTT=$}}else this.alignOnAdd= !0},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.inverted,d=this.rotation,e=[];c&&(a+=this.attr("width"),b+=this.attr("height"));(a||b)&&e.push("translate("+a+","+b+")");c?e.push("rotate(90) scale(-1,1)"):d&&e.push("rotate("+d+" "+(this.x||0)+" "+(this.y||0)+")");e.length&&z(this.element,"transform",e.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){a?(this.alignOptions=a,this.alignByTranslate=b,c|| this.renderer.alignedObjects.push(this)):(a=this.alignOptions,b=this.alignByTranslate);var c=o(c,this.renderer),d=a.align,e=a.verticalAlign,f=(c.x||0)+(a.x||0),g=(c.y||0)+(a.y||0),h={};/^(right|center)$/.test(d)&&(f+=(c.width-(a.width||0))/{right:1,center:2}[d]);h[b?"translateX":"x"]=t(f);/^(bottom|middle)$/.test(e)&&(g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1));h[b?"translateY":"y"]=t(g);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(a){var b, c,d=this.rotation;c=this.element;var e=d*Eb;if(c.namespaceURI==="http://www.w3.org/2000/svg"||this.renderer.forExport){try{b=c.getBBox?u({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight}}catch(f){}if(!b||b.width<0)b={width:0,height:0};a=b.width;c=b.height;if(d)b.width=M(c*da(e))+M(a*X(e)),b.height=M(c*X(e))+M(a*da(e))}else b=this.htmlGetBBox(a);return b},show:function(){return this.attr({visibility:"visible"})},hide:function(){return this.attr({visibility:"hidden"})},add:function(a){var b= this.renderer,c=a||b,d=c.element||b.box,e=d.childNodes,f=this.element,g=z(f,"zIndex"),h;this.parentInverted=a&&a.inverted;this.textStr!==void 0&&b.buildText(this);if(g)c.handleZ=!0,g=w(g);if(c.handleZ)for(c=0;c<e.length;c++)if(a=e[c],b=z(a,"zIndex"),a!==f&&(w(b)>g||!s(g)&&s(b))){d.insertBefore(f,a);h=!0;break}h||d.appendChild(f);this.added=!0;E(this,"add");return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,b=a.element||{},c=a.shadows,d=a.box, e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=null;Fa(a);if(a.clipPath)a.clipPath=a.clipPath.destroy();if(a.stops){for(f=0;f<a.stops.length;f++)a.stops[f]=a.stops[f].destroy();a.stops=null}a.safeRemoveChild(b);c&&n(c,function(b){a.safeRemoveChild(b)});d&&d.destroy();za(a.renderer.alignedObjects,a);for(e in a)delete a[e];return null},empty:function(){for(var a=this.element,b=a.childNodes,c=b.length;c--;)a.removeChild(b[c])},shadow:function(a,b,c){var d=[],e,f=this.element,g,h=this.parentInverted? "(-1,-1)":"(1,1)";if(a){for(a=1;a<=3;a++){e=f.cloneNode(0);g=7-2*a;z(e,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":0.05*a,"stroke-width":g,transform:"translate"+h,fill:U});if(c)z(e,"height",x(z(e,"height")-g,0)),e.cutHeight=g;b?b.element.appendChild(e):f.parentNode.insertBefore(e,f);d.push(e)}this.shadows=d}return this}};var qa=function(){this.init.apply(this,arguments)};qa.prototype={Element:va,init:function(a,b,c,d){var e=location,f;f=this.createElement("svg").attr({xmlns:"http://www.w3.org/2000/svg", version:"1.1"});a.appendChild(f.element);this.isSVG=!0;this.box=f.element;this.boxWrapper=f;this.alignedObjects=[];this.url=La?"":e.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1");this.defs=this.createElement("defs").add();this.forExport=d;this.gradients={};this.setSize(b,c,!1);var g;if(Gb&&a.getBoundingClientRect)this.subPixelFix=b=function(){F(a,{left:0,top:0});g=a.getBoundingClientRect();F(a,{left:wa(g.left)-g.left+"px",top:wa(g.top)-g.top+"px"})},b(),I(N,"resize",b)},isHidden:function(){return!this.boxWrapper.getBBox().width}, destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();Ba(this.gradients||{});this.gradients=null;if(a)this.defs=a.destroy();this.subPixelFix&&P(N,"resize",this.subPixelFix);return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:function(){},buildText:function(a){for(var b=a.element,c=o(a.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g, "<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),d=b.childNodes,e=/style="([^"]+)"/,f=/href="([^"]+)"/,g=z(b,"x"),h=a.styles,i=h&&w(h.width),j=h&&h.lineHeight,k,h=d.length,l=[];h--;)b.removeChild(d[h]);i&&!a.added&&this.box.appendChild(b);c[c.length-1]===""&&c.pop();n(c,function(c,d){var h,fa=0,r,c=c.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");h=c.split("|||");n(h,function(c){if(c!==""||h.length===1){var m={},n=B.createElementNS("http://www.w3.org/2000/svg", "tspan");e.test(c)&&z(n,"style",c.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"));f.test(c)&&(z(n,"onclick",'location.href="'+c.match(f)[1]+'"'),F(n,{cursor:"pointer"}));c=(c.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">");n.appendChild(B.createTextNode(c));fa?m.dx=3:m.x=g;if(!fa){if(d){!Da&&a.renderer.forExport&&F(n,{display:"block"});r=N.getComputedStyle&&w(N.getComputedStyle(k,null).getPropertyValue("line-height"));if(!r||isNaN(r)){var o;if(!(o=j))if(!(o=k.offsetHeight))l[d]= b.getBBox().height,o=t(l[d]-(l[d-1]||0))||18;r=o}z(n,"dy",r)}k=n}z(n,m);b.appendChild(n);fa++;if(i)for(var c=c.replace(/-/g,"- ").split(" "),H=[];c.length||H.length;)o=a.getBBox().width,m=o>i,!m||c.length===1?(c=H,H=[],c.length&&(n=B.createElementNS("http://www.w3.org/2000/svg","tspan"),z(n,{dy:j||16,x:g}),b.appendChild(n),o>i&&(i=o))):(n.removeChild(n.firstChild),H.unshift(c.pop())),c.length&&n.appendChild(B.createTextNode(c.join(" ").replace(/- /g,"-")))}})})},button:function(a,b,c,d,e,f,g){var h= this.label(a,b,c),i=0,j,k,l,m,p,a={x1:0,y1:0,x2:0,y2:1},e=C(la("stroke-width",1,"stroke","#999","fill",la("linearGradient",a,"stops",[[0,"#FFF"],[1,"#DDD"]]),"r",3,"padding",3,"style",la("color","black")),e);l=e.style;delete e.style;f=C(e,la("stroke","#68A","fill",la("linearGradient",a,"stops",[[0,"#FFF"],[1,"#ACF"]])),f);m=f.style;delete f.style;g=C(e,la("stroke","#68A","fill",la("linearGradient",a,"stops",[[0,"#9BD"],[1,"#CDF"]])),g);p=g.style;delete g.style;I(h.element,"mouseenter",function(){h.attr(f).css(m)}); I(h.element,"mouseleave",function(){j=[e,f,g][i];k=[l,m,p][i];h.attr(j).css(k)});h.setState=function(a){(i=a)?a===2&&h.attr(g).css(p):h.attr(e).css(l)};return h.on("click",function(){d.call(h)}).attr(e).css(u({cursor:"default"},l))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=t(a[1])+b%2/2);a[2]===a[5]&&(a[2]=a[5]=t(a[2])+b%2/2);return a},path:function(a){var b={fill:U};Ja(a)?b.d=a:aa(a)&&u(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=aa(a)?a:{x:a,y:b,r:c};return this.createElement("circle").attr(a)}, arc:function(a,b,c,d,e,f){if(aa(a))b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x;return this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0})},rect:function(a,b,c,d,e,f){e=aa(a)?a.r:e;e=this.createElement("rect").attr({rx:e,ry:e,fill:U});return e.attr(aa(a)?a:e.crisp(f,a,b,x(c,0),x(d,0)))},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[o(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b= this.createElement("g");return s(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:U};arguments.length>1&&u(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f);f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a);return f},symbol:function(a,b,c,d,e,f){var g,h=this.symbols[a],h=h&&h(t(b),t(c),d,e,f),i=/^url\((.*?)\)$/,j,k;h?(g=this.path(h),u(g,{symbolName:a,x:b,y:c, width:d,height:e}),f&&u(g,f)):i.test(a)&&(k=function(a,b){a.attr({width:b[0],height:b[1]});a.alignByTranslate||a.translate(-t(b[0]/2),-t(b[1]/2))},j=a.match(i)[1],a=Hb[j],g=this.image(j).attr({x:b,y:c}),a?k(g,a):(g.attr({width:0,height:0}),S("img",{onload:function(){k(g,Hb[j]=[this.width,this.height])},src:j})));return g},symbols:{circle:function(a,b,c,d){var e=0.166*c;return["M",a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M",a,b,"L",a+ c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start,c=e.r||c||d,g=e.end-1.0E-6,d=e.innerR,h=e.open,i=X(f),j=da(f),k=X(g),g=da(g),e=e.end-f<xa?0:1;return["M",a+c*i,b+c*j,"A",c,c,0,e,1,a+c*k,b+c*g,h?"M":"L",a+d*k,b+d*g,"A",d,d,0,e,0,a+d*i,b+d*j,h?"":"Z"]}},clipRect:function(a, b,c,d){var e="highcharts-"+sb++,f=this.createElement("clipPath").attr({id:e}).add(this.defs),a=this.rect(a,b,c,d,0).add(f);a.id=e;a.clipPath=f;return a},color:function(a,b,c){var d=this,e,f=/^rgba/,g;a&&a.linearGradient?g="linearGradient":a&&a.radialGradient&&(g="radialGradient");if(g){var c=a[g],h=d.gradients,i,j,k,b=b.radialReference;if(!c.id||!h[c.id])Ja(c)&&(a[g]=c={x1:c[0],y1:c[1],x2:c[2],y2:c[3],gradientUnits:"userSpaceOnUse"}),g==="radialGradient"&&b&&!s(c.gradientUnits)&&u(c,{cx:b[0]-b[2]/ 2+c.cx*b[2],cy:b[1]-b[2]/2+c.cy*b[2],r:c.r*b[2],gradientUnits:"userSpaceOnUse"}),c.id="highcharts-"+sb++,h[c.id]=i=d.createElement(g).attr(c).add(d.defs),i.stops=[],n(a.stops,function(a){f.test(a[1])?(e=pa(a[1]),j=e.get("rgb"),k=e.get("a")):(j=a[1],k=1);a=d.createElement("stop").attr({offset:a[0],"stop-color":j,"stop-opacity":k}).add(i);i.stops.push(a)});return"url("+d.url+"#"+c.id+")"}else return f.test(a)?(e=pa(a),z(b,c+"-opacity",e.get("a")),e.get("rgb")):(b.removeAttribute(c+"-opacity"),a)},text:function(a, b,c,d){var e=V.chart.style;if(d&&!this.forExport)return this.html(a,b,c);b=t(o(b,0));c=t(o(c,0));a=this.createElement("text").attr({x:b,y:c,text:a}).css({fontFamily:e.fontFamily,fontSize:e.fontSize});a.x=b;a.y=c;return a},html:function(a,b,c){var d=V.chart.style,e=this.createElement("span"),f=e.attrSetters,g=e.element,h=e.renderer;f.text=function(a){g.innerHTML=a;return!1};f.x=f.y=f.align=function(a,b){b==="align"&&(b="textAlign");e[b]=a;e.htmlUpdateTransform();return!1};e.attr({text:a,x:t(b),y:t(c)}).css({position:"absolute", whiteSpace:"nowrap",fontFamily:d.fontFamily,fontSize:d.fontSize});e.css=e.htmlCss;if(h.isSVG)e.add=function(a){var b,c,d=h.box.parentNode;if(a){if(b=a.div,!b)b=a.div=S(ia,{className:z(a.element,"class")},{position:"absolute",left:a.attr("translateX")+"px",top:a.attr("translateY")+"px"},d),c=b.style,u(a.attrSetters,{translateX:function(a){c.left=a+"px"},translateY:function(a){c.top=a+"px"},visibility:function(a,b){c[b]=a}})}else b=d;b.appendChild(g);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform(); return e};return e},fontMetrics:function(a){var a=w(a||11),a=a<24?a+4:t(a*1.2),b=t(a*0.8);return{h:a,b:b}},label:function(a,b,c,d,e,f,g,h,i){function j(){var a=p.styles,a=a&&a.textAlign,b=$*(1-y),c;c=h?0:Ha;if(s(Ga)&&(a==="center"||a==="right"))b+={center:0.5,right:1}[a]*(Ga-r.width);(b!==q.x||c!==q.y)&&q.attr({x:b,y:c});q.x=b;q.y=c}function k(a,b){o?o.attr(a,b):x[a]=b}function l(){p.attr({text:a,x:b,y:c});s(e)&&p.attr({anchorX:e,anchorY:f})}var m=this,p=m.g(i),q=m.text("",0,0,g).attr({zIndex:1}).add(p), o,r,y=0,$=3,Ga,v,H,J,K=0,x={},Ha,g=p.attrSetters;I(p,"add",l);g.width=function(a){Ga=a;return!1};g.height=function(a){v=a;return!1};g.padding=function(a){s(a)&&a!==$&&($=a,j());return!1};g.align=function(a){y={left:0,center:0.5,right:1}[a];return!1};g.text=function(a,b){q.attr(b,a);var c;c=q.element.style;r=(Ga===void 0||v===void 0||p.styles.textAlign)&&q.getBBox(!0);p.width=(Ga||r.width||0)+2*$;p.height=(v||r.height||0)+2*$;Ha=$+m.fontMetrics(c&&c.fontSize).b;if(!o)c=h?-Ha:0,p.box=o=d?m.symbol(d, -y*$,c,p.width,p.height):m.rect(-y*$,c,p.width,p.height,0,x["stroke-width"]),o.add(p);o.attr(C({width:p.width,height:p.height},x));x=null;j();return!1};g["stroke-width"]=function(a,b){K=a%2/2;k(b,a);return!1};g.stroke=g.fill=g.r=function(a,b){k(b,a);return!1};g.anchorX=function(a,b){e=a;k(b,a+K-H);return!1};g.anchorY=function(a,b){f=a;k(b,a-J);return!1};g.x=function(a){p.x=a;a-=y*((Ga||r.width)+$);H=t(a);p.attr("translateX",H);return!1};g.y=function(a){J=p.y=t(a);p.attr("translateY",a);return!1}; var w=p.css;return u(p,{css:function(a){if(a){var b={},a=C({},a);n("fontSize,fontWeight,fontFamily,color,lineHeight,width".split(","),function(c){a[c]!==A&&(b[c]=a[c],delete a[c])});q.css(b)}return w.call(p,a)},getBBox:function(){return o.getBBox()},shadow:function(a){o.shadow(a);return p},destroy:function(){P(p,"add",l);P(p.element,"mouseenter");P(p.element,"mouseleave");q&&(q=q.destroy());va.prototype.destroy.call(p)}})}};Ta=qa;var ka;if(!Da&&!ga){ka={init:function(a,b){var c=["<",b,' filled="f" stroked="f"'], d=["position: ","absolute",";"];(b==="shape"||b===ia)&&d.push("left:0;top:0;width:1px;height:1px;");Ca&&d.push("visibility: ",b===ia?"hidden":"visible");c.push(' style="',d.join(""),'"/>');if(b)c=b===ia||b==="span"||b==="img"?c.join(""):a.prepVML(c),this.element=S(c);this.renderer=a;this.attrSetters={}},add:function(a){var b=this.renderer,c=this.element,d=b.box,d=a?a.element||a:d;a&&a.inverted&&b.invertChild(c,d);Ca&&d.gVis==="hidden"&&F(c,{visibility:"hidden"});d.appendChild(c);this.added=!0;this.alignOnAdd&& !this.deferUpdateTransform&&this.updateTransform();E(this,"add");return this},toggleChildren:function(a,b){for(var c=a.childNodes,d=c.length;d--;)F(c[d],{visibility:b}),c[d].nodeName==="DIV"&&this.toggleChildren(c[d],b)},updateTransform:va.prototype.htmlUpdateTransform,attr:function(a,b){var c,d,e,f=this.element||{},g=f.style,h=f.nodeName,i=this.renderer,j=this.symbolName,k,l=this.shadows,m,p=this.attrSetters,q=this;ra(a)&&s(b)&&(c=a,a={},a[c]=b);if(ra(a))c=a,q=c==="strokeWidth"||c==="stroke-width"? this.strokeweight:this[c];else for(c in a)if(d=a[c],m=!1,e=p[c]&&p[c](d,c),e!==!1&&d!==null){e!==A&&(d=e);if(j&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(c))k||(this.symbolAttr(a),k=!0),m=!0;else if(c==="d"){d=d||[];this.d=d.join(" ");e=d.length;for(m=[];e--;)m[e]=Ka(d[e])?t(d[e]*10)-5:d[e]==="Z"?"x":d[e];d=m.join(" ")||"x";f.path=d;if(l)for(e=l.length;e--;)l[e].path=l[e].cutOff?this.cutOffPath(d,l[e].cutOff):d;m=!0}else if(c==="zIndex"||c==="visibility"){if(Ca&&c==="visibility"&& h==="DIV")f.gVis=d,this.toggleChildren(f,d),d==="visible"&&(d=null);d&&(g[c]=d);m=!0}else if(c==="width"||c==="height")d=x(0,d),this[c]=d,this.updateClipping?(this[c]=d,this.updateClipping()):g[c]=d,m=!0;else if(c==="x"||c==="y")this[c]=d,g[{x:"left",y:"top"}[c]]=d;else if(c==="class")f.className=d;else if(c==="stroke")d=i.color(d,f,c),c="strokecolor";else if(c==="stroke-width"||c==="strokeWidth")f.stroked=d?!0:!1,c="strokeweight",this[c]=d,Ka(d)&&(d+="px");else if(c==="dashstyle")(f.getElementsByTagName("stroke")[0]|| S(i.prepVML(["<stroke/>"]),null,null,f))[c]=d||"solid",this.dashstyle=d,m=!0;else if(c==="fill")h==="SPAN"?g.color=d:(f.filled=d!==U?!0:!1,d=i.color(d,f,c),c="fillcolor");else if(h==="shape"&&c==="rotation")this[c]=d;else if(c==="translateX"||c==="translateY"||c==="rotation")this[c]=d,this.updateTransform(),m=!0;else if(c==="text")this.bBox=null,f.innerHTML=d,m=!0;if(l&&c==="visibility")for(e=l.length;e--;)l[e].style[c]=d;m||(Ca?f[c]=d:z(f,c,d))}return q},clip:function(a){var b=this,c=a.members,d= b.element,e=d.parentNode;c.push(b);b.destroyClip=function(){za(c,b)};e&&e.className==="highcharts-tracker"&&!Ca&&F(d,{visibility:"hidden"});return b.css(a.getCSS(b))},css:va.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&Qa(a)},destroy:function(){this.destroyClip&&this.destroyClip();return va.prototype.destroy.apply(this)},empty:function(){for(var a=this.element.childNodes,b=a.length,c;b--;)c=a[b],c.parentNode.removeChild(c)},on:function(a,b){this.element["on"+a]=function(){var a=N.event; a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){var c,a=a.split(/[ ,]/);c=a.length;if(c===9||c===11)a[c-4]=a[c-2]=w(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var d=[],e=this.element,f=this.renderer,g,h=e.style,i,j=e.path,k,l;j&&typeof j.value!=="string"&&(j="x");l=j;if(a){for(a=1;a<=3;a++){k=7-2*a;c&&(l=this.cutOffPath(j.value,k+0.5));i=['<shape isShadow="true" strokeweight="',7-2*a,'" filled="false" path="',l,'" coordsize="10 10" style="',e.style.cssText,'" />'];g= S(f.prepVML(i),null,{left:w(h.left)+1,top:w(h.top)+1});if(c)g.cutOff=k+1;i=['<stroke color="black" opacity="',0.05*a,'"/>'];S(f.prepVML(i),null,null,g);b?b.element.appendChild(g):e.parentNode.insertBefore(g,e);d.push(g)}this.shadows=d}return this}};ka=ca(va,ka);var ha={Element:ka,isIE8:ya.indexOf("MSIE 8.0")>-1,init:function(a,b,c){var d,e;this.alignedObjects=[];d=this.createElement(ia);e=d.element;e.style.position="relative";a.appendChild(d.element);this.box=e;this.boxWrapper=d;this.setSize(b,c, !1);if(!B.namespaces.hcv)B.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),B.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement();return u(e,{members:[],left:a,top:b,width:c,height:d,getCSS:function(a){var b=a.inverted,c=this.top,d=this.left,e=d+this.width,k=c+this.height,c={clip:"rect("+t(b?d:c)+"px,"+t(b?k: e)+"px,"+t(b?e:k)+"px,"+t(b?c:d)+"px)"};!b&&Ca&&a.element.nodeName!=="IMG"&&u(c,{width:e+"px",height:k+"px"});return c},updateClipping:function(){n(e.members,function(a){a.css(e.getCSS(a))})}})},color:function(a,b,c){var d,e=/^rgba/,f,g=U;a&&a.linearGradient?f="gradient":a&&a.radialGradient&&(f="pattern");if(f){var h,i,j=a.linearGradient||a.radialGradient,k,l,m,p,q,o,r="",a=a.stops,y,s=[];l=a[0];y=a[a.length-1];l[0]>0&&a.unshift([0,l[1]]);y[0]<1&&a.push([1,y[1]]);n(a,function(a,b){e.test(a[1])?(d= pa(a[1]),h=d.get("rgb"),i=d.get("a")):(h=a[1],i=1);s.push(a[0]*100+"% "+h);b?(p=i,q=h):(m=i,o=h)});f==="gradient"?(k=j.x1||j[0]||0,a=j.y1||j[1]||0,l=j.x2||j[2]||0,j=j.y2||j[3]||0,k=90-L.atan((j-a)/(l-k))*180/xa):(g=j.r*2,r='src="http://code.highcharts.com/gfx/radial-gradient.png" size="'+g+","+g+'" origin="0.5,0.5" position="'+j.cx+","+j.cy+'" color2="'+o+'" ',g=q);c==="fill"?(c=['<fill colors="'+s.join(",")+'" angle="',k,'" opacity="',p,'" o:opacity2="',m,'" type="',f,'" ',r,'focus="100%" method="any" />'], S(this.prepVML(c),null,null,b)):g=h}else if(e.test(a)&&b.tagName!=="IMG")d=pa(a),c=["<",c,' opacity="',d.get("a"),'"/>'],S(this.prepVML(c),null,null,b),g=d.get("rgb");else{b=b.getElementsByTagName(c);if(b.length)b[0].opacity=1;g=a}return g},prepVML:function(a){var b=this.isIE8,a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')): a=a.replace("<","<hcv:");return a},text:qa.prototype.html,path:function(a){var b={coordsize:"10 10"};Ja(a)?b.d=a:aa(a)&&u(b,a);return this.createElement("shape").attr(b)},circle:function(a,b,c){return this.symbol("circle").attr({x:a-c,y:b-c,width:2*c,height:2*c})},g:function(a){var b;a&&(b={className:"highcharts-"+a,"class":"highcharts-"+a});return this.createElement(ia).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});arguments.length>1&&f.css({left:b,top:c,width:d, height:e});return f},rect:function(a,b,c,d,e,f){if(aa(a))b=a.y,c=a.width,d=a.height,f=a.strokeWidth,a=a.x;var g=this.symbol("rect");g.r=e;return g.attr(g.crisp(f,a,b,x(c,0),x(d,0)))},invertChild:function(a,b){var c=b.style;F(a,{flip:"x",left:w(c.width)-1,top:w(c.height)-1,rotation:-90})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d,c=X(f),d=da(f),i=X(g),j=da(g),k=e.innerR,l=0.08/h,m=k&&0.1/k||0;if(g-f===0)return["x"];else 2*xa-g+f<l?i=-l:g-f<m&&(i=X(f+m));f=["wa",a-h,b-h,a+h, b+h,a+h*c,b+h*d,a+h*i,b+h*j];e.open&&f.push("M",a-k,b-k);f.push("at",a-k,b-k,a+k,b+k,a+k*i,b+k*j,a+k*c,b+k*d,"x","e");return f},circle:function(a,b,c,d){return["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){var f=a+c,g=b+d,h;!s(e)||!e.r?f=qa.prototype.symbols.square.apply(0,arguments):(h=O(e.r,c,d),f=["M",a+h,b,"L",f-h,b,"wa",f-2*h,b,f,b+2*h,f-h,b,f,b+h,"L",f,g-h,"wa",f-2*h,g-2*h,f,g,f,g-h,f-h,g,"L",a+h,g,"wa",a,g-2*h,a+2*h,g,a+h,g,a,g-h,"L",a,b+h,"wa",a,b,a+2*h,b+2*h,a,b+h,a+ h,b,"x","e"]);return f}}};ka=function(){this.init.apply(this,arguments)};ka.prototype=C(qa.prototype,ha);Ta=ka}var fb,Nb;if(ga)fb=function(){},fb.prototype.symbols={},Nb=function(){function a(){var a=b.length,d;for(d=0;d<a;d++)b[d]();b=[]}var b=[];return{push:function(c,d){b.length===0&&Ib(d,a);b.push(c)}}}();Ta=ka||fb||qa;Sa.prototype={addLabel:function(){var a=this.axis,b=a.options,c=a.chart,d=a.horiz,e=a.categories,f=this.pos,g=b.labels,h=a.tickPositions,d=e&&d&&e.length&&!g.step&&!g.staggerLines&& !g.rotation&&c.plotWidth/h.length||!d&&c.plotWidth/2,i=f===h[0],j=f===h[h.length-1],k=e&&s(e[f])?e[f]:f,e=this.label,h=h.info,l;a.isDatetimeAxis&&h&&(l=b.dateTimeLabelFormats[h.higherRanks[f]||h.unitName]);this.isFirst=i;this.isLast=j;b=a.labelFormatter.call({axis:a,chart:c,isFirst:i,isLast:j,dateTimeLabelFormat:l,value:a.isLog?ja(ba(k)):k});f=d&&{width:x(1,t(d-2*(g.padding||10)))+"px"};f=u(f,g.style);if(s(e))e&&e.attr({text:b}).css(f);else{d={align:g.align};if(Ka(g.rotation))d.rotation=g.rotation; this.label=s(b)&&g.enabled?c.renderer.text(b,0,0,g.useHTML).attr(d).css(f).add(a.axisGroup):null}},getLabelSize:function(){var a=this.label,b=this.axis;return a?(this.labelBBox=a.getBBox(!0))[b.horiz?"height":"width"]:0},getLabelSides:function(){var a=this.axis.options.labels,b=this.labelBBox.width,a=b*{left:0,center:0.5,right:1}[a.align]-a.x;return[-a,b-a]},handleOverflow:function(a,b){var c=!0,d=this.axis,e=d.chart,f=this.isFirst,g=this.isLast,h=b.x,i=d.reversed,j=d.tickPositions;if(f||g){var k= this.getLabelSides(),l=k[0],k=k[1],e=e.plotLeft,m=e+d.len,j=(d=d.ticks[j[a+(f?1:-1)]])&&d.label.xy.x+d.getLabelSides()[f?0:1];f&&!i||g&&i?h+l<e&&(h=e-l,d&&h+k>j&&(c=!1)):h+k>m&&(h=m-k,d&&h+l<j&&(c=!1));b.x=h}return c},getPosition:function(a,b,c,d){var e=this.axis,f=e.chart,g=d&&f.oldChartHeight||f.chartHeight;return{x:a?e.translate(b+c,null,null,d)+e.transB:e.left+e.offset+(e.opposite?(d&&f.oldChartWidth||f.chartWidth)-e.right-e.left:0),y:a?g-e.bottom+e.offset-(e.opposite?e.height:0):g-e.translate(b+ c,null,null,d)-e.transB}},getLabelPosition:function(a,b,c,d,e,f,g,h){var i=this.axis,j=i.transA,k=i.reversed,i=i.staggerLines,a=a+e.x-(f&&d?f*j*(k?-1:1):0),b=b+e.y-(f&&!d?f*j*(k?1:-1):0);s(e.y)||(b+=w(c.styles.lineHeight)*0.9-c.getBBox().height/2);i&&(b+=g/(h||1)%i*16);return{x:a,y:b}},getMarkPath:function(a,b,c,d,e,f){return f.crispLine(["M",a,b,"L",a+(e?0:-c),b+(e?c:0)],d)},render:function(a,b){var c=this.axis,d=c.options,e=c.chart.renderer,f=c.horiz,g=this.type,h=this.label,i=this.pos,j=d.labels, k=this.gridLine,l=g?g+"Grid":"grid",m=g?g+"Tick":"tick",p=d[l+"LineWidth"],q=d[l+"LineColor"],n=d[l+"LineDashStyle"],r=d[m+"Length"],l=d[m+"Width"]||0,y=d[m+"Color"],s=d[m+"Position"],m=this.mark,t=j.step,v=!0,H=d.categories&&d.tickmarkPlacement==="between"?0.5:0,J=this.getPosition(f,i,H,b),K=J.x,J=J.y,x=c.staggerLines;if(p){i=c.getPlotLinePath(i+H,p,b);if(k===A){k={stroke:q,"stroke-width":p};if(n)k.dashstyle=n;if(!g)k.zIndex=1;this.gridLine=k=p?e.path(i).attr(k).add(c.gridGroup):null}if(!b&&k&&i)k[this.isNew? "attr":"animate"]({d:i})}if(l)s==="inside"&&(r=-r),c.opposite&&(r=-r),g=this.getMarkPath(K,J,r,l,f,e),m?m.animate({d:g}):this.mark=e.path(g).attr({stroke:y,"stroke-width":l}).add(c.axisGroup);if(h&&!isNaN(K))h.xy=J=this.getLabelPosition(K,J,h,f,j,H,a,t),this.isFirst&&!o(d.showFirstLabel,1)||this.isLast&&!o(d.showLastLabel,1)?v=!1:!x&&f&&j.overflow==="justify"&&!this.handleOverflow(a,J)&&(v=!1),t&&a%t&&(v=!1),v?(h[this.isNew?"attr":"animate"](J),h.show(),this.isNew=!1):h.hide()},destroy:function(){Ba(this, this.axis)}};nb.prototype={render:function(){var a=this,b=a.axis,c=b.horiz,d=(b.pointRange||0)/2,e=a.options,f=e.label,g=a.label,h=e.width,i=e.to,j=e.from,k=s(j)&&s(i),l=e.value,m=e.dashStyle,p=a.svgElem,q=[],n,r=e.color,y=e.zIndex,t=e.events,u=b.chart.renderer;b.isLog&&(j=ma(j),i=ma(i),l=ma(l));if(h){if(q=b.getPlotLinePath(l,h),d={stroke:r,"stroke-width":h},m)d.dashstyle=m}else if(k){if(j=x(j,b.min-d),i=O(i,b.max+d),q=b.getPlotBandPath(j,i,e),d={fill:r},e.borderWidth)d.stroke=e.borderColor,d["stroke-width"]= e.borderWidth}else return;if(s(y))d.zIndex=y;if(p)q?p.animate({d:q},null,p.onGetPath):(p.hide(),p.onGetPath=function(){p.show()});else if(q&&q.length&&(a.svgElem=p=u.path(q).attr(d).add(),t))for(n in e=function(b){p.on(b,function(c){t[b].apply(a,[c])})},t)e(n);if(f&&s(f.text)&&q&&q.length&&b.width>0&&b.height>0){f=C({align:c&&k&&"center",x:c?!k&&4:10,verticalAlign:!c&&k&&"middle",y:c?k?16:10:k?6:-4,rotation:c&&!k&&90},f);if(!g)a.label=g=u.text(f.text,0,0).attr({align:f.textAlign||f.align,rotation:f.rotation, zIndex:y}).css(f.style).add();b=[q[1],q[4],o(q[6],q[1])];q=[q[2],q[5],o(q[7],q[2])];c=Pa(b);k=Pa(q);g.align(f,!1,{x:c,y:k,width:Aa(b)-c,height:Aa(q)-k});g.show()}else g&&g.hide();return a},destroy:function(){za(this.axis.plotLinesAndBands,this);Ba(this,this.axis)}};Cb.prototype={destroy:function(){Ba(this,this.axis)},setTotal:function(a){this.cum=this.total=a},render:function(a){var b=this.options.formatter.call(this);this.label?this.label.attr({text:b,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(b, 0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:"hidden"}).add(a)},setOffset:function(a,b){var c=this.axis,d=c.chart,e=d.inverted,f=this.isNegative,g=c.translate(this.total,0,0,0,1),c=c.translate(0),c=M(g-c),h=d.xAxis[0].translate(this.x)+a,d=d.plotHeight,e={x:e?f?g:g-c:h,y:e?d-h-b:f?d-g-c:d-g,width:e?c:b,height:e?b:c};this.label&&this.label.align(this.alignOptions,null,e).attr({visibility:"visible"})}};ob.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L", second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:G,lineColor:"#C0D0E0",lineWidth:1,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F", fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:!1,formatter:function(){return this.total},style:G.style}},defaultLeftAxisOptions:{labels:{align:"right",x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{align:"left",x:8,y:null},title:{rotation:90}}, defaultBottomAxisOptions:{labels:{align:"center",x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{align:"center",x:0,y:-5},title:{rotation:0}},init:function(a,b){var c=b.isX;this.horiz=a.inverted?!c:c;this.xOrY=(this.isXAxis=c)?"x":"y";this.opposite=b.opposite;this.side=this.horiz?this.opposite?0:2:this.opposite?1:3;this.setOptions(b);var d=this.options,e=d.type,f=e==="datetime";this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter;this.staggerLines=this.horiz&&d.labels.staggerLines; this.userOptions=b;this.minPixelPadding=0;this.chart=a;this.reversed=d.reversed;this.categories=d.categories;this.isLog=e==="logarithmic";this.isLinked=s(d.linkedTo);this.isDatetimeAxis=f;this.ticks={};this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.stacks={};this.min=this.max=null;var g,d=this.options.events;a.axes.push(this);a[c?"xAxis":"yAxis"].push(this);this.series= [];if(a.inverted&&c&&this.reversed===A)this.reversed=!0;this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;this.addPlotLine=this.addPlotBand=this.addPlotBandOrLine;for(g in d)I(this,g,d[g]);if(this.isLog)this.val2lin=ma,this.lin2val=ba},setOptions:function(a){this.options=C(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],a)},defaultLabelFormatter:function(){var a= this.axis,b=this.value,c=a.tickInterval,d=this.dateTimeLabelFormat;return a.categories?b:d?db(d,b):c%1E6===0?b/1E6+"M":c%1E3===0?b/1E3+"k":b>=1E3?Xa(b,0):Xa(b,-1)},getSeriesExtremes:function(){var a=this,b=a.chart,c=a.stacks,d=[],e=[],f;a.dataMin=a.dataMax=null;n(a.series,function(g){if(g.visible||!b.options.chart.ignoreHiddenSeries){var h=g.options,i,j,k,l,m,p,q,n,r,y=h.threshold,t,u=[],v=0;if(a.isLog&&y<=0)y=h.threshold=null;if(a.isXAxis){if(h=g.xData,h.length)a.dataMin=O(o(a.dataMin,h[0]),Pa(h)), a.dataMax=x(o(a.dataMax,h[0]),Aa(h))}else{var H,J,K,C=g.cropped,Ha=g.xAxis.getExtremes(),w=!!g.modifyValue;i=h.stacking;a.usePercentage=i==="percent";if(i)m=h.stack,l=g.type+o(m,""),p="-"+l,g.stackKey=l,j=d[l]||[],d[l]=j,k=e[p]||[],e[p]=k;if(a.usePercentage)a.dataMin=0,a.dataMax=99;h=g.processedXData;q=g.processedYData;t=q.length;for(f=0;f<t;f++)if(n=h[f],r=q[f],r!==null&&r!==A&&(i?(J=(H=r<y)?k:j,K=H?p:l,r=J[n]=s(J[n])?J[n]+r:r,c[K]||(c[K]={}),c[K][n]||(c[K][n]=new Cb(a,a.options.stackLabels,H,n, m)),c[K][n].setTotal(r)):w&&(r=g.modifyValue(r)),C||(h[f+1]||n)>=Ha.min&&(h[f-1]||n)<=Ha.max))if(n=r.length)for(;n--;)r[n]!==null&&(u[v++]=r[n]);else u[v++]=r;if(!a.usePercentage&&u.length)a.dataMin=O(o(a.dataMin,u[0]),Pa(u)),a.dataMax=x(o(a.dataMax,u[0]),Aa(u));if(s(y))if(a.dataMin>=y)a.dataMin=y,a.ignoreMinPadding=!0;else if(a.dataMax<y)a.dataMax=y,a.ignoreMaxPadding=!0}}})},translate:function(a,b,c,d,e){var f=this.len,g=1,h=0,i=d?this.oldTransA:this.transA,d=d?this.oldMin:this.min,e=this.options.ordinal|| this.isLog&&e;if(!i)i=this.transA;c&&(g*=-1,h=f);this.reversed&&(g*=-1,h-=g*f);b?(this.reversed&&(a=f-a),a=a/i+d,e&&(a=this.lin2val(a))):(e&&(a=this.val2lin(a)),a=g*(a-d)*i+h+g*this.minPixelPadding);return a},getPlotLinePath:function(a,b,c){var d=this.chart,e=this.left,f=this.top,g,h,i,a=this.translate(a,null,null,c),j=c&&d.oldChartHeight||d.chartHeight,k=c&&d.oldChartWidth||d.chartWidth,l;g=this.transB;c=h=t(a+g);g=i=t(j-a-g);if(isNaN(a))l=!0;else if(this.horiz){if(g=f,i=j-this.bottom,c<e||c>e+this.width)l= !0}else if(c=e,h=k-this.right,g<f||g>f+this.height)l=!0;return l?null:d.renderer.crispLine(["M",c,g,"L",h,i],b||0)},getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b),d=this.getPlotLinePath(a);d&&c?d.push(c[4],c[5],c[1],c[2]):d=null;return d},getLinearTickPositions:function(a,b,c){for(var d,b=ja(W(b/a)*a),c=ja(wa(c/a)*a),e=[];b<=c;){e.push(b);b=ja(b+a);if(b===d)break;d=b}return e},getLogTickPositions:function(a,b,c,d){var e=this.options,f=this.len,g=[];if(!d)this._minorAutoInterval=null; if(a>=0.5)a=t(a),g=this.getLinearTickPositions(a,b,c);else if(a>=0.08)for(var f=W(b),h,i,j,k,l,e=a>0.3?[1,2,4]:a>0.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<c+1&&!l;f++){i=e.length;for(h=0;h<i&&!l;h++)j=ma(ba(f)*e[h]),j>b&&g.push(k),k>c&&(l=!0),k=j}else if(b=ba(b),c=ba(c),a=e[d?"minorTickInterval":"tickInterval"],a=o(a==="auto"?null:a,this._minorAutoInterval,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions.length:f)||1)),a=gb(a,null,L.pow(10,W(L.log(a)/L.LN10))),g=Ea(this.getLinearTickPositions(a, b,c),ma),!d)this._minorAutoInterval=a/5;if(!d)this.tickInterval=a;return g},getMinorTickPositions:function(){var a=this.tickPositions,b=this.minorTickInterval,c=[],d,e;if(this.isLog){e=a.length;for(d=1;d<e;d++)c=c.concat(this.getLogTickPositions(b,a[d-1],a[d],!0))}else for(a=this.min+(a[0]-this.min)%b;a<=this.max;a+=b)c.push(a);return c},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,d,e=this.dataMax-this.dataMin>=this.minRange,f,g,h,i,j;if(this.isXAxis&&this.minRange===A&& !this.isLog)s(a.min)||s(a.max)?this.minRange=null:(n(this.series,function(a){i=a.xData;for(g=j=a.xIncrement?1:i.length-1;g>0;g--)if(h=i[g]-i[g-1],f===A||h<f)f=h}),this.minRange=O(f*5,this.dataMax-this.dataMin));if(c-b<this.minRange){var k=this.minRange;d=(k-c+b)/2;d=[b-d,o(a.min,b-d)];if(e)d[2]=this.dataMin;b=Aa(d);c=[b+k,o(a.max,b+k)];if(e)c[2]=this.dataMax;c=Pa(c);c-b<k&&(d[0]=c-k,d[1]=o(a.min,c-k),b=Aa(d))}this.min=b;this.max=c},setAxisTranslation:function(){var a=this.max-this.min,b=0,c,d,e=this.transA; if(this.isXAxis)this.isLinked?b=this.linkedParent.pointRange:n(this.series,function(a){b=x(b,a.pointRange);d=a.closestPointRange;!a.noSharedTooltip&&s(d)&&(c=s(c)?O(c,d):d)}),this.pointRange=b,this.closestPointRange=c;this.oldTransA=e;this.translationSlope=this.transA=e=this.len/(a+b||1);this.transB=this.horiz?this.left:this.bottom;this.minPixelPadding=e*(b/2)},setTickPositions:function(a){var b=this,c=b.chart,d=b.options,e=b.isLog,f=b.isDatetimeAxis,g=b.isXAxis,h=b.isLinked,i=b.options.tickPositioner, j=d.maxPadding,k=d.minPadding,l=d.tickInterval,m=d.tickPixelInterval,p=b.categories;h?(b.linkedParent=c[g?"xAxis":"yAxis"][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=o(c.min,c.dataMin),b.max=o(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&mb(11,1)):(b.min=o(b.userMin,d.min,b.dataMin),b.max=o(b.userMax,d.max,b.dataMax));if(e)!a&&O(b.min,o(b.dataMin,b.min))<=0&&mb(10,1),b.min=ja(ma(b.min)),b.max=ja(ma(b.max));if(b.range&&(b.userMin=b.min=x(b.min,b.max-b.range),b.userMax=b.max,a))b.range= null;b.adjustForMinRange();if(!p&&!b.usePercentage&&!h&&s(b.min)&&s(b.max)){c=b.max-b.min||1;if(!s(d.min)&&!s(b.userMin)&&k&&(b.dataMin<0||!b.ignoreMinPadding))b.min-=c*k;if(!s(d.max)&&!s(b.userMax)&&j&&(b.dataMax>0||!b.ignoreMaxPadding))b.max+=c*j}b.tickInterval=b.min===b.max||b.min===void 0||b.max===void 0?1:h&&!l&&m===b.linkedParent.options.tickPixelInterval?b.linkedParent.tickInterval:o(l,p?1:(b.max-b.min)*m/(b.len||1));g&&!a&&n(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)}); b.setAxisTranslation();b.beforeSetTickPositions&&b.beforeSetTickPositions();if(b.postProcessTickInterval)b.tickInterval=b.postProcessTickInterval(b.tickInterval);if(!f&&!e&&(a=L.pow(10,W(L.log(b.tickInterval)/L.LN10)),!s(d.tickInterval)))b.tickInterval=gb(b.tickInterval,null,a,d);b.minorTickInterval=d.minorTickInterval==="auto"&&b.tickInterval?b.tickInterval/5:d.minorTickInterval;b.tickPositions=i=d.tickPositions||i&&i.apply(b,[b.min,b.max]);if(!i)i=f?(b.getNonLinearTimeTicks||Pb)(Ob(b.tickInterval, d.units),b.min,b.max,d.startOfWeek,b.ordinalPositions,b.closestPointRange,!0):e?b.getLogTickPositions(b.tickInterval,b.min,b.max):b.getLinearTickPositions(b.tickInterval,b.min,b.max),b.tickPositions=i;if(!h)e=i[0],f=i[i.length-1],d.startOnTick?b.min=e:b.min>e&&i.shift(),d.endOnTick?b.max=f:b.max<f&&i.pop()},setMaxTicks:function(){var a=this.chart,b=a.maxTicks,c=this.tickPositions,d=this.xOrY;b||(b={x:0,y:0});if(!this.isLinked&&!this.isDatetimeAxis&&c.length>b[d]&&this.options.alignTicks!==!1)b[d]= c.length;a.maxTicks=b},adjustTickAmount:function(){var a=this.xOrY,b=this.tickPositions,c=this.chart.maxTicks;if(c&&c[a]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&this.options.alignTicks!==!1){var d=this.tickAmount,e=b.length;this.tickAmount=a=c[a];if(e<a){for(;b.length<a;)b.push(ja(b[b.length-1]+this.tickInterval));this.transA*=(e-1)/(a-1);this.max=b[b.length-1]}if(s(d)&&a!==d)this.isDirty=!0}},setScale:function(){var a=this.stacks,b,c,d,e;this.oldMin=this.min;this.oldMax=this.max; this.oldAxisLength=this.len;this.setAxisSize();e=this.len!==this.oldAxisLength;n(this.series,function(a){if(a.isDirtyData||a.isDirty||a.xAxis.isDirty)d=!0});if(e||d||this.isLinked||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax)if(this.getSeriesExtremes(),this.setTickPositions(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,!this.isDirty)this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax;if(!this.isXAxis)for(b in a)for(c in a[b])a[b][c].cum=a[b][c].total;this.setMaxTicks()}, setExtremes:function(a,b,c,d,e){var f=this,g=f.chart,c=o(c,!0),e=u(e,{min:a,max:b});E(f,"setExtremes",e,function(){f.userMin=a;f.userMax=b;f.isDirtyExtremes=!0;c&&g.redraw(d)})},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=b.offsetRight||0;this.left=o(b.left,a.plotLeft+c);this.top=o(b.top,a.plotTop);this.width=o(b.width,a.plotWidth-c+d);this.height=o(b.height,a.plotHeight);this.bottom=a.chartHeight-this.height-this.top;this.right=a.chartWidth-this.width-this.left;this.len= x(this.horiz?this.width:this.height,0)},getExtremes:function(){var a=this.isLog;return{min:a?ja(ba(this.min)):this.min,max:a?ja(ba(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=b?ba(this.min):this.min,b=b?ba(this.max):this.max;c>a||a===null?a=c:b<a&&(a=b);return this.translate(a,0,1,0,1)},addPlotBandOrLine:function(a){a=(new nb(this,a)).render();this.plotLinesAndBands.push(a);return a},getOffset:function(){var a= this,b=a.chart,c=b.renderer,d=a.options,e=a.tickPositions,f=a.ticks,g=a.horiz,h=a.side,i,j=0,k,l=0,m=d.title,p=d.labels,q=0,fa=b.axisOffset,r=[-1,1,1,-1][h],y;a.hasData=b=a.series.length&&s(a.min)&&s(a.max);a.showAxis=i=b||o(d.showEmpty,!0);if(!a.axisGroup)a.axisGroup=c.g("axis").attr({zIndex:d.zIndex||7}).add(),a.gridGroup=c.g("grid").attr({zIndex:d.gridZIndex||1}).add();if(b||a.isLinked)n(e,function(b){f[b]?f[b].addLabel():f[b]=new Sa(a,b)}),n(e,function(a){if(h===0||h===2||{1:"left",3:"right"}[h]=== p.align)q=x(f[a].getLabelSize(),q)}),a.staggerLines&&(q+=(a.staggerLines-1)*16);else for(y in f)f[y].destroy(),delete f[y];if(m&&m.text){if(!a.axisTitle)a.axisTitle=c.text(m.text,0,0,m.useHTML).attr({zIndex:7,rotation:m.rotation||0,align:m.textAlign||{low:"left",middle:"center",high:"right"}[m.align]}).css(m.style).add(a.axisGroup),a.axisTitle.isNew=!0;if(i)j=a.axisTitle.getBBox()[g?"height":"width"],l=o(m.margin,g?5:10),k=m.offset;a.axisTitle[i?"show":"hide"]()}a.offset=r*o(d.offset,fa[h]);a.axisTitleMargin= o(k,q+l+(h!==2&&q&&r*d.labels[g?"y":"x"]));fa[h]=x(fa[h],a.axisTitleMargin+j+r*a.offset)},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d,c=b.chartHeight-this.bottom-(c?this.height:0)+d;return b.renderer.crispLine(["M",e?this.left:f,e?c:this.top,"L",e?b.chartWidth-this.right:f,e?c:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,d=this.len,e=this.options.title,f=a?b:c,g=this.opposite, h=this.offset,i=w(e.style.fontSize||12),d={low:f+(a?0:d),middle:f+d/2,high:f+(a?d:0)}[e.align],b=(a?c+this.height:b)+(a?1:-1)*(g?-1:1)*this.axisTitleMargin+(this.side===2?i:0);return{x:a?d:b+(g?this.width:0)+h+(e.x||0),y:a?b-(g?this.height:0)+h:d+(e.y||0)}},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.isLog,f=a.isLinked,g=a.tickPositions,h=a.axisTitle,i=a.stacks,j=a.ticks,k=a.minorTicks,l=a.alternateBands,m=d.stackLabels,p=d.alternateGridColor,q=d.lineWidth,o,r=b.hasRendered&& s(a.oldMin)&&!isNaN(a.oldMin),y=a.showAxis,t,u;if(a.hasData||f)if(a.minorTickInterval&&!a.categories&&n(a.getMinorTickPositions(),function(b){k[b]||(k[b]=new Sa(a,b,"minor"));r&&k[b].isNew&&k[b].render(null,!0);k[b].isActive=!0;k[b].render()}),n(g.slice(1).concat([g[0]]),function(b,c){c=c===g.length-1?0:c+1;if(!f||b>=a.min&&b<=a.max)j[b]||(j[b]=new Sa(a,b)),r&&j[b].isNew&&j[b].render(c,!0),j[b].isActive=!0,j[b].render(c)}),p&&n(g,function(b,c){if(c%2===0&&b<a.max)l[b]||(l[b]=new nb(a)),t=b,u=g[c+ 1]!==A?g[c+1]:a.max,l[b].options={from:e?ba(t):t,to:e?ba(u):u,color:p},l[b].render(),l[b].isActive=!0}),!a._addedPlotLB)n((d.plotLines||[]).concat(d.plotBands||[]),function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0;n([j,k,l],function(a){for(var b in a)a[b].isActive?a[b].isActive=!1:(a[b].destroy(),delete a[b])});if(q)o=a.getLinePath(q),a.axisLine?a.axisLine.animate({d:o}):a.axisLine=c.path(o).attr({stroke:d.lineColor,"stroke-width":q,zIndex:7}).add(),a.axisLine[y?"show":"hide"]();if(h&&y)h[h.isNew? "attr":"animate"](a.getTitlePosition()),h.isNew=!1;if(m&&m.enabled){var v,H,d=a.stackTotalGroup;if(!d)a.stackTotalGroup=d=c.g("stack-labels").attr({visibility:"visible",zIndex:6}).add();d.translate(b.plotLeft,b.plotTop);for(v in i)for(H in b=i[v],b)b[H].render(d)}a.isDirty=!1},removePlotBandOrLine:function(a){for(var b=this.plotLinesAndBands,c=b.length;c--;)b[c].id===a&&b[c].destroy()},setTitle:function(a,b){var c=this.chart,d=this.options;d.title=C(d.title,a);this.axisTitle=void 0;this.isDirty=!0; o(b,!0)&&c.redraw()},redraw:function(){var a=this.chart;a.tracker.resetTracker&&a.tracker.resetTracker(!0);this.render();n(this.plotLinesAndBands,function(a){a.render()});n(this.series,function(a){a.isDirty=!0})},setCategories:function(a,b){var c=this.chart;this.categories=this.userOptions.categories=a;n(this.series,function(a){a.translate();a.setTooltipPoints(!0)});this.isDirty=!0;o(b,!0)&&c.redraw()},destroy:function(){var a=this,b=a.stacks,c;P(a);for(c in b)Ba(b[c]),b[c]=null;n([a.ticks,a.minorTicks, a.alternateBands,a.plotLinesAndBands],function(a){Ba(a)});n(["stackTotalGroup","axisLine","axisGroup","gridGroup","axisTitle"],function(b){a[b]&&(a[b]=a[b].destroy())})}};pb.prototype={destroy:function(){n(this.crosshairs,function(a){a&&a.destroy()});if(this.label)this.label=this.label.destroy()},move:function(a,b){var c=this;c.currentX=c.tooltipIsHidden?a:(2*c.currentX+a)/3;c.currentY=c.tooltipIsHidden?b:(c.currentY+b)/2;c.label.attr({x:c.currentX,y:c.currentY});c.tooltipTick=M(a-c.currentX)>1|| M(b-c.currentY)>1?function(){c.move(a,b)}:null},hide:function(){if(!this.tooltipIsHidden){var a=this.chart.hoverPoints;this.label.hide();a&&n(a,function(a){a.setState()});this.chart.hoverPoints=null;this.tooltipIsHidden=!0}},hideCrosshairs:function(){n(this.crosshairs,function(a){a&&a.hide()})},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,f=0,g=0,a=na(a);c=a[0].tooltipPos;c||(n(a,function(a){f+=a.plotX;g+=a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY}),f/=a.length,g/=a.length,c=[e?d.plotWidth- g:f,this.shared&&!e&&a.length>1&&b?b.chartY-d.plotTop:e?d.plotHeight-f:g]);return Ea(c,t)},getPosition:function(a,b,c){var d=this.chart,e=d.plotLeft,f=d.plotTop,g=d.plotWidth,h=d.plotHeight,i=o(this.options.distance,12),j=c.plotX,c=c.plotY,d=j+e+(d.inverted?i:-a-i),k=c-b+f+15,l;d<7&&(d=e+j+i);d+a>e+g&&(d-=d+a-(e+g),k=c-b+f-i,l=!0);k<f+5&&(k=f+5,l&&c>=k&&c<=k+b&&(k=c+f+i));k+b>f+h&&(k=x(f,f+h-b-i));return{x:d,y:k}},refresh:function(a,b){function c(){var a=this.points||na(this),b=a[0].series,c;c=[b.tooltipHeaderFormatter(a[0].key)]; n(a,function(a){b=a.series;c.push(b.tooltipFormatter&&b.tooltipFormatter(a)||a.point.tooltipFormatter(b.tooltipOptions.pointFormat))});c.push(f.footerFormat||"");return c.join("")}var d=this.chart,e=this.label,f=this.options,g,h,i,j={},k,l=[];k=f.formatter||c;var j=d.hoverPoints,m,p=f.crosshairs;i=this.shared;h=this.getAnchor(a,b);g=h[0];h=h[1];i&&(!a.series||!a.series.noSharedTooltip)?(j&&n(j,function(a){a.setState()}),d.hoverPoints=a,n(a,function(a){a.setState("hover");l.push(a.getLabelConfig())}), j={x:a[0].category,y:a[0].y},j.points=l,a=a[0]):j=a.getLabelConfig();k=k.call(j);j=a.series;i=i||!j.isCartesian||j.tooltipOutsidePlot||d.isInsidePlot(g,h);k===!1||!i?this.hide():(this.tooltipIsHidden&&e.show(),e.attr({text:k}),m=f.borderColor||a.color||j.color||"#606060",e.attr({stroke:m}),e=(f.positioner||this.getPosition).call(this,e.width,e.height,{plotX:g,plotY:h}),this.move(t(e.x),t(e.y)),this.tooltipIsHidden=!1);if(p){p=na(p);for(e=p.length;e--;)if(i=a.series[e?"yAxis":"xAxis"],p[e]&&i)if(i= i.getPlotLinePath(e?o(a.stackY,a.y):a.x,1),this.crosshairs[e])this.crosshairs[e].attr({d:i,visibility:"visible"});else{j={"stroke-width":p[e].width||1,stroke:p[e].color||"#C0C0C0",zIndex:p[e].zIndex||2};if(p[e].dashStyle)j.dashstyle=p[e].dashStyle;this.crosshairs[e]=d.renderer.path(i).attr(j).add()}}E(d,"tooltipRefresh",{text:k,x:g+d.plotLeft,y:h+d.plotTop,borderColor:m})},tick:function(){this.tooltipTick&&this.tooltipTick()}};Db.prototype={normalizeMouseEvent:function(a){var b,c,d,a=a||N.event;if(!a.target)a.target= a.srcElement;if(a.originalEvent)a=a.originalEvent;if(a.event)a=a.event;d=a.touches?a.touches.item(0):a;this.chartPosition=b=Jb(this.chart.container);d.pageX===A?(c=a.x,b=a.y):(c=d.pageX-b.left,b=d.pageY-b.top);return u(a,{chartX:t(c),chartY:t(b)})},getMouseCoordinates:function(a){var b={xAxis:[],yAxis:[]},c=this.chart;n(c.axes,function(d){var e=d.isXAxis;b[e?"xAxis":"yAxis"].push({axis:d,value:d.translate((c.inverted?!e:e)?a.chartX-c.plotLeft:c.plotHeight-a.chartY+c.plotTop,!0)})});return b},onmousemove:function(a){var b= this.chart,c=b.series,d,e,f=b.hoverPoint,g=b.hoverSeries,h,i,j=b.chartWidth,k=b.inverted?b.plotHeight+b.plotTop-a.chartY:a.chartX-b.plotLeft;if(b.tooltip&&this.options.tooltip.shared&&(!g||!g.noSharedTooltip)){e=[];h=c.length;for(i=0;i<h;i++)if(c[i].visible&&c[i].options.enableMouseTracking!==!1&&!c[i].noSharedTooltip&&c[i].tooltipPoints.length)d=c[i].tooltipPoints[k],d._dist=M(k-d.plotX),j=O(j,d._dist),e.push(d);for(h=e.length;h--;)e[h]._dist>j&&e.splice(h,1);if(e.length&&e[0].plotX!==this.hoverX)b.tooltip.refresh(e, a),this.hoverX=e[0].plotX}if(g&&g.tracker&&(d=g.tooltipPoints[k])&&d!==f)d.onMouseOver()},resetTracker:function(a){var b=this.chart,c=b.hoverSeries,d=b.hoverPoint,e=b.hoverPoints||d,b=b.tooltip;(a=a&&b&&e)&&na(e)[0].plotX===A&&(a=!1);if(a)b.refresh(e);else{if(d)d.onMouseOut();if(c)c.onMouseOut();b&&(b.hide(),b.hideCrosshairs());this.hoverX=null}},setDOMEvents:function(){function a(){if(b.selectionMarker){var f={xAxis:[],yAxis:[]},g=b.selectionMarker.getBBox(),h=g.x-c.plotLeft,l=g.y-c.plotTop,m;e&& (n(c.axes,function(a){if(a.options.zoomEnabled!==!1){var b=a.isXAxis,d=c.inverted?!b:b,e=a.translate(d?h:c.plotHeight-l-g.height,!0,0,0,1),d=a.translate(d?h+g.width:c.plotHeight-l,!0,0,0,1);!isNaN(e)&&!isNaN(d)&&(f[b?"xAxis":"yAxis"].push({axis:a,min:O(e,d),max:x(e,d)}),m=!0)}}),m&&E(c,"selection",f,function(a){c.zoom(a)}));b.selectionMarker=b.selectionMarker.destroy()}if(c)F(d,{cursor:"auto"}),c.cancelClick=e,c.mouseIsDown=e=!1;P(B,ea?"touchend":"mouseup",a)}var b=this,c=b.chart,d=c.container,e, f=b.zoomX&&!c.inverted||b.zoomY&&c.inverted,g=b.zoomY&&!c.inverted||b.zoomX&&c.inverted;b.hideTooltipOnMouseMove=function(a){Kb(a);b.chartPosition&&c.hoverSeries&&c.hoverSeries.isCartesian&&!c.isInsidePlot(a.pageX-b.chartPosition.left-c.plotLeft,a.pageY-b.chartPosition.top-c.plotTop)&&b.resetTracker()};b.hideTooltipOnMouseLeave=function(){b.resetTracker();b.chartPosition=null};d.onmousedown=function(d){d=b.normalizeMouseEvent(d);!ea&&d.preventDefault&&d.preventDefault();c.mouseIsDown=!0;c.cancelClick= !1;c.mouseDownX=b.mouseDownX=d.chartX;b.mouseDownY=d.chartY;I(B,ea?"touchend":"mouseup",a)};var h=function(a){if(!a||!(a.touches&&a.touches.length>1)){a=b.normalizeMouseEvent(a);if(!ea)a.returnValue=!1;var d=a.chartX,h=a.chartY,l=!c.isInsidePlot(d-c.plotLeft,h-c.plotTop);ea&&a.type==="touchstart"&&(z(a.target,"isTracker")?c.runTrackerClick||a.preventDefault():!c.runChartClick&&!l&&a.preventDefault());if(l)d<c.plotLeft?d=c.plotLeft:d>c.plotLeft+c.plotWidth&&(d=c.plotLeft+c.plotWidth),h<c.plotTop?h= c.plotTop:h>c.plotTop+c.plotHeight&&(h=c.plotTop+c.plotHeight);if(c.mouseIsDown&&a.type!=="touchstart"){if(e=Math.sqrt(Math.pow(b.mouseDownX-d,2)+Math.pow(b.mouseDownY-h,2)),e>10){a=c.isInsidePlot(b.mouseDownX-c.plotLeft,b.mouseDownY-c.plotTop);if(c.hasCartesianSeries&&(b.zoomX||b.zoomY)&&a&&!b.selectionMarker)b.selectionMarker=c.renderer.rect(c.plotLeft,c.plotTop,f?1:c.plotWidth,g?1:c.plotHeight,0).attr({fill:b.options.chart.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add();if(b.selectionMarker&& f){var m=d-b.mouseDownX;b.selectionMarker.attr({width:M(m),x:(m>0?0:m)+b.mouseDownX})}b.selectionMarker&&g&&(h-=b.mouseDownY,b.selectionMarker.attr({height:M(h),y:(h>0?0:h)+b.mouseDownY}));a&&!b.selectionMarker&&b.options.chart.panning&&c.pan(d)}}else if(!l)b.onmousemove(a);return l||!c.hasCartesianSeries}};d.onmousemove=h;I(d,"mouseleave",b.hideTooltipOnMouseLeave);I(B,"mousemove",b.hideTooltipOnMouseMove);d.ontouchstart=function(a){if(b.zoomX||b.zoomY)d.onmousedown(a);h(a)};d.ontouchmove=h;d.ontouchend= function(){e&&b.resetTracker()};d.onclick=function(a){var d=c.hoverPoint,e,f,a=b.normalizeMouseEvent(a);a.cancelBubble=!0;if(!c.cancelClick)d&&(z(a.target,"isTracker")||z(a.target.parentNode,"isTracker"))?(e=d.plotX,f=d.plotY,u(d,{pageX:b.chartPosition.left+c.plotLeft+(c.inverted?c.plotWidth-f:e),pageY:b.chartPosition.top+c.plotTop+(c.inverted?c.plotHeight-e:f)}),E(d.series,"click",u(a,{point:d})),d.firePointEvent("click",a)):(u(a,b.getMouseCoordinates(a)),c.isInsidePlot(a.chartX-c.plotLeft,a.chartY- c.plotTop)&&E(c,"click",a))}},destroy:function(){var a=this.chart,b=a.container;if(a.trackerGroup)a.trackerGroup=a.trackerGroup.destroy();P(b,"mouseleave",this.hideTooltipOnMouseLeave);P(B,"mousemove",this.hideTooltipOnMouseMove);b.onclick=b.onmousedown=b.onmousemove=b.ontouchstart=b.ontouchend=b.ontouchmove=null;clearInterval(this.tooltipInterval)},init:function(a,b){if(!a.trackerGroup)a.trackerGroup=a.renderer.g("tracker").attr({zIndex:9}).add();if(b.enabled)a.tooltip=new pb(a,b),this.tooltipInterval= setInterval(function(){a.tooltip.tick()},32);this.setDOMEvents()}};qb.prototype={init:function(a){var b=this,c=b.options=a.options.legend;if(c.enabled){var d=c.itemStyle,e=o(c.padding,8),f=c.itemMarginTop||0;b.baseline=w(d.fontSize)+3+f;b.itemStyle=d;b.itemHiddenStyle=C(d,c.itemHiddenStyle);b.itemMarginTop=f;b.padding=e;b.initialItemX=e;b.initialItemY=e-5;b.maxItemWidth=0;b.chart=a;b.itemHeight=0;b.lastLineHeight=0;b.render();I(b.chart,"endResize",function(){b.positionCheckboxes()})}},colorizeItem:function(a, b){var c=this.options,d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color,c=b?c.itemStyle.color:g,g=b?a.color:g;d&&d.css({fill:c});e&&e.attr({stroke:g});f&&f.attr({stroke:g,fill:g})},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;a.legendGroup&&a.legendGroup.translate(b?e:this.legendWidth-e-2*c-4,d);if(f)f.x=e,f.y=d},destroyItem:function(a){var b=a.checkbox;n(["legendItem","legendLine","legendSymbol","legendGroup"], function(b){a[b]&&a[b].destroy()});b&&Qa(a.checkbox)},destroy:function(){var a=this.group,b=this.box;if(b)this.box=b.destroy();if(a)this.group=a.destroy()},positionCheckboxes:function(){var a=this;n(a.allItems,function(b){var c=b.checkbox,d=a.group.alignAttr;c&&F(c,{left:d.translateX+b.legendItemWidth+c.x-20+"px",top:d.translateY+c.y+3+"px"})})},renderItem:function(a){var q;var b=this,c=b.chart,d=c.renderer,e=b.options,f=e.layout==="horizontal",g=e.symbolWidth,h=e.symbolPadding,i=b.itemStyle,j=b.itemHiddenStyle, k=b.padding,l=!e.rtl,m=e.width,p=e.itemMarginBottom||0,n=b.itemMarginTop,o=b.initialItemX,r=a.legendItem,s=a.series||a,t=s.options,u=t.showCheckbox;if(!r&&(a.legendGroup=d.g("legend-item").attr({zIndex:1}).add(b.scrollGroup),s.drawLegendSymbol(b,a),a.legendItem=r=d.text(e.labelFormatter.call(a),l?g+h:-h,b.baseline,e.useHTML).css(C(a.visible?i:j)).attr({align:l?"left":"right",zIndex:2}).add(a.legendGroup),a.legendGroup.on("mouseover",function(){a.setState("hover");r.css(b.options.itemHoverStyle)}).on("mouseout", function(){r.css(a.visible?i:j);a.setState()}).on("click",function(b){var c=function(){a.setVisible()},b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):E(a,"legendItemClick",b,c)}),b.colorizeItem(a,a.visible),t&&u))a.checkbox=S("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},e.itemCheckboxStyle,c.container),I(a.checkbox,"click",function(b){E(a,"checkboxClick",{checked:b.target.checked},function(){a.select()})});d=r.getBBox();q=a.legendItemWidth=e.itemWidth|| g+h+d.width+k+(u?20:0),e=q;b.itemHeight=g=d.height;if(f&&b.itemX-o+e>(m||c.chartWidth-2*k-o))b.itemX=o,b.itemY+=n+b.lastLineHeight+p,b.lastLineHeight=0;b.maxItemWidth=x(b.maxItemWidth,e);b.lastItemY=n+b.itemY+p;b.lastLineHeight=x(g,b.lastLineHeight);a._legendItemPos=[b.itemX,b.itemY];f?b.itemX+=e:(b.itemY+=n+g+p,b.lastLineHeight=g);b.offsetWidth=m||x(f?b.itemX-o:e,b.offsetWidth)},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,h,i=a.box,j=a.options,k=a.padding,l=j.borderWidth, m=j.backgroundColor;a.itemX=a.initialItemX;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;if(!d)a.group=d=c.g("legend").attr({zIndex:7}).add(),a.contentGroup=c.g().attr({zIndex:1}).add(d),a.scrollGroup=c.g().add(a.contentGroup),a.clipRect=c.clipRect(0,0,9999,b.chartHeight),a.contentGroup.clip(a.clipRect);e=[];n(b.series,function(a){var b=a.options;b.showInLegend&&(e=e.concat(a.legendItems||(b.legendType==="point"?a.data:a)))});Qb(e,function(a,b){return(a.options.legendIndex||0)-(b.options.legendIndex|| 0)});j.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;n(e,function(b){a.renderItem(b)});g=j.width||a.offsetWidth;h=a.lastItemY+a.lastLineHeight;h=a.handleOverflow(h);if(l||m){g+=k;h+=k;if(i){if(g>0&&h>0)i[i.isNew?"attr":"animate"](i.crisp(null,null,null,g,h)),i.isNew=!1}else a.box=i=c.rect(0,0,g,h,j.borderRadius,l||0).attr({stroke:j.borderColor,"stroke-width":l||0,fill:m||U}).add(d).shadow(j.shadow),i.isNew=!0;i[f?"show":"hide"]()}a.legendWidth=g;a.legendHeight=h;n(e,function(b){a.positionItem(b)}); f&&d.align(u({width:g,height:h},j),!0,b.spacingBox);b.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,e=this.options,f=e.y,f=c.spacingBox.height+(e.verticalAlign==="top"?-f:f)-this.padding,g=e.maxHeight,h=this.clipRect,i=e.navigation,j=o(i.animation,!0),k=i.arrowSize||12,l=this.nav;e.layout==="horizontal"&&(f/=2);g&&(f=O(f,g));if(a>f){this.clipHeight=c=f-20;this.pageCount=wa(a/c);this.currentPage=o(this.currentPage,1);this.fullHeight=a;h.attr({height:c}); if(!l)this.nav=l=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,k,k).on("click",function(){b.scroll(-1,j)}).add(l),this.pager=d.text("",15,10).css(i.style).add(l),this.down=d.symbol("triangle-down",0,0,k,k).on("click",function(){b.scroll(1,j)}).add(l);b.scroll(0);a=f}else l&&(h.attr({height:c.chartHeight}),l.hide(),this.scrollGroup.attr({translateY:1}));return a},scroll:function(a,b){var c=this.pageCount,d=this.currentPage+a,e=this.clipHeight,f=this.options.navigation,g=f.activeColor, f=f.inactiveColor,h=this.pager,i=this.padding;d>c&&(d=c);if(d>0)b!==A&&ua(b,this.chart),this.nav.attr({translateX:i,translateY:e+7,visibility:"visible"}),this.up.attr({fill:d===1?f:g}).css({cursor:d===1?"default":"pointer"}),h.attr({text:d+"/"+this.pageCount}),this.down.attr({x:18+this.pager.getBBox().width,fill:d===c?f:g}).css({cursor:d===c?"default":"pointer"}),this.scrollGroup.animate({translateY:-O(e*(d-1),this.fullHeight-e+i)+1}),h.attr({text:d+"/"+c}),this.currentPage=d}};rb.prototype={initSeries:function(a){var b= this.options.chart,b=new Y[a.type||b.type||b.defaultSeriesType];b.init(this,a);return b},addSeries:function(a,b,c){var d=this;a&&(ua(c,d),b=o(b,!0),E(d,"addSeries",{options:a},function(){d.initSeries(a);d.isDirtyLegend=!0;b&&d.redraw()}))},isInsidePlot:function(a,b){return a>=0&&a<=this.plotWidth&&b>=0&&b<=this.plotHeight},adjustTickAmounts:function(){this.options.chart.alignTicks!==!1&&n(this.axes,function(a){a.adjustTickAmount()});this.maxTicks=null},redraw:function(a){var b=this.axes,c=this.series, d=this.tracker,e=this.legend,f=this.isDirtyLegend,g,h=this.isDirtyBox,i=c.length,j=i,k=this.clipRect,l=this.renderer,m=l.isHidden();ua(a,this);for(m&&this.cloneRenderTo();j--;)if(a=c[j],a.isDirty&&a.options.stacking){g=!0;break}if(g)for(j=i;j--;)if(a=c[j],a.options.stacking)a.isDirty=!0;n(c,function(a){a.isDirty&&a.options.legendType==="point"&&(f=!0)});if(f&&e.options.enabled)e.render(),this.isDirtyLegend=!1;if(this.hasCartesianSeries){if(!this.isResizing)this.maxTicks=null,n(b,function(a){a.setScale()}); this.adjustTickAmounts();this.getMargins();n(b,function(a){if(a.isDirtyExtremes)a.isDirtyExtremes=!1,E(a,"afterSetExtremes",a.getExtremes());if(a.isDirty||h||g)a.redraw(),h=!0})}h&&(this.drawChartBox(),k&&(Fa(k),k.animate({width:this.plotSizeX,height:this.plotSizeY+1})));n(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.resetTracker&&d.resetTracker(!0);l.draw();E(this,"redraw");m&&this.cloneRenderTo(!0)},showLoading:function(a){var b=this.options,c=this.loadingDiv, d=b.loading;if(!c)this.loadingDiv=c=S(ia,{className:"highcharts-loading"},u(d.style,{left:this.plotLeft+"px",top:this.plotTop+"px",width:this.plotWidth+"px",height:this.plotHeight+"px",zIndex:10,display:U}),this.container),this.loadingSpan=S("span",null,d.labelStyle,c);this.loadingSpan.innerHTML=a||b.lang.loading;if(!this.loadingShown)F(c,{opacity:0,display:""}),eb(c,{opacity:d.style.opacity},{duration:d.showDuration||0}),this.loadingShown=!0},hideLoading:function(){var a=this.options,b=this.loadingDiv; b&&eb(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){F(b,{display:U})}});this.loadingShown=!1},get:function(a){var b=this.axes,c=this.series,d,e;for(d=0;d<b.length;d++)if(b[d].options.id===a)return b[d];for(d=0;d<c.length;d++)if(c[d].options.id===a)return c[d];for(d=0;d<c.length;d++){e=c[d].points||[];for(b=0;b<e.length;b++)if(e[b].id===a)return e[b]}return null},getAxes:function(){var a=this,b=this.options,c=b.xAxis||{},b=b.yAxis||{},c=na(c);n(c,function(a,b){a.index=b;a.isX= !0});b=na(b);n(b,function(a,b){a.index=b});c=c.concat(b);n(c,function(b){new ob(a,b)});a.adjustTickAmounts()},getSelectedPoints:function(){var a=[];n(this.series,function(b){a=a.concat(ub(b.points,function(a){return a.selected}))});return a},getSelectedSeries:function(){return ub(this.series,function(a){return a.selected})},showResetZoom:function(){var a=this,b=V.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f=c.relativeTo==="chart"?null:{x:a.plotLeft,y:a.plotTop,width:a.plotWidth,height:a.plotHeight}; this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,function(){a.zoomOut()},d,e&&e.hover).attr({align:c.position.align,title:b.resetZoomTitle}).add().align(c.position,!1,f)},zoomOut:function(){var a=this,b=a.resetZoomButton;E(a,"selection",{resetSelection:!0},function(){a.zoom()});if(b)a.resetZoomButton=b.destroy()},zoom:function(a){var b=this,c=b.options.chart,d;b.resetZoomEnabled!==!1&&!b.resetZoomButton&&b.showResetZoom();!a||a.resetSelection?n(b.axes,function(a){a.options.zoomEnabled!== !1&&(a.setExtremes(null,null,!1),d=!0)}):n(a.xAxis.concat(a.yAxis),function(a){var c=a.axis;if(b.tracker[c.isXAxis?"zoomX":"zoomY"])c.setExtremes(a.min,a.max,!1),d=!0});d&&b.redraw(o(c.animation,b.pointCount<100))},pan:function(a){var b=this.xAxis[0],c=this.mouseDownX,d=b.pointRange/2,e=b.getExtremes(),f=b.translate(c-a,!0)+d,c=b.translate(c+this.plotWidth-a,!0)-d;(d=this.hoverPoints)&&n(d,function(a){a.setState()});b.series.length&&f>O(e.dataMin,e.min)&&c<x(e.dataMax,e.max)&&b.setExtremes(f,c,!0, !1);this.mouseDownX=a;F(this.container,{cursor:"move"})},setTitle:function(a,b){var c=this,d=c.options,e;c.chartTitleOptions=e=C(d.title,a);c.chartSubtitleOptions=d=C(d.subtitle,b);n([["title",a,e],["subtitle",b,d]],function(a){var b=a[0],d=c[b],e=a[1],a=a[2];d&&e&&(d=d.destroy());a&&a.text&&!d&&(c[b]=c.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+b,zIndex:a.zIndex||4}).css(a.style).add().align(a,!1,c.spacingBox))})},getChartSize:function(){var a=this.options.chart, b=this.renderToClone||this.renderTo;this.containerWidth=Va(b,"width");this.containerHeight=Va(b,"height");this.chartWidth=a.width||this.containerWidth||600;this.chartHeight=a.height||(this.containerHeight>19?this.containerHeight:400)},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),Qa(b),delete this.renderToClone):(c&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),F(b,{position:"absolute",top:"-9999px",display:"block"}), B.body.appendChild(b),c&&b.appendChild(c))},getContainer:function(){var a,b=this.options.chart,c,d,e;this.renderTo=a=b.renderTo;e="highcharts-"+sb++;if(ra(a))this.renderTo=a=B.getElementById(a);a||mb(13,!0);a.innerHTML="";a.offsetWidth||this.cloneRenderTo();this.getChartSize();c=this.chartWidth;d=this.chartHeight;this.container=a=S(ia,{className:"highcharts-container"+(b.className?" "+b.className:""),id:e},u({position:"relative",overflow:"hidden",width:c+"px",height:d+"px",textAlign:"left",lineHeight:"normal"}, b.style),this.renderToClone||a);this.renderer=b.forExport?new qa(a,c,d,!0):new Ta(a,c,d);ga&&this.renderer.create(this,a,c,d)},getMargins:function(){var a=this.options.chart,b=a.spacingTop,c=a.spacingRight,d=a.spacingBottom,a=a.spacingLeft,e,f=this.legend,g=this.optionsMarginTop,h=this.optionsMarginLeft,i=this.optionsMarginRight,j=this.optionsMarginBottom,k=this.chartTitleOptions,l=this.chartSubtitleOptions,m=this.options.legend,p=o(m.margin,10),q=m.x,t=m.y,r=m.align,y=m.verticalAlign;this.resetMargins(); e=this.axisOffset;if((this.title||this.subtitle)&&!s(this.optionsMarginTop))if(l=x(this.title&&!k.floating&&!k.verticalAlign&&k.y||0,this.subtitle&&!l.floating&&!l.verticalAlign&&l.y||0))this.plotTop=x(this.plotTop,l+o(k.margin,15)+b);if(f.display&&!m.floating)if(r==="right"){if(!s(i))this.marginRight=x(this.marginRight,f.legendWidth-q+p+c)}else if(r==="left"){if(!s(h))this.plotLeft=x(this.plotLeft,f.legendWidth+q+p+a)}else if(y==="top"){if(!s(g))this.plotTop=x(this.plotTop,f.legendHeight+t+p+b)}else if(y=== "bottom"&&!s(j))this.marginBottom=x(this.marginBottom,f.legendHeight-t+p+d);this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);this.hasCartesianSeries&&n(this.axes,function(a){a.getOffset()});s(h)||(this.plotLeft+=e[3]);s(g)||(this.plotTop+=e[0]);s(j)||(this.marginBottom+=e[2]);s(i)||(this.marginRight+=e[1]);this.setChartSize()},initReflow:function(){function a(a){var g=c.width||Va(d,"width"),h=c.height||Va(d,"height"),a=a? a.target:N;if(g&&h&&(a===N||a===B)){if(g!==b.containerWidth||h!==b.containerHeight)clearTimeout(e),e=setTimeout(function(){b.resize(g,h,!1)},100);b.containerWidth=g;b.containerHeight=h}}var b=this,c=b.options.chart,d=b.renderTo,e;I(N,"resize",a);I(b,"destroy",function(){P(N,"resize",a)})},fireEndResize:function(){var a=this;a&&E(a,"endResize",null,function(){a.isResizing-=1})},resize:function(a,b,c){var d,e,f=this.title,g=this.subtitle;this.isResizing+=1;ua(c,this);this.oldChartHeight=this.chartHeight; this.oldChartWidth=this.chartWidth;if(s(a))this.chartWidth=d=t(a);if(s(b))this.chartHeight=e=t(b);F(this.container,{width:d+"px",height:e+"px"});this.renderer.setSize(d,e,c);this.plotWidth=d-this.plotLeft-this.marginRight;this.plotHeight=e-this.plotTop-this.marginBottom;this.maxTicks=null;n(this.axes,function(a){a.isDirty=!0;a.setScale()});n(this.series,function(a){a.isDirty=!0});this.isDirtyBox=this.isDirtyLegend=!0;this.getMargins();a=this.spacingBox;f&&f.align(null,null,a);g&&g.align(null,null, a);this.redraw(c);this.oldChartHeight=null;E(this,"resize");Ra===!1?this.fireEndResize():setTimeout(this.fireEndResize,Ra&&Ra.duration||500)},setChartSize:function(){var a=this.inverted,b=this.chartWidth,c=this.chartHeight,d=this.options.chart,e=d.spacingTop,f=d.spacingRight,g=d.spacingBottom,d=d.spacingLeft;this.plotLeft=t(this.plotLeft);this.plotTop=t(this.plotTop);this.plotWidth=t(b-this.plotLeft-this.marginRight);this.plotHeight=t(c-this.plotTop-this.marginBottom);this.plotSizeX=a?this.plotHeight: this.plotWidth;this.plotSizeY=a?this.plotWidth:this.plotHeight;this.spacingBox={x:d,y:e,width:b-d-f,height:c-e-g};n(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this.options.chart,b=a.spacingRight,c=a.spacingBottom,d=a.spacingLeft;this.plotTop=o(this.optionsMarginTop,a.spacingTop);this.marginRight=o(this.optionsMarginRight,b);this.marginBottom=o(this.optionsMarginBottom,c);this.plotLeft=o(this.optionsMarginLeft,d);this.axisOffset=[0,0,0,0]},drawChartBox:function(){var a= this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,e=this.chartBackground,f=this.plotBackground,g=this.plotBorder,h=this.plotBGImage,i=a.borderWidth||0,j=a.backgroundColor,k=a.plotBackgroundColor,l=a.plotBackgroundImage,m,p={x:this.plotLeft,y:this.plotTop,width:this.plotWidth,height:this.plotHeight};m=i+(a.shadow?8:0);if(i||j)if(e)e.animate(e.crisp(null,null,null,c-m,d-m));else{e={fill:j||U};if(i)e.stroke=a.borderColor,e["stroke-width"]=i;this.chartBackground=b.rect(m/2,m/2,c- m,d-m,a.borderRadius,i).attr(e).add().shadow(a.shadow)}if(k)f?f.animate(p):this.plotBackground=b.rect(this.plotLeft,this.plotTop,this.plotWidth,this.plotHeight,0).attr({fill:k}).add().shadow(a.plotShadow);if(l)h?h.animate(p):this.plotBGImage=b.image(l,this.plotLeft,this.plotTop,this.plotWidth,this.plotHeight).add();if(a.plotBorderWidth)g?g.animate(g.crisp(null,this.plotLeft,this.plotTop,this.plotWidth,this.plotHeight)):this.plotBorder=b.rect(this.plotLeft,this.plotTop,this.plotWidth,this.plotHeight, 0,a.plotBorderWidth).attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth,zIndex:4}).add();this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;n(["inverted","angular","polar"],function(g){c=Y[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&e--;)(c=Y[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},render:function(){var a=this,b=a.axes,c=a.renderer,d=a.options,e=d.labels,d=d.credits,f;a.setTitle();a.legend=new qb(a); n(b,function(a){a.setScale()});a.getMargins();a.maxTicks=null;n(b,function(a){a.setTickPositions(!0);a.setMaxTicks()});a.adjustTickAmounts();a.getMargins();a.drawChartBox();a.hasCartesianSeries&&n(b,function(a){a.render()});if(!a.seriesGroup)a.seriesGroup=c.g("series-group").attr({zIndex:3}).add();n(a.series,function(a){a.translate();a.setTooltipPoints();a.render()});e.items&&n(e.items,function(){var b=u(e.style,this.style),d=w(b.left)+a.plotLeft,f=w(b.top)+a.plotTop+12;delete b.left;delete b.top; c.text(this.html,d,f).attr({zIndex:2}).css(b).add()});if(d.enabled&&!a.credits)f=d.href,a.credits=c.text(d.text,0,0).on("click",function(){if(f)location.href=f}).attr({align:d.position.align,zIndex:8}).css(d.style).add().align(d.position);a.hasRendered=!0},destroy:function(){var a=this,b=a.axes,c=a.series,d=a.container,e,f=d&&d.parentNode;if(a!==null){E(a,"destroy");P(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e].destroy();n("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,tracker,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","), function(b){var c=a[b];c&&(a[b]=c.destroy())});if(d)d.innerHTML="",P(d),f&&Qa(d),d=null;for(e in a)delete a[e];a=a.options=null}},firstRender:function(){var a=this,b=a.options,c=a.callback;if(!Da&&N==N.top&&B.readyState!=="complete"||ga&&!N.canvg)ga?Nb.push(function(){a.firstRender()},b.global.canvasToolsURL):B.attachEvent("onreadystatechange",function(){B.detachEvent("onreadystatechange",a.firstRender);B.readyState==="complete"&&a.firstRender()});else{a.getContainer();E(a,"init");if(Highcharts.RangeSelector&& b.rangeSelector.enabled)a.rangeSelector=new Highcharts.RangeSelector(a);a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();n(b.series||[],function(b){a.initSeries(b)});if(Highcharts.Scroller&&(b.navigator.enabled||b.scrollbar.enabled))a.scroller=new Highcharts.Scroller(a);a.tracker=new Db(a,b);a.render();a.renderer.draw();c&&c.apply(a,[a]);n(a.callbacks,function(b){b.apply(a,[a])});a.cloneRenderTo(!0);E(a,"load")}},init:function(a){var b=this.options.chart,c;b.reflow!==!1&&I(this,"load", this.initReflow);if(a)for(c in a)I(this,c,a[c]);this.xAxis=[];this.yAxis=[];this.animation=ga?!1:o(b.animation,!0);this.setSize=this.resize;this.pointCount=0;this.counters=new Ab;this.firstRender()}};rb.prototype.callbacks=[];var Wa=function(){};Wa.prototype={init:function(a,b,c){var d=a.chart.counters;this.series=a;this.applyOptions(b,c);this.pointAttr={};if(a.options.colorByPoint){b=a.chart.options.colors;if(!this.options)this.options={};this.color=this.options.color=this.color||b[d.color++];d.wrapColor(b.length)}a.chart.pointCount++; return this},applyOptions:function(a,b){var c=this.series,d=typeof a;this.config=a;if(d==="number"||a===null)this.y=a;else if(typeof a[0]==="number")this.x=a[0],this.y=a[1];else if(d==="object"&&typeof a.length!=="number"){if(u(this,a),this.options=a,a.dataLabels)c._hasPointLabels=!0}else if(typeof a[0]==="string")this.name=a[0],this.y=a[1];if(this.x===A)this.x=b===A?c.autoIncrement():b},destroy:function(){var a=this.series.chart,b=a.hoverPoints,c;a.pointCount--;if(b&&(this.setState(),za(b,this), !b.length))a.hoverPoints=null;if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)P(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(c in this)this[c]=null},destroyElements:function(){for(var a="graphic,tracker,dataLabel,group,connector,shadowGroup".split(","),b,c=6;c--;)b=a[c],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage, total:this.total||this.stackTotal}},select:function(a,b){var c=this,d=c.series.chart,a=o(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=a;c.setState(a&&"select");b||n(d.getSelectedPoints(),function(a){if(a.selected&&a!==c)a.selected=!1,a.setState(""),a.firePointEvent("unselect")})})},onMouseOver:function(){var a=this.series,b=a.chart,c=b.tooltip,d=b.hoverPoint;if(d&&d!==this)d.onMouseOut();this.firePointEvent("mouseOver");c&&(!c.shared||a.noSharedTooltip)&& c.refresh(this);this.setState("hover");b.hoverPoint=this},onMouseOut:function(){this.firePointEvent("mouseOut");this.setState();this.series.chart.hoverPoint=null},tooltipFormatter:function(a){var b=this.series,c=b.tooltipOptions,d=a.match(/\{(series|point)\.[a-zA-Z]+\}/g),e=/[{\.}]/,f,g,h,i,j={y:0,open:0,high:0,low:0,close:0,percentage:1,total:1};c.valuePrefix=c.valuePrefix||c.yPrefix;c.valueDecimals=c.valueDecimals||c.yDecimals;c.valueSuffix=c.valueSuffix||c.ySuffix;for(i in d)g=d[i],ra(g)&&g!== a&&(h=(" "+g).split(e),f={point:this,series:b}[h[1]],h=h[2],f===this&&j.hasOwnProperty(h)?(f=j[h]?h:"value",f=(c[f+"Prefix"]||"")+Xa(this[h],o(c[f+"Decimals"],-1))+(c[f+"Suffix"]||"")):f=f[h],a=a.replace(g,f));return a},update:function(a,b,c){var d=this,e=d.series,f=d.graphic,g,h=e.data,i=h.length,j=e.chart,b=o(b,!0);d.firePointEvent("update",{options:a},function(){d.applyOptions(a);aa(a)&&(e.getAttribs(),f&&f.attr(d.pointAttr[e.state]));for(g=0;g<i;g++)if(h[g]===d){e.xData[g]=d.x;e.yData[g]=d.y; e.options.data[g]=a;break}e.isDirty=!0;e.isDirtyData=!0;b&&j.redraw(c)})},remove:function(a,b){var c=this,d=c.series,e=d.chart,f,g=d.data,h=g.length;ua(b,e);a=o(a,!0);c.firePointEvent("remove",null,function(){for(f=0;f<h;f++)if(g[f]===c){g.splice(f,1);d.options.data.splice(f,1);d.xData.splice(f,1);d.yData.splice(f,1);break}c.destroy();d.isDirty=!0;d.isDirtyData=!0;a&&e.redraw()})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])&& this.importEvents();a==="click"&&e.allowPointSelect&&(c=function(a){d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});E(this,a,b,c)},importEvents:function(){if(!this.hasImportedEvents){var a=C(this.series.options.point,this.options).events,b;this.events=a;for(b in a)I(this,b,a[b]);this.hasImportedEvents=!0}},setState:function(a){var b=this.plotX,c=this.plotY,d=this.series,e=d.options.states,f=Z[d.type].marker&&d.options.marker,g=f&&!f.enabled,h=f&&f.states[a],i=h&&h.enabled===!1,j=d.stateMarkerGraphic, k=d.chart,l=this.pointAttr,a=a||"";if(!(a===this.state||this.selected&&a!=="select"||e[a]&&e[a].enabled===!1||a&&(i||g&&!h.enabled))){if(this.graphic)e=f&&this.graphic.symbolName&&l[a].r,this.graphic.attr(C(l[a],e?{x:b-e,y:c-e,width:2*e,height:2*e}:{}));else{if(a&&h){if(!j)e=h.radius,d.stateMarkerGraphic=j=k.renderer.symbol(d.symbol,-e,-e,2*e,2*e).attr(l[a]).add(d.group);j.translate(b,c)}if(j)j[a?"show":"hide"]()}this.state=a}}};var R=function(){};R.prototype={isCartesian:!0,type:"line",pointClass:Wa, sorted:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(a,b){var c,d;d=a.series.length;this.chart=a;this.options=b=this.setOptions(b);this.bindAxes();u(this,{index:d,name:b.name||"Series "+(d+1),state:"",pointAttr:{},visible:b.visible!==!1,selected:b.selected===!0});if(ga)b.animation=!1;d=b.events;for(c in d)I(this,c,d[c]);if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;this.getColor(); this.getSymbol();this.setData(b.data,!1);if(this.isCartesian)a.hasCartesianSeries=!0;a.series.push(this)},bindAxes:function(){var a=this,b=a.options,c=a.chart,d;a.isCartesian&&n(["xAxis","yAxis"],function(e){n(c[e],function(c){d=c.options;if(b[e]===d.index||b[e]===A&&d.index===0)c.series.push(a),a[e]=c,c.isDirty=!0})})},autoIncrement:function(){var a=this.options,b=this.xIncrement,b=o(b,a.pointStart,0);this.pointInterval=o(this.pointInterval,a.pointInterval,1);this.xIncrement=b+this.pointInterval; return b},getSegments:function(){var a=-1,b=[],c,d=this.points,e=d.length;if(e)if(this.options.connectNulls){for(c=e;c--;)d[c].y===null&&d.splice(c,1);d.length&&(b=[d])}else n(d,function(c,g){c.y===null?(g>a+1&&b.push(d.slice(a+1,g)),a=g):g===e-1&&b.push(d.slice(a+1,g+1))});this.segments=b},setOptions:function(a){var b=this.chart.options,c=b.plotOptions,d=a.data;a.data=null;c=C(c[this.type],c.series,a);c.data=a.data=d;this.tooltipOptions=C(b.tooltip,c.tooltip);return c},getColor:function(){var a= this.options,b=this.chart.options.colors,c=this.chart.counters;this.color=a.color||!a.colorByPoint&&b[c.color++]||"gray";c.wrapColor(b.length)},getSymbol:function(){var a=this.options.marker,b=this.chart,c=b.options.symbols,b=b.counters;this.symbol=a.symbol||c[b.symbol++];if(/^url/.test(this.symbol))a.radius=0;b.wrapSymbol(c.length)},drawLegendSymbol:function(a){var b=this.options,c=b.marker,d=a.options.symbolWidth,e=this.chart.renderer,f=this.legendGroup,a=a.baseline,g;if(b.lineWidth){g={"stroke-width":b.lineWidth}; if(b.dashStyle)g.dashstyle=b.dashStyle;this.legendLine=e.path(["M",0,a-4,"L",d,a-4]).attr(g).add(f)}if(c&&c.enabled)b=c.radius,this.legendSymbol=e.symbol(this.symbol,d/2-b,a-4-b,2*b,2*b).attr(this.pointAttr[""]).add(f)},addPoint:function(a,b,c,d){var e=this.data,f=this.graph,g=this.area,h=this.chart,i=this.xData,j=this.yData,k=f&&f.shift||0,l=this.options.data;ua(d,h);if(f&&c)f.shift=k+1;if(g){if(c)g.shift=k+1;g.isArea=!0}b=o(b,!0);d={series:this};this.pointClass.prototype.applyOptions.apply(d,[a]); i.push(d.x);j.push(this.valueCount===4?[d.open,d.high,d.low,d.close]:d.y);l.push(a);c&&(e[0]&&e[0].remove?e[0].remove(!1):(e.shift(),i.shift(),j.shift(),l.shift()));this.getAttribs();this.isDirtyData=this.isDirty=!0;b&&h.redraw()},setData:function(a,b){var c=this.points,d=this.options,e=this.initialColor,f=this.chart,g=null,h=this.xAxis,i=this.pointClass.prototype;this.xIncrement=null;this.pointRange=h&&h.categories&&1||d.pointRange;if(s(e))f.counters.color=e;var j=[],k=[],l=a?a.length:[],m=this.valueCount; if(l>(d.turboThreshold||1E3)){for(e=0;g===null&&e<l;)g=a[e],e++;if(Ka(g)){i=o(d.pointStart,0);d=o(d.pointInterval,1);for(e=0;e<l;e++)j[e]=i,k[e]=a[e],i+=d;this.xIncrement=i}else if(Ja(g))if(m)for(e=0;e<l;e++)d=a[e],j[e]=d[0],k[e]=d.slice(1,m+1);else for(e=0;e<l;e++)d=a[e],j[e]=d[0],k[e]=d[1]}else for(e=0;e<l;e++)d={series:this},i.applyOptions.apply(d,[a[e]]),j[e]=d.x,k[e]=i.toYData?i.toYData.apply(d):d.y;this.data=[];this.options.data=a;this.xData=j;this.yData=k;for(e=c&&c.length||0;e--;)c[e]&&c[e].destroy&& c[e].destroy();if(h)h.minRange=h.userMinRange;this.isDirty=this.isDirtyData=f.isDirtyBox=!0;o(b,!0)&&f.redraw(!1)},remove:function(a,b){var c=this,d=c.chart,a=o(a,!0);if(!c.isRemoving)c.isRemoving=!0,E(c,"remove",null,function(){c.destroy();d.isDirtyLegend=d.isDirtyBox=!0;a&&d.redraw(b)});c.isRemoving=!1},processData:function(a){var b=this.xData,c=this.yData,d=b.length,e=0,f=d,g,h,i=this.xAxis,j=this.options,k=j.cropThreshold,l=this.isCartesian;if(l&&!this.isDirty&&!i.isDirty&&!this.yAxis.isDirty&& !a)return!1;if(l&&this.sorted&&(!k||d>k||this.forceCrop))if(a=i.getExtremes(),i=a.min,k=a.max,b[d-1]<i||b[0]>k)b=[],c=[];else if(b[0]<i||b[d-1]>k){for(a=0;a<d;a++)if(b[a]>=i){e=x(0,a-1);break}for(;a<d;a++)if(b[a]>k){f=a+1;break}b=b.slice(e,f);c=c.slice(e,f);g=!0}for(a=b.length-1;a>0;a--)if(d=b[a]-b[a-1],d>0&&(h===A||d<h))h=d;this.cropped=g;this.cropStart=e;this.processedXData=b;this.processedYData=c;if(j.pointRange===null)this.pointRange=h||1;this.closestPointRange=h},generatePoints:function(){var a= this.options.data,b=this.data,c,d=this.processedXData,e=this.processedYData,f=this.pointClass,g=d.length,h=this.cropStart||0,i,j=this.hasGroupedData,k,l=[],m;if(!b&&!j)b=[],b.length=a.length,b=this.data=b;for(m=0;m<g;m++)i=h+m,j?l[m]=(new f).init(this,[d[m]].concat(na(e[m]))):(b[i]?k=b[i]:a[i]!==A&&(b[i]=k=(new f).init(this,a[i],d[m])),l[m]=k);if(b&&(g!==(c=b.length)||j))for(m=0;m<c;m++)if(m===h&&!j&&(m+=g),b[m])b[m].destroyElements(),b[m].plotX=A;this.data=b;this.points=l},translate:function(){this.processedXData|| this.processData();this.generatePoints();for(var a=this.chart,b=this.options,c=b.stacking,d=this.xAxis,e=d.categories,f=this.yAxis,g=this.points,h=g.length,i=!!this.modifyValue,j,k=f.series,l=k.length;l--;)if(k[l].visible){l===this.index&&(j=!0);break}for(l=0;l<h;l++){var k=g[l],m=k.x,p=k.y,n=k.low,o=f.stacks[(p<b.threshold?"-":"")+this.stackKey];k.plotX=d.translate(m,0,0,0,1);if(c&&this.visible&&o&&o[m]){n=o[m];m=n.total;n.cum=n=n.cum-p;p=n+p;if(j)n=b.threshold;c==="percent"&&(n=m?n*100/m:0,p=m? p*100/m:0);k.percentage=m?k.y*100/m:0;k.stackTotal=m;k.stackY=p}k.yBottom=s(n)?f.translate(n,0,1,0,1):null;i&&(p=this.modifyValue(p,k));k.plotY=typeof p==="number"?t(f.translate(p,0,1,0,1)*10)/10:A;k.clientX=a.inverted?a.plotHeight-k.plotX:k.plotX;k.category=e&&e[k.x]!==A?e[k.x]:k.x}this.getSegments()},setTooltipPoints:function(a){var b=[],c=this.chart.plotSizeX,d,e;d=this.xAxis;var f,g,h=[];if(this.options.enableMouseTracking!==!1){if(a)this.tooltipPoints=null;n(this.segments||this.points,function(a){b= b.concat(a)});d&&d.reversed&&(b=b.reverse());a=b.length;for(g=0;g<a;g++){f=b[g];d=b[g-1]?b[g-1]._high+1:0;for(f._high=e=b[g+1]?x(0,W((f.plotX+(b[g+1]?b[g+1].plotX:c))/2)):c;d>=0&&d<=e;)h[d++]=f}this.tooltipPoints=h}},tooltipHeaderFormatter:function(a){var b=this.tooltipOptions,c=b.xDateFormat,d=this.xAxis,e=d&&d.options.type==="datetime",f;if(e&&!c)for(f in D)if(D[f]>=d.closestPointRange){c=b.dateTimeLabelFormats[f];break}return b.headerFormat.replace("{point.key}",e?db(c,a):a).replace("{series.name}", this.name).replace("{series.color}",this.color)},onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(ea||!a.mouseIsDown){if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&E(this,"mouseOver");this.setState("hover");a.hoverSeries=this}},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;if(d)d.onMouseOut();this&&a.events.mouseOut&&E(this,"mouseOut");c&&!a.stickyTracking&&!c.shared&&c.hide();this.setState();b.hoverSeries=null},animate:function(a){var b= this.chart,c=this.clipRect,d=this.options.animation;d&&!aa(d)&&(d={});if(a){if(!c.isAnimating)c.attr("width",0),c.isAnimating=!0}else c.animate({width:b.plotSizeX},d),this.animate=null},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,i,j,k;if(this.options.marker.enabled)for(f=b.length;f--;)if(g=b[f],d=g.plotX,e=g.plotY,k=g.graphic,e!==A&&!isNaN(e))if(a=g.pointAttr[g.selected?"select":""],h=a.r,i=o(g.marker&&g.marker.symbol,this.symbol),j=i.indexOf("url")===0,k)k.animate(u({x:d-h, y:e-h},k.symbolName?{width:2*h,height:2*h}:{}));else if(h>0||j)g.graphic=c.renderer.symbol(i,d-h,e-h,2*h,2*h).attr(a).add(this.group)},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,h={},a=a||{},b=b||{},c=c||{},d=d||{};for(f in e)g=e[f],h[f]=o(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=Z[a.type].marker?a.options.marker:a.options,c=b.states,d=c.hover,e,f=a.color,g={stroke:f,fill:f},h=a.points||[],i=[],j,k=a.pointAttrToOptions,l;a.options.marker?(d.radius= d.radius||b.radius+2,d.lineWidth=d.lineWidth||b.lineWidth+1):d.color=d.color||pa(d.color||f).brighten(d.brightness).get();i[""]=a.convertAttribs(b,g);n(["hover","select"],function(b){i[b]=a.convertAttribs(c[b],i[""])});a.pointAttr=i;for(f=h.length;f--;){g=h[f];if((b=g.options&&g.options.marker||g.options)&&b.enabled===!1)b.radius=0;e=!1;if(g.options)for(l in k)s(b[k[l]])&&(e=!0);if(e){j=[];c=b.states||{};e=c.hover=c.hover||{};if(!a.options.marker)e.color=pa(e.color||g.options.color).brighten(e.brightness|| d.brightness).get();j[""]=a.convertAttribs(b,i[""]);j.hover=a.convertAttribs(c.hover,i.hover,j[""]);j.select=a.convertAttribs(c.select,i.select,j[""])}else j=i;g.pointAttr=j}},destroy:function(){var a=this,b=a.chart,c=a.clipRect,d=/AppleWebKit\/533/.test(ya),e,f,g=a.data||[],h,i,j;E(a,"destroy");P(a);n(["xAxis","yAxis"],function(b){if(j=a[b])za(j.series,a),j.isDirty=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(f=g.length;f--;)(h=g[f])&&h.destroy&&h.destroy();a.points=null;if(c&&c!==b.clipRect)a.clipRect= c.destroy();n("area,graph,dataLabelsGroup,group,tracker,trackerGroup".split(","),function(b){a[b]&&(e=d&&b==="group"?"hide":"destroy",a[b][e]())});if(b.hoverSeries===a)b.hoverSeries=null;za(b.series,a);for(i in a)delete a[i]},drawDataLabels:function(){var a=this,b=a.options,c=b.dataLabels;if(c.enabled||a._hasPointLabels){var d,e,f=a.points,g,h,i,j=a.dataLabelsGroup,k=a.chart,l=a.xAxis,l=l?l.left:k.plotLeft,m=a.yAxis,m=m?m.top:k.plotTop,p=k.renderer,q=k.inverted,u=a.type,r=b.stacking,y=u==="column"|| u==="bar",x=c.verticalAlign===null,w=c.y===null,v=p.fontMetrics(c.style.fontSize),H=v.h,J=v.b,K,z;y&&(v={top:J,middle:J-H/2,bottom:-H+J},r?(x&&(c=C(c,{verticalAlign:"middle"})),w&&(c=C(c,{y:v[c.verticalAlign]}))):x?c=C(c,{verticalAlign:"top"}):w&&(c=C(c,{y:v[c.verticalAlign]})));j?j.translate(l,m):j=a.dataLabelsGroup=p.g("data-labels").attr({visibility:a.visible?"visible":"hidden",zIndex:6}).translate(l,m).add();h=c;n(f,function(f){K=f.dataLabel;c=h;(g=f.options)&&g.dataLabels&&(c=C(c,g.dataLabels)); if(z=c.enabled){var l=f.barX&&f.barX+f.barW/2||o(f.plotX,-999),m=o(f.plotY,-999),n=c.y===null?f.y>=b.threshold?-H+J:J:c.y;d=(q?k.plotWidth-m:l)+c.x;e=t((q?k.plotHeight-l:m)+n)}if(K&&a.isCartesian&&(!k.isInsidePlot(d,e)||!z))f.dataLabel=K.destroy();else if(z){var l=c.align,v;i=c.formatter.call(f.getLabelConfig(),c);u==="column"&&(d+={left:-1,right:1}[l]*f.barW/2||0);!r&&q&&f.y<0&&(l="right",d-=10);c.style.color=o(c.color,c.style.color,a.color,"black");if(K)K.attr({text:i}).animate({x:d,y:e});else if(s(i)){l= {align:l,fill:c.backgroundColor,stroke:c.borderColor,"stroke-width":c.borderWidth,r:c.borderRadius||0,rotation:c.rotation,padding:c.padding,zIndex:1};for(v in l)l[v]===A&&delete l[v];K=f.dataLabel=p[c.rotation?"text":"label"](i,d,e,null,null,null,c.useHTML,!0).attr(l).css(c.style).add(j).shadow(c.shadow)}if(y&&b.stacking&&K)v=f.barX,l=f.barY,m=f.barW,f=f.barH,K.align(c,null,{x:q?k.plotWidth-l-f:v,y:q?k.plotHeight-v-m:l,width:q?f:m,height:q?m:f})}})}},getSegmentPath:function(a){var b=this,c=[];n(a, function(d,e){b.getPointSpline?c.push.apply(c,b.getPointSpline(a,d,e)):(c.push(e?"L":"M"),e&&b.options.step&&c.push(d.plotX,a[e-1].plotY),c.push(d.plotX,d.plotY))});return c},drawGraph:function(){var a=this,b=a.options,c=a.graph,d=[],e=a.group,f=b.lineColor||a.color,g=b.lineWidth,h=b.dashStyle,i,j=a.chart.renderer,k=[];n(a.segments,function(b){i=a.getSegmentPath(b);b.length>1?d=d.concat(i):k.push(b[0])});a.graphPath=d;a.singlePoints=k;if(c)Fa(c),c.animate({d:d});else if(g){c={stroke:f,"stroke-width":g}; if(h)c.dashstyle=h;a.graph=j.path(d).attr(c).add(e).shadow(b.shadow)}},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};c.attr(a).invert();d&&d.attr(a).invert()}var b=this,c=b.group,d=b.trackerGroup,e=b.chart;I(e,"resize",a);I(b,"destroy",function(){P(e,"resize",a)});a();b.invertGroups=a},createGroup:function(){var a=this.chart;(this.group=a.renderer.g("series")).attr({visibility:this.visible?"visible":"hidden",zIndex:this.options.zIndex}).translate(this.xAxis.left, this.yAxis.top).add(a.seriesGroup);this.createGroup=Sb},render:function(){var a=this,b=a.chart,c,d=a.options,e=d.clip!==!1,f=d.animation,f=(d=f&&a.animate)?f&&f.duration||500:0,g=a.clipRect,h=b.renderer;if(!g&&(g=a.clipRect=!b.hasRendered&&b.clipRect?b.clipRect:h.clipRect(0,0,b.plotSizeX,b.plotSizeY+1),!b.clipRect))b.clipRect=g;a.createGroup();c=a.group;a.drawDataLabels();d&&a.animate(!0);a.getAttribs();a.drawGraph&&a.drawGraph();a.drawPoints();a.options.enableMouseTracking!==!1&&a.drawTracker(); b.inverted&&a.invertGroups();e&&!a.hasRendered&&(c.clip(g),a.trackerGroup&&a.trackerGroup.clip(b.clipRect));d&&a.animate();setTimeout(function(){g.isAnimating=!1;if((c=a.group)&&g!==b.clipRect&&g.renderer){if(e)c.clip(a.clipRect=b.clipRect);g.destroy()}},f);a.isDirty=a.isDirtyData=!1;a.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirtyData,c=this.group;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:this.xAxis.left,translateY:this.yAxis.top})); this.translate();this.setTooltipPoints(!0);this.render();b&&E(this,"updatedData")},setState:function(a){var b=this.options,c=this.graph,d=b.states,b=b.lineWidth,a=a||"";if(this.state!==a)this.state=a,d[a]&&d[a].enabled===!1||(a&&(b=d[a].lineWidth||b+1),c&&!c.dashstyle&&c.attr({"stroke-width":b},a?0:500))},setVisible:function(a,b){var c=this.chart,d=this.legendItem,e=this.group,f=this.tracker,g=this.dataLabelsGroup,h,i=this.points,j=c.options.chart.ignoreHiddenSeries;h=this.visible;h=(this.visible= a=a===A?!h:a)?"show":"hide";if(e)e[h]();if(f)f[h]();else if(i)for(e=i.length;e--;)if(f=i[e],f.tracker)f.tracker[h]();if(g)g[h]();d&&c.legend.colorizeItem(this,a);this.isDirty=!0;this.options.stacking&&n(c.series,function(a){if(a.options.stacking&&a.visible)a.isDirty=!0});if(j)c.isDirtyBox=!0;b!==!1&&c.redraw();E(this,h)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===A?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;E(this, a?"select":"unselect")},drawTrackerGroup:function(){var a=this.trackerGroup,b=this.chart;if(this.isCartesian){if(!a)this.trackerGroup=a=b.renderer.g().attr({zIndex:this.options.zIndex||1}).add(b.trackerGroup);a.translate(this.xAxis.left,this.yAxis.top)}return a},drawTracker:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f=a.chart,g=f.renderer,h=f.options.tooltip.snap,i=a.tracker,j=b.cursor,j=j&&{cursor:j},k=a.singlePoints,l=a.drawTrackerGroup(), m;if(e&&!c)for(m=e+1;m--;)d[m]==="M"&&d.splice(m+1,0,d[m+1]-h,d[m+2],"L"),(m&&d[m]==="M"||m===e)&&d.splice(m,0,"L",d[m-2]+h,d[m-1]);for(m=0;m<k.length;m++)e=k[m],d.push("M",e.plotX-h,e.plotY,"L",e.plotX+h,e.plotY);i?i.attr({d:d}):a.tracker=g.path(d).attr({isTracker:!0,"stroke-linejoin":"bevel",visibility:a.visible?"visible":"hidden",stroke:tb,fill:c?tb:U,"stroke-width":b.lineWidth+(c?0:2*h)}).on(ea?"touchstart":"mouseover",function(){if(f.hoverSeries!==a)a.onMouseOver()}).on("mouseout",function(){if(!b.stickyTracking)a.onMouseOut()}).css(j).add(l)}}; G=ca(R);Y.line=G;Z.area=C(T,{threshold:0});G=ca(R,{type:"area",getSegmentPath:function(a){var b=R.prototype.getSegmentPath.call(this,a),c=[].concat(b),d,e=this.options;d=b.length;var f=this.yAxis.getThreshold(e.threshold);d===3&&c.push("L",b[1],b[2]);if(e.stacking&&this.type!=="areaspline")for(d=a.length-1;d>=0;d--)d<a.length-1&&e.step&&c.push(a[d+1].plotX,a[d].yBottom),c.push(a[d].plotX,a[d].yBottom);else c.push("L",a[a.length-1].plotX,f,"L",a[0].plotX,f);this.areaPath=this.areaPath.concat(c);return b}, drawGraph:function(){this.areaPath=[];R.prototype.drawGraph.apply(this);var a=this.areaPath,b=this.options,c=this.area;c?c.animate({d:a}):this.area=this.chart.renderer.path(a).attr({fill:o(b.fillColor,pa(this.color).setOpacity(b.fillOpacity||0.75).get())}).add(this.group)},drawLegendSymbol:function(a,b){b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,a.options.symbolWidth,12,2).attr({zIndex:3}).add(b.legendGroup)}});Y.area=G;Z.spline=C(T);ha=ca(R,{type:"spline",getPointSpline:function(a,b, c){var d=b.plotX,e=b.plotY,f=a[c-1],g=a[c+1],h,i,j,k;if(c&&c<a.length-1){a=f.plotY;j=g.plotX;var g=g.plotY,l;h=(1.5*d+f.plotX)/2.5;i=(1.5*e+a)/2.5;j=(1.5*d+j)/2.5;k=(1.5*e+g)/2.5;l=(k-i)*(j-d)/(j-h)+e-k;i+=l;k+=l;i>a&&i>e?(i=x(a,e),k=2*e-i):i<a&&i<e&&(i=O(a,e),k=2*e-i);k>g&&k>e?(k=x(g,e),i=2*e-k):k<g&&k<e&&(k=O(g,e),i=2*e-k);b.rightContX=j;b.rightContY=k}c?(b=["C",f.rightContX||f.plotX,f.rightContY||f.plotY,h||d,i||e,d,e],f.rightContX=f.rightContY=null):b=["M",d,e];return b}});Y.spline=ha;Z.areaspline= C(Z.area);var Ia=G.prototype,ha=ca(ha,{type:"areaspline",getSegmentPath:Ia.getSegmentPath,drawGraph:Ia.drawGraph});Y.areaspline=ha;Z.column=C(T,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:0.1,shadow:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{y:null,verticalAlign:null},threshold:0});ha=ca(R,{type:"column",tooltipOutsidePlot:!0,pointAttrToOptions:{stroke:"borderColor", "stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){R.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&n(b.series,function(b){if(b.type===a.type)b.isDirty=!0})},translate:function(){var a=this,b=a.chart,c=a.options,d=c.stacking,e=c.borderWidth,f=0,g=a.xAxis,h=g.reversed,i={},j,k;R.prototype.translate.apply(a);n(b.series,function(b){if(b.type===a.type&&b.visible&&a.options.group===b.options.group)b.options.stacking?(j=b.stackKey,i[j]===A&&(i[j]=f++), k=i[j]):k=f++,b.columnIndex=k});var l=a.points,g=M(g.transA)*(g.ordinalSlope||c.pointRange||g.closestPointRange||1),m=g*c.groupPadding,p=(g-2*m)/f,q=c.pointWidth,t=s(q)?(p-q)/2:p*c.pointPadding,r=o(q,p-2*t),y=wa(x(r,1+2*e)),w=t+(m+((h?f-a.columnIndex:a.columnIndex)||0)*p-g/2)*(h?-1:1),z=a.yAxis.getThreshold(c.threshold),v=o(c.minPointLength,5);n(l,function(c){var f=c.plotY,g=o(c.yBottom,z),h=c.plotX+w,i=wa(O(f,g)),j=wa(x(f,g)-i),k=a.yAxis.stacks[(c.y<0?"-":"")+a.stackKey];d&&a.visible&&k&&k[c.x]&& k[c.x].setOffset(w,y);M(j)<v&&v&&(j=v,i=M(i-z)>v?g-v:z-(f<=z?v:0));u(c,{barX:h,barY:i,barW:y,barH:j,pointWidth:r});c.shapeType="rect";c.shapeArgs=f=b.renderer.Element.prototype.crisp.call(0,e,h,i,y,j);e%2&&(f.y-=1,f.height+=1);c.trackerArgs=M(j)<3&&C(c.shapeArgs,{height:6,y:i-3})})},getSymbol:function(){},drawLegendSymbol:G.prototype.drawLegendSymbol,drawGraph:function(){},drawPoints:function(){var a=this,b=a.options,c=a.chart.renderer,d,e;n(a.points,function(f){var g=f.plotY;if(g!==A&&!isNaN(g)&& f.y!==null)d=f.graphic,e=f.shapeArgs,d?(Fa(d),d.animate(C(e))):f.graphic=d=c[f.shapeType](e).attr(f.pointAttr[f.selected?"select":""]).add(a.group).shadow(b.shadow,null,b.stacking&&!b.borderRadius)})},drawTracker:function(){var a=this,b=a.chart,c=b.renderer,d,e,f=+new Date,g=a.options,h=g.cursor,i=h&&{cursor:h},j=a.drawTrackerGroup(),k,l,m;n(a.points,function(h){e=h.tracker;d=h.trackerArgs||h.shapeArgs;l=h.plotY;m=!a.isCartesian||l!==A&&!isNaN(l);delete d.strokeWidth;if(h.y!==null&&m)e?e.attr(d): h.tracker=c[h.shapeType](d).attr({isTracker:f,fill:tb,visibility:a.visible?"visible":"hidden"}).on(ea?"touchstart":"mouseover",function(c){k=c.relatedTarget||c.fromElement;if(b.hoverSeries!==a&&z(k,"isTracker")!==f)a.onMouseOver();h.onMouseOver()}).on("mouseout",function(b){if(!g.stickyTracking&&(k=b.relatedTarget||b.toElement,z(k,"isTracker")!==f))a.onMouseOut()}).css(i).add(h.group||j)})},animate:function(a){var b=this,c=b.points,d=b.options;if(!a)n(c,function(a){var c=a.graphic,a=a.shapeArgs,g= b.yAxis,h=d.threshold;c&&(c.attr({height:0,y:s(h)?g.getThreshold(h):g.translate(g.getExtremes().min,0,1,0,1)}),c.animate({height:a.height,y:a.y},d.animation))}),b.animate=null},remove:function(){var a=this,b=a.chart;b.hasRendered&&n(b.series,function(b){if(b.type===a.type)b.isDirty=!0});R.prototype.remove.apply(a,arguments)}});Y.column=ha;Z.bar=C(Z.column,{dataLabels:{align:"left",x:5,y:null,verticalAlign:"middle"}});Ia=ca(ha,{type:"bar",inverted:!0});Y.bar=Ia;Z.scatter=C(T,{lineWidth:0,states:{hover:{lineWidth:0}}, tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});Ia=ca(R,{type:"scatter",sorted:!1,translate:function(){var a=this;R.prototype.translate.apply(a);n(a.points,function(b){b.shapeType="circle";b.shapeArgs={x:b.plotX,y:b.plotY,r:a.chart.options.tooltip.snap}})},drawTracker:function(){for(var a=this,b=a.options.cursor,b=b&&{cursor:b},c=a.points,d=c.length,e;d--;)if(e=c[d].graphic)e.element._i= d;a._hasTracking?a._hasTracking=!0:a.group.attr({isTracker:!0}).on(ea?"touchstart":"mouseover",function(b){a.onMouseOver();if(b.target._i!==A)c[b.target._i].onMouseOver()}).on("mouseout",function(){if(!a.options.stickyTracking)a.onMouseOut()}).css(b)}});Y.scatter=Ia;Z.pie=C(T,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:!1,slicedOffset:10, states:{hover:{brightness:0.1,shadow:!1}}});T={type:"pie",isCartesian:!1,pointClass:ca(Wa,{init:function(){Wa.prototype.init.apply(this,arguments);var a=this,b;u(a,{visible:a.visible!==!1,name:o(a.name,"Slice")});b=function(){a.slice()};I(a,"select",b);I(a,"unselect",b);return a},setVisible:function(a){var b=this.series.chart,c=this.tracker,d=this.dataLabel,e=this.connector,f=this.shadowGroup,g;g=(this.visible=a=a===A?!this.visible:a)?"show":"hide";this.group[g]();if(c)c[g]();if(d)d[g]();if(e)e[g](); if(f)f[g]();this.legendItem&&b.legend.colorizeItem(this,a)},slice:function(a,b,c){var d=this.series.chart,e=this.slicedTranslation;ua(c,d);o(b,!0);a=this.sliced=s(a)?a:!this.sliced;a={translateX:a?e[0]:d.plotLeft,translateY:a?e[1]:d.plotTop};this.group.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)}}),pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var a=this;n(a.points, function(b){var c=b.graphic,b=b.shapeArgs,d=-xa/2;c&&(c.attr({r:0,start:d,end:d}),c.animate({r:b.r,start:b.start,end:b.end},a.options.animation))});a.animate=null},setData:function(a,b){R.prototype.setData.call(this,a,!1);this.processData();this.generatePoints();o(b,!0)&&this.chart.redraw()},getCenter:function(){var a=this.options,b=this.chart,c=b.plotWidth,d=b.plotHeight,a=a.center.concat([a.size,a.innerSize||0]),e=O(c,d),f;return Ea(a,function(a,b){return(f=/%$/.test(a))?[c,d,e,e][b]*w(a)/100:a})}, translate:function(){this.generatePoints();var a=0,b=-0.25,c=this.options,d=c.slicedOffset,e=d+c.borderWidth,f,g=this.chart,h,i,j,k=this.points,l=2*xa,m,p,o,s=c.dataLabels.distance;this.center=f=this.getCenter();this.getX=function(a,b){j=L.asin((a-f[1])/(f[2]/2+s));return f[0]+(b?-1:1)*X(j)*(f[2]/2+s)};n(k,function(b){a+=b.y});n(k,function(c){m=a?c.y/a:0;h=t(b*l*1E3)/1E3;b+=m;i=t(b*l*1E3)/1E3;c.shapeType="arc";c.shapeArgs={x:f[0],y:f[1],r:f[2]/2,innerR:f[3]/2,start:h,end:i};j=(i+h)/2;c.slicedTranslation= Ea([X(j)*d+g.plotLeft,da(j)*d+g.plotTop],t);p=X(j)*f[2]/2;o=da(j)*f[2]/2;c.tooltipPos=[f[0]+p*0.7,f[1]+o*0.7];c.labelPos=[f[0]+p+X(j)*s,f[1]+o+da(j)*s,f[0]+p+X(j)*e,f[1]+o+da(j)*e,f[0]+p,f[1]+o,s<0?"center":j<l/4?"left":"right",j];c.percentage=m*100;c.total=a});this.setTooltipPoints()},render:function(){this.getAttribs();this.drawPoints();this.options.enableMouseTracking!==!1&&this.drawTracker();this.drawDataLabels();this.options.animation&&this.animate&&this.animate();this.isDirty=!1},drawPoints:function(){var a= this,b=a.chart,c=b.renderer,d,e,f,g=a.options.shadow,h,i;n(a.points,function(j){e=j.graphic;i=j.shapeArgs;f=j.group;h=j.shadowGroup;if(g&&!h)h=j.shadowGroup=c.g("shadow").attr({zIndex:4}).add();if(!f)f=j.group=c.g("point").attr({zIndex:5}).add();d=j.sliced?j.slicedTranslation:[b.plotLeft,b.plotTop];f.translate(d[0],d[1]);h&&h.translate(d[0],d[1]);e?e.animate(i):j.graphic=e=c.arc(i).setRadialReference(a.center).attr(u(j.pointAttr[""],{"stroke-linejoin":"round"})).add(j.group).shadow(g,h);j.visible=== !1&&j.setVisible(!1)})},drawDataLabels:function(){var a=this.data,b,c=this.chart,d=this.options.dataLabels,e=o(d.connectorPadding,10),f=o(d.connectorWidth,1),g,h,i=o(d.softConnector,!0),j=d.distance,k=this.center,l=k[2]/2,m=k[1],p=j>0,q=[[],[]],s,r,t,u,x=2,v;if(d.enabled){R.prototype.drawDataLabels.apply(this);n(a,function(a){a.dataLabel&&q[a.labelPos[7]<xa/2?0:1].push(a)});q[1].reverse();u=function(a,b){return b.y-a.y};for(a=q[0][0]&&q[0][0].dataLabel&&(q[0][0].dataLabel.getBBox().height||21);x--;){var w= [],C=[],z=q[x],A=z.length,B;if(j>0){for(v=m-l-j;v<=m+l+j;v+=a)w.push(v);t=w.length;if(A>t){h=[].concat(z);h.sort(u);for(v=A;v--;)h[v].rank=v;for(v=A;v--;)z[v].rank>=t&&z.splice(v,1);A=z.length}for(v=0;v<A;v++){b=z[v];h=b.labelPos;b=9999;for(r=0;r<t;r++)g=M(w[r]-h[1]),g<b&&(b=g,B=r);if(B<v&&w[v]!==null)B=v;else for(t<A-v+B&&w[v]!==null&&(B=t-A+v);w[B]===null;)B++;C.push({i:B,y:w[B]});w[B]=null}C.sort(u)}for(v=0;v<A;v++){b=z[v];h=b.labelPos;g=b.dataLabel;t=b.visible===!1?"hidden":"visible";s=h[1];if(j> 0){if(r=C.pop(),B=r.i,r=r.y,s>r&&w[B+1]!==null||s<r&&w[B-1]!==null)r=s}else r=s;s=d.justify?k[0]+(x?-1:1)*(l+j):this.getX(B===0||B===w.length-1?s:r,x);g.attr({visibility:t,align:h[6]})[g.moved?"animate":"attr"]({x:s+d.x+({left:e,right:-e}[h[6]]||0),y:r+d.y});g.moved=!0;if(p&&f)g=b.connector,h=i?["M",s+(h[6]==="left"?5:-5),r,"C",s,r,2*h[2]-h[4],2*h[3]-h[5],h[2],h[3],"L",h[4],h[5]]:["M",s+(h[6]==="left"?5:-5),r,"L",h[2],h[3],"L",h[4],h[5]],g?(g.animate({d:h}),g.attr("visibility",t)):b.connector=g=this.chart.renderer.path(h).attr({"stroke-width":f, stroke:d.connectorColor||b.color||"#606060",visibility:t,zIndex:3}).translate(c.plotLeft,c.plotTop).add()}}}},drawTracker:ha.prototype.drawTracker,drawLegendSymbol:G.prototype.drawLegendSymbol,getSymbol:function(){}};T=ca(R,T);Y.pie=T;u(Highcharts,{Axis:ob,CanVGRenderer:fb,Chart:rb,Color:pa,Legend:qb,Point:Wa,Tick:Sa,Tooltip:pb,Renderer:Ta,Series:R,SVGRenderer:qa,VMLRenderer:ka,dateFormat:db,pathAnim:Ua,getOptions:function(){return V},hasBidiBug:Rb,numberFormat:Xa,seriesTypes:Y,setOptions:function(a){V= C(V,a);Bb();return V},addEvent:I,removeEvent:P,createElement:S,discardElement:Qa,css:F,each:n,extend:u,map:Ea,merge:C,pick:o,splat:na,extendClass:ca,pInt:w,product:"Highcharts",version:"2.2.5"})})();
t27duck/fstats
public/highcharts.js
JavaScript
mit
118,411
// Backbone.Marionette, v0.9.11 // Copyright (c)2012 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license // http://github.com/derickbailey/backbone.marionette Backbone.Marionette = (function(Backbone, _, $){ var Marionette = {}; // EventBinder // ----------- // The event binder facilitates the binding and unbinding of events // from objects that extend `Backbone.Events`. It makes // unbinding events, even with anonymous callback functions, // easy. // // Inspired by [Johnny Oshika](http://stackoverflow.com/questions/7567404/backbone-js-repopulate-or-recreate-the-view/7607853#7607853) Marionette.EventBinder = function(){ this._eventBindings = []; }; _.extend(Marionette.EventBinder.prototype, { // Store the event binding in array so it can be unbound // easily, at a later point in time. bindTo: function (obj, eventName, callback, context) { context = context || this; obj.on(eventName, callback, context); var binding = { obj: obj, eventName: eventName, callback: callback, context: context }; this._eventBindings.push(binding); return binding; }, // Unbind from a single binding object. Binding objects are // returned from the `bindTo` method call. unbindFrom: function(binding){ binding.obj.off(binding.eventName, binding.callback, binding.context); this._eventBindings = _.reject(this._eventBindings, function(bind){return bind === binding;}); }, // Unbind all of the events that we have stored. unbindAll: function () { var that = this; // The `unbindFrom` call removes elements from the array // while it is being iterated, so clone it first. var bindings = _.map(this._eventBindings, _.identity); _.each(bindings, function (binding, index) { that.unbindFrom(binding); }); } }); // Copy the `extend` function used by Backbone's classes Marionette.EventBinder.extend = Backbone.View.extend; // Marionette.View // --------------- // The core view type that other Marionette views extend from. Marionette.View = Backbone.View.extend({ constructor: function(){ var eventBinder = new Marionette.EventBinder(); _.extend(this, eventBinder); Backbone.View.prototype.constructor.apply(this, arguments); this.bindTo(this, "show", this.onShowCalled, this); }, // Get the template for this view // instance. You can set a `template` attribute in the view // definition or pass a `template: "whatever"` parameter in // to the constructor options. getTemplate: function(){ var template; // Get the template from `this.options.template` or // `this.template`. The `options` takes precedence. if (this.options && this.options.template){ template = this.options.template; } else { template = this.template; } return template; }, // Serialize the model or collection for the view. If a model is // found, `.toJSON()` is called. If a collection is found, `.toJSON()` // is also called, but is used to populate an `items` array in the // resulting data. If both are found, defaults to the model. // You can override the `serializeData` method in your own view // definition, to provide custom serialization for your view's data. serializeData: function(){ var data; if (this.model) { data = this.model.toJSON(); } else if (this.collection) { data = { items: this.collection.toJSON() }; } data = this.mixinTemplateHelpers(data); return data; }, // Mix in template helper methods. Looks for a // `templateHelpers` attribute, which can either be an // object literal, or a function that returns an object // literal. All methods and attributes from this object // are copies to the object passed in. mixinTemplateHelpers: function(target){ target = target || {}; var templateHelpers = this.templateHelpers; if (_.isFunction(templateHelpers)){ templateHelpers = templateHelpers.call(this); } return _.extend(target, templateHelpers); }, // Configure `triggers` to forward DOM events to view // events. `triggers: {"click .foo": "do:foo"}` configureTriggers: function(){ if (!this.triggers) { return; } var triggers = this.triggers; var that = this; var triggerEvents = {}; // Allow `triggers` to be configured as a function if (_.isFunction(triggers)){ triggers = triggers.call(this); } // Configure the triggers, prevent default // action and stop propagation of DOM events _.each(triggers, function(value, key){ triggerEvents[key] = function(e){ if (e && e.preventDefault){ e.preventDefault(); } if (e && e.stopPropagation){ e.stopPropagation(); } that.trigger(value); }; }); return triggerEvents; }, // Overriding Backbone.View's delegateEvents specifically // to handle the `triggers` configuration delegateEvents: function(events){ events = events || this.events; if (_.isFunction(events)){ events = events.call(this); } var combinedEvents = {}; var triggers = this.configureTriggers(); _.extend(combinedEvents, events, triggers); Backbone.View.prototype.delegateEvents.call(this, combinedEvents); }, // Internal method, handles the `show` event. onShowCalled: function(){}, // Default `close` implementation, for removing a view from the // DOM and unbinding it. Regions will call this method // for you. You can specify an `onClose` method in your view to // add custom code that is called after the view is closed. close: function(){ if (this.beforeClose) { this.beforeClose(); } this.remove(); if (this.onClose) { this.onClose(); } this.trigger('close'); this.unbindAll(); this.unbind(); }, // This method binds the elements specified in the "ui" hash inside the view's code with // the associated jQuery selectors. bindUIElements: function(){ if (!this.ui) { return; } var that = this; if (!this.uiBindings) { // We want to store the ui hash in uiBindings, since afterwards the values in the ui hash // will be overridden with jQuery selectors. this.uiBindings = this.ui; } // refreshing the associated selectors since they should point to the newly rendered elements. this.ui = {}; _.each(_.keys(this.uiBindings), function(key) { var selector = that.uiBindings[key]; that.ui[key] = that.$(selector); }); } }); // Item View // --------- // A single item view implementation that contains code for rendering // with underscore.js templates, serializing the view's model or collection, // and calling several methods on extended views, such as `onRender`. Marionette.ItemView = Marionette.View.extend({ constructor: function(){ Marionette.View.prototype.constructor.apply(this, arguments); if (this.initialEvents){ this.initialEvents(); } }, // Render the view, defaulting to underscore.js templates. // You can override this in your view definition to provide // a very specific rendering for your view. In general, though, // you should override the `Marionette.Renderer` object to // change how Marionette renders views. render: function(){ if (this.beforeRender){ this.beforeRender(); } this.trigger("before:render", this); this.trigger("item:before:render", this); var data = this.serializeData(); var template = this.getTemplate(); var html = Marionette.Renderer.render(template, data); this.$el.html(html); this.bindUIElements(); if (this.onRender){ this.onRender(); } this.trigger("render", this); this.trigger("item:rendered", this); return this; }, // Override the default close event to add a few // more events that are triggered. close: function(){ this.trigger('item:before:close'); Marionette.View.prototype.close.apply(this, arguments); this.trigger('item:closed'); } }); // Collection View // --------------- // A view that iterates over a Backbone.Collection // and renders an individual ItemView for each model. Marionette.CollectionView = Marionette.View.extend({ constructor: function(){ Marionette.View.prototype.constructor.apply(this, arguments); this.initChildViewStorage(); this.initialEvents(); this.onShowCallbacks = new Marionette.Callbacks(); }, // Configured the initial events that the collection view // binds to. Override this method to prevent the initial // events, or to add your own initial events. initialEvents: function(){ if (this.collection){ this.bindTo(this.collection, "add", this.addChildView, this); this.bindTo(this.collection, "remove", this.removeItemView, this); this.bindTo(this.collection, "reset", this.render, this); } }, // Handle a child item added to the collection addChildView: function(item, collection, options){ this.closeEmptyView(); var ItemView = this.getItemView(); return this.addItemView(item, ItemView, options.index); }, // Override from `Marionette.View` to guarantee the `onShow` method // of child views is called. onShowCalled: function(){ this.onShowCallbacks.run(); }, // Internal method to trigger the before render callbacks // and events triggerBeforeRender: function(){ if (this.beforeRender) { this.beforeRender(); } this.trigger("before:render", this); this.trigger("collection:before:render", this); }, // Internal method to trigger the rendered callbacks and // events triggerRendered: function(){ if (this.onRender) { this.onRender(); } this.trigger("render", this); this.trigger("collection:rendered", this); }, // Render the collection of items. Override this method to // provide your own implementation of a render function for // the collection view. render: function(){ this.triggerBeforeRender(); this.closeEmptyView(); this.closeChildren(); if (this.collection && this.collection.length > 0) { this.showCollection(); } else { this.showEmptyView(); } this.triggerRendered(); return this; }, // Internal method to loop through each item in the // collection view and show it showCollection: function(){ var that = this; var ItemView = this.getItemView(); this.collection.each(function(item, index){ that.addItemView(item, ItemView, index); }); }, // Internal method to show an empty view in place of // a collection of item views, when the collection is // empty showEmptyView: function(){ var EmptyView = this.options.emptyView || this.emptyView; if (EmptyView && !this._showingEmptyView){ this._showingEmptyView = true; var model = new Backbone.Model(); this.addItemView(model, EmptyView, 0); } }, // Internal method to close an existing emptyView instance // if one exists. Called when a collection view has been // rendered empty, and then an item is added to the collection. closeEmptyView: function(){ if (this._showingEmptyView){ this.closeChildren(); delete this._showingEmptyView; } }, // Retrieve the itemView type, either from `this.options.itemView` // or from the `itemView` in the object definition. The "options" // takes precedence. getItemView: function(){ var itemView = this.options.itemView || this.itemView; if (!itemView){ var err = new Error("An `itemView` must be specified"); err.name = "NoItemViewError"; throw err; } return itemView; }, // Render the child item's view and add it to the // HTML for the collection view. addItemView: function(item, ItemView, index){ var that = this; var view = this.buildItemView(item, ItemView); // Store the child view itself so we can properly // remove and/or close it later this.storeChild(view); if (this.onItemAdded){ this.onItemAdded(view); } this.trigger("item:added", view); // Render it and show it var renderResult = this.renderItemView(view, index); // call onShow for child item views if (view.onShow){ this.onShowCallbacks.add(view.onShow, view); } // Forward all child item view events through the parent, // prepending "itemview:" to the event name var childBinding = this.bindTo(view, "all", function(){ var args = slice.call(arguments); args[0] = "itemview:" + args[0]; args.splice(1, 0, view); that.trigger.apply(that, args); }); // Store all child event bindings so we can unbind // them when removing / closing the child view this.childBindings = this.childBindings || {}; this.childBindings[view.cid] = childBinding; return renderResult; }, // render the item view renderItemView: function(view, index) { view.render(); this.appendHtml(this, view, index); }, // Build an `itemView` for every model in the collection. buildItemView: function(item, ItemView){ var itemViewOptions = _.result(this, "itemViewOptions"); var options = _.extend({model: item}, itemViewOptions); var view = new ItemView(options); return view; }, // Remove the child view and close it removeItemView: function(item){ var view = this.children[item.cid]; if (view){ var childBinding = this.childBindings[view.cid]; if (childBinding) { this.unbindFrom(childBinding); delete this.childBindings[view.cid]; } view.close(); delete this.children[item.cid]; } if (!this.collection || this.collection.length === 0){ this.showEmptyView(); } this.trigger("item:removed", view); }, // Append the HTML to the collection's `el`. // Override this method to do something other // then `.append`. appendHtml: function(collectionView, itemView, index){ collectionView.$el.append(itemView.el); }, // Store references to all of the child `itemView` // instances so they can be managed and cleaned up, later. storeChild: function(view){ this.children[view.model.cid] = view; }, // Internal method to set up the `children` object for // storing all of the child views initChildViewStorage: function(){ this.children = {}; }, // Handle cleanup and other closing needs for // the collection of views. close: function(){ this.trigger("collection:before:close"); this.closeChildren(); Marionette.View.prototype.close.apply(this, arguments); this.trigger("collection:closed"); }, // Close the child views that this collection view // is holding on to, if any closeChildren: function(){ var that = this; if (this.children){ _.each(_.clone(this.children), function(childView){ that.removeItemView(childView.model); }); } } }); // Composite View // -------------- // Used for rendering a branch-leaf, hierarchical structure. // Extends directly from CollectionView and also renders an // an item view as `modelView`, for the top leaf Marionette.CompositeView = Marionette.CollectionView.extend({ constructor: function(options){ Marionette.CollectionView.apply(this, arguments); this.itemView = this.getItemView(); }, // Configured the initial events that the composite view // binds to. Override this method to prevent the initial // events, or to add your own initial events. initialEvents: function(){ if (this.collection){ this.bindTo(this.collection, "add", this.addChildView, this); this.bindTo(this.collection, "remove", this.removeItemView, this); this.bindTo(this.collection, "reset", this.renderCollection, this); } }, // Retrieve the `itemView` to be used when rendering each of // the items in the collection. The default is to return // `this.itemView` or Marionette.CompositeView if no `itemView` // has been defined getItemView: function(){ return this.itemView || this.constructor; }, // Renders the model once, and the collection once. Calling // this again will tell the model's view to re-render itself // but the collection will not re-render. render: function(){ var that = this; this.resetItemViewContainer(); var html = this.renderModel(); this.$el.html(html); // the ui bindings is done here and not at the end of render since they should be // available before the collection is rendered. this.bindUIElements(); this.trigger("composite:model:rendered"); this.trigger("render"); this.renderCollection(); this.trigger("composite:rendered"); return this; }, // Render the collection for the composite view renderCollection: function(){ Marionette.CollectionView.prototype.render.apply(this, arguments); this.trigger("composite:collection:rendered"); }, // Render an individual model, if we have one, as // part of a composite view (branch / leaf). For example: // a treeview. renderModel: function(){ var data = {}; data = this.serializeData(); var template = this.getTemplate(); return Marionette.Renderer.render(template, data); }, // Appends the `el` of itemView instances to the specified // `itemViewContainer` (a jQuery selector). Override this method to // provide custom logic of how the child item view instances have their // HTML appended to the composite view instance. appendHtml: function(cv, iv){ var $container = this.getItemViewContainer(cv); $container.append(iv.el); }, // Internal method to ensure an `$itemViewContainer` exists, for the // `appendHtml` method to use. getItemViewContainer: function(containerView){ var container; if ("$itemViewContainer" in containerView){ container = containerView.$itemViewContainer; } else { if (containerView.itemViewContainer){ container = containerView.$(_.result(containerView, "itemViewContainer")); if (container.length <= 0) { var err = new Error("Missing `itemViewContainer`"); err.name = "ItemViewContainerMissingError"; throw err; } } else { container = containerView.$el; } containerView.$itemViewContainer = container; } return container; }, // Internal method to reset the `$itemViewContainer` on render resetItemViewContainer: function(){ if (this.$itemViewContainer){ delete this.$itemViewContainer; } } }); // Region // ------ // Manage the visual regions of your composite application. See // http://lostechies.com/derickbailey/2011/12/12/composite-js-apps-regions-and-region-managers/ Marionette.Region = function(options){ this.options = options || {}; var eventBinder = new Marionette.EventBinder(); _.extend(this, eventBinder, options); if (!this.el){ var err = new Error("An 'el' must be specified"); err.name = "NoElError"; throw err; } if (this.initialize){ this.initialize.apply(this, arguments); } }; _.extend(Marionette.Region.prototype, Backbone.Events, { // Displays a backbone view instance inside of the region. // Handles calling the `render` method for you. Reads content // directly from the `el` attribute. Also calls an optional // `onShow` and `close` method on your view, just after showing // or just before closing the view, respectively. show: function(view){ this.ensureEl(); this.close(); view.render(); this.open(view); if (view.onShow) { view.onShow(); } view.trigger("show"); if (this.onShow) { this.onShow(view); } this.trigger("view:show", view); this.currentView = view; }, ensureEl: function(){ if (!this.$el || this.$el.length === 0){ this.$el = this.getEl(this.el); } }, // Override this method to change how the region finds the // DOM element that it manages. Return a jQuery selector object. getEl: function(selector){ return $(selector); }, // Override this method to change how the new view is // appended to the `$el` that the region is managing open: function(view){ this.$el.html(view.el); }, // Close the current view, if there is one. If there is no // current view, it does nothing and returns immediately. close: function(){ var view = this.currentView; if (!view){ return; } if (view.close) { view.close(); } this.trigger("view:closed", view); delete this.currentView; }, // Attach an existing view to the region. This // will not call `render` or `onShow` for the new view, // and will not replace the current HTML for the `el` // of the region. attachView: function(view){ this.currentView = view; }, // Reset the region by closing any existing view and // clearing out the cached `$el`. The next time a view // is shown via this region, the region will re-query the // DOM for the region's `el`. reset: function(){ this.close(); delete this.$el; } }); // Copy the `extend` function used by Backbone's classes Marionette.Region.extend = Backbone.View.extend; // Layout // ------ // Used for managing application layouts, nested layouts and // multiple regions within an application or sub-application. // // A specialized view type that renders an area of HTML and then // attaches `Region` instances to the specified `regions`. // Used for composite view management and sub-application areas. Marionette.Layout = Marionette.ItemView.extend({ regionType: Marionette.Region, constructor: function () { Backbone.Marionette.ItemView.apply(this, arguments); this.initializeRegions(); }, // Layout's render will use the existing region objects the // first time it is called. Subsequent calls will close the // views that the regions are showing and then reset the `el` // for the regions to the newly rendered DOM elements. render: function(){ var result = Marionette.ItemView.prototype.render.apply(this, arguments); // Rewrite this function to handle re-rendering and // re-initializing the `el` for each region this.render = function(){ this.closeRegions(); this.reInitializeRegions(); var result = Marionette.ItemView.prototype.render.apply(this, arguments); return result; }; return result; }, // Handle closing regions, and then close the view itself. close: function () { this.closeRegions(); this.destroyRegions(); Backbone.Marionette.ItemView.prototype.close.call(this, arguments); }, // Initialize the regions that have been defined in a // `regions` attribute on this layout. The key of the // hash becomes an attribute on the layout object directly. // For example: `regions: { menu: ".menu-container" }` // will product a `layout.menu` object which is a region // that controls the `.menu-container` DOM element. initializeRegions: function () { if (!this.regionManagers){ this.regionManagers = {}; } var that = this; _.each(this.regions, function (region, name) { if ( typeof region != 'string' && typeof region.selector != 'string' ) { throw new Exception('Region must be specified as a selector ' + 'string or an object with selector property'); } var selector = typeof region === 'string' ? region : region.selector; var regionType = typeof region.regionType === 'undefined' ? that.regionType : region.regionType; var regionManager = new regionType({ el: selector, getEl: function(selector){ return that.$(selector); } }); that.regionManagers[name] = regionManager; that[name] = regionManager; }); }, // Re-initialize all of the regions by updating the `el` that // they point to reInitializeRegions: function(){ if (this.regionManagers && _.size(this.regionManagers)===0){ this.initializeRegions(); } else { _.each(this.regionManagers, function(region){ region.reset(); }); } }, // Close all of the regions that have been opened by // this layout. This method is called when the layout // itself is closed. closeRegions: function () { var that = this; _.each(this.regionManagers, function (manager, name) { manager.close(); }); }, // Destroys all of the regions by removing references // from the Layout destroyRegions: function(){ var that = this; _.each(this.regionManagers, function (manager, name) { delete that[name]; }); this.regionManagers = {}; } }); // Application // ----------- // Contain and manage the composite application as a whole. // Stores and starts up `Region` objects, includes an // event aggregator as `app.vent` Marionette.Application = function(options){ this.initCallbacks = new Marionette.Callbacks(); this.vent = new Marionette.EventAggregator(); this.submodules = {}; var eventBinder = new Marionette.EventBinder(); _.extend(this, eventBinder, options); }; _.extend(Marionette.Application.prototype, Backbone.Events, { // Add an initializer that is either run at when the `start` // method is called, or run immediately if added after `start` // has already been called. addInitializer: function(initializer){ this.initCallbacks.add(initializer); }, // kick off all of the application's processes. // initializes all of the regions that have been added // to the app, and runs all of the initializer functions start: function(options){ this.trigger("initialize:before", options); this.initCallbacks.run(options, this); this.trigger("initialize:after", options); this.trigger("start", options); }, // Add regions to your app. // Accepts a hash of named strings or Region objects // addRegions({something: "#someRegion"}) // addRegions{{something: Region.extend({el: "#someRegion"}) }); addRegions: function(regions){ var regionValue, regionObj, region; for(region in regions){ if (regions.hasOwnProperty(region)){ regionValue = regions[region]; if (typeof regionValue === "string"){ regionObj = new Marionette.Region({ el: regionValue }); } else { regionObj = new regionValue(); } this[region] = regionObj; } } }, // Removes a region from your app. // Accepts the regions name // removeRegion('myRegion') removeRegion: function(region) { this[region].close(); delete this[region]; }, // Create a module, attached to the application module: function(moduleNames, moduleDefinition){ // slice the args, and add this application object as the // first argument of the array var args = slice.call(arguments); args.unshift(this); // see the Marionette.Module object for more information return Marionette.Module.create.apply(Marionette.Module, args); } }); // Copy the `extend` function used by Backbone's classes Marionette.Application.extend = Backbone.View.extend; // AppRouter // --------- // Reduce the boilerplate code of handling route events // and then calling a single method on another object. // Have your routers configured to call the method on // your object, directly. // // Configure an AppRouter with `appRoutes`. // // App routers can only take one `controller` object. // It is recommended that you divide your controller // objects in to smaller peices of related functionality // and have multiple routers / controllers, instead of // just one giant router and controller. // // You can also add standard routes to an AppRouter. Marionette.AppRouter = Backbone.Router.extend({ constructor: function(options){ Backbone.Router.prototype.constructor.call(this, options); if (this.appRoutes){ var controller = this.controller; if (options && options.controller) { controller = options.controller; } this.processAppRoutes(controller, this.appRoutes); } }, // Internal method to process the `appRoutes` for the // router, and turn them in to routes that trigger the // specified method on the specified `controller`. processAppRoutes: function(controller, appRoutes){ var method, methodName; var route, routesLength, i; var routes = []; var router = this; for(route in appRoutes){ if (appRoutes.hasOwnProperty(route)){ routes.unshift([route, appRoutes[route]]); } } routesLength = routes.length; for (i = 0; i < routesLength; i++){ route = routes[i][0]; methodName = routes[i][1]; method = controller[methodName]; if (!method){ var msg = "Method '" + methodName + "' was not found on the controller"; var err = new Error(msg); err.name = "NoMethodError"; throw err; } method = _.bind(method, controller); router.route(route, methodName, method); } } }); // Module // ------ // A simple module system, used to create privacy and encapsulation in // Marionette applications Marionette.Module = function(moduleName, app, customArgs){ this.moduleName = moduleName; // store sub-modules this.submodules = {}; this._setupInitializersAndFinalizers(); // store the configuration for this module this._config = {}; this._config.app = app; this._config.customArgs = customArgs; this._config.definitions = []; // extend this module with an event binder var eventBinder = new Marionette.EventBinder(); _.extend(this, eventBinder); }; // Extend the Module prototype with events / bindTo, so that the module // can be used as an event aggregator or pub/sub. _.extend(Marionette.Module.prototype, Backbone.Events, { // Initializer for a specific module. Initializers are run when the // module's `start` method is called. addInitializer: function(callback){ this._initializerCallbacks.add(callback); }, // Finalizers are run when a module is stopped. They are used to teardown // and finalize any variables, references, events and other code that the // module had set up. addFinalizer: function(callback){ this._finalizerCallbacks.add(callback); }, // Start the module, and run all of it's initializers start: function(options){ // Prevent re-start the module if (this._isInitialized){ return; } this._runModuleDefinition(); this._initializerCallbacks.run(options, this); this._isInitialized = true; // start the sub-modules if (this.submodules){ _.each(this.submodules, function(mod){ mod.start(options); }); } }, // Stop this module by running its finalizers and then stop all of // the sub-modules for this module stop: function(){ // if we are not initialized, don't bother finalizing if (!this._isInitialized){ return; } this._isInitialized = false; // run the finalizers this._finalizerCallbacks.run(); // then reset the initializers and finalizers this._setupInitializersAndFinalizers(); // stop the sub-modules _.each(this.submodules, function(mod){ mod.stop(); }); }, // Configure the module with a definition function and any custom args // that are to be passed in to the definition function addDefinition: function(moduleDefinition){ this._config.definitions.push(moduleDefinition); }, // Internal method: run the module definition function with the correct // arguments _runModuleDefinition: function(){ if (this._config.definitions.length === 0) { return; } // build the correct list of arguments for the module definition var args = _.flatten([ this, this._config.app, Backbone, Marionette, $, _, this._config.customArgs ]); // run the module definition function with the correct args var definitionCount = this._config.definitions.length-1; for(var i=0; i <= definitionCount; i++){ var definition = this._config.definitions[i]; definition.apply(this, args); } }, // Internal method: set up new copies of initializers and finalizers. // Calling this method will wipe out all existing initializers and // finalizers. _setupInitializersAndFinalizers: function(){ this._initializerCallbacks = new Marionette.Callbacks(); this._finalizerCallbacks = new Marionette.Callbacks(); } }); // Function level methods to create modules _.extend(Marionette.Module, { // Create a module, hanging off the app parameter as the parent object. create: function(app, moduleNames, moduleDefinition){ var that = this; var parentModule = app; moduleNames = moduleNames.split("."); // get the custom args passed in after the module definition and // get rid of the module name and definition function var customArgs = slice.apply(arguments); customArgs.splice(0, 3); // Loop through all the parts of the module definition var length = moduleNames.length; _.each(moduleNames, function(moduleName, i){ var isLastModuleInChain = (i === length-1); // Get an existing module of this name if we have one var module = parentModule[moduleName]; if (!module){ // Create a new module if we don't have one module = new Marionette.Module(moduleName, app, customArgs); parentModule[moduleName] = module; // store the module on the parent parentModule.submodules[moduleName] = module; } // Only add a module definition and initializer when this is // the last module in a "parent.child.grandchild" hierarchy of // module names if (isLastModuleInChain ){ that._createModuleDefinition(module, moduleDefinition, app); } // Reset the parent module so that the next child // in the list will be added to the correct parent parentModule = module; }); // Return the last module in the definition chain return parentModule; }, _createModuleDefinition: function(module, moduleDefinition, app){ var moduleOptions = this._getModuleDefinitionOptions(moduleDefinition); // add the module definition if (moduleOptions.definition){ module.addDefinition(moduleOptions.definition); } if (moduleOptions.startWithApp){ // start the module when the app starts app.addInitializer(function(options){ module.start(options); }); } }, _getModuleDefinitionOptions: function(moduleDefinition){ // default to starting the module with the app var options = { startWithApp: true }; // short circuit if we don't have a module definition if (!moduleDefinition){ return options; } if (_.isFunction(moduleDefinition)){ // if the definition is a function, assign it directly // and use the defaults options.definition = moduleDefinition; } else { // the definition is an object. grab the "define" attribute // and the "startWithApp" attribute, as set the options // appropriately options.definition = moduleDefinition.define; if (moduleDefinition.hasOwnProperty("startWithApp")){ options.startWithApp = moduleDefinition.startWithApp; } } return options; } }); // Template Cache // -------------- // Manage templates stored in `<script>` blocks, // caching them for faster access. Marionette.TemplateCache = function(templateId){ this.templateId = templateId; }; // TemplateCache object-level methods. Manage the template // caches from these method calls instead of creating // your own TemplateCache instances _.extend(Marionette.TemplateCache, { templateCaches: {}, // Get the specified template by id. Either // retrieves the cached version, or loads it // from the DOM. get: function(templateId){ var that = this; var cachedTemplate = this.templateCaches[templateId]; if (!cachedTemplate){ cachedTemplate = new Marionette.TemplateCache(templateId); this.templateCaches[templateId] = cachedTemplate; } return cachedTemplate.load(); }, // Clear templates from the cache. If no arguments // are specified, clears all templates: // `clear()` // // If arguments are specified, clears each of the // specified templates from the cache: // `clear("#t1", "#t2", "...")` clear: function(){ var i; var length = arguments.length; if (length > 0){ for(i=0; i<length; i++){ delete this.templateCaches[arguments[i]]; } } else { this.templateCaches = {}; } } }); // TemplateCache instance methods, allowing each // template cache object to manage it's own state // and know whether or not it has been loaded _.extend(Marionette.TemplateCache.prototype, { // Internal method to load the template asynchronously. load: function(){ var that = this; // Guard clause to prevent loading this template more than once if (this.compiledTemplate){ return this.compiledTemplate; } // Load the template and compile it var template = this.loadTemplate(this.templateId); this.compiledTemplate = this.compileTemplate(template); return this.compiledTemplate; }, // Load a template from the DOM, by default. Override // this method to provide your own template retrieval, // such as asynchronous loading from a server. loadTemplate: function(templateId){ var template = $(templateId).html(); if (!template || template.length === 0){ var msg = "Could not find template: '" + templateId + "'"; var err = new Error(msg); err.name = "NoTemplateError"; throw err; } return template; }, // Pre-compile the template before caching it. Override // this method if you do not need to pre-compile a template // (JST / RequireJS for example) or if you want to change // the template engine used (Handebars, etc). compileTemplate: function(rawTemplate){ return _.template(rawTemplate); } }); // Renderer // -------- // Render a template with data by passing in the template // selector and the data to render. Marionette.Renderer = { // Render a template with data. The `template` parameter is // passed to the `TemplateCache` object to retrieve the // template function. Override this method to provide your own // custom rendering and template handling for all of Marionette. render: function(template, data){ var templateFunc = typeof template === 'function' ? template : Marionette.TemplateCache.get(template); var html = templateFunc(data); return html; } }; // Callbacks // --------- // A simple way of managing a collection of callbacks // and executing them at a later point in time, using jQuery's // `Deferred` object. Marionette.Callbacks = function(){ this.deferred = $.Deferred(); this.promise = this.deferred.promise(); }; _.extend(Marionette.Callbacks.prototype, { // Add a callback to be executed. Callbacks added here are // guaranteed to execute, even if they are added after the // `run` method is called. add: function(callback, contextOverride){ this.promise.done(function(context, options){ if (contextOverride){ context = contextOverride; } callback.call(context, options); }); }, // Run all registered callbacks with the context specified. // Additional callbacks can be added after this has been run // and they will still be executed. run: function(options, context){ this.deferred.resolve(context, options); } }); // Event Aggregator // ---------------- // A pub-sub object that can be used to decouple various parts // of an application through event-driven architecture. Marionette.EventAggregator = Marionette.EventBinder.extend({ // Extend any provided options directly on to the event binder constructor: function(options){ Marionette.EventBinder.apply(this, arguments); _.extend(this, options); }, // Override the `bindTo` method to ensure that the event aggregator // is used as the event binding storage bindTo: function(eventName, callback, context){ return Marionette.EventBinder.prototype.bindTo.call(this, this, eventName, callback, context); } }); // Copy the basic Backbone.Events on to the event aggregator _.extend(Marionette.EventAggregator.prototype, Backbone.Events); // Copy the `extend` function used by Backbone's classes Marionette.EventAggregator.extend = Backbone.View.extend; // Helpers // ------- // For slicing `arguments` in functions var slice = Array.prototype.slice; return Marionette; })(Backbone, _, window.jQuery || window.Zepto || window.ender);
urish/cdnjs
ajax/libs/backbone.marionette/0.9.11/backbone.marionette.js
JavaScript
mit
40,637
typeof JSON!="object"&&(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return typeof t=="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(e)),typeof rep=="function"&&(a=rep.call(t,e,a));switch(typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";gap+=indent,u=[];if(Object.prototype.toString.apply(a)==="[object Array]"){s=a.length;for(n=0;n<s;n+=1)u[n]=str(n,a)||"null";return i=u.length===0?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+o+"]":"["+u.join(",")+"]",gap=o,i}if(rep&&typeof rep=="object"){s=rep.length;for(n=0;n<s;n+=1)typeof rep[n]=="string"&&(r=rep[n],i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i))}else for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i));return i=u.length===0?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}",gap=o,i}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(e,t,n){var r;gap="",indent="";if(typeof n=="number")for(r=0;r<n;r+=1)indent+=" ";else typeof n=="string"&&(indent=n);rep=t;if(!t||typeof t=="function"||typeof t=="object"&&typeof t.length=="number")return str("",{"":e});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i=="object")for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r=walk(i,n),r!==undefined?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(e,t){"use strict";var n=e.History=e.History||{},r=e.MooTools,i=e.Element;if(typeof n.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");Object.append(i.NativeEvents,{popstate:2,hashchange:2}),n.Adapter={bind:function(e,t,n){var r=typeof e=="string"?document.id(e):e;r.addEvent(t,n)},trigger:function(e,t,n){var r=typeof e=="string"?document.id(e):e;r.fireEvent(t,n)},extractEventData:function(e,n){var r=n&&n.event&&n.event[e]||n&&n[e]||t;return r},onDomLoad:function(t){e.addEvent("domready",t)}},typeof n.init!="undefined"&&n.init()}(window),function(e,t){"use strict";var n=e.document,r=e.setTimeout||r,i=e.clearTimeout||i,s=e.setInterval||s,o=e.History=e.History||{};if(typeof o.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");o.initHtml4=function(){if(typeof o.initHtml4.initialized!="undefined")return!1;o.initHtml4.initialized=!0,o.enabled=!0,o.savedHashes=[],o.isLastHash=function(e){var t=o.getHashByIndex(),n;return n=e===t,n},o.isHashEqual=function(e,t){return e=encodeURIComponent(e).replace(/%25/g,"%"),t=encodeURIComponent(t).replace(/%25/g,"%"),e===t},o.saveHash=function(e){return o.isLastHash(e)?!1:(o.savedHashes.push(e),!0)},o.getHashByIndex=function(e){var t=null;return typeof e=="undefined"?t=o.savedHashes[o.savedHashes.length-1]:e<0?t=o.savedHashes[o.savedHashes.length+e]:t=o.savedHashes[e],t},o.discardedHashes={},o.discardedStates={},o.discardState=function(e,t,n){var r=o.getHashByState(e),i;return i={discardedState:e,backState:n,forwardState:t},o.discardedStates[r]=i,!0},o.discardHash=function(e,t,n){var r={discardedHash:e,backState:n,forwardState:t};return o.discardedHashes[e]=r,!0},o.discardedState=function(e){var t=o.getHashByState(e),n;return n=o.discardedStates[t]||!1,n},o.discardedHash=function(e){var t=o.discardedHashes[e]||!1;return t},o.recycleState=function(e){var t=o.getHashByState(e);return o.discardedState(e)&&delete o.discardedStates[t],!0},o.emulated.hashChange&&(o.hashChangeInit=function(){o.checkerFunction=null;var t="",r,i,u,a,f=Boolean(o.getHash());return o.isInternetExplorer()?(r="historyjs-iframe",i=n.createElement("iframe"),i.setAttribute("id",r),i.setAttribute("src","#"),i.style.display="none",n.body.appendChild(i),i.contentWindow.document.open(),i.contentWindow.document.close(),u="",a=!1,o.checkerFunction=function(){if(a)return!1;a=!0;var n=o.getHash(),r=o.getHash(i.contentWindow.document);return n!==t?(t=n,r!==n&&(u=r=n,i.contentWindow.document.open(),i.contentWindow.document.close(),i.contentWindow.document.location.hash=o.escapeHash(n)),o.Adapter.trigger(e,"hashchange")):r!==u&&(u=r,f&&r===""?o.back():o.setHash(r,!1)),a=!1,!0}):o.checkerFunction=function(){var n=o.getHash()||"";return n!==t&&(t=n,o.Adapter.trigger(e,"hashchange")),!0},o.intervalList.push(s(o.checkerFunction,o.options.hashChangeInterval)),!0},o.Adapter.onDomLoad(o.hashChangeInit)),o.emulated.pushState&&(o.onHashChange=function(t){var n=t&&t.newURL||o.getLocationHref(),r=o.getHashByUrl(n),i=null,s=null,u=null,a;return o.isLastHash(r)?(o.busy(!1),!1):(o.doubleCheckComplete(),o.saveHash(r),r&&o.isTraditionalAnchor(r)?(o.Adapter.trigger(e,"anchorchange"),o.busy(!1),!1):(i=o.extractState(o.getFullUrl(r||o.getLocationHref()),!0),o.isLastSavedState(i)?(o.busy(!1),!1):(s=o.getHashByState(i),a=o.discardedState(i),a?(o.getHashByIndex(-2)===o.getHashByState(a.forwardState)?o.back(!1):o.forward(!1),!1):(o.pushState(i.data,i.title,encodeURI(i.url),!1),!0))))},o.Adapter.bind(e,"hashchange",o.onHashChange),o.pushState=function(t,n,r,i){r=encodeURI(r).replace(/%25/g,"%");if(o.getHashByUrl(r))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(i!==!1&&o.busy())return o.pushQueue({scope:o,callback:o.pushState,args:arguments,queue:i}),!1;o.busy(!0);var s=o.createStateObject(t,n,r),u=o.getHashByState(s),a=o.getState(!1),f=o.getHashByState(a),l=o.getHash(),c=o.expectedStateId==s.id;return o.storeState(s),o.expectedStateId=s.id,o.recycleState(s),o.setTitle(s),u===f?(o.busy(!1),!1):(o.saveState(s),c||o.Adapter.trigger(e,"statechange"),!o.isHashEqual(u,l)&&!o.isHashEqual(u,o.getShortUrl(o.getLocationHref()))&&o.setHash(u,!1),o.busy(!1),!0)},o.replaceState=function(t,n,r,i){r=encodeURI(r).replace(/%25/g,"%");if(o.getHashByUrl(r))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(i!==!1&&o.busy())return o.pushQueue({scope:o,callback:o.replaceState,args:arguments,queue:i}),!1;o.busy(!0);var s=o.createStateObject(t,n,r),u=o.getHashByState(s),a=o.getState(!1),f=o.getHashByState(a),l=o.getStateByIndex(-2);return o.discardState(a,s,l),u===f?(o.storeState(s),o.expectedStateId=s.id,o.recycleState(s),o.setTitle(s),o.saveState(s),o.Adapter.trigger(e,"statechange"),o.busy(!1)):o.pushState(s.data,s.title,s.url,!1),!0}),o.emulated.pushState&&o.getHash()&&!o.emulated.hashChange&&o.Adapter.onDomLoad(function(){o.Adapter.trigger(e,"hashchange")})},typeof o.init!="undefined"&&o.init()}(window),function(e,t){"use strict";var n=e.console||t,r=e.document,i=e.navigator,s=e.sessionStorage||!1,o=e.setTimeout,u=e.clearTimeout,a=e.setInterval,f=e.clearInterval,l=e.JSON,c=e.alert,h=e.History=e.History||{},p=e.history;try{s.setItem("TEST","1"),s.removeItem("TEST")}catch(d){s=!1}l.stringify=l.stringify||l.encode,l.parse=l.parse||l.decode;if(typeof h.init!="undefined")throw new Error("History.js Core has already been loaded...");h.init=function(e){return typeof h.Adapter=="undefined"?!1:(typeof h.initCore!="undefined"&&h.initCore(),typeof h.initHtml4!="undefined"&&h.initHtml4(),!0)},h.initCore=function(d){if(typeof h.initCore.initialized!="undefined")return!1;h.initCore.initialized=!0,h.options=h.options||{},h.options.hashChangeInterval=h.options.hashChangeInterval||100,h.options.safariPollInterval=h.options.safariPollInterval||500,h.options.doubleCheckInterval=h.options.doubleCheckInterval||500,h.options.disableSuid=h.options.disableSuid||!1,h.options.storeInterval=h.options.storeInterval||1e3,h.options.busyDelay=h.options.busyDelay||250,h.options.debug=h.options.debug||!1,h.options.initialTitle=h.options.initialTitle||r.title,h.options.html4Mode=h.options.html4Mode||!1,h.options.delayInit=h.options.delayInit||!1,h.intervalList=[],h.clearAllIntervals=function(){var e,t=h.intervalList;if(typeof t!="undefined"&&t!==null){for(e=0;e<t.length;e++)f(t[e]);h.intervalList=null}},h.debug=function(){(h.options.debug||!1)&&h.log.apply(h,arguments)},h.log=function(){var e=typeof n!="undefined"&&typeof n.log!="undefined"&&typeof n.log.apply!="undefined",t=r.getElementById("log"),i,s,o,u,a;e?(u=Array.prototype.slice.call(arguments),i=u.shift(),typeof n.debug!="undefined"?n.debug.apply(n,[i,u]):n.log.apply(n,[i,u])):i="\n"+arguments[0]+"\n";for(s=1,o=arguments.length;s<o;++s){a=arguments[s];if(typeof a=="object"&&typeof l!="undefined")try{a=l.stringify(a)}catch(f){}i+="\n"+a+"\n"}return t?(t.value+=i+"\n-----\n",t.scrollTop=t.scrollHeight-t.clientHeight):e||c(i),!0},h.getInternetExplorerMajorVersion=function(){var e=h.getInternetExplorerMajorVersion.cached=typeof h.getInternetExplorerMajorVersion.cached!="undefined"?h.getInternetExplorerMajorVersion.cached:function(){var e=3,t=r.createElement("div"),n=t.getElementsByTagName("i");while((t.innerHTML="<!--[if gt IE "+ ++e+"]><i></i><![endif]-->")&&n[0]);return e>4?e:!1}();return e},h.isInternetExplorer=function(){var e=h.isInternetExplorer.cached=typeof h.isInternetExplorer.cached!="undefined"?h.isInternetExplorer.cached:Boolean(h.getInternetExplorerMajorVersion());return e},h.options.html4Mode?h.emulated={pushState:!0,hashChange:!0}:h.emulated={pushState:!Boolean(e.history&&e.history.pushState&&e.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(i.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(i.userAgent)),hashChange:Boolean(!("onhashchange"in e||"onhashchange"in r)||h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8)},h.enabled=!h.emulated.pushState,h.bugs={setHash:Boolean(!h.emulated.pushState&&i.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),safariPoll:Boolean(!h.emulated.pushState&&i.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),ieDoubleCheck:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<7)},h.isEmptyObject=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},h.cloneObject=function(e){var t,n;return e?(t=l.stringify(e),n=l.parse(t)):n={},n},h.getRootUrl=function(){var e=r.location.protocol+"//"+(r.location.hostname||r.location.host);if(r.location.port||!1)e+=":"+r.location.port;return e+="/",e},h.getBaseHref=function(){var e=r.getElementsByTagName("base"),t=null,n="";return e.length===1&&(t=e[0],n=t.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},h.getBaseUrl=function(){var e=h.getBaseHref()||h.getBasePageUrl()||h.getRootUrl();return e},h.getPageUrl=function(){var e=h.getState(!1,!1),t=(e||{}).url||h.getLocationHref(),n;return n=t.replace(/\/+$/,"").replace(/[^\/]+$/,function(e,t,n){return/\./.test(e)?e:e+"/"}),n},h.getBasePageUrl=function(){var e=h.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(e,t,n){return/[^\/]$/.test(e)?"":e}).replace(/\/+$/,"")+"/";return e},h.getFullUrl=function(e,t){var n=e,r=e.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(e)||(r==="/"?n=h.getRootUrl()+e.replace(/^\/+/,""):r==="#"?n=h.getPageUrl().replace(/#.*/,"")+e:r==="?"?n=h.getPageUrl().replace(/[\?#].*/,"")+e:t?n=h.getBaseUrl()+e.replace(/^(\.\/)+/,""):n=h.getBasePageUrl()+e.replace(/^(\.\/)+/,"")),n.replace(/\#$/,"")},h.getShortUrl=function(e){var t=e,n=h.getBaseUrl(),r=h.getRootUrl();return h.emulated.pushState&&(t=t.replace(n,"")),t=t.replace(r,"/"),h.isTraditionalAnchor(t)&&(t="./"+t),t=t.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),t},h.getLocationHref=function(e){return e=e||r,e.URL===e.location.href?e.location.href:e.location.href===decodeURIComponent(e.URL)?e.URL:e.location.hash&&decodeURIComponent(e.location.href.replace(/^[^#]+/,""))===e.location.hash?e.location.href:e.URL.indexOf("#")==-1&&e.location.href.indexOf("#")!=-1?e.location.href:e.URL||e.location.href},h.store={},h.idToState=h.idToState||{},h.stateToId=h.stateToId||{},h.urlToId=h.urlToId||{},h.storedStates=h.storedStates||[],h.savedStates=h.savedStates||[],h.normalizeStore=function(){h.store.idToState=h.store.idToState||{},h.store.urlToId=h.store.urlToId||{},h.store.stateToId=h.store.stateToId||{}},h.getState=function(e,t){typeof e=="undefined"&&(e=!0),typeof t=="undefined"&&(t=!0);var n=h.getLastSavedState();return!n&&t&&(n=h.createStateObject()),e&&(n=h.cloneObject(n),n.url=n.cleanUrl||n.url),n},h.getIdByState=function(e){var t=h.extractId(e.url),n;if(!t){n=h.getStateString(e);if(typeof h.stateToId[n]!="undefined")t=h.stateToId[n];else if(typeof h.store.stateToId[n]!="undefined")t=h.store.stateToId[n];else{for(;;){t=(new Date).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof h.idToState[t]=="undefined"&&typeof h.store.idToState[t]=="undefined")break}h.stateToId[n]=t,h.idToState[t]=e}}return t},h.normalizeState=function(e){var t,n;if(!e||typeof e!="object")e={};if(typeof e.normalized!="undefined")return e;if(!e.data||typeof e.data!="object")e.data={};return t={},t.normalized=!0,t.title=e.title||"",t.url=h.getFullUrl(e.url?e.url:h.getLocationHref()),t.hash=h.getShortUrl(t.url),t.data=h.cloneObject(e.data),t.id=h.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,n=!h.isEmptyObject(t.data),(t.title||n)&&h.options.disableSuid!==!0&&(t.hash=h.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=h.getFullUrl(t.hash),(h.emulated.pushState||h.bugs.safariPoll)&&h.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t},h.createStateObject=function(e,t,n){var r={data:e,title:t,url:n};return r=h.normalizeState(r),r},h.getStateById=function(e){e=String(e);var n=h.idToState[e]||h.store.idToState[e]||t;return n},h.getStateString=function(e){var t,n,r;return t=h.normalizeState(e),n={data:t.data,title:e.title,url:e.url},r=l.stringify(n),r},h.getStateId=function(e){var t,n;return t=h.normalizeState(e),n=t.id,n},h.getHashByState=function(e){var t,n;return t=h.normalizeState(e),n=t.hash,n},h.extractId=function(e){var t,n,r,i;return e.indexOf("#")!=-1?i=e.split("#")[0]:i=e,n=/(.*)\&_suid=([0-9]+)$/.exec(i),r=n?n[1]||e:e,t=n?String(n[2]||""):"",t||!1},h.isTraditionalAnchor=function(e){var t=!/[\/\?\.]/.test(e);return t},h.extractState=function(e,t){var n=null,r,i;return t=t||!1,r=h.extractId(e),r&&(n=h.getStateById(r)),n||(i=h.getFullUrl(e),r=h.getIdByUrl(i)||!1,r&&(n=h.getStateById(r)),!n&&t&&!h.isTraditionalAnchor(e)&&(n=h.createStateObject(null,null,i))),n},h.getIdByUrl=function(e){var n=h.urlToId[e]||h.store.urlToId[e]||t;return n},h.getLastSavedState=function(){return h.savedStates[h.savedStates.length-1]||t},h.getLastStoredState=function(){return h.storedStates[h.storedStates.length-1]||t},h.hasUrlDuplicate=function(e){var t=!1,n;return n=h.extractState(e.url),t=n&&n.id!==e.id,t},h.storeState=function(e){return h.urlToId[e.url]=e.id,h.storedStates.push(h.cloneObject(e)),e},h.isLastSavedState=function(e){var t=!1,n,r,i;return h.savedStates.length&&(n=e.id,r=h.getLastSavedState(),i=r.id,t=n===i),t},h.saveState=function(e){return h.isLastSavedState(e)?!1:(h.savedStates.push(h.cloneObject(e)),!0)},h.getStateByIndex=function(e){var t=null;return typeof e=="undefined"?t=h.savedStates[h.savedStates.length-1]:e<0?t=h.savedStates[h.savedStates.length+e]:t=h.savedStates[e],t},h.getCurrentIndex=function(){var e=null;return h.savedStates.length<1?e=0:e=h.savedStates.length-1,e},h.getHash=function(e){var t=h.getLocationHref(e),n;return n=h.getHashByUrl(t),n},h.unescapeHash=function(e){var t=h.normalizeHash(e);return t=decodeURIComponent(t),t},h.normalizeHash=function(e){var t=e.replace(/[^#]*#/,"").replace(/#.*/,"");return t},h.setHash=function(e,t){var n,i;return t!==!1&&h.busy()?(h.pushQueue({scope:h,callback:h.setHash,args:arguments,queue:t}),!1):(h.busy(!0),n=h.extractState(e,!0),n&&!h.emulated.pushState?h.pushState(n.data,n.title,n.url,!1):h.getHash()!==e&&(h.bugs.setHash?(i=h.getPageUrl(),h.pushState(null,null,i+"#"+e,!1)):r.location.hash=e),h)},h.escapeHash=function(t){var n=h.normalizeHash(t);return n=e.encodeURIComponent(n),h.bugs.hashEscape||(n=n.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),n},h.getHashByUrl=function(e){var t=String(e).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return t=h.unescapeHash(t),t},h.setTitle=function(e){var t=e.title,n;t||(n=h.getStateByIndex(0),n&&n.url===e.url&&(t=n.title||h.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=t.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(i){}return r.title=t,h},h.queues=[],h.busy=function(e){typeof e!="undefined"?h.busy.flag=e:typeof h.busy.flag=="undefined"&&(h.busy.flag=!1);if(!h.busy.flag){u(h.busy.timeout);var t=function(){var e,n,r;if(h.busy.flag)return;for(e=h.queues.length-1;e>=0;--e){n=h.queues[e];if(n.length===0)continue;r=n.shift(),h.fireQueueItem(r),h.busy.timeout=o(t,h.options.busyDelay)}};h.busy.timeout=o(t,h.options.busyDelay)}return h.busy.flag},h.busy.flag=!1,h.fireQueueItem=function(e){return e.callback.apply(e.scope||h,e.args||[])},h.pushQueue=function(e){return h.queues[e.queue||0]=h.queues[e.queue||0]||[],h.queues[e.queue||0].push(e),h},h.queue=function(e,t){return typeof e=="function"&&(e={callback:e}),typeof t!="undefined"&&(e.queue=t),h.busy()?h.pushQueue(e):h.fireQueueItem(e),h},h.clearQueue=function(){return h.busy.flag=!1,h.queues=[],h},h.stateChanged=!1,h.doubleChecker=!1,h.doubleCheckComplete=function(){return h.stateChanged=!0,h.doubleCheckClear(),h},h.doubleCheckClear=function(){return h.doubleChecker&&(u(h.doubleChecker),h.doubleChecker=!1),h},h.doubleCheck=function(e){return h.stateChanged=!1,h.doubleCheckClear(),h.bugs.ieDoubleCheck&&(h.doubleChecker=o(function(){return h.doubleCheckClear(),h.stateChanged||e(),!0},h.options.doubleCheckInterval)),h},h.safariStatePoll=function(){var t=h.extractState(h.getLocationHref()),n;if(!h.isLastSavedState(t))return n=t,n||(n=h.createStateObject()),h.Adapter.trigger(e,"popstate"),h;return},h.back=function(e){return e!==!1&&h.busy()?(h.pushQueue({scope:h,callback:h.back,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.back(!1)}),p.go(-1),!0)},h.forward=function(e){return e!==!1&&h.busy()?(h.pushQueue({scope:h,callback:h.forward,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.forward(!1)}),p.go(1),!0)},h.go=function(e,t){var n;if(e>0)for(n=1;n<=e;++n)h.forward(t);else{if(!(e<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(n=-1;n>=e;--n)h.back(t)}return h};if(h.emulated.pushState){var v=function(){};h.pushState=h.pushState||v,h.replaceState=h.replaceState||v}else h.onPopState=function(t,n){var r=!1,i=!1,s,o;return h.doubleCheckComplete(),s=h.getHash(),s?(o=h.extractState(s||h.getLocationHref(),!0),o?h.replaceState(o.data,o.title,o.url,!1):(h.Adapter.trigger(e,"anchorchange"),h.busy(!1)),h.expectedStateId=!1,!1):(r=h.Adapter.extractEventData("state",t,n)||!1,r?i=h.getStateById(r):h.expectedStateId?i=h.getStateById(h.expectedStateId):i=h.extractState(h.getLocationHref()),i||(i=h.createStateObject(null,null,h.getLocationHref())),h.expectedStateId=!1,h.isLastSavedState(i)?(h.busy(!1),!1):(h.storeState(i),h.saveState(i),h.setTitle(i),h.Adapter.trigger(e,"statechange"),h.busy(!1),!0))},h.Adapter.bind(e,"popstate",h.onPopState),h.pushState=function(t,n,r,i){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(i!==!1&&h.busy())return h.pushQueue({scope:h,callback:h.pushState,args:arguments,queue:i}),!1;h.busy(!0);var s=h.createStateObject(t,n,r);return h.isLastSavedState(s)?h.busy(!1):(h.storeState(s),h.expectedStateId=s.id,p.pushState(s.id,s.title,s.url),h.Adapter.trigger(e,"popstate")),!0},h.replaceState=function(t,n,r,i){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(i!==!1&&h.busy())return h.pushQueue({scope:h,callback:h.replaceState,args:arguments,queue:i}),!1;h.busy(!0);var s=h.createStateObject(t,n,r);return h.isLastSavedState(s)?h.busy(!1):(h.storeState(s),h.expectedStateId=s.id,p.replaceState(s.id,s.title,s.url),h.Adapter.trigger(e,"popstate")),!0};if(s){try{h.store=l.parse(s.getItem("History.store"))||{}}catch(m){h.store={}}h.normalizeStore()}else h.store={},h.normalizeStore();h.Adapter.bind(e,"unload",h.clearAllIntervals),h.saveState(h.storeState(h.extractState(h.getLocationHref(),!0))),s&&(h.onUnload=function(){var e,t,n;try{e=l.parse(s.getItem("History.store"))||{}}catch(r){e={}}e.idToState=e.idToState||{},e.urlToId=e.urlToId||{},e.stateToId=e.stateToId||{};for(t in h.idToState){if(!h.idToState.hasOwnProperty(t))continue;e.idToState[t]=h.idToState[t]}for(t in h.urlToId){if(!h.urlToId.hasOwnProperty(t))continue;e.urlToId[t]=h.urlToId[t]}for(t in h.stateToId){if(!h.stateToId.hasOwnProperty(t))continue;e.stateToId[t]=h.stateToId[t]}h.store=e,h.normalizeStore(),n=l.stringify(e);try{s.setItem("History.store",n)}catch(i){if(i.code!==DOMException.QUOTA_EXCEEDED_ERR)throw i;s.length&&(s.removeItem("History.store"),s.setItem("History.store",n))}},h.intervalList.push(a(h.onUnload,h.options.storeInterval)),h.Adapter.bind(e,"beforeunload",h.onUnload),h.Adapter.bind(e,"unload",h.onUnload));if(!h.emulated.pushState){h.bugs.safariPoll&&h.intervalList.push(a(h.safariStatePoll,h.options.safariPollInterval));if(i.vendor==="Apple Computer, Inc."||(i.appCodeName||"")==="Mozilla")h.Adapter.bind(e,"hashchange",function(){h.Adapter.trigger(e,"popstate")}),h.getHash()&&h.Adapter.onDomLoad(function(){h.Adapter.trigger(e,"hashchange")})}},(!h.options||!h.options.delayInit)&&h.init()}(window)
ThibWeb/cdnjs
ajax/libs/history.js/1.8/bundled/html4+html5/mootools.history.js
JavaScript
mit
23,083
define( "dojo/cldr/nls/nb/hebrew", //begin v1.x content { "days-standAlone-short": [ "sø.", "ma.", "ti.", "on.", "to.", "fr.", "lø." ], "field-second-relative+0": "nå", "field-weekday": "Ukedag", "field-wed-relative+0": "onsdag denne uken", "field-wed-relative+1": "onsdag neste uke", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", "field-tue-relative+-1": "tirsdag sist uke", "days-format-short": [ "sø.", "ma.", "ti.", "on.", "to.", "fr.", "lø." ], "dateFormat-long": "d. MMMM y G", "field-fri-relative+-1": "fredag sist uke", "field-wed-relative+-1": "onsdag sist uke", "dateFormatItem-yyyyQQQ": "QQQ y G", "dayPeriods-format-wide-pm": "p.m.", "dateFormat-full": "EEEE d. MMMM y G", "dateFormatItem-yyyyMEd": "E d.M.y G", "field-thu-relative+-1": "torsdag sist uke", "dateFormatItem-Md": "d.M.", "dayPeriods-format-abbr-am": "a.m.", "field-era": "Tidsalder", "timeFormat-short": "HH.mm", "quarters-format-wide": [ "1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal" ], "timeFormat-long": "HH.mm.ss z", "field-year": "År", "field-hour": "Time", "field-sat-relative+0": "lørdag denne uken", "field-sat-relative+1": "lørdag neste uke", "timeFormat-full": "HH.mm.ss zzzz", "field-day-relative+0": "i dag", "field-thu-relative+0": "torsdag denne uken", "field-day-relative+1": "i morgen", "field-thu-relative+1": "torsdag neste uke", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "i overmorgen", "quarters-format-abbr": [ "K1", "K2", "K3", "K4" ], "quarters-standAlone-wide": [ "1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal" ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E d. MMM y G", "dateFormatItem-M": "L.", "days-standAlone-wide": [ "søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag" ], "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", "timeFormat-medium": "HH.mm.ss", "field-sun-relative+0": "søndag denne uken", "dateFormatItem-Hm": "HH.mm", "field-sun-relative+1": "søndag neste uke", "quarters-standAlone-abbr": [ "K1", "K2", "K3", "K4" ], "eraAbbr": [ "AM" ], "field-minute": "Minutt", "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "sø.", "ma.", "ti.", "on.", "to.", "fr.", "lø." ], "dateFormatItem-d": "d.", "dateFormatItem-ms": "mm.ss", "field-day-relative+-1": "i går", "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d.M", "field-fri-relative+0": "fredag denne uken", "field-fri-relative+1": "fredag neste uke", "field-day": "Dag", "days-format-wide": [ "søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag" ], "field-zone": "Tidssone", "dateFormatItem-y": "y G", "field-year-relative+-1": "I fjor", "field-month-relative+-1": "Sist måned", "dateFormatItem-hm": "h.mm a", "dayPeriods-format-abbr-pm": "p.m.", "days-format-abbr": [ "søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør." ], "days-format-narrow": [ "S", "M", "T", "O", "T", "F", "L" ], "dateFormatItem-yyyyMd": "d.M.y G", "field-month": "Måned", "days-standAlone-narrow": [ "S", "M", "T", "O", "T", "F", "L" ], "field-tue-relative+0": "tirsdag denne uken", "field-tue-relative+1": "tirsdag neste uke", "dayPeriods-format-wide-am": "a.m.", "field-mon-relative+0": "mandag denne uken", "field-mon-relative+1": "mandag neste uke", "dateFormat-short": "d.M. y G", "field-second": "Sekund", "field-sat-relative+-1": "lørdag sist uke", "field-sun-relative+-1": "søndag sist uke", "field-month-relative+0": "Denne måneden", "field-month-relative+1": "Neste måned", "dateFormatItem-Ed": "E d.", "field-week": "Uke", "dateFormat-medium": "d. MMM y G", "field-year-relative+0": "Dette året", "field-week-relative+-1": "Sist uke", "dateFormatItem-yyyyM": "M.y G", "field-year-relative+1": "Neste år", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateFormatItem-Hms": "HH.mm.ss", "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "MMM y G", "field-mon-relative+-1": "mandag sist uke", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "Denne uken", "field-week-relative+1": "Neste uke" } //end v1.x content );
vdurmont/cdnjs
ajax/libs/dojo/1.10.3/cldr/nls/nb/hebrew.js.uncompressed.js
JavaScript
mit
4,362
define( "dojo/cldr/nls/he/generic", //begin v1.x content { "field-second-relative+0": "עכשיו", "field-weekday": "יום בשבוע", "field-wed-relative+0": "יום רביעי", "field-wed-relative+1": "יום רביעי הבא", "dateFormatItem-GyMMMEd": "E, d בMMM y G", "dateFormatItem-MMMEd": "E, d בMMM", "field-tue-relative+-1": "יום שלישי שעבר", "dateFormat-long": "d בMMMM y G", "field-fri-relative+-1": "יום שישי שעבר", "field-wed-relative+-1": "יום רביעי שעבר", "dateFormatItem-yyyyQQQ": "G y QQQ", "dateTimeFormat-medium": "{1}, {0}", "dateFormat-full": "EEEE, d בMMMM y G", "dateFormatItem-yyyyMEd": "E, d/M/y G", "field-thu-relative+-1": "יום חמישי שעבר", "dateFormatItem-Md": "d/M", "field-era": "תקופה", "field-year": "שנה", "field-hour": "שעה", "field-sat-relative+0": "השבת הזאת", "field-sat-relative+1": "השבת הבאה", "field-day-relative+0": "היום", "field-day-relative+1": "מחר", "field-thu-relative+0": "יום חמישי", "dateFormatItem-GyMMMd": "d בMMM y G", "field-day-relative+2": "מחרתיים", "field-thu-relative+1": "יום חמישי הבא", "dateFormatItem-H": "HH", "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E, d בMMM y G", "dateFormatItem-M": "L", "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d בMMM y G", "field-sun-relative+0": "יום ראשון", "dateFormatItem-Hm": "HH:mm", "field-sun-relative+1": "יום ראשון הבא", "field-minute": "דקה", "field-dayperiod": "לפנה״צ/אחה״צ", "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", "field-day-relative+-1": "אתמול", "dateFormatItem-h": "‏h a", "dateTimeFormat-long": "{1} {0}", "field-day-relative+-2": "שלשום", "dateFormatItem-MMMd": "d בMMM", "dateFormatItem-MEd": "E, d/M", "dateTimeFormat-full": "{1} {0}", "field-fri-relative+0": "יום שישי", "field-fri-relative+1": "יום שישי הבא", "field-day": "יום", "field-zone": "אזור", "dateFormatItem-yyyyMM": "MM/y G", "dateFormatItem-y": "y G", "field-year-relative+-1": "השנה שעברה", "field-month-relative+-1": "החודש שעבר", "dateFormatItem-hm": "h:mm a", "dateFormatItem-yyyyMd": "d.M.y G", "field-month": "חודש", "dateFormatItem-MMM": "LLL", "field-tue-relative+0": "יום שלישי", "field-tue-relative+1": "יום שלישי הבא", "field-mon-relative+0": "יום שני הזה", "field-mon-relative+1": "יום שני הבא", "dateFormat-short": "dd/MM/yy GGGGG", "field-second": "שנייה", "field-sat-relative+-1": "השבת שעברה", "field-sun-relative+-1": "יום ראשון שעבר", "field-month-relative+0": "החודש", "field-month-relative+1": "החודש הבא", "dateFormatItem-Ed": "E ה-d", "field-week": "שבוע", "dateFormat-medium": "d בMMM y G", "field-year-relative+0": "השנה", "field-week-relative+-1": "השבוע שעבר", "dateFormatItem-yyyyM": "M.y G", "field-year-relative+1": "השנה הבאה", "dateFormatItem-yyyyQQQQ": "G y QQQQ", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", "field-mon-relative+-1": "יום שני שעבר", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "השבוע", "field-week-relative+1": "השבוע הבא" } //end v1.x content );
fredericksilva/cdnjs
ajax/libs/dojo/1.10.3/cldr/nls/he/generic.js.uncompressed.js
JavaScript
mit
3,454
define( "dojo/cldr/nls/sk/generic", //begin v1.x content { "field-second-relative+0": "teraz", "field-weekday": "Deň v týždni", "field-wed-relative+0": "Túto stredu", "dateFormatItem-GyMMMEd": "E, d. MMM y G", "dateFormatItem-MMMEd": "E, d. MMM.", "field-wed-relative+1": "Budúcu stredu", "field-tue-relative+-1": "Minulý utorok", "dateFormat-long": "d. MMMM y G", "field-fri-relative+-1": "Minulý piatok", "field-wed-relative+-1": "Minulú stredu", "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", "dateFormat-full": "EEEE, d. MMMM y G", "dateFormatItem-yyyyMEd": "E d. M. y G", "field-thu-relative+-1": "Minulý štvrtok", "dateFormatItem-Md": "d.M.", "field-era": "Éra", "field-year": "Rok", "dateFormatItem-yyyyMMMM": "LLLL y G", "field-hour": "Hodina", "field-sat-relative+0": "Túto sobotu", "field-sat-relative+1": "Budúcu sobotu", "field-day-relative+0": "Dnes", "field-day-relative+1": "Zajtra", "field-thu-relative+0": "Tento štvrtok", "dateFormatItem-GyMMMd": "d.M.y G", "field-day-relative+2": "Pozajtra", "field-thu-relative+1": "Budúci štvrtok", "dateFormatItem-H": "H", "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", "dateFormatItem-M": "L.", "dateFormatItem-yyyyMMM": "LLL y G", "dateFormatItem-yyyyMMMd": "d.M.y G", "dateFormatItem-MMMMd": "d. MMMM", "dateFormatItem-GyMMMMd": "d. MMMM y G", "field-sun-relative+0": "Túto nedeľu", "dateFormatItem-Hm": "H:mm", "field-sun-relative+1": "Budúcu nedeľu", "field-minute": "Minúta", "field-dayperiod": "Časť dňa", "dateFormatItem-d": "d.", "dateFormatItem-ms": "mm:ss", "field-day-relative+-1": "Včera", "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", "field-day-relative+-2": "Predvčerom", "dateFormatItem-MMMd": "d. MMM.", "dateFormatItem-MEd": "E, d.M.", "dateTimeFormat-full": "{1} {0}", "field-fri-relative+0": "Tento piatok", "field-fri-relative+1": "Budúci piatok", "field-day": "Deň", "field-zone": "Časové pásmo", "dateFormatItem-y": "y G", "field-year-relative+-1": "Minulý rok", "field-month-relative+-1": "Posledný mesiac", "dateFormatItem-hm": "h:mm a", "dateFormatItem-yyyyMMMMd": "d. MMMM y G", "dateFormatItem-yyyyMd": "d.M.y G", "field-month": "Mesiac", "dateFormatItem-MMM": "LLL", "field-tue-relative+0": "Tento utorok", "field-tue-relative+1": "Budúci utorok", "dateFormatItem-MMMMEd": "E, d. MMMM", "field-mon-relative+0": "Tento pondelok", "field-mon-relative+1": "Budúci pondelok", "dateFormat-short": "d.M.y GGGGG", "field-second": "Sekunda", "field-sat-relative+-1": "Minulú sobotu", "field-sun-relative+-1": "Minulú nedeľu", "field-month-relative+0": "Tento mesiac", "field-month-relative+1": "Budúci mesiac", "dateFormatItem-Ed": "E d.", "field-week": "Týždeň", "dateFormat-medium": "d.M.y G", "field-year-relative+0": "Tento rok", "field-week-relative+-1": "Minulý týždeň", "dateFormatItem-yyyyM": "M.y G", "field-year-relative+1": "Budúci rok", "dateFormatItem-mmss": "mm:ss", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "LLL y G", "field-mon-relative+-1": "Minulý pondelok", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "Tento týždeň", "field-week-relative+1": "Budúci týždeň" } //end v1.x content );
kiwi89/cdnjs
ajax/libs/dojo/1.10.0/cldr/nls/sk/generic.js.uncompressed.js
JavaScript
mit
3,427
define( "dojo/cldr/nls/ar/persian", //begin v1.x content { "days-standAlone-short": [ "الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" ], "months-format-narrow": [ "ي", "ف", "م", "أ", "و", "ن", "ل", "غ", "س", "ك", "ب", "د" ], "field-second-relative+0": "الآن", "quarters-standAlone-narrow": [ "١", "٢", "٣", "٤" ], "field-weekday": "اليوم", "field-wed-relative+0": "الأربعاء الحالي", "field-wed-relative+1": "الأربعاء التالي", "dateFormatItem-GyMMMEd": "E، d MMM، y G", "dateFormatItem-MMMEd": "E، d MMM", "eraNarrow": [ "ه.ش" ], "field-tue-relative+-1": "الثلاثاء الماضي", "days-format-short": [ "الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" ], "dateFormat-long": "d MMMM، y G", "field-fri-relative+-1": "الجمعة الماضية", "field-wed-relative+-1": "الأربعاء الماضي", "months-format-wide": [ "فرفردن", "أذربيهشت", "خرداد", "تار", "مرداد", "شهرفار", "مهر", "آيان", "آذر", "دي", "بهمن", "اسفندار" ], "dateFormatItem-yyyyQQQ": "QQQ y G", "dayPeriods-format-wide-pm": "م", "dateFormat-full": "EEEE، d MMMM، y G", "dateFormatItem-yyyyMEd": "E، d/M/y G", "field-thu-relative+-1": "الخميس الماضي", "dateFormatItem-Md": "d/M", "field-era": "العصر", "months-standAlone-wide": [ "فرفردن", "أذربيهشت", "خرداد", "تار", "مرداد", "شهرفار", "مهر", "آيان", "آذر", "دي", "بهمن", "اسفندار" ], "timeFormat-short": "h:mm a", "quarters-format-wide": [ "الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع" ], "timeFormat-long": "h:mm:ss a z", "field-year": "السنة", "field-hour": "الساعات", "months-format-abbr": [ "فرفردن", "أذربيهشت", "خرداد", "تار", "مرداد", "شهرفار", "مهر", "آيان", "آذر", "دي", "بهمن", "اسفندار" ], "field-sat-relative+0": "السبت الحالي", "field-sat-relative+1": "السبت التالي", "timeFormat-full": "h:mm:ss a zzzz", "field-day-relative+0": "اليوم", "field-thu-relative+0": "الخميس الحالي", "field-day-relative+1": "غدًا", "field-thu-relative+1": "الخميس التالي", "dateFormatItem-GyMMMd": "d MMM، y G", "field-day-relative+2": "بعد الغد", "months-standAlone-abbr": [ "فرفردن", "أذربيهشت", "خرداد", "تار", "مرداد", "شهرفار", "مهر", "آيان", "آذر", "دي", "بهمن", "اسفندار" ], "quarters-format-abbr": [ "الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع" ], "quarters-standAlone-wide": [ "الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع" ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E، d MMM، y G", "days-standAlone-wide": [ "الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" ], "dateFormatItem-yyyyMMM": "MMM، y G", "dateFormatItem-yyyyMMMd": "d MMM، y G", "timeFormat-medium": "h:mm:ss a", "field-sun-relative+0": "الأحد الحالي", "field-sun-relative+1": "الأحد التالي", "quarters-standAlone-abbr": [ "الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع" ], "eraAbbr": [ "ه.ش" ], "field-minute": "الدقائق", "field-dayperiod": "ص/م", "days-standAlone-abbr": [ "الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" ], "quarters-format-narrow": [ "١", "٢", "٣", "٤" ], "field-day-relative+-1": "أمس", "field-day-relative+-2": "أول أمس", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E، d/M", "field-fri-relative+0": "الجمعة الحالية", "field-fri-relative+1": "الجمعة التالية", "field-day": "يوم", "days-format-wide": [ "الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" ], "field-zone": "التوقيت", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ "ي", "ف", "م", "أ", "و", "ن", "ل", "غ", "س", "ك", "ب", "د" ], "field-year-relative+-1": "السنة الماضية", "field-month-relative+-1": "الشهر الماضي", "days-format-abbr": [ "الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" ], "eraNames": [ "ه.ش" ], "days-format-narrow": [ "ح", "ن", "ث", "ر", "خ", "ج", "س" ], "dateFormatItem-yyyyMd": "d/M/y G", "field-month": "الشهر", "days-standAlone-narrow": [ "ح", "ن", "ث", "ر", "خ", "ج", "س" ], "field-tue-relative+0": "الثلاثاء الحالي", "field-tue-relative+1": "الثلاثاء التالي", "dayPeriods-format-wide-am": "ص", "field-mon-relative+0": "الاثنين الحالي", "field-mon-relative+1": "الاثنين التالي", "dateFormat-short": "d/M/y GGGGG", "field-second": "الثواني", "field-sat-relative+-1": "السبت الماضي", "field-sun-relative+-1": "الأحد الماضي", "field-month-relative+0": "هذا الشهر", "field-month-relative+1": "الشهر التالي", "dateFormatItem-Ed": "E، d", "field-week": "الأسبوع", "dateFormat-medium": "dd/MM/y G", "field-year-relative+0": "هذه السنة", "field-week-relative+-1": "الأسبوع الماضي", "dateFormatItem-yyyyM": "M/y G", "field-year-relative+1": "السنة التالية", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateFormatItem-GyMMM": "MMM y G", "field-mon-relative+-1": "الاثنين الماضي", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "هذا الأسبوع", "field-week-relative+1": "الأسبوع التالي" } //end v1.x content );
quba/cdnjs
ajax/libs/dojo/1.10.3/cldr/nls/ar/persian.js.uncompressed.js
JavaScript
mit
6,415
define( "dojo/cldr/nls/da/buddhist", //begin v1.x content { "days-standAlone-short": [ "sø", "ma", "ti", "on", "to", "fr", "lø" ], "months-format-narrow": [ "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D" ], "field-second-relative+0": "nu", "field-weekday": "Ugedag", "field-wed-relative+0": "denne onsdag", "field-wed-relative+1": "næste onsdag", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", "field-tue-relative+-1": "sidste tirsdag", "days-format-short": [ "sø", "ma", "ti", "on", "to", "fr", "lø" ], "dateFormat-long": "d. MMMM y G", "field-fri-relative+-1": "sidste fredag", "field-wed-relative+-1": "sidste onsdag", "months-format-wide": [ "januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december" ], "dateFormatItem-yyyyQQQ": "QQQ y G", "dateFormat-full": "EEEE d. MMMM y G", "dateFormatItem-yyyyMEd": "E d/M/y G", "field-thu-relative+-1": "sidste torsdag", "dateFormatItem-Md": "d/M", "dayPeriods-format-wide-noon": "middag", "field-era": "Æra", "months-standAlone-wide": [ "januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december" ], "timeFormat-short": "HH.mm", "quarters-format-wide": [ "1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal" ], "timeFormat-long": "HH.mm.ss z", "field-year": "År", "field-hour": "Time", "months-format-abbr": [ "jan.", "feb.", "mar.", "apr.", "maj", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec." ], "field-sat-relative+0": "denne lørdag", "field-sat-relative+1": "næste lørdag", "timeFormat-full": "HH.mm.ss zzzz", "field-day-relative+0": "i dag", "field-thu-relative+0": "denne torsdag", "field-day-relative+1": "i morgen", "field-thu-relative+1": "næste torsdag", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "i overmorgen", "months-standAlone-abbr": [ "jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec" ], "quarters-format-abbr": [ "K1", "K2", "K3", "K4" ], "quarters-standAlone-wide": [ "1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal" ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E d. MMM y G", "dateFormatItem-M": "M", "days-standAlone-wide": [ "søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag" ], "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", "dayPeriods-format-abbr-noon": "middag", "timeFormat-medium": "HH.mm.ss", "field-sun-relative+0": "denne søndag", "dateFormatItem-Hm": "HH.mm", "field-sun-relative+1": "næste søndag", "quarters-standAlone-abbr": [ "K1", "K2", "K3", "K4" ], "eraAbbr": [ "BE" ], "field-minute": "Minut", "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "søn", "man", "tir", "ons", "tor", "fre", "lør" ], "dateFormatItem-d": "d.", "dateFormatItem-ms": "mm.ss", "field-day-relative+-1": "i går", "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d/M", "field-fri-relative+0": "denne fredag", "field-fri-relative+1": "næste fredag", "field-day": "Dag", "days-format-wide": [ "søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag" ], "field-zone": "Tidszone", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D" ], "field-year-relative+-1": "sidste år", "field-month-relative+-1": "sidste måned", "dateFormatItem-hm": "h.mm a", "days-format-abbr": [ "søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør." ], "days-format-narrow": [ "S", "M", "T", "O", "T", "F", "L" ], "dateFormatItem-yyyyMd": "d/M/y G", "field-month": "Måned", "dateFormatItem-MMM": "MMM", "days-standAlone-narrow": [ "S", "M", "T", "O", "T", "F", "L" ], "field-tue-relative+0": "denne tirsdag", "field-tue-relative+1": "næste tirsdag", "field-mon-relative+0": "denne mandag", "field-mon-relative+1": "næste mandag", "dateFormat-short": "d/M/y", "dayPeriods-format-narrow-noon": "middag", "field-second": "Sekund", "field-sat-relative+-1": "sidste lørdag", "field-sun-relative+-1": "sidste søndag", "field-month-relative+0": "denne måned", "field-month-relative+1": "næste måned", "dateFormatItem-Ed": "E 'd'. d.", "field-week": "Uge", "dateFormat-medium": "d. MMM y G", "field-year-relative+0": "i år", "field-week-relative+-1": "sidste uge", "dateFormatItem-yyyyM": "M/y G", "field-year-relative+1": "næste år", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateFormatItem-Hms": "HH.mm.ss", "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "MMM y G", "field-mon-relative+-1": "sidste mandag", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "denne uge", "field-week-relative+1": "næste uge" } //end v1.x content );
sitic/cdnjs
ajax/libs/dojo/1.10.2/cldr/nls/da/buddhist.js.uncompressed.js
JavaScript
mit
5,148
define( "dojo/cldr/nls/zh-hant/buddhist", //begin v1.x content { "days-standAlone-short": [ "日", "一", "二", "三", "四", "五", "六" ], "field-second-relative+0": "現在", "field-weekday": "週天", "field-wed-relative+0": "本週三", "field-wed-relative+1": "下週三", "dateFormatItem-GyMMMEd": "Gy年M月d日E", "dateFormatItem-MMMEd": "M月d日E", "eraNarrow": [ "佛曆" ], "field-tue-relative+-1": "上週二", "days-format-short": [ "日", "一", "二", "三", "四", "五", "六" ], "dateFormat-long": "Gy年M月d日", "field-fri-relative+-1": "上週五", "field-wed-relative+-1": "上週三", "months-format-wide": [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ], "dateFormatItem-yyyyQQQ": "Gy年QQQ", "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-yyyyMEd": "Gy/M/d(E)", "field-thu-relative+-1": "上週四", "dateFormatItem-Md": "M/d", "dayPeriods-format-wide-noon": "中午", "field-era": "年代", "months-standAlone-wide": [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ], "timeFormat-short": "ah:mm", "quarters-format-wide": [ "第1季", "第2季", "第3季", "第4季" ], "timeFormat-long": "zah時mm分ss秒", "field-year": "年", "field-hour": "小時", "months-format-abbr": [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ], "field-sat-relative+0": "本週六", "field-sat-relative+1": "下週六", "timeFormat-full": "zzzzah時mm分ss秒", "field-day-relative+0": "今天", "field-thu-relative+0": "本週四", "field-day-relative+1": "明天", "field-thu-relative+1": "下週四", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "後天", "dateFormatItem-H": "H時", "months-standAlone-abbr": [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ], "quarters-format-abbr": [ "1季", "2季", "3季", "4季" ], "quarters-standAlone-wide": [ "第1季", "第2季", "第3季", "第4季" ], "dateFormatItem-Gy": "Gy年", "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", "dateFormatItem-M": "M月", "days-standAlone-wide": [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ], "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "timeFormat-medium": "ah:mm:ss", "field-sun-relative+0": "本週日", "dateFormatItem-Hm": "H:mm", "field-sun-relative+1": "下週日", "quarters-standAlone-abbr": [ "1季", "2季", "3季", "4季" ], "eraAbbr": [ "佛曆" ], "field-minute": "分鐘", "field-dayperiod": "上午/下午", "days-standAlone-abbr": [ "週日", "週一", "週二", "週三", "週四", "週五", "週六" ], "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah時", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-MEd": "M/d(E)", "dateTimeFormat-full": "{1}{0}", "field-fri-relative+0": "本週五", "field-fri-relative+1": "下週五", "field-day": "日", "days-format-wide": [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ], "field-zone": "時區", "dateFormatItem-y": "Gy年", "field-year-relative+-1": "去年", "field-month-relative+-1": "上個月", "dateFormatItem-hm": "ah:mm", "days-format-abbr": [ "週日", "週一", "週二", "週三", "週四", "週五", "週六" ], "eraNames": [ "佛曆" ], "days-format-narrow": [ "日", "一", "二", "三", "四", "五", "六" ], "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", "dateFormatItem-MMM": "LLL", "days-standAlone-narrow": [ "日", "一", "二", "三", "四", "五", "六" ], "field-tue-relative+0": "本週二", "field-tue-relative+1": "下週二", "dayPeriods-format-wide-am": "上午", "field-mon-relative+0": "本週一", "field-mon-relative+1": "下週一", "dateFormat-short": "Gy/M/d", "dayPeriods-format-narrow-noon": "中午", "field-second": "秒", "field-sat-relative+-1": "上週六", "field-sun-relative+-1": "上週日", "field-month-relative+0": "本月", "field-month-relative+1": "下個月", "dateFormatItem-Ed": "d日(E)", "field-week": "週", "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上週", "dateFormatItem-yyyyM": "Gy/M", "field-year-relative+1": "明年", "dayPeriods-format-narrow-pm": "下午", "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", "field-mon-relative+-1": "上週一", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "本週", "field-week-relative+1": "下週" } //end v1.x content );
hasantayyar/cdnjs
ajax/libs/dojo/1.10.4/cldr/nls/zh-hant/buddhist.js.uncompressed.js
JavaScript
mit
5,173
define( "dojo/cldr/nls/zh/persian", //begin v1.x content { "days-standAlone-short": [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ], "months-format-narrow": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], "field-second-relative+0": "现在", "field-weekday": "星期", "field-wed-relative+0": "本周三", "field-wed-relative+1": "下周三", "dateFormatItem-GyMMMEd": "Gy年M月d日E", "dateFormatItem-MMMEd": "M月d日E", "eraNarrow": [ "波斯历" ], "field-tue-relative+-1": "上周二", "days-format-short": [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ], "dateFormat-long": "Gy年M月d日", "field-fri-relative+-1": "上周五", "field-wed-relative+-1": "上周三", "months-format-wide": [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" ], "dateFormatItem-yyyyQQQ": "Gy年第Q季度", "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-yyyyMEd": "Gy/M/dE", "field-thu-relative+-1": "上周四", "dateFormatItem-Md": "M/d", "dayPeriods-format-wide-noon": "中午", "field-era": "纪元", "months-standAlone-wide": [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" ], "timeFormat-short": "ah:mm", "quarters-format-wide": [ "第一季度", "第二季度", "第三季度", "第四季度" ], "timeFormat-long": "zah:mm:ss", "field-year": "年", "field-hour": "小时", "months-format-abbr": [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ], "field-sat-relative+0": "本周六", "field-sat-relative+1": "下周六", "timeFormat-full": "zzzzah:mm:ss", "field-day-relative+0": "今天", "field-thu-relative+0": "本周四", "field-day-relative+1": "明天", "field-thu-relative+1": "下周四", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "后天", "dateFormatItem-H": "H时", "months-standAlone-abbr": [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ], "quarters-format-abbr": [ "1季度", "2季度", "3季度", "4季度" ], "quarters-standAlone-wide": [ "第一季度", "第二季度", "第三季度", "第四季度" ], "dateFormatItem-Gy": "Gy年", "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", "dateFormatItem-M": "M月", "days-standAlone-wide": [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ], "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "timeFormat-medium": "ah:mm:ss", "field-sun-relative+0": "本周日", "field-sun-relative+1": "下周日", "quarters-standAlone-abbr": [ "1季度", "2季度", "3季度", "4季度" ], "eraAbbr": [ "波斯历" ], "field-minute": "分钟", "field-dayperiod": "上午/下午", "days-standAlone-abbr": [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ], "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah时", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-MEd": "M/dE", "field-fri-relative+0": "本周五", "field-fri-relative+1": "下周五", "field-day": "日", "days-format-wide": [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ], "field-zone": "时区", "dateFormatItem-y": "Gy年", "months-standAlone-narrow": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], "field-year-relative+-1": "去年", "field-month-relative+-1": "上个月", "dateFormatItem-hm": "ah:mm", "days-format-abbr": [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ], "eraNames": [ "波斯历" ], "days-format-narrow": [ "日", "一", "二", "三", "四", "五", "六" ], "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", "days-standAlone-narrow": [ "日", "一", "二", "三", "四", "五", "六" ], "field-tue-relative+0": "本周二", "field-tue-relative+1": "下周二", "dayPeriods-format-wide-am": "上午", "field-mon-relative+0": "本周一", "field-mon-relative+1": "下周一", "dateFormat-short": "Gy/M/d", "dayPeriods-format-narrow-noon": "中午", "field-second": "秒钟", "field-sat-relative+-1": "上周六", "field-sun-relative+-1": "上周日", "field-month-relative+0": "本月", "field-month-relative+1": "下个月", "dateFormatItem-Ed": "d日E", "field-week": "周", "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上周", "dateFormatItem-yyyyM": "Gy年M月", "field-year-relative+1": "明年", "dayPeriods-format-narrow-pm": "下午", "dateFormatItem-yyyyQQQQ": "Gy年第Q季度", "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", "field-mon-relative+-1": "上周一", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "本周", "field-week-relative+1": "下周" } //end v1.x content );
chrillep/cdnjs
ajax/libs/dojo/1.10.0/cldr/nls/zh/persian.js.uncompressed.js
JavaScript
mit
5,435
define( "dojo/cldr/nls/en/islamic", //begin v1.x content { "field-second-relative+0": "now", "field-weekday": "Day of the Week", "field-wed-relative+0": "this Wednesday", "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "E, MMM d, y G", "dateFormatItem-MMMEd": "E, MMM d", "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ], "dateFormat-long": "MMMM d, y G", "field-fri-relative+-1": "last Friday", "field-wed-relative+-1": "last Wednesday", "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1}, {0}", "dateFormat-full": "EEEE, MMMM d, y G", "dateFormatItem-yyyyMEd": "E, M/d/y GGGGG", "field-thu-relative+-1": "last Thursday", "dateFormatItem-Md": "M/d", "field-era": "Era", "timeFormat-short": "h:mm a", "quarters-format-wide": [ "1st quarter", "2nd quarter", "3rd quarter", "4th quarter" ], "timeFormat-long": "h:mm:ss a z", "field-year": "Year", "dateTimeFormats-appendItem-Era": "{0} {1}", "field-hour": "Hour", "field-sat-relative+0": "this Saturday", "field-sat-relative+1": "next Saturday", "timeFormat-full": "h:mm:ss a zzzz", "field-day-relative+0": "today", "field-thu-relative+0": "this Thursday", "field-day-relative+1": "tomorrow", "field-thu-relative+1": "next Thursday", "dateFormatItem-GyMMMd": "MMM d, y G", "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E, MMM d, y G", "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "MMM d, y G", "timeFormat-medium": "h:mm:ss a", "field-sun-relative+0": "this Sunday", "field-sun-relative+1": "next Sunday", "eraAbbr": [ "AH" ], "field-minute": "Minute", "field-dayperiod": "AM/PM", "field-day-relative+-1": "yesterday", "dateTimeFormat-long": "{1} 'at' {0}", "dateFormatItem-MEd": "E, M/d", "dateTimeFormat-full": "{1} 'at' {0}", "field-fri-relative+0": "this Friday", "field-fri-relative+1": "next Friday", "field-day": "Day", "days-format-wide": [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], "field-zone": "Time Zone", "dateFormatItem-y": "y G", "field-year-relative+-1": "last year", "field-month-relative+-1": "last month", "dateTimeFormats-appendItem-Year": "{0} {1}", "dateFormatItem-yyyyMd": "M/d/y GGGGG", "field-month": "Month", "field-tue-relative+0": "this Tuesday", "field-tue-relative+1": "next Tuesday", "field-mon-relative+0": "this Monday", "field-mon-relative+1": "next Monday", "dateFormat-short": "M/d/y GGGGG", "field-second": "Second", "field-sat-relative+-1": "last Saturday", "field-sun-relative+-1": "last Sunday", "field-month-relative+0": "this month", "field-month-relative+1": "next month", "dateFormatItem-Ed": "d E", "field-week": "Week", "dateFormat-medium": "MMM d, y G", "field-year-relative+0": "this year", "field-week-relative+-1": "last week", "dateFormatItem-yyyyM": "M/y GGGGG", "field-year-relative+1": "next year", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-GyMMM": "MMM y G", "field-mon-relative+-1": "last Monday", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "this week", "field-week-relative+1": "next week" } //end v1.x content );
kellyselden/cdnjs
ajax/libs/dojo/1.10.3/cldr/nls/en/islamic.js.uncompressed.js
JavaScript
mit
3,264
YUI.add('base-base', function (Y, NAME) { /** * The base module provides the Base class, which objects requiring attribute and custom event support can extend. * The module also provides two ways to reuse code - It augments Base with the Plugin.Host interface which provides * plugin support and also provides the BaseCore.build method which provides a way to build custom classes using extensions. * * @module base */ /** * The base-base submodule provides the Base class without the Plugin support, provided by Plugin.Host, * and without the extension support provided by BaseCore.build. * * @module base * @submodule base-base */ var AttributeCore = Y.AttributeCore, AttributeExtras = Y.AttributeExtras, BaseCore = Y.BaseCore, BaseObservable = Y.BaseObservable; /** * <p> * A base class which objects requiring attributes and custom event support can * extend. Base also handles the chaining of initializer and destructor methods across * the hierarchy as part of object construction and destruction. Additionally, attributes configured * through the static <a href="#property_ATTRS">ATTRS</a> property for each class * in the hierarchy will be initialized by Base. * </p> * * <p> * The static <a href="#property_NAME">NAME</a> property of each class extending * from Base will be used as the identifier for the class, and is used by Base to prefix * all events fired by instances of that class. * </p> * * @class Base * @constructor * @uses BaseCore * @uses BaseObservable * @uses AttributeCore * @uses AttributeObservable * @uses AttributeExtras * @uses EventTarget * * @param {Object} config Object with configuration property name/value pairs. The object can be * used to provide default values for the objects published attributes. * * <p> * The config object can also contain the following non-attribute properties, providing a convenient * way to configure events listeners and plugins for the instance, as part of the constructor call: * </p> * * <dl> * <dt>on</dt> * <dd>An event name to listener function map, to register event listeners for the "on" moment of the event. A constructor convenience property for the <a href="Base.html#method_on">on</a> method.</dd> * <dt>after</dt> * <dd>An event name to listener function map, to register event listeners for the "after" moment of the event. A constructor convenience property for the <a href="Base.html#method_after">after</a> method.</dd> * <dt>bubbleTargets</dt> * <dd>An object, or array of objects, to register as bubble targets for bubbled events fired by this instance. A constructor convenience property for the <a href="EventTarget.html#method_addTarget">addTarget</a> method.</dd> * <dt>plugins</dt> * <dd>A plugin, or array of plugins to be plugged into the instance (see PluginHost's plug method for signature details). A constructor convenience property for the <a href="Plugin.Host.html#method_plug">plug</a> method.</dd> * </dl> */ function Base() { BaseCore.apply(this, arguments); BaseObservable.apply(this, arguments); AttributeExtras.apply(this, arguments); } /** * The list of properties which can be configured for * each attribute (e.g. setter, getter, writeOnce, readOnly etc.) * * @property _ATTR_CFG * @type Array * @static * @private */ Base._ATTR_CFG = BaseCore._ATTR_CFG.concat(BaseObservable._ATTR_CFG); /** * The array of non-attribute configuration properties supported by this class. * * `Base` supports "on", "after", "plugins" and "bubbleTargets" properties, * which are not set up as attributes. * * This property is primarily required so that when * <a href="#property__allowAdHocAttrs">`_allowAdHocAttrs`</a> is enabled by * a class, non-attribute configurations don't get added as ad-hoc attributes. * * @property _NON_ATTRS_CFG * @type Array * @static * @private */ Base._NON_ATTRS_CFG = BaseCore._NON_ATTRS_CFG.concat(BaseObservable._NON_ATTRS_CFG); /** * <p> * The string to be used to identify instances of * this class, for example in prefixing events. * </p> * <p> * Classes extending Base, should define their own * static NAME property, which should be camelCase by * convention (e.g. MyClass.NAME = "myClass";). * </p> * @property NAME * @type String * @static */ Base.NAME = 'base'; /** * The default set of attributes which will be available for instances of this class, and * their configuration. In addition to the configuration properties listed by * Attribute's <a href="Attribute.html#method_addAttr">addAttr</a> method, the attribute * can also be configured with a "cloneDefaultValue" property, which defines how the statically * defined value field should be protected ("shallow", "deep" and false are supported values). * * By default if the value is an object literal or an array it will be "shallow" cloned, to * protect the default value. * * @property ATTRS * @type Object * @static */ Base.ATTRS = AttributeCore.protectAttrs(BaseCore.ATTRS); Y.mix(Base, BaseCore, false, null, 1); Y.mix(Base, AttributeExtras, false, null, 1); // Needs to be `true`, to overwrite methods from `BaseCore`. Y.mix(Base, BaseObservable, true, null, 1); // Fix constructor Base.prototype.constructor = Base; Y.Base = Base; }, '@VERSION@', {"requires": ["attribute-base", "base-core", "base-observable"]});
Rich-Harris/cdnjs
ajax/libs/yui/3.9.1/base-base/base-base-debug.js
JavaScript
mit
5,909
/************* jQuery UI Theme *************/ /* overall */ .tablesorter-jui { width: 100%; border-collapse: separate; border-spacing: 2px; /* adjust spacing between table cells */ margin: 10px 0 15px; padding: 5px; font-size: 0.8em; } /* header */ .tablesorter-jui thead th, .tablesorter-jui thead td, .tablesorter-jui tfoot th, .tablesorter-jui tfoot td { position: relative; background-repeat: no-repeat; background-position: right center; /* UI hover and active states make the font normal and the table resizes, this fixes it */ font-weight: bold !important; border-width: 1px !important; text-align: left; padding: 8px; /* wider than the icon */ } .tablesorter-jui .header, .tablesorter-jui .tablesorter-header { cursor: pointer; white-space: normal; } .tablesorter-jui .tablesorter-header-inner { padding-right: 20px; } .tablesorter-jui thead tr th .ui-icon { position: absolute; right: 3px; top: 50%; margin-top: -8px; /* half the icon height; older IE doesn't like this */ } .tablesorter-jui thead .sorter-false { cursor: default; } /* tfoot */ .tablesorter-jui tfoot th, .tablesorter-jui tfoot td { font-weight: normal !important; font-size: .9em; padding: 2px; } /* tbody */ .tablesorter-jui td { padding: 4px; vertical-align: top; } /* hovered row colors */ .tablesorter-jui tbody > tr:hover td { opacity: 0.7; filter: alpha(opacity=70); } /* table processing indicator */ .tablesorter-jui .tablesorter-processing .tablesorter-header-inner { background-position: center center !important; background-repeat: no-repeat !important; /* background-image: url(../addons/pager/icons/loading.gif) !important; */ background-image: url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=') !important; } /* Zebra widget - This allows you to use ui-state-default as the zebra stripe color */ .tablesorter-jui tr.ui-state-default { background-image: none; font-weight: normal; } /* processing background color */ .tablesorter-jui .tablesorter-processing { background-color: #ddd; /* older browsers that don't support rgba */ background-color: rgba(255,255,255,0.8); } /* caption */ .tablesorter-jui caption { border: 0; } /* filter widget */ .tablesorter-jui .tablesorter-filter-row td { background: transparent; line-height: normal; text-align: center; /* center the input */ -webkit-transition: line-height 0.1s ease; -moz-transition: line-height 0.1s ease; -o-transition: line-height 0.1s ease; transition: line-height 0.1s ease; } /* optional disabled input styling */ .tablesorter-jui .tablesorter-filter-row .disabled { opacity: 0.5; filter: alpha(opacity=50); cursor: not-allowed; } /* hidden filter row */ .tablesorter-jui .tablesorter-filter-row.hideme td { /*** *********************************************** ***/ /*** change this padding to modify the thickness ***/ /*** of the closed filter row (height = padding x 2) ***/ padding: 2px; /*** *********************************************** ***/ margin: 0; line-height: 0; cursor: pointer; } .tablesorter-jui .tablesorter-filter-row.hideme .tablesorter-filter { height: 1px; min-height: 0; border: 0; padding: 0; margin: 0; /* don't use visibility: hidden because it disables tabbing */ opacity: 0; filter: alpha(opacity=0); } /* filters */ .tablesorter-jui .tablesorter-filter { width: 98%; height: auto; margin: 0; padding: 4px; background-color: #fff; border: 1px solid #bbb; color: #333; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: height 0.1s ease; -moz-transition: height 0.1s ease; -o-transition: height 0.1s ease; transition: height 0.1s ease; } /* rows hidden by filtering (needed for child rows) */ .tablesorter .filtered { display: none; } /* ajax error row */ .tablesorter .tablesorter-errorRow td { text-align: center; cursor: pointer; background-color: #e6bf99; }
Craga89/jsdelivr
files/tablesorter/2.17.4/css/theme.jui.css
CSS
mit
4,433
/*! Copyright (C) 2011 T. Connell & Associates, Inc. Dual-licensed under the MIT and GPL licenses 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. Resizable scroller widget for the jQuery tablesorter plugin Version 2.0 - modified by Rob Garrison (4/12/2013) Requires jQuery, v1.2.3 or higher Requires the tablesorter plugin, v2.0 or higher, available at http://mottie.github.com/tablesorter/docs/ Usage: $(function() { $('table.tablesorter').tablesorter({ widgets: ['zebra', 'scroller'], widgetOptions : { scroller_height : 300, // height of scroll window scroller_barWidth : 17, // scroll bar width scroller_jumpToHeader : true, // header snap to browser top when scrolling the tbody scroller_idPrefix : 's_' // cloned thead id prefix (random number added to end) } }); }); Website: www.tconnell.com */ /*jshint browser:true, jquery:true, unused:false */ ;(function($){ "use strict"; $.fn.hasScrollBar = function(){ return this.get(0).scrollHeight > this.height(); }; var ts = $.tablesorter; ts.window_resize = function(){ if (this.resize_timer) { clearTimeout(this.resize_timer); } this.resize_timer = setTimeout(function(){ $(this).trigger('resizeEnd'); }, 250); }; // Add extra scroller css $(function(){ var s = '<style>' + '.tablesorter-scroller-header table.tablesorter { margin-bottom: 0; }' + '.tablesorter-scroller-table table.tablesorter { margin-top: 0; } ' + '.tablesorter-scroller-table .tablesorter-filter-row, .tablesorter-scroller-table tfoot { display: none; }' + '.tablesorter-scroller-table table.tablesorter thead tr.tablesorter-headerRow * {' + 'line-height:0;height:0;border:none;background-image:none;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;overflow:hidden;' + '}</style>'; $(s).appendTo('body'); }); ts.addWidget({ id: 'scroller', priority: 60, // run after the filter widget options: { scroller_height : 300, scroller_barWidth : 17, scroller_jumpToHeader: true, scroller_idPrefix : 's_' }, init: function(table, thisWidget, c, wo){ var $win = $(window); //Setup window.resizeEnd event $win .bind('resize', ts.window_resize) .bind('resizeEnd', function(e) { // init is run before format, so scroller_resizeWidth // won't be defined within the "c" or "wo" parameters if (typeof table.config.widgetOptions.scroller_resizeWidth === 'function') { //IE calls resize when you modify content, so we have to unbind the resize event //so we don't end up with an infinite loop. we can rebind after we're done. $win.unbind('resize', ts.window_resize); table.config.widgetOptions.scroller_resizeWidth(); $win.bind('resize', ts.window_resize); } }); }, format: function(table, c, wo) { var h, $hdr, id, t, resize, $cells, $win = $(window), $tbl = c.$table, flag = false, filterInputs = 'input, select'; if (!c.isScrolling) { h = wo.scroller_height || 300; t = $tbl.find('tbody').height(); if (t !== 0 && h > t) { h = t + 10; } // Table is less than h px id = wo.scroller_id = wo.scroller_idPrefix + Math.floor(Math.random() * 101); $hdr = $('<table class="' + $tbl.attr('class') + '" cellpadding=0 cellspacing=0><thead>' + $tbl.find('thead:first').html() + '</thead></table>'); $tbl .wrap('<div id="' + id + '" class="tablesorter-scroller" style="text-align:left;" />') .before($hdr) .find('.tablesorter-filter-row').addClass('hideme'); $cells = $hdr .wrap('<div class="tablesorter-scroller-header" style="width:' + $tbl.width() + ';" />') .find('.' + ts.css.header) .bind('mousedown', function(){ this.onselectstart = function(){ return false; }; return false; }); $tbl .wrap('<div class="tablesorter-scroller-table" style="height:' + h + 'px;width:' + $tbl.width() + ';overflow-y:scroll;" />') .unbind('sortEnd.tsScroller') .bind('sortEnd.tsScroller', function(){ c.$headers.each(function(i){ var t = $cells.eq(i); t .attr('class', $(this).attr('class')) // remove processing icon .removeClass(ts.css.processing + ' ' + c.cssProcessing); if (ts.css.icon){ t .find('.' + ts.css.icon) .attr('class', $(this).find('.' + ts.css.icon).attr('class')); } }); }); // make scroller header sortable c.$headers.find(c.selectorSort).add( c.$headers.filter(c.selectorSort) ).each(function(i){ var t = $(this); $cells.eq(i) // clicking on new header will trigger a sort .bind('mouseup', function(e){ t.trigger(e, true); // external mouseup flag (click timer is ignored) }) // prevent header text selection .bind('mousedown', function(){ this.onselectstart = function(){ return false; }; return false; }); }); // look for filter widget $tbl.bind('filterEnd', function(){ if (flag) { return; } $cells.each(function(i){ $(this).find(filterInputs).val( c.$filters.find(filterInputs).eq(i).val() ); }); }); $hdr.find(filterInputs).bind('keyup search', function(e){ // ignore arrow and meta keys; allow backspace if ((e.which < 32 && e.which !== 8) || (e.which >= 37 && e.which <=40)) { return; } flag = true; var $f = $(this), col = $f.attr('data-column'); c.$filters.find(filterInputs).eq(col) .val( $f.val() ) .trigger('search'); setTimeout(function(){ flag = false; }, wo.filter_searchDelay); }); resize = function(){ var d, //Hide other scrollers so we can resize $div = $('div.scroller[id != "' + id + '"]').hide(); $tbl.find('thead').show(); //Reset sizes so parent can resize. $hdr .width(0) .parent().width(0) .find('th,td').width(0); $tbl .width(0) .find('thead').find('th,td').width(0); d = $tbl.parent(); d.width(0); d.parent().trigger('resize'); // Shrink a bit to accommodate scrollbar d.width( d.parent().innerWidth() - ( d.parent().hasScrollBar() ? wo.scroller_barWidth : 0 ) ); $tbl.width( d.innerWidth() - ( d.hasScrollBar() ? wo.scroller_barWidth : 0 ) ); $tbl.find('thead').find('th,td').filter(':visible').each(function(i, c){ var $th = $(c), //Wrap in browser detect?? w = parseInt( $th.css('min-width').replace('auto', '0').replace(/(px|em)/, ''), 10 ); if ( $th.width() < w ) { $th.width(w); } else { w = $th.width(); } $hdr.find('th,td').eq(i).width(w); }); $hdr.width($tbl.innerWidth()); $div.show(); }; //Expose to external calls wo.scroller_resizeWidth = resize; resize(); $tbl.find('thead').css('visibility', 'hidden'); c.isScrolling = true; t = $tbl.parent().parent().height(); // The header will always jump into view if scrolling the table body $tbl.parent().bind('scroll', function(){ if (wo.scroller_jumpToHeader) { var pos = $win.scrollTop() - $hdr.offset().top; if ($(this).scrollTop() !== 0 && pos < t && pos > 0) { $win.scrollTop( $hdr.offset().top ); } } }); } //Sorting, so scroll to top $tbl.parent().animate({ scrollTop: 0 }, 'fast'); }, remove : function(table, c, wo){ } }); })(jQuery);
Enelar/cdnjs
ajax/libs/jquery.tablesorter/2.14.1/js/widgets/widget-scroller.js
JavaScript
mit
7,679
/*! Copyright (C) 2011 T. Connell & Associates, Inc. Dual-licensed under the MIT and GPL licenses 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. Resizable scroller widget for the jQuery tablesorter plugin Version 2.0 - modified by Rob Garrison (4/12/2013) Requires jQuery, v1.2.3 or higher Requires the tablesorter plugin, v2.0 or higher, available at http://mottie.github.com/tablesorter/docs/ Usage: $(function() { $('table.tablesorter').tablesorter({ widgets: ['zebra', 'scroller'], widgetOptions : { scroller_height : 300, // height of scroll window scroller_barWidth : 17, // scroll bar width scroller_jumpToHeader : true, // header snap to browser top when scrolling the tbody scroller_idPrefix : 's_' // cloned thead id prefix (random number added to end) } }); }); Website: www.tconnell.com */ /*jshint browser:true, jquery:true, unused:false */ ;(function($){ "use strict"; $.fn.hasScrollBar = function(){ return this.get(0).scrollHeight > this.height(); }; var ts = $.tablesorter; ts.window_resize = function(){ if (this.resize_timer) { clearTimeout(this.resize_timer); } this.resize_timer = setTimeout(function(){ $(this).trigger('resizeEnd'); }, 250); }; // Add extra scroller css $(function(){ var s = '<style>' + '.tablesorter-scroller-header table.tablesorter { margin-bottom: 0; }' + '.tablesorter-scroller-table table.tablesorter { margin-top: 0; } ' + '.tablesorter-scroller-table .tablesorter-filter-row, .tablesorter-scroller-table tfoot { display: none; }' + '.tablesorter-scroller-table table.tablesorter thead tr.tablesorter-headerRow * {' + 'line-height:0;height:0;border:none;background-image:none;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;overflow:hidden;' + '}</style>'; $(s).appendTo('body'); }); ts.addWidget({ id: 'scroller', priority: 60, // run after the filter widget options: { scroller_height : 300, scroller_barWidth : 17, scroller_jumpToHeader: true, scroller_idPrefix : 's_' }, init: function(table, thisWidget, c, wo){ var $win = $(window); //Setup window.resizeEnd event $win .bind('resize', ts.window_resize) .bind('resizeEnd', function(e) { // init is run before format, so scroller_resizeWidth // won't be defined within the "c" or "wo" parameters if (typeof table.config.widgetOptions.scroller_resizeWidth === 'function') { //IE calls resize when you modify content, so we have to unbind the resize event //so we don't end up with an infinite loop. we can rebind after we're done. $win.unbind('resize', ts.window_resize); table.config.widgetOptions.scroller_resizeWidth(); $win.bind('resize', ts.window_resize); } }); }, format: function(table, c, wo) { var h, $hdr, id, t, resize, $cells, $win = $(window), $tbl = c.$table, flag = false, filterInputs = 'input, select'; if (!c.isScrolling) { h = wo.scroller_height || 300; t = $tbl.find('tbody').height(); if (t !== 0 && h > t) { h = t + 10; } // Table is less than h px id = wo.scroller_id = wo.scroller_idPrefix + Math.floor(Math.random() * 101); $hdr = $('<table class="' + $tbl.attr('class') + '" cellpadding=0 cellspacing=0><thead>' + $tbl.find('thead:first').html() + '</thead></table>'); $tbl .wrap('<div id="' + id + '" class="tablesorter-scroller" style="text-align:left;" />') .before($hdr) .find('.tablesorter-filter-row').addClass('hideme'); $cells = $hdr .wrap('<div class="tablesorter-scroller-header" style="width:' + $tbl.width() + ';" />') .find('.' + ts.css.header) .bind('mousedown', function(){ this.onselectstart = function(){ return false; }; return false; }); $tbl .wrap('<div class="tablesorter-scroller-table" style="height:' + h + 'px;width:' + $tbl.width() + ';overflow-y:scroll;" />') .unbind('sortEnd.tsScroller') .bind('sortEnd.tsScroller', function(){ c.$headers.each(function(i){ var t = $cells.eq(i); t .attr('class', $(this).attr('class')) // remove processing icon .removeClass(ts.css.processing + ' ' + c.cssProcessing); if (ts.css.icon){ t .find('.' + ts.css.icon) .attr('class', $(this).find('.' + ts.css.icon).attr('class')); } }); }); // make scroller header sortable c.$headers.find(c.selectorSort).add( c.$headers.filter(c.selectorSort) ).each(function(i){ var t = $(this); $cells.eq(i) // clicking on new header will trigger a sort .bind('mouseup', function(e){ t.trigger(e, true); // external mouseup flag (click timer is ignored) }) // prevent header text selection .bind('mousedown', function(){ this.onselectstart = function(){ return false; }; return false; }); }); // look for filter widget $tbl.bind('filterEnd', function(){ if (flag) { return; } $cells.each(function(i){ $(this).find(filterInputs).val( c.$filters.find(filterInputs).eq(i).val() ); }); }); $hdr.find(filterInputs).bind('keyup search', function(e){ // ignore arrow and meta keys; allow backspace if ((e.which < 32 && e.which !== 8) || (e.which >= 37 && e.which <=40)) { return; } flag = true; var $f = $(this), col = $f.attr('data-column'); c.$filters.find(filterInputs).eq(col) .val( $f.val() ) .trigger('search'); setTimeout(function(){ flag = false; }, wo.filter_searchDelay); }); resize = function(){ var d, //Hide other scrollers so we can resize $div = $('div.scroller[id != "' + id + '"]').hide(); $tbl.find('thead').show(); //Reset sizes so parent can resize. $hdr .width(0) .parent().width(0) .find('th,td').width(0); $tbl .width(0) .find('thead').find('th,td').width(0); d = $tbl.parent(); d.width(0); d.parent().trigger('resize'); // Shrink a bit to accommodate scrollbar d.width( d.parent().innerWidth() - ( d.parent().hasScrollBar() ? wo.scroller_barWidth : 0 ) ); $tbl.width( d.innerWidth() - ( d.hasScrollBar() ? wo.scroller_barWidth : 0 ) ); $tbl.find('thead').find('th,td').filter(':visible').each(function(i, c){ var $th = $(c), //Wrap in browser detect?? w = parseInt( $th.css('min-width').replace('auto', '0').replace(/(px|em)/, ''), 10 ); if ( $th.width() < w ) { $th.width(w); } else { w = $th.width(); } $hdr.find('th,td').eq(i).width(w); }); $hdr.width($tbl.innerWidth()); $div.show(); }; //Expose to external calls wo.scroller_resizeWidth = resize; resize(); $tbl.find('thead').css('visibility', 'hidden'); c.isScrolling = true; t = $tbl.parent().parent().height(); // The header will always jump into view if scrolling the table body $tbl.parent().bind('scroll', function(){ if (wo.scroller_jumpToHeader) { var pos = $win.scrollTop() - $hdr.offset().top; if ($(this).scrollTop() !== 0 && pos < t && pos > 0) { $win.scrollTop( $hdr.offset().top ); } } }); } //Sorting, so scroll to top $tbl.parent().animate({ scrollTop: 0 }, 'fast'); }, remove : function(table, c, wo){ } }); })(jQuery);
ruo91/cdnjs
ajax/libs/jquery.tablesorter/2.13.1/js/widgets/widget-scroller.js
JavaScript
mit
7,679
/*! * # Semantic UI 1.12.0 - Sidebar * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributorss * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Sidebar *******************************/ /* Sidebar Menu */ .ui.sidebar { position: fixed; top: 0; left: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transition: none; transition: none; will-change: transform; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); visibility: hidden; -webkit-overflow-scrolling: touch; height: 100% !important; border-radius: 0em !important; margin: 0em !important; overflow-y: auto !important; z-index: 102; } /* GPU Layers for Child Elements */ .ui.sidebar > * { -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transform: rotateZ(0deg); transform: rotateZ(0deg); } /*-------------- Direction ---------------*/ .ui.left.sidebar { right: auto; left: 0px; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } .ui.right.sidebar { right: 0px !important; left: auto !important; -webkit-transform: translate3d(100%, 0%, 0); transform: translate3d(100%, 0%, 0); } .ui.top.sidebar, .ui.bottom.sidebar { width: 100% !important; height: auto !important; overflow-y: visible !important; } .ui.top.sidebar { top: 0px !important; bottom: auto !important; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } .ui.bottom.sidebar { top: auto !important; bottom: 0px !important; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } /*-------------- Pushable ---------------*/ .pushable { height: 100%; overflow-x: hidden; padding: 0em !important; } /* Whole Page */ body.pushable { background: #333333 !important; } /* Page Context */ .pushable:not(body) { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } .pushable:not(body) > .ui.sidebar, .pushable:not(body) > .fixed, .pushable:not(body) > .pusher:after { position: absolute; } /*-------------- Fixed ---------------*/ .pushable > .fixed { position: fixed; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transition: -webkit-transform 500ms ease; transition: transform 500ms ease; will-change: transform; z-index: 101; } /*-------------- Page ---------------*/ .pushable > .pusher { position: relative; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; min-height: 100%; -webkit-transition: -webkit-transform 500ms ease; transition: transform 500ms ease; z-index: 2; } body.pushable > .pusher { background: #f7f7f7; } .pushable > .pusher { background: inherit; } /*-------------- Dimmer ---------------*/ .pushable > .pusher:after { position: fixed; top: 0px; right: 0px; content: ''; background-color: rgba(0, 0, 0, 0.4); width: 0px; height: 0px; overflow: hidden; opacity: 0; -webkit-transition: -webkit-transform 500ms, opacity 500ms; transition: transform 500ms, opacity 500ms; will-change: opacity; z-index: 1000; } /*-------------- Coupling ---------------*/ .ui.sidebar.menu .item { border-radius: 0em !important; } /******************************* States *******************************/ /*-------------- Dimmed ---------------*/ .pushable > .pusher.dimmed:after { width: 100% !important; height: 100% !important; opacity: 1 !important; } /*-------------- Animating ---------------*/ .ui.animating.sidebar { visibility: visible; } /*-------------- Visible ---------------*/ .ui.visible.sidebar { visibility: visible; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } /* Shadow Direction */ .ui.left.visible.sidebar, .ui.right.visible.sidebar { box-shadow: 0px 0px 20px rgba(39, 41, 43, 0.15); } .ui.top.visible.sidebar, .ui.bottom.visible.sidebar { box-shadow: 0px 0px 20px rgba(39, 41, 43, 0.15); } /* Visible On Load */ .ui.visible.left.sidebar ~ .fixed, .ui.visible.left.sidebar ~ .pusher { -webkit-transform: translate3d(260px, 0, 0); transform: translate3d(260px, 0, 0); } .ui.visible.right.sidebar ~ .fixed, .ui.visible.right.sidebar ~ .pusher { -webkit-transform: translate3d(-260px, 0, 0); transform: translate3d(-260px, 0, 0); } .ui.visible.top.sidebar ~ .fixed, .ui.visible.top.sidebar ~ .pusher { -webkit-transform: translate3d(0, 36px, 0); transform: translate3d(0, 36px, 0); } .ui.visible.bottom.sidebar ~ .fixed, .ui.visible.bottom.sidebar ~ .pusher { -webkit-transform: translate3d(0, -36px, 0); transform: translate3d(0, -36px, 0); } /* opposite sides visible forces content overlay */ .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .fixed, .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher, .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .fixed, .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } /*-------------- iOS ---------------*/ /* iOS incorrectly sizes document when content is presented outside of view with 2Dtranslate */ html.ios { overflow-x: hidden; -webkit-overflow-scrolling: touch; } /******************************* Variations *******************************/ /*-------------- Width ---------------*/ /* Left / Right */ .ui[class*="very thin"].left.sidebar, .ui[class*="very thin"].right.sidebar { width: 60px; } .ui.thin.left.sidebar, .ui.thin.right.sidebar { width: 150px; } .ui.left.sidebar, .ui.right.sidebar { width: 260px; } .ui.wide.left.sidebar, .ui.wide.right.sidebar { width: 350px; } .ui[class*="very wide"].left.sidebar, .ui[class*="very wide"].right.sidebar { width: 475px; } /* Left Visible */ .ui.visible[class*="very thin"].left.sidebar ~ .fixed, .ui.visible[class*="very thin"].left.sidebar ~ .pusher { -webkit-transform: translate3d(60px, 0, 0); transform: translate3d(60px, 0, 0); } .ui.visible.thin.left.sidebar ~ .fixed, .ui.visible.thin.left.sidebar ~ .pusher { -webkit-transform: translate3d(150px, 0, 0); transform: translate3d(150px, 0, 0); } .ui.visible.wide.left.sidebar ~ .fixed, .ui.visible.wide.left.sidebar ~ .pusher { -webkit-transform: translate3d(350px, 0, 0); transform: translate3d(350px, 0, 0); } .ui.visible[class*="very wide"].left.sidebar ~ .fixed, .ui.visible[class*="very wide"].left.sidebar ~ .pusher { -webkit-transform: translate3d(475px, 0, 0); transform: translate3d(475px, 0, 0); } /* Right Visible */ .ui.visible[class*="very thin"].right.sidebar ~ .fixed, .ui.visible[class*="very thin"].right.sidebar ~ .pusher { -webkit-transform: translate3d(-60px, 0, 0); transform: translate3d(-60px, 0, 0); } .ui.visible.thin.right.sidebar ~ .fixed, .ui.visible.thin.right.sidebar ~ .pusher { -webkit-transform: translate3d(-150px, 0, 0); transform: translate3d(-150px, 0, 0); } .ui.visible.wide.right.sidebar ~ .fixed, .ui.visible.wide.right.sidebar ~ .pusher { -webkit-transform: translate3d(-350px, 0, 0); transform: translate3d(-350px, 0, 0); } .ui.visible[class*="very wide"].right.sidebar ~ .fixed, .ui.visible[class*="very wide"].right.sidebar ~ .pusher { -webkit-transform: translate3d(-475px, 0, 0); transform: translate3d(-475px, 0, 0); } /******************************* Animations *******************************/ /*-------------- Overlay ---------------*/ /* Set-up */ .ui.overlay.sidebar { z-index: 102; } /* Initial */ .ui.left.overlay.sidebar { -webkit-transform: translate3d(-100%, 0%, 0); transform: translate3d(-100%, 0%, 0); } .ui.right.overlay.sidebar { -webkit-transform: translate3d(100%, 0%, 0); transform: translate3d(100%, 0%, 0); } .ui.top.overlay.sidebar { -webkit-transform: translate3d(0%, -100%, 0); transform: translate3d(0%, -100%, 0); } .ui.bottom.overlay.sidebar { -webkit-transform: translate3d(0%, 100%, 0); transform: translate3d(0%, 100%, 0); } /* Animation */ .animating.ui.overlay.sidebar, .ui.visible.overlay.sidebar { -webkit-transition: -webkit-transform 500ms ease; transition: transform 500ms ease; } /* End - Sidebar */ .ui.visible.left.overlay.sidebar { -webkit-transform: translate3d(0%, 0%, 0); transform: translate3d(0%, 0%, 0); } .ui.visible.right.overlay.sidebar { -webkit-transform: translate3d(0%, 0%, 0); transform: translate3d(0%, 0%, 0); } .ui.visible.top.overlay.sidebar { -webkit-transform: translate3d(0%, 0%, 0); transform: translate3d(0%, 0%, 0); } .ui.visible.bottom.overlay.sidebar { -webkit-transform: translate3d(0%, 0%, 0); transform: translate3d(0%, 0%, 0); } /* End - Pusher */ .ui.visible.overlay.sidebar ~ .fixed, .ui.visible.overlay.sidebar ~ .pusher { -webkit-transform: none !important; -ms-transform: none !important; transform: none !important; } /*-------------- Push ---------------*/ /* Initial */ .ui.push.sidebar { -webkit-transition: -webkit-transform 500ms ease; transition: transform 500ms ease; z-index: 102; } /* Sidebar - Initial */ .ui.left.push.sidebar { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } .ui.right.push.sidebar { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } .ui.top.push.sidebar { -webkit-transform: translate3d(0%, -100%, 0); transform: translate3d(0%, -100%, 0); } .ui.bottom.push.sidebar { -webkit-transform: translate3d(0%, 100%, 0); transform: translate3d(0%, 100%, 0); } /* End */ .ui.visible.push.sidebar { -webkit-transform: translate3d(0%, 0, 0); transform: translate3d(0%, 0, 0); } /*-------------- Uncover ---------------*/ /* Initial */ .ui.uncover.sidebar { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); z-index: 1; } /* End */ .ui.visible.uncover.sidebar { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-transition: -webkit-transform 500ms ease; transition: transform 500ms ease; } /*-------------- Slide Along ---------------*/ /* Initial */ .ui.slide.along.sidebar { z-index: 1; } /* Sidebar - Initial */ .ui.left.slide.along.sidebar { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); } .ui.right.slide.along.sidebar { -webkit-transform: translate3d(50%, 0, 0); transform: translate3d(50%, 0, 0); } .ui.top.slide.along.sidebar { -webkit-transform: translate3d(0, -50%, 0); transform: translate3d(0, -50%, 0); } .ui.bottom.slide.along.sidebar { -webkit-transform: translate3d(0%, 50%, 0); transform: translate3d(0%, 50%, 0); } /* Animation */ .ui.animating.slide.along.sidebar { -webkit-transition: -webkit-transform 500ms ease; transition: transform 500ms ease; } /* End */ .ui.visible.slide.along.sidebar { -webkit-transform: translate3d(0%, 0, 0); transform: translate3d(0%, 0, 0); } /*-------------- Slide Out ---------------*/ /* Initial */ .ui.slide.out.sidebar { z-index: 1; } /* Sidebar - Initial */ .ui.left.slide.out.sidebar { -webkit-transform: translate3d(50%, 0, 0); transform: translate3d(50%, 0, 0); } .ui.right.slide.out.sidebar { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); } .ui.top.slide.out.sidebar { -webkit-transform: translate3d(0%, 50%, 0); transform: translate3d(0%, 50%, 0); } .ui.bottom.slide.out.sidebar { -webkit-transform: translate3d(0%, -50%, 0); transform: translate3d(0%, -50%, 0); } /* Animation */ .ui.animating.slide.out.sidebar { -webkit-transition: -webkit-transform 500ms ease; transition: transform 500ms ease; } /* End */ .ui.visible.slide.out.sidebar { -webkit-transform: translate3d(0%, 0, 0); transform: translate3d(0%, 0, 0); } /*-------------- Scale Down ---------------*/ /* Initial */ .ui.scale.down.sidebar { -webkit-transition: -webkit-transform 500ms ease; transition: transform 500ms ease; z-index: 102; } /* Sidebar - Initial */ .ui.left.scale.down.sidebar { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } .ui.right.scale.down.sidebar { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } .ui.top.scale.down.sidebar { -webkit-transform: translate3d(0%, -100%, 0); transform: translate3d(0%, -100%, 0); } .ui.bottom.scale.down.sidebar { -webkit-transform: translate3d(0%, 100%, 0); transform: translate3d(0%, 100%, 0); } /* Pusher - Initial */ .ui.scale.down.left.sidebar ~ .pusher { -webkit-transform-origin: 75% 50%; -ms-transform-origin: 75% 50%; transform-origin: 75% 50%; } .ui.scale.down.right.sidebar ~ .pusher { -webkit-transform-origin: 25% 50%; -ms-transform-origin: 25% 50%; transform-origin: 25% 50%; } .ui.scale.down.top.sidebar ~ .pusher { -webkit-transform-origin: 50% 75%; -ms-transform-origin: 50% 75%; transform-origin: 50% 75%; } .ui.scale.down.bottom.sidebar ~ .pusher { -webkit-transform-origin: 50% 25%; -ms-transform-origin: 50% 25%; transform-origin: 50% 25%; } /* Animation */ .ui.animating.scale.down > .visible.ui.sidebar { -webkit-transition: -webkit-transform 500ms ease; transition: transform 500ms ease; } .ui.visible.scale.down.sidebar ~ .pusher, .ui.animating.scale.down.sidebar ~ .pusher { display: block !important; width: 100%; height: 100%; overflow: hidden; } /* End */ .ui.visible.scale.down.sidebar { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } .ui.visible.scale.down.sidebar ~ .pusher { -webkit-transform: scale(0.75); -ms-transform: scale(0.75); transform: scale(0.75); } /******************************* Theme Overrides *******************************/ /******************************* Site Overrides *******************************/
Teino1978-Corp/Teino1978-Corp-cdnjs
ajax/libs/semantic-ui/1.12.0/components/sidebar.css
CSS
mit
14,611
/*! * # Semantic UI 1.12.0 - Visibility * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ( $, window, document, undefined ) { "use strict"; $.fn.visibility = function(parameters) { var $allModules = $(this), moduleSelector = $allModules.selector || '', time = new Date().getTime(), performance = [], query = arguments[0], methodInvoked = (typeof query == 'string'), queryArguments = [].slice.call(arguments, 1), returnedValue ; $allModules .each(function() { var settings = ( $.isPlainObject(parameters) ) ? $.extend(true, {}, $.fn.visibility.settings, parameters) : $.extend({}, $.fn.visibility.settings), className = settings.className, namespace = settings.namespace, error = settings.error, eventNamespace = '.' + namespace, moduleNamespace = 'module-' + namespace, $window = $(window), $module = $(this), $context = $(settings.context), selector = $module.selector || '', instance = $module.data(moduleNamespace), requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) { setTimeout(callback, 0); }, element = this, observer, module ; module = { initialize: function() { module.debug('Initializing', settings); module.setup.cache(); module.save.position(); if( module.should.trackChanges() ) { module.bind.events(); if(settings.type == 'image') { module.setup.image(); } if(settings.type == 'fixed') { module.setup.fixed(); } if(settings.observeChanges) { module.observeChanges(); } if( !module.is.visible() ) { module.error(error.visible, $module); } } if(settings.initialCheck) { module.checkVisibility(); } module.instantiate(); }, instantiate: function() { module.debug('Storing instance', module); $module .data(moduleNamespace, module) ; instance = module; }, destroy: function() { module.verbose('Destroying previous module'); if(observer) { observer.disconnect(); } $window .off('load' + eventNamespace, module.event.load) .off('resize' + eventNamespace, module.event.resize) ; $context.off('scrollchange' + eventNamespace, module.event.scrollchange); $module .off(eventNamespace) .removeData(moduleNamespace) ; }, observeChanges: function() { var context = $context[0] ; if('MutationObserver' in window) { observer = new MutationObserver(function(mutations) { module.verbose('DOM tree modified, updating visibility calculations'); module.timer = setTimeout(function() { module.verbose('DOM tree modified, updating sticky menu'); module.refresh(); }, 100); }); observer.observe(element, { childList : true, subtree : true }); module.debug('Setting up mutation observer', observer); } }, bind: { events: function() { module.verbose('Binding visibility events to scroll and resize'); $window .on('load' + eventNamespace, module.event.load) .on('resize' + eventNamespace, module.event.resize) ; // pub/sub pattern $context .off('scroll' + eventNamespace) .on('scroll' + eventNamespace, module.event.scroll) .on('scrollchange' + eventNamespace, module.event.scrollchange) ; }, imageLoad: function() { var $images = $module.find('img'), imageCount = $images.length, index = imageCount, loadedCount = 0, images = [], cache = [], cacheImage = document.createElement('img'), handleLoad = function() { loadedCount++; if(loadedCount >= imageCount) { module.debug('Images finished loading inside element, refreshing position'); module.refresh(); } } ; if(imageCount > 0) { $images .each(function() { images.push( $(this).attr('src') ); }) ; while(index--) { cacheImage = document.createElement('img'); cacheImage.onload = handleLoad; cacheImage.onerror = handleLoad; cacheImage.src = images[index]; cache.push(cacheImage); } } } }, event: { resize: function() { module.debug('Window resized'); requestAnimationFrame(module.refresh); }, load: function() { module.debug('Page finished loading'); requestAnimationFrame(module.refresh); }, // publishes scrollchange event on one scroll scroll: function() { if(settings.throttle) { clearTimeout(module.timer); module.timer = setTimeout(function() { $context.trigger('scrollchange' + eventNamespace, [ $context.scrollTop() ]); }, settings.throttle); } else { requestAnimationFrame(function() { $context.trigger('scrollchange' + eventNamespace, [ $context.scrollTop() ]); }); } }, // subscribes to scrollchange scrollchange: function(event, scrollPosition) { module.checkVisibility(scrollPosition); }, }, precache: function(images, callback) { if (!(images instanceof Array)) { images = [images]; } var imagesLength = images.length, loadedCounter = 0, cache = [], cacheImage = document.createElement('img'), handleLoad = function() { loadedCounter++; if (loadedCounter >= images.length) { if ($.isFunction(callback)) { callback(); } } } ; while (imagesLength--) { cacheImage = document.createElement('img'); cacheImage.onload = handleLoad; cacheImage.onerror = handleLoad; cacheImage.src = images[imagesLength]; cache.push(cacheImage); } }, should: { trackChanges: function() { if(methodInvoked) { module.debug('One time query, no need to bind events'); return false; } module.debug('Callbacks being attached'); return true; } }, setup: { cache: function() { module.cache = { occurred : {}, screen : {}, element : {}, }; }, image: function() { var src = $module.data('src') ; if(src) { module.verbose('Lazy loading image', src); settings.observeChanges = false; // show when top visible module.topVisible(function() { module.debug('Image top visible', element); module.precache(src, function() { module.set.image(src); settings.onTopVisible = false; }); }); } }, fixed: function() { module.verbose('Setting up fixed on element pass'); settings.once = false; settings.onTopPassed = function() { $module .addClass(className.fixed) .css({ top: settings.offset + 'px' }) ; if(settings.transition) { if($.fn.transition !== undefined) { $module.transition(settings.transition, settings.duration); } } }; settings.onTopPassedReverse = function() { $module .removeClass(className.fixed) .css({ position: '', top: '' }) ; }; } }, set: { image: function(src) { var offScreen = (module.cache.screen.bottom < module.cache.element.top) ; $module .attr('src', src) ; if(offScreen) { module.verbose('Image outside browser, no show animation'); $module.show(); } else { if(settings.transition) { if( $.fn.transition !== undefined ) { $module.transition(settings.transition, settings.duration); } else { $module.fadeIn(settings.duration); } } else { $module.show(); } } } }, is: { visible: function() { if(module.cache && module.cache.element) { return (module.cache.element.width > 0); } return false; } }, refresh: function() { module.debug('Refreshing constants (width/height)'); module.reset(); module.save.position(); module.checkVisibility(); settings.onRefresh.call(element); }, reset: function() { module.verbose('Reseting all cached values'); if( $.isPlainObject(module.cache) ) { module.cache.screen = {}; module.cache.element = {}; } }, checkVisibility: function(scroll) { module.verbose('Checking visibility of element', module.cache.element); if( module.is.visible() ) { // save scroll position module.save.scroll(scroll); // update calculations derived from scroll module.save.calculations(); // percentage module.passed(); // reverse (must be first) module.passingReverse(); module.topVisibleReverse(); module.bottomVisibleReverse(); module.topPassedReverse(); module.bottomPassedReverse(); // one time module.passing(); module.topVisible(); module.bottomVisible(); module.topPassed(); module.bottomPassed(); // on update callback if(settings.onUpdate) { settings.onUpdate.call(element, module.get.elementCalculations()); } } }, passed: function(amount, newCallback) { var calculations = module.get.elementCalculations(), amountInPixels ; // assign callback if(amount !== undefined && newCallback !== undefined) { settings.onPassed[amount] = newCallback; } else if(amount !== undefined) { return (module.get.pixelsPassed(amount) > calculations.pixelsPassed); } else if(calculations.passing) { $.each(settings.onPassed, function(amount, callback) { if(calculations.bottomVisible || calculations.pixelsPassed > module.get.pixelsPassed(amount)) { module.execute(callback, amount); } else if(!settings.once) { module.remove.occurred(callback); } }); } }, passing: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onPassing, callbackName = 'passing' ; if(newCallback) { module.debug('Adding callback for passing', newCallback); settings.onPassing = newCallback; } if(calculations.passing) { module.execute(callback, callbackName); } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback !== undefined) { return calculations.passing; } }, topVisible: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onTopVisible, callbackName = 'topVisible' ; if(newCallback) { module.debug('Adding callback for top visible', newCallback); settings.onTopVisible = newCallback; } if(calculations.topVisible) { module.execute(callback, callbackName); } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback === undefined) { return calculations.topVisible; } }, bottomVisible: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onBottomVisible, callbackName = 'bottomVisible' ; if(newCallback) { module.debug('Adding callback for bottom visible', newCallback); settings.onBottomVisible = newCallback; } if(calculations.bottomVisible) { module.execute(callback, callbackName); } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback === undefined) { return calculations.bottomVisible; } }, topPassed: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onTopPassed, callbackName = 'topPassed' ; if(newCallback) { module.debug('Adding callback for top passed', newCallback); settings.onTopPassed = newCallback; } if(calculations.topPassed) { module.execute(callback, callbackName); } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback === undefined) { return calculations.topPassed; } }, bottomPassed: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onBottomPassed, callbackName = 'bottomPassed' ; if(newCallback) { module.debug('Adding callback for bottom passed', newCallback); settings.onBottomPassed = newCallback; } if(calculations.bottomPassed) { module.execute(callback, callbackName); } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback === undefined) { return calculations.bottomPassed; } }, passingReverse: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onPassingReverse, callbackName = 'passingReverse' ; if(newCallback) { module.debug('Adding callback for passing reverse', newCallback); settings.onPassingReverse = newCallback; } if(!calculations.passing) { if(module.get.occurred('passing')) { module.execute(callback, callbackName); } } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback !== undefined) { return !calculations.passing; } }, topVisibleReverse: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onTopVisibleReverse, callbackName = 'topVisibleReverse' ; if(newCallback) { module.debug('Adding callback for top visible reverse', newCallback); settings.onTopVisibleReverse = newCallback; } if(!calculations.topVisible) { if(module.get.occurred('topVisible')) { module.execute(callback, callbackName); } } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback === undefined) { return !calculations.topVisible; } }, bottomVisibleReverse: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onBottomVisibleReverse, callbackName = 'bottomVisibleReverse' ; if(newCallback) { module.debug('Adding callback for bottom visible reverse', newCallback); settings.onBottomVisibleReverse = newCallback; } if(!calculations.bottomVisible) { if(module.get.occurred('bottomVisible')) { module.execute(callback, callbackName); } } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback === undefined) { return !calculations.bottomVisible; } }, topPassedReverse: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onTopPassedReverse, callbackName = 'topPassedReverse' ; if(newCallback) { module.debug('Adding callback for top passed reverse', newCallback); settings.onTopPassedReverse = newCallback; } if(!calculations.topPassed) { if(module.get.occurred('topPassed')) { module.execute(callback, callbackName); } } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback === undefined) { return !calculations.onTopPassed; } }, bottomPassedReverse: function(newCallback) { var calculations = module.get.elementCalculations(), callback = newCallback || settings.onBottomPassedReverse, callbackName = 'bottomPassedReverse' ; if(newCallback) { module.debug('Adding callback for bottom passed reverse', newCallback); settings.onBottomPassedReverse = newCallback; } if(!calculations.bottomPassed) { if(module.get.occurred('bottomPassed')) { module.execute(callback, callbackName); } } else if(!settings.once) { module.remove.occurred(callbackName); } if(newCallback === undefined) { return !calculations.bottomPassed; } }, execute: function(callback, callbackName) { var calculations = module.get.elementCalculations(), screen = module.get.screenCalculations() ; callback = callback || false; if(callback) { if(settings.continuous) { module.debug('Callback being called continuously', callbackName, calculations); callback.call(element, calculations, screen); } else if(!module.get.occurred(callbackName)) { module.debug('Conditions met', callbackName, calculations); callback.call(element, calculations, screen); } } module.save.occurred(callbackName); }, remove: { occurred: function(callback) { if(callback) { if(module.cache.occurred[callback] !== undefined && module.cache.occurred[callback] === true) { module.debug('Callback can now be called again', callback); module.cache.occurred[callback] = false; } } else { module.cache.occurred = {}; } } }, save: { calculations: function() { module.verbose('Saving all calculations necessary to determine positioning'); module.save.direction(); module.save.screenCalculations(); module.save.elementCalculations(); }, occurred: function(callback) { if(callback) { if(module.cache.occurred[callback] === undefined || (module.cache.occurred[callback] !== true)) { module.verbose('Saving callback occurred', callback); module.cache.occurred[callback] = true; } } }, scroll: function(scrollPosition) { scrollPosition = scrollPosition + settings.offset || $context.scrollTop() + settings.offset; module.cache.scroll = scrollPosition; }, direction: function() { var scroll = module.get.scroll(), lastScroll = module.get.lastScroll(), direction ; if(scroll > lastScroll && lastScroll) { direction = 'down'; } else if(scroll < lastScroll && lastScroll) { direction = 'up'; } else { direction = 'static'; } module.cache.direction = direction; return module.cache.direction; }, elementPosition: function() { var element = module.cache.element, screen = module.get.screenSize() ; module.verbose('Saving element position'); // (quicker than $.extend) element.fits = (element.height < screen.height); element.offset = $module.offset(); element.width = $module.outerWidth(); element.height = $module.outerHeight(); // store module.cache.element = element; return element; }, elementCalculations: function() { var screen = module.get.screenCalculations(), element = module.get.elementPosition() ; // offset if(settings.includeMargin) { element.margin = {}; element.margin.top = parseInt($module.css('margin-top'), 10); element.margin.bottom = parseInt($module.css('margin-bottom'), 10); element.top = element.offset.top - element.margin.top; element.bottom = element.offset.top + element.height + element.margin.bottom; } else { element.top = element.offset.top; element.bottom = element.offset.top + element.height; } // visibility element.topVisible = (screen.bottom >= element.top); element.topPassed = (screen.top >= element.top); element.bottomVisible = (screen.bottom >= element.bottom); element.bottomPassed = (screen.top >= element.bottom); element.pixelsPassed = 0; element.percentagePassed = 0; // meta calculations element.visible = (element.topVisible || element.bottomVisible); element.passing = (element.topPassed && !element.bottomPassed); element.hidden = (!element.topVisible && !element.bottomVisible); // passing calculations if(element.passing) { element.pixelsPassed = (screen.top - element.top); element.percentagePassed = (screen.top - element.top) / element.height; } module.cache.element = element; module.verbose('Updated element calculations', element); return element; }, screenCalculations: function() { var scroll = module.get.scroll() ; module.save.direction(); module.cache.screen.top = scroll; module.cache.screen.bottom = scroll + module.cache.screen.height; return module.cache.screen; }, screenSize: function() { module.verbose('Saving window position'); module.cache.screen = { height: $context.height() }; }, position: function() { module.save.screenSize(); module.save.elementPosition(); } }, get: { pixelsPassed: function(amount) { var element = module.get.elementCalculations() ; if(amount.search('%') > -1) { return ( element.height * (parseInt(amount, 10) / 100) ); } return parseInt(amount, 10); }, occurred: function(callback) { return (module.cache.occurred !== undefined) ? module.cache.occurred[callback] || false : false ; }, direction: function() { if(module.cache.direction === undefined) { module.save.direction(); } return module.cache.direction; }, elementPosition: function() { if(module.cache.element === undefined) { module.save.elementPosition(); } return module.cache.element; }, elementCalculations: function() { if(module.cache.element === undefined) { module.save.elementCalculations(); } return module.cache.element; }, screenCalculations: function() { if(module.cache.screen === undefined) { module.save.screenCalculations(); } return module.cache.screen; }, screenSize: function() { if(module.cache.screen === undefined) { module.save.screenSize(); } return module.cache.screen; }, scroll: function() { if(module.cache.scroll === undefined) { module.save.scroll(); } return module.cache.scroll; }, lastScroll: function() { if(module.cache.screen === undefined) { module.debug('First scroll event, no last scroll could be found'); return false; } return module.cache.screen.top; } }, setting: function(name, value) { if( $.isPlainObject(name) ) { $.extend(true, settings, name); } else if(value !== undefined) { settings[name] = value; } else { return settings[name]; } }, internal: function(name, value) { if( $.isPlainObject(name) ) { $.extend(true, module, name); } else if(value !== undefined) { module[name] = value; } else { return module[name]; } }, debug: function() { if(settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.debug.apply(console, arguments); } } }, verbose: function() { if(settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.verbose.apply(console, arguments); } } }, error: function() { module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); module.error.apply(console, arguments); }, performance: { log: function(message) { var currentTime, executionTime, previousTime ; if(settings.performance) { currentTime = new Date().getTime(); previousTime = time || currentTime; executionTime = currentTime - previousTime; time = currentTime; performance.push({ 'Name' : message[0], 'Arguments' : [].slice.call(message, 1) || '', 'Element' : element, 'Execution Time' : executionTime }); } clearTimeout(module.performance.timer); module.performance.timer = setTimeout(module.performance.display, 500); }, display: function() { var title = settings.name + ':', totalTime = 0 ; time = false; clearTimeout(module.performance.timer); $.each(performance, function(index, data) { totalTime += data['Execution Time']; }); title += ' ' + totalTime + 'ms'; if(moduleSelector) { title += ' \'' + moduleSelector + '\''; } if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { console.groupCollapsed(title); if(console.table) { console.table(performance); } else { $.each(performance, function(index, data) { console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); }); } console.groupEnd(); } performance = []; } }, invoke: function(query, passedArguments, context) { var object = instance, maxDepth, found, response ; passedArguments = passedArguments || queryArguments; context = element || context; if(typeof query == 'string' && object !== undefined) { query = query.split(/[\. ]/); maxDepth = query.length - 1; $.each(query, function(depth, value) { var camelCaseValue = (depth != maxDepth) ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) : query ; if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { object = object[camelCaseValue]; } else if( object[camelCaseValue] !== undefined ) { found = object[camelCaseValue]; return false; } else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { object = object[value]; } else if( object[value] !== undefined ) { found = object[value]; return false; } else { module.error(error.method, query); return false; } }); } if ( $.isFunction( found ) ) { response = found.apply(context, passedArguments); } else if(found !== undefined) { response = found; } if($.isArray(returnedValue)) { returnedValue.push(response); } else if(returnedValue !== undefined) { returnedValue = [returnedValue, response]; } else if(response !== undefined) { returnedValue = response; } return found; } }; if(methodInvoked) { if(instance === undefined) { module.initialize(); } module.invoke(query); } else { if(instance !== undefined) { instance.invoke('destroy'); } module.initialize(); } }) ; return (returnedValue !== undefined) ? returnedValue : this ; }; $.fn.visibility.settings = { name : 'Visibility', namespace : 'visibility', debug : false, verbose : false, performance : true, // whether to use mutation observers to follow changes observeChanges : true, // whether to refresh calculations after all page images load refreshOnLoad : true, // callback should only occur one time once : true, // callback should fire continuously whe evaluates to true continuous : false, // offset to use with scroll top offset : 0, // whether to include margin in elements position includeMargin : false, // scroll context for visibility checks context : window, // check position immediately on init initialCheck : true, // visibility check delay in ms (defaults to animationFrame) throttle : false, // special visibility type (image, fixed) type : false, // image only animation settings transition : false, duration : 1000, // array of callbacks for percentage onPassed : {}, // standard callbacks onPassing : false, onTopVisible : false, onBottomVisible : false, onTopPassed : false, onBottomPassed : false, // reverse callbacks onPassingReverse : false, onTopVisibleReverse : false, onBottomVisibleReverse : false, onTopPassedReverse : false, onBottomPassedReverse : false, // utility callbacks onUpdate : false, // disabled by default for performance onRefresh : function(){}, className: { fixed: 'fixed' }, error : { method : 'The method you called is not defined.', visible : 'Element is hidden, you must call refresh after element becomes visible' } }; })( jQuery, window , document );
2947721120/cdnjs
ajax/libs/semantic-ui/1.12.0/components/visibility.js
JavaScript
mit
35,963
OpenLayers.Lang.ksh=OpenLayers.Util.applyDefaults({unhandledRequest:"Met dä Antwoot op en Aanfrooch ham_mer nix aanjefange: ${statusText}",Permalink:"Lengk op Duuer",Overlays:"Drövver jelaat","Base Layer":"Jrund-Nivoh",noFID:'En Saach, woh kein <i lang="en">FID</i> för doh es, löht sesch nit ändere.',browserNotSupported:"Dinge Brauser kann kein Väktore ußjävve. De Zoote Ußjaabe, di em Momang jon, sen:\n${renderers}",minZoomLevelError:'De Eijeschaff „<code lang="en">minZoomLevel</code>“ es bloß doför jedaach, dat mer se met dä Nivvohß bruch, di vun <code lang="en">FixedZoomLevels</code> affhange don. Dat dat <i lang="en">WFS</i>-Nivvoh övverhoup de Eijeschaff „<code lang="en">minZoomLevel</code>“ pröhfe deiht, es noch övveresch vun fröhjer. Mer künne dat ävver jez nit fott lohße, oohne dat mer Jevaa loufe, dat Aanwendunge vun OpenLayers nit mieh loufe, di sesch doh velleijsch noch drop am verlohße sin. Dröm sare mer, dat mer et nit mieh han welle, un de „<code lang="en">minZoomLevel</code>“-Eijeschaff weed hee vun de Version 3.0 af nit mieh jeprööf wäde. Nemm doför de Enstellung för de hühßte un de kleinßte Oplöhsung, esu wi et en http://trac.openlayers.org/wiki/SettingZoomLevels opjeschrevve es.',commitSuccess:'Dä <i lang="en">WFS</i>-Vörjang es joot jeloufe: ${response}',commitFailed:'Dä <i lang="en">WFS</i>-Vörjang es scheif jejange: ${response}',googleWarning:'Dat Nivvoh <code lang="en">Google</code> kunnt nit reschtesch jelaade wääde.<br /><br />Öm hee di Nohreesch loß ze krijje, donn en ander Jrund-Nivvoh ußsöhke, rähß bovve en de Äk.<br /><br />Wascheinlesch es dat wiel dat <i lang="en">Google-Maps</i>-Skrepp entweeder nit reschtesch enjebonge wood, udder nit dä reschtejje <i lang="en">API</i>-Schlößel för Ding Web-ßait scheke deiht.<br /><br />För Projrammierer jidd_et Hölp do_drövver, <a href="http://trac.openlayers.org/wiki/Google" target="_blank">wi mer dat aan et Loufe brengk</a>.',getLayerWarning:'Dat Nivvoh <code>${layerType}</code> kunnt nit reschtesch jelaade wääde.<br /><br />Öm hee di Nohreesch loß ze krijje, donn en ander Jrund-Nivvoh ußsöhkre, rähß bovve en de Äk.<br /><br />Wascheinlesch es dat, wiel dat Skrepp <code>${layerLib}</code> nit reschtesch enjebonge wood.<br /><br />För Projrammierer jidd_Et Hölp do_drövver, <a href="http://trac.openlayers.org/wiki/${layerLib}" target="_blank">wi mer dat aan et Loufe brengk</a>.',"Scale = 1 : ${scaleDenom}":"Mohßshtaab = 1 : ${scaleDenom}",W:"W",E:"O",N:"N",S:"S",reprojectDeprecated:"Do bruchs de Ußwahl <code>reproject</code> op däm Nivvoh <code>${layerName}</code>. Di Ußwahl es nit mieh jähn jesinn. Se wohr doför jedaach, öm Date op jeschääfsmäßesch eruß jejovve Kaate bovve drop ze moole, wat ävver enzwesche besser met dä Öngershtözung för de ßfääresche Mäkaator Beldscher jeiht. Doh kanns De mieh drövver fenge op dä Sigg: http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"Hee di Metood es nim_mih aktoäll un et weed se en dä Version 3.0 nit mieh jävve. Nemm <code>${newMethod}</code> doföör."});
spicyj/cdnjs
ajax/libs/openlayers/2.12/lib/OpenLayers/Lang/ksh.min.js
JavaScript
mit
3,135
OpenLayers.Lang["zh-TW"]={unhandledRequest:"未處理的請求,傳回值為 ${statusText}。",Permalink:"永久連結",Overlays:"額外圖層","Base Layer":"基礎圖層",noFID:"因為沒有 FID 所以無法更新 feature。",browserNotSupported:"您的瀏覽器未支援向量渲染. 目前支援的渲染方式是:\n${renderers}",minZoomLevelError:"minZoomLevel 屬性僅適合用在 FixedZoomLevels-descendent 類型的圖層. 這個wfs layer 的 minZoomLevel 是過去所遺留下來的,然而我們不能移除它而不讓它將過去的程式相容性給破壞掉。因此我們將會迴避使用它 -- minZoomLevel 會在3.0被移除,請改用在這邊描述的 min/max resolution 設定: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"WFS Transaction: 成功 ${response}",commitFailed:"WFS Transaction: 失敗 ${response}",googleWarning:"The Google Layer 圖層無法被正確的載入。<br><br>要迴避這個訊息, 請在右上角的圖層改變器裡,選一個新的基礎圖層。<br><br>很有可能是因為 Google Maps 的函式庫腳本沒有被正確的置入,或沒有包含 您網站上正確的 API key <br><br>開發者: 要幫助這個行為正確完成,<a href='http://trac.openlayers.org/wiki/Google' target='_blank'>請按這裡</a>",getLayerWarning:"${layerType} 圖層無法被正確的載入。<br><br>要迴避這個訊息, 請在右上角的圖層改變器裡,選一個新的基礎圖層。<br><br>很有可能是因為 ${layerLib} 的函式庫腳本沒有被正確的置入。<br><br>開發者: 要幫助這個行為正確完成,<a href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'>請按這裡</a>","Scale = 1 : ${scaleDenom}":"Scale = 1 : ${scaleDenom}",reprojectDeprecated:"你正使用 'reproject' 這個選項 在 ${layerName} 層。這個選項已經不再使用:它的使用原本是設計用來支援在商業地圖上秀出資料,但這個功能已經被Spherical Mercator所取代。更多的資訊可以在 http://trac.openlayers.org/wiki/SphericalMercator 找到。",methodDeprecated:"這個方法已經不再使用且在3.0將會被移除,請使用 ${newMethod} 來代替。",end:""};
jacoborus/cdnjs
ajax/libs/openlayers/2.12/lib/OpenLayers/Lang/zh-TW.min.js
JavaScript
mit
2,186
/* * /MathJax/localization/en/MathMenu.js * * Copyright (c) 2009-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */ MathJax.Localization.addTranslation("en","MathMenu",{version:"2.2",isLoaded:true,strings:{Show:"Show Math As",MathMLcode:"MathML Code",OriginalMathML:"Original MathML",TeXCommands:"TeX Commands",AsciiMathInput:"AsciiMathML input",Original:"Original Form",ErrorMessage:"Error Message",texHints:"Show TeX hints in MathML",Settings:"Math Settings",ZoomTrigger:"Zoom Trigger",Hover:"Hover",Click:"Click",DoubleClick:"Double-Click",NoZoom:"No Zoom",TriggerRequires:"Trigger Requires:",Option:"Option",Alt:"Alt",Command:"Command",Control:"Control",Shift:"Shift",ZoomFactor:"Zoom Factor",Renderer:"Math Renderer",MPHandles:"Let MathPlayer Handle:",MenuEvents:"Menu Events",MouseEvents:"Mouse Events",MenuAndMouse:"Mouse and Menu Events",FontPrefs:"Font Preferences",ForHTMLCSS:"For HTML-CSS:",Auto:"Auto",TeXLocal:"TeX (local)",TeXWeb:"TeX (web)",TeXImage:"TeX (image)",STIXLocal:"STIX (local)",ContextMenu:"Contextual Menu",Browser:"Browser",Scale:"Scale All Math ...",Discoverable:"Highlight on Hover",Locale:"Language",LoadLocale:"Load from URL ...",About:"About MathJax",Help:"MathJax Help",localTeXfonts:"using local TeX fonts",webTeXfonts:"using web TeX font",imagefonts:"using Image fonts",localSTIXfonts:"using local STIX fonts",webSVGfonts:"using web SVG fonts",genericfonts:"using generic unicode fonts",wofforotffonts:"woff or otf fonts",eotffonts:"eot fonts",svgfonts:"svg fonts",WebkitNativeMMLWarning:"Your browser doesn't seem to support MathML natively, so switching to MathML output may cause the mathematics on the page to become unreadable.",MSIENativeMMLWarning:"Internet Explorer requires the MathPlayer plugin in order to process MathML output.",OperaNativeMMLWarning:"Opera's support for MathML is limited, so switching to MathML output may cause some expressions to render poorly.",SafariNativeMMLWarning:"Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly.",FirefoxNativeMMLWarning:"Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly.",MSIESVGWarning:"SVG is not implemented in Internet Explorer prior to IE9 or when it is emulating IE8 or below. Switching to SVG output will cause the mathematics to not display properly.",LoadURL:"Load translation data from this URL:",BadURL:"The URL should be for a javascript file that defines MathJax translation data. Javascript file names should end with '.js'",BadData:"Failed to load translation data from %1",SwitchAnyway:"Switch the renderer anyway?\n\n(Press OK to switch, CANCEL to continue with the current renderer)",ScaleMath:"Scale all mathematics (compared to surrounding text) by",NonZeroScale:"The scale should not be zero",PercentScale:"The scale should be a percentage (e.g., 120%%)",IE8warning:"This will disable the MathJax menu and zoom features, but you can Alt-Click on an expression to obtain the MathJax menu instead.\n\nReally change the MathPlayer settings?",IE9warning:"The MathJax contextual menu will be disabled, but you can Alt-Click on an expression to obtain the MathJax menu instead.",NoOriginalForm:"No original form available",Close:"Close",EqSource:"MathJax Equation Source"}});MathJax.Ajax.loadComplete("[MathJax]/localization/en/MathMenu.js");
vetruvet/cdnjs
ajax/libs/mathjax/2.2/localization/en/MathMenu.js
JavaScript
mit
3,656
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("clike", function(config, parserConfig) { var indentUnit = config.indentUnit, statementIndentUnit = parserConfig.statementIndentUnit || indentUnit, dontAlignCalls = parserConfig.dontAlignCalls, keywords = parserConfig.keywords || {}, builtin = parserConfig.builtin || {}, blockKeywords = parserConfig.blockKeywords || {}, atoms = parserConfig.atoms || {}, hooks = parserConfig.hooks || {}, multiLineStrings = parserConfig.multiLineStrings, indentStatements = parserConfig.indentStatements !== false; var isOperatorChar = /[+\-*&%=<>!?|\/]/; var curPunc; function tokenBase(stream, state) { var ch = stream.next(); if (hooks[ch]) { var result = hooks[ch](stream, state); if (result !== false) return result; } if (ch == '"' || ch == "'") { state.tokenize = tokenString(ch); return state.tokenize(stream, state); } if (/[\[\]{}\(\),;\:\.]/.test(ch)) { curPunc = ch; return null; } if (/\d/.test(ch)) { stream.eatWhile(/[\w\.]/); return "number"; } if (ch == "/") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\$_\xa1-\uffff]/); var cur = stream.current(); if (keywords.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; return "keyword"; } if (builtin.propertyIsEnumerable(cur)) { if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement"; return "builtin"; } if (atoms.propertyIsEnumerable(cur)) return "atom"; return "variable"; } function tokenString(quote) { return function(stream, state) { var escaped = false, next, end = false; while ((next = stream.next()) != null) { if (next == quote && !escaped) {end = true; break;} escaped = !escaped && next == "\\"; } if (end || !(escaped || multiLineStrings)) state.tokenize = null; return "string"; }; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if (ch == "/" && maybeEnd) { state.tokenize = null; break; } maybeEnd = (ch == "*"); } return "comment"; } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { var indent = state.indented; if (state.context && state.context.type == "statement") indent = state.context.indented; return state.context = new Context(indent, col, type, null, state.context); } function popContext(state) { var t = state.context.type; if (t == ")" || t == "]" || t == "}") state.indented = state.context.indented; return state.context = state.context.prev; } // Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), indented: 0, startOfLine: true }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) return null; curPunc = null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment" || style == "meta") return style; if (ctx.align == null) ctx.align = true; if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement") popContext(state); else if (curPunc == "{") pushContext(state, stream.column(), "}"); else if (curPunc == "[") pushContext(state, stream.column(), "]"); else if (curPunc == "(") pushContext(state, stream.column(), ")"); else if (curPunc == "}") { while (ctx.type == "statement") ctx = popContext(state); if (ctx.type == "}") ctx = popContext(state); while (ctx.type == "statement") ctx = popContext(state); } else if (curPunc == ctx.type) popContext(state); else if (indentStatements && (((ctx.type == "}" || ctx.type == "top") && curPunc != ';') || (ctx.type == "statement" && curPunc == "newstatement"))) pushContext(state, stream.column(), "statement"); state.startOfLine = false; return style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase && state.tokenize != null) return CodeMirror.Pass; var ctx = state.context, firstChar = textAfter && textAfter.charAt(0); if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev; var closing = firstChar == ctx.type; if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit); else if (ctx.align && (!dontAlignCalls || ctx.type != ")")) return ctx.column + (closing ? 0 : 1); else if (ctx.type == ")" && !closing) return ctx.indented + statementIndentUnit; else return ctx.indented + (closing ? 0 : indentUnit); }, electricChars: "{}", blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//", fold: "brace" }; }); function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var cKeywords = "auto if break int case long char register continue return default short do sizeof " + "double static else struct entry switch extern typedef float union for unsigned " + "goto while enum void const signed volatile"; function cppHook(stream, state) { if (!state.startOfLine) return false; for (;;) { if (stream.skipTo("\\")) { stream.next(); if (stream.eol()) { state.tokenize = cppHook; break; } } else { stream.skipToEnd(); state.tokenize = null; break; } } return "meta"; } function cpp11StringHook(stream, state) { stream.backUp(1); // Raw strings. if (stream.match(/(R|u8R|uR|UR|LR)/)) { var match = stream.match(/"([^\s\\()]{0,16})\(/); if (!match) { return false; } state.cpp11RawStringDelim = match[1]; state.tokenize = tokenRawString; return tokenRawString(stream, state); } // Unicode strings/chars. if (stream.match(/(u8|u|U|L)/)) { if (stream.match(/["']/, /* eat */ false)) { return "string"; } return false; } // Ignore this hook. stream.next(); return false; } // C#-style strings where "" escapes a quote. function tokenAtString(stream, state) { var next; while ((next = stream.next()) != null) { if (next == '"' && !stream.eat('"')) { state.tokenize = null; break; } } return "string"; } // C++11 raw string literal is <prefix>"<delim>( anything )<delim>", where // <delim> can be a string up to 16 characters long. function tokenRawString(stream, state) { // Escape characters that have special regex meanings. var delim = state.cpp11RawStringDelim.replace(/[^\w\s]/g, '\\$&'); var match = stream.match(new RegExp(".*?\\)" + delim + '"')); if (match) state.tokenize = null; else stream.skipToEnd(); return "string"; } function def(mimes, mode) { if (typeof mimes == "string") mimes = [mimes]; var words = []; function add(obj) { if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop)) words.push(prop); } add(mode.keywords); add(mode.builtin); add(mode.atoms); if (words.length) { mode.helperType = mimes[0]; CodeMirror.registerHelper("hintWords", mimes[0], words); } for (var i = 0; i < mimes.length; ++i) CodeMirror.defineMIME(mimes[i], mode); } def(["text/x-csrc", "text/x-c", "text/x-chdr"], { name: "clike", keywords: words(cKeywords), blockKeywords: words("case do else for if switch while struct"), atoms: words("null"), hooks: {"#": cppHook}, modeProps: {fold: ["brace", "include"]} }); def(["text/x-c++src", "text/x-c++hdr"], { name: "clike", keywords: words(cKeywords + " asm dynamic_cast namespace reinterpret_cast try bool explicit new " + "static_cast typeid catch operator template typename class friend private " + "this using const_cast inline public throw virtual delete mutable protected " + "wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final " + "static_assert override"), blockKeywords: words("catch class do else finally for if struct switch try while"), atoms: words("true false null"), hooks: { "#": cppHook, "u": cpp11StringHook, "U": cpp11StringHook, "L": cpp11StringHook, "R": cpp11StringHook }, modeProps: {fold: ["brace", "include"]} }); def("text/x-java", { name: "clike", keywords: words("abstract assert boolean break byte case catch char class const continue default " + "do double else enum extends final finally float for goto if implements import " + "instanceof int interface long native new package private protected public " + "return short static strictfp super switch synchronized this throw throws transient " + "try void volatile while"), blockKeywords: words("catch class do else finally for if switch try while"), atoms: words("true false null"), hooks: { "@": function(stream) { stream.eatWhile(/[\w\$_]/); return "meta"; } }, modeProps: {fold: ["brace", "import"]} }); def("text/x-csharp", { name: "clike", keywords: words("abstract as base break case catch checked class const continue" + " default delegate do else enum event explicit extern finally fixed for" + " foreach goto if implicit in interface internal is lock namespace new" + " operator out override params private protected public readonly ref return sealed" + " sizeof stackalloc static struct switch this throw try typeof unchecked" + " unsafe using virtual void volatile while add alias ascending descending dynamic from get" + " global group into join let orderby partial remove select set value var yield"), blockKeywords: words("catch class do else finally for foreach if struct switch try while"), builtin: words("Boolean Byte Char DateTime DateTimeOffset Decimal Double" + " Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32" + " UInt64 bool byte char decimal double short int long object" + " sbyte float string ushort uint ulong"), atoms: words("true false null"), hooks: { "@": function(stream, state) { if (stream.eat('"')) { state.tokenize = tokenAtString; return tokenAtString(stream, state); } stream.eatWhile(/[\w\$_]/); return "meta"; } } }); function tokenTripleString(stream, state) { var escaped = false; while (!stream.eol()) { if (!escaped && stream.match('"""')) { state.tokenize = null; break; } escaped = stream.next() != "\\" && !escaped; } return "string"; } def("text/x-scala", { name: "clike", keywords: words( /* scala */ "abstract case catch class def do else extends false final finally for forSome if " + "implicit import lazy match new null object override package private protected return " + "sealed super this throw trait try trye type val var while with yield _ : = => <- <: " + "<% >: # @ " + /* package scala */ "assert assume require print println printf readLine readBoolean readByte readShort " + "readChar readInt readLong readFloat readDouble " + "AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either " + "Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable " + "Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering " + "Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder " + "StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: " + /* package java.lang */ "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " + "Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " + "Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " + "StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void" ), multiLineStrings: true, blockKeywords: words("catch class do else finally for forSome if match switch try while"), atoms: words("true false null"), indentStatements: false, hooks: { "@": function(stream) { stream.eatWhile(/[\w\$_]/); return "meta"; }, '"': function(stream, state) { if (!stream.match('""')) return false; state.tokenize = tokenTripleString; return state.tokenize(stream, state); } } }); def(["x-shader/x-vertex", "x-shader/x-fragment"], { name: "clike", keywords: words("float int bool void " + "vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 " + "mat2 mat3 mat4 " + "sampler1D sampler2D sampler3D samplerCube " + "sampler1DShadow sampler2DShadow" + "const attribute uniform varying " + "break continue discard return " + "for while do if else struct " + "in out inout"), blockKeywords: words("for while do if else struct"), builtin: words("radians degrees sin cos tan asin acos atan " + "pow exp log exp2 sqrt inversesqrt " + "abs sign floor ceil fract mod min max clamp mix step smootstep " + "length distance dot cross normalize ftransform faceforward " + "reflect refract matrixCompMult " + "lessThan lessThanEqual greaterThan greaterThanEqual " + "equal notEqual any all not " + "texture1D texture1DProj texture1DLod texture1DProjLod " + "texture2D texture2DProj texture2DLod texture2DProjLod " + "texture3D texture3DProj texture3DLod texture3DProjLod " + "textureCube textureCubeLod " + "shadow1D shadow2D shadow1DProj shadow2DProj " + "shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod " + "dFdx dFdy fwidth " + "noise1 noise2 noise3 noise4"), atoms: words("true false " + "gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex " + "gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 " + "gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 " + "gl_FogCoord " + "gl_Position gl_PointSize gl_ClipVertex " + "gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor " + "gl_TexCoord gl_FogFragCoord " + "gl_FragCoord gl_FrontFacing " + "gl_FragColor gl_FragData gl_FragDepth " + "gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix " + "gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse " + "gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse " + "gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose " + "gl_ProjectionMatrixInverseTranspose " + "gl_ModelViewProjectionMatrixInverseTranspose " + "gl_TextureMatrixInverseTranspose " + "gl_NormalScale gl_DepthRange gl_ClipPlane " + "gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel " + "gl_FrontLightModelProduct gl_BackLightModelProduct " + "gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ " + "gl_FogParameters " + "gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords " + "gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats " + "gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits " + "gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits " + "gl_MaxDrawBuffers"), hooks: {"#": cppHook}, modeProps: {fold: ["brace", "include"]} }); def("text/x-nesc", { name: "clike", keywords: words(cKeywords + "as atomic async call command component components configuration event generic " + "implementation includes interface module new norace nx_struct nx_union post provides " + "signal task uses abstract extends"), blockKeywords: words("case do else for if switch while struct"), atoms: words("null"), hooks: {"#": cppHook}, modeProps: {fold: ["brace", "include"]} }); def("text/x-objectivec", { name: "clike", keywords: words(cKeywords + "inline restrict _Bool _Complex _Imaginery BOOL Class bycopy byref id IMP in " + "inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"), atoms: words("YES NO NULL NILL ON OFF"), hooks: { "@": function(stream) { stream.eatWhile(/[\w\$]/); return "keyword"; }, "#": cppHook }, modeProps: {fold: "brace"} }); });
magoni/cdnjs
ajax/libs/codemirror/4.9.0/mode/clike/clike.js
JavaScript
mit
18,939
var baseIsEqual = require('./_baseIsEqual'), get = require('./get'), hasIn = require('./hasIn'), isKey = require('./_isKey'), isStrictComparable = require('./_isStrictComparable'), matchesStrictComparable = require('./_matchesStrictComparable'), toKey = require('./_toKey'); /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; /** * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. * * @private * @param {string} path The path of the property to get. * @param {*} srcValue The value to match. * @returns {Function} Returns the new spec function. */ function baseMatchesProperty(path, srcValue) { if (isKey(path) && isStrictComparable(srcValue)) { return matchesStrictComparable(toKey(path), srcValue); } return function(object) { var objValue = get(object, path); return (objValue === undefined && objValue === srcValue) ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); }; } module.exports = baseMatchesProperty;
andres81/auth-service
frontend/node_modules/react-scripts/node_modules/babel-preset-react-app/node_modules/babel-preset-env/node_modules/babel-plugin-transform-async-to-generator/node_modules/babel-helper-remap-async-to-generator/node_modules/babel-types/node_modules/lodash/_baseMatchesProperty.js
JavaScript
mit
1,129
// Copyright Joyent, Inc. and other Node contributors. // // 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. // NOTE: These type checking functions intentionally don't use `instanceof` // because it is fragile and can be easily faked with `Object.create()`. function isArray(ar) { return Array.isArray(ar); } exports.isArray = isArray; function isBoolean(arg) { return typeof arg === 'boolean'; } exports.isBoolean = isBoolean; function isNull(arg) { return arg === null; } exports.isNull = isNull; function isNullOrUndefined(arg) { return arg == null; } exports.isNullOrUndefined = isNullOrUndefined; function isNumber(arg) { return typeof arg === 'number'; } exports.isNumber = isNumber; function isString(arg) { return typeof arg === 'string'; } exports.isString = isString; function isSymbol(arg) { return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; function isUndefined(arg) { return arg === void 0; } exports.isUndefined = isUndefined; function isRegExp(re) { return isObject(re) && objectToString(re) === '[object RegExp]'; } exports.isRegExp = isRegExp; function isObject(arg) { return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; function isDate(d) { return isObject(d) && objectToString(d) === '[object Date]'; } exports.isDate = isDate; function isError(e) { return isObject(e) && objectToString(e) === '[object Error]'; } exports.isError = isError; function isFunction(arg) { return typeof arg === 'function'; } exports.isFunction = isFunction; function isPrimitive(arg) { return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; function isBuffer(arg) { return arg instanceof Buffer; } exports.isBuffer = isBuffer; function objectToString(o) { return Object.prototype.toString.call(o); }
pavangolla/NgSocialFBApp
node_modules/protractor/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/util.js
JavaScript
mit
3,012
// Copyright Joyent, Inc. and other Node contributors. // // 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. // NOTE: These type checking functions intentionally don't use `instanceof` // because it is fragile and can be easily faked with `Object.create()`. function isArray(ar) { return Array.isArray(ar); } exports.isArray = isArray; function isBoolean(arg) { return typeof arg === 'boolean'; } exports.isBoolean = isBoolean; function isNull(arg) { return arg === null; } exports.isNull = isNull; function isNullOrUndefined(arg) { return arg == null; } exports.isNullOrUndefined = isNullOrUndefined; function isNumber(arg) { return typeof arg === 'number'; } exports.isNumber = isNumber; function isString(arg) { return typeof arg === 'string'; } exports.isString = isString; function isSymbol(arg) { return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; function isUndefined(arg) { return arg === void 0; } exports.isUndefined = isUndefined; function isRegExp(re) { return isObject(re) && objectToString(re) === '[object RegExp]'; } exports.isRegExp = isRegExp; function isObject(arg) { return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; function isDate(d) { return isObject(d) && objectToString(d) === '[object Date]'; } exports.isDate = isDate; function isError(e) { return isObject(e) && objectToString(e) === '[object Error]'; } exports.isError = isError; function isFunction(arg) { return typeof arg === 'function'; } exports.isFunction = isFunction; function isPrimitive(arg) { return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; function isBuffer(arg) { return arg instanceof Buffer; } exports.isBuffer = isBuffer; function objectToString(o) { return Object.prototype.toString.call(o); }
pinthecloud/chupamanager
axisj-1.0.7/node_modules/grunt-contrib-uglify/node_modules/maxmin/node_modules/gzip-size/node_modules/concat-stream/node_modules/readable-stream/node_modules/core-util-is/util.js
JavaScript
mit
3,012
// Copyright Joyent, Inc. and other Node contributors. // // 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. // NOTE: These type checking functions intentionally don't use `instanceof` // because it is fragile and can be easily faked with `Object.create()`. function isArray(ar) { return Array.isArray(ar); } exports.isArray = isArray; function isBoolean(arg) { return typeof arg === 'boolean'; } exports.isBoolean = isBoolean; function isNull(arg) { return arg === null; } exports.isNull = isNull; function isNullOrUndefined(arg) { return arg == null; } exports.isNullOrUndefined = isNullOrUndefined; function isNumber(arg) { return typeof arg === 'number'; } exports.isNumber = isNumber; function isString(arg) { return typeof arg === 'string'; } exports.isString = isString; function isSymbol(arg) { return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; function isUndefined(arg) { return arg === void 0; } exports.isUndefined = isUndefined; function isRegExp(re) { return isObject(re) && objectToString(re) === '[object RegExp]'; } exports.isRegExp = isRegExp; function isObject(arg) { return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; function isDate(d) { return isObject(d) && objectToString(d) === '[object Date]'; } exports.isDate = isDate; function isError(e) { return isObject(e) && objectToString(e) === '[object Error]'; } exports.isError = isError; function isFunction(arg) { return typeof arg === 'function'; } exports.isFunction = isFunction; function isPrimitive(arg) { return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; function isBuffer(arg) { return arg instanceof Buffer; } exports.isBuffer = isBuffer; function objectToString(o) { return Object.prototype.toString.call(o); }
rahulnadella/SVG_Hexagon
node_modules/grunt-express/node_modules/connect/node_modules/multiparty/node_modules/readable-stream/node_modules/core-util-is/util.js
JavaScript
mit
3,012
/* * /MathJax/jax/output/SVG/autoload/annotation-xml.js * * Copyright (c) 2009-2014 The MathJax Consortium * * 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. */ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){var c="2.4.0";var a=MathJax.ElementJax.mml,d=MathJax.OutputJax.SVG;var b=d.BBOX;b.FOREIGN=b.Subclass({type:"foreignObject",removeable:false});a["annotation-xml"].Augment({toSVG:function(){var f=this.SVG();this.SVGhandleSpace(f);var h=this.Get("encoding");for(var g=0,e=this.data.length;g<e;g++){f.Add(this.data[g].toSVG(h),f.w,0)}f.Clean();this.SVGhandleColor(f);this.SVGsaveData(f);return f}});a.xml.Augment({toSVG:function(e){var p=d.textSVG.parentNode;d.mathDiv.style.width="auto";p.insertBefore(this.div,d.textSVG);var q=this.div.offsetWidth,k=this.div.offsetHeight;var o=MathJax.HTML.addElement(this.div,"span",{style:{display:"inline-block",overflow:"hidden",height:k+"px",width:"1px",marginRight:"-1px"}});var n=this.div.offsetHeight-k;k-=n;this.div.removeChild(o);p.removeChild(this.div);d.mathDiv.style.width="";var g=1000/d.em;var l=b.FOREIGN({y:(-k)+"px",width:q+"px",height:(k+n)+"px",transform:"scale("+g+") matrix(1 0 0 -1 0 0)"});for(var j=0,f=this.data.length;j<f;j++){l.element.appendChild(this.data[j].cloneNode(true))}l.w=q*g;l.h=k*g;l.d=n*g;l.r=l.w;l.l=0;l.Clean();this.SVGsaveData(l);return l}});MathJax.Hub.Startup.signal.Post("SVG annotation-xml Ready");MathJax.Ajax.loadComplete(d.autoloadDir+"/annotation-xml.js")});
pm5/cdnjs
ajax/libs/mathjax/2.4.0/jax/output/SVG/autoload/annotation-xml.js
JavaScript
mit
1,986
<?php /* * This file is part of Twig. * * (c) 2009 Fabien Potencier * (c) 2009 Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Represents a block node. * * @package twig * @author Fabien Potencier <fabien@symfony.com> */ class Twig_Node_Block extends Twig_Node { public function __construct($name, Twig_NodeInterface $body, $lineno, $tag = null) { parent::__construct(array('body' => $body), array('name' => $name), $lineno, $tag); } /** * Compiles the node to PHP. * * @param Twig_Compiler A Twig_Compiler instance */ public function compile(Twig_Compiler $compiler) { $compiler ->addDebugInfo($this) ->write(sprintf("public function block_%s(\$context, array \$blocks = array())\n", $this->getAttribute('name')), "{\n") ->indent() ; $compiler ->subcompile($this->getNode('body')) ->outdent() ->write("}\n\n") ; } }
hqms/Rumah-Fiqih
vendor/twig/lib/Twig/Node/Block.php
PHP
mit
1,104
/*! * Bootstrap v3.0.0 * * Copyright 2013 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world by @mdo and @fat. */ /*! normalize.css v2.1.0 | MIT License | git.io/normalize */ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } audio, canvas, video { display: inline-block; } audio:not([controls]) { display: none; height: 0; } [hidden] { display: none; } html { font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body { margin: 0; } a:focus { outline: thin dotted; } a:active, a:hover { outline: 0; } h1 { margin: 0.67em 0; font-size: 2em; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } hr { height: 0; -moz-box-sizing: content-box; box-sizing: content-box; } mark { color: #000; background: #ff0; } code, kbd, pre, samp { font-family: monospace, serif; font-size: 1em; } pre { white-space: pre-wrap; } q { quotes: "\201C" "\201D" "\2018" "\2019"; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 0; } fieldset { padding: 0.35em 0.625em 0.75em; margin: 0 2px; border: 1px solid #c0c0c0; } legend { padding: 0; border: 0; } button, input, select, textarea { margin: 0; font-family: inherit; font-size: 100%; } button, input { line-height: normal; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } button[disabled], html input[disabled] { cursor: default; } input[type="checkbox"], input[type="radio"] { padding: 0; box-sizing: border-box; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } textarea { overflow: auto; vertical-align: top; } table { border-collapse: collapse; border-spacing: 0; } @media print { * { color: #000 !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 2cm .5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .table td, .table th { background-color: #fff !important; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 62.5%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.428571429; color: #333333; background-color: #ffffff; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #428bca; text-decoration: none; } a:hover, a:focus { color: #2a6496; text-decoration: underline; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } img { vertical-align: middle; } .img-responsive { display: inline-block; height: auto; max-width: 100%; } .img-rounded { border-radius: 6px; } .img-circle { border-radius: 500px; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eeeeee; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16.099999999999998px; font-weight: 200; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small { font-size: 85%; } cite { font-style: normal; } .text-muted { color: #999999; } .text-primary { color: #428bca; } .text-warning { color: #c09853; } .text-danger { color: #b94a48; } .text-success { color: #468847; } .text-info { color: #3a87ad; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small { font-weight: normal; line-height: 1; color: #999999; } h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; } h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; } h1, .h1 { font-size: 38px; } h2, .h2 { font-size: 32px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } h1 small, .h1 small { font-size: 24px; } h2 small, .h2 small { font-size: 18px; } h3 small, .h3 small, h4 small, .h4 small { font-size: 14px; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; } .list-inline > li { display: inline-block; padding-right: 5px; padding-left: 5px; } dl { margin-bottom: 20px; } dt, dd { line-height: 1.428571429; } dt { font-weight: bold; } dd { margin-left: 0; } .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #999999; } abbr.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; border-left: 5px solid #eeeeee; } blockquote p { font-size: 17.5px; font-weight: 300; line-height: 1.25; } blockquote p:last-child { margin-bottom: 0; } blockquote small { display: block; line-height: 1.428571429; color: #999999; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { float: right; padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } blockquote.pull-right small:before { content: ''; } blockquote.pull-right small:after { content: '\00A0 \2014'; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } address { display: block; margin-bottom: 20px; font-style: normal; line-height: 1.428571429; } code, pre { font-family: Monaco, Menlo, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; white-space: nowrap; background-color: #f9f2f4; border-radius: 4px; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.428571429; color: #333333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre.prettyprint { margin-bottom: 20px; } pre code { padding: 0; color: inherit; white-space: pre-wrap; background-color: transparent; border: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { margin-right: auto; margin-left: auto; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } @media (min-width: 768px) { .row { margin-right: -15px; margin-left: -15px; } } .row .row { margin-right: -15px; margin-left: -15px; } .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; } .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { float: left; } .col-1 { width: 8.333333333333332%; } .col-2 { width: 16.666666666666664%; } .col-3 { width: 25%; } .col-4 { width: 33.33333333333333%; } .col-5 { width: 41.66666666666667%; } .col-6 { width: 50%; } .col-7 { width: 58.333333333333336%; } .col-8 { width: 66.66666666666666%; } .col-9 { width: 75%; } .col-10 { width: 83.33333333333334%; } .col-11 { width: 91.66666666666666%; } .col-12 { width: 100%; } @media (min-width: 768px) { .container { max-width: 728px; } .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-1 { width: 8.333333333333332%; } .col-sm-2 { width: 16.666666666666664%; } .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.33333333333333%; } .col-sm-5 { width: 41.66666666666667%; } .col-sm-6 { width: 50%; } .col-sm-7 { width: 58.333333333333336%; } .col-sm-8 { width: 66.66666666666666%; } .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.33333333333334%; } .col-sm-11 { width: 91.66666666666666%; } .col-sm-12 { width: 100%; } .col-push-1 { left: 8.333333333333332%; } .col-push-2 { left: 16.666666666666664%; } .col-push-3 { left: 25%; } .col-push-4 { left: 33.33333333333333%; } .col-push-5 { left: 41.66666666666667%; } .col-push-6 { left: 50%; } .col-push-7 { left: 58.333333333333336%; } .col-push-8 { left: 66.66666666666666%; } .col-push-9 { left: 75%; } .col-push-10 { left: 83.33333333333334%; } .col-push-11 { left: 91.66666666666666%; } .col-pull-1 { right: 8.333333333333332%; } .col-pull-2 { right: 16.666666666666664%; } .col-pull-3 { right: 25%; } .col-pull-4 { right: 33.33333333333333%; } .col-pull-5 { right: 41.66666666666667%; } .col-pull-6 { right: 50%; } .col-pull-7 { right: 58.333333333333336%; } .col-pull-8 { right: 66.66666666666666%; } .col-pull-9 { right: 75%; } .col-pull-10 { right: 83.33333333333334%; } .col-pull-11 { right: 91.66666666666666%; } } @media (min-width: 992px) { .container { max-width: 940px; } .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-1 { width: 8.333333333333332%; } .col-lg-2 { width: 16.666666666666664%; } .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.33333333333333%; } .col-lg-5 { width: 41.66666666666667%; } .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.333333333333336%; } .col-lg-8 { width: 66.66666666666666%; } .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.33333333333334%; } .col-lg-11 { width: 91.66666666666666%; } .col-lg-12 { width: 100%; } .col-offset-1 { margin-left: 8.333333333333332%; } .col-offset-2 { margin-left: 16.666666666666664%; } .col-offset-3 { margin-left: 25%; } .col-offset-4 { margin-left: 33.33333333333333%; } .col-offset-5 { margin-left: 41.66666666666667%; } .col-offset-6 { margin-left: 50%; } .col-offset-7 { margin-left: 58.333333333333336%; } .col-offset-8 { margin-left: 66.66666666666666%; } .col-offset-9 { margin-left: 75%; } .col-offset-10 { margin-left: 83.33333333333334%; } .col-offset-11 { margin-left: 91.66666666666666%; } } @media (min-width: 1200px) { .container { max-width: 1170px; } } table { max-width: 100%; background-color: transparent; } th { text-align: left; } .table { width: 100%; margin-bottom: 20px; } .table thead > tr > th, .table tbody > tr > th, .table tfoot > tr > th, .table thead > tr > td, .table tbody > tr > td, .table tfoot > tr > td { padding: 8px; line-height: 1.428571429; vertical-align: top; border-top: 1px solid #dddddd; } .table thead > tr > th { vertical-align: bottom; } .table caption + thead tr:first-child th, .table colgroup + thead tr:first-child th, .table thead:first-child tr:first-child th, .table caption + thead tr:first-child td, .table colgroup + thead tr:first-child td, .table thead:first-child tr:first-child td { border-top: 0; } .table tbody + tbody { border-top: 2px solid #dddddd; } .table .table { background-color: #ffffff; } .table-condensed thead > tr > th, .table-condensed tbody > tr > th, .table-condensed tfoot > tr > th, .table-condensed thead > tr > td, .table-condensed tbody > tr > td, .table-condensed tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #dddddd; } .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { background-color: #f9f9f9; } .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background-color: #f5f5f5; } table col[class^="col-"] { display: table-column; float: none; } table td[class^="col-"], table th[class^="col-"] { display: table-cell; float: none; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; border-color: #d6e9c6; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; border-color: #eed3d7; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; border-color: #fbeed5; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td { background-color: #d0e9c6; border-color: #c9e2b3; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td { background-color: #ebcccc; border-color: #e6c1c7; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td { background-color: #faf2cc; border-color: #f8e5be; } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; /* IE8-9 */ line-height: normal; } input[type="file"] { display: block; } select[multiple], select[size] { height: auto; } select optgroup { font-family: inherit; font-size: inherit; font-style: inherit; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { height: auto; } .form-control:-moz-placeholder { color: #999999; } .form-control::-moz-placeholder { color: #999999; } .form-control:-ms-input-placeholder { color: #999999; } .form-control::-webkit-input-placeholder { color: #999999; } .form-control { display: block; width: 100%; height: 38px; padding: 8px 12px; font-size: 14px; line-height: 1.428571429; color: #555555; vertical-align: middle; background-color: #ffffff; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; } .form-control:focus { border-color: rgba(82, 168, 236, 0.8); outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { cursor: not-allowed; background-color: #eeeeee; } textarea.form-control { height: auto; } .form-group { margin-bottom: 15px; } .radio, .checkbox { display: block; min-height: 20px; padding-left: 20px; margin-top: 10px; margin-bottom: 10px; vertical-align: middle; } .radio label, .checkbox label { display: inline; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { float: left; margin-left: -20px; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { display: inline-block; padding-left: 20px; margin-bottom: 0; font-weight: normal; vertical-align: middle; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } .form-control.input-large { height: 56px; padding: 14px 16px; font-size: 18px; border-radius: 6px; } .form-control.input-small { height: 30px; padding: 5px 10px; font-size: 12px; border-radius: 3px; } select.input-large { height: 56px; line-height: 56px; } select.input-small { height: 30px; line-height: 30px; } .has-warning .help-block, .has-warning .control-label { color: #c09853; } .has-warning .form-control { padding-right: 32px; border-color: #c09853; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #a47e3c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; } .has-warning .input-group-addon { color: #c09853; background-color: #fcf8e3; border-color: #c09853; } .has-error .help-block, .has-error .control-label { color: #b94a48; } .has-error .form-control { padding-right: 32px; border-color: #b94a48; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #953b39; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; } .has-error .input-group-addon { color: #b94a48; background-color: #f2dede; border-color: #b94a48; } .has-success .help-block, .has-success .control-label { color: #468847; } .has-success .form-control { padding-right: 32px; border-color: #468847; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #356635; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; } .has-success .input-group-addon { color: #468847; background-color: #dff0d8; border-color: #468847; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } .btn { display: inline-block; padding: 8px 12px; margin-bottom: 0; font-size: 14px; font-weight: 500; line-height: 1.428571429; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; border: 1px solid transparent; border-radius: 4px; } .btn:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus { color: #ffffff; text-decoration: none; } .btn:active, .btn.active { outline: 0; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { pointer-events: none; cursor: default; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } .btn-default { color: #ffffff; background-color: #474949; border-color: #474949; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active { background-color: #3a3c3c; border-color: #2e2f2f; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #474949; border-color: #474949; } .btn-primary { color: #ffffff; background-color: #428bca; border-color: #428bca; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { background-color: #357ebd; border-color: #3071a9; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #428bca; border-color: #428bca; } .btn-warning { color: #ffffff; background-color: #f0ad4e; border-color: #f0ad4e; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active { background-color: #eea236; border-color: #ec971f; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f0ad4e; border-color: #f0ad4e; } .btn-danger { color: #ffffff; background-color: #d9534f; border-color: #d9534f; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active { background-color: #d43f3a; border-color: #c9302c; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #d9534f; border-color: #d9534f; } .btn-success { color: #ffffff; background-color: #5cb85c; border-color: #5cb85c; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active { background-color: #4cae4c; border-color: #449d44; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #5cb85c; border-color: #5cb85c; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #5bc0de; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active { background-color: #46b8da; border-color: #31b0d5; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #5bc0de; border-color: #5bc0de; } .btn-link { font-weight: normal; color: #428bca; cursor: pointer; border-radius: 0; } .btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #2a6496; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #333333; text-decoration: none; } .btn-large { padding: 14px 16px; font-size: 18px; border-radius: 6px; } .btn-small { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; padding-right: 0; padding-left: 0; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; transition: height 0.35s ease; } .input-group { display: table; border-collapse: separate; } .input-group.col { float: none; padding-right: 0; padding-left: 0; } .input-group .form-control { width: 100%; margin-bottom: 0; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 8px 12px; font-size: 14px; font-weight: normal; line-height: 1.428571429; text-align: center; background-color: #eeeeee; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .input-group-addon.input-small { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-large { padding: 14px 16px; font-size: 18px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -4px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:active { z-index: 2; } .form-inline .form-control, .form-inline .radio, .form-inline .checkbox { display: inline-block; } .form-inline .radio, .form-inline .checkbox { margin-top: 0; margin-bottom: 0; } .form-horizontal .control-label { padding-top: 9px; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } @media (min-width: 768px) { .form-horizontal .form-group { margin-right: -15px; margin-left: -15px; } } .form-horizontal .form-group .row { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; } } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid #000000; border-right: 4px solid transparent; border-left: 4px solid transparent; content: ""; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.428571429; color: #333333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #ffffff; text-decoration: none; background-color: #357ebd; background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#357ebd)); background-image: -webkit-linear-gradient(top, #428bca, 0%, #357ebd, 100%); background-image: -moz-linear-gradient(top, #428bca 0%, #357ebd 100%); background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0); } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; background-color: #357ebd; background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#357ebd)); background-image: -webkit-linear-gradient(top, #428bca, 0%, #357ebd, 100%); background-image: -moz-linear-gradient(top, #428bca 0%, #357ebd 100%); background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%); background-repeat: repeat-x; outline: 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0); } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #999999; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; cursor: not-allowed; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.428571429; color: #999999; } .dropdown-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px solid #000000; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } .list-group { padding-left: 0; margin-bottom: 20px; background-color: #ffffff; } .list-group-item { position: relative; display: block; padding: 10px 30px 10px 15px; margin-bottom: -1px; border: 1px solid #dddddd; } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .list-group-item > .badge { float: right; margin-right: -15px; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } a.list-group-item .list-group-item-heading { color: #333333; } a.list-group-item .list-group-item-text { color: #555555; } a.list-group-item:hover, a.list-group-item:focus { text-decoration: none; background-color: #f5f5f5; } a.list-group-item.active { z-index: 2; color: #ffffff; background-color: #428bca; border-color: #428bca; } a.list-group-item.active .list-group-item-heading { color: inherit; } a.list-group-item.active .list-group-item-text { color: #e1edf7; } .panel { padding: 15px; margin-bottom: 20px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-heading { padding: 10px 15px; margin: -15px -15px 15px; background-color: #f5f5f5; border-bottom: 1px solid #dddddd; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 17.5px; font-weight: 500; } .panel-footer { padding: 10px 15px; margin: 15px -15px -15px; background-color: #f5f5f5; border-top: 1px solid #dddddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel-primary { border-color: #428bca; } .panel-primary .panel-heading { color: #ffffff; background-color: #428bca; border-color: #428bca; } .panel-success { border-color: #d6e9c6; } .panel-success .panel-heading { color: #468847; background-color: #dff0d8; border-color: #d6e9c6; } .panel-warning { border-color: #fbeed5; } .panel-warning .panel-heading { color: #c09853; background-color: #fcf8e3; border-color: #fbeed5; } .panel-danger { border-color: #eed3d7; } .panel-danger .panel-heading { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; } .panel-info { border-color: #bce8f1; } .panel-info .panel-heading { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .list-group-flush { margin: 15px -15px -15px; } .list-group-flush .list-group-item { border-width: 1px 0; } .list-group-flush .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .list-group-flush .list-group-item:last-child { border-bottom: 0; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-large { padding: 24px; border-radius: 6px; } .well-small { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .nav { padding-left: 0; margin-bottom: 0; list-style: none; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li.disabled > a { color: #999999; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #999999; text-decoration: none; cursor: not-allowed; background-color: transparent; } .nav.open > a, .nav.open > a:hover, .nav.open > a:focus { color: #ffffff; background-color: #428bca; border-color: #428bca; } .nav.open > a .caret, .nav.open > a:hover .caret, .nav.open > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .nav > .pull-right { float: right; } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .nav-tabs { border-bottom: 1px solid #dddddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.428571429; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #555555; cursor: default; background-color: #ffffff; border: 1px solid #dddddd; border-bottom-color: transparent; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { display: table-cell; float: none; width: 1%; } .nav-tabs.nav-justified > li > a { text-align: center; } .nav-tabs.nav-justified > li > a { margin-right: 0; border-bottom: 1px solid #dddddd; } .nav-tabs.nav-justified > .active > a { border-bottom-color: #ffffff; } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 5px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: #428bca; } .nav-stacked > li { float: none; } .nav-stacked > li + li > a { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { display: table-cell; float: none; width: 1%; } .nav-justified > li > a { text-align: center; } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-bottom: 1px solid #dddddd; } .nav-tabs-justified > .active > a { border-bottom-color: #ffffff; } .tabbable:before, .tabbable:after { display: table; content: " "; } .tabbable:after { clear: both; } .tabbable:before, .tabbable:after { display: table; content: " "; } .tabbable:after { clear: both; } .tab-content > .tab-pane, .pill-content > .pill-pane { display: none; } .tab-content > .active, .pill-content > .active { display: block; } .nav .caret { border-top-color: #428bca; border-bottom-color: #428bca; } .nav a:hover .caret { border-top-color: #2a6496; border-bottom-color: #2a6496; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; min-height: 50px; padding-right: 15px; padding-left: 15px; margin-bottom: 20px; background-color: #eeeeee; border-radius: 4px; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar-nav { margin-top: 10px; margin-bottom: 15px; } .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; line-height: 20px; color: #777777; border-radius: 4px; } .navbar-nav > li > a:hover, .navbar-nav > li > a:focus { color: #333333; background-color: transparent; } .navbar-nav > .active > a, .navbar-nav > .active > a:hover, .navbar-nav > .active > a:focus { color: #555555; background-color: #d5d5d5; } .navbar-nav > .disabled > a, .navbar-nav > .disabled > a:hover, .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-nav.pull-right { width: 100%; } .navbar-static-top { border-radius: 0; } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; border-radius: 0; } .navbar-fixed-top { top: 0; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; } .navbar-brand { display: block; max-width: 200px; padding: 15px 15px; margin-right: auto; margin-left: auto; font-size: 18px; font-weight: 500; line-height: 20px; color: #777777; text-align: center; } .navbar-brand:hover, .navbar-brand:focus { color: #5e5e5e; text-decoration: none; background-color: transparent; } .navbar-toggle { position: absolute; top: 9px; right: 10px; width: 48px; height: 32px; padding: 8px 12px; background-color: transparent; border: 1px solid #dddddd; border-radius: 4px; } .navbar-toggle:hover, .navbar-toggle:focus { background-color: #dddddd; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; background-color: #cccccc; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } .navbar-form { margin-top: 6px; margin-bottom: 6px; } .navbar-form .form-control, .navbar-form .radio, .navbar-form .checkbox { display: inline-block; } .navbar-form .radio, .navbar-form .checkbox { margin-top: 0; margin-bottom: 0; } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-nav > .dropdown > a:hover .caret, .navbar-nav > .dropdown > a:focus .caret { border-top-color: #333333; border-bottom-color: #333333; } .navbar-nav > .open > a, .navbar-nav > .open > a:hover, .navbar-nav > .open > a:focus { color: #555555; background-color: #d5d5d5; } .navbar-nav > .open > a .caret, .navbar-nav > .open > a:hover .caret, .navbar-nav > .open > a:focus .caret { border-top-color: #555555; border-bottom-color: #555555; } .navbar-nav > .dropdown > a .caret { border-top-color: #777777; border-bottom-color: #777777; } .navbar-nav.pull-right > li > .dropdown-menu, .navbar-nav > li > .dropdown-menu.pull-right { right: 0; left: auto; } .navbar-inverse { background-color: #222222; } .navbar-inverse .navbar-brand { color: #999999; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-text { color: #999999; } .navbar-inverse .navbar-nav > li > a { color: #999999; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444444; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav > .dropdown > a:hover .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .navbar-nav > .dropdown > a .caret { border-top-color: #999999; border-bottom-color: #999999; } .navbar-inverse .navbar-nav > .open > a .caret, .navbar-inverse .navbar-nav > .open > a:hover .caret, .navbar-inverse .navbar-nav > .open > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } @media screen and (min-width: 768px) { .navbar-brand { float: left; margin-right: 5px; margin-left: -15px; } .navbar-nav { float: left; margin-top: 0; margin-bottom: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { border-radius: 0; } .navbar-nav.pull-right { float: right; width: auto; } .navbar-toggle { position: relative; top: auto; left: auto; display: none; } .nav-collapse.collapse { display: block !important; height: auto !important; overflow: visible !important; } } .navbar-btn { margin-top: 6px; } .navbar-text { margin-top: 15px; margin-bottom: 15px; } .navbar-link { color: #777777; } .navbar-link:hover { color: #333333; } .navbar-inverse .navbar-link { color: #999999; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .btn .caret { border-top-color: #ffffff; } .dropup .btn .caret { border-bottom-color: #ffffff; } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:active, .btn-group-vertical > .btn:active { z-index: 2; } .btn-group .btn + .btn { margin-left: -1px; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar .btn-group { float: left; } .btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group, .btn-toolbar > .btn-group + .btn-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn-group:last-child > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-right: 8px; padding-left: 8px; } .btn-group > .btn-large + .dropdown-toggle { padding-right: 12px; padding-left: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn .caret { margin-left: 0; } .btn-large .caret { border-width: 5px; } .dropup .btn-large .caret { border-bottom-width: 5px; } .btn-group-vertical > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn + .btn { margin-top: -1px; } .btn-group-vertical .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical .btn:first-child { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical .btn:last-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; } .btn-group-justified .btn { display: table-cell; float: none; width: 1%; } .btn-group[data-toggle="buttons"] > .btn > input[type="radio"], .btn-group[data-toggle="buttons"] > .btn > input[type="checkbox"] { display: none; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { padding: 0 5px; color: #cccccc; content: "/\00a0"; } .breadcrumb > .active { color: #999999; } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { float: left; padding: 4px 12px; line-height: 1.428571429; text-decoration: none; background-color: #ffffff; border: 1px solid #dddddd; border-left-width: 0; } .pagination > li:first-child > a, .pagination > li:first-child > span { border-left-width: 1px; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-top-right-radius: 4px; border-bottom-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > a:focus, .pagination > .active > a, .pagination > .active > span { background-color: #f5f5f5; } .pagination > .active > a, .pagination > .active > span { color: #999999; cursor: default; } .pagination > .disabled > span, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #999999; cursor: not-allowed; background-color: #ffffff; } .pagination-large > li > a, .pagination-large > li > span { padding: 14px 16px; font-size: 18px; } .pagination-large > li:first-child > a, .pagination-large > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-large > li:last-child > a, .pagination-large > li:last-child > span { border-top-right-radius: 6px; border-bottom-right-radius: 6px; } .pagination-small > li > a, .pagination-small > li > span { padding: 5px 10px; font-size: 12px; } .pagination-small > li:first-child > a, .pagination-small > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-small > li:last-child > a, .pagination-small > li:last-child > span { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .pager { padding-left: 0; margin: 20px 0; text-align: center; list-style: none; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #f5f5f5; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #999999; cursor: not-allowed; background-color: #ffffff; } .modal-open { overflow: hidden; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; display: none; overflow: auto; overflow-y: scroll; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.fade.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); transform: translate(0, 0); } .modal-dialog { z-index: 1050; width: auto; padding: 10px; margin-right: auto; margin-left: auto; } .modal-content { position: relative; background-color: #ffffff; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; outline: none; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); background-clip: padding-box; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1030; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.fade.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { min-height: 16.428571429px; padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.428571429; } .modal-body { position: relative; padding: 20px; } .modal-footer { padding: 19px 20px 20px; margin-top: 15px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } @media screen and (min-width: 768px) { .modal-dialog { right: auto; left: 50%; width: 600px; padding-top: 30px; padding-bottom: 30px; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } } .tooltip { position: absolute; z-index: 1030; display: block; font-size: 12px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); visibility: visible; } .tooltip.in { opacity: 1; filter: alpha(opacity=100); } .tooltip.top { padding: 5px 0; margin-top: -3px; } .tooltip.right { padding: 0 5px; margin-left: 3px; } .tooltip.bottom { padding: 5px 0; margin-top: 3px; } .tooltip.left { padding: 0 5px; margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: rgba(0, 0, 0, 0.9); border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.top-left .tooltip-arrow { bottom: 0; left: 5px; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.top-right .tooltip-arrow { right: 5px; bottom: 0; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-right-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 5px 0; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-left-color: rgba(0, 0, 0, 0.9); border-width: 5px 0 5px 5px; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .tooltip.bottom-left .tooltip-arrow { top: 0; left: 5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .tooltip.bottom-right .tooltip-arrow { top: 0; right: 5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; white-space: normal; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); background-clip: padding-box; -webkit-bg-clip: padding-box; -moz-bg-clip: padding; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { padding: 8px 14px; margin: 0; font-size: 14px; font-weight: normal; line-height: 18px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover .arrow, .popover .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover .arrow { border-width: 11px; } .popover .arrow:after { border-width: 10px; content: ""; } .popover.top .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999999; border-top-color: rgba(0, 0, 0, 0.25); border-bottom-width: 0; } .popover.top .arrow:after { bottom: 1px; margin-left: -10px; border-top-color: #ffffff; border-bottom-width: 0; content: " "; } .popover.right .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999999; border-right-color: rgba(0, 0, 0, 0.25); border-left-width: 0; } .popover.right .arrow:after { bottom: -10px; left: 1px; border-right-color: #ffffff; border-left-width: 0; content: " "; } .popover.bottom .arrow { top: -11px; left: 50%; margin-left: -11px; border-bottom-color: #999999; border-bottom-color: rgba(0, 0, 0, 0.25); border-top-width: 0; } .popover.bottom .arrow:after { top: 1px; margin-left: -10px; border-bottom-color: #ffffff; border-top-width: 0; content: " "; } .popover.left .arrow { top: 50%; right: -11px; margin-top: -11px; border-left-color: #999999; border-left-color: rgba(0, 0, 0, 0.25); border-right-width: 0; } .popover.left .arrow:after { right: 1px; bottom: -10px; border-left-color: #ffffff; border-right-width: 0; content: " "; } .alert { padding: 10px 35px 10px 15px; margin-bottom: 20px; color: #c09853; background-color: #fcf8e3; border: 1px solid #fbeed5; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert hr { border-top-color: #f8e5be; } .alert .alert-link { font-weight: 500; color: #a47e3c; } .alert .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { color: #468847; background-color: #dff0d8; border-color: #d6e9c6; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #356635; } .alert-danger { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; } .alert-danger hr { border-top-color: #e6c1c7; } .alert-danger .alert-link { color: #953b39; } .alert-info { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #2d6987; } .alert-block { padding-top: 15px; padding-bottom: 15px; } .alert-block > p, .alert-block > ul { margin-bottom: 0; } .alert-block p + p { margin-top: 5px; } .thumbnail, .img-thumbnail { padding: 4px; line-height: 1.428571429; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .thumbnail { display: block; } .thumbnail > img, .img-thumbnail { display: inline-block; height: auto; max-width: 100%; } a.thumbnail:hover, a.thumbnail:focus { border-color: #428bca; } .thumbnail > img { margin-right: auto; margin-left: auto; } .thumbnail .caption { padding: 9px; color: #333333; } .media, .media-body { overflow: hidden; zoom: 1; } .media, .media .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media-object { display: block; } .media-heading { margin: 0 0 5px; } .media > .pull-left { margin-right: 10px; } .media > .pull-right { margin-left: 10px; } .media-list { padding-left: 0; list-style: none; } .label { display: inline; padding: .25em .6em; font-size: 75%; font-weight: 500; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: middle; background-color: #999999; border-radius: .25em; } .label[href]:hover, .label[href]:focus { color: #ffffff; text-decoration: none; cursor: pointer; background-color: #808080; } .label-danger { background-color: #d9534f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #c9302c; } .label-success { background-color: #5cb85c; } .label-success[href]:hover, .label-success[href]:focus { background-color: #449d44; } .label-warning { background-color: #f0ad4e; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #ec971f; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: middle; background-color: #999999; border-radius: 10px; } .badge:empty { display: none; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .btn .badge { position: relative; top: -1px; } a.list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #428bca; background-color: #ffffff; } .nav-pills > li > a > .badge { margin-left: 3px; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-ms-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { height: 20px; margin-bottom: 20px; overflow: hidden; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress-bar { float: left; width: 0; height: 100%; font-size: 12px; color: #ffffff; text-align: center; background-color: #428bca; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar { background-color: #428bca; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar { -webkit-animation: progress-bar-stripes 2s linear infinite; -moz-animation: progress-bar-stripes 2s linear infinite; -ms-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-danger { background-color: #d9534f; } .progress-striped .progress-bar-danger { background-color: #d9534f; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-success { background-color: #5cb85c; } .progress-striped .progress-bar-success { background-color: #5cb85c; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f0ad4e; } .progress-striped .progress-bar-warning { background-color: #f0ad4e; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-color: #5bc0de; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .accordion { margin-bottom: 20px; } .accordion-group { margin-bottom: 2px; border: 1px solid #e5e5e5; border-radius: 4px; } .accordion-heading { border-bottom: 0; } .accordion-heading .accordion-toggle { display: block; padding: 8px 15px; cursor: pointer; } .accordion-inner { padding: 9px 15px; border-top: 1px solid #e5e5e5; } .carousel { position: relative; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: inline-block; height: auto; max-width: 100%; line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); opacity: 0.5; filter: alpha(opacity=50); } .carousel-control.left { background-color: rgba(0, 0, 0, 0.0001); background-color: transparent; background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.0001))); background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0), color-stop(rgba(0, 0, 0, 0.0001) 100%)); background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { right: 0; left: auto; background-color: rgba(0, 0, 0, 0.5); background-color: transparent; background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.5))); background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0), color-stop(rgba(0, 0, 0, 0.5) 100%)); background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .glyphicon, .carousel-control .icon-prev, .carousel-control .icon-next { position: absolute; top: 50%; left: 50%; z-index: 5; display: inline-block; width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 120px; padding-left: 0; margin-left: -60px; text-align: center; list-style: none; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; cursor: pointer; border: 1px solid #ffffff; border-radius: 10px; } .carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #ffffff; } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicon, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -15px; margin-left: -15px; font-size: 30px; } .carousel-caption { right: 20%; left: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .jumbotron { padding: 30px; margin-bottom: 30px; font-size: 21px; font-weight: 200; line-height: 2.1428571435; color: inherit; background-color: #eeeeee; } .jumbotron h1 { line-height: 1; color: inherit; } .jumbotron p { line-height: 1.4; } @media screen and (min-width: 768px) { .jumbotron { padding: 50px 60px; border-radius: 6px; } .jumbotron h1 { font-size: 63px; } } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .affix { position: fixed; } @-ms-viewport { width: device-width; } @media screen and (max-width: 400px) { @-ms-viewport { width: 320px; } } .hidden { display: none !important; visibility: hidden !important; } .visible-sm { display: block !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } .visible-md { display: none !important; } tr.visible-md { display: none !important; } th.visible-md, td.visible-md { display: none !important; } .visible-lg { display: none !important; } tr.visible-lg { display: none !important; } th.visible-lg, td.visible-lg { display: none !important; } .hidden-sm { display: none !important; } tr.hidden-sm { display: none !important; } th.hidden-sm, td.hidden-sm { display: none !important; } .hidden-md { display: block !important; } tr.hidden-md { display: table-row !important; } th.hidden-md, td.hidden-md { display: table-cell !important; } .hidden-lg { display: block !important; } tr.hidden-lg { display: table-row !important; } th.hidden-lg, td.hidden-lg { display: table-cell !important; } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: none !important; } tr.visible-sm { display: none !important; } th.visible-sm, td.visible-sm { display: none !important; } .visible-md { display: block !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } .visible-lg { display: none !important; } tr.visible-lg { display: none !important; } th.visible-lg, td.visible-lg { display: none !important; } .hidden-sm { display: block !important; } tr.hidden-sm { display: table-row !important; } th.hidden-sm, td.hidden-sm { display: table-cell !important; } .hidden-md { display: none !important; } tr.hidden-md { display: none !important; } th.hidden-md, td.hidden-md { display: none !important; } .hidden-lg { display: block !important; } tr.hidden-lg { display: table-row !important; } th.hidden-lg, td.hidden-lg { display: table-cell !important; } } @media (min-width: 992px) { .visible-sm { display: none !important; } tr.visible-sm { display: none !important; } th.visible-sm, td.visible-sm { display: none !important; } .visible-md { display: none !important; } tr.visible-md { display: none !important; } th.visible-md, td.visible-md { display: none !important; } .visible-lg { display: block !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } .hidden-sm { display: block !important; } tr.hidden-sm { display: table-row !important; } th.hidden-sm, td.hidden-sm { display: table-cell !important; } .hidden-md { display: block !important; } tr.hidden-md { display: table-row !important; } th.hidden-md, td.hidden-md { display: table-cell !important; } .hidden-lg { display: none !important; } tr.hidden-lg { display: none !important; } th.hidden-lg, td.hidden-lg { display: none !important; } } .visible-print { display: none !important; } tr.visible-print { display: none !important; } th.visible-print, td.visible-print { display: none !important; } @media print { .visible-print { display: block !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } .hidden-print { display: none !important; } tr.hidden-print { display: none !important; } th.hidden-print, td.hidden-print { display: none !important; } }
SirenHound/cdnjs
ajax/libs/twitter-bootstrap/3.0.0-rc1/css/bootstrap.css
CSS
mit
82,499
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ .yui3-slider,.yui3-slider-rail{display:-moz-inline-stack;display:inline-block;*display:inline;zoom:1;vertical-align:middle}.yui3-slider-content{position:relative;display:block}.yui3-slider-rail{position:relative}.yui3-slider-rail-cap-top,.yui3-slider-rail-cap-left,.yui3-slider-rail-cap-bottom,.yui3-slider-rail-cap-right,.yui3-slider-thumb,.yui3-slider-thumb-image,.yui3-slider-thumb-shadow{position:absolute}.yui3-slider-thumb{overflow:hidden}.yui3-skin-sam .yui3-slider-x .yui3-slider-rail,.yui3-skin-sam .yui3-slider-x .yui3-slider-rail-cap-left,.yui3-skin-sam .yui3-slider-x .yui3-slider-rail-cap-right{background-image:url(rail-x.png);background-repeat:repeat-x}.yui3-skin-sam .yui3-slider-x .yui3-slider-rail{height:26px}.yui3-skin-sam .yui3-slider-x .yui3-slider-thumb{height:26px;width:15px}.yui3-skin-sam .yui3-slider-x .yui3-slider-rail-cap-left{background-position:0 -20px;height:20px;left:-2px;width:5px}.yui3-skin-sam .yui3-slider-x .yui3-slider-rail-cap-right{background-position:0 -40px;height:20px;right:-2px;width:5px}.yui3-skin-sam .yui3-slider-x .yui3-slider-thumb-image{left:0;top:-10px}.yui3-skin-sam .yui3-slider-x .yui3-slider-thumb-shadow{left:0;opacity:.15;filter:alpha(opacity=15);top:-50px}.yui3-skin-sam .yui3-slider-y .yui3-slider-rail,.yui3-skin-sam .yui3-slider-y .yui3-slider-rail-cap-top,.yui3-skin-sam .yui3-slider-y .yui3-slider-rail-cap-bottom{background-image:url(rail-y.png);background-repeat:repeat-y}.yui3-skin-sam .yui3-slider-y .yui3-slider-rail{width:26px}.yui3-skin-sam .yui3-slider-y .yui3-slider-thumb{width:26px;height:15px}.yui3-skin-sam .yui3-slider-y .yui3-slider-rail-cap-top{background-position:-20px 0;width:20px;top:-2px;height:5px}.yui3-skin-sam .yui3-slider-y .yui3-slider-rail-cap-bottom{background-position:-40px 0;width:20px;bottom:-2px;height:5px}.yui3-skin-sam .yui3-slider-y .yui3-slider-thumb-image{left:-10px;top:0}.yui3-skin-sam .yui3-slider-y .yui3-slider-thumb-shadow{left:-50px;opacity:.15;filter:alpha(opacity=15);top:0}#yui3-css-stamp.skin-sam-slider-base{display:none}
jrbasso/cdnjs
ajax/libs/yui/3.17.1/slider-base/assets/skins/sam/slider-base.css
CSS
mit
2,186
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ /* Horizontal Slider */ /* Use thumbUrl /build/slider-base/assets/skins/sam/thumb-x.png */ .yui3-skin-sam .yui3-slider-x .yui3-slider-rail, .yui3-skin-sam .yui3-slider-x .yui3-slider-rail-cap-left, .yui3-skin-sam .yui3-slider-x .yui3-slider-rail-cap-right { background-image: url(rail-x.png); background-repeat: repeat-x; /* alternate: rail-x-lines.png */ } .yui3-skin-sam .yui3-slider-x .yui3-slider-rail { height: 26px; } .yui3-skin-sam .yui3-slider-x .yui3-slider-thumb { height: 26px; width: 15px; } .yui3-skin-sam .yui3-slider-x .yui3-slider-rail-cap-left { background-position: 0 -20px; height: 20px; left: -2px; width: 5px; } .yui3-skin-sam .yui3-slider-x .yui3-slider-rail-cap-right { background-position: 0 -40px; height: 20px; right: -2px; width: 5px; } .yui3-skin-sam .yui3-slider-x .yui3-slider-thumb-image { left: 0; top: -10px; } .yui3-skin-sam .yui3-slider-x .yui3-slider-thumb-shadow { left: 0; opacity: 0.15; filter: alpha(opacity=15); top: -50px; } /* Vertical Slider */ /* Use thumbUrl /build/slider-base/assets/skins/sam/thumb-y.png */ .yui3-skin-sam .yui3-slider-y .yui3-slider-rail, .yui3-skin-sam .yui3-slider-y .yui3-slider-rail-cap-top, .yui3-skin-sam .yui3-slider-y .yui3-slider-rail-cap-bottom { background-image: url(rail-y.png); background-repeat: repeat-y; /* alternate: rail-y-lines.png */ } .yui3-skin-sam .yui3-slider-y .yui3-slider-rail { width: 26px; } .yui3-skin-sam .yui3-slider-y .yui3-slider-thumb { width: 26px; height: 15px; } .yui3-skin-sam .yui3-slider-y .yui3-slider-rail-cap-top { background-position: -20px 0; width: 20px; top: -2px; height: 5px; } .yui3-skin-sam .yui3-slider-y .yui3-slider-rail-cap-bottom { background-position: -40px 0; width: 20px; bottom: -2px; height: 5px; } .yui3-skin-sam .yui3-slider-y .yui3-slider-thumb-image { left: -10px; top: 0; } .yui3-skin-sam .yui3-slider-y .yui3-slider-thumb-shadow { left: -50px; opacity: 0.15; filter: alpha(opacity=15); top: 0; }
NamPNQ/cdnjs
ajax/libs/yui/3.17.1/slider-base/assets/skins/sam/slider-base-skin.css
CSS
mit
2,247
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('series-combo-stacked', function (Y, NAME) { /** * Provides functionality for creating a stacked combo series. * * @module charts * @submodule series-combo-stacked */ /** * The StackedComboSeries class renders a combination of lines, plots and area fills in a single series. Series * are stacked along the value axis to indicate each series contribution to a cumulative total. Each * series type has a corresponding boolean attribute indicating if it is rendered. By default, all three types are * rendered. * * @class StackedComboSeries * @extends ComboSeries * @uses StackingUtil * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule series-combo-stacked */ Y.StackedComboSeries = Y.Base.create("stackedComboSeries", Y.ComboSeries, [Y.StackingUtil], { /** * @protected * * Calculates the coordinates for the series. Overrides base implementation. * * @method setAreaData */ setAreaData: function() { Y.StackedComboSeries.superclass.setAreaData.apply(this); this._stackCoordinates.apply(this); }, /** * @protected * * Draws the series. * * @method drawSeries */ drawSeries: function() { if(this.get("showAreaFill")) { this.drawFill.apply(this, this._getStackedClosingPoints()); } if(this.get("showLines")) { this.drawLines(); } if(this.get("showMarkers")) { this.drawPlots(); } } }, { ATTRS : { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @default stackedCombo */ type: { value: "stackedCombo" }, /** * Indicates whether a fill is displayed. * * @attribute showAreaFill * @type Boolean * @default true */ showAreaFill: { value: true } } }); }, '3.17.1', {"requires": ["series-stacked", "series-combo"]});
ahocevar/cdnjs
ajax/libs/yui/3.17.1/series-combo-stacked/series-combo-stacked.js
JavaScript
mit
2,272
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('console-filters', function (Y, NAME) { /** * <p>Provides Plugin.ConsoleFilters plugin class.</p> * * <p>This plugin adds the ability to control which Console entries display by filtering on category and source. Two groups of checkboxes are added to the Console footer, one for categories and the other for sources. Only those messages that match a checked category or source are displayed.</p> * * @module console-filters * @namespace Plugin * @class ConsoleFilters */ // Some common strings and functions var getCN = Y.ClassNameManager.getClassName, CONSOLE = 'console', FILTERS = 'filters', FILTER = 'filter', CATEGORY = 'category', SOURCE = 'source', CATEGORY_DOT = 'category.', SOURCE_DOT = 'source.', HOST = 'host', CHECKED = 'checked', DEF_VISIBILITY = 'defaultVisibility', DOT = '.', EMPTY = '', C_BODY = DOT + Y.Console.CHROME_CLASSES.console_bd_class, C_FOOT = DOT + Y.Console.CHROME_CLASSES.console_ft_class, SEL_CHECK = 'input[type=checkbox].', isString = Y.Lang.isString; function ConsoleFilters() { ConsoleFilters.superclass.constructor.apply(this,arguments); } Y.namespace('Plugin').ConsoleFilters = Y.extend(ConsoleFilters, Y.Plugin.Base, // Y.Plugin.ConsoleFilters prototype { /** * Collection of all log messages passed through since the plugin's * instantiation. This holds all messages regardless of filter status. * Used as a single source of truth for repopulating the Console body when * filters are changed. * * @property _entries * @type Array * @protected */ _entries : null, /** * Maximum number of entries to store in the message cache. * * @property _cacheLimit * @type {Number} * @default Infinity * @protected */ _cacheLimit : Number.POSITIVE_INFINITY, /** * The container node created to house the category filters. * * @property _categories * @type Node * @protected */ _categories : null, /** * The container node created to house the source filters. * * @property _sources * @type Node * @protected */ _sources : null, /** * Initialize entries collection and attach listeners to host events and * methods. * * @method initializer * @protected */ initializer : function () { this._entries = []; this.get(HOST).on("entry", this._onEntry, this); this.doAfter("renderUI", this.renderUI); this.doAfter("syncUI", this.syncUI); this.doAfter("bindUI", this.bindUI); this.doAfter("clearConsole", this._afterClearConsole); if (this.get(HOST).get('rendered')) { this.renderUI(); this.syncUI(); this.bindUI(); } this.after("cacheLimitChange", this._afterCacheLimitChange); }, /** * Removes the plugin UI and unwires events. * * @method destructor * @protected */ destructor : function () { //TODO: grab last {consoleLimit} entries and update the console with //them (no filtering) this._entries = []; if (this._categories) { this._categories.remove(); } if (this._sources) { this._sources.remove(); } }, /** * Adds the category and source filter sections to the Console footer. * * @method renderUI * @protected */ renderUI : function () { var foot = this.get(HOST).get('contentBox').one(C_FOOT), html; if (foot) { html = Y.Lang.sub( ConsoleFilters.CATEGORIES_TEMPLATE, ConsoleFilters.CHROME_CLASSES); this._categories = foot.appendChild(Y.Node.create(html)); html = Y.Lang.sub( ConsoleFilters.SOURCES_TEMPLATE, ConsoleFilters.CHROME_CLASSES); this._sources = foot.appendChild(Y.Node.create(html)); } }, /** * Binds to checkbox click events and internal attribute change events to * maintain the UI state. * * @method bindUI * @protected */ bindUI : function () { this._categories.on('click', Y.bind(this._onCategoryCheckboxClick, this)); this._sources.on('click', Y.bind(this._onSourceCheckboxClick, this)); this.after('categoryChange',this._afterCategoryChange); this.after('sourceChange', this._afterSourceChange); }, /** * Updates the UI to be in accordance with the current state of the plugin. * * @method syncUI */ syncUI : function () { Y.each(this.get(CATEGORY), function (v, k) { this._uiSetCheckbox(CATEGORY, k, v); }, this); Y.each(this.get(SOURCE), function (v, k) { this._uiSetCheckbox(SOURCE, k, v); }, this); this.refreshConsole(); }, /** * Ensures a filter is set up for any new categories or sources and * collects the messages in _entries. If the message is stamped with a * category or source that is currently being filtered out, the message * will not pass to the Console's print buffer. * * @method _onEntry * @param e {Event} the custom event object * @protected */ _onEntry : function (e) { this._entries.push(e.message); var cat = CATEGORY_DOT + e.message.category, src = SOURCE_DOT + e.message.source, cat_filter = this.get(cat), src_filter = this.get(src), overLimit = this._entries.length - this._cacheLimit, visible; if (overLimit > 0) { this._entries.splice(0, overLimit); } if (cat_filter === undefined) { visible = this.get(DEF_VISIBILITY); this.set(cat, visible); cat_filter = visible; } if (src_filter === undefined) { visible = this.get(DEF_VISIBILITY); this.set(src, visible); src_filter = visible; } if (!cat_filter || !src_filter) { e.preventDefault(); } }, /** * Flushes the cached entries after a call to the Console's clearConsole(). * * @method _afterClearConsole * @protected */ _afterClearConsole : function () { this._entries = []; }, /** * Triggers the Console to update if a known category filter * changes value (e.g. visible => hidden). Updates the appropriate * checkbox's checked state if necessary. * * @method _afterCategoryChange * @param e {Event} the attribute change event object * @protected */ _afterCategoryChange : function (e) { var cat = e.subAttrName.replace(/category\./, EMPTY), before = e.prevVal, after = e.newVal; // Don't update the console for new categories if (!cat || before[cat] !== undefined) { this.refreshConsole(); this._filterBuffer(); } if (cat && !e.fromUI) { this._uiSetCheckbox(CATEGORY, cat, after[cat]); } }, /** * Triggers the Console to update if a known source filter * changes value (e.g. visible => hidden). Updates the appropriate * checkbox's checked state if necessary. * * @method _afterSourceChange * @param e {Event} the attribute change event object * @protected */ _afterSourceChange : function (e) { var src = e.subAttrName.replace(/source\./, EMPTY), before = e.prevVal, after = e.newVal; // Don't update the console for new sources if (!src || before[src] !== undefined) { this.refreshConsole(); this._filterBuffer(); } if (src && !e.fromUI) { this._uiSetCheckbox(SOURCE, src, after[src]); } }, /** * Flushes the Console's print buffer of any entries that have a category * or source that is currently being excluded. * * @method _filterBuffer * @protected */ _filterBuffer : function () { var cats = this.get(CATEGORY), srcs = this.get(SOURCE), buffer = this.get(HOST).buffer, start = null, i; for (i = buffer.length - 1; i >= 0; --i) { if (!cats[buffer[i].category] || !srcs[buffer[i].source]) { start = start || i; } else if (start) { buffer.splice(i,(start - i)); start = null; } } if (start) { buffer.splice(0,start + 1); } }, /** * Trims the cache of entries to the appropriate new length. * * @method _afterCacheLimitChange * @param e {Event} the attribute change event object * @protected */ _afterCacheLimitChange : function (e) { if (isFinite(e.newVal)) { var delta = this._entries.length - e.newVal; if (delta > 0) { this._entries.splice(0,delta); } } }, /** * Repopulates the Console with entries appropriate to the current filter * settings. * * @method refreshConsole */ refreshConsole : function () { var entries = this._entries, host = this.get(HOST), body = host.get('contentBox').one(C_BODY), remaining = host.get('consoleLimit'), cats = this.get(CATEGORY), srcs = this.get(SOURCE), buffer = [], i,e; if (body) { host._cancelPrintLoop(); // Evaluate all entries from latest to oldest for (i = entries.length - 1; i >= 0 && remaining >= 0; --i) { e = entries[i]; if (cats[e.category] && srcs[e.source]) { buffer.unshift(e); --remaining; } } body.setHTML(EMPTY); host.buffer = buffer; host.printBuffer(); } }, /** * Updates the checked property of a filter checkbox of the specified type. * If no checkbox is found for the input params, one is created. * * @method _uiSetCheckbox * @param type {String} 'category' or 'source' * @param item {String} the name of the filter (e.g. 'info', 'event') * @param checked {Boolean} value to set the checkbox's checked property * @protected */ _uiSetCheckbox : function (type, item, checked) { if (type && item) { var container = type === CATEGORY ? this._categories : this._sources, sel = SEL_CHECK + getCN(CONSOLE,FILTER,item), checkbox = container.one(sel), host; if (!checkbox) { host = this.get(HOST); this._createCheckbox(container, item); checkbox = container.one(sel); host._uiSetHeight(host.get('height')); } checkbox.set(CHECKED, checked); } }, /** * Passes checkbox clicks on to the category attribute. * * @method _onCategoryCheckboxClick * @param e {Event} the DOM event * @protected */ _onCategoryCheckboxClick : function (e) { var t = e.target, cat; if (t.hasClass(ConsoleFilters.CHROME_CLASSES.filter)) { cat = t.get('value'); if (cat && cat in this.get(CATEGORY)) { this.set(CATEGORY_DOT + cat, t.get(CHECKED), { fromUI: true }); } } }, /** * Passes checkbox clicks on to the source attribute. * * @method _onSourceCheckboxClick * @param e {Event} the DOM event * @protected */ _onSourceCheckboxClick : function (e) { var t = e.target, src; if (t.hasClass(ConsoleFilters.CHROME_CLASSES.filter)) { src = t.get('value'); if (src && src in this.get(SOURCE)) { this.set(SOURCE_DOT + src, t.get(CHECKED), { fromUI: true }); } } }, /** * Hides any number of categories from the UI. Convenience method for * myConsole.filter.set('category.foo', false); set('category.bar', false); * and so on. * * @method hideCategory * @param cat* {String} 1..n categories to filter out of the UI */ hideCategory : function (cat, multiple) { if (isString(multiple)) { Y.Array.each(arguments, this.hideCategory, this); } else { this.set(CATEGORY_DOT + cat, false); } }, /** * Shows any number of categories in the UI. Convenience method for * myConsole.filter.set('category.foo', true); set('category.bar', true); * and so on. * * @method showCategory * @param cat* {String} 1..n categories to allow to display in the UI */ showCategory : function (cat, multiple) { if (isString(multiple)) { Y.Array.each(arguments, this.showCategory, this); } else { this.set(CATEGORY_DOT + cat, true); } }, /** * Hides any number of sources from the UI. Convenience method for * myConsole.filter.set('source.foo', false); set('source.bar', false); * and so on. * * @method hideSource * @param src* {String} 1..n sources to filter out of the UI */ hideSource : function (src, multiple) { if (isString(multiple)) { Y.Array.each(arguments, this.hideSource, this); } else { this.set(SOURCE_DOT + src, false); } }, /** * Shows any number of sources in the UI. Convenience method for * myConsole.filter.set('source.foo', true); set('source.bar', true); * and so on. * * @method showSource * @param src* {String} 1..n sources to allow to display in the UI */ showSource : function (src, multiple) { if (isString(multiple)) { Y.Array.each(arguments, this.showSource, this); } else { this.set(SOURCE_DOT + src, true); } }, /** * Creates a checkbox and label from the ConsoleFilters.FILTER_TEMPLATE for * the provided type and name. The checkbox and label are appended to the * container node passes as the first arg. * * @method _createCheckbox * @param container {Node} the parentNode of the new checkbox and label * @param name {String} the identifier of the filter * @protected */ _createCheckbox : function (container, name) { var info = Y.merge(ConsoleFilters.CHROME_CLASSES, { filter_name : name, filter_class : getCN(CONSOLE, FILTER, name) }), node = Y.Node.create( Y.Lang.sub(ConsoleFilters.FILTER_TEMPLATE, info)); container.appendChild(node); }, /** * Validates category updates are objects and the subattribute is not too * deep. * * @method _validateCategory * @param cat {String} the new category:visibility map * @param v {String} the subattribute path updated * @return Boolean * @protected */ _validateCategory : function (cat, v) { return Y.Lang.isObject(v,true) && cat.split(/\./).length < 3; }, /** * Validates source updates are objects and the subattribute is not too * deep. * * @method _validateSource * @param cat {String} the new source:visibility map * @param v {String} the subattribute path updated * @return Boolean * @protected */ _validateSource : function (src, v) { return Y.Lang.isObject(v,true) && src.split(/\./).length < 3; }, /** * Setter method for cacheLimit attribute. Basically a validator to ensure * numeric input. * * @method _setCacheLimit * @param v {Number} Maximum number of entries * @return {Number} * @protected */ _setCacheLimit: function (v) { if (Y.Lang.isNumber(v)) { this._cacheLimit = v; return v; } else { return Y.Attribute.INVALID_VALUE; } } }, // Y.Plugin.ConsoleFilters static properties { /** * Plugin name. * * @property NAME * @type String * @static * @default 'consoleFilters' */ NAME : 'consoleFilters', /** * The namespace hung off the host object that this plugin will inhabit. * * @property NS * @type String * @static * @default 'filter' */ NS : FILTER, /** * Markup template used to create the container for the category filters. * * @property CATEGORIES_TEMPLATE * @type String * @static */ CATEGORIES_TEMPLATE : '<div class="{categories}"></div>', /** * Markup template used to create the container for the source filters. * * @property SOURCES_TEMPLATE * @type String * @static */ SOURCES_TEMPLATE : '<div class="{sources}"></div>', /** * Markup template used to create the category and source filter checkboxes. * * @property FILTER_TEMPLATE * @type String * @static */ FILTER_TEMPLATE : // IE8 and FF3 don't permit breaking _between_ nowrap elements. IE8 // doesn't understand (non spec) wbr tag, nor does it create text nodes // for spaces in innerHTML strings. The thin-space entity suffices to // create a breakable point. '<label class="{filter_label}">'+ '<input type="checkbox" value="{filter_name}" '+ 'class="{filter} {filter_class}"> {filter_name}'+ '</label>&#8201;', /** * Classnames used by the templates when creating nodes. * * @property CHROME_CLASSES * @type Object * @static * @protected */ CHROME_CLASSES : { categories : getCN(CONSOLE,FILTERS,'categories'), sources : getCN(CONSOLE,FILTERS,'sources'), category : getCN(CONSOLE,FILTER,CATEGORY), source : getCN(CONSOLE,FILTER,SOURCE), filter : getCN(CONSOLE,FILTER), filter_label : getCN(CONSOLE,FILTER,'label') }, ATTRS : { /** * Default visibility applied to new categories and sources. * * @attribute defaultVisibility * @type {Boolean} * @default true */ defaultVisibility : { value : true, validator : Y.Lang.isBoolean }, /** * <p>Map of entry categories to their visibility status. Update a * particular category's visibility by setting the subattribute to true * (visible) or false (hidden).</p> * * <p>For example, yconsole.filter.set('category.info', false) to hide * log entries with the category/logLevel of 'info'.</p> * * <p>Similarly, yconsole.filter.get('category.warn') will return a * boolean indicating whether that category is currently being included * in the UI.</p> * * <p>Unlike the YUI instance configuration's logInclude and logExclude * properties, filtered entries are only hidden from the UI, but * can be made visible again.</p> * * @attribute category * @type Object */ category : { value : {}, validator : function (v,k) { return this._validateCategory(k,v); } }, /** * <p>Map of entry sources to their visibility status. Update a * particular sources's visibility by setting the subattribute to true * (visible) or false (hidden).</p> * * <p>For example, yconsole.filter.set('sources.slider', false) to hide * log entries originating from Y.Slider.</p> * * @attribute source * @type Object */ source : { value : {}, validator : function (v,k) { return this._validateSource(k,v); } }, /** * Maximum number of entries to store in the message cache. Use this to * limit the memory footprint in environments with heavy log usage. * By default, there is no limit (Number.POSITIVE_INFINITY). * * @attribute cacheLimit * @type {Number} * @default Number.POSITIVE_INFINITY */ cacheLimit : { value : Number.POSITIVE_INFINITY, setter : function (v) { return this._setCacheLimit(v); } } } }); }, '3.17.1', {"requires": ["plugin", "console"], "skinnable": true});
sparkgeo/cdnjs
ajax/libs/yui/3.17.1/console-filters/console-filters-debug.js
JavaScript
mit
21,321
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datasource-jsonschema', function (Y, NAME) { /** * Extends DataSource with schema-parsing on JSON data. * * @module datasource * @submodule datasource-jsonschema */ /** * Adds schema-parsing to the DataSource Utility. * @class DataSourceJSONSchema * @extends Plugin.Base */ var DataSourceJSONSchema = function() { DataSourceJSONSchema.superclass.constructor.apply(this, arguments); }; Y.mix(DataSourceJSONSchema, { /** * The namespace for the plugin. This will be the property on the host which * references the plugin instance. * * @property NS * @type String * @static * @final * @value "schema" */ NS: "schema", /** * Class name. * * @property NAME * @type String * @static * @final * @value "dataSourceJSONSchema" */ NAME: "dataSourceJSONSchema", ///////////////////////////////////////////////////////////////////////////// // // DataSourceJSONSchema Attributes // ///////////////////////////////////////////////////////////////////////////// ATTRS: { schema: { //value: {} } } }); Y.extend(DataSourceJSONSchema, Y.Plugin.Base, { /** * Internal init() handler. * * @method initializer * @param config {Object} Config object. * @private */ initializer: function(config) { this.doBefore("_defDataFn", this._beforeDefDataFn); }, /** * Parses raw data into a normalized response. To accommodate XHR responses, * will first look for data in data.responseText. Otherwise will just work * with data. * * @method _beforeDefDataFn * @param tId {Number} Unique transaction ID. * @param request {Object} The request. * @param callback {Object} The callback object with the following properties: * <dl> * <dt>success (Function)</dt> <dd>Success handler.</dd> * <dt>failure (Function)</dt> <dd>Failure handler.</dd> * </dl> * @param data {Object} Raw data. * @protected */ _beforeDefDataFn: function(e) { var data = e.data && (e.data.responseText || e.data), schema = this.get('schema'), payload = e.details[0]; payload.response = Y.DataSchema.JSON.apply.call(this, schema, data) || { meta: {}, results: data }; this.get("host").fire("response", payload); return new Y.Do.Halt("DataSourceJSONSchema plugin halted _defDataFn"); } }); Y.namespace('Plugin').DataSourceJSONSchema = DataSourceJSONSchema; }, '3.17.1', {"requires": ["datasource-local", "plugin", "dataschema-json"]});
hipertracker/cdnjs
ajax/libs/yui/3.17.1/datasource-jsonschema/datasource-jsonschema-debug.js
JavaScript
mit
2,852
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('series-bar-stacked', function (Y, NAME) { /** * Provides functionality for creating a stacked bar series. * * @module charts * @submodule series-bar-stacked */ var Y_Lang = Y.Lang; /** * The StackedBarSeries renders bar chart in which series are stacked horizontally to show * their contribution to the cumulative total. * * @class StackedBarSeries * @extends BarSeries * @uses StackingUtil * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule series-bar-stacked */ Y.StackedBarSeries = Y.Base.create("stackedBarSeries", Y.BarSeries, [Y.StackingUtil], { /** * @protected * * Draws the series. * * @method drawSeries */ drawSeries: function() { if(this.get("xcoords").length < 1) { return; } var isNumber = Y_Lang.isNumber, style = this._copyObject(this.get("styles").marker), w = style.width, h = style.height, xcoords = this.get("xcoords"), ycoords = this.get("ycoords"), i = 0, len = xcoords.length, top = ycoords[0], seriesCollection = this.get("seriesTypeCollection"), ratio, order = this.get("order"), graphOrder = this.get("graphOrder"), left, marker, lastCollection, negativeBaseValues, positiveBaseValues, fillColors, borderColors, useOrigin = order === 0, totalHeight = len * h, dimensions = { width: [], height: [] }, xvalues = [], yvalues = [], groupMarkers = this.get("groupMarkers"); if(Y_Lang.isArray(style.fill.color)) { fillColors = style.fill.color.concat(); } if(Y_Lang.isArray(style.border.color)) { borderColors = style.border.color.concat(); } this._createMarkerCache(); if(totalHeight > this.get("height")) { ratio = this.get("height")/totalHeight; h *= ratio; h = Math.max(h, 1); } if(!useOrigin) { lastCollection = seriesCollection[order - 1]; negativeBaseValues = lastCollection.get("negativeBaseValues"); positiveBaseValues = lastCollection.get("positiveBaseValues"); if(!negativeBaseValues || !positiveBaseValues) { useOrigin = true; positiveBaseValues = []; negativeBaseValues = []; } } else { negativeBaseValues = []; positiveBaseValues = []; } this.set("negativeBaseValues", negativeBaseValues); this.set("positiveBaseValues", positiveBaseValues); for(i = 0; i < len; ++i) { top = ycoords[i]; left = xcoords[i]; if(!isNumber(top) || !isNumber(left)) { if(useOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = this._leftOrigin; } this._markers.push(null); continue; } if(useOrigin) { w = Math.abs(left - this._leftOrigin); if(left > this._leftOrigin) { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; left -= w; } else if(left < this._leftOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = left; } else { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; } } else { if(left < this._leftOrigin) { left = negativeBaseValues[i] - (this._leftOrigin - xcoords[i]); w = negativeBaseValues[i] - left; negativeBaseValues[i] = left; } else if(left >= this._leftOrigin) { left += (positiveBaseValues[i] - this._leftOrigin); w = left - positiveBaseValues[i]; positiveBaseValues[i] = left; left -= w; } } if(!isNaN(w) && w > 0) { top -= h/2; if(groupMarkers) { dimensions.width[i] = w; dimensions.height[i] = h; xvalues.push(left); yvalues.push(top); } else { style.width = w; style.height = h; style.x = left; style.y = top; if(fillColors) { style.fill.color = fillColors[i % fillColors.length]; } if(borderColors) { style.border.color = borderColors[i % borderColors.length]; } marker = this.getMarker(style, graphOrder, i); } } else if(!groupMarkers) { this._markers.push(null); } } if(groupMarkers) { this._createGroupMarker({ fill: style.fill, border: style.border, dimensions: dimensions, xvalues: xvalues, yvalues: yvalues, shape: style.shape }); } else { this._clearMarkerCache(); } }, /** * @protected * * Resizes and positions markers based on a mouse interaction. * * @method updateMarkerState * @param {String} type state of the marker * @param {Number} i index of the marker */ updateMarkerState: function(type, i) { if(this._markers[i]) { var state = this._getState(type), ycoords = this.get("ycoords"), marker = this._markers[i], styles = this.get("styles").marker, h = styles.height, markerStyles = state === "off" || !styles[state] ? this._copyObject(styles) : this._copyObject(styles[state]), fillColor, borderColor; markerStyles.y = (ycoords[i] - h/2); markerStyles.x = marker.get("x"); markerStyles.width = marker.get("width"); markerStyles.id = marker.get("id"); fillColor = markerStyles.fill.color; borderColor = markerStyles.border.color; if(Y_Lang.isArray(fillColor)) { markerStyles.fill.color = fillColor[i % fillColor.length]; } else { markerStyles.fill.color = this._getItemColor(markerStyles.fill.color, i); } if(Y_Lang.isArray(borderColor)) { markerStyles.border.color = borderColor[i % borderColor.length]; } else { markerStyles.border.color = this._getItemColor(markerStyles.border.color, i); } marker.set(markerStyles); } }, /** * @protected * * Returns default values for the `styles` attribute. * * @method _getPlotDefaults * @return Object */ _getPlotDefaults: function() { var defs = { fill:{ type: "solid", alpha: 1, colors:null, alphas: null, ratios: null }, border:{ weight: 0, alpha: 1 }, width: 24, height: 24, shape: "rect", padding:{ top: 0, left: 0, right: 0, bottom: 0 } }; defs.fill.color = this._getDefaultColor(this.get("graphOrder"), "fill"); defs.border.color = this._getDefaultColor(this.get("graphOrder"), "border"); return defs; } }, { ATTRS: { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @default stackedBar */ type: { value: "stackedBar" }, /** * Direction of the series * * @attribute direction * @type String * @default vertical */ direction: { value: "vertical" }, /** * @private * * @attribute negativeBaseValues * @type Array * @default null */ negativeBaseValues: { value: null }, /** * @private * * @attribute positiveBaseValues * @type Array * @default null */ positiveBaseValues: { value: null } /** * Style properties used for drawing markers. This attribute is inherited from `BarSeries`. Below are the default values: * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the fill. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]` * </dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the border. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#205096", "#b38206", "#000000", "#94001e", "#9d6fa0", "#e55b00", "#5e85c9", "#adab9e", "#6ac291", "#006457"]` * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 1.</dd> * </dl> * </dd> * <dt>height</dt><dd>indicates the width of the marker. The default value is 24.</dd> * <dt>over</dt><dd>hash containing styles for markers when highlighted by a `mouseover` event. The default * values for each style is null. When an over style is not set, the non-over value will be used. For example, * the default value for `marker.over.fill.color` is equivalent to `marker.fill.color`.</dd> * </dl> * * @attribute styles * @type Object */ } }); }, '3.17.1', {"requires": ["series-stacked", "series-bar"]});
ZDroid/cdnjs
ajax/libs/yui/3.17.1/series-bar-stacked/series-bar-stacked-debug.js
JavaScript
mit
11,879
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('axis-base', function (Y, NAME) { /** * The Charts widget provides an api for displaying data * graphically. * * @module charts * @main charts */ /** * Provides functionality for the handling of axis data in a chart. * * @module charts * @submodule axis-base */ var Y_Lang = Y.Lang; /** * The Renderer class is a base class for chart components that use the `styles` * attribute. * * @module charts * @class Renderer * @constructor */ function Renderer(){} Renderer.ATTRS = { /** * Style properties for class * * @attribute styles * @type Object */ styles: { getter: function() { this._styles = this._styles || this._getDefaultStyles(); return this._styles; }, setter: function(val) { this._styles = this._setStyles(val); } }, /** * The graphic in which drawings will be rendered. * * @attribute graphic * @type Graphic */ graphic: {} }; Renderer.NAME = "renderer"; Renderer.prototype = { /** * Storage for `styles` attribute. * * @property _styles * @type Object * @private */ _styles: null, /** * Method used by `styles` setter. * * @method _setStyles * @param {Object} newStyles Hash of properties to update. * @return Object * @protected */ _setStyles: function(newstyles) { var styles = this.get("styles"); return this._mergeStyles(newstyles, styles); }, /** * Merges to object literals so that only specified properties are * overwritten. * * @method _mergeStyles * @param {Object} a Hash of new styles * @param {Object} b Hash of original styles * @return Object * @protected */ _mergeStyles: function(a, b) { if(!b) { b = {}; } var newstyles = Y.merge(b, {}); Y.Object.each(a, function(value, key) { if(b.hasOwnProperty(key) && Y_Lang.isObject(value) && !Y_Lang.isFunction(value) && !Y_Lang.isArray(value)) { newstyles[key] = this._mergeStyles(value, b[key]); } else { newstyles[key] = value; } }, this); return newstyles; }, /** * Copies an object literal. * * @method _copyObject * @param {Object} obj Object literal to be copied. * @return Object * @private */ _copyObject: function(obj) { var newObj = {}, key, val; for(key in obj) { if(obj.hasOwnProperty(key)) { val = obj[key]; if(typeof val === "object" && !Y_Lang.isArray(val)) { newObj[key] = this._copyObject(val); } else { newObj[key] = val; } } } return newObj; }, /** * Gets the default value for the `styles` attribute. * * @method _getDefaultStyles * @return Object * @protected */ _getDefaultStyles: function() { return {padding:{ top:0, right: 0, bottom: 0, left: 0 }}; } }; Y.augment(Renderer, Y.Attribute); Y.Renderer = Renderer; /** * The axis-base submodule contains functionality for the handling of axis data in a chart. * * @module charts * @submodule axis-base */ /** * An abstract class that provides the core functionality used by the following classes: * <ul> * <li>{{#crossLink "CategoryAxisBase"}}{{/crossLink}}</li> * <li>{{#crossLink "NumericAxisBase"}}{{/crossLink}}</li> * <li>{{#crossLink "StackedAxisBase"}}{{/crossLink}}</li> * <li>{{#crossLink "TimeAxisBase"}}{{/crossLink}}</li> * <li>{{#crossLink "CategoryAxis"}}{{/crossLink}}</li> * <li>{{#crossLink "NumericAxis"}}{{/crossLink}}</li> * <li>{{#crossLink "StackedAxis"}}{{/crossLink}}</li> * <li>{{#crossLink "TimeAxis"}}{{/crossLink}}</li> * </ul> * * @class AxisBase * @constructor * @extends Base * @uses Renderer * @param {Object} config (optional) Configuration parameters. * @submodule axis-base */ Y.AxisBase = Y.Base.create("axisBase", Y.Base, [Y.Renderer], { /** * @method initializer * @private */ initializer: function() { this.after("minimumChange", Y.bind(this._keyChangeHandler, this)); this.after("maximumChange", Y.bind(this._keyChangeHandler, this)); this.after("keysChange", this._keyChangeHandler); this.after("dataProviderChange", this._dataProviderChangeHandler); }, /** * Returns the value corresponding to the origin on the axis. * * @method getOrigin * @return Number */ getOrigin: function() { return this.get("minimum"); }, /** * Handles changes to `dataProvider`. * * @method _dataProviderChangeHandler * @param {Object} e Event object. * @private */ _dataProviderChangeHandler: function() { var keyCollection = this.get("keyCollection").concat(), keys = this.get("keys"), i; if(keys) { for(i in keys) { if(keys.hasOwnProperty(i)) { delete keys[i]; } } } if(keyCollection && keyCollection.length) { this.set("keys", keyCollection); } }, /** * Calculates the maximum and minimum values for the `Data`. * * @method _updateMinAndMax * @private */ _updateMinAndMax: function() { }, /** * Constant used to generate unique id. * * @property GUID * @type String * @private */ GUID: "yuibaseaxis", /** * Type of data used in `Axis`. * * @property _type * @type String * @readOnly * @private */ _type: null, /** * Storage for `setMaximum` attribute. * * @property _setMaximum * @type Object * @private */ _setMaximum: null, /** * Storage for `setMinimum` attribute. * * @property _setMinimum * @type Object * @private */ _setMinimum: null, /** * Reference to data array. * * @property _data * @type Array * @private */ _data: null, /** * Indicates whether the all data is up to date. * * @property _updateTotalDataFlag * @type Boolean * @private */ _updateTotalDataFlag: true, /** * Storage for `dataReady` attribute. * * @property _dataReady * @type Boolean * @readOnly * @private */ _dataReady: false, /** * Adds an array to the key hash. * * @method addKey * @param value Indicates what key to use in retrieving * the array. */ addKey: function (value) { this.set("keys", value); }, /** * Gets an array of values based on a key. * * @method _getKeyArray * @param {String} key Value key associated with the data array. * @param {Array} data Array in which the data resides. * @return Array * @private */ _getKeyArray: function(key, data) { var i = 0, obj, keyArray = [], len = data.length; for(; i < len; ++i) { obj = data[i]; keyArray[i] = obj[key]; } return keyArray; }, /** * Updates the total data array. * * @method _updateTotalData * @private */ _updateTotalData: function() { var keys = this.get("keys"), i; this._data = []; for(i in keys) { if(keys.hasOwnProperty(i)) { this._data = this._data.concat(keys[i]); } } this._updateTotalDataFlag = false; }, /** * Removes an array from the key hash. * * @method removeKey * @param {String} value Indicates what key to use in removing from * the hash. */ removeKey: function(value) { var keys = this.get("keys"); if(keys.hasOwnProperty(value)) { delete keys[value]; this._keyChangeHandler(); } }, /** * Returns a value based of a key value and an index. * * @method getKeyValueAt * @param {String} key value used to look up the correct array * @param {Number} index within the array * @return Number */ getKeyValueAt: function(key, index) { var value = NaN, keys = this.get("keys"); if(keys[key] && Y_Lang.isNumber(parseFloat(keys[key][index]))) { value = keys[key][index]; } return parseFloat(value); }, /** * Returns values based on key identifiers. When a string is passed as an argument, an array of values is returned. * When an array of keys is passed as an argument, an object literal with an array of values mapped to each key is * returned. * * @method getDataByKey * @param {String|Array} value value used to identify the array * @return Array|Object */ getDataByKey: function (value) { var obj, i, len, key, keys = this.get("keys"); if(Y_Lang.isArray(value)) { obj = {}; len = value.length; for(i = 0; i < len; i = i + 1) { key = value[i]; if(keys[key]) { obj[key] = this.getDataByKey(key); } } } else if(keys[value]) { obj = keys[value]; } else { obj = null; } return obj; }, /** * Returns the total number of majorUnits that will appear on an axis. * * @method getTotalMajorUnits * @return Number */ getTotalMajorUnits: function() { var units, majorUnit = this.get("styles").majorUnit; units = majorUnit.count; return units; }, /** * Gets the distance that the first and last ticks are offset from there respective * edges. * * @method getEdgeOffset * @param {Number} ct Number of ticks on the axis. * @param {Number} l Length (in pixels) of the axis. * @return Number */ getEdgeOffset: function(ct, l) { var edgeOffset; if(this.get("calculateEdgeOffset")) { edgeOffset = (l/ct)/2; } else { edgeOffset = 0; } return edgeOffset; }, /** * Updates the `Axis` after a change in keys. * * @method _keyChangeHandler * @param {Object} e Event object. * @private */ _keyChangeHandler: function() { this._updateMinAndMax(); this._updateTotalDataFlag = true; this.fire("dataUpdate"); }, /** * Gets the default value for the `styles` attribute. Overrides * base implementation. * * @method _getDefaultStyles * @return Object * @protected */ _getDefaultStyles: function() { var axisstyles = { majorUnit: { determinant:"count", count:11, distance:75 } }; return axisstyles; }, /** * Getter method for maximum attribute. * * @method _maximumGetter * @return Number * @private */ _maximumGetter: function () { var max = this.get("dataMaximum"), min = this.get("minimum"); //If all values are zero, force a range so that the Axis and related series //will still render. if(min === 0 && max === 0) { max = 10; } if(Y_Lang.isNumber(this._setMaximum)) { max = this._setMaximum; } return parseFloat(max); }, /** * Setter method for maximum attribute. * * @method _maximumSetter * @param {Object} value * @private */ _maximumSetter: function (value) { this._setMaximum = parseFloat(value); return value; }, /** * Getter method for minimum attribute. * * @method _minimumGetter * @return Number * @private */ _minimumGetter: function () { var min = this.get("dataMinimum"); if(Y_Lang.isNumber(this._setMinimum)) { min = this._setMinimum; } return parseFloat(min); }, /** * Setter method for minimum attribute. * * @method _minimumSetter * @param {Object} value * @private */ _minimumSetter: function(val) { this._setMinimum = parseFloat(val); return val; }, /** * Indicates whether or not the maximum attribute has been explicitly set. * * @method _getSetMax * @return Boolean * @private */ _getSetMax: function() { return Y_Lang.isNumber(this._setMaximum); }, /** * Returns and array of coordinates corresponding to an array of data values. * * @method _getCoordsFromValues * @param {Number} min The minimum for the axis. * @param {Number} max The maximum for the axis. * @param {Number} length The distance that the axis spans. * @param {Array} dataValues An array of values. * @param {Number} offset Value in which to offset the coordinates. * @param {Boolean} reverse Indicates whether the coordinates should start from * the end of an axis. Only used in the numeric implementation. * @return Array * @private */ _getCoordsFromValues: function(min, max, length, dataValues, offset, reverse) { var i, valuecoords = [], len = dataValues.length; for(i = 0; i < len; i = i + 1) { valuecoords.push(this._getCoordFromValue.apply(this, [min, max, length, dataValues[i], offset, reverse])); } return valuecoords; }, /** * Returns and array of data values based on the axis' range and number of values. * * @method _getDataValuesByCount * @param {Number} count The number of values to be used. * @param {Number} min The minimum value of the axis. * @param {Number} max The maximum value of the axis. * @return Array * @private */ _getDataValuesByCount: function(count, min, max) { var dataValues = [], dataValue = min, len = count - 1, range = max - min, increm = range/len, i; for(i = 0; i < len; i = i + 1) { dataValues.push(dataValue); dataValue = dataValue + increm; } dataValues.push(max); return dataValues; }, /** * Indicates whether or not the minimum attribute has been explicitly set. * * @method _getSetMin * @return Boolean * @private */ _getSetMin: function() { return Y_Lang.isNumber(this._setMinimum); } }, { ATTRS: { /** * Determines whether and offset is automatically calculated for the edges of the axis. * * @attribute calculateEdgeOffset * @type Boolean */ calculateEdgeOffset: { value: false }, labelFunction: { valueFn: function() { return this.formatLabel; } }, /** * Hash of array identifed by a string value. * * @attribute keys * @type Object */ keys: { value: {}, setter: function(val) { var keys = {}, i, len, data = this.get("dataProvider"); if(Y_Lang.isArray(val)) { len = val.length; for(i = 0; i < len; ++i) { keys[val[i]] = this._getKeyArray(val[i], data); } } else if(Y_Lang.isString(val)) { keys = this.get("keys"); keys[val] = this._getKeyArray(val, data); } else { for(i in val) { if(val.hasOwnProperty(i)) { keys[i] = this._getKeyArray(i, data); } } } this._updateTotalDataFlag = true; return keys; } }, /** *Returns the type of axis data * <dl> * <dt>time</dt><dd>Manages time data</dd> * <dt>stacked</dt><dd>Manages stacked numeric data</dd> * <dt>numeric</dt><dd>Manages numeric data</dd> * <dt>category</dt><dd>Manages categorical data</dd> * </dl> * * @attribute type * @type String */ type: { readOnly: true, getter: function () { return this._type; } }, /** * Instance of `ChartDataProvider` that the class uses * to build its own data. * * @attribute dataProvider * @type Array */ dataProvider:{ setter: function (value) { return value; } }, /** * The maximum value contained in the `data` array. Used for * `maximum` when `autoMax` is true. * * @attribute dataMaximum * @type Number */ dataMaximum: { getter: function () { if(!Y_Lang.isNumber(this._dataMaximum)) { this._updateMinAndMax(); } return this._dataMaximum; } }, /** * The maximum value that will appear on an axis. * * @attribute maximum * @type Number */ maximum: { lazyAdd: false, getter: "_maximumGetter", setter: "_maximumSetter" }, /** * The minimum value contained in the `data` array. Used for * `minimum` when `autoMin` is true. * * @attribute dataMinimum * @type Number */ dataMinimum: { getter: function () { if(!Y_Lang.isNumber(this._dataMinimum)) { this._updateMinAndMax(); } return this._dataMinimum; } }, /** * The minimum value that will appear on an axis. * * @attribute minimum * @type Number */ minimum: { lazyAdd: false, getter: "_minimumGetter", setter: "_minimumSetter" }, /** * Determines whether the maximum is calculated or explicitly * set by the user. * * @attribute setMax * @type Boolean */ setMax: { readOnly: true, getter: "_getSetMax" }, /** * Determines whether the minimum is calculated or explicitly * set by the user. * * @attribute setMin * @type Boolean */ setMin: { readOnly: true, getter: "_getSetMin" }, /** * Array of axis data * * @attribute data * @type Array */ data: { getter: function () { if(!this._data || this._updateTotalDataFlag) { this._updateTotalData(); } return this._data; } }, /** * Array containing all the keys in the axis. * @attribute keyCollection * @type Array */ keyCollection: { getter: function() { var keys = this.get("keys"), i, col = []; for(i in keys) { if(keys.hasOwnProperty(i)) { col.push(i); } } return col; }, readOnly: true }, /** * Object which should have by the labelFunction * * @attribute labelFunctionScope * @type Object */ labelFunctionScope: {} } }); }, '3.17.1', {"requires": ["classnamemanager", "datatype-number", "datatype-date", "base", "event-custom"]});
drewbaumann/cdnjs
ajax/libs/yui/3.17.1/axis-base/axis-base.js
JavaScript
mit
21,644
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('series-candlestick', function (Y, NAME) { /** * Provides functionality for creating a candlestick series. * * @module charts * @submodule series-candlestick */ /** * The CandlestickSeries class renders columns (candles) and lines (wicks) representing the open, high, low and close * values for a chart. * * @class CandlestickSeries * @extends RangeSeries * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule series-candlestick */ function CandlestickSeries() { CandlestickSeries.superclass.constructor.apply(this, arguments); } CandlestickSeries.NAME = "candlestickSeries"; CandlestickSeries.ATTRS = { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @readOnly * @default candlestick */ type: { value: "candlestick" }, /** * The graphic in which drawings will be rendered. * * @attribute graphic * @type Graphic */ graphic: { lazyAdd: false, setter: function(val) { //woraround for Attribute order of operations bug if(!this.get("rendered")) { this.set("rendered", true); } this.set("upcandle", val.addShape({ type: "path" })); this.set("downcandle", val.addShape({ type: "path" })); this.set("wick", val.addShape({ type: "path" })); return val; } }, /** * Reference to the candlestick used when the close value is higher than the open value. * * @attribute upcandle * @type Path */ upcandle: {}, /** * Reference to the candlestick used when the open value is higher than the close value. * * @attribute downcandle * @type Path */ downcandle: {}, /** * Reference to the line drawn between the high and low values. * * @attribute wick * @type Path */ wick: {} /** * Style properties used for drawing candles and wicks. This attribute is inherited from `RangeSeries`. Below are the default values: * <dl> * <dt>upcandle</dt><dd>Properties for a candle representing a period that closes higher than it opens. * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the fill. The default value is "#00aa00".</dd> * </dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the border. The default value is "#000000".</dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 0.</dd> * </dl> * </dd> * </dl> * </dd> * <dt>downcandle</dt><dd>Properties for a candle representing a period that opens higher than it closes. * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the fill. The default value is "#aa0000".</dd> * </dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the border. The default value is "#000000".</dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 0.</dd> * </dl> * </dd> * </dl> * </dd> * <dt>wick</dt><dd>Properties for the wick, which is a line drawn from the high point of the period to the low point of the period. * <dl> * <dt>color</dt><dd>The color of the wick. The default value is "#000000".</dd> * <dt>weight</dt><dd>The weight of the wick. The default value is 1.</dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the wick. The default value is 1.</dd> * </dl> * </dd> * </dl> * * @attribute styles * @type Object */ }; Y.extend(CandlestickSeries, Y.RangeSeries, { /** * Draws markers for an Candlestick series. * * @method * @param {Array} xcoords The xcoordinates to be plotted. * @param {Array} opencoords The coordinates representing the open values. * @param {Array} highcoords The coordinates representing the high values. * @param {Array} lowcoords The coordinates representing the low values. * @param {Array} closecoords The coordinates representing the close values. * @param {Number} len The number of x coordinates to plot. * @param {Number} width The width of each candlestick marker. * @param {Number} halfwidth Half the width of each candlestick marker. * @param {Object} styles The styles for the series. * @private */ _drawMarkers: function(xcoords, opencoords, highcoords, lowcoords, closecoords, len, width, halfwidth, styles) { var upcandle = this.get("upcandle"), downcandle = this.get("downcandle"), candle, wick = this.get("wick"), wickStyles = styles.wick, wickWidth = wickStyles.width, cx, opencoord, highcoord, lowcoord, closecoord, left, right, top, bottom, height, leftPadding = styles.padding.left, up, i, isNumber = Y.Lang.isNumber; upcandle.set(styles.upcandle); downcandle.set(styles.downcandle); wick.set({ fill: wickStyles.fill, stroke: wickStyles.stroke, shapeRendering: wickStyles.shapeRendering }); upcandle.clear(); downcandle.clear(); wick.clear(); for(i = 0; i < len; i = i + 1) { cx = Math.round(xcoords[i] + leftPadding); left = cx - halfwidth; right = cx + halfwidth; opencoord = Math.round(opencoords[i]); highcoord = Math.round(highcoords[i]); lowcoord = Math.round(lowcoords[i]); closecoord = Math.round(closecoords[i]); up = opencoord > closecoord; top = up ? closecoord : opencoord; bottom = up ? opencoord : closecoord; height = bottom - top; candle = up ? upcandle : downcandle; if(candle && isNumber(left) && isNumber(top) && isNumber(width) && isNumber(height)) { candle.drawRect(left, top, width, height); } if(isNumber(cx) && isNumber(highcoord) && isNumber(lowcoord)) { wick.drawRect(cx - wickWidth/2, highcoord, wickWidth, lowcoord - highcoord); } } upcandle.end(); downcandle.end(); wick.end(); wick.toBack(); }, /** * Toggles visibility * * @method _toggleVisible * @param {Boolean} visible indicates visibilitye * @private */ _toggleVisible: function(visible) { this.get("upcandle").set("visible", visible); this.get("downcandle").set("visible", visible); this.get("wick").set("visible", visible); }, /** * Destructor implementation for the CartesianSeries class. Calls destroy on all Graphic instances. * * @method destructor * @protected */ destructor: function() { var upcandle = this.get("upcandle"), downcandle = this.get("downcandle"), wick = this.get("wick"); if(upcandle) { upcandle.destroy(); } if(downcandle) { downcandle.destroy(); } if(wick) { wick.destroy(); } }, /** * Gets the default value for the `styles` attribute. Overrides * base implementation. * * @method _getDefaultStyles * @return Object * @private */ _getDefaultStyles: function() { var styles = { upcandle: { shapeRendering: "crispEdges", fill: { color: "#00aa00", alpha: 1 }, stroke: { color: "#000000", alpha: 1, weight: 0 } }, downcandle: { shapeRendering: "crispEdges", fill: { color: "#aa0000", alpha: 1 }, stroke: { color: "#000000", alpha: 1, weight: 0 } }, wick: { shapeRendering: "crispEdges", width: 1, fill: { color: "#000000", alpha: 1 }, stroke: { color: "#000000", alpha: 1, weight: 0 } } }; return this._mergeStyles(styles, CandlestickSeries.superclass._getDefaultStyles()); } }); Y.CandlestickSeries = CandlestickSeries; }, '3.17.1', {"requires": ["series-range"]});
gaearon/cdnjs
ajax/libs/yui/3.17.1/series-candlestick/series-candlestick.js
JavaScript
mit
10,519
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('scrollview-list', function (Y, NAME) { /** * Provides a plugin, which adds support for a scroll indicator to ScrollView instances * * @module scrollview-list */ var getCN = Y.ClassNameManager.getClassName, SCROLLVIEW = 'scrollview', LIST_CLASS = getCN(SCROLLVIEW, 'list'), ITEM_CLASS = getCN(SCROLLVIEW, 'item'), CONTENT_BOX = "contentBox", HOST = "host"; /** * ScrollView plugin that adds class names to immediate descendant "<li>" to * allow for easier styling through CSS * * @class ScrollViewList * @namespace Plugin * @extends Plugin.Base * @constructor */ function ListPlugin() { ListPlugin.superclass.constructor.apply(this, arguments); } /** * The identity of the plugin * * @property NAME * @type String * @default 'pluginList' * @static */ ListPlugin.NAME = 'pluginList'; /** * The namespace on which the plugin will reside. * * @property NS * @type String * @default 'list' * @static */ ListPlugin.NS = 'list'; /** * The default attribute configuration for the plugin * * @property ATTRS * @type Object * @static */ ListPlugin.ATTRS = { /** * Specifies whether the list elements (the immediate <ul>'s and the * immediate <li>'s inside those <ul>'s) have class names attached to * them or not * * @attribute isAttached * @type boolean * @deprecated No real use for this attribute on the public API */ isAttached: { value:false, validator: Y.Lang.isBoolean } }; Y.namespace("Plugin").ScrollViewList = Y.extend(ListPlugin, Y.Plugin.Base, { /** * Designated initializer * * @method initializer */ initializer: function() { this._host = this.get(HOST); this.afterHostEvent("render", this._addClassesToList); }, _addClassesToList: function() { if (!this.get('isAttached')) { var cb = this._host.get(CONTENT_BOX), ulList, liList; if (cb.hasChildNodes()) { //get all direct descendants of the UL's that are directly under the content box. ulList = cb.all('> ul'); liList = cb.all('> ul > li'); //go through the UL's and add the class ulList.each(function(list) { list.addClass(LIST_CLASS); }); //go through LI's and add the class liList.each(function(item) { item.addClass(ITEM_CLASS); }); this.set('isAttached', true); // We need to call this again, since sv-list // relies on the "-vert" class, to apply padding. // [ 1st syncUI pass applies -vert, 2nd pass re-calcs dims ] this._host.syncUI(); } } } }); }, '3.17.1', {"requires": ["plugin", "classnamemanager"], "skinnable": true});
Blueprint-Marketing/cdnjs
ajax/libs/yui/3.17.1/scrollview-list/scrollview-list.js
JavaScript
mit
3,077
/*! UIkit 2.15.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ /* ======================================================================== Addon: Slideshow ========================================================================== */ /* * 1. Create position context * 2. Create stacking context to prevent z-index issues with other components * 3. Set width because child elements are positioned absolute. Height is set via JS * 4. Reset list style * 5. Clip child elements * 6. Deactivate browser history navigation in IE11 */ .uk-slideshow { /* 1 */ position: relative; /* 2 */ z-index: 0; /* 3 */ width: 100%; /* 4 */ margin: 0; padding: 0; list-style: none; /* 5 */ overflow: hidden; /* 6 */ touch-action: pan-y; } /* * Sub-object slides * 1. Position items above each other * 2. Expand to parent container width * 3. Hide by default */ .uk-slideshow > li { /* 1 */ position: absolute; top: 0; left: 0; /* 2 */ width: 100%; /* 3 */ opacity: 0; } /* * Active * 1. Stack at first * 2. Show slide */ .uk-slideshow > .uk-active { /* 1 */ z-index: 10; /* 2 */ opacity: 1; } /* * Hide default images which is only relevant to keep existing proportions */ .uk-slideshow > li > img { visibility: hidden; } /* * Pointer for controls */ [data-uk-slideshow-slide] { cursor: pointer; } /* Modifier: `uk-slideshow-fullscreen` ========================================================================== */ .uk-slideshow-fullscreen, .uk-slideshow-fullscreen > li { height: 100vh; } /* Animations ========================================================================== */ /* * Fade */ .uk-slideshow-fade-out { -webkit-animation: uk-fade 0.5s linear reverse; animation: uk-fade 0.5s linear reverse; } /* * Scroll */ .uk-slideshow-scroll-forward-in { -webkit-animation: uk-slide-right 0.5s ease-in-out; animation: uk-slide-right 0.5s ease-in-out; } .uk-slideshow-scroll-forward-out { -webkit-animation: uk-slide-left 0.5s ease-in-out reverse; animation: uk-slide-left 0.5s ease-in-out reverse; } .uk-slideshow-scroll-backward-in { -webkit-animation: uk-slide-left 0.5s ease-in-out; animation: uk-slide-left 0.5s ease-in-out; } .uk-slideshow-scroll-backward-out { -webkit-animation: uk-slide-right 0.5s ease-in-out reverse; animation: uk-slide-right 0.5s ease-in-out reverse; } /* * Scale */ .uk-slideshow-scale-out { -webkit-animation: uk-fade-scale-15 0.5s ease-in-out reverse; animation: uk-fade-scale-15 0.5s ease-in-out reverse; } /* * Swipe */ .uk-slideshow-swipe-forward-in { -webkit-animation: uk-slide-left-33 0.5s ease-in-out; animation: uk-slide-left-33 0.5s ease-in-out; } .uk-slideshow-swipe-forward-out { -webkit-animation: uk-slide-left 0.5s ease-in-out reverse; animation: uk-slide-left 0.5s ease-in-out reverse; } .uk-slideshow-swipe-backward-in { -webkit-animation: uk-slide-right-33 0.5s ease-in-out; animation: uk-slide-right-33 0.5s ease-in-out; } .uk-slideshow-swipe-backward-out { -webkit-animation: uk-slide-right 0.5s ease-in-out reverse; animation: uk-slide-right 0.5s ease-in-out reverse; } .uk-slideshow-swipe-forward-in:before, .uk-slideshow-swipe-backward-in:before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 1; background: rgba(0, 0, 0, 0.6); -webkit-animation: uk-fade 0.5s ease-in-out reverse; animation: uk-fade 0.5s ease-in-out reverse; }
dhowe/cdnjs
ajax/libs/uikit/2.15.0/css/components/slideshow.almost-flat.css
CSS
mit
3,469
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-resize', function (Y, NAME) { /** * Adds a window resize event that has its behavior normalized to fire at the * end of the resize rather than constantly during the resize. * @module event * @submodule event-resize */ /** * Old firefox fires the window resize event once when the resize action * finishes, other browsers fire the event periodically during the * resize. This code uses timeout logic to simulate the Firefox * behavior in other browsers. * @event windowresize * @for YUI */ Y.Event.define('windowresize', { on: (Y.UA.gecko && Y.UA.gecko < 1.91) ? function (node, sub, notifier) { sub._handle = Y.Event.attach('resize', function (e) { notifier.fire(e); }); } : function (node, sub, notifier) { // interval bumped from 40 to 100ms as of 3.4.1 var delay = Y.config.windowResizeDelay || 100; sub._handle = Y.Event.attach('resize', function (e) { if (sub._timer) { sub._timer.cancel(); } sub._timer = Y.later(delay, Y, function () { notifier.fire(e); }); }); }, detach: function (node, sub) { if (sub._timer) { sub._timer.cancel(); } sub._handle.detach(); } // delegate methods not defined because this only works for window // subscriptions, so...yeah. }); }, '3.17.1', {"requires": ["node-base", "event-synthetic"]});
MenZil/cdnjs
ajax/libs/yui/3.17.1/event-resize/event-resize.js
JavaScript
mit
1,692
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('graphics-canvas', function (Y, NAME) { var IMPLEMENTATION = "canvas", SHAPE = "shape", SPLITPATHPATTERN = /[a-z][^a-z]*/ig, SPLITARGSPATTERN = /[\-]?[0-9]*[0-9|\.][0-9]*/g, DOCUMENT = Y.config.doc, Y_LANG = Y.Lang, AttributeLite = Y.AttributeLite, CanvasShape, CanvasPath, CanvasRect, CanvasEllipse, CanvasCircle, CanvasPieSlice, Y_DOM = Y.DOM, Y_Color = Y.Color, PARSE_INT = parseInt, PARSE_FLOAT = parseFloat, IS_NUMBER = Y_LANG.isNumber, RE = RegExp, TORGB = Y_Color.toRGB, TOHEX = Y_Color.toHex, _getClassName = Y.ClassNameManager.getClassName; /** * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> implementation of the <a href="Drawing.html">`Drawing`</a> class. * `CanvasDrawing` is not intended to be used directly. Instead, use the <a href="Drawing.html">`Drawing`</a> class. * If the browser lacks <a href="http://www.w3.org/TR/SVG/">SVG</a> capabilities but has * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> capabilities, the <a href="Drawing.html">`Drawing`</a> * class will point to the `CanvasDrawing` class. * * @module graphics * @class CanvasDrawing * @constructor */ function CanvasDrawing() { } CanvasDrawing.prototype = { /** * Maps path to methods * * @property _pathSymbolToMethod * @type Object * @private */ _pathSymbolToMethod: { M: "moveTo", m: "relativeMoveTo", L: "lineTo", l: "relativeLineTo", C: "curveTo", c: "relativeCurveTo", Q: "quadraticCurveTo", q: "relativeQuadraticCurveTo", z: "closePath", Z: "closePath" }, /** * Current x position of the drawing. * * @property _currentX * @type Number * @private */ _currentX: 0, /** * Current y position of the drqwing. * * @property _currentY * @type Number * @private */ _currentY: 0, /** * Parses hex color string and alpha value to rgba * * @method _toRGBA * @param {Object} val Color value to parse. Can be hex string, rgb or name. * @param {Number} alpha Numeric value between 0 and 1 representing the alpha level. * @private */ _toRGBA: function(val, alpha) { alpha = (alpha !== undefined) ? alpha : 1; if (!Y_Color.re_RGB.test(val)) { val = TOHEX(val); } if(Y_Color.re_hex.exec(val)) { val = 'rgba(' + [ PARSE_INT(RE.$1, 16), PARSE_INT(RE.$2, 16), PARSE_INT(RE.$3, 16) ].join(',') + ',' + alpha + ')'; } return val; }, /** * Converts color to rgb format * * @method _toRGB * @param val Color value to convert. * @private */ _toRGB: function(val) { return TORGB(val); }, /** * Sets the size of the graphics object. * * @method setSize * @param w {Number} width to set for the instance. * @param h {Number} height to set for the instance. * @private */ setSize: function(w, h) { if(this.get("autoSize")) { if(w > this.node.getAttribute("width")) { this.node.style.width = w + "px"; this.node.setAttribute("width", w); } if(h > this.node.getAttribute("height")) { this.node.style.height = h + "px"; this.node.setAttribute("height", h); } } }, /** * Tracks coordinates. Used to calculate the start point of dashed lines. * * @method _updateCoords * @param {Number} x x-coordinate * @param {Number} y y-coordinate * @private */ _updateCoords: function(x, y) { this._xcoords.push(x); this._ycoords.push(y); this._currentX = x; this._currentY = y; }, /** * Clears the coordinate arrays. Called at the end of a drawing operation. * * @method _clearAndUpdateCoords * @private */ _clearAndUpdateCoords: function() { var x = this._xcoords.pop() || 0, y = this._ycoords.pop() || 0; this._updateCoords(x, y); }, /** * Moves the shape's dom node. * * @method _updateNodePosition * @private */ _updateNodePosition: function() { var node = this.get("node"), x = this.get("x"), y = this.get("y"); node.style.position = "absolute"; node.style.left = (x + this._left) + "px"; node.style.top = (y + this._top) + "px"; }, /** * Queues up a method to be executed when a shape redraws. * * @method _updateDrawingQueue * @param {Array} val An array containing data that can be parsed into a method and arguments. The value at zero-index * of the array is a string reference of the drawing method that will be called. All subsequent indices are argument for * that method. For example, `lineTo(10, 100)` would be structured as: * `["lineTo", 10, 100]`. * @private */ _updateDrawingQueue: function(val) { this._methods.push(val); }, /** * Draws a line segment from the current drawing position to the specified x and y coordinates. * * @method lineTo * @param {Number} point1 x-coordinate for the end point. * @param {Number} point2 y-coordinate for the end point. * @chainable */ lineTo: function() { this._lineTo.apply(this, [Y.Array(arguments), false]); return this; }, /** * Draws a line segment from the current drawing position to the relative x and y coordinates. * * @method relativeLineTo * @param {Number} point1 x-coordinate for the end point. * @param {Number} point2 y-coordinate for the end point. * @chainable */ relativeLineTo: function() { this._lineTo.apply(this, [Y.Array(arguments), true]); return this; }, /** * Implements lineTo methods. * * @method _lineTo * @param {Array} args The arguments to be used. * @param {Boolean} relative Indicates whether or not to use relative coordinates. * @private */ _lineTo: function(args, relative) { var point1 = args[0], i, len, x, y, wt = this._stroke && this._strokeWeight ? this._strokeWeight : 0, relativeX = relative ? parseFloat(this._currentX) : 0, relativeY = relative ? parseFloat(this._currentY) : 0; if(!this._lineToMethods) { this._lineToMethods = []; } len = args.length - 1; if (typeof point1 === 'string' || typeof point1 === 'number') { for (i = 0; i < len; i = i + 2) { x = parseFloat(args[i]); y = parseFloat(args[i + 1]); x = x + relativeX; y = y + relativeY; this._updateDrawingQueue(["lineTo", x, y]); this._trackSize(x - wt, y - wt); this._trackSize(x + wt, y + wt); this._updateCoords(x, y); } } else { for (i = 0; i < len; i = i + 1) { x = parseFloat(args[i][0]); y = parseFloat(args[i][1]); this._updateDrawingQueue(["lineTo", x, y]); this._lineToMethods[this._lineToMethods.length] = this._methods[this._methods.length - 1]; this._trackSize(x - wt, y - wt); this._trackSize(x + wt, y + wt); this._updateCoords(x, y); } } this._drawingComplete = false; return this; }, /** * Moves the current drawing position to specified x and y coordinates. * * @method moveTo * @param {Number} x x-coordinate for the end point. * @param {Number} y y-coordinate for the end point. * @chainable */ moveTo: function() { this._moveTo.apply(this, [Y.Array(arguments), false]); return this; }, /** * Moves the current drawing position relative to specified x and y coordinates. * * @method relativeMoveTo * @param {Number} x x-coordinate for the end point. * @param {Number} y y-coordinate for the end point. * @chainable */ relativeMoveTo: function() { this._moveTo.apply(this, [Y.Array(arguments), true]); return this; }, /** * Implements moveTo methods. * * @method _moveTo * @param {Array} args The arguments to be used. * @param {Boolean} relative Indicates whether or not to use relative coordinates. * @private */ _moveTo: function(args, relative) { var wt = this._stroke && this._strokeWeight ? this._strokeWeight : 0, relativeX = relative ? parseFloat(this._currentX) : 0, relativeY = relative ? parseFloat(this._currentY) : 0, x = parseFloat(args[0]) + relativeX, y = parseFloat(args[1]) + relativeY; this._updateDrawingQueue(["moveTo", x, y]); this._trackSize(x - wt, y - wt); this._trackSize(x + wt, y + wt); this._updateCoords(x, y); this._drawingComplete = false; return this; }, /** * Draws a bezier curve. * * @method curveTo * @param {Number} cp1x x-coordinate for the first control point. * @param {Number} cp1y y-coordinate for the first control point. * @param {Number} cp2x x-coordinate for the second control point. * @param {Number} cp2y y-coordinate for the second control point. * @param {Number} x x-coordinate for the end point. * @param {Number} y y-coordinate for the end point. * @chainable */ curveTo: function() { this._curveTo.apply(this, [Y.Array(arguments), false]); return this; }, /** * Draws a bezier curve relative to the current coordinates. * * @method relativeCurveTo * @param {Number} cp1x x-coordinate for the first control point. * @param {Number} cp1y y-coordinate for the first control point. * @param {Number} cp2x x-coordinate for the second control point. * @param {Number} cp2y y-coordinate for the second control point. * @param {Number} x x-coordinate for the end point. * @param {Number} y y-coordinate for the end point. * @chainable */ relativeCurveTo: function() { this._curveTo.apply(this, [Y.Array(arguments), true]); return this; }, /** * Implements curveTo methods. * * @method _curveTo * @param {Array} args The arguments to be used. * @param {Boolean} relative Indicates whether or not to use relative coordinates. * @private */ _curveTo: function(args, relative) { var w, h, cp1x, cp1y, cp2x, cp2y, x, y, pts, right, left, bottom, top, i, len, relativeX = relative ? parseFloat(this._currentX) : 0, relativeY = relative ? parseFloat(this._currentY) : 0; len = args.length - 5; for(i = 0; i < len; i = i + 6) { cp1x = parseFloat(args[i]) + relativeX; cp1y = parseFloat(args[i + 1]) + relativeY; cp2x = parseFloat(args[i + 2]) + relativeX; cp2y = parseFloat(args[i + 3]) + relativeY; x = parseFloat(args[i + 4]) + relativeX; y = parseFloat(args[i + 5]) + relativeY; this._updateDrawingQueue(["bezierCurveTo", cp1x, cp1y, cp2x, cp2y, x, y]); this._drawingComplete = false; right = Math.max(x, Math.max(cp1x, cp2x)); bottom = Math.max(y, Math.max(cp1y, cp2y)); left = Math.min(x, Math.min(cp1x, cp2x)); top = Math.min(y, Math.min(cp1y, cp2y)); w = Math.abs(right - left); h = Math.abs(bottom - top); pts = [[this._currentX, this._currentY] , [cp1x, cp1y], [cp2x, cp2y], [x, y]]; this._setCurveBoundingBox(pts, w, h); this._currentX = x; this._currentY = y; } }, /** * Draws a quadratic bezier curve. * * @method quadraticCurveTo * @param {Number} cpx x-coordinate for the control point. * @param {Number} cpy y-coordinate for the control point. * @param {Number} x x-coordinate for the end point. * @param {Number} y y-coordinate for the end point. * @chainable */ quadraticCurveTo: function() { this._quadraticCurveTo.apply(this, [Y.Array(arguments), false]); return this; }, /** * Draws a quadratic bezier curve relative to the current position. * * @method relativeQuadraticCurveTo * @param {Number} cpx x-coordinate for the control point. * @param {Number} cpy y-coordinate for the control point. * @param {Number} x x-coordinate for the end point. * @param {Number} y y-coordinate for the end point. * @chainable */ relativeQuadraticCurveTo: function() { this._quadraticCurveTo.apply(this, [Y.Array(arguments), true]); return this; }, /** * Implements quadraticCurveTo methods. * * @method _quadraticCurveTo * @param {Array} args The arguments to be used. * @param {Boolean} relative Indicates whether or not to use relative coordinates. * @private */ _quadraticCurveTo: function(args, relative) { var cpx, cpy, x, y, w, h, pts, right, left, bottom, top, i, len = args.length - 3, relativeX = relative ? parseFloat(this._currentX) : 0, relativeY = relative ? parseFloat(this._currentY) : 0; for(i = 0; i < len; i = i + 4) { cpx = parseFloat(args[i]) + relativeX; cpy = parseFloat(args[i + 1]) + relativeY; x = parseFloat(args[i + 2]) + relativeX; y = parseFloat(args[i + 3]) + relativeY; this._drawingComplete = false; right = Math.max(x, cpx); bottom = Math.max(y, cpy); left = Math.min(x, cpx); top = Math.min(y, cpy); w = Math.abs(right - left); h = Math.abs(bottom - top); pts = [[this._currentX, this._currentY] , [cpx, cpy], [x, y]]; this._setCurveBoundingBox(pts, w, h); this._updateDrawingQueue(["quadraticCurveTo", cpx, cpy, x, y]); this._updateCoords(x, y); } return this; }, /** * Draws a circle. Used internally by `CanvasCircle` class. * * @method drawCircle * @param {Number} x y-coordinate * @param {Number} y x-coordinate * @param {Number} r radius * @chainable * @protected */ drawCircle: function(x, y, radius) { var startAngle = 0, endAngle = 2 * Math.PI, wt = this._stroke && this._strokeWeight ? this._strokeWeight : 0, circum = radius * 2; circum += wt; this._drawingComplete = false; this._trackSize(x + circum, y + circum); this._trackSize(x - wt, y - wt); this._updateCoords(x, y); this._updateDrawingQueue(["arc", x + radius, y + radius, radius, startAngle, endAngle, false]); return this; }, /** * Draws a diamond. * * @method drawDiamond * @param {Number} x y-coordinate * @param {Number} y x-coordinate * @param {Number} width width * @param {Number} height height * @chainable * @protected */ drawDiamond: function(x, y, width, height) { var midWidth = width * 0.5, midHeight = height * 0.5; this.moveTo(x + midWidth, y); this.lineTo(x + width, y + midHeight); this.lineTo(x + midWidth, y + height); this.lineTo(x, y + midHeight); this.lineTo(x + midWidth, y); return this; }, /** * Draws an ellipse. Used internally by `CanvasEllipse` class. * * @method drawEllipse * @param {Number} x x-coordinate * @param {Number} y y-coordinate * @param {Number} w width * @param {Number} h height * @chainable * @protected */ drawEllipse: function(x, y, w, h) { var l = 8, theta = -(45/180) * Math.PI, angle = 0, angleMid, radius = w/2, yRadius = h/2, i, centerX = x + radius, centerY = y + yRadius, ax, ay, bx, by, cx, cy, wt = this._stroke && this._strokeWeight ? this._strokeWeight : 0; ax = centerX + Math.cos(0) * radius; ay = centerY + Math.sin(0) * yRadius; this.moveTo(ax, ay); for(i = 0; i < l; i++) { angle += theta; angleMid = angle - (theta / 2); bx = centerX + Math.cos(angle) * radius; by = centerY + Math.sin(angle) * yRadius; cx = centerX + Math.cos(angleMid) * (radius / Math.cos(theta / 2)); cy = centerY + Math.sin(angleMid) * (yRadius / Math.cos(theta / 2)); this._updateDrawingQueue(["quadraticCurveTo", cx, cy, bx, by]); } this._trackSize(x + w + wt, y + h + wt); this._trackSize(x - wt, y - wt); this._updateCoords(x, y); return this; }, /** * Draws a rectangle. * * @method drawRect * @param {Number} x x-coordinate * @param {Number} y y-coordinate * @param {Number} w width * @param {Number} h height * @chainable */ drawRect: function(x, y, w, h) { this._drawingComplete = false; this.moveTo(x, y); this.lineTo(x + w, y); this.lineTo(x + w, y + h); this.lineTo(x, y + h); this.lineTo(x, y); return this; }, /** * Draws a rectangle with rounded corners. * * @method drawRect * @param {Number} x x-coordinate * @param {Number} y y-coordinate * @param {Number} w width * @param {Number} h height * @param {Number} ew width of the ellipse used to draw the rounded corners * @param {Number} eh height of the ellipse used to draw the rounded corners * @chainable */ drawRoundRect: function(x, y, w, h, ew, eh) { this._drawingComplete = false; this.moveTo( x, y + eh); this.lineTo(x, y + h - eh); this.quadraticCurveTo(x, y + h, x + ew, y + h); this.lineTo(x + w - ew, y + h); this.quadraticCurveTo(x + w, y + h, x + w, y + h - eh); this.lineTo(x + w, y + eh); this.quadraticCurveTo(x + w, y, x + w - ew, y); this.lineTo(x + ew, y); this.quadraticCurveTo(x, y, x, y + eh); return this; }, /** * Draws a wedge. * * @method drawWedge * @param {Number} x x-coordinate of the wedge's center point * @param {Number} y y-coordinate of the wedge's center point * @param {Number} startAngle starting angle in degrees * @param {Number} arc sweep of the wedge. Negative values draw clockwise. * @param {Number} radius radius of wedge. If [optional] yRadius is defined, then radius is the x radius. * @param {Number} yRadius [optional] y radius for wedge. * @chainable * @private */ drawWedge: function(x, y, startAngle, arc, radius, yRadius) { var wt = this._stroke && this._strokeWeight ? this._strokeWeight : 0, segs, segAngle, theta, angle, angleMid, ax, ay, bx, by, cx, cy, i = 0; yRadius = yRadius || radius; this._drawingComplete = false; // move to x,y position this._updateDrawingQueue(["moveTo", x, y]); yRadius = yRadius || radius; // limit sweep to reasonable numbers if(Math.abs(arc) > 360) { arc = 360; } // First we calculate how many segments are needed // for a smooth arc. segs = Math.ceil(Math.abs(arc) / 45); // Now calculate the sweep of each segment. segAngle = arc / segs; // The math requires radians rather than degrees. To convert from degrees // use the formula (degrees/180)*Math.PI to get radians. theta = -(segAngle / 180) * Math.PI; // convert angle startAngle to radians angle = (startAngle / 180) * Math.PI; // draw the curve in segments no larger than 45 degrees. if(segs > 0) { // draw a line from the center to the start of the curve ax = x + Math.cos(startAngle / 180 * Math.PI) * radius; ay = y + Math.sin(startAngle / 180 * Math.PI) * yRadius; this.lineTo(ax, ay); // Loop for drawing curve segments for(i = 0; i < segs; ++i) { angle += theta; angleMid = angle - (theta / 2); bx = x + Math.cos(angle) * radius; by = y + Math.sin(angle) * yRadius; cx = x + Math.cos(angleMid) * (radius / Math.cos(theta / 2)); cy = y + Math.sin(angleMid) * (yRadius / Math.cos(theta / 2)); this._updateDrawingQueue(["quadraticCurveTo", cx, cy, bx, by]); } // close the wedge by drawing a line to the center this._updateDrawingQueue(["lineTo", x, y]); } this._trackSize(-wt , -wt); this._trackSize((radius * 2) + wt, (radius * 2) + wt); return this; }, /** * Completes a drawing operation. * * @method end * @chainable */ end: function() { this._closePath(); return this; }, /** * Ends a fill and stroke * * @method closePath * @chainable */ closePath: function() { this._updateDrawingQueue(["closePath"]); this._updateDrawingQueue(["beginPath"]); return this; }, /** * Clears the graphics object. * * @method clear * @chainable */ clear: function() { this._initProps(); if(this.node) { this._context.clearRect(0, 0, this.node.width, this.node.height); } return this; }, /** * Returns a linear gradient fill * * @method _getLinearGradient * @return CanvasGradient * @private */ _getLinearGradient: function() { var isNumber = Y.Lang.isNumber, fill = this.get("fill"), stops = fill.stops, opacity, color, stop, i, len = stops.length, gradient, x = 0, y = 0, w = this.get("width"), h = this.get("height"), r = fill.rotation || 0, x1, x2, y1, y2, cx = x + w/2, cy = y + h/2, offset, radCon = Math.PI/180, tanRadians = parseFloat(parseFloat(Math.tan(r * radCon)).toFixed(8)); if(Math.abs(tanRadians) * w/2 >= h/2) { if(r < 180) { y1 = y; y2 = y + h; } else { y1 = y + h; y2 = y; } x1 = cx - ((cy - y1)/tanRadians); x2 = cx - ((cy - y2)/tanRadians); } else { if(r > 90 && r < 270) { x1 = x + w; x2 = x; } else { x1 = x; x2 = x + w; } y1 = ((tanRadians * (cx - x1)) - cy) * -1; y2 = ((tanRadians * (cx - x2)) - cy) * -1; } gradient = this._context.createLinearGradient(x1, y1, x2, y2); for(i = 0; i < len; ++i) { stop = stops[i]; opacity = stop.opacity; color = stop.color; offset = stop.offset; if(isNumber(opacity)) { opacity = Math.max(0, Math.min(1, opacity)); color = this._toRGBA(color, opacity); } else { color = TORGB(color); } offset = stop.offset || i/(len - 1); gradient.addColorStop(offset, color); } return gradient; }, /** * Returns a radial gradient fill * * @method _getRadialGradient * @return CanvasGradient * @private */ _getRadialGradient: function() { var isNumber = Y.Lang.isNumber, fill = this.get("fill"), r = fill.r, fx = fill.fx, fy = fill.fy, stops = fill.stops, opacity, color, stop, i, len = stops.length, gradient, x = 0, y = 0, w = this.get("width"), h = this.get("height"), x1, x2, y1, y2, r2, xc, yc, xn, yn, d, offset, ratio, stopMultiplier; xc = x + w/2; yc = y + h/2; x1 = w * fx; y1 = h * fy; x2 = x + w/2; y2 = y + h/2; r2 = w * r; d = Math.sqrt( Math.pow(Math.abs(xc - x1), 2) + Math.pow(Math.abs(yc - y1), 2) ); if(d >= r2) { ratio = d/r2; //hack. gradient won't show if it is exactly on the edge of the arc if(ratio === 1) { ratio = 1.01; } xn = (x1 - xc)/ratio; yn = (y1 - yc)/ratio; xn = xn > 0 ? Math.floor(xn) : Math.ceil(xn); yn = yn > 0 ? Math.floor(yn) : Math.ceil(yn); x1 = xc + xn; y1 = yc + yn; } //If the gradient radius is greater than the circle's, adjusting the radius stretches the gradient properly. //If the gradient radius is less than the circle's, adjusting the radius of the gradient will not work. //Instead, adjust the color stops to reflect the smaller radius. if(r >= 0.5) { gradient = this._context.createRadialGradient(x1, y1, r, x2, y2, r * w); stopMultiplier = 1; } else { gradient = this._context.createRadialGradient(x1, y1, r, x2, y2, w/2); stopMultiplier = r * 2; } for(i = 0; i < len; ++i) { stop = stops[i]; opacity = stop.opacity; color = stop.color; offset = stop.offset; if(isNumber(opacity)) { opacity = Math.max(0, Math.min(1, opacity)); color = this._toRGBA(color, opacity); } else { color = TORGB(color); } offset = stop.offset || i/(len - 1); offset *= stopMultiplier; if(offset <= 1) { gradient.addColorStop(offset, color); } } return gradient; }, /** * Clears all values * * @method _initProps * @private */ _initProps: function() { this._methods = []; this._lineToMethods = []; this._xcoords = [0]; this._ycoords = [0]; this._width = 0; this._height = 0; this._left = 0; this._top = 0; this._right = 0; this._bottom = 0; this._currentX = 0; this._currentY = 0; }, /** * Indicates a drawing has completed. * * @property _drawingComplete * @type Boolean * @private */ _drawingComplete: false, /** * Creates canvas element * * @method _createGraphic * @return HTMLCanvasElement * @private */ _createGraphic: function() { var graphic = Y.config.doc.createElement('canvas'); return graphic; }, /** * Returns the points on a curve * * @method getBezierData * @param Array points Array containing the begin, end and control points of a curve. * @param Number t The value for incrementing the next set of points. * @return Array * @private */ getBezierData: function(points, t) { var n = points.length, tmp = [], i, j; for (i = 0; i < n; ++i){ tmp[i] = [points[i][0], points[i][1]]; // save input } for (j = 1; j < n; ++j) { for (i = 0; i < n - j; ++i) { tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0]; tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1]; } } return [ tmp[0][0], tmp[0][1] ]; }, /** * Calculates the bounding box for a curve * * @method _setCurveBoundingBox * @param Array pts Array containing points for start, end and control points of a curve. * @param Number w Width used to calculate the number of points to describe the curve. * @param Number h Height used to calculate the number of points to describe the curve. * @private */ _setCurveBoundingBox: function(pts, w, h) { var i = 0, left = this._currentX, right = left, top = this._currentY, bottom = top, len = Math.round(Math.sqrt((w * w) + (h * h))), t = 1/len, wt = this._stroke && this._strokeWeight ? this._strokeWeight : 0, xy; for(i = 0; i < len; ++i) { xy = this.getBezierData(pts, t * i); left = isNaN(left) ? xy[0] : Math.min(xy[0], left); right = isNaN(right) ? xy[0] : Math.max(xy[0], right); top = isNaN(top) ? xy[1] : Math.min(xy[1], top); bottom = isNaN(bottom) ? xy[1] : Math.max(xy[1], bottom); } left = Math.round(left * 10)/10; right = Math.round(right * 10)/10; top = Math.round(top * 10)/10; bottom = Math.round(bottom * 10)/10; this._trackSize(right + wt, bottom + wt); this._trackSize(left - wt, top - wt); }, /** * Updates the size of the graphics object * * @method _trackSize * @param {Number} w width * @param {Number} h height * @private */ _trackSize: function(w, h) { if (w > this._right) { this._right = w; } if(w < this._left) { this._left = w; } if (h < this._top) { this._top = h; } if (h > this._bottom) { this._bottom = h; } this._width = this._right - this._left; this._height = this._bottom - this._top; } }; Y.CanvasDrawing = CanvasDrawing; /** * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> implementation of the <a href="Shape.html">`Shape`</a> class. * `CanvasShape` is not intended to be used directly. Instead, use the <a href="Shape.html">`Shape`</a> class. * If the browser lacks <a href="http://www.w3.org/TR/SVG/">SVG</a> capabilities but has * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> capabilities, the <a href="Shape.html">`Shape`</a> * class will point to the `CanvasShape` class. * * @module graphics * @class CanvasShape * @constructor */ CanvasShape = function() { this._transforms = []; this.matrix = new Y.Matrix(); CanvasShape.superclass.constructor.apply(this, arguments); }; CanvasShape.NAME = "shape"; Y.extend(CanvasShape, Y.GraphicBase, Y.mix({ /** * Init method, invoked during construction. * Calls `initializer` method. * * @method init * @protected */ init: function() { this.initializer.apply(this, arguments); }, /** * Initializes the shape * * @private * @method _initialize */ initializer: function(cfg) { var host = this, graphic = cfg.graphic, data = this.get("data"); host._initProps(); host.createNode(); host._xcoords = [0]; host._ycoords = [0]; if(graphic) { this._setGraphic(graphic); } if(data) { host._parsePathData(data); } host._updateHandler(); }, /** * Set the Graphic instance for the shape. * * @method _setGraphic * @param {Graphic | Node | HTMLElement | String} render This param is used to determine the graphic instance. If it is a * `Graphic` instance, it will be assigned to the `graphic` attribute. Otherwise, a new Graphic instance will be created * and rendered into the dom element that the render represents. * @private */ _setGraphic: function(render) { var graphic; if(render instanceof Y.CanvasGraphic) { this._graphic = render; } else { graphic = new Y.CanvasGraphic({ render: render }); graphic._appendShape(this); this._graphic = graphic; } }, /** * Add a class name to each node. * * @method addClass * @param {String} className the class name to add to the node's class attribute */ addClass: function(className) { var node = this.get("node"); Y.DOM.addClass(node, className); }, /** * Removes a class name from each node. * * @method removeClass * @param {String} className the class name to remove from the node's class attribute */ removeClass: function(className) { var node = this.get("node"); Y.DOM.removeClass(node, className); }, /** * Gets the current position of the node in page coordinates. * * @method getXY * @return Array The XY position of the shape. */ getXY: function() { var graphic = this.get("graphic"), parentXY = graphic.getXY(), x = this.get("x"), y = this.get("y"); return [parentXY[0] + x, parentXY[1] + y]; }, /** * Set the position of the shape in page coordinates, regardless of how the node is positioned. * * @method setXY * @param {Array} Contains X & Y values for new position (coordinates are page-based) */ setXY: function(xy) { var graphic = this.get("graphic"), parentXY = graphic.getXY(), x = xy[0] - parentXY[0], y = xy[1] - parentXY[1]; this._set("x", x); this._set("y", y); this._updateNodePosition(x, y); }, /** * Determines whether the node is an ancestor of another HTML element in the DOM hierarchy. * * @method contains * @param {CanvasShape | HTMLElement} needle The possible node or descendent * @return Boolean Whether or not this shape is the needle or its ancestor. */ contains: function(needle) { var node = needle instanceof Y.Node ? needle._node : needle; return node === this.node; }, /** * Test if the supplied node matches the supplied selector. * * @method test * @param {String} selector The CSS selector to test against. * @return Boolean Wheter or not the shape matches the selector. */ test: function(selector) { return Y.Selector.test(this.node, selector); }, /** * Compares nodes to determine if they match. * Node instances can be compared to each other and/or HTMLElements. * @method compareTo * @param {HTMLElement | Node} refNode The reference node to compare to the node. * @return {Boolean} True if the nodes match, false if they do not. */ compareTo: function(refNode) { var node = this.node; return node === refNode; }, /** * Value function for fill attribute * * @method _getDefaultFill * @return Object * @private */ _getDefaultFill: function() { return { type: "solid", opacity: 1, cx: 0.5, cy: 0.5, fx: 0.5, fy: 0.5, r: 0.5 }; }, /** * Value function for stroke attribute * * @method _getDefaultStroke * @return Object * @private */ _getDefaultStroke: function() { return { weight: 1, dashstyle: "none", color: "#000", opacity: 1.0 }; }, /** * Left edge of the path * * @property _left * @type Number * @private */ _left: 0, /** * Right edge of the path * * @property _right * @type Number * @private */ _right: 0, /** * Top edge of the path * * @property _top * @type Number * @private */ _top: 0, /** * Bottom edge of the path * * @property _bottom * @type Number * @private */ _bottom: 0, /** * Creates the dom node for the shape. * * @method createNode * @return HTMLElement * @private */ createNode: function() { var host = this, node = Y.config.doc.createElement('canvas'), id = host.get("id"), concat = host._camelCaseConcat, name = host.name; host._context = node.getContext('2d'); node.setAttribute("overflow", "visible"); node.style.overflow = "visible"; if(!host.get("visible")) { node.style.visibility = "hidden"; } node.setAttribute("id", id); id = "#" + id; host.node = node; host.addClass( _getClassName(SHAPE) + " " + _getClassName(concat(IMPLEMENTATION, SHAPE)) + " " + _getClassName(name) + " " + _getClassName(concat(IMPLEMENTATION, name)) ); }, /** * Overrides default `on` method. Checks to see if its a dom interaction event. If so, * return an event attached to the `node` element. If not, return the normal functionality. * * @method on * @param {String} type event type * @param {Object} callback function * @private */ on: function(type, fn) { if(Y.Node.DOM_EVENTS[type]) { return Y.on(type, fn, "#" + this.get("id")); } return Y.on.apply(this, arguments); }, /** * Adds a stroke to the shape node. * * @method _strokeChangeHandler * @param {Object} stroke Properties of the `stroke` attribute. * @private */ _setStrokeProps: function(stroke) { var color, weight, opacity, linejoin, linecap, dashstyle; if(stroke) { color = stroke.color; weight = PARSE_FLOAT(stroke.weight); opacity = PARSE_FLOAT(stroke.opacity); linejoin = stroke.linejoin || "round"; linecap = stroke.linecap || "butt"; dashstyle = stroke.dashstyle; this._miterlimit = null; this._dashstyle = (dashstyle && Y.Lang.isArray(dashstyle) && dashstyle.length > 1) ? dashstyle : null; this._strokeWeight = weight; if (IS_NUMBER(weight) && weight > 0) { this._stroke = 1; } else { this._stroke = 0; } if (IS_NUMBER(opacity)) { this._strokeStyle = this._toRGBA(color, opacity); } else { this._strokeStyle = color; } this._linecap = linecap; if(linejoin === "round" || linejoin === "bevel") { this._linejoin = linejoin; } else { linejoin = parseInt(linejoin, 10); if(IS_NUMBER(linejoin)) { this._miterlimit = Math.max(linejoin, 1); this._linejoin = "miter"; } } } else { this._stroke = 0; } }, /** * Sets the value of an attribute. * * @method set * @param {String|Object} name The name of the attribute. Alternatively, an object of key value pairs can * be passed in to set multiple attributes at once. * @param {Any} value The value to set the attribute to. This value is ignored if an object is received as * the name param. */ set: function() { var host = this; AttributeLite.prototype.set.apply(host, arguments); if(host.initialized) { host._updateHandler(); } }, /** * Adds a fill to the shape node. * * @method _setFillProps * @param {Object} fill Properties of the `fill` attribute. * @private */ _setFillProps: function(fill) { var isNumber = IS_NUMBER, color, opacity, type; if(fill) { color = fill.color; type = fill.type; if(type === "linear" || type === "radial") { this._fillType = type; } else if(color) { opacity = fill.opacity; if (isNumber(opacity)) { opacity = Math.max(0, Math.min(1, opacity)); color = this._toRGBA(color, opacity); } else { color = TORGB(color); } this._fillColor = color; this._fillType = 'solid'; } else { this._fillColor = null; } } else { this._fillType = null; this._fillColor = null; } }, /** * Specifies a 2d translation. * * @method translate * @param {Number} x The value to transate on the x-axis. * @param {Number} y The value to translate on the y-axis. */ translate: function(x, y) { this._translateX += x; this._translateY += y; this._addTransform("translate", arguments); }, /** * Translates the shape along the x-axis. When translating x and y coordinates, * use the `translate` method. * * @method translateX * @param {Number} x The value to translate. */ translateX: function(x) { this._translateX += x; this._addTransform("translateX", arguments); }, /** * Performs a translate on the y-coordinate. When translating x and y coordinates, * use the `translate` method. * * @method translateY * @param {Number} y The value to translate. */ translateY: function(y) { this._translateY += y; this._addTransform("translateY", arguments); }, /** * Skews the shape around the x-axis and y-axis. * * @method skew * @param {Number} x The value to skew on the x-axis. * @param {Number} y The value to skew on the y-axis. */ skew: function() { this._addTransform("skew", arguments); }, /** * Skews the shape around the x-axis. * * @method skewX * @param {Number} x x-coordinate */ skewX: function() { this._addTransform("skewX", arguments); }, /** * Skews the shape around the y-axis. * * @method skewY * @param {Number} y y-coordinate */ skewY: function() { this._addTransform("skewY", arguments); }, /** * Rotates the shape clockwise around it transformOrigin. * * @method rotate * @param {Number} deg The degree of the rotation. */ rotate: function() { this._addTransform("rotate", arguments); }, /** * Specifies a 2d scaling operation. * * @method scale * @param {Number} val */ scale: function() { this._addTransform("scale", arguments); }, /** * Storage for the transform attribute. * * @property _transform * @type String * @private */ _transform: "", /** * Adds a transform to the shape. * * @method _addTransform * @param {String} type The transform being applied. * @param {Array} args The arguments for the transform. * @private */ _addTransform: function(type, args) { args = Y.Array(args); this._transform = Y_LANG.trim(this._transform + " " + type + "(" + args.join(", ") + ")"); args.unshift(type); this._transforms.push(args); if(this.initialized) { this._updateTransform(); } }, /** * Applies all transforms. * * @method _updateTransform * @private */ _updateTransform: function() { var node = this.node, key, transform, transformOrigin = this.get("transformOrigin"), matrix = this.matrix, i, len = this._transforms.length; if(this._transforms && this._transforms.length > 0) { for(i = 0; i < len; ++i) { key = this._transforms[i].shift(); if(key) { matrix[key].apply(matrix, this._transforms[i]); } } transform = matrix.toCSSText(); } this._graphic.addToRedrawQueue(this); transformOrigin = (100 * transformOrigin[0]) + "% " + (100 * transformOrigin[1]) + "%"; Y_DOM.setStyle(node, "transformOrigin", transformOrigin); if(transform) { Y_DOM.setStyle(node, "transform", transform); } this._transforms = []; }, /** * Updates `Shape` based on attribute changes. * * @method _updateHandler * @private */ _updateHandler: function() { this._draw(); this._updateTransform(); }, /** * Updates the shape. * * @method _draw * @private */ _draw: function() { var node = this.node; this.clear(); this._closePath(); node.style.left = this.get("x") + "px"; node.style.top = this.get("y") + "px"; }, /** * Completes a shape or drawing * * @method _closePath * @private */ _closePath: function() { if(!this._methods) { return; } var node = this.get("node"), w = this._right - this._left, h = this._bottom - this._top, context = this._context, methods = [], cachedMethods = this._methods.concat(), i, j, method, args, argsLen, len = 0; this._context.clearRect(0, 0, node.width, node.height); if(this._methods) { len = cachedMethods.length; if(!len || len < 1) { return; } for(i = 0; i < len; ++i) { methods[i] = cachedMethods[i].concat(); args = methods[i]; argsLen = (args[0] === "quadraticCurveTo" || args[0] === "bezierCurveTo") ? args.length : 3; for(j = 1; j < argsLen; ++j) { if(j % 2 === 0) { args[j] = args[j] - this._top; } else { args[j] = args[j] - this._left; } } } node.setAttribute("width", Math.min(w, 2000)); node.setAttribute("height", Math.min(2000, h)); context.beginPath(); for(i = 0; i < len; ++i) { args = methods[i].concat(); if(args && args.length > 0) { method = args.shift(); if(method) { if(method === "closePath") { context.closePath(); this._strokeAndFill(context); } else if(method && method === "lineTo" && this._dashstyle) { args.unshift(this._xcoords[i] - this._left, this._ycoords[i] - this._top); this._drawDashedLine.apply(this, args); } else { context[method].apply(context, args); } } } } this._strokeAndFill(context); this._drawingComplete = true; this._clearAndUpdateCoords(); this._updateNodePosition(); this._methods = cachedMethods; } }, /** * Completes a stroke and/or fill operation on the context. * * @method _strokeAndFill * @param {Context} Reference to the context element of the canvas instance. * @private */ _strokeAndFill: function(context) { if (this._fillType) { if(this._fillType === "linear") { context.fillStyle = this._getLinearGradient(); } else if(this._fillType === "radial") { context.fillStyle = this._getRadialGradient(); } else { context.fillStyle = this._fillColor; } context.closePath(); context.fill(); } if (this._stroke) { if(this._strokeWeight) { context.lineWidth = this._strokeWeight; } context.lineCap = this._linecap; context.lineJoin = this._linejoin; if(this._miterlimit) { context.miterLimit = this._miterlimit; } context.strokeStyle = this._strokeStyle; context.stroke(); } }, /** * Draws a dashed line between two points. * * @method _drawDashedLine * @param {Number} xStart The x position of the start of the line * @param {Number} yStart The y position of the start of the line * @param {Number} xEnd The x position of the end of the line * @param {Number} yEnd The y position of the end of the line * @private */ _drawDashedLine: function(xStart, yStart, xEnd, yEnd) { var context = this._context, dashsize = this._dashstyle[0], gapsize = this._dashstyle[1], segmentLength = dashsize + gapsize, xDelta = xEnd - xStart, yDelta = yEnd - yStart, delta = Math.sqrt(Math.pow(xDelta, 2) + Math.pow(yDelta, 2)), segmentCount = Math.floor(Math.abs(delta / segmentLength)), radians = Math.atan2(yDelta, xDelta), xCurrent = xStart, yCurrent = yStart, i; xDelta = Math.cos(radians) * segmentLength; yDelta = Math.sin(radians) * segmentLength; for(i = 0; i < segmentCount; ++i) { context.moveTo(xCurrent, yCurrent); context.lineTo(xCurrent + Math.cos(radians) * dashsize, yCurrent + Math.sin(radians) * dashsize); xCurrent += xDelta; yCurrent += yDelta; } context.moveTo(xCurrent, yCurrent); delta = Math.sqrt((xEnd - xCurrent) * (xEnd - xCurrent) + (yEnd - yCurrent) * (yEnd - yCurrent)); if(delta > dashsize) { context.lineTo(xCurrent + Math.cos(radians) * dashsize, yCurrent + Math.sin(radians) * dashsize); } else if(delta > 0) { context.lineTo(xCurrent + Math.cos(radians) * delta, yCurrent + Math.sin(radians) * delta); } context.moveTo(xEnd, yEnd); }, /** * Returns the bounds for a shape. * * Calculates the a new bounding box from the original corner coordinates (base on size and position) and the transform matrix. * The calculated bounding box is used by the graphic instance to calculate its viewBox. * * @method getBounds * @return Object */ getBounds: function() { var type = this._type, w = this.get("width"), h = this.get("height"), x = this.get("x"), y = this.get("y"); if(type === "path") { x = x + this._left; y = y + this._top; w = this._right - this._left; h = this._bottom - this._top; } return this._getContentRect(w, h, x, y); }, /** * Calculates the bounding box for the shape. * * @method _getContentRect * @param {Number} w width of the shape * @param {Number} h height of the shape * @param {Number} x x-coordinate of the shape * @param {Number} y y-coordinate of the shape * @private */ _getContentRect: function(w, h, x, y) { var transformOrigin = this.get("transformOrigin"), transformX = transformOrigin[0] * w, transformY = transformOrigin[1] * h, transforms = this.matrix.getTransformArray(this.get("transform")), matrix = new Y.Matrix(), i, len = transforms.length, transform, key, contentRect; if(this._type === "path") { transformX = transformX + x; transformY = transformY + y; } transformX = !isNaN(transformX) ? transformX : 0; transformY = !isNaN(transformY) ? transformY : 0; matrix.translate(transformX, transformY); for(i = 0; i < len; i = i + 1) { transform = transforms[i]; key = transform.shift(); if(key) { matrix[key].apply(matrix, transform); } } matrix.translate(-transformX, -transformY); contentRect = matrix.getContentRect(w, h, x, y); return contentRect; }, /** * Places the shape above all other shapes. * * @method toFront */ toFront: function() { var graphic = this.get("graphic"); if(graphic) { graphic._toFront(this); } }, /** * Places the shape underneath all other shapes. * * @method toFront */ toBack: function() { var graphic = this.get("graphic"); if(graphic) { graphic._toBack(this); } }, /** * Parses path data string and call mapped methods. * * @method _parsePathData * @param {String} val The path data * @private */ _parsePathData: function(val) { var method, methodSymbol, args, commandArray = Y.Lang.trim(val.match(SPLITPATHPATTERN)), i, len, str, symbolToMethod = this._pathSymbolToMethod; if(commandArray) { this.clear(); len = commandArray.length || 0; for(i = 0; i < len; i = i + 1) { str = commandArray[i]; methodSymbol = str.substr(0, 1); args = str.substr(1).match(SPLITARGSPATTERN); method = symbolToMethod[methodSymbol]; if(method) { if(args) { this[method].apply(this, args); } else { this[method].apply(this); } } } this.end(); } }, /** * Destroys the shape instance. * * @method destroy */ destroy: function() { var graphic = this.get("graphic"); if(graphic) { graphic.removeShape(this); } else { this._destroy(); } }, /** * Implementation for shape destruction * * @method destroy * @protected */ _destroy: function() { if(this.node) { Y.Event.purgeElement(this.node, true); if(this.node.parentNode) { this.node.style.visibility = ""; this.node.parentNode.removeChild(this.node); } this._context = null; this.node = null; } } }, Y.CanvasDrawing.prototype)); CanvasShape.ATTRS = { /** * An array of x, y values which indicates the transformOrigin in which to rotate the shape. Valid values range between 0 and 1 representing a * fraction of the shape's corresponding bounding box dimension. The default value is [0.5, 0.5]. * * @config transformOrigin * @type Array */ transformOrigin: { valueFn: function() { return [0.5, 0.5]; } }, /** * <p>A string containing, in order, transform operations applied to the shape instance. The `transform` string can contain the following values: * * <dl> * <dt>rotate</dt><dd>Rotates the shape clockwise around it transformOrigin.</dd> * <dt>translate</dt><dd>Specifies a 2d translation.</dd> * <dt>skew</dt><dd>Skews the shape around the x-axis and y-axis.</dd> * <dt>scale</dt><dd>Specifies a 2d scaling operation.</dd> * <dt>translateX</dt><dd>Translates the shape along the x-axis.</dd> * <dt>translateY</dt><dd>Translates the shape along the y-axis.</dd> * <dt>skewX</dt><dd>Skews the shape around the x-axis.</dd> * <dt>skewY</dt><dd>Skews the shape around the y-axis.</dd> * <dt>matrix</dt><dd>Specifies a 2D transformation matrix comprised of the specified six values.</dd> * </dl> * </p> * <p>Applying transforms through the transform attribute will reset the transform matrix and apply a new transform. The shape class also contains * corresponding methods for each transform that will apply the transform to the current matrix. The below code illustrates how you might use the * `transform` attribute to instantiate a recangle with a rotation of 45 degrees.</p> var myRect = new Y.Rect({ type:"rect", width: 50, height: 40, transform: "rotate(45)" }; * <p>The code below would apply `translate` and `rotate` to an existing shape.</p> myRect.set("transform", "translate(40, 50) rotate(45)"); * @config transform * @type String */ transform: { setter: function(val) { this.matrix.init(); this._transforms = this.matrix.getTransformArray(val); this._transform = val; return val; }, getter: function() { return this._transform; } }, /** * Dom node for the shape * * @config node * @type HTMLElement * @readOnly */ node: { readOnly: true, getter: function() { return this.node; } }, /** * Unique id for class instance. * * @config id * @type String */ id: { valueFn: function() { return Y.guid(); }, setter: function(val) { var node = this.node; if(node) { node.setAttribute("id", val); } return val; } }, /** * Indicates the width of the shape * * @config width * @type Number */ width: { value: 0 }, /** * Indicates the height of the shape * * @config height * @type Number */ height: { value: 0 }, /** * Indicates the x position of shape. * * @config x * @type Number */ x: { value: 0 }, /** * Indicates the y position of shape. * * @config y * @type Number */ y: { value: 0 }, /** * Indicates whether the shape is visible. * * @config visible * @type Boolean */ visible: { value: true, setter: function(val){ var node = this.get("node"), visibility = val ? "visible" : "hidden"; if(node) { node.style.visibility = visibility; } return val; } }, /** * Contains information about the fill of the shape. * <dl> * <dt>color</dt><dd>The color of the fill.</dd> * <dt>opacity</dt><dd>Number between 0 and 1 that indicates the opacity of the fill. The default value is 1.</dd> * <dt>type</dt><dd>Type of fill. * <dl> * <dt>solid</dt><dd>Solid single color fill. (default)</dd> * <dt>linear</dt><dd>Linear gradient fill.</dd> * <dt>radial</dt><dd>Radial gradient fill.</dd> * </dl> * </dd> * </dl> * <p>If a `linear` or `radial` is specified as the fill type. The following additional property is used: * <dl> * <dt>stops</dt><dd>An array of objects containing the following properties: * <dl> * <dt>color</dt><dd>The color of the stop.</dd> * <dt>opacity</dt><dd>Number between 0 and 1 that indicates the opacity of the stop. The default value is 1. * Note: No effect for IE 6 - 8</dd> * <dt>offset</dt><dd>Number between 0 and 1 indicating where the color stop is positioned.</dd> * </dl> * </dd> * <p>Linear gradients also have the following property:</p> * <dt>rotation</dt><dd>Linear gradients flow left to right by default. The rotation property allows you to change the * flow by rotation. (e.g. A rotation of 180 would make the gradient pain from right to left.)</dd> * <p>Radial gradients have the following additional properties:</p> * <dt>r</dt><dd>Radius of the gradient circle.</dd> * <dt>fx</dt><dd>Focal point x-coordinate of the gradient.</dd> * <dt>fy</dt><dd>Focal point y-coordinate of the gradient.</dd> * </dl> * <p>The corresponding `SVGShape` class implements the following additional properties.</p> * <dl> * <dt>cx</dt><dd> * <p>The x-coordinate of the center of the gradient circle. Determines where the color stop begins. The default value 0.5.</p> * <p><strong>Note: </strong>Currently, this property is not implemented for corresponding `CanvasShape` and * `VMLShape` classes which are used on Android or IE 6 - 8.</p> * </dd> * <dt>cy</dt><dd> * <p>The y-coordinate of the center of the gradient circle. Determines where the color stop begins. The default value 0.5.</p> * <p><strong>Note: </strong>Currently, this property is not implemented for corresponding `CanvasShape` and `VMLShape` * classes which are used on Android or IE 6 - 8.</p> * </dd> * </dl> * <p>These properties are not currently implemented in `CanvasShape` or `VMLShape`.</p> * * @config fill * @type Object */ fill: { valueFn: "_getDefaultFill", setter: function(val) { var fill, tmpl = this.get("fill") || this._getDefaultFill(); fill = (val) ? Y.merge(tmpl, val) : null; if(fill && fill.color) { if(fill.color === undefined || fill.color === "none") { fill.color = null; } } this._setFillProps(fill); return fill; } }, /** * Contains information about the stroke of the shape. * <dl> * <dt>color</dt><dd>The color of the stroke.</dd> * <dt>weight</dt><dd>Number that indicates the width of the stroke.</dd> * <dt>opacity</dt><dd>Number between 0 and 1 that indicates the opacity of the stroke. The default value is 1.</dd> * <dt>dashstyle</dt>Indicates whether to draw a dashed stroke. When set to "none", a solid stroke is drawn. When set * to an array, the first index indicates the length of the dash. The second index indicates the length of gap. * <dt>linecap</dt><dd>Specifies the linecap for the stroke. The following values can be specified: * <dl> * <dt>butt (default)</dt><dd>Specifies a butt linecap.</dd> * <dt>square</dt><dd>Specifies a sqare linecap.</dd> * <dt>round</dt><dd>Specifies a round linecap.</dd> * </dl> * </dd> * <dt>linejoin</dt><dd>Specifies a linejoin for the stroke. The following values can be specified: * <dl> * <dt>round (default)</dt><dd>Specifies that the linejoin will be round.</dd> * <dt>bevel</dt><dd>Specifies a bevel for the linejoin.</dd> * <dt>miter limit</dt><dd>An integer specifying the miter limit of a miter linejoin. If you want to specify a linejoin * of miter, you simply specify the limit as opposed to having separate miter and miter limit values.</dd> * </dl> * </dd> * </dl> * * @config stroke * @type Object */ stroke: { valueFn: "_getDefaultStroke", setter: function(val) { var tmpl = this.get("stroke") || this._getDefaultStroke(), wt; if(val && val.hasOwnProperty("weight")) { wt = parseInt(val.weight, 10); if(!isNaN(wt)) { val.weight = wt; } } val = (val) ? Y.merge(tmpl, val) : null; this._setStrokeProps(val); return val; } }, //Not used. Remove in future. autoSize: { value: false }, // Only implemented in SVG // Determines whether the instance will receive mouse events. // // @config pointerEvents // @type string // pointerEvents: { value: "visiblePainted" }, /** * Represents an SVG Path string. This will be parsed and added to shape's API to represent the SVG data across all * implementations. Note that when using VML or SVG implementations, part of this content will be added to the DOM using * respective VML/SVG attributes. If your content comes from an untrusted source, you will need to ensure that no * malicious code is included in that content. * * @config data * @type String */ data: { setter: function(val) { if(this.get("node")) { this._parsePathData(val); } return val; } }, /** * Reference to the container Graphic. * * @config graphic * @type Graphic */ graphic: { readOnly: true, getter: function() { return this._graphic; } } }; Y.CanvasShape = CanvasShape; /** * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> implementation of the <a href="Path.html">`Path`</a> class. * `CanvasPath` is not intended to be used directly. Instead, use the <a href="Path.html">`Path`</a> class. * If the browser lacks <a href="http://www.w3.org/TR/SVG/">SVG</a> capabilities but has * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> capabilities, the <a href="Path.html">`Path`</a> * class will point to the `CanvasPath` class. * * @module graphics * @class CanvasPath * @extends CanvasShape */ CanvasPath = function() { CanvasPath.superclass.constructor.apply(this, arguments); }; CanvasPath.NAME = "path"; Y.extend(CanvasPath, Y.CanvasShape, { /** * Indicates the type of shape * * @property _type * @type String * @private */ _type: "path", /** * Draws the shape. * * @method _draw * @private */ _draw: function() { this._closePath(); this._updateTransform(); }, /** * Creates the dom node for the shape. * * @method createNode * @return HTMLElement * @private */ createNode: function() { var host = this, node = Y.config.doc.createElement('canvas'), name = host.name, concat = host._camelCaseConcat, id = host.get("id"); host._context = node.getContext('2d'); node.setAttribute("overflow", "visible"); node.setAttribute("pointer-events", "none"); node.style.pointerEvents = "none"; node.style.overflow = "visible"; node.setAttribute("id", id); id = "#" + id; host.node = node; host.addClass( _getClassName(SHAPE) + " " + _getClassName(concat(IMPLEMENTATION, SHAPE)) + " " + _getClassName(name) + " " + _getClassName(concat(IMPLEMENTATION, name)) ); }, /** * Completes a drawing operation. * * @method end */ end: function() { this._draw(); return this; } }); CanvasPath.ATTRS = Y.merge(Y.CanvasShape.ATTRS, { /** * Indicates the width of the shape * * @config width * @type Number */ width: { getter: function() { var offset = this._stroke && this._strokeWeight ? (this._strokeWeight * 2) : 0; return this._width - offset; }, setter: function(val) { this._width = val; return val; } }, /** * Indicates the height of the shape * * @config height * @type Number */ height: { getter: function() { var offset = this._stroke && this._strokeWeight ? (this._strokeWeight * 2) : 0; return this._height - offset; }, setter: function(val) { this._height = val; return val; } }, /** * Indicates the path used for the node. * * @config path * @type String * @readOnly */ path: { readOnly: true, getter: function() { return this._path; } } }); Y.CanvasPath = CanvasPath; /** * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> implementation of the <a href="Rect.html">`Rect`</a> class. * `CanvasRect` is not intended to be used directly. Instead, use the <a href="Rect.html">`Rect`</a> class. * If the browser lacks <a href="http://www.w3.org/TR/SVG/">SVG</a> capabilities but has * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> capabilities, the <a href="Rect.html">`Rect`</a> * class will point to the `CanvasRect` class. * * @module graphics * @class CanvasRect * @constructor */ CanvasRect = function() { CanvasRect.superclass.constructor.apply(this, arguments); }; CanvasRect.NAME = "rect"; Y.extend(CanvasRect, Y.CanvasShape, { /** * Indicates the type of shape * * @property _type * @type String * @private */ _type: "rect", /** * Draws the shape. * * @method _draw * @private */ _draw: function() { var w = this.get("width"), h = this.get("height"); this.clear(); this.drawRect(0, 0, w, h); this._closePath(); } }); CanvasRect.ATTRS = Y.CanvasShape.ATTRS; Y.CanvasRect = CanvasRect; /** * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> implementation of the <a href="Ellipse.html">`Ellipse`</a> class. * `CanvasEllipse` is not intended to be used directly. Instead, use the <a href="Ellipse.html">`Ellipse`</a> class. * If the browser lacks <a href="http://www.w3.org/TR/SVG/">SVG</a> capabilities but has * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> capabilities, the <a href="Ellipse.html">`Ellipse`</a> * class will point to the `CanvasEllipse` class. * * @module graphics * @class CanvasEllipse * @constructor */ CanvasEllipse = function() { CanvasEllipse.superclass.constructor.apply(this, arguments); }; CanvasEllipse.NAME = "ellipse"; Y.extend(CanvasEllipse, CanvasShape, { /** * Indicates the type of shape * * @property _type * @type String * @private */ _type: "ellipse", /** * Draws the shape. * * @method _draw * @private */ _draw: function() { var w = this.get("width"), h = this.get("height"); this.clear(); this.drawEllipse(0, 0, w, h); this._closePath(); } }); CanvasEllipse.ATTRS = Y.merge(CanvasShape.ATTRS, { /** * Horizontal radius for the ellipse. * * @config xRadius * @type Number */ xRadius: { setter: function(val) { this.set("width", val * 2); }, getter: function() { var val = this.get("width"); if(val) { val *= 0.5; } return val; } }, /** * Vertical radius for the ellipse. * * @config yRadius * @type Number * @readOnly */ yRadius: { setter: function(val) { this.set("height", val * 2); }, getter: function() { var val = this.get("height"); if(val) { val *= 0.5; } return val; } } }); Y.CanvasEllipse = CanvasEllipse; /** * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> implementation of the <a href="Circle.html">`Circle`</a> class. * `CanvasCircle` is not intended to be used directly. Instead, use the <a href="Circle.html">`Circle`</a> class. * If the browser lacks <a href="http://www.w3.org/TR/SVG/">SVG</a> capabilities but has * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> capabilities, the <a href="Circle.html">`Circle`</a> * class will point to the `CanvasCircle` class. * * @module graphics * @class CanvasCircle * @constructor */ CanvasCircle = function() { CanvasCircle.superclass.constructor.apply(this, arguments); }; CanvasCircle.NAME = "circle"; Y.extend(CanvasCircle, Y.CanvasShape, { /** * Indicates the type of shape * * @property _type * @type String * @private */ _type: "circle", /** * Draws the shape. * * @method _draw * @private */ _draw: function() { var radius = this.get("radius"); if(radius) { this.clear(); this.drawCircle(0, 0, radius); this._closePath(); } } }); CanvasCircle.ATTRS = Y.merge(Y.CanvasShape.ATTRS, { /** * Indicates the width of the shape * * @config width * @type Number */ width: { setter: function(val) { this.set("radius", val/2); return val; }, getter: function() { return this.get("radius") * 2; } }, /** * Indicates the height of the shape * * @config height * @type Number */ height: { setter: function(val) { this.set("radius", val/2); return val; }, getter: function() { return this.get("radius") * 2; } }, /** * Radius of the circle * * @config radius * @type Number */ radius: { lazyAdd: false } }); Y.CanvasCircle = CanvasCircle; /** * Draws pie slices * * @module graphics * @class CanvasPieSlice * @constructor */ CanvasPieSlice = function() { CanvasPieSlice.superclass.constructor.apply(this, arguments); }; CanvasPieSlice.NAME = "canvasPieSlice"; Y.extend(CanvasPieSlice, Y.CanvasShape, { /** * Indicates the type of shape * * @property _type * @type String * @private */ _type: "path", /** * Change event listener * * @private * @method _updateHandler */ _draw: function() { var x = this.get("cx"), y = this.get("cy"), startAngle = this.get("startAngle"), arc = this.get("arc"), radius = this.get("radius"); this.clear(); this._left = x; this._right = radius; this._top = y; this._bottom = radius; this.drawWedge(x, y, startAngle, arc, radius); this.end(); } }); CanvasPieSlice.ATTRS = Y.mix({ cx: { value: 0 }, cy: { value: 0 }, /** * Starting angle in relation to a circle in which to begin the pie slice drawing. * * @config startAngle * @type Number */ startAngle: { value: 0 }, /** * Arc of the slice. * * @config arc * @type Number */ arc: { value: 0 }, /** * Radius of the circle in which the pie slice is drawn * * @config radius * @type Number */ radius: { value: 0 } }, Y.CanvasShape.ATTRS); Y.CanvasPieSlice = CanvasPieSlice; /** * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> implementation of the `Graphic` class. * `CanvasGraphic` is not intended to be used directly. Instead, use the <a href="Graphic.html">`Graphic`</a> class. * If the browser lacks <a href="http://www.w3.org/TR/SVG/">SVG</a> capabilities but has * <a href="http://www.w3.org/TR/html5/the-canvas-element.html">Canvas</a> capabilities, the <a href="Graphic.html">`Graphic`</a> * class will point to the `CanvasGraphic` class. * * @module graphics * @class CanvasGraphic * @constructor */ function CanvasGraphic() { CanvasGraphic.superclass.constructor.apply(this, arguments); } CanvasGraphic.NAME = "canvasGraphic"; CanvasGraphic.ATTRS = { /** * Whether or not to render the `Graphic` automatically after to a specified parent node after init. This can be a Node * instance or a CSS selector string. * * @config render * @type Node | String */ render: {}, /** * Unique id for class instance. * * @config id * @type String */ id: { valueFn: function() { return Y.guid(); }, setter: function(val) { var node = this._node; if(node) { node.setAttribute("id", val); } return val; } }, /** * Key value pairs in which a shape instance is associated with its id. * * @config shapes * @type Object * @readOnly */ shapes: { readOnly: true, getter: function() { return this._shapes; } }, /** * Object containing size and coordinate data for the content of a Graphic in relation to the graphic instance's position. * * @config contentBounds * @type Object * @readOnly */ contentBounds: { readOnly: true, getter: function() { return this._contentBounds; } }, /** * The outermost html element of the Graphic instance. * * @config node * @type HTMLElement * @readOnly */ node: { readOnly: true, getter: function() { return this._node; } }, /** * Indicates the width of the `Graphic`. * * @config width * @type Number */ width: { setter: function(val) { if(this._node) { this._node.style.width = val + "px"; } return val; } }, /** * Indicates the height of the `Graphic`. * * @config height * @type Number */ height: { setter: function(val) { if(this._node) { this._node.style.height = val + "px"; } return val; } }, /** * Determines the sizing of the Graphic. * * <dl> * <dt>sizeContentToGraphic</dt><dd>The Graphic's width and height attributes are, either explicitly set through the * <code>width</code> and <code>height</code> attributes or are determined by the dimensions of the parent element. The * content contained in the Graphic will be sized to fit with in the Graphic instance's dimensions. When using this * setting, the <code>preserveAspectRatio</code> attribute will determine how the contents are sized.</dd> * <dt>sizeGraphicToContent</dt><dd>(Also accepts a value of true) The Graphic's width and height are determined by the * size and positioning of the content.</dd> * <dt>false</dt><dd>The Graphic's width and height attributes are, either explicitly set through the <code>width</code> * and <code>height</code> attributes or are determined by the dimensions of the parent element. The contents of the * Graphic instance are not affected by this setting.</dd> * </dl> * * * @config autoSize * @type Boolean | String * @default false */ autoSize: { value: false }, /** * Determines how content is sized when <code>autoSize</code> is set to <code>sizeContentToGraphic</code>. * * <dl> * <dt>none<dt><dd>Do not force uniform scaling. Scale the graphic content of the given element non-uniformly if necessary * such that the element's bounding box exactly matches the viewport rectangle.</dd> * <dt>xMinYMin</dt><dd>Force uniform scaling position along the top left of the Graphic's node.</dd> * <dt>xMidYMin</dt><dd>Force uniform scaling horizontally centered and positioned at the top of the Graphic's node.<dd> * <dt>xMaxYMin</dt><dd>Force uniform scaling positioned horizontally from the right and vertically from the top.</dd> * <dt>xMinYMid</dt>Force uniform scaling positioned horizontally from the left and vertically centered.</dd> * <dt>xMidYMid (the default)</dt><dd>Force uniform scaling with the content centered.</dd> * <dt>xMaxYMid</dt><dd>Force uniform scaling positioned horizontally from the right and vertically centered.</dd> * <dt>xMinYMax</dt><dd>Force uniform scaling positioned horizontally from the left and vertically from the bottom.</dd> * <dt>xMidYMax</dt><dd>Force uniform scaling horizontally centered and position vertically from the bottom.</dd> * <dt>xMaxYMax</dt><dd>Force uniform scaling positioned horizontally from the right and vertically from the bottom.</dd> * </dl> * * @config preserveAspectRatio * @type String * @default xMidYMid */ preserveAspectRatio: { value: "xMidYMid" }, /** * The contentBounds will resize to greater values but not smaller values. (for performance) * When resizing the contentBounds down is desirable, set the resizeDown value to true. * * @config resizeDown * @type Boolean */ resizeDown: { value: false }, /** * Indicates the x-coordinate for the instance. * * @config x * @type Number */ x: { getter: function() { return this._x; }, setter: function(val) { this._x = val; if(this._node) { this._node.style.left = val + "px"; } return val; } }, /** * Indicates the y-coordinate for the instance. * * @config y * @type Number */ y: { getter: function() { return this._y; }, setter: function(val) { this._y = val; if(this._node) { this._node.style.top = val + "px"; } return val; } }, /** * Indicates whether or not the instance will automatically redraw after a change is made to a shape. * This property will get set to false when batching operations. * * @config autoDraw * @type Boolean * @default true * @private */ autoDraw: { value: true }, /** * Indicates whether the `Graphic` and its children are visible. * * @config visible * @type Boolean */ visible: { value: true, setter: function(val) { this._toggleVisible(val); return val; } } }; Y.extend(CanvasGraphic, Y.GraphicBase, { /** * Sets the value of an attribute. * * @method set * @param {String|Object} name The name of the attribute. Alternatively, an object of key value pairs can * be passed in to set multiple attributes at once. * @param {Any} value The value to set the attribute to. This value is ignored if an object is received as * the name param. */ set: function() { var host = this, attr = arguments[0], redrawAttrs = { autoDraw: true, autoSize: true, preserveAspectRatio: true, resizeDown: true }, key, forceRedraw = false; AttributeLite.prototype.set.apply(host, arguments); if(host._state.autoDraw === true && Y.Object.size(this._shapes) > 0) { if(Y_LANG.isString && redrawAttrs[attr]) { forceRedraw = true; } else if(Y_LANG.isObject(attr)) { for(key in redrawAttrs) { if(redrawAttrs.hasOwnProperty(key) && attr[key]) { forceRedraw = true; break; } } } } if(forceRedraw) { host._redraw(); } }, /** * Storage for `x` attribute. * * @property _x * @type Number * @private */ _x: 0, /** * Storage for `y` attribute. * * @property _y * @type Number * @private */ _y: 0, /** * Gets the current position of the graphic instance in page coordinates. * * @method getXY * @return Array The XY position of the shape. */ getXY: function() { var node = this._node, xy; if(node) { xy = Y.DOM.getXY(node); } return xy; }, /** * Initializes the class. * * @method initializer * @param {Object} config Optional attributes * @private */ initializer: function() { var render = this.get("render"), visibility = this.get("visible") ? "visible" : "hidden", w = this.get("width") || 0, h = this.get("height") || 0; this._shapes = {}; this._redrawQueue = {}; this._contentBounds = { left: 0, top: 0, right: 0, bottom: 0 }; this._node = DOCUMENT.createElement('div'); this._node.style.position = "absolute"; this._node.style.visibility = visibility; this.set("width", w); this.set("height", h); if(render) { this.render(render); } }, /** * Adds the graphics node to the dom. * * @method render * @param {HTMLElement} parentNode node in which to render the graphics node into. */ render: function(render) { var parentNode = render || DOCUMENT.body, node = this._node, w, h; if(render instanceof Y.Node) { parentNode = render._node; } else if(Y.Lang.isString(render)) { parentNode = Y.Selector.query(render, DOCUMENT.body, true); } w = this.get("width") || parseInt(Y.DOM.getComputedStyle(parentNode, "width"), 10); h = this.get("height") || parseInt(Y.DOM.getComputedStyle(parentNode, "height"), 10); parentNode.appendChild(node); node.style.display = "block"; node.style.position = "absolute"; node.style.left = this.get("x") + "px"; node.style.top = this.get("y") + "px"; this.set("width", w); this.set("height", h); this.parentNode = parentNode; return this; }, /** * Removes all nodes. * * @method destroy */ destroy: function() { this.removeAllShapes(); if(this._node) { this._removeChildren(this._node); if(this._node.parentNode) { this._node.parentNode.removeChild(this._node); } this._node = null; } }, /** * Generates a shape instance by type. * * @method addShape * @param {Object} cfg attributes for the shape * @return Shape */ addShape: function(cfg) { cfg.graphic = this; if(!this.get("visible")) { cfg.visible = false; } var ShapeClass = this._getShapeClass(cfg.type), shape = new ShapeClass(cfg); this._appendShape(shape); return shape; }, /** * Adds a shape instance to the graphic instance. * * @method _appendShape * @param {Shape} shape The shape instance to be added to the graphic. * @private */ _appendShape: function(shape) { var node = shape.node, parentNode = this._frag || this._node; if(this.get("autoDraw")) { parentNode.appendChild(node); } else { this._getDocFrag().appendChild(node); } }, /** * Removes a shape instance from from the graphic instance. * * @method removeShape * @param {Shape|String} shape The instance or id of the shape to be removed. */ removeShape: function(shape) { if(!(shape instanceof CanvasShape)) { if(Y_LANG.isString(shape)) { shape = this._shapes[shape]; } } if(shape && shape instanceof CanvasShape) { shape._destroy(); delete this._shapes[shape.get("id")]; } if(this.get("autoDraw")) { this._redraw(); } return shape; }, /** * Removes all shape instances from the dom. * * @method removeAllShapes */ removeAllShapes: function() { var shapes = this._shapes, i; for(i in shapes) { if(shapes.hasOwnProperty(i)) { shapes[i].destroy(); } } this._shapes = {}; }, /** * Clears the graphics object. * * @method clear */ clear: function() { this.removeAllShapes(); }, /** * Removes all child nodes. * * @method _removeChildren * @param {HTMLElement} node * @private */ _removeChildren: function(node) { if(node && node.hasChildNodes()) { var child; while(node.firstChild) { child = node.firstChild; this._removeChildren(child); node.removeChild(child); } } }, /** * Toggles visibility * * @method _toggleVisible * @param {Boolean} val indicates visibilitye * @private */ _toggleVisible: function(val) { var i, shapes = this._shapes, visibility = val ? "visible" : "hidden"; if(shapes) { for(i in shapes) { if(shapes.hasOwnProperty(i)) { shapes[i].set("visible", val); } } } if(this._node) { this._node.style.visibility = visibility; } }, /** * Returns a shape class. Used by `addShape`. * * @method _getShapeClass * @param {Shape | String} val Indicates which shape class. * @return Function * @private */ _getShapeClass: function(val) { var shape = this._shapeClass[val]; if(shape) { return shape; } return val; }, /** * Look up for shape classes. Used by `addShape` to retrieve a class for instantiation. * * @property _shapeClass * @type Object * @private */ _shapeClass: { circle: Y.CanvasCircle, rect: Y.CanvasRect, path: Y.CanvasPath, ellipse: Y.CanvasEllipse, pieslice: Y.CanvasPieSlice }, /** * Returns a shape based on the id of its dom node. * * @method getShapeById * @param {String} id Dom id of the shape's node attribute. * @return Shape */ getShapeById: function(id) { var shape = this._shapes[id]; return shape; }, /** * Allows for creating multiple shapes in order to batch appending and redraw operations. * * @method batch * @param {Function} method Method to execute. */ batch: function(method) { var autoDraw = this.get("autoDraw"); this.set("autoDraw", false); method(); this.set("autoDraw", autoDraw); }, /** * Returns a document fragment to for attaching shapes. * * @method _getDocFrag * @return DocumentFragment * @private */ _getDocFrag: function() { if(!this._frag) { this._frag = DOCUMENT.createDocumentFragment(); } return this._frag; }, /** * Redraws all shapes. * * @method _redraw * @private */ _redraw: function() { var autoSize = this.get("autoSize"), preserveAspectRatio = this.get("preserveAspectRatio"), box = this.get("resizeDown") ? this._getUpdatedContentBounds() : this._contentBounds, contentWidth, contentHeight, w, h, xScale, yScale, translateX = 0, translateY = 0, matrix, node = this.get("node"); if(autoSize) { if(autoSize === "sizeContentToGraphic") { contentWidth = box.right - box.left; contentHeight = box.bottom - box.top; w = parseFloat(Y_DOM.getComputedStyle(node, "width")); h = parseFloat(Y_DOM.getComputedStyle(node, "height")); matrix = new Y.Matrix(); if(preserveAspectRatio === "none") { xScale = w/contentWidth; yScale = h/contentHeight; } else { if(contentWidth/contentHeight !== w/h) { if(contentWidth * h/contentHeight > w) { xScale = yScale = w/contentWidth; translateY = this._calculateTranslate(preserveAspectRatio.slice(5).toLowerCase(), contentHeight * w/contentWidth, h); } else { xScale = yScale = h/contentHeight; translateX = this._calculateTranslate(preserveAspectRatio.slice(1, 4).toLowerCase(), contentWidth * h/contentHeight, w); } } } Y_DOM.setStyle(node, "transformOrigin", "0% 0%"); translateX = translateX - (box.left * xScale); translateY = translateY - (box.top * yScale); matrix.translate(translateX, translateY); matrix.scale(xScale, yScale); Y_DOM.setStyle(node, "transform", matrix.toCSSText()); } else { this.set("width", box.right); this.set("height", box.bottom); } } if(this._frag) { this._node.appendChild(this._frag); this._frag = null; } }, /** * Determines the value for either an x or y value to be used for the <code>translate</code> of the Graphic. * * @method _calculateTranslate * @param {String} position The position for placement. Possible values are min, mid and max. * @param {Number} contentSize The total size of the content. * @param {Number} boundsSize The total size of the Graphic. * @return Number * @private */ _calculateTranslate: function(position, contentSize, boundsSize) { var ratio = boundsSize - contentSize, coord; switch(position) { case "mid" : coord = ratio * 0.5; break; case "max" : coord = ratio; break; default : coord = 0; break; } return coord; }, /** * Adds a shape to the redraw queue and calculates the contentBounds. Used internally * by `Shape` instances. * * @method addToRedrawQueue * @param Shape shape The shape instance to add to the queue * @protected */ addToRedrawQueue: function(shape) { var shapeBox, box; this._shapes[shape.get("id")] = shape; if(!this.get("resizeDown")) { shapeBox = shape.getBounds(); box = this._contentBounds; box.left = box.left < shapeBox.left ? box.left : shapeBox.left; box.top = box.top < shapeBox.top ? box.top : shapeBox.top; box.right = box.right > shapeBox.right ? box.right : shapeBox.right; box.bottom = box.bottom > shapeBox.bottom ? box.bottom : shapeBox.bottom; this._contentBounds = box; } if(this.get("autoDraw")) { this._redraw(); } }, /** * Recalculates and returns the `contentBounds` for the `Graphic` instance. * * @method _getUpdatedContentBounds * @return {Object} * @private */ _getUpdatedContentBounds: function() { var bounds, i, shape, queue = this._shapes, box = {}; for(i in queue) { if(queue.hasOwnProperty(i)) { shape = queue[i]; bounds = shape.getBounds(); box.left = Y_LANG.isNumber(box.left) ? Math.min(box.left, bounds.left) : bounds.left; box.top = Y_LANG.isNumber(box.top) ? Math.min(box.top, bounds.top) : bounds.top; box.right = Y_LANG.isNumber(box.right) ? Math.max(box.right, bounds.right) : bounds.right; box.bottom = Y_LANG.isNumber(box.bottom) ? Math.max(box.bottom, bounds.bottom) : bounds.bottom; } } box.left = Y_LANG.isNumber(box.left) ? box.left : 0; box.top = Y_LANG.isNumber(box.top) ? box.top : 0; box.right = Y_LANG.isNumber(box.right) ? box.right : 0; box.bottom = Y_LANG.isNumber(box.bottom) ? box.bottom : 0; this._contentBounds = box; return box; }, /** * Inserts shape on the top of the tree. * * @method _toFront * @param {CanvasShape} Shape to add. * @private */ _toFront: function(shape) { var contentNode = this.get("node"); if(shape instanceof Y.CanvasShape) { shape = shape.get("node"); } if(contentNode && shape) { contentNode.appendChild(shape); } }, /** * Inserts shape as the first child of the content node. * * @method _toBack * @param {CanvasShape} Shape to add. * @private */ _toBack: function(shape) { var contentNode = this.get("node"), targetNode; if(shape instanceof Y.CanvasShape) { shape = shape.get("node"); } if(contentNode && shape) { targetNode = contentNode.firstChild; if(targetNode) { contentNode.insertBefore(shape, targetNode); } else { contentNode.appendChild(shape); } } } }); Y.CanvasGraphic = CanvasGraphic; }, '3.17.1', {"requires": ["graphics", "color-base"]});
smcguinness/cdnjs
ajax/libs/yui/3.17.1/graphics-canvas/graphics-canvas-debug.js
JavaScript
mit
98,532
YUI.add('scrollview-paginator', function (Y, NAME) { /** * Provides a plugin that adds pagination support to ScrollView instances * * @module scrollview-paginator */ var getClassName = Y.ClassNameManager.getClassName, SCROLLVIEW = 'scrollview', CLASS_HIDDEN = getClassName(SCROLLVIEW, 'hidden'), CLASS_PAGED = getClassName(SCROLLVIEW, 'paged'), UI = (Y.ScrollView) ? Y.ScrollView.UI_SRC : 'ui', INDEX = 'index', SCROLL_X = 'scrollX', SCROLL_Y = 'scrollY', TOTAL = 'total', HOST = 'host', SELECTOR = 'selector', AXIS = 'axis', DIM_X = 'x', DIM_Y = 'y'; /** * Scrollview plugin that adds support for paging * * @class ScrollViewPaginator * @namespace Plugin * @extends Plugin.Base * @constructor */ function PaginatorPlugin() { PaginatorPlugin.superclass.constructor.apply(this, arguments); } Y.extend(PaginatorPlugin, Y.Plugin.Base, { /** * Designated initializer * * @method initializer * @param {config} Configuration object for the plugin */ initializer: function (config) { var paginator = this, host = paginator.get(HOST); // Initialize & default paginator._pageDims = []; paginator._pageBuffer = 1; paginator._optimizeMemory = false; // Cache some values paginator._host = host; paginator._bb = host._bb; paginator._cb = host._cb; paginator._cIndex = paginator.get(INDEX); paginator._cAxis = paginator.get(AXIS); // Apply configs if (config._optimizeMemory) { paginator._optimizeMemory = config._optimizeMemory; } if (config._pageBuffer) { paginator._pageBuffer = config._pageBuffer; } // Attach event bindings paginator._bindAttrs(); }, /** * * * @method _bindAttrs * @private */ _bindAttrs: function () { var paginator = this; // Event listeners paginator.after({ 'indexChange': paginator._afterIndexChange, 'axisChange': paginator._afterAxisChange }); // Host method listeners paginator.beforeHostMethod('scrollTo', paginator._beforeHostScrollTo); paginator.beforeHostMethod('_mousewheel', paginator._beforeHostMousewheel); paginator.beforeHostMethod('_flick', paginator._beforeHostFlick); paginator.afterHostMethod('_onGestureMoveEnd', paginator._afterHostGestureMoveEnd); paginator.afterHostMethod('_uiDimensionsChange', paginator._afterHostUIDimensionsChange); paginator.afterHostMethod('syncUI', paginator._afterHostSyncUI); // Host event listeners paginator.afterHostEvent('render', paginator._afterHostRender); paginator.afterHostEvent('scrollEnd', paginator._afterHostScrollEnded); }, /** * After host render * * @method _afterHostRender * @param e {Event.Facade} The event facade * @protected */ _afterHostRender: function () { var paginator = this, bb = paginator._bb, host = paginator._host, index = paginator._cIndex, paginatorAxis = paginator._cAxis, pageNodes = paginator._getPageNodes(), size = pageNodes.size(), pageDim = paginator._pageDims[index]; if (paginatorAxis[DIM_Y]) { host._maxScrollX = pageDim.maxScrollX; } else if (paginatorAxis[DIM_X]) { host._maxScrollY = pageDim.maxScrollY; } // Set the page count paginator.set(TOTAL, size); // Jump to the index if (index !== 0) { paginator.scrollToIndex(index, 0); } // Add the paginator class bb.addClass(CLASS_PAGED); // Trigger the optimization process paginator._optimize(); }, /** * After host syncUI * * @method _afterHostSyncUI * @param e {Event.Facade} The event facade * @protected */ _afterHostSyncUI: function () { var paginator = this, host = paginator._host, pageNodes = paginator._getPageNodes(), size = pageNodes.size(); // Set the page count paginator.set(TOTAL, size); // If paginator's 'axis' property is to be automatically determined, inherit host's property if (paginator._cAxis === undefined) { paginator._set(AXIS, host.get(AXIS)); } }, /** * After host _uiDimensionsChange * * @method _afterHostUIDimensionsChange * @param e {Event.Facade} The event facade * @protected */ _afterHostUIDimensionsChange: function () { var paginator = this, host = paginator._host, dims = host._getScrollDims(), widgetWidth = dims.offsetWidth, widgetHeight = dims.offsetHeight, pageNodes = paginator._getPageNodes(); // Inefficient. Should not reinitialize every page every syncUI pageNodes.each(function (node, i) { var scrollWidth = node.get('scrollWidth'), scrollHeight = node.get('scrollHeight'), maxScrollX = Math.max(0, scrollWidth - widgetWidth), // Math.max to ensure we don't set it to a negative value maxScrollY = Math.max(0, scrollHeight - widgetHeight); // Don't initialize any page _pageDims that already have been. if (!paginator._pageDims[i]) { paginator._pageDims[i] = { // Current scrollX & scrollY positions (default to 0) scrollX: 0, scrollY: 0, // Maximum scrollable values maxScrollX: maxScrollX, maxScrollY: maxScrollY, // Height & width of the page width: scrollWidth, height: scrollHeight }; } else { paginator._pageDims[i].maxScrollX = maxScrollX; paginator._pageDims[i].maxScrollY = maxScrollY; } }); }, /** * Executed before host.scrollTo * * @method _beforeHostScrollTo * @param x {Number} The x-position to scroll to. (null for no movement) * @param y {Number} The y-position to scroll to. (null for no movement) * @param {Number} [duration] Duration, in ms, of the scroll animation (default is 0) * @param {String} [easing] An easing equation if duration is set * @param {String} [node] The node to move * @protected */ _beforeHostScrollTo: function (x, y, duration, easing, node) { var paginator = this, host = paginator._host, gesture = host._gesture, index = paginator._cIndex, paginatorAxis = paginator._cAxis, pageNodes = paginator._getPageNodes(), gestureAxis; if (gesture) { gestureAxis = gesture.axis; // Null the opposite axis so it won't be modified by host.scrollTo if (gestureAxis === DIM_Y) { x = null; } else { y = null; } // If they are scrolling against the specified axis, pull out the page's node to have its own offset if (paginatorAxis[gestureAxis] === false) { node = pageNodes.item(index); } } // Return the modified argument list return new Y.Do.AlterArgs("new args", [x, y, duration, easing, node]); }, /** * Executed after host._gestureMoveEnd * Determines if the gesture should page prev or next (if at all) * * @method _afterHostGestureMoveEnd * @param e {Event.Facade} The event facade * @protected */ _afterHostGestureMoveEnd: function () { // This was a flick, so we don't need to do anything here if (this._host._gesture.flick) { return; } var paginator = this, host = paginator._host, gesture = host._gesture, index = paginator._cIndex, paginatorAxis = paginator._cAxis, gestureAxis = gesture.axis, isHorizontal = (gestureAxis === DIM_X), delta = gesture[(isHorizontal ? 'deltaX' : 'deltaY')], isForward = (delta > 0), pageDims = paginator._pageDims[index], halfway = pageDims[(isHorizontal ? 'width' : 'height')] / 2, isHalfway = (Math.abs(delta) >= halfway), canScroll = paginatorAxis[gestureAxis], rtl = host.rtl; if (canScroll) { if (isHalfway) { // TODO: This condition should probably be configurable // Fire next()/prev() paginator[(rtl === isForward ? 'prev' : 'next')](); } // Scrollback else { paginator.scrollToIndex(paginator.get(INDEX)); } } }, /** * Executed before host._mousewheel * Prevents mousewheel events in some conditions * * @method _beforeHostMousewheel * @param e {Event.Facade} The event facade * @protected */ _beforeHostMousewheel: function (e) { var paginator = this, host = paginator._host, bb = host._bb, isForward = (e.wheelDelta < 0), paginatorAxis = paginator._cAxis; // Only if the mousewheel event occurred on a DOM node inside the BB if (bb.contains(e.target) && paginatorAxis[DIM_Y]) { // Fire next()/prev() paginator[(isForward ? 'next' : 'prev')](); // prevent browser default behavior on mousewheel e.preventDefault(); // Block host._mousewheel from running return new Y.Do.Prevent(); } }, /** * Executed before host._flick * Prevents flick events in some conditions * * @method _beforeHostFlick * @param e {Event.Facade} The event facade * @protected */ _beforeHostFlick: function (e) { // The drag was out of bounds, so do nothing (which will cause a snapback) if (this._host._isOutOfBounds()){ return new Y.Do.Prevent(); } var paginator = this, host = paginator._host, gesture = host._gesture, paginatorAxis = paginator.get(AXIS), flick = e.flick, velocity = flick.velocity, flickAxis = flick.axis, isForward = (velocity < 0), canScroll = paginatorAxis[flickAxis], rtl = host.rtl; // Store the flick data in the this._host._gesture object so it knows this was a flick if (gesture) { gesture.flick = flick; } // Can we scroll along this axis? if (canScroll) { // Fire next()/prev() paginator[(rtl === isForward ? 'prev' : 'next')](); // Prevent flick animations on the paginated axis. return new Y.Do.Prevent(); } }, /** * Executes after host's 'scrollEnd' event * Runs cleanup operations * * @method _afterHostScrollEnded * @param e {Event.Facade} The event facade * @protected */ _afterHostScrollEnded: function () { var paginator = this, host = paginator._host, index = paginator._cIndex, scrollX = host.get(SCROLL_X), scrollY = host.get(SCROLL_Y), paginatorAxis = paginator._cAxis; if (paginatorAxis[DIM_Y]) { paginator._pageDims[index].scrollX = scrollX; } else { paginator._pageDims[index].scrollY = scrollY; } paginator._optimize(); }, /** * index attr change handler * * @method _afterIndexChange * @param e {Event.Facade} The event facade * @protected */ _afterIndexChange: function (e) { var paginator = this, host = paginator._host, index = e.newVal, pageDims = paginator._pageDims[index], hostAxis = host._cAxis, paginatorAxis = paginator._cAxis; // Cache the new index value paginator._cIndex = index; // For dual-axis instances, we need to hack some host properties to the // current page's max height/width and current stored offset if (hostAxis[DIM_X] && hostAxis[DIM_Y]) { if (paginatorAxis[DIM_Y]) { host._maxScrollX = pageDims.maxScrollX; host.set(SCROLL_X, pageDims.scrollX, { src: UI }); } else if (paginatorAxis[DIM_X]) { host._maxScrollY = pageDims.maxScrollY; host.set(SCROLL_Y, pageDims.scrollY, { src: UI }); } } if (e.src !== UI) { paginator.scrollToIndex(index); } }, /** * Optimization: Hides the pages not near the viewport * * @method _optimize * @protected */ _optimize: function () { if (!this._optimizeMemory) { return false; } var paginator = this, currentIndex = paginator._cIndex, pageNodes = paginator._getStage(currentIndex); // Show the pages in/near the viewport & hide the rest paginator._showNodes(pageNodes.visible); paginator._hideNodes(pageNodes.hidden); }, /** * Optimization: Determines which nodes should be visible, and which should be hidden. * * @method _getStage * @param index {Number} The page index # intended to be in focus. * @return {object} * @protected */ _getStage: function (index) { var paginator = this, pageBuffer = paginator._pageBuffer, pageCount = paginator.get(TOTAL), pageNodes = paginator._getPageNodes(), start = Math.max(0, index - pageBuffer), end = Math.min(pageCount, index + 1 + pageBuffer); // noninclusive return { visible: pageNodes.splice(start, end - start), hidden: pageNodes }; }, /** * A utility method to show node(s) * * @method _showNodes * @param nodeList {Object} The list of nodes to show * @protected */ _showNodes: function (nodeList) { if (nodeList) { nodeList.removeClass(CLASS_HIDDEN).setStyle('visibility', ''); } }, /** * A utility method to hide node(s) * * @method _hideNodes * @param nodeList {Object} The list of nodes to hide * @protected */ _hideNodes: function (nodeList) { if (nodeList) { nodeList.addClass(CLASS_HIDDEN).setStyle('visibility', 'hidden'); } }, /** * Gets a nodeList for the "pages" * * @method _getPageNodes * @protected * @return {nodeList} */ _getPageNodes: function () { var paginator = this, host = paginator._host, cb = host._cb, pageSelector = paginator.get(SELECTOR), pageNodes = (pageSelector ? cb.all(pageSelector) : cb.get('children')); return pageNodes; }, /** * Scroll to the next page, with animation * * @method next */ next: function () { var paginator = this, index = paginator._cIndex, target = index + 1, total = paginator.get(TOTAL); if (target >= total) { return; } // Update the index paginator.set(INDEX, target); }, /** * Scroll to the previous page, with animation * * @method prev */ prev: function () { var paginator = this, index = paginator._cIndex, target = index - 1; if (target < 0) { return; } // Update the index paginator.set(INDEX, target); }, /** * Deprecated for 3.7.0. * @method scrollTo * @deprecated */ scrollTo: function () { return this.scrollToIndex.apply(this, arguments); }, /** * Scroll to a given page in the scrollview * * @method scrollToIndex * @since 3.7.0 * @param index {Number} The index of the page to scroll to * @param {Number} [duration] The number of ms the animation should last * @param {String} [easing] The timing function to use in the animation */ scrollToIndex: function (index, duration, easing) { var paginator = this, host = paginator._host, pageNode = paginator._getPageNodes().item(index), scrollAxis = (paginator._cAxis[DIM_X] ? SCROLL_X : SCROLL_Y), scrollOffset = pageNode.get(scrollAxis === SCROLL_X ? 'offsetLeft' : 'offsetTop'); duration = (duration !== undefined) ? duration : PaginatorPlugin.TRANSITION.duration; easing = (easing !== undefined) ? easing : PaginatorPlugin.TRANSITION.easing; // Set the index ATTR to the specified index value paginator.set(INDEX, index, { src: UI }); // Makes sure the viewport nodes are visible paginator._showNodes(pageNode); // Scroll to the offset host.set(scrollAxis, scrollOffset, { duration: duration, easing: easing }); }, /** * Setter for 'axis' attribute * * @method _axisSetter * @param val {Mixed} A string ('x', 'y', 'xy') to specify which axis/axes to allow scrolling on * @param name {String} The attribute name * @return {Object} An object to specify scrollability on the x & y axes * * @protected */ _axisSetter: function (val) { // Turn a string into an axis object if (Y.Lang.isString(val)) { return { x: (val.match(/x/i) ? true : false), y: (val.match(/y/i) ? true : false) }; } }, /** * After listener for the axis attribute * * @method _afterAxisChange * @param e {Event.Facade} The event facade * @protected */ _afterAxisChange: function (e) { this._cAxis = e.newVal; } // End prototype properties }, { // Static properties /** * The identity of the plugin * * @property NAME * @type String * @default 'pluginScrollViewPaginator' * @readOnly * @protected * @static */ NAME: 'pluginScrollViewPaginator', /** * The namespace on which the plugin will reside * * @property NS * @type String * @default 'pages' * @static */ NS: 'pages', /** * The default attribute configuration for the plugin * * @property ATTRS * @type {Object} * @static */ ATTRS: { /** * Specifies ability to scroll on x, y, or x and y axis/axes. * If unspecified, it inherits from the host instance. * * @attribute axis * @type String */ axis: { setter: '_axisSetter', writeOnce: 'initOnly' }, /** * CSS selector for a page inside the scrollview. The scrollview * will snap to the closest page. * * @attribute selector * @type {String} * @default null */ selector: { value: null }, /** * The active page number for a paged scrollview * * @attribute index * @type {Number} * @default 0 */ index: { value: 0 }, /** * The total number of pages * * @attribute total * @type {Number} * @default 0 */ total: { value: 0 } }, /** * The default snap to current duration and easing values used on scroll end. * * @property SNAP_TO_CURRENT * @static */ TRANSITION: { duration: 300, easing: 'ease-out' } // End static properties }); Y.namespace('Plugin').ScrollViewPaginator = PaginatorPlugin; }, '@VERSION@', {"requires": ["plugin", "classnamemanager"]});
dc-js/cdnjs
ajax/libs/yui/3.9.0pr2/scrollview-paginator/scrollview-paginator-debug.js
JavaScript
mit
20,491
YUI.add('datasource-textschema', function(Y) { /** * Extends DataSource with schema-parsing on text data. * * @module datasource * @submodule datasource-textschema */ /** * Adds schema-parsing to the DataSource Utility. * @class DataSourceTextSchema * @extends Plugin.Base */ var DataSourceTextSchema = function() { DataSourceTextSchema.superclass.constructor.apply(this, arguments); }; Y.mix(DataSourceTextSchema, { /** * The namespace for the plugin. This will be the property on the host which * references the plugin instance. * * @property NS * @type String * @static * @final * @value "schema" */ NS: "schema", /** * Class name. * * @property NAME * @type String * @static * @final * @value "dataSourceTextSchema" */ NAME: "dataSourceTextSchema", ///////////////////////////////////////////////////////////////////////////// // // DataSourceTextSchema Attributes // ///////////////////////////////////////////////////////////////////////////// ATTRS: { schema: { //value: {} } } }); Y.extend(DataSourceTextSchema, Y.Plugin.Base, { /** * Internal init() handler. * * @method initializer * @param config {Object} Config object. * @private */ initializer: function(config) { this.doBefore("_defDataFn", this._beforeDefDataFn); }, /** * Parses raw data into a normalized response. * * @method _beforeDefDataFn * <dl> * <dt>tId (Number)</dt> <dd>Unique transaction ID.</dd> * <dt>request (Object)</dt> <dd>The request.</dd> * <dt>callback (Object)</dt> <dd>The callback object with the following properties: * <dl> * <dt>success (Function)</dt> <dd>Success handler.</dd> * <dt>failure (Function)</dt> <dd>Failure handler.</dd> * </dl> * </dd> * <dt>data (Object)</dt> <dd>Raw data.</dd> * </dl> * @protected */ _beforeDefDataFn: function(e) { var data = (Y.DataSource.IO && (this.get("host") instanceof Y.DataSource.IO) && Y.Lang.isString(e.data.responseText)) ? e.data.responseText : e.data, response = Y.DataSchema.Text.apply(this.get("schema"), data); // Default if(!response) { response = { meta: {}, results: data }; } this.get("host").fire("response", Y.mix({response:response}, e)); return new Y.Do.Halt("DataSourceTextSchema plugin halted _defDataFn"); } }); Y.namespace('Plugin').DataSourceTextSchema = DataSourceTextSchema; }, '@VERSION@' ,{requires:['plugin', 'datasource-local', 'dataschema-text']});
drewfreyling/cdnjs
ajax/libs/yui/3.0.0/datasource/datasource-textschema-debug.js
JavaScript
mit
2,802
define( "dojo/cldr/nls/fr/chinese", //begin v1.x content { "field-second-relative+0": "maintenant", "field-weekday": "jour de la semaine", "field-wed-relative+0": "ce mercredi", "field-wed-relative+1": "mercredi prochain", "dateFormatItem-GyMMMEd": "E d MMM U", "dateFormatItem-MMMEd": "E d MMM", "field-tue-relative+-1": "mardi dernier", "dateFormat-long": "d MMMM U", "field-fri-relative+-1": "vendredi dernier", "field-wed-relative+-1": "mercredi dernier", "months-format-wide": [ "zhēngyuè", "èryuè", "sānyuè", "sìyuè", "wǔyuè", "liùyuè", "qīyuè", "bāyuè", "jiǔyuè", "shíyuè", "shíyīyuè", "shí’èryuè" ], "dateFormatItem-yyyyQQQ": "QQQ U", "dateFormat-full": "EEEE d MMMM U", "dateFormatItem-yyyyMEd": "E d/M/y", "field-thu-relative+-1": "jeudi dernier", "dateFormatItem-Md": "d/M", "dateFormatItem-yMd": "d/M/y", "field-era": "ère", "months-standAlone-wide": [ "zhēngyuè", "èryuè", "sānyuè", "sìyuè", "wǔyuè", "liùyuè", "qīyuè", "bāyuè", "jiǔyuè", "shíyuè", "shíyīyuè", "shí’èryuè" ], "field-year": "année", "field-hour": "heure", "months-format-abbr": [ "1yuè", "2yuè", "3yuè", "4yuè", "5yuè", "6yuè", "7yuè", "8yuè", "9yuè", "10yuè", "11yuè", "12yuè" ], "field-sat-relative+0": "ce samedi", "field-sat-relative+1": "samedi prochain", "field-day-relative+0": "aujourd’hui", "field-thu-relative+0": "ce jeudi", "field-day-relative+1": "demain", "field-thu-relative+1": "jeudi prochain", "dateFormatItem-GyMMMd": "d MMM U", "field-day-relative+2": "après-demain", "months-standAlone-abbr": [ "1yuè", "2yuè", "3yuè", "4yuè", "5yuè", "6yuè", "7yuè", "8yuè", "9yuè", "10yuè", "11yuè", "12yuè" ], "dateFormatItem-Gy": "U", "dateFormatItem-yyyyMMMEd": "E d MMM U", "dateFormatItem-M": "L", "dateFormatItem-yyyyMMM": "MMM U", "dateFormatItem-yyyyMMMd": "d MMM U", "field-sun-relative+0": "ce dimanche", "field-sun-relative+1": "dimanche prochain", "field-minute": "minute", "field-dayperiod": "cadran", "dateFormatItem-ms": "mm:ss", "field-day-relative+-1": "hier", "field-day-relative+-2": "avant-hier", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", "field-fri-relative+0": "ce vendredi", "field-fri-relative+1": "vendredi prochain", "field-day": "jour", "field-zone": "fuseau horaire", "dateFormatItem-y": "U", "field-year-relative+-1": "l’année dernière", "field-month-relative+-1": "le mois dernier", "dateFormatItem-yyyyMd": "d/M/y", "field-month": "mois", "dateFormatItem-MMM": "LLL", "field-tue-relative+0": "ce mardi", "field-tue-relative+1": "mardi prochain", "field-mon-relative+0": "ce lundi", "field-mon-relative+1": "lundi prochain", "dateFormat-short": "d/M/y", "field-second": "seconde", "field-sat-relative+-1": "samedi dernier", "field-sun-relative+-1": "dimanche dernier", "field-month-relative+0": "ce mois-ci", "field-month-relative+1": "le mois prochain", "field-week": "semaine", "dateFormat-medium": "d MMM U", "field-year-relative+0": "cette année", "field-week-relative+-1": "la semaine dernière", "dateFormatItem-yyyyM": "M/y", "field-year-relative+1": "l’année prochaine", "dateFormatItem-yyyyQQQQ": "QQQQ U", "dateFormatItem-GyMMM": "MMM U", "field-mon-relative+-1": "lundi dernier", "dateFormatItem-yyyy": "U", "field-week-relative+0": "cette semaine", "field-week-relative+1": "la semaine prochaine" } //end v1.x content );
TerryMooreII/cdnjs
ajax/libs/dojo/1.10.0/cldr/nls/fr/chinese.js.uncompressed.js
JavaScript
mit
3,538
var apply = require('./_apply'), createCtor = require('./_createCtor'), root = require('./_root'); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG = 1; /** * Creates a function that wraps `func` to invoke it with the `this` binding * of `thisArg` and `partials` prepended to the arguments it receives. * * @private * @param {Function} func The function to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} thisArg The `this` binding of `func`. * @param {Array} partials The arguments to prepend to those provided to * the new function. * @returns {Function} Returns the new wrapped function. */ function createPartial(func, bitmask, thisArg, partials) { var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); function wrapper() { var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; while (++leftIndex < leftLength) { args[leftIndex] = partials[leftIndex]; } while (argsLength--) { args[leftIndex++] = arguments[++argsIndex]; } return apply(fn, isBind ? thisArg : this, args); } return wrapper; } module.exports = createPartial;
stephenjoe1/pay-link-set-up
node_modules/sass-graph/node_modules/lodash/_createPartial.js
JavaScript
mit
1,382
/*! http://mths.be/placeholder v2.0.7 by @mathias Modified to work with Zepto.js by ZURB */ ;(function(window, document, $) { var isInputSupported = 'placeholder' in document.createElement('input'), isTextareaSupported = 'placeholder' in document.createElement('textarea'), prototype = $.fn, valHooks = $.valHooks, hooks, placeholder; if (isInputSupported && isTextareaSupported) { placeholder = prototype.placeholder = function() { return this; }; placeholder.input = placeholder.textarea = true; } else { placeholder = prototype.placeholder = function() { var $this = this; $this .filter((isInputSupported ? 'textarea' : ':input') + '[placeholder]') .not('.placeholder') .bind({ 'focus.placeholder': clearPlaceholder, 'blur.placeholder': setPlaceholder }) .data('placeholder-enabled', true) .trigger('blur.placeholder'); return $this; }; placeholder.input = isInputSupported; placeholder.textarea = isTextareaSupported; hooks = { 'get': function(element) { var $element = $(element); return $element.data('placeholder-enabled') && $element.hasClass('placeholder') ? '' : element.value; }, 'set': function(element, value) { var $element = $(element); if (!$element.data('placeholder-enabled')) { return element.value = value; } if (value == '') { element.value = value; // Issue #56: Setting the placeholder causes problems if the element continues to have focus. if (element != document.activeElement) { // We can't use `triggerHandler` here because of dummy text/password inputs :( setPlaceholder.call(element); } } else if ($element.hasClass('placeholder')) { clearPlaceholder.call(element, true, value) || (element.value = value); } else { element.value = value; } // `set` can not return `undefined`; see http://jsapi.info/jquery/1.7.1/val#L2363 return $element; } }; isInputSupported || (valHooks.input = hooks); isTextareaSupported || (valHooks.textarea = hooks); $(function() { // Look for forms $(document).delegate('form', 'submit.placeholder', function() { // Clear the placeholder values so they don't get submitted var $inputs = $('.placeholder', this).each(clearPlaceholder); setTimeout(function() { $inputs.each(setPlaceholder); }, 10); }); }); // Clear placeholder values upon page reload $(window).bind('beforeunload.placeholder', function() { $('.placeholder').each(function() { this.value = ''; }); }); } function args(elem) { // Return an object of element attributes var newAttrs = {}, rinlinejQuery = /^jQuery\d+$/; $.each(elem.attributes, function(i, attr) { if (attr.specified && !rinlinejQuery.test(attr.name)) { newAttrs[attr.name] = attr.value; } }); return newAttrs; } function clearPlaceholder(event, value) { var input = this, $input = $(input); if (input.value == $input.attr('placeholder') && $input.hasClass('placeholder')) { if ($input.data('placeholder-password')) { $input = $input.hide().next().show().attr('id', $input.removeAttr('id').data('placeholder-id')); // If `clearPlaceholder` was called from `$.valHooks.input.set` if (event === true) { return $input[0].value = value; } $input.focus(); } else { input.value = ''; $input.removeClass('placeholder'); input == document.activeElement && input.select(); } } } function setPlaceholder() { var $replacement, input = this, $input = $(input), $origInput = $input, id = this.id; if (input.value == '') { if (input.type == 'password') { if (!$input.data('placeholder-textinput')) { try { $replacement = $input.clone().attr({ 'type': 'text' }); } catch(e) { $replacement = $('<input>').attr($.extend(args(this), { 'type': 'text' })); } $replacement .removeAttr('name') .data({ 'placeholder-password': true, 'placeholder-id': id }) .bind('focus.placeholder', clearPlaceholder); $input .data({ 'placeholder-textinput': $replacement, 'placeholder-id': id }) .before($replacement); } $input = $input.removeAttr('id').hide().prev().attr('id', id).show(); // Note: `$input[0] != input` now! } $input.addClass('placeholder'); $input[0].value = $input.attr('placeholder'); } else { $input.removeClass('placeholder'); } } }(this, document, Foundation.zj));
bonbon197/jsdelivr
files/foundation/4.0.5/js/foundation/foundation.placeholder.js
JavaScript
mit
4,564
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // Because sometimes you need to style the cursor's line. // // Adds an option 'styleActiveLine' which, when enabled, gives the // active line's wrapping <div> the CSS class "CodeMirror-activeline", // and gives its background <div> the class "CodeMirror-activeline-background". (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; var WRAP_CLASS = "CodeMirror-activeline"; var BACK_CLASS = "CodeMirror-activeline-background"; CodeMirror.defineOption("styleActiveLine", false, function(cm, val, old) { var prev = old && old != CodeMirror.Init; if (val && !prev) { cm.state.activeLines = []; updateActiveLines(cm, cm.listSelections()); cm.on("beforeSelectionChange", selectionChange); } else if (!val && prev) { cm.off("beforeSelectionChange", selectionChange); clearActiveLines(cm); delete cm.state.activeLines; } }); function clearActiveLines(cm) { for (var i = 0; i < cm.state.activeLines.length; i++) { cm.removeLineClass(cm.state.activeLines[i], "wrap", WRAP_CLASS); cm.removeLineClass(cm.state.activeLines[i], "background", BACK_CLASS); } } function sameArray(a, b) { if (a.length != b.length) return false; for (var i = 0; i < a.length; i++) if (a[i] != b[i]) return false; return true; } function updateActiveLines(cm, ranges) { var active = []; for (var i = 0; i < ranges.length; i++) { var range = ranges[i]; if (!range.empty()) continue; var line = cm.getLineHandleVisualStart(range.head.line); if (active[active.length - 1] != line) active.push(line); } if (sameArray(cm.state.activeLines, active)) return; cm.operation(function() { clearActiveLines(cm); for (var i = 0; i < active.length; i++) { cm.addLineClass(active[i], "wrap", WRAP_CLASS); cm.addLineClass(active[i], "background", BACK_CLASS); } cm.state.activeLines = active; }); } function selectionChange(cm, sel) { updateActiveLines(cm, sel.ranges); } });
JimBobSquarePants/cdnjs
ajax/libs/codemirror/4.8.0/addon/selection/active-line.js
JavaScript
mit
2,442
/*globals Handlebars: true */ module base from "./handlebars/base"; // Each of these augment the Handlebars object. No need to setup here. // (This is done to easily share code between commonjs and browse envs) import SafeString from "./handlebars/safe-string"; import Exception from "./handlebars/exception"; module Utils from "./handlebars/utils"; module runtime from "./handlebars/runtime"; // For compatibility and usage outside of module systems, make the Handlebars object a namespace var create = function() { var hb = new base.HandlebarsEnvironment(); Utils.extend(hb, base); hb.SafeString = SafeString; hb.Exception = Exception; hb.Utils = Utils; hb.escapeExpression = Utils.escapeExpression; hb.VM = runtime; hb.template = function(spec) { return runtime.template(spec, hb); }; return hb; }; var Handlebars = create(); Handlebars.create = create; /*jshint -W040 */ /* istanbul ignore next */ var root = typeof global !== 'undefined' ? global : window, $Handlebars = root.Handlebars; /* istanbul ignore next */ Handlebars.noConflict = function() { if (root.Handlebars === Handlebars) { root.Handlebars = $Handlebars; } }; Handlebars['default'] = Handlebars; export default Handlebars;
PeterDulworth/stockSearch_meanjs
node_modules/karma-coverage/node_modules/istanbul/node_modules/handlebars/lib/handlebars.runtime.js
JavaScript
mit
1,239
// validate.js 0.1.1 // http://validatejs.org/ // (c) 2013 Wrapp // validate.js may be freely distributed under the MIT license. (function(a,b){"use strict";var c=function(a,b,c){var e,f,g,h,i,j,k,l={};c=c||{};for(e in b){j=a[e],k=d.result(b[e],j,a,e);for(h in k){if(g=d.validators[h],!g)throw f=d.format("Unknown validator %{name}",{name:h}),new Error(f);i=k[h],i=d.result(i,j,a,e),i&&(f=g.call(g,j,i,e,a),d.isString(f)&&(f=[f]),f&&f.length>0&&(l[e]=(l[e]||[]).concat(f)))}}for(e in l)return d.fullMessages(l,c)},d=c,e=this,f=e.XDate,g=/%\{([^\}]+)\}/g;d.extend=function(a){var b,c,d,e=[].slice.call(arguments,1);for(b=0;b<e.length;++b){d=e[b];for(c in d)a[c]=d[c]}return a},d.extend(c,{result:function(a){var b=[].slice.call(arguments,1);return"function"==typeof a&&(a=a.apply(null,b)),a},isNumber:function(a){return"number"==typeof a&&!isNaN(a)},isInteger:function(a){return d.isNumber(a)&&0===a%1},isObject:function(a){return a===Object(a)},isDefined:function(a){return null!==a&&void 0!==a},format:function(a,b){return a.replace(g,function(a,c){return String(b[c])})},prettify:function(a){return a.replace(/[_\-]/g," ").replace(/([a-z])([A-Z])/g,function(a,b,c){return""+b+" "+c.toLowerCase()}).toLowerCase()},isString:function(a){return"string"==typeof a},isArray:function(a){return"[object Array]"==={}.toString.call(a)},contains:function(a,b){var c;if(!d.isDefined(a))return!1;if(d.isArray(a)){if(a.indexOf(b))return-1!==a.indexOf(b);for(c=a.length-1;c>=0;--c)if(a[c]===b)return!0;return!1}return b in a},capitalize:function(a){return a?a[0].toUpperCase()+a.slice(1):a},fullMessages:function(a,b){b=b||{};var c,e,f,g=b.flatten?[]:{};if(!a)return g;for(c in a)for(e=0;e<a[c].length;++e)f=a[c][e],"^"===f[0]?f=f.slice(1):b.fullMessages!==!1&&(f=d.format("%{attr} %{message}",{attr:d.capitalize(d.prettify(c)),message:f})),f=f.replace(/\\\^/g,"^"),b.flatten?g.push(f):(g[c]||(g[c]=[])).push(f);return g}}),c.validators={presence:function(a,b){var c,e=b.message||"can't be blank";if(!d.isDefined(a))return e;if("string"==typeof a){if(/^\s*$/.test(a))return e}else if(d.isArray(a)){if(0===a.length)return e}else if(d.isObject(a)){for(c in a)return;return e}},length:function(a,b){if(d.isDefined(a)){var c,e=b.is,f=b.maximum,g=b.minimum,h=b.tokenizer||function(a){return a},i=[];return a=h(a),d.isNumber(e)&&a.length!==e&&(c=b.wrongLength||"is the wrong length (should be %{count} characters)",i.push(d.format(c,{count:e}))),d.isNumber(g)&&a.length<g&&(c=b.tooShort||"is too short (minimum is %{count} characters)",i.push(d.format(c,{count:g}))),d.isNumber(f)&&a.length>f&&(c=b.tooLong||"is too long (maximum is %{count} characters)",i.push(d.format(c,{count:f}))),i.length>0?b.message||i:void 0}},numericality:function(a,b){if(d.isDefined(a)){var c,e,f=[],g={greaterThan:function(a,b){return a>b},greaterThanOrEqualTo:function(a,b){return a>=b},equalTo:function(a,b){return a===b},lessThan:function(a,b){return b>a},lessThanOrEqualTo:function(a,b){return b>=a}};if(b.noStrings!==!0&&d.isString(a)&&(a=+a),!d.isNumber(a))return b.message||"is not a number";if(b.onlyInteger&&!d.isInteger(a))return b.message||"must be an integer";for(c in g)e=b[c],d.isNumber(e)&&!g[c](a,e)&&f.push(d.format("must be %{type} %{count}",{count:e,type:d.prettify(c)}));return b.odd&&1!==a%2&&f.push("must be odd"),b.even&&0!==a%2&&f.push("must be even"),f.length?b.message||f:void 0}},datetime:d.extend(function(a,b){if(d.isDefined(a)){var c,e=[],f=b.message,g=b.earliest?this.parse(b.earliest,b):0/0,h=b.latest?this.parse(b.latest,b):0/0;return a=this.parse(a,b),isNaN(a)||b.dateOnly&&0!==a%864e5?f||"must be a valid date":(!isNaN(g)&&g>a&&(c="must be no earlier than %{date}",c=d.format(c,{date:this.format(g,b)}),e.push(c)),!isNaN(h)&&a>h&&(c="must be no later than %{date}",c=d.format(c,{date:this.format(h,b)}),e.push(c)),e.length?b.message||e:void 0)}},{parse:function(a){return new f(a,!0).getTime()},format:function(a,b){var c=b.dateFormat||(b.dateOnly?"yyyy-MM-dd":"u");return new f(a,!0).toString(c)}}),date:function(a,b){return b=d.extend({},b,{onlyDate:!0}),d.validators.datetime(a,b)},format:function(a,b){(d.isString(b)||b instanceof RegExp)&&(b={pattern:b});var c,e=b.message||"is invalid",f=b.pattern;if(d.isDefined(a))return d.isString(a)?(d.isString(f)&&(f=new RegExp(b.pattern,b.flags)),c=f.exec(a),c&&c[0].length==a.length?void 0:e):e},inclusion:function(a,b){if(d.isArray(b)&&(b={within:b}),d.isDefined(a)&&!d.contains(b.within,a)){var c=b.message||"^%{value} is not included in the list";return d.format(c,{value:a})}},exclusion:function(a,b){if(d.isArray(b)&&(b={within:b}),d.isDefined(a)&&d.contains(b.within,a)){var c=b.message||"^%{value} is restricted";return d.format(c,{value:a})}}},a?(b&&b.exports&&(a=b.exports=c),a.validate=c):e.validate=c}).call(this,"undefined"!=typeof exports?exports:null,"undefined"!=typeof module?module:null); //# sourceMappingURL=validate.min.map
zhangbg/cdnjs
ajax/libs/validate.js/0.1.1/validate.min.js
JavaScript
mit
4,885
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojo.io.script"]){ dojo._hasResource["dojo.io.script"]=true; dojo.provide("dojo.io.script"); dojo.getObject("io",true,dojo); (function(){ var _1=dojo.isIE?"onreadystatechange":"load",_2=/complete|loaded/; dojo.io.script={get:function(_3){ var _4=this._makeScriptDeferred(_3); var _5=_4.ioArgs; dojo._ioAddQueryToUrl(_5); dojo._ioNotifyStart(_4); if(this._canAttach(_5)){ var _6=this.attach(_5.id,_5.url,_3.frameDoc); if(!_5.jsonp&&!_5.args.checkString){ var _7=dojo.connect(_6,_1,function(_8){ if(_8.type=="load"||_2.test(_6.readyState)){ dojo.disconnect(_7); _5.scriptLoaded=_8; } }); } } dojo._ioWatch(_4,this._validCheck,this._ioCheck,this._resHandle); return _4; },attach:function(id,_9,_a){ var _b=(_a||dojo.doc); var _c=_b.createElement("script"); _c.type="text/javascript"; _c.src=_9; _c.id=id; _c.charset="utf-8"; return _b.getElementsByTagName("head")[0].appendChild(_c); },remove:function(id,_d){ dojo.destroy(dojo.byId(id,_d)); if(this["jsonp_"+id]){ delete this["jsonp_"+id]; } },_makeScriptDeferred:function(_e){ var _f=dojo._ioSetArgs(_e,this._deferredCancel,this._deferredOk,this._deferredError); var _10=_f.ioArgs; _10.id=dojo._scopeName+"IoScript"+(this._counter++); _10.canDelete=false; _10.jsonp=_e.callbackParamName||_e.jsonp; if(_10.jsonp){ _10.query=_10.query||""; if(_10.query.length>0){ _10.query+="&"; } _10.query+=_10.jsonp+"="+(_e.frameDoc?"parent.":"")+dojo._scopeName+".io.script.jsonp_"+_10.id+"._jsonpCallback"; _10.frameDoc=_e.frameDoc; _10.canDelete=true; _f._jsonpCallback=this._jsonpCallback; this["jsonp_"+_10.id]=_f; } return _f; },_deferredCancel:function(dfd){ dfd.canceled=true; if(dfd.ioArgs.canDelete){ dojo.io.script._addDeadScript(dfd.ioArgs); } },_deferredOk:function(dfd){ var _11=dfd.ioArgs; if(_11.canDelete){ dojo.io.script._addDeadScript(_11); } return _11.json||_11.scriptLoaded||_11; },_deferredError:function(_12,dfd){ if(dfd.ioArgs.canDelete){ if(_12.dojoType=="timeout"){ dojo.io.script.remove(dfd.ioArgs.id,dfd.ioArgs.frameDoc); }else{ dojo.io.script._addDeadScript(dfd.ioArgs); } } return _12; },_deadScripts:[],_counter:1,_addDeadScript:function(_13){ dojo.io.script._deadScripts.push({id:_13.id,frameDoc:_13.frameDoc}); _13.frameDoc=null; },_validCheck:function(dfd){ var _14=dojo.io.script; var _15=_14._deadScripts; if(_15&&_15.length>0){ for(var i=0;i<_15.length;i++){ _14.remove(_15[i].id,_15[i].frameDoc); _15[i].frameDoc=null; } dojo.io.script._deadScripts=[]; } return true; },_ioCheck:function(dfd){ var _16=dfd.ioArgs; if(_16.json||(_16.scriptLoaded&&!_16.args.checkString)){ return true; } var _17=_16.args.checkString; if(_17&&eval("typeof("+_17+") != 'undefined'")){ return true; } return false; },_resHandle:function(dfd){ if(dojo.io.script._ioCheck(dfd)){ dfd.callback(dfd); }else{ dfd.errback(new Error("inconceivable dojo.io.script._resHandle error")); } },_canAttach:function(_18){ return true; },_jsonpCallback:function(_19){ this.ioArgs.json=_19; }}; })(); }
pombredanne/cdnjs
ajax/libs/dojo/1.6.1/io/script.js
JavaScript
mit
3,157
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-05-16 14:36:50 (f9be68accb407158ba2b1be2c226a6ce1f649314) */ /** * Polish Translations * By vbert 17-April-2007 * Updated by mmar 16-November-2007 * Encoding: utf-8 */ Ext.onReady(function() { if (Ext.Date) { Ext.Date.monthNames = ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"]; Ext.Date.getShortMonthName = function(month) { return Ext.Date.monthNames[month].substring(0, 3); }; Ext.Date.monthNumbers = { Sty: 0, Lut: 1, Mar: 2, Kwi: 3, Maj: 4, Cze: 5, Lip: 6, Sie: 7, Wrz: 8, Paź: 9, Lis: 10, Gru: 11 }; Ext.Date.getMonthNumber = function(name) { return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()]; }; Ext.Date.dayNames = ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota"]; Ext.Date.getShortDayName = function(day) { switch (day) { case 0: return 'ndz'; case 1: return 'pon'; case 2: return 'wt'; case 3: return 'śr'; case 4: return 'czw'; case 5: return 'pt'; case 6: return 'sob'; default: return ''; } }; } if (Ext.util && Ext.util.Format) { Ext.apply(Ext.util.Format, { thousandSeparator: '.', decimalSeparator: ',', currencySign: '\u007a\u0142', // Polish Zloty dateFormat: 'Y-m-d' }); } }); Ext.define("Ext.locale.pl.view.View", { override: "Ext.view.View", emptyText: "" }); Ext.define("Ext.locale.pl.grid.plugin.DragDrop", { override: "Ext.grid.plugin.DragDrop", dragText: "{0} wybrano wiersze(y)" }); Ext.define("Ext.locale.pl.tab.Tab", { override: "Ext.tab.Tab", closeText: "Zamknij zakładkę" }); Ext.define("Ext.locale.pl.form.field.Base", { override: "Ext.form.field.Base", invalidText: "Wartość tego pola jest niewłaściwa" }); // changing the msg text below will affect the LoadMask Ext.define("Ext.locale.pl.view.AbstractView", { override: "Ext.view.AbstractView", loadingText: "Wczytywanie danych..." }); Ext.define("Ext.locale.pl.picker.Date", { override: "Ext.picker.Date", startDay: 1, todayText: "Dzisiaj", minText: "Data jest wcześniejsza od daty minimalnej", maxText: "Data jest późniejsza od daty maksymalnej", disabledDaysText: "", disabledDatesText: "", nextText: "Następny miesiąc (Control+StrzałkaWPrawo)", prevText: "Poprzedni miesiąc (Control+StrzałkaWLewo)", monthYearText: "Wybierz miesiąc (Control+Up/Down aby zmienić rok)", todayTip: "{0} (Spacja)", format: "Y-m-d", startDay: 1 }); Ext.define("Ext.locale.pl.picker.Month", { override: "Ext.picker.Month", okText: "&#160;OK&#160;", cancelText: "Anuluj" }); Ext.define("Ext.locale.pl.toolbar.Paging", { override: "Ext.PagingToolbar", beforePageText: "Strona", afterPageText: "z {0}", firstText: "Pierwsza strona", prevText: "Poprzednia strona", nextText: "Następna strona", lastText: "Ostatnia strona", refreshText: "Odśwież", displayMsg: "Wyświetlono {0} - {1} z {2}", emptyMsg: "Brak danych do wyświetlenia" }); Ext.define("Ext.locale.pl.form.field.Text", { override: "Ext.form.field.Text", minLengthText: "Minimalna ilość znaków dla tego pola to {0}", maxLengthText: "Maksymalna ilość znaków dla tego pola to {0}", blankText: "To pole jest wymagane", regexText: "", emptyText: null }); Ext.define("Ext.locale.pl.form.field.Number", { override: "Ext.form.field.Number", minText: "Minimalna wartość dla tego pola to {0}", maxText: "Maksymalna wartość dla tego pola to {0}", nanText: "{0} to nie jest właściwa wartość" }); Ext.define("Ext.locale.pl.form.field.Date", { override: "Ext.form.field.Date", disabledDaysText: "Wyłączony", disabledDatesText: "Wyłączony", minText: "Data w tym polu musi być późniejsza od {0}", maxText: "Data w tym polu musi być wcześniejsza od {0}", invalidText: "{0} to nie jest prawidłowa data - prawidłowy format daty {1}", format: "Y-m-d", altFormats: "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d" }); Ext.define("Ext.locale.pl.form.field.ComboBox", { override: "Ext.form.field.ComboBox", valueNotFoundText: undefined }, function() { Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, { loadingText: "Wczytuję..." }); }); Ext.define("Ext.locale.pl.form.field.VTypes", { override: "Ext.form.field.VTypes", emailText: 'To pole wymaga podania adresu e-mail w formacie: "nazwa@domena.pl"', urlText: 'To pole wymaga podania adresu strony www w formacie: "http:/' + '/www.domena.pl"', alphaText: 'To pole wymaga podania tylko liter i _', alphanumText: 'To pole wymaga podania tylko liter, cyfr i _' }); Ext.define("Ext.locale.pl.form.field.HtmlEditor", { override: "Ext.form.field.HtmlEditor", createLinkText: 'Wprowadź adres URL strony:' }, function() { Ext.apply(Ext.form.field.HtmlEditor.prototype, { buttonTips: { bold: { title: 'Pogrubienie (Ctrl+B)', text: 'Ustaw styl zaznaczonego tekstu na pogrubiony.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, italic: { title: 'Kursywa (Ctrl+I)', text: 'Ustaw styl zaznaczonego tekstu na kursywę.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, underline: { title: 'Podkreślenie (Ctrl+U)', text: 'Podkreśl zaznaczony tekst.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, increasefontsize: { title: 'Zwiększ czcionkę', text: 'Zwiększ rozmiar czcionki.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, decreasefontsize: { title: 'Zmniejsz czcionkę', text: 'Zmniejsz rozmiar czcionki.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, backcolor: { title: 'Wyróżnienie', text: 'Zmień kolor wyróżnienia zaznaczonego tekstu.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, forecolor: { title: 'Kolor czcionki', text: 'Zmień kolor zaznaczonego tekstu.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, justifyleft: { title: 'Do lewej', text: 'Wyrównaj tekst do lewej.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, justifycenter: { title: 'Wyśrodkuj', text: 'Wyrównaj tekst do środka.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, justifyright: { title: 'Do prawej', text: 'Wyrównaj tekst do prawej.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, insertunorderedlist: { title: 'Lista wypunktowana', text: 'Rozpocznij listę wypunktowaną.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, insertorderedlist: { title: 'Lista numerowana', text: 'Rozpocznij listę numerowaną.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, createlink: { title: 'Hiperłącze', text: 'Przekształć zaznaczony tekst w hiperłącze.', cls: Ext.baseCSSPrefix + 'html-editor-tip' }, sourceedit: { title: 'Edycja źródła', text: 'Przełącz w tryb edycji źródła.', cls: Ext.baseCSSPrefix + 'html-editor-tip' } } }); }); Ext.define("Ext.locale.pl.grid.header.Container", { override: "Ext.grid.header.Container", sortAscText: "Sortuj rosnąco", sortDescText: "Sortuj malejąco", lockText: "Zablokuj kolumnę", unlockText: "Odblokuj kolumnę", columnsText: "Kolumny" }); Ext.define("Ext.locale.pl.grid.GroupingFeature", { override: "Ext.grid.GroupingFeature", emptyGroupText: '(None)', groupByText: 'Grupuj po tym polu', showGroupsText: 'Pokaż w grupach' }); Ext.define("Ext.locale.pl.grid.PropertyColumnModel", { override: "Ext.grid.PropertyColumnModel", nameText: "Nazwa", valueText: "Wartość", dateFormat: "Y-m-d" }); Ext.define("Ext.locale.pl.window.MessageBox", { override: "Ext.window.MessageBox", buttonText: { ok: "OK", cancel: "Anuluj", yes: "Tak", no: "Nie" } }); // This is needed until we can refactor all of the locales into individual files Ext.define("Ext.locale.pl.Component", { override: "Ext.Component" });
drewbaumann/cdnjs
ajax/libs/extjs/4.2.1/locale/ext-lang-pl.js
JavaScript
mit
10,099
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a.m.", "p.m." ], "DAY": [ "zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag" ], "ERANAMES": [ "voor Christus", "na Christus" ], "ERAS": [ "v.Chr.", "n.Chr." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december" ], "SHORTDAY": [ "zo", "ma", "di", "wo", "do", "vr", "za" ], "SHORTMONTH": [ "jan.", "feb.", "mrt.", "apr.", "mei", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec." ], "STANDALONEMONTH": [ "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd-MM-yy HH:mm", "shortDate": "dd-MM-yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Afl.", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4\u00a0-", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "nl-aw", "localeID": "nl_AW", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
petebacondarwin/angular.js
src/ngLocale/angular-locale_nl-aw.js
JavaScript
mit
2,744
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "ERANAMES": [ "avant J\u00e9sus-Christ", "apr\u00e8s J\u00e9sus-Christ" ], "ERAS": [ "av. J.-C.", "ap. J.-C." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "STANDALONEMONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ac", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-yt", "localeID": "fr_YT", "pluralCat": function(n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
wout/cdnjs
ajax/libs/angular-i18n/1.6.8/angular-locale_fr-yt.js
JavaScript
mit
2,459
// Load modules var Code = require('code'); var Hawk = require('../lib'); var Lab = require('lab'); var Package = require('../package.json'); // Declare internals var internals = {}; // Test shortcuts var lab = exports.lab = Lab.script(); var describe = lab.experiment; var it = lab.test; var expect = Code.expect; describe('Utils', function () { describe('parseHost()', function () { it('returns port 80 for non tls node request', function (done) { var req = { method: 'POST', url: '/resource/4?filter=a', headers: { host: 'example.com', 'content-type': 'text/plain;x=y' } }; expect(Hawk.utils.parseHost(req, 'Host').port).to.equal(80); done(); }); it('returns port 443 for non tls node request', function (done) { var req = { method: 'POST', url: '/resource/4?filter=a', headers: { host: 'example.com', 'content-type': 'text/plain;x=y' }, connection: { encrypted: true } }; expect(Hawk.utils.parseHost(req, 'Host').port).to.equal(443); done(); }); it('returns port 443 for non tls node request (IPv6)', function (done) { var req = { method: 'POST', url: '/resource/4?filter=a', headers: { host: '[123:123:123]', 'content-type': 'text/plain;x=y' }, connection: { encrypted: true } }; expect(Hawk.utils.parseHost(req, 'Host').port).to.equal(443); done(); }); it('parses IPv6 headers', function (done) { var req = { method: 'POST', url: '/resource/4?filter=a', headers: { host: '[123:123:123]:8000', 'content-type': 'text/plain;x=y' }, connection: { encrypted: true } }; var host = Hawk.utils.parseHost(req, 'Host'); expect(host.port).to.equal('8000'); expect(host.name).to.equal('[123:123:123]'); done(); }); }); describe('version()', function () { it('returns the correct package version number', function (done) { expect(Hawk.utils.version()).to.equal(Package.version); done(); }); }); describe('unauthorized()', function () { it('returns a hawk 401', function (done) { expect(Hawk.utils.unauthorized('kaboom').output.headers['WWW-Authenticate']).to.equal('Hawk error="kaboom"'); done(); }); it('supports attributes', function (done) { expect(Hawk.utils.unauthorized('kaboom', { a: 'b' }).output.headers['WWW-Authenticate']).to.equal('Hawk a="b", error="kaboom"'); done(); }); }); });
soltrinox/vator-api-serv
node_modules/grunt-docular/node_modules/docular-markdown-plugin/node_modules/request/node_modules/hawk/test/utils.js
JavaScript
mit
3,213
(function(a,b){jPlayerPlaylist=function(e,f,d){var c=this;this.current=0;this.loop=false;this.shuffled=false;this.removing=false;this.cssSelector=a.extend({},this._cssSelector,e);this.options=a.extend(true,{keyBindings:{next:{key:39,fn:function(){c.next()}},previous:{key:37,fn:function(){c.previous()}}}},this._options,d);this.playlist=[];this.original=[];this._initPlaylist(f);this.cssSelector.title=this.cssSelector.cssSelectorAncestor+" .jp-title";this.cssSelector.playlist=this.cssSelector.cssSelectorAncestor+" .jp-playlist";this.cssSelector.next=this.cssSelector.cssSelectorAncestor+" .jp-next";this.cssSelector.previous=this.cssSelector.cssSelectorAncestor+" .jp-previous";this.cssSelector.shuffle=this.cssSelector.cssSelectorAncestor+" .jp-shuffle";this.cssSelector.shuffleOff=this.cssSelector.cssSelectorAncestor+" .jp-shuffle-off";this.options.cssSelectorAncestor=this.cssSelector.cssSelectorAncestor;this.options.repeat=function(g){c.loop=g.jPlayer.options.loop};a(this.cssSelector.jPlayer).bind(a.jPlayer.event.ready,function(){c._init()});a(this.cssSelector.jPlayer).bind(a.jPlayer.event.ended,function(){c.next()});a(this.cssSelector.jPlayer).bind(a.jPlayer.event.play,function(){a(this).jPlayer("pauseOthers")});a(this.cssSelector.jPlayer).bind(a.jPlayer.event.resize,function(g){if(g.jPlayer.options.fullScreen){a(c.cssSelector.title).show()}else{a(c.cssSelector.title).hide()}});a(this.cssSelector.previous).click(function(){c.previous();a(this).blur();return false});a(this.cssSelector.next).click(function(){c.next();a(this).blur();return false});a(this.cssSelector.shuffle).click(function(){c.shuffle(true);return false});a(this.cssSelector.shuffleOff).click(function(){c.shuffle(false);return false}).hide();if(!this.options.fullScreen){a(this.cssSelector.title).hide()}a(this.cssSelector.playlist+" ul").empty();this._createItemHandlers();a(this.cssSelector.jPlayer).jPlayer(this.options)};jPlayerPlaylist.prototype={_cssSelector:{jPlayer:"#jquery_jplayer_1",cssSelectorAncestor:"#jp_container_1"},_options:{playlistOptions:{autoPlay:false,loopOnPrevious:false,shuffleOnLoop:true,enableRemoveControls:false,displayTime:"slow",addTime:"fast",removeTime:"fast",shuffleTime:"slow",itemClass:"jp-playlist-item",freeGroupClass:"jp-free-media",freeItemClass:"jp-playlist-item-free",removeItemClass:"jp-playlist-item-remove"}},option:function(c,d){if(d===b){return this.options.playlistOptions[c]}this.options.playlistOptions[c]=d;switch(c){case"enableRemoveControls":this._updateControls();break;case"itemClass":case"freeGroupClass":case"freeItemClass":case"removeItemClass":this._refresh(true);this._createItemHandlers();break}return this},_init:function(){var c=this;this._refresh(function(){if(c.options.playlistOptions.autoPlay){c.play(c.current)}else{c.select(c.current)}})},_initPlaylist:function(c){this.current=0;this.shuffled=false;this.removing=false;this.original=a.extend(true,[],c);this._originalPlaylist()},_originalPlaylist:function(){var c=this;this.playlist=[];a.each(this.original,function(d){c.playlist[d]=c.original[d]})},_refresh:function(d){var c=this;if(d&&!a.isFunction(d)){a(this.cssSelector.playlist+" ul").empty();a.each(this.playlist,function(f){a(c.cssSelector.playlist+" ul").append(c._createListItem(c.playlist[f]))});this._updateControls()}else{var e=a(this.cssSelector.playlist+" ul").children().length?this.options.playlistOptions.displayTime:0;a(this.cssSelector.playlist+" ul").slideUp(e,function(){var f=a(this);a(this).empty();a.each(c.playlist,function(g){f.append(c._createListItem(c.playlist[g]))});c._updateControls();if(a.isFunction(d)){d()}if(c.playlist.length){a(this).slideDown(c.options.playlistOptions.displayTime)}else{a(this).show()}})}},_createListItem:function(e){var c=this;var d="<li><div>";d+="<a href='javascript:;' class='"+this.options.playlistOptions.removeItemClass+"'>&times;</a>";if(e.free){var f=true;d+="<span class='"+this.options.playlistOptions.freeGroupClass+"'>(";a.each(e,function(h,g){if(a.jPlayer.prototype.format[h]){if(f){f=false}else{d+=" | "}d+="<a class='"+c.options.playlistOptions.freeItemClass+"' href='"+g+"' tabindex='1'>"+h+"</a>"}});d+=")</span>"}d+="<a href='javascript:;' class='"+this.options.playlistOptions.itemClass+"' tabindex='1'>"+e.title+(e.artist?" <span class='jp-artist'>by "+e.artist+"</span>":"")+"</a>";d+="</div></li>";return d},_createItemHandlers:function(){var c=this;a(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.itemClass).on("click","a."+this.options.playlistOptions.itemClass,function(){var d=a(this).parent().parent().index();if(c.current!==d){c.play(d)}else{a(c.cssSelector.jPlayer).jPlayer("play")}a(this).blur();return false});a(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.freeItemClass).on("click","a."+this.options.playlistOptions.freeItemClass,function(){a(this).parent().parent().find("."+c.options.playlistOptions.itemClass).click();a(this).blur();return false});a(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.removeItemClass).on("click","a."+this.options.playlistOptions.removeItemClass,function(){var d=a(this).parent().parent().index();c.remove(d);a(this).blur();return false})},_updateControls:function(){if(this.options.playlistOptions.enableRemoveControls){a(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).show()}else{a(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).hide()}if(this.shuffled){a(this.cssSelector.shuffleOff).show();a(this.cssSelector.shuffle).hide()}else{a(this.cssSelector.shuffleOff).hide();a(this.cssSelector.shuffle).show()}},_highlight:function(c){if(this.playlist.length&&c!==b){a(this.cssSelector.playlist+" .jp-playlist-current").removeClass("jp-playlist-current");a(this.cssSelector.playlist+" li:nth-child("+(c+1)+")").addClass("jp-playlist-current").find(".jp-playlist-item").addClass("jp-playlist-current");a(this.cssSelector.title+" li").html(this.playlist[c].title+(this.playlist[c].artist?" <span class='jp-artist'>by "+this.playlist[c].artist+"</span>":""))}},setPlaylist:function(c){this._initPlaylist(c);this._init()},add:function(c,d){a(this.cssSelector.playlist+" ul").append(this._createListItem(c)).find("li:last-child").hide().slideDown(this.options.playlistOptions.addTime);this._updateControls();this.original.push(c);this.playlist.push(c);if(d){this.play(this.playlist.length-1)}else{if(this.original.length===1){this.select(0)}}},remove:function(d){var c=this;if(d===b){this._initPlaylist([]);this._refresh(function(){a(c.cssSelector.jPlayer).jPlayer("clearMedia")});return true}else{if(this.removing){return false}else{d=(d<0)?c.original.length+d:d;if(0<=d&&d<this.playlist.length){this.removing=true;a(this.cssSelector.playlist+" li:nth-child("+(d+1)+")").slideUp(this.options.playlistOptions.removeTime,function(){a(this).remove();if(c.shuffled){var e=c.playlist[d];a.each(c.original,function(f){if(c.original[f]===e){c.original.splice(f,1);return false}});c.playlist.splice(d,1)}else{c.original.splice(d,1);c.playlist.splice(d,1)}if(c.original.length){if(d===c.current){c.current=(d<c.original.length)?c.current:c.original.length-1;c.select(c.current)}else{if(d<c.current){c.current--}}}else{a(c.cssSelector.jPlayer).jPlayer("clearMedia");c.current=0;c.shuffled=false;c._updateControls()}c.removing=false})}return true}}},select:function(c){c=(c<0)?this.original.length+c:c;if(0<=c&&c<this.playlist.length){this.current=c;this._highlight(c);a(this.cssSelector.jPlayer).jPlayer("setMedia",this.playlist[this.current])}else{this.current=0}},play:function(c){c=(c<0)?this.original.length+c:c;if(0<=c&&c<this.playlist.length){if(this.playlist.length){this.select(c);a(this.cssSelector.jPlayer).jPlayer("play")}}else{if(c===b){a(this.cssSelector.jPlayer).jPlayer("play")}}},pause:function(){a(this.cssSelector.jPlayer).jPlayer("pause")},next:function(){var c=(this.current+1<this.playlist.length)?this.current+1:0;if(this.loop){if(c===0&&this.shuffled&&this.options.playlistOptions.shuffleOnLoop&&this.playlist.length>1){this.shuffle(true,true)}else{this.play(c)}}else{if(c>0){this.play(c)}}},previous:function(){var c=(this.current-1>=0)?this.current-1:this.playlist.length-1;if(this.loop&&this.options.playlistOptions.loopOnPrevious||c<this.playlist.length-1){this.play(c)}},shuffle:function(c,e){var d=this;if(c===b){c=!this.shuffled}if(c||c!==this.shuffled){a(this.cssSelector.playlist+" ul").slideUp(this.options.playlistOptions.shuffleTime,function(){d.shuffled=c;if(c){d.playlist.sort(function(){return 0.5-Math.random()})}else{d._originalPlaylist()}d._refresh(true);if(e||!a(d.cssSelector.jPlayer).data("jPlayer").status.paused){d.play(0)}else{d.select(0)}a(this).slideDown(d.options.playlistOptions.shuffleTime)})}}}})(jQuery);
svenanders/cdnjs
ajax/libs/jplayer/2.5.4/add-on/jplayer.playlist.min.js
JavaScript
mit
8,763
var ctx = require('./_ctx') , invoke = require('./_invoke') , html = require('./_html') , cel = require('./_dom-create') , global = require('./_global') , process = global.process , setTask = global.setImmediate , clearTask = global.clearImmediate , MessageChannel = global.MessageChannel , counter = 0 , queue = {} , ONREADYSTATECHANGE = 'onreadystatechange' , defer, channel, port; var run = function(){ var id = +this; if(queue.hasOwnProperty(id)){ var fn = queue[id]; delete queue[id]; fn(); } }; var listener = function(event){ run.call(event.data); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: if(!setTask || !clearTask){ setTask = function setImmediate(fn){ var args = [], i = 1; while(arguments.length > i)args.push(arguments[i++]); queue[++counter] = function(){ invoke(typeof fn == 'function' ? fn : Function(fn), args); }; defer(counter); return counter; }; clearTask = function clearImmediate(id){ delete queue[id]; }; // Node.js 0.8- if(require('./_cof')(process) == 'process'){ defer = function(id){ process.nextTick(ctx(run, id, 1)); }; // Browsers with MessageChannel, includes WebWorkers } else if(MessageChannel){ channel = new MessageChannel; port = channel.port2; channel.port1.onmessage = listener; defer = ctx(port.postMessage, port, 1); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){ defer = function(id){ global.postMessage(id + '', '*'); }; global.addEventListener('message', listener, false); // IE8- } else if(ONREADYSTATECHANGE in cel('script')){ defer = function(id){ html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function(){ html.removeChild(this); run.call(id); }; }; // Rest old browsers } else { defer = function(id){ setTimeout(ctx(run, id, 1), 0); }; } } module.exports = { set: setTask, clear: clearTask };
akh000/YoutubeApp
node_modules/core-js/library/modules/_task.js
JavaScript
mit
2,276
.yui3-cssreset html{color:#000;background:#FFF}.yui3-cssreset body,.yui3-cssreset div,.yui3-cssreset dl,.yui3-cssreset dt,.yui3-cssreset dd,.yui3-cssreset ul,.yui3-cssreset ol,.yui3-cssreset li,.yui3-cssreset h1,.yui3-cssreset h2,.yui3-cssreset h3,.yui3-cssreset h4,.yui3-cssreset h5,.yui3-cssreset h6,.yui3-cssreset pre,.yui3-cssreset code,.yui3-cssreset form,.yui3-cssreset fieldset,.yui3-cssreset legend,.yui3-cssreset input,.yui3-cssreset textarea,.yui3-cssreset p,.yui3-cssreset blockquote,.yui3-cssreset th,.yui3-cssreset td{margin:0;padding:0}.yui3-cssreset table{border-collapse:collapse;border-spacing:0}.yui3-cssreset fieldset,.yui3-cssreset img{border:0}.yui3-cssreset address,.yui3-cssreset caption,.yui3-cssreset cite,.yui3-cssreset code,.yui3-cssreset dfn,.yui3-cssreset em,.yui3-cssreset strong,.yui3-cssreset th,.yui3-cssreset var{font-style:normal;font-weight:normal}.yui3-cssreset ol,.yui3-cssreset ul{list-style:none}.yui3-cssreset caption,.yui3-cssreset th{text-align:left}.yui3-cssreset h1,.yui3-cssreset h2,.yui3-cssreset h3,.yui3-cssreset h4,.yui3-cssreset h5,.yui3-cssreset h6{font-size:100%;font-weight:normal}.yui3-cssreset q:before,.yui3-cssreset q:after{content:''}.yui3-cssreset abbr,.yui3-cssreset acronym{border:0;font-variant:normal}.yui3-cssreset sup{vertical-align:text-top}.yui3-cssreset sub{vertical-align:text-bottom}.yui3-cssreset input,.yui3-cssreset textarea,.yui3-cssreset select{font-family:inherit;font-size:inherit;font-weight:inherit}.yui3-cssreset input,.yui3-cssreset textarea,.yui3-cssreset select{*font-size:100%}.yui3-cssreset legend{color:#000}#yui3-css-stamp.cssreset-context{display:none}
joseluisq/cdnjs
ajax/libs/yui/3.9.1/cssreset-context/reset-context-min.css
CSS
mit
1,641
.yui3-cssbase h1{font-size:138.5%}.yui3-cssbase h2{font-size:123.1%}.yui3-cssbase h3{font-size:108%}.yui3-cssbase h1,.yui3-cssbase h2,.yui3-cssbase h3{margin:1em 0}.yui3-cssbase h1,.yui3-cssbase h2,.yui3-cssbase h3,.yui3-cssbase h4,.yui3-cssbase h5,.yui3-cssbase h6,.yui3-cssbase strong{font-weight:bold}.yui3-cssbase abbr,.yui3-cssbase acronym{border-bottom:1px dotted #000;cursor:help}.yui3-cssbase em{font-style:italic}.yui3-cssbase blockquote,.yui3-cssbase ul,.yui3-cssbase ol,.yui3-cssbase dl{margin:1em}.yui3-cssbase ol,.yui3-cssbase ul,.yui3-cssbase dl{margin-left:2em}.yui3-cssbase ol{list-style:decimal outside}.yui3-cssbase ul{list-style:disc outside}.yui3-cssbase dl dd{margin-left:1em}.yui3-cssbase th,.yui3-cssbase td{border:1px solid #000;padding:.5em}.yui3-cssbase th{font-weight:bold;text-align:center}.yui3-cssbase caption{margin-bottom:.5em;text-align:center}.yui3-cssbase p,.yui3-cssbase fieldset,.yui3-cssbase table,.yui3-cssbase pre{margin-bottom:1em}.yui3-cssbase input[type=text],.yui3-cssbase input[type=password],.yui3-cssbase textarea{width:12.25em;*width:11.9em}#yui3-css-stamp.cssbase-context{display:none}
idleberg/cdnjs
ajax/libs/yui/3.10.1/cssbase-context/base-context-min.css
CSS
mit
1,134
define(function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var lang = require("../lib/lang"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules; var VelocityHighlightRules = function() { HtmlHighlightRules.call(this); var builtinConstants = lang.arrayToMap( ('true|false|null').split('|') ); var builtinFunctions = lang.arrayToMap( ("_DateTool|_DisplayTool|_EscapeTool|_FieldTool|_MathTool|_NumberTool|_SerializerTool|_SortTool|_StringTool|_XPathTool").split('|') ); var builtinVariables = lang.arrayToMap( ('$contentRoot|$foreach').split('|') ); var keywords = lang.arrayToMap( ("#set|#macro|#include|#parse|" + "#if|#elseif|#else|#foreach|" + "#break|#end|#stop" ).split('|') ); // regexp must not have capturing parentheses. Use (?:) instead. // regexps are ordered -> the first match is used this.$rules.start.push( { token : "comment", regex : "##.*$" },{ token : "comment.block", // multi line comment regex : "#\\*", next : "vm_comment" }, { token : "string.regexp", regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)" }, { token : "string", // single line regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' }, { token : "string", // single line regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" }, { token : "constant.numeric", // hex regex : "0[xX][0-9a-fA-F]+\\b" }, { token : "constant.numeric", // float regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" }, { token : "constant.language.boolean", regex : "(?:true|false)\\b" }, { token : function(value) { if (keywords.hasOwnProperty(value)) return "keyword"; else if (builtinConstants.hasOwnProperty(value)) return "constant.language"; else if (builtinVariables.hasOwnProperty(value)) return "variable.language"; else if (builtinFunctions.hasOwnProperty(value) || builtinFunctions.hasOwnProperty(value.substring(1))) return "support.function"; else if (value == "debugger") return "invalid.deprecated"; else if(value.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*)$/)) return "variable"; return "identifier"; }, // TODO: Unicode escape sequences // TODO: Unicode identifiers regex : "[a-zA-Z$#][a-zA-Z0-9_]*\\b" }, { token : "keyword.operator", regex : "!|&|\\*|\\-|\\+|=|!=|<=|>=|<|>|&&|\\|\\|" }, { token : "lparen", regex : "[[({]" }, { token : "rparen", regex : "[\\])}]" }, { token : "text", regex : "\\s+" } ); this.$rules["vm_comment"] = [ { token : "comment", // closing comment regex : "\\*#|-->", next : "start" }, { defaultToken: "comment" } ]; this.$rules["vm_start"] = [ { token: "variable", regex: "}", next: "pop" }, { token : "string.regexp", regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)" }, { token : "string", // single line regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' }, { token : "string", // single line regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" }, { token : "constant.numeric", // hex regex : "0[xX][0-9a-fA-F]+\\b" }, { token : "constant.numeric", // float regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" }, { token : "constant.language.boolean", regex : "(?:true|false)\\b" }, { token : function(value) { if (keywords.hasOwnProperty(value)) return "keyword"; else if (builtinConstants.hasOwnProperty(value)) return "constant.language"; else if (builtinVariables.hasOwnProperty(value)) return "variable.language"; else if (builtinFunctions.hasOwnProperty(value) || builtinFunctions.hasOwnProperty(value.substring(1))) return "support.function"; else if (value == "debugger") return "invalid.deprecated"; else if(value.match(/^(\$[a-zA-Z_$][a-zA-Z0-9_]*)$/)) return "variable"; return "identifier"; }, // TODO: Unicode escape sequences // TODO: Unicode identifiers regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" }, { token : "keyword.operator", regex : "!|&|\\*|\\-|\\+|=|!=|<=|>=|<|>|&&|\\|\\|" }, { token : "lparen", regex : "[[({]" }, { token : "rparen", regex : "[\\])}]" }, { token : "text", regex : "\\s+" } ]; for (var i in this.$rules) { this.$rules[i].unshift({ token: "variable", regex: "\\${", push: "vm_start" }); } this.normalizeRules(); }; oop.inherits(VelocityHighlightRules, TextHighlightRules); exports.VelocityHighlightRules = VelocityHighlightRules; });
dometto/gollum
lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/velocity_highlight_rules.js
JavaScript
mit
5,966
/// <reference path="angular-growl-v2.d.ts" /> var app = angular.module("ag", ["pascalprecht.translate", "$httpProvider"]); app.config((growlProvider:angular.growl.IGrowlProvider, $httpProvider:angular.IHttpProvider) => { var ttl:angular.growl.IGrowlTTLConfig = { success: 5000, error: 4000 }; growlProvider.globalTimeToLive(ttl); growlProvider.globalTimeToLive(5000); growlProvider.globalDisableCloseButton(true); growlProvider.globalDisableIcons(true); growlProvider.globalReversedOrder(false); growlProvider.globalDisableCountDown(true); growlProvider.messageVariableKey("someKey"); growlProvider.globalInlineMessages(false); growlProvider.globalPosition("top-center"); growlProvider.messagesKey("someKey"); growlProvider.messageTextKey("someKey"); growlProvider.messageTitleKey("someKey"); growlProvider.messageSeverityKey("someKey"); growlProvider.onlyUniqueMessages(false); $httpProvider.interceptors.push(growlProvider.serverMessagesInterceptor); }); app.controller("Ctrl", ($scope:angular.IScope, growl:angular.growl.IGrowlService) => { var config:angular.growl.IGrowlMessageConfig = { ttl: 5000, disableCountDown: true, disableCloseButton: true }; var message = "Some message"; growl.warning(message); growl.warning(message, config); growl.error(message); growl.error(message, config); growl.info(message); growl.info(message, config); growl.success(message); growl.success(message, config); growl.general(message); growl.general(message, config); growl.general(message, config, "error"); growl.onlyUnique(); growl.reverseOrder(); growl.inlineMessages(); growl.position(); });
zalamtech/DefinitelyTyped
angular-growl-v2/angular-growl-v2-test.ts
TypeScript
mit
1,826
/*! noUiSlider - 7.0.10 - 2014-12-27 14:50:46 */ (function(){ 'use strict'; var /** @const */ FormatOptions = [ 'decimals', 'thousand', 'mark', 'prefix', 'postfix', 'encoder', 'decoder', 'negativeBefore', 'negative', 'edit', 'undo' ]; // General // Reverse a string function strReverse ( a ) { return a.split('').reverse().join(''); } // Check if a string starts with a specified prefix. function strStartsWith ( input, match ) { return input.substring(0, match.length) === match; } // Check is a string ends in a specified postfix. function strEndsWith ( input, match ) { return input.slice(-1 * match.length) === match; } // Throw an error if formatting options are incompatible. function throwEqualError( F, a, b ) { if ( (F[a] || F[b]) && (F[a] === F[b]) ) { throw new Error(a); } } // Check if a number is finite and not NaN function isValidNumber ( input ) { return typeof input === 'number' && isFinite( input ); } // Provide rounding-accurate toFixed method. function toFixed ( value, decimals ) { var scale = Math.pow(10, decimals); return ( Math.round(value * scale) / scale).toFixed( decimals ); } // Formatting // Accept a number as input, output formatted string. function formatTo ( decimals, thousand, mark, prefix, postfix, encoder, decoder, negativeBefore, negative, edit, undo, input ) { var originalInput = input, inputIsNegative, inputPieces, inputBase, inputDecimals = '', output = ''; // Apply user encoder to the input. // Expected outcome: number. if ( encoder ) { input = encoder(input); } // Stop if no valid number was provided, the number is infinite or NaN. if ( !isValidNumber(input) ) { return false; } // Rounding away decimals might cause a value of -0 // when using very small ranges. Remove those cases. if ( decimals !== false && parseFloat(input.toFixed(decimals)) === 0 ) { input = 0; } // Formatting is done on absolute numbers, // decorated by an optional negative symbol. if ( input < 0 ) { inputIsNegative = true; input = Math.abs(input); } // Reduce the number of decimals to the specified option. if ( decimals !== false ) { input = toFixed( input, decimals ); } // Transform the number into a string, so it can be split. input = input.toString(); // Break the number on the decimal separator. if ( input.indexOf('.') !== -1 ) { inputPieces = input.split('.'); inputBase = inputPieces[0]; if ( mark ) { inputDecimals = mark + inputPieces[1]; } } else { // If it isn't split, the entire number will do. inputBase = input; } // Group numbers in sets of three. if ( thousand ) { inputBase = strReverse(inputBase).match(/.{1,3}/g); inputBase = strReverse(inputBase.join( strReverse( thousand ) )); } // If the number is negative, prefix with negation symbol. if ( inputIsNegative && negativeBefore ) { output += negativeBefore; } // Prefix the number if ( prefix ) { output += prefix; } // Normal negative option comes after the prefix. Defaults to '-'. if ( inputIsNegative && negative ) { output += negative; } // Append the actual number. output += inputBase; output += inputDecimals; // Apply the postfix. if ( postfix ) { output += postfix; } // Run the output through a user-specified post-formatter. if ( edit ) { output = edit ( output, originalInput ); } // All done. return output; } // Accept a sting as input, output decoded number. function formatFrom ( decimals, thousand, mark, prefix, postfix, encoder, decoder, negativeBefore, negative, edit, undo, input ) { var originalInput = input, inputIsNegative, output = ''; // User defined pre-decoder. Result must be a non empty string. if ( undo ) { input = undo(input); } // Test the input. Can't be empty. if ( !input || typeof input !== 'string' ) { return false; } // If the string starts with the negativeBefore value: remove it. // Remember is was there, the number is negative. if ( negativeBefore && strStartsWith(input, negativeBefore) ) { input = input.replace(negativeBefore, ''); inputIsNegative = true; } // Repeat the same procedure for the prefix. if ( prefix && strStartsWith(input, prefix) ) { input = input.replace(prefix, ''); } // And again for negative. if ( negative && strStartsWith(input, negative) ) { input = input.replace(negative, ''); inputIsNegative = true; } // Remove the postfix. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice if ( postfix && strEndsWith(input, postfix) ) { input = input.slice(0, -1 * postfix.length); } // Remove the thousand grouping. if ( thousand ) { input = input.split(thousand).join(''); } // Set the decimal separator back to period. if ( mark ) { input = input.replace(mark, '.'); } // Prepend the negative symbol. if ( inputIsNegative ) { output += '-'; } // Add the number output += input; // Trim all non-numeric characters (allow '.' and '-'); output = output.replace(/[^0-9\.\-.]/g, ''); // The value contains no parse-able number. if ( output === '' ) { return false; } // Covert to number. output = Number(output); // Run the user-specified post-decoder. if ( decoder ) { output = decoder(output); } // Check is the output is valid, otherwise: return false. if ( !isValidNumber(output) ) { return false; } return output; } // Framework // Validate formatting options function validate ( inputOptions ) { var i, optionName, optionValue, filteredOptions = {}; for ( i = 0; i < FormatOptions.length; i+=1 ) { optionName = FormatOptions[i]; optionValue = inputOptions[optionName]; if ( optionValue === undefined ) { // Only default if negativeBefore isn't set. if ( optionName === 'negative' && !filteredOptions.negativeBefore ) { filteredOptions[optionName] = '-'; // Don't set a default for mark when 'thousand' is set. } else if ( optionName === 'mark' && filteredOptions.thousand !== '.' ) { filteredOptions[optionName] = '.'; } else { filteredOptions[optionName] = false; } // Floating points in JS are stable up to 7 decimals. } else if ( optionName === 'decimals' ) { if ( optionValue >= 0 && optionValue < 8 ) { filteredOptions[optionName] = optionValue; } else { throw new Error(optionName); } // These options, when provided, must be functions. } else if ( optionName === 'encoder' || optionName === 'decoder' || optionName === 'edit' || optionName === 'undo' ) { if ( typeof optionValue === 'function' ) { filteredOptions[optionName] = optionValue; } else { throw new Error(optionName); } // Other options are strings. } else { if ( typeof optionValue === 'string' ) { filteredOptions[optionName] = optionValue; } else { throw new Error(optionName); } } } // Some values can't be extracted from a // string if certain combinations are present. throwEqualError(filteredOptions, 'mark', 'thousand'); throwEqualError(filteredOptions, 'prefix', 'negative'); throwEqualError(filteredOptions, 'prefix', 'negativeBefore'); return filteredOptions; } // Pass all options as function arguments function passAll ( options, method, input ) { var i, args = []; // Add all options in order of FormatOptions for ( i = 0; i < FormatOptions.length; i+=1 ) { args.push(options[FormatOptions[i]]); } // Append the input, then call the method, presenting all // options as arguments. args.push(input); return method.apply('', args); } /** @constructor */ function wNumb ( options ) { if ( !(this instanceof wNumb) ) { return new wNumb ( options ); } if ( typeof options !== "object" ) { return; } options = validate(options); // Call 'formatTo' with proper arguments. this.to = function ( input ) { return passAll(options, formatTo, input); }; // Call 'formatFrom' with proper arguments. this.from = function ( input ) { return passAll(options, formatFrom, input); }; } /** @export */ window.wNumb = wNumb; }()); /*jslint browser: true */ /*jslint white: true */ (function( $ ){ 'use strict'; // Helpers // Test in an object is an instance of jQuery or Zepto. function isInstance ( a ) { return a instanceof $ || ( $.zepto && $.zepto.isZ(a) ); } // Link types function fromPrefix ( target, method ) { // If target is a string, a new hidden input will be created. if ( typeof target === 'string' && target.indexOf('-inline-') === 0 ) { // By default, use the 'html' method. this.method = method || 'html'; // Use jQuery to create the element this.target = this.el = $( target.replace('-inline-', '') || '<div/>' ); return true; } } function fromString ( target ) { // If the string doesn't begin with '-', which is reserved, add a new hidden input. if ( typeof target === 'string' && target.indexOf('-') !== 0 ) { this.method = 'val'; var element = document.createElement('input'); element.name = target; element.type = 'hidden'; this.target = this.el = $(element); return true; } } function fromFunction ( target ) { // The target can also be a function, which will be called. if ( typeof target === 'function' ) { this.target = false; this.method = target; return true; } } function fromInstance ( target, method ) { if ( isInstance( target ) && !method ) { // If a jQuery/Zepto input element is provided, but no method is set, // the element can assume it needs to respond to 'change'... if ( target.is('input, select, textarea') ) { // Default to .val if this is an input element. this.method = 'val'; // Fire the API changehandler when the target changes. this.target = target.on('change.liblink', this.changeHandler); } else { this.target = target; // If no method is set, and we are not auto-binding an input, default to 'html'. this.method = 'html'; } return true; } } function fromInstanceMethod ( target, method ) { // The method must exist on the element. if ( isInstance( target ) && (typeof method === 'function' || (typeof method === 'string' && target[method])) ) { this.method = method; this.target = target; return true; } } var /** @const */ creationFunctions = [fromPrefix, fromString, fromFunction, fromInstance, fromInstanceMethod]; // Link Instance /** @constructor */ function Link ( target, method, format ) { var that = this, valid = false; // Forward calls within scope. this.changeHandler = function ( changeEvent ) { var decodedValue = that.formatInstance.from( $(this).val() ); // If the value is invalid, stop this event, as well as it's propagation. if ( decodedValue === false || isNaN(decodedValue) ) { // Reset the value. $(this).val(that.lastSetValue); return false; } that.changeHandlerMethod.call( '', changeEvent, decodedValue ); }; // See if this Link needs individual targets based on its usage. // If so, return the element that needs to be copied by the // implementing interface. // Default the element to false. this.el = false; // Store the formatter, or use the default. this.formatInstance = format; // Try all Link types. /*jslint unparam: true*/ $.each(creationFunctions, function(i, fn){ valid = fn.call(that, target, method); return !valid; }); /*jslint unparam: false*/ // Nothing matched, throw error. if ( !valid ) { throw new RangeError("(Link) Invalid Link."); } } // Provides external items with the object value. Link.prototype.set = function ( value ) { // Ignore the value, so only the passed-on arguments remain. var args = Array.prototype.slice.call( arguments ), additionalArgs = args.slice(1); // Store some values. The actual, numerical value, // the formatted value and the parameters for use in 'resetValue'. // Slice additionalArgs to break the relation. this.lastSetValue = this.formatInstance.to( value ); // Prepend the value to the function arguments. additionalArgs.unshift( this.lastSetValue ); // When target is undefined, the target was a function. // In that case, provided the object as the calling scope. // Branch between writing to a function or an object. ( typeof this.method === 'function' ? this.method : this.target[ this.method ] ).apply( this.target, additionalArgs ); }; // Developer API /** @constructor */ function LinkAPI ( origin ) { this.items = []; this.elements = []; this.origin = origin; } LinkAPI.prototype.push = function( item, element ) { this.items.push(item); // Prevent 'false' elements if ( element ) { this.elements.push(element); } }; LinkAPI.prototype.reconfirm = function ( flag ) { var i; for ( i = 0; i < this.elements.length; i += 1 ) { this.origin.LinkConfirm(flag, this.elements[i]); } }; LinkAPI.prototype.remove = function ( flag ) { var i; for ( i = 0; i < this.items.length; i += 1 ) { this.items[i].target.off('.liblink'); } for ( i = 0; i < this.elements.length; i += 1 ) { this.elements[i].remove(); } }; LinkAPI.prototype.change = function ( value ) { if ( this.origin.LinkIsEmitting ) { return false; } this.origin.LinkIsEmitting = true; var args = Array.prototype.slice.call( arguments, 1 ), i; args.unshift( value ); // Write values to serialization Links. // Convert the value to the correct relative representation. for ( i = 0; i < this.items.length; i += 1 ) { this.items[i].set.apply(this.items[i], args); } this.origin.LinkIsEmitting = false; }; // jQuery plugin function binder ( flag, target, method, format ){ if ( flag === 0 ) { flag = this.LinkDefaultFlag; } // Create a list of API's (if it didn't exist yet); if ( !this.linkAPI ) { this.linkAPI = {}; } // Add an API point. if ( !this.linkAPI[flag] ) { this.linkAPI[flag] = new LinkAPI(this); } var linkInstance = new Link ( target, method, format || this.LinkDefaultFormatter ); // Default the calling scope to the linked object. if ( !linkInstance.target ) { linkInstance.target = $(this); } // If the Link requires creation of a new element, // Pass the element and request confirmation to get the changehandler. // Set the method to be called when a Link changes. linkInstance.changeHandlerMethod = this.LinkConfirm( flag, linkInstance.el ); // Store the linkInstance in the flagged list. this.linkAPI[flag].push( linkInstance, linkInstance.el ); // Now that Link have been connected, request an update. this.LinkUpdate( flag ); } /** @export */ $.fn.Link = function( flag ){ var that = this; // Delete all linkAPI if ( flag === false ) { return that.each(function(){ // .Link(false) can be called on elements without Links. // When that happens, the objects can't be looped. if ( !this.linkAPI ) { return; } $.map(this.linkAPI, function(api){ api.remove(); }); delete this.linkAPI; }); } if ( flag === undefined ) { flag = 0; } else if ( typeof flag !== 'string') { throw new Error("Flag must be string."); } return { to: function( a, b, c ){ return that.each(function(){ binder.call(this, flag, a, b, c); }); } }; }; }( window.jQuery || window.Zepto )); /*jslint browser: true */ /*jslint white: true */ (function( $ ){ 'use strict'; // Removes duplicates from an array. function unique(array) { return $.grep(array, function(el, index) { return index === $.inArray(el, array); }); } // Round a value to the closest 'to'. function closest ( value, to ) { return Math.round(value / to) * to; } // Checks whether a value is numerical. function isNumeric ( a ) { return typeof a === 'number' && !isNaN( a ) && isFinite( a ); } // Rounds a number to 7 supported decimals. function accurateNumber( number ) { var p = Math.pow(10, 7); return Number((Math.round(number*p)/p).toFixed(7)); } // Sets a class and removes it after [duration] ms. function addClassFor ( element, className, duration ) { element.addClass(className); setTimeout(function(){ element.removeClass(className); }, duration); } // Limits a value to 0 - 100 function limit ( a ) { return Math.max(Math.min(a, 100), 0); } // Wraps a variable as an array, if it isn't one yet. function asArray ( a ) { return $.isArray(a) ? a : [a]; } // Counts decimals function countDecimals ( numStr ) { var pieces = numStr.split("."); return pieces.length > 1 ? pieces[1].length : 0; } var // Cache the document selector; /** @const */ doc = $(document), // Make a backup of the original jQuery/Zepto .val() method. /** @const */ $val = $.fn.val, // Namespace for binding and unbinding slider events; /** @const */ namespace = '.nui', // Determine the events to bind. IE11 implements pointerEvents without // a prefix, which breaks compatibility with the IE10 implementation. /** @const */ actions = window.navigator.pointerEnabled ? { start: 'pointerdown', move: 'pointermove', end: 'pointerup' } : window.navigator.msPointerEnabled ? { start: 'MSPointerDown', move: 'MSPointerMove', end: 'MSPointerUp' } : { start: 'mousedown touchstart', move: 'mousemove touchmove', end: 'mouseup touchend' }, // Re-usable list of classes; /** @const */ Classes = [ /* 0 */ 'noUi-target' /* 1 */ ,'noUi-base' /* 2 */ ,'noUi-origin' /* 3 */ ,'noUi-handle' /* 4 */ ,'noUi-horizontal' /* 5 */ ,'noUi-vertical' /* 6 */ ,'noUi-background' /* 7 */ ,'noUi-connect' /* 8 */ ,'noUi-ltr' /* 9 */ ,'noUi-rtl' /* 10 */ ,'noUi-dragable' /* 11 */ ,'' /* 12 */ ,'noUi-state-drag' /* 13 */ ,'' /* 14 */ ,'noUi-state-tap' /* 15 */ ,'noUi-active' /* 16 */ ,'' /* 17 */ ,'noUi-stacking' ]; // Value calculation // Determine the size of a sub-range in relation to a full range. function subRangeRatio ( pa, pb ) { return (100 / (pb - pa)); } // (percentage) How many percent is this value of this range? function fromPercentage ( range, value ) { return (value * 100) / ( range[1] - range[0] ); } // (percentage) Where is this value on this range? function toPercentage ( range, value ) { return fromPercentage( range, range[0] < 0 ? value + Math.abs(range[0]) : value - range[0] ); } // (value) How much is this percentage on this range? function isPercentage ( range, value ) { return ((value * ( range[1] - range[0] )) / 100) + range[0]; } // Range conversion function getJ ( value, arr ) { var j = 1; while ( value >= arr[j] ){ j += 1; } return j; } // (percentage) Input a value, find where, on a scale of 0-100, it applies. function toStepping ( xVal, xPct, value ) { if ( value >= xVal.slice(-1)[0] ){ return 100; } var j = getJ( value, xVal ), va, vb, pa, pb; va = xVal[j-1]; vb = xVal[j]; pa = xPct[j-1]; pb = xPct[j]; return pa + (toPercentage([va, vb], value) / subRangeRatio (pa, pb)); } // (value) Input a percentage, find where it is on the specified range. function fromStepping ( xVal, xPct, value ) { // There is no range group that fits 100 if ( value >= 100 ){ return xVal.slice(-1)[0]; } var j = getJ( value, xPct ), va, vb, pa, pb; va = xVal[j-1]; vb = xVal[j]; pa = xPct[j-1]; pb = xPct[j]; return isPercentage([va, vb], (value - pa) * subRangeRatio (pa, pb)); } // (percentage) Get the step that applies at a certain value. function getStep ( xPct, xSteps, snap, value ) { if ( value === 100 ) { return value; } var j = getJ( value, xPct ), a, b; // If 'snap' is set, steps are used as fixed points on the slider. if ( snap ) { a = xPct[j-1]; b = xPct[j]; // Find the closest position, a or b. if ((value - a) > ((b-a)/2)){ return b; } return a; } if ( !xSteps[j-1] ){ return value; } return xPct[j-1] + closest( value - xPct[j-1], xSteps[j-1] ); } // Entry parsing function handleEntryPoint ( index, value, that ) { var percentage; // Wrap numerical input in an array. if ( typeof value === "number" ) { value = [value]; } // Reject any invalid input, by testing whether value is an array. if ( Object.prototype.toString.call( value ) !== '[object Array]' ){ throw new Error("noUiSlider: 'range' contains invalid value."); } // Covert min/max syntax to 0 and 100. if ( index === 'min' ) { percentage = 0; } else if ( index === 'max' ) { percentage = 100; } else { percentage = parseFloat( index ); } // Check for correct input. if ( !isNumeric( percentage ) || !isNumeric( value[0] ) ) { throw new Error("noUiSlider: 'range' value isn't numeric."); } // Store values. that.xPct.push( percentage ); that.xVal.push( value[0] ); // NaN will evaluate to false too, but to keep // logging clear, set step explicitly. Make sure // not to override the 'step' setting with false. if ( !percentage ) { if ( !isNaN( value[1] ) ) { that.xSteps[0] = value[1]; } } else { that.xSteps.push( isNaN(value[1]) ? false : value[1] ); } } function handleStepPoint ( i, n, that ) { // Ignore 'false' stepping. if ( !n ) { return true; } // Factor to range ratio that.xSteps[i] = fromPercentage([ that.xVal[i] ,that.xVal[i+1] ], n) / subRangeRatio ( that.xPct[i], that.xPct[i+1] ); } // Interface // The interface to Spectrum handles all direction-based // conversions, so the above values are unaware. function Spectrum ( entry, snap, direction, singleStep ) { this.xPct = []; this.xVal = []; this.xSteps = [ singleStep || false ]; this.xNumSteps = [ false ]; this.snap = snap; this.direction = direction; var index, ordered = [ /* [0, 'min'], [1, '50%'], [2, 'max'] */ ]; // Map the object keys to an array. for ( index in entry ) { if ( entry.hasOwnProperty(index) ) { ordered.push([entry[index], index]); } } // Sort all entries by value (numeric sort). ordered.sort(function(a, b) { return a[0] - b[0]; }); // Convert all entries to subranges. for ( index = 0; index < ordered.length; index++ ) { handleEntryPoint(ordered[index][1], ordered[index][0], this); } // Store the actual step values. // xSteps is sorted in the same order as xPct and xVal. this.xNumSteps = this.xSteps.slice(0); // Convert all numeric steps to the percentage of the subrange they represent. for ( index = 0; index < this.xNumSteps.length; index++ ) { handleStepPoint(index, this.xNumSteps[index], this); } } Spectrum.prototype.getMargin = function ( value ) { return this.xPct.length === 2 ? fromPercentage(this.xVal, value) : false; }; Spectrum.prototype.toStepping = function ( value ) { value = toStepping( this.xVal, this.xPct, value ); // Invert the value if this is a right-to-left slider. if ( this.direction ) { value = 100 - value; } return value; }; Spectrum.prototype.fromStepping = function ( value ) { // Invert the value if this is a right-to-left slider. if ( this.direction ) { value = 100 - value; } return accurateNumber(fromStepping( this.xVal, this.xPct, value )); }; Spectrum.prototype.getStep = function ( value ) { // Find the proper step for rtl sliders by search in inverse direction. // Fixes issue #262. if ( this.direction ) { value = 100 - value; } value = getStep(this.xPct, this.xSteps, this.snap, value ); if ( this.direction ) { value = 100 - value; } return value; }; Spectrum.prototype.getApplicableStep = function ( value ) { // If the value is 100%, return the negative step twice. var j = getJ(value, this.xPct), offset = value === 100 ? 2 : 1; return [this.xNumSteps[j-2], this.xVal[j-offset], this.xNumSteps[j-offset]]; }; // Outside testing Spectrum.prototype.convert = function ( value ) { return this.getStep(this.toStepping(value)); }; /* Every input option is tested and parsed. This'll prevent endless validation in internal methods. These tests are structured with an item for every option available. An option can be marked as required by setting the 'r' flag. The testing function is provided with three arguments: - The provided value for the option; - A reference to the options object; - The name for the option; The testing function returns false when an error is detected, or true when everything is OK. It can also modify the option object, to make sure all values can be correctly looped elsewhere. */ /** @const */ var defaultFormatter = { 'to': function( value ){ return value.toFixed(2); }, 'from': Number }; function testStep ( parsed, entry ) { if ( !isNumeric( entry ) ) { throw new Error("noUiSlider: 'step' is not numeric."); } // The step option can still be used to set stepping // for linear sliders. Overwritten if set in 'range'. parsed.singleStep = entry; } function testRange ( parsed, entry ) { // Filter incorrect input. if ( typeof entry !== 'object' || $.isArray(entry) ) { throw new Error("noUiSlider: 'range' is not an object."); } // Catch missing start or end. if ( entry.min === undefined || entry.max === undefined ) { throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'."); } parsed.spectrum = new Spectrum(entry, parsed.snap, parsed.dir, parsed.singleStep); } function testStart ( parsed, entry ) { entry = asArray(entry); // Validate input. Values aren't tested, as the public .val method // will always provide a valid location. if ( !$.isArray( entry ) || !entry.length || entry.length > 2 ) { throw new Error("noUiSlider: 'start' option is incorrect."); } // Store the number of handles. parsed.handles = entry.length; // When the slider is initialized, the .val method will // be called with the start options. parsed.start = entry; } function testSnap ( parsed, entry ) { // Enforce 100% stepping within subranges. parsed.snap = entry; if ( typeof entry !== 'boolean' ){ throw new Error("noUiSlider: 'snap' option must be a boolean."); } } function testAnimate ( parsed, entry ) { // Enforce 100% stepping within subranges. parsed.animate = entry; if ( typeof entry !== 'boolean' ){ throw new Error("noUiSlider: 'animate' option must be a boolean."); } } function testConnect ( parsed, entry ) { if ( entry === 'lower' && parsed.handles === 1 ) { parsed.connect = 1; } else if ( entry === 'upper' && parsed.handles === 1 ) { parsed.connect = 2; } else if ( entry === true && parsed.handles === 2 ) { parsed.connect = 3; } else if ( entry === false ) { parsed.connect = 0; } else { throw new Error("noUiSlider: 'connect' option doesn't match handle count."); } } function testOrientation ( parsed, entry ) { // Set orientation to an a numerical value for easy // array selection. switch ( entry ){ case 'horizontal': parsed.ort = 0; break; case 'vertical': parsed.ort = 1; break; default: throw new Error("noUiSlider: 'orientation' option is invalid."); } } function testMargin ( parsed, entry ) { if ( !isNumeric(entry) ){ throw new Error("noUiSlider: 'margin' option must be numeric."); } parsed.margin = parsed.spectrum.getMargin(entry); if ( !parsed.margin ) { throw new Error("noUiSlider: 'margin' option is only supported on linear sliders."); } } function testLimit ( parsed, entry ) { if ( !isNumeric(entry) ){ throw new Error("noUiSlider: 'limit' option must be numeric."); } parsed.limit = parsed.spectrum.getMargin(entry); if ( !parsed.limit ) { throw new Error("noUiSlider: 'limit' option is only supported on linear sliders."); } } function testDirection ( parsed, entry ) { // Set direction as a numerical value for easy parsing. // Invert connection for RTL sliders, so that the proper // handles get the connect/background classes. switch ( entry ) { case 'ltr': parsed.dir = 0; break; case 'rtl': parsed.dir = 1; parsed.connect = [0,2,1,3][parsed.connect]; break; default: throw new Error("noUiSlider: 'direction' option was not recognized."); } } function testBehaviour ( parsed, entry ) { // Make sure the input is a string. if ( typeof entry !== 'string' ) { throw new Error("noUiSlider: 'behaviour' must be a string containing options."); } // Check if the string contains any keywords. // None are required. var tap = entry.indexOf('tap') >= 0, drag = entry.indexOf('drag') >= 0, fixed = entry.indexOf('fixed') >= 0, snap = entry.indexOf('snap') >= 0; parsed.events = { tap: tap || snap, drag: drag, fixed: fixed, snap: snap }; } function testFormat ( parsed, entry ) { parsed.format = entry; // Any object with a to and from method is supported. if ( typeof entry.to === 'function' && typeof entry.from === 'function' ) { return true; } throw new Error( "noUiSlider: 'format' requires 'to' and 'from' methods."); } // Test all developer settings and parse to assumption-safe values. function testOptions ( options ) { var parsed = { margin: 0, limit: 0, animate: true, format: defaultFormatter }, tests; // Tests are executed in the order they are presented here. tests = { 'step': { r: false, t: testStep }, 'start': { r: true, t: testStart }, 'connect': { r: true, t: testConnect }, 'direction': { r: true, t: testDirection }, 'snap': { r: false, t: testSnap }, 'animate': { r: false, t: testAnimate }, 'range': { r: true, t: testRange }, 'orientation': { r: false, t: testOrientation }, 'margin': { r: false, t: testMargin }, 'limit': { r: false, t: testLimit }, 'behaviour': { r: true, t: testBehaviour }, 'format': { r: false, t: testFormat } }; // Set defaults where applicable. options = $.extend({ 'connect': false, 'direction': 'ltr', 'behaviour': 'tap', 'orientation': 'horizontal' }, options); // Run all options through a testing mechanism to ensure correct // input. It should be noted that options might get modified to // be handled properly. E.g. wrapping integers in arrays. $.each( tests, function( name, test ){ // If the option isn't set, but it is required, throw an error. if ( options[name] === undefined ) { if ( test.r ) { throw new Error("noUiSlider: '" + name + "' is required."); } return true; } test.t( parsed, options[name] ); }); // Pre-define the styles. parsed.style = parsed.ort ? 'top' : 'left'; return parsed; } // Class handling // Delimit proposed values for handle positions. function getPositions ( a, b, delimit ) { // Add movement to current position. var c = a + b[0], d = a + b[1]; // Only alter the other position on drag, // not on standard sliding. if ( delimit ) { if ( c < 0 ) { d += Math.abs(c); } if ( d > 100 ) { c -= ( d - 100 ); } // Limit values to 0 and 100. return [limit(c), limit(d)]; } return [c,d]; } // Event handling // Provide a clean event with standardized offset values. function fixEvent ( e ) { // Prevent scrolling and panning on touch events, while // attempting to slide. The tap event also depends on this. e.preventDefault(); // Filter the event to register the type, which can be // touch, mouse or pointer. Offset changes need to be // made on an event specific basis. var touch = e.type.indexOf('touch') === 0 ,mouse = e.type.indexOf('mouse') === 0 ,pointer = e.type.indexOf('pointer') === 0 ,x,y, event = e; // IE10 implemented pointer events with a prefix; if ( e.type.indexOf('MSPointer') === 0 ) { pointer = true; } // Get the originalEvent, if the event has been wrapped // by jQuery. Zepto doesn't wrap the event. if ( e.originalEvent ) { e = e.originalEvent; } if ( touch ) { // noUiSlider supports one movement at a time, // so we can select the first 'changedTouch'. x = e.changedTouches[0].pageX; y = e.changedTouches[0].pageY; } if ( mouse || pointer ) { // Polyfill the pageXOffset and pageYOffset // variables for IE7 and IE8; if( !pointer && window.pageXOffset === undefined ){ window.pageXOffset = document.documentElement.scrollLeft; window.pageYOffset = document.documentElement.scrollTop; } x = e.clientX + window.pageXOffset; y = e.clientY + window.pageYOffset; } event.points = [x, y]; event.cursor = mouse; return event; } // DOM additions // Append a handle to the base. function addHandle ( direction, index ) { var handle = $('<div><div/></div>').addClass( Classes[2] ), additions = [ '-lower', '-upper' ]; if ( direction ) { additions.reverse(); } handle.children().addClass( Classes[3] + " " + Classes[3]+additions[index] ); return handle; } // Add the proper connection classes. function addConnection ( connect, target, handles ) { // Apply the required connection classes to the elements // that need them. Some classes are made up for several // segments listed in the class list, to allow easy // renaming and provide a minor compression benefit. switch ( connect ) { case 1: target.addClass( Classes[7] ); handles[0].addClass( Classes[6] ); break; case 3: handles[1].addClass( Classes[6] ); /* falls through */ case 2: handles[0].addClass( Classes[7] ); /* falls through */ case 0: target.addClass(Classes[6]); break; } } // Add handles to the slider base. function addHandles ( nrHandles, direction, base ) { var index, handles = []; // Append handles. for ( index = 0; index < nrHandles; index += 1 ) { // Keep a list of all added handles. handles.push( addHandle( direction, index ).appendTo(base) ); } return handles; } // Initialize a single slider. function addSlider ( direction, orientation, target ) { // Apply classes and data to the target. target.addClass([ Classes[0], Classes[8 + direction], Classes[4 + orientation] ].join(' ')); return $('<div/>').appendTo(target).addClass( Classes[1] ); } function closure ( target, options, originalOptions ){ // Internal variables // All variables local to 'closure' are marked $. var $Target = $(target), $Locations = [-1, -1], $Base, $Handles, $Spectrum = options.spectrum, $Values = [], // libLink. For rtl sliders, 'lower' and 'upper' should not be inverted // for one-handle sliders, so trim 'upper' it that case. triggerPos = ['lower', 'upper'].slice(0, options.handles); // Invert the libLink connection for rtl sliders. if ( options.dir ) { triggerPos.reverse(); } // Helpers // Shorthand for base dimensions. function baseSize ( ) { return $Base[['width', 'height'][options.ort]](); } // External event handling function fireEvents ( events ) { // Use the external api to get the values. // Wrap the values in an array, as .trigger takes // only one additional argument. var index, values = [ $Target.val() ]; for ( index = 0; index < events.length; index += 1 ){ $Target.trigger(events[index], values); } } // Returns the input array, respecting the slider direction configuration. function inSliderOrder ( values ) { // If only one handle is used, return a single value. if ( values.length === 1 ){ return values[0]; } if ( options.dir ) { return values.reverse(); } return values; } // libLink integration // Create a new function which calls .val on input change. function createChangeHandler ( trigger ) { return function ( ignore, value ){ // Determine which array position to 'null' based on 'trigger'. $Target.val( [ trigger ? null : value, trigger ? value : null ], true ); }; } // Called by libLink when it wants a set of links updated. function linkUpdate ( flag ) { var trigger = $.inArray(flag, triggerPos); // The API might not have been set yet. if ( $Target[0].linkAPI && $Target[0].linkAPI[flag] ) { $Target[0].linkAPI[flag].change( $Values[trigger], $Handles[trigger].children(), $Target ); } } // Called by libLink to append an element to the slider. function linkConfirm ( flag, element ) { // Find the trigger for the passed flag. var trigger = $.inArray(flag, triggerPos); // If set, append the element to the handle it belongs to. if ( element ) { element.appendTo( $Handles[trigger].children() ); } // The public API is reversed for rtl sliders, so the changeHandler // should not be aware of the inverted trigger positions. // On rtl slider with one handle, 'lower' should be used. if ( options.dir && options.handles > 1 ) { trigger = trigger === 1 ? 0 : 1; } return createChangeHandler( trigger ); } // Place elements back on the slider. function reAppendLink ( ) { var i, flag; // The API keeps a list of elements: we can re-append them on rebuild. for ( i = 0; i < triggerPos.length; i += 1 ) { if ( this.linkAPI && this.linkAPI[(flag = triggerPos[i])] ) { this.linkAPI[flag].reconfirm(flag); } } } target.LinkUpdate = linkUpdate; target.LinkConfirm = linkConfirm; target.LinkDefaultFormatter = options.format; target.LinkDefaultFlag = 'lower'; target.reappend = reAppendLink; // Handler for attaching events trough a proxy. function attach ( events, element, callback, data ) { // This function can be used to 'filter' events to the slider. // Add the noUiSlider namespace to all events. events = events.replace( /\s/g, namespace + ' ' ) + namespace; // Bind a closure on the target. return element.on( events, function( e ){ // jQuery and Zepto (1) handle unset attributes differently, // but always falsy; #208 if ( !!$Target.attr('disabled') ) { return false; } // Stop if an active 'tap' transition is taking place. if ( $Target.hasClass( Classes[14] ) ) { return false; } e = fixEvent(e); e.calcPoint = e.points[ options.ort ]; // Call the event handler with the event [ and additional data ]. callback ( e, data ); }); } // Handle movement on document for handle and range drag. function move ( event, data ) { var handles = data.handles || $Handles, positions, state = false, proposal = ((event.calcPoint - data.start) * 100) / baseSize(), h = handles[0][0] !== $Handles[0][0] ? 1 : 0; // Calculate relative positions for the handles. positions = getPositions( proposal, data.positions, handles.length > 1); state = setHandle ( handles[0], positions[h], handles.length === 1 ); if ( handles.length > 1 ) { state = setHandle ( handles[1], positions[h?0:1], false ) || state; } // Fire the 'slide' event if any handle moved. if ( state ) { fireEvents(['slide']); } } // Unbind move events on document, call callbacks. function end ( event ) { // The handle is no longer active, so remove the class. $('.' + Classes[15]).removeClass(Classes[15]); // Remove cursor styles and text-selection events bound to the body. if ( event.cursor ) { $('body').css('cursor', '').off( namespace ); } // Unbind the move and end events, which are added on 'start'. doc.off( namespace ); // Remove dragging class. $Target.removeClass(Classes[12]); // Fire the change and set events. fireEvents(['set', 'change']); } // Bind move events on document. function start ( event, data ) { // Mark the handle as 'active' so it can be styled. if( data.handles.length === 1 ) { data.handles[0].children().addClass(Classes[15]); } // A drag should never propagate up to the 'tap' event. event.stopPropagation(); // Attach the move event. attach ( actions.move, doc, move, { start: event.calcPoint, handles: data.handles, positions: [ $Locations[0], $Locations[$Handles.length - 1] ] }); // Unbind all movement when the drag ends. attach ( actions.end, doc, end, null ); // Text selection isn't an issue on touch devices, // so adding cursor styles can be skipped. if ( event.cursor ) { // Prevent the 'I' cursor and extend the range-drag cursor. $('body').css('cursor', $(event.target).css('cursor')); // Mark the target with a dragging state. if ( $Handles.length > 1 ) { $Target.addClass(Classes[12]); } // Prevent text selection when dragging the handles. $('body').on('selectstart' + namespace, false); } } // Move closest handle to tapped location. function tap ( event ) { var location = event.calcPoint, total = 0, to; // The tap event shouldn't propagate up and cause 'edge' to run. event.stopPropagation(); // Add up the handle offsets. $.each( $Handles, function(){ total += this.offset()[ options.style ]; }); // Find the handle closest to the tapped position. total = ( location < total/2 || $Handles.length === 1 ) ? 0 : 1; location -= $Base.offset()[ options.style ]; // Calculate the new position. to = ( location * 100 ) / baseSize(); if ( !options.events.snap ) { // Flag the slider as it is now in a transitional state. // Transition takes 300 ms, so re-enable the slider afterwards. addClassFor( $Target, Classes[14], 300 ); } // Find the closest handle and calculate the tapped point. // The set handle to the new position. setHandle( $Handles[total], to ); fireEvents(['slide', 'set', 'change']); if ( options.events.snap ) { start(event, { handles: [$Handles[total]] }); } } // Attach events to several slider parts. function events ( behaviour ) { var i, drag; // Attach the standard drag event to the handles. if ( !behaviour.fixed ) { for ( i = 0; i < $Handles.length; i += 1 ) { // These events are only bound to the visual handle // element, not the 'real' origin element. attach ( actions.start, $Handles[i].children(), start, { handles: [ $Handles[i] ] }); } } // Attach the tap event to the slider base. if ( behaviour.tap ) { attach ( actions.start, $Base, tap, { handles: $Handles }); } // Make the range dragable. if ( behaviour.drag ){ drag = $Base.find( '.' + Classes[7] ).addClass( Classes[10] ); // When the range is fixed, the entire range can // be dragged by the handles. The handle in the first // origin will propagate the start event upward, // but it needs to be bound manually on the other. if ( behaviour.fixed ) { drag = drag.add($Base.children().not( drag ).children()); } attach ( actions.start, drag, start, { handles: $Handles }); } } // Test suggested values and apply margin, step. function setHandle ( handle, to, noLimitOption ) { var trigger = handle[0] !== $Handles[0][0] ? 1 : 0, lowerMargin = $Locations[0] + options.margin, upperMargin = $Locations[1] - options.margin, lowerLimit = $Locations[0] + options.limit, upperLimit = $Locations[1] - options.limit; // For sliders with multiple handles, // limit movement to the other handle. // Apply the margin option by adding it to the handle positions. if ( $Handles.length > 1 ) { to = trigger ? Math.max( to, lowerMargin ) : Math.min( to, upperMargin ); } // The limit option has the opposite effect, limiting handles to a // maximum distance from another. Limit must be > 0, as otherwise // handles would be unmoveable. 'noLimitOption' is set to 'false' // for the .val() method, except for pass 4/4. if ( noLimitOption !== false && options.limit && $Handles.length > 1 ) { to = trigger ? Math.min ( to, lowerLimit ) : Math.max( to, upperLimit ); } // Handle the step option. to = $Spectrum.getStep( to ); // Limit to 0/100 for .val input, trim anything beyond 7 digits, as // JavaScript has some issues in its floating point implementation. to = limit(parseFloat(to.toFixed(7))); // Return false if handle can't move. if ( to === $Locations[trigger] ) { return false; } // Set the handle to the new position. handle.css( options.style, to + '%' ); // Force proper handle stacking if ( handle.is(':first-child') ) { handle.toggleClass(Classes[17], to > 50 ); } // Update locations. $Locations[trigger] = to; // Convert the value to the slider stepping/range. $Values[trigger] = $Spectrum.fromStepping( to ); linkUpdate(triggerPos[trigger]); return true; } // Loop values from value method and apply them. function setValues ( count, values ) { var i, trigger, to; // With the limit option, we'll need another limiting pass. if ( options.limit ) { count += 1; } // If there are multiple handles to be set run the setting // mechanism twice for the first handle, to make sure it // can be bounced of the second one properly. for ( i = 0; i < count; i += 1 ) { trigger = i%2; // Get the current argument from the array. to = values[trigger]; // Setting with null indicates an 'ignore'. // Inputting 'false' is invalid. if ( to !== null && to !== false ) { // If a formatted number was passed, attemt to decode it. if ( typeof to === 'number' ) { to = String(to); } to = options.format.from( to ); // Request an update for all links if the value was invalid. // Do so too if setting the handle fails. if ( to === false || isNaN(to) || setHandle( $Handles[trigger], $Spectrum.toStepping( to ), i === (3 - options.dir) ) === false ) { linkUpdate(triggerPos[trigger]); } } } } // Set the slider value. function valueSet ( input ) { // LibLink: don't accept new values when currently emitting changes. if ( $Target[0].LinkIsEmitting ) { return this; } var count, values = asArray( input ); // The RTL settings is implemented by reversing the front-end, // internal mechanisms are the same. if ( options.dir && options.handles > 1 ) { values.reverse(); } // Animation is optional. // Make sure the initial values where set before using animated // placement. (no report, unit testing); if ( options.animate && $Locations[0] !== -1 ) { addClassFor( $Target, Classes[14], 300 ); } // Determine how often to set the handles. count = $Handles.length > 1 ? 3 : 1; if ( values.length === 1 ) { count = 1; } setValues ( count, values ); // Fire the 'set' event. As of noUiSlider 7, // this is no longer optional. fireEvents(['set']); return this; } // Get the slider value. function valueGet ( ) { var i, retour = []; // Get the value from all handles. for ( i = 0; i < options.handles; i += 1 ){ retour[i] = options.format.to( $Values[i] ); } return inSliderOrder( retour ); } // Destroy the slider and unbind all events. function destroyTarget ( ) { // Unbind events on the slider, remove all classes and child elements. $(this).off(namespace) .removeClass(Classes.join(' ')) .empty(); delete this.LinkUpdate; delete this.LinkConfirm; delete this.LinkDefaultFormatter; delete this.LinkDefaultFlag; delete this.reappend; delete this.vGet; delete this.vSet; delete this.getCurrentStep; delete this.getInfo; delete this.destroy; // Return the original options from the closure. return originalOptions; } // Get the current step size for the slider. function getCurrentStep ( ) { // Check all locations, map them to their stepping point. // Get the step point, then find it in the input list. var retour = $.map($Locations, function( location, index ){ var step = $Spectrum.getApplicableStep( location ), // As per #391, the comparison for the decrement step can have some rounding issues. // Round the value to the precision used in the step. stepDecimals = countDecimals(String(step[2])), // Get the current numeric value value = $Values[index], // To move the slider 'one step up', the current step value needs to be added. // Use null if we are at the maximum slider value. increment = location === 100 ? null : step[2], // Going 'one step down' might put the slider in a different sub-range, so we // need to switch between the current or the previous step. prev = Number((value - step[2]).toFixed(stepDecimals)), // If the value fits the step, return the current step value. Otherwise, use the // previous step. Return null if the slider is at its minimum value. decrement = location === 0 ? null : (prev >= step[1]) ? step[2] : (step[0] || false); return [[decrement, increment]]; }); // Return values in the proper order. return inSliderOrder( retour ); } // Get the original set of options. function getOriginalOptions ( ) { return originalOptions; } // Initialize slider // Throw an error if the slider was already initialized. if ( $Target.hasClass(Classes[0]) ) { throw new Error('Slider was already initialized.'); } // Create the base element, initialise HTML and set classes. // Add handles and links. $Base = addSlider( options.dir, options.ort, $Target ); $Handles = addHandles( options.handles, options.dir, $Base ); // Set the connect classes. addConnection ( options.connect, $Target, $Handles ); // Attach user events. events( options.events ); // Methods target.vSet = valueSet; target.vGet = valueGet; target.destroy = destroyTarget; target.getCurrentStep = getCurrentStep; target.getOriginalOptions = getOriginalOptions; target.getInfo = function(){ return [ $Spectrum, options.style, options.ort ]; }; // Use the public value method to set the start values. $Target.val( options.start ); } // Run the standard initializer function initialize ( originalOptions ) { // Test the options once, not for every slider. var options = testOptions( originalOptions, this ); // Loop all items, and provide a new closed-scope environment. return this.each(function(){ closure(this, options, originalOptions); }); } // Destroy the slider, then re-enter initialization. function rebuild ( options ) { return this.each(function(){ // The rebuild flag can be used if the slider wasn't initialized yet. if ( !this.destroy ) { $(this).noUiSlider( options ); return; } // Get the current values from the slider, // including the initialization options. var values = $(this).val(), originalOptions = this.destroy(), // Extend the previous options with the newly provided ones. newOptions = $.extend( {}, originalOptions, options ); // Run the standard initializer. $(this).noUiSlider( newOptions ); // Place Link elements back. this.reappend(); // If the start option hasn't changed, // reset the previous values. if ( originalOptions.start === newOptions.start ) { $(this).val(values); } }); } // Access the internal getting and setting methods based on argument count. function value ( ) { return this[0][ !arguments.length ? 'vGet' : 'vSet' ].apply(this[0], arguments); } // Override the .val() method. Test every element. Is it a slider? Go to // the slider value handling. No? Use the standard method. // Note how $.fn.val expects 'this' to be an instance of $. For convenience, // the above 'value' function does too. $.fn.val = function ( arg ) { // this === instanceof $ function valMethod( a ){ return a.hasClass(Classes[0]) ? value : $val; } // If no value is passed, this is 'get'. if ( !arguments.length ) { var first = $(this[0]); return valMethod(first).call(first); } var isFunction = $.isFunction(arg); // Return the set so it remains chainable. Make sure not to break // jQuery's .val(function( index, value ){}) signature. return this.each(function( i ){ var val = arg, $t = $(this); if ( isFunction ) { val = arg.call(this, i, $t.val()); } valMethod($t).call($t, val); }); }; // Extend jQuery/Zepto with the noUiSlider method. $.fn.noUiSlider = function ( options, rebuildFlag ) { switch ( options ) { case 'step': return this[0].getCurrentStep(); case 'options': return this[0].getOriginalOptions(); } return ( rebuildFlag ? rebuild : initialize ).call(this, options); }; function getGroup ( $Spectrum, mode, values, stepped ) { // Use the range. if ( mode === 'range' || mode === 'steps' ) { return $Spectrum.xVal; } if ( mode === 'count' ) { // Divide 0 - 100 in 'count' parts. var spread = ( 100 / (values-1) ), v, i = 0; values = []; // List these parts and have them handled as 'positions'. while ((v=i++*spread) <= 100 ) { values.push(v); } mode = 'positions'; } if ( mode === 'positions' ) { // Map all percentages to on-range values. return $.map(values, function( value ){ return $Spectrum.fromStepping( stepped ? $Spectrum.getStep( value ) : value ); }); } if ( mode === 'values' ) { // If the value must be stepped, it needs to be converted to a percentage first. if ( stepped ) { return $.map(values, function( value ){ // Convert to percentage, apply step, return to value. return $Spectrum.fromStepping( $Spectrum.getStep( $Spectrum.toStepping( value ) ) ); }); } // Otherwise, we can simply use the values. return values; } } function generateSpread ( $Spectrum, density, mode, group ) { var originalSpectrumDirection = $Spectrum.direction, indexes = {}, firstInRange = $Spectrum.xVal[0], lastInRange = $Spectrum.xVal[$Spectrum.xVal.length-1], ignoreFirst = false, ignoreLast = false, prevPct = 0; // This function loops the spectrum in an ltr linear fashion, // while the toStepping method is direction aware. Trick it into // believing it is ltr. $Spectrum.direction = 0; // Create a copy of the group, sort it and filter away all duplicates. group = unique(group.slice().sort(function(a, b){ return a - b; })); // Make sure the range starts with the first element. if ( group[0] !== firstInRange ) { group.unshift(firstInRange); ignoreFirst = true; } // Likewise for the last one. if ( group[group.length - 1] !== lastInRange ) { group.push(lastInRange); ignoreLast = true; } $.each(group, function ( index ) { // Get the current step and the lower + upper positions. var step, i, q, low = group[index], high = group[index+1], newPct, pctDifference, pctPos, type, steps, realSteps, stepsize; // When using 'steps' mode, use the provided steps. // Otherwise, we'll step on to the next subrange. if ( mode === 'steps' ) { step = $Spectrum.xNumSteps[ index ]; } // Default to a 'full' step. if ( !step ) { step = high-low; } // Low can be 0, so test for false. If high is undefined, // we are at the last subrange. Index 0 is already handled. if ( low === false || high === undefined ) { return; } // Find all steps in the subrange. for ( i = low; i <= high; i += step ) { // Get the percentage value for the current step, // calculate the size for the subrange. newPct = $Spectrum.toStepping( i ); pctDifference = newPct - prevPct; steps = pctDifference / density; realSteps = Math.round(steps); // This ratio represents the ammount of percentage-space a point indicates. // For a density 1 the points/percentage = 1. For density 2, that percentage needs to be re-devided. // Round the percentage offset to an even number, then divide by two // to spread the offset on both sides of the range. stepsize = pctDifference/realSteps; // Divide all points evenly, adding the correct number to this subrange. // Run up to <= so that 100% gets a point, event if ignoreLast is set. for ( q = 1; q <= realSteps; q += 1 ) { // The ratio between the rounded value and the actual size might be ~1% off. // Correct the percentage offset by the number of points // per subrange. density = 1 will result in 100 points on the // full range, 2 for 50, 4 for 25, etc. pctPos = prevPct + ( q * stepsize ); indexes[pctPos.toFixed(5)] = ['x', 0]; } // Determine the point type. type = ($.inArray(i, group) > -1) ? 1 : ( mode === 'steps' ? 2 : 0 ); // Enforce the 'ignoreFirst' option by overwriting the type for 0. if ( !index && ignoreFirst ) { type = 0; } if ( !(i === high && ignoreLast)) { // Mark the 'type' of this point. 0 = plain, 1 = real value, 2 = step value. indexes[newPct.toFixed(5)] = [i, type]; } // Update the percentage count. prevPct = newPct; } }); // Reset the spectrum. $Spectrum.direction = originalSpectrumDirection; return indexes; } function addMarking ( CSSstyle, orientation, direction, spread, filterFunc, formatter ) { var style = ['horizontal', 'vertical'][orientation], element = $('<div/>'); element.addClass('noUi-pips noUi-pips-'+style); function getSize( type, value ){ return [ '-normal', '-large', '-sub' ][type]; } function getTags( offset, source, values ) { return 'class="' + source + ' ' + source + '-' + style + ' ' + source + getSize(values[1], values[0]) + '" style="' + CSSstyle + ': ' + offset + '%"'; } function addSpread ( offset, values ){ if ( direction ) { offset = 100 - offset; } // Apply the filter function, if it is set. values[1] = (values[1] && filterFunc) ? filterFunc(values[0], values[1]) : values[1]; // Add a marker for every point element.append('<div ' + getTags(offset, 'noUi-marker', values) + '></div>'); // Values are only appended for points marked '1' or '2'. if ( values[1] ) { element.append('<div '+getTags(offset, 'noUi-value', values)+'>' + formatter.to(values[0]) + '</div>'); } } // Append all points. $.each(spread, addSpread); return element; } $.fn.noUiSlider_pips = function ( grid ) { var mode = grid.mode, density = grid.density || 1, filter = grid.filter || false, values = grid.values || false, format = grid.format || { to: Math.round }, stepped = grid.stepped || false; return this.each(function(){ var info = this.getInfo(), group = getGroup( info[0], mode, values, stepped ), spread = generateSpread( info[0], density, mode, group ); return $(this).append(addMarking( info[1], info[2], info[0].direction, spread, filter, format )); }); }; }( window.jQuery || window.Zepto ));
xymostech/cdnjs
ajax/libs/noUiSlider/7.0.10/jquery.nouislider.all.js
JavaScript
mit
58,669
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){function d(c,d){var b;try{b=c.getSelection().getRanges()[0]}catch(f){return null}b.shrink(CKEDITOR.SHRINK_TEXT);return c.elementPath(b.getCommonAncestor()).contains(d,1)}function e(c,e){var b=c.lang.liststyle;if("bulletedListStyle"==e)return{title:b.bulletedTitle,minWidth:300,minHeight:50,contents:[{id:"info",accessKey:"I",elements:[{type:"select",label:b.type,id:"type",align:"center",style:"width:150px",items:[[b.notset,""],[b.circle,"circle"],[b.disc,"disc"],[b.square,"square"]],setup:function(a){a= a.getStyle("list-style-type")||h[a.getAttribute("type")]||a.getAttribute("type")||"";this.setValue(a)},commit:function(a){var b=this.getValue();b?a.setStyle("list-style-type",b):a.removeStyle("list-style-type")}}]}],onShow:function(){var a=this.getParentEditor();(a=d(a,"ul"))&&this.setupContent(a)},onOk:function(){var a=this.getParentEditor();(a=d(a,"ul"))&&this.commitContent(a)}};if("numberedListStyle"==e){var g=[[b.notset,""],[b.lowerRoman,"lower-roman"],[b.upperRoman,"upper-roman"],[b.lowerAlpha, "lower-alpha"],[b.upperAlpha,"upper-alpha"],[b.decimal,"decimal"]];(!CKEDITOR.env.ie||7<CKEDITOR.env.version)&&g.concat([[b.armenian,"armenian"],[b.decimalLeadingZero,"decimal-leading-zero"],[b.georgian,"georgian"],[b.lowerGreek,"lower-greek"]]);return{title:b.numberedTitle,minWidth:300,minHeight:50,contents:[{id:"info",accessKey:"I",elements:[{type:"hbox",widths:["25%","75%"],children:[{label:b.start,type:"text",id:"start",validate:CKEDITOR.dialog.validate.integer(b.validateStartNumber),setup:function(a){a= a.getFirst(f).getAttribute("value")||a.getAttribute("start")||1;this.setValue(a)},commit:function(a){var b=a.getFirst(f),c=b.getAttribute("value")||a.getAttribute("start")||1;a.getFirst(f).removeAttribute("value");var d=parseInt(this.getValue(),10);isNaN(d)?a.removeAttribute("start"):a.setAttribute("start",d);a=b;b=c;for(d=isNaN(d)?1:d;(a=a.getNext(f))&&b++;)a.getAttribute("value")==b&&a.setAttribute("value",d+b-c)}},{type:"select",label:b.type,id:"type",style:"width: 100%;",items:g,setup:function(a){a= a.getStyle("list-style-type")||h[a.getAttribute("type")]||a.getAttribute("type")||"";this.setValue(a)},commit:function(a){var b=this.getValue();b?a.setStyle("list-style-type",b):a.removeStyle("list-style-type")}}]}]}],onShow:function(){var a=this.getParentEditor();(a=d(a,"ol"))&&this.setupContent(a)},onOk:function(){var a=this.getParentEditor();(a=d(a,"ol"))&&this.commitContent(a)}}}}var f=function(c){return c.type==CKEDITOR.NODE_ELEMENT&&c.is("li")},h={a:"lower-alpha",A:"upper-alpha",i:"lower-roman", I:"upper-roman",1:"decimal",disc:"disc",circle:"circle",square:"square"};CKEDITOR.dialog.add("numberedListStyle",function(c){return e(c,"numberedListStyle")});CKEDITOR.dialog.add("bulletedListStyle",function(c){return e(c,"bulletedListStyle")})})();
Vegetam/BoostrapPageGenerator4
bootstap 4 alpha 6/ckeditor/ckeditor/plugins/liststyle/dialogs/liststyle.js
JavaScript
mit
2,951
ReactIntl.__addLocaleData({"locale":"mt","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";if(n===0||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10)return"few";if(n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19)return"many";return"other";},"fields":{"second":{"displayName":"Sekonda","relative":{"0":"now"},"relativeTime":{"future":{"other":"+{0} s"},"past":{"other":"-{0} s"}}},"minute":{"displayName":"Minuta","relativeTime":{"future":{"other":"+{0} min"},"past":{"other":"-{0} min"}}},"hour":{"displayName":"Siegħa","relativeTime":{"future":{"other":"+{0} h"},"past":{"other":"-{0} h"}}},"day":{"displayName":"Jum","relative":{"0":"Illum","1":"Għada","-1":"Ilbieraħ"},"relativeTime":{"future":{"other":"+{0} d"},"past":{"other":"-{0} d"}}},"month":{"displayName":"Xahar","relative":{"0":"Dan ix-xahar","1":"Ix-xahar id-dieħel","-1":"Ix-xahar li għadda"},"relativeTime":{"future":{"other":"+{0} m"},"past":{"other":"-{0} m"}}},"year":{"displayName":"Sena","relative":{"0":"Din is-sena","1":"Is-sena d-dieħla","-1":"Is-sena li għaddiet"},"relativeTime":{"past":{"one":"{0} sena ilu","few":"{0} snin ilu","many":"{0} snin ilu","other":"{0} snin ilu"},"future":{"other":"+{0} y"}}}}});
nolsherry/cdnjs
ajax/libs/react-intl/1.1.0-rc-1/locale-data/mt.js
JavaScript
mit
1,213
/*! * jQuery Smart Web App Banner (Add to Home Screen) * Copyright (c) 2014 Kurt Zenisek @ kzeni.com * Version: 1.4 (24-MAY-2014) * Requires: jQuery v1.7 or later */ ;(function($){$.fn.smartWebBanner=function(options){var iPad=navigator.userAgent.match(/iPad/i)!=null;var iPhone=navigator.userAgent.match(/iPhone/i)!=null;var Safari=(/Safari/i).test(navigator.appVersion)&&!(/CriOS/i).test(navigator.appVersion);var standalone=navigator.standalone;function iOSversion(){if(iPhone||iPad){var v=(navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(v[1],10),parseInt(v[2],10),parseInt(v[3]||0,10)]}else{return false}}var ver=iOSversion();if(ver[0]<=6)var iOS7=false;else var iOS7=true;var origHtmlMargin=parseFloat($('html').css('margin-top'));var bannerHeight;var originalTitle=document.title;var originalURL=window.location.href;if(typeof options=='string'){bannerHeight=$('#smartWebBanner').height();if(typeof opts=='undefined')var opts=$.fn.smartWebBanner.defaults;switch(options){case'show':if(!$('#smartWebBanner').hasClass('shown')){showBanner()}return false;case'hide':if($('#smartWebBanner').hasClass('shown')){origHtmlMargin=origHtmlMargin-bannerHeight;closeBanner()}return false}}else{var opts=$.extend({},$.fn.smartWebBanner.defaults,options)}if(opts.autoApp&&$('meta[name="apple-mobile-web-app-capable"]').length==0)$('head').append('<meta name="apple-mobile-web-app-capable" content="yes" />');function createBanner(){$('body').append('<div id="smartWebBanner"><a href="#" id="swb-close">X</a><a href="#" id="swb-icon"></a><div id="swb-info"><strong>'+opts.title+'</strong><span>'+opts.author+'</span></div><a href="#" id="swb-save">Save</a></div><div id="swb-instructions">Tap <span class="icon"></span> and then <strong>Add to Home Screen.</strong><div class="arrow"></div></div>');if(iPad)$('#smartWebBanner,#swb-instructions').addClass('ipad');if(!iPad&&!iPhone)$('#swb-instructions').html('<strong>It appears this isn\'t an iOS device.</strong> This is a preview of the iPhone popup design though.');if(opts.showFree)$('#smartWebBanner').addClass('free');if(opts.theme=='auto'){if(iOS7)$('#smartWebBanner,#swb-instructions').addClass('ios7');else $('#smartWebBanner,#swb-instructions').addClass('ios6')}if(opts.theme=='iOS 7')$('#smartWebBanner,#swb-instructions').addClass('ios7');if(opts.theme=='iOS 6')$('#smartWebBanner,#swb-instructions').addClass('ios6');if(opts.theme=='dark')$('#smartWebBanner,#swb-instructions').addClass('dark');if(opts.useIcon){if($('link[rel="apple-touch-icon-precomposed"]').length>0){iconURL=$('link[rel="apple-touch-icon-precomposed"]').attr('href')}else if($('link[rel="apple-touch-icon"]').length>0){iconURL=$('link[rel="apple-touch-icon"]').attr('href');if(opts.iconGloss!=false)$('#swb-icon').addClass('gloss')}if(opts.iconGloss==true)$('#swb-icon').addClass('gloss');if(opts.iconOverwrite!='')iconURL=opts.iconOverwrite;$('#swb-icon').css('background-image','url('+iconURL+')')}if(!opts.useIcon||!iconURL){$('#smartWebBanner').addClass('no-icon')}bannerHeight=$('#smartWebBanner').height()}function showBanner(){$('#smartWebBanner').stop().animate({top:0},opts.speedIn).addClass('shown');$('html').animate({marginTop:origHtmlMargin+bannerHeight},opts.speedIn);$('#swb-close').on('click',function(){closeBanner();return false});$('#swb-save,#swb-icon').on('click',function(){showInstructions();return false})}function closeBanner(){$('#smartWebBanner').stop().animate({top:-(bannerHeight+(bannerHeight/3))},opts.speedOut).removeClass('shown');$('html').animate({marginTop:origHtmlMargin},opts.speedOut);hideInstructions();setCookie('swb-closed','true',opts.daysHidden)}function showInstructions(){$('#swb-instructions').fadeIn(opts.popupSpeedIn);if(opts.titleSwap)document.title=opts.title;if(opts.url)history.replaceState(null,null,opts.url);if(opts.popupDuration!=0)setTimeout(function(){hideInstructions()},opts.popupDuration);setCookie('swb-saved','true',opts.daysReminder)}function hideInstructions(){$('#swb-instructions').fadeOut(opts.popupSpeedOut);if(opts.titleSwap)setTimeout(function(){document.title=originalTitle},12000);if(opts.url)setTimeout(function(){history.replaceState(null,null,originalURL)},12000)}function setCookie(name,value,exdays){var exdate=new Date();exdate.setDate(exdate.getDate()+exdays);var value=escape(value)+((exdays==null)?'':'; expires='+exdate.toUTCString());document.cookie=name+'='+value+'; path=/;'}function getCookie(name){var i,x,y,ARRcookies=document.cookie.split(";");for(i=0;i<ARRcookies.length;i++){x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);x=x.replace(/^\s+|\s+$/g,"");if(x==name){return unescape(y)}}}if(opts.debug||((iPhone||iPad)&&Safari&&!standalone&&typeof getCookie('swb-closed')=='undefined'&&typeof getCookie('swb-saved')=='undefined')){createBanner();showBanner()}};$.fn.smartWebBanner.defaults={title:'Web App',titleSwap:true,url:'',author:'Save to Home Screen',speedIn:300,speedOut:400,useIcon:true,iconOverwrite:'',iconGloss:'auto',showFree:true,daysHidden:15,daysReminder:90,popupDuration:6000,popupSpeedIn:200,popupSpeedOut:900,theme:'auto',autoApp:false,debug:false}})(jQuery);
steakknife/cdnjs
ajax/libs/jquery-smart-web-app-banner/1.4/jquery.smartwebbanner.min.js
JavaScript
mit
5,181
ReactIntl.__addLocaleData({"locale":"to","pluralRuleFunction":function (n) {return"other";},"fields":{"second":{"displayName":"sekoni","relative":{"0":"taimiʻni"},"relativeTime":{"future":{"other":"ʻi he sekoni ʻe {0}"},"past":{"other":"sekoni ʻe {0} kuoʻosi"}}},"minute":{"displayName":"miniti","relativeTime":{"future":{"other":"ʻi he miniti ʻe {0}"},"past":{"other":"miniti ʻe {0} kuoʻosi"}}},"hour":{"displayName":"houa","relativeTime":{"future":{"other":"ʻi he houa ʻe {0}"},"past":{"other":"houa ʻe {0} kuoʻosi"}}},"day":{"displayName":"ʻaho","relative":{"0":"ʻaho⸍ni","1":"ʻapongipongi","2":"ʻahepongipongi","-2":"ʻaneheafi","-1":"ʻaneafi"},"relativeTime":{"future":{"other":"ʻi he ʻaho ʻe {0}"},"past":{"other":"ʻaho ʻe {0} kuoʻosi"}}},"month":{"displayName":"māhina","relative":{"0":"māhina⸍ni","1":"māhina kahaʻu","-1":"māhina kuoʻosi"},"relativeTime":{"future":{"other":"ʻi he māhina ʻe {0}"},"past":{"other":"māhina ʻe {0} kuoʻosi"}}},"year":{"displayName":"taʻu","relative":{"0":"taʻu⸍ni","1":"taʻu kahaʻu","-1":"taʻu kuoʻosi"},"relativeTime":{"future":{"other":"ʻi he taʻu ʻe {0}"},"past":{"other":"taʻu ʻe {0} kuo hili"}}}}});
AMoo-Miki/cdnjs
ajax/libs/react-intl/1.1.0-rc-3/locale-data/to.js
JavaScript
mit
1,195
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Finder\Tests\Iterator; use Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator; class RecursiveDirectoryIteratorTest extends IteratorTestCase { /** * @dataProvider getPaths * * @param string $path * @param Boolean $seekable * @param Boolean $supports * @param string $message */ public function testRewind($path, $seekable, $contains, $message = null) { try { $i = new RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS); } catch (\UnexpectedValueException $e) { $this->markTestSkipped(sprintf('Unsupported stream "%s".', $path)); } $i->rewind(); $this->assertTrue(true, $message); } /** * @dataProvider getPaths * * @param string $path * @param Boolean $seekable * @param Boolean $supports * @param string $message */ public function testSeek($path, $seekable, $contains, $message = null) { try { $i = new RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS); } catch (\UnexpectedValueException $e) { $this->markTestSkipped(sprintf('Unsupported stream "%s".', $path)); } $actual = array(); $i->seek(0); $actual[] = $i->getPathname(); $i->seek(1); $actual[] = $i->getPathname(); $i->seek(2); $actual[] = $i->getPathname(); $this->assertEquals($contains, $actual); } public function getPaths() { $data = array(); // ftp $contains = array( 'ftp://ftp.mozilla.org'.DIRECTORY_SEPARATOR.'README', 'ftp://ftp.mozilla.org'.DIRECTORY_SEPARATOR.'index.html', 'ftp://ftp.mozilla.org'.DIRECTORY_SEPARATOR.'pub', ); $data[] = array('ftp://ftp.mozilla.org/', false, $contains); return $data; } }
efraxpc/sogar
vendor/symfony/symfony/src/Symfony/Component/Finder/Tests/Iterator/RecursiveDirectoryIteratorTest.php
PHP
mit
2,186
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\EventDispatcher; /** * Event encapsulation class. * * Encapsulates events thus decoupling the observer from the subject they encapsulate. * * @author Drak <drak@zikula.org> */ class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate { /** * Event subject. * * @var mixed usually object or callable */ protected $subject; /** * Array of arguments. * * @var array */ protected $arguments; /** * Encapsulate an event with $subject and $args. * * @param mixed $subject The subject of the event, usually an object * @param array $arguments Arguments to store in the event */ public function __construct($subject = null, array $arguments = array()) { $this->subject = $subject; $this->arguments = $arguments; } /** * Getter for subject property. * * @return mixed $subject The observer subject */ public function getSubject() { return $this->subject; } /** * Get argument by key. * * @param string $key Key * * @return mixed Contents of array key * * @throws \InvalidArgumentException If key is not found. */ public function getArgument($key) { if ($this->hasArgument($key)) { return $this->arguments[$key]; } throw new \InvalidArgumentException(sprintf('Argument "%s" not found.', $key)); } /** * Add argument to event. * * @param string $key Argument name * @param mixed $value Value * * @return $this */ public function setArgument($key, $value) { $this->arguments[$key] = $value; return $this; } /** * Getter for all arguments. * * @return array */ public function getArguments() { return $this->arguments; } /** * Set args property. * * @param array $args Arguments * * @return $this */ public function setArguments(array $args = array()) { $this->arguments = $args; return $this; } /** * Has argument. * * @param string $key Key of arguments array * * @return bool */ public function hasArgument($key) { return array_key_exists($key, $this->arguments); } /** * ArrayAccess for argument getter. * * @param string $key Array key * * @return mixed * * @throws \InvalidArgumentException If key does not exist in $this->args. */ public function offsetGet($key) { return $this->getArgument($key); } /** * ArrayAccess for argument setter. * * @param string $key Array key to set * @param mixed $value Value */ public function offsetSet($key, $value) { $this->setArgument($key, $value); } /** * ArrayAccess for unset argument. * * @param string $key Array key */ public function offsetUnset($key) { if ($this->hasArgument($key)) { unset($this->arguments[$key]); } } /** * ArrayAccess has argument. * * @param string $key Array key * * @return bool */ public function offsetExists($key) { return $this->hasArgument($key); } /** * IteratorAggregate for iterating over the object like an array. * * @return \ArrayIterator */ public function getIterator() { return new \ArrayIterator($this->arguments); } }
chaoukibenfredj/PSMPFE
vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/GenericEvent.php
PHP
mit
3,863
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a.m.", "p.m." ], "DAY": [ "duminic\u0103", "luni", "mar\u021bi", "miercuri", "joi", "vineri", "s\u00e2mb\u0103t\u0103" ], "ERANAMES": [ "\u00eenainte de Hristos", "dup\u0103 Hristos" ], "ERAS": [ "\u00ee.Hr.", "d.Hr." ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie" ], "SHORTDAY": [ "dum.", "lun.", "mar.", "mie.", "joi", "vin.", "s\u00e2m." ], "SHORTMONTH": [ "ian.", "feb.", "mar.", "apr.", "mai", "iun.", "iul.", "aug.", "sept.", "oct.", "nov.", "dec." ], "STANDALONEMONTH": [ "ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd.MM.y HH:mm", "shortDate": "dd.MM.y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "RON", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "ro", "localeID": "ro", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } if (vf.v != 0 || n == 0 || n != 1 && n % 100 >= 1 && n % 100 <= 19) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} }); }]);
nolsherry/cdnjs
ajax/libs/angular-i18n/1.6.0-rc.2/angular-locale_ro.js
JavaScript
mit
2,913
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], "ERANAMES": [ "Before Christ", "Anno Domini" ], "ERAS": [ "BC", "AD" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], "SHORTDAY": [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], "SHORTMONTH": [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], "STANDALONEMONTH": [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "$", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-\u00a4", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "en-nr", "localeID": "en_NR", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
thefran88/SunGallery
SunGallery/Scripts/i18n/angular-locale_en-nr.js
JavaScript
mit
2,706
YUI.add("console",function(e,t){function et(){et.superclass.constructor.apply(this,arguments)}var n=e.ClassNameManager.getClassName,r="checked",i="clear",s="click",o="collapsed",u="console",a="contentBox",f="disabled",l="entry",c="error",h="height",p="info",d="lastTime",v="pause",m="paused",g="reset",y="startTime",b="title",w="warn",E=".",S=n(u,"button"),x=n(u,"checkbox"),T=n(u,i),N=n(u,"collapse"),C=n(u,o),k=n(u,"controls"),L=n(u,"hd"),A=n(u,"bd"),O=n(u,"ft"),M=n(u,b),_=n(u,l),D=n(u,l,"cat"),P=n(u,l,"content"),H=n(u,l,"meta"),B=n(u,l,"src"),j=n(u,l,"time"),F=n(u,v),I=n(u,v,"label"),q=/^(\S+)\s/,R=/&(?!#?[a-z0-9]+;)/g,U=/>/g,z=/</g,W="&#38;",X="&#62;",V="&#60;",$='<div class="{entry_class} {cat_class} {src_class}"><p class="{entry_meta_class}"><span class="{entry_src_class}">{sourceAndDetail}</span><span class="{entry_cat_class}">{category}</span><span class="{entry_time_class}"> {totalTime}ms (+{elapsedTime}) {localTime}</span></p><pre class="{entry_content_class}">{message}</pre></div>',J=e.Lang,K=e.Node.create,Q=J.isNumber,G=J.isString,Y=e.merge,Z=e.Lang.sub;e.Console=e.extend(et,e.Widget,{_evtCat:null,_head:null,_body:null,_foot:null,_printLoop:null,buffer:null,log:function(){return e.log.apply(e,arguments),this},clearConsole:function(){return this._body.empty(),this._cancelPrintLoop(),this.buffer=[],this},reset:function(){return this.fire(g),this},collapse:function(){return this.set(o,!0),this},expand:function(){return this.set(o,!1),this},printBuffer:function(t){var n=this.buffer,r=e.config.debug,i=[],s=this.get("consoleLimit"),o=this.get("newestOnTop"),u=o?this._body.get("firstChild"):null,a;n.length>s&&n.splice(0,n.length-s),t=Math.min(n.length,t||n.length),e.config.debug=!1;if(!this.get(m)&&this.get("rendered")){for(a=0;a<t&&n.length;++a)i[a]=this._createEntryHTML(n.shift());n.length||this._cancelPrintLoop(),i.length&&(o&&i.reverse(),this._body.insertBefore(K(i.join("")),u),this.get("scrollIntoView")&&this.scrollToLatest(),this._trimOldEntries())}return e.config.debug=r,this},initializer:function(){this._evtCat=e.stamp(this)+"|",this.buffer=[],this.get("logSource").on(this._evtCat+this.get("logEvent"),e.bind("_onLogEvent",this)),this.publish(l,{defaultFn:this._defEntryFn}),this.publish(g,{defaultFn:this._defResetFn}),this.after("rendered",this._schedulePrint)},destructor:function(){var e=this.get("boundingBox");this._cancelPrintLoop(),this.get("logSource").detach(this._evtCat+"*"),e.purge(!0)},renderUI:function(){this._initHead(),this._initBody(),this._initFoot();var e=this.get("style");e!=="block"&&this.get("boundingBox").addClass(this.getClassName(e))},syncUI:function(){this._uiUpdatePaused(this.get(m)),this._uiUpdateCollapsed(this.get(o)),this._uiSetHeight(this.get(h))},bindUI:function(){this.get(a).one("button."+N).on(s,this._onCollapseClick,this),this.get(a).one("input[type=checkbox]."+F).on(s,this._onPauseClick,this),this.get(a).one("button."+T).on(s,this._onClearClick,this),this.after(this._evtCat+"stringsChange",this._afterStringsChange),this.after(this._evtCat+"pausedChange",this._afterPausedChange),this.after(this._evtCat+"consoleLimitChange",this._afterConsoleLimitChange),this.after(this._evtCat+"collapsedChange",this._afterCollapsedChange)},_initHead:function(){var e=this.get(a),t=Y(et.CHROME_CLASSES,{str_collapse:this.get("strings.collapse"),str_title:this.get("strings.title")});this._head=K(Z(et.HEADER_TEMPLATE,t)),e.insertBefore(this._head,e.get("firstChild"))},_initBody:function(){this._body=K(Z(et.BODY_TEMPLATE,et.CHROME_CLASSES)),this.get(a).appendChild(this._body)},_initFoot:function(){var t=Y(et.CHROME_CLASSES,{id_guid:e.guid(),str_pause:this.get("strings.pause"),str_clear:this.get("strings.clear")});this._foot=K(Z(et.FOOTER_TEMPLATE,t)),this.get(a).appendChild(this._foot)},_isInLogLevel:function(e){var t=e.cat,n=this.get("logLevel");if(n!==p){t=t||p,G(t)&&(t=t.toLowerCase());if(t===w&&n===c||t===p&&n!==p)return!1}return!0},_normalizeMessage:function(e){var t=e.msg,n=e.cat,r=e.src,i={time:new Date,message:t,category:n||this.get("defaultCategory"),sourceAndDetail:r||this.get("defaultSource"),source:null,localTime:null,elapsedTime:null,totalTime:null};return i.source=q.test(i.sourceAndDetail)?RegExp.$1:i.sourceAndDetail,i.localTime=i.time.toLocaleTimeString?i.time.toLocaleTimeString():i.time+"",i.elapsedTime=i.time-this.get(d),i.totalTime=i.time-this.get(y),this._set(d,i.time),i},_schedulePrint:function(){!this._printLoop&&!this.get(m)&&this.get("rendered")&&(this._printLoop=e.later(this.get("printTimeout"),this,this.printBuffer,this.get("printLimit"),!0))},_createEntryHTML:function(e){return e=Y(this._htmlEscapeMessage(e),et.ENTRY_CLASSES,{cat_class:this.getClassName(l,e.category),src_class:this.getClassName(l,e.source)}),this.get("entryTemplate").replace(/\{(\w+)\}/g,function(t,n){return n in e?e[n]:""})},scrollToLatest:function(){var e=this.get("newestOnTop")?0:this._body.get("scrollHeight");this._body.set("scrollTop",e)},_htmlEscapeMessage:function(e){return e.message=this._encodeHTML(e.message),e.source=this._encodeHTML(e.source),e.sourceAndDetail=this._encodeHTML(e.sourceAndDetail),e.category=this._encodeHTML(e.category),e},_trimOldEntries:function(){e.config.debug=!1;var t=this._body,n=this.get("consoleLimit"),r=e.config.debug,i,s,o,u;if(t){i=t.all(E+_),u=i.size()-n;if(u>0){this.get("newestOnTop")?(o=n,u=i.size()):o=0,this._body.setStyle("display","none");for(;o<u;++o)s=i.item(o),s&&s.remove();this._body.setStyle("display","")}}e.config.debug=r},_encodeHTML:function(e){return G(e)?e.replace(R,W).replace(z,V).replace(U,X):e},_cancelPrintLoop:function(){this._printLoop&&(this._printLoop.cancel(),this._printLoop=null)},_validateStyle:function(e){return e==="inline"||e==="block"||e==="separate"},_onPauseClick:function(e){this.set(m,e.target.get(r))},_onClearClick:function(e){this.clearConsole()},_onCollapseClick:function(e){this.set(o,!this.get(o))},_validateLogSource:function(t){return t&&e.Lang.isFunction(t.on)},_setLogLevel:function(e){return G(e)&&(e=e.toLowerCase()),e===w||e===c?e:p},_getUseBrowserConsole:function(){var e=this.get("logSource");return e instanceof YUI?e.config.useBrowserConsole:null},_setUseBrowserConsole:function(t){var n=this.get("logSource");return n instanceof YUI?(t=!!t,n.config.useBrowserConsole=t,t):e.Attribute.INVALID_VALUE},_uiSetHeight:function(e){et.superclass._uiSetHeight.apply(this,arguments);if(this._head&&this._foot){var t=this.get("boundingBox").get("offsetHeight")-this._head.get("offsetHeight")-this._foot.get("offsetHeight");this._body.setStyle(h,t+"px")}},_uiSizeCB:function(){},_afterStringsChange:function(e){var t=e.subAttrName?e.subAttrName.split(E)[1]:null,n=this.get(a),r=e.prevVal,s=e.newVal;(!t||t===b)&&r.title!==s.title&&n.all(E+M).setHTML(s.title),(!t||t===v)&&r.pause!==s.pause&&n.all(E+I).setHTML(s.pause),(!t||t===i)&&r.clear!==s.clear&&n.all(E+T).set("value",s.clear)},_afterPausedChange:function(t){var n=t.newVal;t.src!==e.Widget.SRC_UI&&this._uiUpdatePaused(n),n?this._printLoop&&this._cancelPrintLoop():this._schedulePrint()},_uiUpdatePaused:function(e){var t=this._foot.all("input[type=checkbox]."+F);t&&t.set(r,e)},_afterConsoleLimitChange:function(){this._trimOldEntries()},_afterCollapsedChange:function(e){this._uiUpdateCollapsed(e.newVal)},_uiUpdateCollapsed:function(e){var t=this.get("boundingBox"),n=t.all("button."+N),r=e?"addClass":"removeClass",i=this.get("strings."+(e?"expand":"collapse"));t[r](C),n&&n.setHTML(i),this._uiSetHeight(e?this._head.get("offsetHeight"):this.get(h))},_afterVisibleChange:function(e){et.superclass._afterVisibleChange.apply(this,arguments),this._uiUpdateFromHideShow(e.newVal)},_uiUpdateFromHideShow:function(e){e&&this._uiSetHeight(this.get(h))},_onLogEvent:function(t){if(!this.get(f)&&this._isInLogLevel(t)){var n=e.config.debug;e.config.debug=!1,this.fire(l,{message:this._normalizeMessage(t)}),e.config.debug=n}},_defResetFn:function(){this.clearConsole(),this.set(y,new Date),this.set(f,!1),this.set(m,!1)},_defEntryFn:function(e){e.message&&(this.buffer.push(e.message),this._schedulePrint())}},{NAME:u,LOG_LEVEL_INFO:p,LOG_LEVEL_WARN:w,LOG_LEVEL_ERROR:c,ENTRY_CLASSES:{entry_class:_,entry_meta_class:H,entry_cat_class:D,entry_src_class:B,entry_time_class:j,entry_content_class:P},CHROME_CLASSES:{console_hd_class:L,console_bd_class:A,console_ft_class:O,console_controls_class:k,console_checkbox_class:x,console_pause_class:F,console_pause_label_class:I,console_button_class:S,console_clear_class:T,console_collapse_class:N,console_title_class:M},HEADER_TEMPLATE:'<div class="{console_hd_class}"><h4 class="{console_title_class}">{str_title}</h4><button type="button" class="{console_button_class} {console_collapse_class}">{str_collapse}</button></div>',BODY_TEMPLATE:'<div class="{console_bd_class}"></div>',FOOTER_TEMPLATE:'<div class="{console_ft_class}"><div class="{console_controls_class}"><label class="{console_pause_label_class}"><input type="checkbox" class="{console_checkbox_class} {console_pause_class}" value="1" id="{id_guid}"> {str_pause}</label><button type="button" class="{console_button_class} {console_clear_class}">{str_clear}</button></div></div>',ENTRY_TEMPLATE:$,ATTRS:{logEvent:{value:"yui:log",writeOnce:!0,validator:G},logSource:{value:e,writeOnce:!0,validator:function(e){return this._validateLogSource(e)}},strings:{valueFn:function(){return e.Intl.get("console")}},paused:{value:!1,validator:J.isBoolean},defaultCategory:{value:p,validator:G},defaultSource:{value:"global",validator:G},entryTemplate:{value:$,validator:G},logLevel:{value:e.config.logLevel||p,setter:function(e){return this._setLogLevel(e)}},printTimeout:{value:100,validator:Q},printLimit:{value:50,validator:Q},consoleLimit:{value:300,validator:Q},newestOnTop:{value:!0},scrollIntoView:{value:!0},startTime:{value:new Date},lastTime:{value:new Date,readOnly:!0},collapsed:{value:!1},height:{value:"300px"},width:{value:"300px"},useBrowserConsole:{lazyAdd:!1,value:!1,getter:function(){return this._getUseBrowserConsole()},setter:function(e){return this._setUseBrowserConsole(e)}},style:{value:"separate",writeOnce:!0,validator:function(e){return this._validateStyle(e)}}}})},"@VERSION@",{requires:["yui-log","widget"],skinnable:!0,lang:["en","es","ja"]});
gereon/cdnjs
ajax/libs/yui/3.7.3/console/console-min.js
JavaScript
mit
10,214
/* * # Semantic - Modal * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributor * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ( $, window, document, undefined ) { "use strict"; $.fn.modal = function(parameters) { var $allModules = $(this), $window = $(window), $document = $(document), $body = $('body'), moduleSelector = $allModules.selector || '', time = new Date().getTime(), performance = [], query = arguments[0], methodInvoked = (typeof query == 'string'), queryArguments = [].slice.call(arguments, 1), requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) { setTimeout(callback, 0); }, returnedValue ; $allModules .each(function() { var settings = ( $.isPlainObject(parameters) ) ? $.extend(true, {}, $.fn.modal.settings, parameters) : $.extend({}, $.fn.modal.settings), selector = settings.selector, className = settings.className, namespace = settings.namespace, error = settings.error, eventNamespace = '.' + namespace, moduleNamespace = 'module-' + namespace, $module = $(this), $context = $(settings.context), $close = $module.find(selector.close), $allModals, $otherModals, $focusedElement, $dimmable, $dimmer, element = this, instance = $module.data(moduleNamespace), observer, module ; module = { initialize: function() { module.verbose('Initializing dimmer', $context); if($.fn.dimmer === undefined) { module.error(error.dimmer); return; } $dimmable = $context .dimmer({ debug : settings.debug, dimmerName : 'modals', closable : false, useCSS : true, duration : { show : settings.duration * 0.9, hide : settings.duration * 1.1 } }) ; if(settings.detachable) { $dimmable.dimmer('add content', $module); } $dimmer = $dimmable.dimmer('get dimmer'); $otherModals = $module.siblings(selector.modal); $allModals = $otherModals.add($module); module.verbose('Attaching close events', $close); module.bind.events(); module.observeChanges(); module.instantiate(); }, instantiate: function() { module.verbose('Storing instance of modal'); instance = module; $module .data(moduleNamespace, instance) ; }, destroy: function() { module.verbose('Destroying previous modal'); $module .removeData(moduleNamespace) .off(eventNamespace) ; $close.off(eventNamespace); $context.dimmer('destroy'); }, observeChanges: function() { if('MutationObserver' in window) { observer = new MutationObserver(function(mutations) { module.debug('DOM tree modified, refreshing'); module.refresh(); }); observer.observe(element, { childList : true, subtree : true }); module.debug('Setting up mutation observer', observer); } }, refresh: function() { module.remove.scrolling(); module.cacheSizes(); module.set.screenHeight(); module.set.type(); module.set.position(); }, attachEvents: function(selector, event) { var $toggle = $(selector) ; event = $.isFunction(module[event]) ? module[event] : module.toggle ; if($toggle.size() > 0) { module.debug('Attaching modal events to element', selector, event); $toggle .off(eventNamespace) .on('click' + eventNamespace, event) ; } else { module.error(error.notFound, selector); } }, bind: { events: function() { $close .on('click' + eventNamespace, module.event.close) ; $window .on('resize' + eventNamespace, module.event.resize) ; } }, event: { close: function() { module.verbose('Closing element pressed'); if( $(this).is(selector.approve) ) { if($.proxy(settings.onApprove, element)() !== false) { module.hide(); } else { module.verbose('Approve callback returned false cancelling hide'); } } else if( $(this).is(selector.deny) ) { if($.proxy(settings.onDeny, element)() !== false) { module.hide(); } else { module.verbose('Deny callback returned false cancelling hide'); } } else { module.hide(); } }, click: function(event) { if( $(event.target).closest(selector.modal).size() === 0 ) { module.debug('Dimmer clicked, hiding all modals'); if(settings.allowMultiple) { module.hide(); } else { module.hideAll(); } event.stopImmediatePropagation(); } }, debounce: function(method, delay) { clearTimeout(module.timer); module.timer = setTimeout(method, delay); }, keyboard: function(event) { var keyCode = event.which, escapeKey = 27 ; if(keyCode == escapeKey) { if(settings.closable) { module.debug('Escape key pressed hiding modal'); module.hide(); } else { module.debug('Escape key pressed, but closable is set to false'); } event.preventDefault(); } }, resize: function() { if( $dimmable.dimmer('is active') ) { requestAnimationFrame(module.refresh); } } }, toggle: function() { if( module.is.active() || module.is.animating() ) { module.hide(); } else { module.show(); } }, show: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; module.showDimmer(); module.showModal(callback); }, showModal: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; if( !module.is.active() ) { if( $otherModals.filter(':visible').size() > 0 && !settings.allowMultiple) { module.debug('Other modals visible, queueing show animation'); module.hideOthers(module.showModal); } else { $.proxy(settings.onShow, element)(); if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) { module.debug('Showing modal with css animations'); module.cacheSizes(); module.set.position(); module.set.screenHeight(); module.set.type(); $module .transition({ debug : settings.debug, animation : settings.transition + ' in', queue : false, duration : settings.duration, onStart : function() { module.set.clickaway(); }, onComplete : function() { $.proxy(settings.onVisible, element)(); module.add.keyboardShortcuts(); module.save.focus(); module.set.active(); module.set.autofocus(); callback(); } }) ; } else { module.debug('Showing modal with javascript'); $module .fadeIn(settings.duration, settings.easing, function() { $.proxy(settings.onVisible, element)(); module.add.keyboardShortcuts(); module.save.focus(); module.set.active(); callback(); }) ; } } } else { module.debug('Modal is already visible'); } }, showDimmer: function() { if( !$dimmable.dimmer('is active') ) { module.debug('Showing dimmer'); $dimmable.dimmer('show'); } else { module.debug('Dimmer already visible'); } }, hide: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; if($allModals.filter(':visible').size() <= 1) { module.hideDimmer(); } module.hideModal(callback); }, hideDimmer: function() { if( !($dimmable.dimmer('is active') || $dimmable.dimmer('is animating')) ) { module.debug('Dimmer is not visible cannot hide'); return; } module.debug('Hiding dimmer'); module.remove.clickaway(); $dimmable.dimmer('hide', function() { if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) { module.remove.screenHeight(); } module.remove.active(); }); }, hideModal: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; module.debug('Hiding modal'); $.proxy(settings.onHide, element)(); if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) { $module .transition({ debug : settings.debug, animation : settings.transition + ' out', queue : false, duration : settings.duration, onStart : function() { module.remove.keyboardShortcuts(); }, onComplete : function() { $.proxy(settings.onHidden, element)(); module.remove.active(); module.restore.focus(); callback(); } }) ; } else { module.remove.keyboardShortcuts(); $module .fadeOut(settings.duration, settings.easing, function() { $.proxy(settings.onHidden, element)(); module.remove.active(); module.restore.focus(); callback(); }) ; } }, hideAll: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; if( $allModals.is(':visible') ) { module.debug('Hiding all visible modals'); module.hideDimmer(); $allModals .filter(':visible') .modal('hide modal', callback) ; } }, hideOthers: function(callback) { callback = $.isFunction(callback) ? callback : function(){} ; if( $otherModals.is(':visible') ) { module.debug('Hiding other modals', $otherModals); $otherModals .filter(':visible') .modal('hide modal', callback) ; } }, add: { keyboardShortcuts: function() { module.verbose('Adding keyboard shortcuts'); $document .on('keyup' + eventNamespace, module.event.keyboard) ; } }, save: { focus: function() { $focusedElement = $(document.activeElement).blur(); } }, restore: { focus: function() { if($focusedElement && $focusedElement.size() > 0) { $focusedElement.focus(); } } }, remove: { active: function() { $module.removeClass(className.active); }, clickaway: function() { if(settings.closable) { $dimmer .off('click' + eventNamespace) ; } }, screenHeight: function() { if(module.cache.height > module.cache.pageHeight) { module.debug('Removing page height'); $body .css('height', '') ; } }, keyboardShortcuts: function() { module.verbose('Removing keyboard shortcuts'); $document .off('keyup' + eventNamespace) ; }, scrolling: function() { $dimmable.removeClass(className.scrolling); $module.removeClass(className.scrolling); } }, cacheSizes: function() { var modalHeight = $module.outerHeight() ; if(module.cache === undefined || modalHeight !== 0) { module.cache = { pageHeight : $(document).outerHeight(), height : modalHeight + settings.offset, contextHeight : (settings.context == 'body') ? $(window).height() : $dimmable.height() }; } module.debug('Caching modal and container sizes', module.cache); }, can: { fit: function() { return (module.cache.height < module.cache.contextHeight); } }, is: { active: function() { return $module.hasClass(className.active); }, animating: function() { return $module.transition('is supported') ? $module.transition('is animating') : $module.is(':visible') ; }, modernBrowser: function() { // appName for IE11 reports 'Netscape' can no longer use return !(window.ActiveXObject || "ActiveXObject" in window); } }, set: { autofocus: function() { if(settings.autofocus) { var $inputs = $module.find(':input:visible'), $autofocus = $inputs.filter('[autofocus]'), $input = ($autofocus.size() > 0) ? $autofocus : $inputs ; $input.first().focus(); } }, clickaway: function() { if(settings.closable) { $dimmer .off('click' + eventNamespace) .on('click' + eventNamespace, module.event.click) ; } }, screenHeight: function() { if(module.cache.height > module.cache.pageHeight) { module.debug('Modal is taller than page content, resizing page height'); $body .css('height', module.cache.height + settings.padding) ; } else { $body.css('height', ''); } }, active: function() { $module.addClass(className.active); }, scrolling: function() { $dimmable.addClass(className.scrolling); $module.addClass(className.scrolling); }, type: function() { if(module.can.fit()) { module.verbose('Modal fits on screen'); module.remove.scrolling(); } else { module.verbose('Modal cannot fit on screen setting to scrolling'); module.set.scrolling(); } }, position: function() { module.verbose('Centering modal on page', module.cache); if(module.can.fit()) { $module .css({ top: '', marginTop: -(module.cache.height / 2) }) ; } else { $module .css({ marginTop : '', top : $document.scrollTop() }) ; } } }, setting: function(name, value) { module.debug('Changing setting', name, value); if( $.isPlainObject(name) ) { $.extend(true, settings, name); } else if(value !== undefined) { settings[name] = value; } else { return settings[name]; } }, internal: function(name, value) { if( $.isPlainObject(name) ) { $.extend(true, module, name); } else if(value !== undefined) { module[name] = value; } else { return module[name]; } }, debug: function() { if(settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.debug.apply(console, arguments); } } }, verbose: function() { if(settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.verbose.apply(console, arguments); } } }, error: function() { module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); module.error.apply(console, arguments); }, performance: { log: function(message) { var currentTime, executionTime, previousTime ; if(settings.performance) { currentTime = new Date().getTime(); previousTime = time || currentTime; executionTime = currentTime - previousTime; time = currentTime; performance.push({ 'Name' : message[0], 'Arguments' : [].slice.call(message, 1) || '', 'Element' : element, 'Execution Time' : executionTime }); } clearTimeout(module.performance.timer); module.performance.timer = setTimeout(module.performance.display, 100); }, display: function() { var title = settings.name + ':', totalTime = 0 ; time = false; clearTimeout(module.performance.timer); $.each(performance, function(index, data) { totalTime += data['Execution Time']; }); title += ' ' + totalTime + 'ms'; if(moduleSelector) { title += ' \'' + moduleSelector + '\''; } if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { console.groupCollapsed(title); if(console.table) { console.table(performance); } else { $.each(performance, function(index, data) { console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); }); } console.groupEnd(); } performance = []; } }, invoke: function(query, passedArguments, context) { var object = instance, maxDepth, found, response ; passedArguments = passedArguments || queryArguments; context = element || context; if(typeof query == 'string' && object !== undefined) { query = query.split(/[\. ]/); maxDepth = query.length - 1; $.each(query, function(depth, value) { var camelCaseValue = (depth != maxDepth) ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) : query ; if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { object = object[camelCaseValue]; } else if( object[camelCaseValue] !== undefined ) { found = object[camelCaseValue]; return false; } else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { object = object[value]; } else if( object[value] !== undefined ) { found = object[value]; return false; } else { return false; } }); } if ( $.isFunction( found ) ) { response = found.apply(context, passedArguments); } else if(found !== undefined) { response = found; } if($.isArray(returnedValue)) { returnedValue.push(response); } else if(returnedValue !== undefined) { returnedValue = [returnedValue, response]; } else if(response !== undefined) { returnedValue = response; } return found; } }; if(methodInvoked) { if(instance === undefined) { module.initialize(); } module.invoke(query); } else { if(instance !== undefined) { module.destroy(); } module.initialize(); } }) ; return (returnedValue !== undefined) ? returnedValue : this ; }; $.fn.modal.settings = { name : 'Modal', namespace : 'modal', debug : false, verbose : true, performance : true, allowMultiple : false, detachable : true, closable : true, autofocus : true, context : 'body', duration : 500, easing : 'easeOutExpo', offset : 0, transition : 'scale', padding : 30, onShow : function(){}, onHide : function(){}, onVisible : function(){}, onHidden : function(){}, onApprove : function(){ return true; }, onDeny : function(){ return true; }, selector : { close : '.close, .actions .button', approve : '.actions .positive, .actions .approve, .actions .ok', deny : '.actions .negative, .actions .deny, .actions .cancel', modal : '.ui.modal' }, error : { dimmer : 'UI Dimmer, a required component is not included in this page', method : 'The method you called is not defined.', notFound : 'The element you specified could not be found' }, className : { active : 'active', scrolling : 'scrolling' } }; })( jQuery, window , document );
lobbin/cdnjs
ajax/libs/semantic-ui/1.0.1/components/modal.js
JavaScript
mit
24,543
/* * # Semantic - Checkbox * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributor * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ( $, window, document, undefined ) { "use strict"; $.fn.checkbox = function(parameters) { var $allModules = $(this), moduleSelector = $allModules.selector || '', time = new Date().getTime(), performance = [], query = arguments[0], methodInvoked = (typeof query == 'string'), queryArguments = [].slice.call(arguments, 1), returnedValue ; $allModules .each(function() { var settings = $.extend(true, {}, $.fn.checkbox.settings, parameters), className = settings.className, namespace = settings.namespace, selector = settings.selector, error = settings.error, eventNamespace = '.' + namespace, moduleNamespace = 'module-' + namespace, $module = $(this), $label = $(this).next(selector.label).first(), $input = $(this).find(selector.input), instance = $module.data(moduleNamespace), observer, element = this, module ; module = { initialize: function() { module.verbose('Initializing checkbox', settings); $module .on('click' + eventNamespace, module.toggle) .on('keydown' + eventNamespace, selector.input, module.event.keydown) ; if( module.is.checked() ) { module.set.checked(); if(settings.fireOnInit) { $.proxy(settings.onChecked, $input.get())(); } } else { module.remove.checked(); if(settings.fireOnInit) { $.proxy(settings.onUnchecked, $input.get())(); } } module.observeChanges(); module.instantiate(); }, instantiate: function() { module.verbose('Storing instance of module', module); instance = module; $module .data(moduleNamespace, module) ; }, destroy: function() { module.verbose('Destroying previous module'); $module .off(eventNamespace) .removeData(moduleNamespace) ; $input .off(eventNamespace, module.event.keydown) ; $label .off(eventNamespace) ; }, refresh: function() { $module = $(this); $label = $(this).next(selector.label).first(); $input = $(this).find(selector.input); }, observeChanges: function() { if('MutationObserver' in window) { observer = new MutationObserver(function(mutations) { module.debug('DOM tree modified, updating selector cache'); module.refresh(); }); observer.observe(element, { childList : true, subtree : true }); module.debug('Setting up mutation observer', observer); } }, attachEvents: function(selector, event) { var $toggle = $(selector) ; event = $.isFunction(module[event]) ? module[event] : module.toggle ; if($toggle.size() > 0) { module.debug('Attaching checkbox events to element', selector, event); $toggle .on('click' + eventNamespace, event) ; } else { module.error(error.notFound); } }, event: { keydown: function(event) { var key = event.which, keyCode = { enter : 13, escape : 27 } ; if( key == keyCode.escape) { module.verbose('Escape key pressed blurring field'); $module .blur() ; } if(!event.ctrlKey && key == keyCode.enter) { module.verbose('Enter key pressed, toggling checkbox'); $.proxy(module.toggle, this)(); event.preventDefault(); } } }, is: { radio: function() { return $module.hasClass(className.radio); }, checked: function() { return $input.prop('checked') !== undefined && $input.prop('checked'); }, unchecked: function() { return !module.is.checked(); } }, can: { change: function() { return !( $module.hasClass(className.disabled) || $module.hasClass(className.readOnly) || $input.prop('disabled') ); }, uncheck: function() { return (typeof settings.uncheckable === 'boolean') ? settings.uncheckable : !module.is.radio() ; } }, set: { checked: function() { $module.addClass(className.checked); }, tab: function() { if( $input.attr('tabindex') === undefined) { $input .attr('tabindex', 0) ; } } }, remove: { checked: function() { $module.removeClass(className.checked); } }, enable: function() { module.debug('Enabling checkbox functionality'); $module.removeClass(className.disabled); $input.prop('disabled', false); $.proxy(settings.onEnabled, $input.get())(); }, disable: function() { module.debug('Disabling checkbox functionality'); $module.addClass(className.disabled); $input.prop('disabled', 'disabled'); $.proxy(settings.onDisabled, $input.get())(); }, check: function() { module.debug('Enabling checkbox', $input); $input .prop('checked', true) .trigger('change') ; module.set.checked(); $.proxy(settings.onChange, $input.get())(); $.proxy(settings.onChecked, $input.get())(); }, uncheck: function() { module.debug('Disabling checkbox'); $input .prop('checked', false) .trigger('change') ; module.remove.checked(); $.proxy(settings.onChange, $input.get())(); $.proxy(settings.onUnchecked, $input.get())(); }, toggle: function(event) { if( !module.can.change() ) { console.log(module.can.change()); module.debug('Checkbox is read-only or disabled, ignoring toggle'); return; } module.verbose('Determining new checkbox state'); if( module.is.unchecked() ) { module.check(); } else if( module.is.checked() && module.can.uncheck() ) { module.uncheck(); } }, setting: function(name, value) { module.debug('Changing setting', name, value); if( $.isPlainObject(name) ) { $.extend(true, settings, name); } else if(value !== undefined) { settings[name] = value; } else { return settings[name]; } }, internal: function(name, value) { if( $.isPlainObject(name) ) { $.extend(true, module, name); } else if(value !== undefined) { module[name] = value; } else { return module[name]; } }, debug: function() { if(settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.debug.apply(console, arguments); } } }, verbose: function() { if(settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.verbose.apply(console, arguments); } } }, error: function() { module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); module.error.apply(console, arguments); }, performance: { log: function(message) { var currentTime, executionTime, previousTime ; if(settings.performance) { currentTime = new Date().getTime(); previousTime = time || currentTime; executionTime = currentTime - previousTime; time = currentTime; performance.push({ 'Name' : message[0], 'Arguments' : [].slice.call(message, 1) || '', 'Element' : element, 'Execution Time' : executionTime }); } clearTimeout(module.performance.timer); module.performance.timer = setTimeout(module.performance.display, 100); }, display: function() { var title = settings.name + ':', totalTime = 0 ; time = false; clearTimeout(module.performance.timer); $.each(performance, function(index, data) { totalTime += data['Execution Time']; }); title += ' ' + totalTime + 'ms'; if(moduleSelector) { title += ' \'' + moduleSelector + '\''; } if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { console.groupCollapsed(title); if(console.table) { console.table(performance); } else { $.each(performance, function(index, data) { console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); }); } console.groupEnd(); } performance = []; } }, invoke: function(query, passedArguments, context) { var object = instance, maxDepth, found, response ; passedArguments = passedArguments || queryArguments; context = element || context; if(typeof query == 'string' && object !== undefined) { query = query.split(/[\. ]/); maxDepth = query.length - 1; $.each(query, function(depth, value) { var camelCaseValue = (depth != maxDepth) ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) : query ; if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { object = object[camelCaseValue]; } else if( object[camelCaseValue] !== undefined ) { found = object[camelCaseValue]; return false; } else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { object = object[value]; } else if( object[value] !== undefined ) { found = object[value]; return false; } else { return false; } }); } if ( $.isFunction( found ) ) { response = found.apply(context, passedArguments); } else if(found !== undefined) { response = found; } if($.isArray(returnedValue)) { returnedValue.push(response); } else if(returnedValue !== undefined) { returnedValue = [returnedValue, response]; } else if(response !== undefined) { returnedValue = response; } return found; } }; if(methodInvoked) { if(instance === undefined) { module.initialize(); } module.invoke(query); } else { if(instance !== undefined) { module.destroy(); } module.initialize(); } }) ; return (returnedValue !== undefined) ? returnedValue : this ; }; $.fn.checkbox.settings = { name : 'Checkbox', namespace : 'checkbox', debug : false, verbose : true, performance : true, // delegated event context uncheckable : 'auto', fireOnInit : true, onChange : function(){}, onChecked : function(){}, onUnchecked : function(){}, onEnabled : function(){}, onDisabled : function(){}, className : { checked : 'checked', disabled : 'disabled', radio : 'radio', readOnly : 'read-only' }, error : { method : 'The method you called is not defined.' }, selector : { input : 'input[type=checkbox], input[type=radio]', label : 'label' } }; })( jQuery, window , document );
tengyifei/cdnjs
ajax/libs/semantic-ui/1.0.1/components/checkbox.js
JavaScript
mit
13,723
"use strict";angular.module("ngLocale",[],["$provide",function(a){var d={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function c(f){f=f+"";var e=f.indexOf(".");return(e==-1)?0:f.length-e-1}function b(j,e){var g=e;if(undefined===g){g=Math.min(c(j),3)}var i=Math.pow(10,g);var h=((j*i)|0)%i;return{v:g,f:h}}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["formiddag","ettermiddag"],DAY:["s\u00f8ndag","m\u00e5ndag","tysdag","onsdag","torsdag","fredag","laurdag"],MONTH:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],SHORTDAY:["s\u00f8.","m\u00e5.","ty.","on.","to.","fr.","la."],SHORTMONTH:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],fullDate:"EEEE d. MMMM y",longDate:"d. MMMM y",medium:"d. MMM y HH:mm:ss",mediumDate:"d. MMM y",mediumTime:"HH:mm:ss","short":"dd.MM.y HH:mm",shortDate:"dd.MM.y",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"kr",DECIMAL_SEP:",",GROUP_SEP:"\u00a0",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"nn",pluralCat:function(h,f){var g=h|0;var e=b(h,f);if(g==1&&e.v==0){return d.ONE}return d.OTHER}})}]);
sufuf3/cdnjs
ajax/libs/angular-i18n/1.3.13/angular-locale_nn.min.js
JavaScript
mit
1,325
"use strict";angular.module("ngLocale",[],["$provide",function(a){var d={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function c(f){f=f+"";var e=f.indexOf(".");return(e==-1)?0:f.length-e-1}function b(j,e){var g=e;if(undefined===g){g=Math.min(c(j),3)}var i=Math.pow(10,g);var h=((j*i)|0)%i;return{v:g,f:h}}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["dopo\u0142dnja","popo\u0142dnju"],DAY:["njed\u017aela","p\u00f3nd\u017aela","wutora","srjeda","\u0161tw\u00f3rtk","pjatk","sobota"],MONTH:["januara","februara","m\u011brca","apryla","meje","junija","julija","awgusta","septembra","oktobra","nowembra","decembra"],SHORTDAY:["nje","p\u00f3n","wut","srj","\u0161tw","pja","sob"],SHORTMONTH:["jan.","feb.","m\u011br.","apr.","mej.","jun.","jul.","awg.","sep.","okt.","now.","dec."],fullDate:"EEEE, d. MMMM y",longDate:"d. MMMM y",medium:"d.M.y H:mm:ss",mediumDate:"d.M.y",mediumTime:"H:mm:ss","short":"d.M.yy H:mm 'hod\u017a'.",shortDate:"d.M.yy",shortTime:"H:mm 'hod\u017a'."},NUMBER_FORMATS:{CURRENCY_SYM:"\u20ac",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"hsb-de",pluralCat:function(h,f){var g=h|0;var e=b(h,f);if(g==1&&e.v==0){return d.ONE}return d.OTHER}})}]);
tjbp/cdnjs
ajax/libs/angular-i18n/1.3.14/angular-locale_hsb-de.min.js
JavaScript
mit
1,389
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["da manh\u00e3","da tarde"],DAY:["domingo","segunda-feira","ter\u00e7a-feira","quarta-feira","quinta-feira","sexta-feira","s\u00e1bado"],MONTH:["janeiro","fevereiro","mar\u00e7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],SHORTDAY:["dom","seg","ter","qua","qui","sex","s\u00e1b"],SHORTMONTH:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],fullDate:"EEEE, d 'de' MMMM 'de' y",longDate:"d 'de' MMMM 'de' y",medium:"dd/MM/y HH:mm:ss",mediumDate:"dd/MM/y",mediumTime:"HH:mm:ss","short":"dd/MM/yy HH:mm",shortDate:"dd/MM/yy",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"MTn",DECIMAL_SEP:",",GROUP_SEP:"\u00a0",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"pt-mz",pluralCat:function(d,c){if(d>=0&&d<=2&&d!=2){return b.ONE}return b.OTHER}})}]);
KOLANICH/cdnjs
ajax/libs/angular-i18n/1.3.10/angular-locale_pt-mz.min.js
JavaScript
mit
1,166
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["\u0442\u0430\u04a3\u043a\u044b","\u0442\u04af\u0448\u0442\u04e9\u043d \u043a\u0438\u0439\u0438\u043d"],DAY:["\u0436\u0435\u043a\u0448\u0435\u043c\u0431\u0438","\u0434\u04af\u0439\u0448\u04e9\u043c\u0431\u04af","\u0448\u0435\u0439\u0448\u0435\u043c\u0431\u0438","\u0448\u0430\u0440\u0448\u0435\u043c\u0431\u0438","\u0431\u0435\u0439\u0448\u0435\u043c\u0431\u0438","\u0436\u0443\u043c\u0430","\u0438\u0448\u0435\u043c\u0431\u0438"],MONTH:["\u044f\u043d\u0432\u0430\u0440\u044c","\u0444\u0435\u0432\u0440\u0430\u043b\u044c","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0435\u043b\u044c","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u043e\u043a\u0442\u044f\u0431\u0440\u044c","\u043d\u043e\u044f\u0431\u0440\u044c","\u0434\u0435\u043a\u0430\u0431\u0440\u044c"],SHORTDAY:["\u0436\u0435\u043a.","\u0434\u04af\u0439.","\u0448\u0435\u0439\u0448.","\u0448\u0430\u0440\u0448.","\u0431\u0435\u0439\u0448.","\u0436\u0443\u043c\u0430","\u0438\u0448\u043c."],SHORTMONTH:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440.","\u0430\u043f\u0440.","\u043c\u0430\u0439","\u0438\u044e\u043d.","\u0438\u044e\u043b.","\u0430\u0432\u0433.","\u0441\u0435\u043d.","\u043e\u043a\u0442.","\u043d\u043e\u044f.","\u0434\u0435\u043a."],fullDate:"EEEE, d-MMMM, y-'\u0436'.",longDate:"y MMMM d",medium:"y MMM d HH:mm:ss",mediumDate:"y MMM d",mediumTime:"HH:mm:ss","short":"dd.MM.yy HH:mm",shortDate:"dd.MM.yy",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20ac",DECIMAL_SEP:",",GROUP_SEP:"\u00a0",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"ky-cyrl",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
LeaYeh/cdnjs
ajax/libs/angular-i18n/1.3.12/angular-locale_ky-cyrl.min.js
JavaScript
mit
2,091
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],MONTH:["urtarrilak","otsailak","martxoak","apirilak","maiatzak","ekainak","uztailak","abuztuak","irailak","urriak","azaroak","abenduak"],SHORTDAY:["ig.","al.","ar.","az.","og.","or.","lr."],SHORTMONTH:["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe."],fullDate:"y('e')'ko' MMMM d, EEEE",longDate:"y('e')'ko' MMMM d",medium:"y MMM d HH:mm:ss",mediumDate:"y MMM d",mediumTime:"HH:mm:ss","short":"y/MM/dd HH:mm",shortDate:"y/MM/dd",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20ac",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"eu-es",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
cdnjs/cdnjs
ajax/libs/angular-i18n/1.4.0-beta.2/angular-locale_eu-es.min.js
JavaScript
mit
1,128
"use strict";angular.module("ngLocale",[],["$provide",function(a){var d={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function c(f){f=f+"";var e=f.indexOf(".");return(e==-1)?0:f.length-e-1}function b(j,e){var g=e;if(undefined===g){g=Math.min(c(j),3)}var i=Math.pow(10,g);var h=((j*i)|0)%i;return{v:g,f:h}}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["OD","OT"],DAY:["Jumapil","Wuok Tich","Tich Ariyo","Tich Adek","Tich Ang\u2019wen","Tich Abich","Ngeso"],MONTH:["Dwe mar Achiel","Dwe mar Ariyo","Dwe mar Adek","Dwe mar Ang\u2019wen","Dwe mar Abich","Dwe mar Auchiel","Dwe mar Abiriyo","Dwe mar Aboro","Dwe mar Ochiko","Dwe mar Apar","Dwe mar gi achiel","Dwe mar Apar gi ariyo"],SHORTDAY:["JMP","WUT","TAR","TAD","TAN","TAB","NGS"],SHORTMONTH:["DAC","DAR","DAD","DAN","DAH","DAU","DAO","DAB","DOC","DAP","DGI","DAG"],fullDate:"EEEE, d MMMM y",longDate:"d MMMM y",medium:"d MMM y h:mm:ss a",mediumDate:"d MMM y",mediumTime:"h:mm:ss a","short":"dd/MM/y h:mm a",shortDate:"dd/MM/y",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"Ksh",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a4",posPre:"",posSuf:"\u00a4"}]},id:"luo-ke",pluralCat:function(h,f){var g=h|0;var e=b(h,f);if(g==1&&e.v==0){return d.ONE}return d.OTHER}})}]);
tonytomov/cdnjs
ajax/libs/angular-i18n/1.4.0-beta.1/angular-locale_luo-ke.min.js
JavaScript
mit
1,398
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["\u04ae\u04e8","\u04ae\u0425"],DAY:["\u043d\u044f\u043c","\u0434\u0430\u0432\u0430\u0430","\u043c\u044f\u0433\u043c\u0430\u0440","\u043b\u0445\u0430\u0433\u0432\u0430","\u043f\u04af\u0440\u044d\u0432","\u0431\u0430\u0430\u0441\u0430\u043d","\u0431\u044f\u043c\u0431\u0430"],MONTH:["\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"],SHORTDAY:["\u041d\u044f","\u0414\u0430","\u041c\u044f","\u041b\u0445","\u041f\u04af","\u0411\u0430","\u0411\u044f"],SHORTMONTH:["1-\u0440 \u0441\u0430\u0440","2-\u0440 \u0441\u0430\u0440","3-\u0440 \u0441\u0430\u0440","4-\u0440 \u0441\u0430\u0440","5-\u0440 \u0441\u0430\u0440","6-\u0440 \u0441\u0430\u0440","7-\u0440 \u0441\u0430\u0440","8-\u0440 \u0441\u0430\u0440","9-\u0440 \u0441\u0430\u0440","10-\u0440 \u0441\u0430\u0440","11-\u0440 \u0441\u0430\u0440","12-\u0440 \u0441\u0430\u0440"],fullDate:"EEEE, y '\u043e\u043d\u044b' MM '\u0441\u0430\u0440\u044b\u043d' d",longDate:"y '\u043e\u043d\u044b' MM '\u0441\u0430\u0440\u044b\u043d' d",medium:"y MMM d HH:mm:ss",mediumDate:"y MMM d",mediumTime:"HH:mm:ss","short":"y-MM-dd HH:mm",shortDate:"y-MM-dd",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20ae",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4\u00a0-",negSuf:"",posPre:"\u00a4\u00a0",posSuf:""}]},id:"mn-cyrl-mn",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
nolsherry/cdnjs
ajax/libs/angular-i18n/1.3.9/angular-locale_mn-cyrl-mn.min.js
JavaScript
mit
2,635
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["da manh\u00e3","da tarde"],DAY:["domingo","segunda-feira","ter\u00e7a-feira","quarta-feira","quinta-feira","sexta-feira","s\u00e1bado"],MONTH:["janeiro","fevereiro","mar\u00e7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],SHORTDAY:["dom","seg","ter","qua","qui","sex","s\u00e1b"],SHORTMONTH:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],fullDate:"EEEE, d 'de' MMMM 'de' y",longDate:"d 'de' MMMM 'de' y",medium:"dd/MM/y HH:mm:ss",mediumDate:"dd/MM/y",mediumTime:"HH:mm:ss","short":"dd/MM/yy HH:mm",shortDate:"dd/MM/yy",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"MOP",DECIMAL_SEP:",",GROUP_SEP:"\u00a0",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"pt-mo",pluralCat:function(d,c){if(d>=0&&d<=2&&d!=2){return b.ONE}return b.OTHER}})}]);
jdh8/cdnjs
ajax/libs/angular-i18n/1.3.7/angular-locale_pt-mo.min.js
JavaScript
mit
1,166
"use strict";angular.module("ngLocale",[],["$provide",function(a){var d={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function c(f){f=f+"";var e=f.indexOf(".");return(e==-1)?0:f.length-e-1}function b(j,e){var g=e;if(undefined===g){g=Math.min(c(j),3)}var i=Math.pow(10,g);var h=((j*i)|0)%i;return{v:g,f:h}}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["am","pm"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fullDate:"EEEE d MMMM y",longDate:"d MMM y",medium:"dd MMM y HH:mm:ss",mediumDate:"dd MMM y",mediumTime:"HH:mm:ss","short":"dd/MM/yy HH:mm",shortDate:"dd/MM/yy",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"en-150",pluralCat:function(h,f){var g=h|0;var e=b(h,f);if(g==1&&e.v==0){return d.ONE}return d.OTHER}})}]);
jackdoyle/cdnjs
ajax/libs/angular-i18n/1.3.5/angular-locale_en-150.min.js
JavaScript
mit
1,284
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["TO","TK"],DAY:["yakshanba","dushanba","seshanba","chorshanba","payshanba","juma","shanba"],MONTH:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"],SHORTDAY:["Yaksh","Dush","Sesh","Chor","Pay","Jum","Shan"],SHORTMONTH:["Yanv","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noya","Dek"],fullDate:"EEEE, y MMMM dd",longDate:"y MMMM d",medium:"y MMM d HH:mm:ss",mediumDate:"y MMM d",mediumTime:"HH:mm:ss","short":"yy/MM/dd HH:mm",shortDate:"yy/MM/dd",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20ac",DECIMAL_SEP:",",GROUP_SEP:"\u00a0",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4\u00a0-",negSuf:"",posPre:"\u00a4\u00a0",posSuf:""}]},id:"uz-latn",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
perfect-pixell/cdnjs
ajax/libs/angular-i18n/1.3.9/angular-locale_uz-latn.min.js
JavaScript
mit
1,081
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["a.\u00a0m.","p.\u00a0m."],DAY:["domingo","lunes","martes","mi\u00e9rcoles","jueves","viernes","s\u00e1bado"],MONTH:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","setiembre","octubre","noviembre","diciembre"],SHORTDAY:["dom.","lun.","mar.","mi\u00e9.","jue.","vie.","s\u00e1b."],SHORTMONTH:["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","set.","oct.","nov.","dic."],fullDate:"EEEE, d 'de' MMMM 'de' y",longDate:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y h:mm:ss a",mediumDate:"d 'de' MMM 'de' y",mediumTime:"h:mm:ss a","short":"d/M/yy h:mm a",shortDate:"d/M/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20a1",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4-",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"es-cr",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
liubo404/cdnjs
ajax/libs/angular-i18n/1.4.0-beta.5/angular-locale_es-cr.min.js
JavaScript
mit
1,151
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["\u1325\u12cb\u1275","\u12a8\u1230\u12d3\u1275"],DAY:["\u12a5\u1211\u12f5","\u1230\u129e","\u121b\u12ad\u1230\u129e","\u1228\u1261\u12d5","\u1210\u1219\u1235","\u12d3\u122d\u1265","\u1245\u12f3\u121c"],MONTH:["\u1303\u1295\u12e9\u12c8\u122a","\u134c\u1265\u1229\u12c8\u122a","\u121b\u122d\u127d","\u12a4\u1355\u122a\u120d","\u121c\u12ed","\u1301\u1295","\u1301\u120b\u12ed","\u12a6\u1308\u1235\u1275","\u1234\u1355\u1274\u121d\u1260\u122d","\u12a6\u12ad\u1276\u1260\u122d","\u1296\u126c\u121d\u1260\u122d","\u12f2\u1234\u121d\u1260\u122d"],SHORTDAY:["\u12a5\u1211\u12f5","\u1230\u129e","\u121b\u12ad\u1230","\u1228\u1261\u12d5","\u1210\u1219\u1235","\u12d3\u122d\u1265","\u1245\u12f3\u121c"],SHORTMONTH:["\u1303\u1295\u12e9","\u134c\u1265\u1229","\u121b\u122d\u127d","\u12a4\u1355\u122a","\u121c\u12ed","\u1301\u1295","\u1301\u120b\u12ed","\u12a6\u1308\u1235","\u1234\u1355\u1274","\u12a6\u12ad\u1276","\u1296\u126c\u121d","\u12f2\u1234\u121d"],fullDate:"EEEE, d MMMM y",longDate:"d MMMM y",medium:"d MMM y h:mm:ss a",mediumDate:"d MMM y",mediumTime:"h:mm:ss a","short":"dd/MM/y h:mm a",shortDate:"dd/MM/y",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"Birr",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4-",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"am-et",pluralCat:function(e,c){var d=e|0;if(d==0||e==1){return b.ONE}return b.OTHER}})}]);
AMoo-Miki/cdnjs
ajax/libs/angular-i18n/1.4.0-beta.0/angular-locale_am-et.min.js
JavaScript
mit
1,675
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["a. m.","p. m."],DAY:["domingo","lunes","martes","mi\u00e9rcoles","jueves","viernes","s\u00e1bado"],MONTH:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],SHORTDAY:["dom.","lun.","mar.","mi\u00e9.","jue.","vie.","s\u00e1b."],SHORTMONTH:["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],fullDate:"EEEE, d 'de' MMMM 'de' y",longDate:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y H:mm:ss",mediumDate:"d 'de' MMM 'de' y",mediumTime:"H:mm:ss","short":"d/M/yy H:mm",shortDate:"d/M/yy",shortTime:"H:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20ac",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:"\u00a0\u00a4",posPre:"",posSuf:"\u00a0\u00a4"}]},id:"es-ea",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
drewfreyling/cdnjs
ajax/libs/angular-i18n/1.3.4/angular-locale_es-ea.min.js
JavaScript
mit
1,147
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["a.m.","p.m."],DAY:["s\u00f8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\u00f8rdag"],MONTH:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],SHORTDAY:["s\u00f8n.","man.","tir.","ons.","tor.","fre.","l\u00f8r."],SHORTMONTH:["jan.","feb.","mar.","apr.","mai","jun.","jul.","aug.","sep.","okt.","nov.","des."],fullDate:"EEEE d. MMMM y",longDate:"d. MMMM y",medium:"d. MMM y HH.mm.ss",mediumDate:"d. MMM y",mediumTime:"HH.mm.ss","short":"dd.MM.y HH.mm",shortDate:"dd.MM.y",shortTime:"HH.mm"},NUMBER_FORMATS:{CURRENCY_SYM:"kr",DECIMAL_SEP:",",GROUP_SEP:"\u00a0",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4\u00a0-",negSuf:"",posPre:"\u00a4\u00a0",posSuf:""}]},id:"no-no",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
nolsherry/cdnjs
ajax/libs/angular-i18n/1.4.0-beta.3/angular-locale_no-no.min.js
JavaScript
mit
1,105
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["\u04ae\u04e8","\u04ae\u0425"],DAY:["\u043d\u044f\u043c","\u0434\u0430\u0432\u0430\u0430","\u043c\u044f\u0433\u043c\u0430\u0440","\u043b\u0445\u0430\u0433\u0432\u0430","\u043f\u04af\u0440\u044d\u0432","\u0431\u0430\u0430\u0441\u0430\u043d","\u0431\u044f\u043c\u0431\u0430"],MONTH:["\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"],SHORTDAY:["\u041d\u044f","\u0414\u0430","\u041c\u044f","\u041b\u0445","\u041f\u04af","\u0411\u0430","\u0411\u044f"],SHORTMONTH:["1-\u0440 \u0441\u0430\u0440","2-\u0440 \u0441\u0430\u0440","3-\u0440 \u0441\u0430\u0440","4-\u0440 \u0441\u0430\u0440","5-\u0440 \u0441\u0430\u0440","6-\u0440 \u0441\u0430\u0440","7-\u0440 \u0441\u0430\u0440","8-\u0440 \u0441\u0430\u0440","9-\u0440 \u0441\u0430\u0440","10-\u0440 \u0441\u0430\u0440","11-\u0440 \u0441\u0430\u0440","12-\u0440 \u0441\u0430\u0440"],fullDate:"EEEE, y '\u043e\u043d\u044b' MM '\u0441\u0430\u0440\u044b\u043d' d",longDate:"y '\u043e\u043d\u044b' MM '\u0441\u0430\u0440\u044b\u043d' d",medium:"y MMM d HH:mm:ss",mediumDate:"y MMM d",mediumTime:"HH:mm:ss","short":"y-MM-dd HH:mm",shortDate:"y-MM-dd",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20ac",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4\u00a0-",negSuf:"",posPre:"\u00a4\u00a0",posSuf:""}]},id:"mn-cyrl",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
drewfreyling/cdnjs
ajax/libs/angular-i18n/1.3.13/angular-locale_mn-cyrl.min.js
JavaScript
mit
2,632
YUI.add('series-bar-stacked', function (Y, NAME) { /** * Provides functionality for creating a stacked bar series. * * @module charts * @submodule series-bar-stacked */ var Y_Lang = Y.Lang; /** * The StackedBarSeries renders bar chart in which series are stacked horizontally to show * their contribution to the cumulative total. * * @class StackedBarSeries * @extends BarSeries * @uses StackingUtil * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule series-bar-stacked */ Y.StackedBarSeries = Y.Base.create("stackedBarSeries", Y.BarSeries, [Y.StackingUtil], { /** * @protected * * Draws the series. * * @method drawSeries */ drawSeries: function() { if(this.get("xcoords").length < 1) { return; } var isNumber = Y_Lang.isNumber, style = this._copyObject(this.get("styles").marker), w = style.width, h = style.height, xcoords = this.get("xcoords"), ycoords = this.get("ycoords"), i = 0, len = xcoords.length, top = ycoords[0], seriesCollection = this.get("seriesTypeCollection"), ratio, order = this.get("order"), graphOrder = this.get("graphOrder"), left, marker, lastCollection, negativeBaseValues, positiveBaseValues, fillColors, borderColors, useOrigin = order === 0, totalHeight = len * h, dimensions = { width: [], height: [] }, xvalues = [], yvalues = [], groupMarkers = this.get("groupMarkers"); if(Y_Lang.isArray(style.fill.color)) { fillColors = style.fill.color.concat(); } if(Y_Lang.isArray(style.border.color)) { borderColors = style.border.color.concat(); } this._createMarkerCache(); if(totalHeight > this.get("height")) { ratio = this.get("height")/totalHeight; h *= ratio; h = Math.max(h, 1); } if(!useOrigin) { lastCollection = seriesCollection[order - 1]; negativeBaseValues = lastCollection.get("negativeBaseValues"); positiveBaseValues = lastCollection.get("positiveBaseValues"); if(!negativeBaseValues || !positiveBaseValues) { useOrigin = true; positiveBaseValues = []; negativeBaseValues = []; } } else { negativeBaseValues = []; positiveBaseValues = []; } this.set("negativeBaseValues", negativeBaseValues); this.set("positiveBaseValues", positiveBaseValues); for(i = 0; i < len; ++i) { top = ycoords[i]; left = xcoords[i]; if(!isNumber(top) || !isNumber(left)) { if(useOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = this._leftOrigin; } this._markers.push(null); continue; } if(useOrigin) { w = Math.abs(left - this._leftOrigin); if(left > this._leftOrigin) { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; left -= w; } else if(left < this._leftOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = left; } else { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; } } else { if(left < this._leftOrigin) { left = negativeBaseValues[i] - (this._leftOrigin - xcoords[i]); w = negativeBaseValues[i] - left; negativeBaseValues[i] = left; } else if(left >= this._leftOrigin) { left += (positiveBaseValues[i] - this._leftOrigin); w = left - positiveBaseValues[i]; positiveBaseValues[i] = left; left -= w; } } if(!isNaN(w) && w > 0) { top -= h/2; if(groupMarkers) { dimensions.width[i] = w; dimensions.height[i] = h; xvalues.push(left); yvalues.push(top); } else { style.width = w; style.height = h; style.x = left; style.y = top; if(fillColors) { style.fill.color = fillColors[i % fillColors.length]; } if(borderColors) { style.border.color = borderColors[i % borderColors.length]; } marker = this.getMarker(style, graphOrder, i); } } else if(!groupMarkers) { this._markers.push(null); } } if(groupMarkers) { this._createGroupMarker({ fill: style.fill, border: style.border, dimensions: dimensions, xvalues: xvalues, yvalues: yvalues, shape: style.shape }); } else { this._clearMarkerCache(); } }, /** * @protected * * Resizes and positions markers based on a mouse interaction. * * @method updateMarkerState * @param {String} type state of the marker * @param {Number} i index of the marker */ updateMarkerState: function(type, i) { if(this._markers[i]) { var state = this._getState(type), ycoords = this.get("ycoords"), marker = this._markers[i], styles = this.get("styles").marker, h = styles.height, markerStyles = state === "off" || !styles[state] ? this._copyObject(styles) : this._copyObject(styles[state]), fillColor, borderColor; markerStyles.y = (ycoords[i] - h/2); markerStyles.x = marker.get("x"); markerStyles.width = marker.get("width"); markerStyles.id = marker.get("id"); fillColor = markerStyles.fill.color; borderColor = markerStyles.border.color; if(Y_Lang.isArray(fillColor)) { markerStyles.fill.color = fillColor[i % fillColor.length]; } else { markerStyles.fill.color = this._getItemColor(markerStyles.fill.color, i); } if(Y_Lang.isArray(borderColor)) { markerStyles.border.color = borderColor[i % borderColor.length]; } else { markerStyles.border.color = this._getItemColor(markerStyles.border.color, i); } marker.set(markerStyles); } }, /** * @protected * * Returns default values for the `styles` attribute. * * @method _getPlotDefaults * @return Object */ _getPlotDefaults: function() { var defs = { fill:{ type: "solid", alpha: 1, colors:null, alphas: null, ratios: null }, border:{ weight: 0, alpha: 1 }, width: 24, height: 24, shape: "rect", padding:{ top: 0, left: 0, right: 0, bottom: 0 } }; defs.fill.color = this._getDefaultColor(this.get("graphOrder"), "fill"); defs.border.color = this._getDefaultColor(this.get("graphOrder"), "border"); return defs; } }, { ATTRS: { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @default stackedBar */ type: { value: "stackedBar" }, /** * Direction of the series * * @attribute direction * @type String * @default vertical */ direction: { value: "vertical" }, /** * @private * * @attribute negativeBaseValues * @type Array * @default null */ negativeBaseValues: { value: null }, /** * @private * * @attribute positiveBaseValues * @type Array * @default null */ positiveBaseValues: { value: null } /** * Style properties used for drawing markers. This attribute is inherited from `BarSeries`. Below are the default values: * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the fill. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]` * </dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the border. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#205096", "#b38206", "#000000", "#94001e", "#9d6fa0", "#e55b00", "#5e85c9", "#adab9e", "#6ac291", "#006457"]` * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 1.</dd> * </dl> * </dd> * <dt>height</dt><dd>indicates the width of the marker. The default value is 24.</dd> * <dt>over</dt><dd>hash containing styles for markers when highlighted by a `mouseover` event. The default * values for each style is null. When an over style is not set, the non-over value will be used. For example, * the default value for `marker.over.fill.color` is equivalent to `marker.fill.color`.</dd> * </dl> * * @attribute styles * @type Object */ } }); }, '@VERSION@', {"requires": ["series-stacked", "series-bar"]});
mfregoe/cdnjs
ajax/libs/yui/3.14.0/series-bar-stacked/series-bar-stacked.js
JavaScript
mit
11,737
({"lightsteelblue":"라이트 스틸 블루(light steel blue)","orangered":"오렌지 레드(orange red)","midnightblue":"미드나잇 블루(midnight blue)","cadetblue":"카뎃 블루(cadet blue)","seashell":"씨쉘(seashell)","slategrey":"슬레이트 그레이(slate gray)","coral":"코랄(coral)","darkturquoise":"다크 터콰즈(dark turquoise)","antiquewhite":"앤틱 화이트(antique white)","mediumspringgreen":"미디엄 스프링 그린(medium spring green)","salmon":"샐몬(salmon)","darkgrey":"다크 그레이(dark gray)","ivory":"아이보리(ivory)","greenyellow":"그린 옐로우(green-yellow)","mistyrose":"미스티 로즈(misty rose)","lightsalmon":"라이트 샐몬(light salmon)","silver":"실버(silver)","dimgrey":"딤 그레이(dim gray)","orange":"오렌지(orange)","white":"화이트(white)","navajowhite":"나바호 화이트(navajo white)","royalblue":"로얄 블루(royal blue)","deeppink":"딥 핑크(deep pink)","lime":"라임(lime)","oldlace":"올드 레이스(old lace)","chartreuse":"샤르트뢰즈(chartreuse)","darkcyan":"다크 시안(dark cyan)","yellow":"옐로우(yellow)","linen":"리넨(linen)","olive":"올리브(olive)","gold":"골드(gold)","lawngreen":"론 그린(lawn green)","lightyellow":"라이트 옐로우(light yellow)","tan":"탠(tan)","darkviolet":"다크 바이올렛(dark violet)","lightslategrey":"라이트 슬레이트 그레이(light slate gray)","grey":"그레이(gray)","darkkhaki":"다크 카키(dark khaki)","green":"그린(green)","deepskyblue":"딥 스카이 블루(deep sky blue)","aqua":"아쿠아(aqua)","sienna":"시에나(sienna)","mintcream":"민트 크림(mint cream)","rosybrown":"로지 브라운(rosy brown)","mediumslateblue":"미디엄 슬레이트 블루(medium slate blue)","magenta":"마젠타(magenta)","lightseagreen":"라이트 씨 그린(light sea green)","cyan":"시안(cyan)","olivedrab":"올리브 드랩(olive drab)","darkgoldenrod":"다크 골든로드(dark goldenrod)","slateblue":"슬레이트 블루(slate blue)","mediumaquamarine":"미디엄 아쿠아마린(medium aquamarine)","lavender":"라벤더(lavender)","mediumseagreen":"미디엄 씨 그린(medium sea green)","maroon":"마룬(maroon)","darkslategray":"다크 슬레이트 그레이(dark slate gray)","mediumturquoise":"미디엄 터콰즈(medium turquoise)","ghostwhite":"고스트 화이트(ghost white)","darkblue":"다크 블루(dark blue)","mediumvioletred":"미디엄 바이올렛 레드(medium violet-red)","brown":"브라운(brown)","lightgray":"라이트 그레이(light gray)","sandybrown":"샌디 브라운(sandy brown)","pink":"핑크(pink)","firebrick":"파이어 브릭(fire brick)","indigo":"인디고(indigo)","snow":"스노우(snow)","darkorchid":"다크 오키드(dark orchid)","turquoise":"터콰즈(turquoise)","chocolate":"초콜렛(chocolate)","springgreen":"스프링 그린(spring green)","moccasin":"모카신(moccasin)","navy":"네이비(navy)","lemonchiffon":"레몬 쉬폰(lemon chiffon)","teal":"틸(teal)","floralwhite":"플로랄 화이트(floral white)","cornflowerblue":"콘플라워 블루(cornflower blue)","paleturquoise":"페일 터콰즈(pale turquoise)","purple":"퍼플(purple)","gainsboro":"게인스브로(gainsboro)","plum":"플럼(plum)","red":"레드(red)","blue":"블루(blue)","forestgreen":"포레스트 그린(forest green)","darkgreen":"다크 그린(dark green)","honeydew":"허니듀(honeydew)","darkseagreen":"다크 씨 그린(dark sea green)","lightcoral":"라이트 코랄(light coral)","palevioletred":"페일 바이올렛 레드(pale violet-red)","mediumpurple":"미디엄 퍼플(medium purple)","saddlebrown":"새들 브라운(saddle brown)","darkmagenta":"다크 마젠타(dark magenta)","thistle":"시슬(thistle)","whitesmoke":"화이트 스모크(white smoke)","wheat":"휘트(wheat)","violet":"바이올렛(violet)","lightskyblue":"라이트 스카이 블루(light sky blue)","goldenrod":"골든로드(goldenrod)","mediumblue":"미디엄 블루(medium blue)","skyblue":"스카이 블루(sky blue)","crimson":"크림슨(crimson)","darksalmon":"다크 샐몬(dark salmon)","darkred":"다크 레드(dark red)","darkslategrey":"다크 슬레이트 그레이(dark slate gray)","peru":"페루(peru)","lightgrey":"라이트 그레이(light gray)","lightgoldenrodyellow":"라이트 골든로드 옐로우(light goldenrod yellow)","blanchedalmond":"블랜치 아몬드(blanched almond)","aliceblue":"앨리스 블루(alice blue)","bisque":"비스크(bisque)","slategray":"슬레이트 그레이(slate gray)","palegoldenrod":"페일 골든로드(pale goldenrod)","darkorange":"다크 오렌지(dark orange)","aquamarine":"아쿠아마린(aquamarine)","lightgreen":"라이트 그린(light green)","burlywood":"벌리우드(burlywood)","dodgerblue":"다저 블루(dodger blue)","darkgray":"다크 그레이(dark gray)","lightcyan":"라이트 시안(light cyan)","powderblue":"파우더 블루(powder blue)","blueviolet":"블루 바이올렛(blue-violet)","orchid":"오키드(orchid)","dimgray":"딤 그레이(dim gray)","beige":"베이지(beige)","fuchsia":"후크샤(fuchsia)","lavenderblush":"라벤더 블러쉬(lavender blush)","hotpink":"핫 핑크(hot pink)","steelblue":"스틸 블루(steel blue)","tomato":"토마토(tomato)","lightpink":"라이트 핑크(light pink)","limegreen":"라임 그린(lime green)","indianred":"인디안 레드(indian red)","papayawhip":"파파야 휩(papaya whip)","lightslategray":"라이트 슬레이트 그레이(light slate gray)","gray":"그레이(gray)","mediumorchid":"미디엄 오키드(medium orchid)","cornsilk":"콘실크(cornsilk)","black":"블랙(black)","seagreen":"씨 그린(sea green)","darkslateblue":"다크 슬레이트 블루(dark slate blue)","khaki":"카키(khaki)","lightblue":"라이트 블루(light blue)","palegreen":"페일 그린(pale green)","azure":"애쥬어(azure)","peachpuff":"피치 퍼프(peach puff)","darkolivegreen":"다크 올리브 그린(dark olive green)","yellowgreen":"옐로우 그린(yellow green)"})
keicheng/cdnjs
ajax/libs/dojo/1.5.2/nls/ko/colors.js
JavaScript
mit
5,998
({"lightsteelblue":"ライト・スチール・ブルー","orangered":"オレンジ・レッド","midnightblue":"ミッドナイト・ブルー","cadetblue":"くすんだ青","seashell":"シーシェル","slategrey":"スレート・グレイ","coral":"珊瑚","darkturquoise":"ダーク・ターコイズ","antiquewhite":"アンティーク・ホワイト","mediumspringgreen":"ミディアム・スプリング・グリーン","salmon":"サーモン","darkgrey":"ダーク・グレイ","ivory":"アイボリー","greenyellow":"緑黄色","mistyrose":"ミスティ・ローズ","lightsalmon":"ライト・サーモン","silver":"銀","dimgrey":"くすんだグレイ","orange":"オレンジ","white":"白","navajowhite":"ナバホ・ホワイト","royalblue":"藤色","deeppink":"濃いピンク","lime":"ライム","oldlace":"オールド・レイス","chartreuse":"淡黄緑","darkcyan":"ダーク・シアン・ブルー","yellow":"黄","linen":"亜麻色","olive":"オリーブ","gold":"金","lawngreen":"ローン・グリーン","lightyellow":"ライト・イエロー","tan":"茶褐色","darkviolet":"ダーク・バイオレット","lightslategrey":"ライト・スレート・グレイ","grey":"グレイ","darkkhaki":"ダーク・カーキー","green":"緑","deepskyblue":"濃い空色","aqua":"アクア","sienna":"黄褐色","mintcream":"ミント・クリーム","rosybrown":"ロージー・ブラウン","mediumslateblue":"ミディアム・スレート・ブルー","magenta":"赤紫","lightseagreen":"ライト・シー・グリーン","cyan":"シアン・ブルー","olivedrab":"濃黄緑","darkgoldenrod":"ダーク・ゴールデン・ロッド","slateblue":"スレート・ブルー","mediumaquamarine":"ミディアム・アクアマリーン","lavender":"ラベンダー","mediumseagreen":"ミディアム・シー・グリーン","maroon":"えび茶","darkslategray":"ダーク・スレート・グレイ","mediumturquoise":"ミディアム・ターコイズ","ghostwhite":"ゴースト・ホワイト","darkblue":"ダーク・ブルー","mediumvioletred":"ミディアム・バイオレット・レッド","brown":"茶","lightgray":"ライト・グレイ","sandybrown":"砂褐色","pink":"ピンク","firebrick":"赤煉瓦色","indigo":"藍色","snow":"雪色","darkorchid":"ダーク・オーキッド","turquoise":"ターコイズ","chocolate":"チョコレート","springgreen":"スプリング・グリーン","moccasin":"モカシン","navy":"濃紺","lemonchiffon":"レモン・シフォン","teal":"ティール","floralwhite":"フローラル・ホワイト","cornflowerblue":"コーンフラワー・ブルー","paleturquoise":"ペイル・ターコイズ","purple":"紫","gainsboro":"ゲインズボーロ","plum":"深紫","red":"赤","blue":"青","forestgreen":"フォレスト・グリーン","darkgreen":"ダーク・グリーン","honeydew":"ハニーデュー","darkseagreen":"ダーク・シー・グリーン","lightcoral":"ライト・コーラル","palevioletred":"ペイル・バイオレット・レッド","mediumpurple":"ミディアム・パープル","saddlebrown":"サドル・ブラウン","darkmagenta":"ダーク・マジェンタ","thistle":"シスル","whitesmoke":"ホワイト・スモーク","wheat":"小麦色","violet":"すみれ色","lightskyblue":"ライト・スカイ・ブルー","goldenrod":"ゴールデン・ロッド","mediumblue":"ミディアム・ブルー","skyblue":"スカイ・ブルー","crimson":"深紅","darksalmon":"ダーク・サーモン","darkred":"ダーク・レッド","darkslategrey":"ダーク・スレート・グレイ","peru":"ペルー","lightgrey":"ライト・グレイ","lightgoldenrodyellow":"ライト・ゴールデン・ロッド・イエロー","blanchedalmond":"皮なしアーモンド","aliceblue":"アリス・ブルー","bisque":"ビスク","slategray":"スレート・グレイ","palegoldenrod":"ペイル・ゴールデン・ロッド","darkorange":"ダーク・オレンジ","aquamarine":"碧緑","lightgreen":"ライト・グリーン","burlywood":"バーリーウッド","dodgerblue":"ドッジャー・ブルー","darkgray":"ダーク・グレイ","lightcyan":"ライト・シアン","powderblue":"淡青","blueviolet":"青紫","orchid":"薄紫","dimgray":"くすんだグレイ","beige":"ベージュ","fuchsia":"紫紅色","lavenderblush":"ラベンダー・ブラッシ","hotpink":"ホット・ピンク","steelblue":"鋼色","tomato":"トマト色","lightpink":"ライト・ピンク","limegreen":"ライム・グリーン","indianred":"インディアン・レッド","papayawhip":"パパイア・ホイップ","lightslategray":"ライト・スレート・グレイ","gray":"グレイ","mediumorchid":"ミディアム・オーキッド","cornsilk":"コーンシルク","black":"黒","seagreen":"シー・グリーン","darkslateblue":"ダーク・スレート・ブルー","khaki":"カーキー","lightblue":"ライト・ブルー","palegreen":"ペイル・グリーン","azure":"薄い空色","peachpuff":"ピーチ・パフ","darkolivegreen":"ダーク・オリーブ・グリーン","yellowgreen":"黄緑"})
Mrkebubun/cdnjs
ajax/libs/dojo/1.4.3/nls/ja/colors.js
JavaScript
mit
5,128
"use strict";angular.module("ngLocale",[],["$provide",function($provide){var PLURAL_CATEGORY={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};$provide.value("$locale",{DATETIME_FORMATS:{AMPMS:["vorm.","nam."],DAY:["Sunntig","Määntig","Ziischtig","Mittwuch","Dunschtig","Friitig","Samschtig"],ERANAMES:["v. Chr.","n. Chr."],ERAS:["v. Chr.","n. Chr."],FIRSTDAYOFWEEK:0,MONTH:["Januar","Februar","März","April","Mai","Juni","Juli","Auguscht","Septämber","Oktoober","Novämber","Dezämber"],SHORTDAY:["Su.","Mä.","Zi.","Mi.","Du.","Fr.","Sa."],SHORTMONTH:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],STANDALONEMONTH:["Januar","Februar","März","April","Mai","Juni","Juli","Auguscht","Septämber","Oktoober","Novämber","Dezämber"],WEEKENDRANGE:[5,6],fullDate:"EEEE, d. MMMM y",longDate:"d. MMMM y",medium:"dd.MM.y HH:mm:ss",mediumDate:"dd.MM.y",mediumTime:"HH:mm:ss","short":"dd.MM.yy HH:mm",shortDate:"dd.MM.yy",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"CHF",DECIMAL_SEP:".",GROUP_SEP:"’",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:" ¤",posPre:"",posSuf:" ¤"}]},id:"gsw-ch",localeID:"gsw_CH",pluralCat:function(n,opt_precision){if(n==1){return PLURAL_CATEGORY.ONE}return PLURAL_CATEGORY.OTHER}})}]);
AMoo-Miki/cdnjs
ajax/libs/angular-i18n/1.5.1/angular-locale_gsw-ch.min.js
JavaScript
mit
1,387
"use strict";angular.module("ngLocale",[],["$provide",function($provide){var PLURAL_CATEGORY={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function getDecimals(n){n=n+"";var i=n.indexOf(".");return i==-1?0:n.length-i-1}function getVF(n,opt_precision){var v=opt_precision;if(undefined===v){v=Math.min(getDecimals(n),3)}var base=Math.pow(10,v);var f=(n*base|0)%base;return{v:v,f:f}}$provide.value("$locale",{DATETIME_FORMATS:{AMPMS:["ንጉሆ ሰዓተ","ድሕር ሰዓት"],DAY:["ሰንበት","ሰኑይ","ሰሉስ","ረቡዕ","ሓሙስ","ዓርቢ","ቀዳም"],ERANAMES:["ዓ/ዓ","ዓ/ም"],ERAS:["ዓ/ዓ","ዓ/ም"],FIRSTDAYOFWEEK:0,MONTH:["ጥሪ","ለካቲት","መጋቢት","ሚያዝያ","ግንቦት","ሰነ","ሓምለ","ነሓሰ","መስከረም","ጥቅምቲ","ሕዳር","ታሕሳስ"],SHORTDAY:["ሰንበት","ሰኑይ","ሰሉስ","ረቡዕ","ሓሙስ","ዓርቢ","ቀዳም"],SHORTMONTH:["ጥሪ","ለካቲ","መጋቢ","ሚያዝ","ግንቦ","ሰነ","ሓምለ","ነሓሰ","መስከ","ጥቅም","ሕዳር","ታሕሳ"],STANDALONEMONTH:["ጥሪ","ለካቲት","መጋቢት","ሚያዝያ","ግንቦት","ሰነ","ሓምለ","ነሓሰ","መስከረም","ጥቅምቲ","ሕዳር","ታሕሳስ"],WEEKENDRANGE:[5,6],fullDate:"EEEE፡ dd MMMM መዓልቲ y G",longDate:"dd MMMM y",medium:"dd-MMM-y h:mm:ss a",mediumDate:"dd-MMM-y",mediumTime:"h:mm:ss a","short":"dd/MM/yy h:mm a",shortDate:"dd/MM/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"Nfk",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"ti-er",localeID:"ti_ER",pluralCat:function(n,opt_precision){var i=n|0;var vf=getVF(n,opt_precision);if(i==1&&vf.v==0){return PLURAL_CATEGORY.ONE}return PLURAL_CATEGORY.OTHER}})}]);
bootcdn/cdnjs
ajax/libs/angular-i18n/1.5.0-rc.2/angular-locale_ti-er.min.js
JavaScript
mit
1,934
"use strict";angular.module("ngLocale",[],["$provide",function($provide){var PLURAL_CATEGORY={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};$provide.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],ERANAMES:["avant Jésus-Christ","après Jésus-Christ"],ERAS:["av. J.-C.","ap. J.-C."],FIRSTDAYOFWEEK:0,MONTH:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],SHORTDAY:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],SHORTMONTH:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],STANDALONEMONTH:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],WEEKENDRANGE:[5,6],fullDate:"EEEE d MMMM y",longDate:"d MMMM y",medium:"d MMM y HH:mm:ss",mediumDate:"d MMM y",mediumTime:"HH:mm:ss","short":"dd/MM/y HH:mm",shortDate:"dd/MM/y",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"RF",DECIMAL_SEP:",",GROUP_SEP:" ",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:" ¤",posPre:"",posSuf:" ¤"}]},id:"fr-rw",localeID:"fr_RW",pluralCat:function(n,opt_precision){var i=n|0;if(i==0||i==1){return PLURAL_CATEGORY.ONE}return PLURAL_CATEGORY.OTHER}})}]);
x112358/cdnjs
ajax/libs/angular-i18n/1.5.0-rc.2/angular-locale_fr-rw.min.js
JavaScript
mit
1,424