Permalink
Browse files

built olives

  • Loading branch information...
1 parent 2114d1c commit ebc0100d63901d70c65783df2b6d4ac8e81930ac @podefr podefr committed Sep 7, 2013
Showing with 772 additions and 682 deletions.
  1. +686 −652 build/Olives-map
  2. +29 −1 build/Olives.js
  3. +28 −28 build/Olives.min.js
  4. +29 −1 build/src/Stack.js
View
1,338 build/Olives-map
@@ -29,13 +29,13 @@
"VfUA/0CA+ADgBA/YCA+A9cGABABA/ACA+ADUBgBABABA/ACMBEBEBQDU/A/cDABABA/ACA+ADIBACA/ACA+k/EEA8AIA/ACA+U/A/AFA7Q7ULUCA/ACA+!AgDA9AEA8A/A0QUM/A/cDABABA/ACA+ADUBYCEBE+cDE9AEo8EFE7AIA/ACA+A/AEA8MFE1QMAyQRY/A/cDABABA/ACADQ/A/ADA9cEABABA/ACA+ADMDM/A/ADA9AEA8A/A4MOAyA/QSM/A/cDABABA/ACUBECA/ACA+A+QHY/A/ADA9B+sA7A2",
"WAg7A/!ASCA+ADsBA/YCA+A9cGEBABUBgBABABA/ACMBEBMBQDk/A/cDABABA/ACUBECE/UCECQ/E9kFE7AHA/ACA+MDE3QKA0QPk/A/cDEBABUBEBA+QFI/A/cDABABA/ACA+ADUBEDI/A/ADA9AEA8A+QJQ/A/cDABABA/ACA+ADUBEDQ/A/ADA9AEA8A+QJQ/A/cDABABA/ACA+ADA9AEUBEDQ/A/ADA9AEA8AFA7A+QK4/A/cDABABA/ACA+ADA9AEUBED4/A/ADA9AEA8AFA7A+QKc/A/cDABABA/ACA+ADA9AEA8AFUBYCEBE+cDE9UEEBE7oGE6AKA/gCMDM/E/",
"OAi+U/A/MFY/E/A9IGA6U8ALA1A+MQQ/A/AEc/A9cFEBABACE/AEU/A/ADE9MEA8gFA7A9A5AxNAhQ/A/ADA9AEA8AgNAlF/URAtB/RRAyY/A/cDABABA/ACA+ADA9AEA8AFIBUBEBE+cDE9UEEBE7oGE6UHEBE4kJA3QKEBgBMDM/E/A/MGU/A/MFY/E/A9IGA6U8ALo1MMA0A+EPcBEBABACE/AEU/A/ADE9MEA8gFA7A9AuEbMBQDI/A/AEc/A9AFA7QIQ/A/ADA9AEA8YFgBEBABADQ/A/wDA9AFc/A8EI4/A/AEc/A9AFA7A5B/VM2ZBCUBB+8RBHk/A/ADA9B8eA7A4",
-"WAkuA/YCA+ADYBA/A9cFEBABMBEBYCA/YCA+YDgBABABA/ACcBEBABABA/ACIBEBABE/ADY/A+A/AFMBEBACA/ACA+YDEGc/A/AEo/A9c/A/AHA5E/EJA3ALA/ACA+ADA9A2AOArA6M7FAhcD!AW/E/B/eFAlcD0/A/QDA9B/aFAqEBQDM/A/cDABABA/ACUBACMDM/A/ADA9E+AGo6sHE5AMs/A/ADA9A/AHQ/A/ADA9A6AKEuQTArQYY/A/cDABABA/ACMBABYBQEM/A/ADA9E/AIA/AEc/A/ADA9A+AIs/A/ADA9A5ANY/A/ADA9AEA8A0AREqQXAlQeU/A/cDABABA/ACUBEC",
-"qAmyE+EJU/Q/A/AFo/A8c/A/cIABABA/ACMEM/A/ADA9E/AHs/A/ADA9A6A1MVArA/MZo/A/ADA9EmQeAgRAjI/A/cDABABA/ACIBMDM/A/ADA9A/AFMBEBMDs/A/ADA9QGQ/A/ADA9AEA8AFA7YGEBAyM7YUUBAqQZQ/A/cDABABA/ACIBMDM/A/ADA9A/AFMBEBMDs/A/ADA9QGQ/A/ADA9AEA8AFA7YGEBAyM7YUUBAqQZQ/A/cDABABA/ACA+ADIBMDM/A/ADA9A/AFMBEBADc/A/ADA9EGY/A/ADA9AEA8EFABA/ADA/ACA+E+AHw/A/ADA9AEA8A7AMs/A/ADA9EGY/A/ADA9AEA8AFA7YGEBB/fM7ZAnUBB/X",
-"OAo8Y/A/cDABABA/ACA+ADUBACMDM/A/ADA9E+AGo6sHE5AMY/A/ADA9AEA8AFA7A/AJw/A/ADA9AGo/A/ADA9A8A4AQEoQZAlQes/A/cDABABA/ACUBEDc/A/ADA9A+QIU/A/cDEBABUBEDo/Y/A+QHM/A/cDABABA/ACUBQDs/A/ADA9E/AFA6QJQ/A/cDABABA/ACUBQEM/A/ADA9E/AIs/A/ADA9A/MFE2QLAzQQQ/A/cDABABA/ACUBQEM/A/ADA9E/AGo/I7AHE5MLQ/A/ADA9AGc/A/ADA9A8A/MJEvQSAsQXc/A/cDEBABADc/A/MEQ/A9MFA7A/",
-"OAq9c/A/cDEBABADc/A/MEQ/A9MFA7A/QJk/A/cDEBABUBEBA+QFo/A/cDABABA/ACUBECo/sCA+ADA9AEA8QFA5QKw/A/cDEBABUBEBA+QFw/A/cDABABA/ACUBECo/sCE+AEA/ACA+MDE6QHA3QMo/A/ADA9B5JA2A5",
-"WAr6A/8CA+ADcBA/YCA+A9cGABABA/ACA+ADcBEBEBABcBEBEBABUEg/Q/A/MHg/U/A/MEA8MHU/A/UFg/Q/A9A7A8MRg/A/ADA9AwM8AYAoEZEBAmEbUDg/Q/QF8/A/cDABABA/ACUBECE/UCEBE9cEE8AGA/ACA+MDE4QJA1QO8/A/cDEBABUBEBA+QFU/A/cDABABA/ACUBEHU/A/IDA9M/E/U/A/IIA4A+QNU/A/cDABABA/ACUBEDQ/A/IDA9A+QIU/A/cDABABA/ACMD8/A/ADA9EGQ/A/MDA9QG!AQ/E/",
-"OAtx!AR/E/A0QRc/A/cDEBABMDc/A/ADA9YG!AT/A/sDA9MF!AR/A8MGA6A7QOw/A/cDEBABUEg/Q/E/AEE8AHQ/A/MDA9A6QM!AR/A/MGw/Q/A/MEA8QH!AQ/A/cDEBABUD!AQ/A/sDA9MF!AR/A8MGA6A/QK!AR/A/cDEBABACA/MEU/A/ME0/A9MFA7A9QL0/A/cDEBABUEg/Q/A/MGU/A/AFc/A/gDA9A9",
-"CAvHA/UEg/Q/AyQTw/A/cDEBABUBEBA+B83VDMgBEBABADk/A/MDABYBQBABA4B8tA2"],
+"WAkuA/YCA+ADYBA/A9cFEBABMBEBYCA/YCA+YDgBABABA/ACcBEBABABA/ACIBEBABE/ADY/A+A/AFMBEBACA/ACA+YDEGc/A/AEo/A9c/A/AHA5E/EJA3ALA/ACA+ADA9A2AOArA6M7FAhcD!AW/E/B/eFAlcD0/A/QDA9B/aFAqEBB/VFAsMBQDM/A/cDABABA/ACUBACMDM/A/ADA9E+AGo6sHE5AMs/A/ADA9A/AHQ/A/ADA9A6AKEuQTArQYY/A/cDABABA/ACMBABYBQEM/A/ADA9E/AIA/AEc/A/ADA9A+AIs/A/ADA9A5ANY/A/ADA9AEA8A0AREqQXAlQeU/A/cDABABA/ACUBEC",
+"qAm0E+EJU/Q/A/AFo/A8c/A/cIABABA/ACMEM/A/ADA9E/AHs/A/ADA9A6A1MVArA/MZo/A/ADA9EmQeAgRAjI/A/cDABABA/ACIBMDM/A/ADA9A/AFMBEBMDs/A/ADA9QGQ/A/ADA9AEA8AFA7YGEBAyM7YUUBAqQZQ/A/cDABABA/ACIBMDM/A/ADA9A/AFMBEBMDs/A/ADA9QGQ/A/ADA9AEA8AFA7YGEBAyM7YUUBAqQZQ/A/cDABABA/ACA+ADIBMDM/A/ADA9A/AFMBEBADc/A/ADA9EGY/A/ADA9AEA8EFABA/ADA/ACA+E+AHw/A/ADA9AEA8A7AMs/A/ADA9EGY/A/ADA9AEA8AFA7YGEBB/fM7ZAnUBB/X",
+"OAo+Y/A/cDABABA/ACA+ADUBACMDM/A/ADA9E+AGo6sHE5AMY/A/ADA9AEA8AFA7A/AJw/A/ADA9AGo/A/ADA9A8A4AQEoQZAlQes/A/cDABABA/ACUBEDc/A/ADA9A+QIU/A/cDEBABUBEDo/Y/A+QHM/A/cDABABA/ACUBQDs/A/ADA9E/AFA6QJQ/A/cDABABA/ACUBQEM/A/ADA9E/AIs/A/ADA9A/MFE2QLAzQQQ/A/cDABABA/ACUBQEM/A/ADA9E/AGo/I7AHE5MLQ/A/ADA9AGc/A/ADA9A8A/MJEvQSAsQXc/A/cDEBABADc/A/MEQ/A9MFA7A/",
+"OAq/c/A/cDEBABADc/A/MEQ/A9MFA7A/QJk/A/cDEBABUBEBA+QFo/A/cDABABA/ACUBECo/sCA+ADA9AEA8QFA5QKw/A/cDEBABUBEBA+QFw/A/cDABABA/ACUBECo/sCE+AEA/ACA+MDE6QHA3QM4/A/cDEBABUBEBA+QFc/A/cDABABA/ACACE/MEQ/A/ADA9YEQEQ/A/ADA9E/AGA/ACA+MDE4QJAvQUo/A/ADA9B4nA2A5",
+"WAscA/8CA+ADcBA/YCA+A9cGABABA/ACA+ADcBEBEBABcBEBEBABUEg/Q/A/MHg/U/A/MEA8MHU/A/UFg/Q/A9A7A8MRg/A/ADA9AwM8AYAoEZEBAmEbUDg/Q/QF8/A/cDABABA/ACUBECE/UCEBE9cEE8AGA/ACA+MDE4QJA1QO8/A/cDEBABUBEBA+QFU/A/cDABABA/ACUBEHU/A/IDA9M/E/U/A/IIA4A+QNU/A/cDABABA/ACUBEDQ/A/IDA9A+QIU/A/cDABABA/ACMD8/A/ADA9EGQ/A/MDA9QG!AQ/E/",
+"OAuT!AR/E/A0QRc/A/cDEBABMDc/A/ADA9YG!AT/A/sDA9MF!AR/A8MGA6A7QOw/A/cDEBABUEg/Q/E/AEE8AHQ/A/MDA9A6QM!AR/A/MGw/Q/A/MEA8QH!AQ/A/cDEBABUD!AQ/A/sDA9MF!AR/A8MGA6A/QK!AR/A/cDEBABACA/MEU/A/ME0/A9MFA7A9QL0/A/cDEBABUEg/Q/A/MGU/A/AFc/A/gDA9A9",
+"CAvpA/UEg/Q/AyQTw/A/cDEBABUBEBA+B83VDMgBEBABADk/A/MDABYBQBABA4B8tA2"],
"mappings":[[0,13,6],
[0,13,0,0],
[0,13,7],
@@ -2403,38 +2403,38 @@
[0,1651,33],
[0,1651,34,188],
[0,1651,43],
-[0,1777,2,317],
-[0,1777,11,317],
-[0,1777,30],
-[0,1777,31,318],
-[0,1777,41],
-[0,1778,3],
-[0,1778,16],
-[0,1778,7,318],
-[0,1778,19,18],
-[0,1778,19,319],
-[0,1778,3],
-[0,1781,3],
-[0,1781,7,320],
-[0,1781,21],
-[0,1781,21,319],
-[0,1781,33,318],
-[0,1782,3],
-[0,1782,3],
-[0,1782,48],
-[0,1782,7,33],
-[0,1782,20],
-[0,1782,7,34],
-[0,1782,7,1],
-[0,1782,21,259],
-[0,1782,21,190],
-[0,1782,49,320],
-[0,1782,66],
-[0,1783,30],
-[0,1783,11,317],
-[0,1783,31,318],
-[0,1783,41],
-[0,1785,11,320],
+[0,1779,2,317],
+[0,1779,11,317],
+[0,1779,30],
+[0,1779,31,318],
+[0,1779,41],
+[0,1780,3],
+[0,1780,16],
+[0,1780,7,318],
+[0,1780,19,18],
+[0,1780,19,319],
+[0,1780,3],
+[0,1783,3],
+[0,1783,7,320],
+[0,1783,21],
+[0,1783,21,319],
+[0,1783,33,318],
+[0,1784,3],
+[0,1784,3],
+[0,1784,48],
+[0,1784,7,33],
+[0,1784,20],
+[0,1784,7,34],
+[0,1784,7,1],
+[0,1784,21,259],
+[0,1784,21,190],
+[0,1784,49,320],
+[0,1784,66],
+[0,1785,30],
+[0,1785,11,317],
+[0,1785,31,318],
+[0,1785,41],
+[0,1787,11,320],
[0,1657,6,190],
[0,1657,47],
[0,1657,16,8],
@@ -2446,636 +2446,670 @@
[0,1663,38],
[0,1670,2,319],
[0,1670,16],
-[0,1677,2],
-[0,1677,2,241],
-[0,1677,2],
-[0,1677,13,242],
-[0,1677,25],
-[0,1677,26,3],
-[0,1677,31],
-[0,1678,3],
-[0,1678,3],
-[0,1678,7],
-[0,1678,16],
-[0,1678,8,114],
-[0,1678,8],
-[0,1678,17,3],
-[0,1678,25,3],
-[0,1678,40,24],
-[0,1681,11,3],
-[0,1680,20],
-[0,1679,23],
-[0,1679,4,7],
-[0,1679,4,190],
-[0,1679,24,3],
-[0,1680,20],
-[0,1680,4,127],
-[0,1680,4,319],
-[0,1680,21,3],
-[0,1681,11,3],
-[0,1683,11],
-[0,1692,2],
-[0,1692,2,322],
-[0,1692,2],
-[0,1692,16,323],
-[0,1692,31],
-[0,1692,32,3],
-[0,1692,37],
-[0,1693,3],
-[0,1693,7,324],
-[0,1694,3],
-[0,1694,3],
-[0,1694,15],
-[0,1694,7,114],
-[0,1694,7],
-[0,1694,16,3],
-[0,1698,11,3],
-[0,1697,22],
-[0,1696,23],
-[0,1695,4,324],
-[0,1695,31],
-[0,1695,12,33],
-[0,1695,12,319],
-[0,1695,32,3],
-[0,1696,23],
-[0,1696,4,75],
-[0,1696,4,190],
-[0,1696,24,3],
-[0,1697,22],
+[0,1672,2,322],
+[0,1672,17],
+[0,1679,2],
+[0,1679,2,241],
+[0,1679,2],
+[0,1679,13,242],
+[0,1679,25],
+[0,1679,26,3],
+[0,1679,31],
+[0,1680,3],
+[0,1680,3],
+[0,1680,7],
+[0,1680,16],
+[0,1680,8,114],
+[0,1680,8],
+[0,1680,17,3],
+[0,1680,25,3],
+[0,1680,40,24],
+[0,1683,11,3],
+[0,1682,20],
+[0,1681,23],
+[0,1681,4,7],
+[0,1681,4,190],
+[0,1681,24,3],
+[0,1682,20],
+[0,1682,4,127],
+[0,1682,4,319],
+[0,1682,21,3],
+[0,1683,11,3],
+[0,1685,11],
+[0,1694,2],
+[0,1694,2,323],
+[0,1694,2],
+[0,1694,16,324],
+[0,1694,31],
+[0,1694,32,3],
+[0,1694,37],
+[0,1695,3],
+[0,1695,7,325],
+[0,1696,3],
+[0,1696,3],
+[0,1696,15],
+[0,1696,7,114],
+[0,1696,7],
+[0,1696,16,3],
+[0,1700,11,3],
+[0,1699,22],
+[0,1698,23],
[0,1697,4,325],
-[0,1697,4,319],
-[0,1697,23,324],
-[0,1697,30],
-[0,1698,11,3],
-[0,1700,11],
-[0,1709,2],
-[0,1709,2,261],
-[0,1709,2],
-[0,1709,15,266],
-[0,1709,29],
-[0,1709,30,326],
-[0,1709,44],
-[0,1710,3],
-[0,1710,3],
-[0,1710,7,326],
-[0,1710,31,24],
-[0,1716,26],
-[0,1711,45],
-[0,1711,4,45],
-[0,1711,17],
-[0,1711,4,176],
-[0,1711,4,153],
-[0,1711,4],
-[0,1711,18,259],
-[0,1711,18,190],
-[0,1711,46],
-[0,1711,55],
-[0,1711,56,327],
-[0,1711,66],
-[0,1712,5],
-[0,1712,17],
-[0,1712,9,114],
-[0,1712,9],
-[0,1712,18,327],
-[0,1713,30],
-[0,1713,6,7],
-[0,1713,6,326],
-[0,1713,31,327],
-[0,1715,7],
-[0,1716,26],
-[0,1716,11,328],
-[0,1716,11],
-[0,1716,27,326],
+[0,1697,31],
+[0,1697,12,33],
+[0,1697,12,319],
+[0,1697,32,3],
+[0,1698,23],
+[0,1698,4,75],
+[0,1698,4,190],
+[0,1698,24,3],
+[0,1699,22],
+[0,1699,4,326],
+[0,1699,4,319],
+[0,1699,23,325],
+[0,1699,30],
+[0,1700,11,3],
+[0,1702,11],
+[0,1711,2],
+[0,1711,2,261],
+[0,1711,2],
+[0,1711,15,266],
+[0,1711,29],
+[0,1711,30,327],
+[0,1711,44],
+[0,1712,3],
+[0,1712,3],
+[0,1712,7,327],
+[0,1712,31,24],
+[0,1718,26],
+[0,1713,45],
+[0,1713,4,45],
+[0,1713,17],
+[0,1713,4,176],
+[0,1713,4,153],
+[0,1713,4],
+[0,1713,18,259],
+[0,1713,18,190],
+[0,1713,46],
+[0,1713,55],
+[0,1713,56,328],
+[0,1713,66],
+[0,1714,5],
+[0,1714,17],
+[0,1714,9,114],
+[0,1714,9],
+[0,1714,18,328],
+[0,1715,30],
+[0,1715,6,7],
+[0,1715,6,327],
+[0,1715,31,328],
+[0,1717,7],
+[0,1718,26],
+[0,1718,11,329],
[0,1718,11],
-[0,1727,2],
-[0,1727,2,329],
-[0,1727,2],
-[0,1727,12,330],
-[0,1727,23],
-[0,1727,24,3],
-[0,1727,29],
-[0,1728,3],
-[0,1728,15],
-[0,1728,7,114],
-[0,1728,7],
-[0,1728,16,3],
-[0,1728,22],
-[0,1729,4],
-[0,1729,8,331],
-[0,1729,38],
-[0,1729,22,332],
-[0,1729,22],
-[0,1729,39,3],
-[0,1730,13],
-[0,1730,4,333],
-[0,1730,4],
-[0,1730,14,3],
-[0,1730,19,331],
-[0,1730,33],
+[0,1718,27,327],
+[0,1720,11],
+[0,1729,2],
+[0,1729,2,330],
+[0,1729,2],
+[0,1729,12,331],
+[0,1729,23],
+[0,1729,24,3],
+[0,1729,29],
+[0,1730,3],
+[0,1730,15],
+[0,1730,7,114],
+[0,1730,7],
+[0,1730,16,3],
+[0,1730,22],
[0,1731,4],
-[0,1731,11,3],
+[0,1731,8,332],
+[0,1731,38],
+[0,1731,22,333],
+[0,1731,22],
+[0,1731,39,3],
+[0,1732,13],
+[0,1732,4,334],
+[0,1732,4],
+[0,1732,14,3],
+[0,1732,19,332],
+[0,1732,33],
[0,1733,4],
-[0,1733,11],
-[0,1742,2],
-[0,1742,2,334],
-[0,1742,2],
-[0,1742,14,335],
-[0,1742,27],
-[0,1742,28,3],
-[0,1742,33],
-[0,1743,3],
-[0,1743,15],
-[0,1743,7,114],
-[0,1743,7],
-[0,1743,16,3],
-[0,1743,22],
-[0,1744,4],
-[0,1744,8,331],
-[0,1744,38],
-[0,1744,22,332],
-[0,1744,22],
-[0,1744,39,3],
-[0,1745,13],
-[0,1745,4,333],
-[0,1745,4],
-[0,1745,14,3],
-[0,1745,19,331],
-[0,1745,33],
+[0,1733,11,3],
+[0,1735,4],
+[0,1735,11],
+[0,1744,2],
+[0,1744,2,335],
+[0,1744,2],
+[0,1744,14,336],
+[0,1744,27],
+[0,1744,28,3],
+[0,1744,33],
+[0,1745,3],
+[0,1745,15],
+[0,1745,7,114],
+[0,1745,7],
+[0,1745,16,3],
+[0,1745,22],
[0,1746,4],
-[0,1746,11,3],
+[0,1746,8,332],
+[0,1746,38],
+[0,1746,22,333],
+[0,1746,22],
+[0,1746,39,3],
+[0,1747,13],
+[0,1747,4,334],
+[0,1747,4],
+[0,1747,14,3],
+[0,1747,19,332],
+[0,1747,33],
[0,1748,4],
-[0,1748,11],
-[0,1758,2],
-[0,1758,2,333],
-[0,1758,2],
-[0,1758,14,336],
-[0,1758,27],
-[0,1758,28,3],
-[0,1758,33,318],
-[0,1758,43],
-[0,1759,3],
-[0,1759,15],
-[0,1759,7,114],
-[0,1759,7],
-[0,1759,16,3],
-[0,1759,22],
-[0,1760,4],
-[0,1760,8,337],
-[0,1760,38],
-[0,1760,19,33],
-[0,1760,19,319],
-[0,1760,39,3],
+[0,1748,11,3],
+[0,1750,4],
+[0,1750,11],
+[0,1760,2],
+[0,1760,2,334],
+[0,1760,2],
+[0,1760,14,337],
+[0,1760,27],
+[0,1760,28,3],
+[0,1760,33,318],
+[0,1760,43],
+[0,1761,3],
+[0,1761,15],
+[0,1761,7,114],
+[0,1761,7],
+[0,1761,16,3],
[0,1761,22],
-[0,1761,4,325],
-[0,1761,4,319],
-[0,1761,23,337],
-[0,1761,33],
-[0,1765,4],
-[0,1764,8,320],
-[0,1764,41],
-[0,1764,22,317],
-[0,1764,42,318],
-[0,1766,25],
-[0,1766,5,100],
-[0,1766,5,190],
-[0,1766,26,3],
-[0,1766,31,320],
-[0,1768,24],
-[0,1768,5,7],
+[0,1762,4],
+[0,1762,8,338],
+[0,1762,38],
+[0,1762,19,33],
+[0,1762,19,319],
+[0,1762,39,3],
+[0,1763,22],
+[0,1763,4,326],
+[0,1763,4,319],
+[0,1763,23,338],
+[0,1763,33],
+[0,1767,4],
+[0,1766,8,320],
+[0,1766,41],
+[0,1766,22,317],
+[0,1766,42,318],
+[0,1768,25],
+[0,1768,5,100],
[0,1768,5,190],
-[0,1768,25,3],
-[0,1770,22],
-[0,1770,4,325],
-[0,1770,4,319],
-[0,1770,23,318],
-[0,1770,33],
-[0,1770,36,3],
-[0,1771,4],
-[0,1771,11,3],
+[0,1768,26,3],
+[0,1768,31,320],
+[0,1770,24],
+[0,1770,5,7],
+[0,1770,5,190],
+[0,1770,25,3],
+[0,1772,22],
+[0,1772,4,326],
+[0,1772,4,319],
+[0,1772,23,318],
+[0,1772,33],
+[0,1772,36,3],
[0,1773,4],
-[0,1773,11],
-[0,1795,2],
-[0,1795,2,338],
-[0,1795,2],
-[0,1795,16,339],
-[0,1795,31],
-[0,1795,32,3],
-[0,1795,37,318],
-[0,1795,47],
-[0,1796,3],
-[0,1796,3],
-[0,1796,7],
-[0,1796,16],
-[0,1796,8,114],
-[0,1796,8],
-[0,1796,17,3],
-[0,1796,25,3],
-[0,1796,40,24],
-[0,1799,11,3],
-[0,1798,24],
-[0,1797,22],
-[0,1797,4,325],
-[0,1797,4,319],
-[0,1797,23,318],
-[0,1797,33],
-[0,1797,36,3],
-[0,1798,24],
-[0,1798,4,100],
-[0,1798,4,190],
+[0,1773,11,3],
+[0,1775,4],
+[0,1775,11],
+[0,1797,2],
+[0,1797,2,339],
+[0,1797,2],
+[0,1797,16,340],
+[0,1797,31],
+[0,1797,32,3],
+[0,1797,37,318],
+[0,1797,47],
+[0,1798,3],
+[0,1798,3],
+[0,1798,7],
+[0,1798,16],
+[0,1798,8,114],
+[0,1798,8],
+[0,1798,17,3],
[0,1798,25,3],
-[0,1798,30],
-[0,1798,30,259],
-[0,1798,30,190],
-[0,1798,49,318],
-[0,1799,11,3],
-[0,1801,11],
-[0,1810,2],
-[0,1810,2,332],
-[0,1810,2],
-[0,1810,21,340],
-[0,1810,41],
-[0,1810,42,3],
-[0,1810,47],
-[0,1811,3],
-[0,1811,29],
-[0,1811,10,33],
-[0,1811,10,319],
-[0,1811,30,3],
-[0,1818,2],
-[0,1818,2,341],
-[0,1818,2],
-[0,1818,15,342],
-[0,1818,29],
-[0,1818,32],
-[0,1819,3],
-[0,1819,10,18],
-[0,1819,10,259],
-[0,1819,10,190],
-[0,1827,2],
-[0,1827,2,114],
-[0,1827,2],
-[0,1827,13,343],
-[0,1827,25],
-[0,1827,26,327],
-[0,1827,36],
-[0,1828,3],
-[0,1828,26],
-[0,1828,10,332],
-[0,1828,10],
-[0,1828,27,327],
-[0,1828,40],
-[0,1837,2],
-[0,1837,2,344],
-[0,1837,2],
-[0,1837,14,345],
-[0,1837,27],
-[0,1837,28,3],
-[0,1837,33],
-[0,1838,3],
-[0,1838,3],
-[0,1838,15],
-[0,1838,7,114],
-[0,1838,7],
-[0,1838,16,3],
-[0,1840,11],
-[0,1839,26],
-[0,1839,4,7],
-[0,1839,4,321],
-[0,1839,27,3],
-[0,1840,11],
+[0,1798,40,24],
+[0,1801,11,3],
+[0,1800,24],
+[0,1799,22],
+[0,1799,4,326],
+[0,1799,4,319],
+[0,1799,23,318],
+[0,1799,33],
+[0,1799,36,3],
+[0,1800,24],
+[0,1800,4,100],
+[0,1800,4,190],
+[0,1800,25,3],
+[0,1800,30],
+[0,1800,30,259],
+[0,1800,30,190],
+[0,1800,49,318],
+[0,1801,11,3],
+[0,1803,11],
+[0,1812,2],
+[0,1812,2,333],
+[0,1812,2],
+[0,1812,21,341],
+[0,1812,41],
+[0,1812,42,3],
+[0,1812,47],
+[0,1813,3],
+[0,1813,29],
+[0,1813,10,33],
+[0,1813,10,319],
+[0,1813,30,3],
+[0,1820,2],
+[0,1820,2,342],
+[0,1820,2],
+[0,1820,15,343],
+[0,1820,29],
+[0,1820,32],
+[0,1821,3],
+[0,1821,10,18],
+[0,1821,10,259],
+[0,1821,10,190],
+[0,1829,2],
+[0,1829,2,114],
+[0,1829,2],
+[0,1829,13,344],
+[0,1829,25],
+[0,1829,26,328],
+[0,1829,36],
+[0,1830,3],
+[0,1830,26],
+[0,1830,10,333],
+[0,1830,10],
+[0,1830,27,328],
+[0,1830,40],
+[0,1839,2],
+[0,1839,2,345],
+[0,1839,2],
+[0,1839,14,346],
+[0,1839,27],
+[0,1839,28,3],
+[0,1839,33],
+[0,1840,3],
+[0,1840,3],
+[0,1840,15],
+[0,1840,7,114],
+[0,1840,7],
+[0,1840,16,3],
[0,1842,11],
-[0,1852,2],
-[0,1852,2,346],
-[0,1852,2],
-[0,1852,14,347],
-[0,1852,27],
-[0,1852,28,3],
-[0,1852,33],
-[0,1853,3],
-[0,1853,3],
-[0,1853,15],
-[0,1853,7,114],
-[0,1853,7],
-[0,1853,16,3],
-[0,1853,24,6],
-[0,1853,24,3],
-[0,1853,43,321],
-[0,1855,11],
-[0,1854,13],
-[0,1854,4,333],
-[0,1854,4],
-[0,1854,14,3],
-[0,1854,38],
-[0,1854,19,33],
-[0,1854,19,319],
-[0,1854,39,3],
-[0,1855,11],
+[0,1841,26],
+[0,1841,4,7],
+[0,1841,4,321],
+[0,1841,27,3],
+[0,1842,11],
+[0,1844,11],
+[0,1854,2],
+[0,1854,2,347],
+[0,1854,2],
+[0,1854,14,348],
+[0,1854,27],
+[0,1854,28,3],
+[0,1854,33],
+[0,1855,3],
+[0,1855,3],
+[0,1855,15],
+[0,1855,7,114],
+[0,1855,7],
+[0,1855,16,3],
+[0,1855,24,6],
+[0,1855,24,3],
+[0,1855,43,321],
+[0,1857,11],
+[0,1856,13],
+[0,1856,4,334],
+[0,1856,4],
+[0,1856,14,3],
+[0,1856,38],
+[0,1856,19,33],
+[0,1856,19,319],
+[0,1856,39,3],
[0,1857,11],
-[0,1864,2],
-[0,1864,2,348],
-[0,1864,2],
-[0,1864,17,349],
-[0,1864,33],
-[0,1864,36],
-[0,1865,22],
-[0,1865,3,45],
-[0,1865,3,319],
-[0,1865,23,344],
-[0,1865,23],
-[0,1865,34],
-[0,1871,2],
-[0,1871,2,350],
-[0,1871,2],
-[0,1871,17,351],
-[0,1871,33],
-[0,1871,36],
-[0,1872,22],
-[0,1872,3,45],
-[0,1872,3,319],
-[0,1872,23,346],
-[0,1872,23],
-[0,1872,34],
-[0,1879,2],
-[0,1879,2,203],
-[0,1879,2],
-[0,1879,19,204],
-[0,1879,38],
-[0,1879,41],
-[0,1880,4],
-[0,1880,11,190],
-[0,1887,2],
-[0,1887,2,328],
-[0,1887,2],
-[0,1887,20,352],
-[0,1887,39],
-[0,1887,40,31],
-[0,1887,48],
-[0,1888,3],
-[0,1888,3],
-[0,1888,7,31],
-[0,1888,25,24],
-[0,1889,4,190],
-[0,1889,14,31],
-[0,1892,11],
-[0,1900,2],
-[0,1900,2,353],
-[0,1900,2],
-[0,1900,22,354],
-[0,1900,43],
-[0,1900,46],
-[0,1901,3],
-[0,1901,10,321],
-[0,1908,2],
-[0,1908,2,355],
-[0,1908,2],
-[0,1908,22,356],
-[0,1908,43],
-[0,1908,44,357],
-[0,1908,55],
-[0,1909,3],
-[0,1909,3],
-[0,1909,7,357],
-[0,1909,28,24],
-[0,1911,11],
-[0,1910,4,321],
-[0,1910,17,357],
-[0,1911,11],
+[0,1859,11],
+[0,1866,2],
+[0,1866,2,349],
+[0,1866,2],
+[0,1866,17,350],
+[0,1866,33],
+[0,1866,36],
+[0,1867,22],
+[0,1867,3,45],
+[0,1867,3,319],
+[0,1867,23,345],
+[0,1867,23],
+[0,1867,34],
+[0,1873,2],
+[0,1873,2,351],
+[0,1873,2],
+[0,1873,17,352],
+[0,1873,33],
+[0,1873,36],
+[0,1874,22],
+[0,1874,3,45],
+[0,1874,3,319],
+[0,1874,23,347],
+[0,1874,23],
+[0,1874,34],
+[0,1881,2],
+[0,1881,2,203],
+[0,1881,2],
+[0,1881,19,204],
+[0,1881,38],
+[0,1881,41],
+[0,1882,4],
+[0,1882,11,190],
+[0,1889,2],
+[0,1889,2,329],
+[0,1889,2],
+[0,1889,20,353],
+[0,1889,39],
+[0,1889,40,31],
+[0,1889,48],
+[0,1890,3],
+[0,1890,3],
+[0,1890,7,31],
+[0,1890,25,24],
+[0,1891,4,190],
+[0,1891,14,31],
+[0,1894,11],
+[0,1902,2],
+[0,1902,2,354],
+[0,1902,2],
+[0,1902,22,355],
+[0,1902,43],
+[0,1902,46],
+[0,1903,3],
+[0,1903,10,321],
+[0,1910,2],
+[0,1910,2,356],
+[0,1910,2],
+[0,1910,22,357],
+[0,1910,43],
+[0,1910,44,358],
+[0,1910,55],
+[0,1911,3],
+[0,1911,3],
+[0,1911,7,358],
+[0,1911,28,24],
[0,1913,11],
-[0,1917,17],
-[0,1917,2,328],
-[0,1917,2],
-[0,1917,18,188],
-[0,1929,6],
-[0,1929,0,0],
-[0,1929,7],
-[0,1929,24],
-[0,1929,25],
-[0,1929,35],
-[0,1936,0,358],
-[0,1936,23],
-[0,1936,24,359],
-[0,1936,32,1],
-[0,1936,39],
-[0,1940,4,360],
-[0,1940,13,360],
-[0,1940,38],
-[0,1940,41],
-[0,1965,8,361],
-[0,1965,17,361],
-[0,1965,27],
-[0,1965,30],
-[0,1966,12],
-[0,1966,16,362],
-[0,1966,16,363],
-[0,1966,16,364],
-[0,1968,35],
-[0,1968,16,119],
-[0,1968,16,365],
-[0,1968,16],
-[0,1968,36],
-[0,1967,43,366],
-[0,1967,33,226],
-[0,1967,33],
-[0,1967,44,362],
-[0,1967,44,363],
-[0,1967,44,364],
-[0,1970,29],
-[0,1970,16,365],
-[0,1970,16],
-[0,1970,30,367],
-[0,1946,12,368],
-[0,1952,8,367],
-[0,1952,24],
-[0,1958,8,369],
-[0,1958,21,362],
-[0,1958,21,363],
-[0,1958,21,364],
-[0,1979,8],
-[0,1979,8,370],
-[0,1979,8],
-[0,1979,31,371],
-[0,1979,55],
-[0,1979,56,372],
-[0,1979,70],
-[0,1980,12],
-[0,1980,12],
-[0,1980,16,372],
-[0,1980,32],
-[0,1980,39,372],
-[0,1980,55],
-[0,1982,23],
-[0,1981,16,367],
-[0,1981,32,372],
-[0,1982,23],
-[0,1984,23],
-[0,1992,8],
-[0,1992,8,373],
-[0,1992,8],
-[0,1992,31,374],
-[0,1992,55],
-[0,1992,58],
-[0,1993,12],
-[0,1993,19,367],
+[0,1912,4,321],
+[0,1912,17,358],
+[0,1913,11],
+[0,1915,11],
+[0,1923,2],
+[0,1923,2,359],
+[0,1923,2],
+[0,1923,24,360],
+[0,1923,47],
+[0,1923,50],
+[0,1924,3],
+[0,1924,10,322],
+[0,1933,2],
+[0,1933,2,361],
+[0,1933,2],
+[0,1933,17,362],
+[0,1933,33],
+[0,1933,34,3],
+[0,1933,39],
+[0,1934,3],
+[0,1934,7,322],
+[0,1935,13],
+[0,1935,4,345],
+[0,1935,4],
+[0,1935,14,322],
+[0,1937,3],
+[0,1937,3],
+[0,1937,16],
+[0,1937,7,347],
+[0,1937,7],
+[0,1937,17,3],
+[0,1939,11],
+[0,1938,4,322],
+[0,1938,19,3],
+[0,1939,11],
+[0,1941,11],
+[0,1945,17],
+[0,1945,2,329],
+[0,1945,2],
+[0,1945,18,188],
+[0,1957,6],
+[0,1957,0,0],
+[0,1957,7],
+[0,1957,24],
+[0,1957,25],
+[0,1957,35],
+[0,1964,0,363],
+[0,1964,23],
+[0,1964,24,364],
+[0,1964,32,1],
+[0,1964,39],
+[0,1968,4,365],
+[0,1968,13,365],
+[0,1968,38],
+[0,1968,41],
+[0,1993,8,366],
+[0,1993,17,366],
+[0,1993,27],
+[0,1993,30],
+[0,1994,12],
+[0,1994,16,367],
+[0,1994,16,368],
+[0,1994,16,369],
+[0,1996,35],
+[0,1996,16,119],
+[0,1996,16,370],
+[0,1996,16],
+[0,1996,36],
+[0,1995,43,371],
+[0,1995,33,226],
+[0,1995,33],
+[0,1995,44,367],
+[0,1995,44,368],
+[0,1995,44,369],
+[0,1998,29],
+[0,1998,16,370],
+[0,1998,16],
+[0,1998,30,372],
+[0,1974,12,373],
+[0,1980,8,372],
+[0,1980,24],
+[0,1986,8,374],
+[0,1986,21,367],
+[0,1986,21,368],
+[0,1986,21,369],
[0,2007,8],
-[0,2007,8,226],
+[0,2007,8,375],
[0,2007,8],
-[0,2007,21,375],
-[0,2007,35],
-[0,2007,36,362],
-[0,2007,42],
+[0,2007,31,376],
+[0,2007,55],
+[0,2007,56,377],
+[0,2007,70],
+[0,2008,12],
[0,2008,12],
-[0,2008,46],
-[0,2008,19,15],
-[0,2008,38],
-[0,2008,19,376],
-[0,2008,29],
-[0,2008,19,15],
-[0,2008,19,362],
-[0,2008,30],
-[0,2008,47],
-[0,2022,8],
-[0,2022,8,377],
-[0,2022,8],
-[0,2022,21,378],
-[0,2022,35],
-[0,2022,36,379],
-[0,2022,42],
-[0,2023,12],
-[0,2023,28],
-[0,2023,19,16],
-[0,2023,19,379],
-[0,2023,29],
-[0,2032,8],
-[0,2032,8,86],
-[0,2032,8],
-[0,2032,21,380],
-[0,2032,35],
-[0,2032,36,372],
-[0,2032,50],
-[0,2033,32],
-[0,2033,12,370],
-[0,2033,12],
-[0,2033,33,372],
-[0,2034,27],
-[0,2034,12,176],
-[0,2034,12,361],
-[0,2034,28],
-[0,2035,33],
-[0,2035,12,381],
-[0,2035,12],
-[0,2036,34],
-[0,2036,12,382],
+[0,2008,16,377],
+[0,2008,32],
+[0,2008,39,377],
+[0,2008,55],
+[0,2010,23],
+[0,2009,16,372],
+[0,2009,32,377],
+[0,2010,23],
+[0,2012,23],
+[0,2020,8],
+[0,2020,8,378],
+[0,2020,8],
+[0,2020,31,379],
+[0,2020,55],
+[0,2020,58],
+[0,2021,12],
+[0,2021,19,372],
+[0,2035,8],
+[0,2035,8,226],
+[0,2035,8],
+[0,2035,21,380],
+[0,2035,35],
+[0,2035,36,367],
+[0,2035,42],
[0,2036,12],
-[0,2042,8],
-[0,2042,8,383],
-[0,2042,8],
-[0,2042,23,384],
-[0,2042,39],
-[0,2042,42],
-[0,2043,24],
-[0,2043,12,385],
-[0,2043,12],
-[0,2043,25,368],
-[0,2044,38],
-[0,2044,12,386],
-[0,2044,12,364],
-[0,2044,39],
-[0,2044,53,387],
-[0,2044,53],
-[0,2044,77],
-[0,2051,8],
-[0,2051,8,388],
-[0,2051,8],
-[0,2051,29,389],
-[0,2051,50],
-[0,2051,53],
-[0,2052,12],
-[0,2052,16,362],
-[0,2052,16,363],
-[0,2052,16,364],
-[0,2052,40,369],
-[0,2053,31],
-[0,2053,16,176],
-[0,2053,16,361],
-[0,2053,32],
-[0,2061,8],
-[0,2061,8,387],
-[0,2061,8],
-[0,2061,55],
-[0,2061,33,146],
-[0,2061,33,388],
-[0,2061,33],
-[0,2061,56],
-[0,2068,8],
-[0,2068,8,381],
-[0,2068,8],
-[0,2068,32,390],
-[0,2068,57],
-[0,2068,60],
-[0,2069,35],
-[0,2069,12,158],
-[0,2069,12,364],
-[0,2069,36],
-[0,2069,50,387],
-[0,2069,50],
-[0,2069,74],
-[0,2076,8],
-[0,2076,8,382],
-[0,2076,8],
-[0,2076,33,391],
-[0,2076,59],
-[0,2076,62],
-[0,2077,12],
-[0,2077,12,368],
-[0,2077,37],
-[0,2077,27,139],
-[0,2077,27],
-[0,2077,38,392],
-[0,2077,38],
-[0,2077,58],
-[0,2085,8],
-[0,2085,8,392],
-[0,2085,8],
-[0,2085,29,393],
-[0,2085,51],
-[0,2085,54],
-[0,2086,12],
-[0,2086,12,362],
-[0,2086,12,363],
-[0,2086,12,364],
-[0,2086,45],
-[0,2086,35,377],
-[0,2086,35],
-[0,2086,59],
-[0,2086,46,34],
-[0,2086,46,1],
-[0,2086,60,154],
-[0,2087,12],
-[0,2087,12,369],
-[0,2087,25,362],
-[0,2087,25,363],
-[0,2087,25,364],
-[0,2090,8],
-[0,2090,8,394],
-[0,2090,8],
-[0,2090,28,395],
-[0,2090,49],
-[0,2090,52],
-[0,2091,12],
-[0,2091,19,369],
-[0,2096,4],
-[0,2096,11,396],
-[0,2096,41],
-[0,2096,44],
-[0,2097,8],
-[0,2097,8,177],
-[0,2097,8,360],
-[0,2097,56],
-[0,2097,50,359],
-[0,2098,8],
-[0,2098,44],
-[0,2098,19,360],
+[0,2036,46],
+[0,2036,19,15],
+[0,2036,38],
+[0,2036,19,381],
+[0,2036,29],
+[0,2036,19,15],
+[0,2036,19,367],
+[0,2036,30],
+[0,2036,47],
+[0,2050,8],
+[0,2050,8,382],
+[0,2050,8],
+[0,2050,21,383],
+[0,2050,35],
+[0,2050,36,384],
+[0,2050,42],
+[0,2051,12],
+[0,2051,28],
+[0,2051,19,16],
+[0,2051,19,384],
+[0,2051,29],
+[0,2060,8],
+[0,2060,8,86],
+[0,2060,8],
+[0,2060,21,385],
+[0,2060,35],
+[0,2060,36,377],
+[0,2060,50],
+[0,2061,32],
+[0,2061,12,375],
+[0,2061,12],
+[0,2061,33,377],
+[0,2062,27],
+[0,2062,12,176],
+[0,2062,12,366],
+[0,2062,28],
+[0,2063,33],
+[0,2063,12,386],
+[0,2063,12],
+[0,2064,34],
+[0,2064,12,387],
+[0,2064,12],
+[0,2070,8],
+[0,2070,8,388],
+[0,2070,8],
+[0,2070,23,389],
+[0,2070,39],
+[0,2070,42],
+[0,2071,24],
+[0,2071,12,390],
+[0,2071,12],
+[0,2071,25,373],
+[0,2072,38],
+[0,2072,12,391],
+[0,2072,12,369],
+[0,2072,39],
+[0,2072,53,392],
+[0,2072,53],
+[0,2072,77],
+[0,2079,8],
+[0,2079,8,393],
+[0,2079,8],
+[0,2079,29,394],
+[0,2079,50],
+[0,2079,53],
+[0,2080,12],
+[0,2080,16,367],
+[0,2080,16,368],
+[0,2080,16,369],
+[0,2080,40,374],
+[0,2081,31],
+[0,2081,16,176],
+[0,2081,16,366],
+[0,2081,32],
+[0,2089,8],
+[0,2089,8,392],
+[0,2089,8],
+[0,2089,55],
+[0,2089,33,146],
+[0,2089,33,393],
+[0,2089,33],
+[0,2089,56],
+[0,2096,8],
+[0,2096,8,386],
+[0,2096,8],
+[0,2096,32,395],
+[0,2096,57],
+[0,2096,60],
+[0,2097,35],
+[0,2097,12,158],
+[0,2097,12,369],
+[0,2097,36],
+[0,2097,50,392],
+[0,2097,50],
+[0,2097,74],
+[0,2104,8],
+[0,2104,8,387],
+[0,2104,8],
+[0,2104,33,396],
+[0,2104,59],
+[0,2104,62],
+[0,2105,12],
+[0,2105,12,373],
+[0,2105,37],
+[0,2105,27,139],
+[0,2105,27],
+[0,2105,38,397],
+[0,2105,38],
+[0,2105,58],
+[0,2113,8],
+[0,2113,8,397],
+[0,2113,8],
+[0,2113,29,398],
+[0,2113,51],
+[0,2113,54],
+[0,2114,12],
+[0,2114,12,367],
+[0,2114,12,368],
+[0,2114,12,369],
+[0,2114,45],
+[0,2114,35,382],
+[0,2114,35],
+[0,2114,59],
+[0,2114,46,34],
+[0,2114,46,1],
+[0,2114,60,154],
+[0,2115,12],
+[0,2115,12,374],
+[0,2115,25,367],
+[0,2115,25,368],
+[0,2115,25,369],
+[0,2118,8],
+[0,2118,8,399],
+[0,2118,8],
+[0,2118,28,400],
+[0,2118,49],
+[0,2118,52],
+[0,2119,12],
+[0,2119,19,374],
+[0,2124,4],
+[0,2124,11,401],
+[0,2124,41],
+[0,2124,44],
+[0,2125,8],
+[0,2125,8,177],
+[0,2125,8,365],
+[0,2125,56],
+[0,2125,50,364],
+[0,2126,8],
+[0,2126,44],
+[0,2126,19,365],
],
"sources":["build/Olives.js"],
-"names":["define","Tools","getNodes","dom","query","isAcceptedType","parentNode","appendChild","createDocumentFragment","document","querySelectorAll","getDataset","i","l","dataset","split","join","hasOwnProperty","length","attributes","name","shift","getAttribute","type","HTMLElement","SVGElement","setAttribute","node","property","value","matches","parent","selector","indexOf","toArray","BindPlugin","Store","Observable","DomUtils","BindPluginConstructor","$model","$bindings","_removeObserversForId","id","_observers","forEach","handler","unwatchValue","_model","_bindings","_itemRenderers","observers","setModel","this.setModel","model","getModel","this.getModel","ItemRenderer","this.ItemRenderer","$plugins","$rootNode","_node","_plugins","_rootNode","_start","_nb","setRenderer","this.setRenderer","getRenderer","this.getRenderer","setRootNode","this.setRootNode","rootNode","renderer","querySelector","removeChild","getRootNode","this.getRootNode","setPlugins","this.setPlugins","plugins","getPlugins","this.getPlugins","items","setStart","this.setStart","start","parseInt","getStart","this.getStart","setNb","this.setNb","nb","getNb","this.getNb","addItem","this.addItem","next","getNextItem","create","insertBefore","this.getNextItem","keys","map","Object","string","Number","closest","closestGreater","closestId","removeItem","this.removeItem","item","this.create","has","newNode","cloneNode","nodes","child","apply","render","this.render","_tmpNb","getNbItems","marked","loop","idx","push","reverse","sort","compareNumbers","setItemRenderer","this.setItemRenderer","itemRenderer","getItemRenderer","this.getItemRenderer","foreach","this.foreach","idItemRenderer","watch","updateStart","this.updateStart","updateNb","this.updateNb","refresh","this.refresh","bind","this.bind","modelIdx","prop","get","getNestedProperty","extraParam","slice","arguments","execBinding","concat","hasBinding","addEventListener","update","set","watchValue","this.set","getItemIndex","this.getItemIndex","form","this.form","DOMform","nodeName","that","event","preventDefault","addBinding","this.addBinding","binding","this.execBinding","call","prototype","Array","this.hasBinding","getBinding","this.getBinding","addBindings","this.addBindings","list","EventPlugin","Utils","EventPluginConstructor","$parent","$isMobile","_parent","_map","_isMobile","this.addEventListener","callback","useCapture","listen","this.listen","listener","e","delegate","this.delegate","target","getParent","this.getParent","setParent","this.setParent","this.map","setMap","this.setMap","LocalStore","LocalStoreConstructor","_name","_localStorage","localStorage","setLocalStorage","setItem","toJSON","this.setLocalStorage","local$torage","Function","getLocalStorage","this.getLocalStorage","sync","this.sync","json","parse","JSON","getItem","LocalStoreFactory","init","Plugins","PluginsConstructor","trim","applyPlugin","phrase","plugin","couple","method","params","unshift","add","this.add","addAll","this.addAll","this.get","del","this.del","this.apply","OObject","StateMachine","OObjectConstructor","otherStore","UI","baseNode","_currentPlace","createElement","template","innerHTML","childNodes","Error","place","DOMplace","beforeNode","_stateMachine","renderNPlace","this.place","setTemplateFromDom","this.setTemplateFromDom","alive","this.alive","nextElementSibling","getCurrentPlace","this.getCurrentPlace","PlacePlugin","PlacePluginConstructor","$uis","_uis","ui","setAll","this.setAll","uis","SocketIOTransport","SocketIOTransportConstructor","$socket","_socket","setSocket","this.setSocket","socket","emit","getSocket","this.getSocket","on","this.on","func","once","this.once","this.emit","data","removeListener","this.removeListener","request","this.request","channel","scope","reqData","now","Date","floor","Math","random","eventId","boundCallback","stop","Stack","require","StackConstructor","getNextElementInDom","position","_childNodes","nextElement","_hidePlace","remove","this.remove","index","splice","newParentDom","childDom","_setParent","up","this.up","domPosition","getPosition","move","down","this.down","this.move","domIndex","insert","this.insert","this.getPosition","count","this.count","this.has","hide","this.hide","show","this.show","hideAll","this.hideAll","showAll","this.showAll","this._setParent","getHidePlace","this.getHidePlace","setHidePlace","this.setHidePlace","hidePlace","LocationRouter","Router","LocationRouterConstructor","doNavigate","hash","location","window","navigate","parsedHash","_defaultRoute","_watchHandle","_lastRoute","setDefaultRoute","this.setDefaultRoute","defaultRoute","getDefaultRoute","this.getDefaultRoute","this.parse","pop","toUrl","this.toUrl","args","this.start","bindOnHashChange","bindOnRouteChange","destroy","this.destroy","unwatch","removeEventListener","boundOnHashChange","onHashChange","this.onHashChange","this.bindOnHashChange","this.bindOnRouteChange","onRouteChange","this.onRouteChange","getLastRoute","this.getLastRoute","LocationRouterFactory"]
+"names":["define","Tools","getNodes","dom","query","isAcceptedType","parentNode","appendChild","createDocumentFragment","document","querySelectorAll","getDataset","i","l","dataset","split","join","hasOwnProperty","length","attributes","name","shift","getAttribute","type","HTMLElement","SVGElement","setAttribute","node","property","value","matches","parent","selector","indexOf","toArray","BindPlugin","Store","Observable","DomUtils","BindPluginConstructor","$model","$bindings","_removeObserversForId","id","_observers","forEach","handler","unwatchValue","_model","_bindings","_itemRenderers","observers","setModel","this.setModel","model","getModel","this.getModel","ItemRenderer","this.ItemRenderer","$plugins","$rootNode","_node","_plugins","_rootNode","_start","_nb","setRenderer","this.setRenderer","getRenderer","this.getRenderer","setRootNode","this.setRootNode","rootNode","renderer","querySelector","removeChild","getRootNode","this.getRootNode","setPlugins","this.setPlugins","plugins","getPlugins","this.getPlugins","items","setStart","this.setStart","start","parseInt","getStart","this.getStart","setNb","this.setNb","nb","getNb","this.getNb","addItem","this.addItem","next","getNextItem","create","insertBefore","this.getNextItem","keys","map","Object","string","Number","closest","closestGreater","closestId","removeItem","this.removeItem","item","this.create","has","newNode","cloneNode","nodes","child","apply","render","this.render","_tmpNb","getNbItems","marked","loop","idx","push","reverse","sort","compareNumbers","setItemRenderer","this.setItemRenderer","itemRenderer","getItemRenderer","this.getItemRenderer","foreach","this.foreach","idItemRenderer","watch","updateStart","this.updateStart","updateNb","this.updateNb","refresh","this.refresh","bind","this.bind","modelIdx","prop","get","getNestedProperty","extraParam","slice","arguments","execBinding","concat","hasBinding","addEventListener","update","set","watchValue","this.set","getItemIndex","this.getItemIndex","form","this.form","DOMform","nodeName","that","event","preventDefault","addBinding","this.addBinding","binding","this.execBinding","call","prototype","Array","this.hasBinding","getBinding","this.getBinding","addBindings","this.addBindings","list","EventPlugin","Utils","EventPluginConstructor","$parent","$isMobile","_parent","_map","_isMobile","this.addEventListener","callback","useCapture","listen","this.listen","listener","e","delegate","this.delegate","target","getParent","this.getParent","setParent","this.setParent","this.map","setMap","this.setMap","LocalStore","LocalStoreConstructor","_name","_localStorage","localStorage","setLocalStorage","setItem","toJSON","this.setLocalStorage","local$torage","Function","getLocalStorage","this.getLocalStorage","sync","this.sync","json","parse","JSON","getItem","LocalStoreFactory","init","Plugins","PluginsConstructor","trim","applyPlugin","phrase","plugin","couple","method","params","unshift","add","this.add","addAll","this.addAll","this.get","del","this.del","this.apply","OObject","StateMachine","OObjectConstructor","otherStore","UI","baseNode","_currentPlace","createElement","template","innerHTML","childNodes","Error","place","DOMplace","beforeNode","_stateMachine","renderNPlace","this.place","setTemplateFromDom","this.setTemplateFromDom","alive","this.alive","nextElementSibling","getCurrentPlace","this.getCurrentPlace","PlacePlugin","PlacePluginConstructor","$uis","_uis","ui","setAll","this.setAll","uis","SocketIOTransport","SocketIOTransportConstructor","$socket","_socket","setSocket","this.setSocket","socket","emit","getSocket","this.getSocket","on","this.on","func","once","this.once","this.emit","data","removeListener","this.removeListener","request","this.request","channel","scope","reqData","now","Date","floor","Math","random","eventId","boundCallback","stop","Stack","require","StackConstructor","getNextElementInDom","position","_childNodes","nextElement","_hidePlace","_lastTransit","remove","this.remove","index","splice","newParentDom","childDom","_setParent","up","this.up","domPosition","getPosition","move","down","this.down","this.move","domIndex","insert","this.insert","this.getPosition","count","this.count","this.has","hide","this.hide","show","this.show","hideAll","this.hideAll","showAll","this.showAll","this._setParent","getHidePlace","this.getHidePlace","setHidePlace","this.setHidePlace","hidePlace","getLastTransit","this.getLastTransit","transit","this.transit","LocationRouter","Router","LocationRouterConstructor","doNavigate","hash","location","window","navigate","parsedHash","_defaultRoute","_watchHandle","_lastRoute","setDefaultRoute","this.setDefaultRoute","defaultRoute","getDefaultRoute","this.getDefaultRoute","this.parse","pop","toUrl","this.toUrl","args","this.start","bindOnHashChange","bindOnRouteChange","destroy","this.destroy","unwatch","removeEventListener","boundOnHashChange","onHashChange","this.onHashChange","this.bindOnHashChange","this.bindOnRouteChange","onRouteChange","this.onRouteChange","getLastRoute","this.getLastRoute","LocationRouterFactory"]
}
View
30 build/Olives.js
@@ -1667,7 +1667,9 @@ function Stack() {
* Helps for excluding elements that are not part of it
* @private
*/
- _childNodes = [];
+ _childNodes = [],
+
+ _lastTransit = null;
/**
* Add a DOM element to the stack. It will be appended.
@@ -1914,6 +1916,32 @@ function Stack() {
}
};
+ /**
+ * Get the last dom element that the stack transitted to
+ * @returns {HTMLElement} the last dom element
+ */
+ this.getLastTransit = function getLastTransit() {
+ return _lastTransit;
+ };
+
+ /**
+ * Transit between views, will show the new one and hide the previous
+ * element that the stack transitted to, if any.
+ * @param {HTMLElement} dom the element to transit to
+ * @returns {Boolean} false if the element can't be shown
+ */
+ this.transit = function transit(dom) {
+ if (_lastTransit) {
+ this.hide(_lastTransit);
+ }
+ if (this.show(dom)) {
+ _lastTransit = dom;
+ return true;
+ } else {
+ return false;
+ }
+ };
+
this._setParent($parent);
};
View
56 build/Olives.min.js
@@ -3,32 +3,32 @@
The MIT License (MIT)
Copyright (c) 2012-2013 Olivier Scherrer <pode.fr@gmail.com> - Olivier Wietrich <olivier.wietrich@gmail.com>
*/
-define("DomUtils",["Tools"],function(g){return{getNodes:function(d,c){return this.isAcceptedType(d)?(d.parentNode||document.createDocumentFragment().appendChild(d),d.parentNode.querySelectorAll(c||"*")):false},getDataset:function(d){var c=0,b,h={},e,a;if(this.isAcceptedType(d))if(d.hasOwnProperty("dataset"))return d.dataset;else{for(b=d.attributes.length;c<b;c++)e=d.attributes[c].name.split("-"),e.shift()=="data"&&(h[a=e.join("-")]=d.getAttribute("data-"+a));return h}else return false},isAcceptedType:function(d){return d instanceof
-HTMLElement||d instanceof SVGElement?true:false},setAttribute:function(d,c,b){return d instanceof HTMLElement?(d[c]=b,true):d instanceof SVGElement?(d.setAttribute(c,b),true):false},matches:function(d,c,b){return g.toArray(this.getNodes(d,c)).indexOf(b)>-1}}});
-define("Bind.plugin",["Store","Observable","Tools","DomUtils"],function(g,d,c,b){return function(d,e){function a(a){i[a]&&(i[a].forEach(function(a){f.unwatchValue(a)}),delete i[a])}var f=null,j={},l={},i={};this.observers=i;this.setModel=function(a){return a instanceof g?(f=a,true):false};this.getModel=function(){return f};this.ItemRenderer=function(k,e){var d=null,h=null,i=null,j=null,g=null;this.setRenderer=function(a){d=a;return true};this.getRenderer=function(){return d};this.setRootNode=function(a){return b.isAcceptedType(a)?
-(i=a,a=i.querySelector("*"),this.setRenderer(a),a&&i.removeChild(a),true):false};this.getRootNode=function(){return i};this.setPlugins=function(a){h=a;return true};this.getPlugins=function(){return h};this.items={};this.setStart=function(a){return j=parseInt(a,10)};this.getStart=function(){return j};this.setNb=function(a){return g=a=="*"?a:parseInt(a,10)};this.getNb=function(){return g};this.addItem=function(a){var b;return typeof a=="number"&&!this.items[a]?(b=this.getNextItem(a),(a=this.create(a))?
-(b?i.insertBefore(a,b):i.appendChild(a),true):false):false};this.getNextItem=function(a){var b=Object.keys(this.items).map(function(a){return Number(a)}),f=c.closestGreater(a,b),b=b[f];if(b!=a)return this.items[b]};this.removeItem=function(b){var f=this.items[b];return f?(i.removeChild(f),delete this.items[b],a(b),true):false};this.create=function(a){if(f.has(a)){var k=d.cloneNode(true),e=b.getNodes(k);c.toArray(e).forEach(function(b){b.setAttribute("data-"+h.name+"_id",a)});this.items[a]=k;h.apply(k);
-return k}};this.render=function(){var a=g=="*"?f.getNbItems():g,b=[];if(g!==null&&j!==null){c.loop(this.items,function(k,c){c=Number(c);(c<j||c>=j+a||!f.has(c))&&b.push(c)},this);b.sort(c.compareNumbers).reverse().forEach(this.removeItem,this);for(var k=j,e=a+j;k<e;k++)this.addItem(k);return true}else return false};this.setPlugins(k);this.setRootNode(e)};this.setItemRenderer=function(a,b){l[a||"default"]=b};this.getItemRenderer=function(a){return l[a]};this.foreach=function(b,c,e,d){var i=new this.ItemRenderer(this.plugins,
-b);i.setStart(e||0);i.setNb(d||"*");i.render();f.watch("added",i.render,i);f.watch("deleted",function(b){i.render();a(b)},this);this.setItemRenderer(c,i)};this.updateStart=function(a,b){var f=this.getItemRenderer(a);return f?(f.setStart(b),true):false};this.updateNb=function(a,b){var f=this.getItemRenderer(a);return f?(f.setNb(b),true):false};this.refresh=function(a){return(a=this.getItemRenderer(a))?(a.render(),true):false};this.bind=function(a,e,i){var i=i||"",d=a.getAttribute("data-"+this.plugins.name+
-"_id"),h=i.split("."),j=d||h.shift(),g=d?i:h.join("."),d=c.getNestedProperty(f.get(j),g),l=c.toArray(arguments).slice(3);if(d||d===0||d===false)this.execBinding.apply(this,[a,e,d].concat(l))||b.setAttribute(a,e,d);this.hasBinding(e)||a.addEventListener("change",function(){f.has(j)&&(g?f.update(j,i,a[e]):f.set(j,a[e]))},true);this.observers[j]=this.observers[j]||[];this.observers[j].push(f.watchValue(j,function(f){this.execBinding.apply(this,[a,e,c.getNestedProperty(f,g)].concat(l))||b.setAttribute(a,
-e,c.getNestedProperty(f,g))},this))};this.set=function(a){return b.isAcceptedType(a)&&a.name?(f.set(a.name,a.value),true):false};this.getItemIndex=function(a){return(a=b.getDataset(a))&&typeof a[this.plugins.name+"_id"]!="undefined"?+a[this.plugins.name+"_id"]:false};this.form=function(a){if(a&&a.nodeName=="FORM"){var b=this;a.addEventListener("submit",function(f){c.toArray(a.querySelectorAll("[name]")).forEach(b.set,b);f.preventDefault()},true);return true}else return false};this.addBinding=function(a,
-b){return a&&typeof a=="string"&&typeof b=="function"?(j[a]=b,true):false};this.execBinding=function(a,b){return this.hasBinding(b)?(j[b].apply(a,Array.prototype.slice.call(arguments,2)),true):false};this.hasBinding=function(a){return j.hasOwnProperty(a)};this.getBinding=function(a){return j[a]};this.addBindings=function(a){return c.loop(a,function(a,b){this.addBinding(b,a)},this)};this.setModel(d);this.addBindings(e)}});
-define("Event.plugin",["DomUtils"],function(g){return function(d,c){var b=null,h={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},e=!!c;this.addEventListener=function(a,b,c,e){a.addEventListener(this.map(b),c,!!e)};this.listen=function(a,f,c,e){this.addEventListener(a,f,function(f){b[c].call(b,f,a)},!!e)};this.delegate=function(a,f,c,e,d){this.addEventListener(a,c,function(c){g.matches(a,f,c.target)&&b[e].call(b,c,a)},!!d)};this.getParent=function(){return b};this.setParent=function(a){return a instanceof
-Object?(b=a,true):false};this.map=function(a){return e?h[a]||a:a};this.setMap=function(a,b){return typeof a=="string"&&typeof b=="string"?(h[a]=b,true):false};this.setParent(d)}});
-define("LocalStore",["Store","Tools"],function(g,d){function c(){var b=null,c=localStorage,e=function(){c.setItem(b,this.toJSON())};this.setLocalStorage=function(a){return a&&a.setItem instanceof Function?(c=a,true):false};this.getLocalStorage=function(){return c};this.sync=function(a){return typeof a=="string"?(b=a,a=JSON.parse(c.getItem(a)),d.loop(a,function(a,b){this.has(b)||this.set(b,a)},this),e.call(this),this.watch("added",e,this),this.watch("updated",e,this),this.watch("deleted",e,this),true):
-false}}return function(b){c.prototype=new g(b);return new c}});
-define("Plugins",["Tools","DomUtils"],function(g,d){return function(c){var b={},h=function(a){return a.trim()},e=function(a,f,c){f.split(";").forEach(function(f){var e=f.split(":"),f=e[0].trim(),e=e[1]?e[1].split(",").map(h):[];e.unshift(a);b[c]&&b[c][f]&&b[c][f].apply(b[c],e)})};this.add=function(a,f){var c=this;return typeof a=="string"&&typeof f=="object"&&f?(b[a]=f,f.plugins={name:a,apply:function(){return c.apply.apply(c,arguments)}},true):false};this.addAll=function(a){return g.loop(a,function(a,
-b){this.add(b,a)},this)};this.get=function(a){return b[a]};this.del=function(a){return delete b[a]};this.apply=function(a){var b;return d.isAcceptedType(a)?(b=d.getNodes(a),g.loop(g.toArray(b),function(a){g.loop(d.getDataset(a),function(b,c){e(a,b,c)})}),a):false};this.addAll(c)}});
-define("OObject",["StateMachine","Store","Plugins","DomUtils","Tools"],function(g,d,c,b,h){return function(e){var a=function(a){var c=j||document.createElement("div");if(a.template){typeof a.template=="string"?c.innerHTML=a.template.trim():b.isAcceptedType(a.template)&&c.appendChild(a.template);if(c.childNodes.length>1)throw Error("UI.template should have only one parent node");else a.dom=c.childNodes[0];a.plugins.apply(a.dom)}else throw Error("UI.template must be set prior to render");},f=function(a,
-b,c){b&&(c?b.insertBefore(a.dom,c):b.appendChild(a.dom),j=b)},j=null,l=new g("Init",{Init:[["render",a,this,"Rendered"],["place",function(b,c){a(b);f.apply(null,h.toArray(arguments))},this,"Rendered"]],Rendered:[["place",f,this],["render",a,this]]});this.model=e instanceof d?e:new d;this.plugins=new c;this.dom=this.template=null;this.place=function(a,b){l.event("place",this,a,b)};this.render=function(){l.event("render",this)};this.setTemplateFromDom=function(a){return b.isAcceptedType(a)?(this.template=
-a,true):false};this.alive=function(a){return b.isAcceptedType(a)?(this.setTemplateFromDom(a),this.place(a.parentNode,a.nextElementSibling),true):false};this.getCurrentPlace=function(){return j}}});
-define("Place.plugin",["OObject","Tools"],function(g,d){return function(c){var b={};this.place=function(c,e){if(b[e]instanceof g)b[e].place(c);else throw Error(e+" is not an OObject UI in place:"+e);};this.set=function(c,e){return typeof c=="string"&&e instanceof g?(b[c]=e,true):false};this.setAll=function(b){d.loop(b,function(b,a){this.set(a,b)},this)};this.get=function(c){return b[c]};this.setAll(c)}});
-define("SocketIOTransport",["Observable","Tools"],function(){return function(g){var d=null;this.setSocket=function(c){return c&&typeof c.emit=="function"?(d=c,true):false};this.getSocket=function(){return d};this.on=function(c,b){return d.on(c,b)};this.once=function(c,b){return d.once(c,b)};this.emit=function(c,b,h){return d.emit(c,b,h)};this.removeListener=function(c,b,h){return d.removeListener(c,b,h)};this.request=function(c,b,d,e){return typeof c=="string"&&typeof b!="undefined"?(b={eventId:Date.now()+
-Math.floor(Math.random()*1E6),data:b},this.once(b.eventId,function(){d&&d.apply(e||null,arguments)}),this.emit(c,b),true):false};this.listen=function(c,b,d,e){if(typeof c=="string"&&typeof b!="undefined"&&typeof d=="function"){var a={eventId:Date.now()+Math.floor(Math.random()*1E6),data:b,keepAlive:true},f=function(){d&&d.apply(e||null,arguments)},g=this;this.on(a.eventId,f);this.emit(c,a);return function(){g.emit("disconnect-"+a.eventId);g.removeListener(a.eventId,f)}}else return false};this.setSocket(g)}});
-define("Stack",["Tools"],function(){var g=require("Tools");return function(d){function c(a){if(!(a>=e.length)){var f=e[a];return g.toArray(b.childNodes).indexOf(f)==-1?c(a+1):f}}var b=document.createDocumentFragment(),h=document.createElement("div"),e=[];this.add=function(a){return!this.has(a)&&a instanceof HTMLElement?(b.appendChild(a),e.push(a),a):false};this.remove=function(a){var c;return this.has(a)?(c=e.indexOf(a),b.removeChild(a),e.splice(c,1),a):false};this.place=function(a){return a instanceof
-HTMLElement?([].slice.call(b.childNodes).forEach(function(b){this.has(b)&&a.appendChild(b)},this),this._setParent(a)):false};this.up=function(a){if(this.has(a)){var b=this.getPosition(a);this.move(a,b+1);return a}else return false};this.down=function(a){if(this.has(a)){var b=this.getPosition(a);this.move(a,b-1);return a}else return false};this.move=function(a,f){if(this.has(a)){var d=e.indexOf(a);e.splice(d,1);(d=c(f))?b.insertBefore(a,d):b.appendChild(a);e.splice(f,0,a);return a}else return false};
+define("DomUtils",["Tools"],function(i){return{getNodes:function(d,f){return this.isAcceptedType(d)?(d.parentNode||document.createDocumentFragment().appendChild(d),d.parentNode.querySelectorAll(f||"*")):false},getDataset:function(d){var f=0,b,h={},e,c;if(this.isAcceptedType(d))if(d.hasOwnProperty("dataset"))return d.dataset;else{for(b=d.attributes.length;f<b;f++)e=d.attributes[f].name.split("-"),e.shift()=="data"&&(h[c=e.join("-")]=d.getAttribute("data-"+c));return h}else return false},isAcceptedType:function(d){return d instanceof
+HTMLElement||d instanceof SVGElement?true:false},setAttribute:function(d,f,b){return d instanceof HTMLElement?(d[f]=b,true):d instanceof SVGElement?(d.setAttribute(f,b),true):false},matches:function(d,f,b){return i.toArray(this.getNodes(d,f)).indexOf(b)>-1}}});
+define("Bind.plugin",["Store","Observable","Tools","DomUtils"],function(i,d,f,b){return function(d,e){function c(b){j[b]&&(j[b].forEach(function(b){a.unwatchValue(b)}),delete j[b])}var a=null,g={},l={},j={};this.observers=j;this.setModel=function(b){return b instanceof i?(a=b,true):false};this.getModel=function(){return a};this.ItemRenderer=function(k,g){var e=null,d=null,h=null,j=null,i=null;this.setRenderer=function(a){e=a;return true};this.getRenderer=function(){return e};this.setRootNode=function(a){return b.isAcceptedType(a)?
+(h=a,a=h.querySelector("*"),this.setRenderer(a),a&&h.removeChild(a),true):false};this.getRootNode=function(){return h};this.setPlugins=function(a){d=a;return true};this.getPlugins=function(){return d};this.items={};this.setStart=function(a){return j=parseInt(a,10)};this.getStart=function(){return j};this.setNb=function(a){return i=a=="*"?a:parseInt(a,10)};this.getNb=function(){return i};this.addItem=function(a){var b;return typeof a=="number"&&!this.items[a]?(b=this.getNextItem(a),(a=this.create(a))?
+(b?h.insertBefore(a,b):h.appendChild(a),true):false):false};this.getNextItem=function(a){var b=Object.keys(this.items).map(function(a){return Number(a)}),c=f.closestGreater(a,b),b=b[c];if(b!=a)return this.items[b]};this.removeItem=function(a){var b=this.items[a];return b?(h.removeChild(b),delete this.items[a],c(a),true):false};this.create=function(c){if(a.has(c)){var k=e.cloneNode(true),g=b.getNodes(k);f.toArray(g).forEach(function(a){a.setAttribute("data-"+d.name+"_id",c)});this.items[c]=k;d.apply(k);
+return k}};this.render=function(){var b=i=="*"?a.getNbItems():i,c=[];if(i!==null&&j!==null){f.loop(this.items,function(k,g){g=Number(g);(g<j||g>=j+b||!a.has(g))&&c.push(g)},this);c.sort(f.compareNumbers).reverse().forEach(this.removeItem,this);for(var k=j,g=b+j;k<g;k++)this.addItem(k);return true}else return false};this.setPlugins(k);this.setRootNode(g)};this.setItemRenderer=function(a,b){l[a||"default"]=b};this.getItemRenderer=function(a){return l[a]};this.foreach=function(b,g,f,d){var e=new this.ItemRenderer(this.plugins,
+b);e.setStart(f||0);e.setNb(d||"*");e.render();a.watch("added",e.render,e);a.watch("deleted",function(a){e.render();c(a)},this);this.setItemRenderer(g,e)};this.updateStart=function(a,b){var c=this.getItemRenderer(a);return c?(c.setStart(b),true):false};this.updateNb=function(a,b){var c=this.getItemRenderer(a);return c?(c.setNb(b),true):false};this.refresh=function(a){return(a=this.getItemRenderer(a))?(a.render(),true):false};this.bind=function(c,g,e){var e=e||"",d=c.getAttribute("data-"+this.plugins.name+
+"_id"),h=e.split("."),j=d||h.shift(),i=d?e:h.join("."),d=f.getNestedProperty(a.get(j),i),l=f.toArray(arguments).slice(3);if(d||d===0||d===false)this.execBinding.apply(this,[c,g,d].concat(l))||b.setAttribute(c,g,d);this.hasBinding(g)||c.addEventListener("change",function(){a.has(j)&&(i?a.update(j,e,c[g]):a.set(j,c[g]))},true);this.observers[j]=this.observers[j]||[];this.observers[j].push(a.watchValue(j,function(a){this.execBinding.apply(this,[c,g,f.getNestedProperty(a,i)].concat(l))||b.setAttribute(c,
+g,f.getNestedProperty(a,i))},this))};this.set=function(c){return b.isAcceptedType(c)&&c.name?(a.set(c.name,c.value),true):false};this.getItemIndex=function(a){return(a=b.getDataset(a))&&typeof a[this.plugins.name+"_id"]!="undefined"?+a[this.plugins.name+"_id"]:false};this.form=function(a){if(a&&a.nodeName=="FORM"){var b=this;a.addEventListener("submit",function(c){f.toArray(a.querySelectorAll("[name]")).forEach(b.set,b);c.preventDefault()},true);return true}else return false};this.addBinding=function(a,
+b){return a&&typeof a=="string"&&typeof b=="function"?(g[a]=b,true):false};this.execBinding=function(a,b){return this.hasBinding(b)?(g[b].apply(a,Array.prototype.slice.call(arguments,2)),true):false};this.hasBinding=function(a){return g.hasOwnProperty(a)};this.getBinding=function(a){return g[a]};this.addBindings=function(a){return f.loop(a,function(a,b){this.addBinding(b,a)},this)};this.setModel(d);this.addBindings(e)}});
+define("Event.plugin",["DomUtils"],function(i){return function(d,f){var b=null,h={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},e=!!f;this.addEventListener=function(b,a,g,e){b.addEventListener(this.map(a),g,!!e)};this.listen=function(c,a,g,e){this.addEventListener(c,a,function(a){b[g].call(b,a,c)},!!e)};this.delegate=function(c,a,g,e,d){this.addEventListener(c,g,function(g){i.matches(c,a,g.target)&&b[e].call(b,g,c)},!!d)};this.getParent=function(){return b};this.setParent=function(c){return c instanceof
+Object?(b=c,true):false};this.map=function(b){return e?h[b]||b:b};this.setMap=function(b,a){return typeof b=="string"&&typeof a=="string"?(h[b]=a,true):false};this.setParent(d)}});
+define("LocalStore",["Store","Tools"],function(i,d){function f(){var b=null,f=localStorage,e=function(){f.setItem(b,this.toJSON())};this.setLocalStorage=function(b){return b&&b.setItem instanceof Function?(f=b,true):false};this.getLocalStorage=function(){return f};this.sync=function(c){return typeof c=="string"?(b=c,c=JSON.parse(f.getItem(c)),d.loop(c,function(a,b){this.has(b)||this.set(b,a)},this),e.call(this),this.watch("added",e,this),this.watch("updated",e,this),this.watch("deleted",e,this),true):
+false}}return function(b){f.prototype=new i(b);return new f}});
+define("Plugins",["Tools","DomUtils"],function(i,d){return function(f){var b={},h=function(b){return b.trim()},e=function(c,a,g){a.split(";").forEach(function(a){var e=a.split(":"),a=e[0].trim(),e=e[1]?e[1].split(",").map(h):[];e.unshift(c);b[g]&&b[g][a]&&b[g][a].apply(b[g],e)})};this.add=function(c,a){var e=this;return typeof c=="string"&&typeof a=="object"&&a?(b[c]=a,a.plugins={name:c,apply:function(){return e.apply.apply(e,arguments)}},true):false};this.addAll=function(b){return i.loop(b,function(a,
+b){this.add(b,a)},this)};this.get=function(c){return b[c]};this.del=function(c){return delete b[c]};this.apply=function(b){var a;return d.isAcceptedType(b)?(a=d.getNodes(b),i.loop(i.toArray(a),function(a){i.loop(d.getDataset(a),function(b,c){e(a,b,c)})}),b):false};this.addAll(f)}});
+define("OObject",["StateMachine","Store","Plugins","DomUtils","Tools"],function(i,d,f,b,h){return function(e){var c=function(a){var c=g||document.createElement("div");if(a.template){typeof a.template=="string"?c.innerHTML=a.template.trim():b.isAcceptedType(a.template)&&c.appendChild(a.template);if(c.childNodes.length>1)throw Error("UI.template should have only one parent node");else a.dom=c.childNodes[0];a.plugins.apply(a.dom)}else throw Error("UI.template must be set prior to render");},a=function(a,
+b,c){b&&(c?b.insertBefore(a.dom,c):b.appendChild(a.dom),g=b)},g=null,l=new i("Init",{Init:[["render",c,this,"Rendered"],["place",function(b,e){c(b);a.apply(null,h.toArray(arguments))},this,"Rendered"]],Rendered:[["place",a,this],["render",c,this]]});this.model=e instanceof d?e:new d;this.plugins=new f;this.dom=this.template=null;this.place=function(a,b){l.event("place",this,a,b)};this.render=function(){l.event("render",this)};this.setTemplateFromDom=function(a){return b.isAcceptedType(a)?(this.template=
+a,true):false};this.alive=function(a){return b.isAcceptedType(a)?(this.setTemplateFromDom(a),this.place(a.parentNode,a.nextElementSibling),true):false};this.getCurrentPlace=function(){return g}}});
+define("Place.plugin",["OObject","Tools"],function(i,d){return function(f){var b={};this.place=function(d,e){if(b[e]instanceof i)b[e].place(d);else throw Error(e+" is not an OObject UI in place:"+e);};this.set=function(d,e){return typeof d=="string"&&e instanceof i?(b[d]=e,true):false};this.setAll=function(b){d.loop(b,function(b,c){this.set(c,b)},this)};this.get=function(d){return b[d]};this.setAll(f)}});
+define("SocketIOTransport",["Observable","Tools"],function(){return function(i){var d=null;this.setSocket=function(f){return f&&typeof f.emit=="function"?(d=f,true):false};this.getSocket=function(){return d};this.on=function(f,b){return d.on(f,b)};this.once=function(f,b){return d.once(f,b)};this.emit=function(f,b,h){return d.emit(f,b,h)};this.removeListener=function(f,b,h){return d.removeListener(f,b,h)};this.request=function(d,b,h,e){return typeof d=="string"&&typeof b!="undefined"?(b={eventId:Date.now()+
+Math.floor(Math.random()*1E6),data:b},this.once(b.eventId,function(){h&&h.apply(e||null,arguments)}),this.emit(d,b),true):false};this.listen=function(d,b,h,e){if(typeof d=="string"&&typeof b!="undefined"&&typeof h=="function"){var c={eventId:Date.now()+Math.floor(Math.random()*1E6),data:b,keepAlive:true},a=function(){h&&h.apply(e||null,arguments)},g=this;this.on(c.eventId,a);this.emit(d,c);return function(){g.emit("disconnect-"+c.eventId);g.removeListener(c.eventId,a)}}else return false};this.setSocket(i)}});
+define("Stack",["Tools"],function(){var i=require("Tools");return function(d){function f(a){if(!(a>=e.length)){var c=e[a];return i.toArray(b.childNodes).indexOf(c)==-1?f(a+1):c}}var b=document.createDocumentFragment(),h=document.createElement("div"),e=[],c=null;this.add=function(a){return!this.has(a)&&a instanceof HTMLElement?(b.appendChild(a),e.push(a),a):false};this.remove=function(a){var c;return this.has(a)?(c=e.indexOf(a),b.removeChild(a),e.splice(c,1),a):false};this.place=function(a){return a instanceof
+HTMLElement?([].slice.call(b.childNodes).forEach(function(b){this.has(b)&&a.appendChild(b)},this),this._setParent(a)):false};this.up=function(a){if(this.has(a)){var b=this.getPosition(a);this.move(a,b+1);return a}else return false};this.down=function(a){if(this.has(a)){var b=this.getPosition(a);this.move(a,b-1);return a}else return false};this.move=function(a,c){if(this.has(a)){var d=e.indexOf(a);e.splice(d,1);(d=f(c))?b.insertBefore(a,d):b.appendChild(a);e.splice(c,0,a);return a}else return false};
this.insert=function(a,c){return!this.has(a)&&a instanceof HTMLElement?(e.splice(c,0,a),b.insertBefore(a,b.childNodes[c]),a):false};this.getPosition=function(a){return e.indexOf(a)};this.count=function(){return b.childNodes.length};this.has=function(a){return this.getPosition(a)>=0};this.hide=function(a){return this.has(a)?(h.appendChild(a),true):false};this.show=function(a){return this.has(a)&&a.parentNode===h?(this.move(a,e.indexOf(a)),true):false};this.hideAll=function(){e.forEach(this.hide,this)};
-this.showAll=function(){e.forEach(this.show,this)};this.getParent=function(){return b};this._setParent=function(a){return a instanceof HTMLElement?b=a:false};this.getHidePlace=function(){return h};this.setHidePlace=function(a){return a instanceof HTMLElement?(h=a,true):false};this._setParent(d)}});
-define("LocationRouter",["Router","Tools"],function(g,d){function c(){function b(){window.location.hash?this.navigate.apply(this,this.parse(window.location.hash)):this.navigate(e)}var c,e="",a=window.location.hash;this.setDefaultRoute=function(a){return a&&typeof a=="string"?(e=a,true):false};this.getDefaultRoute=function(){return e};this.parse=function(a){return a.split("#").pop().split("/")};this.toUrl=function(a){return a.join("/")};this.start=function(a){this.setDefaultRoute(a);b.call(this);this.bindOnHashChange();
-this.bindOnRouteChange()};this.destroy=function(){this.unwatch(c);window.removeEventListener("hashchange",this.boundOnHashChange,true)};this.onHashChange=function(){window.location.hash!=a&&b.call(this)};this.boundOnHashChange=this.onHashChange.bind(this);this.bindOnHashChange=function(){window.addEventListener("hashchange",this.boundOnHashChange,true)};this.bindOnRouteChange=function(){c=this.watch(this.onRouteChange,this)};this.onRouteChange=function(){window.location.hash=this.toUrl(d.toArray(arguments));
-a=window.location.hash};this.getLastRoute=function(){return a}}return function(){c.prototype=new g;return new c}});
+this.showAll=function(){e.forEach(this.show,this)};this.getParent=function(){return b};this._setParent=function(a){return a instanceof HTMLElement?b=a:false};this.getHidePlace=function(){return h};this.setHidePlace=function(a){return a instanceof HTMLElement?(h=a,true):false};this.getLastTransit=function(){return c};this.transit=function(a){c&&this.hide(c);return this.show(a)?(c=a,true):false};this._setParent(d)}});
+define("LocationRouter",["Router","Tools"],function(i,d){function f(){function b(){window.location.hash?this.navigate.apply(this,this.parse(window.location.hash)):this.navigate(e)}var f,e="",c=window.location.hash;this.setDefaultRoute=function(a){return a&&typeof a=="string"?(e=a,true):false};this.getDefaultRoute=function(){return e};this.parse=function(a){return a.split("#").pop().split("/")};this.toUrl=function(a){return a.join("/")};this.start=function(a){this.setDefaultRoute(a);b.call(this);this.bindOnHashChange();
+this.bindOnRouteChange()};this.destroy=function(){this.unwatch(f);window.removeEventListener("hashchange",this.boundOnHashChange,true)};this.onHashChange=function(){window.location.hash!=c&&b.call(this)};this.boundOnHashChange=this.onHashChange.bind(this);this.bindOnHashChange=function(){window.addEventListener("hashchange",this.boundOnHashChange,true)};this.bindOnRouteChange=function(){f=this.watch(this.onRouteChange,this)};this.onRouteChange=function(){window.location.hash=this.toUrl(d.toArray(arguments));
+c=window.location.hash};this.getLastRoute=function(){return c}}return function(){f.prototype=new i;return new f}});
View
30 build/src/Stack.js
@@ -38,7 +38,9 @@ function Stack() {
* Helps for excluding elements that are not part of it
* @private
*/
- _childNodes = [];
+ _childNodes = [],
+
+ _lastTransit = null;
/**
* Add a DOM element to the stack. It will be appended.
@@ -285,6 +287,32 @@ function Stack() {
}
};
+ /**
+ * Get the last dom element that the stack transitted to
+ * @returns {HTMLElement} the last dom element
+ */
+ this.getLastTransit = function getLastTransit() {
+ return _lastTransit;
+ };
+
+ /**
+ * Transit between views, will show the new one and hide the previous
+ * element that the stack transitted to, if any.
+ * @param {HTMLElement} dom the element to transit to
+ * @returns {Boolean} false if the element can't be shown
+ */
+ this.transit = function transit(dom) {
+ if (_lastTransit) {
+ this.hide(_lastTransit);
+ }
+ if (this.show(dom)) {
+ _lastTransit = dom;
+ return true;
+ } else {
+ return false;
+ }
+ };
+
this._setParent($parent);
};

0 comments on commit ebc0100

Please sign in to comment.